]> git.saurik.com Git - wxWidgets.git/blame - configure
Removed redundant DSPs
[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
672abd7a 314ac_subdirs_all="$ac_subdirs_all src/expat"
40b46a49 315ac_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 LN_S CXXCPP subdirs 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 RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX SO_SUFFIX_MODULE DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_OS2 COND_TOOLKIT_OS2_USE_GUI_1 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI 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 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_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX 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 LIBOBJS LTLIBOBJS'
e6cc62c6 316ac_subst_files=''
10f2d63a
VZ
317
318# Initialize some variables set by options.
e6cc62c6
VS
319ac_init_help=
320ac_init_version=false
10f2d63a
VZ
321# The variables have the same names as the options, with
322# dashes changed to underlines.
e6cc62c6 323cache_file=/dev/null
10f2d63a 324exec_prefix=NONE
10f2d63a 325no_create=
10f2d63a
VZ
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
10f2d63a
VZ
334verbose=
335x_includes=NONE
336x_libraries=NONE
e6cc62c6
VS
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
10f2d63a
VZ
356ac_prev=
357for ac_option
358do
10f2d63a
VZ
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
e6cc62c6 366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
e6cc62c6 370 case $ac_option in
10f2d63a
VZ
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 375 bindir=$ac_optarg ;;
10f2d63a
VZ
376
377 -build | --build | --buil | --bui | --bu)
e6cc62c6 378 ac_prev=build_alias ;;
10f2d63a 379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 380 build_alias=$ac_optarg ;;
10f2d63a
VZ
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
10f2d63a
VZ
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
e6cc62c6 396 datadir=$ac_optarg ;;
10f2d63a
VZ
397
398 -disable-* | --disable-*)
e6cc62c6 399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 400 # Reject names that are not valid shell variable names.
e6cc62c6
VS
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
406
407 -enable-* | --enable-*)
e6cc62c6 408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 409 # Reject names that are not valid shell variable names.
e6cc62c6
VS
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
416 *) ac_optarg=yes ;;
417 esac
e6cc62c6 418 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
e6cc62c6 427 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
e6cc62c6
VS
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
10f2d63a
VZ
439
440 -host | --host | --hos | --ho)
e6cc62c6 441 ac_prev=host_alias ;;
10f2d63a 442 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 443 host_alias=$ac_optarg ;;
10f2d63a
VZ
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 450 includedir=$ac_optarg ;;
10f2d63a
VZ
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 455 infodir=$ac_optarg ;;
10f2d63a
VZ
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 460 libdir=$ac_optarg ;;
10f2d63a
VZ
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 467 libexecdir=$ac_optarg ;;
10f2d63a
VZ
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 476 localstatedir=$ac_optarg ;;
10f2d63a
VZ
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 481 mandir=$ac_optarg ;;
10f2d63a
VZ
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 488 | --no-cr | --no-c | -n)
10f2d63a
VZ
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 502 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 507 prefix=$ac_optarg ;;
10f2d63a
VZ
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 514 program_prefix=$ac_optarg ;;
10f2d63a
VZ
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 521 program_suffix=$ac_optarg ;;
10f2d63a
VZ
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 538 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
e6cc62c6 548 sbindir=$ac_optarg ;;
10f2d63a
VZ
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
e6cc62c6 559 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
e6cc62c6 564 site=$ac_optarg ;;
10f2d63a
VZ
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 569 srcdir=$ac_optarg ;;
10f2d63a
VZ
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 576 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 579 ac_prev=target_alias ;;
10f2d63a 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 581 target_alias=$ac_optarg ;;
10f2d63a
VZ
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
e6cc62c6
VS
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
10f2d63a
VZ
588
589 -with-* | --with-*)
e6cc62c6 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 591 # Reject names that are not valid shell variable names.
e6cc62c6
VS
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
10f2d63a 595 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
598 *) ac_optarg=yes ;;
599 esac
e6cc62c6 600 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
601
602 -without-* | --without-*)
e6cc62c6 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 604 # Reject names that are not valid shell variable names.
e6cc62c6
VS
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
10f2d63a
VZ
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 620 x_includes=$ac_optarg ;;
10f2d63a
VZ
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 627 x_libraries=$ac_optarg ;;
10f2d63a 628
e6cc62c6
VS
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
10f2d63a
VZ
632 ;;
633
e6cc62c6
VS
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
10f2d63a 644 *)
e6cc62c6
VS
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
e6cc62c6
VS
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
a0b9e27f 659fi
a0b9e27f 660
e6cc62c6
VS
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
8284b0c5 671
e6cc62c6
VS
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 675do
e6cc62c6
VS
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
10f2d63a
VZ
681 esac
682done
683
e6cc62c6
VS
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
247f5006 701
e6cc62c6
VS
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
10f2d63a 706
10f2d63a
VZ
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
e6cc62c6
VS
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
10f2d63a
VZ
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
10f2d63a 735 else
e6cc62c6
VS
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
10f2d63a
VZ
738 fi
739fi
e6cc62c6
VS
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776ac_env_CXX_set=${CXX+set}
777ac_env_CXX_value=$CXX
778ac_cv_env_CXX_set=${CXX+set}
779ac_cv_env_CXX_value=$CXX
780ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781ac_env_CXXFLAGS_value=$CXXFLAGS
782ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784ac_env_CXXCPP_set=${CXXCPP+set}
785ac_env_CXXCPP_value=$CXXCPP
786ac_cv_env_CXXCPP_set=${CXXCPP+set}
787ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 788
e6cc62c6
VS
789#
790# Report the --help message.
791#
792if test "$ac_init_help" = "long"; then
793 # Omit some internal or obsolete options to make the list less imposing.
794 # This message is too long to be a string in the A/UX 3.1 sh.
795 cat <<_ACEOF
796\`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems.
10f2d63a 797
e6cc62c6 798Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 799
e6cc62c6
VS
800To assign environment variables (e.g., CC, CFLAGS...), specify them as
801VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 802
e6cc62c6
VS
803Defaults for the options are specified in brackets.
804
805Configuration:
806 -h, --help display this help and exit
807 --help=short display options specific to this package
808 --help=recursive display the short help of all the included packages
809 -V, --version display version information and exit
810 -q, --quiet, --silent do not print \`checking...' messages
811 --cache-file=FILE cache test results in FILE [disabled]
812 -C, --config-cache alias for \`--cache-file=config.cache'
813 -n, --no-create do not create output files
814 --srcdir=DIR find the sources in DIR [configure dir or \`..']
815
816_ACEOF
817
818 cat <<_ACEOF
819Installation directories:
820 --prefix=PREFIX install architecture-independent files in PREFIX
821 [$ac_default_prefix]
822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
823 [PREFIX]
824
825By default, \`make install' will install all the files in
826\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
827an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828for instance \`--prefix=\$HOME'.
829
830For better control, use the options below.
831
832Fine tuning of the installation directories:
833 --bindir=DIR user executables [EPREFIX/bin]
834 --sbindir=DIR system admin executables [EPREFIX/sbin]
835 --libexecdir=DIR program executables [EPREFIX/libexec]
836 --datadir=DIR read-only architecture-independent data [PREFIX/share]
837 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
838 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
839 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
840 --libdir=DIR object code libraries [EPREFIX/lib]
841 --includedir=DIR C header files [PREFIX/include]
842 --oldincludedir=DIR C header files for non-gcc [/usr/include]
843 --infodir=DIR info documentation [PREFIX/info]
844 --mandir=DIR man documentation [PREFIX/man]
845_ACEOF
846
847 cat <<\_ACEOF
848
849X features:
850 --x-includes=DIR X include files are in DIR
851 --x-libraries=DIR X library files are in DIR
852
853System types:
854 --build=BUILD configure for building on BUILD [guessed]
855 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 --target=TARGET configure for building compilers for TARGET [HOST]
857_ACEOF
858fi
859
860if test -n "$ac_init_help"; then
861 case $ac_init_help in
862 short | recursive ) echo "Configuration of wxWindows 2.5.0:";;
863 esac
864 cat <<\_ACEOF
865
866Optional Features:
867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
869 --enable-gui use GUI classes
9747f85d 870 --disable-monolithic don't build wxWindows as single library
e6cc62c6
VS
871 --enable-universal use wxWindows GUI controls instead of native ones
872 --enable-nanox use NanoX
873 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
874 --enable-shared create shared library code
e6cc62c6
VS
875 --enable-optimise create optimised code
876 --enable-debug same as debug_flag and debug_info
df5168c4 877 --enable-stl use STL for containers
e6cc62c6
VS
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
e6cc62c6
VS
888 --enable-compat22 enable wxWindows 2.2 compatibility
889 --disable-compat24 disable wxWindows 2.4 compatibility
890 --enable-rpath=DIR output the rpath flag from wx-config
891 --enable-intl use internationalization system
892 --enable-config use wxConfig (and derived) classes
893 --enable-protocols use wxProtocol and derived classes
894 --enable-ftp use wxFTP (requires wxProtocol
895 --enable-http use wxHTTP (requires wxProtocol
896 --enable-fileproto use wxFileProto class (requires wxProtocol
897 --enable-sockets use socket/network classes
898 --enable-ole use OLE classes
899 --enable-dataobj use data object classes
900 --enable-ipc use interprocess communication (wxSocket etc.)
901 --enable-cmdline use wxCmdLineParser class
902 --enable-datetime use wxDateTime class
903 --enable-stopwatch use wxStopWatch class
904 --enable-dialupman use dialup network classes
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-timer use wxTimer class
907 --enable-wave use wxWave class
908 --enable-fraction use wxFraction class
909 --enable-dynlib use wxLibrary class for DLL loading
910 --enable-dynamicloader use (new) wxDynamicLibrary class
911 --enable-longlong use wxLongLong class
912 --enable-geometry use geometry class
913 --enable-log use logging system
914 --enable-streams use wxStream etc classes
915 --enable-file use wxFile classes
916 --enable-ffile use wxFFile classes
917 --enable-textbuf use wxTextBuffer class
918 --enable-textfile use wxTextFile class
919 --enable-fontmap use font encodings conversion classes
920 --enable-unicode compile wxString with Unicode support
921 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)
922 --enable-wxprintfv use wxWindows implementation of vprintf()
923 --enable-std_iostreams use standard C++ stream classes
924 --enable-filesystem use virtual file systems classes
925 --enable-fs_inet use virtual HTTP/FTP filesystems
926 --enable-fs_zip use virtual ZIP filesystems
927 --enable-zipstream use wxZipInputStream
928 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException
929 --enable-snglinst use wxSingleInstanceChecker class
930 --enable-mimetype use wxMimeTypesManager
931 --enable-sysoptions use wxSystemOptions
932 --enable-url use wxURL class
933 --enable-protocol use wxProtocol class
934 --enable-protocol-http HTTP support in wxProtocol
935 --enable-protocol-ftp FTP support in wxProtocol
936 --enable-protocol-file FILE support in wxProtocol
937 --enable-threads use threads
938 --enable-docview use document view architecture
939 --enable-help use help subsystem
940 --enable-mshtmlhelp use MS HTML Help (win32)
941 --enable-html use wxHTML sub-library
942 --enable-htmlhelp use wxHTML-based help
943 --enable-constraints use layout-constraints system
944 --enable-printarch use printing architecture
945 --enable-mdi use multiple document interface architecture
946 --enable-loggui use standard GUI logger
947 --enable-logwin use wxLogWindow
948 --enable-logdialog use wxLogDialog
949 --enable-postscript use wxPostscriptDC device context (default for gtk+)
950 --enable-prologio not available; see contrib
951 --enable-resources not available; see contrib
952 --enable-clipboard use wxClipboard class
953 --enable-dnd use Drag'n'Drop classes
954 --enable-metafile use win32 metafiles
955 --enable-controls use all usual controls
956 --enable-accel use accelerators
957 --enable-button use wxButton class
958 --enable-bmpbutton use wxBitmapButton class
959 --enable-calendar use wxCalendarCtrl class
960 --enable-caret use wxCaret class
961 --enable-checkbox use wxCheckBox class
962 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
963 --enable-choice use wxChoice class
964 --enable-combobox use wxComboBox class
965 --enable-display use wxDisplay class
966 --enable-gauge use wxGauge class
967 --enable-grid use wxGrid class
968 --enable-imaglist use wxImageList class
969 --enable-listbox use wxListBox class
970 --enable-listctrl use wxListCtrl class
971 --enable-notebook use wxNotebook class
972 --enable-radiobox use wxRadioBox class
973 --enable-radiobtn use wxRadioButton class
974 --enable-sash use wxSashWindow class
975 --enable-scrollbar use wxScrollBar class and scrollable windows
976 --enable-slider use wxSlider class
977 --enable-spinbtn use wxSpinButton class
978 --enable-spinctrl use wxSpinCtrl class
979 --enable-splitter use wxSplitterWindow class
980 --enable-statbmp use wxStaticBitmap class
981 --enable-statbox use wxStaticBox class
982 --enable-statline use wxStaticLine class
983 --enable-stattext use wxStaticText class
984 --enable-statusbar use wxStatusBar class
985 --enable-tabdialog use wxTabControl class
986 --enable-textctrl use wxTextCtrl class
987 --enable-togglebtn use wxToggleButton class
988 --enable-toolbar use wxToolBar class
989 --enable-tbarnative use native wxToolBar class
990 --enable-tbarsmpl use wxToolBarSimple class
991 --enable-treectrl use wxTreeCtrl class
992 --enable-tipwindow use wxTipWindow class
993 --enable-popupwin use wxPopUpWindow class
994 --enable-commondlg use all common dialogs
995 --enable-choicedlg use wxChoiceDialog
996 --enable-coldlg use wxColourDialog
997 --enable-filedlg use wxFileDialog
998 --enable-finddlg use wxFindReplaceDialog
999 --enable-fontdlg use wxFontDialog
1000 --enable-dirdlg use wxDirDialog
1001 --enable-msgdlg use wxMessageDialog
1002 --enable-numberdlg use wxNumberEntryDialog
1003 --enable-splash use wxSplashScreen
1004 --enable-textdlg use wxTextDialog
1005 --enable-tipdlg use startup tips
1006 --enable-progressdlg use wxProgressDialog
1007 --enable-wizarddlg use wxWizard
1008 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1009 --enable-miniframe use wxMiniFrame class
1010 --enable-tooltips use wxToolTip class
1011 --enable-splines use spline drawing code
1012 --enable-validators use wxValidator and derived classes
1013 --enable-busyinfo use wxBusyInfo
1014 --enable-joystick use wxJoystick (Linux only)
1015 --enable-metafiles use wxMetaFile (Windows only)
1016 --enable-dragimage use wxDragImage
1017 --enable-accessibility enable accessibility support
1018 --enable-palette use wxPalette class
1019 --enable-image use wxImage class
1020 --enable-gif use gif images (GIF file format)
1021 --enable-pcx use pcx images (PCX file format)
1022 --enable-iff use iff images (IFF file format)
1023 --enable-pnm use pnm images (PNM file format)
1024 --enable-xpm use xpm images (XPM file format)
1025 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1026 --enable-official_build official build of wxWindows (win32 DLL only)
1027 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1028 --disable-largefile omit support for large files
1029 --disable-gtktest do not try to compile and run a test GTK+ program
1030 --disable-gtktest Do not try to compile and run a test GTK program
45842500 1031 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1032
1033Optional Packages:
1034 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1035 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1036 --with-gtk use GTK+
1037 --with-motif use Motif/Lesstif
1038 --with-mac use Mac OS X
1039 --with-cocoa use Cocoa
1040 --with-wine use Wine
1041 --with-msw use MS-Windows
1042 --with-pm use OS/2 Presentation Manager
1043 --with-mgl use SciTech MGL
1044 --with-microwin use MicroWindows
1045 --with-x11 use X11
1046 --with-libpng use libpng (PNG image format)
1047 --with-libjpeg use libjpeg (JPEG file format)
1048 --with-libtiff use libtiff (TIFF file format)
1049 --with-opengl use OpenGL (or Mesa)
1050 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1051 --with-regex enable support for wxRegEx class
1052 --with-zlib use zlib for LZW compression
1053 --with-odbc use the IODBC and wxODBC classes
672abd7a 1054 --with-expat enable XML support using expat parser
e6cc62c6
VS
1055 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1056 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1057 --with-x use the X Window System
1058 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1059
1060Some influential environment variables:
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064 nonstandard directory <lib dir>
1065 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066 headers in a nonstandard directory <include dir>
1067 CPP C preprocessor
1068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
1070 CXXCPP C++ preprocessor
1071
1072Use these variables to override the choices made by `configure' or to help
1073it to find libraries and programs with nonstandard names/locations.
1074
1075Report bugs to <wx-dev@lists.wxwindows.org>.
1076_ACEOF
1077fi
1078
1079if test "$ac_init_help" = "recursive"; then
1080 # If there are subdirs, report their specific --help.
1081 ac_popdir=`pwd`
1082 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1083 test -d $ac_dir || continue
1084 ac_builddir=.
1085
1086if test "$ac_dir" != .; then
1087 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1088 # A "../" for each directory in $ac_dir_suffix.
1089 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090else
1091 ac_dir_suffix= ac_top_builddir=
1092fi
1093
1094case $srcdir in
1095 .) # No --srcdir option. We are building in place.
1096 ac_srcdir=.
1097 if test -z "$ac_top_builddir"; then
1098 ac_top_srcdir=.
1099 else
1100 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101 fi ;;
1102 [\\/]* | ?:[\\/]* ) # Absolute path.
1103 ac_srcdir=$srcdir$ac_dir_suffix;
1104 ac_top_srcdir=$srcdir ;;
1105 *) # Relative path.
1106 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1107 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108esac
1109# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1110# absolute.
1111ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1112ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1113ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1114ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1115
1116 cd $ac_dir
1117 # Check for guested configure; otherwise get Cygnus style configure.
1118 if test -f $ac_srcdir/configure.gnu; then
1119 echo
1120 $SHELL $ac_srcdir/configure.gnu --help=recursive
1121 elif test -f $ac_srcdir/configure; then
1122 echo
1123 $SHELL $ac_srcdir/configure --help=recursive
1124 elif test -f $ac_srcdir/configure.ac ||
1125 test -f $ac_srcdir/configure.in; then
1126 echo
1127 $ac_configure --help
1128 else
1129 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1130 fi
1131 cd $ac_popdir
1132 done
1133fi
8284b0c5 1134
e6cc62c6
VS
1135test -n "$ac_init_help" && exit 0
1136if $ac_init_version; then
1137 cat <<\_ACEOF
1138wxWindows configure 2.5.0
1139generated by GNU Autoconf 2.57
10f2d63a 1140
e6cc62c6
VS
1141Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1142Free Software Foundation, Inc.
1143This configure script is free software; the Free Software Foundation
1144gives unlimited permission to copy, distribute and modify it.
1145_ACEOF
1146 exit 0
7c66a493 1147fi
e6cc62c6
VS
1148exec 5>config.log
1149cat >&5 <<_ACEOF
1150This file contains any messages produced by compilers while
1151running configure, to aid debugging if configure makes a mistake.
1152
1153It was created by wxWindows $as_me 2.5.0, which was
1154generated by GNU Autoconf 2.57. Invocation command line was
1155
1156 $ $0 $@
1157
1158_ACEOF
1159{
1160cat <<_ASUNAME
1161## --------- ##
1162## Platform. ##
1163## --------- ##
1164
1165hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1166uname -m = `(uname -m) 2>/dev/null || echo unknown`
1167uname -r = `(uname -r) 2>/dev/null || echo unknown`
1168uname -s = `(uname -s) 2>/dev/null || echo unknown`
1169uname -v = `(uname -v) 2>/dev/null || echo unknown`
1170
1171/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1172/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1173
1174/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1175/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1176/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1177hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1178/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1179/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1180/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1181
1182_ASUNAME
1183
1184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1185for as_dir in $PATH
1186do
1187 IFS=$as_save_IFS
1188 test -z "$as_dir" && as_dir=.
1189 echo "PATH: $as_dir"
1190done
1191
1192} >&5
1193
1194cat >&5 <<_ACEOF
1195
1196
1197## ----------- ##
1198## Core tests. ##
1199## ----------- ##
1200
1201_ACEOF
1202
1203
1204# Keep a trace of the command line.
1205# Strip out --no-create and --no-recursion so they do not pile up.
1206# Strip out --silent because we don't want to record it for future runs.
1207# Also quote any args containing shell meta-characters.
1208# Make two passes to allow for proper duplicate-argument suppression.
1209ac_configure_args=
1210ac_configure_args0=
1211ac_configure_args1=
1212ac_sep=
1213ac_must_keep_next=false
1214for ac_pass in 1 2
1215do
1216 for ac_arg
1217 do
1218 case $ac_arg in
1219 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1222 continue ;;
1223 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1224 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1225 esac
1226 case $ac_pass in
1227 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1228 2)
1229 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1230 if test $ac_must_keep_next = true; then
1231 ac_must_keep_next=false # Got value, back to normal.
1232 else
1233 case $ac_arg in
1234 *=* | --config-cache | -C | -disable-* | --disable-* \
1235 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1236 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1237 | -with-* | --with-* | -without-* | --without-* | --x)
1238 case "$ac_configure_args0 " in
1239 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1240 esac
1241 ;;
1242 -* ) ac_must_keep_next=true ;;
1243 esac
1244 fi
1245 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1246 # Get rid of the leading space.
1247 ac_sep=" "
1248 ;;
1249 esac
1250 done
1251done
1252$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1253$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1254
1255# When interrupted or exit'd, cleanup temporary files, and complete
1256# config.log. We remove comments because anyway the quotes in there
1257# would cause problems or look ugly.
1258# WARNING: Be sure not to use single quotes in there, as some shells,
1259# such as our DU 5.0 friend, will then `close' the trap.
1260trap 'exit_status=$?
1261 # Save into config.log some information that might help in debugging.
1262 {
1263 echo
1264
1265 cat <<\_ASBOX
1266## ---------------- ##
1267## Cache variables. ##
1268## ---------------- ##
1269_ASBOX
1270 echo
1271 # The following way of writing the cache mishandles newlines in values,
1272{
1273 (set) 2>&1 |
1274 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1275 *ac_space=\ *)
1276 sed -n \
1277 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1278 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1279 ;;
1280 *)
1281 sed -n \
1282 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1283 ;;
1284 esac;
1285}
1286 echo
1287
1288 cat <<\_ASBOX
1289## ----------------- ##
1290## Output variables. ##
1291## ----------------- ##
1292_ASBOX
1293 echo
1294 for ac_var in $ac_subst_vars
1295 do
1296 eval ac_val=$`echo $ac_var`
1297 echo "$ac_var='"'"'$ac_val'"'"'"
1298 done | sort
1299 echo
1300
1301 if test -n "$ac_subst_files"; then
1302 cat <<\_ASBOX
1303## ------------- ##
1304## Output files. ##
1305## ------------- ##
1306_ASBOX
1307 echo
1308 for ac_var in $ac_subst_files
1309 do
1310 eval ac_val=$`echo $ac_var`
1311 echo "$ac_var='"'"'$ac_val'"'"'"
1312 done | sort
1313 echo
1314 fi
1315
1316 if test -s confdefs.h; then
1317 cat <<\_ASBOX
1318## ----------- ##
1319## confdefs.h. ##
1320## ----------- ##
1321_ASBOX
1322 echo
1323 sed "/^$/d" confdefs.h | sort
1324 echo
1325 fi
1326 test "$ac_signal" != 0 &&
1327 echo "$as_me: caught signal $ac_signal"
1328 echo "$as_me: exit $exit_status"
1329 } >&5
1330 rm -f core core.* *.core &&
1331 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1332 exit $exit_status
1333 ' 0
1334for ac_signal in 1 2 13 15; do
1335 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1336done
1337ac_signal=0
1338
1339# confdefs.h avoids OS command line length limits that DEFS can exceed.
1340rm -rf conftest* confdefs.h
1341# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1342echo >confdefs.h
1343
1344# Predefined preprocessor variables.
1345
1346cat >>confdefs.h <<_ACEOF
1347#define PACKAGE_NAME "$PACKAGE_NAME"
1348_ACEOF
1349
1350
1351cat >>confdefs.h <<_ACEOF
1352#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1353_ACEOF
1354
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_VERSION "$PACKAGE_VERSION"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_STRING "$PACKAGE_STRING"
1363_ACEOF
1364
1365
1366cat >>confdefs.h <<_ACEOF
1367#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1368_ACEOF
1369
1370
1371# Let the site file select an alternate cache file if it wants to.
1372# Prefer explicitly selected file to automatically selected ones.
1373if test -z "$CONFIG_SITE"; then
1374 if test "x$prefix" != xNONE; then
1375 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1376 else
1377 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1378 fi
1379fi
1380for ac_site_file in $CONFIG_SITE; do
1381 if test -r "$ac_site_file"; then
1382 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1383echo "$as_me: loading site script $ac_site_file" >&6;}
1384 sed 's/^/| /' "$ac_site_file" >&5
1385 . "$ac_site_file"
1386 fi
1387done
1388
1389if test -r "$cache_file"; then
1390 # Some versions of bash will fail to source /dev/null (special
1391 # files actually), so we avoid doing that.
1392 if test -f "$cache_file"; then
1393 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1394echo "$as_me: loading cache $cache_file" >&6;}
1395 case $cache_file in
1396 [\\/]* | ?:[\\/]* ) . $cache_file;;
1397 *) . ./$cache_file;;
1398 esac
1399 fi
1400else
1401 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1402echo "$as_me: creating cache $cache_file" >&6;}
1403 >$cache_file
1404fi
1405
1406# Check that the precious variables saved in the cache have kept the same
1407# value.
1408ac_cache_corrupted=false
1409for ac_var in `(set) 2>&1 |
1410 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1411 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1412 eval ac_new_set=\$ac_env_${ac_var}_set
1413 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1414 eval ac_new_val="\$ac_env_${ac_var}_value"
1415 case $ac_old_set,$ac_new_set in
1416 set,)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,set)
1421 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1422echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1423 ac_cache_corrupted=: ;;
1424 ,);;
1425 *)
1426 if test "x$ac_old_val" != "x$ac_new_val"; then
1427 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1428echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1429 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1430echo "$as_me: former value: $ac_old_val" >&2;}
1431 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1432echo "$as_me: current value: $ac_new_val" >&2;}
1433 ac_cache_corrupted=:
1434 fi;;
1435 esac
1436 # Pass precious variables to config.status.
1437 if test "$ac_new_set" = set; then
1438 case $ac_new_val in
1439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1440 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1441 *) ac_arg=$ac_var=$ac_new_val ;;
1442 esac
1443 case " $ac_configure_args " in
1444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1445 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1446 esac
1447 fi
1448done
1449if $ac_cache_corrupted; then
1450 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1451echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1452 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1453echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1454 { (exit 1); exit 1; }; }
1455fi
1456
1457ac_ext=c
1458ac_cpp='$CPP $CPPFLAGS'
1459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1461ac_compiler_gnu=$ac_cv_c_compiler_gnu
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
698dcdb6 1479
8284b0c5 1480
7c66a493 1481
a0b9e27f
MB
1482
1483
a0b9e27f 1484
a0b9e27f 1485
a0b9e27f 1486
a0b9e27f 1487
a0b9e27f 1488
a0b9e27f 1489
e6cc62c6
VS
1490
1491
1492ac_aux_dir=
1493for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1494 if test -f $ac_dir/install-sh; then
1495 ac_aux_dir=$ac_dir
1496 ac_install_sh="$ac_aux_dir/install-sh -c"
1497 break
1498 elif test -f $ac_dir/install.sh; then
1499 ac_aux_dir=$ac_dir
1500 ac_install_sh="$ac_aux_dir/install.sh -c"
1501 break
1502 elif test -f $ac_dir/shtool; then
1503 ac_aux_dir=$ac_dir
1504 ac_install_sh="$ac_aux_dir/shtool install -c"
1505 break
1506 fi
1507done
1508if test -z "$ac_aux_dir"; then
1509 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1510echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1511 { (exit 1); exit 1; }; }
1512fi
1513ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1514ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1515ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1516
1517# Make sure we can run config.sub.
1518$ac_config_sub sun4 >/dev/null 2>&1 ||
1519 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1520echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1521 { (exit 1); exit 1; }; }
1522
1523echo "$as_me:$LINENO: checking build system type" >&5
1524echo $ECHO_N "checking build system type... $ECHO_C" >&6
1525if test "${ac_cv_build+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527else
1528 ac_cv_build_alias=$build_alias
1529test -z "$ac_cv_build_alias" &&
1530 ac_cv_build_alias=`$ac_config_guess`
1531test -z "$ac_cv_build_alias" &&
1532 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1533echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1534 { (exit 1); exit 1; }; }
1535ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1536 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1537echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1538 { (exit 1); exit 1; }; }
1539
1540fi
1541echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1542echo "${ECHO_T}$ac_cv_build" >&6
1543build=$ac_cv_build
1544build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1545build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1546build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547
1548
1549echo "$as_me:$LINENO: checking host system type" >&5
1550echo $ECHO_N "checking host system type... $ECHO_C" >&6
1551if test "${ac_cv_host+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554 ac_cv_host_alias=$host_alias
1555test -z "$ac_cv_host_alias" &&
1556 ac_cv_host_alias=$ac_cv_build_alias
1557ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1558 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1559echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1560 { (exit 1); exit 1; }; }
1561
1562fi
1563echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1564echo "${ECHO_T}$ac_cv_host" >&6
1565host=$ac_cv_host
1566host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1567host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1568host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569
1570
1571echo "$as_me:$LINENO: checking target system type" >&5
1572echo $ECHO_N "checking target system type... $ECHO_C" >&6
1573if test "${ac_cv_target+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575else
1576 ac_cv_target_alias=$target_alias
1577test "x$ac_cv_target_alias" = "x" &&
1578 ac_cv_target_alias=$ac_cv_host_alias
1579ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1580 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1581echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1582 { (exit 1); exit 1; }; }
1583
1584fi
1585echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1586echo "${ECHO_T}$ac_cv_target" >&6
1587target=$ac_cv_target
1588target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591
1592
1593# The aliases save the names the user supplied, while $host etc.
1594# will get canonicalized.
1595test -n "$target_alias" &&
7c66a493
VZ
1596 test "$program_prefix$program_suffix$program_transform_name" = \
1597 NONENONEs,x,x, &&
1598 program_prefix=${target_alias}-
8284b0c5
MB
1599
1600
a0b9e27f 1601
10f2d63a 1602WX_MAJOR_VERSION_NUMBER=2
34bed6d9
VZ
1603WX_MINOR_VERSION_NUMBER=5
1604WX_RELEASE_NUMBER=0
10f2d63a 1605
10f2d63a 1606WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1607WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1608
978f1259
RL
1609WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1610
34bed6d9 1611WX_CURRENT=0
6426998c
RL
1612WX_REVISION=0
1613WX_AGE=0
1614
8284b0c5
MB
1615
1616
10f2d63a
VZ
1617USE_UNIX=1
1618USE_WIN32=0
f9bc1684 1619USE_DOS=0
b12915c1 1620USE_BEOS=0
1216f52d 1621USE_MAC=0
b12915c1 1622
10f2d63a 1623USE_AIX=
fe0895cf
VS
1624USE_BSD= USE_DARWIN= USE_FREEBSD=
1625USE_GNU= USE_HPUX=
89e3b3e4 1626USE_LINUX=
f6bcfd97 1627USE_NETBSD=
89e3b3e4 1628USE_OPENBSD=
fe0895cf
VS
1629USE_OSF= USE_SGI=
1630USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1631USE_ULTRIX=
89e3b3e4
VZ
1632USE_UNIXWARE=
1633
1634USE_ALPHA=
10f2d63a 1635
ab9b9eab
VZ
1636NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1637
ac0c4cc3 1638ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1639
ac0c4cc3 1640DEFAULT_wxUSE_COCOA=0
10f2d63a 1641DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1642DEFAULT_wxUSE_MAC=0
1643DEFAULT_wxUSE_MGL=0
1725144d 1644DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1645DEFAULT_wxUSE_MOTIF=0
1646DEFAULT_wxUSE_MSW=0
e07802fc 1647DEFAULT_wxUSE_PM=0
f79bd02d 1648DEFAULT_wxUSE_X11=0
10f2d63a 1649
ac0c4cc3 1650DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1651DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1652DEFAULT_DEFAULT_wxUSE_MAC=0
1653DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1654DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1655DEFAULT_DEFAULT_wxUSE_MOTIF=0
1656DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1657DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1658DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1659
d6a55c4b 1660PROGRAM_EXT=
3a922bb4 1661SO_SUFFIX=so
fe0895cf 1662SAMPLES_RPATH_FLAG=
0f1bc9c2 1663SAMPLES_RPATH_POSTLINK=
d6a55c4b 1664
10f2d63a
VZ
1665case "${host}" in
1666 *-hp-hpux* )
1667 USE_HPUX=1
1668 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1669 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1670 SO_SUFFIX=sl
e6cc62c6 1671 cat >>confdefs.h <<\_ACEOF
10f2d63a 1672#define __HPUX__ 1
e6cc62c6 1673_ACEOF
10f2d63a
VZ
1674
1675 ;;
1676 *-*-linux* )
1677 USE_LINUX=1
e6cc62c6 1678 cat >>confdefs.h <<\_ACEOF
10f2d63a 1679#define __LINUX__ 1
e6cc62c6 1680_ACEOF
10f2d63a
VZ
1681
1682 TMP=`uname -m`
1683 if test "x$TMP" = "xalpha"; then
1684 USE_ALPHA=1
e6cc62c6 1685 cat >>confdefs.h <<\_ACEOF
10f2d63a 1686#define __ALPHA__ 1
e6cc62c6 1687_ACEOF
fe0895cf
VS
1688
1689 fi
1690 DEFAULT_DEFAULT_wxUSE_GTK=1
1691 ;;
1692 *-*-gnu* )
1693 USE_GNU=1
e6cc62c6 1694 cat >>confdefs.h <<\_ACEOF
fe0895cf 1695#define __GNU__ 1
e6cc62c6 1696_ACEOF
fe0895cf
VS
1697
1698 TMP=`uname -m`
1699 if test "x$TMP" = "xalpha"; then
1700 USE_ALPHA=1
e6cc62c6 1701 cat >>confdefs.h <<\_ACEOF
fe0895cf 1702#define __ALPHA__ 1
e6cc62c6 1703_ACEOF
10f2d63a
VZ
1704
1705 fi
1706 DEFAULT_DEFAULT_wxUSE_GTK=1
1707 ;;
1708 *-*-irix5* | *-*-irix6* )
1709 USE_SGI=1
1710 USE_SVR4=1
e6cc62c6 1711 cat >>confdefs.h <<\_ACEOF
10f2d63a 1712#define __SGI__ 1
e6cc62c6 1713_ACEOF
10f2d63a 1714
e6cc62c6 1715 cat >>confdefs.h <<\_ACEOF
10f2d63a 1716#define __SVR4__ 1
e6cc62c6 1717_ACEOF
10f2d63a
VZ
1718
1719 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1720 ;;
1721 *-*-solaris2* )
1722 USE_SUN=1
1723 USE_SOLARIS=1
1724 USE_SVR4=1
e6cc62c6 1725 cat >>confdefs.h <<\_ACEOF
10f2d63a 1726#define __SUN__ 1
e6cc62c6 1727_ACEOF
10f2d63a 1728
e6cc62c6 1729 cat >>confdefs.h <<\_ACEOF
10f2d63a 1730#define __SOLARIS__ 1
e6cc62c6 1731_ACEOF
10f2d63a 1732
e6cc62c6 1733 cat >>confdefs.h <<\_ACEOF
10f2d63a 1734#define __SVR4__ 1
e6cc62c6 1735_ACEOF
10f2d63a
VZ
1736
1737 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1738 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1739 ;;
1740 *-*-sunos4* )
1741 USE_SUN=1
1742 USE_SUNOS=1
1743 USE_BSD=1
e6cc62c6 1744 cat >>confdefs.h <<\_ACEOF
10f2d63a 1745#define __SUN__ 1
e6cc62c6 1746_ACEOF
10f2d63a 1747
e6cc62c6 1748 cat >>confdefs.h <<\_ACEOF
10f2d63a 1749#define __SUNOS__ 1
e6cc62c6 1750_ACEOF
10f2d63a 1751
e6cc62c6 1752 cat >>confdefs.h <<\_ACEOF
10f2d63a 1753#define __BSD__ 1
e6cc62c6 1754_ACEOF
10f2d63a
VZ
1755
1756 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1757 ;;
f6bcfd97 1758 *-*-freebsd*)
10f2d63a
VZ
1759 USE_BSD=1
1760 USE_FREEBSD=1
e6cc62c6 1761 cat >>confdefs.h <<\_ACEOF
10f2d63a 1762#define __FREEBSD__ 1
e6cc62c6 1763_ACEOF
10f2d63a 1764
e6cc62c6 1765 cat >>confdefs.h <<\_ACEOF
10f2d63a 1766#define __BSD__ 1
e6cc62c6 1767_ACEOF
95c8801c
VS
1768
1769 DEFAULT_DEFAULT_wxUSE_GTK=1
1770 ;;
1771 *-*-openbsd*)
1772 USE_BSD=1
1773 USE_OPENBSD=1
e6cc62c6 1774 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1775#define __OPENBSD__ 1
e6cc62c6 1776_ACEOF
95c8801c 1777
e6cc62c6 1778 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1779#define __BSD__ 1
e6cc62c6 1780_ACEOF
f6bcfd97
BP
1781
1782 DEFAULT_DEFAULT_wxUSE_GTK=1
1783 ;;
1784 *-*-netbsd*)
1785 USE_BSD=1
1786 USE_NETBSD=1
e6cc62c6 1787 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1788#define __NETBSD__ 1
e6cc62c6 1789_ACEOF
f6bcfd97 1790
e6cc62c6 1791 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1792#define __BSD__ 1
e6cc62c6 1793_ACEOF
10f2d63a
VZ
1794
1795 DEFAULT_DEFAULT_wxUSE_GTK=1
1796 ;;
1797 *-*-osf* )
1798 USE_ALPHA=1
1799 USE_OSF=1
e6cc62c6 1800 cat >>confdefs.h <<\_ACEOF
10f2d63a 1801#define __ALPHA__ 1
e6cc62c6 1802_ACEOF
10f2d63a 1803
e6cc62c6 1804 cat >>confdefs.h <<\_ACEOF
10f2d63a 1805#define __OSF__ 1
e6cc62c6 1806_ACEOF
10f2d63a
VZ
1807
1808 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1809 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1810 ;;
1811 *-*-dgux5* )
1812 USE_ALPHA=1
1813 USE_SVR4=1
e6cc62c6 1814 cat >>confdefs.h <<\_ACEOF
10f2d63a 1815#define __ALPHA__ 1
e6cc62c6 1816_ACEOF
10f2d63a 1817
e6cc62c6 1818 cat >>confdefs.h <<\_ACEOF
10f2d63a 1819#define __SVR4__ 1
e6cc62c6 1820_ACEOF
10f2d63a
VZ
1821
1822 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1823 ;;
1824 *-*-sysv5* )
1825 USE_SYSV=1
1826 USE_SVR4=1
e6cc62c6 1827 cat >>confdefs.h <<\_ACEOF
10f2d63a 1828#define __SYSV__ 1
e6cc62c6 1829_ACEOF
10f2d63a 1830
e6cc62c6 1831 cat >>confdefs.h <<\_ACEOF
10f2d63a 1832#define __SVR4__ 1
e6cc62c6 1833_ACEOF
10f2d63a
VZ
1834
1835 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1836 ;;
1837 *-*-aix* )
1838 USE_AIX=1
1839 USE_SYSV=1
1840 USE_SVR4=1
2b5f62a0 1841 SO_SUFFIX=a
e6cc62c6 1842 cat >>confdefs.h <<\_ACEOF
10f2d63a 1843#define __AIX__ 1
e6cc62c6 1844_ACEOF
10f2d63a 1845
e6cc62c6 1846 cat >>confdefs.h <<\_ACEOF
10f2d63a 1847#define __SYSV__ 1
e6cc62c6 1848_ACEOF
10f2d63a 1849
e6cc62c6 1850 cat >>confdefs.h <<\_ACEOF
10f2d63a 1851#define __SVR4__ 1
e6cc62c6 1852_ACEOF
10f2d63a
VZ
1853
1854 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1855 ;;
1856
89e3b3e4
VZ
1857 *-*-*UnixWare*)
1858 USE_SYSV=1
1859 USE_SVR4=1
1860 USE_UNIXWARE=1
e6cc62c6 1861 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1862#define __UNIXWARE__ 1
e6cc62c6 1863_ACEOF
89e3b3e4
VZ
1864
1865 ;;
1866
1c8183e2 1867 *-*-cygwin* | *-*-mingw32* )
17234b26 1868 SO_SUFFIX=dll
cf27ef00 1869 PROGRAM_EXT=".exe"
7b7a7637 1870 RESCOMP=windres
10f2d63a
VZ
1871 DEFAULT_DEFAULT_wxUSE_MSW=1
1872 ;;
1873
f9bc1684
VS
1874 *-pc-msdosdjgpp )
1875 USE_UNIX=0
1876 USE_DOS=1
e6cc62c6 1877 cat >>confdefs.h <<\_ACEOF
f9bc1684 1878#define __DOS__ 1
e6cc62c6 1879_ACEOF
f9bc1684
VS
1880
1881 PROGRAM_EXT=".exe"
1882 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1883 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1884 ;;
1885
6fa882bd 1886 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1887 cat >>confdefs.h <<\_ACEOF
10f2d63a 1888#define __EMX__ 1
e6cc62c6 1889_ACEOF
10f2d63a 1890
cf27ef00 1891 PROGRAM_EXT=".exe"
e07802fc 1892 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5
VS
1893 CXX=gcc
1894 LIBS="$LIBS -lstdcpp"
10f2d63a
VZ
1895 ;;
1896
d08b457b
GD
1897 powerpc-*-darwin* )
1898 USE_BSD=1
f11bdd03 1899 USE_DARWIN=1
3a922bb4 1900 SO_SUFFIX=dylib
e6cc62c6 1901 cat >>confdefs.h <<\_ACEOF
f11bdd03 1902#define __BSD__ 1
e6cc62c6 1903_ACEOF
b4085ce6 1904
e6cc62c6 1905 cat >>confdefs.h <<\_ACEOF
f11bdd03 1906#define __DARWIN__ 1
e6cc62c6 1907_ACEOF
d08b457b 1908
e6cc62c6 1909 cat >>confdefs.h <<\_ACEOF
d08b457b 1910#define __POWERPC__ 1
e6cc62c6 1911_ACEOF
82d43113 1912
e6cc62c6 1913 cat >>confdefs.h <<\_ACEOF
82d43113 1914#define TARGET_CARBON 1
e6cc62c6 1915_ACEOF
b4085ce6
GD
1916
1917 DEFAULT_DEFAULT_wxUSE_MAC=1
1918 ;;
1919
b12915c1
VZ
1920 *-*-beos* )
1921 USE_BEOS=1
e6cc62c6 1922 cat >>confdefs.h <<\_ACEOF
b12915c1 1923#define __BEOS__ 1
e6cc62c6 1924_ACEOF
b12915c1
VZ
1925
1926 ;;
1927
10f2d63a 1928 *)
e6cc62c6
VS
1929 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1930echo "$as_me: error: unknown system type ${host}." >&2;}
1931 { (exit 1); exit 1; }; }
10f2d63a
VZ
1932esac
1933
8284b0c5
MB
1934
1935
1936
1937 wx_arg_cache_file="configarg.cache"
1938 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1939 rm -f ${wx_arg_cache_file}.tmp
1940 touch ${wx_arg_cache_file}.tmp
1941 touch ${wx_arg_cache_file}
e6cc62c6 1942
10f2d63a
VZ
1943
1944DEBUG_CONFIGURE=0
1945if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1946 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1947 DEFAULT_wxUSE_STL=no
1e6feb95 1948
d8356fa3
VZ
1949 DEFAULT_wxUSE_NANOX=no
1950
10f2d63a
VZ
1951 DEFAULT_wxUSE_THREADS=yes
1952
1953 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1954 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1955 DEFAULT_wxUSE_PROFILE=no
1956 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1957 DEFAULT_wxUSE_NO_RTTI=no
1958 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1959 DEFAULT_wxUSE_PERMISSIVE=no
1960 DEFAULT_wxUSE_DEBUG_FLAG=yes
1961 DEFAULT_wxUSE_DEBUG_INFO=yes
1962 DEFAULT_wxUSE_DEBUG_GDB=yes
1963 DEFAULT_wxUSE_MEM_TRACING=no
1964 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1965 DEFAULT_wxUSE_DMALLOC=no
1966 DEFAULT_wxUSE_APPLE_IEEE=no
1967
1968 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1969 DEFAULT_wxUSE_LOGWINDOW=no
1970 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1971 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1972
1973 DEFAULT_wxUSE_GUI=yes
1e6feb95 1974 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1975
3e44f09d 1976 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
1977 DEFAULT_wxUSE_XML=no
1978 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
1979 DEFAULT_wxUSE_ZLIB=no
1980 DEFAULT_wxUSE_LIBPNG=no
1981 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1982 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1983 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1984 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1985
eb4efbdc 1986 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1987 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1988 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1989 DEFAULT_wxUSE_CMDLINE_PARSER=no
1990 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
1991 DEFAULT_wxUSE_TIMER=no
1992 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1993 DEFAULT_wxUSE_FILE=no
1e6feb95 1994 DEFAULT_wxUSE_FFILE=no
a3a584a7 1995 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1996 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1997 DEFAULT_wxUSE_WAVE=no
1998 DEFAULT_wxUSE_INTL=no
1999 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2000 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2001 DEFAULT_wxUSE_STREAMS=no
2002 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2003 DEFAULT_wxUSE_OLE=no
2004 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2005 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2006 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2007 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2008 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2009 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2010 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2011
2012 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2013 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2014 DEFAULT_wxUSE_POSTSCRIPT=no
2015
10f2d63a
VZ
2016 DEFAULT_wxUSE_CLIPBOARD=no
2017 DEFAULT_wxUSE_TOOLTIPS=no
2018 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2019 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2020 DEFAULT_wxUSE_SPLINES=no
2021
2022 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2023 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2024 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2025
10f2d63a
VZ
2026 DEFAULT_wxUSE_RESOURCES=no
2027 DEFAULT_wxUSE_CONSTRAINTS=no
2028 DEFAULT_wxUSE_IPC=no
2029 DEFAULT_wxUSE_HELP=no
29fd3c0c 2030 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2031 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2032 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2033 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2034 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2035 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2036 DEFAULT_wxUSE_PROTOCOL=no
2037 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2038 DEFAULT_wxUSE_PROTOCOL_FTP=no
2039 DEFAULT_wxUSE_PROTOCOL_FILE=no
2040 DEFAULT_wxUSE_URL=no
3bd8fb5f 2041
10f2d63a 2042 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2043 DEFAULT_wxUSE_CHOICEDLG=no
2044 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2045 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2046 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2047 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2048 DEFAULT_wxUSE_FONTDLG=no
2049 DEFAULT_wxUSE_MSGDLG=no
2050 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2051 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2052 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2053 DEFAULT_wxUSE_STARTUP_TIPS=no
2054 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2055 DEFAULT_wxUSE_WIZARDDLG=no
2056
1e6feb95 2057 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2058 DEFAULT_wxUSE_MINIFRAME=no
2059 DEFAULT_wxUSE_HTML=no
24528b0c 2060 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2061 DEFAULT_wxUSE_FS_INET=no
2062 DEFAULT_wxUSE_FS_ZIP=no
2063 DEFAULT_wxUSE_BUSYINFO=no
2064 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 2065 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2066
2067 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2068 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2069 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2070 DEFAULT_wxUSE_CALCTRL=no
2071 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2072 DEFAULT_wxUSE_CHECKBOX=no
2073 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2074 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2075 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2076 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2077 DEFAULT_wxUSE_GAUGE=no
2078 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
2079 DEFAULT_wxUSE_IMAGLIST=no
2080 DEFAULT_wxUSE_LISTBOX=no
2081 DEFAULT_wxUSE_LISTCTRL=no
2082 DEFAULT_wxUSE_NOTEBOOK=no
2083 DEFAULT_wxUSE_RADIOBOX=no
2084 DEFAULT_wxUSE_RADIOBTN=no
2085 DEFAULT_wxUSE_SASH=no
2086 DEFAULT_wxUSE_SCROLLBAR=no
2087 DEFAULT_wxUSE_SLIDER=no
2088 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2089 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2090 DEFAULT_wxUSE_SPLITTER=no
2091 DEFAULT_wxUSE_STATBMP=no
2092 DEFAULT_wxUSE_STATBOX=no
2093 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2094 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2095 DEFAULT_wxUSE_STATUSBAR=yes
2096 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2097 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2098 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2099 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2100 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2101 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2102 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2103 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2104 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2105
2106 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2107 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2108 DEFAULT_wxUSE_WCSRTOMBS=no
2109
edae8572 2110 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2111 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2112 DEFAULT_wxUSE_GIF=no
2113 DEFAULT_wxUSE_PCX=no
2114 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2115 DEFAULT_wxUSE_IFF=no
0046ff7c 2116 DEFAULT_wxUSE_XPM=no
658974ae 2117 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2118 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2119
e9e0dc15 2120 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2121 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2122else
1e6feb95 2123 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2124 DEFAULT_wxUSE_STL=no
1e6feb95 2125
d8356fa3
VZ
2126 DEFAULT_wxUSE_NANOX=no
2127
10f2d63a
VZ
2128 DEFAULT_wxUSE_THREADS=yes
2129
2130 DEFAULT_wxUSE_SHARED=yes
2131 DEFAULT_wxUSE_OPTIMISE=yes
2132 DEFAULT_wxUSE_PROFILE=no
2133 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2134 DEFAULT_wxUSE_NO_RTTI=no
2135 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2136 DEFAULT_wxUSE_PERMISSIVE=no
2137 DEFAULT_wxUSE_DEBUG_FLAG=no
2138 DEFAULT_wxUSE_DEBUG_INFO=no
2139 DEFAULT_wxUSE_DEBUG_GDB=no
2140 DEFAULT_wxUSE_MEM_TRACING=no
2141 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2142 DEFAULT_wxUSE_DMALLOC=no
2143 DEFAULT_wxUSE_APPLE_IEEE=yes
2144
2145 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2146 DEFAULT_wxUSE_LOGWINDOW=yes
2147 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2148 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2149
2150 DEFAULT_wxUSE_GUI=yes
2151
831b3152 2152 DEFAULT_wxUSE_REGEX=yes
672abd7a
VS
2153 DEFAULT_wxUSE_XML=yes
2154 DEFAULT_wxUSE_EXPAT=yes
10f2d63a
VZ
2155 DEFAULT_wxUSE_ZLIB=yes
2156 DEFAULT_wxUSE_LIBPNG=yes
2157 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2158 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2159 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2160 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2161
eb4efbdc 2162 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2163 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2164 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2165 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2166 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2167 DEFAULT_wxUSE_TIMER=yes
2168 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2169 DEFAULT_wxUSE_FILE=yes
1e6feb95 2170 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2171 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2172 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2173 DEFAULT_wxUSE_WAVE=no
2174 DEFAULT_wxUSE_INTL=yes
2175 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2176 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2177 DEFAULT_wxUSE_STREAMS=yes
2178 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2179 DEFAULT_wxUSE_OLE=yes
2180 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2181 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2182 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2183 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2184 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2185 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2186 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2187
2188 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2189 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2190 DEFAULT_wxUSE_POSTSCRIPT=yes
2191
10f2d63a
VZ
2192 DEFAULT_wxUSE_CLIPBOARD=yes
2193 DEFAULT_wxUSE_TOOLTIPS=yes
2194 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2195 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2196 DEFAULT_wxUSE_SPLINES=yes
2197
2198 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2199 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2200 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2201
2b5f62a0 2202 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2203 DEFAULT_wxUSE_CONSTRAINTS=yes
2204 DEFAULT_wxUSE_IPC=yes
2205 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2206 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2207 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2208 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2209 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2210 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2211 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2212 DEFAULT_wxUSE_PROTOCOL=yes
2213 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2214 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2215 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2216 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2217
2218 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2219 DEFAULT_wxUSE_CHOICEDLG=yes
2220 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2221 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2222 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2223 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2224 DEFAULT_wxUSE_FONTDLG=yes
2225 DEFAULT_wxUSE_MSGDLG=yes
2226 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2227 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2228 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2229 DEFAULT_wxUSE_STARTUP_TIPS=yes
2230 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2231 DEFAULT_wxUSE_WIZARDDLG=yes
2232
1e6feb95 2233 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2234 DEFAULT_wxUSE_MINIFRAME=yes
2235 DEFAULT_wxUSE_HTML=yes
24528b0c 2236 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2237 DEFAULT_wxUSE_FS_INET=yes
2238 DEFAULT_wxUSE_FS_ZIP=yes
2239 DEFAULT_wxUSE_BUSYINFO=yes
2240 DEFAULT_wxUSE_ZIPSTREAM=yes
2241 DEFAULT_wxUSE_VALIDATORS=yes
2242
2243 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2244 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2245 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2246 DEFAULT_wxUSE_CALCTRL=yes
2247 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2248 DEFAULT_wxUSE_CHECKBOX=yes
2249 DEFAULT_wxUSE_CHECKLST=yes
2250 DEFAULT_wxUSE_CHOICE=yes
2251 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2252 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2253 DEFAULT_wxUSE_GAUGE=yes
2254 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
2255 DEFAULT_wxUSE_IMAGLIST=yes
2256 DEFAULT_wxUSE_LISTBOX=yes
2257 DEFAULT_wxUSE_LISTCTRL=yes
2258 DEFAULT_wxUSE_NOTEBOOK=yes
2259 DEFAULT_wxUSE_RADIOBOX=yes
2260 DEFAULT_wxUSE_RADIOBTN=yes
2261 DEFAULT_wxUSE_SASH=yes
2262 DEFAULT_wxUSE_SCROLLBAR=yes
2263 DEFAULT_wxUSE_SLIDER=yes
2264 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2265 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2266 DEFAULT_wxUSE_SPLITTER=yes
2267 DEFAULT_wxUSE_STATBMP=yes
2268 DEFAULT_wxUSE_STATBOX=yes
2269 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2270 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2271 DEFAULT_wxUSE_STATUSBAR=yes
2272 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2273 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2274 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2275 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2276 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2277 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2278 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2279 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2280 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2281
2282 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2283 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2284 DEFAULT_wxUSE_WCSRTOMBS=no
2285
edae8572 2286 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2287 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2288 DEFAULT_wxUSE_GIF=yes
2289 DEFAULT_wxUSE_PCX=yes
cc0e8480 2290 DEFAULT_wxUSE_IFF=no
10f2d63a 2291 DEFAULT_wxUSE_PNM=yes
0046ff7c 2292 DEFAULT_wxUSE_XPM=yes
658974ae 2293 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2294 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2295
e9e0dc15 2296 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2297 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2298fi
2299
8284b0c5
MB
2300
2301
10f2d63a 2302for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2303 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2304 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2305 has_toolkit_in_cache=1
2306 eval "DEFAULT_$LINE"
2307 eval "CACHE_$toolkit=1"
2308 fi
2309done
2310
8284b0c5
MB
2311
2312
5005acfe 2313 enablestring=
e6cc62c6
VS
2314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2315echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2316 no_cache=0
2317 # Check whether --enable-gui or --disable-gui was given.
2318if test "${enable_gui+set}" = set; then
2319 enableval="$enable_gui"
e6cc62c6 2320
10f2d63a
VZ
2321 if test "$enableval" = yes; then
2322 ac_cv_use_gui='wxUSE_GUI=yes'
2323 else
2324 ac_cv_use_gui='wxUSE_GUI=no'
2325 fi
e6cc62c6 2326
10f2d63a 2327else
e6cc62c6 2328
10f2d63a
VZ
2329 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2330 if test "x$LINE" != x ; then
2331 eval "DEFAULT_$LINE"
2332 else
2333 no_cache=1
2334 fi
2335
2336 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2337
e6cc62c6 2338fi;
10f2d63a
VZ
2339
2340 eval "$ac_cv_use_gui"
2341 if test "$no_cache" != 1; then
2342 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2343 fi
2344
2345 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2346 echo "$as_me:$LINENO: result: yes" >&5
2347echo "${ECHO_T}yes" >&6
10f2d63a 2348 else
e6cc62c6
VS
2349 echo "$as_me:$LINENO: result: no" >&5
2350echo "${ECHO_T}no" >&6
10f2d63a 2351 fi
e6cc62c6 2352
10f2d63a 2353
9747f85d
VS
2354 enablestring=
2355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2356echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2357 no_cache=0
2358 # Check whether --enable-monolithic or --disable-monolithic was given.
2359if test "${enable_monolithic+set}" = set; then
2360 enableval="$enable_monolithic"
2361
2362 if test "$enableval" = yes; then
2363 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2364 else
2365 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2366 fi
2367
2368else
2369
2370 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2371 if test "x$LINE" != x ; then
2372 eval "DEFAULT_$LINE"
2373 else
2374 no_cache=1
2375 fi
2376
2377 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2378
2379fi;
2380
2381 eval "$ac_cv_use_monolithic"
2382 if test "$no_cache" != 1; then
2383 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2384 fi
2385
2386 if test "$wxUSE_MONOLITHIC" = yes; then
2387 echo "$as_me:$LINENO: result: yes" >&5
2388echo "${ECHO_T}yes" >&6
2389 else
2390 echo "$as_me:$LINENO: result: no" >&5
2391echo "${ECHO_T}no" >&6
2392 fi
2393
2394
b12915c1 2395if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2396
8284b0c5 2397
5005acfe 2398 enablestring=
e6cc62c6
VS
2399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2400echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2401 no_cache=0
2402 # Check whether --enable-universal or --disable-universal was given.
2403if test "${enable_universal+set}" = set; then
2404 enableval="$enable_universal"
e6cc62c6 2405
1e6feb95
VZ
2406 if test "$enableval" = yes; then
2407 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2408 else
2409 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2410 fi
e6cc62c6 2411
1e6feb95 2412else
e6cc62c6 2413
1e6feb95
VZ
2414 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2415 if test "x$LINE" != x ; then
2416 eval "DEFAULT_$LINE"
2417 else
2418 no_cache=1
2419 fi
2420
2421 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2422
e6cc62c6 2423fi;
1e6feb95
VZ
2424
2425 eval "$ac_cv_use_universal"
2426 if test "$no_cache" != 1; then
2427 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2428 fi
2429
2430 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2431 echo "$as_me:$LINENO: result: yes" >&5
2432echo "${ECHO_T}yes" >&6
1e6feb95 2433 else
e6cc62c6
VS
2434 echo "$as_me:$LINENO: result: no" >&5
2435echo "${ECHO_T}no" >&6
1e6feb95 2436 fi
e6cc62c6
VS
2437
2438
10f2d63a
VZ
2439# Check whether --with-gtk or --without-gtk was given.
2440if test "${with_gtk+set}" = set; then
2441 withval="$with_gtk"
2442 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2443fi;
10f2d63a
VZ
2444
2445# Check whether --with-motif or --without-motif was given.
2446if test "${with_motif+set}" = set; then
2447 withval="$with_motif"
2448 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2449fi;
10f2d63a 2450
b4085ce6
GD
2451# Check whether --with-mac or --without-mac was given.
2452if test "${with_mac+set}" = set; then
2453 withval="$with_mac"
2454 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2455fi;
b4085ce6 2456
ac0c4cc3
DE
2457# Check whether --with-cocoa or --without-cocoa was given.
2458if test "${with_cocoa+set}" = set; then
2459 withval="$with_cocoa"
2460 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2461fi;
ac0c4cc3 2462
10f2d63a
VZ
2463# Check whether --with-wine or --without-wine was given.
2464if test "${with_wine+set}" = set; then
2465 withval="$with_wine"
89e6bf6d 2466 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2467fi;
10f2d63a 2468
77e13408
RL
2469# Check whether --with-msw or --without-msw was given.
2470if test "${with_msw+set}" = set; then
2471 withval="$with_msw"
b4efce5e 2472 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2473fi;
10f2d63a 2474
e07802fc
VZ
2475# Check whether --with-pm or --without-pm was given.
2476if test "${with_pm+set}" = set; then
2477 withval="$with_pm"
2478 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2479fi;
698dcdb6 2480
1e6feb95
VZ
2481# Check whether --with-mgl or --without-mgl was given.
2482if test "${with_mgl+set}" = set; then
2483 withval="$with_mgl"
6c657b52 2484 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2485fi;
1e6feb95 2486
1725144d
RR
2487# Check whether --with-microwin or --without-microwin was given.
2488if test "${with_microwin+set}" = set; then
2489 withval="$with_microwin"
2490 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2491fi;
1725144d 2492
f79bd02d
JS
2493# Check whether --with-x11 or --without-x11 was given.
2494if test "${with_x11+set}" = set; then
2495 withval="$with_x11"
3c011993 2496 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2497fi;
a0b9e27f 2498
5005acfe 2499 enablestring=
e6cc62c6
VS
2500 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2501echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2502 no_cache=0
ba875e66
VZ
2503 # Check whether --enable-nanox or --disable-nanox was given.
2504if test "${enable_nanox+set}" = set; then
2505 enableval="$enable_nanox"
e6cc62c6 2506
d8356fa3 2507 if test "$enableval" = yes; then
ba875e66 2508 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2509 else
ba875e66 2510 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2511 fi
e6cc62c6 2512
d8356fa3 2513else
e6cc62c6 2514
d8356fa3
VZ
2515 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2516 if test "x$LINE" != x ; then
2517 eval "DEFAULT_$LINE"
2518 else
2519 no_cache=1
2520 fi
2521
ba875e66 2522 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2523
e6cc62c6 2524fi;
d8356fa3 2525
ba875e66 2526 eval "$ac_cv_use_nanox"
d8356fa3 2527 if test "$no_cache" != 1; then
ba875e66 2528 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2529 fi
2530
2531 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2532 echo "$as_me:$LINENO: result: yes" >&5
2533echo "${ECHO_T}yes" >&6
d8356fa3 2534 else
e6cc62c6
VS
2535 echo "$as_me:$LINENO: result: no" >&5
2536echo "${ECHO_T}no" >&6
d8356fa3 2537 fi
e6cc62c6 2538
8284b0c5 2539
d74f4b5a 2540
5005acfe 2541 enablestring=
e6cc62c6
VS
2542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2543echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2544 no_cache=0
2545 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2546if test "${enable_gtk2+set}" = set; then
2547 enableval="$enable_gtk2"
e6cc62c6 2548
d74f4b5a
VZ
2549 if test "$enableval" = yes; then
2550 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2551 else
2552 ac_cv_use_gtk2='wxUSE_GTK2=no'
2553 fi
e6cc62c6 2554
10f2d63a 2555else
e6cc62c6 2556
d74f4b5a
VZ
2557 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2558 if test "x$LINE" != x ; then
2559 eval "DEFAULT_$LINE"
2560 else
2561 no_cache=1
2562 fi
2563
2564 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2565
e6cc62c6 2566fi;
328a083c 2567
d74f4b5a
VZ
2568 eval "$ac_cv_use_gtk2"
2569 if test "$no_cache" != 1; then
2570 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2571 fi
2572
2573 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2574 echo "$as_me:$LINENO: result: yes" >&5
2575echo "${ECHO_T}yes" >&6
d74f4b5a 2576 else
e6cc62c6
VS
2577 echo "$as_me:$LINENO: result: no" >&5
2578echo "${ECHO_T}no" >&6
d74f4b5a 2579 fi
d74f4b5a 2580
5c6fa7d2 2581
e6cc62c6
VS
2582
2583 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2584echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2585 no_cache=0
e6cc62c6
VS
2586
2587# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2588if test "${with_libpng+set}" = set; then
2589 withval="$with_libpng"
e6cc62c6 2590
10f2d63a 2591 if test "$withval" = yes; then
b12915c1 2592 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2593 elif test "$withval" = no; then
b12915c1 2594 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2595 elif test "$withval" = sys; then
2596 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2597 elif test "$withval" = builtin; then
2598 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2599 else
e6cc62c6
VS
2600 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2601echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2602 { (exit 1); exit 1; }; }
10f2d63a 2603 fi
e6cc62c6 2604
10f2d63a 2605else
e6cc62c6 2606
b12915c1 2607 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2608 if test "x$LINE" != x ; then
2609 eval "DEFAULT_$LINE"
2610 else
2611 no_cache=1
2612 fi
2613
b12915c1 2614 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2615
e6cc62c6 2616fi;
10f2d63a 2617
b12915c1 2618 eval "$ac_cv_use_libpng"
10f2d63a 2619 if test "$no_cache" != 1; then
b12915c1 2620 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2621 fi
2622
b12915c1 2623 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2624 echo "$as_me:$LINENO: result: yes" >&5
2625echo "${ECHO_T}yes" >&6
422107f9 2626 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2627 echo "$as_me:$LINENO: result: no" >&5
2628echo "${ECHO_T}no" >&6
422107f9 2629 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2630 echo "$as_me:$LINENO: result: system version" >&5
2631echo "${ECHO_T}system version" >&6
4f14bcd8 2632 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2633 echo "$as_me:$LINENO: result: builtin version" >&5
2634echo "${ECHO_T}builtin version" >&6
422107f9 2635 else
e6cc62c6
VS
2636 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2637echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2638 { (exit 1); exit 1; }; }
10f2d63a 2639 fi
10f2d63a 2640
e6cc62c6
VS
2641
2642 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2643echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2644 no_cache=0
e6cc62c6
VS
2645
2646# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2647if test "${with_libjpeg+set}" = set; then
2648 withval="$with_libjpeg"
e6cc62c6 2649
10f2d63a 2650 if test "$withval" = yes; then
b12915c1 2651 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2652 elif test "$withval" = no; then
b12915c1 2653 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2654 elif test "$withval" = sys; then
2655 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2656 elif test "$withval" = builtin; then
2657 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2658 else
e6cc62c6
VS
2659 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2660echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2661 { (exit 1); exit 1; }; }
10f2d63a 2662 fi
e6cc62c6 2663
10f2d63a 2664else
e6cc62c6 2665
b12915c1 2666 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2667 if test "x$LINE" != x ; then
2668 eval "DEFAULT_$LINE"
2669 else
2670 no_cache=1
2671 fi
2672
b12915c1 2673 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2674
e6cc62c6 2675fi;
10f2d63a 2676
b12915c1 2677 eval "$ac_cv_use_libjpeg"
10f2d63a 2678 if test "$no_cache" != 1; then
b12915c1 2679 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2680 fi
2681
b12915c1 2682 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2683 echo "$as_me:$LINENO: result: yes" >&5
2684echo "${ECHO_T}yes" >&6
422107f9 2685 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2686 echo "$as_me:$LINENO: result: no" >&5
2687echo "${ECHO_T}no" >&6
422107f9 2688 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2689 echo "$as_me:$LINENO: result: system version" >&5
2690echo "${ECHO_T}system version" >&6
4f14bcd8 2691 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2692 echo "$as_me:$LINENO: result: builtin version" >&5
2693echo "${ECHO_T}builtin version" >&6
422107f9 2694 else
e6cc62c6
VS
2695 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2696echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2697 { (exit 1); exit 1; }; }
10f2d63a 2698 fi
10f2d63a 2699
e6cc62c6
VS
2700
2701 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2702echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2703 no_cache=0
e6cc62c6
VS
2704
2705# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2706if test "${with_libtiff+set}" = set; then
2707 withval="$with_libtiff"
e6cc62c6 2708
10f2d63a 2709 if test "$withval" = yes; then
b12915c1 2710 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2711 elif test "$withval" = no; then
b12915c1 2712 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2713 elif test "$withval" = sys; then
2714 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2715 elif test "$withval" = builtin; then
2716 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2717 else
e6cc62c6
VS
2718 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2719echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2720 { (exit 1); exit 1; }; }
10f2d63a 2721 fi
e6cc62c6 2722
10f2d63a 2723else
e6cc62c6 2724
b12915c1 2725 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2726 if test "x$LINE" != x ; then
2727 eval "DEFAULT_$LINE"
2728 else
2729 no_cache=1
2730 fi
2731
b12915c1 2732 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2733
e6cc62c6 2734fi;
10f2d63a 2735
b12915c1 2736 eval "$ac_cv_use_libtiff"
10f2d63a 2737 if test "$no_cache" != 1; then
b12915c1 2738 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2739 fi
2740
b12915c1 2741 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2742 echo "$as_me:$LINENO: result: yes" >&5
2743echo "${ECHO_T}yes" >&6
0dcf9893 2744 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2745 echo "$as_me:$LINENO: result: no" >&5
2746echo "${ECHO_T}no" >&6
0dcf9893 2747 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2748 echo "$as_me:$LINENO: result: system version" >&5
2749echo "${ECHO_T}system version" >&6
4f14bcd8 2750 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2751 echo "$as_me:$LINENO: result: builtin version" >&5
2752echo "${ECHO_T}builtin version" >&6
0dcf9893 2753 else
e6cc62c6
VS
2754 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2755echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2756 { (exit 1); exit 1; }; }
10f2d63a 2757 fi
10f2d63a 2758
e6cc62c6
VS
2759
2760 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2761echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2762 no_cache=0
e6cc62c6
VS
2763
2764# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2765if test "${with_opengl+set}" = set; then
2766 withval="$with_opengl"
e6cc62c6 2767
10f2d63a 2768 if test "$withval" = yes; then
b12915c1 2769 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2770 else
b12915c1 2771 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2772 fi
e6cc62c6 2773
10f2d63a 2774else
e6cc62c6 2775
b12915c1 2776 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2777 if test "x$LINE" != x ; then
2778 eval "DEFAULT_$LINE"
2779 else
2780 no_cache=1
2781 fi
2782
b12915c1 2783 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2784
e6cc62c6 2785fi;
10f2d63a 2786
b12915c1 2787 eval "$ac_cv_use_opengl"
10f2d63a 2788 if test "$no_cache" != 1; then
b12915c1 2789 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2790 fi
2791
b12915c1 2792 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2793 echo "$as_me:$LINENO: result: yes" >&5
2794echo "${ECHO_T}yes" >&6
10f2d63a 2795 else
e6cc62c6
VS
2796 echo "$as_me:$LINENO: result: no" >&5
2797echo "${ECHO_T}no" >&6
10f2d63a 2798 fi
e6cc62c6 2799
10f2d63a 2800
b12915c1
VZ
2801fi
2802
5c6fa7d2 2803
e6cc62c6
VS
2804 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2805echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2806 no_cache=0
e6cc62c6
VS
2807
2808# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2809if test "${with_dmalloc+set}" = set; then
2810 withval="$with_dmalloc"
e6cc62c6 2811
c7a2bf27 2812 if test "$withval" = yes; then
b12915c1 2813 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2814 else
b12915c1 2815 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2816 fi
e6cc62c6 2817
c7a2bf27 2818else
e6cc62c6 2819
b12915c1 2820 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2821 if test "x$LINE" != x ; then
2822 eval "DEFAULT_$LINE"
2823 else
2824 no_cache=1
2825 fi
2826
b12915c1 2827 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2828
e6cc62c6 2829fi;
c7a2bf27 2830
b12915c1 2831 eval "$ac_cv_use_dmalloc"
c7a2bf27 2832 if test "$no_cache" != 1; then
b12915c1 2833 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2834 fi
2835
b12915c1 2836 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2837 echo "$as_me:$LINENO: result: yes" >&5
2838echo "${ECHO_T}yes" >&6
c7a2bf27 2839 else
e6cc62c6
VS
2840 echo "$as_me:$LINENO: result: no" >&5
2841echo "${ECHO_T}no" >&6
c7a2bf27 2842 fi
c7a2bf27 2843
e6cc62c6
VS
2844
2845 echo "$as_me:$LINENO: checking for --with-regex" >&5
2846echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2847 no_cache=0
e6cc62c6
VS
2848
2849# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2850if test "${with_regex+set}" = set; then
2851 withval="$with_regex"
e6cc62c6 2852
3e44f09d
VZ
2853 if test "$withval" = yes; then
2854 ac_cv_use_regex='wxUSE_REGEX=yes'
2855 elif test "$withval" = no; then
2856 ac_cv_use_regex='wxUSE_REGEX=no'
2857 elif test "$withval" = sys; then
2858 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2859 elif test "$withval" = builtin; then
2860 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2861 else
e6cc62c6
VS
2862 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2863echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2864 { (exit 1); exit 1; }; }
3e44f09d 2865 fi
e6cc62c6 2866
3e44f09d 2867else
e6cc62c6 2868
3e44f09d
VZ
2869 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2870 if test "x$LINE" != x ; then
2871 eval "DEFAULT_$LINE"
2872 else
2873 no_cache=1
2874 fi
2875
2876 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2877
e6cc62c6 2878fi;
3e44f09d
VZ
2879
2880 eval "$ac_cv_use_regex"
2881 if test "$no_cache" != 1; then
2882 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2883 fi
2884
2885 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2886 echo "$as_me:$LINENO: result: yes" >&5
2887echo "${ECHO_T}yes" >&6
3e44f09d 2888 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2889 echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
3e44f09d 2891 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2892 echo "$as_me:$LINENO: result: system version" >&5
2893echo "${ECHO_T}system version" >&6
4f14bcd8 2894 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2895 echo "$as_me:$LINENO: result: builtin version" >&5
2896echo "${ECHO_T}builtin version" >&6
3e44f09d 2897 else
e6cc62c6
VS
2898 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2899echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2900 { (exit 1); exit 1; }; }
3e44f09d 2901 fi
3e44f09d 2902
e6cc62c6
VS
2903
2904 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2905echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2906 no_cache=0
e6cc62c6
VS
2907
2908# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2909if test "${with_zlib+set}" = set; then
2910 withval="$with_zlib"
e6cc62c6 2911
10f2d63a 2912 if test "$withval" = yes; then
b12915c1 2913 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2914 elif test "$withval" = no; then
b12915c1 2915 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2916 elif test "$withval" = sys; then
2917 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2918 elif test "$withval" = builtin; then
2919 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2920 else
e6cc62c6
VS
2921 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2922echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2923 { (exit 1); exit 1; }; }
10f2d63a 2924 fi
e6cc62c6 2925
10f2d63a 2926else
e6cc62c6 2927
b12915c1 2928 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2929 if test "x$LINE" != x ; then
2930 eval "DEFAULT_$LINE"
2931 else
2932 no_cache=1
2933 fi
2934
b12915c1 2935 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2936
e6cc62c6 2937fi;
10f2d63a 2938
b12915c1 2939 eval "$ac_cv_use_zlib"
10f2d63a 2940 if test "$no_cache" != 1; then
b12915c1 2941 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2942 fi
2943
b12915c1 2944 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2945 echo "$as_me:$LINENO: result: yes" >&5
2946echo "${ECHO_T}yes" >&6
422107f9 2947 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2948 echo "$as_me:$LINENO: result: no" >&5
2949echo "${ECHO_T}no" >&6
422107f9 2950 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2951 echo "$as_me:$LINENO: result: system version" >&5
2952echo "${ECHO_T}system version" >&6
4f14bcd8 2953 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2954 echo "$as_me:$LINENO: result: builtin version" >&5
2955echo "${ECHO_T}builtin version" >&6
422107f9 2956 else
e6cc62c6
VS
2957 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2958echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2959 { (exit 1); exit 1; }; }
10f2d63a 2960 fi
10f2d63a 2961
e6cc62c6
VS
2962
2963 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2964echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2965 no_cache=0
e6cc62c6
VS
2966
2967# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2968if test "${with_odbc+set}" = set; then
2969 withval="$with_odbc"
e6cc62c6 2970
10f2d63a
VZ
2971 if test "$withval" = yes; then
2972 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2973 elif test "$withval" = no; then
10f2d63a 2974 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2975 elif test "$withval" = sys; then
2976 ac_cv_use_odbc='wxUSE_ODBC=sys'
2977 elif test "$withval" = builtin; then
2978 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2979 else
e6cc62c6
VS
2980 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2981echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2982 { (exit 1); exit 1; }; }
10f2d63a 2983 fi
e6cc62c6 2984
10f2d63a 2985else
e6cc62c6 2986
10f2d63a
VZ
2987 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2988 if test "x$LINE" != x ; then
2989 eval "DEFAULT_$LINE"
2990 else
2991 no_cache=1
2992 fi
2993
2994 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 2995
e6cc62c6 2996fi;
10f2d63a
VZ
2997
2998 eval "$ac_cv_use_odbc"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3004 echo "$as_me:$LINENO: result: yes" >&5
3005echo "${ECHO_T}yes" >&6
8647bec6 3006 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3007 echo "$as_me:$LINENO: result: no" >&5
3008echo "${ECHO_T}no" >&6
8647bec6 3009 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3010 echo "$as_me:$LINENO: result: system version" >&5
3011echo "${ECHO_T}system version" >&6
8647bec6 3012 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3013 echo "$as_me:$LINENO: result: builtin version" >&5
3014echo "${ECHO_T}builtin version" >&6
8647bec6 3015 else
e6cc62c6
VS
3016 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3017echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3018 { (exit 1); exit 1; }; }
10f2d63a 3019 fi
e6cc62c6 3020
52127426 3021
672abd7a
VS
3022 echo "$as_me:$LINENO: checking for --with-expat" >&5
3023echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3024 no_cache=0
3025
3026# Check whether --with-expat or --without-expat was given.
3027if test "${with_expat+set}" = set; then
3028 withval="$with_expat"
3029
3030 if test "$withval" = yes; then
3031 ac_cv_use_expat='wxUSE_EXPAT=yes'
3032 elif test "$withval" = no; then
3033 ac_cv_use_expat='wxUSE_EXPAT=no'
3034 elif test "$withval" = sys; then
3035 ac_cv_use_expat='wxUSE_EXPAT=sys'
3036 elif test "$withval" = builtin; then
3037 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3038 else
3039 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3040echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3041 { (exit 1); exit 1; }; }
3042 fi
3043
3044else
3045
3046 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3047 if test "x$LINE" != x ; then
3048 eval "DEFAULT_$LINE"
3049 else
3050 no_cache=1
3051 fi
3052
3053 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3054
3055fi;
3056
3057 eval "$ac_cv_use_expat"
3058 if test "$no_cache" != 1; then
3059 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3060 fi
3061
3062 if test "$wxUSE_EXPAT" = yes; then
3063 echo "$as_me:$LINENO: result: yes" >&5
3064echo "${ECHO_T}yes" >&6
3065 elif test "$wxUSE_EXPAT" = no; then
3066 echo "$as_me:$LINENO: result: no" >&5
3067echo "${ECHO_T}no" >&6
3068 elif test "$wxUSE_EXPAT" = sys; then
3069 echo "$as_me:$LINENO: result: system version" >&5
3070echo "${ECHO_T}system version" >&6
3071 elif test "$wxUSE_EXPAT" = builtin; then
3072 echo "$as_me:$LINENO: result: builtin version" >&5
3073echo "${ECHO_T}builtin version" >&6
3074 else
3075 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3076echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3077 { (exit 1); exit 1; }; }
3078 fi
3079
3080
8284b0c5
MB
3081
3082
5005acfe 3083 enablestring=
e6cc62c6
VS
3084 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3085echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3086 no_cache=0
3087 # Check whether --enable-shared or --disable-shared was given.
3088if test "${enable_shared+set}" = set; then
3089 enableval="$enable_shared"
e6cc62c6 3090
10f2d63a
VZ
3091 if test "$enableval" = yes; then
3092 ac_cv_use_shared='wxUSE_SHARED=yes'
3093 else
3094 ac_cv_use_shared='wxUSE_SHARED=no'
3095 fi
e6cc62c6 3096
10f2d63a 3097else
e6cc62c6 3098
10f2d63a
VZ
3099 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3100 if test "x$LINE" != x ; then
3101 eval "DEFAULT_$LINE"
3102 else
3103 no_cache=1
3104 fi
3105
3106 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3107
e6cc62c6 3108fi;
10f2d63a
VZ
3109
3110 eval "$ac_cv_use_shared"
3111 if test "$no_cache" != 1; then
3112 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3113 fi
3114
3115 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3116 echo "$as_me:$LINENO: result: yes" >&5
3117echo "${ECHO_T}yes" >&6
10f2d63a 3118 else
e6cc62c6
VS
3119 echo "$as_me:$LINENO: result: no" >&5
3120echo "${ECHO_T}no" >&6
10f2d63a 3121 fi
e6cc62c6 3122
10f2d63a 3123
5005acfe 3124 enablestring=
e6cc62c6
VS
3125 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3126echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3127 no_cache=0
3128 # Check whether --enable-optimise or --disable-optimise was given.
3129if test "${enable_optimise+set}" = set; then
3130 enableval="$enable_optimise"
e6cc62c6 3131
10f2d63a
VZ
3132 if test "$enableval" = yes; then
3133 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3134 else
3135 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3136 fi
e6cc62c6 3137
10f2d63a 3138else
e6cc62c6 3139
10f2d63a
VZ
3140 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3141 if test "x$LINE" != x ; then
3142 eval "DEFAULT_$LINE"
3143 else
3144 no_cache=1
3145 fi
3146
3147 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3148
e6cc62c6 3149fi;
10f2d63a
VZ
3150
3151 eval "$ac_cv_use_optimise"
3152 if test "$no_cache" != 1; then
3153 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3154 fi
3155
3156 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3157 echo "$as_me:$LINENO: result: yes" >&5
3158echo "${ECHO_T}yes" >&6
10f2d63a 3159 else
e6cc62c6
VS
3160 echo "$as_me:$LINENO: result: no" >&5
3161echo "${ECHO_T}no" >&6
10f2d63a 3162 fi
e6cc62c6 3163
10f2d63a 3164
5005acfe 3165 enablestring=
e6cc62c6
VS
3166 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3167echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3168 no_cache=0
3169 # Check whether --enable-debug or --disable-debug was given.
3170if test "${enable_debug+set}" = set; then
3171 enableval="$enable_debug"
e6cc62c6 3172
10f2d63a
VZ
3173 if test "$enableval" = yes; then
3174 ac_cv_use_debug='wxUSE_DEBUG=yes'
3175 else
3176 ac_cv_use_debug='wxUSE_DEBUG=no'
3177 fi
e6cc62c6 3178
10f2d63a 3179else
e6cc62c6 3180
10f2d63a
VZ
3181 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3182 if test "x$LINE" != x ; then
3183 eval "DEFAULT_$LINE"
3184 else
3185 no_cache=1
3186 fi
3187
3188 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3189
e6cc62c6 3190fi;
10f2d63a
VZ
3191
3192 eval "$ac_cv_use_debug"
3193 if test "$no_cache" != 1; then
3194 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3195 fi
3196
3197 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3198 echo "$as_me:$LINENO: result: yes" >&5
3199echo "${ECHO_T}yes" >&6
10f2d63a 3200 else
e6cc62c6
VS
3201 echo "$as_me:$LINENO: result: no" >&5
3202echo "${ECHO_T}no" >&6
10f2d63a 3203 fi
e6cc62c6 3204
52127426 3205
df5168c4
MB
3206 enablestring=
3207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3208echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3209 no_cache=0
3210 # Check whether --enable-stl or --disable-stl was given.
3211if test "${enable_stl+set}" = set; then
3212 enableval="$enable_stl"
3213
3214 if test "$enableval" = yes; then
3215 ac_cv_use_stl='wxUSE_STL=yes'
3216 else
3217 ac_cv_use_stl='wxUSE_STL=no'
3218 fi
3219
3220else
3221
3222 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3223 if test "x$LINE" != x ; then
3224 eval "DEFAULT_$LINE"
3225 else
3226 no_cache=1
3227 fi
3228
3229 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3230
3231fi;
3232
3233 eval "$ac_cv_use_stl"
3234 if test "$no_cache" != 1; then
3235 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3236 fi
3237
3238 if test "$wxUSE_STL" = yes; then
3239 echo "$as_me:$LINENO: result: yes" >&5
3240echo "${ECHO_T}yes" >&6
3241 else
3242 echo "$as_me:$LINENO: result: no" >&5
3243echo "${ECHO_T}no" >&6
3244 fi
3245
3246
10f2d63a
VZ
3247if test "$wxUSE_DEBUG" = "yes"; then
3248 DEFAULT_wxUSE_DEBUG_FLAG=yes
3249 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3250 BUILD=debug
10f2d63a
VZ
3251elif test "$wxUSE_DEBUG" = "no"; then
3252 DEFAULT_wxUSE_DEBUG_FLAG=no
3253 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3254 BUILD=release
10f2d63a
VZ
3255fi
3256
8284b0c5 3257
5005acfe 3258 enablestring=
e6cc62c6
VS
3259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3260echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3261 no_cache=0
3262 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3263if test "${enable_debug_flag+set}" = set; then
3264 enableval="$enable_debug_flag"
e6cc62c6 3265
10f2d63a
VZ
3266 if test "$enableval" = yes; then
3267 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3268 else
3269 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3270 fi
e6cc62c6 3271
10f2d63a 3272else
e6cc62c6 3273
10f2d63a
VZ
3274 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3275 if test "x$LINE" != x ; then
3276 eval "DEFAULT_$LINE"
3277 else
3278 no_cache=1
3279 fi
3280
3281 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3282
e6cc62c6 3283fi;
10f2d63a
VZ
3284
3285 eval "$ac_cv_use_debug_flag"
3286 if test "$no_cache" != 1; then
3287 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3288 fi
3289
3290 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3291 echo "$as_me:$LINENO: result: yes" >&5
3292echo "${ECHO_T}yes" >&6
10f2d63a 3293 else
e6cc62c6
VS
3294 echo "$as_me:$LINENO: result: no" >&5
3295echo "${ECHO_T}no" >&6
10f2d63a 3296 fi
e6cc62c6 3297
10f2d63a 3298
5005acfe 3299 enablestring=
e6cc62c6
VS
3300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3301echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3302 no_cache=0
3303 # Check whether --enable-debug_info or --disable-debug_info was given.
3304if test "${enable_debug_info+set}" = set; then
3305 enableval="$enable_debug_info"
e6cc62c6 3306
10f2d63a
VZ
3307 if test "$enableval" = yes; then
3308 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3309 else
3310 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3311 fi
e6cc62c6 3312
10f2d63a 3313else
e6cc62c6 3314
10f2d63a
VZ
3315 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3316 if test "x$LINE" != x ; then
3317 eval "DEFAULT_$LINE"
3318 else
3319 no_cache=1
3320 fi
3321
3322 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3323
e6cc62c6 3324fi;
10f2d63a
VZ
3325
3326 eval "$ac_cv_use_debug_info"
3327 if test "$no_cache" != 1; then
3328 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3329 fi
3330
3331 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3332 echo "$as_me:$LINENO: result: yes" >&5
3333echo "${ECHO_T}yes" >&6
10f2d63a 3334 else
e6cc62c6
VS
3335 echo "$as_me:$LINENO: result: no" >&5
3336echo "${ECHO_T}no" >&6
10f2d63a 3337 fi
e6cc62c6 3338
10f2d63a 3339
5005acfe 3340 enablestring=
e6cc62c6
VS
3341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3342echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3343 no_cache=0
3344 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3345if test "${enable_debug_gdb+set}" = set; then
3346 enableval="$enable_debug_gdb"
e6cc62c6 3347
10f2d63a
VZ
3348 if test "$enableval" = yes; then
3349 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3350 else
3351 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3352 fi
e6cc62c6 3353
10f2d63a 3354else
e6cc62c6 3355
10f2d63a
VZ
3356 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3357 if test "x$LINE" != x ; then
3358 eval "DEFAULT_$LINE"
3359 else
3360 no_cache=1
3361 fi
3362
3363 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3364
e6cc62c6 3365fi;
10f2d63a
VZ
3366
3367 eval "$ac_cv_use_debug_gdb"
3368 if test "$no_cache" != 1; then
3369 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3370 fi
3371
3372 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3373 echo "$as_me:$LINENO: result: yes" >&5
3374echo "${ECHO_T}yes" >&6
10f2d63a 3375 else
e6cc62c6
VS
3376 echo "$as_me:$LINENO: result: no" >&5
3377echo "${ECHO_T}no" >&6
10f2d63a 3378 fi
e6cc62c6 3379
10f2d63a 3380
5005acfe 3381 enablestring=
e6cc62c6
VS
3382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3383echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3384 no_cache=0
3385 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3386if test "${enable_debug_cntxt+set}" = set; then
3387 enableval="$enable_debug_cntxt"
e6cc62c6 3388
10f2d63a
VZ
3389 if test "$enableval" = yes; then
3390 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3391 else
3392 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3393 fi
e6cc62c6 3394
10f2d63a 3395else
e6cc62c6 3396
10f2d63a
VZ
3397 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3398 if test "x$LINE" != x ; then
3399 eval "DEFAULT_$LINE"
3400 else
3401 no_cache=1
3402 fi
3403
3404 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3405
e6cc62c6 3406fi;
10f2d63a
VZ
3407
3408 eval "$ac_cv_use_debug_cntxt"
3409 if test "$no_cache" != 1; then
3410 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3411 fi
3412
3413 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3414 echo "$as_me:$LINENO: result: yes" >&5
3415echo "${ECHO_T}yes" >&6
10f2d63a 3416 else
e6cc62c6
VS
3417 echo "$as_me:$LINENO: result: no" >&5
3418echo "${ECHO_T}no" >&6
10f2d63a 3419 fi
e6cc62c6 3420
10f2d63a 3421
5005acfe 3422 enablestring=
e6cc62c6
VS
3423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3424echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3425 no_cache=0
3426 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3427if test "${enable_mem_tracing+set}" = set; then
3428 enableval="$enable_mem_tracing"
e6cc62c6 3429
10f2d63a
VZ
3430 if test "$enableval" = yes; then
3431 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3432 else
3433 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3434 fi
e6cc62c6 3435
10f2d63a 3436else
e6cc62c6 3437
10f2d63a
VZ
3438 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3439 if test "x$LINE" != x ; then
3440 eval "DEFAULT_$LINE"
3441 else
3442 no_cache=1
3443 fi
3444
3445 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3446
e6cc62c6 3447fi;
10f2d63a
VZ
3448
3449 eval "$ac_cv_use_mem_tracing"
3450 if test "$no_cache" != 1; then
3451 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3452 fi
3453
3454 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3455 echo "$as_me:$LINENO: result: yes" >&5
3456echo "${ECHO_T}yes" >&6
10f2d63a 3457 else
e6cc62c6
VS
3458 echo "$as_me:$LINENO: result: no" >&5
3459echo "${ECHO_T}no" >&6
10f2d63a 3460 fi
e6cc62c6 3461
10f2d63a 3462
5005acfe 3463 enablestring=
e6cc62c6
VS
3464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3465echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3466 no_cache=0
3467 # Check whether --enable-profile or --disable-profile was given.
3468if test "${enable_profile+set}" = set; then
3469 enableval="$enable_profile"
e6cc62c6 3470
10f2d63a
VZ
3471 if test "$enableval" = yes; then
3472 ac_cv_use_profile='wxUSE_PROFILE=yes'
3473 else
3474 ac_cv_use_profile='wxUSE_PROFILE=no'
3475 fi
e6cc62c6 3476
10f2d63a 3477else
e6cc62c6 3478
10f2d63a
VZ
3479 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3480 if test "x$LINE" != x ; then
3481 eval "DEFAULT_$LINE"
3482 else
3483 no_cache=1
3484 fi
3485
3486 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3487
e6cc62c6 3488fi;
10f2d63a
VZ
3489
3490 eval "$ac_cv_use_profile"
3491 if test "$no_cache" != 1; then
3492 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3493 fi
3494
3495 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3496 echo "$as_me:$LINENO: result: yes" >&5
3497echo "${ECHO_T}yes" >&6
10f2d63a 3498 else
e6cc62c6
VS
3499 echo "$as_me:$LINENO: result: no" >&5
3500echo "${ECHO_T}no" >&6
10f2d63a 3501 fi
e6cc62c6 3502
10f2d63a 3503
5005acfe 3504 enablestring=
e6cc62c6
VS
3505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3506echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3507 no_cache=0
3508 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3509if test "${enable_no_rtti+set}" = set; then
3510 enableval="$enable_no_rtti"
e6cc62c6 3511
10f2d63a
VZ
3512 if test "$enableval" = yes; then
3513 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3514 else
3515 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3516 fi
e6cc62c6 3517
10f2d63a 3518else
e6cc62c6 3519
10f2d63a
VZ
3520 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3521 if test "x$LINE" != x ; then
3522 eval "DEFAULT_$LINE"
3523 else
3524 no_cache=1
3525 fi
3526
3527 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3528
e6cc62c6 3529fi;
10f2d63a
VZ
3530
3531 eval "$ac_cv_use_no_rtti"
3532 if test "$no_cache" != 1; then
3533 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3534 fi
3535
3536 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3537 echo "$as_me:$LINENO: result: yes" >&5
3538echo "${ECHO_T}yes" >&6
10f2d63a 3539 else
e6cc62c6
VS
3540 echo "$as_me:$LINENO: result: no" >&5
3541echo "${ECHO_T}no" >&6
10f2d63a 3542 fi
e6cc62c6 3543
10f2d63a 3544
5005acfe 3545 enablestring=
e6cc62c6
VS
3546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3547echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3548 no_cache=0
3549 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3550if test "${enable_no_exceptions+set}" = set; then
3551 enableval="$enable_no_exceptions"
e6cc62c6 3552
10f2d63a
VZ
3553 if test "$enableval" = yes; then
3554 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3555 else
3556 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3557 fi
e6cc62c6 3558
10f2d63a 3559else
e6cc62c6 3560
10f2d63a
VZ
3561 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3562 if test "x$LINE" != x ; then
3563 eval "DEFAULT_$LINE"
3564 else
3565 no_cache=1
3566 fi
3567
3568 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3569
e6cc62c6 3570fi;
10f2d63a
VZ
3571
3572 eval "$ac_cv_use_no_exceptions"
3573 if test "$no_cache" != 1; then
3574 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3575 fi
3576
3577 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3578 echo "$as_me:$LINENO: result: yes" >&5
3579echo "${ECHO_T}yes" >&6
10f2d63a 3580 else
e6cc62c6
VS
3581 echo "$as_me:$LINENO: result: no" >&5
3582echo "${ECHO_T}no" >&6
10f2d63a 3583 fi
e6cc62c6 3584
10f2d63a 3585
5005acfe 3586 enablestring=
e6cc62c6
VS
3587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3588echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3589 no_cache=0
3590 # Check whether --enable-permissive or --disable-permissive was given.
3591if test "${enable_permissive+set}" = set; then
3592 enableval="$enable_permissive"
e6cc62c6 3593
10f2d63a
VZ
3594 if test "$enableval" = yes; then
3595 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3596 else
3597 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3598 fi
e6cc62c6 3599
10f2d63a 3600else
e6cc62c6 3601
10f2d63a
VZ
3602 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3603 if test "x$LINE" != x ; then
3604 eval "DEFAULT_$LINE"
3605 else
3606 no_cache=1
3607 fi
3608
3609 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3610
e6cc62c6 3611fi;
10f2d63a
VZ
3612
3613 eval "$ac_cv_use_permissive"
3614 if test "$no_cache" != 1; then
3615 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3616 fi
3617
3618 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3619 echo "$as_me:$LINENO: result: yes" >&5
3620echo "${ECHO_T}yes" >&6
10f2d63a 3621 else
e6cc62c6
VS
3622 echo "$as_me:$LINENO: result: no" >&5
3623echo "${ECHO_T}no" >&6
10f2d63a 3624 fi
e6cc62c6 3625
10f2d63a 3626
5005acfe 3627 enablestring=
e6cc62c6
VS
3628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3629echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3630 no_cache=0
3631 # Check whether --enable-no_deps or --disable-no_deps was given.
3632if test "${enable_no_deps+set}" = set; then
3633 enableval="$enable_no_deps"
e6cc62c6 3634
10f2d63a
VZ
3635 if test "$enableval" = yes; then
3636 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3637 else
3638 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3639 fi
e6cc62c6 3640
10f2d63a 3641else
e6cc62c6 3642
10f2d63a
VZ
3643 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3651
e6cc62c6 3652fi;
10f2d63a
VZ
3653
3654 eval "$ac_cv_use_no_deps"
3655 if test "$no_cache" != 1; then
3656 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3657 fi
3658
3659 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3660 echo "$as_me:$LINENO: result: yes" >&5
3661echo "${ECHO_T}yes" >&6
10f2d63a 3662 else
e6cc62c6
VS
3663 echo "$as_me:$LINENO: result: no" >&5
3664echo "${ECHO_T}no" >&6
10f2d63a 3665 fi
e6cc62c6 3666
52127426 3667
8284b0c5 3668
65d8ef1e 3669 enablestring=
e6cc62c6
VS
3670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3671echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3672 no_cache=0
3673 # Check whether --enable-compat22 or --disable-compat22 was given.
3674if test "${enable_compat22+set}" = set; then
3675 enableval="$enable_compat22"
e6cc62c6 3676
54276ccf
VZ
3677 if test "$enableval" = yes; then
3678 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3679 else
3680 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3681 fi
e6cc62c6 3682
54276ccf 3683else
e6cc62c6 3684
54276ccf
VZ
3685 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3686 if test "x$LINE" != x ; then
3687 eval "DEFAULT_$LINE"
3688 else
3689 no_cache=1
3690 fi
3691
3692 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3693
e6cc62c6 3694fi;
54276ccf
VZ
3695
3696 eval "$ac_cv_use_compat22"
3697 if test "$no_cache" != 1; then
3698 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3699 fi
3700
3701 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3702 echo "$as_me:$LINENO: result: yes" >&5
3703echo "${ECHO_T}yes" >&6
54276ccf 3704 else
e6cc62c6
VS
3705 echo "$as_me:$LINENO: result: no" >&5
3706echo "${ECHO_T}no" >&6
54276ccf 3707 fi
e6cc62c6 3708
54276ccf 3709
65d8ef1e 3710 enablestring=disable
e6cc62c6
VS
3711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3712echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3713 no_cache=0
3714 # Check whether --enable-compat24 or --disable-compat24 was given.
3715if test "${enable_compat24+set}" = set; then
3716 enableval="$enable_compat24"
e6cc62c6 3717
65d8ef1e
VS
3718 if test "$enableval" = yes; then
3719 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3720 else
3721 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3722 fi
e6cc62c6 3723
65d8ef1e 3724else
e6cc62c6 3725
65d8ef1e
VS
3726 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3727 if test "x$LINE" != x ; then
3728 eval "DEFAULT_$LINE"
3729 else
3730 no_cache=1
3731 fi
3732
3733 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3734
e6cc62c6 3735fi;
65d8ef1e
VS
3736
3737 eval "$ac_cv_use_compat24"
3738 if test "$no_cache" != 1; then
3739 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3740 fi
3741
3742 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3743 echo "$as_me:$LINENO: result: yes" >&5
3744echo "${ECHO_T}yes" >&6
65d8ef1e 3745 else
e6cc62c6
VS
3746 echo "$as_me:$LINENO: result: no" >&5
3747echo "${ECHO_T}no" >&6
65d8ef1e 3748 fi
e6cc62c6 3749
65d8ef1e 3750
3bd8fb5f
RD
3751# Check whether --enable-rpath or --disable-rpath was given.
3752if test "${enable_rpath+set}" = set; then
3753 enableval="$enable_rpath"
3754 wxRPATH_DIR="$enableval"
e6cc62c6 3755fi;
3bd8fb5f
RD
3756
3757if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3758 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3759fi
3760
8284b0c5
MB
3761
3762
3763
5005acfe 3764 enablestring=
e6cc62c6
VS
3765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3766echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3767 no_cache=0
3768 # Check whether --enable-intl or --disable-intl was given.
3769if test "${enable_intl+set}" = set; then
3770 enableval="$enable_intl"
e6cc62c6 3771
10f2d63a
VZ
3772 if test "$enableval" = yes; then
3773 ac_cv_use_intl='wxUSE_INTL=yes'
3774 else
3775 ac_cv_use_intl='wxUSE_INTL=no'
3776 fi
e6cc62c6 3777
10f2d63a 3778else
e6cc62c6 3779
10f2d63a
VZ
3780 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3781 if test "x$LINE" != x ; then
3782 eval "DEFAULT_$LINE"
3783 else
3784 no_cache=1
3785 fi
3786
3787 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3788
e6cc62c6 3789fi;
10f2d63a
VZ
3790
3791 eval "$ac_cv_use_intl"
3792 if test "$no_cache" != 1; then
3793 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3794 fi
3795
3796 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3797 echo "$as_me:$LINENO: result: yes" >&5
3798echo "${ECHO_T}yes" >&6
10f2d63a 3799 else
e6cc62c6
VS
3800 echo "$as_me:$LINENO: result: no" >&5
3801echo "${ECHO_T}no" >&6
10f2d63a 3802 fi
e6cc62c6 3803
10f2d63a 3804
5005acfe 3805 enablestring=
e6cc62c6
VS
3806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3807echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3808 no_cache=0
3809 # Check whether --enable-config or --disable-config was given.
3810if test "${enable_config+set}" = set; then
3811 enableval="$enable_config"
e6cc62c6 3812
10f2d63a
VZ
3813 if test "$enableval" = yes; then
3814 ac_cv_use_config='wxUSE_CONFIG=yes'
3815 else
3816 ac_cv_use_config='wxUSE_CONFIG=no'
3817 fi
e6cc62c6 3818
10f2d63a 3819else
e6cc62c6 3820
10f2d63a
VZ
3821 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3822 if test "x$LINE" != x ; then
3823 eval "DEFAULT_$LINE"
3824 else
3825 no_cache=1
3826 fi
3827
3828 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3829
e6cc62c6 3830fi;
10f2d63a
VZ
3831
3832 eval "$ac_cv_use_config"
3833 if test "$no_cache" != 1; then
3834 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3835 fi
3836
3837 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3838 echo "$as_me:$LINENO: result: yes" >&5
3839echo "${ECHO_T}yes" >&6
10f2d63a 3840 else
e6cc62c6
VS
3841 echo "$as_me:$LINENO: result: no" >&5
3842echo "${ECHO_T}no" >&6
10f2d63a 3843 fi
e6cc62c6 3844
52127426 3845
8284b0c5 3846
5005acfe 3847 enablestring=
e6cc62c6
VS
3848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3849echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3850 no_cache=0
3851 # Check whether --enable-protocols or --disable-protocols was given.
3852if test "${enable_protocols+set}" = set; then
3853 enableval="$enable_protocols"
e6cc62c6 3854
a1622950
VZ
3855 if test "$enableval" = yes; then
3856 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3857 else
3858 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3859 fi
e6cc62c6 3860
a1622950 3861else
e6cc62c6 3862
a1622950
VZ
3863 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3864 if test "x$LINE" != x ; then
3865 eval "DEFAULT_$LINE"
3866 else
3867 no_cache=1
3868 fi
3869
3870 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3871
e6cc62c6 3872fi;
a1622950
VZ
3873
3874 eval "$ac_cv_use_protocols"
3875 if test "$no_cache" != 1; then
3876 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3877 fi
3878
3879 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3880 echo "$as_me:$LINENO: result: yes" >&5
3881echo "${ECHO_T}yes" >&6
a1622950 3882 else
e6cc62c6
VS
3883 echo "$as_me:$LINENO: result: no" >&5
3884echo "${ECHO_T}no" >&6
a1622950 3885 fi
e6cc62c6 3886
a1622950 3887
5005acfe 3888 enablestring=
e6cc62c6
VS
3889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3890echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3891 no_cache=0
3892 # Check whether --enable-ftp or --disable-ftp was given.
3893if test "${enable_ftp+set}" = set; then
3894 enableval="$enable_ftp"
e6cc62c6 3895
a1622950
VZ
3896 if test "$enableval" = yes; then
3897 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3898 else
3899 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3900 fi
e6cc62c6 3901
a1622950 3902else
e6cc62c6 3903
a1622950
VZ
3904 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3905 if test "x$LINE" != x ; then
3906 eval "DEFAULT_$LINE"
3907 else
3908 no_cache=1
3909 fi
3910
3911 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3912
e6cc62c6 3913fi;
a1622950
VZ
3914
3915 eval "$ac_cv_use_ftp"
3916 if test "$no_cache" != 1; then
3917 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3918 fi
3919
3920 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3921 echo "$as_me:$LINENO: result: yes" >&5
3922echo "${ECHO_T}yes" >&6
a1622950 3923 else
e6cc62c6
VS
3924 echo "$as_me:$LINENO: result: no" >&5
3925echo "${ECHO_T}no" >&6
a1622950 3926 fi
e6cc62c6 3927
a1622950 3928
5005acfe 3929 enablestring=
e6cc62c6
VS
3930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3931echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3932 no_cache=0
3933 # Check whether --enable-http or --disable-http was given.
3934if test "${enable_http+set}" = set; then
3935 enableval="$enable_http"
e6cc62c6 3936
a1622950
VZ
3937 if test "$enableval" = yes; then
3938 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3939 else
3940 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3941 fi
e6cc62c6 3942
a1622950 3943else
e6cc62c6 3944
a1622950
VZ
3945 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3946 if test "x$LINE" != x ; then
3947 eval "DEFAULT_$LINE"
3948 else
3949 no_cache=1
3950 fi
3951
3952 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3953
e6cc62c6 3954fi;
a1622950
VZ
3955
3956 eval "$ac_cv_use_http"
3957 if test "$no_cache" != 1; then
3958 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3959 fi
3960
3961 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
3962 echo "$as_me:$LINENO: result: yes" >&5
3963echo "${ECHO_T}yes" >&6
a1622950 3964 else
e6cc62c6
VS
3965 echo "$as_me:$LINENO: result: no" >&5
3966echo "${ECHO_T}no" >&6
a1622950 3967 fi
e6cc62c6 3968
a1622950 3969
5005acfe 3970 enablestring=
e6cc62c6
VS
3971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
3972echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
3973 no_cache=0
3974 # Check whether --enable-fileproto or --disable-fileproto was given.
3975if test "${enable_fileproto+set}" = set; then
3976 enableval="$enable_fileproto"
e6cc62c6 3977
a1622950
VZ
3978 if test "$enableval" = yes; then
3979 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3980 else
3981 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3982 fi
e6cc62c6 3983
a1622950 3984else
e6cc62c6 3985
a1622950
VZ
3986 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3987 if test "x$LINE" != x ; then
3988 eval "DEFAULT_$LINE"
3989 else
3990 no_cache=1
3991 fi
3992
3993 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 3994
e6cc62c6 3995fi;
a1622950
VZ
3996
3997 eval "$ac_cv_use_fileproto"
3998 if test "$no_cache" != 1; then
3999 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4000 fi
4001
4002 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4003 echo "$as_me:$LINENO: result: yes" >&5
4004echo "${ECHO_T}yes" >&6
a1622950 4005 else
e6cc62c6
VS
4006 echo "$as_me:$LINENO: result: no" >&5
4007echo "${ECHO_T}no" >&6
a1622950 4008 fi
e6cc62c6 4009
a1622950 4010
5005acfe 4011 enablestring=
e6cc62c6
VS
4012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4013echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4014 no_cache=0
4015 # Check whether --enable-sockets or --disable-sockets was given.
4016if test "${enable_sockets+set}" = set; then
4017 enableval="$enable_sockets"
e6cc62c6 4018
10f2d63a
VZ
4019 if test "$enableval" = yes; then
4020 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4021 else
4022 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4023 fi
e6cc62c6 4024
10f2d63a 4025else
e6cc62c6 4026
10f2d63a
VZ
4027 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4028 if test "x$LINE" != x ; then
4029 eval "DEFAULT_$LINE"
4030 else
4031 no_cache=1
4032 fi
4033
4034 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4035
e6cc62c6 4036fi;
10f2d63a
VZ
4037
4038 eval "$ac_cv_use_sockets"
4039 if test "$no_cache" != 1; then
4040 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4041 fi
4042
4043 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4044 echo "$as_me:$LINENO: result: yes" >&5
4045echo "${ECHO_T}yes" >&6
10f2d63a 4046 else
e6cc62c6
VS
4047 echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6
10f2d63a 4049 fi
e6cc62c6 4050
8284b0c5 4051
5005acfe 4052 enablestring=
e6cc62c6
VS
4053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4054echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4055 no_cache=0
4056 # Check whether --enable-ole or --disable-ole was given.
4057if test "${enable_ole+set}" = set; then
4058 enableval="$enable_ole"
e6cc62c6 4059
3bce6687
JS
4060 if test "$enableval" = yes; then
4061 ac_cv_use_ole='wxUSE_OLE=yes'
4062 else
4063 ac_cv_use_ole='wxUSE_OLE=no'
4064 fi
e6cc62c6 4065
3bce6687 4066else
e6cc62c6 4067
3bce6687
JS
4068 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4069 if test "x$LINE" != x ; then
4070 eval "DEFAULT_$LINE"
4071 else
4072 no_cache=1
4073 fi
4074
4075 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4076
e6cc62c6 4077fi;
3bce6687
JS
4078
4079 eval "$ac_cv_use_ole"
4080 if test "$no_cache" != 1; then
4081 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4082 fi
4083
4084 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4085 echo "$as_me:$LINENO: result: yes" >&5
4086echo "${ECHO_T}yes" >&6
3bce6687 4087 else
e6cc62c6
VS
4088 echo "$as_me:$LINENO: result: no" >&5
4089echo "${ECHO_T}no" >&6
3bce6687 4090 fi
e6cc62c6 4091
3bce6687 4092
5005acfe 4093 enablestring=
e6cc62c6
VS
4094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4095echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4096 no_cache=0
4097 # Check whether --enable-dataobj or --disable-dataobj was given.
4098if test "${enable_dataobj+set}" = set; then
4099 enableval="$enable_dataobj"
e6cc62c6 4100
3bce6687
JS
4101 if test "$enableval" = yes; then
4102 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4103 else
4104 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4105 fi
e6cc62c6 4106
3bce6687 4107else
e6cc62c6 4108
3bce6687
JS
4109 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4110 if test "x$LINE" != x ; then
4111 eval "DEFAULT_$LINE"
4112 else
4113 no_cache=1
4114 fi
4115
4116 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4117
e6cc62c6 4118fi;
3bce6687
JS
4119
4120 eval "$ac_cv_use_dataobj"
4121 if test "$no_cache" != 1; then
4122 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4123 fi
4124
4125 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4126 echo "$as_me:$LINENO: result: yes" >&5
4127echo "${ECHO_T}yes" >&6
3bce6687 4128 else
e6cc62c6
VS
4129 echo "$as_me:$LINENO: result: no" >&5
4130echo "${ECHO_T}no" >&6
3bce6687 4131 fi
e6cc62c6 4132
3bce6687 4133
52127426 4134
5005acfe 4135 enablestring=
e6cc62c6
VS
4136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4137echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4138 no_cache=0
eb4efbdc
VZ
4139 # Check whether --enable-ipc or --disable-ipc was given.
4140if test "${enable_ipc+set}" = set; then
4141 enableval="$enable_ipc"
e6cc62c6 4142
10f2d63a 4143 if test "$enableval" = yes; then
eb4efbdc 4144 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4145 else
eb4efbdc 4146 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4147 fi
e6cc62c6 4148
10f2d63a 4149else
e6cc62c6 4150
eb4efbdc 4151 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4152 if test "x$LINE" != x ; then
4153 eval "DEFAULT_$LINE"
4154 else
4155 no_cache=1
4156 fi
4157
eb4efbdc 4158 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4159
e6cc62c6 4160fi;
10f2d63a 4161
eb4efbdc 4162 eval "$ac_cv_use_ipc"
10f2d63a 4163 if test "$no_cache" != 1; then
eb4efbdc 4164 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4165 fi
4166
eb4efbdc 4167 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4168 echo "$as_me:$LINENO: result: yes" >&5
4169echo "${ECHO_T}yes" >&6
10f2d63a 4170 else
e6cc62c6
VS
4171 echo "$as_me:$LINENO: result: no" >&5
4172echo "${ECHO_T}no" >&6
10f2d63a 4173 fi
e6cc62c6 4174
52127426 4175
8284b0c5 4176
5005acfe 4177 enablestring=
e6cc62c6
VS
4178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4179echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
1e6feb95
VZ
4180 no_cache=0
4181 # Check whether --enable-cmdline or --disable-cmdline was given.
4182if test "${enable_cmdline+set}" = set; then
4183 enableval="$enable_cmdline"
e6cc62c6 4184
1e6feb95
VZ
4185 if test "$enableval" = yes; then
4186 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4187 else
4188 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4189 fi
e6cc62c6 4190
1e6feb95 4191else
e6cc62c6 4192
1e6feb95
VZ
4193 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4194 if test "x$LINE" != x ; then
4195 eval "DEFAULT_$LINE"
4196 else
4197 no_cache=1
4198 fi
4199
4200 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 4201
e6cc62c6 4202fi;
1e6feb95
VZ
4203
4204 eval "$ac_cv_use_cmdline"
4205 if test "$no_cache" != 1; then
4206 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4207 fi
4208
4209 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4210 echo "$as_me:$LINENO: result: yes" >&5
4211echo "${ECHO_T}yes" >&6
1e6feb95 4212 else
e6cc62c6
VS
4213 echo "$as_me:$LINENO: result: no" >&5
4214echo "${ECHO_T}no" >&6
1e6feb95 4215 fi
e6cc62c6 4216
1e6feb95 4217
5005acfe 4218 enablestring=
e6cc62c6
VS
4219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4220echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
1e6feb95
VZ
4221 no_cache=0
4222 # Check whether --enable-datetime or --disable-datetime was given.
4223if test "${enable_datetime+set}" = set; then
4224 enableval="$enable_datetime"
e6cc62c6 4225
1e6feb95
VZ
4226 if test "$enableval" = yes; then
4227 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4228 else
4229 ac_cv_use_datetime='wxUSE_DATETIME=no'
4230 fi
e6cc62c6 4231
1e6feb95 4232else
e6cc62c6 4233
1e6feb95
VZ
4234 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4235 if test "x$LINE" != x ; then
4236 eval "DEFAULT_$LINE"
4237 else
4238 no_cache=1
4239 fi
4240
4241 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 4242
e6cc62c6 4243fi;
1e6feb95
VZ
4244
4245 eval "$ac_cv_use_datetime"
4246 if test "$no_cache" != 1; then
4247 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4248 fi
4249
4250 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4251 echo "$as_me:$LINENO: result: yes" >&5
4252echo "${ECHO_T}yes" >&6
1e6feb95 4253 else
e6cc62c6
VS
4254 echo "$as_me:$LINENO: result: no" >&5
4255echo "${ECHO_T}no" >&6
1e6feb95 4256 fi
e6cc62c6 4257
1e6feb95 4258
5005acfe 4259 enablestring=
e6cc62c6
VS
4260 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4261echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
4262 no_cache=0
4263 # Check whether --enable-stopwatch or --disable-stopwatch was given.
4264if test "${enable_stopwatch+set}" = set; then
4265 enableval="$enable_stopwatch"
e6cc62c6 4266
1e6feb95
VZ
4267 if test "$enableval" = yes; then
4268 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4269 else
4270 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4271 fi
e6cc62c6 4272
1e6feb95 4273else
e6cc62c6 4274
1e6feb95
VZ
4275 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4276 if test "x$LINE" != x ; then
4277 eval "DEFAULT_$LINE"
4278 else
4279 no_cache=1
4280 fi
4281
4282 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 4283
e6cc62c6 4284fi;
1e6feb95
VZ
4285
4286 eval "$ac_cv_use_stopwatch"
4287 if test "$no_cache" != 1; then
4288 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4289 fi
4290
4291 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
4292 echo "$as_me:$LINENO: result: yes" >&5
4293echo "${ECHO_T}yes" >&6
1e6feb95 4294 else
e6cc62c6
VS
4295 echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6
1e6feb95 4297 fi
e6cc62c6 4298
1e6feb95 4299
5005acfe 4300 enablestring=
e6cc62c6
VS
4301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4302echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4303 no_cache=0
eb4efbdc
VZ
4304 # Check whether --enable-dialupman or --disable-dialupman was given.
4305if test "${enable_dialupman+set}" = set; then
4306 enableval="$enable_dialupman"
e6cc62c6 4307
10f2d63a 4308 if test "$enableval" = yes; then
eb4efbdc 4309 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4310 else
eb4efbdc 4311 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4312 fi
e6cc62c6 4313
10f2d63a 4314else
e6cc62c6 4315
eb4efbdc 4316 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4317 if test "x$LINE" != x ; then
4318 eval "DEFAULT_$LINE"
4319 else
4320 no_cache=1
4321 fi
4322
eb4efbdc 4323 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4324
e6cc62c6 4325fi;
10f2d63a 4326
eb4efbdc 4327 eval "$ac_cv_use_dialupman"
10f2d63a 4328 if test "$no_cache" != 1; then
eb4efbdc 4329 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4330 fi
4331
eb4efbdc 4332 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4333 echo "$as_me:$LINENO: result: yes" >&5
4334echo "${ECHO_T}yes" >&6
10f2d63a 4335 else
e6cc62c6
VS
4336 echo "$as_me:$LINENO: result: no" >&5
4337echo "${ECHO_T}no" >&6
10f2d63a 4338 fi
e6cc62c6 4339
10f2d63a 4340
5005acfe 4341 enablestring=
e6cc62c6
VS
4342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4343echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
4344 no_cache=0
4345 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4346if test "${enable_apple_ieee+set}" = set; then
4347 enableval="$enable_apple_ieee"
e6cc62c6 4348
10f2d63a
VZ
4349 if test "$enableval" = yes; then
4350 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4351 else
4352 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4353 fi
e6cc62c6 4354
10f2d63a 4355else
e6cc62c6 4356
10f2d63a
VZ
4357 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4358 if test "x$LINE" != x ; then
4359 eval "DEFAULT_$LINE"
4360 else
4361 no_cache=1
4362 fi
4363
4364 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4365
e6cc62c6 4366fi;
10f2d63a
VZ
4367
4368 eval "$ac_cv_use_apple_ieee"
4369 if test "$no_cache" != 1; then
4370 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4371 fi
4372
4373 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4374 echo "$as_me:$LINENO: result: yes" >&5
4375echo "${ECHO_T}yes" >&6
10f2d63a 4376 else
e6cc62c6
VS
4377 echo "$as_me:$LINENO: result: no" >&5
4378echo "${ECHO_T}no" >&6
10f2d63a 4379 fi
e6cc62c6 4380
10f2d63a 4381
5005acfe 4382 enablestring=
e6cc62c6
VS
4383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4384echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
10f2d63a 4385 no_cache=0
1e6feb95
VZ
4386 # Check whether --enable-timer or --disable-timer was given.
4387if test "${enable_timer+set}" = set; then
4388 enableval="$enable_timer"
e6cc62c6 4389
10f2d63a 4390 if test "$enableval" = yes; then
1e6feb95 4391 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 4392 else
1e6feb95 4393 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 4394 fi
e6cc62c6 4395
10f2d63a 4396else
e6cc62c6 4397
1e6feb95 4398 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
4399 if test "x$LINE" != x ; then
4400 eval "DEFAULT_$LINE"
4401 else
4402 no_cache=1
4403 fi
4404
1e6feb95 4405 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 4406
e6cc62c6 4407fi;
10f2d63a 4408
1e6feb95 4409 eval "$ac_cv_use_timer"
10f2d63a 4410 if test "$no_cache" != 1; then
1e6feb95 4411 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4412 fi
4413
1e6feb95 4414 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
4415 echo "$as_me:$LINENO: result: yes" >&5
4416echo "${ECHO_T}yes" >&6
10f2d63a 4417 else
e6cc62c6
VS
4418 echo "$as_me:$LINENO: result: no" >&5
4419echo "${ECHO_T}no" >&6
10f2d63a 4420 fi
e6cc62c6 4421
10f2d63a 4422
5005acfe 4423 enablestring=
e6cc62c6
VS
4424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4425echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
10f2d63a
VZ
4426 no_cache=0
4427 # Check whether --enable-wave or --disable-wave was given.
4428if test "${enable_wave+set}" = set; then
4429 enableval="$enable_wave"
e6cc62c6 4430
10f2d63a
VZ
4431 if test "$enableval" = yes; then
4432 ac_cv_use_wave='wxUSE_WAVE=yes'
4433 else
4434 ac_cv_use_wave='wxUSE_WAVE=no'
4435 fi
e6cc62c6 4436
10f2d63a 4437else
e6cc62c6 4438
10f2d63a
VZ
4439 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4440 if test "x$LINE" != x ; then
4441 eval "DEFAULT_$LINE"
4442 else
4443 no_cache=1
4444 fi
4445
4446 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 4447
e6cc62c6 4448fi;
10f2d63a
VZ
4449
4450 eval "$ac_cv_use_wave"
4451 if test "$no_cache" != 1; then
4452 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4453 fi
4454
4455 if test "$wxUSE_WAVE" = yes; then
e6cc62c6
VS
4456 echo "$as_me:$LINENO: result: yes" >&5
4457echo "${ECHO_T}yes" >&6
10f2d63a 4458 else
e6cc62c6
VS
4459 echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6
10f2d63a 4461 fi
e6cc62c6 4462
10f2d63a 4463
5005acfe 4464 enablestring=
e6cc62c6
VS
4465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4466echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
10f2d63a
VZ
4467 no_cache=0
4468 # Check whether --enable-fraction or --disable-fraction was given.
4469if test "${enable_fraction+set}" = set; then
4470 enableval="$enable_fraction"
e6cc62c6 4471
10f2d63a
VZ
4472 if test "$enableval" = yes; then
4473 ac_cv_use_fraction='wxUSE_FRACTION=yes'
4474 else
4475 ac_cv_use_fraction='wxUSE_FRACTION=no'
4476 fi
e6cc62c6 4477
10f2d63a 4478else
e6cc62c6 4479
10f2d63a
VZ
4480 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4481 if test "x$LINE" != x ; then
4482 eval "DEFAULT_$LINE"
4483 else
4484 no_cache=1
4485 fi
4486
4487 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 4488
e6cc62c6 4489fi;
10f2d63a
VZ
4490
4491 eval "$ac_cv_use_fraction"
4492 if test "$no_cache" != 1; then
4493 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4494 fi
4495
4496 if test "$wxUSE_FRACTION" = yes; then
e6cc62c6
VS
4497 echo "$as_me:$LINENO: result: yes" >&5
4498echo "${ECHO_T}yes" >&6
10f2d63a 4499 else
e6cc62c6
VS
4500 echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6
10f2d63a 4502 fi
e6cc62c6 4503
10f2d63a 4504
5005acfe 4505 enablestring=
e6cc62c6
VS
4506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4507echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4508 no_cache=0
4509 # Check whether --enable-dynlib or --disable-dynlib was given.
4510if test "${enable_dynlib+set}" = set; then
4511 enableval="$enable_dynlib"
e6cc62c6 4512
10f2d63a
VZ
4513 if test "$enableval" = yes; then
4514 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4515 else
4516 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4517 fi
e6cc62c6 4518
10f2d63a 4519else
e6cc62c6 4520
10f2d63a
VZ
4521 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4522 if test "x$LINE" != x ; then
4523 eval "DEFAULT_$LINE"
4524 else
4525 no_cache=1
4526 fi
4527
4528 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4529
e6cc62c6 4530fi;
10f2d63a
VZ
4531
4532 eval "$ac_cv_use_dynlib"
4533 if test "$no_cache" != 1; then
4534 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4535 fi
4536
4537 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4538 echo "$as_me:$LINENO: result: yes" >&5
4539echo "${ECHO_T}yes" >&6
10f2d63a 4540 else
e6cc62c6
VS
4541 echo "$as_me:$LINENO: result: no" >&5
4542echo "${ECHO_T}no" >&6
10f2d63a 4543 fi
e6cc62c6 4544
10f2d63a 4545
5005acfe 4546 enablestring=
e6cc62c6
VS
4547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4548echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4549 no_cache=0
4550 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4551if test "${enable_dynamicloader+set}" = set; then
4552 enableval="$enable_dynamicloader"
e6cc62c6 4553
0b9ab0bd
RL
4554 if test "$enableval" = yes; then
4555 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4556 else
4557 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4558 fi
e6cc62c6 4559
0b9ab0bd 4560else
e6cc62c6 4561
0b9ab0bd
RL
4562 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4563 if test "x$LINE" != x ; then
4564 eval "DEFAULT_$LINE"
4565 else
4566 no_cache=1
4567 fi
4568
4569 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4570
e6cc62c6 4571fi;
0b9ab0bd
RL
4572
4573 eval "$ac_cv_use_dynamicloader"
4574 if test "$no_cache" != 1; then
4575 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4576 fi
4577
4578 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4579 echo "$as_me:$LINENO: result: yes" >&5
4580echo "${ECHO_T}yes" >&6
0b9ab0bd 4581 else
e6cc62c6
VS
4582 echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6
0b9ab0bd 4584 fi
e6cc62c6 4585
0b9ab0bd 4586
5005acfe 4587 enablestring=
e6cc62c6
VS
4588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4589echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a
VZ
4590 no_cache=0
4591 # Check whether --enable-longlong or --disable-longlong was given.
4592if test "${enable_longlong+set}" = set; then
4593 enableval="$enable_longlong"
e6cc62c6 4594
10f2d63a
VZ
4595 if test "$enableval" = yes; then
4596 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4597 else
4598 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4599 fi
e6cc62c6 4600
10f2d63a 4601else
e6cc62c6 4602
10f2d63a
VZ
4603 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4604 if test "x$LINE" != x ; then
4605 eval "DEFAULT_$LINE"
4606 else
4607 no_cache=1
4608 fi
4609
4610 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 4611
e6cc62c6 4612fi;
10f2d63a
VZ
4613
4614 eval "$ac_cv_use_longlong"
4615 if test "$no_cache" != 1; then
4616 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4617 fi
4618
4619 if test "$wxUSE_LONGLONG" = yes; then
e6cc62c6
VS
4620 echo "$as_me:$LINENO: result: yes" >&5
4621echo "${ECHO_T}yes" >&6
10f2d63a 4622 else
e6cc62c6
VS
4623 echo "$as_me:$LINENO: result: no" >&5
4624echo "${ECHO_T}no" >&6
10f2d63a 4625 fi
e6cc62c6 4626
10f2d63a 4627
5005acfe 4628 enablestring=
e6cc62c6
VS
4629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4630echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
e8f65ba6
RR
4631 no_cache=0
4632 # Check whether --enable-geometry or --disable-geometry was given.
4633if test "${enable_geometry+set}" = set; then
4634 enableval="$enable_geometry"
e6cc62c6 4635
e8f65ba6
RR
4636 if test "$enableval" = yes; then
4637 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4638 else
4639 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4640 fi
e6cc62c6 4641
e8f65ba6 4642else
e6cc62c6 4643
e8f65ba6
RR
4644 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4645 if test "x$LINE" != x ; then
4646 eval "DEFAULT_$LINE"
4647 else
4648 no_cache=1
4649 fi
4650
4651 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4652
e6cc62c6 4653fi;
e8f65ba6
RR
4654
4655 eval "$ac_cv_use_geometry"
4656 if test "$no_cache" != 1; then
4657 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4658 fi
4659
4660 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4661 echo "$as_me:$LINENO: result: yes" >&5
4662echo "${ECHO_T}yes" >&6
e8f65ba6 4663 else
e6cc62c6
VS
4664 echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6
e8f65ba6 4666 fi
e6cc62c6 4667
e8f65ba6 4668
5005acfe 4669 enablestring=
e6cc62c6
VS
4670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4671echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a
VZ
4672 no_cache=0
4673 # Check whether --enable-log or --disable-log was given.
4674if test "${enable_log+set}" = set; then
4675 enableval="$enable_log"
e6cc62c6 4676
10f2d63a
VZ
4677 if test "$enableval" = yes; then
4678 ac_cv_use_log='wxUSE_LOG=yes'
4679 else
4680 ac_cv_use_log='wxUSE_LOG=no'
4681 fi
e6cc62c6 4682
10f2d63a 4683else
e6cc62c6 4684
10f2d63a
VZ
4685 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
4692 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4693
e6cc62c6 4694fi;
10f2d63a
VZ
4695
4696 eval "$ac_cv_use_log"
4697 if test "$no_cache" != 1; then
4698 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4699 fi
4700
4701 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4702 echo "$as_me:$LINENO: result: yes" >&5
4703echo "${ECHO_T}yes" >&6
10f2d63a 4704 else
e6cc62c6
VS
4705 echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6
10f2d63a 4707 fi
e6cc62c6 4708
10f2d63a 4709
5005acfe 4710 enablestring=
e6cc62c6
VS
4711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4712echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
10f2d63a
VZ
4713 no_cache=0
4714 # Check whether --enable-streams or --disable-streams was given.
4715if test "${enable_streams+set}" = set; then
4716 enableval="$enable_streams"
e6cc62c6 4717
10f2d63a
VZ
4718 if test "$enableval" = yes; then
4719 ac_cv_use_streams='wxUSE_STREAMS=yes'
4720 else
4721 ac_cv_use_streams='wxUSE_STREAMS=no'
4722 fi
e6cc62c6 4723
10f2d63a 4724else
e6cc62c6 4725
10f2d63a
VZ
4726 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4727 if test "x$LINE" != x ; then
4728 eval "DEFAULT_$LINE"
4729 else
4730 no_cache=1
4731 fi
4732
4733 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4734
e6cc62c6 4735fi;
10f2d63a
VZ
4736
4737 eval "$ac_cv_use_streams"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4740 fi
4741
4742 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
4743 echo "$as_me:$LINENO: result: yes" >&5
4744echo "${ECHO_T}yes" >&6
10f2d63a 4745 else
e6cc62c6
VS
4746 echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6
10f2d63a 4748 fi
e6cc62c6 4749
10f2d63a 4750
5005acfe 4751 enablestring=
e6cc62c6
VS
4752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4753echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a
VZ
4754 no_cache=0
4755 # Check whether --enable-file or --disable-file was given.
4756if test "${enable_file+set}" = set; then
4757 enableval="$enable_file"
e6cc62c6 4758
10f2d63a
VZ
4759 if test "$enableval" = yes; then
4760 ac_cv_use_file='wxUSE_FILE=yes'
4761 else
4762 ac_cv_use_file='wxUSE_FILE=no'
4763 fi
e6cc62c6 4764
10f2d63a 4765else
e6cc62c6 4766
10f2d63a
VZ
4767 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4768 if test "x$LINE" != x ; then
4769 eval "DEFAULT_$LINE"
4770 else
4771 no_cache=1
4772 fi
4773
4774 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4775
e6cc62c6 4776fi;
10f2d63a
VZ
4777
4778 eval "$ac_cv_use_file"
4779 if test "$no_cache" != 1; then
4780 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4781 fi
4782
4783 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4784 echo "$as_me:$LINENO: result: yes" >&5
4785echo "${ECHO_T}yes" >&6
10f2d63a 4786 else
e6cc62c6
VS
4787 echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6
10f2d63a 4789 fi
e6cc62c6 4790
10f2d63a 4791
5005acfe 4792 enablestring=
e6cc62c6
VS
4793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4794echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
10f2d63a 4795 no_cache=0
1e6feb95
VZ
4796 # Check whether --enable-ffile or --disable-ffile was given.
4797if test "${enable_ffile+set}" = set; then
4798 enableval="$enable_ffile"
e6cc62c6 4799
10f2d63a 4800 if test "$enableval" = yes; then
1e6feb95 4801 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4802 else
1e6feb95 4803 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4804 fi
e6cc62c6 4805
10f2d63a 4806else
e6cc62c6 4807
1e6feb95 4808 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4809 if test "x$LINE" != x ; then
4810 eval "DEFAULT_$LINE"
4811 else
4812 no_cache=1
4813 fi
4814
1e6feb95 4815 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4816
e6cc62c6 4817fi;
10f2d63a 4818
1e6feb95 4819 eval "$ac_cv_use_ffile"
10f2d63a 4820 if test "$no_cache" != 1; then
1e6feb95 4821 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4822 fi
4823
1e6feb95 4824 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4825 echo "$as_me:$LINENO: result: yes" >&5
4826echo "${ECHO_T}yes" >&6
10f2d63a 4827 else
e6cc62c6
VS
4828 echo "$as_me:$LINENO: result: no" >&5
4829echo "${ECHO_T}no" >&6
10f2d63a 4830 fi
e6cc62c6 4831
10f2d63a 4832
5005acfe 4833 enablestring=
e6cc62c6
VS
4834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4835echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4836 no_cache=0
4837 # Check whether --enable-textbuf or --disable-textbuf was given.
4838if test "${enable_textbuf+set}" = set; then
4839 enableval="$enable_textbuf"
e6cc62c6 4840
a3a584a7
VZ
4841 if test "$enableval" = yes; then
4842 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4843 else
4844 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4845 fi
e6cc62c6 4846
a3a584a7 4847else
e6cc62c6 4848
a3a584a7
VZ
4849 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4850 if test "x$LINE" != x ; then
4851 eval "DEFAULT_$LINE"
4852 else
4853 no_cache=1
4854 fi
4855
4856 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4857
e6cc62c6 4858fi;
a3a584a7
VZ
4859
4860 eval "$ac_cv_use_textbuf"
4861 if test "$no_cache" != 1; then
4862 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4863 fi
4864
4865 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
4866 echo "$as_me:$LINENO: result: yes" >&5
4867echo "${ECHO_T}yes" >&6
a3a584a7 4868 else
e6cc62c6
VS
4869 echo "$as_me:$LINENO: result: no" >&5
4870echo "${ECHO_T}no" >&6
a3a584a7 4871 fi
e6cc62c6 4872
a3a584a7 4873
5005acfe 4874 enablestring=
e6cc62c6
VS
4875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4876echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 4877 no_cache=0
1e6feb95
VZ
4878 # Check whether --enable-textfile or --disable-textfile was given.
4879if test "${enable_textfile+set}" = set; then
4880 enableval="$enable_textfile"
e6cc62c6 4881
10f2d63a 4882 if test "$enableval" = yes; then
1e6feb95 4883 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4884 else
1e6feb95 4885 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4886 fi
e6cc62c6 4887
10f2d63a 4888else
e6cc62c6 4889
1e6feb95 4890 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4891 if test "x$LINE" != x ; then
4892 eval "DEFAULT_$LINE"
4893 else
4894 no_cache=1
4895 fi
4896
1e6feb95 4897 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4898
e6cc62c6 4899fi;
10f2d63a 4900
1e6feb95 4901 eval "$ac_cv_use_textfile"
10f2d63a 4902 if test "$no_cache" != 1; then
1e6feb95 4903 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4904 fi
4905
1e6feb95 4906 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
4907 echo "$as_me:$LINENO: result: yes" >&5
4908echo "${ECHO_T}yes" >&6
10f2d63a 4909 else
e6cc62c6
VS
4910 echo "$as_me:$LINENO: result: no" >&5
4911echo "${ECHO_T}no" >&6
10f2d63a 4912 fi
e6cc62c6 4913
10f2d63a 4914
5005acfe 4915 enablestring=
e6cc62c6
VS
4916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4917echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4918 no_cache=0
1e6feb95
VZ
4919 # Check whether --enable-fontmap or --disable-fontmap was given.
4920if test "${enable_fontmap+set}" = set; then
4921 enableval="$enable_fontmap"
e6cc62c6 4922
10f2d63a 4923 if test "$enableval" = yes; then
1e6feb95 4924 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4925 else
1e6feb95 4926 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4927 fi
e6cc62c6 4928
10f2d63a 4929else
e6cc62c6 4930
1e6feb95 4931 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4932 if test "x$LINE" != x ; then
4933 eval "DEFAULT_$LINE"
4934 else
4935 no_cache=1
4936 fi
4937
1e6feb95 4938 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4939
e6cc62c6 4940fi;
10f2d63a 4941
1e6feb95 4942 eval "$ac_cv_use_fontmap"
10f2d63a 4943 if test "$no_cache" != 1; then
1e6feb95 4944 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4945 fi
4946
1e6feb95 4947 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4948 echo "$as_me:$LINENO: result: yes" >&5
4949echo "${ECHO_T}yes" >&6
10f2d63a 4950 else
e6cc62c6
VS
4951 echo "$as_me:$LINENO: result: no" >&5
4952echo "${ECHO_T}no" >&6
10f2d63a 4953 fi
e6cc62c6 4954
10f2d63a 4955
5005acfe 4956 enablestring=
e6cc62c6
VS
4957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4958echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
10f2d63a 4959 no_cache=0
1e6feb95
VZ
4960 # Check whether --enable-unicode or --disable-unicode was given.
4961if test "${enable_unicode+set}" = set; then
4962 enableval="$enable_unicode"
e6cc62c6 4963
1e6feb95
VZ
4964 if test "$enableval" = yes; then
4965 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4966 else
4967 ac_cv_use_unicode='wxUSE_UNICODE=no'
4968 fi
e6cc62c6 4969
1e6feb95 4970else
e6cc62c6 4971
1e6feb95
VZ
4972 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4973 if test "x$LINE" != x ; then
4974 eval "DEFAULT_$LINE"
4975 else
4976 no_cache=1
4977 fi
4978
4979 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 4980
e6cc62c6 4981fi;
1e6feb95
VZ
4982
4983 eval "$ac_cv_use_unicode"
4984 if test "$no_cache" != 1; then
4985 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4986 fi
4987
4988 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
4989 echo "$as_me:$LINENO: result: yes" >&5
4990echo "${ECHO_T}yes" >&6
1e6feb95 4991 else
e6cc62c6
VS
4992 echo "$as_me:$LINENO: result: no" >&5
4993echo "${ECHO_T}no" >&6
1e6feb95 4994 fi
e6cc62c6 4995
1e6feb95 4996
5005acfe 4997 enablestring=
e6cc62c6
VS
4998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4999echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5000 no_cache=0
5001 # Check whether --enable-mslu or --disable-mslu was given.
5002if test "${enable_mslu+set}" = set; then
5003 enableval="$enable_mslu"
e6cc62c6 5004
a72a4bfa
VS
5005 if test "$enableval" = yes; then
5006 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5007 else
5008 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5009 fi
e6cc62c6 5010
a72a4bfa 5011else
e6cc62c6 5012
a72a4bfa
VS
5013 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5014 if test "x$LINE" != x ; then
5015 eval "DEFAULT_$LINE"
5016 else
5017 no_cache=1
5018 fi
5019
5020 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5021
e6cc62c6 5022fi;
a72a4bfa
VS
5023
5024 eval "$ac_cv_use_mslu"
5025 if test "$no_cache" != 1; then
5026 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5027 fi
5028
5029 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5030 echo "$as_me:$LINENO: result: yes" >&5
5031echo "${ECHO_T}yes" >&6
a72a4bfa 5032 else
e6cc62c6
VS
5033 echo "$as_me:$LINENO: result: no" >&5
5034echo "${ECHO_T}no" >&6
a72a4bfa 5035 fi
e6cc62c6 5036
a72a4bfa 5037
5005acfe 5038 enablestring=
e6cc62c6
VS
5039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5040echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
5041 no_cache=0
5042 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5043if test "${enable_wxprintfv+set}" = set; then
5044 enableval="$enable_wxprintfv"
e6cc62c6 5045
1e6feb95 5046 if test "$enableval" = yes; then
10f2d63a
VZ
5047 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5048 else
5049 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5050 fi
e6cc62c6 5051
10f2d63a 5052else
e6cc62c6 5053
10f2d63a
VZ
5054 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5055 if test "x$LINE" != x ; then
5056 eval "DEFAULT_$LINE"
5057 else
5058 no_cache=1
5059 fi
5060
5061 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 5062
e6cc62c6 5063fi;
10f2d63a
VZ
5064
5065 eval "$ac_cv_use_wxprintfv"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5071 echo "$as_me:$LINENO: result: yes" >&5
5072echo "${ECHO_T}yes" >&6
10f2d63a 5073 else
e6cc62c6
VS
5074 echo "$as_me:$LINENO: result: no" >&5
5075echo "${ECHO_T}no" >&6
10f2d63a 5076 fi
e6cc62c6 5077
10f2d63a 5078
5005acfe 5079 enablestring=
e6cc62c6
VS
5080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5081echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5082 no_cache=0
5083 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5084if test "${enable_std_iostreams+set}" = set; then
5085 enableval="$enable_std_iostreams"
e6cc62c6 5086
10f2d63a
VZ
5087 if test "$enableval" = yes; then
5088 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5089 else
5090 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5091 fi
e6cc62c6 5092
10f2d63a 5093else
e6cc62c6 5094
10f2d63a
VZ
5095 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5096 if test "x$LINE" != x ; then
5097 eval "DEFAULT_$LINE"
5098 else
5099 no_cache=1
5100 fi
5101
5102 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5103
e6cc62c6 5104fi;
10f2d63a
VZ
5105
5106 eval "$ac_cv_use_std_iostreams"
5107 if test "$no_cache" != 1; then
5108 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5109 fi
5110
5111 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5112 echo "$as_me:$LINENO: result: yes" >&5
5113echo "${ECHO_T}yes" >&6
10f2d63a 5114 else
e6cc62c6
VS
5115 echo "$as_me:$LINENO: result: no" >&5
5116echo "${ECHO_T}no" >&6
10f2d63a 5117 fi
e6cc62c6 5118
10f2d63a 5119
5005acfe 5120 enablestring=
e6cc62c6
VS
5121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5122echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
24528b0c
VS
5123 no_cache=0
5124 # Check whether --enable-filesystem or --disable-filesystem was given.
5125if test "${enable_filesystem+set}" = set; then
5126 enableval="$enable_filesystem"
e6cc62c6 5127
24528b0c
VS
5128 if test "$enableval" = yes; then
5129 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5130 else
5131 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5132 fi
e6cc62c6 5133
24528b0c 5134else
e6cc62c6 5135
24528b0c
VS
5136 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
5143 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 5144
e6cc62c6 5145fi;
24528b0c
VS
5146
5147 eval "$ac_cv_use_filesystem"
5148 if test "$no_cache" != 1; then
5149 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5150 fi
5151
5152 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
5153 echo "$as_me:$LINENO: result: yes" >&5
5154echo "${ECHO_T}yes" >&6
24528b0c 5155 else
e6cc62c6
VS
5156 echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
24528b0c 5158 fi
e6cc62c6 5159
24528b0c 5160
5005acfe 5161 enablestring=
e6cc62c6
VS
5162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5163echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
5164 no_cache=0
5165 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5166if test "${enable_fs_inet+set}" = set; then
5167 enableval="$enable_fs_inet"
e6cc62c6 5168
10f2d63a
VZ
5169 if test "$enableval" = yes; then
5170 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5171 else
5172 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5173 fi
e6cc62c6 5174
10f2d63a 5175else
e6cc62c6 5176
10f2d63a
VZ
5177 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5178 if test "x$LINE" != x ; then
5179 eval "DEFAULT_$LINE"
5180 else
5181 no_cache=1
5182 fi
5183
5184 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 5185
e6cc62c6 5186fi;
10f2d63a
VZ
5187
5188 eval "$ac_cv_use_fs_inet"
5189 if test "$no_cache" != 1; then
5190 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5191 fi
5192
5193 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
5194 echo "$as_me:$LINENO: result: yes" >&5
5195echo "${ECHO_T}yes" >&6
10f2d63a 5196 else
e6cc62c6
VS
5197 echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6
10f2d63a 5199 fi
e6cc62c6 5200
10f2d63a 5201
5005acfe 5202 enablestring=
e6cc62c6
VS
5203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5204echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
5205 no_cache=0
5206 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5207if test "${enable_fs_zip+set}" = set; then
5208 enableval="$enable_fs_zip"
e6cc62c6 5209
10f2d63a
VZ
5210 if test "$enableval" = yes; then
5211 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5212 else
5213 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5214 fi
e6cc62c6 5215
10f2d63a 5216else
e6cc62c6 5217
10f2d63a
VZ
5218 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5219 if test "x$LINE" != x ; then
5220 eval "DEFAULT_$LINE"
5221 else
5222 no_cache=1
5223 fi
5224
5225 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 5226
e6cc62c6 5227fi;
10f2d63a
VZ
5228
5229 eval "$ac_cv_use_fs_zip"
5230 if test "$no_cache" != 1; then
5231 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5232 fi
5233
5234 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5235 echo "$as_me:$LINENO: result: yes" >&5
5236echo "${ECHO_T}yes" >&6
10f2d63a 5237 else
e6cc62c6
VS
5238 echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6
10f2d63a 5240 fi
e6cc62c6 5241
10f2d63a 5242
5005acfe 5243 enablestring=
e6cc62c6
VS
5244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5245echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
10f2d63a
VZ
5246 no_cache=0
5247 # Check whether --enable-zipstream or --disable-zipstream was given.
5248if test "${enable_zipstream+set}" = set; then
5249 enableval="$enable_zipstream"
e6cc62c6 5250
10f2d63a
VZ
5251 if test "$enableval" = yes; then
5252 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5253 else
5254 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5255 fi
e6cc62c6 5256
10f2d63a 5257else
e6cc62c6 5258
10f2d63a
VZ
5259 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5260 if test "x$LINE" != x ; then
5261 eval "DEFAULT_$LINE"
5262 else
5263 no_cache=1
5264 fi
5265
5266 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 5267
e6cc62c6 5268fi;
10f2d63a
VZ
5269
5270 eval "$ac_cv_use_zipstream"
5271 if test "$no_cache" != 1; then
5272 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5273 fi
5274
5275 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5276 echo "$as_me:$LINENO: result: yes" >&5
5277echo "${ECHO_T}yes" >&6
10f2d63a 5278 else
e6cc62c6
VS
5279 echo "$as_me:$LINENO: result: no" >&5
5280echo "${ECHO_T}no" >&6
10f2d63a 5281 fi
e6cc62c6 5282
8284b0c5 5283
52127426 5284
5005acfe 5285 enablestring=
e6cc62c6
VS
5286 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5287echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
5288 no_cache=0
5289 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5290if test "${enable_catch_segvs+set}" = set; then
5291 enableval="$enable_catch_segvs"
e6cc62c6 5292
eb4efbdc
VZ
5293 if test "$enableval" = yes; then
5294 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5295 else
5296 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5297 fi
e6cc62c6 5298
eb4efbdc 5299else
e6cc62c6 5300
eb4efbdc
VZ
5301 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5302 if test "x$LINE" != x ; then
5303 eval "DEFAULT_$LINE"
5304 else
5305 no_cache=1
5306 fi
5307
5308 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 5309
e6cc62c6 5310fi;
eb4efbdc
VZ
5311
5312 eval "$ac_cv_use_catch_segvs"
5313 if test "$no_cache" != 1; then
5314 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5315 fi
5316
5317 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
5318 echo "$as_me:$LINENO: result: yes" >&5
5319echo "${ECHO_T}yes" >&6
eb4efbdc 5320 else
e6cc62c6
VS
5321 echo "$as_me:$LINENO: result: no" >&5
5322echo "${ECHO_T}no" >&6
eb4efbdc 5323 fi
e6cc62c6 5324
eb4efbdc 5325
5005acfe 5326 enablestring=
e6cc62c6
VS
5327 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5328echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
5329 no_cache=0
5330 # Check whether --enable-snglinst or --disable-snglinst was given.
5331if test "${enable_snglinst+set}" = set; then
5332 enableval="$enable_snglinst"
e6cc62c6 5333
4f3c5f06
VZ
5334 if test "$enableval" = yes; then
5335 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5336 else
5337 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5338 fi
e6cc62c6 5339
4f3c5f06 5340else
e6cc62c6 5341
4f3c5f06
VZ
5342 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5343 if test "x$LINE" != x ; then
5344 eval "DEFAULT_$LINE"
5345 else
5346 no_cache=1
5347 fi
5348
5349 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 5350
e6cc62c6 5351fi;
4f3c5f06
VZ
5352
5353 eval "$ac_cv_use_snglinst"
5354 if test "$no_cache" != 1; then
5355 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5356 fi
5357
5358 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
e6cc62c6
VS
5359 echo "$as_me:$LINENO: result: yes" >&5
5360echo "${ECHO_T}yes" >&6
4f3c5f06 5361 else
e6cc62c6
VS
5362 echo "$as_me:$LINENO: result: no" >&5
5363echo "${ECHO_T}no" >&6
4f3c5f06 5364 fi
e6cc62c6 5365
52127426 5366
8284b0c5 5367
5005acfe 5368 enablestring=
e6cc62c6
VS
5369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5370echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
1e6feb95
VZ
5371 no_cache=0
5372 # Check whether --enable-mimetype or --disable-mimetype was given.
5373if test "${enable_mimetype+set}" = set; then
5374 enableval="$enable_mimetype"
e6cc62c6 5375
1e6feb95
VZ
5376 if test "$enableval" = yes; then
5377 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5378 else
5379 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5380 fi
e6cc62c6 5381
1e6feb95 5382else
e6cc62c6 5383
1e6feb95
VZ
5384 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5385 if test "x$LINE" != x ; then
5386 eval "DEFAULT_$LINE"
5387 else
5388 no_cache=1
5389 fi
5390
5391 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 5392
e6cc62c6 5393fi;
1e6feb95
VZ
5394
5395 eval "$ac_cv_use_mimetype"
5396 if test "$no_cache" != 1; then
5397 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5398 fi
5399
5400 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5401 echo "$as_me:$LINENO: result: yes" >&5
5402echo "${ECHO_T}yes" >&6
1e6feb95 5403 else
e6cc62c6
VS
5404 echo "$as_me:$LINENO: result: no" >&5
5405echo "${ECHO_T}no" >&6
1e6feb95 5406 fi
e6cc62c6 5407
1e6feb95 5408
5005acfe 5409 enablestring=
e6cc62c6
VS
5410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5411echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
3e44f09d
VZ
5412 no_cache=0
5413 # Check whether --enable-system_options or --disable-system_options was given.
5414if test "${enable_system_options+set}" = set; then
5415 enableval="$enable_system_options"
e6cc62c6 5416
3e44f09d
VZ
5417 if test "$enableval" = yes; then
5418 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5419 else
5420 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5421 fi
e6cc62c6 5422
3e44f09d 5423else
e6cc62c6 5424
3e44f09d
VZ
5425 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5426 if test "x$LINE" != x ; then
5427 eval "DEFAULT_$LINE"
5428 else
5429 no_cache=1
5430 fi
5431
5432 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 5433
e6cc62c6 5434fi;
3e44f09d
VZ
5435
5436 eval "$ac_cv_use_system_options"
5437 if test "$no_cache" != 1; then
5438 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5439 fi
5440
5441 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5442 echo "$as_me:$LINENO: result: yes" >&5
5443echo "${ECHO_T}yes" >&6
3e44f09d 5444 else
e6cc62c6
VS
5445 echo "$as_me:$LINENO: result: no" >&5
5446echo "${ECHO_T}no" >&6
3e44f09d 5447 fi
e6cc62c6 5448
8284b0c5 5449
52127426 5450
5005acfe 5451 enablestring=
e6cc62c6
VS
5452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5453echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5454 no_cache=0
5455 # Check whether --enable-url or --disable-url was given.
5456if test "${enable_url+set}" = set; then
5457 enableval="$enable_url"
e6cc62c6 5458
4cdb0ab0
VS
5459 if test "$enableval" = yes; then
5460 ac_cv_use_url='wxUSE_URL=yes'
5461 else
5462 ac_cv_use_url='wxUSE_URL=no'
5463 fi
e6cc62c6 5464
4cdb0ab0 5465else
e6cc62c6 5466
4cdb0ab0
VS
5467 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5468 if test "x$LINE" != x ; then
5469 eval "DEFAULT_$LINE"
5470 else
5471 no_cache=1
5472 fi
5473
5474 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5475
e6cc62c6 5476fi;
4cdb0ab0
VS
5477
5478 eval "$ac_cv_use_url"
5479 if test "$no_cache" != 1; then
5480 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5481 fi
5482
5483 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5484 echo "$as_me:$LINENO: result: yes" >&5
5485echo "${ECHO_T}yes" >&6
4cdb0ab0 5486 else
e6cc62c6
VS
5487 echo "$as_me:$LINENO: result: no" >&5
5488echo "${ECHO_T}no" >&6
4cdb0ab0 5489 fi
e6cc62c6 5490
4cdb0ab0 5491
5005acfe 5492 enablestring=
e6cc62c6
VS
5493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5494echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5495 no_cache=0
5496 # Check whether --enable-protocol or --disable-protocol was given.
5497if test "${enable_protocol+set}" = set; then
5498 enableval="$enable_protocol"
e6cc62c6 5499
4cdb0ab0
VS
5500 if test "$enableval" = yes; then
5501 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5502 else
5503 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5504 fi
e6cc62c6 5505
4cdb0ab0 5506else
e6cc62c6 5507
4cdb0ab0
VS
5508 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5509 if test "x$LINE" != x ; then
5510 eval "DEFAULT_$LINE"
5511 else
5512 no_cache=1
5513 fi
5514
5515 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5516
e6cc62c6 5517fi;
4cdb0ab0
VS
5518
5519 eval "$ac_cv_use_protocol"
5520 if test "$no_cache" != 1; then
5521 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5522 fi
5523
5524 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5525 echo "$as_me:$LINENO: result: yes" >&5
5526echo "${ECHO_T}yes" >&6
4cdb0ab0 5527 else
e6cc62c6
VS
5528 echo "$as_me:$LINENO: result: no" >&5
5529echo "${ECHO_T}no" >&6
4cdb0ab0 5530 fi
e6cc62c6 5531
4cdb0ab0 5532
5005acfe 5533 enablestring=
e6cc62c6
VS
5534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5535echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5536 no_cache=0
5537 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5538if test "${enable_protocol_http+set}" = set; then
5539 enableval="$enable_protocol_http"
e6cc62c6 5540
4cdb0ab0
VS
5541 if test "$enableval" = yes; then
5542 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5543 else
5544 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5545 fi
e6cc62c6 5546
4cdb0ab0 5547else
e6cc62c6 5548
4cdb0ab0
VS
5549 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5550 if test "x$LINE" != x ; then
5551 eval "DEFAULT_$LINE"
5552 else
5553 no_cache=1
5554 fi
5555
5556 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5557
e6cc62c6 5558fi;
4cdb0ab0
VS
5559
5560 eval "$ac_cv_use_protocol_http"
5561 if test "$no_cache" != 1; then
5562 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5563 fi
5564
5565 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5566 echo "$as_me:$LINENO: result: yes" >&5
5567echo "${ECHO_T}yes" >&6
4cdb0ab0 5568 else
e6cc62c6
VS
5569 echo "$as_me:$LINENO: result: no" >&5
5570echo "${ECHO_T}no" >&6
4cdb0ab0 5571 fi
e6cc62c6 5572
4cdb0ab0 5573
5005acfe 5574 enablestring=
e6cc62c6
VS
5575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5576echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5577 no_cache=0
5578 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5579if test "${enable_protocol_ftp+set}" = set; then
5580 enableval="$enable_protocol_ftp"
e6cc62c6 5581
4cdb0ab0
VS
5582 if test "$enableval" = yes; then
5583 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5584 else
5585 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5586 fi
e6cc62c6 5587
4cdb0ab0 5588else
e6cc62c6 5589
4cdb0ab0
VS
5590 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5591 if test "x$LINE" != x ; then
5592 eval "DEFAULT_$LINE"
5593 else
5594 no_cache=1
5595 fi
5596
5597 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5598
e6cc62c6 5599fi;
4cdb0ab0
VS
5600
5601 eval "$ac_cv_use_protocol_ftp"
5602 if test "$no_cache" != 1; then
5603 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5604 fi
5605
5606 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5607 echo "$as_me:$LINENO: result: yes" >&5
5608echo "${ECHO_T}yes" >&6
4cdb0ab0 5609 else
e6cc62c6
VS
5610 echo "$as_me:$LINENO: result: no" >&5
5611echo "${ECHO_T}no" >&6
4cdb0ab0 5612 fi
e6cc62c6 5613
4cdb0ab0 5614
5005acfe 5615 enablestring=
e6cc62c6
VS
5616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5617echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5618 no_cache=0
5619 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5620if test "${enable_protocol_file+set}" = set; then
5621 enableval="$enable_protocol_file"
e6cc62c6 5622
4cdb0ab0
VS
5623 if test "$enableval" = yes; then
5624 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5625 else
5626 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5627 fi
e6cc62c6 5628
4cdb0ab0 5629else
e6cc62c6 5630
4cdb0ab0
VS
5631 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5632 if test "x$LINE" != x ; then
5633 eval "DEFAULT_$LINE"
5634 else
5635 no_cache=1
5636 fi
5637
5638 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5639
e6cc62c6 5640fi;
4cdb0ab0
VS
5641
5642 eval "$ac_cv_use_protocol_file"
5643 if test "$no_cache" != 1; then
5644 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5645 fi
5646
5647 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5648 echo "$as_me:$LINENO: result: yes" >&5
5649echo "${ECHO_T}yes" >&6
4cdb0ab0 5650 else
e6cc62c6
VS
5651 echo "$as_me:$LINENO: result: no" >&5
5652echo "${ECHO_T}no" >&6
4cdb0ab0 5653 fi
e6cc62c6 5654
52127426 5655
8284b0c5
MB
5656
5657
5658
5005acfe 5659 enablestring=
e6cc62c6
VS
5660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5661echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5662 no_cache=0
5663 # Check whether --enable-threads or --disable-threads was given.
5664if test "${enable_threads+set}" = set; then
5665 enableval="$enable_threads"
e6cc62c6 5666
10f2d63a
VZ
5667 if test "$enableval" = yes; then
5668 ac_cv_use_threads='wxUSE_THREADS=yes'
5669 else
5670 ac_cv_use_threads='wxUSE_THREADS=no'
5671 fi
e6cc62c6 5672
10f2d63a 5673else
e6cc62c6 5674
10f2d63a
VZ
5675 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5676 if test "x$LINE" != x ; then
5677 eval "DEFAULT_$LINE"
5678 else
5679 no_cache=1
5680 fi
5681
5682 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5683
e6cc62c6 5684fi;
10f2d63a
VZ
5685
5686 eval "$ac_cv_use_threads"
5687 if test "$no_cache" != 1; then
5688 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5689 fi
5690
5691 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5692 echo "$as_me:$LINENO: result: yes" >&5
5693echo "${ECHO_T}yes" >&6
10f2d63a 5694 else
e6cc62c6
VS
5695 echo "$as_me:$LINENO: result: no" >&5
5696echo "${ECHO_T}no" >&6
10f2d63a 5697 fi
e6cc62c6 5698
10f2d63a 5699
b12915c1
VZ
5700if test "$wxUSE_GUI" = "yes"; then
5701
8284b0c5
MB
5702
5703
5005acfe 5704 enablestring=
e6cc62c6
VS
5705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5706echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5707 no_cache=0
5708 # Check whether --enable-docview or --disable-docview was given.
5709if test "${enable_docview+set}" = set; then
5710 enableval="$enable_docview"
e6cc62c6 5711
10f2d63a
VZ
5712 if test "$enableval" = yes; then
5713 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5714 else
5715 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5716 fi
e6cc62c6 5717
10f2d63a 5718else
e6cc62c6 5719
10f2d63a
VZ
5720 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5721 if test "x$LINE" != x ; then
5722 eval "DEFAULT_$LINE"
5723 else
5724 no_cache=1
5725 fi
5726
5727 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5728
e6cc62c6 5729fi;
10f2d63a
VZ
5730
5731 eval "$ac_cv_use_docview"
5732 if test "$no_cache" != 1; then
5733 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5734 fi
5735
5736 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5737 echo "$as_me:$LINENO: result: yes" >&5
5738echo "${ECHO_T}yes" >&6
10f2d63a 5739 else
e6cc62c6
VS
5740 echo "$as_me:$LINENO: result: no" >&5
5741echo "${ECHO_T}no" >&6
10f2d63a 5742 fi
e6cc62c6 5743
10f2d63a 5744
5005acfe 5745 enablestring=
e6cc62c6
VS
5746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5747echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5748 no_cache=0
5749 # Check whether --enable-help or --disable-help was given.
5750if test "${enable_help+set}" = set; then
5751 enableval="$enable_help"
e6cc62c6 5752
10f2d63a
VZ
5753 if test "$enableval" = yes; then
5754 ac_cv_use_help='wxUSE_HELP=yes'
5755 else
5756 ac_cv_use_help='wxUSE_HELP=no'
5757 fi
e6cc62c6 5758
10f2d63a 5759else
e6cc62c6 5760
10f2d63a
VZ
5761 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5762 if test "x$LINE" != x ; then
5763 eval "DEFAULT_$LINE"
5764 else
5765 no_cache=1
5766 fi
5767
5768 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5769
e6cc62c6 5770fi;
10f2d63a
VZ
5771
5772 eval "$ac_cv_use_help"
5773 if test "$no_cache" != 1; then
5774 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5775 fi
5776
5777 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5778 echo "$as_me:$LINENO: result: yes" >&5
5779echo "${ECHO_T}yes" >&6
10f2d63a 5780 else
e6cc62c6
VS
5781 echo "$as_me:$LINENO: result: no" >&5
5782echo "${ECHO_T}no" >&6
10f2d63a 5783 fi
e6cc62c6 5784
10f2d63a 5785
5005acfe 5786 enablestring=
e6cc62c6
VS
5787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5788echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5789 no_cache=0
5790 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5791if test "${enable_mshtmlhelp+set}" = set; then
5792 enableval="$enable_mshtmlhelp"
e6cc62c6 5793
29fd3c0c
VS
5794 if test "$enableval" = yes; then
5795 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5796 else
5797 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5798 fi
e6cc62c6 5799
29fd3c0c 5800else
e6cc62c6 5801
29fd3c0c
VS
5802 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5803 if test "x$LINE" != x ; then
5804 eval "DEFAULT_$LINE"
5805 else
5806 no_cache=1
5807 fi
5808
5809 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5810
e6cc62c6 5811fi;
29fd3c0c
VS
5812
5813 eval "$ac_cv_use_mshtmlhelp"
5814 if test "$no_cache" != 1; then
5815 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5816 fi
5817
5818 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5819 echo "$as_me:$LINENO: result: yes" >&5
5820echo "${ECHO_T}yes" >&6
29fd3c0c 5821 else
e6cc62c6
VS
5822 echo "$as_me:$LINENO: result: no" >&5
5823echo "${ECHO_T}no" >&6
29fd3c0c 5824 fi
e6cc62c6 5825
29fd3c0c 5826
5005acfe 5827 enablestring=
e6cc62c6
VS
5828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5829echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5830 no_cache=0
5831 # Check whether --enable-html or --disable-html was given.
5832if test "${enable_html+set}" = set; then
5833 enableval="$enable_html"
e6cc62c6 5834
3379ed37
VZ
5835 if test "$enableval" = yes; then
5836 ac_cv_use_html='wxUSE_HTML=yes'
5837 else
5838 ac_cv_use_html='wxUSE_HTML=no'
5839 fi
e6cc62c6 5840
3379ed37 5841else
e6cc62c6 5842
3379ed37
VZ
5843 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5844 if test "x$LINE" != x ; then
5845 eval "DEFAULT_$LINE"
5846 else
5847 no_cache=1
5848 fi
5849
5850 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5851
e6cc62c6 5852fi;
3379ed37
VZ
5853
5854 eval "$ac_cv_use_html"
5855 if test "$no_cache" != 1; then
5856 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5857 fi
5858
5859 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5860 echo "$as_me:$LINENO: result: yes" >&5
5861echo "${ECHO_T}yes" >&6
3379ed37 5862 else
e6cc62c6
VS
5863 echo "$as_me:$LINENO: result: no" >&5
5864echo "${ECHO_T}no" >&6
3379ed37 5865 fi
e6cc62c6 5866
3379ed37 5867
5005acfe 5868 enablestring=
e6cc62c6
VS
5869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5870echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5871 no_cache=0
5872 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5873if test "${enable_htmlhelp+set}" = set; then
5874 enableval="$enable_htmlhelp"
e6cc62c6 5875
3379ed37
VZ
5876 if test "$enableval" = yes; then
5877 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5878 else
5879 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5880 fi
e6cc62c6 5881
3379ed37 5882else
e6cc62c6 5883
3379ed37
VZ
5884 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5885 if test "x$LINE" != x ; then
5886 eval "DEFAULT_$LINE"
5887 else
5888 no_cache=1
5889 fi
5890
5891 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5892
e6cc62c6 5893fi;
3379ed37
VZ
5894
5895 eval "$ac_cv_use_htmlhelp"
5896 if test "$no_cache" != 1; then
5897 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5898 fi
5899
5900 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5901 echo "$as_me:$LINENO: result: yes" >&5
5902echo "${ECHO_T}yes" >&6
3379ed37 5903 else
e6cc62c6
VS
5904 echo "$as_me:$LINENO: result: no" >&5
5905echo "${ECHO_T}no" >&6
3379ed37 5906 fi
e6cc62c6 5907
3379ed37 5908
5005acfe 5909 enablestring=
e6cc62c6
VS
5910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5911echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5912 no_cache=0
5913 # Check whether --enable-constraints or --disable-constraints was given.
5914if test "${enable_constraints+set}" = set; then
5915 enableval="$enable_constraints"
e6cc62c6 5916
10f2d63a
VZ
5917 if test "$enableval" = yes; then
5918 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5919 else
5920 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5921 fi
e6cc62c6 5922
10f2d63a 5923else
e6cc62c6 5924
10f2d63a
VZ
5925 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5926 if test "x$LINE" != x ; then
5927 eval "DEFAULT_$LINE"
5928 else
5929 no_cache=1
5930 fi
5931
5932 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5933
e6cc62c6 5934fi;
10f2d63a
VZ
5935
5936 eval "$ac_cv_use_constraints"
5937 if test "$no_cache" != 1; then
5938 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5939 fi
5940
5941 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
5942 echo "$as_me:$LINENO: result: yes" >&5
5943echo "${ECHO_T}yes" >&6
10f2d63a 5944 else
e6cc62c6
VS
5945 echo "$as_me:$LINENO: result: no" >&5
5946echo "${ECHO_T}no" >&6
10f2d63a 5947 fi
e6cc62c6 5948
10f2d63a 5949
5005acfe 5950 enablestring=
e6cc62c6
VS
5951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5952echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
5953 no_cache=0
5954 # Check whether --enable-printarch or --disable-printarch was given.
5955if test "${enable_printarch+set}" = set; then
5956 enableval="$enable_printarch"
e6cc62c6 5957
10f2d63a
VZ
5958 if test "$enableval" = yes; then
5959 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5960 else
5961 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5962 fi
e6cc62c6 5963
10f2d63a 5964else
e6cc62c6 5965
10f2d63a
VZ
5966 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5967 if test "x$LINE" != x ; then
5968 eval "DEFAULT_$LINE"
5969 else
5970 no_cache=1
5971 fi
5972
5973 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 5974
e6cc62c6 5975fi;
10f2d63a
VZ
5976
5977 eval "$ac_cv_use_printarch"
5978 if test "$no_cache" != 1; then
5979 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5980 fi
5981
5982 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
5983 echo "$as_me:$LINENO: result: yes" >&5
5984echo "${ECHO_T}yes" >&6
10f2d63a 5985 else
e6cc62c6
VS
5986 echo "$as_me:$LINENO: result: no" >&5
5987echo "${ECHO_T}no" >&6
10f2d63a 5988 fi
e6cc62c6 5989
10f2d63a 5990
5005acfe 5991 enablestring=
e6cc62c6
VS
5992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
5993echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
5994 no_cache=0
5995 # Check whether --enable-mdi or --disable-mdi was given.
5996if test "${enable_mdi+set}" = set; then
5997 enableval="$enable_mdi"
e6cc62c6 5998
10f2d63a
VZ
5999 if test "$enableval" = yes; then
6000 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6001 else
6002 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6003 fi
e6cc62c6 6004
10f2d63a 6005else
e6cc62c6 6006
10f2d63a
VZ
6007 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6008 if test "x$LINE" != x ; then
6009 eval "DEFAULT_$LINE"
6010 else
6011 no_cache=1
6012 fi
6013
6014 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6015
e6cc62c6 6016fi;
10f2d63a
VZ
6017
6018 eval "$ac_cv_use_mdi"
6019 if test "$no_cache" != 1; then
6020 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6021 fi
6022
6023 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6024 echo "$as_me:$LINENO: result: yes" >&5
6025echo "${ECHO_T}yes" >&6
10f2d63a 6026 else
e6cc62c6
VS
6027 echo "$as_me:$LINENO: result: no" >&5
6028echo "${ECHO_T}no" >&6
10f2d63a 6029 fi
e6cc62c6 6030
698dcdb6 6031
5005acfe 6032 enablestring=
e6cc62c6
VS
6033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6034echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6035 no_cache=0
6036 # Check whether --enable-loggui or --disable-loggui was given.
6037if test "${enable_loggui+set}" = set; then
6038 enableval="$enable_loggui"
e6cc62c6 6039
1e6feb95
VZ
6040 if test "$enableval" = yes; then
6041 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6042 else
6043 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6044 fi
e6cc62c6 6045
1e6feb95 6046else
e6cc62c6 6047
1e6feb95
VZ
6048 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6049 if test "x$LINE" != x ; then
6050 eval "DEFAULT_$LINE"
6051 else
6052 no_cache=1
6053 fi
6054
6055 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6056
e6cc62c6 6057fi;
1e6feb95
VZ
6058
6059 eval "$ac_cv_use_loggui"
6060 if test "$no_cache" != 1; then
6061 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6062 fi
6063
6064 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6065 echo "$as_me:$LINENO: result: yes" >&5
6066echo "${ECHO_T}yes" >&6
1e6feb95 6067 else
e6cc62c6
VS
6068 echo "$as_me:$LINENO: result: no" >&5
6069echo "${ECHO_T}no" >&6
1e6feb95 6070 fi
e6cc62c6 6071
1e6feb95 6072
5005acfe 6073 enablestring=
e6cc62c6
VS
6074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6075echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6076 no_cache=0
6077 # Check whether --enable-logwin or --disable-logwin was given.
6078if test "${enable_logwin+set}" = set; then
6079 enableval="$enable_logwin"
e6cc62c6 6080
1e6feb95
VZ
6081 if test "$enableval" = yes; then
6082 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6083 else
6084 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6085 fi
e6cc62c6 6086
1e6feb95 6087else
e6cc62c6 6088
1e6feb95
VZ
6089 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6090 if test "x$LINE" != x ; then
6091 eval "DEFAULT_$LINE"
6092 else
6093 no_cache=1
6094 fi
6095
6096 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6097
e6cc62c6 6098fi;
1e6feb95
VZ
6099
6100 eval "$ac_cv_use_logwin"
6101 if test "$no_cache" != 1; then
6102 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6103 fi
6104
6105 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6106 echo "$as_me:$LINENO: result: yes" >&5
6107echo "${ECHO_T}yes" >&6
1e6feb95 6108 else
e6cc62c6
VS
6109 echo "$as_me:$LINENO: result: no" >&5
6110echo "${ECHO_T}no" >&6
1e6feb95 6111 fi
e6cc62c6 6112
1e6feb95 6113
5005acfe 6114 enablestring=
e6cc62c6
VS
6115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6116echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6117 no_cache=0
6118 # Check whether --enable-logdialog or --disable-logdialog was given.
6119if test "${enable_logdialog+set}" = set; then
6120 enableval="$enable_logdialog"
e6cc62c6 6121
69d27ff7
MB
6122 if test "$enableval" = yes; then
6123 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6124 else
6125 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6126 fi
e6cc62c6 6127
69d27ff7 6128else
e6cc62c6 6129
69d27ff7
MB
6130 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6131 if test "x$LINE" != x ; then
6132 eval "DEFAULT_$LINE"
6133 else
6134 no_cache=1
6135 fi
6136
6137 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6138
e6cc62c6 6139fi;
69d27ff7
MB
6140
6141 eval "$ac_cv_use_logdialog"
6142 if test "$no_cache" != 1; then
6143 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6144 fi
6145
6146 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6147 echo "$as_me:$LINENO: result: yes" >&5
6148echo "${ECHO_T}yes" >&6
69d27ff7 6149 else
e6cc62c6
VS
6150 echo "$as_me:$LINENO: result: no" >&5
6151echo "${ECHO_T}no" >&6
69d27ff7 6152 fi
e6cc62c6 6153
8284b0c5 6154
52127426 6155
5005acfe 6156 enablestring=
e6cc62c6
VS
6157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6158echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6159 no_cache=0
6160 # Check whether --enable-postscript or --disable-postscript was given.
6161if test "${enable_postscript+set}" = set; then
6162 enableval="$enable_postscript"
e6cc62c6 6163
10f2d63a
VZ
6164 if test "$enableval" = yes; then
6165 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6166 else
6167 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6168 fi
e6cc62c6 6169
10f2d63a 6170else
e6cc62c6 6171
10f2d63a
VZ
6172 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6173 if test "x$LINE" != x ; then
6174 eval "DEFAULT_$LINE"
6175 else
6176 no_cache=1
6177 fi
6178
6179 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6180
e6cc62c6 6181fi;
10f2d63a
VZ
6182
6183 eval "$ac_cv_use_postscript"
6184 if test "$no_cache" != 1; then
6185 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6186 fi
6187
6188 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6189 echo "$as_me:$LINENO: result: yes" >&5
6190echo "${ECHO_T}yes" >&6
10f2d63a 6191 else
e6cc62c6
VS
6192 echo "$as_me:$LINENO: result: no" >&5
6193echo "${ECHO_T}no" >&6
10f2d63a 6194 fi
e6cc62c6 6195
8284b0c5
MB
6196
6197
52127426 6198
8284b0c5 6199
5005acfe 6200 enablestring=
e6cc62c6
VS
6201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6202echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6203 no_cache=0
3c907f20
VZ
6204 # Check whether --enable-prologio or --disable-prologio was given.
6205if test "${enable_prologio+set}" = set; then
6206 enableval="$enable_prologio"
e6cc62c6 6207
10f2d63a 6208 if test "$enableval" = yes; then
3c907f20 6209 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6210 else
3c907f20 6211 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6212 fi
e6cc62c6 6213
10f2d63a 6214else
e6cc62c6 6215
3c907f20 6216 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6217 if test "x$LINE" != x ; then
6218 eval "DEFAULT_$LINE"
6219 else
6220 no_cache=1
6221 fi
6222
3c907f20 6223 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6224
e6cc62c6 6225fi;
10f2d63a 6226
3c907f20 6227 eval "$ac_cv_use_prologio"
10f2d63a 6228 if test "$no_cache" != 1; then
3c907f20 6229 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6230 fi
6231
3c907f20 6232 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6233 echo "$as_me:$LINENO: result: yes" >&5
6234echo "${ECHO_T}yes" >&6
10f2d63a 6235 else
e6cc62c6
VS
6236 echo "$as_me:$LINENO: result: no" >&5
6237echo "${ECHO_T}no" >&6
10f2d63a 6238 fi
e6cc62c6 6239
8284b0c5 6240
5005acfe 6241 enablestring=
e6cc62c6
VS
6242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6243echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6244 no_cache=0
3c907f20
VZ
6245 # Check whether --enable-resources or --disable-resources was given.
6246if test "${enable_resources+set}" = set; then
6247 enableval="$enable_resources"
e6cc62c6 6248
10f2d63a 6249 if test "$enableval" = yes; then
3c907f20 6250 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6251 else
3c907f20 6252 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6253 fi
e6cc62c6 6254
10f2d63a 6255else
e6cc62c6 6256
3c907f20 6257 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6258 if test "x$LINE" != x ; then
6259 eval "DEFAULT_$LINE"
6260 else
6261 no_cache=1
6262 fi
6263
3c907f20 6264 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6265
e6cc62c6 6266fi;
10f2d63a 6267
3c907f20 6268 eval "$ac_cv_use_resources"
10f2d63a 6269 if test "$no_cache" != 1; then
3c907f20 6270 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6271 fi
6272
3c907f20 6273 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6274 echo "$as_me:$LINENO: result: yes" >&5
6275echo "${ECHO_T}yes" >&6
10f2d63a 6276 else
e6cc62c6
VS
6277 echo "$as_me:$LINENO: result: no" >&5
6278echo "${ECHO_T}no" >&6
10f2d63a 6279 fi
e6cc62c6 6280
8284b0c5
MB
6281
6282
52127426 6283
5005acfe 6284 enablestring=
e6cc62c6
VS
6285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6286echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6287 no_cache=0
6288 # Check whether --enable-clipboard or --disable-clipboard was given.
6289if test "${enable_clipboard+set}" = set; then
6290 enableval="$enable_clipboard"
e6cc62c6 6291
10f2d63a
VZ
6292 if test "$enableval" = yes; then
6293 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6294 else
6295 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6296 fi
e6cc62c6 6297
10f2d63a 6298else
e6cc62c6 6299
10f2d63a
VZ
6300 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6301 if test "x$LINE" != x ; then
6302 eval "DEFAULT_$LINE"
6303 else
6304 no_cache=1
6305 fi
6306
6307 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6308
e6cc62c6 6309fi;
10f2d63a
VZ
6310
6311 eval "$ac_cv_use_clipboard"
6312 if test "$no_cache" != 1; then
6313 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6314 fi
6315
6316 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6317 echo "$as_me:$LINENO: result: yes" >&5
6318echo "${ECHO_T}yes" >&6
10f2d63a 6319 else
e6cc62c6
VS
6320 echo "$as_me:$LINENO: result: no" >&5
6321echo "${ECHO_T}no" >&6
10f2d63a 6322 fi
e6cc62c6 6323
10f2d63a 6324
5005acfe 6325 enablestring=
e6cc62c6
VS
6326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6327echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6328 no_cache=0
6329 # Check whether --enable-dnd or --disable-dnd was given.
6330if test "${enable_dnd+set}" = set; then
6331 enableval="$enable_dnd"
e6cc62c6 6332
10f2d63a
VZ
6333 if test "$enableval" = yes; then
6334 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6335 else
6336 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6337 fi
e6cc62c6 6338
10f2d63a 6339else
e6cc62c6 6340
10f2d63a
VZ
6341 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6342 if test "x$LINE" != x ; then
6343 eval "DEFAULT_$LINE"
6344 else
6345 no_cache=1
6346 fi
6347
6348 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6349
e6cc62c6 6350fi;
10f2d63a
VZ
6351
6352 eval "$ac_cv_use_dnd"
6353 if test "$no_cache" != 1; then
6354 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6355 fi
6356
6357 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6358 echo "$as_me:$LINENO: result: yes" >&5
6359echo "${ECHO_T}yes" >&6
10f2d63a 6360 else
e6cc62c6
VS
6361 echo "$as_me:$LINENO: result: no" >&5
6362echo "${ECHO_T}no" >&6
10f2d63a 6363 fi
e6cc62c6 6364
10f2d63a 6365
5005acfe 6366 enablestring=
e6cc62c6
VS
6367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6368echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6369 no_cache=0
6370 # Check whether --enable-metafile or --disable-metafile was given.
6371if test "${enable_metafile+set}" = set; then
6372 enableval="$enable_metafile"
e6cc62c6 6373
b64f0a5f
RL
6374 if test "$enableval" = yes; then
6375 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6376 else
6377 ac_cv_use_metafile='wxUSE_METAFILE=no'
6378 fi
e6cc62c6 6379
b64f0a5f 6380else
e6cc62c6 6381
b64f0a5f
RL
6382 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6383 if test "x$LINE" != x ; then
6384 eval "DEFAULT_$LINE"
6385 else
6386 no_cache=1
6387 fi
6388
6389 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6390
e6cc62c6 6391fi;
b64f0a5f
RL
6392
6393 eval "$ac_cv_use_metafile"
6394 if test "$no_cache" != 1; then
6395 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6396 fi
6397
6398 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6399 echo "$as_me:$LINENO: result: yes" >&5
6400echo "${ECHO_T}yes" >&6
b64f0a5f 6401 else
e6cc62c6
VS
6402 echo "$as_me:$LINENO: result: no" >&5
6403echo "${ECHO_T}no" >&6
b64f0a5f 6404 fi
e6cc62c6 6405
52127426 6406
8284b0c5 6407
52127426 6408
8284b0c5 6409
5005acfe 6410 enablestring=
e6cc62c6
VS
6411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6412echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6413 no_cache=0
6414 # Check whether --enable-controls or --disable-controls was given.
6415if test "${enable_controls+set}" = set; then
6416 enableval="$enable_controls"
e6cc62c6 6417
10f2d63a
VZ
6418 if test "$enableval" = yes; then
6419 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6420 else
6421 ac_cv_use_controls='wxUSE_CONTROLS=no'
6422 fi
e6cc62c6 6423
10f2d63a 6424else
e6cc62c6 6425
10f2d63a
VZ
6426 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6427 if test "x$LINE" != x ; then
6428 eval "DEFAULT_$LINE"
6429 else
6430 no_cache=1
6431 fi
6432
6433 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6434
e6cc62c6 6435fi;
10f2d63a
VZ
6436
6437 eval "$ac_cv_use_controls"
6438 if test "$no_cache" != 1; then
6439 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6440 fi
6441
6442 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6443 echo "$as_me:$LINENO: result: yes" >&5
6444echo "${ECHO_T}yes" >&6
10f2d63a 6445 else
e6cc62c6
VS
6446 echo "$as_me:$LINENO: result: no" >&5
6447echo "${ECHO_T}no" >&6
10f2d63a 6448 fi
e6cc62c6 6449
10f2d63a
VZ
6450
6451if test "$wxUSE_CONTROLS" = "yes"; then
6452 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6453 DEFAULT_wxUSE_BMPBUTTON=yes
6454 DEFAULT_wxUSE_BUTTON=yes
6455 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6456 DEFAULT_wxUSE_CARET=yes
6457 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6458 DEFAULT_wxUSE_CHECKBOX=yes
6459 DEFAULT_wxUSE_CHECKLISTBOX=yes
6460 DEFAULT_wxUSE_CHOICE=yes
6461 DEFAULT_wxUSE_GAUGE=yes
6462 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
6463 DEFAULT_wxUSE_IMAGLIST=yes
6464 DEFAULT_wxUSE_LISTBOX=yes
6465 DEFAULT_wxUSE_LISTCTRL=yes
6466 DEFAULT_wxUSE_NOTEBOOK=yes
6467 DEFAULT_wxUSE_RADIOBOX=yes
6468 DEFAULT_wxUSE_RADIOBTN=yes
6469 DEFAULT_wxUSE_SASH=yes
6470 DEFAULT_wxUSE_SCROLLBAR=yes
6471 DEFAULT_wxUSE_SLIDER=yes
6472 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6473 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6474 DEFAULT_wxUSE_SPLITTER=yes
6475 DEFAULT_wxUSE_STATBMP=yes
6476 DEFAULT_wxUSE_STATBOX=yes
6477 DEFAULT_wxUSE_STATLINE=yes
6478 DEFAULT_wxUSE_STATUSBAR=yes
6479 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6480 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6481 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6482 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6483 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6484 DEFAULT_wxUSE_TOOLTIPS=yes
6485 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6486 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6487 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6488elif test "$wxUSE_CONTROLS" = "no"; then
6489 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6490 DEFAULT_wxUSE_BMPBUTTON=no
6491 DEFAULT_wxUSE_BUTTON=no
6492 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6493 DEFAULT_wxUSE_CARET=no
6494 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6495 DEFAULT_wxUSE_CHECKBOX=no
6496 DEFAULT_wxUSE_CHECKLISTBOX=no
6497 DEFAULT_wxUSE_CHOICE=no
6498 DEFAULT_wxUSE_GAUGE=no
6499 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
6500 DEFAULT_wxUSE_IMAGLIST=no
6501 DEFAULT_wxUSE_LISTBOX=no
6502 DEFAULT_wxUSE_LISTCTRL=no
6503 DEFAULT_wxUSE_NOTEBOOK=no
6504 DEFAULT_wxUSE_RADIOBOX=no
6505 DEFAULT_wxUSE_RADIOBTN=no
6506 DEFAULT_wxUSE_SASH=no
6507 DEFAULT_wxUSE_SCROLLBAR=no
6508 DEFAULT_wxUSE_SLIDER=no
6509 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6510 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6511 DEFAULT_wxUSE_SPLITTER=no
6512 DEFAULT_wxUSE_STATBMP=no
6513 DEFAULT_wxUSE_STATBOX=no
6514 DEFAULT_wxUSE_STATLINE=no
6515 DEFAULT_wxUSE_STATUSBAR=no
6516 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6517 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6518 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6519 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6520 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6521 DEFAULT_wxUSE_TOOLTIPS=no
6522 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6523 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6524 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6525fi
6526
ac0c4cc3
DE
6527## FIXME: This is a blatant hack
6528if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6529 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6530 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6531 # Generic notebook requires tab dialog
6532 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6533 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3 6534 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6535 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6536 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6537fi
6538
8284b0c5 6539
5005acfe 6540 enablestring=
e6cc62c6
VS
6541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6542echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6543 no_cache=0
6544 # Check whether --enable-accel or --disable-accel was given.
6545if test "${enable_accel+set}" = set; then
6546 enableval="$enable_accel"
e6cc62c6 6547
10f2d63a
VZ
6548 if test "$enableval" = yes; then
6549 ac_cv_use_accel='wxUSE_ACCEL=yes'
6550 else
6551 ac_cv_use_accel='wxUSE_ACCEL=no'
6552 fi
e6cc62c6 6553
10f2d63a 6554else
e6cc62c6 6555
10f2d63a
VZ
6556 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6557 if test "x$LINE" != x ; then
6558 eval "DEFAULT_$LINE"
6559 else
6560 no_cache=1
6561 fi
6562
6563 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6564
e6cc62c6 6565fi;
10f2d63a
VZ
6566
6567 eval "$ac_cv_use_accel"
6568 if test "$no_cache" != 1; then
6569 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6570 fi
6571
6572 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6573 echo "$as_me:$LINENO: result: yes" >&5
6574echo "${ECHO_T}yes" >&6
10f2d63a 6575 else
e6cc62c6
VS
6576 echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6
10f2d63a 6578 fi
e6cc62c6 6579
10f2d63a 6580
5005acfe 6581 enablestring=
e6cc62c6
VS
6582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6583echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6584 no_cache=0
1e6feb95
VZ
6585 # Check whether --enable-button or --disable-button was given.
6586if test "${enable_button+set}" = set; then
6587 enableval="$enable_button"
e6cc62c6 6588
10f2d63a 6589 if test "$enableval" = yes; then
1e6feb95 6590 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6591 else
1e6feb95 6592 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6593 fi
e6cc62c6 6594
10f2d63a 6595else
e6cc62c6 6596
1e6feb95 6597 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6598 if test "x$LINE" != x ; then
6599 eval "DEFAULT_$LINE"
6600 else
6601 no_cache=1
6602 fi
6603
1e6feb95 6604 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6605
e6cc62c6 6606fi;
10f2d63a 6607
1e6feb95 6608 eval "$ac_cv_use_button"
10f2d63a 6609 if test "$no_cache" != 1; then
1e6feb95 6610 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6611 fi
6612
1e6feb95 6613 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6614 echo "$as_me:$LINENO: result: yes" >&5
6615echo "${ECHO_T}yes" >&6
10f2d63a 6616 else
e6cc62c6
VS
6617 echo "$as_me:$LINENO: result: no" >&5
6618echo "${ECHO_T}no" >&6
10f2d63a 6619 fi
e6cc62c6 6620
10f2d63a 6621
5005acfe 6622 enablestring=
e6cc62c6
VS
6623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6624echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6625 no_cache=0
6626 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6627if test "${enable_bmpbutton+set}" = set; then
6628 enableval="$enable_bmpbutton"
e6cc62c6 6629
10f2d63a
VZ
6630 if test "$enableval" = yes; then
6631 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6632 else
6633 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6634 fi
e6cc62c6 6635
10f2d63a 6636else
e6cc62c6 6637
10f2d63a
VZ
6638 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6639 if test "x$LINE" != x ; then
6640 eval "DEFAULT_$LINE"
6641 else
6642 no_cache=1
6643 fi
6644
6645 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6646
e6cc62c6 6647fi;
10f2d63a
VZ
6648
6649 eval "$ac_cv_use_bmpbutton"
6650 if test "$no_cache" != 1; then
6651 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6652 fi
6653
6654 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6655 echo "$as_me:$LINENO: result: yes" >&5
6656echo "${ECHO_T}yes" >&6
10f2d63a 6657 else
e6cc62c6
VS
6658 echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6
10f2d63a 6660 fi
e6cc62c6 6661
10f2d63a 6662
5005acfe 6663 enablestring=
e6cc62c6
VS
6664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6665echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6666 no_cache=0
6667 # Check whether --enable-calendar or --disable-calendar was given.
6668if test "${enable_calendar+set}" = set; then
6669 enableval="$enable_calendar"
e6cc62c6 6670
1e6feb95
VZ
6671 if test "$enableval" = yes; then
6672 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6673 else
6674 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6675 fi
e6cc62c6 6676
1e6feb95 6677else
e6cc62c6 6678
1e6feb95
VZ
6679 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6680 if test "x$LINE" != x ; then
6681 eval "DEFAULT_$LINE"
6682 else
6683 no_cache=1
6684 fi
6685
6686 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6687
e6cc62c6 6688fi;
1e6feb95
VZ
6689
6690 eval "$ac_cv_use_calendar"
6691 if test "$no_cache" != 1; then
6692 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6693 fi
6694
6695 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6696 echo "$as_me:$LINENO: result: yes" >&5
6697echo "${ECHO_T}yes" >&6
1e6feb95 6698 else
e6cc62c6
VS
6699 echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6
1e6feb95 6701 fi
e6cc62c6 6702
1e6feb95 6703
5005acfe 6704 enablestring=
e6cc62c6
VS
6705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6706echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6707 no_cache=0
6708 # Check whether --enable-caret or --disable-caret was given.
6709if test "${enable_caret+set}" = set; then
6710 enableval="$enable_caret"
e6cc62c6 6711
1e6feb95
VZ
6712 if test "$enableval" = yes; then
6713 ac_cv_use_caret='wxUSE_CARET=yes'
6714 else
6715 ac_cv_use_caret='wxUSE_CARET=no'
6716 fi
e6cc62c6 6717
1e6feb95 6718else
e6cc62c6 6719
1e6feb95
VZ
6720 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6721 if test "x$LINE" != x ; then
6722 eval "DEFAULT_$LINE"
6723 else
6724 no_cache=1
6725 fi
6726
6727 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6728
e6cc62c6 6729fi;
1e6feb95
VZ
6730
6731 eval "$ac_cv_use_caret"
6732 if test "$no_cache" != 1; then
6733 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6734 fi
6735
6736 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6737 echo "$as_me:$LINENO: result: yes" >&5
6738echo "${ECHO_T}yes" >&6
1e6feb95 6739 else
e6cc62c6
VS
6740 echo "$as_me:$LINENO: result: no" >&5
6741echo "${ECHO_T}no" >&6
1e6feb95 6742 fi
e6cc62c6 6743
1e6feb95 6744
5005acfe 6745 enablestring=
e6cc62c6
VS
6746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6747echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6748 no_cache=0
6749 # Check whether --enable-checkbox or --disable-checkbox was given.
6750if test "${enable_checkbox+set}" = set; then
6751 enableval="$enable_checkbox"
e6cc62c6 6752
10f2d63a
VZ
6753 if test "$enableval" = yes; then
6754 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6755 else
6756 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6757 fi
e6cc62c6 6758
10f2d63a 6759else
e6cc62c6 6760
10f2d63a
VZ
6761 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6762 if test "x$LINE" != x ; then
6763 eval "DEFAULT_$LINE"
6764 else
6765 no_cache=1
6766 fi
6767
6768 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6769
e6cc62c6 6770fi;
10f2d63a
VZ
6771
6772 eval "$ac_cv_use_checkbox"
6773 if test "$no_cache" != 1; then
6774 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6775 fi
6776
6777 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6778 echo "$as_me:$LINENO: result: yes" >&5
6779echo "${ECHO_T}yes" >&6
10f2d63a 6780 else
e6cc62c6
VS
6781 echo "$as_me:$LINENO: result: no" >&5
6782echo "${ECHO_T}no" >&6
10f2d63a 6783 fi
e6cc62c6 6784
10f2d63a 6785
5005acfe 6786 enablestring=
e6cc62c6
VS
6787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6788echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6789 no_cache=0
6790 # Check whether --enable-checklst or --disable-checklst was given.
6791if test "${enable_checklst+set}" = set; then
6792 enableval="$enable_checklst"
e6cc62c6 6793
10f2d63a
VZ
6794 if test "$enableval" = yes; then
6795 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6796 else
6797 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6798 fi
e6cc62c6 6799
10f2d63a 6800else
e6cc62c6 6801
10f2d63a
VZ
6802 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6803 if test "x$LINE" != x ; then
6804 eval "DEFAULT_$LINE"
6805 else
6806 no_cache=1
6807 fi
6808
6809 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6810
e6cc62c6 6811fi;
10f2d63a
VZ
6812
6813 eval "$ac_cv_use_checklst"
6814 if test "$no_cache" != 1; then
6815 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6816 fi
6817
6818 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6819 echo "$as_me:$LINENO: result: yes" >&5
6820echo "${ECHO_T}yes" >&6
10f2d63a 6821 else
e6cc62c6
VS
6822 echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6
10f2d63a 6824 fi
e6cc62c6 6825
10f2d63a 6826
5005acfe 6827 enablestring=
e6cc62c6
VS
6828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6829echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6830 no_cache=0
6831 # Check whether --enable-choice or --disable-choice was given.
6832if test "${enable_choice+set}" = set; then
6833 enableval="$enable_choice"
e6cc62c6 6834
10f2d63a
VZ
6835 if test "$enableval" = yes; then
6836 ac_cv_use_choice='wxUSE_CHOICE=yes'
6837 else
6838 ac_cv_use_choice='wxUSE_CHOICE=no'
6839 fi
e6cc62c6 6840
10f2d63a 6841else
e6cc62c6 6842
10f2d63a
VZ
6843 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6844 if test "x$LINE" != x ; then
6845 eval "DEFAULT_$LINE"
6846 else
6847 no_cache=1
6848 fi
6849
6850 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6851
e6cc62c6 6852fi;
10f2d63a
VZ
6853
6854 eval "$ac_cv_use_choice"
6855 if test "$no_cache" != 1; then
6856 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6857 fi
6858
6859 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6860 echo "$as_me:$LINENO: result: yes" >&5
6861echo "${ECHO_T}yes" >&6
10f2d63a 6862 else
e6cc62c6
VS
6863 echo "$as_me:$LINENO: result: no" >&5
6864echo "${ECHO_T}no" >&6
10f2d63a 6865 fi
e6cc62c6 6866
10f2d63a 6867
5005acfe 6868 enablestring=
e6cc62c6
VS
6869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6870echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6871 no_cache=0
6872 # Check whether --enable-combobox or --disable-combobox was given.
6873if test "${enable_combobox+set}" = set; then
6874 enableval="$enable_combobox"
e6cc62c6 6875
10f2d63a
VZ
6876 if test "$enableval" = yes; then
6877 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6878 else
6879 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6880 fi
e6cc62c6 6881
10f2d63a 6882else
e6cc62c6 6883
10f2d63a
VZ
6884 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6885 if test "x$LINE" != x ; then
6886 eval "DEFAULT_$LINE"
6887 else
6888 no_cache=1
6889 fi
6890
6891 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6892
e6cc62c6 6893fi;
10f2d63a
VZ
6894
6895 eval "$ac_cv_use_combobox"
6896 if test "$no_cache" != 1; then
6897 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6898 fi
6899
6900 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6901 echo "$as_me:$LINENO: result: yes" >&5
6902echo "${ECHO_T}yes" >&6
10f2d63a 6903 else
e6cc62c6
VS
6904 echo "$as_me:$LINENO: result: no" >&5
6905echo "${ECHO_T}no" >&6
10f2d63a 6906 fi
e6cc62c6 6907
10f2d63a 6908
da494b40 6909 enablestring=
e6cc62c6
VS
6910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6911echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6912 no_cache=0
6913 # Check whether --enable-display or --disable-display was given.
6914if test "${enable_display+set}" = set; then
6915 enableval="$enable_display"
e6cc62c6 6916
da494b40
MB
6917 if test "$enableval" = yes; then
6918 ac_cv_use_display='wxUSE_DISPLAY=yes'
6919 else
6920 ac_cv_use_display='wxUSE_DISPLAY=no'
6921 fi
e6cc62c6 6922
da494b40 6923else
e6cc62c6 6924
da494b40
MB
6925 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6926 if test "x$LINE" != x ; then
6927 eval "DEFAULT_$LINE"
6928 else
6929 no_cache=1
6930 fi
6931
6932 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 6933
e6cc62c6 6934fi;
da494b40
MB
6935
6936 eval "$ac_cv_use_display"
6937 if test "$no_cache" != 1; then
6938 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6939 fi
6940
6941 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
6942 echo "$as_me:$LINENO: result: yes" >&5
6943echo "${ECHO_T}yes" >&6
da494b40 6944 else
e6cc62c6
VS
6945 echo "$as_me:$LINENO: result: no" >&5
6946echo "${ECHO_T}no" >&6
da494b40 6947 fi
e6cc62c6 6948
da494b40 6949
5005acfe 6950 enablestring=
e6cc62c6
VS
6951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6952echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
6953 no_cache=0
6954 # Check whether --enable-gauge or --disable-gauge was given.
6955if test "${enable_gauge+set}" = set; then
6956 enableval="$enable_gauge"
e6cc62c6 6957
10f2d63a
VZ
6958 if test "$enableval" = yes; then
6959 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6960 else
6961 ac_cv_use_gauge='wxUSE_GAUGE=no'
6962 fi
e6cc62c6 6963
10f2d63a 6964else
e6cc62c6 6965
10f2d63a
VZ
6966 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6967 if test "x$LINE" != x ; then
6968 eval "DEFAULT_$LINE"
6969 else
6970 no_cache=1
6971 fi
6972
6973 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 6974
e6cc62c6 6975fi;
10f2d63a
VZ
6976
6977 eval "$ac_cv_use_gauge"
6978 if test "$no_cache" != 1; then
6979 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6980 fi
6981
6982 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
6983 echo "$as_me:$LINENO: result: yes" >&5
6984echo "${ECHO_T}yes" >&6
10f2d63a 6985 else
e6cc62c6
VS
6986 echo "$as_me:$LINENO: result: no" >&5
6987echo "${ECHO_T}no" >&6
10f2d63a 6988 fi
e6cc62c6 6989
10f2d63a 6990
5005acfe 6991 enablestring=
e6cc62c6
VS
6992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
6993echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
6994 no_cache=0
6995 # Check whether --enable-grid or --disable-grid was given.
6996if test "${enable_grid+set}" = set; then
6997 enableval="$enable_grid"
e6cc62c6 6998
10f2d63a
VZ
6999 if test "$enableval" = yes; then
7000 ac_cv_use_grid='wxUSE_GRID=yes'
7001 else
7002 ac_cv_use_grid='wxUSE_GRID=no'
7003 fi
e6cc62c6 7004
10f2d63a 7005else
e6cc62c6 7006
10f2d63a
VZ
7007 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7008 if test "x$LINE" != x ; then
7009 eval "DEFAULT_$LINE"
7010 else
7011 no_cache=1
7012 fi
7013
7014 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7015
e6cc62c6 7016fi;
10f2d63a
VZ
7017
7018 eval "$ac_cv_use_grid"
7019 if test "$no_cache" != 1; then
7020 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7021 fi
7022
7023 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7024 echo "$as_me:$LINENO: result: yes" >&5
7025echo "${ECHO_T}yes" >&6
10f2d63a 7026 else
e6cc62c6
VS
7027 echo "$as_me:$LINENO: result: no" >&5
7028echo "${ECHO_T}no" >&6
10f2d63a 7029 fi
e6cc62c6 7030
10f2d63a 7031
5005acfe 7032 enablestring=
e6cc62c6
VS
7033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7034echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7035 no_cache=0
7036 # Check whether --enable-imaglist or --disable-imaglist was given.
7037if test "${enable_imaglist+set}" = set; then
7038 enableval="$enable_imaglist"
e6cc62c6 7039
10f2d63a
VZ
7040 if test "$enableval" = yes; then
7041 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7042 else
7043 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7044 fi
e6cc62c6 7045
10f2d63a 7046else
e6cc62c6 7047
10f2d63a
VZ
7048 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7049 if test "x$LINE" != x ; then
7050 eval "DEFAULT_$LINE"
7051 else
7052 no_cache=1
7053 fi
7054
7055 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7056
e6cc62c6 7057fi;
10f2d63a
VZ
7058
7059 eval "$ac_cv_use_imaglist"
7060 if test "$no_cache" != 1; then
7061 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7062 fi
7063
7064 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7065 echo "$as_me:$LINENO: result: yes" >&5
7066echo "${ECHO_T}yes" >&6
10f2d63a 7067 else
e6cc62c6
VS
7068 echo "$as_me:$LINENO: result: no" >&5
7069echo "${ECHO_T}no" >&6
10f2d63a 7070 fi
e6cc62c6 7071
10f2d63a 7072
5005acfe 7073 enablestring=
e6cc62c6
VS
7074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7075echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7076 no_cache=0
7077 # Check whether --enable-listbox or --disable-listbox was given.
7078if test "${enable_listbox+set}" = set; then
7079 enableval="$enable_listbox"
e6cc62c6 7080
10f2d63a
VZ
7081 if test "$enableval" = yes; then
7082 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7083 else
7084 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7085 fi
e6cc62c6 7086
10f2d63a 7087else
e6cc62c6 7088
10f2d63a
VZ
7089 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7090 if test "x$LINE" != x ; then
7091 eval "DEFAULT_$LINE"
7092 else
7093 no_cache=1
7094 fi
7095
7096 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7097
e6cc62c6 7098fi;
10f2d63a
VZ
7099
7100 eval "$ac_cv_use_listbox"
7101 if test "$no_cache" != 1; then
7102 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7103 fi
7104
7105 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7106 echo "$as_me:$LINENO: result: yes" >&5
7107echo "${ECHO_T}yes" >&6
10f2d63a 7108 else
e6cc62c6
VS
7109 echo "$as_me:$LINENO: result: no" >&5
7110echo "${ECHO_T}no" >&6
10f2d63a 7111 fi
e6cc62c6 7112
10f2d63a 7113
5005acfe 7114 enablestring=
e6cc62c6
VS
7115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7116echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7117 no_cache=0
7118 # Check whether --enable-listctrl or --disable-listctrl was given.
7119if test "${enable_listctrl+set}" = set; then
7120 enableval="$enable_listctrl"
e6cc62c6 7121
10f2d63a
VZ
7122 if test "$enableval" = yes; then
7123 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7124 else
7125 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7126 fi
e6cc62c6 7127
10f2d63a 7128else
e6cc62c6 7129
10f2d63a
VZ
7130 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7131 if test "x$LINE" != x ; then
7132 eval "DEFAULT_$LINE"
7133 else
7134 no_cache=1
7135 fi
7136
7137 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7138
e6cc62c6 7139fi;
10f2d63a
VZ
7140
7141 eval "$ac_cv_use_listctrl"
7142 if test "$no_cache" != 1; then
7143 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7144 fi
7145
7146 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7147 echo "$as_me:$LINENO: result: yes" >&5
7148echo "${ECHO_T}yes" >&6
10f2d63a 7149 else
e6cc62c6
VS
7150 echo "$as_me:$LINENO: result: no" >&5
7151echo "${ECHO_T}no" >&6
10f2d63a 7152 fi
e6cc62c6 7153
10f2d63a 7154
5005acfe 7155 enablestring=
e6cc62c6
VS
7156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7157echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7158 no_cache=0
7159 # Check whether --enable-notebook or --disable-notebook was given.
7160if test "${enable_notebook+set}" = set; then
7161 enableval="$enable_notebook"
e6cc62c6 7162
10f2d63a
VZ
7163 if test "$enableval" = yes; then
7164 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7165 else
7166 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7167 fi
e6cc62c6 7168
10f2d63a 7169else
e6cc62c6 7170
10f2d63a
VZ
7171 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7172 if test "x$LINE" != x ; then
7173 eval "DEFAULT_$LINE"
7174 else
7175 no_cache=1
7176 fi
7177
7178 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7179
e6cc62c6 7180fi;
10f2d63a
VZ
7181
7182 eval "$ac_cv_use_notebook"
7183 if test "$no_cache" != 1; then
7184 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7185 fi
7186
7187 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7188 echo "$as_me:$LINENO: result: yes" >&5
7189echo "${ECHO_T}yes" >&6
10f2d63a 7190 else
e6cc62c6
VS
7191 echo "$as_me:$LINENO: result: no" >&5
7192echo "${ECHO_T}no" >&6
10f2d63a 7193 fi
e6cc62c6 7194
10f2d63a 7195
5005acfe 7196 enablestring=
e6cc62c6
VS
7197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7198echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7199 no_cache=0
7200 # Check whether --enable-radiobox or --disable-radiobox was given.
7201if test "${enable_radiobox+set}" = set; then
7202 enableval="$enable_radiobox"
e6cc62c6 7203
10f2d63a
VZ
7204 if test "$enableval" = yes; then
7205 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7206 else
7207 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7208 fi
e6cc62c6 7209
10f2d63a 7210else
e6cc62c6 7211
10f2d63a
VZ
7212 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7213 if test "x$LINE" != x ; then
7214 eval "DEFAULT_$LINE"
7215 else
7216 no_cache=1
7217 fi
7218
7219 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7220
e6cc62c6 7221fi;
10f2d63a
VZ
7222
7223 eval "$ac_cv_use_radiobox"
7224 if test "$no_cache" != 1; then
7225 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7226 fi
7227
7228 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7229 echo "$as_me:$LINENO: result: yes" >&5
7230echo "${ECHO_T}yes" >&6
10f2d63a 7231 else
e6cc62c6
VS
7232 echo "$as_me:$LINENO: result: no" >&5
7233echo "${ECHO_T}no" >&6
10f2d63a 7234 fi
e6cc62c6 7235
10f2d63a 7236
5005acfe 7237 enablestring=
e6cc62c6
VS
7238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7239echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7240 no_cache=0
7241 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7242if test "${enable_radiobtn+set}" = set; then
7243 enableval="$enable_radiobtn"
e6cc62c6 7244
10f2d63a
VZ
7245 if test "$enableval" = yes; then
7246 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7247 else
7248 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7249 fi
e6cc62c6 7250
10f2d63a 7251else
e6cc62c6 7252
10f2d63a
VZ
7253 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7254 if test "x$LINE" != x ; then
7255 eval "DEFAULT_$LINE"
7256 else
7257 no_cache=1
7258 fi
7259
7260 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7261
e6cc62c6 7262fi;
10f2d63a
VZ
7263
7264 eval "$ac_cv_use_radiobtn"
7265 if test "$no_cache" != 1; then
7266 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7267 fi
7268
7269 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7270 echo "$as_me:$LINENO: result: yes" >&5
7271echo "${ECHO_T}yes" >&6
10f2d63a 7272 else
e6cc62c6
VS
7273 echo "$as_me:$LINENO: result: no" >&5
7274echo "${ECHO_T}no" >&6
10f2d63a 7275 fi
e6cc62c6 7276
10f2d63a 7277
5005acfe 7278 enablestring=
e6cc62c6
VS
7279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7280echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7281 no_cache=0
7282 # Check whether --enable-sash or --disable-sash was given.
7283if test "${enable_sash+set}" = set; then
7284 enableval="$enable_sash"
e6cc62c6 7285
10f2d63a
VZ
7286 if test "$enableval" = yes; then
7287 ac_cv_use_sash='wxUSE_SASH=yes'
7288 else
7289 ac_cv_use_sash='wxUSE_SASH=no'
7290 fi
e6cc62c6 7291
10f2d63a 7292else
e6cc62c6 7293
10f2d63a
VZ
7294 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7295 if test "x$LINE" != x ; then
7296 eval "DEFAULT_$LINE"
7297 else
7298 no_cache=1
7299 fi
7300
7301 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7302
e6cc62c6 7303fi;
10f2d63a
VZ
7304
7305 eval "$ac_cv_use_sash"
7306 if test "$no_cache" != 1; then
7307 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7308 fi
7309
7310 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7311 echo "$as_me:$LINENO: result: yes" >&5
7312echo "${ECHO_T}yes" >&6
10f2d63a 7313 else
e6cc62c6
VS
7314 echo "$as_me:$LINENO: result: no" >&5
7315echo "${ECHO_T}no" >&6
10f2d63a 7316 fi
e6cc62c6 7317
10f2d63a 7318
5005acfe 7319 enablestring=
e6cc62c6
VS
7320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7321echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7322 no_cache=0
7323 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7324if test "${enable_scrollbar+set}" = set; then
7325 enableval="$enable_scrollbar"
e6cc62c6 7326
10f2d63a
VZ
7327 if test "$enableval" = yes; then
7328 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7329 else
7330 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7331 fi
e6cc62c6 7332
10f2d63a 7333else
e6cc62c6 7334
10f2d63a
VZ
7335 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7336 if test "x$LINE" != x ; then
7337 eval "DEFAULT_$LINE"
7338 else
7339 no_cache=1
7340 fi
7341
7342 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7343
e6cc62c6 7344fi;
10f2d63a
VZ
7345
7346 eval "$ac_cv_use_scrollbar"
7347 if test "$no_cache" != 1; then
7348 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7349 fi
7350
7351 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7352 echo "$as_me:$LINENO: result: yes" >&5
7353echo "${ECHO_T}yes" >&6
10f2d63a 7354 else
e6cc62c6
VS
7355 echo "$as_me:$LINENO: result: no" >&5
7356echo "${ECHO_T}no" >&6
10f2d63a 7357 fi
e6cc62c6 7358
10f2d63a 7359
5005acfe 7360 enablestring=
e6cc62c6
VS
7361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7362echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7363 no_cache=0
7364 # Check whether --enable-slider or --disable-slider was given.
7365if test "${enable_slider+set}" = set; then
7366 enableval="$enable_slider"
e6cc62c6 7367
10f2d63a
VZ
7368 if test "$enableval" = yes; then
7369 ac_cv_use_slider='wxUSE_SLIDER=yes'
7370 else
7371 ac_cv_use_slider='wxUSE_SLIDER=no'
7372 fi
e6cc62c6 7373
10f2d63a 7374else
e6cc62c6 7375
10f2d63a
VZ
7376 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7377 if test "x$LINE" != x ; then
7378 eval "DEFAULT_$LINE"
7379 else
7380 no_cache=1
7381 fi
7382
7383 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7384
e6cc62c6 7385fi;
10f2d63a
VZ
7386
7387 eval "$ac_cv_use_slider"
7388 if test "$no_cache" != 1; then
7389 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7390 fi
7391
7392 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7393 echo "$as_me:$LINENO: result: yes" >&5
7394echo "${ECHO_T}yes" >&6
10f2d63a 7395 else
e6cc62c6
VS
7396 echo "$as_me:$LINENO: result: no" >&5
7397echo "${ECHO_T}no" >&6
10f2d63a 7398 fi
e6cc62c6 7399
10f2d63a 7400
5005acfe 7401 enablestring=
e6cc62c6
VS
7402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7403echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7404 no_cache=0
7405 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7406if test "${enable_spinbtn+set}" = set; then
7407 enableval="$enable_spinbtn"
e6cc62c6 7408
10f2d63a
VZ
7409 if test "$enableval" = yes; then
7410 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7411 else
7412 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7413 fi
e6cc62c6 7414
10f2d63a 7415else
e6cc62c6 7416
10f2d63a
VZ
7417 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7418 if test "x$LINE" != x ; then
7419 eval "DEFAULT_$LINE"
7420 else
7421 no_cache=1
7422 fi
7423
7424 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7425
e6cc62c6 7426fi;
10f2d63a
VZ
7427
7428 eval "$ac_cv_use_spinbtn"
7429 if test "$no_cache" != 1; then
7430 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7431 fi
7432
7433 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7434 echo "$as_me:$LINENO: result: yes" >&5
7435echo "${ECHO_T}yes" >&6
10f2d63a 7436 else
e6cc62c6
VS
7437 echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6
10f2d63a 7439 fi
e6cc62c6 7440
10f2d63a 7441
5005acfe 7442 enablestring=
e6cc62c6
VS
7443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7444echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7445 no_cache=0
7446 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7447if test "${enable_spinctrl+set}" = set; then
7448 enableval="$enable_spinctrl"
e6cc62c6 7449
56cfaa52
RR
7450 if test "$enableval" = yes; then
7451 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7452 else
7453 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7454 fi
e6cc62c6 7455
56cfaa52 7456else
e6cc62c6 7457
56cfaa52
RR
7458 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7459 if test "x$LINE" != x ; then
7460 eval "DEFAULT_$LINE"
7461 else
7462 no_cache=1
7463 fi
7464
7465 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7466
e6cc62c6 7467fi;
56cfaa52
RR
7468
7469 eval "$ac_cv_use_spinctrl"
7470 if test "$no_cache" != 1; then
7471 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7472 fi
7473
7474 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7475 echo "$as_me:$LINENO: result: yes" >&5
7476echo "${ECHO_T}yes" >&6
56cfaa52 7477 else
e6cc62c6
VS
7478 echo "$as_me:$LINENO: result: no" >&5
7479echo "${ECHO_T}no" >&6
56cfaa52 7480 fi
e6cc62c6 7481
56cfaa52 7482
5005acfe 7483 enablestring=
e6cc62c6
VS
7484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7485echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7486 no_cache=0
7487 # Check whether --enable-splitter or --disable-splitter was given.
7488if test "${enable_splitter+set}" = set; then
7489 enableval="$enable_splitter"
e6cc62c6 7490
10f2d63a
VZ
7491 if test "$enableval" = yes; then
7492 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7493 else
7494 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7495 fi
e6cc62c6 7496
10f2d63a 7497else
e6cc62c6 7498
10f2d63a
VZ
7499 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7500 if test "x$LINE" != x ; then
7501 eval "DEFAULT_$LINE"
7502 else
7503 no_cache=1
7504 fi
7505
7506 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7507
e6cc62c6 7508fi;
10f2d63a
VZ
7509
7510 eval "$ac_cv_use_splitter"
7511 if test "$no_cache" != 1; then
7512 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7513 fi
7514
7515 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7516 echo "$as_me:$LINENO: result: yes" >&5
7517echo "${ECHO_T}yes" >&6
10f2d63a 7518 else
e6cc62c6
VS
7519 echo "$as_me:$LINENO: result: no" >&5
7520echo "${ECHO_T}no" >&6
10f2d63a 7521 fi
e6cc62c6 7522
10f2d63a 7523
5005acfe 7524 enablestring=
e6cc62c6
VS
7525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7526echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7527 no_cache=0
7528 # Check whether --enable-statbmp or --disable-statbmp was given.
7529if test "${enable_statbmp+set}" = set; then
7530 enableval="$enable_statbmp"
e6cc62c6 7531
10f2d63a
VZ
7532 if test "$enableval" = yes; then
7533 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7534 else
7535 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7536 fi
e6cc62c6 7537
10f2d63a 7538else
e6cc62c6 7539
10f2d63a
VZ
7540 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7541 if test "x$LINE" != x ; then
7542 eval "DEFAULT_$LINE"
7543 else
7544 no_cache=1
7545 fi
7546
7547 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7548
e6cc62c6 7549fi;
10f2d63a
VZ
7550
7551 eval "$ac_cv_use_statbmp"
7552 if test "$no_cache" != 1; then
7553 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7554 fi
7555
7556 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7557 echo "$as_me:$LINENO: result: yes" >&5
7558echo "${ECHO_T}yes" >&6
10f2d63a 7559 else
e6cc62c6
VS
7560 echo "$as_me:$LINENO: result: no" >&5
7561echo "${ECHO_T}no" >&6
10f2d63a 7562 fi
e6cc62c6 7563
10f2d63a 7564
5005acfe 7565 enablestring=
e6cc62c6
VS
7566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7567echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7568 no_cache=0
7569 # Check whether --enable-statbox or --disable-statbox was given.
7570if test "${enable_statbox+set}" = set; then
7571 enableval="$enable_statbox"
e6cc62c6 7572
10f2d63a
VZ
7573 if test "$enableval" = yes; then
7574 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7575 else
7576 ac_cv_use_statbox='wxUSE_STATBOX=no'
7577 fi
e6cc62c6 7578
10f2d63a 7579else
e6cc62c6 7580
10f2d63a
VZ
7581 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7582 if test "x$LINE" != x ; then
7583 eval "DEFAULT_$LINE"
7584 else
7585 no_cache=1
7586 fi
7587
7588 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7589
e6cc62c6 7590fi;
10f2d63a
VZ
7591
7592 eval "$ac_cv_use_statbox"
7593 if test "$no_cache" != 1; then
7594 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7595 fi
7596
7597 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7598 echo "$as_me:$LINENO: result: yes" >&5
7599echo "${ECHO_T}yes" >&6
10f2d63a 7600 else
e6cc62c6
VS
7601 echo "$as_me:$LINENO: result: no" >&5
7602echo "${ECHO_T}no" >&6
10f2d63a 7603 fi
e6cc62c6 7604
10f2d63a 7605
5005acfe 7606 enablestring=
e6cc62c6
VS
7607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7608echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7609 no_cache=0
7610 # Check whether --enable-statline or --disable-statline was given.
7611if test "${enable_statline+set}" = set; then
7612 enableval="$enable_statline"
e6cc62c6 7613
10f2d63a
VZ
7614 if test "$enableval" = yes; then
7615 ac_cv_use_statline='wxUSE_STATLINE=yes'
7616 else
7617 ac_cv_use_statline='wxUSE_STATLINE=no'
7618 fi
e6cc62c6 7619
10f2d63a 7620else
e6cc62c6 7621
10f2d63a
VZ
7622 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7623 if test "x$LINE" != x ; then
7624 eval "DEFAULT_$LINE"
7625 else
7626 no_cache=1
7627 fi
7628
7629 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7630
e6cc62c6 7631fi;
10f2d63a
VZ
7632
7633 eval "$ac_cv_use_statline"
7634 if test "$no_cache" != 1; then
7635 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7636 fi
7637
7638 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7639 echo "$as_me:$LINENO: result: yes" >&5
7640echo "${ECHO_T}yes" >&6
10f2d63a 7641 else
e6cc62c6
VS
7642 echo "$as_me:$LINENO: result: no" >&5
7643echo "${ECHO_T}no" >&6
10f2d63a 7644 fi
e6cc62c6 7645
10f2d63a 7646
5005acfe 7647 enablestring=
e6cc62c6
VS
7648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7649echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7650 no_cache=0
7651 # Check whether --enable-stattext or --disable-stattext was given.
7652if test "${enable_stattext+set}" = set; then
7653 enableval="$enable_stattext"
e6cc62c6 7654
1e6feb95
VZ
7655 if test "$enableval" = yes; then
7656 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7657 else
7658 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7659 fi
e6cc62c6 7660
1e6feb95 7661else
e6cc62c6 7662
1e6feb95
VZ
7663 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7664 if test "x$LINE" != x ; then
7665 eval "DEFAULT_$LINE"
7666 else
7667 no_cache=1
7668 fi
7669
7670 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7671
e6cc62c6 7672fi;
1e6feb95
VZ
7673
7674 eval "$ac_cv_use_stattext"
7675 if test "$no_cache" != 1; then
7676 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7677 fi
7678
7679 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7680 echo "$as_me:$LINENO: result: yes" >&5
7681echo "${ECHO_T}yes" >&6
1e6feb95 7682 else
e6cc62c6
VS
7683 echo "$as_me:$LINENO: result: no" >&5
7684echo "${ECHO_T}no" >&6
1e6feb95 7685 fi
e6cc62c6 7686
1e6feb95 7687
5005acfe 7688 enablestring=
e6cc62c6
VS
7689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7690echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7691 no_cache=0
7692 # Check whether --enable-statusbar or --disable-statusbar was given.
7693if test "${enable_statusbar+set}" = set; then
7694 enableval="$enable_statusbar"
e6cc62c6 7695
10f2d63a
VZ
7696 if test "$enableval" = yes; then
7697 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7698 else
7699 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7700 fi
e6cc62c6 7701
10f2d63a 7702else
e6cc62c6 7703
10f2d63a
VZ
7704 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7705 if test "x$LINE" != x ; then
7706 eval "DEFAULT_$LINE"
7707 else
7708 no_cache=1
7709 fi
7710
7711 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7712
e6cc62c6 7713fi;
10f2d63a
VZ
7714
7715 eval "$ac_cv_use_statusbar"
7716 if test "$no_cache" != 1; then
7717 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7718 fi
7719
7720 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7721 echo "$as_me:$LINENO: result: yes" >&5
7722echo "${ECHO_T}yes" >&6
10f2d63a 7723 else
e6cc62c6
VS
7724 echo "$as_me:$LINENO: result: no" >&5
7725echo "${ECHO_T}no" >&6
10f2d63a 7726 fi
e6cc62c6 7727
10f2d63a 7728
5005acfe 7729 enablestring=
e6cc62c6
VS
7730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7731echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7732 no_cache=0
7733 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7734if test "${enable_tabdialog+set}" = set; then
7735 enableval="$enable_tabdialog"
e6cc62c6 7736
10f2d63a
VZ
7737 if test "$enableval" = yes; then
7738 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7739 else
7740 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7741 fi
e6cc62c6 7742
10f2d63a 7743else
e6cc62c6 7744
10f2d63a
VZ
7745 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7746 if test "x$LINE" != x ; then
7747 eval "DEFAULT_$LINE"
7748 else
7749 no_cache=1
7750 fi
7751
7752 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7753
e6cc62c6 7754fi;
10f2d63a
VZ
7755
7756 eval "$ac_cv_use_tabdialog"
7757 if test "$no_cache" != 1; then
7758 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7759 fi
7760
7761 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7762 echo "$as_me:$LINENO: result: yes" >&5
7763echo "${ECHO_T}yes" >&6
10f2d63a 7764 else
e6cc62c6
VS
7765 echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6
10f2d63a 7767 fi
e6cc62c6 7768
10f2d63a 7769
5005acfe 7770 enablestring=
e6cc62c6
VS
7771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7772echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7773 no_cache=0
7774 # Check whether --enable-textctrl or --disable-textctrl was given.
7775if test "${enable_textctrl+set}" = set; then
7776 enableval="$enable_textctrl"
e6cc62c6 7777
1e6feb95
VZ
7778 if test "$enableval" = yes; then
7779 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7780 else
7781 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7782 fi
e6cc62c6 7783
1e6feb95 7784else
e6cc62c6 7785
1e6feb95
VZ
7786 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7787 if test "x$LINE" != x ; then
7788 eval "DEFAULT_$LINE"
7789 else
7790 no_cache=1
7791 fi
7792
7793 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7794
e6cc62c6 7795fi;
1e6feb95
VZ
7796
7797 eval "$ac_cv_use_textctrl"
7798 if test "$no_cache" != 1; then
7799 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7800 fi
7801
7802 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7803 echo "$as_me:$LINENO: result: yes" >&5
7804echo "${ECHO_T}yes" >&6
1e6feb95 7805 else
e6cc62c6
VS
7806 echo "$as_me:$LINENO: result: no" >&5
7807echo "${ECHO_T}no" >&6
1e6feb95 7808 fi
e6cc62c6 7809
1e6feb95 7810
5005acfe 7811 enablestring=
e6cc62c6
VS
7812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7813echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7814 no_cache=0
7815 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7816if test "${enable_togglebtn+set}" = set; then
7817 enableval="$enable_togglebtn"
e6cc62c6 7818
1db8dc4a
VZ
7819 if test "$enableval" = yes; then
7820 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7821 else
7822 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7823 fi
e6cc62c6 7824
1db8dc4a 7825else
e6cc62c6 7826
1db8dc4a
VZ
7827 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7828 if test "x$LINE" != x ; then
7829 eval "DEFAULT_$LINE"
7830 else
7831 no_cache=1
7832 fi
7833
7834 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7835
e6cc62c6 7836fi;
1db8dc4a
VZ
7837
7838 eval "$ac_cv_use_togglebtn"
7839 if test "$no_cache" != 1; then
7840 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7841 fi
7842
7843 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7844 echo "$as_me:$LINENO: result: yes" >&5
7845echo "${ECHO_T}yes" >&6
1db8dc4a 7846 else
e6cc62c6
VS
7847 echo "$as_me:$LINENO: result: no" >&5
7848echo "${ECHO_T}no" >&6
1db8dc4a 7849 fi
e6cc62c6 7850
1db8dc4a 7851
5005acfe 7852 enablestring=
e6cc62c6
VS
7853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7854echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7855 no_cache=0
7856 # Check whether --enable-toolbar or --disable-toolbar was given.
7857if test "${enable_toolbar+set}" = set; then
7858 enableval="$enable_toolbar"
e6cc62c6 7859
10f2d63a
VZ
7860 if test "$enableval" = yes; then
7861 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7862 else
7863 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7864 fi
e6cc62c6 7865
10f2d63a 7866else
e6cc62c6 7867
10f2d63a
VZ
7868 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7869 if test "x$LINE" != x ; then
7870 eval "DEFAULT_$LINE"
7871 else
7872 no_cache=1
7873 fi
7874
7875 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7876
e6cc62c6 7877fi;
10f2d63a
VZ
7878
7879 eval "$ac_cv_use_toolbar"
7880 if test "$no_cache" != 1; then
7881 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7882 fi
7883
7884 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7885 echo "$as_me:$LINENO: result: yes" >&5
7886echo "${ECHO_T}yes" >&6
10f2d63a 7887 else
e6cc62c6
VS
7888 echo "$as_me:$LINENO: result: no" >&5
7889echo "${ECHO_T}no" >&6
10f2d63a 7890 fi
e6cc62c6 7891
10f2d63a 7892
5005acfe 7893 enablestring=
e6cc62c6
VS
7894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7895echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
7896 no_cache=0
7897 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7898if test "${enable_tbarnative+set}" = set; then
7899 enableval="$enable_tbarnative"
e6cc62c6 7900
360d6699
VZ
7901 if test "$enableval" = yes; then
7902 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7903 else
7904 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7905 fi
e6cc62c6 7906
360d6699 7907else
e6cc62c6 7908
360d6699
VZ
7909 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7910 if test "x$LINE" != x ; then
7911 eval "DEFAULT_$LINE"
7912 else
7913 no_cache=1
7914 fi
7915
7916 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7917
e6cc62c6 7918fi;
360d6699
VZ
7919
7920 eval "$ac_cv_use_tbarnative"
7921 if test "$no_cache" != 1; then
7922 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7923 fi
7924
7925 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
7926 echo "$as_me:$LINENO: result: yes" >&5
7927echo "${ECHO_T}yes" >&6
360d6699 7928 else
e6cc62c6
VS
7929 echo "$as_me:$LINENO: result: no" >&5
7930echo "${ECHO_T}no" >&6
360d6699 7931 fi
e6cc62c6 7932
360d6699 7933
5005acfe 7934 enablestring=
e6cc62c6
VS
7935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7936echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7937 no_cache=0
7938 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7939if test "${enable_tbarsmpl+set}" = set; then
7940 enableval="$enable_tbarsmpl"
e6cc62c6 7941
360d6699
VZ
7942 if test "$enableval" = yes; then
7943 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7944 else
7945 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7946 fi
e6cc62c6 7947
360d6699 7948else
e6cc62c6 7949
360d6699
VZ
7950 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7951 if test "x$LINE" != x ; then
7952 eval "DEFAULT_$LINE"
7953 else
7954 no_cache=1
7955 fi
7956
7957 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 7958
e6cc62c6 7959fi;
360d6699
VZ
7960
7961 eval "$ac_cv_use_tbarsmpl"
7962 if test "$no_cache" != 1; then
7963 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7964 fi
7965
7966 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
7967 echo "$as_me:$LINENO: result: yes" >&5
7968echo "${ECHO_T}yes" >&6
360d6699 7969 else
e6cc62c6
VS
7970 echo "$as_me:$LINENO: result: no" >&5
7971echo "${ECHO_T}no" >&6
360d6699 7972 fi
e6cc62c6 7973
360d6699 7974
5005acfe 7975 enablestring=
e6cc62c6
VS
7976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
7977echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
7978 no_cache=0
7979 # Check whether --enable-treectrl or --disable-treectrl was given.
7980if test "${enable_treectrl+set}" = set; then
7981 enableval="$enable_treectrl"
e6cc62c6 7982
10f2d63a
VZ
7983 if test "$enableval" = yes; then
7984 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7985 else
7986 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7987 fi
e6cc62c6 7988
10f2d63a 7989else
e6cc62c6 7990
10f2d63a
VZ
7991 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7992 if test "x$LINE" != x ; then
7993 eval "DEFAULT_$LINE"
7994 else
7995 no_cache=1
7996 fi
7997
7998 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 7999
e6cc62c6 8000fi;
10f2d63a 8001
1e6feb95
VZ
8002 eval "$ac_cv_use_treectrl"
8003 if test "$no_cache" != 1; then
8004 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8005 fi
8006
8007 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8008 echo "$as_me:$LINENO: result: yes" >&5
8009echo "${ECHO_T}yes" >&6
1e6feb95 8010 else
e6cc62c6
VS
8011 echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6
1e6feb95 8013 fi
e6cc62c6 8014
1e6feb95 8015
5005acfe 8016 enablestring=
e6cc62c6
VS
8017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8018echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8019 no_cache=0
8020 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8021if test "${enable_tipwindow+set}" = set; then
8022 enableval="$enable_tipwindow"
e6cc62c6 8023
9926e4a4
VZ
8024 if test "$enableval" = yes; then
8025 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8026 else
8027 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8028 fi
e6cc62c6 8029
9926e4a4 8030else
e6cc62c6 8031
9926e4a4
VZ
8032 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8033 if test "x$LINE" != x ; then
8034 eval "DEFAULT_$LINE"
8035 else
8036 no_cache=1
8037 fi
8038
8039 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8040
e6cc62c6 8041fi;
9926e4a4
VZ
8042
8043 eval "$ac_cv_use_tipwindow"
8044 if test "$no_cache" != 1; then
8045 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8046 fi
8047
8048 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8049 echo "$as_me:$LINENO: result: yes" >&5
8050echo "${ECHO_T}yes" >&6
9926e4a4 8051 else
e6cc62c6
VS
8052 echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6
9926e4a4 8054 fi
e6cc62c6 8055
9926e4a4 8056
5005acfe 8057 enablestring=
e6cc62c6
VS
8058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8059echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8060 no_cache=0
8061 # Check whether --enable-popupwin or --disable-popupwin was given.
8062if test "${enable_popupwin+set}" = set; then
8063 enableval="$enable_popupwin"
e6cc62c6 8064
9f41d601
RR
8065 if test "$enableval" = yes; then
8066 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8067 else
8068 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8069 fi
e6cc62c6 8070
9f41d601 8071else
e6cc62c6 8072
9f41d601
RR
8073 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8074 if test "x$LINE" != x ; then
8075 eval "DEFAULT_$LINE"
8076 else
8077 no_cache=1
8078 fi
8079
8080 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8081
e6cc62c6 8082fi;
9f41d601
RR
8083
8084 eval "$ac_cv_use_popupwin"
8085 if test "$no_cache" != 1; then
8086 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8087 fi
8088
8089 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8090 echo "$as_me:$LINENO: result: yes" >&5
8091echo "${ECHO_T}yes" >&6
9f41d601 8092 else
e6cc62c6
VS
8093 echo "$as_me:$LINENO: result: no" >&5
8094echo "${ECHO_T}no" >&6
9f41d601 8095 fi
e6cc62c6 8096
52127426 8097
8284b0c5
MB
8098
8099
5005acfe 8100 enablestring=
e6cc62c6
VS
8101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8102echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8103 no_cache=0
8104 # Check whether --enable-commondlg or --disable-commondlg was given.
8105if test "${enable_commondlg+set}" = set; then
8106 enableval="$enable_commondlg"
e6cc62c6 8107
1e6feb95
VZ
8108 if test "$enableval" = yes; then
8109 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8110 else
8111 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8112 fi
e6cc62c6 8113
1e6feb95 8114else
e6cc62c6 8115
1e6feb95
VZ
8116 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8117 if test "x$LINE" != x ; then
8118 eval "DEFAULT_$LINE"
8119 else
8120 no_cache=1
8121 fi
8122
8123 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8124
e6cc62c6 8125fi;
1e6feb95
VZ
8126
8127 eval "$ac_cv_use_commondlg"
8128 if test "$no_cache" != 1; then
8129 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8130 fi
8131
8132 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8133 echo "$as_me:$LINENO: result: yes" >&5
8134echo "${ECHO_T}yes" >&6
1e6feb95 8135 else
e6cc62c6
VS
8136 echo "$as_me:$LINENO: result: no" >&5
8137echo "${ECHO_T}no" >&6
1e6feb95 8138 fi
e6cc62c6 8139
1e6feb95 8140
5005acfe 8141 enablestring=
e6cc62c6
VS
8142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8143echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8144 no_cache=0
8145 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8146if test "${enable_choicedlg+set}" = set; then
8147 enableval="$enable_choicedlg"
e6cc62c6 8148
1e6feb95
VZ
8149 if test "$enableval" = yes; then
8150 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8151 else
8152 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8153 fi
e6cc62c6 8154
1e6feb95 8155else
e6cc62c6 8156
1e6feb95
VZ
8157 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8158 if test "x$LINE" != x ; then
8159 eval "DEFAULT_$LINE"
8160 else
8161 no_cache=1
8162 fi
8163
8164 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8165
e6cc62c6 8166fi;
1e6feb95
VZ
8167
8168 eval "$ac_cv_use_choicedlg"
8169 if test "$no_cache" != 1; then
8170 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8171 fi
8172
8173 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8174 echo "$as_me:$LINENO: result: yes" >&5
8175echo "${ECHO_T}yes" >&6
1e6feb95 8176 else
e6cc62c6
VS
8177 echo "$as_me:$LINENO: result: no" >&5
8178echo "${ECHO_T}no" >&6
1e6feb95 8179 fi
e6cc62c6 8180
1e6feb95 8181
5005acfe 8182 enablestring=
e6cc62c6
VS
8183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8184echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8185 no_cache=0
8186 # Check whether --enable-coldlg or --disable-coldlg was given.
8187if test "${enable_coldlg+set}" = set; then
8188 enableval="$enable_coldlg"
e6cc62c6 8189
1e6feb95
VZ
8190 if test "$enableval" = yes; then
8191 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8192 else
8193 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8194 fi
e6cc62c6 8195
1e6feb95 8196else
e6cc62c6 8197
1e6feb95
VZ
8198 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8199 if test "x$LINE" != x ; then
8200 eval "DEFAULT_$LINE"
8201 else
8202 no_cache=1
8203 fi
8204
8205 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8206
e6cc62c6 8207fi;
1e6feb95
VZ
8208
8209 eval "$ac_cv_use_coldlg"
8210 if test "$no_cache" != 1; then
8211 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8212 fi
8213
8214 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8215 echo "$as_me:$LINENO: result: yes" >&5
8216echo "${ECHO_T}yes" >&6
1e6feb95 8217 else
e6cc62c6
VS
8218 echo "$as_me:$LINENO: result: no" >&5
8219echo "${ECHO_T}no" >&6
1e6feb95 8220 fi
e6cc62c6 8221
1e6feb95 8222
5005acfe 8223 enablestring=
e6cc62c6
VS
8224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8225echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8226 no_cache=0
8227 # Check whether --enable-filedlg or --disable-filedlg was given.
8228if test "${enable_filedlg+set}" = set; then
8229 enableval="$enable_filedlg"
e6cc62c6 8230
1e6feb95
VZ
8231 if test "$enableval" = yes; then
8232 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8233 else
8234 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8235 fi
e6cc62c6 8236
1e6feb95 8237else
e6cc62c6 8238
1e6feb95
VZ
8239 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8240 if test "x$LINE" != x ; then
8241 eval "DEFAULT_$LINE"
8242 else
8243 no_cache=1
8244 fi
8245
8246 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8247
e6cc62c6 8248fi;
1e6feb95
VZ
8249
8250 eval "$ac_cv_use_filedlg"
8251 if test "$no_cache" != 1; then
8252 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8253 fi
8254
8255 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8256 echo "$as_me:$LINENO: result: yes" >&5
8257echo "${ECHO_T}yes" >&6
1e6feb95 8258 else
e6cc62c6
VS
8259 echo "$as_me:$LINENO: result: no" >&5
8260echo "${ECHO_T}no" >&6
1e6feb95 8261 fi
e6cc62c6 8262
1e6feb95 8263
5005acfe 8264 enablestring=
e6cc62c6
VS
8265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8266echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8267 no_cache=0
69d27ff7
MB
8268 # Check whether --enable-finddlg or --disable-finddlg was given.
8269if test "${enable_finddlg+set}" = set; then
8270 enableval="$enable_finddlg"
e6cc62c6 8271
8db37e06 8272 if test "$enableval" = yes; then
69d27ff7 8273 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8274 else
69d27ff7 8275 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8276 fi
e6cc62c6 8277
8db37e06 8278else
e6cc62c6 8279
8db37e06
VZ
8280 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8281 if test "x$LINE" != x ; then
8282 eval "DEFAULT_$LINE"
8283 else
8284 no_cache=1
8285 fi
8286
69d27ff7 8287 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8288
e6cc62c6 8289fi;
8db37e06 8290
69d27ff7 8291 eval "$ac_cv_use_finddlg"
8db37e06 8292 if test "$no_cache" != 1; then
69d27ff7 8293 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8294 fi
8295
8296 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8297 echo "$as_me:$LINENO: result: yes" >&5
8298echo "${ECHO_T}yes" >&6
8db37e06 8299 else
e6cc62c6
VS
8300 echo "$as_me:$LINENO: result: no" >&5
8301echo "${ECHO_T}no" >&6
8db37e06 8302 fi
e6cc62c6 8303
8db37e06 8304
5005acfe 8305 enablestring=
e6cc62c6
VS
8306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8307echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8308 no_cache=0
8309 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8310if test "${enable_fontdlg+set}" = set; then
8311 enableval="$enable_fontdlg"
e6cc62c6 8312
1e6feb95
VZ
8313 if test "$enableval" = yes; then
8314 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8315 else
8316 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8317 fi
e6cc62c6 8318
1e6feb95 8319else
e6cc62c6 8320
1e6feb95
VZ
8321 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8322 if test "x$LINE" != x ; then
8323 eval "DEFAULT_$LINE"
8324 else
8325 no_cache=1
8326 fi
8327
8328 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8329
e6cc62c6 8330fi;
1e6feb95
VZ
8331
8332 eval "$ac_cv_use_fontdlg"
8333 if test "$no_cache" != 1; then
8334 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8335 fi
8336
8337 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8338 echo "$as_me:$LINENO: result: yes" >&5
8339echo "${ECHO_T}yes" >&6
1e6feb95 8340 else
e6cc62c6
VS
8341 echo "$as_me:$LINENO: result: no" >&5
8342echo "${ECHO_T}no" >&6
1e6feb95 8343 fi
e6cc62c6 8344
1e6feb95 8345
5005acfe 8346 enablestring=
e6cc62c6
VS
8347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8348echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8349 no_cache=0
8350 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8351if test "${enable_dirdlg+set}" = set; then
8352 enableval="$enable_dirdlg"
e6cc62c6 8353
1e6feb95
VZ
8354 if test "$enableval" = yes; then
8355 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8356 else
8357 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8358 fi
e6cc62c6 8359
1e6feb95 8360else
e6cc62c6 8361
1e6feb95
VZ
8362 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8363 if test "x$LINE" != x ; then
8364 eval "DEFAULT_$LINE"
8365 else
8366 no_cache=1
8367 fi
8368
8369 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8370
e6cc62c6 8371fi;
1e6feb95
VZ
8372
8373 eval "$ac_cv_use_dirdlg"
10f2d63a 8374 if test "$no_cache" != 1; then
1e6feb95 8375 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8376 fi
8377
1e6feb95 8378 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8379 echo "$as_me:$LINENO: result: yes" >&5
8380echo "${ECHO_T}yes" >&6
10f2d63a 8381 else
e6cc62c6
VS
8382 echo "$as_me:$LINENO: result: no" >&5
8383echo "${ECHO_T}no" >&6
10f2d63a 8384 fi
e6cc62c6 8385
698dcdb6 8386
5005acfe 8387 enablestring=
e6cc62c6
VS
8388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8389echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8390 no_cache=0
1e6feb95
VZ
8391 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8392if test "${enable_msgdlg+set}" = set; then
8393 enableval="$enable_msgdlg"
e6cc62c6 8394
10f2d63a 8395 if test "$enableval" = yes; then
1e6feb95 8396 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8397 else
1e6feb95 8398 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8399 fi
e6cc62c6 8400
10f2d63a 8401else
e6cc62c6 8402
1e6feb95 8403 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8404 if test "x$LINE" != x ; then
8405 eval "DEFAULT_$LINE"
8406 else
8407 no_cache=1
8408 fi
8409
1e6feb95 8410 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8411
e6cc62c6 8412fi;
10f2d63a 8413
1e6feb95 8414 eval "$ac_cv_use_msgdlg"
10f2d63a 8415 if test "$no_cache" != 1; then
1e6feb95 8416 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8417 fi
8418
1e6feb95 8419 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8420 echo "$as_me:$LINENO: result: yes" >&5
8421echo "${ECHO_T}yes" >&6
10f2d63a 8422 else
e6cc62c6
VS
8423 echo "$as_me:$LINENO: result: no" >&5
8424echo "${ECHO_T}no" >&6
10f2d63a 8425 fi
e6cc62c6 8426
10f2d63a 8427
5005acfe 8428 enablestring=
e6cc62c6
VS
8429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8430echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8431 no_cache=0
1e6feb95
VZ
8432 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8433if test "${enable_numberdlg+set}" = set; then
8434 enableval="$enable_numberdlg"
e6cc62c6 8435
10f2d63a 8436 if test "$enableval" = yes; then
1e6feb95 8437 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8438 else
1e6feb95 8439 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8440 fi
e6cc62c6 8441
10f2d63a 8442else
e6cc62c6 8443
1e6feb95 8444 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8445 if test "x$LINE" != x ; then
8446 eval "DEFAULT_$LINE"
8447 else
8448 no_cache=1
8449 fi
8450
1e6feb95 8451 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8452
e6cc62c6 8453fi;
10f2d63a 8454
1e6feb95 8455 eval "$ac_cv_use_numberdlg"
10f2d63a 8456 if test "$no_cache" != 1; then
1e6feb95 8457 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8458 fi
8459
1e6feb95 8460 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8461 echo "$as_me:$LINENO: result: yes" >&5
8462echo "${ECHO_T}yes" >&6
10f2d63a 8463 else
e6cc62c6
VS
8464 echo "$as_me:$LINENO: result: no" >&5
8465echo "${ECHO_T}no" >&6
10f2d63a 8466 fi
e6cc62c6 8467
10f2d63a 8468
5005acfe 8469 enablestring=
e6cc62c6
VS
8470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8471echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8472 no_cache=0
8473 # Check whether --enable-splash or --disable-splash was given.
8474if test "${enable_splash+set}" = set; then
8475 enableval="$enable_splash"
e6cc62c6 8476
cbca9943
VZ
8477 if test "$enableval" = yes; then
8478 ac_cv_use_splash='wxUSE_SPLASH=yes'
8479 else
8480 ac_cv_use_splash='wxUSE_SPLASH=no'
8481 fi
e6cc62c6 8482
cbca9943 8483else
e6cc62c6 8484
cbca9943
VZ
8485 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8486 if test "x$LINE" != x ; then
8487 eval "DEFAULT_$LINE"
8488 else
8489 no_cache=1
8490 fi
8491
8492 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8493
e6cc62c6 8494fi;
cbca9943
VZ
8495
8496 eval "$ac_cv_use_splash"
8497 if test "$no_cache" != 1; then
8498 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8499 fi
8500
8501 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8502 echo "$as_me:$LINENO: result: yes" >&5
8503echo "${ECHO_T}yes" >&6
cbca9943 8504 else
e6cc62c6
VS
8505 echo "$as_me:$LINENO: result: no" >&5
8506echo "${ECHO_T}no" >&6
cbca9943 8507 fi
e6cc62c6 8508
cbca9943 8509
5005acfe 8510 enablestring=
e6cc62c6
VS
8511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8512echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8513 no_cache=0
8514 # Check whether --enable-textdlg or --disable-textdlg was given.
8515if test "${enable_textdlg+set}" = set; then
8516 enableval="$enable_textdlg"
e6cc62c6 8517
10f2d63a
VZ
8518 if test "$enableval" = yes; then
8519 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8520 else
8521 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8522 fi
e6cc62c6 8523
10f2d63a 8524else
e6cc62c6 8525
10f2d63a
VZ
8526 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8527 if test "x$LINE" != x ; then
8528 eval "DEFAULT_$LINE"
8529 else
8530 no_cache=1
8531 fi
8532
8533 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8534
e6cc62c6 8535fi;
10f2d63a
VZ
8536
8537 eval "$ac_cv_use_textdlg"
8538 if test "$no_cache" != 1; then
8539 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8540 fi
8541
8542 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8543 echo "$as_me:$LINENO: result: yes" >&5
8544echo "${ECHO_T}yes" >&6
10f2d63a 8545 else
e6cc62c6
VS
8546 echo "$as_me:$LINENO: result: no" >&5
8547echo "${ECHO_T}no" >&6
10f2d63a 8548 fi
e6cc62c6 8549
10f2d63a 8550
5005acfe 8551 enablestring=
e6cc62c6
VS
8552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8553echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8554 no_cache=0
8555 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8556if test "${enable_tipdlg+set}" = set; then
8557 enableval="$enable_tipdlg"
e6cc62c6 8558
10f2d63a
VZ
8559 if test "$enableval" = yes; then
8560 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8561 else
8562 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8563 fi
e6cc62c6 8564
10f2d63a 8565else
e6cc62c6 8566
10f2d63a
VZ
8567 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8568 if test "x$LINE" != x ; then
8569 eval "DEFAULT_$LINE"
8570 else
8571 no_cache=1
8572 fi
8573
8574 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8575
e6cc62c6 8576fi;
10f2d63a
VZ
8577
8578 eval "$ac_cv_use_tipdlg"
8579 if test "$no_cache" != 1; then
8580 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8581 fi
8582
8583 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8584 echo "$as_me:$LINENO: result: yes" >&5
8585echo "${ECHO_T}yes" >&6
10f2d63a 8586 else
e6cc62c6
VS
8587 echo "$as_me:$LINENO: result: no" >&5
8588echo "${ECHO_T}no" >&6
10f2d63a 8589 fi
e6cc62c6 8590
10f2d63a 8591
5005acfe 8592 enablestring=
e6cc62c6
VS
8593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8594echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8595 no_cache=0
8596 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8597if test "${enable_progressdlg+set}" = set; then
8598 enableval="$enable_progressdlg"
e6cc62c6 8599
10f2d63a
VZ
8600 if test "$enableval" = yes; then
8601 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8602 else
8603 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8604 fi
e6cc62c6 8605
10f2d63a 8606else
e6cc62c6 8607
10f2d63a
VZ
8608 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8609 if test "x$LINE" != x ; then
8610 eval "DEFAULT_$LINE"
8611 else
8612 no_cache=1
8613 fi
8614
8615 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8616
e6cc62c6 8617fi;
10f2d63a
VZ
8618
8619 eval "$ac_cv_use_progressdlg"
8620 if test "$no_cache" != 1; then
8621 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8622 fi
8623
8624 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8625 echo "$as_me:$LINENO: result: yes" >&5
8626echo "${ECHO_T}yes" >&6
10f2d63a 8627 else
e6cc62c6
VS
8628 echo "$as_me:$LINENO: result: no" >&5
8629echo "${ECHO_T}no" >&6
10f2d63a 8630 fi
e6cc62c6 8631
10f2d63a 8632
5005acfe 8633 enablestring=
e6cc62c6
VS
8634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8635echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8636 no_cache=0
8637 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8638if test "${enable_wizarddlg+set}" = set; then
8639 enableval="$enable_wizarddlg"
e6cc62c6 8640
b1f5d087
VZ
8641 if test "$enableval" = yes; then
8642 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8643 else
8644 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8645 fi
e6cc62c6 8646
b1f5d087 8647else
e6cc62c6 8648
b1f5d087
VZ
8649 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8650 if test "x$LINE" != x ; then
8651 eval "DEFAULT_$LINE"
8652 else
8653 no_cache=1
8654 fi
8655
8656 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8657
e6cc62c6 8658fi;
b1f5d087
VZ
8659
8660 eval "$ac_cv_use_wizarddlg"
8661 if test "$no_cache" != 1; then
8662 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8663 fi
8664
8665 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8666 echo "$as_me:$LINENO: result: yes" >&5
8667echo "${ECHO_T}yes" >&6
b1f5d087 8668 else
e6cc62c6
VS
8669 echo "$as_me:$LINENO: result: no" >&5
8670echo "${ECHO_T}no" >&6
b1f5d087 8671 fi
e6cc62c6 8672
8284b0c5
MB
8673
8674
52127426 8675
5005acfe 8676 enablestring=
e6cc62c6
VS
8677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8678echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8679 no_cache=0
8680 # Check whether --enable-menus or --disable-menus was given.
8681if test "${enable_menus+set}" = set; then
8682 enableval="$enable_menus"
e6cc62c6 8683
1e6feb95
VZ
8684 if test "$enableval" = yes; then
8685 ac_cv_use_menus='wxUSE_MENUS=yes'
8686 else
8687 ac_cv_use_menus='wxUSE_MENUS=no'
8688 fi
e6cc62c6 8689
1e6feb95 8690else
e6cc62c6 8691
1e6feb95
VZ
8692 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8693 if test "x$LINE" != x ; then
8694 eval "DEFAULT_$LINE"
8695 else
8696 no_cache=1
8697 fi
8698
8699 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8700
e6cc62c6 8701fi;
1e6feb95
VZ
8702
8703 eval "$ac_cv_use_menus"
8704 if test "$no_cache" != 1; then
8705 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8706 fi
8707
8708 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8709 echo "$as_me:$LINENO: result: yes" >&5
8710echo "${ECHO_T}yes" >&6
1e6feb95 8711 else
e6cc62c6
VS
8712 echo "$as_me:$LINENO: result: no" >&5
8713echo "${ECHO_T}no" >&6
1e6feb95 8714 fi
e6cc62c6 8715
1e6feb95 8716
5005acfe 8717 enablestring=
e6cc62c6
VS
8718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8719echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8720 no_cache=0
8721 # Check whether --enable-miniframe or --disable-miniframe was given.
8722if test "${enable_miniframe+set}" = set; then
8723 enableval="$enable_miniframe"
e6cc62c6 8724
10f2d63a
VZ
8725 if test "$enableval" = yes; then
8726 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8727 else
8728 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8729 fi
e6cc62c6 8730
10f2d63a 8731else
e6cc62c6 8732
10f2d63a
VZ
8733 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8734 if test "x$LINE" != x ; then
8735 eval "DEFAULT_$LINE"
8736 else
8737 no_cache=1
8738 fi
8739
8740 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8741
e6cc62c6 8742fi;
10f2d63a
VZ
8743
8744 eval "$ac_cv_use_miniframe"
8745 if test "$no_cache" != 1; then
8746 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8747 fi
8748
8749 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8750 echo "$as_me:$LINENO: result: yes" >&5
8751echo "${ECHO_T}yes" >&6
10f2d63a 8752 else
e6cc62c6
VS
8753 echo "$as_me:$LINENO: result: no" >&5
8754echo "${ECHO_T}no" >&6
10f2d63a 8755 fi
e6cc62c6 8756
10f2d63a 8757
5005acfe 8758 enablestring=
e6cc62c6
VS
8759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8760echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8761 no_cache=0
8762 # Check whether --enable-tooltips or --disable-tooltips was given.
8763if test "${enable_tooltips+set}" = set; then
8764 enableval="$enable_tooltips"
e6cc62c6 8765
10f2d63a
VZ
8766 if test "$enableval" = yes; then
8767 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8768 else
8769 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8770 fi
e6cc62c6 8771
10f2d63a 8772else
e6cc62c6 8773
10f2d63a
VZ
8774 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8775 if test "x$LINE" != x ; then
8776 eval "DEFAULT_$LINE"
8777 else
8778 no_cache=1
8779 fi
8780
8781 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8782
e6cc62c6 8783fi;
10f2d63a
VZ
8784
8785 eval "$ac_cv_use_tooltips"
8786 if test "$no_cache" != 1; then
8787 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8788 fi
8789
8790 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8791 echo "$as_me:$LINENO: result: yes" >&5
8792echo "${ECHO_T}yes" >&6
10f2d63a 8793 else
e6cc62c6
VS
8794 echo "$as_me:$LINENO: result: no" >&5
8795echo "${ECHO_T}no" >&6
10f2d63a 8796 fi
e6cc62c6 8797
10f2d63a 8798
5005acfe 8799 enablestring=
e6cc62c6
VS
8800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8801echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8802 no_cache=0
8803 # Check whether --enable-splines or --disable-splines was given.
8804if test "${enable_splines+set}" = set; then
8805 enableval="$enable_splines"
e6cc62c6 8806
10f2d63a
VZ
8807 if test "$enableval" = yes; then
8808 ac_cv_use_splines='wxUSE_SPLINES=yes'
8809 else
8810 ac_cv_use_splines='wxUSE_SPLINES=no'
8811 fi
e6cc62c6 8812
10f2d63a 8813else
e6cc62c6 8814
10f2d63a
VZ
8815 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8816 if test "x$LINE" != x ; then
8817 eval "DEFAULT_$LINE"
8818 else
8819 no_cache=1
8820 fi
8821
8822 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8823
e6cc62c6 8824fi;
10f2d63a
VZ
8825
8826 eval "$ac_cv_use_splines"
8827 if test "$no_cache" != 1; then
8828 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8829 fi
8830
8831 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8832 echo "$as_me:$LINENO: result: yes" >&5
8833echo "${ECHO_T}yes" >&6
10f2d63a 8834 else
e6cc62c6
VS
8835 echo "$as_me:$LINENO: result: no" >&5
8836echo "${ECHO_T}no" >&6
10f2d63a 8837 fi
e6cc62c6 8838
10f2d63a 8839
5005acfe 8840 enablestring=
e6cc62c6
VS
8841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8842echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8843 no_cache=0
8844 # Check whether --enable-validators or --disable-validators was given.
8845if test "${enable_validators+set}" = set; then
8846 enableval="$enable_validators"
e6cc62c6 8847
10f2d63a
VZ
8848 if test "$enableval" = yes; then
8849 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8850 else
8851 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8852 fi
e6cc62c6 8853
10f2d63a 8854else
e6cc62c6 8855
10f2d63a
VZ
8856 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8857 if test "x$LINE" != x ; then
8858 eval "DEFAULT_$LINE"
8859 else
8860 no_cache=1
8861 fi
8862
8863 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8864
e6cc62c6 8865fi;
10f2d63a
VZ
8866
8867 eval "$ac_cv_use_validators"
8868 if test "$no_cache" != 1; then
8869 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8870 fi
8871
8872 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8873 echo "$as_me:$LINENO: result: yes" >&5
8874echo "${ECHO_T}yes" >&6
10f2d63a 8875 else
e6cc62c6
VS
8876 echo "$as_me:$LINENO: result: no" >&5
8877echo "${ECHO_T}no" >&6
10f2d63a 8878 fi
e6cc62c6 8879
10f2d63a 8880
5005acfe 8881 enablestring=
e6cc62c6
VS
8882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8883echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8884 no_cache=0
8885 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8886if test "${enable_busyinfo+set}" = set; then
8887 enableval="$enable_busyinfo"
e6cc62c6 8888
10f2d63a
VZ
8889 if test "$enableval" = yes; then
8890 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8891 else
8892 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8893 fi
e6cc62c6 8894
10f2d63a 8895else
e6cc62c6 8896
10f2d63a
VZ
8897 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8898 if test "x$LINE" != x ; then
8899 eval "DEFAULT_$LINE"
8900 else
8901 no_cache=1
8902 fi
8903
8904 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8905
e6cc62c6 8906fi;
10f2d63a
VZ
8907
8908 eval "$ac_cv_use_busyinfo"
8909 if test "$no_cache" != 1; then
8910 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8911 fi
8912
8913 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
8914 echo "$as_me:$LINENO: result: yes" >&5
8915echo "${ECHO_T}yes" >&6
10f2d63a 8916 else
e6cc62c6
VS
8917 echo "$as_me:$LINENO: result: no" >&5
8918echo "${ECHO_T}no" >&6
10f2d63a 8919 fi
e6cc62c6 8920
10f2d63a 8921
5005acfe 8922 enablestring=
e6cc62c6
VS
8923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8924echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
8925 no_cache=0
8926 # Check whether --enable-joystick or --disable-joystick was given.
8927if test "${enable_joystick+set}" = set; then
8928 enableval="$enable_joystick"
e6cc62c6 8929
f6bcfd97
BP
8930 if test "$enableval" = yes; then
8931 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8932 else
8933 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8934 fi
e6cc62c6 8935
f6bcfd97 8936else
e6cc62c6 8937
f6bcfd97
BP
8938 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8939 if test "x$LINE" != x ; then
8940 eval "DEFAULT_$LINE"
8941 else
8942 no_cache=1
8943 fi
8944
8945 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 8946
e6cc62c6 8947fi;
f6bcfd97
BP
8948
8949 eval "$ac_cv_use_joystick"
8950 if test "$no_cache" != 1; then
8951 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8952 fi
8953
8954 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
8955 echo "$as_me:$LINENO: result: yes" >&5
8956echo "${ECHO_T}yes" >&6
f6bcfd97 8957 else
e6cc62c6
VS
8958 echo "$as_me:$LINENO: result: no" >&5
8959echo "${ECHO_T}no" >&6
f6bcfd97 8960 fi
e6cc62c6 8961
698dcdb6 8962
5005acfe 8963 enablestring=
e6cc62c6
VS
8964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
8965echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
8966 no_cache=0
8967 # Check whether --enable-metafile or --disable-metafile was given.
8968if test "${enable_metafile+set}" = set; then
8969 enableval="$enable_metafile"
e6cc62c6 8970
1e6feb95
VZ
8971 if test "$enableval" = yes; then
8972 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8973 else
8974 ac_cv_use_metafile='wxUSE_METAFILE=no'
8975 fi
e6cc62c6 8976
1e6feb95 8977else
e6cc62c6 8978
1e6feb95
VZ
8979 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8980 if test "x$LINE" != x ; then
8981 eval "DEFAULT_$LINE"
8982 else
8983 no_cache=1
8984 fi
8985
8986 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 8987
e6cc62c6 8988fi;
1e6feb95
VZ
8989
8990 eval "$ac_cv_use_metafile"
8991 if test "$no_cache" != 1; then
8992 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8993 fi
8994
8995 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
8996 echo "$as_me:$LINENO: result: yes" >&5
8997echo "${ECHO_T}yes" >&6
1e6feb95 8998 else
e6cc62c6
VS
8999 echo "$as_me:$LINENO: result: no" >&5
9000echo "${ECHO_T}no" >&6
1e6feb95 9001 fi
e6cc62c6 9002
1e6feb95 9003
5005acfe 9004 enablestring=
e6cc62c6
VS
9005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9006echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9007 no_cache=0
9008 # Check whether --enable-dragimage or --disable-dragimage was given.
9009if test "${enable_dragimage+set}" = set; then
9010 enableval="$enable_dragimage"
e6cc62c6 9011
24fd6d87
VZ
9012 if test "$enableval" = yes; then
9013 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9014 else
9015 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9016 fi
e6cc62c6 9017
24fd6d87 9018else
e6cc62c6 9019
24fd6d87
VZ
9020 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9021 if test "x$LINE" != x ; then
9022 eval "DEFAULT_$LINE"
9023 else
9024 no_cache=1
9025 fi
9026
9027 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9028
e6cc62c6 9029fi;
24fd6d87
VZ
9030
9031 eval "$ac_cv_use_dragimage"
9032 if test "$no_cache" != 1; then
9033 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9034 fi
9035
9036 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9037 echo "$as_me:$LINENO: result: yes" >&5
9038echo "${ECHO_T}yes" >&6
24fd6d87 9039 else
e6cc62c6
VS
9040 echo "$as_me:$LINENO: result: no" >&5
9041echo "${ECHO_T}no" >&6
24fd6d87 9042 fi
e6cc62c6 9043
52127426 9044
7bb2947d 9045 enablestring=
e6cc62c6
VS
9046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9047echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9048 no_cache=0
9049 # Check whether --enable-accessibility or --disable-accessibility was given.
9050if test "${enable_accessibility+set}" = set; then
9051 enableval="$enable_accessibility"
e6cc62c6 9052
7bb2947d
MB
9053 if test "$enableval" = yes; then
9054 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9055 else
9056 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9057 fi
e6cc62c6 9058
7bb2947d 9059else
e6cc62c6 9060
7bb2947d
MB
9061 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9062 if test "x$LINE" != x ; then
9063 eval "DEFAULT_$LINE"
9064 else
9065 no_cache=1
9066 fi
9067
9068 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9069
e6cc62c6 9070fi;
7bb2947d
MB
9071
9072 eval "$ac_cv_use_accessibility"
9073 if test "$no_cache" != 1; then
9074 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9075 fi
9076
9077 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9078 echo "$as_me:$LINENO: result: yes" >&5
9079echo "${ECHO_T}yes" >&6
7bb2947d 9080 else
e6cc62c6
VS
9081 echo "$as_me:$LINENO: result: no" >&5
9082echo "${ECHO_T}no" >&6
7bb2947d 9083 fi
e6cc62c6 9084
7bb2947d 9085
8284b0c5
MB
9086
9087
5005acfe 9088 enablestring=
e6cc62c6
VS
9089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9090echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9091 no_cache=0
9092 # Check whether --enable-palette or --disable-palette was given.
9093if test "${enable_palette+set}" = set; then
9094 enableval="$enable_palette"
e6cc62c6 9095
edae8572
VZ
9096 if test "$enableval" = yes; then
9097 ac_cv_use_palette='wxUSE_PALETTE=yes'
9098 else
9099 ac_cv_use_palette='wxUSE_PALETTE=no'
9100 fi
e6cc62c6 9101
edae8572 9102else
e6cc62c6 9103
edae8572
VZ
9104 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9105 if test "x$LINE" != x ; then
9106 eval "DEFAULT_$LINE"
9107 else
9108 no_cache=1
9109 fi
9110
9111 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9112
e6cc62c6 9113fi;
edae8572
VZ
9114
9115 eval "$ac_cv_use_palette"
9116 if test "$no_cache" != 1; then
9117 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9118 fi
9119
9120 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9121 echo "$as_me:$LINENO: result: yes" >&5
9122echo "${ECHO_T}yes" >&6
edae8572 9123 else
e6cc62c6
VS
9124 echo "$as_me:$LINENO: result: no" >&5
9125echo "${ECHO_T}no" >&6
edae8572 9126 fi
e6cc62c6 9127
edae8572 9128
5005acfe 9129 enablestring=
e6cc62c6
VS
9130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9131echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9132 no_cache=0
9133 # Check whether --enable-image or --disable-image was given.
9134if test "${enable_image+set}" = set; then
9135 enableval="$enable_image"
e6cc62c6 9136
0046ff7c
VS
9137 if test "$enableval" = yes; then
9138 ac_cv_use_image='wxUSE_IMAGE=yes'
9139 else
9140 ac_cv_use_image='wxUSE_IMAGE=no'
9141 fi
e6cc62c6 9142
0046ff7c 9143else
e6cc62c6 9144
0046ff7c
VS
9145 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9146 if test "x$LINE" != x ; then
9147 eval "DEFAULT_$LINE"
9148 else
9149 no_cache=1
9150 fi
9151
9152 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9153
e6cc62c6 9154fi;
0046ff7c
VS
9155
9156 eval "$ac_cv_use_image"
9157 if test "$no_cache" != 1; then
9158 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9159 fi
9160
9161 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9162 echo "$as_me:$LINENO: result: yes" >&5
9163echo "${ECHO_T}yes" >&6
0046ff7c 9164 else
e6cc62c6
VS
9165 echo "$as_me:$LINENO: result: no" >&5
9166echo "${ECHO_T}no" >&6
0046ff7c 9167 fi
e6cc62c6 9168
0046ff7c 9169
5005acfe 9170 enablestring=
e6cc62c6
VS
9171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9172echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9173 no_cache=0
9174 # Check whether --enable-gif or --disable-gif was given.
9175if test "${enable_gif+set}" = set; then
9176 enableval="$enable_gif"
e6cc62c6 9177
10f2d63a
VZ
9178 if test "$enableval" = yes; then
9179 ac_cv_use_gif='wxUSE_GIF=yes'
9180 else
9181 ac_cv_use_gif='wxUSE_GIF=no'
9182 fi
e6cc62c6 9183
10f2d63a 9184else
e6cc62c6 9185
10f2d63a
VZ
9186 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9187 if test "x$LINE" != x ; then
9188 eval "DEFAULT_$LINE"
9189 else
9190 no_cache=1
9191 fi
9192
9193 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9194
e6cc62c6 9195fi;
10f2d63a
VZ
9196
9197 eval "$ac_cv_use_gif"
9198 if test "$no_cache" != 1; then
9199 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9200 fi
9201
9202 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9203 echo "$as_me:$LINENO: result: yes" >&5
9204echo "${ECHO_T}yes" >&6
10f2d63a 9205 else
e6cc62c6
VS
9206 echo "$as_me:$LINENO: result: no" >&5
9207echo "${ECHO_T}no" >&6
10f2d63a 9208 fi
e6cc62c6 9209
10f2d63a 9210
5005acfe 9211 enablestring=
e6cc62c6
VS
9212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9213echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9214 no_cache=0
9215 # Check whether --enable-pcx or --disable-pcx was given.
9216if test "${enable_pcx+set}" = set; then
9217 enableval="$enable_pcx"
e6cc62c6 9218
10f2d63a
VZ
9219 if test "$enableval" = yes; then
9220 ac_cv_use_pcx='wxUSE_PCX=yes'
9221 else
9222 ac_cv_use_pcx='wxUSE_PCX=no'
9223 fi
e6cc62c6 9224
10f2d63a 9225else
e6cc62c6 9226
10f2d63a
VZ
9227 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9228 if test "x$LINE" != x ; then
9229 eval "DEFAULT_$LINE"
9230 else
9231 no_cache=1
9232 fi
9233
9234 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9235
e6cc62c6 9236fi;
10f2d63a
VZ
9237
9238 eval "$ac_cv_use_pcx"
9239 if test "$no_cache" != 1; then
9240 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9241 fi
9242
9243 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9244 echo "$as_me:$LINENO: result: yes" >&5
9245echo "${ECHO_T}yes" >&6
10f2d63a 9246 else
e6cc62c6
VS
9247 echo "$as_me:$LINENO: result: no" >&5
9248echo "${ECHO_T}no" >&6
10f2d63a 9249 fi
e6cc62c6 9250
10f2d63a 9251
5005acfe 9252 enablestring=
e6cc62c6
VS
9253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9254echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9255 no_cache=0
9256 # Check whether --enable-iff or --disable-iff was given.
9257if test "${enable_iff+set}" = set; then
9258 enableval="$enable_iff"
e6cc62c6 9259
4b6b4dfc
RR
9260 if test "$enableval" = yes; then
9261 ac_cv_use_iff='wxUSE_IFF=yes'
9262 else
9263 ac_cv_use_iff='wxUSE_IFF=no'
9264 fi
e6cc62c6 9265
4b6b4dfc 9266else
e6cc62c6 9267
4b6b4dfc
RR
9268 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9269 if test "x$LINE" != x ; then
9270 eval "DEFAULT_$LINE"
9271 else
9272 no_cache=1
9273 fi
9274
9275 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9276
e6cc62c6 9277fi;
4b6b4dfc
RR
9278
9279 eval "$ac_cv_use_iff"
9280 if test "$no_cache" != 1; then
9281 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9282 fi
9283
9284 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9285 echo "$as_me:$LINENO: result: yes" >&5
9286echo "${ECHO_T}yes" >&6
4b6b4dfc 9287 else
e6cc62c6
VS
9288 echo "$as_me:$LINENO: result: no" >&5
9289echo "${ECHO_T}no" >&6
4b6b4dfc 9290 fi
e6cc62c6 9291
4b6b4dfc 9292
5005acfe 9293 enablestring=
e6cc62c6
VS
9294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9295echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9296 no_cache=0
9297 # Check whether --enable-pnm or --disable-pnm was given.
9298if test "${enable_pnm+set}" = set; then
9299 enableval="$enable_pnm"
e6cc62c6 9300
10f2d63a
VZ
9301 if test "$enableval" = yes; then
9302 ac_cv_use_pnm='wxUSE_PNM=yes'
9303 else
9304 ac_cv_use_pnm='wxUSE_PNM=no'
9305 fi
e6cc62c6 9306
10f2d63a 9307else
e6cc62c6 9308
10f2d63a
VZ
9309 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9310 if test "x$LINE" != x ; then
9311 eval "DEFAULT_$LINE"
9312 else
9313 no_cache=1
9314 fi
9315
9316 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9317
e6cc62c6 9318fi;
10f2d63a
VZ
9319
9320 eval "$ac_cv_use_pnm"
9321 if test "$no_cache" != 1; then
9322 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9323 fi
9324
9325 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9326 echo "$as_me:$LINENO: result: yes" >&5
9327echo "${ECHO_T}yes" >&6
10f2d63a 9328 else
e6cc62c6
VS
9329 echo "$as_me:$LINENO: result: no" >&5
9330echo "${ECHO_T}no" >&6
10f2d63a 9331 fi
e6cc62c6 9332
10f2d63a 9333
5005acfe 9334 enablestring=
e6cc62c6
VS
9335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9336echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9337 no_cache=0
69d27ff7
MB
9338 # Check whether --enable-xpm or --disable-xpm was given.
9339if test "${enable_xpm+set}" = set; then
9340 enableval="$enable_xpm"
e6cc62c6 9341
0046ff7c 9342 if test "$enableval" = yes; then
69d27ff7 9343 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9344 else
69d27ff7 9345 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9346 fi
e6cc62c6 9347
0046ff7c 9348else
e6cc62c6 9349
0046ff7c
VS
9350 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9351 if test "x$LINE" != x ; then
9352 eval "DEFAULT_$LINE"
9353 else
9354 no_cache=1
9355 fi
9356
69d27ff7 9357 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9358
e6cc62c6 9359fi;
0046ff7c 9360
69d27ff7 9361 eval "$ac_cv_use_xpm"
0046ff7c 9362 if test "$no_cache" != 1; then
69d27ff7 9363 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9364 fi
9365
9366 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9367 echo "$as_me:$LINENO: result: yes" >&5
9368echo "${ECHO_T}yes" >&6
0046ff7c 9369 else
e6cc62c6
VS
9370 echo "$as_me:$LINENO: result: no" >&5
9371echo "${ECHO_T}no" >&6
0046ff7c 9372 fi
e6cc62c6 9373
0046ff7c 9374
5005acfe 9375 enablestring=
e6cc62c6
VS
9376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9377echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9378 no_cache=0
c7206e64
VS
9379 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9380if test "${enable_ico_cur+set}" = set; then
9381 enableval="$enable_ico_cur"
e6cc62c6 9382
658974ae 9383 if test "$enableval" = yes; then
c7206e64 9384 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9385 else
c7206e64 9386 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9387 fi
e6cc62c6 9388
658974ae 9389else
e6cc62c6 9390
658974ae
VS
9391 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9392 if test "x$LINE" != x ; then
9393 eval "DEFAULT_$LINE"
9394 else
9395 no_cache=1
9396 fi
9397
c7206e64 9398 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9399
e6cc62c6 9400fi;
658974ae 9401
c7206e64 9402 eval "$ac_cv_use_ico_cur"
658974ae 9403 if test "$no_cache" != 1; then
c7206e64 9404 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9405 fi
9406
9407 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9408 echo "$as_me:$LINENO: result: yes" >&5
9409echo "${ECHO_T}yes" >&6
658974ae 9410 else
e6cc62c6
VS
9411 echo "$as_me:$LINENO: result: no" >&5
9412echo "${ECHO_T}no" >&6
658974ae 9413 fi
e6cc62c6 9414
658974ae 9415
b12915c1
VZ
9416fi
9417
029b47ad
VS
9418
9419
9420 enablestring=
9421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9422echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9423 no_cache=0
9424 # Check whether --enable-official_build or --disable-official_build was given.
9425if test "${enable_official_build+set}" = set; then
9426 enableval="$enable_official_build"
9427
9428 if test "$enableval" = yes; then
9429 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9430 else
9431 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9432 fi
9433
9434else
9435
9436 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9437 if test "x$LINE" != x ; then
9438 eval "DEFAULT_$LINE"
9439 else
9440 no_cache=1
9441 fi
9442
9443 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9444
9445fi;
9446
9447 eval "$ac_cv_use_official_build"
9448 if test "$no_cache" != 1; then
9449 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9450 fi
9451
9452 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9453 echo "$as_me:$LINENO: result: yes" >&5
9454echo "${ECHO_T}yes" >&6
9455 else
9456 echo "$as_me:$LINENO: result: no" >&5
9457echo "${ECHO_T}no" >&6
9458 fi
9459
9460# Check whether --enable-vendor or --disable-vendor was given.
9461if test "${enable_vendor+set}" = set; then
9462 enableval="$enable_vendor"
9463 VENDOR="$enableval"
9464fi;
9465if test "x$VENDOR" = "x"; then
9466 VENDOR="custom"
9467fi
9468
d558c907
VS
9469case "${host}" in
9470 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9471 PATH_IFS=';'
d558c907
VS
9472 ;;
9473 *)
9474 PATH_IFS=':'
d558c907
VS
9475 ;;
9476esac
9477
8284b0c5
MB
9478
9479
10f2d63a
VZ
9480 echo "saving argument cache $wx_arg_cache_file"
9481 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9482
8284b0c5 9483
e6cc62c6
VS
9484
9485echo "$as_me:$LINENO: checking for toolkit" >&5
9486echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9487
9488# In Wine, we need to default to MSW, not GTK or MOTIF
9489if test "$wxUSE_WINE" = "yes"; then
9490 DEFAULT_DEFAULT_wxUSE_GTK=0
9491 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9492 DEFAULT_DEFAULT_wxUSE_MSW=1
9493fi
10f2d63a
VZ
9494
9495if test "$wxUSE_GUI" = "yes"; then
9496
3a922bb4 9497 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9498 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9499echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9500 { (exit 1); exit 1; }; }
3a922bb4 9501 fi
b12915c1 9502
3a922bb4
RL
9503 if test "$TOOLKIT_GIVEN" = 1; then
9504 for toolkit in `echo $ALL_TOOLKITS`; do
9505 var=wxUSE_$toolkit
9506 eval "value=\$${var}"
9507 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9508 done
10f2d63a 9509 else
3a922bb4
RL
9510 for toolkit in `echo $ALL_TOOLKITS`; do
9511 if test "$has_toolkit_in_cache" != 1; then
9512 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9513 else
9514 var=DEFAULT_wxUSE_$toolkit
9515 fi
9516 eval "wxUSE_$toolkit=\$${var}"
9517 done
10f2d63a 9518 fi
10f2d63a 9519
ac0c4cc3
DE
9520 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9521 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9522 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9523
d558c907 9524 case "${host}" in
6fa882bd 9525 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9526 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9527 esac
10f2d63a 9528
3a922bb4
RL
9529 case "$NUM_TOOLKITS" in
9530 1)
9531 ;;
9532 0)
e6cc62c6
VS
9533 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9534echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9535 { (exit 1); exit 1; }; }
3a922bb4
RL
9536 ;;
9537 *)
e6cc62c6
VS
9538 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9539echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9540 { (exit 1); exit 1; }; }
3a922bb4 9541 esac
10f2d63a 9542
3a922bb4
RL
9543 for toolkit in `echo $ALL_TOOLKITS`; do
9544 var=wxUSE_$toolkit
9545 eval "value=\$${var}"
9546 if test "x$value" != x; then
9547 cache_var=CACHE_$toolkit
9548 eval "cache=\$${cache_var}"
9549 if test "$cache" = 1; then
9550 echo "$var=$value" >> ${wx_arg_cache_file}
9551 fi
9552 if test "$value" = 1; then
9553 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9554 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9555echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9556 fi
9557 fi
9558 done
10f2d63a 9559else
9de9b8f0
VZ
9560 if test "x$host_alias" != "x"; then
9561 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9562echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9563 else
9564 echo "$as_me:$LINENO: result: base only" >&5
9565echo "${ECHO_T}base only" >&6
9566 fi
10f2d63a
VZ
9567fi
9568
43d99b6d
VS
9569wants_win32=0
9570doesnt_want_win32=0
17234b26
MB
9571case "${host}" in
9572 *-*-cygwin*)
9573 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9574 wants_win32=1
9575 else
9576 doesnt_want_win32=1
17234b26
MB
9577 fi
9578 ;;
9579 *-*-mingw*)
43d99b6d 9580 wants_win32=1
17234b26
MB
9581 ;;
9582esac
9583
89e6bf6d
VZ
9584if test "$wxUSE_WINE" = "yes"; then
9585 wants_win32=1
9586 CC=winegcc
9587 CXX=wineg++
9588 RESCOMP=wrc
9589fi
9590
43d99b6d 9591if test "$wants_win32" = 1 ; then
17234b26
MB
9592 USE_UNIX=0
9593 USE_WIN32=1
e6cc62c6 9594 cat >>confdefs.h <<\_ACEOF
17234b26 9595#define __WIN32__ 1
e6cc62c6 9596_ACEOF
17234b26 9597
e6cc62c6 9598 cat >>confdefs.h <<\_ACEOF
17234b26 9599#define __WIN95__ 1
e6cc62c6 9600_ACEOF
17234b26 9601
e6cc62c6 9602 cat >>confdefs.h <<\_ACEOF
17234b26 9603#define __WINDOWS__ 1
e6cc62c6 9604_ACEOF
17234b26 9605
e6cc62c6 9606 cat >>confdefs.h <<\_ACEOF
17234b26 9607#define __GNUWIN32__ 1
e6cc62c6 9608_ACEOF
17234b26 9609
e6cc62c6 9610 cat >>confdefs.h <<\_ACEOF
17234b26 9611#define STRICT 1
e6cc62c6 9612_ACEOF
17234b26 9613
e6cc62c6 9614 cat >>confdefs.h <<\_ACEOF
17234b26 9615#define WINVER 0x0400
e6cc62c6 9616_ACEOF
17234b26 9617
43d99b6d
VS
9618fi
9619if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9620 USE_UNIX=1
9621 USE_WIN32=0
9622fi
9623
9624if test "$USE_UNIX" = 1 ; then
9625 wxUSE_UNIX=yes
e6cc62c6 9626 cat >>confdefs.h <<\_ACEOF
17234b26 9627#define __UNIX__ 1
e6cc62c6 9628_ACEOF
17234b26
MB
9629
9630fi
9631
8284b0c5 9632
e6cc62c6 9633cat >confcache <<\_ACEOF
10f2d63a
VZ
9634# This file is a shell script that caches the results of configure
9635# tests run on this system so they can be shared between configure
e6cc62c6
VS
9636# scripts and configure runs, see configure's option --config-cache.
9637# It is not useful on other systems. If it contains results you don't
9638# want to keep, you may remove or edit it.
10f2d63a 9639#
e6cc62c6
VS
9640# config.status only pays attention to the cache file if you give it
9641# the --recheck option to rerun configure.
10f2d63a 9642#
e6cc62c6
VS
9643# `ac_cv_env_foo' variables (set or unset) will be overridden when
9644# loading this file, other *unset* `ac_cv_foo' will be assigned the
9645# following values.
9646
9647_ACEOF
9648
10f2d63a
VZ
9649# The following way of writing the cache mishandles newlines in values,
9650# but we know of no workaround that is simple, portable, and efficient.
9651# So, don't put newlines in cache variables' values.
9652# Ultrix sh set writes to stderr and can't be redirected directly,
9653# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9654{
9655 (set) 2>&1 |
9656 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9657 *ac_space=\ *)
9658 # `set' does not quote correctly, so add quotes (double-quote
9659 # substitution turns \\\\ into \\, and sed turns \\ into \).
9660 sed -n \
9661 "s/'/'\\\\''/g;
9662 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9663 ;;
9664 *)
9665 # `set' quotes correctly as required by POSIX, so do not add quotes.
9666 sed -n \
9667 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9668 ;;
9669 esac;
9670} |
9671 sed '
9672 t clear
9673 : clear
9674 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9675 t end
9676 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9677 : end' >>confcache
9678if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9679 if test -w $cache_file; then
e6cc62c6
VS
9680 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9681 cat confcache >$cache_file
10f2d63a
VZ
9682 else
9683 echo "not updating unwritable cache $cache_file"
9684 fi
9685fi
9686rm -f confcache
9687
e59890c3 9688if test "$build" != "$host" ; then
9d353d4a 9689 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9690 CC=$host_alias-gcc
9691 CXX=$host_alias-c++
9692 AR=$host_alias-ar
9693 RANLIB=$host_alias-ranlib
9694 DLLTOOL=$host_alias-dlltool
9695 RESCOMP=$host_alias-windres
9696 LD=$host_alias-ld
9697 NM=$host_alias-nm
9698 STRIP=$host_alias-strip
9699 else
e6cc62c6
VS
9700 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9701echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9702 { (exit 1); exit 1; }; }
3a922bb4 9703 fi
10f2d63a
VZ
9704fi
9705
ec603395 9706CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9707ac_ext=c
9708ac_cpp='$CPP $CPPFLAGS'
9709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9711ac_compiler_gnu=$ac_cv_c_compiler_gnu
9712if test -n "$ac_tool_prefix"; then
9713 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9714set dummy ${ac_tool_prefix}gcc; ac_word=$2
9715echo "$as_me:$LINENO: checking for $ac_word" >&5
9716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9717if test "${ac_cv_prog_CC+set}" = set; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9719else
9720 if test -n "$CC"; then
9721 ac_cv_prog_CC="$CC" # Let the user override the test.
9722else
9723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724for as_dir in $PATH
9725do
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9730 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9732 break 2
9733 fi
9734done
9735done
9736
9737fi
9738fi
9739CC=$ac_cv_prog_CC
9740if test -n "$CC"; then
9741 echo "$as_me:$LINENO: result: $CC" >&5
9742echo "${ECHO_T}$CC" >&6
9743else
9744 echo "$as_me:$LINENO: result: no" >&5
9745echo "${ECHO_T}no" >&6
9746fi
9747
9748fi
9749if test -z "$ac_cv_prog_CC"; then
9750 ac_ct_CC=$CC
9751 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9752set dummy gcc; ac_word=$2
e6cc62c6
VS
9753echo "$as_me:$LINENO: checking for $ac_word" >&5
9754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9755if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9757else
9758 if test -n "$ac_ct_CC"; then
9759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9760else
9761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762for as_dir in $PATH
9763do
9764 IFS=$as_save_IFS
9765 test -z "$as_dir" && as_dir=.
9766 for ac_exec_ext in '' $ac_executable_extensions; do
9767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9768 ac_cv_prog_ac_ct_CC="gcc"
9769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9770 break 2
9771 fi
9772done
9773done
9774
9775fi
9776fi
9777ac_ct_CC=$ac_cv_prog_ac_ct_CC
9778if test -n "$ac_ct_CC"; then
9779 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9780echo "${ECHO_T}$ac_ct_CC" >&6
9781else
9782 echo "$as_me:$LINENO: result: no" >&5
9783echo "${ECHO_T}no" >&6
9784fi
9785
9786 CC=$ac_ct_CC
9787else
9788 CC="$ac_cv_prog_CC"
9789fi
9790
9791if test -z "$CC"; then
9792 if test -n "$ac_tool_prefix"; then
9793 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9794set dummy ${ac_tool_prefix}cc; ac_word=$2
9795echo "$as_me:$LINENO: checking for $ac_word" >&5
9796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9797if test "${ac_cv_prog_CC+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9799else
9800 if test -n "$CC"; then
9801 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9802else
e6cc62c6
VS
9803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804for as_dir in $PATH
9805do
9806 IFS=$as_save_IFS
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810 ac_cv_prog_CC="${ac_tool_prefix}cc"
9811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9812 break 2
9813 fi
9814done
9815done
9816
10f2d63a 9817fi
6232543b 9818fi
e6cc62c6 9819CC=$ac_cv_prog_CC
6232543b 9820if test -n "$CC"; then
e6cc62c6
VS
9821 echo "$as_me:$LINENO: result: $CC" >&5
9822echo "${ECHO_T}$CC" >&6
9823else
9824 echo "$as_me:$LINENO: result: no" >&5
9825echo "${ECHO_T}no" >&6
9826fi
9827
9828fi
9829if test -z "$ac_cv_prog_CC"; then
9830 ac_ct_CC=$CC
9831 # Extract the first word of "cc", so it can be a program name with args.
9832set dummy cc; ac_word=$2
9833echo "$as_me:$LINENO: checking for $ac_word" >&5
9834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9835if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9837else
9838 if test -n "$ac_ct_CC"; then
9839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9840else
9841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9842for as_dir in $PATH
9843do
9844 IFS=$as_save_IFS
9845 test -z "$as_dir" && as_dir=.
9846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9848 ac_cv_prog_ac_ct_CC="cc"
9849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9850 break 2
9851 fi
9852done
9853done
9854
9855fi
9856fi
9857ac_ct_CC=$ac_cv_prog_ac_ct_CC
9858if test -n "$ac_ct_CC"; then
9859 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9860echo "${ECHO_T}$ac_ct_CC" >&6
9861else
9862 echo "$as_me:$LINENO: result: no" >&5
9863echo "${ECHO_T}no" >&6
9864fi
9865
9866 CC=$ac_ct_CC
247f5006 9867else
e6cc62c6 9868 CC="$ac_cv_prog_CC"
247f5006
VZ
9869fi
9870
e6cc62c6 9871fi
5c6fa7d2
RR
9872if test -z "$CC"; then
9873 # Extract the first word of "cc", so it can be a program name with args.
9874set dummy cc; ac_word=$2
e6cc62c6
VS
9875echo "$as_me:$LINENO: checking for $ac_word" >&5
9876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9877if test "${ac_cv_prog_CC+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9879else
9880 if test -n "$CC"; then
9881 ac_cv_prog_CC="$CC" # Let the user override the test.
9882else
9883 ac_prog_rejected=no
e6cc62c6
VS
9884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9885for as_dir in $PATH
9886do
9887 IFS=$as_save_IFS
9888 test -z "$as_dir" && as_dir=.
9889 for ac_exec_ext in '' $ac_executable_extensions; do
9890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9892 ac_prog_rejected=yes
9893 continue
9894 fi
9895 ac_cv_prog_CC="cc"
9896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9897 break 2
9898 fi
9899done
9900done
9901
328a083c
RR
9902if test $ac_prog_rejected = yes; then
9903 # We found a bogon in the path, so make sure we never use it.
9904 set dummy $ac_cv_prog_CC
9905 shift
e6cc62c6 9906 if test $# != 0; then
328a083c 9907 # We chose a different compiler from the bogus one.
1e487827
VS
9908 # However, it has the same basename, so the bogon will be chosen
9909 # first if we set CC to just the basename; use the full file name.
9910 shift
e6cc62c6 9911 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 9912 fi
1e487827
VS
9913fi
9914fi
9915fi
e6cc62c6 9916CC=$ac_cv_prog_CC
1e487827 9917if test -n "$CC"; then
e6cc62c6
VS
9918 echo "$as_me:$LINENO: result: $CC" >&5
9919echo "${ECHO_T}$CC" >&6
703e0a69 9920else
e6cc62c6
VS
9921 echo "$as_me:$LINENO: result: no" >&5
9922echo "${ECHO_T}no" >&6
703e0a69 9923fi
1e487827 9924
e6cc62c6
VS
9925fi
9926if test -z "$CC"; then
9927 if test -n "$ac_tool_prefix"; then
9928 for ac_prog in cl
9929 do
9930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9931set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9932echo "$as_me:$LINENO: checking for $ac_word" >&5
9933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9934if test "${ac_cv_prog_CC+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9936else
9937 if test -n "$CC"; then
9938 ac_cv_prog_CC="$CC" # Let the user override the test.
9939else
e6cc62c6
VS
9940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941for as_dir in $PATH
9942do
9943 IFS=$as_save_IFS
9944 test -z "$as_dir" && as_dir=.
9945 for ac_exec_ext in '' $ac_executable_extensions; do
9946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9947 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9949 break 2
9950 fi
9951done
9952done
9953
f09359cf
VS
9954fi
9955fi
e6cc62c6 9956CC=$ac_cv_prog_CC
f09359cf 9957if test -n "$CC"; then
e6cc62c6
VS
9958 echo "$as_me:$LINENO: result: $CC" >&5
9959echo "${ECHO_T}$CC" >&6
f09359cf 9960else
e6cc62c6
VS
9961 echo "$as_me:$LINENO: result: no" >&5
9962echo "${ECHO_T}no" >&6
5c6fa7d2 9963fi
1e487827 9964
e6cc62c6
VS
9965 test -n "$CC" && break
9966 done
9967fi
9968if test -z "$CC"; then
9969 ac_ct_CC=$CC
9970 for ac_prog in cl
9971do
9972 # Extract the first word of "$ac_prog", so it can be a program name with args.
9973set dummy $ac_prog; ac_word=$2
9974echo "$as_me:$LINENO: checking for $ac_word" >&5
9975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9976if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978else
9979 if test -n "$ac_ct_CC"; then
9980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9981else
9982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983for as_dir in $PATH
9984do
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
9987 for ac_exec_ext in '' $ac_executable_extensions; do
9988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9989 ac_cv_prog_ac_ct_CC="$ac_prog"
9990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9991 break 2
9992 fi
9993done
9994done
f09359cf 9995
e6cc62c6
VS
9996fi
9997fi
9998ac_ct_CC=$ac_cv_prog_ac_ct_CC
9999if test -n "$ac_ct_CC"; then
10000 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10001echo "${ECHO_T}$ac_ct_CC" >&6
10002else
10003 echo "$as_me:$LINENO: result: no" >&5
10004echo "${ECHO_T}no" >&6
10005fi
f09359cf 10006
e6cc62c6
VS
10007 test -n "$ac_ct_CC" && break
10008done
247f5006 10009
e6cc62c6
VS
10010 CC=$ac_ct_CC
10011fi
10012
10013fi
10014
10015
10016test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10017See \`config.log' for more details." >&5
10018echo "$as_me: error: no acceptable C compiler found in \$PATH
10019See \`config.log' for more details." >&2;}
10020 { (exit 1); exit 1; }; }
10021
10022# Provide some information about the compiler.
10023echo "$as_me:$LINENO:" \
10024 "checking for C compiler version" >&5
10025ac_compiler=`set X $ac_compile; echo $2`
10026{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10027 (eval $ac_compiler --version </dev/null >&5) 2>&5
10028 ac_status=$?
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }
10031{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10032 (eval $ac_compiler -v </dev/null >&5) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }
10036{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10037 (eval $ac_compiler -V </dev/null >&5) 2>&5
10038 ac_status=$?
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }
10041
10042cat >conftest.$ac_ext <<_ACEOF
10043#line $LINENO "configure"
10044/* confdefs.h. */
10045_ACEOF
10046cat confdefs.h >>conftest.$ac_ext
10047cat >>conftest.$ac_ext <<_ACEOF
10048/* end confdefs.h. */
10049
10050int
10051main ()
10052{
247f5006 10053
e6cc62c6
VS
10054 ;
10055 return 0;
10056}
10057_ACEOF
10058ac_clean_files_save=$ac_clean_files
10059ac_clean_files="$ac_clean_files a.out a.exe b.out"
10060# Try to create an executable without -o first, disregard a.out.
10061# It will help us diagnose broken compilers, and finding out an intuition
10062# of exeext.
10063echo "$as_me:$LINENO: checking for C compiler default output" >&5
10064echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10065ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10066if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10067 (eval $ac_link_default) 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; then
10071 # Find the output, starting from the most likely. This scheme is
10072# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10073# resort.
10074
10075# Be careful to initialize this variable, since it used to be cached.
10076# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10077ac_cv_exeext=
10078# b.out is created by i960 compilers.
10079for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10080do
10081 test -f "$ac_file" || continue
10082 case $ac_file in
10083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10084 ;;
10085 conftest.$ac_ext )
10086 # This is the source file.
10087 ;;
10088 [ab].out )
10089 # We found the default executable, but exeext='' is most
10090 # certainly right.
10091 break;;
10092 *.* )
10093 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10094 # FIXME: I believe we export ac_cv_exeext for Libtool,
10095 # but it would be cool to find out if it's true. Does anybody
10096 # maintain Libtool? --akim.
10097 export ac_cv_exeext
10098 break;;
10099 * )
10100 break;;
10101 esac
10102done
10103else
10104 echo "$as_me: failed program was:" >&5
10105sed 's/^/| /' conftest.$ac_ext >&5
10106
10107{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10108See \`config.log' for more details." >&5
10109echo "$as_me: error: C compiler cannot create executables
10110See \`config.log' for more details." >&2;}
10111 { (exit 77); exit 77; }; }
10112fi
10113
10114ac_exeext=$ac_cv_exeext
10115echo "$as_me:$LINENO: result: $ac_file" >&5
10116echo "${ECHO_T}$ac_file" >&6
10117
10118# Check the compiler produces executables we can run. If not, either
10119# the compiler is broken, or we cross compile.
10120echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10121echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10122# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10123# If not cross compiling, check that we can run a simple program.
10124if test "$cross_compiling" != yes; then
10125 if { ac_try='./$ac_file'
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10128 ac_status=$?
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
10131 cross_compiling=no
698dcdb6 10132 else
e6cc62c6
VS
10133 if test "$cross_compiling" = maybe; then
10134 cross_compiling=yes
10135 else
10136 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10137If you meant to cross compile, use \`--host'.
10138See \`config.log' for more details." >&5
10139echo "$as_me: error: cannot run C compiled programs.
10140If you meant to cross compile, use \`--host'.
10141See \`config.log' for more details." >&2;}
10142 { (exit 1); exit 1; }; }
10143 fi
698dcdb6 10144 fi
52127426 10145fi
e6cc62c6
VS
10146echo "$as_me:$LINENO: result: yes" >&5
10147echo "${ECHO_T}yes" >&6
10148
10149rm -f a.out a.exe conftest$ac_cv_exeext b.out
10150ac_clean_files=$ac_clean_files_save
10151# Check the compiler produces executables we can run. If not, either
10152# the compiler is broken, or we cross compile.
10153echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10154echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10155echo "$as_me:$LINENO: result: $cross_compiling" >&5
10156echo "${ECHO_T}$cross_compiling" >&6
10157
10158echo "$as_me:$LINENO: checking for suffix of executables" >&5
10159echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10161 (eval $ac_link) 2>&5
10162 ac_status=$?
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; then
10165 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10166# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10167# work properly (i.e., refer to `conftest.exe'), while it won't with
10168# `rm'.
10169for ac_file in conftest.exe conftest conftest.*; do
10170 test -f "$ac_file" || continue
10171 case $ac_file in
10172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10173 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10174 export ac_cv_exeext
10175 break;;
10176 * ) break;;
10177 esac
10178done
5c6fa7d2 10179else
e6cc62c6
VS
10180 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10181See \`config.log' for more details." >&5
10182echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10183See \`config.log' for more details." >&2;}
10184 { (exit 1); exit 1; }; }
10185fi
10186
10187rm -f conftest$ac_cv_exeext
10188echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10189echo "${ECHO_T}$ac_cv_exeext" >&6
10190
10191rm -f conftest.$ac_ext
10192EXEEXT=$ac_cv_exeext
10193ac_exeext=$EXEEXT
10194echo "$as_me:$LINENO: checking for suffix of object files" >&5
10195echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10196if test "${ac_cv_objext+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10198else
10199 cat >conftest.$ac_ext <<_ACEOF
10200#line $LINENO "configure"
10201/* confdefs.h. */
10202_ACEOF
10203cat confdefs.h >>conftest.$ac_ext
10204cat >>conftest.$ac_ext <<_ACEOF
10205/* end confdefs.h. */
10206
10207int
10208main ()
10209{
f09359cf 10210
e6cc62c6
VS
10211 ;
10212 return 0;
10213}
10214_ACEOF
10215rm -f conftest.o conftest.obj
10216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10217 (eval $ac_compile) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; then
10221 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10222 case $ac_file in
10223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10224 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10225 break;;
10226 esac
10227done
a0b9e27f 10228else
e6cc62c6
VS
10229 echo "$as_me: failed program was:" >&5
10230sed 's/^/| /' conftest.$ac_ext >&5
10231
10232{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10233See \`config.log' for more details." >&5
10234echo "$as_me: error: cannot compute suffix of object files: cannot compile
10235See \`config.log' for more details." >&2;}
10236 { (exit 1); exit 1; }; }
a0b9e27f 10237fi
247f5006 10238
e6cc62c6
VS
10239rm -f conftest.$ac_cv_objext conftest.$ac_ext
10240fi
10241echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10242echo "${ECHO_T}$ac_cv_objext" >&6
10243OBJEXT=$ac_cv_objext
10244ac_objext=$OBJEXT
10245echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10246echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10247if test "${ac_cv_c_compiler_gnu+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10249else
e6cc62c6
VS
10250 cat >conftest.$ac_ext <<_ACEOF
10251#line $LINENO "configure"
10252/* confdefs.h. */
10253_ACEOF
10254cat confdefs.h >>conftest.$ac_ext
10255cat >>conftest.$ac_ext <<_ACEOF
10256/* end confdefs.h. */
10257
10258int
10259main ()
10260{
10261#ifndef __GNUC__
10262 choke me
10263#endif
10264
10265 ;
10266 return 0;
10267}
10268_ACEOF
10269rm -f conftest.$ac_objext
10270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10271 (eval $ac_compile) 2>&5
10272 ac_status=$?
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } &&
10275 { ac_try='test -s conftest.$ac_objext'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; }; then
10281 ac_compiler_gnu=yes
10282else
10283 echo "$as_me: failed program was:" >&5
10284sed 's/^/| /' conftest.$ac_ext >&5
10285
10286ac_compiler_gnu=no
10287fi
10288rm -f conftest.$ac_objext conftest.$ac_ext
10289ac_cv_c_compiler_gnu=$ac_compiler_gnu
10290
10291fi
10292echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10293echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10294GCC=`test $ac_compiler_gnu = yes && echo yes`
10295ac_test_CFLAGS=${CFLAGS+set}
10296ac_save_CFLAGS=$CFLAGS
10297CFLAGS="-g"
10298echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10299echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10300if test "${ac_cv_prog_cc_g+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302else
10303 cat >conftest.$ac_ext <<_ACEOF
10304#line $LINENO "configure"
10305/* confdefs.h. */
10306_ACEOF
10307cat confdefs.h >>conftest.$ac_ext
10308cat >>conftest.$ac_ext <<_ACEOF
10309/* end confdefs.h. */
10310
10311int
10312main ()
10313{
10314
10315 ;
10316 return 0;
10317}
10318_ACEOF
10319rm -f conftest.$ac_objext
10320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321 (eval $ac_compile) 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } &&
10325 { ac_try='test -s conftest.$ac_objext'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10328 ac_status=$?
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10f2d63a
VZ
10331 ac_cv_prog_cc_g=yes
10332else
e6cc62c6
VS
10333 echo "$as_me: failed program was:" >&5
10334sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10335
e6cc62c6 10336ac_cv_prog_cc_g=no
10f2d63a 10337fi
e6cc62c6
VS
10338rm -f conftest.$ac_objext conftest.$ac_ext
10339fi
10340echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10341echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10342if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10343 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10344elif test $ac_cv_prog_cc_g = yes; then
10345 if test "$GCC" = yes; then
10f2d63a
VZ
10346 CFLAGS="-g -O2"
10347 else
f09359cf 10348 CFLAGS="-g"
10f2d63a 10349 fi
5c0a20c3 10350else
f09359cf
VS
10351 if test "$GCC" = yes; then
10352 CFLAGS="-O2"
10353 else
10354 CFLAGS=
10355 fi
10f2d63a 10356fi
e6cc62c6
VS
10357echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10358echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10359if test "${ac_cv_prog_cc_stdc+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361else
10362 ac_cv_prog_cc_stdc=no
10363ac_save_CC=$CC
10364cat >conftest.$ac_ext <<_ACEOF
10365#line $LINENO "configure"
10366/* confdefs.h. */
10367_ACEOF
10368cat confdefs.h >>conftest.$ac_ext
10369cat >>conftest.$ac_ext <<_ACEOF
10370/* end confdefs.h. */
10371#include <stdarg.h>
10372#include <stdio.h>
10373#include <sys/types.h>
10374#include <sys/stat.h>
10375/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10376struct buf { int x; };
10377FILE * (*rcsopen) (struct buf *, struct stat *, int);
10378static char *e (p, i)
10379 char **p;
10380 int i;
10381{
10382 return p[i];
10383}
10384static char *f (char * (*g) (char **, int), char **p, ...)
10385{
10386 char *s;
10387 va_list v;
10388 va_start (v,p);
10389 s = g (p, va_arg (v,int));
10390 va_end (v);
10391 return s;
10392}
10393int test (int i, double x);
10394struct s1 {int (*f) (int a);};
10395struct s2 {int (*f) (double a);};
10396int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10397int argc;
10398char **argv;
10399int
10400main ()
10401{
10402return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10403 ;
10404 return 0;
10405}
10406_ACEOF
10407# Don't try gcc -ansi; that turns off useful extensions and
10408# breaks some systems' header files.
10409# AIX -qlanglvl=ansi
10410# Ultrix and OSF/1 -std1
10411# HP-UX 10.20 and later -Ae
10412# HP-UX older versions -Aa -D_HPUX_SOURCE
10413# SVR4 -Xc -D__EXTENSIONS__
10414for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10415do
10416 CC="$ac_save_CC $ac_arg"
10417 rm -f conftest.$ac_objext
10418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10419 (eval $ac_compile) 2>&5
10420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } &&
10423 { ac_try='test -s conftest.$ac_objext'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10426 ac_status=$?
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; }; then
10429 ac_cv_prog_cc_stdc=$ac_arg
10430break
10431else
10432 echo "$as_me: failed program was:" >&5
10433sed 's/^/| /' conftest.$ac_ext >&5
10434
10435fi
10436rm -f conftest.$ac_objext
10437done
10438rm -f conftest.$ac_ext conftest.$ac_objext
10439CC=$ac_save_CC
10440
10441fi
10442
10443case "x$ac_cv_prog_cc_stdc" in
10444 x|xno)
10445 echo "$as_me:$LINENO: result: none needed" >&5
10446echo "${ECHO_T}none needed" >&6 ;;
10447 *)
10448 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10449echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10450 CC="$CC $ac_cv_prog_cc_stdc" ;;
10451esac
10452
10453# Some people use a C++ compiler to compile C. Since we use `exit',
10454# in C++ we need to declare it. In case someone uses the same compiler
10455# for both compiling C and C++ we need to have the C++ compiler decide
10456# the declaration of exit, since it's the most demanding environment.
10457cat >conftest.$ac_ext <<_ACEOF
10458#ifndef __cplusplus
10459 choke me
10460#endif
10461_ACEOF
10462rm -f conftest.$ac_objext
10463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10464 (eval $ac_compile) 2>&5
10465 ac_status=$?
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } &&
10468 { ac_try='test -s conftest.$ac_objext'
10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10474 for ac_declaration in \
6f628073
VS
10475 ''\
10476 '#include <stdlib.h>' \
e6cc62c6
VS
10477 'extern "C" void std::exit (int) throw (); using std::exit;' \
10478 'extern "C" void std::exit (int); using std::exit;' \
10479 'extern "C" void exit (int) throw ();' \
10480 'extern "C" void exit (int);' \
10481 'void exit (int);'
10482do
10483 cat >conftest.$ac_ext <<_ACEOF
10484#line $LINENO "configure"
10485/* confdefs.h. */
10486_ACEOF
10487cat confdefs.h >>conftest.$ac_ext
10488cat >>conftest.$ac_ext <<_ACEOF
10489/* end confdefs.h. */
71e83a03 10490#include <stdlib.h>
6f628073 10491$ac_declaration
e6cc62c6
VS
10492int
10493main ()
10494{
10495exit (42);
10496 ;
10497 return 0;
10498}
10499_ACEOF
10500rm -f conftest.$ac_objext
10501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502 (eval $ac_compile) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); } &&
10506 { ac_try='test -s conftest.$ac_objext'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }; then
10512 :
10513else
10514 echo "$as_me: failed program was:" >&5
10515sed 's/^/| /' conftest.$ac_ext >&5
10516
10517continue
10518fi
10519rm -f conftest.$ac_objext conftest.$ac_ext
10520 cat >conftest.$ac_ext <<_ACEOF
10521#line $LINENO "configure"
10522/* confdefs.h. */
10523_ACEOF
10524cat confdefs.h >>conftest.$ac_ext
10525cat >>conftest.$ac_ext <<_ACEOF
10526/* end confdefs.h. */
10527$ac_declaration
10528int
10529main ()
10530{
10531exit (42);
10532 ;
10533 return 0;
10534}
10535_ACEOF
10536rm -f conftest.$ac_objext
10537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10538 (eval $ac_compile) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } &&
10542 { ac_try='test -s conftest.$ac_objext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 break
10549else
10550 echo "$as_me: failed program was:" >&5
10551sed 's/^/| /' conftest.$ac_ext >&5
10552
10553fi
10554rm -f conftest.$ac_objext conftest.$ac_ext
10555done
10556rm -f conftest*
10557if test -n "$ac_declaration"; then
10558 echo '#ifdef __cplusplus' >>confdefs.h
10559 echo $ac_declaration >>confdefs.h
10560 echo '#endif' >>confdefs.h
10561fi
10562
10563else
10564 echo "$as_me: failed program was:" >&5
10565sed 's/^/| /' conftest.$ac_ext >&5
10566
10567fi
10568rm -f conftest.$ac_objext conftest.$ac_ext
10569ac_ext=c
10570ac_cpp='$CPP $CPPFLAGS'
10571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10573ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10574
10575
e6cc62c6
VS
10576
10577ac_ext=c
10578ac_cpp='$CPP $CPPFLAGS'
10579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10581ac_compiler_gnu=$ac_cv_c_compiler_gnu
10582echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10583echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10584# On Suns, sometimes $CPP names a directory.
10585if test -n "$CPP" && test -d "$CPP"; then
10586 CPP=
10587fi
10588if test -z "$CPP"; then
e6cc62c6
VS
10589 if test "${ac_cv_prog_CPP+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10591else
10592 # Double quotes because CPP needs to be expanded
10593 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10594 do
10595 ac_preproc_ok=false
10596for ac_c_preproc_warn_flag in '' yes
10597do
10598 # Use a header file that comes with gcc, so configuring glibc
10599 # with a fresh cross-compiler works.
10600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10601 # <limits.h> exists even on freestanding compilers.
10f2d63a 10602 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10603 # not just through cpp. "Syntax error" is here to catch this case.
10604 cat >conftest.$ac_ext <<_ACEOF
10605#line $LINENO "configure"
10606/* confdefs.h. */
10607_ACEOF
10608cat confdefs.h >>conftest.$ac_ext
10609cat >>conftest.$ac_ext <<_ACEOF
10610/* end confdefs.h. */
10611#ifdef __STDC__
10612# include <limits.h>
10613#else
10614# include <assert.h>
10615#endif
10616 Syntax error
10617_ACEOF
10618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } >/dev/null; then
10626 if test -s conftest.err; then
10627 ac_cpp_err=$ac_c_preproc_warn_flag
10628 else
10629 ac_cpp_err=
10630 fi
10f2d63a 10631else
e6cc62c6
VS
10632 ac_cpp_err=yes
10633fi
10634if test -z "$ac_cpp_err"; then
a0b9e27f 10635 :
247f5006 10636else
e6cc62c6
VS
10637 echo "$as_me: failed program was:" >&5
10638sed 's/^/| /' conftest.$ac_ext >&5
10639
10640 # Broken: fails on valid input.
10641continue
10642fi
10643rm -f conftest.err conftest.$ac_ext
10644
10645 # OK, works on sane cases. Now check whether non-existent headers
10646 # can be detected and how.
10647 cat >conftest.$ac_ext <<_ACEOF
10648#line $LINENO "configure"
10649/* confdefs.h. */
10650_ACEOF
10651cat confdefs.h >>conftest.$ac_ext
10652cat >>conftest.$ac_ext <<_ACEOF
10653/* end confdefs.h. */
10654#include <ac_nonexistent.h>
10655_ACEOF
10656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10658 ac_status=$?
10659 grep -v '^ *+' conftest.er1 >conftest.err
10660 rm -f conftest.er1
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } >/dev/null; then
10664 if test -s conftest.err; then
10665 ac_cpp_err=$ac_c_preproc_warn_flag
10666 else
10667 ac_cpp_err=
10668 fi
10f2d63a 10669else
e6cc62c6 10670 ac_cpp_err=yes
579d8138 10671fi
e6cc62c6
VS
10672if test -z "$ac_cpp_err"; then
10673 # Broken: success on invalid input.
10674continue
10675else
10676 echo "$as_me: failed program was:" >&5
10677sed 's/^/| /' conftest.$ac_ext >&5
10678
10679 # Passes both tests.
10680ac_preproc_ok=:
10681break
52127426 10682fi
e6cc62c6
VS
10683rm -f conftest.err conftest.$ac_ext
10684
10685done
10686# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10687rm -f conftest.err conftest.$ac_ext
10688if $ac_preproc_ok; then
10689 break
8284b0c5 10690fi
e6cc62c6
VS
10691
10692 done
10693 ac_cv_prog_CPP=$CPP
10694
10695fi
10696 CPP=$ac_cv_prog_CPP
10697else
10698 ac_cv_prog_CPP=$CPP
10699fi
10700echo "$as_me:$LINENO: result: $CPP" >&5
10701echo "${ECHO_T}$CPP" >&6
10702ac_preproc_ok=false
10703for ac_c_preproc_warn_flag in '' yes
10704do
10705 # Use a header file that comes with gcc, so configuring glibc
10706 # with a fresh cross-compiler works.
10707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10708 # <limits.h> exists even on freestanding compilers.
10709 # On the NeXT, cc -E runs the code through the compiler's parser,
10710 # not just through cpp. "Syntax error" is here to catch this case.
10711 cat >conftest.$ac_ext <<_ACEOF
10712#line $LINENO "configure"
10713/* confdefs.h. */
10714_ACEOF
10715cat confdefs.h >>conftest.$ac_ext
10716cat >>conftest.$ac_ext <<_ACEOF
10717/* end confdefs.h. */
10718#ifdef __STDC__
10719# include <limits.h>
10720#else
10721# include <assert.h>
10722#endif
10723 Syntax error
10724_ACEOF
10725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10727 ac_status=$?
10728 grep -v '^ *+' conftest.er1 >conftest.err
10729 rm -f conftest.er1
10730 cat conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } >/dev/null; then
10733 if test -s conftest.err; then
10734 ac_cpp_err=$ac_c_preproc_warn_flag
10735 else
10736 ac_cpp_err=
10737 fi
10738else
10739 ac_cpp_err=yes
10740fi
10741if test -z "$ac_cpp_err"; then
10742 :
10743else
10744 echo "$as_me: failed program was:" >&5
10745sed 's/^/| /' conftest.$ac_ext >&5
10746
10747 # Broken: fails on valid input.
10748continue
10749fi
10750rm -f conftest.err conftest.$ac_ext
10751
10752 # OK, works on sane cases. Now check whether non-existent headers
10753 # can be detected and how.
10754 cat >conftest.$ac_ext <<_ACEOF
10755#line $LINENO "configure"
10756/* confdefs.h. */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h. */
10761#include <ac_nonexistent.h>
10762_ACEOF
10763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } >/dev/null; then
10771 if test -s conftest.err; then
10772 ac_cpp_err=$ac_c_preproc_warn_flag
10773 else
10774 ac_cpp_err=
10775 fi
10776else
10777 ac_cpp_err=yes
10778fi
10779if test -z "$ac_cpp_err"; then
10780 # Broken: success on invalid input.
10781continue
10782else
10783 echo "$as_me: failed program was:" >&5
10784sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 # Passes both tests.
10787ac_preproc_ok=:
10788break
a0b9e27f 10789fi
e6cc62c6
VS
10790rm -f conftest.err conftest.$ac_ext
10791
10792done
10793# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10794rm -f conftest.err conftest.$ac_ext
10795if $ac_preproc_ok; then
10796 :
10797else
10798 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10799See \`config.log' for more details." >&5
10800echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10801See \`config.log' for more details." >&2;}
10802 { (exit 1); exit 1; }; }
10803fi
10804
10805ac_ext=c
10806ac_cpp='$CPP $CPPFLAGS'
10807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10809ac_compiler_gnu=$ac_cv_c_compiler_gnu
10810
10811
10812echo "$as_me:$LINENO: checking for egrep" >&5
10813echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10814if test "${ac_cv_prog_egrep+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10816else
e6cc62c6
VS
10817 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10818 then ac_cv_prog_egrep='grep -E'
10819 else ac_cv_prog_egrep='egrep'
10820 fi
10f2d63a 10821fi
e6cc62c6
VS
10822echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10823echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10824 EGREP=$ac_cv_prog_egrep
10825
10f2d63a 10826
e6cc62c6
VS
10827if test $ac_cv_c_compiler_gnu = yes; then
10828 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10829echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10830if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10832else
10833 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10834 cat >conftest.$ac_ext <<_ACEOF
10835#line $LINENO "configure"
10836/* confdefs.h. */
10837_ACEOF
10838cat confdefs.h >>conftest.$ac_ext
10839cat >>conftest.$ac_ext <<_ACEOF
10840/* end confdefs.h. */
10f2d63a
VZ
10841#include <sgtty.h>
10842Autoconf TIOCGETP
e6cc62c6 10843_ACEOF
10f2d63a 10844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10845 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10846 ac_cv_prog_gcc_traditional=yes
10847else
10f2d63a
VZ
10848 ac_cv_prog_gcc_traditional=no
10849fi
10850rm -f conftest*
10851
8284b0c5 10852
10f2d63a 10853 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10854 cat >conftest.$ac_ext <<_ACEOF
10855#line $LINENO "configure"
10856/* confdefs.h. */
10857_ACEOF
10858cat confdefs.h >>conftest.$ac_ext
10859cat >>conftest.$ac_ext <<_ACEOF
10860/* end confdefs.h. */
10f2d63a
VZ
10861#include <termio.h>
10862Autoconf TCGETA
e6cc62c6 10863_ACEOF
10f2d63a 10864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10865 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10866 ac_cv_prog_gcc_traditional=yes
10867fi
10868rm -f conftest*
10869
10870 fi
10871fi
e6cc62c6
VS
10872echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10873echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10874 if test $ac_cv_prog_gcc_traditional = yes; then
10875 CC="$CC -traditional"
10876 fi
10877fi
10878
8284b0c5
MB
10879
10880
e6cc62c6
VS
10881
10882ac_ext=cc
1e487827 10883ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10887
698dcdb6 10888
ec603395 10889CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
10890ac_ext=cc
10891ac_cpp='$CXXCPP $CPPFLAGS'
10892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10895if test -n "$ac_tool_prefix"; then
10896 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10897 do
10898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10899set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10900echo "$as_me:$LINENO: checking for $ac_word" >&5
10901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10902if test "${ac_cv_prog_CXX+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10904else
10905 if test -n "$CXX"; then
10906 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10907else
e6cc62c6
VS
10908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10909for as_dir in $PATH
10910do
10911 IFS=$as_save_IFS
10912 test -z "$as_dir" && as_dir=.
10913 for ac_exec_ext in '' $ac_executable_extensions; do
10914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10915 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10917 break 2
10918 fi
10919done
10920done
10921
10f2d63a
VZ
10922fi
10923fi
e6cc62c6 10924CXX=$ac_cv_prog_CXX
10f2d63a 10925if test -n "$CXX"; then
e6cc62c6
VS
10926 echo "$as_me:$LINENO: result: $CXX" >&5
10927echo "${ECHO_T}$CXX" >&6
10f2d63a 10928else
e6cc62c6
VS
10929 echo "$as_me:$LINENO: result: no" >&5
10930echo "${ECHO_T}no" >&6
10f2d63a
VZ
10931fi
10932
e6cc62c6
VS
10933 test -n "$CXX" && break
10934 done
10935fi
10936if test -z "$CXX"; then
10937 ac_ct_CXX=$CXX
10938 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10939do
10940 # Extract the first word of "$ac_prog", so it can be a program name with args.
10941set dummy $ac_prog; ac_word=$2
10942echo "$as_me:$LINENO: checking for $ac_word" >&5
10943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10944if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946else
10947 if test -n "$ac_ct_CXX"; then
10948 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10949else
10950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951for as_dir in $PATH
10952do
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10957 ac_cv_prog_ac_ct_CXX="$ac_prog"
10958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10959 break 2
10960 fi
10961done
10f2d63a 10962done
a0b9e27f 10963
8284b0c5 10964fi
a0b9e27f 10965fi
e6cc62c6
VS
10966ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10967if test -n "$ac_ct_CXX"; then
10968 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10969echo "${ECHO_T}$ac_ct_CXX" >&6
10970else
10971 echo "$as_me:$LINENO: result: no" >&5
10972echo "${ECHO_T}no" >&6
a0b9e27f 10973fi
10f2d63a 10974
e6cc62c6
VS
10975 test -n "$ac_ct_CXX" && break
10976done
10977test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10978
10979 CXX=$ac_ct_CXX
10980fi
10981
10982
10983# Provide some information about the compiler.
10984echo "$as_me:$LINENO:" \
10985 "checking for C++ compiler version" >&5
10986ac_compiler=`set X $ac_compile; echo $2`
10987{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10988 (eval $ac_compiler --version </dev/null >&5) 2>&5
10989 ac_status=$?
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }
10992{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10993 (eval $ac_compiler -v </dev/null >&5) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }
10997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10998 (eval $ac_compiler -V </dev/null >&5) 2>&5
10999 ac_status=$?
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }
11002
11003echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11004echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11005if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007else
11008 cat >conftest.$ac_ext <<_ACEOF
11009#line $LINENO "configure"
11010/* confdefs.h. */
11011_ACEOF
11012cat confdefs.h >>conftest.$ac_ext
11013cat >>conftest.$ac_ext <<_ACEOF
11014/* end confdefs.h. */
11015
11016int
11017main ()
11018{
11019#ifndef __GNUC__
11020 choke me
11021#endif
10f2d63a 11022
e6cc62c6
VS
11023 ;
11024 return 0;
11025}
11026_ACEOF
11027rm -f conftest.$ac_objext
11028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11029 (eval $ac_compile) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } &&
11033 { ac_try='test -s conftest.$ac_objext'
11034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11035 (eval $ac_try) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
11039 ac_compiler_gnu=yes
11040else
11041 echo "$as_me: failed program was:" >&5
11042sed 's/^/| /' conftest.$ac_ext >&5
11043
11044ac_compiler_gnu=no
11045fi
11046rm -f conftest.$ac_objext conftest.$ac_ext
11047ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11048
11049fi
11050echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11051echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11052GXX=`test $ac_compiler_gnu = yes && echo yes`
11053ac_test_CXXFLAGS=${CXXFLAGS+set}
11054ac_save_CXXFLAGS=$CXXFLAGS
11055CXXFLAGS="-g"
11056echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11057echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11058if test "${ac_cv_prog_cxx_g+set}" = set; then
11059 echo $ECHO_N "(cached) $ECHO_C" >&6
11060else
11061 cat >conftest.$ac_ext <<_ACEOF
11062#line $LINENO "configure"
11063/* confdefs.h. */
11064_ACEOF
11065cat confdefs.h >>conftest.$ac_ext
11066cat >>conftest.$ac_ext <<_ACEOF
11067/* end confdefs.h. */
11068
11069int
11070main ()
11071{
f09359cf 11072
e6cc62c6
VS
11073 ;
11074 return 0;
11075}
11076_ACEOF
11077rm -f conftest.$ac_objext
11078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11079 (eval $ac_compile) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } &&
11083 { ac_try='test -s conftest.$ac_objext'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
10f2d63a
VZ
11089 ac_cv_prog_cxx_g=yes
11090else
e6cc62c6
VS
11091 echo "$as_me: failed program was:" >&5
11092sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11093
e6cc62c6 11094ac_cv_prog_cxx_g=no
10f2d63a 11095fi
e6cc62c6
VS
11096rm -f conftest.$ac_objext conftest.$ac_ext
11097fi
11098echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11099echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11100if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11101 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11102elif test $ac_cv_prog_cxx_g = yes; then
11103 if test "$GXX" = yes; then
10f2d63a
VZ
11104 CXXFLAGS="-g -O2"
11105 else
f09359cf 11106 CXXFLAGS="-g"
10f2d63a 11107 fi
5c0a20c3 11108else
f09359cf
VS
11109 if test "$GXX" = yes; then
11110 CXXFLAGS="-O2"
11111 else
11112 CXXFLAGS=
11113 fi
10f2d63a 11114fi
e6cc62c6 11115for ac_declaration in \
6f628073
VS
11116 ''\
11117 '#include <stdlib.h>' \
e6cc62c6
VS
11118 'extern "C" void std::exit (int) throw (); using std::exit;' \
11119 'extern "C" void std::exit (int); using std::exit;' \
11120 'extern "C" void exit (int) throw ();' \
11121 'extern "C" void exit (int);' \
11122 'void exit (int);'
11123do
11124 cat >conftest.$ac_ext <<_ACEOF
11125#line $LINENO "configure"
11126/* confdefs.h. */
11127_ACEOF
11128cat confdefs.h >>conftest.$ac_ext
11129cat >>conftest.$ac_ext <<_ACEOF
11130/* end confdefs.h. */
71e83a03 11131#include <stdlib.h>
6f628073 11132$ac_declaration
e6cc62c6
VS
11133int
11134main ()
11135{
11136exit (42);
11137 ;
11138 return 0;
11139}
11140_ACEOF
11141rm -f conftest.$ac_objext
11142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11143 (eval $ac_compile) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } &&
11147 { ac_try='test -s conftest.$ac_objext'
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; }; then
11153 :
11154else
11155 echo "$as_me: failed program was:" >&5
11156sed 's/^/| /' conftest.$ac_ext >&5
11157
11158continue
11159fi
11160rm -f conftest.$ac_objext conftest.$ac_ext
11161 cat >conftest.$ac_ext <<_ACEOF
11162#line $LINENO "configure"
11163/* confdefs.h. */
11164_ACEOF
11165cat confdefs.h >>conftest.$ac_ext
11166cat >>conftest.$ac_ext <<_ACEOF
11167/* end confdefs.h. */
11168$ac_declaration
11169int
11170main ()
11171{
11172exit (42);
11173 ;
11174 return 0;
11175}
11176_ACEOF
11177rm -f conftest.$ac_objext
11178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11179 (eval $ac_compile) 2>&5
11180 ac_status=$?
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } &&
11183 { ac_try='test -s conftest.$ac_objext'
11184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11185 (eval $ac_try) 2>&5
11186 ac_status=$?
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 break
11190else
11191 echo "$as_me: failed program was:" >&5
11192sed 's/^/| /' conftest.$ac_ext >&5
11193
11194fi
11195rm -f conftest.$ac_objext conftest.$ac_ext
11196done
11197rm -f conftest*
11198if test -n "$ac_declaration"; then
11199 echo '#ifdef __cplusplus' >>confdefs.h
11200 echo $ac_declaration >>confdefs.h
11201 echo '#endif' >>confdefs.h
11202fi
11203
11204ac_ext=cc
11205ac_cpp='$CXXCPP $CPPFLAGS'
11206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11209
11210
10f2d63a 11211ac_ext=c
10f2d63a 11212ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11215ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11216
11217
e6cc62c6
VS
11218if test -n "$ac_tool_prefix"; then
11219 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11220set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11221echo "$as_me:$LINENO: checking for $ac_word" >&5
11222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11223if test "${ac_cv_prog_RANLIB+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11225else
11226 if test -n "$RANLIB"; then
11227 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11228else
e6cc62c6
VS
11229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230for as_dir in $PATH
11231do
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
11235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11236 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 break 2
11239 fi
11240done
11241done
11242
10f2d63a
VZ
11243fi
11244fi
e6cc62c6 11245RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11246if test -n "$RANLIB"; then
e6cc62c6
VS
11247 echo "$as_me:$LINENO: result: $RANLIB" >&5
11248echo "${ECHO_T}$RANLIB" >&6
11249else
11250 echo "$as_me:$LINENO: result: no" >&5
11251echo "${ECHO_T}no" >&6
11252fi
11253
11254fi
11255if test -z "$ac_cv_prog_RANLIB"; then
11256 ac_ct_RANLIB=$RANLIB
11257 # Extract the first word of "ranlib", so it can be a program name with args.
11258set dummy ranlib; ac_word=$2
11259echo "$as_me:$LINENO: checking for $ac_word" >&5
11260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11261if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11263else
e6cc62c6
VS
11264 if test -n "$ac_ct_RANLIB"; then
11265 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11266else
11267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11268for as_dir in $PATH
11269do
11270 IFS=$as_save_IFS
11271 test -z "$as_dir" && as_dir=.
11272 for ac_exec_ext in '' $ac_executable_extensions; do
11273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11274 ac_cv_prog_ac_ct_RANLIB="ranlib"
11275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11276 break 2
11277 fi
11278done
11279done
11280
11281 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11282fi
11283fi
11284ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11285if test -n "$ac_ct_RANLIB"; then
11286 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11287echo "${ECHO_T}$ac_ct_RANLIB" >&6
11288else
11289 echo "$as_me:$LINENO: result: no" >&5
11290echo "${ECHO_T}no" >&6
11291fi
11292
11293 RANLIB=$ac_ct_RANLIB
11294else
11295 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11296fi
11297
10f2d63a
VZ
11298
11299# Extract the first word of "ar", so it can be a program name with args.
11300set dummy ar; ac_word=$2
e6cc62c6
VS
11301echo "$as_me:$LINENO: checking for $ac_word" >&5
11302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11303if test "${ac_cv_prog_AR+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11305else
11306 if test -n "$AR"; then
11307 ac_cv_prog_AR="$AR" # Let the user override the test.
11308else
e6cc62c6
VS
11309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310for as_dir in $PATH
11311do
11312 IFS=$as_save_IFS
11313 test -z "$as_dir" && as_dir=.
11314 for ac_exec_ext in '' $ac_executable_extensions; do
11315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11316 ac_cv_prog_AR="ar"
11317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11318 break 2
11319 fi
11320done
11321done
11322
10f2d63a
VZ
11323fi
11324fi
e6cc62c6 11325AR=$ac_cv_prog_AR
10f2d63a 11326if test -n "$AR"; then
e6cc62c6
VS
11327 echo "$as_me:$LINENO: result: $AR" >&5
11328echo "${ECHO_T}$AR" >&6
10f2d63a 11329else
e6cc62c6
VS
11330 echo "$as_me:$LINENO: result: no" >&5
11331echo "${ECHO_T}no" >&6
10f2d63a
VZ
11332fi
11333
911740e7
VS
11334if test "x$AR" = "x" ; then
11335 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11336echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11337 { (exit 1); exit 1; }; }
11338fi
8284b0c5 11339
6054113a 11340# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11341# so one script is as good as another. But avoid the broken or
11342# incompatible versions:
11343# SysV /etc/install, /usr/sbin/install
11344# SunOS /usr/etc/install
11345# IRIX /sbin/install
11346# AIX /bin/install
e6cc62c6 11347# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11348# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11349# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11350# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11351# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11352echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11353echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11354if test -z "$INSTALL"; then
e6cc62c6
VS
11355if test "${ac_cv_path_install+set}" = set; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11357else
11358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359for as_dir in $PATH
11360do
11361 IFS=$as_save_IFS
11362 test -z "$as_dir" && as_dir=.
11363 # Account for people who put trailing slashes in PATH elements.
11364case $as_dir/ in
11365 ./ | .// | /cC/* | \
11366 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11367 /usr/ucb/* ) ;;
11368 *)
11369 # OSF1 and SCO ODT 3.0 have their own names for install.
11370 # Don't use installbsd from OSF since it installs stuff as root
11371 # by default.
11372 for ac_prog in ginstall scoinst install; do
11373 for ac_exec_ext in '' $ac_executable_extensions; do
11374 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11375 if test $ac_prog = install &&
11376 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11377 # AIX install. It has an incompatible calling convention.
11378 :
11379 elif test $ac_prog = install &&
11380 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11381 # program-specific install script used by HP pwplus--don't use.
11382 :
11383 else
11384 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11385 break 3
11386 fi
11387 fi
10f2d63a 11388 done
e6cc62c6
VS
11389 done
11390 ;;
11391esac
11392done
11393
10f2d63a
VZ
11394
11395fi
11396 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11397 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11398 else
11399 # As a last resort, use the slow shell script. We don't cache a
11400 # path for INSTALL within a source directory, because that will
11401 # break other packages using the cache if that directory is
11402 # removed, or if the path is relative.
e6cc62c6 11403 INSTALL=$ac_install_sh
10f2d63a
VZ
11404 fi
11405fi
e6cc62c6
VS
11406echo "$as_me:$LINENO: result: $INSTALL" >&5
11407echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11408
11409# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11410# It thinks the first close brace ends the variable substitution.
11411test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11412
e6cc62c6 11413test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11414
10f2d63a
VZ
11415test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11416
8284b0c5 11417
1d1b75ac
VZ
11418case ${INSTALL} in
11419 /* ) # Absolute
11420 ;;
4f5a7f74
VZ
11421 ?:* ) # Drive letter, considered as absolute.
11422 ;;
3bd8fb5f 11423 *)
1d1b75ac
VZ
11424 INSTALL=`pwd`/${INSTALL} ;;
11425esac
11426
4f5a7f74
VZ
11427case ${host} in
11428 *-hp-hpux* )
11429 INSTALL_DIR="mkdir"
11430 ;;
11431
11432 *) INSTALL_DIR="$INSTALL -d"
11433 ;;
11434esac
11435
8284b0c5 11436
6054113a
GD
11437case "${host}" in
11438
b5853384 11439 powerpc-*-darwin* )
eb99ae0b
GD
11440 INSTALL_PROGRAM="cp -fp"
11441 INSTALL_DATA="cp -fp"
6054113a
GD
11442 ;;
11443 *)
11444 ;;
d6853540 11445esac
698dcdb6 11446
10f2d63a
VZ
11447# Extract the first word of "strip", so it can be a program name with args.
11448set dummy strip; ac_word=$2
e6cc62c6
VS
11449echo "$as_me:$LINENO: checking for $ac_word" >&5
11450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11451if test "${ac_cv_prog_STRIP+set}" = set; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11453else
11454 if test -n "$STRIP"; then
11455 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11456else
e6cc62c6
VS
11457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458for as_dir in $PATH
11459do
11460 IFS=$as_save_IFS
11461 test -z "$as_dir" && as_dir=.
11462 for ac_exec_ext in '' $ac_executable_extensions; do
11463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11464 ac_cv_prog_STRIP="strip"
11465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11466 break 2
11467 fi
11468done
11469done
11470
10f2d63a
VZ
11471 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11472fi
11473fi
e6cc62c6 11474STRIP=$ac_cv_prog_STRIP
10f2d63a 11475if test -n "$STRIP"; then
e6cc62c6
VS
11476 echo "$as_me:$LINENO: result: $STRIP" >&5
11477echo "${ECHO_T}$STRIP" >&6
10f2d63a 11478else
e6cc62c6
VS
11479 echo "$as_me:$LINENO: result: no" >&5
11480echo "${ECHO_T}no" >&6
10f2d63a
VZ
11481fi
11482
5c6fa7d2 11483
e6cc62c6
VS
11484echo "$as_me:$LINENO: checking if make is GNU make" >&5
11485echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11486if test "${wx_cv_prog_makeisgnu+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11488else
e6cc62c6 11489
414eab6d 11490 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11491 egrep -s GNU > /dev/null); then
414eab6d
VZ
11492 wx_cv_prog_makeisgnu="yes"
11493 else
11494 wx_cv_prog_makeisgnu="no"
11495 fi
11496
11497fi
e6cc62c6
VS
11498echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11499echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11500
11501if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11502 IF_GNU_MAKE=""
11503else
11504 IF_GNU_MAKE="#"
11505fi
11506
8284b0c5
MB
11507
11508
414eab6d 11509if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11510echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11511echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11512if test "${wx_cv_prog_makevpath+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11514else
e6cc62c6 11515
10f2d63a
VZ
11516cat - << EOF > confMake
11517check : file
11518 cp \$? \$@
11519 cp \$? final_file
11520EOF
11521
11522if test ! -d sub ; then
11523 mkdir sub
11524fi
11525echo dummy > sub/file
f6bcfd97 11526${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11527RESULT=$?
11528rm -f sub/file check final_file confMake
11529rmdir sub
11530if test "$RESULT" = 0; then
04e7a216 11531 wx_cv_prog_makevpath="yes"
10f2d63a 11532else
04e7a216
VZ
11533 wx_cv_prog_makevpath="no"
11534fi
11535
11536fi
e6cc62c6
VS
11537echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11538echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11539
11540if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11541{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11542You need a make-utility that is able to use the variable
11543VPATH correctly.
11544If your version of make does not support VPATH correctly,
11545please install GNU-make (possibly as gmake), and start
11546configure with the following command:
11547export MAKE=gmake; ./configure for sh-type shells
11548setenv MAKE gmake; ./configure for csh-type shells
11549Also please do remember to use gmake in this case every time
11550you are trying to compile.
e6cc62c6
VS
11551" >&5
11552echo "$as_me: error:
11553You need a make-utility that is able to use the variable
11554VPATH correctly.
11555If your version of make does not support VPATH correctly,
11556please install GNU-make (possibly as gmake), and start
11557configure with the following command:
11558export MAKE=gmake; ./configure for sh-type shells
11559setenv MAKE gmake; ./configure for csh-type shells
11560Also please do remember to use gmake in this case every time
11561you are trying to compile.
11562" >&2;}
11563 { (exit 1); exit 1; }; }
11564fi fi
e6cc62c6
VS
11565echo "$as_me:$LINENO: checking whether ln -s works" >&5
11566echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11567LN_S=$as_ln_s
11568if test "$LN_S" = "ln -s"; then
11569 echo "$as_me:$LINENO: result: yes" >&5
11570echo "${ECHO_T}yes" >&6
10f2d63a 11571else
e6cc62c6
VS
11572 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11573echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11574fi
5c6fa7d2 11575
247f5006 11576
2b5f62a0
VZ
11577case "${host}" in
11578 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 11579 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11580 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11581echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11582if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11584else
e6cc62c6 11585 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11586LIBS="-lcExt $LIBS"
e6cc62c6
VS
11587cat >conftest.$ac_ext <<_ACEOF
11588#line $LINENO "configure"
11589/* confdefs.h. */
11590_ACEOF
11591cat confdefs.h >>conftest.$ac_ext
11592cat >>conftest.$ac_ext <<_ACEOF
11593/* end confdefs.h. */
11594
2b5f62a0 11595/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11596#ifdef __cplusplus
11597extern "C"
11598#endif
2b5f62a0 11599/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11600 builtin and then its argument prototype would still apply. */
11601char drand48 ();
11602int
11603main ()
11604{
11605drand48 ();
11606 ;
11607 return 0;
11608}
11609_ACEOF
11610rm -f conftest.$ac_objext conftest$ac_exeext
11611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11612 (eval $ac_link) 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -s conftest$ac_exeext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11619 ac_status=$?
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 ac_cv_lib_cExt_drand48=yes
11623else
11624 echo "$as_me: failed program was:" >&5
11625sed 's/^/| /' conftest.$ac_ext >&5
11626
11627ac_cv_lib_cExt_drand48=no
11628fi
11629rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11630LIBS=$ac_check_lib_save_LIBS
11631fi
11632echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11633echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11634if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11635 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11636fi
11637
11638 else
11639 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11640 fi
11641 ;;
11642esac
11643
a0b9e27f 11644
01aa5863
VS
11645if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11646 echo "$as_me:$LINENO: checking for strings.h" >&5
11647echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11648if test "${ac_cv_header_strings_h+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11650else
11651 ac_cv_header_strings_h=no
11652fi
11653echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11654echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11655 if test "$ac_cv_header_strings_h" = "no"; then
11656 echo "$as_me:$LINENO: result: forced no into cache" >&5
11657echo "${ECHO_T}forced no into cache" >&6
11658 else
11659 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11660echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11661 fi
11662fi
11663echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11664echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11665if test "${ac_cv_header_stdc+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11667else
11668 cat >conftest.$ac_ext <<_ACEOF
11669#line $LINENO "configure"
11670/* confdefs.h. */
11671_ACEOF
11672cat confdefs.h >>conftest.$ac_ext
11673cat >>conftest.$ac_ext <<_ACEOF
11674/* end confdefs.h. */
11675#include <stdlib.h>
11676#include <stdarg.h>
11677#include <string.h>
11678#include <float.h>
247f5006 11679
e6cc62c6
VS
11680int
11681main ()
11682{
90dd450c 11683
e6cc62c6
VS
11684 ;
11685 return 0;
11686}
11687_ACEOF
11688rm -f conftest.$ac_objext
11689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11690 (eval $ac_compile) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 ac_cv_header_stdc=yes
8284b0c5 11701else
e6cc62c6
VS
11702 echo "$as_me: failed program was:" >&5
11703sed 's/^/| /' conftest.$ac_ext >&5
11704
11705ac_cv_header_stdc=no
21d1c967 11706fi
e6cc62c6 11707rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 11708
e6cc62c6
VS
11709if test $ac_cv_header_stdc = yes; then
11710 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11711 cat >conftest.$ac_ext <<_ACEOF
11712#line $LINENO "configure"
11713/* confdefs.h. */
11714_ACEOF
11715cat confdefs.h >>conftest.$ac_ext
11716cat >>conftest.$ac_ext <<_ACEOF
11717/* end confdefs.h. */
11718#include <string.h>
11719
11720_ACEOF
11721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11722 $EGREP "memchr" >/dev/null 2>&1; then
11723 :
11724else
11725 ac_cv_header_stdc=no
3a922bb4 11726fi
a0b9e27f 11727rm -f conftest*
e6cc62c6 11728
90dd450c 11729fi
e6cc62c6
VS
11730
11731if test $ac_cv_header_stdc = yes; then
11732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11733 cat >conftest.$ac_ext <<_ACEOF
11734#line $LINENO "configure"
11735/* confdefs.h. */
11736_ACEOF
11737cat confdefs.h >>conftest.$ac_ext
11738cat >>conftest.$ac_ext <<_ACEOF
11739/* end confdefs.h. */
11740#include <stdlib.h>
11741
11742_ACEOF
11743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11744 $EGREP "free" >/dev/null 2>&1; then
11745 :
a0b9e27f 11746else
e6cc62c6 11747 ac_cv_header_stdc=no
21d1c967 11748fi
e6cc62c6 11749rm -f conftest*
247f5006
VZ
11750
11751fi
e6cc62c6
VS
11752
11753if test $ac_cv_header_stdc = yes; then
11754 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11755 if test "$cross_compiling" = yes; then
11756 :
11757else
11758 cat >conftest.$ac_ext <<_ACEOF
11759#line $LINENO "configure"
11760/* confdefs.h. */
11761_ACEOF
11762cat confdefs.h >>conftest.$ac_ext
11763cat >>conftest.$ac_ext <<_ACEOF
11764/* end confdefs.h. */
11765#include <ctype.h>
11766#if ((' ' & 0x0FF) == 0x020)
11767# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11768# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11769#else
11770# define ISLOWER(c) \
11771 (('a' <= (c) && (c) <= 'i') \
11772 || ('j' <= (c) && (c) <= 'r') \
11773 || ('s' <= (c) && (c) <= 'z'))
11774# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11775#endif
11776
11777#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11778int
11779main ()
11780{
11781 int i;
11782 for (i = 0; i < 256; i++)
11783 if (XOR (islower (i), ISLOWER (i))
11784 || toupper (i) != TOUPPER (i))
11785 exit(2);
11786 exit (0);
11787}
11788_ACEOF
11789rm -f conftest$ac_exeext
11790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11791 (eval $ac_link) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); } && { ac_try='./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 :
a0b9e27f 11801else
e6cc62c6
VS
11802 echo "$as_me: program exited with status $ac_status" >&5
11803echo "$as_me: failed program was:" >&5
11804sed 's/^/| /' conftest.$ac_ext >&5
11805
11806( exit $ac_status )
11807ac_cv_header_stdc=no
11808fi
11809rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11810fi
11811fi
11812fi
11813echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11814echo "${ECHO_T}$ac_cv_header_stdc" >&6
11815if test $ac_cv_header_stdc = yes; then
11816
11817cat >>confdefs.h <<\_ACEOF
11818#define STDC_HEADERS 1
11819_ACEOF
11820
a0b9e27f 11821fi
e6cc62c6
VS
11822
11823# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11834 inttypes.h stdint.h unistd.h
11835do
11836as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11837echo "$as_me:$LINENO: checking for $ac_header" >&5
11838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11839if eval "test \"\${$as_ac_Header+set}\" = set"; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11841else
11842 cat >conftest.$ac_ext <<_ACEOF
11843#line $LINENO "configure"
11844/* confdefs.h. */
11845_ACEOF
11846cat confdefs.h >>conftest.$ac_ext
11847cat >>conftest.$ac_ext <<_ACEOF
11848/* end confdefs.h. */
11849$ac_includes_default
11850
11851#include <$ac_header>
11852_ACEOF
11853rm -f conftest.$ac_objext
11854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11855 (eval $ac_compile) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } &&
11859 { ac_try='test -s conftest.$ac_objext'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 eval "$as_ac_Header=yes"
11866else
11867 echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
11869
11870eval "$as_ac_Header=no"
11871fi
11872rm -f conftest.$ac_objext conftest.$ac_ext
11873fi
11874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11876if test `eval echo '${'$as_ac_Header'}'` = yes; then
11877 cat >>confdefs.h <<_ACEOF
11878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11879_ACEOF
11880
11881fi
11882
a0b9e27f 11883done
90dd450c 11884
e6cc62c6
VS
11885
11886
11887for ac_header in strings.h
21d1c967 11888do
e6cc62c6
VS
11889as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11890if eval "test \"\${$as_ac_Header+set}\" = set"; then
11891 echo "$as_me:$LINENO: checking for $ac_header" >&5
11892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11893if eval "test \"\${$as_ac_Header+set}\" = set"; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11895fi
11896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11897echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11898else
11899 # Is the header compilable?
11900echo "$as_me:$LINENO: checking $ac_header usability" >&5
11901echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11902cat >conftest.$ac_ext <<_ACEOF
11903#line $LINENO "configure"
11904/* confdefs.h. */
11905_ACEOF
11906cat confdefs.h >>conftest.$ac_ext
11907cat >>conftest.$ac_ext <<_ACEOF
11908/* end confdefs.h. */
11909$ac_includes_default
11910#include <$ac_header>
11911_ACEOF
11912rm -f conftest.$ac_objext
11913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11914 (eval $ac_compile) 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -s conftest.$ac_objext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 ac_header_compiler=yes
11925else
11926 echo "$as_me: failed program was:" >&5
11927sed 's/^/| /' conftest.$ac_ext >&5
11928
11929ac_header_compiler=no
11930fi
11931rm -f conftest.$ac_objext conftest.$ac_ext
11932echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11933echo "${ECHO_T}$ac_header_compiler" >&6
11934
11935# Is the header present?
11936echo "$as_me:$LINENO: checking $ac_header presence" >&5
11937echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11938cat >conftest.$ac_ext <<_ACEOF
11939#line $LINENO "configure"
11940/* confdefs.h. */
11941_ACEOF
11942cat confdefs.h >>conftest.$ac_ext
11943cat >>conftest.$ac_ext <<_ACEOF
11944/* end confdefs.h. */
11945#include <$ac_header>
11946_ACEOF
11947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11949 ac_status=$?
11950 grep -v '^ *+' conftest.er1 >conftest.err
11951 rm -f conftest.er1
11952 cat conftest.err >&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } >/dev/null; then
11955 if test -s conftest.err; then
11956 ac_cpp_err=$ac_c_preproc_warn_flag
11957 else
11958 ac_cpp_err=
11959 fi
11960else
11961 ac_cpp_err=yes
11962fi
11963if test -z "$ac_cpp_err"; then
11964 ac_header_preproc=yes
11965else
11966 echo "$as_me: failed program was:" >&5
11967sed 's/^/| /' conftest.$ac_ext >&5
11968
11969 ac_header_preproc=no
11970fi
11971rm -f conftest.err conftest.$ac_ext
11972echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11973echo "${ECHO_T}$ac_header_preproc" >&6
11974
11975# So? What about this header?
11976case $ac_header_compiler:$ac_header_preproc in
11977 yes:no )
11978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11979echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11982 (
11983 cat <<\_ASBOX
11984## ------------------------------------ ##
11985## Report this to bug-autoconf@gnu.org. ##
11986## ------------------------------------ ##
11987_ASBOX
11988 ) |
11989 sed "s/^/$as_me: WARNING: /" >&2
11990 ;;
11991 no:yes )
11992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11993echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11995echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11997echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11998 (
11999 cat <<\_ASBOX
12000## ------------------------------------ ##
12001## Report this to bug-autoconf@gnu.org. ##
12002## ------------------------------------ ##
12003_ASBOX
12004 ) |
12005 sed "s/^/$as_me: WARNING: /" >&2
12006 ;;
12007esac
12008echo "$as_me:$LINENO: checking for $ac_header" >&5
12009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12010if eval "test \"\${$as_ac_Header+set}\" = set"; then
12011 echo $ECHO_N "(cached) $ECHO_C" >&6
12012else
12013 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12014fi
e6cc62c6
VS
12015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12017
a0b9e27f 12018fi
e6cc62c6
VS
12019if test `eval echo '${'$as_ac_Header'}'` = yes; then
12020 cat >>confdefs.h <<_ACEOF
12021#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12022_ACEOF
12023
12024fi
12025
12026done
12027
e6cc62c6
VS
12028
12029
12030for ac_header in stdlib.h
12031do
12032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12033if eval "test \"\${$as_ac_Header+set}\" = set"; then
12034 echo "$as_me:$LINENO: checking for $ac_header" >&5
12035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12036if eval "test \"\${$as_ac_Header+set}\" = set"; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038fi
12039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12041else
12042 # Is the header compilable?
12043echo "$as_me:$LINENO: checking $ac_header usability" >&5
12044echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12045cat >conftest.$ac_ext <<_ACEOF
12046#line $LINENO "configure"
12047/* confdefs.h. */
12048_ACEOF
12049cat confdefs.h >>conftest.$ac_ext
12050cat >>conftest.$ac_ext <<_ACEOF
12051/* end confdefs.h. */
12052$ac_includes_default
12053#include <$ac_header>
12054_ACEOF
12055rm -f conftest.$ac_objext
12056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12057 (eval $ac_compile) 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } &&
12061 { ac_try='test -s conftest.$ac_objext'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12067 ac_header_compiler=yes
12068else
12069 echo "$as_me: failed program was:" >&5
12070sed 's/^/| /' conftest.$ac_ext >&5
12071
12072ac_header_compiler=no
12073fi
12074rm -f conftest.$ac_objext conftest.$ac_ext
12075echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12076echo "${ECHO_T}$ac_header_compiler" >&6
12077
12078# Is the header present?
12079echo "$as_me:$LINENO: checking $ac_header presence" >&5
12080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12081cat >conftest.$ac_ext <<_ACEOF
12082#line $LINENO "configure"
12083/* confdefs.h. */
12084_ACEOF
12085cat confdefs.h >>conftest.$ac_ext
12086cat >>conftest.$ac_ext <<_ACEOF
12087/* end confdefs.h. */
12088#include <$ac_header>
12089_ACEOF
12090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12092 ac_status=$?
12093 grep -v '^ *+' conftest.er1 >conftest.err
12094 rm -f conftest.er1
12095 cat conftest.err >&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } >/dev/null; then
12098 if test -s conftest.err; then
12099 ac_cpp_err=$ac_c_preproc_warn_flag
12100 else
12101 ac_cpp_err=
12102 fi
12103else
12104 ac_cpp_err=yes
12105fi
12106if test -z "$ac_cpp_err"; then
12107 ac_header_preproc=yes
12108else
12109 echo "$as_me: failed program was:" >&5
12110sed 's/^/| /' conftest.$ac_ext >&5
12111
12112 ac_header_preproc=no
12113fi
12114rm -f conftest.err conftest.$ac_ext
12115echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12116echo "${ECHO_T}$ac_header_preproc" >&6
12117
12118# So? What about this header?
12119case $ac_header_compiler:$ac_header_preproc in
12120 yes:no )
12121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12122echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12125 (
12126 cat <<\_ASBOX
12127## ------------------------------------ ##
12128## Report this to bug-autoconf@gnu.org. ##
12129## ------------------------------------ ##
12130_ASBOX
12131 ) |
12132 sed "s/^/$as_me: WARNING: /" >&2
12133 ;;
12134 no:yes )
12135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12136echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12138echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12140echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12141 (
12142 cat <<\_ASBOX
12143## ------------------------------------ ##
12144## Report this to bug-autoconf@gnu.org. ##
12145## ------------------------------------ ##
12146_ASBOX
12147 ) |
12148 sed "s/^/$as_me: WARNING: /" >&2
12149 ;;
12150esac
12151echo "$as_me:$LINENO: checking for $ac_header" >&5
12152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12153if eval "test \"\${$as_ac_Header+set}\" = set"; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12155else
e6cc62c6
VS
12156 eval "$as_ac_Header=$ac_header_preproc"
12157fi
12158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12159echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12160
21d1c967 12161fi
e6cc62c6
VS
12162if test `eval echo '${'$as_ac_Header'}'` = yes; then
12163 cat >>confdefs.h <<_ACEOF
12164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12165_ACEOF
12166
12167fi
12168
21d1c967 12169done
4f14bcd8 12170
5c6fa7d2 12171
e6cc62c6 12172for ac_header in malloc.h
21d1c967 12173do
e6cc62c6
VS
12174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12175if eval "test \"\${$as_ac_Header+set}\" = set"; then
12176 echo "$as_me:$LINENO: checking for $ac_header" >&5
12177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12178if eval "test \"\${$as_ac_Header+set}\" = set"; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180fi
12181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12183else
12184 # Is the header compilable?
12185echo "$as_me:$LINENO: checking $ac_header usability" >&5
12186echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12187cat >conftest.$ac_ext <<_ACEOF
12188#line $LINENO "configure"
12189/* confdefs.h. */
12190_ACEOF
12191cat confdefs.h >>conftest.$ac_ext
12192cat >>conftest.$ac_ext <<_ACEOF
12193/* end confdefs.h. */
12194$ac_includes_default
12195#include <$ac_header>
12196_ACEOF
12197rm -f conftest.$ac_objext
12198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12199 (eval $ac_compile) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -s conftest.$ac_objext'
12204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
12209 ac_header_compiler=yes
12210else
12211 echo "$as_me: failed program was:" >&5
12212sed 's/^/| /' conftest.$ac_ext >&5
12213
12214ac_header_compiler=no
12215fi
12216rm -f conftest.$ac_objext conftest.$ac_ext
12217echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12218echo "${ECHO_T}$ac_header_compiler" >&6
12219
12220# Is the header present?
12221echo "$as_me:$LINENO: checking $ac_header presence" >&5
12222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12223cat >conftest.$ac_ext <<_ACEOF
12224#line $LINENO "configure"
12225/* confdefs.h. */
12226_ACEOF
12227cat confdefs.h >>conftest.$ac_ext
12228cat >>conftest.$ac_ext <<_ACEOF
12229/* end confdefs.h. */
12230#include <$ac_header>
12231_ACEOF
12232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12234 ac_status=$?
12235 grep -v '^ *+' conftest.er1 >conftest.err
12236 rm -f conftest.er1
12237 cat conftest.err >&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } >/dev/null; then
12240 if test -s conftest.err; then
12241 ac_cpp_err=$ac_c_preproc_warn_flag
12242 else
12243 ac_cpp_err=
12244 fi
12245else
12246 ac_cpp_err=yes
12247fi
12248if test -z "$ac_cpp_err"; then
12249 ac_header_preproc=yes
12250else
12251 echo "$as_me: failed program was:" >&5
12252sed 's/^/| /' conftest.$ac_ext >&5
12253
12254 ac_header_preproc=no
12255fi
12256rm -f conftest.err conftest.$ac_ext
12257echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12258echo "${ECHO_T}$ac_header_preproc" >&6
12259
12260# So? What about this header?
12261case $ac_header_compiler:$ac_header_preproc in
12262 yes:no )
12263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12264echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12267 (
12268 cat <<\_ASBOX
12269## ------------------------------------ ##
12270## Report this to bug-autoconf@gnu.org. ##
12271## ------------------------------------ ##
12272_ASBOX
12273 ) |
12274 sed "s/^/$as_me: WARNING: /" >&2
12275 ;;
12276 no:yes )
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12278echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12280echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12283 (
12284 cat <<\_ASBOX
12285## ------------------------------------ ##
12286## Report this to bug-autoconf@gnu.org. ##
12287## ------------------------------------ ##
12288_ASBOX
12289 ) |
12290 sed "s/^/$as_me: WARNING: /" >&2
12291 ;;
12292esac
12293echo "$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
12297else
12298 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12299fi
e6cc62c6
VS
12300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12302
21d1c967 12303fi
e6cc62c6
VS
12304if test `eval echo '${'$as_ac_Header'}'` = yes; then
12305 cat >>confdefs.h <<_ACEOF
12306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12307_ACEOF
12308
12309fi
12310
12311done
12312
12313
12314for ac_header in unistd.h
12315do
12316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12317if eval "test \"\${$as_ac_Header+set}\" = set"; then
12318 echo "$as_me:$LINENO: checking for $ac_header" >&5
12319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12320if eval "test \"\${$as_ac_Header+set}\" = set"; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322fi
12323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12325else
12326 # Is the header compilable?
12327echo "$as_me:$LINENO: checking $ac_header usability" >&5
12328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12329cat >conftest.$ac_ext <<_ACEOF
12330#line $LINENO "configure"
12331/* confdefs.h. */
12332_ACEOF
12333cat confdefs.h >>conftest.$ac_ext
12334cat >>conftest.$ac_ext <<_ACEOF
12335/* end confdefs.h. */
12336$ac_includes_default
12337#include <$ac_header>
12338_ACEOF
12339rm -f conftest.$ac_objext
12340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12341 (eval $ac_compile) 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try='test -s conftest.$ac_objext'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12348 ac_status=$?
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; }; then
12351 ac_header_compiler=yes
12352else
12353 echo "$as_me: failed program was:" >&5
12354sed 's/^/| /' conftest.$ac_ext >&5
12355
12356ac_header_compiler=no
12357fi
12358rm -f conftest.$ac_objext conftest.$ac_ext
12359echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12360echo "${ECHO_T}$ac_header_compiler" >&6
12361
12362# Is the header present?
12363echo "$as_me:$LINENO: checking $ac_header presence" >&5
12364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12365cat >conftest.$ac_ext <<_ACEOF
12366#line $LINENO "configure"
12367/* confdefs.h. */
12368_ACEOF
12369cat confdefs.h >>conftest.$ac_ext
12370cat >>conftest.$ac_ext <<_ACEOF
12371/* end confdefs.h. */
12372#include <$ac_header>
12373_ACEOF
12374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12376 ac_status=$?
12377 grep -v '^ *+' conftest.er1 >conftest.err
12378 rm -f conftest.er1
12379 cat conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); } >/dev/null; then
12382 if test -s conftest.err; then
12383 ac_cpp_err=$ac_c_preproc_warn_flag
12384 else
12385 ac_cpp_err=
12386 fi
a0b9e27f 12387else
e6cc62c6
VS
12388 ac_cpp_err=yes
12389fi
12390if test -z "$ac_cpp_err"; then
12391 ac_header_preproc=yes
12392else
12393 echo "$as_me: failed program was:" >&5
12394sed 's/^/| /' conftest.$ac_ext >&5
12395
12396 ac_header_preproc=no
12397fi
12398rm -f conftest.err conftest.$ac_ext
12399echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12400echo "${ECHO_T}$ac_header_preproc" >&6
12401
12402# So? What about this header?
12403case $ac_header_compiler:$ac_header_preproc in
12404 yes:no )
12405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12408echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12409 (
12410 cat <<\_ASBOX
12411## ------------------------------------ ##
12412## Report this to bug-autoconf@gnu.org. ##
12413## ------------------------------------ ##
12414_ASBOX
12415 ) |
12416 sed "s/^/$as_me: WARNING: /" >&2
12417 ;;
12418 no:yes )
12419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12420echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12422echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12424echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12425 (
12426 cat <<\_ASBOX
12427## ------------------------------------ ##
12428## Report this to bug-autoconf@gnu.org. ##
12429## ------------------------------------ ##
12430_ASBOX
12431 ) |
12432 sed "s/^/$as_me: WARNING: /" >&2
12433 ;;
12434esac
12435echo "$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
12439else
12440 eval "$as_ac_Header=$ac_header_preproc"
12441fi
12442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12444
12445fi
12446if test `eval echo '${'$as_ac_Header'}'` = yes; then
12447 cat >>confdefs.h <<_ACEOF
12448#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12449_ACEOF
12450
d4158b5d 12451fi
e6cc62c6 12452
21d1c967 12453done
f6bcfd97 12454
e6cc62c6
VS
12455
12456for ac_header in wchar.h
12457do
12458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12459if eval "test \"\${$as_ac_Header+set}\" = set"; then
12460 echo "$as_me:$LINENO: checking for $ac_header" >&5
12461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12462if eval "test \"\${$as_ac_Header+set}\" = set"; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12464fi
12465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12467else
12468 # Is the header compilable?
12469echo "$as_me:$LINENO: checking $ac_header usability" >&5
12470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12471cat >conftest.$ac_ext <<_ACEOF
12472#line $LINENO "configure"
12473/* confdefs.h. */
12474_ACEOF
12475cat confdefs.h >>conftest.$ac_ext
12476cat >>conftest.$ac_ext <<_ACEOF
12477/* end confdefs.h. */
12478$ac_includes_default
12479#include <$ac_header>
12480_ACEOF
12481rm -f conftest.$ac_objext
12482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483 (eval $ac_compile) 2>&5
12484 ac_status=$?
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } &&
12487 { ac_try='test -s conftest.$ac_objext'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12493 ac_header_compiler=yes
12494else
12495 echo "$as_me: failed program was:" >&5
12496sed 's/^/| /' conftest.$ac_ext >&5
12497
12498ac_header_compiler=no
12499fi
12500rm -f conftest.$ac_objext conftest.$ac_ext
12501echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12502echo "${ECHO_T}$ac_header_compiler" >&6
12503
12504# Is the header present?
12505echo "$as_me:$LINENO: checking $ac_header presence" >&5
12506echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12507cat >conftest.$ac_ext <<_ACEOF
12508#line $LINENO "configure"
12509/* confdefs.h. */
12510_ACEOF
12511cat confdefs.h >>conftest.$ac_ext
12512cat >>conftest.$ac_ext <<_ACEOF
12513/* end confdefs.h. */
12514#include <$ac_header>
12515_ACEOF
12516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12518 ac_status=$?
12519 grep -v '^ *+' conftest.er1 >conftest.err
12520 rm -f conftest.er1
12521 cat conftest.err >&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } >/dev/null; then
12524 if test -s conftest.err; then
12525 ac_cpp_err=$ac_c_preproc_warn_flag
12526 else
12527 ac_cpp_err=
12528 fi
12529else
12530 ac_cpp_err=yes
12531fi
12532if test -z "$ac_cpp_err"; then
12533 ac_header_preproc=yes
12534else
12535 echo "$as_me: failed program was:" >&5
12536sed 's/^/| /' conftest.$ac_ext >&5
12537
12538 ac_header_preproc=no
12539fi
12540rm -f conftest.err conftest.$ac_ext
12541echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12542echo "${ECHO_T}$ac_header_preproc" >&6
12543
12544# So? What about this header?
12545case $ac_header_compiler:$ac_header_preproc in
12546 yes:no )
12547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12548echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12550echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12551 (
12552 cat <<\_ASBOX
12553## ------------------------------------ ##
12554## Report this to bug-autoconf@gnu.org. ##
12555## ------------------------------------ ##
12556_ASBOX
12557 ) |
12558 sed "s/^/$as_me: WARNING: /" >&2
12559 ;;
12560 no:yes )
12561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12564echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12566echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12567 (
12568 cat <<\_ASBOX
12569## ------------------------------------ ##
12570## Report this to bug-autoconf@gnu.org. ##
12571## ------------------------------------ ##
12572_ASBOX
12573 ) |
12574 sed "s/^/$as_me: WARNING: /" >&2
12575 ;;
12576esac
12577echo "$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
12581else
12582 eval "$as_ac_Header=$ac_header_preproc"
12583fi
12584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12586
90dd450c 12587fi
e6cc62c6
VS
12588if test `eval echo '${'$as_ac_Header'}'` = yes; then
12589 cat >>confdefs.h <<_ACEOF
12590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12591_ACEOF
12592
12593fi
12594
12595done
90dd450c 12596
e6cc62c6
VS
12597
12598if test "$ac_cv_header_wchar_h" != "yes"; then
12599
12600for ac_header in wcstr.h
21d1c967 12601do
e6cc62c6
VS
12602as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12603if eval "test \"\${$as_ac_Header+set}\" = set"; then
12604 echo "$as_me:$LINENO: checking for $ac_header" >&5
12605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12606if eval "test \"\${$as_ac_Header+set}\" = set"; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12608fi
12609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12610echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12611else
12612 # Is the header compilable?
12613echo "$as_me:$LINENO: checking $ac_header usability" >&5
12614echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12615cat >conftest.$ac_ext <<_ACEOF
12616#line $LINENO "configure"
12617/* confdefs.h. */
12618_ACEOF
12619cat confdefs.h >>conftest.$ac_ext
12620cat >>conftest.$ac_ext <<_ACEOF
12621/* end confdefs.h. */
12622$ac_includes_default
12623#include <$ac_header>
12624_ACEOF
12625rm -f conftest.$ac_objext
12626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12627 (eval $ac_compile) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try='test -s conftest.$ac_objext'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 ac_header_compiler=yes
12638else
12639 echo "$as_me: failed program was:" >&5
12640sed 's/^/| /' conftest.$ac_ext >&5
12641
12642ac_header_compiler=no
12643fi
12644rm -f conftest.$ac_objext conftest.$ac_ext
12645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12646echo "${ECHO_T}$ac_header_compiler" >&6
12647
12648# Is the header present?
12649echo "$as_me:$LINENO: checking $ac_header presence" >&5
12650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12651cat >conftest.$ac_ext <<_ACEOF
12652#line $LINENO "configure"
12653/* confdefs.h. */
12654_ACEOF
12655cat confdefs.h >>conftest.$ac_ext
12656cat >>conftest.$ac_ext <<_ACEOF
12657/* end confdefs.h. */
12658#include <$ac_header>
12659_ACEOF
12660if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12662 ac_status=$?
12663 grep -v '^ *+' conftest.er1 >conftest.err
12664 rm -f conftest.er1
12665 cat conftest.err >&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } >/dev/null; then
12668 if test -s conftest.err; then
12669 ac_cpp_err=$ac_c_preproc_warn_flag
12670 else
12671 ac_cpp_err=
12672 fi
12673else
12674 ac_cpp_err=yes
12675fi
12676if test -z "$ac_cpp_err"; then
12677 ac_header_preproc=yes
12678else
12679 echo "$as_me: failed program was:" >&5
12680sed 's/^/| /' conftest.$ac_ext >&5
12681
12682 ac_header_preproc=no
12683fi
12684rm -f conftest.err conftest.$ac_ext
12685echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12686echo "${ECHO_T}$ac_header_preproc" >&6
12687
12688# So? What about this header?
12689case $ac_header_compiler:$ac_header_preproc in
12690 yes:no )
12691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12692echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12694echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12695 (
12696 cat <<\_ASBOX
12697## ------------------------------------ ##
12698## Report this to bug-autoconf@gnu.org. ##
12699## ------------------------------------ ##
12700_ASBOX
12701 ) |
12702 sed "s/^/$as_me: WARNING: /" >&2
12703 ;;
12704 no:yes )
12705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12706echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12708echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12710echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12711 (
12712 cat <<\_ASBOX
12713## ------------------------------------ ##
12714## Report this to bug-autoconf@gnu.org. ##
12715## ------------------------------------ ##
12716_ASBOX
12717 ) |
12718 sed "s/^/$as_me: WARNING: /" >&2
12719 ;;
12720esac
12721echo "$as_me:$LINENO: checking for $ac_header" >&5
12722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12723if eval "test \"\${$as_ac_Header+set}\" = set"; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12725else
12726 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 12727fi
e6cc62c6
VS
12728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12730
4f14bcd8 12731fi
e6cc62c6
VS
12732if test `eval echo '${'$as_ac_Header'}'` = yes; then
12733 cat >>confdefs.h <<_ACEOF
12734#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12735_ACEOF
12736
12737fi
12738
12739done
12740
12741fi
12742
12743
12744for ac_header in fnmatch.h
12745do
12746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12747if eval "test \"\${$as_ac_Header+set}\" = set"; then
12748 echo "$as_me:$LINENO: checking for $ac_header" >&5
12749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12750if eval "test \"\${$as_ac_Header+set}\" = set"; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752fi
12753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12755else
12756 # Is the header compilable?
12757echo "$as_me:$LINENO: checking $ac_header usability" >&5
12758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12759cat >conftest.$ac_ext <<_ACEOF
12760#line $LINENO "configure"
12761/* confdefs.h. */
12762_ACEOF
12763cat confdefs.h >>conftest.$ac_ext
12764cat >>conftest.$ac_ext <<_ACEOF
12765/* end confdefs.h. */
12766$ac_includes_default
12767#include <$ac_header>
12768_ACEOF
12769rm -f conftest.$ac_objext
12770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12771 (eval $ac_compile) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -s conftest.$ac_objext'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; }; then
12781 ac_header_compiler=yes
12782else
12783 echo "$as_me: failed program was:" >&5
12784sed 's/^/| /' conftest.$ac_ext >&5
12785
12786ac_header_compiler=no
12787fi
12788rm -f conftest.$ac_objext conftest.$ac_ext
12789echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12790echo "${ECHO_T}$ac_header_compiler" >&6
12791
12792# Is the header present?
12793echo "$as_me:$LINENO: checking $ac_header presence" >&5
12794echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12795cat >conftest.$ac_ext <<_ACEOF
12796#line $LINENO "configure"
12797/* confdefs.h. */
12798_ACEOF
12799cat confdefs.h >>conftest.$ac_ext
12800cat >>conftest.$ac_ext <<_ACEOF
12801/* end confdefs.h. */
12802#include <$ac_header>
12803_ACEOF
12804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12806 ac_status=$?
12807 grep -v '^ *+' conftest.er1 >conftest.err
12808 rm -f conftest.er1
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } >/dev/null; then
12812 if test -s conftest.err; then
12813 ac_cpp_err=$ac_c_preproc_warn_flag
12814 else
12815 ac_cpp_err=
12816 fi
12817else
12818 ac_cpp_err=yes
12819fi
12820if test -z "$ac_cpp_err"; then
12821 ac_header_preproc=yes
12822else
12823 echo "$as_me: failed program was:" >&5
12824sed 's/^/| /' conftest.$ac_ext >&5
12825
12826 ac_header_preproc=no
12827fi
12828rm -f conftest.err conftest.$ac_ext
12829echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12830echo "${ECHO_T}$ac_header_preproc" >&6
12831
12832# So? What about this header?
12833case $ac_header_compiler:$ac_header_preproc in
12834 yes:no )
12835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12836echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12838echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12839 (
12840 cat <<\_ASBOX
12841## ------------------------------------ ##
12842## Report this to bug-autoconf@gnu.org. ##
12843## ------------------------------------ ##
12844_ASBOX
12845 ) |
12846 sed "s/^/$as_me: WARNING: /" >&2
12847 ;;
12848 no:yes )
12849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12850echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12852echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12854echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12855 (
12856 cat <<\_ASBOX
12857## ------------------------------------ ##
12858## Report this to bug-autoconf@gnu.org. ##
12859## ------------------------------------ ##
12860_ASBOX
12861 ) |
12862 sed "s/^/$as_me: WARNING: /" >&2
12863 ;;
12864esac
12865echo "$as_me:$LINENO: checking for $ac_header" >&5
12866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12867if eval "test \"\${$as_ac_Header+set}\" = set"; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12869else
e6cc62c6
VS
12870 eval "$as_ac_Header=$ac_header_preproc"
12871fi
12872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12874
21d1c967 12875fi
e6cc62c6
VS
12876if test `eval echo '${'$as_ac_Header'}'` = yes; then
12877 cat >>confdefs.h <<_ACEOF
12878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12879_ACEOF
12880
12881fi
12882
21d1c967 12883done
90dd450c 12884
5c6fa7d2 12885
a0b9e27f 12886if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
12887
12888for ac_func in fnmatch
21d1c967 12889do
e6cc62c6
VS
12890as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12891echo "$as_me:$LINENO: checking for $ac_func" >&5
12892echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12893if eval "test \"\${$as_ac_var+set}\" = set"; then
12894 echo $ECHO_N "(cached) $ECHO_C" >&6
12895else
12896 cat >conftest.$ac_ext <<_ACEOF
12897#line $LINENO "configure"
12898/* confdefs.h. */
12899_ACEOF
12900cat confdefs.h >>conftest.$ac_ext
12901cat >>conftest.$ac_ext <<_ACEOF
12902/* end confdefs.h. */
a0b9e27f 12903/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
12904 which can conflict with char $ac_func (); below.
12905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12906 <limits.h> exists even on freestanding compilers. */
12907#ifdef __STDC__
12908# include <limits.h>
12909#else
12910# include <assert.h>
12911#endif
a0b9e27f 12912/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
12913#ifdef __cplusplus
12914extern "C"
12915{
12916#endif
a0b9e27f 12917/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
12918 builtin and then its argument prototype would still apply. */
12919char $ac_func ();
a0b9e27f
MB
12920/* The GNU C library defines this for functions which it implements
12921 to always fail with ENOSYS. Some functions are actually named
12922 something starting with __ and the normal name is an alias. */
12923#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12924choke me
12925#else
e6cc62c6
VS
12926char (*f) () = $ac_func;
12927#endif
12928#ifdef __cplusplus
12929}
a0b9e27f
MB
12930#endif
12931
e6cc62c6
VS
12932int
12933main ()
12934{
12935return f != $ac_func;
12936 ;
12937 return 0;
12938}
12939_ACEOF
12940rm -f conftest.$ac_objext conftest$ac_exeext
12941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12942 (eval $ac_link) 2>&5
12943 ac_status=$?
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } &&
12946 { ac_try='test -s conftest$ac_exeext'
12947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12948 (eval $ac_try) 2>&5
12949 ac_status=$?
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; }; then
12952 eval "$as_ac_var=yes"
12953else
12954 echo "$as_me: failed program was:" >&5
12955sed 's/^/| /' conftest.$ac_ext >&5
12956
12957eval "$as_ac_var=no"
12958fi
12959rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12960fi
12961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12962echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12963if test `eval echo '${'$as_ac_var'}'` = yes; then
12964 cat >>confdefs.h <<_ACEOF
12965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12966_ACEOF
32832908 12967
21d1c967
GD
12968fi
12969done
90dd450c 12970
a0b9e27f 12971fi
90dd450c 12972
e6cc62c6
VS
12973
12974for ac_header in langinfo.h
21d1c967 12975do
e6cc62c6
VS
12976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12977if eval "test \"\${$as_ac_Header+set}\" = set"; then
12978 echo "$as_me:$LINENO: checking for $ac_header" >&5
12979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12980if eval "test \"\${$as_ac_Header+set}\" = set"; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12982fi
12983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12985else
12986 # Is the header compilable?
12987echo "$as_me:$LINENO: checking $ac_header usability" >&5
12988echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12989cat >conftest.$ac_ext <<_ACEOF
12990#line $LINENO "configure"
12991/* confdefs.h. */
12992_ACEOF
12993cat confdefs.h >>conftest.$ac_ext
12994cat >>conftest.$ac_ext <<_ACEOF
12995/* end confdefs.h. */
12996$ac_includes_default
12997#include <$ac_header>
12998_ACEOF
12999rm -f conftest.$ac_objext
13000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13001 (eval $ac_compile) 2>&5
13002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
13005 { ac_try='test -s conftest.$ac_objext'
13006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007 (eval $ac_try) 2>&5
13008 ac_status=$?
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; }; then
13011 ac_header_compiler=yes
13012else
13013 echo "$as_me: failed program was:" >&5
13014sed 's/^/| /' conftest.$ac_ext >&5
13015
13016ac_header_compiler=no
13017fi
13018rm -f conftest.$ac_objext conftest.$ac_ext
13019echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13020echo "${ECHO_T}$ac_header_compiler" >&6
13021
13022# Is the header present?
13023echo "$as_me:$LINENO: checking $ac_header presence" >&5
13024echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13025cat >conftest.$ac_ext <<_ACEOF
13026#line $LINENO "configure"
13027/* confdefs.h. */
13028_ACEOF
13029cat confdefs.h >>conftest.$ac_ext
13030cat >>conftest.$ac_ext <<_ACEOF
13031/* end confdefs.h. */
13032#include <$ac_header>
13033_ACEOF
13034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13036 ac_status=$?
13037 grep -v '^ *+' conftest.er1 >conftest.err
13038 rm -f conftest.er1
13039 cat conftest.err >&5
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } >/dev/null; then
13042 if test -s conftest.err; then
13043 ac_cpp_err=$ac_c_preproc_warn_flag
13044 else
13045 ac_cpp_err=
13046 fi
13047else
13048 ac_cpp_err=yes
13049fi
13050if test -z "$ac_cpp_err"; then
13051 ac_header_preproc=yes
13052else
13053 echo "$as_me: failed program was:" >&5
13054sed 's/^/| /' conftest.$ac_ext >&5
13055
13056 ac_header_preproc=no
13057fi
13058rm -f conftest.err conftest.$ac_ext
13059echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13060echo "${ECHO_T}$ac_header_preproc" >&6
13061
13062# So? What about this header?
13063case $ac_header_compiler:$ac_header_preproc in
13064 yes:no )
13065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13066echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13068echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13069 (
13070 cat <<\_ASBOX
13071## ------------------------------------ ##
13072## Report this to bug-autoconf@gnu.org. ##
13073## ------------------------------------ ##
13074_ASBOX
13075 ) |
13076 sed "s/^/$as_me: WARNING: /" >&2
13077 ;;
13078 no:yes )
13079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13082echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13084echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13085 (
13086 cat <<\_ASBOX
13087## ------------------------------------ ##
13088## Report this to bug-autoconf@gnu.org. ##
13089## ------------------------------------ ##
13090_ASBOX
13091 ) |
13092 sed "s/^/$as_me: WARNING: /" >&2
13093 ;;
13094esac
13095echo "$as_me:$LINENO: checking for $ac_header" >&5
13096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13097if eval "test \"\${$as_ac_Header+set}\" = set"; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13099else
13100 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13101fi
e6cc62c6
VS
13102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13104
4f14bcd8 13105fi
e6cc62c6
VS
13106if test `eval echo '${'$as_ac_Header'}'` = yes; then
13107 cat >>confdefs.h <<_ACEOF
13108#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13109_ACEOF
13110
21d1c967 13111fi
e6cc62c6 13112
21d1c967 13113done
3a922bb4 13114
8284b0c5 13115
4f5a7f74
VZ
13116case "${host}" in
13117 *-pc-os2_emx | *-pc-os2-emx )
13118 if test $ac_cv_header_langinfo_h = "yes"; then
13119 LIBS="$LIBS -lintl"
13120 fi
13121 ;;
13122esac
1542ea39 13123
a0b9e27f
MB
13124if test "$wxUSE_GUI" = "yes"; then
13125 if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 13126
eb69fda5 13127for ac_header in X11/Xlib.h
21d1c967 13128do
e6cc62c6
VS
13129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13130if eval "test \"\${$as_ac_Header+set}\" = set"; then
13131 echo "$as_me:$LINENO: checking for $ac_header" >&5
13132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13133if eval "test \"\${$as_ac_Header+set}\" = set"; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13135fi
13136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13138else
13139 # Is the header compilable?
13140echo "$as_me:$LINENO: checking $ac_header usability" >&5
13141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13142cat >conftest.$ac_ext <<_ACEOF
13143#line $LINENO "configure"
13144/* confdefs.h. */
13145_ACEOF
13146cat confdefs.h >>conftest.$ac_ext
13147cat >>conftest.$ac_ext <<_ACEOF
13148/* end confdefs.h. */
13149$ac_includes_default
13150#include <$ac_header>
13151_ACEOF
13152rm -f conftest.$ac_objext
13153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13154 (eval $ac_compile) 2>&5
13155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try='test -s conftest.$ac_objext'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; }; then
13164 ac_header_compiler=yes
13165else
13166 echo "$as_me: failed program was:" >&5
13167sed 's/^/| /' conftest.$ac_ext >&5
13168
13169ac_header_compiler=no
13170fi
13171rm -f conftest.$ac_objext conftest.$ac_ext
13172echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13173echo "${ECHO_T}$ac_header_compiler" >&6
13174
13175# Is the header present?
13176echo "$as_me:$LINENO: checking $ac_header presence" >&5
13177echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13178cat >conftest.$ac_ext <<_ACEOF
13179#line $LINENO "configure"
13180/* confdefs.h. */
13181_ACEOF
13182cat confdefs.h >>conftest.$ac_ext
13183cat >>conftest.$ac_ext <<_ACEOF
13184/* end confdefs.h. */
13185#include <$ac_header>
13186_ACEOF
13187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } >/dev/null; then
13195 if test -s conftest.err; then
13196 ac_cpp_err=$ac_c_preproc_warn_flag
13197 else
13198 ac_cpp_err=
13199 fi
13200else
13201 ac_cpp_err=yes
13202fi
13203if test -z "$ac_cpp_err"; then
13204 ac_header_preproc=yes
13205else
13206 echo "$as_me: failed program was:" >&5
13207sed 's/^/| /' conftest.$ac_ext >&5
13208
13209 ac_header_preproc=no
13210fi
13211rm -f conftest.err conftest.$ac_ext
13212echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13213echo "${ECHO_T}$ac_header_preproc" >&6
13214
13215# So? What about this header?
13216case $ac_header_compiler:$ac_header_preproc in
13217 yes:no )
13218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13219echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13221echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13222 (
13223 cat <<\_ASBOX
13224## ------------------------------------ ##
13225## Report this to bug-autoconf@gnu.org. ##
13226## ------------------------------------ ##
13227_ASBOX
13228 ) |
13229 sed "s/^/$as_me: WARNING: /" >&2
13230 ;;
13231 no:yes )
13232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13235echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13238 (
13239 cat <<\_ASBOX
13240## ------------------------------------ ##
13241## Report this to bug-autoconf@gnu.org. ##
13242## ------------------------------------ ##
13243_ASBOX
13244 ) |
13245 sed "s/^/$as_me: WARNING: /" >&2
13246 ;;
13247esac
13248echo "$as_me:$LINENO: checking for $ac_header" >&5
13249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13250if eval "test \"\${$as_ac_Header+set}\" = set"; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13252else
13253 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13254fi
e6cc62c6
VS
13255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13256echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13257
90dd450c 13258fi
e6cc62c6
VS
13259if test `eval echo '${'$as_ac_Header'}'` = yes; then
13260 cat >>confdefs.h <<_ACEOF
13261#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13262_ACEOF
13263
247f5006 13264fi
e6cc62c6 13265
eb69fda5
VS
13266done
13267
13268
13269for ac_header in X11/XKBlib.h
13270do
13271as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13272echo "$as_me:$LINENO: checking for $ac_header" >&5
13273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13274if eval "test \"\${$as_ac_Header+set}\" = set"; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13276else
13277 cat >conftest.$ac_ext <<_ACEOF
13278#line $LINENO "configure"
13279/* confdefs.h. */
13280_ACEOF
13281cat confdefs.h >>conftest.$ac_ext
13282cat >>conftest.$ac_ext <<_ACEOF
13283/* end confdefs.h. */
13284
13285 #if HAVE_X11_XLIB_H
13286 #include <X11/Xlib.h>
13287 #endif
13288
13289
13290#include <$ac_header>
13291_ACEOF
13292rm -f conftest.$ac_objext
13293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13294 (eval $ac_compile) 2>&5
13295 ac_status=$?
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); } &&
13298 { ac_try='test -s conftest.$ac_objext'
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; }; then
13304 eval "$as_ac_Header=yes"
13305else
13306 echo "$as_me: failed program was:" >&5
13307sed 's/^/| /' conftest.$ac_ext >&5
13308
13309eval "$as_ac_Header=no"
13310fi
13311rm -f conftest.$ac_objext conftest.$ac_ext
13312fi
13313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13315if test `eval echo '${'$as_ac_Header'}'` = yes; then
13316 cat >>confdefs.h <<_ACEOF
13317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13318_ACEOF
13319
13320fi
13321
247f5006
VZ
13322done
13323
a0b9e27f
MB
13324 fi
13325fi
247f5006 13326
247f5006 13327
e6cc62c6
VS
13328echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13329echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13330if test "${ac_cv_c_const+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13332else
13333 cat >conftest.$ac_ext <<_ACEOF
13334#line $LINENO "configure"
13335/* confdefs.h. */
13336_ACEOF
13337cat confdefs.h >>conftest.$ac_ext
13338cat >>conftest.$ac_ext <<_ACEOF
13339/* end confdefs.h. */
13340
13341int
13342main ()
13343{
13344/* FIXME: Include the comments suggested by Paul. */
13345#ifndef __cplusplus
13346 /* Ultrix mips cc rejects this. */
13347 typedef int charset[2];
13348 const charset x;
13349 /* SunOS 4.1.1 cc rejects this. */
13350 char const *const *ccp;
13351 char **p;
13352 /* NEC SVR4.0.2 mips cc rejects this. */
13353 struct point {int x, y;};
13354 static struct point const zero = {0,0};
13355 /* AIX XL C 1.02.0.0 rejects this.
13356 It does not let you subtract one const X* pointer from another in
13357 an arm of an if-expression whose if-part is not a constant
13358 expression */
13359 const char *g = "string";
13360 ccp = &g + (g ? g-g : 0);
13361 /* HPUX 7.0 cc rejects these. */
13362 ++ccp;
13363 p = (char**) ccp;
13364 ccp = (char const *const *) p;
13365 { /* SCO 3.2v4 cc rejects this. */
13366 char *t;
13367 char const *s = 0 ? (char *) 0 : (char const *) 0;
13368
13369 *t++ = 0;
13370 }
13371 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13372 int x[] = {25, 17};
13373 const int *foo = &x[0];
13374 ++foo;
13375 }
13376 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13377 typedef const int *iptr;
13378 iptr p = 0;
13379 ++p;
13380 }
13381 { /* AIX XL C 1.02.0.0 rejects this saying
13382 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13383 struct s { int j; const int *ap[3]; };
13384 struct s *b; b->j = 5;
13385 }
13386 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13387 const int foo = 10;
13388 }
13389#endif
13390
13391 ;
13392 return 0;
13393}
13394_ACEOF
13395rm -f conftest.$ac_objext
13396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13397 (eval $ac_compile) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } &&
13401 { ac_try='test -s conftest.$ac_objext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
a0b9e27f 13407 ac_cv_c_const=yes
247f5006 13408else
e6cc62c6
VS
13409 echo "$as_me: failed program was:" >&5
13410sed 's/^/| /' conftest.$ac_ext >&5
13411
13412ac_cv_c_const=no
247f5006 13413fi
e6cc62c6 13414rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13415fi
e6cc62c6
VS
13416echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13417echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13418if test $ac_cv_c_const = no; then
e6cc62c6
VS
13419
13420cat >>confdefs.h <<\_ACEOF
13421#define const
13422_ACEOF
10f2d63a 13423
90dd450c 13424fi
81809c07 13425
e6cc62c6
VS
13426echo "$as_me:$LINENO: checking for inline" >&5
13427echo $ECHO_N "checking for inline... $ECHO_C" >&6
13428if test "${ac_cv_c_inline+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13430else
a0b9e27f
MB
13431 ac_cv_c_inline=no
13432for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13433 cat >conftest.$ac_ext <<_ACEOF
13434#line $LINENO "configure"
13435/* confdefs.h. */
13436_ACEOF
13437cat confdefs.h >>conftest.$ac_ext
13438cat >>conftest.$ac_ext <<_ACEOF
13439/* end confdefs.h. */
13440#ifndef __cplusplus
13441typedef int foo_t;
13442static $ac_kw foo_t static_foo () {return 0; }
13443$ac_kw foo_t foo () {return 0; }
13444#endif
a0b9e27f 13445
e6cc62c6
VS
13446_ACEOF
13447rm -f conftest.$ac_objext
13448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13449 (eval $ac_compile) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
13453 { ac_try='test -s conftest.$ac_objext'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }; then
a0b9e27f 13459 ac_cv_c_inline=$ac_kw; break
247f5006 13460else
e6cc62c6
VS
13461 echo "$as_me: failed program was:" >&5
13462sed 's/^/| /' conftest.$ac_ext >&5
13463
247f5006 13464fi
e6cc62c6 13465rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13466done
247f5006
VZ
13467
13468fi
e6cc62c6
VS
13469echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13470echo "${ECHO_T}$ac_cv_c_inline" >&6
13471case $ac_cv_c_inline in
a0b9e27f 13472 inline | yes) ;;
e6cc62c6
VS
13473 no)
13474cat >>confdefs.h <<\_ACEOF
13475#define inline
13476_ACEOF
a0b9e27f 13477 ;;
e6cc62c6 13478 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13479#define inline $ac_cv_c_inline
e6cc62c6 13480_ACEOF
a0b9e27f
MB
13481 ;;
13482esac
247f5006 13483
247f5006 13484
e6cc62c6
VS
13485echo "$as_me:$LINENO: checking for char" >&5
13486echo $ECHO_N "checking for char... $ECHO_C" >&6
13487if test "${ac_cv_type_char+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489else
13490 cat >conftest.$ac_ext <<_ACEOF
13491#line $LINENO "configure"
13492/* confdefs.h. */
13493_ACEOF
13494cat confdefs.h >>conftest.$ac_ext
13495cat >>conftest.$ac_ext <<_ACEOF
13496/* end confdefs.h. */
13497$ac_includes_default
13498int
13499main ()
13500{
13501if ((char *) 0)
13502 return 0;
13503if (sizeof (char))
13504 return 0;
13505 ;
13506 return 0;
13507}
13508_ACEOF
13509rm -f conftest.$ac_objext
13510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511 (eval $ac_compile) 2>&5
13512 ac_status=$?
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } &&
13515 { ac_try='test -s conftest.$ac_objext'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; }; then
13521 ac_cv_type_char=yes
13522else
13523 echo "$as_me: failed program was:" >&5
13524sed 's/^/| /' conftest.$ac_ext >&5
13525
13526ac_cv_type_char=no
13527fi
13528rm -f conftest.$ac_objext conftest.$ac_ext
13529fi
13530echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13531echo "${ECHO_T}$ac_cv_type_char" >&6
13532
13533echo "$as_me:$LINENO: checking size of char" >&5
13534echo $ECHO_N "checking size of char... $ECHO_C" >&6
13535if test "${ac_cv_sizeof_char+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13537else
13538 if test "$ac_cv_type_char" = yes; then
13539 # The cast to unsigned long works around a bug in the HP C Compiler
13540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13542 # This bug is HP SR number 8606223364.
a0b9e27f 13543 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13544 # Depending upon the size, compute the lo and hi bounds.
13545cat >conftest.$ac_ext <<_ACEOF
13546#line $LINENO "configure"
13547/* confdefs.h. */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
13551/* end confdefs.h. */
13552$ac_includes_default
13553int
13554main ()
13555{
13556static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13557test_array [0] = 0
13558
13559 ;
13560 return 0;
13561}
13562_ACEOF
13563rm -f conftest.$ac_objext
13564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13565 (eval $ac_compile) 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } &&
13569 { ac_try='test -s conftest.$ac_objext'
13570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13572 ac_status=$?
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; }; then
13575 ac_lo=0 ac_mid=0
13576 while :; do
13577 cat >conftest.$ac_ext <<_ACEOF
13578#line $LINENO "configure"
13579/* confdefs.h. */
13580_ACEOF
13581cat confdefs.h >>conftest.$ac_ext
13582cat >>conftest.$ac_ext <<_ACEOF
13583/* end confdefs.h. */
13584$ac_includes_default
13585int
13586main ()
13587{
13588static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13589test_array [0] = 0
13590
13591 ;
13592 return 0;
13593}
13594_ACEOF
13595rm -f conftest.$ac_objext
13596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13597 (eval $ac_compile) 2>&5
13598 ac_status=$?
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try='test -s conftest.$ac_objext'
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
13607 ac_hi=$ac_mid; break
13608else
13609 echo "$as_me: failed program was:" >&5
13610sed 's/^/| /' conftest.$ac_ext >&5
13611
13612ac_lo=`expr $ac_mid + 1`
13613 if test $ac_lo -le $ac_mid; then
13614 ac_lo= ac_hi=
13615 break
13616 fi
13617 ac_mid=`expr 2 '*' $ac_mid + 1`
13618fi
13619rm -f conftest.$ac_objext conftest.$ac_ext
13620 done
a0b9e27f 13621else
e6cc62c6
VS
13622 echo "$as_me: failed program was:" >&5
13623sed 's/^/| /' conftest.$ac_ext >&5
13624
13625cat >conftest.$ac_ext <<_ACEOF
13626#line $LINENO "configure"
13627/* confdefs.h. */
13628_ACEOF
13629cat confdefs.h >>conftest.$ac_ext
13630cat >>conftest.$ac_ext <<_ACEOF
13631/* end confdefs.h. */
13632$ac_includes_default
13633int
13634main ()
13635{
13636static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13637test_array [0] = 0
13638
13639 ;
13640 return 0;
13641}
13642_ACEOF
13643rm -f conftest.$ac_objext
13644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13645 (eval $ac_compile) 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); } &&
13649 { ac_try='test -s conftest.$ac_objext'
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; }; then
13655 ac_hi=-1 ac_mid=-1
13656 while :; do
13657 cat >conftest.$ac_ext <<_ACEOF
13658#line $LINENO "configure"
13659/* confdefs.h. */
13660_ACEOF
13661cat confdefs.h >>conftest.$ac_ext
13662cat >>conftest.$ac_ext <<_ACEOF
13663/* end confdefs.h. */
13664$ac_includes_default
13665int
13666main ()
13667{
13668static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13669test_array [0] = 0
13670
13671 ;
13672 return 0;
13673}
13674_ACEOF
13675rm -f conftest.$ac_objext
13676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13677 (eval $ac_compile) 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } &&
13681 { ac_try='test -s conftest.$ac_objext'
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13684 ac_status=$?
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; }; then
13687 ac_lo=$ac_mid; break
13688else
13689 echo "$as_me: failed program was:" >&5
13690sed 's/^/| /' conftest.$ac_ext >&5
13691
13692ac_hi=`expr '(' $ac_mid ')' - 1`
13693 if test $ac_mid -le $ac_hi; then
13694 ac_lo= ac_hi=
13695 break
13696 fi
13697 ac_mid=`expr 2 '*' $ac_mid`
13698fi
13699rm -f conftest.$ac_objext conftest.$ac_ext
13700 done
13701else
13702 echo "$as_me: failed program was:" >&5
13703sed 's/^/| /' conftest.$ac_ext >&5
13704
13705ac_lo= ac_hi=
13706fi
13707rm -f conftest.$ac_objext conftest.$ac_ext
13708fi
13709rm -f conftest.$ac_objext conftest.$ac_ext
13710# Binary search between lo and hi bounds.
13711while test "x$ac_lo" != "x$ac_hi"; do
13712 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13713 cat >conftest.$ac_ext <<_ACEOF
13714#line $LINENO "configure"
13715/* confdefs.h. */
13716_ACEOF
13717cat confdefs.h >>conftest.$ac_ext
13718cat >>conftest.$ac_ext <<_ACEOF
13719/* end confdefs.h. */
13720$ac_includes_default
13721int
13722main ()
13723{
13724static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13725test_array [0] = 0
13726
13727 ;
13728 return 0;
13729}
13730_ACEOF
13731rm -f conftest.$ac_objext
13732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -s conftest.$ac_objext'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13740 ac_status=$?
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 ac_hi=$ac_mid
13744else
13745 echo "$as_me: failed program was:" >&5
13746sed 's/^/| /' conftest.$ac_ext >&5
13747
13748ac_lo=`expr '(' $ac_mid ')' + 1`
13749fi
13750rm -f conftest.$ac_objext conftest.$ac_ext
13751done
13752case $ac_lo in
13753?*) ac_cv_sizeof_char=$ac_lo;;
13754'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13755See \`config.log' for more details." >&5
13756echo "$as_me: error: cannot compute sizeof (char), 77
13757See \`config.log' for more details." >&2;}
13758 { (exit 1); exit 1; }; } ;;
13759esac
13760else
13761 if test "$cross_compiling" = yes; then
13762 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13763See \`config.log' for more details." >&5
13764echo "$as_me: error: cannot run test program while cross compiling
13765See \`config.log' for more details." >&2;}
13766 { (exit 1); exit 1; }; }
13767else
13768 cat >conftest.$ac_ext <<_ACEOF
13769#line $LINENO "configure"
13770/* confdefs.h. */
13771_ACEOF
13772cat confdefs.h >>conftest.$ac_ext
13773cat >>conftest.$ac_ext <<_ACEOF
13774/* end confdefs.h. */
13775$ac_includes_default
13776long longval () { return (long) (sizeof (char)); }
13777unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 13778#include <stdio.h>
e6cc62c6
VS
13779#include <stdlib.h>
13780int
13781main ()
247f5006 13782{
e6cc62c6
VS
13783
13784 FILE *f = fopen ("conftest.val", "w");
13785 if (! f)
13786 exit (1);
13787 if (((long) (sizeof (char))) < 0)
13788 {
13789 long i = longval ();
13790 if (i != ((long) (sizeof (char))))
13791 exit (1);
13792 fprintf (f, "%ld\n", i);
13793 }
13794 else
13795 {
13796 unsigned long i = ulongval ();
13797 if (i != ((long) (sizeof (char))))
13798 exit (1);
13799 fprintf (f, "%lu\n", i);
13800 }
13801 exit (ferror (f) || fclose (f) != 0);
13802
13803 ;
13804 return 0;
52127426 13805}
e6cc62c6
VS
13806_ACEOF
13807rm -f conftest$ac_exeext
13808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13809 (eval $ac_link) 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814 (eval $ac_try) 2>&5
13815 ac_status=$?
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); }; }; then
13818 ac_cv_sizeof_char=`cat conftest.val`
13819else
13820 echo "$as_me: program exited with status $ac_status" >&5
13821echo "$as_me: failed program was:" >&5
13822sed 's/^/| /' conftest.$ac_ext >&5
13823
13824( exit $ac_status )
13825{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13826See \`config.log' for more details." >&5
13827echo "$as_me: error: cannot compute sizeof (char), 77
13828See \`config.log' for more details." >&2;}
13829 { (exit 1); exit 1; }; }
13830fi
13831rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13832fi
13833fi
13834rm -f conftest.val
247f5006 13835else
a0b9e27f 13836 ac_cv_sizeof_char=0
247f5006 13837fi
247f5006 13838fi
e6cc62c6
VS
13839echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13840echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13841cat >>confdefs.h <<_ACEOF
13842#define SIZEOF_CHAR $ac_cv_sizeof_char
13843_ACEOF
13844
13845
13846echo "$as_me:$LINENO: checking for short" >&5
13847echo $ECHO_N "checking for short... $ECHO_C" >&6
13848if test "${ac_cv_type_short+set}" = set; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13850else
13851 cat >conftest.$ac_ext <<_ACEOF
13852#line $LINENO "configure"
13853/* confdefs.h. */
13854_ACEOF
13855cat confdefs.h >>conftest.$ac_ext
13856cat >>conftest.$ac_ext <<_ACEOF
13857/* end confdefs.h. */
13858$ac_includes_default
13859int
13860main ()
13861{
13862if ((short *) 0)
13863 return 0;
13864if (sizeof (short))
13865 return 0;
13866 ;
13867 return 0;
13868}
13869_ACEOF
13870rm -f conftest.$ac_objext
13871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13872 (eval $ac_compile) 2>&5
13873 ac_status=$?
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } &&
13876 { ac_try='test -s conftest.$ac_objext'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 ac_cv_type_short=yes
13883else
13884 echo "$as_me: failed program was:" >&5
13885sed 's/^/| /' conftest.$ac_ext >&5
13886
13887ac_cv_type_short=no
13888fi
13889rm -f conftest.$ac_objext conftest.$ac_ext
13890fi
13891echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13892echo "${ECHO_T}$ac_cv_type_short" >&6
13893
13894echo "$as_me:$LINENO: checking size of short" >&5
13895echo $ECHO_N "checking size of short... $ECHO_C" >&6
13896if test "${ac_cv_sizeof_short+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898else
13899 if test "$ac_cv_type_short" = yes; then
13900 # The cast to unsigned long works around a bug in the HP C Compiler
13901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13903 # This bug is HP SR number 8606223364.
13904 if test "$cross_compiling" = yes; then
13905 # Depending upon the size, compute the lo and hi bounds.
13906cat >conftest.$ac_ext <<_ACEOF
13907#line $LINENO "configure"
13908/* confdefs.h. */
13909_ACEOF
13910cat confdefs.h >>conftest.$ac_ext
13911cat >>conftest.$ac_ext <<_ACEOF
13912/* end confdefs.h. */
13913$ac_includes_default
13914int
13915main ()
13916{
13917static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
13918test_array [0] = 0
247f5006 13919
e6cc62c6
VS
13920 ;
13921 return 0;
13922}
13923_ACEOF
13924rm -f conftest.$ac_objext
13925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13926 (eval $ac_compile) 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } &&
13930 { ac_try='test -s conftest.$ac_objext'
13931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932 (eval $ac_try) 2>&5
13933 ac_status=$?
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; }; then
13936 ac_lo=0 ac_mid=0
13937 while :; do
13938 cat >conftest.$ac_ext <<_ACEOF
13939#line $LINENO "configure"
13940/* confdefs.h. */
13941_ACEOF
13942cat confdefs.h >>conftest.$ac_ext
13943cat >>conftest.$ac_ext <<_ACEOF
13944/* end confdefs.h. */
13945$ac_includes_default
13946int
13947main ()
13948{
13949static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13950test_array [0] = 0
13951
13952 ;
13953 return 0;
13954}
13955_ACEOF
13956rm -f conftest.$ac_objext
13957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958 (eval $ac_compile) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
13962 { ac_try='test -s conftest.$ac_objext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 ac_hi=$ac_mid; break
13969else
13970 echo "$as_me: failed program was:" >&5
13971sed 's/^/| /' conftest.$ac_ext >&5
13972
13973ac_lo=`expr $ac_mid + 1`
13974 if test $ac_lo -le $ac_mid; then
13975 ac_lo= ac_hi=
13976 break
13977 fi
13978 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 13979fi
e6cc62c6
VS
13980rm -f conftest.$ac_objext conftest.$ac_ext
13981 done
13982else
13983 echo "$as_me: failed program was:" >&5
13984sed 's/^/| /' conftest.$ac_ext >&5
13985
13986cat >conftest.$ac_ext <<_ACEOF
13987#line $LINENO "configure"
13988/* confdefs.h. */
13989_ACEOF
13990cat confdefs.h >>conftest.$ac_ext
13991cat >>conftest.$ac_ext <<_ACEOF
13992/* end confdefs.h. */
13993$ac_includes_default
13994int
13995main ()
13996{
13997static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
13998test_array [0] = 0
247f5006 13999
e6cc62c6
VS
14000 ;
14001 return 0;
14002}
14003_ACEOF
14004rm -f conftest.$ac_objext
14005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14006 (eval $ac_compile) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -s conftest.$ac_objext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14016 ac_hi=-1 ac_mid=-1
14017 while :; do
14018 cat >conftest.$ac_ext <<_ACEOF
14019#line $LINENO "configure"
14020/* confdefs.h. */
14021_ACEOF
14022cat confdefs.h >>conftest.$ac_ext
14023cat >>conftest.$ac_ext <<_ACEOF
14024/* end confdefs.h. */
14025$ac_includes_default
14026int
14027main ()
14028{
14029static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14030test_array [0] = 0
247f5006 14031
e6cc62c6
VS
14032 ;
14033 return 0;
14034}
14035_ACEOF
14036rm -f conftest.$ac_objext
14037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14038 (eval $ac_compile) 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } &&
14042 { ac_try='test -s conftest.$ac_objext'
14043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044 (eval $ac_try) 2>&5
14045 ac_status=$?
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; }; then
14048 ac_lo=$ac_mid; break
14049else
14050 echo "$as_me: failed program was:" >&5
14051sed 's/^/| /' conftest.$ac_ext >&5
14052
14053ac_hi=`expr '(' $ac_mid ')' - 1`
14054 if test $ac_mid -le $ac_hi; then
14055 ac_lo= ac_hi=
14056 break
14057 fi
14058 ac_mid=`expr 2 '*' $ac_mid`
14059fi
14060rm -f conftest.$ac_objext conftest.$ac_ext
14061 done
247f5006 14062else
e6cc62c6
VS
14063 echo "$as_me: failed program was:" >&5
14064sed 's/^/| /' conftest.$ac_ext >&5
14065
14066ac_lo= ac_hi=
14067fi
14068rm -f conftest.$ac_objext conftest.$ac_ext
14069fi
14070rm -f conftest.$ac_objext conftest.$ac_ext
14071# Binary search between lo and hi bounds.
14072while test "x$ac_lo" != "x$ac_hi"; do
14073 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14074 cat >conftest.$ac_ext <<_ACEOF
14075#line $LINENO "configure"
14076/* confdefs.h. */
14077_ACEOF
14078cat confdefs.h >>conftest.$ac_ext
14079cat >>conftest.$ac_ext <<_ACEOF
14080/* end confdefs.h. */
14081$ac_includes_default
14082int
14083main ()
14084{
14085static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14086test_array [0] = 0
14087
14088 ;
14089 return 0;
14090}
14091_ACEOF
14092rm -f conftest.$ac_objext
14093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14094 (eval $ac_compile) 2>&5
14095 ac_status=$?
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } &&
14098 { ac_try='test -s conftest.$ac_objext'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14101 ac_status=$?
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; }; then
14104 ac_hi=$ac_mid
14105else
14106 echo "$as_me: failed program was:" >&5
14107sed 's/^/| /' conftest.$ac_ext >&5
14108
14109ac_lo=`expr '(' $ac_mid ')' + 1`
14110fi
14111rm -f conftest.$ac_objext conftest.$ac_ext
14112done
14113case $ac_lo in
14114?*) ac_cv_sizeof_short=$ac_lo;;
14115'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14116See \`config.log' for more details." >&5
14117echo "$as_me: error: cannot compute sizeof (short), 77
14118See \`config.log' for more details." >&2;}
14119 { (exit 1); exit 1; }; } ;;
14120esac
247f5006 14121else
e6cc62c6
VS
14122 if test "$cross_compiling" = yes; then
14123 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14124See \`config.log' for more details." >&5
14125echo "$as_me: error: cannot run test program while cross compiling
14126See \`config.log' for more details." >&2;}
14127 { (exit 1); exit 1; }; }
14128else
14129 cat >conftest.$ac_ext <<_ACEOF
14130#line $LINENO "configure"
14131/* confdefs.h. */
14132_ACEOF
14133cat confdefs.h >>conftest.$ac_ext
14134cat >>conftest.$ac_ext <<_ACEOF
14135/* end confdefs.h. */
14136$ac_includes_default
14137long longval () { return (long) (sizeof (short)); }
14138unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14139#include <stdio.h>
e6cc62c6
VS
14140#include <stdlib.h>
14141int
14142main ()
a0b9e27f 14143{
e6cc62c6
VS
14144
14145 FILE *f = fopen ("conftest.val", "w");
14146 if (! f)
14147 exit (1);
14148 if (((long) (sizeof (short))) < 0)
14149 {
14150 long i = longval ();
14151 if (i != ((long) (sizeof (short))))
14152 exit (1);
14153 fprintf (f, "%ld\n", i);
14154 }
14155 else
14156 {
14157 unsigned long i = ulongval ();
14158 if (i != ((long) (sizeof (short))))
14159 exit (1);
14160 fprintf (f, "%lu\n", i);
14161 }
14162 exit (ferror (f) || fclose (f) != 0);
14163
14164 ;
14165 return 0;
a0b9e27f 14166}
e6cc62c6
VS
14167_ACEOF
14168rm -f conftest$ac_exeext
14169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14170 (eval $ac_link) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175 (eval $ac_try) 2>&5
14176 ac_status=$?
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); }; }; then
14179 ac_cv_sizeof_short=`cat conftest.val`
14180else
14181 echo "$as_me: program exited with status $ac_status" >&5
14182echo "$as_me: failed program was:" >&5
14183sed 's/^/| /' conftest.$ac_ext >&5
14184
14185( exit $ac_status )
14186{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14187See \`config.log' for more details." >&5
14188echo "$as_me: error: cannot compute sizeof (short), 77
14189See \`config.log' for more details." >&2;}
14190 { (exit 1); exit 1; }; }
14191fi
14192rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14193fi
14194fi
14195rm -f conftest.val
247f5006 14196else
a0b9e27f 14197 ac_cv_sizeof_short=0
247f5006 14198fi
247f5006 14199fi
e6cc62c6
VS
14200echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14201echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14202cat >>confdefs.h <<_ACEOF
14203#define SIZEOF_SHORT $ac_cv_sizeof_short
14204_ACEOF
14205
14206
14207echo "$as_me:$LINENO: checking for void *" >&5
14208echo $ECHO_N "checking for void *... $ECHO_C" >&6
14209if test "${ac_cv_type_void_p+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14211else
14212 cat >conftest.$ac_ext <<_ACEOF
14213#line $LINENO "configure"
14214/* confdefs.h. */
14215_ACEOF
14216cat confdefs.h >>conftest.$ac_ext
14217cat >>conftest.$ac_ext <<_ACEOF
14218/* end confdefs.h. */
14219$ac_includes_default
14220int
14221main ()
14222{
14223if ((void * *) 0)
14224 return 0;
14225if (sizeof (void *))
14226 return 0;
14227 ;
14228 return 0;
14229}
14230_ACEOF
14231rm -f conftest.$ac_objext
14232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233 (eval $ac_compile) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
14237 { ac_try='test -s conftest.$ac_objext'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 ac_cv_type_void_p=yes
14244else
14245 echo "$as_me: failed program was:" >&5
14246sed 's/^/| /' conftest.$ac_ext >&5
14247
14248ac_cv_type_void_p=no
14249fi
14250rm -f conftest.$ac_objext conftest.$ac_ext
14251fi
14252echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14253echo "${ECHO_T}$ac_cv_type_void_p" >&6
14254
14255echo "$as_me:$LINENO: checking size of void *" >&5
14256echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14257if test "${ac_cv_sizeof_void_p+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14259else
14260 if test "$ac_cv_type_void_p" = yes; then
14261 # The cast to unsigned long works around a bug in the HP C Compiler
14262 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14263 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14264 # This bug is HP SR number 8606223364.
14265 if test "$cross_compiling" = yes; then
14266 # Depending upon the size, compute the lo and hi bounds.
14267cat >conftest.$ac_ext <<_ACEOF
14268#line $LINENO "configure"
14269/* confdefs.h. */
14270_ACEOF
14271cat confdefs.h >>conftest.$ac_ext
14272cat >>conftest.$ac_ext <<_ACEOF
14273/* end confdefs.h. */
14274$ac_includes_default
14275int
14276main ()
14277{
14278static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14279test_array [0] = 0
14280
14281 ;
14282 return 0;
14283}
14284_ACEOF
14285rm -f conftest.$ac_objext
14286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14287 (eval $ac_compile) 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } &&
14291 { ac_try='test -s conftest.$ac_objext'
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14294 ac_status=$?
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 ac_lo=0 ac_mid=0
14298 while :; do
14299 cat >conftest.$ac_ext <<_ACEOF
14300#line $LINENO "configure"
14301/* confdefs.h. */
14302_ACEOF
14303cat confdefs.h >>conftest.$ac_ext
14304cat >>conftest.$ac_ext <<_ACEOF
14305/* end confdefs.h. */
14306$ac_includes_default
14307int
14308main ()
14309{
14310static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14311test_array [0] = 0
247f5006 14312
e6cc62c6
VS
14313 ;
14314 return 0;
14315}
14316_ACEOF
14317rm -f conftest.$ac_objext
14318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14319 (eval $ac_compile) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
14323 { ac_try='test -s conftest.$ac_objext'
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
14329 ac_hi=$ac_mid; break
14330else
14331 echo "$as_me: failed program was:" >&5
14332sed 's/^/| /' conftest.$ac_ext >&5
14333
14334ac_lo=`expr $ac_mid + 1`
14335 if test $ac_lo -le $ac_mid; then
14336 ac_lo= ac_hi=
14337 break
14338 fi
14339 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14340fi
e6cc62c6
VS
14341rm -f conftest.$ac_objext conftest.$ac_ext
14342 done
14343else
14344 echo "$as_me: failed program was:" >&5
14345sed 's/^/| /' conftest.$ac_ext >&5
14346
14347cat >conftest.$ac_ext <<_ACEOF
14348#line $LINENO "configure"
14349/* confdefs.h. */
14350_ACEOF
14351cat confdefs.h >>conftest.$ac_ext
14352cat >>conftest.$ac_ext <<_ACEOF
14353/* end confdefs.h. */
14354$ac_includes_default
14355int
14356main ()
14357{
14358static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14359test_array [0] = 0
247f5006 14360
e6cc62c6
VS
14361 ;
14362 return 0;
14363}
14364_ACEOF
14365rm -f conftest.$ac_objext
14366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14367 (eval $ac_compile) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } &&
14371 { ac_try='test -s conftest.$ac_objext'
14372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373 (eval $ac_try) 2>&5
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); }; }; then
14377 ac_hi=-1 ac_mid=-1
14378 while :; do
14379 cat >conftest.$ac_ext <<_ACEOF
14380#line $LINENO "configure"
14381/* confdefs.h. */
14382_ACEOF
14383cat confdefs.h >>conftest.$ac_ext
14384cat >>conftest.$ac_ext <<_ACEOF
14385/* end confdefs.h. */
14386$ac_includes_default
14387int
14388main ()
14389{
14390static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14391test_array [0] = 0
247f5006 14392
e6cc62c6
VS
14393 ;
14394 return 0;
14395}
14396_ACEOF
14397rm -f conftest.$ac_objext
14398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14399 (eval $ac_compile) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -s conftest.$ac_objext'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14406 ac_status=$?
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 ac_lo=$ac_mid; break
14410else
14411 echo "$as_me: failed program was:" >&5
14412sed 's/^/| /' conftest.$ac_ext >&5
14413
14414ac_hi=`expr '(' $ac_mid ')' - 1`
14415 if test $ac_mid -le $ac_hi; then
14416 ac_lo= ac_hi=
14417 break
14418 fi
14419 ac_mid=`expr 2 '*' $ac_mid`
14420fi
14421rm -f conftest.$ac_objext conftest.$ac_ext
14422 done
a0b9e27f 14423else
e6cc62c6
VS
14424 echo "$as_me: failed program was:" >&5
14425sed 's/^/| /' conftest.$ac_ext >&5
14426
14427ac_lo= ac_hi=
14428fi
14429rm -f conftest.$ac_objext conftest.$ac_ext
14430fi
14431rm -f conftest.$ac_objext conftest.$ac_ext
14432# Binary search between lo and hi bounds.
14433while test "x$ac_lo" != "x$ac_hi"; do
14434 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14435 cat >conftest.$ac_ext <<_ACEOF
14436#line $LINENO "configure"
14437/* confdefs.h. */
14438_ACEOF
14439cat confdefs.h >>conftest.$ac_ext
14440cat >>conftest.$ac_ext <<_ACEOF
14441/* end confdefs.h. */
14442$ac_includes_default
14443int
14444main ()
14445{
14446static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14447test_array [0] = 0
14448
14449 ;
14450 return 0;
14451}
14452_ACEOF
14453rm -f conftest.$ac_objext
14454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14455 (eval $ac_compile) 2>&5
14456 ac_status=$?
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } &&
14459 { ac_try='test -s conftest.$ac_objext'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; }; then
14465 ac_hi=$ac_mid
14466else
14467 echo "$as_me: failed program was:" >&5
14468sed 's/^/| /' conftest.$ac_ext >&5
14469
14470ac_lo=`expr '(' $ac_mid ')' + 1`
14471fi
14472rm -f conftest.$ac_objext conftest.$ac_ext
14473done
14474case $ac_lo in
14475?*) ac_cv_sizeof_void_p=$ac_lo;;
14476'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14477See \`config.log' for more details." >&5
14478echo "$as_me: error: cannot compute sizeof (void *), 77
14479See \`config.log' for more details." >&2;}
14480 { (exit 1); exit 1; }; } ;;
14481esac
247f5006 14482else
e6cc62c6
VS
14483 if test "$cross_compiling" = yes; then
14484 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14485See \`config.log' for more details." >&5
14486echo "$as_me: error: cannot run test program while cross compiling
14487See \`config.log' for more details." >&2;}
14488 { (exit 1); exit 1; }; }
14489else
14490 cat >conftest.$ac_ext <<_ACEOF
14491#line $LINENO "configure"
14492/* confdefs.h. */
14493_ACEOF
14494cat confdefs.h >>conftest.$ac_ext
14495cat >>conftest.$ac_ext <<_ACEOF
14496/* end confdefs.h. */
14497$ac_includes_default
14498long longval () { return (long) (sizeof (void *)); }
14499unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14500#include <stdio.h>
e6cc62c6
VS
14501#include <stdlib.h>
14502int
14503main ()
247f5006 14504{
e6cc62c6
VS
14505
14506 FILE *f = fopen ("conftest.val", "w");
14507 if (! f)
14508 exit (1);
14509 if (((long) (sizeof (void *))) < 0)
14510 {
14511 long i = longval ();
14512 if (i != ((long) (sizeof (void *))))
14513 exit (1);
14514 fprintf (f, "%ld\n", i);
14515 }
14516 else
14517 {
14518 unsigned long i = ulongval ();
14519 if (i != ((long) (sizeof (void *))))
14520 exit (1);
14521 fprintf (f, "%lu\n", i);
14522 }
14523 exit (ferror (f) || fclose (f) != 0);
14524
14525 ;
14526 return 0;
5c6fa7d2 14527}
e6cc62c6
VS
14528_ACEOF
14529rm -f conftest$ac_exeext
14530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14531 (eval $ac_link) 2>&5
14532 ac_status=$?
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14537 ac_status=$?
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; }; then
14540 ac_cv_sizeof_void_p=`cat conftest.val`
14541else
14542 echo "$as_me: program exited with status $ac_status" >&5
14543echo "$as_me: failed program was:" >&5
14544sed 's/^/| /' conftest.$ac_ext >&5
14545
14546( exit $ac_status )
14547{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14548See \`config.log' for more details." >&5
14549echo "$as_me: error: cannot compute sizeof (void *), 77
14550See \`config.log' for more details." >&2;}
14551 { (exit 1); exit 1; }; }
14552fi
14553rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14554fi
14555fi
14556rm -f conftest.val
a0b9e27f 14557else
a0b9e27f
MB
14558 ac_cv_sizeof_void_p=0
14559fi
a0b9e27f 14560fi
e6cc62c6
VS
14561echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14562echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14563cat >>confdefs.h <<_ACEOF
14564#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14565_ACEOF
14566
14567
14568echo "$as_me:$LINENO: checking for int" >&5
14569echo $ECHO_N "checking for int... $ECHO_C" >&6
14570if test "${ac_cv_type_int+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14572else
14573 cat >conftest.$ac_ext <<_ACEOF
14574#line $LINENO "configure"
14575/* confdefs.h. */
14576_ACEOF
14577cat confdefs.h >>conftest.$ac_ext
14578cat >>conftest.$ac_ext <<_ACEOF
14579/* end confdefs.h. */
14580$ac_includes_default
14581int
14582main ()
14583{
14584if ((int *) 0)
14585 return 0;
14586if (sizeof (int))
14587 return 0;
14588 ;
14589 return 0;
14590}
14591_ACEOF
14592rm -f conftest.$ac_objext
14593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14594 (eval $ac_compile) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } &&
14598 { ac_try='test -s conftest.$ac_objext'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; }; then
14604 ac_cv_type_int=yes
14605else
14606 echo "$as_me: failed program was:" >&5
14607sed 's/^/| /' conftest.$ac_ext >&5
14608
14609ac_cv_type_int=no
14610fi
14611rm -f conftest.$ac_objext conftest.$ac_ext
14612fi
14613echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14614echo "${ECHO_T}$ac_cv_type_int" >&6
14615
14616echo "$as_me:$LINENO: checking size of int" >&5
14617echo $ECHO_N "checking size of int... $ECHO_C" >&6
14618if test "${ac_cv_sizeof_int+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14620else
14621 if test "$ac_cv_type_int" = yes; then
14622 # The cast to unsigned long works around a bug in the HP C Compiler
14623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14625 # This bug is HP SR number 8606223364.
14626 if test "$cross_compiling" = yes; then
14627 # Depending upon the size, compute the lo and hi bounds.
14628cat >conftest.$ac_ext <<_ACEOF
14629#line $LINENO "configure"
14630/* confdefs.h. */
14631_ACEOF
14632cat confdefs.h >>conftest.$ac_ext
14633cat >>conftest.$ac_ext <<_ACEOF
14634/* end confdefs.h. */
14635$ac_includes_default
14636int
14637main ()
14638{
14639static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14640test_array [0] = 0
8284b0c5 14641
e6cc62c6
VS
14642 ;
14643 return 0;
14644}
14645_ACEOF
14646rm -f conftest.$ac_objext
14647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14648 (eval $ac_compile) 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } &&
14652 { ac_try='test -s conftest.$ac_objext'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; }; then
14658 ac_lo=0 ac_mid=0
14659 while :; do
14660 cat >conftest.$ac_ext <<_ACEOF
14661#line $LINENO "configure"
14662/* confdefs.h. */
14663_ACEOF
14664cat confdefs.h >>conftest.$ac_ext
14665cat >>conftest.$ac_ext <<_ACEOF
14666/* end confdefs.h. */
14667$ac_includes_default
14668int
14669main ()
14670{
14671static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14672test_array [0] = 0
14673
14674 ;
14675 return 0;
14676}
14677_ACEOF
14678rm -f conftest.$ac_objext
14679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14680 (eval $ac_compile) 2>&5
14681 ac_status=$?
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } &&
14684 { ac_try='test -s conftest.$ac_objext'
14685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5
14687 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; }; then
14690 ac_hi=$ac_mid; break
14691else
14692 echo "$as_me: failed program was:" >&5
14693sed 's/^/| /' conftest.$ac_ext >&5
14694
14695ac_lo=`expr $ac_mid + 1`
14696 if test $ac_lo -le $ac_mid; then
14697 ac_lo= ac_hi=
14698 break
14699 fi
14700 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14701fi
e6cc62c6
VS
14702rm -f conftest.$ac_objext conftest.$ac_ext
14703 done
14704else
14705 echo "$as_me: failed program was:" >&5
14706sed 's/^/| /' conftest.$ac_ext >&5
14707
14708cat >conftest.$ac_ext <<_ACEOF
14709#line $LINENO "configure"
14710/* confdefs.h. */
14711_ACEOF
14712cat confdefs.h >>conftest.$ac_ext
14713cat >>conftest.$ac_ext <<_ACEOF
14714/* end confdefs.h. */
14715$ac_includes_default
14716int
14717main ()
14718{
14719static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14720test_array [0] = 0
247f5006 14721
e6cc62c6
VS
14722 ;
14723 return 0;
14724}
14725_ACEOF
14726rm -f conftest.$ac_objext
14727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14728 (eval $ac_compile) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try='test -s conftest.$ac_objext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 ac_hi=-1 ac_mid=-1
14739 while :; do
14740 cat >conftest.$ac_ext <<_ACEOF
14741#line $LINENO "configure"
14742/* confdefs.h. */
14743_ACEOF
14744cat confdefs.h >>conftest.$ac_ext
14745cat >>conftest.$ac_ext <<_ACEOF
14746/* end confdefs.h. */
14747$ac_includes_default
14748int
14749main ()
14750{
14751static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14752test_array [0] = 0
247f5006 14753
e6cc62c6
VS
14754 ;
14755 return 0;
14756}
14757_ACEOF
14758rm -f conftest.$ac_objext
14759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14760 (eval $ac_compile) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } &&
14764 { ac_try='test -s conftest.$ac_objext'
14765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766 (eval $ac_try) 2>&5
14767 ac_status=$?
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; }; then
14770 ac_lo=$ac_mid; break
14771else
14772 echo "$as_me: failed program was:" >&5
14773sed 's/^/| /' conftest.$ac_ext >&5
14774
14775ac_hi=`expr '(' $ac_mid ')' - 1`
14776 if test $ac_mid -le $ac_hi; then
14777 ac_lo= ac_hi=
14778 break
14779 fi
14780 ac_mid=`expr 2 '*' $ac_mid`
14781fi
14782rm -f conftest.$ac_objext conftest.$ac_ext
14783 done
247f5006 14784else
e6cc62c6
VS
14785 echo "$as_me: failed program was:" >&5
14786sed 's/^/| /' conftest.$ac_ext >&5
14787
14788ac_lo= ac_hi=
14789fi
14790rm -f conftest.$ac_objext conftest.$ac_ext
14791fi
14792rm -f conftest.$ac_objext conftest.$ac_ext
14793# Binary search between lo and hi bounds.
14794while test "x$ac_lo" != "x$ac_hi"; do
14795 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14796 cat >conftest.$ac_ext <<_ACEOF
14797#line $LINENO "configure"
14798/* confdefs.h. */
14799_ACEOF
14800cat confdefs.h >>conftest.$ac_ext
14801cat >>conftest.$ac_ext <<_ACEOF
14802/* end confdefs.h. */
14803$ac_includes_default
14804int
14805main ()
14806{
14807static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14808test_array [0] = 0
14809
14810 ;
14811 return 0;
14812}
14813_ACEOF
14814rm -f conftest.$ac_objext
14815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14816 (eval $ac_compile) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); } &&
14820 { ac_try='test -s conftest.$ac_objext'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14823 ac_status=$?
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; }; then
14826 ac_hi=$ac_mid
14827else
14828 echo "$as_me: failed program was:" >&5
14829sed 's/^/| /' conftest.$ac_ext >&5
14830
14831ac_lo=`expr '(' $ac_mid ')' + 1`
14832fi
14833rm -f conftest.$ac_objext conftest.$ac_ext
14834done
14835case $ac_lo in
14836?*) ac_cv_sizeof_int=$ac_lo;;
14837'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14838See \`config.log' for more details." >&5
14839echo "$as_me: error: cannot compute sizeof (int), 77
14840See \`config.log' for more details." >&2;}
14841 { (exit 1); exit 1; }; } ;;
14842esac
a0b9e27f 14843else
e6cc62c6
VS
14844 if test "$cross_compiling" = yes; then
14845 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14846See \`config.log' for more details." >&5
14847echo "$as_me: error: cannot run test program while cross compiling
14848See \`config.log' for more details." >&2;}
14849 { (exit 1); exit 1; }; }
14850else
14851 cat >conftest.$ac_ext <<_ACEOF
14852#line $LINENO "configure"
14853/* confdefs.h. */
14854_ACEOF
14855cat confdefs.h >>conftest.$ac_ext
14856cat >>conftest.$ac_ext <<_ACEOF
14857/* end confdefs.h. */
14858$ac_includes_default
14859long longval () { return (long) (sizeof (int)); }
14860unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 14861#include <stdio.h>
e6cc62c6
VS
14862#include <stdlib.h>
14863int
14864main ()
247f5006 14865{
e6cc62c6
VS
14866
14867 FILE *f = fopen ("conftest.val", "w");
14868 if (! f)
14869 exit (1);
14870 if (((long) (sizeof (int))) < 0)
14871 {
14872 long i = longval ();
14873 if (i != ((long) (sizeof (int))))
14874 exit (1);
14875 fprintf (f, "%ld\n", i);
14876 }
14877 else
14878 {
14879 unsigned long i = ulongval ();
14880 if (i != ((long) (sizeof (int))))
14881 exit (1);
14882 fprintf (f, "%lu\n", i);
14883 }
14884 exit (ferror (f) || fclose (f) != 0);
14885
14886 ;
14887 return 0;
247f5006 14888}
e6cc62c6
VS
14889_ACEOF
14890rm -f conftest$ac_exeext
14891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14892 (eval $ac_link) 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; }; then
14901 ac_cv_sizeof_int=`cat conftest.val`
14902else
14903 echo "$as_me: program exited with status $ac_status" >&5
14904echo "$as_me: failed program was:" >&5
14905sed 's/^/| /' conftest.$ac_ext >&5
14906
14907( exit $ac_status )
14908{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14909See \`config.log' for more details." >&5
14910echo "$as_me: error: cannot compute sizeof (int), 77
14911See \`config.log' for more details." >&2;}
14912 { (exit 1); exit 1; }; }
14913fi
14914rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14915fi
14916fi
14917rm -f conftest.val
6f72b082 14918else
a0b9e27f 14919 ac_cv_sizeof_int=0
21d1c967 14920fi
698dcdb6 14921fi
e6cc62c6
VS
14922echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14923echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14924cat >>confdefs.h <<_ACEOF
14925#define SIZEOF_INT $ac_cv_sizeof_int
14926_ACEOF
14927
14928
14929echo "$as_me:$LINENO: checking for long" >&5
14930echo $ECHO_N "checking for long... $ECHO_C" >&6
14931if test "${ac_cv_type_long+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14933else
14934 cat >conftest.$ac_ext <<_ACEOF
14935#line $LINENO "configure"
14936/* confdefs.h. */
14937_ACEOF
14938cat confdefs.h >>conftest.$ac_ext
14939cat >>conftest.$ac_ext <<_ACEOF
14940/* end confdefs.h. */
14941$ac_includes_default
14942int
14943main ()
14944{
14945if ((long *) 0)
14946 return 0;
14947if (sizeof (long))
14948 return 0;
14949 ;
14950 return 0;
14951}
14952_ACEOF
14953rm -f conftest.$ac_objext
14954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14955 (eval $ac_compile) 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -s conftest.$ac_objext'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; }; then
14965 ac_cv_type_long=yes
14966else
14967 echo "$as_me: failed program was:" >&5
14968sed 's/^/| /' conftest.$ac_ext >&5
14969
14970ac_cv_type_long=no
14971fi
14972rm -f conftest.$ac_objext conftest.$ac_ext
14973fi
14974echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14975echo "${ECHO_T}$ac_cv_type_long" >&6
14976
14977echo "$as_me:$LINENO: checking size of long" >&5
14978echo $ECHO_N "checking size of long... $ECHO_C" >&6
14979if test "${ac_cv_sizeof_long+set}" = set; then
14980 echo $ECHO_N "(cached) $ECHO_C" >&6
14981else
14982 if test "$ac_cv_type_long" = yes; then
14983 # The cast to unsigned long works around a bug in the HP C Compiler
14984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14986 # This bug is HP SR number 8606223364.
14987 if test "$cross_compiling" = yes; then
14988 # Depending upon the size, compute the lo and hi bounds.
14989cat >conftest.$ac_ext <<_ACEOF
14990#line $LINENO "configure"
14991/* confdefs.h. */
14992_ACEOF
14993cat confdefs.h >>conftest.$ac_ext
14994cat >>conftest.$ac_ext <<_ACEOF
14995/* end confdefs.h. */
14996$ac_includes_default
14997int
14998main ()
14999{
15000static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15001test_array [0] = 0
15002
15003 ;
15004 return 0;
15005}
15006_ACEOF
15007rm -f conftest.$ac_objext
15008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15009 (eval $ac_compile) 2>&5
15010 ac_status=$?
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } &&
15013 { ac_try='test -s conftest.$ac_objext'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15019 ac_lo=0 ac_mid=0
15020 while :; do
15021 cat >conftest.$ac_ext <<_ACEOF
15022#line $LINENO "configure"
15023/* confdefs.h. */
15024_ACEOF
15025cat confdefs.h >>conftest.$ac_ext
15026cat >>conftest.$ac_ext <<_ACEOF
15027/* end confdefs.h. */
15028$ac_includes_default
15029int
15030main ()
15031{
15032static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15033test_array [0] = 0
4f14bcd8 15034
e6cc62c6
VS
15035 ;
15036 return 0;
15037}
15038_ACEOF
15039rm -f conftest.$ac_objext
15040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15041 (eval $ac_compile) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
15045 { ac_try='test -s conftest.$ac_objext'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }; then
15051 ac_hi=$ac_mid; break
15052else
15053 echo "$as_me: failed program was:" >&5
15054sed 's/^/| /' conftest.$ac_ext >&5
15055
15056ac_lo=`expr $ac_mid + 1`
15057 if test $ac_lo -le $ac_mid; then
15058 ac_lo= ac_hi=
15059 break
15060 fi
15061 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15062fi
e6cc62c6
VS
15063rm -f conftest.$ac_objext conftest.$ac_ext
15064 done
15065else
15066 echo "$as_me: failed program was:" >&5
15067sed 's/^/| /' conftest.$ac_ext >&5
15068
15069cat >conftest.$ac_ext <<_ACEOF
15070#line $LINENO "configure"
15071/* confdefs.h. */
15072_ACEOF
15073cat confdefs.h >>conftest.$ac_ext
15074cat >>conftest.$ac_ext <<_ACEOF
15075/* end confdefs.h. */
15076$ac_includes_default
15077int
15078main ()
15079{
15080static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15081test_array [0] = 0
4f14bcd8 15082
e6cc62c6
VS
15083 ;
15084 return 0;
15085}
15086_ACEOF
15087rm -f conftest.$ac_objext
15088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15089 (eval $ac_compile) 2>&5
15090 ac_status=$?
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } &&
15093 { ac_try='test -s conftest.$ac_objext'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; }; then
15099 ac_hi=-1 ac_mid=-1
15100 while :; do
15101 cat >conftest.$ac_ext <<_ACEOF
15102#line $LINENO "configure"
15103/* confdefs.h. */
15104_ACEOF
15105cat confdefs.h >>conftest.$ac_ext
15106cat >>conftest.$ac_ext <<_ACEOF
15107/* end confdefs.h. */
15108$ac_includes_default
15109int
15110main ()
15111{
15112static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15113test_array [0] = 0
5c6fa7d2 15114
e6cc62c6
VS
15115 ;
15116 return 0;
15117}
15118_ACEOF
15119rm -f conftest.$ac_objext
15120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15121 (eval $ac_compile) 2>&5
15122 ac_status=$?
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } &&
15125 { ac_try='test -s conftest.$ac_objext'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15128 ac_status=$?
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; }; then
15131 ac_lo=$ac_mid; break
15132else
15133 echo "$as_me: failed program was:" >&5
15134sed 's/^/| /' conftest.$ac_ext >&5
15135
15136ac_hi=`expr '(' $ac_mid ')' - 1`
15137 if test $ac_mid -le $ac_hi; then
15138 ac_lo= ac_hi=
15139 break
15140 fi
15141 ac_mid=`expr 2 '*' $ac_mid`
15142fi
15143rm -f conftest.$ac_objext conftest.$ac_ext
15144 done
247f5006 15145else
e6cc62c6
VS
15146 echo "$as_me: failed program was:" >&5
15147sed 's/^/| /' conftest.$ac_ext >&5
15148
15149ac_lo= ac_hi=
15150fi
15151rm -f conftest.$ac_objext conftest.$ac_ext
15152fi
15153rm -f conftest.$ac_objext conftest.$ac_ext
15154# Binary search between lo and hi bounds.
15155while test "x$ac_lo" != "x$ac_hi"; do
15156 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15157 cat >conftest.$ac_ext <<_ACEOF
15158#line $LINENO "configure"
15159/* confdefs.h. */
15160_ACEOF
15161cat confdefs.h >>conftest.$ac_ext
15162cat >>conftest.$ac_ext <<_ACEOF
15163/* end confdefs.h. */
15164$ac_includes_default
15165int
15166main ()
15167{
15168static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15169test_array [0] = 0
15170
15171 ;
15172 return 0;
15173}
15174_ACEOF
15175rm -f conftest.$ac_objext
15176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15177 (eval $ac_compile) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } &&
15181 { ac_try='test -s conftest.$ac_objext'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_hi=$ac_mid
15188else
15189 echo "$as_me: failed program was:" >&5
15190sed 's/^/| /' conftest.$ac_ext >&5
15191
15192ac_lo=`expr '(' $ac_mid ')' + 1`
15193fi
15194rm -f conftest.$ac_objext conftest.$ac_ext
15195done
15196case $ac_lo in
15197?*) ac_cv_sizeof_long=$ac_lo;;
15198'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15199See \`config.log' for more details." >&5
15200echo "$as_me: error: cannot compute sizeof (long), 77
15201See \`config.log' for more details." >&2;}
15202 { (exit 1); exit 1; }; } ;;
15203esac
247f5006 15204else
e6cc62c6
VS
15205 if test "$cross_compiling" = yes; then
15206 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15207See \`config.log' for more details." >&5
15208echo "$as_me: error: cannot run test program while cross compiling
15209See \`config.log' for more details." >&2;}
15210 { (exit 1); exit 1; }; }
15211else
15212 cat >conftest.$ac_ext <<_ACEOF
15213#line $LINENO "configure"
15214/* confdefs.h. */
15215_ACEOF
15216cat confdefs.h >>conftest.$ac_ext
15217cat >>conftest.$ac_ext <<_ACEOF
15218/* end confdefs.h. */
15219$ac_includes_default
15220long longval () { return (long) (sizeof (long)); }
15221unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15222#include <stdio.h>
e6cc62c6
VS
15223#include <stdlib.h>
15224int
15225main ()
247f5006 15226{
e6cc62c6
VS
15227
15228 FILE *f = fopen ("conftest.val", "w");
15229 if (! f)
15230 exit (1);
15231 if (((long) (sizeof (long))) < 0)
15232 {
15233 long i = longval ();
15234 if (i != ((long) (sizeof (long))))
15235 exit (1);
15236 fprintf (f, "%ld\n", i);
15237 }
15238 else
15239 {
15240 unsigned long i = ulongval ();
15241 if (i != ((long) (sizeof (long))))
15242 exit (1);
15243 fprintf (f, "%lu\n", i);
15244 }
15245 exit (ferror (f) || fclose (f) != 0);
15246
15247 ;
15248 return 0;
247f5006 15249}
e6cc62c6
VS
15250_ACEOF
15251rm -f conftest$ac_exeext
15252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15253 (eval $ac_link) 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15259 ac_status=$?
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; }; then
15262 ac_cv_sizeof_long=`cat conftest.val`
15263else
15264 echo "$as_me: program exited with status $ac_status" >&5
15265echo "$as_me: failed program was:" >&5
15266sed 's/^/| /' conftest.$ac_ext >&5
15267
15268( exit $ac_status )
15269{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15270See \`config.log' for more details." >&5
15271echo "$as_me: error: cannot compute sizeof (long), 77
15272See \`config.log' for more details." >&2;}
15273 { (exit 1); exit 1; }; }
15274fi
15275rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15276fi
15277fi
15278rm -f conftest.val
247f5006 15279else
a0b9e27f 15280 ac_cv_sizeof_long=0
247f5006 15281fi
247f5006 15282fi
e6cc62c6
VS
15283echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15284echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15285cat >>confdefs.h <<_ACEOF
a0b9e27f 15286#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15287_ACEOF
247f5006 15288
a0b9e27f
MB
15289
15290
15291case "${host}" in
15292 arm-*-linux* )
e6cc62c6
VS
15293 echo "$as_me:$LINENO: checking for long long" >&5
15294echo $ECHO_N "checking for long long... $ECHO_C" >&6
15295if test "${ac_cv_type_long_long+set}" = set; then
15296 echo $ECHO_N "(cached) $ECHO_C" >&6
15297else
15298 cat >conftest.$ac_ext <<_ACEOF
15299#line $LINENO "configure"
15300/* confdefs.h. */
15301_ACEOF
15302cat confdefs.h >>conftest.$ac_ext
15303cat >>conftest.$ac_ext <<_ACEOF
15304/* end confdefs.h. */
15305$ac_includes_default
15306int
15307main ()
15308{
15309if ((long long *) 0)
15310 return 0;
15311if (sizeof (long long))
15312 return 0;
15313 ;
15314 return 0;
15315}
15316_ACEOF
15317rm -f conftest.$ac_objext
15318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15319 (eval $ac_compile) 2>&5
15320 ac_status=$?
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } &&
15323 { ac_try='test -s conftest.$ac_objext'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15326 ac_status=$?
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; }; then
15329 ac_cv_type_long_long=yes
15330else
15331 echo "$as_me: failed program was:" >&5
15332sed 's/^/| /' conftest.$ac_ext >&5
15333
15334ac_cv_type_long_long=no
15335fi
15336rm -f conftest.$ac_objext conftest.$ac_ext
15337fi
15338echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15339echo "${ECHO_T}$ac_cv_type_long_long" >&6
15340
15341echo "$as_me:$LINENO: checking size of long long" >&5
15342echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15343if test "${ac_cv_sizeof_long_long+set}" = set; then
15344 echo $ECHO_N "(cached) $ECHO_C" >&6
15345else
15346 if test "$ac_cv_type_long_long" = yes; then
15347 # The cast to unsigned long works around a bug in the HP C Compiler
15348 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15349 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15350 # This bug is HP SR number 8606223364.
a0b9e27f 15351 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15352 # Depending upon the size, compute the lo and hi bounds.
15353cat >conftest.$ac_ext <<_ACEOF
15354#line $LINENO "configure"
15355/* confdefs.h. */
15356_ACEOF
15357cat confdefs.h >>conftest.$ac_ext
15358cat >>conftest.$ac_ext <<_ACEOF
15359/* end confdefs.h. */
15360$ac_includes_default
15361int
15362main ()
15363{
15364static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15365test_array [0] = 0
15366
15367 ;
15368 return 0;
15369}
15370_ACEOF
15371rm -f conftest.$ac_objext
15372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15373 (eval $ac_compile) 2>&5
15374 ac_status=$?
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
15377 { ac_try='test -s conftest.$ac_objext'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15383 ac_lo=0 ac_mid=0
15384 while :; do
15385 cat >conftest.$ac_ext <<_ACEOF
15386#line $LINENO "configure"
15387/* confdefs.h. */
15388_ACEOF
15389cat confdefs.h >>conftest.$ac_ext
15390cat >>conftest.$ac_ext <<_ACEOF
15391/* end confdefs.h. */
15392$ac_includes_default
15393int
15394main ()
15395{
15396static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15397test_array [0] = 0
15398
15399 ;
15400 return 0;
15401}
15402_ACEOF
15403rm -f conftest.$ac_objext
15404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15405 (eval $ac_compile) 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } &&
15409 { ac_try='test -s conftest.$ac_objext'
15410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411 (eval $ac_try) 2>&5
15412 ac_status=$?
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; }; then
15415 ac_hi=$ac_mid; break
15416else
15417 echo "$as_me: failed program was:" >&5
15418sed 's/^/| /' conftest.$ac_ext >&5
15419
15420ac_lo=`expr $ac_mid + 1`
15421 if test $ac_lo -le $ac_mid; then
15422 ac_lo= ac_hi=
15423 break
15424 fi
15425 ac_mid=`expr 2 '*' $ac_mid + 1`
15426fi
15427rm -f conftest.$ac_objext conftest.$ac_ext
15428 done
15429else
15430 echo "$as_me: failed program was:" >&5
15431sed 's/^/| /' conftest.$ac_ext >&5
15432
15433cat >conftest.$ac_ext <<_ACEOF
15434#line $LINENO "configure"
15435/* confdefs.h. */
15436_ACEOF
15437cat confdefs.h >>conftest.$ac_ext
15438cat >>conftest.$ac_ext <<_ACEOF
15439/* end confdefs.h. */
15440$ac_includes_default
15441int
15442main ()
15443{
15444static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15445test_array [0] = 0
15446
15447 ;
15448 return 0;
15449}
15450_ACEOF
15451rm -f conftest.$ac_objext
15452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15453 (eval $ac_compile) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
15457 { ac_try='test -s conftest.$ac_objext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_hi=-1 ac_mid=-1
15464 while :; do
15465 cat >conftest.$ac_ext <<_ACEOF
15466#line $LINENO "configure"
15467/* confdefs.h. */
15468_ACEOF
15469cat confdefs.h >>conftest.$ac_ext
15470cat >>conftest.$ac_ext <<_ACEOF
15471/* end confdefs.h. */
15472$ac_includes_default
15473int
15474main ()
15475{
15476static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15477test_array [0] = 0
15478
15479 ;
15480 return 0;
15481}
15482_ACEOF
15483rm -f conftest.$ac_objext
15484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15485 (eval $ac_compile) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); } &&
15489 { ac_try='test -s conftest.$ac_objext'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 ac_lo=$ac_mid; break
15496else
15497 echo "$as_me: failed program was:" >&5
15498sed 's/^/| /' conftest.$ac_ext >&5
15499
15500ac_hi=`expr '(' $ac_mid ')' - 1`
15501 if test $ac_mid -le $ac_hi; then
15502 ac_lo= ac_hi=
15503 break
15504 fi
15505 ac_mid=`expr 2 '*' $ac_mid`
15506fi
15507rm -f conftest.$ac_objext conftest.$ac_ext
15508 done
15509else
15510 echo "$as_me: failed program was:" >&5
15511sed 's/^/| /' conftest.$ac_ext >&5
15512
15513ac_lo= ac_hi=
15514fi
15515rm -f conftest.$ac_objext conftest.$ac_ext
15516fi
15517rm -f conftest.$ac_objext conftest.$ac_ext
15518# Binary search between lo and hi bounds.
15519while test "x$ac_lo" != "x$ac_hi"; do
15520 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15521 cat >conftest.$ac_ext <<_ACEOF
15522#line $LINENO "configure"
15523/* confdefs.h. */
15524_ACEOF
15525cat confdefs.h >>conftest.$ac_ext
15526cat >>conftest.$ac_ext <<_ACEOF
15527/* end confdefs.h. */
15528$ac_includes_default
15529int
15530main ()
15531{
15532static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15533test_array [0] = 0
15534
15535 ;
15536 return 0;
15537}
15538_ACEOF
15539rm -f conftest.$ac_objext
15540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15541 (eval $ac_compile) 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try='test -s conftest.$ac_objext'
15546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15547 (eval $ac_try) 2>&5
15548 ac_status=$?
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); }; }; then
15551 ac_hi=$ac_mid
15552else
15553 echo "$as_me: failed program was:" >&5
15554sed 's/^/| /' conftest.$ac_ext >&5
15555
15556ac_lo=`expr '(' $ac_mid ')' + 1`
15557fi
15558rm -f conftest.$ac_objext conftest.$ac_ext
15559done
15560case $ac_lo in
15561?*) ac_cv_sizeof_long_long=$ac_lo;;
15562'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15563See \`config.log' for more details." >&5
15564echo "$as_me: error: cannot compute sizeof (long long), 77
15565See \`config.log' for more details." >&2;}
15566 { (exit 1); exit 1; }; } ;;
15567esac
a0b9e27f 15568else
e6cc62c6
VS
15569 if test "$cross_compiling" = yes; then
15570 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15571See \`config.log' for more details." >&5
15572echo "$as_me: error: cannot run test program while cross compiling
15573See \`config.log' for more details." >&2;}
15574 { (exit 1); exit 1; }; }
15575else
15576 cat >conftest.$ac_ext <<_ACEOF
15577#line $LINENO "configure"
15578/* confdefs.h. */
15579_ACEOF
15580cat confdefs.h >>conftest.$ac_ext
15581cat >>conftest.$ac_ext <<_ACEOF
15582/* end confdefs.h. */
15583$ac_includes_default
15584long longval () { return (long) (sizeof (long long)); }
15585unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15586#include <stdio.h>
e6cc62c6
VS
15587#include <stdlib.h>
15588int
15589main ()
247f5006 15590{
e6cc62c6
VS
15591
15592 FILE *f = fopen ("conftest.val", "w");
15593 if (! f)
15594 exit (1);
15595 if (((long) (sizeof (long long))) < 0)
15596 {
15597 long i = longval ();
15598 if (i != ((long) (sizeof (long long))))
15599 exit (1);
15600 fprintf (f, "%ld\n", i);
15601 }
15602 else
15603 {
15604 unsigned long i = ulongval ();
15605 if (i != ((long) (sizeof (long long))))
15606 exit (1);
15607 fprintf (f, "%lu\n", i);
15608 }
15609 exit (ferror (f) || fclose (f) != 0);
15610
15611 ;
15612 return 0;
247f5006 15613}
e6cc62c6
VS
15614_ACEOF
15615rm -f conftest$ac_exeext
15616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15617 (eval $ac_link) 2>&5
15618 ac_status=$?
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15623 ac_status=$?
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; }; then
15626 ac_cv_sizeof_long_long=`cat conftest.val`
15627else
15628 echo "$as_me: program exited with status $ac_status" >&5
15629echo "$as_me: failed program was:" >&5
15630sed 's/^/| /' conftest.$ac_ext >&5
15631
15632( exit $ac_status )
15633{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15634See \`config.log' for more details." >&5
15635echo "$as_me: error: cannot compute sizeof (long long), 77
15636See \`config.log' for more details." >&2;}
15637 { (exit 1); exit 1; }; }
15638fi
15639rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15640fi
15641fi
15642rm -f conftest.val
7b4a847f 15643else
a0b9e27f 15644 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15645fi
15646fi
e6cc62c6
VS
15647echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15648echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15649cat >>confdefs.h <<_ACEOF
15650#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15651_ACEOF
15652
15653
15654 ;;
15655 *-hp-hpux* )
15656 echo "$as_me:$LINENO: checking for long long" >&5
15657echo $ECHO_N "checking for long long... $ECHO_C" >&6
15658if test "${ac_cv_type_long_long+set}" = set; then
15659 echo $ECHO_N "(cached) $ECHO_C" >&6
15660else
15661 cat >conftest.$ac_ext <<_ACEOF
15662#line $LINENO "configure"
15663/* confdefs.h. */
15664_ACEOF
15665cat confdefs.h >>conftest.$ac_ext
15666cat >>conftest.$ac_ext <<_ACEOF
15667/* end confdefs.h. */
15668$ac_includes_default
15669int
15670main ()
15671{
15672if ((long long *) 0)
15673 return 0;
15674if (sizeof (long long))
15675 return 0;
15676 ;
15677 return 0;
15678}
15679_ACEOF
15680rm -f conftest.$ac_objext
15681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15682 (eval $ac_compile) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } &&
15686 { ac_try='test -s conftest.$ac_objext'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15692 ac_cv_type_long_long=yes
15693else
15694 echo "$as_me: failed program was:" >&5
15695sed 's/^/| /' conftest.$ac_ext >&5
15696
15697ac_cv_type_long_long=no
15698fi
15699rm -f conftest.$ac_objext conftest.$ac_ext
15700fi
15701echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15702echo "${ECHO_T}$ac_cv_type_long_long" >&6
15703
15704echo "$as_me:$LINENO: checking size of long long" >&5
15705echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15706if test "${ac_cv_sizeof_long_long+set}" = set; then
15707 echo $ECHO_N "(cached) $ECHO_C" >&6
15708else
15709 if test "$ac_cv_type_long_long" = yes; then
15710 # The cast to unsigned long works around a bug in the HP C Compiler
15711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15713 # This bug is HP SR number 8606223364.
15714 if test "$cross_compiling" = yes; then
15715 # Depending upon the size, compute the lo and hi bounds.
15716cat >conftest.$ac_ext <<_ACEOF
15717#line $LINENO "configure"
15718/* confdefs.h. */
15719_ACEOF
15720cat confdefs.h >>conftest.$ac_ext
15721cat >>conftest.$ac_ext <<_ACEOF
15722/* end confdefs.h. */
15723$ac_includes_default
15724int
15725main ()
15726{
15727static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15728test_array [0] = 0
15729
15730 ;
15731 return 0;
15732}
15733_ACEOF
15734rm -f conftest.$ac_objext
15735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15736 (eval $ac_compile) 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } &&
15740 { ac_try='test -s conftest.$ac_objext'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; }; then
15746 ac_lo=0 ac_mid=0
15747 while :; do
15748 cat >conftest.$ac_ext <<_ACEOF
15749#line $LINENO "configure"
15750/* confdefs.h. */
15751_ACEOF
15752cat confdefs.h >>conftest.$ac_ext
15753cat >>conftest.$ac_ext <<_ACEOF
15754/* end confdefs.h. */
15755$ac_includes_default
15756int
15757main ()
15758{
15759static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15760test_array [0] = 0
8284b0c5 15761
e6cc62c6
VS
15762 ;
15763 return 0;
15764}
15765_ACEOF
15766rm -f conftest.$ac_objext
15767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15768 (eval $ac_compile) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } &&
15772 { ac_try='test -s conftest.$ac_objext'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15775 ac_status=$?
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }; then
15778 ac_hi=$ac_mid; break
15779else
15780 echo "$as_me: failed program was:" >&5
15781sed 's/^/| /' conftest.$ac_ext >&5
15782
15783ac_lo=`expr $ac_mid + 1`
15784 if test $ac_lo -le $ac_mid; then
15785 ac_lo= ac_hi=
15786 break
15787 fi
15788 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 15789fi
e6cc62c6
VS
15790rm -f conftest.$ac_objext conftest.$ac_ext
15791 done
15792else
15793 echo "$as_me: failed program was:" >&5
15794sed 's/^/| /' conftest.$ac_ext >&5
15795
15796cat >conftest.$ac_ext <<_ACEOF
15797#line $LINENO "configure"
15798/* confdefs.h. */
15799_ACEOF
15800cat confdefs.h >>conftest.$ac_ext
15801cat >>conftest.$ac_ext <<_ACEOF
15802/* end confdefs.h. */
15803$ac_includes_default
15804int
15805main ()
15806{
15807static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15808test_array [0] = 0
a0b9e27f 15809
e6cc62c6
VS
15810 ;
15811 return 0;
15812}
15813_ACEOF
15814rm -f conftest.$ac_objext
15815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15816 (eval $ac_compile) 2>&5
15817 ac_status=$?
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } &&
15820 { ac_try='test -s conftest.$ac_objext'
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15823 ac_status=$?
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; }; then
15826 ac_hi=-1 ac_mid=-1
15827 while :; do
15828 cat >conftest.$ac_ext <<_ACEOF
15829#line $LINENO "configure"
15830/* confdefs.h. */
15831_ACEOF
15832cat confdefs.h >>conftest.$ac_ext
15833cat >>conftest.$ac_ext <<_ACEOF
15834/* end confdefs.h. */
15835$ac_includes_default
15836int
15837main ()
15838{
15839static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15840test_array [0] = 0
a0b9e27f 15841
e6cc62c6
VS
15842 ;
15843 return 0;
15844}
15845_ACEOF
15846rm -f conftest.$ac_objext
15847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15848 (eval $ac_compile) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } &&
15852 { ac_try='test -s conftest.$ac_objext'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15858 ac_lo=$ac_mid; break
15859else
15860 echo "$as_me: failed program was:" >&5
15861sed 's/^/| /' conftest.$ac_ext >&5
15862
15863ac_hi=`expr '(' $ac_mid ')' - 1`
15864 if test $ac_mid -le $ac_hi; then
15865 ac_lo= ac_hi=
15866 break
15867 fi
15868 ac_mid=`expr 2 '*' $ac_mid`
15869fi
15870rm -f conftest.$ac_objext conftest.$ac_ext
15871 done
8284b0c5 15872else
e6cc62c6
VS
15873 echo "$as_me: failed program was:" >&5
15874sed 's/^/| /' conftest.$ac_ext >&5
15875
15876ac_lo= ac_hi=
15877fi
15878rm -f conftest.$ac_objext conftest.$ac_ext
15879fi
15880rm -f conftest.$ac_objext conftest.$ac_ext
15881# Binary search between lo and hi bounds.
15882while test "x$ac_lo" != "x$ac_hi"; do
15883 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15884 cat >conftest.$ac_ext <<_ACEOF
15885#line $LINENO "configure"
15886/* confdefs.h. */
15887_ACEOF
15888cat confdefs.h >>conftest.$ac_ext
15889cat >>conftest.$ac_ext <<_ACEOF
15890/* end confdefs.h. */
15891$ac_includes_default
15892int
15893main ()
15894{
15895static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15896test_array [0] = 0
15897
15898 ;
15899 return 0;
15900}
15901_ACEOF
15902rm -f conftest.$ac_objext
15903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15904 (eval $ac_compile) 2>&5
15905 ac_status=$?
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } &&
15908 { ac_try='test -s conftest.$ac_objext'
15909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910 (eval $ac_try) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; }; then
15914 ac_hi=$ac_mid
15915else
15916 echo "$as_me: failed program was:" >&5
15917sed 's/^/| /' conftest.$ac_ext >&5
15918
15919ac_lo=`expr '(' $ac_mid ')' + 1`
15920fi
15921rm -f conftest.$ac_objext conftest.$ac_ext
15922done
15923case $ac_lo in
15924?*) ac_cv_sizeof_long_long=$ac_lo;;
15925'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15926See \`config.log' for more details." >&5
15927echo "$as_me: error: cannot compute sizeof (long long), 77
15928See \`config.log' for more details." >&2;}
15929 { (exit 1); exit 1; }; } ;;
15930esac
8284b0c5 15931else
e6cc62c6
VS
15932 if test "$cross_compiling" = yes; then
15933 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15934See \`config.log' for more details." >&5
15935echo "$as_me: error: cannot run test program while cross compiling
15936See \`config.log' for more details." >&2;}
15937 { (exit 1); exit 1; }; }
15938else
15939 cat >conftest.$ac_ext <<_ACEOF
15940#line $LINENO "configure"
15941/* confdefs.h. */
15942_ACEOF
15943cat confdefs.h >>conftest.$ac_ext
15944cat >>conftest.$ac_ext <<_ACEOF
15945/* end confdefs.h. */
15946$ac_includes_default
15947long longval () { return (long) (sizeof (long long)); }
15948unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 15949#include <stdio.h>
e6cc62c6
VS
15950#include <stdlib.h>
15951int
15952main ()
8284b0c5 15953{
e6cc62c6
VS
15954
15955 FILE *f = fopen ("conftest.val", "w");
15956 if (! f)
15957 exit (1);
15958 if (((long) (sizeof (long long))) < 0)
15959 {
15960 long i = longval ();
15961 if (i != ((long) (sizeof (long long))))
15962 exit (1);
15963 fprintf (f, "%ld\n", i);
15964 }
15965 else
15966 {
15967 unsigned long i = ulongval ();
15968 if (i != ((long) (sizeof (long long))))
15969 exit (1);
15970 fprintf (f, "%lu\n", i);
15971 }
15972 exit (ferror (f) || fclose (f) != 0);
15973
15974 ;
15975 return 0;
8284b0c5 15976}
e6cc62c6
VS
15977_ACEOF
15978rm -f conftest$ac_exeext
15979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15980 (eval $ac_link) 2>&5
15981 ac_status=$?
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15986 ac_status=$?
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; }; then
15989 ac_cv_sizeof_long_long=`cat conftest.val`
15990else
15991 echo "$as_me: program exited with status $ac_status" >&5
15992echo "$as_me: failed program was:" >&5
15993sed 's/^/| /' conftest.$ac_ext >&5
15994
15995( exit $ac_status )
15996{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15997See \`config.log' for more details." >&5
15998echo "$as_me: error: cannot compute sizeof (long long), 77
15999See \`config.log' for more details." >&2;}
16000 { (exit 1); exit 1; }; }
16001fi
16002rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16003fi
16004fi
16005rm -f conftest.val
5c6fa7d2
RR
16006else
16007 ac_cv_sizeof_long_long=0
52127426 16008fi
4f57cf11 16009fi
e6cc62c6
VS
16010echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16011echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16012cat >>confdefs.h <<_ACEOF
4f57cf11 16013#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16014_ACEOF
4f57cf11
GD
16015
16016
16017 if test "$ac_cv_sizeof_long_long" != "0"; then
16018 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16019 fi
16020 ;;
16021 * )
e6cc62c6
VS
16022 echo "$as_me:$LINENO: checking for long long" >&5
16023echo $ECHO_N "checking for long long... $ECHO_C" >&6
16024if test "${ac_cv_type_long_long+set}" = set; then
16025 echo $ECHO_N "(cached) $ECHO_C" >&6
16026else
16027 cat >conftest.$ac_ext <<_ACEOF
16028#line $LINENO "configure"
16029/* confdefs.h. */
16030_ACEOF
16031cat confdefs.h >>conftest.$ac_ext
16032cat >>conftest.$ac_ext <<_ACEOF
16033/* end confdefs.h. */
16034$ac_includes_default
16035int
16036main ()
16037{
16038if ((long long *) 0)
16039 return 0;
16040if (sizeof (long long))
16041 return 0;
16042 ;
16043 return 0;
16044}
16045_ACEOF
16046rm -f conftest.$ac_objext
16047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16048 (eval $ac_compile) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -s conftest.$ac_objext'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 ac_cv_type_long_long=yes
16059else
16060 echo "$as_me: failed program was:" >&5
16061sed 's/^/| /' conftest.$ac_ext >&5
16062
16063ac_cv_type_long_long=no
16064fi
16065rm -f conftest.$ac_objext conftest.$ac_ext
16066fi
16067echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16068echo "${ECHO_T}$ac_cv_type_long_long" >&6
16069
16070echo "$as_me:$LINENO: checking size of long long" >&5
16071echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16072if test "${ac_cv_sizeof_long_long+set}" = set; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16074else
16075 if test "$ac_cv_type_long_long" = yes; then
16076 # The cast to unsigned long works around a bug in the HP C Compiler
16077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16079 # This bug is HP SR number 8606223364.
4f57cf11 16080 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16081 # Depending upon the size, compute the lo and hi bounds.
16082cat >conftest.$ac_ext <<_ACEOF
16083#line $LINENO "configure"
16084/* confdefs.h. */
16085_ACEOF
16086cat confdefs.h >>conftest.$ac_ext
16087cat >>conftest.$ac_ext <<_ACEOF
16088/* end confdefs.h. */
16089$ac_includes_default
16090int
16091main ()
16092{
16093static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16094test_array [0] = 0
16095
16096 ;
16097 return 0;
16098}
16099_ACEOF
16100rm -f conftest.$ac_objext
16101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16102 (eval $ac_compile) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } &&
16106 { ac_try='test -s conftest.$ac_objext'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16112 ac_lo=0 ac_mid=0
16113 while :; do
16114 cat >conftest.$ac_ext <<_ACEOF
16115#line $LINENO "configure"
16116/* confdefs.h. */
16117_ACEOF
16118cat confdefs.h >>conftest.$ac_ext
16119cat >>conftest.$ac_ext <<_ACEOF
16120/* end confdefs.h. */
16121$ac_includes_default
16122int
16123main ()
16124{
16125static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16126test_array [0] = 0
16127
16128 ;
16129 return 0;
16130}
16131_ACEOF
16132rm -f conftest.$ac_objext
16133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16134 (eval $ac_compile) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } &&
16138 { ac_try='test -s conftest.$ac_objext'
16139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140 (eval $ac_try) 2>&5
16141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 ac_hi=$ac_mid; break
16145else
16146 echo "$as_me: failed program was:" >&5
16147sed 's/^/| /' conftest.$ac_ext >&5
16148
16149ac_lo=`expr $ac_mid + 1`
16150 if test $ac_lo -le $ac_mid; then
16151 ac_lo= ac_hi=
16152 break
16153 fi
16154 ac_mid=`expr 2 '*' $ac_mid + 1`
16155fi
16156rm -f conftest.$ac_objext conftest.$ac_ext
16157 done
16158else
16159 echo "$as_me: failed program was:" >&5
16160sed 's/^/| /' conftest.$ac_ext >&5
16161
16162cat >conftest.$ac_ext <<_ACEOF
16163#line $LINENO "configure"
16164/* confdefs.h. */
16165_ACEOF
16166cat confdefs.h >>conftest.$ac_ext
16167cat >>conftest.$ac_ext <<_ACEOF
16168/* end confdefs.h. */
16169$ac_includes_default
16170int
16171main ()
16172{
16173static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16174test_array [0] = 0
16175
16176 ;
16177 return 0;
16178}
16179_ACEOF
16180rm -f conftest.$ac_objext
16181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16182 (eval $ac_compile) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
16186 { ac_try='test -s conftest.$ac_objext'
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_hi=-1 ac_mid=-1
16193 while :; do
16194 cat >conftest.$ac_ext <<_ACEOF
16195#line $LINENO "configure"
16196/* confdefs.h. */
16197_ACEOF
16198cat confdefs.h >>conftest.$ac_ext
16199cat >>conftest.$ac_ext <<_ACEOF
16200/* end confdefs.h. */
16201$ac_includes_default
16202int
16203main ()
16204{
16205static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16206test_array [0] = 0
16207
16208 ;
16209 return 0;
16210}
16211_ACEOF
16212rm -f conftest.$ac_objext
16213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16214 (eval $ac_compile) 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
16218 { ac_try='test -s conftest.$ac_objext'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16221 ac_status=$?
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
16224 ac_lo=$ac_mid; break
16225else
16226 echo "$as_me: failed program was:" >&5
16227sed 's/^/| /' conftest.$ac_ext >&5
16228
16229ac_hi=`expr '(' $ac_mid ')' - 1`
16230 if test $ac_mid -le $ac_hi; then
16231 ac_lo= ac_hi=
16232 break
16233 fi
16234 ac_mid=`expr 2 '*' $ac_mid`
16235fi
16236rm -f conftest.$ac_objext conftest.$ac_ext
16237 done
4f57cf11 16238else
e6cc62c6
VS
16239 echo "$as_me: failed program was:" >&5
16240sed 's/^/| /' conftest.$ac_ext >&5
16241
16242ac_lo= ac_hi=
16243fi
16244rm -f conftest.$ac_objext conftest.$ac_ext
16245fi
16246rm -f conftest.$ac_objext conftest.$ac_ext
16247# Binary search between lo and hi bounds.
16248while test "x$ac_lo" != "x$ac_hi"; do
16249 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16250 cat >conftest.$ac_ext <<_ACEOF
16251#line $LINENO "configure"
16252/* confdefs.h. */
16253_ACEOF
16254cat confdefs.h >>conftest.$ac_ext
16255cat >>conftest.$ac_ext <<_ACEOF
16256/* end confdefs.h. */
16257$ac_includes_default
16258int
16259main ()
16260{
16261static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16262test_array [0] = 0
16263
16264 ;
16265 return 0;
16266}
16267_ACEOF
16268rm -f conftest.$ac_objext
16269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16270 (eval $ac_compile) 2>&5
16271 ac_status=$?
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } &&
16274 { ac_try='test -s conftest.$ac_objext'
16275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276 (eval $ac_try) 2>&5
16277 ac_status=$?
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; }; then
16280 ac_hi=$ac_mid
16281else
16282 echo "$as_me: failed program was:" >&5
16283sed 's/^/| /' conftest.$ac_ext >&5
16284
16285ac_lo=`expr '(' $ac_mid ')' + 1`
16286fi
16287rm -f conftest.$ac_objext conftest.$ac_ext
16288done
16289case $ac_lo in
16290?*) ac_cv_sizeof_long_long=$ac_lo;;
16291'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16292See \`config.log' for more details." >&5
16293echo "$as_me: error: cannot compute sizeof (long long), 77
16294See \`config.log' for more details." >&2;}
16295 { (exit 1); exit 1; }; } ;;
16296esac
16297else
16298 if test "$cross_compiling" = yes; then
16299 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16300See \`config.log' for more details." >&5
16301echo "$as_me: error: cannot run test program while cross compiling
16302See \`config.log' for more details." >&2;}
16303 { (exit 1); exit 1; }; }
16304else
16305 cat >conftest.$ac_ext <<_ACEOF
16306#line $LINENO "configure"
16307/* confdefs.h. */
16308_ACEOF
16309cat confdefs.h >>conftest.$ac_ext
16310cat >>conftest.$ac_ext <<_ACEOF
16311/* end confdefs.h. */
16312$ac_includes_default
16313long longval () { return (long) (sizeof (long long)); }
16314unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16315#include <stdio.h>
e6cc62c6
VS
16316#include <stdlib.h>
16317int
16318main ()
4f57cf11 16319{
e6cc62c6
VS
16320
16321 FILE *f = fopen ("conftest.val", "w");
16322 if (! f)
16323 exit (1);
16324 if (((long) (sizeof (long long))) < 0)
16325 {
16326 long i = longval ();
16327 if (i != ((long) (sizeof (long long))))
16328 exit (1);
16329 fprintf (f, "%ld\n", i);
16330 }
16331 else
16332 {
16333 unsigned long i = ulongval ();
16334 if (i != ((long) (sizeof (long long))))
16335 exit (1);
16336 fprintf (f, "%lu\n", i);
16337 }
16338 exit (ferror (f) || fclose (f) != 0);
16339
16340 ;
16341 return 0;
4f57cf11 16342}
e6cc62c6
VS
16343_ACEOF
16344rm -f conftest$ac_exeext
16345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16346 (eval $ac_link) 2>&5
16347 ac_status=$?
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351 (eval $ac_try) 2>&5
16352 ac_status=$?
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; }; then
16355 ac_cv_sizeof_long_long=`cat conftest.val`
16356else
16357 echo "$as_me: program exited with status $ac_status" >&5
16358echo "$as_me: failed program was:" >&5
16359sed 's/^/| /' conftest.$ac_ext >&5
16360
16361( exit $ac_status )
16362{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16363See \`config.log' for more details." >&5
16364echo "$as_me: error: cannot compute sizeof (long long), 77
16365See \`config.log' for more details." >&2;}
16366 { (exit 1); exit 1; }; }
16367fi
16368rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16369fi
16370fi
16371rm -f conftest.val
4f57cf11 16372else
4f57cf11
GD
16373 ac_cv_sizeof_long_long=0
16374fi
7b4a847f 16375fi
e6cc62c6
VS
16376echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16377echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16378cat >>confdefs.h <<_ACEOF
21d1c967 16379#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16380_ACEOF
9e691f46 16381
8284b0c5 16382
21d1c967
GD
16383esac
16384
e6cc62c6
VS
16385echo "$as_me:$LINENO: checking size of wchar_t" >&5
16386echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16387if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16389else
e6cc62c6 16390
21d1c967 16391 if test "$cross_compiling" = yes; then
e6cc62c6 16392
2b5f62a0
VZ
16393 case "${host}" in
16394 *-pc-msdosdjgpp )
16395 wx_cv_sizeof_wchar_t=0
16396 ;;
16397 * )
16398 wx_cv_sizeof_wchar_t=4
16399 ;;
16400 esac
e6cc62c6
VS
16401
16402
6f72b082 16403else
e6cc62c6
VS
16404 cat >conftest.$ac_ext <<_ACEOF
16405#line $LINENO "configure"
16406/* confdefs.h. */
16407_ACEOF
16408cat confdefs.h >>conftest.$ac_ext
16409cat >>conftest.$ac_ext <<_ACEOF
16410/* end confdefs.h. */
21d1c967 16411
2b5f62a0
VZ
16412 /* DJGPP only has fake wchar_t: */
16413 #ifdef __DJGPP__
16414 # error "fake wchar_t"
16415 #endif
21d1c967
GD
16416 #ifdef HAVE_WCHAR_H
16417 # ifdef __CYGWIN__
16418 # include <stddef.h>
16419 # endif
16420 # include <wchar.h>
16421 #endif
16422 #ifdef HAVE_STDLIB_H
16423 # include <stdlib.h>
16424 #endif
16425 #include <stdio.h>
16426 int main()
16427 {
16428 FILE *f=fopen("conftestval", "w");
16429 if (!f) exit(1);
16430 fprintf(f, "%i", sizeof(wchar_t));
16431 exit(0);
16432 }
e6cc62c6
VS
16433
16434_ACEOF
16435rm -f conftest$ac_exeext
16436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16437 (eval $ac_link) 2>&5
16438 ac_status=$?
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
21d1c967 16446 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16447else
e6cc62c6
VS
16448 echo "$as_me: program exited with status $ac_status" >&5
16449echo "$as_me: failed program was:" >&5
16450sed 's/^/| /' conftest.$ac_ext >&5
16451
16452( exit $ac_status )
16453wx_cv_sizeof_wchar_t=0
6f72b082 16454fi
e6cc62c6 16455rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16456fi
6f72b082 16457
3f345b47 16458fi
e6cc62c6
VS
16459echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16460echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16461
e6cc62c6 16462cat >>confdefs.h <<_ACEOF
21d1c967 16463#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16464_ACEOF
90dd450c 16465
8284b0c5 16466
21d1c967
GD
16467# Check whether --enable-largefile or --disable-largefile was given.
16468if test "${enable_largefile+set}" = set; then
16469 enableval="$enable_largefile"
3f345b47 16470
e6cc62c6 16471fi;
21d1c967
GD
16472if test "$enable_largefile" != no; then
16473 wx_largefile=no
e6cc62c6
VS
16474
16475 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16476echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16477if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16478 echo $ECHO_N "(cached) $ECHO_C" >&6
16479else
16480
16481 cat >conftest.$ac_ext <<_ACEOF
16482#line $LINENO "configure"
16483/* confdefs.h. */
16484_ACEOF
16485cat confdefs.h >>conftest.$ac_ext
16486cat >>conftest.$ac_ext <<_ACEOF
16487/* end confdefs.h. */
21d1c967
GD
16488#define _FILE_OFFSET_BITS 64
16489 #include <sys/types.h>
e6cc62c6
VS
16490int
16491main ()
16492{
21d1c967
GD
16493typedef struct {
16494 unsigned int field: sizeof(off_t) == 8;
16495} wxlf;
16496
e6cc62c6
VS
16497 ;
16498 return 0;
16499}
16500_ACEOF
16501rm -f conftest.$ac_objext
16502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16503 (eval $ac_compile) 2>&5
16504 ac_status=$?
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); } &&
16507 { ac_try='test -s conftest.$ac_objext'
16508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16509 (eval $ac_try) 2>&5
16510 ac_status=$?
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); }; }; then
21d1c967 16513 ac_cv_sys_file_offset_bits=64
f6bcfd97 16514else
e6cc62c6
VS
16515 echo "$as_me: failed program was:" >&5
16516sed 's/^/| /' conftest.$ac_ext >&5
16517
16518ac_cv_sys_file_offset_bits=no
247f5006 16519fi
e6cc62c6
VS
16520rm -f conftest.$ac_objext conftest.$ac_ext
16521
a0b9e27f 16522
e6cc62c6
VS
16523fi
16524echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16525echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16526
16527 if test "$ac_cv_sys_file_offset_bits" != no; then
16528 wx_largefile=yes
e6cc62c6 16529 cat >>confdefs.h <<_ACEOF
21d1c967 16530#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16531_ACEOF
21d1c967
GD
16532
16533 fi
16534
16535 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16536
16537 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16538echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16539if test "${ac_cv_sys_large_files+set}" = set; then
16540 echo $ECHO_N "(cached) $ECHO_C" >&6
16541else
16542
16543 cat >conftest.$ac_ext <<_ACEOF
16544#line $LINENO "configure"
16545/* confdefs.h. */
16546_ACEOF
16547cat confdefs.h >>conftest.$ac_ext
16548cat >>conftest.$ac_ext <<_ACEOF
16549/* end confdefs.h. */
21d1c967
GD
16550#define _LARGE_FILES 1
16551 #include <sys/types.h>
e6cc62c6
VS
16552int
16553main ()
16554{
21d1c967
GD
16555typedef struct {
16556 unsigned int field: sizeof(off_t) == 8;
16557} wxlf;
16558
e6cc62c6
VS
16559 ;
16560 return 0;
16561}
16562_ACEOF
16563rm -f conftest.$ac_objext
16564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16565 (eval $ac_compile) 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } &&
16569 { ac_try='test -s conftest.$ac_objext'
16570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16571 (eval $ac_try) 2>&5
16572 ac_status=$?
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; }; then
21d1c967 16575 ac_cv_sys_large_files=1
f6bcfd97 16576else
e6cc62c6
VS
16577 echo "$as_me: failed program was:" >&5
16578sed 's/^/| /' conftest.$ac_ext >&5
16579
16580ac_cv_sys_large_files=no
247f5006 16581fi
e6cc62c6 16582rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16583
e6cc62c6
VS
16584
16585fi
16586echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16587echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16588
21d1c967
GD
16589 if test "$ac_cv_sys_large_files" != no; then
16590 wx_largefile=yes
e6cc62c6 16591 cat >>confdefs.h <<_ACEOF
21d1c967 16592#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16593_ACEOF
90dd450c 16594
90dd450c
VZ
16595 fi
16596
90dd450c 16597 fi
90dd450c 16598
e6cc62c6
VS
16599 echo "$as_me:$LINENO: checking if large file support is available" >&5
16600echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16601 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16602 cat >>confdefs.h <<\_ACEOF
21d1c967 16603#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16604_ACEOF
90dd450c 16605
90dd450c 16606 fi
e6cc62c6
VS
16607 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16608echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16609fi
90dd450c 16610
8284b0c5 16611
f02444d0 16612if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16613 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16614 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16615 else
e26c13cf 16616 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16617 fi
e26c13cf 16618 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16619fi
16620
e6cc62c6
VS
16621echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16622echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16623if test "${ac_cv_c_bigendian+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16625else
21d1c967
GD
16626 ac_cv_c_bigendian=unknown
16627# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16628cat >conftest.$ac_ext <<_ACEOF
16629#line $LINENO "configure"
16630/* confdefs.h. */
16631_ACEOF
16632cat confdefs.h >>conftest.$ac_ext
16633cat >>conftest.$ac_ext <<_ACEOF
16634/* end confdefs.h. */
21d1c967
GD
16635#include <sys/types.h>
16636#include <sys/param.h>
e6cc62c6
VS
16637int
16638main ()
16639{
21d1c967
GD
16640
16641#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16642 bogus endian macros
16643#endif
e6cc62c6
VS
16644 ;
16645 return 0;
16646}
16647_ACEOF
16648rm -f conftest.$ac_objext
16649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16650 (eval $ac_compile) 2>&5
16651 ac_status=$?
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); } &&
16654 { ac_try='test -s conftest.$ac_objext'
16655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656 (eval $ac_try) 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; }; then
21d1c967 16660 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16661cat >conftest.$ac_ext <<_ACEOF
16662#line $LINENO "configure"
16663/* confdefs.h. */
16664_ACEOF
16665cat confdefs.h >>conftest.$ac_ext
16666cat >>conftest.$ac_ext <<_ACEOF
16667/* end confdefs.h. */
21d1c967
GD
16668#include <sys/types.h>
16669#include <sys/param.h>
e6cc62c6
VS
16670int
16671main ()
16672{
21d1c967
GD
16673
16674#if BYTE_ORDER != BIG_ENDIAN
16675 not big endian
16676#endif
e6cc62c6
VS
16677 ;
16678 return 0;
16679}
16680_ACEOF
16681rm -f conftest.$ac_objext
16682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16683 (eval $ac_compile) 2>&5
16684 ac_status=$?
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } &&
16687 { ac_try='test -s conftest.$ac_objext'
16688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16689 (eval $ac_try) 2>&5
16690 ac_status=$?
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; }; then
21d1c967 16693 ac_cv_c_bigendian=yes
3f345b47 16694else
e6cc62c6
VS
16695 echo "$as_me: failed program was:" >&5
16696sed 's/^/| /' conftest.$ac_ext >&5
16697
16698ac_cv_c_bigendian=no
3f345b47 16699fi
e6cc62c6 16700rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16701else
e6cc62c6
VS
16702 echo "$as_me: failed program was:" >&5
16703sed 's/^/| /' conftest.$ac_ext >&5
16704
3f345b47 16705fi
e6cc62c6 16706rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16707if test $ac_cv_c_bigendian = unknown; then
16708if test "$cross_compiling" = yes; then
16709 ac_cv_c_bigendian=unknown
10f2d63a 16710else
e6cc62c6
VS
16711 cat >conftest.$ac_ext <<_ACEOF
16712#line $LINENO "configure"
16713/* confdefs.h. */
16714_ACEOF
16715cat confdefs.h >>conftest.$ac_ext
16716cat >>conftest.$ac_ext <<_ACEOF
16717/* end confdefs.h. */
21d1c967
GD
16718main () {
16719 /* Are we little or big endian? From Harbison&Steele. */
16720 union
16721 {
16722 long l;
16723 char c[sizeof (long)];
16724 } u;
16725 u.l = 1;
16726 exit (u.c[sizeof (long) - 1] == 1);
16727}
e6cc62c6
VS
16728_ACEOF
16729rm -f conftest$ac_exeext
16730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16731 (eval $ac_link) 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16737 ac_status=$?
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; }; then
21d1c967 16740 ac_cv_c_bigendian=no
3f345b47 16741else
e6cc62c6
VS
16742 echo "$as_me: program exited with status $ac_status" >&5
16743echo "$as_me: failed program was:" >&5
16744sed 's/^/| /' conftest.$ac_ext >&5
16745
16746( exit $ac_status )
16747ac_cv_c_bigendian=yes
247f5006 16748fi
e6cc62c6 16749rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 16750fi
3f345b47 16751fi
8168de4c 16752fi
e6cc62c6
VS
16753echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16754echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 16755if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
16756 { 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
16757echo "$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
16758fi
16759if test $ac_cv_c_bigendian = yes; then
e6cc62c6 16760 cat >>confdefs.h <<\_ACEOF
247f5006 16761#define WORDS_BIGENDIAN 1
e6cc62c6 16762_ACEOF
247f5006
VZ
16763
16764fi
16765
16766
e6cc62c6
VS
16767
16768ac_ext=cc
16769ac_cpp='$CXXCPP $CPPFLAGS'
16770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16773echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16774echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 16775if test -z "$CXXCPP"; then
e6cc62c6
VS
16776 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16778else
16779 # Double quotes because CXXCPP needs to be expanded
16780 for CXXCPP in "$CXX -E" "/lib/cpp"
16781 do
16782 ac_preproc_ok=false
16783for ac_cxx_preproc_warn_flag in '' yes
16784do
16785 # Use a header file that comes with gcc, so configuring glibc
16786 # with a fresh cross-compiler works.
16787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16788 # <limits.h> exists even on freestanding compilers.
16789 # On the NeXT, cc -E runs the code through the compiler's parser,
16790 # not just through cpp. "Syntax error" is here to catch this case.
16791 cat >conftest.$ac_ext <<_ACEOF
16792#line $LINENO "configure"
16793/* confdefs.h. */
16794_ACEOF
16795cat confdefs.h >>conftest.$ac_ext
16796cat >>conftest.$ac_ext <<_ACEOF
16797/* end confdefs.h. */
16798#ifdef __STDC__
16799# include <limits.h>
16800#else
16801# include <assert.h>
16802#endif
16803 Syntax error
16804_ACEOF
16805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16807 ac_status=$?
16808 grep -v '^ *+' conftest.er1 >conftest.err
16809 rm -f conftest.er1
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } >/dev/null; then
16813 if test -s conftest.err; then
16814 ac_cpp_err=$ac_cxx_preproc_warn_flag
16815 else
16816 ac_cpp_err=
16817 fi
247f5006 16818else
e6cc62c6
VS
16819 ac_cpp_err=yes
16820fi
16821if test -z "$ac_cpp_err"; then
16822 :
16823else
16824 echo "$as_me: failed program was:" >&5
16825sed 's/^/| /' conftest.$ac_ext >&5
16826
16827 # Broken: fails on valid input.
16828continue
16829fi
16830rm -f conftest.err conftest.$ac_ext
16831
16832 # OK, works on sane cases. Now check whether non-existent headers
16833 # can be detected and how.
16834 cat >conftest.$ac_ext <<_ACEOF
16835#line $LINENO "configure"
16836/* confdefs.h. */
16837_ACEOF
16838cat confdefs.h >>conftest.$ac_ext
16839cat >>conftest.$ac_ext <<_ACEOF
16840/* end confdefs.h. */
16841#include <ac_nonexistent.h>
16842_ACEOF
16843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16845 ac_status=$?
16846 grep -v '^ *+' conftest.er1 >conftest.err
16847 rm -f conftest.er1
16848 cat conftest.err >&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } >/dev/null; then
16851 if test -s conftest.err; then
16852 ac_cpp_err=$ac_cxx_preproc_warn_flag
16853 else
16854 ac_cpp_err=
16855 fi
16856else
16857 ac_cpp_err=yes
16858fi
16859if test -z "$ac_cpp_err"; then
16860 # Broken: success on invalid input.
16861continue
16862else
16863 echo "$as_me: failed program was:" >&5
16864sed 's/^/| /' conftest.$ac_ext >&5
16865
16866 # Passes both tests.
16867ac_preproc_ok=:
16868break
16869fi
16870rm -f conftest.err conftest.$ac_ext
16871
16872done
16873# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16874rm -f conftest.err conftest.$ac_ext
16875if $ac_preproc_ok; then
16876 break
16877fi
16878
16879 done
16880 ac_cv_prog_CXXCPP=$CXXCPP
16881
16882fi
16883 CXXCPP=$ac_cv_prog_CXXCPP
16884else
16885 ac_cv_prog_CXXCPP=$CXXCPP
16886fi
16887echo "$as_me:$LINENO: result: $CXXCPP" >&5
16888echo "${ECHO_T}$CXXCPP" >&6
16889ac_preproc_ok=false
16890for ac_cxx_preproc_warn_flag in '' yes
16891do
16892 # Use a header file that comes with gcc, so configuring glibc
16893 # with a fresh cross-compiler works.
16894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16895 # <limits.h> exists even on freestanding compilers.
16896 # On the NeXT, cc -E runs the code through the compiler's parser,
16897 # not just through cpp. "Syntax error" is here to catch this case.
16898 cat >conftest.$ac_ext <<_ACEOF
16899#line $LINENO "configure"
16900/* confdefs.h. */
16901_ACEOF
16902cat confdefs.h >>conftest.$ac_ext
16903cat >>conftest.$ac_ext <<_ACEOF
16904/* end confdefs.h. */
16905#ifdef __STDC__
16906# include <limits.h>
16907#else
16908# include <assert.h>
16909#endif
16910 Syntax error
16911_ACEOF
16912if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16914 ac_status=$?
16915 grep -v '^ *+' conftest.er1 >conftest.err
16916 rm -f conftest.er1
16917 cat conftest.err >&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } >/dev/null; then
16920 if test -s conftest.err; then
16921 ac_cpp_err=$ac_cxx_preproc_warn_flag
16922 else
16923 ac_cpp_err=
16924 fi
16925else
16926 ac_cpp_err=yes
16927fi
16928if test -z "$ac_cpp_err"; then
21d1c967 16929 :
698dcdb6 16930else
e6cc62c6
VS
16931 echo "$as_me: failed program was:" >&5
16932sed 's/^/| /' conftest.$ac_ext >&5
16933
16934 # Broken: fails on valid input.
16935continue
16936fi
16937rm -f conftest.err conftest.$ac_ext
16938
16939 # OK, works on sane cases. Now check whether non-existent headers
16940 # can be detected and how.
16941 cat >conftest.$ac_ext <<_ACEOF
16942#line $LINENO "configure"
16943/* confdefs.h. */
16944_ACEOF
16945cat confdefs.h >>conftest.$ac_ext
16946cat >>conftest.$ac_ext <<_ACEOF
16947/* end confdefs.h. */
16948#include <ac_nonexistent.h>
16949_ACEOF
16950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16952 ac_status=$?
16953 grep -v '^ *+' conftest.er1 >conftest.err
16954 rm -f conftest.er1
16955 cat conftest.err >&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } >/dev/null; then
16958 if test -s conftest.err; then
16959 ac_cpp_err=$ac_cxx_preproc_warn_flag
16960 else
16961 ac_cpp_err=
16962 fi
16963else
16964 ac_cpp_err=yes
247f5006 16965fi
e6cc62c6
VS
16966if test -z "$ac_cpp_err"; then
16967 # Broken: success on invalid input.
16968continue
16969else
16970 echo "$as_me: failed program was:" >&5
16971sed 's/^/| /' conftest.$ac_ext >&5
16972
16973 # Passes both tests.
16974ac_preproc_ok=:
16975break
328a083c 16976fi
e6cc62c6
VS
16977rm -f conftest.err conftest.$ac_ext
16978
16979done
16980# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16981rm -f conftest.err conftest.$ac_ext
16982if $ac_preproc_ok; then
16983 :
16984else
16985 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16986See \`config.log' for more details." >&5
16987echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16988See \`config.log' for more details." >&2;}
16989 { (exit 1); exit 1; }; }
90dd450c 16990fi
e6cc62c6
VS
16991
16992ac_ext=cc
16993ac_cpp='$CXXCPP $CPPFLAGS'
16994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16997
1e6feb95 16998
1725144d 16999
21d1c967 17000 if test "$cross_compiling" = "yes"; then
e6cc62c6 17001 cat >>confdefs.h <<\_ACEOF
21d1c967 17002#define wxUSE_IOSTREAMH 1
e6cc62c6 17003_ACEOF
ab9b9eab 17004
21d1c967 17005 else
e6cc62c6
VS
17006
17007
17008 ac_ext=cc
5c6fa7d2 17009ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17013
52127426 17014
247f5006 17015
e6cc62c6 17016for ac_header in iostream
21d1c967 17017do
e6cc62c6
VS
17018as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17019if eval "test \"\${$as_ac_Header+set}\" = set"; then
17020 echo "$as_me:$LINENO: checking for $ac_header" >&5
17021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17022if eval "test \"\${$as_ac_Header+set}\" = set"; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17024fi
17025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17026echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17027else
17028 # Is the header compilable?
17029echo "$as_me:$LINENO: checking $ac_header usability" >&5
17030echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17031cat >conftest.$ac_ext <<_ACEOF
17032#line $LINENO "configure"
17033/* confdefs.h. */
17034_ACEOF
17035cat confdefs.h >>conftest.$ac_ext
17036cat >>conftest.$ac_ext <<_ACEOF
17037/* end confdefs.h. */
17038$ac_includes_default
17039#include <$ac_header>
17040_ACEOF
17041rm -f conftest.$ac_objext
17042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17043 (eval $ac_compile) 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
17047 { ac_try='test -s conftest.$ac_objext'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17050 ac_status=$?
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 ac_header_compiler=yes
17054else
17055 echo "$as_me: failed program was:" >&5
17056sed 's/^/| /' conftest.$ac_ext >&5
17057
17058ac_header_compiler=no
17059fi
17060rm -f conftest.$ac_objext conftest.$ac_ext
17061echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17062echo "${ECHO_T}$ac_header_compiler" >&6
17063
17064# Is the header present?
17065echo "$as_me:$LINENO: checking $ac_header presence" >&5
17066echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17067cat >conftest.$ac_ext <<_ACEOF
17068#line $LINENO "configure"
17069/* confdefs.h. */
17070_ACEOF
17071cat confdefs.h >>conftest.$ac_ext
17072cat >>conftest.$ac_ext <<_ACEOF
17073/* end confdefs.h. */
17074#include <$ac_header>
17075_ACEOF
17076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17078 ac_status=$?
17079 grep -v '^ *+' conftest.er1 >conftest.err
17080 rm -f conftest.er1
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } >/dev/null; then
17084 if test -s conftest.err; then
17085 ac_cpp_err=$ac_cxx_preproc_warn_flag
17086 else
17087 ac_cpp_err=
17088 fi
17089else
17090 ac_cpp_err=yes
17091fi
17092if test -z "$ac_cpp_err"; then
17093 ac_header_preproc=yes
17094else
17095 echo "$as_me: failed program was:" >&5
17096sed 's/^/| /' conftest.$ac_ext >&5
17097
17098 ac_header_preproc=no
17099fi
17100rm -f conftest.err conftest.$ac_ext
17101echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17102echo "${ECHO_T}$ac_header_preproc" >&6
17103
17104# So? What about this header?
17105case $ac_header_compiler:$ac_header_preproc in
17106 yes:no )
17107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17108echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17110echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17111 (
17112 cat <<\_ASBOX
17113## ------------------------------------ ##
17114## Report this to bug-autoconf@gnu.org. ##
17115## ------------------------------------ ##
17116_ASBOX
17117 ) |
17118 sed "s/^/$as_me: WARNING: /" >&2
17119 ;;
17120 no:yes )
17121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17122echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17124echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17126echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17127 (
17128 cat <<\_ASBOX
17129## ------------------------------------ ##
17130## Report this to bug-autoconf@gnu.org. ##
17131## ------------------------------------ ##
17132_ASBOX
17133 ) |
17134 sed "s/^/$as_me: WARNING: /" >&2
17135 ;;
17136esac
17137echo "$as_me:$LINENO: checking for $ac_header" >&5
17138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17139if eval "test \"\${$as_ac_Header+set}\" = set"; then
17140 echo $ECHO_N "(cached) $ECHO_C" >&6
17141else
17142 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17143fi
e6cc62c6
VS
17144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17146
90dd450c 17147fi
e6cc62c6
VS
17148if test `eval echo '${'$as_ac_Header'}'` = yes; then
17149 cat >>confdefs.h <<_ACEOF
17150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17151_ACEOF
17152
90dd450c 17153fi
e6cc62c6 17154
21d1c967 17155done
10f2d63a 17156
8284b0c5 17157
21d1c967
GD
17158 if test "$ac_cv_header_iostream" = "yes" ; then
17159 :
17160 else
e6cc62c6 17161 cat >>confdefs.h <<\_ACEOF
21d1c967 17162#define wxUSE_IOSTREAMH 1
e6cc62c6 17163_ACEOF
788deba1 17164
90dd450c 17165 fi
ab9b9eab 17166
21d1c967 17167 ac_ext=c
21d1c967 17168ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17171ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17172
21d1c967 17173 fi
ab9b9eab 17174
52127426 17175
8284b0c5 17176
e6cc62c6
VS
17177 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17178echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17179if test "${wx_cv_cpp_bool+set}" = set; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17181else
e6cc62c6
VS
17182
17183
17184
17185 ac_ext=cc
5c6fa7d2 17186ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17190
8284b0c5 17191
e6cc62c6
VS
17192 cat >conftest.$ac_ext <<_ACEOF
17193#line $LINENO "configure"
17194/* confdefs.h. */
17195_ACEOF
17196cat confdefs.h >>conftest.$ac_ext
17197cat >>conftest.$ac_ext <<_ACEOF
17198/* end confdefs.h. */
21d1c967 17199
e6cc62c6
VS
17200
17201int
17202main ()
17203{
21d1c967
GD
17204
17205 bool b = true;
17206
17207 return 0;
e6cc62c6
VS
17208
17209 ;
17210 return 0;
17211}
17212_ACEOF
17213rm -f conftest.$ac_objext
17214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17215 (eval $ac_compile) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } &&
17219 { ac_try='test -s conftest.$ac_objext'
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225
21d1c967 17226 wx_cv_cpp_bool=yes
e6cc62c6 17227
698dcdb6 17228else
e6cc62c6
VS
17229 echo "$as_me: failed program was:" >&5
17230sed 's/^/| /' conftest.$ac_ext >&5
17231
17232
21d1c967 17233 wx_cv_cpp_bool=no
e6cc62c6
VS
17234
17235
698dcdb6 17236fi
e6cc62c6 17237rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17238
17239 ac_ext=c
21d1c967 17240ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17243ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17244
a0b9e27f 17245
e6cc62c6
VS
17246fi
17247echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17248echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17249
17250 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17251 cat >>confdefs.h <<\_ACEOF
21d1c967 17252#define HAVE_BOOL 1
e6cc62c6 17253_ACEOF
ab9b9eab 17254
21d1c967
GD
17255 fi
17256
52127426 17257
8284b0c5 17258
e6cc62c6
VS
17259 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17260echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17261if test "${wx_cv_explicit+set}" = set; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17263else
e6cc62c6
VS
17264
17265
17266
17267 ac_ext=cc
5c6fa7d2 17268ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17272
8284b0c5 17273
e6cc62c6
VS
17274 cat >conftest.$ac_ext <<_ACEOF
17275#line $LINENO "configure"
17276/* confdefs.h. */
17277_ACEOF
17278cat confdefs.h >>conftest.$ac_ext
17279cat >>conftest.$ac_ext <<_ACEOF
17280/* end confdefs.h. */
986ecc86
VZ
17281
17282 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17283
17284int
17285main ()
17286{
986ecc86
VZ
17287
17288 return 0;
e6cc62c6
VS
17289
17290 ;
17291 return 0;
17292}
17293_ACEOF
17294rm -f conftest.$ac_objext
17295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17296 (eval $ac_compile) 2>&5
17297 ac_status=$?
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } &&
17300 { ac_try='test -s conftest.$ac_objext'
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17303 ac_status=$?
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; }; then
17306
17307 cat >conftest.$ac_ext <<_ACEOF
17308#line $LINENO "configure"
17309/* confdefs.h. */
17310_ACEOF
17311cat confdefs.h >>conftest.$ac_ext
17312cat >>conftest.$ac_ext <<_ACEOF
17313/* end confdefs.h. */
986ecc86
VZ
17314
17315 class Foo { public: explicit Foo(int) {} };
17316 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17317
17318int
17319main ()
17320{
986ecc86
VZ
17321
17322 TakeFoo(17);
17323 return 0;
e6cc62c6
VS
17324
17325 ;
17326 return 0;
17327}
17328_ACEOF
17329rm -f conftest.$ac_objext
17330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17331 (eval $ac_compile) 2>&5
17332 ac_status=$?
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); } &&
17335 { ac_try='test -s conftest.$ac_objext'
17336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337 (eval $ac_try) 2>&5
17338 ac_status=$?
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; }; then
986ecc86
VZ
17341 wx_cv_explicit=no
17342else
e6cc62c6
VS
17343 echo "$as_me: failed program was:" >&5
17344sed 's/^/| /' conftest.$ac_ext >&5
17345
17346wx_cv_explicit=yes
17347
986ecc86 17348fi
e6cc62c6
VS
17349rm -f conftest.$ac_objext conftest.$ac_ext
17350
986ecc86 17351else
e6cc62c6
VS
17352 echo "$as_me: failed program was:" >&5
17353sed 's/^/| /' conftest.$ac_ext >&5
17354
17355wx_cv_explicit=no
17356
986ecc86 17357fi
e6cc62c6 17358rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17359
17360 ac_ext=c
986ecc86 17361ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17364ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17365
a0b9e27f 17366
e6cc62c6
VS
17367fi
17368echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17369echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17370
17371 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17372 cat >>confdefs.h <<\_ACEOF
986ecc86 17373#define HAVE_EXPLICIT 1
e6cc62c6 17374_ACEOF
986ecc86
VZ
17375
17376 fi
17377
8284b0c5 17378
e6cc62c6
VS
17379echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17380echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17381if test "${ac_cv_cxx_const_cast+set}" = set; then
17382 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17383else
521196a2 17384
521196a2 17385
e6cc62c6
VS
17386 ac_ext=cc
17387ac_cpp='$CXXCPP $CPPFLAGS'
17388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17391
17392 cat >conftest.$ac_ext <<_ACEOF
17393#line $LINENO "configure"
17394/* confdefs.h. */
17395_ACEOF
17396cat confdefs.h >>conftest.$ac_ext
17397cat >>conftest.$ac_ext <<_ACEOF
17398/* end confdefs.h. */
17399
17400int
17401main ()
17402{
521196a2 17403int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17404 ;
17405 return 0;
17406}
17407_ACEOF
17408rm -f conftest.$ac_objext
17409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17410 (eval $ac_compile) 2>&5
17411 ac_status=$?
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } &&
17414 { ac_try='test -s conftest.$ac_objext'
17415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; }; then
521196a2
MB
17420 ac_cv_cxx_const_cast=yes
17421else
e6cc62c6
VS
17422 echo "$as_me: failed program was:" >&5
17423sed 's/^/| /' conftest.$ac_ext >&5
17424
17425ac_cv_cxx_const_cast=no
521196a2 17426fi
e6cc62c6 17427rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17428 ac_ext=c
521196a2 17429ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17432ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17433
17434
17435fi
e6cc62c6
VS
17436echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17437echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17438if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17439
17440cat >>confdefs.h <<\_ACEOF
17441#define HAVE_CONST_CAST
17442_ACEOF
521196a2
MB
17443
17444fi
17445
17446
e87b7833
MB
17447if test "$wxUSE_STL" = "yes"; then
17448 ac_ext=cc
17449ac_cpp='$CXXCPP $CPPFLAGS'
17450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17453
17454
17455 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17456echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
17457 cat >conftest.$ac_ext <<_ACEOF
17458#line $LINENO "configure"
17459/* confdefs.h. */
17460_ACEOF
17461cat confdefs.h >>conftest.$ac_ext
17462cat >>conftest.$ac_ext <<_ACEOF
17463/* end confdefs.h. */
17464#include <string>
17465 #include <functional>
17466 #include <algorithm>
17467 #include <vector>
17468 #include <list>
17469int
17470main ()
17471{
17472std::vector<int> moo;
17473 std::list<int> foo;
17474 std::vector<int>::iterator it =
17475 std::find_if(moo.begin(), moo.end(),
17476 std::bind2nd(std::less<int>(), 3));
17477 ;
17478 return 0;
17479}
17480_ACEOF
17481rm -f conftest.$ac_objext
17482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17483 (eval $ac_compile) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } &&
17487 { ac_try='test -s conftest.$ac_objext'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 echo "$as_me:$LINENO: result: yes" >&5
17494echo "${ECHO_T}yes" >&6
17495else
17496 echo "$as_me: failed program was:" >&5
17497sed 's/^/| /' conftest.$ac_ext >&5
17498
17499echo "$as_me:$LINENO: result: no" >&5
17500echo "${ECHO_T}no" >&6
17501 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17502echo "$as_me: error: Basic STL functionality missing" >&2;}
17503 { (exit 1); exit 1; }; }
17504fi
17505rm -f conftest.$ac_objext conftest.$ac_ext
17506
17507 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17508echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17509 cat >conftest.$ac_ext <<_ACEOF
17510#line $LINENO "configure"
17511/* confdefs.h. */
17512_ACEOF
17513cat confdefs.h >>conftest.$ac_ext
17514cat >>conftest.$ac_ext <<_ACEOF
17515/* end confdefs.h. */
17516#include <string>
17517int
17518main ()
17519{
17520std::wstring foo;
17521 ;
17522 return 0;
17523}
17524_ACEOF
17525rm -f conftest.$ac_objext
17526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17527 (eval $ac_compile) 2>&5
17528 ac_status=$?
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } &&
17531 { ac_try='test -s conftest.$ac_objext'
17532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17533 (eval $ac_try) 2>&5
17534 ac_status=$?
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; }; then
17537 echo "$as_me:$LINENO: result: yes" >&5
17538echo "${ECHO_T}yes" >&6
17539 cat >>confdefs.h <<\_ACEOF
17540#define HAVE_STD_WSTRING 1
17541_ACEOF
17542
17543else
17544 echo "$as_me: failed program was:" >&5
17545sed 's/^/| /' conftest.$ac_ext >&5
17546
17547echo "$as_me:$LINENO: result: no" >&5
17548echo "${ECHO_T}no" >&6
17549fi
17550rm -f conftest.$ac_objext conftest.$ac_ext
17551
17552 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17553echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17554 cat >conftest.$ac_ext <<_ACEOF
17555#line $LINENO "configure"
17556/* confdefs.h. */
17557_ACEOF
17558cat confdefs.h >>conftest.$ac_ext
17559cat >>conftest.$ac_ext <<_ACEOF
17560/* end confdefs.h. */
17561#include <string>
17562int
17563main ()
17564{
17565std::string foo, bar;
17566 foo.compare(bar);
17567 foo.compare(1, 1, bar);
17568 foo.compare(1, 1, bar, 1, 1);
17569 foo.compare("");
17570 foo.compare(1, 1, "");
17571 foo.compare(1, 1, "", 2);
17572 ;
17573 return 0;
17574}
17575_ACEOF
17576rm -f conftest.$ac_objext
17577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17578 (eval $ac_compile) 2>&5
17579 ac_status=$?
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } &&
17582 { ac_try='test -s conftest.$ac_objext'
17583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17584 (eval $ac_try) 2>&5
17585 ac_status=$?
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 echo "$as_me:$LINENO: result: yes" >&5
17589echo "${ECHO_T}yes" >&6
17590 cat >>confdefs.h <<\_ACEOF
17591#define HAVE_STD_STRING_COMPARE 1
17592_ACEOF
17593
17594else
17595 echo "$as_me: failed program was:" >&5
17596sed 's/^/| /' conftest.$ac_ext >&5
17597
17598echo "$as_me:$LINENO: result: no" >&5
17599echo "${ECHO_T}no" >&6
17600fi
17601rm -f conftest.$ac_objext conftest.$ac_ext
17602
17603 ac_ext=c
17604ac_cpp='$CPP $CPPFLAGS'
17605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17607ac_compiler_gnu=$ac_cv_c_compiler_gnu
17608
17609fi
17610
8284b0c5 17611
21d1c967
GD
17612SEARCH_INCLUDE="\
17613 /usr/local/include \
17614 \
17615 /usr/Motif-1.2/include \
17616 /usr/Motif-2.1/include \
17617 \
17618 /usr/include/Motif1.2 \
17619 /opt/xpm/include/X11 \
17620 /opt/GBxpm/include/ \
17621 /opt/GBxpm/X11/include/ \
17622 \
17623 /usr/Motif1.2/include \
17624 /usr/dt/include \
17625 /usr/openwin/include \
17626 \
17627 /usr/include/Xm \
17628 \
17629 /usr/X11R6/include \
17630 /usr/X11R6.4/include \
17631 /usr/X11R5/include \
17632 /usr/X11R4/include \
17633 \
17634 /usr/include/X11R6 \
17635 /usr/include/X11R5 \
17636 /usr/include/X11R4 \
17637 \
17638 /usr/local/X11R6/include \
17639 /usr/local/X11R5/include \
17640 /usr/local/X11R4/include \
17641 \
17642 /usr/local/include/X11R6 \
17643 /usr/local/include/X11R5 \
17644 /usr/local/include/X11R4 \
17645 \
17646 /usr/X11/include \
17647 /usr/include/X11 \
17648 /usr/local/X11/include \
17649 /usr/local/include/X11 \
17650 \
17651 /usr/X386/include \
17652 /usr/x386/include \
17653 /usr/XFree86/include/X11 \
17654 \
17655 X:/XFree86/include \
17656 X:/XFree86/include/X11 \
17657 \
17658 /usr/include/gtk \
17659 /usr/local/include/gtk \
17660 /usr/include/glib \
17661 /usr/local/include/glib \
17662 \
17663 /usr/include/qt \
17664 /usr/local/include/qt \
17665 \
17666 /usr/include/windows \
17667 /usr/include/wine \
17668 /usr/local/include/wine \
17669 \
17670 /usr/unsupported/include \
17671 /usr/athena/include \
17672 /usr/local/x11r5/include \
17673 /usr/lpp/Xamples/include \
17674 \
2b5f62a0 17675 /usr/openwin/share/include"
21d1c967
GD
17676
17677SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17678
8284b0c5 17679
e6cc62c6 17680cat >confcache <<\_ACEOF
21d1c967
GD
17681# This file is a shell script that caches the results of configure
17682# tests run on this system so they can be shared between configure
e6cc62c6
VS
17683# scripts and configure runs, see configure's option --config-cache.
17684# It is not useful on other systems. If it contains results you don't
17685# want to keep, you may remove or edit it.
21d1c967 17686#
e6cc62c6
VS
17687# config.status only pays attention to the cache file if you give it
17688# the --recheck option to rerun configure.
21d1c967 17689#
e6cc62c6
VS
17690# `ac_cv_env_foo' variables (set or unset) will be overridden when
17691# loading this file, other *unset* `ac_cv_foo' will be assigned the
17692# following values.
17693
17694_ACEOF
17695
21d1c967
GD
17696# The following way of writing the cache mishandles newlines in values,
17697# but we know of no workaround that is simple, portable, and efficient.
17698# So, don't put newlines in cache variables' values.
17699# Ultrix sh set writes to stderr and can't be redirected directly,
17700# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17701{
17702 (set) 2>&1 |
17703 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17704 *ac_space=\ *)
17705 # `set' does not quote correctly, so add quotes (double-quote
17706 # substitution turns \\\\ into \\, and sed turns \\ into \).
17707 sed -n \
17708 "s/'/'\\\\''/g;
17709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17710 ;;
17711 *)
17712 # `set' quotes correctly as required by POSIX, so do not add quotes.
17713 sed -n \
17714 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17715 ;;
17716 esac;
17717} |
17718 sed '
17719 t clear
17720 : clear
17721 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17722 t end
17723 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17724 : end' >>confcache
17725if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17726 if test -w $cache_file; then
e6cc62c6
VS
17727 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17728 cat confcache >$cache_file
21d1c967
GD
17729 else
17730 echo "not updating unwritable cache $cache_file"
17731 fi
ab9b9eab 17732fi
21d1c967 17733rm -f confcache
ab9b9eab 17734
fe0895cf 17735if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
17736 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17737echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17738if test "${wx_cv_lib_glibc21+set}" = set; then
17739 echo $ECHO_N "(cached) $ECHO_C" >&6
17740else
17741
17742 cat >conftest.$ac_ext <<_ACEOF
17743#line $LINENO "configure"
17744/* confdefs.h. */
17745_ACEOF
17746cat confdefs.h >>conftest.$ac_ext
17747cat >>conftest.$ac_ext <<_ACEOF
17748/* end confdefs.h. */
21d1c967 17749#include <features.h>
e6cc62c6
VS
17750int
17751main ()
17752{
ab9b9eab 17753
21d1c967
GD
17754 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17755 #error not glibc2.1
17756 #endif
e6cc62c6
VS
17757
17758 ;
17759 return 0;
17760}
17761_ACEOF
17762rm -f conftest.$ac_objext
17763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17764 (eval $ac_compile) 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } &&
17768 { ac_try='test -s conftest.$ac_objext'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; }; then
17774
21d1c967 17775 wx_cv_lib_glibc21=yes
e6cc62c6 17776
698dcdb6 17777else
e6cc62c6
VS
17778 echo "$as_me: failed program was:" >&5
17779sed 's/^/| /' conftest.$ac_ext >&5
17780
17781
21d1c967 17782 wx_cv_lib_glibc21=no
e6cc62c6
VS
17783
17784
247f5006 17785fi
e6cc62c6 17786rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17787
e6cc62c6
VS
17788fi
17789echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
17790echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 17791 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 17792 cat >>confdefs.h <<\_ACEOF
21d1c967 17793#define wxHAVE_GLIBC2 1
e6cc62c6 17794_ACEOF
1e487827 17795
90dd450c 17796 fi
ab9b9eab
VZ
17797fi
17798
5c0a20c3
VZ
17799if test "x$wx_cv_lib_glibc21" = "xyes"; then
17800 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 17801 cat >>confdefs.h <<\_ACEOF
5c0a20c3 17802#define _GNU_SOURCE 1
e6cc62c6 17803_ACEOF
5c0a20c3
VZ
17804
17805 fi
17806fi
17807
8284b0c5
MB
17808
17809
21d1c967
GD
17810REGEX_INCLUDE=
17811if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 17812 cat >>confdefs.h <<\_ACEOF
21d1c967 17813#define wxUSE_REGEX 1
e6cc62c6 17814_ACEOF
698dcdb6 17815
8284b0c5 17816
21d1c967 17817 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
17818 if test "${ac_cv_header_regex_h+set}" = set; then
17819 echo "$as_me:$LINENO: checking for regex.h" >&5
17820echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17821if test "${ac_cv_header_regex_h+set}" = set; then
17822 echo $ECHO_N "(cached) $ECHO_C" >&6
17823fi
17824echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17825echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17826else
17827 # Is the header compilable?
17828echo "$as_me:$LINENO: checking regex.h usability" >&5
17829echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
17830cat >conftest.$ac_ext <<_ACEOF
17831#line $LINENO "configure"
17832/* confdefs.h. */
17833_ACEOF
17834cat confdefs.h >>conftest.$ac_ext
17835cat >>conftest.$ac_ext <<_ACEOF
17836/* end confdefs.h. */
17837$ac_includes_default
247f5006 17838#include <regex.h>
e6cc62c6
VS
17839_ACEOF
17840rm -f conftest.$ac_objext
17841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17842 (eval $ac_compile) 2>&5
17843 ac_status=$?
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } &&
17846 { ac_try='test -s conftest.$ac_objext'
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17849 ac_status=$?
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; }; then
17852 ac_header_compiler=yes
17853else
17854 echo "$as_me: failed program was:" >&5
17855sed 's/^/| /' conftest.$ac_ext >&5
17856
17857ac_header_compiler=no
17858fi
17859rm -f conftest.$ac_objext conftest.$ac_ext
17860echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17861echo "${ECHO_T}$ac_header_compiler" >&6
17862
17863# Is the header present?
17864echo "$as_me:$LINENO: checking regex.h presence" >&5
17865echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
17866cat >conftest.$ac_ext <<_ACEOF
17867#line $LINENO "configure"
17868/* confdefs.h. */
17869_ACEOF
17870cat confdefs.h >>conftest.$ac_ext
17871cat >>conftest.$ac_ext <<_ACEOF
17872/* end confdefs.h. */
17873#include <regex.h>
17874_ACEOF
17875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17877 ac_status=$?
17878 grep -v '^ *+' conftest.er1 >conftest.err
17879 rm -f conftest.er1
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } >/dev/null; then
17883 if test -s conftest.err; then
17884 ac_cpp_err=$ac_c_preproc_warn_flag
17885 else
17886 ac_cpp_err=
17887 fi
17888else
17889 ac_cpp_err=yes
17890fi
17891if test -z "$ac_cpp_err"; then
17892 ac_header_preproc=yes
17893else
17894 echo "$as_me: failed program was:" >&5
17895sed 's/^/| /' conftest.$ac_ext >&5
17896
17897 ac_header_preproc=no
17898fi
17899rm -f conftest.err conftest.$ac_ext
17900echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17901echo "${ECHO_T}$ac_header_preproc" >&6
17902
17903# So? What about this header?
17904case $ac_header_compiler:$ac_header_preproc in
17905 yes:no )
17906 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
17907echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17908 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17909echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17910 (
17911 cat <<\_ASBOX
17912## ------------------------------------ ##
17913## Report this to bug-autoconf@gnu.org. ##
17914## ------------------------------------ ##
17915_ASBOX
17916 ) |
17917 sed "s/^/$as_me: WARNING: /" >&2
17918 ;;
17919 no:yes )
17920 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
17921echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
17922 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
17923echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
17924 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17925echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17926 (
17927 cat <<\_ASBOX
17928## ------------------------------------ ##
17929## Report this to bug-autoconf@gnu.org. ##
17930## ------------------------------------ ##
17931_ASBOX
17932 ) |
17933 sed "s/^/$as_me: WARNING: /" >&2
17934 ;;
17935esac
17936echo "$as_me:$LINENO: checking for regex.h" >&5
17937echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17938if test "${ac_cv_header_regex_h+set}" = set; then
17939 echo $ECHO_N "(cached) $ECHO_C" >&6
17940else
17941 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 17942fi
e6cc62c6
VS
17943echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17944echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17945
698dcdb6 17946fi
e6cc62c6
VS
17947if test $ac_cv_header_regex_h = yes; then
17948
17949for ac_func in regcomp
21d1c967 17950do
e6cc62c6
VS
17951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17952echo "$as_me:$LINENO: checking for $ac_func" >&5
17953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17954if eval "test \"\${$as_ac_var+set}\" = set"; then
17955 echo $ECHO_N "(cached) $ECHO_C" >&6
17956else
17957 cat >conftest.$ac_ext <<_ACEOF
17958#line $LINENO "configure"
17959/* confdefs.h. */
17960_ACEOF
17961cat confdefs.h >>conftest.$ac_ext
17962cat >>conftest.$ac_ext <<_ACEOF
17963/* end confdefs.h. */
a0b9e27f 17964/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
17965 which can conflict with char $ac_func (); below.
17966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17967 <limits.h> exists even on freestanding compilers. */
17968#ifdef __STDC__
17969# include <limits.h>
17970#else
17971# include <assert.h>
17972#endif
21d1c967 17973/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
17974#ifdef __cplusplus
17975extern "C"
17976{
17977#endif
21d1c967 17978/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
17979 builtin and then its argument prototype would still apply. */
17980char $ac_func ();
21d1c967
GD
17981/* The GNU C library defines this for functions which it implements
17982 to always fail with ENOSYS. Some functions are actually named
17983 something starting with __ and the normal name is an alias. */
17984#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17985choke me
17986#else
e6cc62c6
VS
17987char (*f) () = $ac_func;
17988#endif
17989#ifdef __cplusplus
17990}
21d1c967 17991#endif
90dd450c 17992
e6cc62c6
VS
17993int
17994main ()
17995{
17996return f != $ac_func;
17997 ;
17998 return 0;
17999}
18000_ACEOF
18001rm -f conftest.$ac_objext conftest$ac_exeext
18002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18003 (eval $ac_link) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } &&
18007 { ac_try='test -s conftest$ac_exeext'
18008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009 (eval $ac_try) 2>&5
18010 ac_status=$?
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; }; then
18013 eval "$as_ac_var=yes"
18014else
18015 echo "$as_me: failed program was:" >&5
18016sed 's/^/| /' conftest.$ac_ext >&5
18017
18018eval "$as_ac_var=no"
18019fi
18020rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18021fi
18022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18023echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18024if test `eval echo '${'$as_ac_var'}'` = yes; then
18025 cat >>confdefs.h <<_ACEOF
18026#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18027_ACEOF
5c6fa7d2 18028
698dcdb6 18029fi
21d1c967
GD
18030done
18031
ab9b9eab
VZ
18032fi
18033
8284b0c5 18034
e6cc62c6 18035
21d1c967
GD
18036 if test "x$ac_cv_func_regcomp" != "xyes"; then
18037 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18038 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18039echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18040 { (exit 1); exit 1; }; }
21d1c967 18041 else
e6cc62c6
VS
18042 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18043echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18044 wxUSE_REGEX=builtin
18045 fi
18046 else
18047 wxUSE_REGEX=sys
18048 fi
ab9b9eab 18049 fi
90dd450c 18050
21d1c967
GD
18051 if test "$wxUSE_REGEX" = "builtin" ; then
18052 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18053 fi
21d1c967 18054fi
90dd450c 18055
8284b0c5 18056
21d1c967
GD
18057ZLIB_INCLUDE=
18058ZLIB_LINK=
18059if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18060 cat >>confdefs.h <<\_ACEOF
21d1c967 18061#define wxUSE_ZLIB 1
e6cc62c6 18062_ACEOF
21d1c967 18063
8284b0c5 18064
21d1c967 18065 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18066 if test "$USE_DARWIN" = 1; then
18067 system_zlib_h_ok="yes"
18068 else
e6cc62c6
VS
18069 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18070echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18071if test "${ac_cv_header_zlib_h+set}" = set; then
18072 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18073else
18074 if test "$cross_compiling" = yes; then
89e6bf6d 18075 unset ac_cv_header_zlib_h
e6cc62c6 18076
d643b80e 18077else
e6cc62c6
VS
18078 cat >conftest.$ac_ext <<_ACEOF
18079#line $LINENO "configure"
18080/* confdefs.h. */
18081_ACEOF
18082cat confdefs.h >>conftest.$ac_ext
18083cat >>conftest.$ac_ext <<_ACEOF
18084/* end confdefs.h. */
18085
ef33c576 18086 #include <zlib.h>
d775acfa 18087 #include <stdio.h>
d643b80e 18088
d775acfa
VZ
18089 int main()
18090 {
18091 FILE *f=fopen("conftestval", "w");
18092 if (!f) exit(1);
18093 fprintf(f, "%s",
18094 ZLIB_VERSION[0] == '1' &&
18095 (ZLIB_VERSION[2] > '1' ||
18096 (ZLIB_VERSION[2] == '1' &&
18097 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18098 exit(0);
18099 }
e6cc62c6
VS
18100
18101_ACEOF
18102rm -f conftest$ac_exeext
18103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18104 (eval $ac_link) 2>&5
18105 ac_status=$?
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
d643b80e
VZ
18113 ac_cv_header_zlib_h=`cat conftestval`
18114else
e6cc62c6
VS
18115 echo "$as_me: program exited with status $ac_status" >&5
18116echo "$as_me: failed program was:" >&5
18117sed 's/^/| /' conftest.$ac_ext >&5
18118
18119( exit $ac_status )
18120ac_cv_header_zlib_h=no
d643b80e 18121fi
e6cc62c6 18122rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18123fi
18124
d643b80e 18125fi
e6cc62c6
VS
18126echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18127echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18128 if test "${ac_cv_header_zlib_h+set}" = set; then
18129 echo "$as_me:$LINENO: checking for zlib.h" >&5
18130echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18131if test "${ac_cv_header_zlib_h+set}" = set; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18133fi
18134echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18135echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18136else
e6cc62c6
VS
18137 # Is the header compilable?
18138echo "$as_me:$LINENO: checking zlib.h usability" >&5
18139echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18140cat >conftest.$ac_ext <<_ACEOF
18141#line $LINENO "configure"
18142/* confdefs.h. */
18143_ACEOF
18144cat confdefs.h >>conftest.$ac_ext
18145cat >>conftest.$ac_ext <<_ACEOF
18146/* end confdefs.h. */
18147$ac_includes_default
89e6bf6d 18148#include <zlib.h>
e6cc62c6
VS
18149_ACEOF
18150rm -f conftest.$ac_objext
18151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18152 (eval $ac_compile) 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
18156 { ac_try='test -s conftest.$ac_objext'
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18159 ac_status=$?
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; }; then
18162 ac_header_compiler=yes
18163else
18164 echo "$as_me: failed program was:" >&5
18165sed 's/^/| /' conftest.$ac_ext >&5
18166
18167ac_header_compiler=no
18168fi
18169rm -f conftest.$ac_objext conftest.$ac_ext
18170echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18171echo "${ECHO_T}$ac_header_compiler" >&6
18172
18173# Is the header present?
18174echo "$as_me:$LINENO: checking zlib.h presence" >&5
18175echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18176cat >conftest.$ac_ext <<_ACEOF
18177#line $LINENO "configure"
18178/* confdefs.h. */
18179_ACEOF
18180cat confdefs.h >>conftest.$ac_ext
18181cat >>conftest.$ac_ext <<_ACEOF
18182/* end confdefs.h. */
18183#include <zlib.h>
18184_ACEOF
18185if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18187 ac_status=$?
18188 grep -v '^ *+' conftest.er1 >conftest.err
18189 rm -f conftest.er1
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } >/dev/null; then
18193 if test -s conftest.err; then
18194 ac_cpp_err=$ac_c_preproc_warn_flag
18195 else
18196 ac_cpp_err=
18197 fi
18198else
18199 ac_cpp_err=yes
18200fi
18201if test -z "$ac_cpp_err"; then
18202 ac_header_preproc=yes
18203else
18204 echo "$as_me: failed program was:" >&5
18205sed 's/^/| /' conftest.$ac_ext >&5
18206
18207 ac_header_preproc=no
18208fi
18209rm -f conftest.err conftest.$ac_ext
18210echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18211echo "${ECHO_T}$ac_header_preproc" >&6
18212
18213# So? What about this header?
18214case $ac_header_compiler:$ac_header_preproc in
18215 yes:no )
18216 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18217echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18218 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18219echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18220 (
18221 cat <<\_ASBOX
18222## ------------------------------------ ##
18223## Report this to bug-autoconf@gnu.org. ##
18224## ------------------------------------ ##
18225_ASBOX
18226 ) |
18227 sed "s/^/$as_me: WARNING: /" >&2
18228 ;;
18229 no:yes )
18230 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18231echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18232 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18233echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18234 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18235echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18236 (
18237 cat <<\_ASBOX
18238## ------------------------------------ ##
18239## Report this to bug-autoconf@gnu.org. ##
18240## ------------------------------------ ##
18241_ASBOX
18242 ) |
18243 sed "s/^/$as_me: WARNING: /" >&2
18244 ;;
18245esac
18246echo "$as_me:$LINENO: checking for zlib.h" >&5
18247echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18248if test "${ac_cv_header_zlib_h+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18250else
e6cc62c6
VS
18251 ac_cv_header_zlib_h=$ac_header_preproc
18252fi
18253echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18254echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18255
89e6bf6d
VZ
18256fi
18257
d643b80e 18258
e6cc62c6 18259
d775acfa
VZ
18260 system_zlib_h_ok=$ac_cv_header_zlib_h
18261 fi
18262
18263 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18264 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18265echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18266if test "${ac_cv_lib_z_deflate+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18268else
e6cc62c6 18269 ac_check_lib_save_LIBS=$LIBS
21d1c967 18270LIBS="-lz $LIBS"
e6cc62c6
VS
18271cat >conftest.$ac_ext <<_ACEOF
18272#line $LINENO "configure"
18273/* confdefs.h. */
18274_ACEOF
18275cat confdefs.h >>conftest.$ac_ext
18276cat >>conftest.$ac_ext <<_ACEOF
18277/* end confdefs.h. */
18278
21d1c967 18279/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18280#ifdef __cplusplus
18281extern "C"
18282#endif
21d1c967 18283/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18284 builtin and then its argument prototype would still apply. */
18285char deflate ();
18286int
18287main ()
18288{
18289deflate ();
18290 ;
18291 return 0;
18292}
18293_ACEOF
18294rm -f conftest.$ac_objext conftest$ac_exeext
18295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18296 (eval $ac_link) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } &&
18300 { ac_try='test -s conftest$ac_exeext'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_cv_lib_z_deflate=yes
18307else
18308 echo "$as_me: failed program was:" >&5
18309sed 's/^/| /' conftest.$ac_ext >&5
18310
18311ac_cv_lib_z_deflate=no
18312fi
18313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18314LIBS=$ac_check_lib_save_LIBS
18315fi
18316echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18317echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18318if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18319 ZLIB_LINK=" -lz"
a0b9e27f 18320fi
698dcdb6 18321
d643b80e 18322 fi
247f5006 18323
21d1c967
GD
18324 if test "x$ZLIB_LINK" = "x" ; then
18325 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18326 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18327echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18328 { (exit 1); exit 1; }; }
21d1c967 18329 else
e6cc62c6
VS
18330 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18331echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18332 wxUSE_ZLIB=builtin
18333 fi
18334 else
18335 wxUSE_ZLIB=sys
18336 fi
18337 fi
18338
18339 if test "$wxUSE_ZLIB" = "builtin" ; then
18340 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18341 fi
ab9b9eab
VZ
18342fi
18343
8284b0c5 18344
21d1c967
GD
18345PNG_INCLUDE=
18346PNG_LINK=
18347if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18348 cat >>confdefs.h <<\_ACEOF
21d1c967 18349#define wxUSE_LIBPNG 1
e6cc62c6 18350_ACEOF
90dd450c 18351
8284b0c5 18352
21d1c967 18353 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18354 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18355echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18356 wxUSE_LIBPNG=sys
18357 fi
90dd450c 18358
21d1c967 18359 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18360 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18361echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18362 wxUSE_LIBPNG=builtin
18363 fi
18364
18365 if test "$wxUSE_MGL" != 1 ; then
18366 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18367 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18368echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18369if test "${ac_cv_header_png_h+set}" = set; then
18370 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18371else
18372 if test "$cross_compiling" = yes; then
89e6bf6d 18373 unset ac_cv_header_png_h
e6cc62c6 18374
5d3f766d 18375else
e6cc62c6
VS
18376 cat >conftest.$ac_ext <<_ACEOF
18377#line $LINENO "configure"
18378/* confdefs.h. */
18379_ACEOF
18380cat confdefs.h >>conftest.$ac_ext
18381cat >>conftest.$ac_ext <<_ACEOF
18382/* end confdefs.h. */
18383
ef33c576 18384 #include <png.h>
5d3f766d
VZ
18385 #include <stdio.h>
18386
18387 int main()
18388 {
18389 FILE *f=fopen("conftestval", "w");
18390 if (!f) exit(1);
18391 fprintf(f, "%s",
18392 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18393 exit(0);
18394 }
e6cc62c6
VS
18395
18396_ACEOF
18397rm -f conftest$ac_exeext
18398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18399 (eval $ac_link) 2>&5
18400 ac_status=$?
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18404 (eval $ac_try) 2>&5
18405 ac_status=$?
18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18407 (exit $ac_status); }; }; then
5d3f766d
VZ
18408 ac_cv_header_png_h=`cat conftestval`
18409else
e6cc62c6
VS
18410 echo "$as_me: program exited with status $ac_status" >&5
18411echo "$as_me: failed program was:" >&5
18412sed 's/^/| /' conftest.$ac_ext >&5
18413
18414( exit $ac_status )
18415ac_cv_header_png_h=no
5d3f766d 18416fi
e6cc62c6 18417rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18418fi
18419
5d3f766d 18420fi
e6cc62c6
VS
18421echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18422echo "${ECHO_T}$ac_cv_header_png_h" >&6
18423 if test "${ac_cv_header_png_h+set}" = set; then
18424 echo "$as_me:$LINENO: checking for png.h" >&5
18425echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18426if test "${ac_cv_header_png_h+set}" = set; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18428fi
18429echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18430echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18431else
e6cc62c6
VS
18432 # Is the header compilable?
18433echo "$as_me:$LINENO: checking png.h usability" >&5
18434echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18435cat >conftest.$ac_ext <<_ACEOF
18436#line $LINENO "configure"
18437/* confdefs.h. */
18438_ACEOF
18439cat confdefs.h >>conftest.$ac_ext
18440cat >>conftest.$ac_ext <<_ACEOF
18441/* end confdefs.h. */
18442$ac_includes_default
89e6bf6d 18443#include <png.h>
e6cc62c6
VS
18444_ACEOF
18445rm -f conftest.$ac_objext
18446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18447 (eval $ac_compile) 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -s conftest.$ac_objext'
18452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18453 (eval $ac_try) 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
18457 ac_header_compiler=yes
18458else
18459 echo "$as_me: failed program was:" >&5
18460sed 's/^/| /' conftest.$ac_ext >&5
18461
18462ac_header_compiler=no
18463fi
18464rm -f conftest.$ac_objext conftest.$ac_ext
18465echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18466echo "${ECHO_T}$ac_header_compiler" >&6
18467
18468# Is the header present?
18469echo "$as_me:$LINENO: checking png.h presence" >&5
18470echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18471cat >conftest.$ac_ext <<_ACEOF
18472#line $LINENO "configure"
18473/* confdefs.h. */
18474_ACEOF
18475cat confdefs.h >>conftest.$ac_ext
18476cat >>conftest.$ac_ext <<_ACEOF
18477/* end confdefs.h. */
18478#include <png.h>
18479_ACEOF
18480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18482 ac_status=$?
18483 grep -v '^ *+' conftest.er1 >conftest.err
18484 rm -f conftest.er1
18485 cat conftest.err >&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } >/dev/null; then
18488 if test -s conftest.err; then
18489 ac_cpp_err=$ac_c_preproc_warn_flag
18490 else
18491 ac_cpp_err=
18492 fi
18493else
18494 ac_cpp_err=yes
18495fi
18496if test -z "$ac_cpp_err"; then
18497 ac_header_preproc=yes
18498else
18499 echo "$as_me: failed program was:" >&5
18500sed 's/^/| /' conftest.$ac_ext >&5
18501
18502 ac_header_preproc=no
18503fi
18504rm -f conftest.err conftest.$ac_ext
18505echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18506echo "${ECHO_T}$ac_header_preproc" >&6
18507
18508# So? What about this header?
18509case $ac_header_compiler:$ac_header_preproc in
18510 yes:no )
18511 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18512echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18513 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18514echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18515 (
18516 cat <<\_ASBOX
18517## ------------------------------------ ##
18518## Report this to bug-autoconf@gnu.org. ##
18519## ------------------------------------ ##
18520_ASBOX
18521 ) |
18522 sed "s/^/$as_me: WARNING: /" >&2
18523 ;;
18524 no:yes )
18525 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18526echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18527 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18528echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18529 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18530echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18531 (
18532 cat <<\_ASBOX
18533## ------------------------------------ ##
18534## Report this to bug-autoconf@gnu.org. ##
18535## ------------------------------------ ##
18536_ASBOX
18537 ) |
18538 sed "s/^/$as_me: WARNING: /" >&2
18539 ;;
18540esac
18541echo "$as_me:$LINENO: checking for png.h" >&5
18542echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18543if test "${ac_cv_header_png_h+set}" = set; then
18544 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18545else
e6cc62c6
VS
18546 ac_cv_header_png_h=$ac_header_preproc
18547fi
18548echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18549echo "${ECHO_T}$ac_cv_header_png_h" >&6
18550
89e6bf6d
VZ
18551fi
18552
5d3f766d 18553
e6cc62c6 18554
5d3f766d 18555 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18556 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18557echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18558if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18560else
e6cc62c6 18561 ac_check_lib_save_LIBS=$LIBS
21d1c967 18562LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18563cat >conftest.$ac_ext <<_ACEOF
18564#line $LINENO "configure"
18565/* confdefs.h. */
18566_ACEOF
18567cat confdefs.h >>conftest.$ac_ext
18568cat >>conftest.$ac_ext <<_ACEOF
18569/* end confdefs.h. */
18570
21d1c967 18571/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18572#ifdef __cplusplus
18573extern "C"
18574#endif
21d1c967 18575/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18576 builtin and then its argument prototype would still apply. */
18577char png_check_sig ();
18578int
18579main ()
18580{
18581png_check_sig ();
18582 ;
18583 return 0;
18584}
18585_ACEOF
18586rm -f conftest.$ac_objext conftest$ac_exeext
18587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18588 (eval $ac_link) 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } &&
18592 { ac_try='test -s conftest$ac_exeext'
18593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594 (eval $ac_try) 2>&5
18595 ac_status=$?
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); }; }; then
18598 ac_cv_lib_png_png_check_sig=yes
18599else
18600 echo "$as_me: failed program was:" >&5
18601sed 's/^/| /' conftest.$ac_ext >&5
18602
18603ac_cv_lib_png_png_check_sig=no
18604fi
18605rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18606LIBS=$ac_check_lib_save_LIBS
18607fi
18608echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18609echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18610if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18611 PNG_LINK=" -lpng"
a0b9e27f 18612fi
90dd450c 18613
5d3f766d 18614 fi
247f5006 18615
21d1c967
GD
18616 if test "x$PNG_LINK" = "x" ; then
18617 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18618 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18619echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18620 { (exit 1); exit 1; }; }
21d1c967 18621 else
e6cc62c6
VS
18622 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18623echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18624 wxUSE_LIBPNG=builtin
18625 fi
18626 else
2b5f62a0 18627 wxUSE_LIBPNG=sys
21d1c967
GD
18628 fi
18629 fi
18630 fi
90dd450c 18631
21d1c967
GD
18632 if test "$wxUSE_LIBPNG" = "builtin" ; then
18633 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18634 fi
90dd450c 18635
21d1c967 18636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18637fi
18638
8284b0c5 18639
21d1c967
GD
18640JPEG_INCLUDE=
18641JPEG_LINK=
18642if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18643 cat >>confdefs.h <<\_ACEOF
21d1c967 18644#define wxUSE_LIBJPEG 1
e6cc62c6 18645_ACEOF
90dd450c 18646
8284b0c5 18647
21d1c967 18648 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18649 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18650echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18651 wxUSE_LIBJPEG=sys
18652 fi
90dd450c 18653
21d1c967
GD
18654 if test "$wxUSE_MGL" != 1 ; then
18655 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18656 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18657echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18658 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18660else
18661 cat >conftest.$ac_ext <<_ACEOF
18662#line $LINENO "configure"
18663/* confdefs.h. */
18664_ACEOF
18665cat confdefs.h >>conftest.$ac_ext
18666cat >>conftest.$ac_ext <<_ACEOF
18667/* end confdefs.h. */
90dd450c 18668
21d1c967
GD
18669 #undef HAVE_STDLIB_H
18670 #include <stdio.h>
18671 #include <jpeglib.h>
90dd450c 18672
e6cc62c6
VS
18673int
18674main ()
18675{
18676
18677
18678 ;
18679 return 0;
18680}
18681_ACEOF
18682rm -f conftest.$ac_objext
18683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18684 (eval $ac_compile) 2>&5
18685 ac_status=$?
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
18688 { ac_try='test -s conftest.$ac_objext'
18689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690 (eval $ac_try) 2>&5
18691 ac_status=$?
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; }; then
21d1c967 18694 ac_cv_header_jpeglib_h=yes
90dd450c 18695else
e6cc62c6
VS
18696 echo "$as_me: failed program was:" >&5
18697sed 's/^/| /' conftest.$ac_ext >&5
18698
18699ac_cv_header_jpeglib_h=no
18700
90dd450c 18701fi
e6cc62c6
VS
18702rm -f conftest.$ac_objext conftest.$ac_ext
18703
90dd450c
VZ
18704fi
18705
e6cc62c6
VS
18706 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18707echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18708
21d1c967 18709 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18710 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18711echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18712if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18713 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18714else
e6cc62c6 18715 ac_check_lib_save_LIBS=$LIBS
21d1c967 18716LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18717cat >conftest.$ac_ext <<_ACEOF
18718#line $LINENO "configure"
18719/* confdefs.h. */
18720_ACEOF
18721cat confdefs.h >>conftest.$ac_ext
18722cat >>conftest.$ac_ext <<_ACEOF
18723/* end confdefs.h. */
18724
21d1c967 18725/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18726#ifdef __cplusplus
18727extern "C"
18728#endif
21d1c967 18729/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18730 builtin and then its argument prototype would still apply. */
18731char jpeg_read_header ();
18732int
18733main ()
18734{
18735jpeg_read_header ();
18736 ;
18737 return 0;
18738}
18739_ACEOF
18740rm -f conftest.$ac_objext conftest$ac_exeext
18741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18742 (eval $ac_link) 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); } &&
18746 { ac_try='test -s conftest$ac_exeext'
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18749 ac_status=$?
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; }; then
18752 ac_cv_lib_jpeg_jpeg_read_header=yes
18753else
18754 echo "$as_me: failed program was:" >&5
18755sed 's/^/| /' conftest.$ac_ext >&5
18756
18757ac_cv_lib_jpeg_jpeg_read_header=no
18758fi
18759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18760LIBS=$ac_check_lib_save_LIBS
18761fi
18762echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18763echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18764if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 18765 JPEG_LINK=" -ljpeg"
90dd450c
VZ
18766fi
18767
21d1c967 18768 fi
90dd450c 18769
21d1c967
GD
18770 if test "x$JPEG_LINK" = "x" ; then
18771 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
18772 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18773echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18774 { (exit 1); exit 1; }; }
21d1c967 18775 else
e6cc62c6
VS
18776 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18777echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
18778 wxUSE_LIBJPEG=builtin
18779 fi
18780 else
18781 wxUSE_LIBJPEG=sys
18782 fi
18783 fi
18784 fi
90dd450c 18785
21d1c967
GD
18786 if test "$wxUSE_LIBJPEG" = "builtin" ; then
18787 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
18788 fi
18789fi
90dd450c 18790
8284b0c5 18791
21d1c967
GD
18792TIFF_INCLUDE=
18793TIFF_LINK=
2b5f62a0 18794TIFF_PREREQ_LINKS=-lm
21d1c967 18795if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 18796 cat >>confdefs.h <<\_ACEOF
21d1c967 18797#define wxUSE_LIBTIFF 1
e6cc62c6 18798_ACEOF
21d1c967 18799
8284b0c5 18800
21d1c967 18801 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
18802 if test "$wxUSE_LIBJPEG" = "sys"; then
18803 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
18804 fi
18805 if test "$wxUSE_ZLIB" = "sys"; then
18806 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
18807 fi
e6cc62c6
VS
18808 if test "${ac_cv_header_tiffio_h+set}" = set; then
18809 echo "$as_me:$LINENO: checking for tiffio.h" >&5
18810echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18811if test "${ac_cv_header_tiffio_h+set}" = set; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18813fi
18814echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18815echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18816else
18817 # Is the header compilable?
18818echo "$as_me:$LINENO: checking tiffio.h usability" >&5
18819echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
18820cat >conftest.$ac_ext <<_ACEOF
18821#line $LINENO "configure"
18822/* confdefs.h. */
18823_ACEOF
18824cat confdefs.h >>conftest.$ac_ext
18825cat >>conftest.$ac_ext <<_ACEOF
18826/* end confdefs.h. */
18827$ac_includes_default
247f5006 18828#include <tiffio.h>
e6cc62c6
VS
18829_ACEOF
18830rm -f conftest.$ac_objext
18831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18832 (eval $ac_compile) 2>&5
18833 ac_status=$?
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } &&
18836 { ac_try='test -s conftest.$ac_objext'
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 ac_header_compiler=yes
18843else
18844 echo "$as_me: failed program was:" >&5
18845sed 's/^/| /' conftest.$ac_ext >&5
18846
18847ac_header_compiler=no
18848fi
18849rm -f conftest.$ac_objext conftest.$ac_ext
18850echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18851echo "${ECHO_T}$ac_header_compiler" >&6
18852
18853# Is the header present?
18854echo "$as_me:$LINENO: checking tiffio.h presence" >&5
18855echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
18856cat >conftest.$ac_ext <<_ACEOF
18857#line $LINENO "configure"
18858/* confdefs.h. */
18859_ACEOF
18860cat confdefs.h >>conftest.$ac_ext
18861cat >>conftest.$ac_ext <<_ACEOF
18862/* end confdefs.h. */
18863#include <tiffio.h>
18864_ACEOF
18865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18867 ac_status=$?
18868 grep -v '^ *+' conftest.er1 >conftest.err
18869 rm -f conftest.er1
18870 cat conftest.err >&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); } >/dev/null; then
18873 if test -s conftest.err; then
18874 ac_cpp_err=$ac_c_preproc_warn_flag
18875 else
18876 ac_cpp_err=
18877 fi
18878else
18879 ac_cpp_err=yes
18880fi
18881if test -z "$ac_cpp_err"; then
18882 ac_header_preproc=yes
18883else
18884 echo "$as_me: failed program was:" >&5
18885sed 's/^/| /' conftest.$ac_ext >&5
18886
18887 ac_header_preproc=no
18888fi
18889rm -f conftest.err conftest.$ac_ext
18890echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18891echo "${ECHO_T}$ac_header_preproc" >&6
18892
18893# So? What about this header?
18894case $ac_header_compiler:$ac_header_preproc in
18895 yes:no )
18896 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
18897echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18898 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18899echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18900 (
18901 cat <<\_ASBOX
18902## ------------------------------------ ##
18903## Report this to bug-autoconf@gnu.org. ##
18904## ------------------------------------ ##
18905_ASBOX
18906 ) |
18907 sed "s/^/$as_me: WARNING: /" >&2
18908 ;;
18909 no:yes )
18910 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
18911echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
18912 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
18913echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
18914 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18915echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18916 (
18917 cat <<\_ASBOX
18918## ------------------------------------ ##
18919## Report this to bug-autoconf@gnu.org. ##
18920## ------------------------------------ ##
18921_ASBOX
18922 ) |
18923 sed "s/^/$as_me: WARNING: /" >&2
18924 ;;
18925esac
18926echo "$as_me:$LINENO: checking for tiffio.h" >&5
18927echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18928if test "${ac_cv_header_tiffio_h+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18930else
18931 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 18932fi
e6cc62c6
VS
18933echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18934echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18935
21d1c967 18936fi
e6cc62c6
VS
18937if test $ac_cv_header_tiffio_h = yes; then
18938 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
18939echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
18940if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
18941 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 18942else
e6cc62c6 18943 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 18944LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
18945cat >conftest.$ac_ext <<_ACEOF
18946#line $LINENO "configure"
18947/* confdefs.h. */
18948_ACEOF
18949cat confdefs.h >>conftest.$ac_ext
18950cat >>conftest.$ac_ext <<_ACEOF
18951/* end confdefs.h. */
18952
ab9b9eab 18953/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18954#ifdef __cplusplus
18955extern "C"
18956#endif
ab9b9eab 18957/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18958 builtin and then its argument prototype would still apply. */
18959char TIFFError ();
18960int
18961main ()
18962{
18963TIFFError ();
18964 ;
18965 return 0;
18966}
18967_ACEOF
18968rm -f conftest.$ac_objext conftest$ac_exeext
18969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18970 (eval $ac_link) 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } &&
18974 { ac_try='test -s conftest$ac_exeext'
18975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976 (eval $ac_try) 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; }; then
18980 ac_cv_lib_tiff_TIFFError=yes
18981else
18982 echo "$as_me: failed program was:" >&5
18983sed 's/^/| /' conftest.$ac_ext >&5
18984
18985ac_cv_lib_tiff_TIFFError=no
18986fi
18987rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18988LIBS=$ac_check_lib_save_LIBS
18989fi
18990echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
18991echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
18992if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 18993 TIFF_LINK=" -ltiff"
a0b9e27f 18994fi
cd6d6d5b 18995
e6cc62c6 18996
a0b9e27f 18997fi
8284b0c5 18998
247f5006 18999
e6cc62c6 19000
21d1c967
GD
19001 if test "x$TIFF_LINK" = "x" ; then
19002 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19003 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19004echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19005 { (exit 1); exit 1; }; }
90dd450c 19006 else
e6cc62c6
VS
19007 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19008echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19009 wxUSE_LIBTIFF=builtin
d8356fa3 19010 fi
d8356fa3 19011 else
21d1c967 19012 wxUSE_LIBTIFF=sys
d8356fa3 19013 fi
21d1c967 19014 fi
d8356fa3 19015
21d1c967
GD
19016 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19017 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19018 fi
21d1c967 19019fi
10f2d63a 19020
8284b0c5 19021
672abd7a 19022if test "$wxUSE_EXPAT" != "no"; then
e06468e8 19023 wxUSE_XML=yes
672abd7a
VS
19024 cat >>confdefs.h <<\_ACEOF
19025#define wxUSE_EXPAT 1
19026_ACEOF
19027
19028 cat >>confdefs.h <<\_ACEOF
19029#define wxUSE_XML 1
19030_ACEOF
19031
19032
19033 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19034 if test "${ac_cv_header_expat_h+set}" = set; then
19035 echo "$as_me:$LINENO: checking for expat.h" >&5
19036echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19037if test "${ac_cv_header_expat_h+set}" = set; then
19038 echo $ECHO_N "(cached) $ECHO_C" >&6
19039fi
19040echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19041echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19042else
19043 # Is the header compilable?
19044echo "$as_me:$LINENO: checking expat.h usability" >&5
19045echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19046cat >conftest.$ac_ext <<_ACEOF
19047#line $LINENO "configure"
19048/* confdefs.h. */
19049_ACEOF
19050cat confdefs.h >>conftest.$ac_ext
19051cat >>conftest.$ac_ext <<_ACEOF
19052/* end confdefs.h. */
19053$ac_includes_default
19054#include <expat.h>
19055_ACEOF
19056rm -f conftest.$ac_objext
19057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19058 (eval $ac_compile) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } &&
19062 { ac_try='test -s conftest.$ac_objext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068 ac_header_compiler=yes
19069else
19070 echo "$as_me: failed program was:" >&5
19071sed 's/^/| /' conftest.$ac_ext >&5
19072
19073ac_header_compiler=no
19074fi
19075rm -f conftest.$ac_objext conftest.$ac_ext
19076echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19077echo "${ECHO_T}$ac_header_compiler" >&6
19078
19079# Is the header present?
19080echo "$as_me:$LINENO: checking expat.h presence" >&5
19081echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19082cat >conftest.$ac_ext <<_ACEOF
19083#line $LINENO "configure"
19084/* confdefs.h. */
19085_ACEOF
19086cat confdefs.h >>conftest.$ac_ext
19087cat >>conftest.$ac_ext <<_ACEOF
19088/* end confdefs.h. */
19089#include <expat.h>
19090_ACEOF
19091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19093 ac_status=$?
19094 grep -v '^ *+' conftest.er1 >conftest.err
19095 rm -f conftest.er1
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } >/dev/null; then
19099 if test -s conftest.err; then
19100 ac_cpp_err=$ac_c_preproc_warn_flag
19101 else
19102 ac_cpp_err=
19103 fi
19104else
19105 ac_cpp_err=yes
19106fi
19107if test -z "$ac_cpp_err"; then
19108 ac_header_preproc=yes
19109else
19110 echo "$as_me: failed program was:" >&5
19111sed 's/^/| /' conftest.$ac_ext >&5
19112
19113 ac_header_preproc=no
19114fi
19115rm -f conftest.err conftest.$ac_ext
19116echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19117echo "${ECHO_T}$ac_header_preproc" >&6
19118
19119# So? What about this header?
19120case $ac_header_compiler:$ac_header_preproc in
19121 yes:no )
19122 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19123echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19124 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19125echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19126 (
19127 cat <<\_ASBOX
19128## ------------------------------------ ##
19129## Report this to bug-autoconf@gnu.org. ##
19130## ------------------------------------ ##
19131_ASBOX
19132 ) |
19133 sed "s/^/$as_me: WARNING: /" >&2
19134 ;;
19135 no:yes )
19136 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19137echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19138 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19139echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19140 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19141echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19142 (
19143 cat <<\_ASBOX
19144## ------------------------------------ ##
19145## Report this to bug-autoconf@gnu.org. ##
19146## ------------------------------------ ##
19147_ASBOX
19148 ) |
19149 sed "s/^/$as_me: WARNING: /" >&2
19150 ;;
19151esac
19152echo "$as_me:$LINENO: checking for expat.h" >&5
19153echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19154if test "${ac_cv_header_expat_h+set}" = set; then
19155 echo $ECHO_N "(cached) $ECHO_C" >&6
19156else
19157 ac_cv_header_expat_h=$ac_header_preproc
19158fi
19159echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19160echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19161
19162fi
5f0b6dff
VS
19163if test $ac_cv_header_expat_h = yes; then
19164 found_expat_h=1
19165fi
19166
19167
19168 if test "x$found_expat_h" = "x1"; then
19169 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19170echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19171if test "${wx_cv_expat_is_not_broken+set}" = set; then
19172 echo $ECHO_N "(cached) $ECHO_C" >&6
19173else
19174
19175
672abd7a 19176
5f0b6dff
VS
19177 ac_ext=cc
19178ac_cpp='$CXXCPP $CPPFLAGS'
19179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19182
19183 cat >conftest.$ac_ext <<_ACEOF
19184#line $LINENO "configure"
19185/* confdefs.h. */
19186_ACEOF
19187cat confdefs.h >>conftest.$ac_ext
19188cat >>conftest.$ac_ext <<_ACEOF
19189/* end confdefs.h. */
19190#include <expat.h>
19191int
19192main ()
19193{
672abd7a 19194
5f0b6dff
VS
19195 ;
19196 return 0;
19197}
19198_ACEOF
19199rm -f conftest.$ac_objext
19200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19201 (eval $ac_compile) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } &&
19205 { ac_try='test -s conftest.$ac_objext'
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19208 ac_status=$?
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); }; }; then
19211 wx_cv_expat_is_not_broken=yes
19212else
19213 echo "$as_me: failed program was:" >&5
19214sed 's/^/| /' conftest.$ac_ext >&5
19215
19216wx_cv_expat_is_not_broken=no
19217
19218fi
19219rm -f conftest.$ac_objext conftest.$ac_ext
19220 ac_ext=c
19221ac_cpp='$CPP $CPPFLAGS'
19222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19224ac_compiler_gnu=$ac_cv_c_compiler_gnu
19225
19226
19227
19228fi
19229echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19230echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19231 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19232 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
19233echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19234if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19235 echo $ECHO_N "(cached) $ECHO_C" >&6
19236else
19237 ac_check_lib_save_LIBS=$LIBS
19238LIBS="-lexpat $LIBS"
19239cat >conftest.$ac_ext <<_ACEOF
19240#line $LINENO "configure"
19241/* confdefs.h. */
19242_ACEOF
19243cat confdefs.h >>conftest.$ac_ext
19244cat >>conftest.$ac_ext <<_ACEOF
19245/* end confdefs.h. */
19246
19247/* Override any gcc2 internal prototype to avoid an error. */
19248#ifdef __cplusplus
19249extern "C"
19250#endif
19251/* We use char because int might match the return type of a gcc2
19252 builtin and then its argument prototype would still apply. */
19253char XML_ParserCreate ();
19254int
19255main ()
19256{
19257XML_ParserCreate ();
19258 ;
19259 return 0;
19260}
19261_ACEOF
19262rm -f conftest.$ac_objext conftest$ac_exeext
19263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19264 (eval $ac_link) 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } &&
19268 { ac_try='test -s conftest$ac_exeext'
19269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19270 (eval $ac_try) 2>&5
19271 ac_status=$?
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); }; }; then
19274 ac_cv_lib_expat_XML_ParserCreate=yes
19275else
19276 echo "$as_me: failed program was:" >&5
19277sed 's/^/| /' conftest.$ac_ext >&5
19278
19279ac_cv_lib_expat_XML_ParserCreate=no
19280fi
19281rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19282LIBS=$ac_check_lib_save_LIBS
19283fi
19284echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19285echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19286if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19287 EXPAT_LINK=" -lexpat"
19288fi
19289
5f0b6dff 19290 fi
672abd7a
VS
19291 fi
19292 if test "x$EXPAT_LINK" = "x" ; then
19293 if test "$wxUSE_EXPAT" = "sys" ; then
19294 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19295echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19296 { (exit 1); exit 1; }; }
19297 else
19298 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19299echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19300 wxUSE_EXPAT=builtin
19301 fi
19302 else
19303 wxUSE_EXPAT=sys
19304 fi
19305 fi
19306 if test "$wxUSE_EXPAT" = "builtin" ; then
19307
19308
19309subdirs="$subdirs src/expat"
19310
19311 fi
19312fi
19313
19314
19315
21d1c967 19316AFMINSTALL=
2b5f62a0 19317WIN32INSTALL=
90dd450c 19318
21d1c967
GD
19319TOOLKIT=
19320TOOLKIT_INCLUDE=
19321WIDGET_SET=
19322
19323if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19324
19325for ac_header in w32api.h
21d1c967 19326do
e6cc62c6
VS
19327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19328if eval "test \"\${$as_ac_Header+set}\" = set"; then
19329 echo "$as_me:$LINENO: checking for $ac_header" >&5
19330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19331if eval "test \"\${$as_ac_Header+set}\" = set"; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19333fi
19334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19336else
19337 # Is the header compilable?
19338echo "$as_me:$LINENO: checking $ac_header usability" >&5
19339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19340cat >conftest.$ac_ext <<_ACEOF
19341#line $LINENO "configure"
19342/* confdefs.h. */
19343_ACEOF
19344cat confdefs.h >>conftest.$ac_ext
19345cat >>conftest.$ac_ext <<_ACEOF
19346/* end confdefs.h. */
19347$ac_includes_default
19348#include <$ac_header>
19349_ACEOF
19350rm -f conftest.$ac_objext
19351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19352 (eval $ac_compile) 2>&5
19353 ac_status=$?
19354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); } &&
19356 { ac_try='test -s conftest.$ac_objext'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; }; then
19362 ac_header_compiler=yes
19363else
19364 echo "$as_me: failed program was:" >&5
19365sed 's/^/| /' conftest.$ac_ext >&5
19366
19367ac_header_compiler=no
19368fi
19369rm -f conftest.$ac_objext conftest.$ac_ext
19370echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19371echo "${ECHO_T}$ac_header_compiler" >&6
19372
19373# Is the header present?
19374echo "$as_me:$LINENO: checking $ac_header presence" >&5
19375echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19376cat >conftest.$ac_ext <<_ACEOF
19377#line $LINENO "configure"
19378/* confdefs.h. */
19379_ACEOF
19380cat confdefs.h >>conftest.$ac_ext
19381cat >>conftest.$ac_ext <<_ACEOF
19382/* end confdefs.h. */
19383#include <$ac_header>
19384_ACEOF
19385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19387 ac_status=$?
19388 grep -v '^ *+' conftest.er1 >conftest.err
19389 rm -f conftest.er1
19390 cat conftest.err >&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); } >/dev/null; then
19393 if test -s conftest.err; then
19394 ac_cpp_err=$ac_c_preproc_warn_flag
19395 else
19396 ac_cpp_err=
19397 fi
19398else
19399 ac_cpp_err=yes
19400fi
19401if test -z "$ac_cpp_err"; then
19402 ac_header_preproc=yes
19403else
19404 echo "$as_me: failed program was:" >&5
19405sed 's/^/| /' conftest.$ac_ext >&5
19406
19407 ac_header_preproc=no
19408fi
19409rm -f conftest.err conftest.$ac_ext
19410echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19411echo "${ECHO_T}$ac_header_preproc" >&6
19412
19413# So? What about this header?
19414case $ac_header_compiler:$ac_header_preproc in
19415 yes:no )
19416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19417echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19419echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19420 (
19421 cat <<\_ASBOX
19422## ------------------------------------ ##
19423## Report this to bug-autoconf@gnu.org. ##
19424## ------------------------------------ ##
19425_ASBOX
19426 ) |
19427 sed "s/^/$as_me: WARNING: /" >&2
19428 ;;
19429 no:yes )
19430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19431echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19433echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19435echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19436 (
19437 cat <<\_ASBOX
19438## ------------------------------------ ##
19439## Report this to bug-autoconf@gnu.org. ##
19440## ------------------------------------ ##
19441_ASBOX
19442 ) |
19443 sed "s/^/$as_me: WARNING: /" >&2
19444 ;;
19445esac
19446echo "$as_me:$LINENO: checking for $ac_header" >&5
19447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19448if eval "test \"\${$as_ac_Header+set}\" = set"; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19450else
19451 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19452fi
e6cc62c6
VS
19453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19454echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19455
21d1c967 19456fi
e6cc62c6
VS
19457if test `eval echo '${'$as_ac_Header'}'` = yes; then
19458 cat >>confdefs.h <<_ACEOF
19459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19460_ACEOF
19461
21d1c967 19462fi
e6cc62c6 19463
21d1c967 19464done
f79bd02d 19465
e6cc62c6
VS
19466 if test "${ac_cv_header_windows_h+set}" = set; then
19467 echo "$as_me:$LINENO: checking for windows.h" >&5
19468echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19469if test "${ac_cv_header_windows_h+set}" = set; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19471fi
19472echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19473echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19474else
19475 # Is the header compilable?
19476echo "$as_me:$LINENO: checking windows.h usability" >&5
19477echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19478cat >conftest.$ac_ext <<_ACEOF
19479#line $LINENO "configure"
19480/* confdefs.h. */
19481_ACEOF
19482cat confdefs.h >>conftest.$ac_ext
19483cat >>conftest.$ac_ext <<_ACEOF
19484/* end confdefs.h. */
19485$ac_includes_default
247f5006 19486#include <windows.h>
e6cc62c6
VS
19487_ACEOF
19488rm -f conftest.$ac_objext
19489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19490 (eval $ac_compile) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); } &&
19494 { ac_try='test -s conftest.$ac_objext'
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19497 ac_status=$?
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 ac_header_compiler=yes
19501else
19502 echo "$as_me: failed program was:" >&5
19503sed 's/^/| /' conftest.$ac_ext >&5
19504
19505ac_header_compiler=no
19506fi
19507rm -f conftest.$ac_objext conftest.$ac_ext
19508echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19509echo "${ECHO_T}$ac_header_compiler" >&6
19510
19511# Is the header present?
19512echo "$as_me:$LINENO: checking windows.h presence" >&5
19513echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19514cat >conftest.$ac_ext <<_ACEOF
19515#line $LINENO "configure"
19516/* confdefs.h. */
19517_ACEOF
19518cat confdefs.h >>conftest.$ac_ext
19519cat >>conftest.$ac_ext <<_ACEOF
19520/* end confdefs.h. */
19521#include <windows.h>
19522_ACEOF
19523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19525 ac_status=$?
19526 grep -v '^ *+' conftest.er1 >conftest.err
19527 rm -f conftest.er1
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } >/dev/null; then
19531 if test -s conftest.err; then
19532 ac_cpp_err=$ac_c_preproc_warn_flag
19533 else
19534 ac_cpp_err=
19535 fi
19536else
19537 ac_cpp_err=yes
19538fi
19539if test -z "$ac_cpp_err"; then
19540 ac_header_preproc=yes
19541else
19542 echo "$as_me: failed program was:" >&5
19543sed 's/^/| /' conftest.$ac_ext >&5
19544
19545 ac_header_preproc=no
19546fi
19547rm -f conftest.err conftest.$ac_ext
19548echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19549echo "${ECHO_T}$ac_header_preproc" >&6
19550
19551# So? What about this header?
19552case $ac_header_compiler:$ac_header_preproc in
19553 yes:no )
19554 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19555echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19556 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19557echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19558 (
19559 cat <<\_ASBOX
19560## ------------------------------------ ##
19561## Report this to bug-autoconf@gnu.org. ##
19562## ------------------------------------ ##
19563_ASBOX
19564 ) |
19565 sed "s/^/$as_me: WARNING: /" >&2
19566 ;;
19567 no:yes )
19568 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19569echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19570 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19571echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19572 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19573echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19574 (
19575 cat <<\_ASBOX
19576## ------------------------------------ ##
19577## Report this to bug-autoconf@gnu.org. ##
19578## ------------------------------------ ##
19579_ASBOX
19580 ) |
19581 sed "s/^/$as_me: WARNING: /" >&2
19582 ;;
19583esac
19584echo "$as_me:$LINENO: checking for windows.h" >&5
19585echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19586if test "${ac_cv_header_windows_h+set}" = set; then
19587 echo $ECHO_N "(cached) $ECHO_C" >&6
19588else
19589 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19590fi
e6cc62c6
VS
19591echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19592echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19593
90dd450c 19594fi
e6cc62c6 19595if test $ac_cv_header_windows_h = yes; then
21d1c967 19596 :
90dd450c 19597else
21d1c967 19598
e6cc62c6
VS
19599 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19600echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19601 { (exit 1); exit 1; }; }
19602
5c6fa7d2 19603fi
7b4a847f 19604
5c6fa7d2 19605
e6cc62c6 19606
b3dfbbc9 19607 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 19608
7bb2947d
MB
19609 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19610 LIBS="$LIBS -loleacc"
19611 fi
19612
21d1c967
GD
19613 case "${host}" in
19614 *-*-cygwin* )
b3dfbbc9 19615 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 19616 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19617 esac
f79bd02d 19618
8647bec6
RG
19619 if test "$wxUSE_ODBC" = "sys" ; then
19620 wxUSE_ODBC = "yes"
21d1c967 19621 fi
8647bec6
RG
19622 if test "$wxUSE_ODBC" = "yes" ; then
19623 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19624 cat >>confdefs.h <<\_ACEOF
8647bec6 19625#define wxUSE_ODBC 1
e6cc62c6 19626_ACEOF
f79bd02d 19627
8647bec6 19628 fi
e6cc62c6 19629
21d1c967
GD
19630 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19631 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19632
19633 WIN32INSTALL=win32install
f79bd02d 19634fi
f79bd02d 19635
21d1c967
GD
19636if test "$wxUSE_GUI" = "yes"; then
19637 USE_GUI=1
f79bd02d 19638
21d1c967 19639 GUI_TK_LIBRARY=
f79bd02d 19640
21d1c967
GD
19641 WXGTK12=
19642 WXGTK127=
19643 WXGTK20=
f79bd02d 19644
21d1c967
GD
19645 if test "$wxUSE_MSW" = 1 ; then
19646 TOOLKIT=MSW
19647 GUIDIST=MSW_DIST
ffef10f6
VS
19648
19649 case "${host}" in
19650 *-*-mingw32* )
19651 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
19652 esac
f79bd02d
JS
19653 fi
19654
21d1c967 19655 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19656 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19657echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19658
19659 gtk_version_cached=1
e6cc62c6
VS
19660 if test "${wx_cv_lib_gtk+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19662else
e6cc62c6 19663
21d1c967 19664 gtk_version_cached=0
e6cc62c6
VS
19665 echo "$as_me:$LINENO: result: " >&5
19666echo "${ECHO_T}" >&6
f79bd02d 19667
21d1c967
GD
19668 GTK_MODULES=
19669 if test "$wxUSE_THREADS" = "yes"; then
19670 GTK_MODULES=gthread
19671 fi
f79bd02d 19672
2b5f62a0 19673 wx_cv_lib_gtk=
21d1c967
GD
19674 if test "x$wxUSE_GTK2" = "xyes"; then
19675 # Check whether --enable-gtktest or --disable-gtktest was given.
19676if test "${enable_gtktest+set}" = set; then
19677 enableval="$enable_gtktest"
e6cc62c6 19678
f79bd02d 19679else
21d1c967 19680 enable_gtktest=yes
e6cc62c6 19681fi;
f79bd02d 19682
21d1c967
GD
19683 pkg_config_args=gtk+-2.0
19684 for module in . $GTK_MODULES
19685 do
19686 case "$module" in
e6cc62c6 19687 gthread)
21d1c967
GD
19688 pkg_config_args="$pkg_config_args gthread-2.0"
19689 ;;
19690 esac
19691 done
19692
19693 no_gtk=""
f79bd02d 19694
21d1c967
GD
19695 # Extract the first word of "pkg-config", so it can be a program name with args.
19696set dummy pkg-config; ac_word=$2
e6cc62c6
VS
19697echo "$as_me:$LINENO: checking for $ac_word" >&5
19698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19699if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19701else
e6cc62c6
VS
19702 case $PKG_CONFIG in
19703 [\\/]* | ?:[\\/]*)
21d1c967
GD
19704 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19705 ;;
21d1c967 19706 *)
e6cc62c6
VS
19707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19708for as_dir in $PATH
19709do
19710 IFS=$as_save_IFS
19711 test -z "$as_dir" && as_dir=.
19712 for ac_exec_ext in '' $ac_executable_extensions; do
19713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19714 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19716 break 2
19717 fi
19718done
19719done
19720
21d1c967
GD
19721 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19722 ;;
19723esac
f79bd02d 19724fi
e6cc62c6
VS
19725PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19726
21d1c967 19727if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
19728 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19729echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 19730else
e6cc62c6
VS
19731 echo "$as_me:$LINENO: result: no" >&5
19732echo "${ECHO_T}no" >&6
f79bd02d
JS
19733fi
19734
8284b0c5 19735
21d1c967
GD
19736 if test x$PKG_CONFIG != xno ; then
19737 if pkg-config --atleast-pkgconfig-version 0.7 ; then
19738 :
19739 else
19740 echo *** pkg-config too old; version 0.7 or better required.
19741 no_gtk=yes
19742 PKG_CONFIG=no
19743 fi
19744 else
19745 no_gtk=yes
19746 fi
f79bd02d 19747
21d1c967 19748 min_gtk_version=2.0.0
e6cc62c6
VS
19749 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19750echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 19751
21d1c967
GD
19752 if test x$PKG_CONFIG != xno ; then
19753 ## don't try to run the test against uninstalled libtool libs
19754 if $PKG_CONFIG --uninstalled $pkg_config_args; then
19755 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19756 enable_gtktest=no
19757 fi
f79bd02d 19758
21d1c967
GD
19759 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19760 :
19761 else
19762 no_gtk=yes
19763 fi
19764 fi
f79bd02d 19765
21d1c967
GD
19766 if test x"$no_gtk" = x ; then
19767 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19768 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19769 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19770 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19771 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19772 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19773 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19774 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19775 if test "x$enable_gtktest" = "xyes" ; then
19776 ac_save_CFLAGS="$CFLAGS"
19777 ac_save_LIBS="$LIBS"
19778 CFLAGS="$CFLAGS $GTK_CFLAGS"
19779 LIBS="$GTK_LIBS $LIBS"
19780 rm -f conf.gtktest
19781 if test "$cross_compiling" = yes; then
19782 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19783else
e6cc62c6
VS
19784 cat >conftest.$ac_ext <<_ACEOF
19785#line $LINENO "configure"
19786/* confdefs.h. */
19787_ACEOF
19788cat confdefs.h >>conftest.$ac_ext
19789cat >>conftest.$ac_ext <<_ACEOF
19790/* end confdefs.h. */
f79bd02d 19791
21d1c967
GD
19792#include <gtk/gtk.h>
19793#include <stdio.h>
19794#include <stdlib.h>
f79bd02d 19795
e6cc62c6 19796int
21d1c967
GD
19797main ()
19798{
19799 int major, minor, micro;
19800 char *tmp_version;
f79bd02d 19801
21d1c967 19802 system ("touch conf.gtktest");
f79bd02d 19803
21d1c967
GD
19804 /* HP/UX 9 (%@#!) writes to sscanf strings */
19805 tmp_version = g_strdup("$min_gtk_version");
19806 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19807 printf("%s, bad version string\n", "$min_gtk_version");
19808 exit(1);
19809 }
f79bd02d 19810
21d1c967
GD
19811 if ((gtk_major_version != $gtk_config_major_version) ||
19812 (gtk_minor_version != $gtk_config_minor_version) ||
19813 (gtk_micro_version != $gtk_config_micro_version))
19814 {
e6cc62c6 19815 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19816 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19817 gtk_major_version, gtk_minor_version, gtk_micro_version);
19818 printf ("*** was found! If pkg-config was correct, then it is best\n");
19819 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19820 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19821 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19822 printf("*** required on your system.\n");
19823 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19824 printf("*** to point to the correct configuration files\n");
e6cc62c6 19825 }
21d1c967
GD
19826 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19827 (gtk_minor_version != GTK_MINOR_VERSION) ||
19828 (gtk_micro_version != GTK_MICRO_VERSION))
19829 {
19830 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19831 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19832 printf("*** library (version %d.%d.%d)\n",
19833 gtk_major_version, gtk_minor_version, gtk_micro_version);
19834 }
19835 else
19836 {
19837 if ((gtk_major_version > major) ||
19838 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19839 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19840 {
19841 return 0;
19842 }
19843 else
19844 {
19845 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19846 gtk_major_version, gtk_minor_version, gtk_micro_version);
19847 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19848 major, minor, micro);
19849 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19850 printf("***\n");
19851 printf("*** If you have already installed a sufficiently new version, this error\n");
19852 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
19853 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19854 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
19855 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
19856 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19857 printf("*** so that the correct libraries are found at run-time))\n");
19858 }
19859 }
19860 return 1;
19861}
f79bd02d 19862
e6cc62c6
VS
19863_ACEOF
19864rm -f conftest$ac_exeext
19865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19866 (eval $ac_link) 2>&5
19867 ac_status=$?
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871 (eval $ac_try) 2>&5
19872 ac_status=$?
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; }; then
21d1c967 19875 :
f79bd02d 19876else
e6cc62c6
VS
19877 echo "$as_me: program exited with status $ac_status" >&5
19878echo "$as_me: failed program was:" >&5
19879sed 's/^/| /' conftest.$ac_ext >&5
19880
19881( exit $ac_status )
19882no_gtk=yes
f79bd02d 19883fi
e6cc62c6 19884rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 19885fi
21d1c967
GD
19886 CFLAGS="$ac_save_CFLAGS"
19887 LIBS="$ac_save_LIBS"
19888 fi
19889 fi
19890 if test "x$no_gtk" = x ; then
e6cc62c6
VS
19891 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
19892echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
19893 wx_cv_lib_gtk=2.0
21d1c967 19894 else
e6cc62c6
VS
19895 echo "$as_me:$LINENO: result: no" >&5
19896echo "${ECHO_T}no" >&6
21d1c967
GD
19897 if test "$PKG_CONFIG" = "no" ; then
19898 echo "*** A new enough version of pkg-config was not found."
19899 echo "*** See http://pkgconfig.sourceforge.net"
19900 else
19901 if test -f conf.gtktest ; then
19902 :
19903 else
19904 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
19905 ac_save_CFLAGS="$CFLAGS"
19906 ac_save_LIBS="$LIBS"
21d1c967
GD
19907 CFLAGS="$CFLAGS $GTK_CFLAGS"
19908 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
19909 cat >conftest.$ac_ext <<_ACEOF
19910#line $LINENO "configure"
19911/* confdefs.h. */
19912_ACEOF
19913cat confdefs.h >>conftest.$ac_ext
19914cat >>conftest.$ac_ext <<_ACEOF
19915/* end confdefs.h. */
21d1c967
GD
19916
19917#include <gtk/gtk.h>
19918#include <stdio.h>
f79bd02d 19919
e6cc62c6
VS
19920int
19921main ()
19922{
19923 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19924 ;
19925 return 0;
19926}
19927_ACEOF
19928rm -f conftest.$ac_objext conftest$ac_exeext
19929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19930 (eval $ac_link) 2>&5
19931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } &&
19934 { ac_try='test -s conftest$ac_exeext'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; }; then
21d1c967
GD
19940 echo "*** The test program compiled, but did not run. This usually means"
19941 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
19942 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
19943 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19944 echo "*** to the installed location Also, make sure you have run ldconfig if that"
19945 echo "*** is required on your system"
19946 echo "***"
19947 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 19948 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 19949else
e6cc62c6
VS
19950 echo "$as_me: failed program was:" >&5
19951sed 's/^/| /' conftest.$ac_ext >&5
19952
19953 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 19954 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 19955fi
e6cc62c6 19956rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
19957 CFLAGS="$ac_save_CFLAGS"
19958 LIBS="$ac_save_LIBS"
19959 fi
19960 fi
19961 GTK_CFLAGS=""
19962 GTK_LIBS=""
19963 :
19964 fi
e6cc62c6
VS
19965
19966
21d1c967 19967 rm -f conf.gtktest
f79bd02d 19968
2b5f62a0 19969 else
e6cc62c6
VS
19970
19971# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
19972if test "${with_gtk_prefix+set}" = set; then
19973 withval="$with_gtk_prefix"
19974 gtk_config_prefix="$withval"
19975else
19976 gtk_config_prefix=""
e6cc62c6 19977fi;
f79bd02d 19978
21d1c967
GD
19979# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
19980if test "${with_gtk_exec_prefix+set}" = set; then
19981 withval="$with_gtk_exec_prefix"
19982 gtk_config_exec_prefix="$withval"
19983else
19984 gtk_config_exec_prefix=""
e6cc62c6 19985fi;
21d1c967
GD
19986# Check whether --enable-gtktest or --disable-gtktest was given.
19987if test "${enable_gtktest+set}" = set; then
19988 enableval="$enable_gtktest"
e6cc62c6 19989
21d1c967
GD
19990else
19991 enable_gtktest=yes
e6cc62c6 19992fi;
21d1c967
GD
19993
19994 for module in . $GTK_MODULES
19995 do
19996 case "$module" in
e6cc62c6 19997 gthread)
21d1c967
GD
19998 gtk_config_args="$gtk_config_args gthread"
19999 ;;
20000 esac
20001 done
20002
20003 if test x$gtk_config_exec_prefix != x ; then
20004 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20005 if test x${GTK_CONFIG+set} != xset ; then
20006 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20007 fi
20008 fi
20009 if test x$gtk_config_prefix != x ; then
20010 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20011 if test x${GTK_CONFIG+set} != xset ; then
20012 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20013 fi
20014 fi
20015
20016 # Extract the first word of "gtk-config", so it can be a program name with args.
20017set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20018echo "$as_me:$LINENO: checking for $ac_word" >&5
20019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20020if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20021 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20022else
e6cc62c6
VS
20023 case $GTK_CONFIG in
20024 [\\/]* | ?:[\\/]*)
21d1c967
GD
20025 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20026 ;;
21d1c967 20027 *)
e6cc62c6
VS
20028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20029for as_dir in $PATH
20030do
20031 IFS=$as_save_IFS
20032 test -z "$as_dir" && as_dir=.
20033 for ac_exec_ext in '' $ac_executable_extensions; do
20034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20035 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20037 break 2
20038 fi
20039done
20040done
20041
21d1c967
GD
20042 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20043 ;;
20044esac
20045fi
e6cc62c6
VS
20046GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20047
21d1c967 20048if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20049 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20050echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20051else
e6cc62c6
VS
20052 echo "$as_me:$LINENO: result: no" >&5
20053echo "${ECHO_T}no" >&6
21d1c967
GD
20054fi
20055
20056 min_gtk_version=1.2.7
e6cc62c6
VS
20057 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20058echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20059 no_gtk=""
20060 if test "$GTK_CONFIG" = "no" ; then
20061 no_gtk=yes
20062 else
20063 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20064 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20065 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20066 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20067 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20068 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20069 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20070 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20071 if test "x$enable_gtktest" = "xyes" ; then
20072 ac_save_CFLAGS="$CFLAGS"
20073 ac_save_LIBS="$LIBS"
20074 CFLAGS="$CFLAGS $GTK_CFLAGS"
20075 LIBS="$GTK_LIBS $LIBS"
20076 rm -f conf.gtktest
20077 if test "$cross_compiling" = yes; then
20078 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20079else
e6cc62c6
VS
20080 cat >conftest.$ac_ext <<_ACEOF
20081#line $LINENO "configure"
20082/* confdefs.h. */
20083_ACEOF
20084cat confdefs.h >>conftest.$ac_ext
20085cat >>conftest.$ac_ext <<_ACEOF
20086/* end confdefs.h. */
f79bd02d 20087
21d1c967
GD
20088#include <gtk/gtk.h>
20089#include <stdio.h>
20090#include <stdlib.h>
f79bd02d 20091
e6cc62c6 20092int
21d1c967
GD
20093main ()
20094{
20095 int major, minor, micro;
20096 char *tmp_version;
20097
20098 system ("touch conf.gtktest");
20099
20100 /* HP/UX 9 (%@#!) writes to sscanf strings */
20101 tmp_version = g_strdup("$min_gtk_version");
20102 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20103 printf("%s, bad version string\n", "$min_gtk_version");
20104 exit(1);
20105 }
90dd450c 20106
21d1c967
GD
20107 if ((gtk_major_version != $gtk_config_major_version) ||
20108 (gtk_minor_version != $gtk_config_minor_version) ||
20109 (gtk_micro_version != $gtk_config_micro_version))
20110 {
e6cc62c6 20111 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20112 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20113 gtk_major_version, gtk_minor_version, gtk_micro_version);
20114 printf ("*** was found! If gtk-config was correct, then it is best\n");
20115 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20116 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20117 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20118 printf("*** required on your system.\n");
20119 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20120 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20121 printf("*** before re-running configure\n");
e6cc62c6 20122 }
21d1c967
GD
20123#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20124 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20125 (gtk_minor_version != GTK_MINOR_VERSION) ||
20126 (gtk_micro_version != GTK_MICRO_VERSION))
20127 {
20128 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20129 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20130 printf("*** library (version %d.%d.%d)\n",
20131 gtk_major_version, gtk_minor_version, gtk_micro_version);
20132 }
20133#endif /* defined (GTK_MAJOR_VERSION) ... */
20134 else
20135 {
20136 if ((gtk_major_version > major) ||
20137 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20138 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20139 {
20140 return 0;
20141 }
20142 else
20143 {
20144 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20145 gtk_major_version, gtk_minor_version, gtk_micro_version);
20146 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20147 major, minor, micro);
20148 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20149 printf("***\n");
20150 printf("*** If you have already installed a sufficiently new version, this error\n");
20151 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20152 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20153 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20154 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20155 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20156 printf("*** so that the correct libraries are found at run-time))\n");
20157 }
20158 }
20159 return 1;
20160}
20161
e6cc62c6
VS
20162_ACEOF
20163rm -f conftest$ac_exeext
20164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20165 (eval $ac_link) 2>&5
20166 ac_status=$?
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170 (eval $ac_try) 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
21d1c967
GD
20174 :
20175else
e6cc62c6
VS
20176 echo "$as_me: program exited with status $ac_status" >&5
20177echo "$as_me: failed program was:" >&5
20178sed 's/^/| /' conftest.$ac_ext >&5
20179
20180( exit $ac_status )
20181no_gtk=yes
21d1c967 20182fi
e6cc62c6 20183rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20184fi
21d1c967
GD
20185 CFLAGS="$ac_save_CFLAGS"
20186 LIBS="$ac_save_LIBS"
20187 fi
20188 fi
20189 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20190 echo "$as_me:$LINENO: result: yes" >&5
20191echo "${ECHO_T}yes" >&6
20192 wx_cv_lib_gtk=1.2.7
21d1c967 20193 else
e6cc62c6
VS
20194 echo "$as_me:$LINENO: result: no" >&5
20195echo "${ECHO_T}no" >&6
21d1c967
GD
20196 if test "$GTK_CONFIG" = "no" ; then
20197 echo "*** The gtk-config script installed by GTK could not be found"
20198 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20199 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20200 echo "*** full path to gtk-config."
20201 else
20202 if test -f conf.gtktest ; then
20203 :
20204 else
20205 echo "*** Could not run GTK test program, checking why..."
20206 CFLAGS="$CFLAGS $GTK_CFLAGS"
20207 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20208 cat >conftest.$ac_ext <<_ACEOF
20209#line $LINENO "configure"
20210/* confdefs.h. */
20211_ACEOF
20212cat confdefs.h >>conftest.$ac_ext
20213cat >>conftest.$ac_ext <<_ACEOF
20214/* end confdefs.h. */
21d1c967
GD
20215
20216#include <gtk/gtk.h>
20217#include <stdio.h>
20218
e6cc62c6
VS
20219int
20220main ()
20221{
20222 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20223 ;
20224 return 0;
20225}
20226_ACEOF
20227rm -f conftest.$ac_objext conftest$ac_exeext
20228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20229 (eval $ac_link) 2>&5
20230 ac_status=$?
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
20233 { ac_try='test -s conftest$ac_exeext'
20234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20235 (eval $ac_try) 2>&5
20236 ac_status=$?
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 (exit $ac_status); }; }; then
21d1c967
GD
20239 echo "*** The test program compiled, but did not run. This usually means"
20240 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20241 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20242 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20243 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20244 echo "*** is required on your system"
20245 echo "***"
20246 echo "*** If you have an old version installed, it is best to remove it, although"
20247 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20248 echo "***"
20249 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20250 echo "*** came with the system with the command"
20251 echo "***"
e6cc62c6 20252 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20253else
e6cc62c6
VS
20254 echo "$as_me: failed program was:" >&5
20255sed 's/^/| /' conftest.$ac_ext >&5
20256
20257 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20258 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20259 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20260 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20261fi
e6cc62c6 20262rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20263 CFLAGS="$ac_save_CFLAGS"
20264 LIBS="$ac_save_LIBS"
20265 fi
20266 fi
20267 GTK_CFLAGS=""
20268 GTK_LIBS=""
20269 :
20270 fi
e6cc62c6
VS
20271
20272
21d1c967
GD
20273 rm -f conf.gtktest
20274
21d1c967 20275
2b5f62a0 20276 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20277
20278# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20279if test "${with_gtk_prefix+set}" = set; then
20280 withval="$with_gtk_prefix"
20281 gtk_config_prefix="$withval"
20282else
20283 gtk_config_prefix=""
e6cc62c6 20284fi;
f79bd02d 20285
21d1c967
GD
20286# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20287if test "${with_gtk_exec_prefix+set}" = set; then
20288 withval="$with_gtk_exec_prefix"
20289 gtk_config_exec_prefix="$withval"
20290else
20291 gtk_config_exec_prefix=""
e6cc62c6 20292fi;
21d1c967
GD
20293# Check whether --enable-gtktest or --disable-gtktest was given.
20294if test "${enable_gtktest+set}" = set; then
20295 enableval="$enable_gtktest"
e6cc62c6 20296
90dd450c 20297else
21d1c967 20298 enable_gtktest=yes
e6cc62c6 20299fi;
21d1c967
GD
20300
20301 for module in . $GTK_MODULES
20302 do
20303 case "$module" in
e6cc62c6 20304 gthread)
21d1c967
GD
20305 gtk_config_args="$gtk_config_args gthread"
20306 ;;
20307 esac
20308 done
20309
20310 if test x$gtk_config_exec_prefix != x ; then
20311 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20312 if test x${GTK_CONFIG+set} != xset ; then
20313 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20314 fi
20315 fi
20316 if test x$gtk_config_prefix != x ; then
20317 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20318 if test x${GTK_CONFIG+set} != xset ; then
20319 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20320 fi
20321 fi
20322
20323 # Extract the first word of "gtk-config", so it can be a program name with args.
20324set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20325echo "$as_me:$LINENO: checking for $ac_word" >&5
20326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20327if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20328 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20329else
e6cc62c6
VS
20330 case $GTK_CONFIG in
20331 [\\/]* | ?:[\\/]*)
21d1c967
GD
20332 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20333 ;;
21d1c967 20334 *)
e6cc62c6
VS
20335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20336for as_dir in $PATH
20337do
20338 IFS=$as_save_IFS
20339 test -z "$as_dir" && as_dir=.
20340 for ac_exec_ext in '' $ac_executable_extensions; do
20341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20342 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20344 break 2
20345 fi
20346done
20347done
20348
21d1c967
GD
20349 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20350 ;;
20351esac
20352fi
e6cc62c6
VS
20353GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20354
21d1c967 20355if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20356 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20357echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20358else
e6cc62c6
VS
20359 echo "$as_me:$LINENO: result: no" >&5
20360echo "${ECHO_T}no" >&6
21d1c967
GD
20361fi
20362
20363 min_gtk_version=1.2.3
e6cc62c6
VS
20364 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20365echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20366 no_gtk=""
20367 if test "$GTK_CONFIG" = "no" ; then
20368 no_gtk=yes
20369 else
20370 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20371 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20372 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20373 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20374 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20375 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20376 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20377 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20378 if test "x$enable_gtktest" = "xyes" ; then
20379 ac_save_CFLAGS="$CFLAGS"
20380 ac_save_LIBS="$LIBS"
20381 CFLAGS="$CFLAGS $GTK_CFLAGS"
20382 LIBS="$GTK_LIBS $LIBS"
20383 rm -f conf.gtktest
20384 if test "$cross_compiling" = yes; then
20385 echo $ac_n "cross compiling; assumed OK... $ac_c"
20386else
e6cc62c6
VS
20387 cat >conftest.$ac_ext <<_ACEOF
20388#line $LINENO "configure"
20389/* confdefs.h. */
20390_ACEOF
20391cat confdefs.h >>conftest.$ac_ext
20392cat >>conftest.$ac_ext <<_ACEOF
20393/* end confdefs.h. */
21d1c967
GD
20394
20395#include <gtk/gtk.h>
20396#include <stdio.h>
20397#include <stdlib.h>
20398
e6cc62c6 20399int
21d1c967
GD
20400main ()
20401{
20402 int major, minor, micro;
20403 char *tmp_version;
20404
20405 system ("touch conf.gtktest");
20406
20407 /* HP/UX 9 (%@#!) writes to sscanf strings */
20408 tmp_version = g_strdup("$min_gtk_version");
20409 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20410 printf("%s, bad version string\n", "$min_gtk_version");
20411 exit(1);
20412 }
20413
20414 if ((gtk_major_version != $gtk_config_major_version) ||
20415 (gtk_minor_version != $gtk_config_minor_version) ||
20416 (gtk_micro_version != $gtk_config_micro_version))
20417 {
e6cc62c6 20418 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20419 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20420 gtk_major_version, gtk_minor_version, gtk_micro_version);
20421 printf ("*** was found! If gtk-config was correct, then it is best\n");
20422 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20423 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20424 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20425 printf("*** required on your system.\n");
20426 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20427 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20428 printf("*** before re-running configure\n");
e6cc62c6 20429 }
21d1c967
GD
20430#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20431 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20432 (gtk_minor_version != GTK_MINOR_VERSION) ||
20433 (gtk_micro_version != GTK_MICRO_VERSION))
20434 {
20435 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20436 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20437 printf("*** library (version %d.%d.%d)\n",
20438 gtk_major_version, gtk_minor_version, gtk_micro_version);
20439 }
20440#endif /* defined (GTK_MAJOR_VERSION) ... */
20441 else
20442 {
20443 if ((gtk_major_version > major) ||
20444 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20445 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20446 {
20447 return 0;
20448 }
20449 else
20450 {
20451 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20452 gtk_major_version, gtk_minor_version, gtk_micro_version);
20453 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20454 major, minor, micro);
20455 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20456 printf("***\n");
20457 printf("*** If you have already installed a sufficiently new version, this error\n");
20458 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20459 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20460 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20461 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20462 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20463 printf("*** so that the correct libraries are found at run-time))\n");
20464 }
20465 }
20466 return 1;
20467}
20468
e6cc62c6
VS
20469_ACEOF
20470rm -f conftest$ac_exeext
20471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20472 (eval $ac_link) 2>&5
20473 ac_status=$?
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20477 (eval $ac_try) 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; }; then
21d1c967
GD
20481 :
20482else
e6cc62c6
VS
20483 echo "$as_me: program exited with status $ac_status" >&5
20484echo "$as_me: failed program was:" >&5
20485sed 's/^/| /' conftest.$ac_ext >&5
20486
20487( exit $ac_status )
20488no_gtk=yes
21d1c967 20489fi
e6cc62c6 20490rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20491fi
21d1c967
GD
20492 CFLAGS="$ac_save_CFLAGS"
20493 LIBS="$ac_save_LIBS"
20494 fi
20495 fi
20496 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20497 echo "$as_me:$LINENO: result: yes" >&5
20498echo "${ECHO_T}yes" >&6
20499 wx_cv_lib_gtk=1.2.3
21d1c967 20500 else
e6cc62c6
VS
20501 echo "$as_me:$LINENO: result: no" >&5
20502echo "${ECHO_T}no" >&6
21d1c967
GD
20503 if test "$GTK_CONFIG" = "no" ; then
20504 echo "*** The gtk-config script installed by GTK could not be found"
20505 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20506 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20507 echo "*** full path to gtk-config."
20508 else
20509 if test -f conf.gtktest ; then
20510 :
20511 else
20512 echo "*** Could not run GTK test program, checking why..."
20513 CFLAGS="$CFLAGS $GTK_CFLAGS"
20514 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20515 cat >conftest.$ac_ext <<_ACEOF
20516#line $LINENO "configure"
20517/* confdefs.h. */
20518_ACEOF
20519cat confdefs.h >>conftest.$ac_ext
20520cat >>conftest.$ac_ext <<_ACEOF
20521/* end confdefs.h. */
21d1c967
GD
20522
20523#include <gtk/gtk.h>
20524#include <stdio.h>
f79bd02d 20525
e6cc62c6
VS
20526int
20527main ()
20528{
20529 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20530 ;
20531 return 0;
20532}
20533_ACEOF
20534rm -f conftest.$ac_objext conftest$ac_exeext
20535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20536 (eval $ac_link) 2>&5
20537 ac_status=$?
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } &&
20540 { ac_try='test -s conftest$ac_exeext'
20541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542 (eval $ac_try) 2>&5
20543 ac_status=$?
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; }; then
21d1c967
GD
20546 echo "*** The test program compiled, but did not run. This usually means"
20547 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20548 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20549 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20550 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20551 echo "*** is required on your system"
20552 echo "***"
20553 echo "*** If you have an old version installed, it is best to remove it, although"
20554 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20555 echo "***"
20556 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20557 echo "*** came with the system with the command"
20558 echo "***"
e6cc62c6 20559 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20560else
e6cc62c6
VS
20561 echo "$as_me: failed program was:" >&5
20562sed 's/^/| /' conftest.$ac_ext >&5
20563
20564 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20565 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20566 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20567 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20568fi
e6cc62c6 20569rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20570 CFLAGS="$ac_save_CFLAGS"
20571 LIBS="$ac_save_LIBS"
20572 fi
20573 fi
20574 GTK_CFLAGS=""
20575 GTK_LIBS=""
20576 :
20577 fi
e6cc62c6
VS
20578
20579
21d1c967 20580 rm -f conf.gtktest
f79bd02d 20581
2b5f62a0 20582 fi
21d1c967
GD
20583 fi
20584
20585 if test -z "$wx_cv_lib_gtk"; then
20586 wx_cv_lib_gtk=none
20587 else
20588 wx_cv_cflags_gtk=$GTK_CFLAGS
20589 wx_cv_libs_gtk=$GTK_LIBS
20590 fi
e6cc62c6
VS
20591
20592
5c6fa7d2 20593fi
52127426 20594
8284b0c5 20595
21d1c967 20596 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20597 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20598echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20599 fi
20600
20601 case "$wx_cv_lib_gtk" in
20602 2.0) WXGTK20=1
2b5f62a0 20603 TOOLKIT_VERSION=2
21d1c967
GD
20604 ;;
20605 1.2.7) WXGTK127=1
20606 WXGTK12=1
20607 ;;
20608 1.2.3) WXGTK12=1
20609 ;;
e6cc62c6
VS
20610 *) { { echo "$as_me:$LINENO: error:
20611Please check that gtk-config is in path, the directory
20612where GTK+ libraries are installed (returned by
20613'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20614equivalent variable and GTK+ is version 1.2.3 or above.
20615 " >&5
20616echo "$as_me: error:
247f5006
VZ
20617Please check that gtk-config is in path, the directory
20618where GTK+ libraries are installed (returned by
20619'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20620equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20621 " >&2;}
20622 { (exit 1); exit 1; }; }
21d1c967
GD
20623 ;;
20624 esac
20625
b13cd66e
VZ
20626 if test "$WXGTK20" = 1; then
20627 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20628
f09359cf
VS
20629 succeeded=no
20630
20631 if test -z "$PKG_CONFIG"; then
20632 # Extract the first word of "pkg-config", so it can be a program name with args.
20633set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20634echo "$as_me:$LINENO: checking for $ac_word" >&5
20635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20636if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20638else
e6cc62c6
VS
20639 case $PKG_CONFIG in
20640 [\\/]* | ?:[\\/]*)
f09359cf
VS
20641 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20642 ;;
f09359cf 20643 *)
e6cc62c6
VS
20644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20645for as_dir in $PATH
20646do
20647 IFS=$as_save_IFS
20648 test -z "$as_dir" && as_dir=.
20649 for ac_exec_ext in '' $ac_executable_extensions; do
20650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20651 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20653 break 2
20654 fi
20655done
20656done
20657
f09359cf
VS
20658 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20659 ;;
20660esac
20661fi
e6cc62c6
VS
20662PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20663
f09359cf 20664if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20665 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20666echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20667else
e6cc62c6
VS
20668 echo "$as_me:$LINENO: result: no" >&5
20669echo "${ECHO_T}no" >&6
f09359cf
VS
20670fi
20671
20672 fi
20673
20674 if test "$PKG_CONFIG" = "no" ; then
20675 echo "*** The pkg-config script could not be found. Make sure it is"
20676 echo "*** in your path, or set the PKG_CONFIG environment variable"
20677 echo "*** to the full path to pkg-config."
20678 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20679 else
20680 PKG_CONFIG_MIN_VERSION=0.9.0
20681 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
20682 echo "$as_me:$LINENO: checking for pangoft2" >&5
20683echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
20684
20685 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
20686 echo "$as_me:$LINENO: result: yes" >&5
20687echo "${ECHO_T}yes" >&6
f09359cf
VS
20688 succeeded=yes
20689
e6cc62c6
VS
20690 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20691echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 20692 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
20693 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20694echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 20695
e6cc62c6
VS
20696 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20697echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 20698 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
20699 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20700echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
20701 else
20702 PANGOFT2_CFLAGS=""
20703 PANGOFT2_LIBS=""
e6cc62c6 20704 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
20705 ## do set a variable so people can do so.
20706 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 20707
f09359cf
VS
20708 fi
20709
e6cc62c6
VS
20710
20711
f09359cf
VS
20712 else
20713 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20714 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20715 fi
20716 fi
20717
20718 if test $succeeded = yes; then
e6cc62c6 20719
b13cd66e 20720 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 20721 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 20722
f09359cf 20723 else
e6cc62c6
VS
20724
20725 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20726echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 20727 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
20728
20729
f09359cf
VS
20730 fi
20731
b13cd66e 20732 fi
2b5f62a0
VZ
20733 else
20734 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
20735 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20736echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
20737 wxUSE_UNICODE=no
20738 fi
20739 fi
20740
20741 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
20742
20743for ac_func in poll
2b5f62a0 20744do
e6cc62c6
VS
20745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20746echo "$as_me:$LINENO: checking for $ac_func" >&5
20747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20748if eval "test \"\${$as_ac_var+set}\" = set"; then
20749 echo $ECHO_N "(cached) $ECHO_C" >&6
20750else
20751 cat >conftest.$ac_ext <<_ACEOF
20752#line $LINENO "configure"
20753/* confdefs.h. */
20754_ACEOF
20755cat confdefs.h >>conftest.$ac_ext
20756cat >>conftest.$ac_ext <<_ACEOF
20757/* end confdefs.h. */
2b5f62a0 20758/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
20759 which can conflict with char $ac_func (); below.
20760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20761 <limits.h> exists even on freestanding compilers. */
20762#ifdef __STDC__
20763# include <limits.h>
20764#else
20765# include <assert.h>
20766#endif
2b5f62a0 20767/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20768#ifdef __cplusplus
20769extern "C"
20770{
20771#endif
2b5f62a0 20772/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20773 builtin and then its argument prototype would still apply. */
20774char $ac_func ();
2b5f62a0
VZ
20775/* The GNU C library defines this for functions which it implements
20776 to always fail with ENOSYS. Some functions are actually named
20777 something starting with __ and the normal name is an alias. */
20778#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20779choke me
20780#else
e6cc62c6
VS
20781char (*f) () = $ac_func;
20782#endif
20783#ifdef __cplusplus
20784}
2b5f62a0
VZ
20785#endif
20786
e6cc62c6
VS
20787int
20788main ()
20789{
20790return f != $ac_func;
20791 ;
20792 return 0;
20793}
20794_ACEOF
20795rm -f conftest.$ac_objext conftest$ac_exeext
20796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20797 (eval $ac_link) 2>&5
20798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } &&
20801 { ac_try='test -s conftest$ac_exeext'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20804 ac_status=$?
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; }; then
20807 eval "$as_ac_var=yes"
20808else
20809 echo "$as_me: failed program was:" >&5
20810sed 's/^/| /' conftest.$ac_ext >&5
20811
20812eval "$as_ac_var=no"
20813fi
20814rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20815fi
20816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20817echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20818if test `eval echo '${'$as_ac_var'}'` = yes; then
20819 cat >>confdefs.h <<_ACEOF
20820#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20821_ACEOF
2b5f62a0 20822
2b5f62a0
VZ
20823fi
20824done
20825
f09359cf
VS
20826 fi
20827
21d1c967 20828 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 20829 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
20830
20831 AFMINSTALL=afminstall
20832 TOOLKIT=GTK
20833 GUIDIST=GTK_DIST
20834
e6cc62c6
VS
20835 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
20836echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
20837if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
20838 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20839else
e6cc62c6 20840 ac_check_lib_save_LIBS=$LIBS
21d1c967 20841LIBS="-lgdk $LIBS"
e6cc62c6
VS
20842cat >conftest.$ac_ext <<_ACEOF
20843#line $LINENO "configure"
20844/* confdefs.h. */
20845_ACEOF
20846cat confdefs.h >>conftest.$ac_ext
20847cat >>conftest.$ac_ext <<_ACEOF
20848/* end confdefs.h. */
20849
5c6fa7d2 20850/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20851#ifdef __cplusplus
20852extern "C"
20853#endif
5c6fa7d2 20854/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20855 builtin and then its argument prototype would still apply. */
20856char gdk_im_open ();
20857int
20858main ()
20859{
20860gdk_im_open ();
20861 ;
20862 return 0;
20863}
20864_ACEOF
20865rm -f conftest.$ac_objext conftest$ac_exeext
20866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20867 (eval $ac_link) 2>&5
20868 ac_status=$?
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); } &&
20871 { ac_try='test -s conftest$ac_exeext'
20872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20873 (eval $ac_try) 2>&5
20874 ac_status=$?
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); }; }; then
20877 ac_cv_lib_gdk_gdk_im_open=yes
20878else
20879 echo "$as_me: failed program was:" >&5
20880sed 's/^/| /' conftest.$ac_ext >&5
20881
20882ac_cv_lib_gdk_gdk_im_open=no
20883fi
20884rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20885LIBS=$ac_check_lib_save_LIBS
20886fi
20887echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
20888echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
20889if test $ac_cv_lib_gdk_gdk_im_open = yes; then
20890 cat >>confdefs.h <<\_ACEOF
21d1c967 20891#define HAVE_XIM 1
e6cc62c6 20892_ACEOF
21d1c967 20893
90dd450c 20894fi
1e6feb95 20895
21d1c967 20896 fi
1e6feb95 20897
21d1c967 20898 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
20899 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
20900echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 20901 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
20902 echo "$as_me:$LINENO: result: not found" >&5
20903echo "${ECHO_T}not found" >&6
20904 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
20905echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
20906 { (exit 1); exit 1; }; }
21d1c967 20907 else
e6cc62c6
VS
20908 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
20909echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
20910 fi
20911
e6cc62c6
VS
20912 echo "$as_me:$LINENO: checking for libmgl location" >&5
20913echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21d1c967
GD
20914 case "${host}" in
20915 *-*-linux* )
63a76696
VS
20916 if test "x$wxUSE_SHARED" = xyes ; then
20917 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
20918 else
20919 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
20920 fi
21d1c967
GD
20921 ;;
20922 *-pc-msdosdjgpp )
63a76696 20923 mgl_os_candidates="dos32/dj2"
21d1c967
GD
20924 ;;
20925 *)
e6cc62c6
VS
20926 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
20927echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
20928 { (exit 1); exit 1; }; }
21d1c967 20929 esac
1e6feb95 20930
21d1c967 20931 mgl_lib_type=""
63a76696
VS
20932 mgl_os=""
20933
20934 for mgl_os_i in $mgl_os_candidates ; do
20935 if test "x$mgl_os" = x ; then
20936 if test "$wxUSE_DEBUG_FLAG" = yes ; then
20937 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
20938 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
20939 mgl_lib_type=debug
20940 mgl_os=$mgl_os_i
20941 fi
20942 fi
20943 if test "x$mgl_lib_type" = x ; then
20944 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
20945 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
20946 mgl_lib_type=release
20947 mgl_os=$mgl_os_i
20948 fi
20949 fi
21d1c967 20950 fi
63a76696 20951 done
2224580a 20952
63a76696 20953 if test "x$mgl_os" = x ; then
e6cc62c6
VS
20954 echo "$as_me:$LINENO: result: not found" >&5
20955echo "${ECHO_T}not found" >&6
20956 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
20957echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
20958 { (exit 1); exit 1; }; }
63a76696 20959 fi
e6cc62c6
VS
20960 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
20961echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 20962
1d1b75ac
VZ
20963 wxUSE_UNIVERSAL="yes"
20964
21d1c967
GD
20965 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
20966 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
20967
90dd450c 20968 AFMINSTALL=afminstall
21d1c967
GD
20969 TOOLKIT=MGL
20970 GUIDIST=MGL_DIST
20971 fi
dad6c0ea 20972
21d1c967 20973 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
20974 echo "$as_me:$LINENO: checking for MicroWindows" >&5
20975echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 20976 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
20977 echo "$as_me:$LINENO: result: not found" >&5
20978echo "${ECHO_T}not found" >&6
20979 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
20980echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
20981 { (exit 1); exit 1; }; }
21d1c967 20982 else
e6cc62c6
VS
20983 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
20984echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 20985 fi
f6bcfd97 20986
21d1c967 20987 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
20988 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
20989echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 20990 else
e6cc62c6
VS
20991 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
20992echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
20993 { (exit 1); exit 1; }; }
90dd450c 20994 fi
0b2effe9 20995
21d1c967
GD
20996 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
20997 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
20998
1d1b75ac
VZ
20999 wxUSE_UNIVERSAL="yes"
21000
21d1c967
GD
21001 AFMINSTALL=afminstall
21002 TOOLKIT=MICROWIN
21003 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21004
21005 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21006 fi
f6bcfd97 21007
21d1c967 21008 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21009 echo "$as_me:$LINENO: checking for X" >&5
21010echo $ECHO_N "checking for X... $ECHO_C" >&6
21011
d8356fa3 21012
21d1c967
GD
21013# Check whether --with-x or --without-x was given.
21014if test "${with_x+set}" = set; then
21015 withval="$with_x"
2224580a 21016
e6cc62c6 21017fi;
21d1c967
GD
21018# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21019if test "x$with_x" = xno; then
21020 # The user explicitly disabled X.
21021 have_x=disabled
21022else
21023 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21024 # Both variables are already set.
21025 have_x=yes
21026 else
e6cc62c6
VS
21027 if test "${ac_cv_have_x+set}" = set; then
21028 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
21029else
21030 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
21031ac_x_includes=no ac_x_libraries=no
21032rm -fr conftest.dir
21033if mkdir conftest.dir; then
21034 cd conftest.dir
21d1c967 21035 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 21036 cat >Imakefile <<'_ACEOF'
21d1c967
GD
21037acfindx:
21038 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 21039_ACEOF
21d1c967
GD
21040 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21041 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21042 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21043 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21044 for ac_extension in a so sl; do
21045 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 21046 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
21047 ac_im_usrlibdir=$ac_im_libdir; break
21048 fi
21049 done
21050 # Screen out bogus values from the imake configuration. They are
21051 # bogus both because they are the default anyway, and because
21052 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 21053 case $ac_im_incroot in
21d1c967 21054 /usr/include) ;;
e6cc62c6 21055 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 21056 esac
e6cc62c6 21057 case $ac_im_usrlibdir in
21d1c967 21058 /usr/lib | /lib) ;;
e6cc62c6 21059 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
21060 esac
21061 fi
21062 cd ..
e6cc62c6 21063 rm -fr conftest.dir
21d1c967 21064fi
10f2d63a 21065
e6cc62c6
VS
21066# Standard set of common directories for X headers.
21067# Check X11 before X11Rn because it is often a symlink to the current release.
21068ac_x_header_dirs='
21069/usr/X11/include
21070/usr/X11R6/include
21071/usr/X11R5/include
21072/usr/X11R4/include
21073
21074/usr/include/X11
21075/usr/include/X11R6
21076/usr/include/X11R5
21077/usr/include/X11R4
21078
21079/usr/local/X11/include
21080/usr/local/X11R6/include
21081/usr/local/X11R5/include
21082/usr/local/X11R4/include
21083
21084/usr/local/include/X11
21085/usr/local/include/X11R6
21086/usr/local/include/X11R5
21087/usr/local/include/X11R4
21088
21089/usr/X386/include
21090/usr/x386/include
21091/usr/XFree86/include/X11
21092
21093/usr/include
21094/usr/local/include
21095/usr/unsupported/include
21096/usr/athena/include
21097/usr/local/x11r5/include
21098/usr/lpp/Xamples/include
21099
21100/usr/openwin/include
21101/usr/openwin/share/include'
21102
21103if test "$ac_x_includes" = no; then
21104 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 21105 # First, try using that file with no special directory specified.
e6cc62c6
VS
21106 cat >conftest.$ac_ext <<_ACEOF
21107#line $LINENO "configure"
21108/* confdefs.h. */
21109_ACEOF
21110cat confdefs.h >>conftest.$ac_ext
21111cat >>conftest.$ac_ext <<_ACEOF
21112/* end confdefs.h. */
21113#include <X11/Intrinsic.h>
21114_ACEOF
21115if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21117 ac_status=$?
21118 grep -v '^ *+' conftest.er1 >conftest.err
21119 rm -f conftest.er1
21120 cat conftest.err >&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } >/dev/null; then
21123 if test -s conftest.err; then
21124 ac_cpp_err=$ac_c_preproc_warn_flag
21125 else
21126 ac_cpp_err=
21127 fi
21128else
21129 ac_cpp_err=yes
21130fi
21131if test -z "$ac_cpp_err"; then
21d1c967
GD
21132 # We can compile using X headers with no special include directory.
21133ac_x_includes=
90dd450c 21134else
e6cc62c6
VS
21135 echo "$as_me: failed program was:" >&5
21136sed 's/^/| /' conftest.$ac_ext >&5
21137
21138 for ac_dir in $ac_x_header_dirs; do
21139 if test -r "$ac_dir/X11/Intrinsic.h"; then
21140 ac_x_includes=$ac_dir
21141 break
21142 fi
21143done
3a922bb4 21144fi
e6cc62c6
VS
21145rm -f conftest.err conftest.$ac_ext
21146fi # $ac_x_includes = no
10f2d63a 21147
e6cc62c6 21148if test "$ac_x_libraries" = no; then
21d1c967 21149 # Check for the libraries.
21d1c967
GD
21150 # See if we find them without any special options.
21151 # Don't add to $LIBS permanently.
e6cc62c6
VS
21152 ac_save_LIBS=$LIBS
21153 LIBS="-lXt $LIBS"
21154 cat >conftest.$ac_ext <<_ACEOF
21155#line $LINENO "configure"
21156/* confdefs.h. */
21157_ACEOF
21158cat confdefs.h >>conftest.$ac_ext
21159cat >>conftest.$ac_ext <<_ACEOF
21160/* end confdefs.h. */
21161#include <X11/Intrinsic.h>
21162int
21163main ()
21164{
21165XtMalloc (0)
21166 ;
21167 return 0;
21168}
21169_ACEOF
21170rm -f conftest.$ac_objext conftest$ac_exeext
21171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21172 (eval $ac_link) 2>&5
21173 ac_status=$?
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); } &&
21176 { ac_try='test -s conftest$ac_exeext'
21177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178 (eval $ac_try) 2>&5
21179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; }; then
21182 LIBS=$ac_save_LIBS
21d1c967
GD
21183# We can link X programs with no special library path.
21184ac_x_libraries=
3a922bb4 21185else
e6cc62c6
VS
21186 echo "$as_me: failed program was:" >&5
21187sed 's/^/| /' conftest.$ac_ext >&5
21188
21189LIBS=$ac_save_LIBS
21190for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21191do
e6cc62c6 21192 # Don't even attempt the hair of trying to link an X program!
21d1c967 21193 for ac_extension in a so sl; do
e6cc62c6 21194 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21195 ac_x_libraries=$ac_dir
21196 break 2
21197 fi
21198 done
21199done
3a922bb4 21200fi
e6cc62c6
VS
21201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21202fi # $ac_x_libraries = no
90dd450c 21203
e6cc62c6 21204if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21205 # Didn't find X anywhere. Cache the known absence of X.
21206 ac_cv_have_x="have_x=no"
21207else
21208 # Record where we found X for the cache.
21209 ac_cv_have_x="have_x=yes \
21210 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21211fi
21d1c967 21212fi
e6cc62c6 21213
21d1c967
GD
21214 fi
21215 eval "$ac_cv_have_x"
21216fi # $with_x != no
90dd450c 21217
21d1c967 21218if test "$have_x" != yes; then
e6cc62c6
VS
21219 echo "$as_me:$LINENO: result: $have_x" >&5
21220echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21221 no_x=yes
21222else
21223 # If each of the values was on the command line, it overrides each guess.
21224 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21225 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21226 # Update the cache value to reflect the command line values.
21227 ac_cv_have_x="have_x=yes \
21228 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21229 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21230echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21231fi
90dd450c 21232
21d1c967 21233if test "$no_x" = yes; then
90dd450c 21234 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21235
21236cat >>confdefs.h <<\_ACEOF
90dd450c 21237#define X_DISPLAY_MISSING 1
e6cc62c6 21238_ACEOF
90dd450c
VZ
21239
21240 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21241else
21242 if test -n "$x_includes"; then
21243 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21244 fi
3a922bb4 21245
90dd450c
VZ
21246 # It would also be nice to do this for all -L options, not just this one.
21247 if test -n "$x_libraries"; then
21248 X_LIBS="$X_LIBS -L$x_libraries"
21249 # For Solaris; some versions of Sun CC require a space after -R and
21250 # others require no space. Words are not sufficient . . . .
e6cc62c6 21251 case `(uname -sr) 2>/dev/null` in
90dd450c 21252 "SunOS 5"*)
e6cc62c6
VS
21253 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21254echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21255 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21256 cat >conftest.$ac_ext <<_ACEOF
21257#line $LINENO "configure"
21258/* confdefs.h. */
21259_ACEOF
21260cat confdefs.h >>conftest.$ac_ext
21261cat >>conftest.$ac_ext <<_ACEOF
21262/* end confdefs.h. */
21263
21264int
21265main ()
21266{
90dd450c 21267
e6cc62c6
VS
21268 ;
21269 return 0;
21270}
21271_ACEOF
21272rm -f conftest.$ac_objext conftest$ac_exeext
21273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21274 (eval $ac_link) 2>&5
21275 ac_status=$?
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); } &&
21278 { ac_try='test -s conftest$ac_exeext'
21279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21280 (eval $ac_try) 2>&5
21281 ac_status=$?
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; }; then
90dd450c 21284 ac_R_nospace=yes
3a922bb4 21285else
e6cc62c6
VS
21286 echo "$as_me: failed program was:" >&5
21287sed 's/^/| /' conftest.$ac_ext >&5
21288
21289ac_R_nospace=no
3a922bb4 21290fi
e6cc62c6 21291rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21292 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21293 echo "$as_me:$LINENO: result: no" >&5
21294echo "${ECHO_T}no" >&6
90dd450c
VZ
21295 X_LIBS="$X_LIBS -R$x_libraries"
21296 else
21297 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21298 cat >conftest.$ac_ext <<_ACEOF
21299#line $LINENO "configure"
21300/* confdefs.h. */
21301_ACEOF
21302cat confdefs.h >>conftest.$ac_ext
21303cat >>conftest.$ac_ext <<_ACEOF
21304/* end confdefs.h. */
21305
21306int
21307main ()
21308{
6f754473 21309
e6cc62c6
VS
21310 ;
21311 return 0;
21312}
21313_ACEOF
21314rm -f conftest.$ac_objext conftest$ac_exeext
21315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21316 (eval $ac_link) 2>&5
21317 ac_status=$?
21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319 (exit $ac_status); } &&
21320 { ac_try='test -s conftest$ac_exeext'
21321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322 (eval $ac_try) 2>&5
21323 ac_status=$?
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; }; then
90dd450c
VZ
21326 ac_R_space=yes
21327else
e6cc62c6
VS
21328 echo "$as_me: failed program was:" >&5
21329sed 's/^/| /' conftest.$ac_ext >&5
21330
21331ac_R_space=no
90dd450c 21332fi
e6cc62c6 21333rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21334 if test $ac_R_space = yes; then
e6cc62c6
VS
21335 echo "$as_me:$LINENO: result: yes" >&5
21336echo "${ECHO_T}yes" >&6
90dd450c
VZ
21337 X_LIBS="$X_LIBS -R $x_libraries"
21338 else
e6cc62c6
VS
21339 echo "$as_me:$LINENO: result: neither works" >&5
21340echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21341 fi
21342 fi
e6cc62c6 21343 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21344 esac
21345 fi
21346
21347 # Check for system-dependent libraries X programs must link with.
21348 # Do this before checking for the system-independent R6 libraries
21349 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21350
90dd450c
VZ
21351 if test "$ISC" = yes; then
21352 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21353 else
e6cc62c6
VS
21354 # Martyn Johnson says this is needed for Ultrix, if the X
21355 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21356 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21357 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21358 cat >conftest.$ac_ext <<_ACEOF
21359#line $LINENO "configure"
21360/* confdefs.h. */
21361_ACEOF
21362cat confdefs.h >>conftest.$ac_ext
21363cat >>conftest.$ac_ext <<_ACEOF
21364/* end confdefs.h. */
21365
247f5006 21366/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21367#ifdef __cplusplus
21368extern "C"
21369#endif
247f5006 21370/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21371 builtin and then its argument prototype would still apply. */
21372char XOpenDisplay ();
21373int
21374main ()
21375{
21376XOpenDisplay ();
21377 ;
21378 return 0;
21379}
21380_ACEOF
21381rm -f conftest.$ac_objext conftest$ac_exeext
21382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21383 (eval $ac_link) 2>&5
21384 ac_status=$?
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); } &&
21387 { ac_try='test -s conftest$ac_exeext'
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5
21390 ac_status=$?
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; }; then
21393 :
21394else
21395 echo "$as_me: failed program was:" >&5
21396sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21397
e6cc62c6
VS
21398echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21399echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21400if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21402else
e6cc62c6
VS
21403 ac_check_lib_save_LIBS=$LIBS
21404LIBS="-ldnet $LIBS"
21405cat >conftest.$ac_ext <<_ACEOF
21406#line $LINENO "configure"
21407/* confdefs.h. */
21408_ACEOF
21409cat confdefs.h >>conftest.$ac_ext
21410cat >>conftest.$ac_ext <<_ACEOF
21411/* end confdefs.h. */
a0b9e27f 21412
e6cc62c6
VS
21413/* Override any gcc2 internal prototype to avoid an error. */
21414#ifdef __cplusplus
21415extern "C"
21416#endif
21417/* We use char because int might match the return type of a gcc2
21418 builtin and then its argument prototype would still apply. */
21419char dnet_ntoa ();
21420int
21421main ()
21422{
21423dnet_ntoa ();
21424 ;
21425 return 0;
21426}
21427_ACEOF
21428rm -f conftest.$ac_objext conftest$ac_exeext
21429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21430 (eval $ac_link) 2>&5
21431 ac_status=$?
21432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433 (exit $ac_status); } &&
21434 { ac_try='test -s conftest$ac_exeext'
21435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21436 (eval $ac_try) 2>&5
21437 ac_status=$?
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); }; }; then
21440 ac_cv_lib_dnet_dnet_ntoa=yes
21441else
21442 echo "$as_me: failed program was:" >&5
21443sed 's/^/| /' conftest.$ac_ext >&5
21444
21445ac_cv_lib_dnet_dnet_ntoa=no
21446fi
21447rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21448LIBS=$ac_check_lib_save_LIBS
21449fi
21450echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21451echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21452if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21453 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21454fi
21455
90dd450c 21456 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21457 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21458echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21459if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21461else
e6cc62c6 21462 ac_check_lib_save_LIBS=$LIBS
90dd450c 21463LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21464cat >conftest.$ac_ext <<_ACEOF
21465#line $LINENO "configure"
21466/* confdefs.h. */
21467_ACEOF
21468cat confdefs.h >>conftest.$ac_ext
21469cat >>conftest.$ac_ext <<_ACEOF
21470/* end confdefs.h. */
21471
90dd450c 21472/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21473#ifdef __cplusplus
21474extern "C"
21475#endif
90dd450c 21476/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21477 builtin and then its argument prototype would still apply. */
21478char dnet_ntoa ();
21479int
21480main ()
21481{
21482dnet_ntoa ();
21483 ;
21484 return 0;
21485}
21486_ACEOF
21487rm -f conftest.$ac_objext conftest$ac_exeext
21488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21489 (eval $ac_link) 2>&5
21490 ac_status=$?
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); } &&
21493 { ac_try='test -s conftest$ac_exeext'
21494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495 (eval $ac_try) 2>&5
21496 ac_status=$?
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; }; then
21499 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21500else
21501 echo "$as_me: failed program was:" >&5
21502sed 's/^/| /' conftest.$ac_ext >&5
21503
21504ac_cv_lib_dnet_stub_dnet_ntoa=no
21505fi
21506rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21507LIBS=$ac_check_lib_save_LIBS
21508fi
21509echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21510echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21511if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21512 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21513fi
21514
90dd450c 21515 fi
e6cc62c6
VS
21516fi
21517rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21518 LIBS="$ac_xsave_LIBS"
978f1259 21519
90dd450c
VZ
21520 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21521 # to get the SysV transport functions.
e6cc62c6 21522 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21523 # needs -lnsl.
21524 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21525 # on Irix 5.2, according to T.E. Dickey.
21526 # The functions gethostbyname, getservbyname, and inet_addr are
21527 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21528 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21529echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21530if test "${ac_cv_func_gethostbyname+set}" = set; then
21531 echo $ECHO_N "(cached) $ECHO_C" >&6
21532else
21533 cat >conftest.$ac_ext <<_ACEOF
21534#line $LINENO "configure"
21535/* confdefs.h. */
21536_ACEOF
21537cat confdefs.h >>conftest.$ac_ext
21538cat >>conftest.$ac_ext <<_ACEOF
21539/* end confdefs.h. */
90dd450c 21540/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21541 which can conflict with char gethostbyname (); below.
21542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21543 <limits.h> exists even on freestanding compilers. */
21544#ifdef __STDC__
21545# include <limits.h>
21546#else
21547# include <assert.h>
21548#endif
90dd450c 21549/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21550#ifdef __cplusplus
21551extern "C"
21552{
21553#endif
90dd450c 21554/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21555 builtin and then its argument prototype would still apply. */
21556char gethostbyname ();
90dd450c
VZ
21557/* The GNU C library defines this for functions which it implements
21558 to always fail with ENOSYS. Some functions are actually named
21559 something starting with __ and the normal name is an alias. */
21560#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21561choke me
21562#else
e6cc62c6
VS
21563char (*f) () = gethostbyname;
21564#endif
21565#ifdef __cplusplus
21566}
90dd450c 21567#endif
978f1259 21568
e6cc62c6
VS
21569int
21570main ()
21571{
21572return f != gethostbyname;
21573 ;
21574 return 0;
21575}
21576_ACEOF
21577rm -f conftest.$ac_objext conftest$ac_exeext
21578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21579 (eval $ac_link) 2>&5
21580 ac_status=$?
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); } &&
21583 { ac_try='test -s conftest$ac_exeext'
21584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21585 (eval $ac_try) 2>&5
21586 ac_status=$?
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); }; }; then
21589 ac_cv_func_gethostbyname=yes
21590else
21591 echo "$as_me: failed program was:" >&5
21592sed 's/^/| /' conftest.$ac_ext >&5
21593
21594ac_cv_func_gethostbyname=no
21595fi
21596rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21597fi
21598echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21599echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21600
90dd450c 21601 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21602 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21603echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21604if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21605 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21606else
e6cc62c6 21607 ac_check_lib_save_LIBS=$LIBS
90dd450c 21608LIBS="-lnsl $LIBS"
e6cc62c6
VS
21609cat >conftest.$ac_ext <<_ACEOF
21610#line $LINENO "configure"
21611/* confdefs.h. */
21612_ACEOF
21613cat confdefs.h >>conftest.$ac_ext
21614cat >>conftest.$ac_ext <<_ACEOF
21615/* end confdefs.h. */
21616
90dd450c 21617/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21618#ifdef __cplusplus
21619extern "C"
21620#endif
90dd450c 21621/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21622 builtin and then its argument prototype would still apply. */
21623char gethostbyname ();
21624int
21625main ()
21626{
21627gethostbyname ();
21628 ;
21629 return 0;
21630}
21631_ACEOF
21632rm -f conftest.$ac_objext conftest$ac_exeext
21633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21634 (eval $ac_link) 2>&5
21635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } &&
21638 { ac_try='test -s conftest$ac_exeext'
21639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640 (eval $ac_try) 2>&5
21641 ac_status=$?
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; }; then
21644 ac_cv_lib_nsl_gethostbyname=yes
21645else
21646 echo "$as_me: failed program was:" >&5
21647sed 's/^/| /' conftest.$ac_ext >&5
21648
21649ac_cv_lib_nsl_gethostbyname=no
21650fi
21651rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21652LIBS=$ac_check_lib_save_LIBS
21653fi
21654echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21655echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21656if test $ac_cv_lib_nsl_gethostbyname = yes; then
21657 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21658fi
247f5006 21659
e6cc62c6
VS
21660 if test $ac_cv_lib_nsl_gethostbyname = no; then
21661 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21662echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21663if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21664 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21665else
e6cc62c6
VS
21666 ac_check_lib_save_LIBS=$LIBS
21667LIBS="-lbsd $LIBS"
21668cat >conftest.$ac_ext <<_ACEOF
21669#line $LINENO "configure"
21670/* confdefs.h. */
21671_ACEOF
21672cat confdefs.h >>conftest.$ac_ext
21673cat >>conftest.$ac_ext <<_ACEOF
21674/* end confdefs.h. */
21675
21676/* Override any gcc2 internal prototype to avoid an error. */
21677#ifdef __cplusplus
21678extern "C"
21679#endif
21680/* We use char because int might match the return type of a gcc2
21681 builtin and then its argument prototype would still apply. */
21682char gethostbyname ();
21683int
21684main ()
21685{
21686gethostbyname ();
21687 ;
21688 return 0;
21689}
21690_ACEOF
21691rm -f conftest.$ac_objext conftest$ac_exeext
21692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21693 (eval $ac_link) 2>&5
21694 ac_status=$?
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } &&
21697 { ac_try='test -s conftest$ac_exeext'
21698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699 (eval $ac_try) 2>&5
21700 ac_status=$?
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); }; }; then
21703 ac_cv_lib_bsd_gethostbyname=yes
21704else
21705 echo "$as_me: failed program was:" >&5
21706sed 's/^/| /' conftest.$ac_ext >&5
21707
21708ac_cv_lib_bsd_gethostbyname=no
21709fi
21710rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21711LIBS=$ac_check_lib_save_LIBS
21712fi
21713echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21714echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21715if test $ac_cv_lib_bsd_gethostbyname = yes; then
21716 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 21717fi
b12915c1 21718
e6cc62c6 21719 fi
90dd450c
VZ
21720 fi
21721
21722 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21723 # socket/setsockopt and other routines are undefined under SCO ODT
21724 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
21725 # on later versions), says Simon Leinen: it contains gethostby*
21726 # variants that don't use the name server (or something). -lsocket
21727 # must be given before -lnsl if both are needed. We assume that
21728 # if connect needs -lnsl, so does gethostbyname.
21729 echo "$as_me:$LINENO: checking for connect" >&5
21730echo $ECHO_N "checking for connect... $ECHO_C" >&6
21731if test "${ac_cv_func_connect+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21733else
21734 cat >conftest.$ac_ext <<_ACEOF
21735#line $LINENO "configure"
21736/* confdefs.h. */
21737_ACEOF
21738cat confdefs.h >>conftest.$ac_ext
21739cat >>conftest.$ac_ext <<_ACEOF
21740/* end confdefs.h. */
90dd450c 21741/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21742 which can conflict with char connect (); below.
21743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21744 <limits.h> exists even on freestanding compilers. */
21745#ifdef __STDC__
21746# include <limits.h>
21747#else
21748# include <assert.h>
21749#endif
90dd450c 21750/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21751#ifdef __cplusplus
21752extern "C"
21753{
21754#endif
90dd450c 21755/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21756 builtin and then its argument prototype would still apply. */
21757char connect ();
90dd450c
VZ
21758/* The GNU C library defines this for functions which it implements
21759 to always fail with ENOSYS. Some functions are actually named
21760 something starting with __ and the normal name is an alias. */
21761#if defined (__stub_connect) || defined (__stub___connect)
21762choke me
21763#else
e6cc62c6
VS
21764char (*f) () = connect;
21765#endif
21766#ifdef __cplusplus
21767}
90dd450c
VZ
21768#endif
21769
e6cc62c6
VS
21770int
21771main ()
21772{
21773return f != connect;
21774 ;
21775 return 0;
21776}
21777_ACEOF
21778rm -f conftest.$ac_objext conftest$ac_exeext
21779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21780 (eval $ac_link) 2>&5
21781 ac_status=$?
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); } &&
21784 { ac_try='test -s conftest$ac_exeext'
21785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786 (eval $ac_try) 2>&5
21787 ac_status=$?
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); }; }; then
21790 ac_cv_func_connect=yes
21791else
21792 echo "$as_me: failed program was:" >&5
21793sed 's/^/| /' conftest.$ac_ext >&5
21794
21795ac_cv_func_connect=no
21796fi
21797rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21798fi
21799echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21800echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 21801
90dd450c 21802 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
21803 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21804echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21805if test "${ac_cv_lib_socket_connect+set}" = set; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21807else
e6cc62c6 21808 ac_check_lib_save_LIBS=$LIBS
90dd450c 21809LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21810cat >conftest.$ac_ext <<_ACEOF
21811#line $LINENO "configure"
21812/* confdefs.h. */
21813_ACEOF
21814cat confdefs.h >>conftest.$ac_ext
21815cat >>conftest.$ac_ext <<_ACEOF
21816/* end confdefs.h. */
21817
90dd450c 21818/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21819#ifdef __cplusplus
21820extern "C"
21821#endif
90dd450c 21822/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21823 builtin and then its argument prototype would still apply. */
21824char connect ();
21825int
21826main ()
21827{
21828connect ();
21829 ;
21830 return 0;
21831}
21832_ACEOF
21833rm -f conftest.$ac_objext conftest$ac_exeext
21834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21835 (eval $ac_link) 2>&5
21836 ac_status=$?
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); } &&
21839 { ac_try='test -s conftest$ac_exeext'
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; }; then
21845 ac_cv_lib_socket_connect=yes
21846else
21847 echo "$as_me: failed program was:" >&5
21848sed 's/^/| /' conftest.$ac_ext >&5
21849
21850ac_cv_lib_socket_connect=no
21851fi
21852rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21853LIBS=$ac_check_lib_save_LIBS
21854fi
21855echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21856echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21857if test $ac_cv_lib_socket_connect = yes; then
90dd450c 21858 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 21859fi
77e13408 21860
90dd450c 21861 fi
25d0687a 21862
e6cc62c6
VS
21863 # Guillermo Gomez says -lposix is necessary on A/UX.
21864 echo "$as_me:$LINENO: checking for remove" >&5
21865echo $ECHO_N "checking for remove... $ECHO_C" >&6
21866if test "${ac_cv_func_remove+set}" = set; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
21868else
21869 cat >conftest.$ac_ext <<_ACEOF
21870#line $LINENO "configure"
21871/* confdefs.h. */
21872_ACEOF
21873cat confdefs.h >>conftest.$ac_ext
21874cat >>conftest.$ac_ext <<_ACEOF
21875/* end confdefs.h. */
90dd450c 21876/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21877 which can conflict with char remove (); below.
21878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21879 <limits.h> exists even on freestanding compilers. */
21880#ifdef __STDC__
21881# include <limits.h>
21882#else
21883# include <assert.h>
21884#endif
90dd450c 21885/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21886#ifdef __cplusplus
21887extern "C"
21888{
21889#endif
90dd450c 21890/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21891 builtin and then its argument prototype would still apply. */
21892char remove ();
90dd450c
VZ
21893/* The GNU C library defines this for functions which it implements
21894 to always fail with ENOSYS. Some functions are actually named
21895 something starting with __ and the normal name is an alias. */
21896#if defined (__stub_remove) || defined (__stub___remove)
21897choke me
21898#else
e6cc62c6
VS
21899char (*f) () = remove;
21900#endif
21901#ifdef __cplusplus
21902}
90dd450c 21903#endif
55e80573 21904
e6cc62c6
VS
21905int
21906main ()
21907{
21908return f != remove;
21909 ;
21910 return 0;
21911}
21912_ACEOF
21913rm -f conftest.$ac_objext conftest$ac_exeext
21914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21915 (eval $ac_link) 2>&5
21916 ac_status=$?
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } &&
21919 { ac_try='test -s conftest$ac_exeext'
21920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21921 (eval $ac_try) 2>&5
21922 ac_status=$?
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); }; }; then
21925 ac_cv_func_remove=yes
21926else
21927 echo "$as_me: failed program was:" >&5
21928sed 's/^/| /' conftest.$ac_ext >&5
21929
21930ac_cv_func_remove=no
21931fi
21932rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21933fi
21934echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21935echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 21936
90dd450c 21937 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
21938 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21939echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21940if test "${ac_cv_lib_posix_remove+set}" = set; then
21941 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21942else
e6cc62c6 21943 ac_check_lib_save_LIBS=$LIBS
90dd450c 21944LIBS="-lposix $LIBS"
e6cc62c6
VS
21945cat >conftest.$ac_ext <<_ACEOF
21946#line $LINENO "configure"
21947/* confdefs.h. */
21948_ACEOF
21949cat confdefs.h >>conftest.$ac_ext
21950cat >>conftest.$ac_ext <<_ACEOF
21951/* end confdefs.h. */
21952
90dd450c 21953/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21954#ifdef __cplusplus
21955extern "C"
21956#endif
90dd450c 21957/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21958 builtin and then its argument prototype would still apply. */
21959char remove ();
21960int
21961main ()
21962{
21963remove ();
21964 ;
21965 return 0;
21966}
21967_ACEOF
21968rm -f conftest.$ac_objext conftest$ac_exeext
21969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21970 (eval $ac_link) 2>&5
21971 ac_status=$?
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); } &&
21974 { ac_try='test -s conftest$ac_exeext'
21975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976 (eval $ac_try) 2>&5
21977 ac_status=$?
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; }; then
21980 ac_cv_lib_posix_remove=yes
21981else
21982 echo "$as_me: failed program was:" >&5
21983sed 's/^/| /' conftest.$ac_ext >&5
21984
21985ac_cv_lib_posix_remove=no
21986fi
21987rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21988LIBS=$ac_check_lib_save_LIBS
21989fi
21990echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21991echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21992if test $ac_cv_lib_posix_remove = yes; then
90dd450c 21993 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 21994fi
f6bcfd97 21995
6fa882bd
RR
21996 fi
21997
90dd450c 21998 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
21999 echo "$as_me:$LINENO: checking for shmat" >&5
22000echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22001if test "${ac_cv_func_shmat+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22003else
22004 cat >conftest.$ac_ext <<_ACEOF
22005#line $LINENO "configure"
22006/* confdefs.h. */
22007_ACEOF
22008cat confdefs.h >>conftest.$ac_ext
22009cat >>conftest.$ac_ext <<_ACEOF
22010/* end confdefs.h. */
90dd450c 22011/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22012 which can conflict with char shmat (); below.
22013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22014 <limits.h> exists even on freestanding compilers. */
22015#ifdef __STDC__
22016# include <limits.h>
22017#else
22018# include <assert.h>
22019#endif
90dd450c 22020/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22021#ifdef __cplusplus
22022extern "C"
22023{
22024#endif
90dd450c 22025/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22026 builtin and then its argument prototype would still apply. */
22027char shmat ();
90dd450c
VZ
22028/* The GNU C library defines this for functions which it implements
22029 to always fail with ENOSYS. Some functions are actually named
22030 something starting with __ and the normal name is an alias. */
22031#if defined (__stub_shmat) || defined (__stub___shmat)
22032choke me
22033#else
e6cc62c6
VS
22034char (*f) () = shmat;
22035#endif
22036#ifdef __cplusplus
22037}
90dd450c 22038#endif
10f2d63a 22039
e6cc62c6
VS
22040int
22041main ()
22042{
22043return f != shmat;
22044 ;
22045 return 0;
22046}
22047_ACEOF
22048rm -f conftest.$ac_objext conftest$ac_exeext
22049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22050 (eval $ac_link) 2>&5
22051 ac_status=$?
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); } &&
22054 { ac_try='test -s conftest$ac_exeext'
22055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22056 (eval $ac_try) 2>&5
22057 ac_status=$?
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); }; }; then
22060 ac_cv_func_shmat=yes
22061else
22062 echo "$as_me: failed program was:" >&5
22063sed 's/^/| /' conftest.$ac_ext >&5
22064
22065ac_cv_func_shmat=no
22066fi
22067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22068fi
22069echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22070echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 22071
90dd450c 22072 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
22073 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22074echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22075if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22076 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 22077else
e6cc62c6 22078 ac_check_lib_save_LIBS=$LIBS
90dd450c 22079LIBS="-lipc $LIBS"
e6cc62c6
VS
22080cat >conftest.$ac_ext <<_ACEOF
22081#line $LINENO "configure"
22082/* confdefs.h. */
22083_ACEOF
22084cat confdefs.h >>conftest.$ac_ext
22085cat >>conftest.$ac_ext <<_ACEOF
22086/* end confdefs.h. */
22087
8284b0c5 22088/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22089#ifdef __cplusplus
22090extern "C"
22091#endif
90dd450c 22092/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22093 builtin and then its argument prototype would still apply. */
22094char shmat ();
22095int
22096main ()
22097{
22098shmat ();
22099 ;
22100 return 0;
22101}
22102_ACEOF
22103rm -f conftest.$ac_objext conftest$ac_exeext
22104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22105 (eval $ac_link) 2>&5
22106 ac_status=$?
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } &&
22109 { ac_try='test -s conftest$ac_exeext'
22110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111 (eval $ac_try) 2>&5
22112 ac_status=$?
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); }; }; then
22115 ac_cv_lib_ipc_shmat=yes
22116else
22117 echo "$as_me: failed program was:" >&5
22118sed 's/^/| /' conftest.$ac_ext >&5
22119
22120ac_cv_lib_ipc_shmat=no
22121fi
22122rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22123LIBS=$ac_check_lib_save_LIBS
22124fi
22125echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22126echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22127if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 22128 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
22129fi
22130
d558c907 22131 fi
90dd450c 22132 fi
3a922bb4 22133
90dd450c 22134 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 22135 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
22136 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22137 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22138 # check for ICE first), but we must link in the order -lSM -lICE or
22139 # we get undefined symbols. So assume we have SM if we have ICE.
22140 # These have to be linked with before -lX11, unlike the other
22141 # libraries we check for below, so use a different variable.
e6cc62c6
VS
22142 # John Interrante, Karl Berry
22143 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22144echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22145if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22146 echo $ECHO_N "(cached) $ECHO_C" >&6
22147else
22148 ac_check_lib_save_LIBS=$LIBS
f09359cf 22149LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22150cat >conftest.$ac_ext <<_ACEOF
22151#line $LINENO "configure"
22152/* confdefs.h. */
22153_ACEOF
22154cat confdefs.h >>conftest.$ac_ext
22155cat >>conftest.$ac_ext <<_ACEOF
22156/* end confdefs.h. */
22157
90dd450c 22158/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22159#ifdef __cplusplus
22160extern "C"
22161#endif
90dd450c 22162/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22163 builtin and then its argument prototype would still apply. */
22164char IceConnectionNumber ();
22165int
22166main ()
22167{
22168IceConnectionNumber ();
22169 ;
22170 return 0;
22171}
22172_ACEOF
22173rm -f conftest.$ac_objext conftest$ac_exeext
22174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22175 (eval $ac_link) 2>&5
22176 ac_status=$?
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } &&
22179 { ac_try='test -s conftest$ac_exeext'
22180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181 (eval $ac_try) 2>&5
22182 ac_status=$?
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; }; then
22185 ac_cv_lib_ICE_IceConnectionNumber=yes
22186else
22187 echo "$as_me: failed program was:" >&5
22188sed 's/^/| /' conftest.$ac_ext >&5
22189
22190ac_cv_lib_ICE_IceConnectionNumber=no
22191fi
22192rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22193LIBS=$ac_check_lib_save_LIBS
22194fi
22195echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22196echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22197if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22198 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22199fi
10f2d63a 22200
e6cc62c6 22201 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22202
22203fi
22204
8284b0c5 22205
90dd450c 22206 if test "$no_x" = "yes"; then
e6cc62c6
VS
22207 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22208echo "$as_me: error: X11 not found" >&2;}
22209 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22210 fi
22211
22212 GUI_TK_LIBRARY="$X_LIBS"
22213 TOOLKIT_INCLUDE="$X_CFLAGS"
22214 AFMINSTALL=afminstall
22215 COMPILED_X_PROGRAM=0
22216
21d1c967 22217 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22218 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22219echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22220 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22221 echo "$as_me:$LINENO: result: not found" >&5
22222echo "${ECHO_T}not found" >&6
22223 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22224echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22225 { (exit 1); exit 1; }; }
90dd450c 22226 else
e6cc62c6
VS
22227 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22228echo "${ECHO_T}$MICROWIN" >&6
22229 cat >>confdefs.h <<\_ACEOF
21d1c967 22230#define wxUSE_NANOX 1
e6cc62c6 22231_ACEOF
21d1c967 22232
90dd450c
VZ
22233 fi
22234 fi
22235
22236 xpm_link=
e6cc62c6
VS
22237 echo "$as_me:$LINENO: checking for Xpm library" >&5
22238echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22239
90dd450c 22240ac_find_libraries=
2b5f62a0 22241for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22242 do
22243 for ac_extension in a so sl dylib; do
22244 if test -f "$ac_dir/libXpm.$ac_extension"; then
22245 ac_find_libraries=$ac_dir
22246 break 2
22247 fi
22248 done
22249 done
22250
22251 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22252
90dd450c
VZ
22253 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22254 result=$?
22255 if test $result = 0; then
22256 ac_path_to_link=""
22257 else
22258 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22259 fi
90dd450c 22260
21d1c967
GD
22261 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22262 xpm_link=" -lXpm"
e6cc62c6 22263 cat >>confdefs.h <<\_ACEOF
21d1c967 22264#define wxHAVE_LIB_XPM 1
e6cc62c6 22265_ACEOF
90dd450c 22266
e6cc62c6
VS
22267 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22268echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22269 else
e6cc62c6
VS
22270 cat >conftest.$ac_ext <<_ACEOF
22271#line $LINENO "configure"
22272/* confdefs.h. */
22273_ACEOF
22274cat confdefs.h >>conftest.$ac_ext
22275cat >>conftest.$ac_ext <<_ACEOF
22276/* end confdefs.h. */
90dd450c 22277
21d1c967 22278 #include <X11/xpm.h>
e6cc62c6
VS
22279
22280int
22281main ()
22282{
6f72b082 22283
21d1c967
GD
22284 int version;
22285 version = XpmLibraryVersion();
e6cc62c6
VS
22286
22287 ;
22288 return 0;
22289}
22290_ACEOF
22291rm -f conftest.$ac_objext
22292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22293 (eval $ac_compile) 2>&5
22294 ac_status=$?
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } &&
22297 { ac_try='test -s conftest.$ac_objext'
22298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299 (eval $ac_try) 2>&5
22300 ac_status=$?
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); }; }; then
22303
21d1c967 22304 xpm_link=" -lXpm"
e6cc62c6 22305 cat >>confdefs.h <<\_ACEOF
21d1c967 22306#define wxHAVE_LIB_XPM 1
e6cc62c6 22307_ACEOF
90dd450c 22308
e6cc62c6
VS
22309 echo "$as_me:$LINENO: result: found in default search path" >&5
22310echo "${ECHO_T}found in default search path" >&6
21d1c967 22311 COMPILED_X_PROGRAM=0
e6cc62c6 22312
21d1c967 22313else
e6cc62c6
VS
22314 echo "$as_me: failed program was:" >&5
22315sed 's/^/| /' conftest.$ac_ext >&5
22316
22317
22318 echo "$as_me:$LINENO: result: no" >&5
22319echo "${ECHO_T}no" >&6
22320 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22321echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22322
22323
6f72b082 22324fi
e6cc62c6 22325rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22326 fi
90dd450c 22327
e6cc62c6
VS
22328 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22329echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22330if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22331 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22332else
e6cc62c6 22333 ac_check_lib_save_LIBS=$LIBS
f7f78039 22334LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22335cat >conftest.$ac_ext <<_ACEOF
22336#line $LINENO "configure"
22337/* confdefs.h. */
22338_ACEOF
22339cat confdefs.h >>conftest.$ac_ext
22340cat >>conftest.$ac_ext <<_ACEOF
22341/* end confdefs.h. */
22342
f7f78039 22343/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22344#ifdef __cplusplus
22345extern "C"
22346#endif
f7f78039 22347/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22348 builtin and then its argument prototype would still apply. */
22349char XShapeQueryExtension ();
22350int
22351main ()
22352{
22353XShapeQueryExtension ();
22354 ;
22355 return 0;
22356}
22357_ACEOF
22358rm -f conftest.$ac_objext conftest$ac_exeext
22359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22360 (eval $ac_link) 2>&5
22361 ac_status=$?
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); } &&
22364 { ac_try='test -s conftest$ac_exeext'
22365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22366 (eval $ac_try) 2>&5
22367 ac_status=$?
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); }; }; then
22370 ac_cv_lib_Xext_XShapeQueryExtension=yes
22371else
22372 echo "$as_me: failed program was:" >&5
22373sed 's/^/| /' conftest.$ac_ext >&5
22374
22375ac_cv_lib_Xext_XShapeQueryExtension=no
22376fi
22377rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22378LIBS=$ac_check_lib_save_LIBS
22379fi
22380echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22381echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22382if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22383
f7f78039
MB
22384 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22385 wxHAVE_XEXT_LIB=1
e6cc62c6 22386
f7f78039
MB
22387fi
22388
22389
2b5f62a0 22390 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22391
2b5f62a0 22392 succeeded=no
90dd450c 22393
2b5f62a0
VZ
22394 if test -z "$PKG_CONFIG"; then
22395 # Extract the first word of "pkg-config", so it can be a program name with args.
22396set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22397echo "$as_me:$LINENO: checking for $ac_word" >&5
22398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22399if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22401else
e6cc62c6
VS
22402 case $PKG_CONFIG in
22403 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22404 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22405 ;;
2b5f62a0 22406 *)
e6cc62c6
VS
22407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22408for as_dir in $PATH
22409do
22410 IFS=$as_save_IFS
22411 test -z "$as_dir" && as_dir=.
22412 for ac_exec_ext in '' $ac_executable_extensions; do
22413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22414 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22416 break 2
22417 fi
22418done
22419done
22420
2b5f62a0
VZ
22421 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22422 ;;
22423esac
22424fi
e6cc62c6
VS
22425PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22426
2b5f62a0 22427if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22428 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22429echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22430else
e6cc62c6
VS
22431 echo "$as_me:$LINENO: result: no" >&5
22432echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22433fi
22434
22435 fi
22436
22437 if test "$PKG_CONFIG" = "no" ; then
22438 echo "*** The pkg-config script could not be found. Make sure it is"
22439 echo "*** in your path, or set the PKG_CONFIG environment variable"
22440 echo "*** to the full path to pkg-config."
22441 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22442 else
22443 PKG_CONFIG_MIN_VERSION=0.9.0
22444 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22445 echo "$as_me:$LINENO: checking for pangox" >&5
22446echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22447
22448 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22449 echo "$as_me:$LINENO: result: yes" >&5
22450echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22451 succeeded=yes
22452
e6cc62c6
VS
22453 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22454echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22455 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22456 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22457echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22458
e6cc62c6
VS
22459 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22460echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22461 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22462 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22463echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22464 else
22465 PANGOX_CFLAGS=""
22466 PANGOX_LIBS=""
e6cc62c6 22467 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22468 ## do set a variable so people can do so.
22469 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22470
2b5f62a0
VZ
22471 fi
22472
e6cc62c6
VS
22473
22474
2b5f62a0
VZ
22475 else
22476 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22477 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22478 fi
22479 fi
22480
22481 if test $succeeded = yes; then
e6cc62c6 22482
2b5f62a0 22483 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22484 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22485
2b5f62a0 22486 else
e6cc62c6
VS
22487
22488 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22489echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22490 { (exit 1); exit 1; }; }
22491
22492
2b5f62a0
VZ
22493 fi
22494
e6cc62c6 22495
2b5f62a0
VZ
22496 succeeded=no
22497
22498 if test -z "$PKG_CONFIG"; then
22499 # Extract the first word of "pkg-config", so it can be a program name with args.
22500set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22501echo "$as_me:$LINENO: checking for $ac_word" >&5
22502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22503if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22504 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22505else
e6cc62c6
VS
22506 case $PKG_CONFIG in
22507 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22508 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22509 ;;
2b5f62a0 22510 *)
e6cc62c6
VS
22511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22512for as_dir in $PATH
22513do
22514 IFS=$as_save_IFS
22515 test -z "$as_dir" && as_dir=.
22516 for ac_exec_ext in '' $ac_executable_extensions; do
22517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22518 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22520 break 2
22521 fi
22522done
22523done
22524
2b5f62a0
VZ
22525 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22526 ;;
22527esac
22528fi
e6cc62c6
VS
22529PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22530
2b5f62a0 22531if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22532 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22533echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22534else
e6cc62c6
VS
22535 echo "$as_me:$LINENO: result: no" >&5
22536echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22537fi
22538
22539 fi
22540
22541 if test "$PKG_CONFIG" = "no" ; then
22542 echo "*** The pkg-config script could not be found. Make sure it is"
22543 echo "*** in your path, or set the PKG_CONFIG environment variable"
22544 echo "*** to the full path to pkg-config."
22545 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22546 else
22547 PKG_CONFIG_MIN_VERSION=0.9.0
22548 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22549 echo "$as_me:$LINENO: checking for pangoft2" >&5
22550echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22551
22552 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22553 echo "$as_me:$LINENO: result: yes" >&5
22554echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22555 succeeded=yes
22556
e6cc62c6
VS
22557 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22558echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22559 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22560 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22561echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22562
e6cc62c6
VS
22563 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22564echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22565 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22566 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22567echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22568 else
22569 PANGOFT2_CFLAGS=""
22570 PANGOFT2_LIBS=""
e6cc62c6 22571 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22572 ## do set a variable so people can do so.
22573 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22574
2b5f62a0
VZ
22575 fi
22576
e6cc62c6
VS
22577
22578
2b5f62a0
VZ
22579 else
22580 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22581 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22582 fi
22583 fi
22584
22585 if test $succeeded = yes; then
e6cc62c6 22586
2b5f62a0 22587 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22588 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22589
2b5f62a0 22590 else
e6cc62c6
VS
22591
22592 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22593echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22594 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22595
22596
2b5f62a0
VZ
22597 fi
22598
e6cc62c6 22599
2b5f62a0
VZ
22600 succeeded=no
22601
22602 if test -z "$PKG_CONFIG"; then
22603 # Extract the first word of "pkg-config", so it can be a program name with args.
22604set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22605echo "$as_me:$LINENO: checking for $ac_word" >&5
22606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22607if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22608 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22609else
e6cc62c6
VS
22610 case $PKG_CONFIG in
22611 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22612 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22613 ;;
2b5f62a0 22614 *)
e6cc62c6
VS
22615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22616for as_dir in $PATH
22617do
22618 IFS=$as_save_IFS
22619 test -z "$as_dir" && as_dir=.
22620 for ac_exec_ext in '' $ac_executable_extensions; do
22621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22622 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22624 break 2
22625 fi
22626done
22627done
22628
2b5f62a0
VZ
22629 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22630 ;;
22631esac
22632fi
e6cc62c6
VS
22633PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22634
2b5f62a0 22635if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22636 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22637echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22638else
e6cc62c6
VS
22639 echo "$as_me:$LINENO: result: no" >&5
22640echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22641fi
22642
22643 fi
22644
22645 if test "$PKG_CONFIG" = "no" ; then
22646 echo "*** The pkg-config script could not be found. Make sure it is"
22647 echo "*** in your path, or set the PKG_CONFIG environment variable"
22648 echo "*** to the full path to pkg-config."
22649 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22650 else
22651 PKG_CONFIG_MIN_VERSION=0.9.0
22652 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22653 echo "$as_me:$LINENO: checking for pangoxft" >&5
22654echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22655
22656 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22657 echo "$as_me:$LINENO: result: yes" >&5
22658echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22659 succeeded=yes
22660
e6cc62c6
VS
22661 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22662echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22663 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22664 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22665echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22666
e6cc62c6
VS
22667 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22668echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22669 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22670 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22671echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22672 else
22673 PANGOXFT_CFLAGS=""
22674 PANGOXFT_LIBS=""
e6cc62c6 22675 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22676 ## do set a variable so people can do so.
22677 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22678
2b5f62a0
VZ
22679 fi
22680
e6cc62c6
VS
22681
22682
2b5f62a0
VZ
22683 else
22684 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22685 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22686 fi
22687 fi
22688
22689 if test $succeeded = yes; then
e6cc62c6 22690
2b5f62a0 22691 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 22692 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 22693
2b5f62a0 22694 else
e6cc62c6
VS
22695
22696 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22697echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22698
22699
2b5f62a0
VZ
22700 fi
22701
22702 fi
22703
22704 wxUSE_UNIVERSAL="yes"
22705
22706 if test "$wxUSE_NANOX" = "yes"; then
22707 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 22708 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
22709 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22710 else
22711 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22712 fi
22713
22714 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22715 TOOLKIT=X11
22716 GUIDIST=X11_DIST
22717 fi
22718
21d1c967
GD
22719 if test "$wxUSE_MOTIF" = 1; then
22720 if test "$no_x" = yes; then
22721 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22722
22723cat >>confdefs.h <<\_ACEOF
21d1c967 22724#define X_DISPLAY_MISSING 1
e6cc62c6 22725_ACEOF
21d1c967
GD
22726
22727 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22728else
22729 if test -n "$x_includes"; then
22730 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
22731 fi
22732
21d1c967
GD
22733 # It would also be nice to do this for all -L options, not just this one.
22734 if test -n "$x_libraries"; then
22735 X_LIBS="$X_LIBS -L$x_libraries"
22736 # For Solaris; some versions of Sun CC require a space after -R and
22737 # others require no space. Words are not sufficient . . . .
e6cc62c6 22738 case `(uname -sr) 2>/dev/null` in
21d1c967 22739 "SunOS 5"*)
e6cc62c6
VS
22740 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22741echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22742 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22743 cat >conftest.$ac_ext <<_ACEOF
22744#line $LINENO "configure"
22745/* confdefs.h. */
22746_ACEOF
22747cat confdefs.h >>conftest.$ac_ext
22748cat >>conftest.$ac_ext <<_ACEOF
22749/* end confdefs.h. */
22750
22751int
22752main ()
22753{
21d1c967 22754
e6cc62c6
VS
22755 ;
22756 return 0;
22757}
22758_ACEOF
22759rm -f conftest.$ac_objext conftest$ac_exeext
22760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22761 (eval $ac_link) 2>&5
22762 ac_status=$?
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } &&
22765 { ac_try='test -s conftest$ac_exeext'
22766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22767 (eval $ac_try) 2>&5
22768 ac_status=$?
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); }; }; then
21d1c967 22771 ac_R_nospace=yes
698dcdb6 22772else
e6cc62c6
VS
22773 echo "$as_me: failed program was:" >&5
22774sed 's/^/| /' conftest.$ac_ext >&5
22775
22776ac_R_nospace=no
10f2d63a 22777fi
e6cc62c6 22778rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22779 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22780 echo "$as_me:$LINENO: result: no" >&5
22781echo "${ECHO_T}no" >&6
21d1c967
GD
22782 X_LIBS="$X_LIBS -R$x_libraries"
22783 else
22784 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
22785 cat >conftest.$ac_ext <<_ACEOF
22786#line $LINENO "configure"
22787/* confdefs.h. */
22788_ACEOF
22789cat confdefs.h >>conftest.$ac_ext
22790cat >>conftest.$ac_ext <<_ACEOF
22791/* end confdefs.h. */
22792
22793int
22794main ()
22795{
f0c87536 22796
e6cc62c6
VS
22797 ;
22798 return 0;
22799}
22800_ACEOF
22801rm -f conftest.$ac_objext conftest$ac_exeext
22802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22803 (eval $ac_link) 2>&5
22804 ac_status=$?
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); } &&
22807 { ac_try='test -s conftest$ac_exeext'
22808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22809 (eval $ac_try) 2>&5
22810 ac_status=$?
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); }; }; then
21d1c967
GD
22813 ac_R_space=yes
22814else
e6cc62c6
VS
22815 echo "$as_me: failed program was:" >&5
22816sed 's/^/| /' conftest.$ac_ext >&5
22817
22818ac_R_space=no
21d1c967 22819fi
e6cc62c6 22820rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22821 if test $ac_R_space = yes; then
e6cc62c6
VS
22822 echo "$as_me:$LINENO: result: yes" >&5
22823echo "${ECHO_T}yes" >&6
21d1c967
GD
22824 X_LIBS="$X_LIBS -R $x_libraries"
22825 else
e6cc62c6
VS
22826 echo "$as_me:$LINENO: result: neither works" >&5
22827echo "${ECHO_T}neither works" >&6
21d1c967
GD
22828 fi
22829 fi
e6cc62c6 22830 LIBS=$ac_xsave_LIBS
21d1c967
GD
22831 esac
22832 fi
90dd450c 22833
21d1c967
GD
22834 # Check for system-dependent libraries X programs must link with.
22835 # Do this before checking for the system-independent R6 libraries
22836 # (-lICE), since we may need -lsocket or whatever for X linking.
22837
22838 if test "$ISC" = yes; then
22839 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22840 else
e6cc62c6
VS
22841 # Martyn Johnson says this is needed for Ultrix, if the X
22842 # libraries were built with DECnet support. And Karl Berry says
21d1c967 22843 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22844 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22845 cat >conftest.$ac_ext <<_ACEOF
22846#line $LINENO "configure"
22847/* confdefs.h. */
22848_ACEOF
22849cat confdefs.h >>conftest.$ac_ext
22850cat >>conftest.$ac_ext <<_ACEOF
22851/* end confdefs.h. */
22852
247f5006 22853/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22854#ifdef __cplusplus
22855extern "C"
22856#endif
247f5006 22857/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22858 builtin and then its argument prototype would still apply. */
22859char XOpenDisplay ();
22860int
22861main ()
22862{
22863XOpenDisplay ();
22864 ;
22865 return 0;
22866}
22867_ACEOF
22868rm -f conftest.$ac_objext conftest$ac_exeext
22869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22870 (eval $ac_link) 2>&5
22871 ac_status=$?
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); } &&
22874 { ac_try='test -s conftest$ac_exeext'
22875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22876 (eval $ac_try) 2>&5
22877 ac_status=$?
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); }; }; then
22880 :
22881else
22882 echo "$as_me: failed program was:" >&5
22883sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 22884
e6cc62c6
VS
22885echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22886echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22887if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22888 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22889else
e6cc62c6
VS
22890 ac_check_lib_save_LIBS=$LIBS
22891LIBS="-ldnet $LIBS"
22892cat >conftest.$ac_ext <<_ACEOF
22893#line $LINENO "configure"
22894/* confdefs.h. */
22895_ACEOF
22896cat confdefs.h >>conftest.$ac_ext
22897cat >>conftest.$ac_ext <<_ACEOF
22898/* end confdefs.h. */
a0b9e27f 22899
e6cc62c6
VS
22900/* Override any gcc2 internal prototype to avoid an error. */
22901#ifdef __cplusplus
22902extern "C"
22903#endif
22904/* We use char because int might match the return type of a gcc2
22905 builtin and then its argument prototype would still apply. */
22906char dnet_ntoa ();
22907int
22908main ()
22909{
22910dnet_ntoa ();
22911 ;
22912 return 0;
22913}
22914_ACEOF
22915rm -f conftest.$ac_objext conftest$ac_exeext
22916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22917 (eval $ac_link) 2>&5
22918 ac_status=$?
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); } &&
22921 { ac_try='test -s conftest$ac_exeext'
22922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22923 (eval $ac_try) 2>&5
22924 ac_status=$?
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); }; }; then
22927 ac_cv_lib_dnet_dnet_ntoa=yes
22928else
22929 echo "$as_me: failed program was:" >&5
22930sed 's/^/| /' conftest.$ac_ext >&5
22931
22932ac_cv_lib_dnet_dnet_ntoa=no
22933fi
22934rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22935LIBS=$ac_check_lib_save_LIBS
22936fi
22937echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22938echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22939if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 22940 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 22941fi
0fb0dd83 22942
21d1c967 22943 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
22944 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22945echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22946if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22947 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22948else
e6cc62c6 22949 ac_check_lib_save_LIBS=$LIBS
21d1c967 22950LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
22951cat >conftest.$ac_ext <<_ACEOF
22952#line $LINENO "configure"
22953/* confdefs.h. */
22954_ACEOF
22955cat confdefs.h >>conftest.$ac_ext
22956cat >>conftest.$ac_ext <<_ACEOF
22957/* end confdefs.h. */
22958
21d1c967 22959/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22960#ifdef __cplusplus
22961extern "C"
22962#endif
21d1c967 22963/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22964 builtin and then its argument prototype would still apply. */
22965char dnet_ntoa ();
22966int
22967main ()
22968{
22969dnet_ntoa ();
22970 ;
22971 return 0;
22972}
22973_ACEOF
22974rm -f conftest.$ac_objext conftest$ac_exeext
22975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22976 (eval $ac_link) 2>&5
22977 ac_status=$?
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); } &&
22980 { ac_try='test -s conftest$ac_exeext'
22981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982 (eval $ac_try) 2>&5
22983 ac_status=$?
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); }; }; then
22986 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22987else
22988 echo "$as_me: failed program was:" >&5
22989sed 's/^/| /' conftest.$ac_ext >&5
22990
22991ac_cv_lib_dnet_stub_dnet_ntoa=no
22992fi
22993rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22994LIBS=$ac_check_lib_save_LIBS
22995fi
22996echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22997echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22998if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 22999 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23000fi
23001
21d1c967 23002 fi
e6cc62c6
VS
23003fi
23004rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23005 LIBS="$ac_xsave_LIBS"
90dd450c 23006
21d1c967
GD
23007 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23008 # to get the SysV transport functions.
e6cc62c6 23009 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23010 # needs -lnsl.
23011 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23012 # on Irix 5.2, according to T.E. Dickey.
23013 # The functions gethostbyname, getservbyname, and inet_addr are
23014 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23015 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23016echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23017if test "${ac_cv_func_gethostbyname+set}" = set; then
23018 echo $ECHO_N "(cached) $ECHO_C" >&6
23019else
23020 cat >conftest.$ac_ext <<_ACEOF
23021#line $LINENO "configure"
23022/* confdefs.h. */
23023_ACEOF
23024cat confdefs.h >>conftest.$ac_ext
23025cat >>conftest.$ac_ext <<_ACEOF
23026/* end confdefs.h. */
21d1c967 23027/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23028 which can conflict with char gethostbyname (); below.
23029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23030 <limits.h> exists even on freestanding compilers. */
23031#ifdef __STDC__
23032# include <limits.h>
23033#else
23034# include <assert.h>
23035#endif
21d1c967 23036/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23037#ifdef __cplusplus
23038extern "C"
23039{
23040#endif
21d1c967 23041/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23042 builtin and then its argument prototype would still apply. */
23043char gethostbyname ();
21d1c967
GD
23044/* The GNU C library defines this for functions which it implements
23045 to always fail with ENOSYS. Some functions are actually named
23046 something starting with __ and the normal name is an alias. */
23047#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23048choke me
23049#else
e6cc62c6
VS
23050char (*f) () = gethostbyname;
23051#endif
23052#ifdef __cplusplus
23053}
21d1c967 23054#endif
90dd450c 23055
e6cc62c6
VS
23056int
23057main ()
23058{
23059return f != gethostbyname;
23060 ;
23061 return 0;
23062}
23063_ACEOF
23064rm -f conftest.$ac_objext conftest$ac_exeext
23065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23066 (eval $ac_link) 2>&5
23067 ac_status=$?
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); } &&
23070 { ac_try='test -s conftest$ac_exeext'
23071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23072 (eval $ac_try) 2>&5
23073 ac_status=$?
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); }; }; then
23076 ac_cv_func_gethostbyname=yes
23077else
23078 echo "$as_me: failed program was:" >&5
23079sed 's/^/| /' conftest.$ac_ext >&5
23080
23081ac_cv_func_gethostbyname=no
23082fi
23083rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23084fi
23085echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23086echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23087
21d1c967 23088 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23089 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23090echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23091if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23092 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23093else
e6cc62c6 23094 ac_check_lib_save_LIBS=$LIBS
21d1c967 23095LIBS="-lnsl $LIBS"
e6cc62c6
VS
23096cat >conftest.$ac_ext <<_ACEOF
23097#line $LINENO "configure"
23098/* confdefs.h. */
23099_ACEOF
23100cat confdefs.h >>conftest.$ac_ext
23101cat >>conftest.$ac_ext <<_ACEOF
23102/* end confdefs.h. */
23103
21d1c967 23104/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23105#ifdef __cplusplus
23106extern "C"
23107#endif
21d1c967 23108/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23109 builtin and then its argument prototype would still apply. */
23110char gethostbyname ();
23111int
23112main ()
23113{
23114gethostbyname ();
23115 ;
23116 return 0;
23117}
23118_ACEOF
23119rm -f conftest.$ac_objext conftest$ac_exeext
23120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23121 (eval $ac_link) 2>&5
23122 ac_status=$?
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); } &&
23125 { ac_try='test -s conftest$ac_exeext'
23126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23127 (eval $ac_try) 2>&5
23128 ac_status=$?
23129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); }; }; then
23131 ac_cv_lib_nsl_gethostbyname=yes
23132else
23133 echo "$as_me: failed program was:" >&5
23134sed 's/^/| /' conftest.$ac_ext >&5
23135
23136ac_cv_lib_nsl_gethostbyname=no
23137fi
23138rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23139LIBS=$ac_check_lib_save_LIBS
23140fi
23141echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23142echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23143if test $ac_cv_lib_nsl_gethostbyname = yes; then
23144 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23145fi
247f5006 23146
e6cc62c6
VS
23147 if test $ac_cv_lib_nsl_gethostbyname = no; then
23148 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23149echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23150if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23151 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23152else
e6cc62c6
VS
23153 ac_check_lib_save_LIBS=$LIBS
23154LIBS="-lbsd $LIBS"
23155cat >conftest.$ac_ext <<_ACEOF
23156#line $LINENO "configure"
23157/* confdefs.h. */
23158_ACEOF
23159cat confdefs.h >>conftest.$ac_ext
23160cat >>conftest.$ac_ext <<_ACEOF
23161/* end confdefs.h. */
23162
23163/* Override any gcc2 internal prototype to avoid an error. */
23164#ifdef __cplusplus
23165extern "C"
23166#endif
23167/* We use char because int might match the return type of a gcc2
23168 builtin and then its argument prototype would still apply. */
23169char gethostbyname ();
23170int
23171main ()
23172{
23173gethostbyname ();
23174 ;
23175 return 0;
23176}
23177_ACEOF
23178rm -f conftest.$ac_objext conftest$ac_exeext
23179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23180 (eval $ac_link) 2>&5
23181 ac_status=$?
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); } &&
23184 { ac_try='test -s conftest$ac_exeext'
23185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186 (eval $ac_try) 2>&5
23187 ac_status=$?
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); }; }; then
23190 ac_cv_lib_bsd_gethostbyname=yes
23191else
23192 echo "$as_me: failed program was:" >&5
23193sed 's/^/| /' conftest.$ac_ext >&5
23194
23195ac_cv_lib_bsd_gethostbyname=no
23196fi
23197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23198LIBS=$ac_check_lib_save_LIBS
23199fi
23200echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23201echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23202if test $ac_cv_lib_bsd_gethostbyname = yes; then
23203 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23204fi
90dd450c 23205
e6cc62c6 23206 fi
90dd450c
VZ
23207 fi
23208
21d1c967
GD
23209 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23210 # socket/setsockopt and other routines are undefined under SCO ODT
23211 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23212 # on later versions), says Simon Leinen: it contains gethostby*
23213 # variants that don't use the name server (or something). -lsocket
23214 # must be given before -lnsl if both are needed. We assume that
23215 # if connect needs -lnsl, so does gethostbyname.
23216 echo "$as_me:$LINENO: checking for connect" >&5
23217echo $ECHO_N "checking for connect... $ECHO_C" >&6
23218if test "${ac_cv_func_connect+set}" = set; then
23219 echo $ECHO_N "(cached) $ECHO_C" >&6
23220else
23221 cat >conftest.$ac_ext <<_ACEOF
23222#line $LINENO "configure"
23223/* confdefs.h. */
23224_ACEOF
23225cat confdefs.h >>conftest.$ac_ext
23226cat >>conftest.$ac_ext <<_ACEOF
23227/* end confdefs.h. */
21d1c967 23228/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23229 which can conflict with char connect (); below.
23230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23231 <limits.h> exists even on freestanding compilers. */
23232#ifdef __STDC__
23233# include <limits.h>
23234#else
23235# include <assert.h>
23236#endif
21d1c967 23237/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23238#ifdef __cplusplus
23239extern "C"
23240{
23241#endif
21d1c967 23242/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23243 builtin and then its argument prototype would still apply. */
23244char connect ();
21d1c967
GD
23245/* The GNU C library defines this for functions which it implements
23246 to always fail with ENOSYS. Some functions are actually named
23247 something starting with __ and the normal name is an alias. */
23248#if defined (__stub_connect) || defined (__stub___connect)
23249choke me
23250#else
e6cc62c6
VS
23251char (*f) () = connect;
23252#endif
23253#ifdef __cplusplus
23254}
21d1c967 23255#endif
90dd450c 23256
e6cc62c6
VS
23257int
23258main ()
23259{
23260return f != connect;
23261 ;
23262 return 0;
23263}
23264_ACEOF
23265rm -f conftest.$ac_objext conftest$ac_exeext
23266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23267 (eval $ac_link) 2>&5
23268 ac_status=$?
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); } &&
23271 { ac_try='test -s conftest$ac_exeext'
23272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273 (eval $ac_try) 2>&5
23274 ac_status=$?
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; }; then
23277 ac_cv_func_connect=yes
23278else
23279 echo "$as_me: failed program was:" >&5
23280sed 's/^/| /' conftest.$ac_ext >&5
23281
23282ac_cv_func_connect=no
23283fi
23284rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23285fi
23286echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23287echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23288
21d1c967 23289 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23290 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23291echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23292if test "${ac_cv_lib_socket_connect+set}" = set; then
23293 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23294else
e6cc62c6 23295 ac_check_lib_save_LIBS=$LIBS
21d1c967 23296LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23297cat >conftest.$ac_ext <<_ACEOF
23298#line $LINENO "configure"
23299/* confdefs.h. */
23300_ACEOF
23301cat confdefs.h >>conftest.$ac_ext
23302cat >>conftest.$ac_ext <<_ACEOF
23303/* end confdefs.h. */
23304
21d1c967 23305/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23306#ifdef __cplusplus
23307extern "C"
23308#endif
21d1c967 23309/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23310 builtin and then its argument prototype would still apply. */
23311char connect ();
23312int
23313main ()
23314{
23315connect ();
23316 ;
23317 return 0;
23318}
23319_ACEOF
23320rm -f conftest.$ac_objext conftest$ac_exeext
23321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23322 (eval $ac_link) 2>&5
23323 ac_status=$?
23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325 (exit $ac_status); } &&
23326 { ac_try='test -s conftest$ac_exeext'
23327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23328 (eval $ac_try) 2>&5
23329 ac_status=$?
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); }; }; then
23332 ac_cv_lib_socket_connect=yes
23333else
23334 echo "$as_me: failed program was:" >&5
23335sed 's/^/| /' conftest.$ac_ext >&5
23336
23337ac_cv_lib_socket_connect=no
23338fi
23339rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23340LIBS=$ac_check_lib_save_LIBS
23341fi
23342echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23343echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23344if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23345 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23346fi
90dd450c 23347
21d1c967 23348 fi
90dd450c 23349
e6cc62c6
VS
23350 # Guillermo Gomez says -lposix is necessary on A/UX.
23351 echo "$as_me:$LINENO: checking for remove" >&5
23352echo $ECHO_N "checking for remove... $ECHO_C" >&6
23353if test "${ac_cv_func_remove+set}" = set; then
23354 echo $ECHO_N "(cached) $ECHO_C" >&6
23355else
23356 cat >conftest.$ac_ext <<_ACEOF
23357#line $LINENO "configure"
23358/* confdefs.h. */
23359_ACEOF
23360cat confdefs.h >>conftest.$ac_ext
23361cat >>conftest.$ac_ext <<_ACEOF
23362/* end confdefs.h. */
21d1c967 23363/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23364 which can conflict with char remove (); below.
23365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23366 <limits.h> exists even on freestanding compilers. */
23367#ifdef __STDC__
23368# include <limits.h>
23369#else
23370# include <assert.h>
23371#endif
21d1c967 23372/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23373#ifdef __cplusplus
23374extern "C"
23375{
23376#endif
21d1c967 23377/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23378 builtin and then its argument prototype would still apply. */
23379char remove ();
21d1c967
GD
23380/* The GNU C library defines this for functions which it implements
23381 to always fail with ENOSYS. Some functions are actually named
23382 something starting with __ and the normal name is an alias. */
23383#if defined (__stub_remove) || defined (__stub___remove)
23384choke me
23385#else
e6cc62c6
VS
23386char (*f) () = remove;
23387#endif
23388#ifdef __cplusplus
23389}
21d1c967 23390#endif
90dd450c 23391
e6cc62c6
VS
23392int
23393main ()
23394{
23395return f != remove;
23396 ;
23397 return 0;
23398}
23399_ACEOF
23400rm -f conftest.$ac_objext conftest$ac_exeext
23401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23402 (eval $ac_link) 2>&5
23403 ac_status=$?
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); } &&
23406 { ac_try='test -s conftest$ac_exeext'
23407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23408 (eval $ac_try) 2>&5
23409 ac_status=$?
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); }; }; then
23412 ac_cv_func_remove=yes
23413else
23414 echo "$as_me: failed program was:" >&5
23415sed 's/^/| /' conftest.$ac_ext >&5
23416
23417ac_cv_func_remove=no
23418fi
23419rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23420fi
23421echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23422echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23423
21d1c967 23424 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23425 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23426echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23427if test "${ac_cv_lib_posix_remove+set}" = set; then
23428 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23429else
e6cc62c6 23430 ac_check_lib_save_LIBS=$LIBS
21d1c967 23431LIBS="-lposix $LIBS"
e6cc62c6
VS
23432cat >conftest.$ac_ext <<_ACEOF
23433#line $LINENO "configure"
23434/* confdefs.h. */
23435_ACEOF
23436cat confdefs.h >>conftest.$ac_ext
23437cat >>conftest.$ac_ext <<_ACEOF
23438/* end confdefs.h. */
23439
21d1c967 23440/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23441#ifdef __cplusplus
23442extern "C"
23443#endif
21d1c967 23444/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23445 builtin and then its argument prototype would still apply. */
23446char remove ();
23447int
23448main ()
23449{
23450remove ();
23451 ;
23452 return 0;
23453}
23454_ACEOF
23455rm -f conftest.$ac_objext conftest$ac_exeext
23456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23457 (eval $ac_link) 2>&5
23458 ac_status=$?
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } &&
23461 { ac_try='test -s conftest$ac_exeext'
23462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23463 (eval $ac_try) 2>&5
23464 ac_status=$?
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); }; }; then
23467 ac_cv_lib_posix_remove=yes
23468else
23469 echo "$as_me: failed program was:" >&5
23470sed 's/^/| /' conftest.$ac_ext >&5
23471
23472ac_cv_lib_posix_remove=no
23473fi
23474rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23475LIBS=$ac_check_lib_save_LIBS
23476fi
23477echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23478echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23479if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23480 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23481fi
19bc6aad 23482
90dd450c 23483 fi
19bc6aad 23484
21d1c967 23485 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23486 echo "$as_me:$LINENO: checking for shmat" >&5
23487echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23488if test "${ac_cv_func_shmat+set}" = set; then
23489 echo $ECHO_N "(cached) $ECHO_C" >&6
23490else
23491 cat >conftest.$ac_ext <<_ACEOF
23492#line $LINENO "configure"
23493/* confdefs.h. */
23494_ACEOF
23495cat confdefs.h >>conftest.$ac_ext
23496cat >>conftest.$ac_ext <<_ACEOF
23497/* end confdefs.h. */
21d1c967 23498/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23499 which can conflict with char shmat (); below.
23500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23501 <limits.h> exists even on freestanding compilers. */
23502#ifdef __STDC__
23503# include <limits.h>
23504#else
23505# include <assert.h>
23506#endif
21d1c967 23507/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23508#ifdef __cplusplus
23509extern "C"
23510{
23511#endif
21d1c967 23512/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23513 builtin and then its argument prototype would still apply. */
23514char shmat ();
21d1c967
GD
23515/* The GNU C library defines this for functions which it implements
23516 to always fail with ENOSYS. Some functions are actually named
23517 something starting with __ and the normal name is an alias. */
23518#if defined (__stub_shmat) || defined (__stub___shmat)
23519choke me
23520#else
e6cc62c6
VS
23521char (*f) () = shmat;
23522#endif
23523#ifdef __cplusplus
23524}
21d1c967 23525#endif
90dd450c 23526
e6cc62c6
VS
23527int
23528main ()
23529{
23530return f != shmat;
23531 ;
23532 return 0;
23533}
23534_ACEOF
23535rm -f conftest.$ac_objext conftest$ac_exeext
23536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23537 (eval $ac_link) 2>&5
23538 ac_status=$?
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); } &&
23541 { ac_try='test -s conftest$ac_exeext'
23542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23543 (eval $ac_try) 2>&5
23544 ac_status=$?
23545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); }; }; then
23547 ac_cv_func_shmat=yes
23548else
23549 echo "$as_me: failed program was:" >&5
23550sed 's/^/| /' conftest.$ac_ext >&5
23551
23552ac_cv_func_shmat=no
23553fi
23554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23555fi
23556echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23557echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23558
21d1c967 23559 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23560 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23561echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23562if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23563 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23564else
e6cc62c6 23565 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23566LIBS="-lipc $LIBS"
e6cc62c6
VS
23567cat >conftest.$ac_ext <<_ACEOF
23568#line $LINENO "configure"
23569/* confdefs.h. */
23570_ACEOF
23571cat confdefs.h >>conftest.$ac_ext
23572cat >>conftest.$ac_ext <<_ACEOF
23573/* end confdefs.h. */
23574
5c6fa7d2 23575/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23576#ifdef __cplusplus
23577extern "C"
23578#endif
5c6fa7d2 23579/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23580 builtin and then its argument prototype would still apply. */
23581char shmat ();
23582int
23583main ()
23584{
23585shmat ();
23586 ;
23587 return 0;
23588}
23589_ACEOF
23590rm -f conftest.$ac_objext conftest$ac_exeext
23591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23592 (eval $ac_link) 2>&5
23593 ac_status=$?
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); } &&
23596 { ac_try='test -s conftest$ac_exeext'
23597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23598 (eval $ac_try) 2>&5
23599 ac_status=$?
23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601 (exit $ac_status); }; }; then
23602 ac_cv_lib_ipc_shmat=yes
23603else
23604 echo "$as_me: failed program was:" >&5
23605sed 's/^/| /' conftest.$ac_ext >&5
23606
23607ac_cv_lib_ipc_shmat=no
23608fi
23609rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23610LIBS=$ac_check_lib_save_LIBS
23611fi
23612echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23613echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23614if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23615 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23616fi
90dd450c 23617
90dd450c 23618 fi
21d1c967 23619 fi
10f2d63a 23620
21d1c967 23621 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23622 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23623 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23624 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23625 # check for ICE first), but we must link in the order -lSM -lICE or
23626 # we get undefined symbols. So assume we have SM if we have ICE.
23627 # These have to be linked with before -lX11, unlike the other
23628 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23629 # John Interrante, Karl Berry
23630 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23631echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23632if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23633 echo $ECHO_N "(cached) $ECHO_C" >&6
23634else
23635 ac_check_lib_save_LIBS=$LIBS
f09359cf 23636LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23637cat >conftest.$ac_ext <<_ACEOF
23638#line $LINENO "configure"
23639/* confdefs.h. */
23640_ACEOF
23641cat confdefs.h >>conftest.$ac_ext
23642cat >>conftest.$ac_ext <<_ACEOF
23643/* end confdefs.h. */
23644
21d1c967 23645/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23646#ifdef __cplusplus
23647extern "C"
23648#endif
21d1c967 23649/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23650 builtin and then its argument prototype would still apply. */
23651char IceConnectionNumber ();
23652int
23653main ()
23654{
23655IceConnectionNumber ();
23656 ;
23657 return 0;
23658}
23659_ACEOF
23660rm -f conftest.$ac_objext conftest$ac_exeext
23661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23662 (eval $ac_link) 2>&5
23663 ac_status=$?
23664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665 (exit $ac_status); } &&
23666 { ac_try='test -s conftest$ac_exeext'
23667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23668 (eval $ac_try) 2>&5
23669 ac_status=$?
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); }; }; then
23672 ac_cv_lib_ICE_IceConnectionNumber=yes
23673else
23674 echo "$as_me: failed program was:" >&5
23675sed 's/^/| /' conftest.$ac_ext >&5
23676
23677ac_cv_lib_ICE_IceConnectionNumber=no
23678fi
23679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23680LIBS=$ac_check_lib_save_LIBS
23681fi
23682echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23683echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23684if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23685 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 23686fi
21d1c967 23687
e6cc62c6 23688 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 23689
10f2d63a
VZ
23690fi
23691
8284b0c5 23692
21d1c967 23693 if test "$no_x" = "yes"; then
e6cc62c6
VS
23694 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23695echo "$as_me: error: X11 not found" >&2;}
23696 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
23697 fi
23698
2b5f62a0
VZ
23699 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23700 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
23701 AFMINSTALL=afminstall
23702 COMPILED_X_PROGRAM=0
23703
e6cc62c6
VS
23704 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23705echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23706
21d1c967 23707ac_find_includes=
2b5f62a0 23708for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
23709 do
23710 if test -f "$ac_dir/Xm/Xm.h"; then
23711 ac_find_includes=$ac_dir
23712 break
23713 fi
23714 done
23715
23716 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
23717 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23718echo "${ECHO_T}found in $ac_find_includes" >&6
23719
2b5f62a0 23720 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
23721 ac_path_to_include=""
23722 else
2b5f62a0
VZ
23723 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23724 result=$?
23725 if test $result = 0; then
23726 ac_path_to_include=""
23727 else
23728 ac_path_to_include=" -I$ac_find_includes"
23729 fi
dd0e4a90
VZ
23730 fi
23731
23732 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 23733 else
e6cc62c6
VS
23734 cat >conftest.$ac_ext <<_ACEOF
23735#line $LINENO "configure"
23736/* confdefs.h. */
23737_ACEOF
23738cat confdefs.h >>conftest.$ac_ext
23739cat >>conftest.$ac_ext <<_ACEOF
23740/* end confdefs.h. */
21d1c967
GD
23741
23742 #include <Xm/Xm.h>
e6cc62c6
VS
23743
23744int
23745main ()
23746{
21d1c967
GD
23747
23748 int version;
23749 version = xmUseVersion;
e6cc62c6
VS
23750
23751 ;
23752 return 0;
23753}
23754_ACEOF
23755rm -f conftest.$ac_objext
23756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23757 (eval $ac_compile) 2>&5
23758 ac_status=$?
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); } &&
23761 { ac_try='test -s conftest.$ac_objext'
23762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23763 (eval $ac_try) 2>&5
23764 ac_status=$?
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); }; }; then
23767
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=1
e6cc62c6 23771
10f2d63a 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: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
23780echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
23781 { (exit 1); exit 1; }; }
23782
23783
10f2d63a 23784fi
e6cc62c6 23785rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 23786 fi
10f2d63a 23787
21d1c967 23788 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
23789 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
23790echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
23791
21d1c967 23792ac_find_libraries=
2b5f62a0 23793for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23794 do
23795 for ac_extension in a so sl dylib; do
23796 if test -f "$ac_dir/libXm.$ac_extension"; then
23797 ac_find_libraries=$ac_dir
23798 break 2
23799 fi
23800 done
23801 done
23802
23803 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
23804 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23805echo "${ECHO_T}found at $ac_find_libraries" >&6
23806
21d1c967 23807
21d1c967
GD
23808 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23809 result=$?
23810 if test $result = 0; then
23811 ac_path_to_link=""
23812 else
23813 ac_path_to_link=" -L$ac_find_libraries"
23814 fi
23815
21d1c967 23816 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 23817 else
dd0e4a90
VZ
23818 save_CFLAGS=$CFLAGS
23819 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23820
e6cc62c6
VS
23821 cat >conftest.$ac_ext <<_ACEOF
23822#line $LINENO "configure"
23823/* confdefs.h. */
23824_ACEOF
23825cat confdefs.h >>conftest.$ac_ext
23826cat >>conftest.$ac_ext <<_ACEOF
23827/* end confdefs.h. */
21d1c967
GD
23828
23829 #include <Xm/Xm.h>
e6cc62c6
VS
23830
23831int
23832main ()
23833{
21d1c967
GD
23834
23835 int version;
23836 version = xmUseVersion;
e6cc62c6
VS
23837
23838 ;
23839 return 0;
23840}
23841_ACEOF
23842rm -f conftest.$ac_objext
23843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23844 (eval $ac_compile) 2>&5
23845 ac_status=$?
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } &&
23848 { ac_try='test -s conftest.$ac_objext'
23849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23850 (eval $ac_try) 2>&5
23851 ac_status=$?
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); }; }; then
23854
23855 echo "$as_me:$LINENO: result: found in default search path" >&5
23856echo "${ECHO_T}found in default search path" >&6
21d1c967 23857 COMPILED_X_PROGRAM=1
e6cc62c6 23858
d836ee96 23859else
e6cc62c6
VS
23860 echo "$as_me: failed program was:" >&5
23861sed 's/^/| /' conftest.$ac_ext >&5
23862
23863
23864 echo "$as_me:$LINENO: result: no" >&5
23865echo "${ECHO_T}no" >&6
23866 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
23867echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
23868 { (exit 1); exit 1; }; }
23869
23870
d836ee96 23871fi
e6cc62c6 23872rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23873
23874 CFLAGS=$save_CFLAGS
21d1c967
GD
23875 fi
23876 fi
23877
23878 xpm_link=
e6cc62c6
VS
23879 echo "$as_me:$LINENO: checking for Xpm library" >&5
23880echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
23881
21d1c967 23882ac_find_libraries=
2b5f62a0 23883for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23884 do
23885 for ac_extension in a so sl dylib; do
23886 if test -f "$ac_dir/libXpm.$ac_extension"; then
23887 ac_find_libraries=$ac_dir
23888 break 2
23889 fi
23890 done
23891 done
23892
23893 if test "$ac_find_libraries" != "" ; then
e6cc62c6 23894
21d1c967
GD
23895 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23896 result=$?
23897 if test $result = 0; then
23898 ac_path_to_link=""
23899 else
23900 ac_path_to_link=" -L$ac_find_libraries"
23901 fi
23902
23903 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 23904
21d1c967 23905 xpm_link=" -lXpm"
e6cc62c6 23906 cat >>confdefs.h <<\_ACEOF
21d1c967 23907#define wxHAVE_LIB_XPM 1
e6cc62c6 23908_ACEOF
90dd450c 23909
e6cc62c6
VS
23910 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23911echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 23912 else
dd0e4a90
VZ
23913 save_CFLAGS=$CFLAGS
23914 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23915
e6cc62c6
VS
23916 cat >conftest.$ac_ext <<_ACEOF
23917#line $LINENO "configure"
23918/* confdefs.h. */
23919_ACEOF
23920cat confdefs.h >>conftest.$ac_ext
23921cat >>conftest.$ac_ext <<_ACEOF
23922/* end confdefs.h. */
21d1c967
GD
23923
23924 #include <X11/xpm.h>
e6cc62c6
VS
23925
23926int
23927main ()
23928{
21d1c967
GD
23929
23930 int version;
23931 version = XpmLibraryVersion();
e6cc62c6
VS
23932
23933 ;
23934 return 0;
23935}
23936_ACEOF
23937rm -f conftest.$ac_objext
23938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23939 (eval $ac_compile) 2>&5
23940 ac_status=$?
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } &&
23943 { ac_try='test -s conftest.$ac_objext'
23944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23945 (eval $ac_try) 2>&5
23946 ac_status=$?
23947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948 (exit $ac_status); }; }; then
23949
21d1c967 23950 xpm_link=" -lXpm"
e6cc62c6 23951 cat >>confdefs.h <<\_ACEOF
21d1c967 23952#define wxHAVE_LIB_XPM 1
e6cc62c6 23953_ACEOF
21d1c967 23954
e6cc62c6
VS
23955 echo "$as_me:$LINENO: result: found in default search path" >&5
23956echo "${ECHO_T}found in default search path" >&6
21d1c967 23957 COMPILED_X_PROGRAM=0
e6cc62c6 23958
d836ee96 23959else
e6cc62c6
VS
23960 echo "$as_me: failed program was:" >&5
23961sed 's/^/| /' conftest.$ac_ext >&5
23962
23963
23964 echo "$as_me:$LINENO: result: no" >&5
23965echo "${ECHO_T}no" >&6
23966 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
23967echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
23968
23969
d836ee96 23970fi
e6cc62c6 23971rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23972
23973 CFLAGS=$save_CFLAGS
21d1c967
GD
23974 fi
23975
e6cc62c6
VS
23976 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
23977echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
23978 libp_link=""
23979 libsm_ice_link=""
23980 libs_found=0
23981 for libp in "" " -lXp"; do
23982 if test "$libs_found" = "0"; then
23983 for libsm_ice in " -lSM -lICE"; do
e26c13cf 23984 if test "$libs_found" = "0"; then
6a30f1c8
MB
23985 save_LIBS="$LIBS"
23986 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
23987 save_CFLAGS=$CFLAGS
23988 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23989
e6cc62c6
VS
23990 cat >conftest.$ac_ext <<_ACEOF
23991#line $LINENO "configure"
23992/* confdefs.h. */
23993_ACEOF
23994cat confdefs.h >>conftest.$ac_ext
23995cat >>conftest.$ac_ext <<_ACEOF
23996/* end confdefs.h. */
17234b26 23997
6a30f1c8
MB
23998 #include <Xm/Xm.h>
23999 #include <Xm/List.h>
e6cc62c6
VS
24000
24001int
24002main ()
24003{
6a30f1c8
MB
24004
24005 XmString string = NULL;
24006 Widget w = NULL;
24007 int position = 0;
24008 XmListAddItem(w, string, position);
e6cc62c6
VS
24009
24010 ;
24011 return 0;
24012}
24013_ACEOF
24014rm -f conftest.$ac_objext conftest$ac_exeext
24015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24016 (eval $ac_link) 2>&5
24017 ac_status=$?
24018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019 (exit $ac_status); } &&
24020 { ac_try='test -s conftest$ac_exeext'
24021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24022 (eval $ac_try) 2>&5
24023 ac_status=$?
24024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025 (exit $ac_status); }; }; then
24026
6a30f1c8
MB
24027 libp_link="$libp"
24028 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24029 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24030echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24031 libs_found=1
e6cc62c6 24032
6a30f1c8 24033else
e6cc62c6
VS
24034 echo "$as_me: failed program was:" >&5
24035sed 's/^/| /' conftest.$ac_ext >&5
24036
24037
24038
6a30f1c8 24039fi
e6cc62c6 24040rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24041
6a30f1c8 24042 LIBS="$save_LIBS"
dd0e4a90 24043 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24044 fi
24045 done
24046 fi
24047 done
24048
24049 if test "$libs_found" = "0"; then
e6cc62c6
VS
24050 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24051echo "${ECHO_T}can't find the right libraries" >&6
24052 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24053echo "$as_me: error: can't link a simple motif program" >&2;}
24054 { (exit 1); exit 1; }; }
6a30f1c8
MB
24055 fi
24056
da494b40
MB
24057 save_CFLAGS=$CFLAGS
24058 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24059 echo "$as_me:$LINENO: checking for Motif 2" >&5
24060echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24061 cat >conftest.$ac_ext <<_ACEOF
24062#line $LINENO "configure"
24063/* confdefs.h. */
24064_ACEOF
24065cat confdefs.h >>conftest.$ac_ext
24066cat >>conftest.$ac_ext <<_ACEOF
24067/* end confdefs.h. */
da494b40
MB
24068
24069 #include <Xm/Xm.h>
e6cc62c6
VS
24070
24071int
24072main ()
24073{
da494b40
MB
24074
24075 #if XmVersion < 2000
24076 #error "Not Motif 2"
24077 #endif
e6cc62c6
VS
24078
24079 ;
24080 return 0;
24081}
24082_ACEOF
24083rm -f conftest.$ac_objext
24084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24085 (eval $ac_compile) 2>&5
24086 ac_status=$?
24087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088 (exit $ac_status); } &&
24089 { ac_try='test -s conftest.$ac_objext'
24090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24091 (eval $ac_try) 2>&5
24092 ac_status=$?
24093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094 (exit $ac_status); }; }; then
24095
24096 cat >>confdefs.h <<\_ACEOF
da494b40 24097#define __WXMOTIF20__ 1
e6cc62c6
VS
24098_ACEOF
24099
24100 echo "$as_me:$LINENO: result: found" >&5
24101echo "${ECHO_T}found" >&6
da494b40 24102
da494b40 24103else
e6cc62c6
VS
24104 echo "$as_me: failed program was:" >&5
24105sed 's/^/| /' conftest.$ac_ext >&5
24106
24107
24108 cat >>confdefs.h <<\_ACEOF
da494b40 24109#define __WXMOTIF20__ 0
e6cc62c6
VS
24110_ACEOF
24111
24112 echo "$as_me:$LINENO: result: not found" >&5
24113echo "${ECHO_T}not found" >&6
da494b40 24114
da494b40 24115fi
e6cc62c6 24116rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24117 CFLAGS=$save_CFLAGS
24118
6a30f1c8 24119 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24120 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24121 TOOLKIT=MOTIF
24122 GUIDIST=MOTIF_DIST
f7f78039
MB
24123 wxHAVE_XEXT_LIB=1
24124 fi
24125
24126 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24127 test "$wxHAVE_XEXT_LIB" = 1; then
24128 save_CFLAGS="$CFLAGS"
24129 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24130
e6cc62c6
VS
24131 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24132echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24133 cat >conftest.$ac_ext <<_ACEOF
24134#line $LINENO "configure"
24135/* confdefs.h. */
24136_ACEOF
24137cat confdefs.h >>conftest.$ac_ext
24138cat >>conftest.$ac_ext <<_ACEOF
24139/* end confdefs.h. */
24140
24141 #include <X11/Xlib.h>
f7f78039 24142 #include <X11/extensions/shape.h>
e6cc62c6
VS
24143
24144int
24145main ()
24146{
f7f78039
MB
24147
24148 int dummy1, dummy2;
24149 XShapeQueryExtension((Display*)NULL,
24150 (int*)NULL, (int*)NULL);
e6cc62c6
VS
24151
24152 ;
24153 return 0;
24154}
24155_ACEOF
24156rm -f conftest.$ac_objext
24157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24158 (eval $ac_compile) 2>&5
24159 ac_status=$?
24160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161 (exit $ac_status); } &&
24162 { ac_try='test -s conftest.$ac_objext'
24163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24164 (eval $ac_try) 2>&5
24165 ac_status=$?
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); }; }; then
24168
24169 cat >>confdefs.h <<\_ACEOF
f7f78039 24170#define HAVE_XSHAPE 1
e6cc62c6
VS
24171_ACEOF
24172
24173 echo "$as_me:$LINENO: result: found" >&5
24174echo "${ECHO_T}found" >&6
f7f78039 24175
f7f78039 24176else
e6cc62c6
VS
24177 echo "$as_me: failed program was:" >&5
24178sed 's/^/| /' conftest.$ac_ext >&5
24179
24180
24181 echo "$as_me:$LINENO: result: not found" >&5
24182echo "${ECHO_T}not found" >&6
24183
f7f78039 24184fi
e6cc62c6 24185rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 24186 CFLAGS="$save_CFLAGS"
21d1c967
GD
24187 fi
24188
24189 if test "$wxUSE_MAC" = 1; then
0c98a14e 24190 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24191
0c98a14e 24192 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24193 TOOLKIT=MAC
24194 GUIDIST=MACX_DIST
cf615ebb 24195 WXBASEPORT="_carbon"
21d1c967
GD
24196 fi
24197
ac0c4cc3
DE
24198 if test "$wxUSE_COCOA" = 1; then
24199 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24200 TOOLKIT=COCOA
24201 GUIDIST=COCOA_DIST
24202 fi
24203
21d1c967
GD
24204 if test "$wxUSE_PM" = 1; then
24205 TOOLKIT=PM
24206 GUIDIST=GTK_DIST
e6cc62c6
VS
24207 { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
24208echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
f657dbe7 24209 wxUSE_THREADS="no"
21d1c967
GD
24210 fi
24211
24212 if test "$TOOLKIT" = "PM" ; then
24213 TOOLKIT_DIR="os2"
24214 else
24215 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24216 fi
24217
24218 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24219
24220 if test "$wxUSE_UNIVERSAL" = "yes"; then
24221 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24222
24223 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24224 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24225
24226 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24227 if test "$wxUSE_X11" = 1; then
24228 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24229 else
24230 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24231 fi
24232 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24233 WIDGET_SET=univ
24234 else
24235 ALL_OBJECTS="\$(GUIOBJS)"
24236 ALL_SOURCES="\$(ALL_SOURCES)"
24237 ALL_HEADERS="\$(ALL_HEADERS)"
24238 fi
24239
24240 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24241
24242 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24243 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24244 fi
24245
24246 if test "$wxUSE_HTML" = "yes"; then
24247 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24248 fi
24249
24250 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24251 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24252 fi
24253 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24254 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24255 fi
24256 if test "$wxUSE_LIBPNG" = "builtin" ; then
24257 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24258 fi
24259
24260 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24261 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24262else
21d1c967
GD
24263 USE_GUI=0
24264
24265 TOOLKIT_DIR="base"
24266
24267 if test "$USE_WIN32" = 1 ; then
24268 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24269 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24270
24271 TOOLKIT="MSW"
24272 else
24273 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24274 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24275 fi
24276
24277 ALL_SOURCES="\$(ALL_SOURCES)"
24278 ALL_HEADERS="\$(ALL_HEADERS)"
24279
24280 PORT_FILES="\${top_srcdir}/src/files.lst"
24281
24282 GUIDIST="BASE_DIST"
24283 DISTDIR="wxBase"
d836ee96
VZ
24284fi
24285
8284b0c5 24286
8647bec6
RG
24287
24288
24289IODBC_C_SRC=""
24290
24291
24292if test "$TOOLKIT" != "MSW" ; then
24293
bb41dcbe 24294 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 24295
bb41dcbe 24296 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
24297 echo "$as_me:$LINENO: checking for sql.h" >&5
24298echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24299if test "${ac_cv_header_sql_h+set}" = set; then
24300 echo $ECHO_N "(cached) $ECHO_C" >&6
24301fi
24302echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24303echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24304else
24305 # Is the header compilable?
24306echo "$as_me:$LINENO: checking sql.h usability" >&5
24307echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24308cat >conftest.$ac_ext <<_ACEOF
24309#line $LINENO "configure"
24310/* confdefs.h. */
24311_ACEOF
24312cat confdefs.h >>conftest.$ac_ext
24313cat >>conftest.$ac_ext <<_ACEOF
24314/* end confdefs.h. */
24315$ac_includes_default
8647bec6 24316#include <sql.h>
e6cc62c6
VS
24317_ACEOF
24318rm -f conftest.$ac_objext
24319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24320 (eval $ac_compile) 2>&5
24321 ac_status=$?
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); } &&
24324 { ac_try='test -s conftest.$ac_objext'
24325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24326 (eval $ac_try) 2>&5
24327 ac_status=$?
24328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329 (exit $ac_status); }; }; then
24330 ac_header_compiler=yes
24331else
24332 echo "$as_me: failed program was:" >&5
24333sed 's/^/| /' conftest.$ac_ext >&5
24334
24335ac_header_compiler=no
24336fi
24337rm -f conftest.$ac_objext conftest.$ac_ext
24338echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24339echo "${ECHO_T}$ac_header_compiler" >&6
24340
24341# Is the header present?
24342echo "$as_me:$LINENO: checking sql.h presence" >&5
24343echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24344cat >conftest.$ac_ext <<_ACEOF
24345#line $LINENO "configure"
24346/* confdefs.h. */
24347_ACEOF
24348cat confdefs.h >>conftest.$ac_ext
24349cat >>conftest.$ac_ext <<_ACEOF
24350/* end confdefs.h. */
24351#include <sql.h>
24352_ACEOF
24353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24355 ac_status=$?
24356 grep -v '^ *+' conftest.er1 >conftest.err
24357 rm -f conftest.er1
24358 cat conftest.err >&5
24359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360 (exit $ac_status); } >/dev/null; then
24361 if test -s conftest.err; then
24362 ac_cpp_err=$ac_c_preproc_warn_flag
24363 else
24364 ac_cpp_err=
24365 fi
24366else
24367 ac_cpp_err=yes
24368fi
24369if test -z "$ac_cpp_err"; then
24370 ac_header_preproc=yes
24371else
24372 echo "$as_me: failed program was:" >&5
24373sed 's/^/| /' conftest.$ac_ext >&5
24374
24375 ac_header_preproc=no
24376fi
24377rm -f conftest.err conftest.$ac_ext
24378echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24379echo "${ECHO_T}$ac_header_preproc" >&6
24380
24381# So? What about this header?
24382case $ac_header_compiler:$ac_header_preproc in
24383 yes:no )
24384 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24385echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24386 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24387echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24388 (
24389 cat <<\_ASBOX
24390## ------------------------------------ ##
24391## Report this to bug-autoconf@gnu.org. ##
24392## ------------------------------------ ##
24393_ASBOX
24394 ) |
24395 sed "s/^/$as_me: WARNING: /" >&2
24396 ;;
24397 no:yes )
24398 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24399echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24400 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24401echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24402 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24403echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24404 (
24405 cat <<\_ASBOX
24406## ------------------------------------ ##
24407## Report this to bug-autoconf@gnu.org. ##
24408## ------------------------------------ ##
24409_ASBOX
24410 ) |
24411 sed "s/^/$as_me: WARNING: /" >&2
24412 ;;
24413esac
24414echo "$as_me:$LINENO: checking for sql.h" >&5
24415echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24416if test "${ac_cv_header_sql_h+set}" = set; then
24417 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24418else
e6cc62c6
VS
24419 ac_cv_header_sql_h=$ac_header_preproc
24420fi
24421echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24422echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24423
bb41dcbe
VS
24424fi
24425if test $ac_cv_header_sql_h = yes; then
24426 found_sql_h=1
8647bec6
RG
24427fi
24428
e6cc62c6 24429
bb41dcbe
VS
24430 if test "x$found_sql_h" = "x1" ; then
24431 echo "$as_me:$LINENO: checking for iodbc in -lSQLAllocEnv" >&5
24432echo $ECHO_N "checking for iodbc in -lSQLAllocEnv... $ECHO_C" >&6
24433if test "${ac_cv_lib_SQLAllocEnv_iodbc+set}" = set; then
e6cc62c6 24434 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24435else
bb41dcbe
VS
24436 ac_check_lib_save_LIBS=$LIBS
24437LIBS="-lSQLAllocEnv $LIBS"
e6cc62c6
VS
24438cat >conftest.$ac_ext <<_ACEOF
24439#line $LINENO "configure"
24440/* confdefs.h. */
24441_ACEOF
24442cat confdefs.h >>conftest.$ac_ext
24443cat >>conftest.$ac_ext <<_ACEOF
24444/* end confdefs.h. */
24445
8647bec6 24446/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24447#ifdef __cplusplus
24448extern "C"
24449#endif
8647bec6 24450/* We use char because int might match the return type of a gcc2
e6cc62c6 24451 builtin and then its argument prototype would still apply. */
bb41dcbe 24452char iodbc ();
e6cc62c6
VS
24453int
24454main ()
24455{
bb41dcbe 24456iodbc ();
e6cc62c6
VS
24457 ;
24458 return 0;
24459}
24460_ACEOF
24461rm -f conftest.$ac_objext conftest$ac_exeext
24462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24463 (eval $ac_link) 2>&5
24464 ac_status=$?
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); } &&
24467 { ac_try='test -s conftest$ac_exeext'
24468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24469 (eval $ac_try) 2>&5
24470 ac_status=$?
24471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472 (exit $ac_status); }; }; then
bb41dcbe 24473 ac_cv_lib_SQLAllocEnv_iodbc=yes
8647bec6 24474else
e6cc62c6
VS
24475 echo "$as_me: failed program was:" >&5
24476sed 's/^/| /' conftest.$ac_ext >&5
24477
bb41dcbe 24478ac_cv_lib_SQLAllocEnv_iodbc=no
8647bec6 24479fi
e6cc62c6 24480rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
24481LIBS=$ac_check_lib_save_LIBS
24482fi
24483echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_iodbc" >&5
24484echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_iodbc" >&6
24485if test $ac_cv_lib_SQLAllocEnv_iodbc = yes; then
24486 ODBC_LINK=" -liodbc"
24487else
24488
24489 echo "$as_me:$LINENO: checking for unixodbc in -lSQLAllocEnv" >&5
24490echo $ECHO_N "checking for unixodbc in -lSQLAllocEnv... $ECHO_C" >&6
24491if test "${ac_cv_lib_SQLAllocEnv_unixodbc+set}" = set; then
24492 echo $ECHO_N "(cached) $ECHO_C" >&6
24493else
24494 ac_check_lib_save_LIBS=$LIBS
24495LIBS="-lSQLAllocEnv $LIBS"
24496cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24497#line $LINENO "configure"
24498/* confdefs.h. */
24499_ACEOF
24500cat confdefs.h >>conftest.$ac_ext
24501cat >>conftest.$ac_ext <<_ACEOF
24502/* end confdefs.h. */
24503
8647bec6 24504/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24505#ifdef __cplusplus
24506extern "C"
24507#endif
8647bec6 24508/* We use char because int might match the return type of a gcc2
e6cc62c6 24509 builtin and then its argument prototype would still apply. */
bb41dcbe 24510char unixodbc ();
e6cc62c6
VS
24511int
24512main ()
24513{
bb41dcbe 24514unixodbc ();
e6cc62c6
VS
24515 ;
24516 return 0;
24517}
24518_ACEOF
24519rm -f conftest.$ac_objext conftest$ac_exeext
24520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24521 (eval $ac_link) 2>&5
24522 ac_status=$?
24523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524 (exit $ac_status); } &&
24525 { ac_try='test -s conftest$ac_exeext'
24526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24527 (eval $ac_try) 2>&5
24528 ac_status=$?
24529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); }; }; then
bb41dcbe 24531 ac_cv_lib_SQLAllocEnv_unixodbc=yes
8647bec6 24532else
e6cc62c6
VS
24533 echo "$as_me: failed program was:" >&5
24534sed 's/^/| /' conftest.$ac_ext >&5
24535
bb41dcbe 24536ac_cv_lib_SQLAllocEnv_unixodbc=no
8647bec6 24537fi
e6cc62c6 24538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe 24539LIBS=$ac_check_lib_save_LIBS
e6cc62c6 24540fi
bb41dcbe
VS
24541echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_unixodbc" >&5
24542echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_unixodbc" >&6
24543if test $ac_cv_lib_SQLAllocEnv_unixodbc = yes; then
24544 ODBC_LINK=" -lunixodbc"
24545else
24546
24547 echo "$as_me:$LINENO: checking for odbc in -lSQLAllocEnv" >&5
24548echo $ECHO_N "checking for odbc in -lSQLAllocEnv... $ECHO_C" >&6
24549if test "${ac_cv_lib_SQLAllocEnv_odbc+set}" = set; then
24550 echo $ECHO_N "(cached) $ECHO_C" >&6
24551else
24552 ac_check_lib_save_LIBS=$LIBS
24553LIBS="-lSQLAllocEnv $LIBS"
24554cat >conftest.$ac_ext <<_ACEOF
24555#line $LINENO "configure"
24556/* confdefs.h. */
24557_ACEOF
24558cat confdefs.h >>conftest.$ac_ext
24559cat >>conftest.$ac_ext <<_ACEOF
24560/* end confdefs.h. */
e6cc62c6 24561
bb41dcbe
VS
24562/* Override any gcc2 internal prototype to avoid an error. */
24563#ifdef __cplusplus
24564extern "C"
24565#endif
24566/* We use char because int might match the return type of a gcc2
24567 builtin and then its argument prototype would still apply. */
24568char odbc ();
24569int
24570main ()
24571{
24572odbc ();
24573 ;
24574 return 0;
24575}
24576_ACEOF
24577rm -f conftest.$ac_objext conftest$ac_exeext
24578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24579 (eval $ac_link) 2>&5
24580 ac_status=$?
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } &&
24583 { ac_try='test -s conftest$ac_exeext'
24584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585 (eval $ac_try) 2>&5
24586 ac_status=$?
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); }; }; then
24589 ac_cv_lib_SQLAllocEnv_odbc=yes
e6cc62c6 24590else
bb41dcbe
VS
24591 echo "$as_me: failed program was:" >&5
24592sed 's/^/| /' conftest.$ac_ext >&5
24593
24594ac_cv_lib_SQLAllocEnv_odbc=no
24595fi
24596rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24597LIBS=$ac_check_lib_save_LIBS
24598fi
24599echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_odbc" >&5
24600echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_odbc" >&6
24601if test $ac_cv_lib_SQLAllocEnv_odbc = yes; then
24602 ODBC_LINK=" -lodbc"
24603fi
24604
24605
24606fi
e6cc62c6 24607
e6cc62c6 24608
8647bec6 24609fi
e6cc62c6 24610
fd3d7534 24611 fi
bb41dcbe
VS
24612 if test "x$ODBC_LINK" = "x" ; then
24613 if test "$wxUSE_ODBC" = "sys" ; then
24614 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
24615echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
24616 { (exit 1); exit 1; }; }
24617 else
24618 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
24619echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
24620 wxUSE_ODBC=builtin
24621 fi
24622 else
24623 wxUSE_ODBC=sys
8647bec6 24624 fi
8647bec6 24625 fi
bb41dcbe
VS
24626 if test "$wxUSE_ODBC" != "no" ; then
24627 cat >>confdefs.h <<\_ACEOF
24628#define wxUSE_ODBC 1
24629_ACEOF
e6cc62c6 24630
bb41dcbe
VS
24631 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
24632
24633 WXODBCFLAG="-D_IODBC_"
24634 fi
6232543b 24635fi
21d1c967
GD
24636
24637if test "$wxUSE_REGEX" = "builtin" ; then
24638 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24639fi
21d1c967
GD
24640if test "$wxUSE_ZLIB" = "builtin" ; then
24641 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24642fi
24643
8284b0c5 24644
4d264332 24645USE_OPENGL=0
21d1c967 24646if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24647 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24648 OPENGL_LIBS="-framework OpenGL -framework AGL"
24649 elif test "$wxUSE_MSW" = 1; then
24650 OPENGL_LIBS="-lopengl32 -lglu32"
24651 else
01aa5863
VS
24652
24653
24654ac_find_includes=
24655for ac_dir in $SEARCH_INCLUDE /usr/include;
24656 do
24657 if test -f "$ac_dir/GL/gl.h"; then
24658 ac_find_includes=$ac_dir
24659 break
24660 fi
24661 done
24662
24663 if test "$ac_find_includes" != "" ; then
24664 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24665echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
24666
24667 if test "x$ac_find_includes" = "x/usr/include"; then
24668 ac_path_to_include=""
24669 else
24670 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24671 result=$?
24672 if test $result = 0; then
24673 ac_path_to_include=""
24674 else
24675 ac_path_to_include=" -I$ac_find_includes"
24676 fi
24677 fi
24678
24679 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
24680 fi
24681
e6cc62c6
VS
24682 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24683 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24684echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24685if test "${ac_cv_header_GL_gl_h+set}" = set; then
24686 echo $ECHO_N "(cached) $ECHO_C" >&6
24687fi
24688echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24689echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24690else
24691 # Is the header compilable?
24692echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24693echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24694cat >conftest.$ac_ext <<_ACEOF
24695#line $LINENO "configure"
24696/* confdefs.h. */
24697_ACEOF
24698cat confdefs.h >>conftest.$ac_ext
24699cat >>conftest.$ac_ext <<_ACEOF
24700/* end confdefs.h. */
24701$ac_includes_default
21d1c967 24702#include <GL/gl.h>
e6cc62c6
VS
24703_ACEOF
24704rm -f conftest.$ac_objext
24705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24706 (eval $ac_compile) 2>&5
24707 ac_status=$?
24708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709 (exit $ac_status); } &&
24710 { ac_try='test -s conftest.$ac_objext'
24711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24712 (eval $ac_try) 2>&5
24713 ac_status=$?
24714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24715 (exit $ac_status); }; }; then
24716 ac_header_compiler=yes
24717else
24718 echo "$as_me: failed program was:" >&5
24719sed 's/^/| /' conftest.$ac_ext >&5
24720
24721ac_header_compiler=no
24722fi
24723rm -f conftest.$ac_objext conftest.$ac_ext
24724echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24725echo "${ECHO_T}$ac_header_compiler" >&6
24726
24727# Is the header present?
24728echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24729echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24730cat >conftest.$ac_ext <<_ACEOF
24731#line $LINENO "configure"
24732/* confdefs.h. */
24733_ACEOF
24734cat confdefs.h >>conftest.$ac_ext
24735cat >>conftest.$ac_ext <<_ACEOF
24736/* end confdefs.h. */
24737#include <GL/gl.h>
24738_ACEOF
24739if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24741 ac_status=$?
24742 grep -v '^ *+' conftest.er1 >conftest.err
24743 rm -f conftest.er1
24744 cat conftest.err >&5
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); } >/dev/null; then
24747 if test -s conftest.err; then
24748 ac_cpp_err=$ac_c_preproc_warn_flag
24749 else
24750 ac_cpp_err=
24751 fi
24752else
24753 ac_cpp_err=yes
24754fi
24755if test -z "$ac_cpp_err"; then
24756 ac_header_preproc=yes
24757else
24758 echo "$as_me: failed program was:" >&5
24759sed 's/^/| /' conftest.$ac_ext >&5
24760
24761 ac_header_preproc=no
24762fi
24763rm -f conftest.err conftest.$ac_ext
24764echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24765echo "${ECHO_T}$ac_header_preproc" >&6
24766
24767# So? What about this header?
24768case $ac_header_compiler:$ac_header_preproc in
24769 yes:no )
24770 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24771echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24772 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24773echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24774 (
24775 cat <<\_ASBOX
24776## ------------------------------------ ##
24777## Report this to bug-autoconf@gnu.org. ##
24778## ------------------------------------ ##
24779_ASBOX
24780 ) |
24781 sed "s/^/$as_me: WARNING: /" >&2
24782 ;;
24783 no:yes )
24784 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24785echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24786 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24787echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24788 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24789echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24790 (
24791 cat <<\_ASBOX
24792## ------------------------------------ ##
24793## Report this to bug-autoconf@gnu.org. ##
24794## ------------------------------------ ##
24795_ASBOX
24796 ) |
24797 sed "s/^/$as_me: WARNING: /" >&2
24798 ;;
24799esac
24800echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24801echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24802if test "${ac_cv_header_GL_gl_h+set}" = set; then
24803 echo $ECHO_N "(cached) $ECHO_C" >&6
24804else
24805 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 24806fi
e6cc62c6
VS
24807echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24808echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24809
698dcdb6 24810fi
e6cc62c6
VS
24811if test $ac_cv_header_GL_gl_h = yes; then
24812
89e3b3e4
VZ
24813 found_gl=0
24814
e6cc62c6
VS
24815 echo "$as_me:$LINENO: checking for -lGL" >&5
24816echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
24817
21d1c967 24818ac_find_libraries=
2b5f62a0 24819for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24820 do
24821 for ac_extension in a so sl dylib; do
24822 if test -f "$ac_dir/libGL.$ac_extension"; then
24823 ac_find_libraries=$ac_dir
24824 break 2
24825 fi
24826 done
24827 done
24828
24829 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24830
21d1c967
GD
24831 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24832 result=$?
24833 if test $result = 0; then
24834 ac_path_to_link=""
24835 else
24836 ac_path_to_link=" -L$ac_find_libraries"
24837 fi
24838
89e3b3e4
VZ
24839 if test "$ac_path_to_link" != " -L/usr/lib" ; then
24840 LDFLAGS_GL="$ac_path_to_link"
21d1c967 24841 fi
89e3b3e4 24842
e6cc62c6 24843
89e3b3e4
VZ
24844ac_find_libraries=
24845for ac_dir in $SEARCH_LIB /usr/lib;
24846 do
24847 for ac_extension in a so sl dylib; do
24848 if test -f "$ac_dir/libGLU.$ac_extension"; then
24849 ac_find_libraries=$ac_dir
24850 break 2
24851 fi
24852 done
24853 done
24854
24855 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24856
89e3b3e4
VZ
24857 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24858 result=$?
24859 if test $result = 0; then
24860 ac_path_to_link=""
24861 else
24862 ac_path_to_link=" -L$ac_find_libraries"
24863 fi
24864
24865 if test "$ac_path_to_link" != " -L/usr/lib" -a \
24866 "$ac_path_to_link" != "$LDFLAGS_GL"; then
24867 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
24868 fi
24869
24870 found_gl=1
24871 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
24872 echo "$as_me:$LINENO: result: yes" >&5
24873echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
24874 fi
24875 fi
24876
bb41dcbe 24877 if test "$found_gl" != 1; then
e6cc62c6
VS
24878 echo "$as_me:$LINENO: result: no" >&5
24879echo "${ECHO_T}no" >&6
24880 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
24881echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
24882
21d1c967 24883ac_find_libraries=
2b5f62a0 24884for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24885 do
24886 for ac_extension in a so sl dylib; do
24887 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
24888 ac_find_libraries=$ac_dir
24889 break 2
24890 fi
24891 done
24892 done
24893
24894 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24895
21d1c967
GD
24896 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24897 result=$?
24898 if test $result = 0; then
24899 ac_path_to_link=""
24900 else
24901 ac_path_to_link=" -L$ac_find_libraries"
24902 fi
24903
24904 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
24905 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
24906 echo "$as_me:$LINENO: result: yes" >&5
24907echo "${ECHO_T}yes" >&6
21d1c967 24908 else
e6cc62c6
VS
24909 echo "$as_me:$LINENO: result: no" >&5
24910echo "${ECHO_T}no" >&6
21d1c967
GD
24911 fi
24912 fi
e6cc62c6 24913
5c6fa7d2 24914fi
52127426 24915
8284b0c5 24916
e6cc62c6 24917
21d1c967 24918 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
24919 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
24920echo "$as_me: error: OpenGL libraries not available" >&2;}
24921 { (exit 1); exit 1; }; }
21d1c967
GD
24922 fi
24923 fi
90dd450c 24924
21d1c967 24925 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 24926 USE_OPENGL=1
e6cc62c6 24927 cat >>confdefs.h <<\_ACEOF
21d1c967 24928#define wxUSE_OPENGL 1
e6cc62c6 24929_ACEOF
21d1c967 24930
e6cc62c6 24931 cat >>confdefs.h <<\_ACEOF
21d1c967 24932#define wxUSE_GLCANVAS 1
e6cc62c6 24933_ACEOF
21d1c967 24934
520755bb 24935 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 24936 fi
10f2d63a 24937fi
21d1c967
GD
24938
24939if test -z "$TOOLKIT_VPATH" ; then
24940 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 24941fi
21d1c967
GD
24942
24943if test -n "$TOOLKIT" ; then
24944 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
24945fi
24946
fe0895cf 24947UNICODE=0
21d1c967
GD
24948lib_unicode_suffix=
24949if test "$wxUSE_UNICODE" = "yes"; then
24950 lib_unicode_suffix=u
fe0895cf 24951 UNICODE=1
90dd450c 24952fi
698dcdb6 24953
21d1c967 24954lib_debug_suffix=
6c67131a 24955DEBUG_FLAG=0
21d1c967
GD
24956if test "$wxUSE_DEBUG_FLAG" = "yes"; then
24957 lib_debug_suffix=d
6c67131a
VS
24958 DEBUG_FLAG=1
24959fi
24960
24961DEBUG_INFO=0
24962if test "$wxUSE_DEBUG_INFO" = "yes"; then
24963 DEBUG_INFO=1
21d1c967 24964fi
698dcdb6 24965
1cbb95a2 24966WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
24967
24968TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
24969TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
24970
24971if test "$cross_compiling" = "yes"; then
24972 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
24973 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 24974 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
24975fi
24976
24977WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
24978WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
24979WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
24980WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
24981
24982WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24983WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24984
24985WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
24986WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
24987WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
24988WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
24989
24990case "${host}" in
24991 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
24992 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
24993 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
24994 ;;
24995
24996 *-*-darwin* )
e6cc62c6 24997
05159a27
GD
24998 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
24999 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25000
25001 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25002 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25003 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25004 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25005
21d1c967 25006 if test "$wxUSE_MAC" = 1; then
f346733b
GD
25007 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
25008 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
25009 fi
25010 ;;
25011esac
25012
25013WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25014WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25015
25016WXCONFIG_LIBS="-l${WX_LIBRARY}"
25017WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25018
25019if test "$wxUSE_OPENGL" = "yes"; then
25020 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25021 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25022fi
25023
8284b0c5
MB
25024
25025
21d1c967
GD
25026if test "$wxUSE_SHARED" = "yes"; then
25027 case "${host}" in
25028 *-pc-os2_emx | *-pc-os2-emx | \
25029 *-pc-msdosdjgpp )
25030 wxUSE_SHARED=no
e6cc62c6
VS
25031 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25032echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
25033 ;;
25034 esac
25035fi
25036
fe0895cf 25037SHARED=0
2b5f62a0 25038if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 25039 SHARED=1
2b5f62a0 25040
e6cc62c6 25041
2b5f62a0
VZ
25042 found_versioning=no
25043
e6cc62c6 25044
2b5f62a0 25045 if test $found_versioning = no ; then
e6cc62c6
VS
25046 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25047echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25048if test "${wx_cv_version_script+set}" = set; then
25049 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 25050else
e6cc62c6 25051
2b5f62a0
VZ
25052 echo "VER_1 { *; };" >conftest.sym
25053 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 25054
2b5f62a0
VZ
25055 if { ac_try='
25056 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
25057 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25059 (eval $ac_try) 2>&5
25060 ac_status=$?
25061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); }; } ; then
2b5f62a0
VZ
25063 if test -s conftest.stderr ; then
25064 wx_cv_version_script=no
25065 else
25066 wx_cv_version_script=yes
25067 fi
25068 else
25069 wx_cv_version_script=no
25070 fi
25071 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 25072
e6cc62c6
VS
25073fi
25074echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25075echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 25076 if test $wx_cv_version_script = yes ; then
e6cc62c6 25077 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
25078 fi
25079 fi
21d1c967 25080
21d1c967 25081
21d1c967 25082 case "${host}" in
fe0895cf 25083 *-*-linux* | *-*-gnu* )
e6cc62c6 25084 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 25085 ;;
21d1c967
GD
25086
25087 *-*-solaris2* )
25088 if test "$GCC" = yes ; then
25089 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
25090
25091 saveLdflags="$LDFLAGS"
25092 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
25093 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25094echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25095 cat >conftest.$ac_ext <<_ACEOF
25096#line $LINENO "configure"
25097/* confdefs.h. */
25098_ACEOF
25099cat confdefs.h >>conftest.$ac_ext
25100cat >>conftest.$ac_ext <<_ACEOF
25101/* end confdefs.h. */
25102
25103int
25104main ()
25105{
fe0895cf 25106
e6cc62c6
VS
25107 ;
25108 return 0;
25109}
25110_ACEOF
25111rm -f conftest.$ac_objext conftest$ac_exeext
25112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25113 (eval $ac_link) 2>&5
25114 ac_status=$?
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); } &&
25117 { ac_try='test -s conftest$ac_exeext'
25118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25119 (eval $ac_try) 2>&5
25120 ac_status=$?
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); }; }; then
25123
25124 echo "$as_me:$LINENO: result: yes" >&5
25125echo "${ECHO_T}yes" >&6
25126 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25127
25128else
25129 echo "$as_me: failed program was:" >&5
25130sed 's/^/| /' conftest.$ac_ext >&5
25131
25132
25133 echo "$as_me:$LINENO: result: no" >&5
25134echo "${ECHO_T}no" >&6
25135 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25136echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 25137 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
25138 cat >conftest.$ac_ext <<_ACEOF
25139#line $LINENO "configure"
25140/* confdefs.h. */
25141_ACEOF
25142cat confdefs.h >>conftest.$ac_ext
25143cat >>conftest.$ac_ext <<_ACEOF
25144/* end confdefs.h. */
25145
25146int
25147main ()
25148{
25149
25150 ;
25151 return 0;
25152}
25153_ACEOF
25154rm -f conftest.$ac_objext conftest$ac_exeext
25155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25156 (eval $ac_link) 2>&5
25157 ac_status=$?
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } &&
25160 { ac_try='test -s conftest$ac_exeext'
25161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25162 (eval $ac_try) 2>&5
25163 ac_status=$?
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); }; }; then
25166
25167 echo "$as_me:$LINENO: result: yes" >&5
25168echo "${ECHO_T}yes" >&6
25169 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25170else
25171 echo "$as_me: failed program was:" >&5
25172sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 25173
fe0895cf 25174
e6cc62c6
VS
25175 echo "$as_me:$LINENO: result: no" >&5
25176echo "${ECHO_T}no" >&6
25177
fe0895cf 25178fi
e6cc62c6
VS
25179rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25180
25181fi
25182rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 25183 LDFLAGS="$saveLdflags"
21d1c967
GD
25184 else
25185 SHARED_LD="${CXX} -G -o"
25186 PIC_FLAG="-KPIC"
e6cc62c6 25187 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
25188 fi
25189 ;;
0f1bc9c2
VS
25190
25191 powerpc-*-darwin* )
ef0add05
VS
25192 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
25193 cat <<EOF >change-install-names
25194#!/bin/sh
25195libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
25196inst_cmd="install_name_tool "
25197for i in \${libnames} ; do
25198 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
25199done
25200\${inst_cmd} \${3}
25201EOF
25202 chmod +x change-install-names
0f1bc9c2
VS
25203 ;;
25204
21d1c967
GD
25205 esac
25206
25207 if test "x$WX_TARGET_LIBRARY" = "x"; then
25208 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25209 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25210 fi
25211
25212 WX_TARGET_LIBRARY_TYPE="so"
25213 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25214fi
10f2d63a 25215
21d1c967
GD
25216if test "$wxUSE_SHARED" = "no"; then
25217
25218 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25219 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25220 fi
25221
ac0c4cc3 25222 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25223 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25224 fi
25225
25226 if test "$wxUSE_OPENGL" = "yes"; then
25227 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25228 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25229 else
25230 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25231 fi
25232
25233 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25234 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25235
25236 WX_TARGET_LIBRARY_TYPE="a"
25237 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25238
25239 STATIC_FLAG="yes"
25240else
25241 STATIC_FLAG="no"
90dd450c 25242fi
1e487827 25243
93fac604
VZ
25244MACRESCOMP="@#"
25245MACSETFILE="@#"
36825681 25246MACRESWXCONFIG="#"
21d1c967 25247if test "$wxUSE_MAC" = 1; then
e6cc62c6 25248 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25249 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25250 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25251 # Extract the first word of "Rez", so it can be a program name with args.
25252set dummy Rez; ac_word=$2
e6cc62c6
VS
25253echo "$as_me:$LINENO: checking for $ac_word" >&5
25254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25255if test "${ac_cv_prog_RESCOMP+set}" = set; then
25256 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25257else
21d1c967
GD
25258 if test -n "$RESCOMP"; then
25259 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25260else
e6cc62c6
VS
25261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25262for as_dir in $PATH
25263do
25264 IFS=$as_save_IFS
25265 test -z "$as_dir" && as_dir=.
25266 for ac_exec_ext in '' $ac_executable_extensions; do
25267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25268 ac_cv_prog_RESCOMP="Rez"
25269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25270 break 2
25271 fi
25272done
25273done
25274
21d1c967 25275 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25276fi
b93d0d08 25277fi
e6cc62c6 25278RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25279if test -n "$RESCOMP"; then
e6cc62c6
VS
25280 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25281echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25282else
e6cc62c6
VS
25283 echo "$as_me:$LINENO: result: no" >&5
25284echo "${ECHO_T}no" >&6
90dd450c 25285fi
b93d0d08 25286
21d1c967
GD
25287 # Extract the first word of "DeRez", so it can be a program name with args.
25288set dummy DeRez; ac_word=$2
e6cc62c6
VS
25289echo "$as_me:$LINENO: checking for $ac_word" >&5
25290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25291if test "${ac_cv_prog_DEREZ+set}" = set; then
25292 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25293else
21d1c967
GD
25294 if test -n "$DEREZ"; then
25295 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25296else
e6cc62c6
VS
25297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25298for as_dir in $PATH
25299do
25300 IFS=$as_save_IFS
25301 test -z "$as_dir" && as_dir=.
25302 for ac_exec_ext in '' $ac_executable_extensions; do
25303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25304 ac_cv_prog_DEREZ="DeRez"
25305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25306 break 2
25307 fi
25308done
25309done
25310
21d1c967 25311 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25312fi
90dd450c 25313fi
e6cc62c6 25314DEREZ=$ac_cv_prog_DEREZ
21d1c967 25315if test -n "$DEREZ"; then
e6cc62c6
VS
25316 echo "$as_me:$LINENO: result: $DEREZ" >&5
25317echo "${ECHO_T}$DEREZ" >&6
90dd450c 25318else
e6cc62c6
VS
25319 echo "$as_me:$LINENO: result: no" >&5
25320echo "${ECHO_T}no" >&6
3a922bb4 25321fi
698dcdb6 25322
36825681
GD
25323 # Extract the first word of "SetFile", so it can be a program name with args.
25324set dummy SetFile; ac_word=$2
e6cc62c6
VS
25325echo "$as_me:$LINENO: checking for $ac_word" >&5
25326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25327if test "${ac_cv_prog_SETFILE+set}" = set; then
25328 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25329else
25330 if test -n "$SETFILE"; then
25331 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25332else
e6cc62c6
VS
25333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25334for as_dir in $PATH
25335do
25336 IFS=$as_save_IFS
25337 test -z "$as_dir" && as_dir=.
25338 for ac_exec_ext in '' $ac_executable_extensions; do
25339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25340 ac_cv_prog_SETFILE="SetFile"
25341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25342 break 2
25343 fi
25344done
25345done
25346
36825681
GD
25347 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25348fi
25349fi
e6cc62c6 25350SETFILE=$ac_cv_prog_SETFILE
36825681 25351if test -n "$SETFILE"; then
e6cc62c6
VS
25352 echo "$as_me:$LINENO: result: $SETFILE" >&5
25353echo "${ECHO_T}$SETFILE" >&6
36825681 25354else
e6cc62c6
VS
25355 echo "$as_me:$LINENO: result: no" >&5
25356echo "${ECHO_T}no" >&6
36825681
GD
25357fi
25358
21d1c967 25359 MACOSX_BUNDLE="bundle"
36825681
GD
25360 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25361 MACSETFILE="\$(SETFILE)"
9711d31e 25362 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25363elif test "$wxUSE_COCOA" = 1; then
25364 # Extract the first word of "Rez", so it can be a program name with args.
25365set dummy Rez; ac_word=$2
e6cc62c6
VS
25366echo "$as_me:$LINENO: checking for $ac_word" >&5
25367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25368if test "${ac_cv_prog_RESCOMP+set}" = set; then
25369 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25370else
25371 if test -n "$RESCOMP"; then
25372 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25373else
e6cc62c6
VS
25374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25375for as_dir in $PATH
25376do
25377 IFS=$as_save_IFS
25378 test -z "$as_dir" && as_dir=.
25379 for ac_exec_ext in '' $ac_executable_extensions; do
25380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25381 ac_cv_prog_RESCOMP="Rez"
25382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25383 break 2
25384 fi
25385done
25386done
25387
64440d77
DE
25388 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25389fi
25390fi
e6cc62c6 25391RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25392if test -n "$RESCOMP"; then
e6cc62c6
VS
25393 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25394echo "${ECHO_T}$RESCOMP" >&6
64440d77 25395else
e6cc62c6
VS
25396 echo "$as_me:$LINENO: result: no" >&5
25397echo "${ECHO_T}no" >&6
64440d77
DE
25398fi
25399
25400 # Extract the first word of "DeRez", so it can be a program name with args.
25401set dummy DeRez; ac_word=$2
e6cc62c6
VS
25402echo "$as_me:$LINENO: checking for $ac_word" >&5
25403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25404if test "${ac_cv_prog_DEREZ+set}" = set; then
25405 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25406else
25407 if test -n "$DEREZ"; then
25408 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25409else
e6cc62c6
VS
25410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25411for as_dir in $PATH
25412do
25413 IFS=$as_save_IFS
25414 test -z "$as_dir" && as_dir=.
25415 for ac_exec_ext in '' $ac_executable_extensions; do
25416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25417 ac_cv_prog_DEREZ="DeRez"
25418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25419 break 2
25420 fi
25421done
25422done
25423
64440d77
DE
25424 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25425fi
25426fi
e6cc62c6 25427DEREZ=$ac_cv_prog_DEREZ
64440d77 25428if test -n "$DEREZ"; then
e6cc62c6
VS
25429 echo "$as_me:$LINENO: result: $DEREZ" >&5
25430echo "${ECHO_T}$DEREZ" >&6
64440d77 25431else
e6cc62c6
VS
25432 echo "$as_me:$LINENO: result: no" >&5
25433echo "${ECHO_T}no" >&6
64440d77
DE
25434fi
25435
25436 # Extract the first word of "SetFile", so it can be a program name with args.
25437set dummy SetFile; ac_word=$2
e6cc62c6
VS
25438echo "$as_me:$LINENO: checking for $ac_word" >&5
25439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25440if test "${ac_cv_prog_SETFILE+set}" = set; then
25441 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25442else
25443 if test -n "$SETFILE"; then
25444 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25445else
e6cc62c6
VS
25446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25447for as_dir in $PATH
25448do
25449 IFS=$as_save_IFS
25450 test -z "$as_dir" && as_dir=.
25451 for ac_exec_ext in '' $ac_executable_extensions; do
25452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25453 ac_cv_prog_SETFILE="SetFile"
25454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25455 break 2
25456 fi
25457done
25458done
25459
64440d77
DE
25460 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25461fi
25462fi
e6cc62c6 25463SETFILE=$ac_cv_prog_SETFILE
64440d77 25464if test -n "$SETFILE"; then
e6cc62c6
VS
25465 echo "$as_me:$LINENO: result: $SETFILE" >&5
25466echo "${ECHO_T}$SETFILE" >&6
64440d77 25467else
e6cc62c6
VS
25468 echo "$as_me:$LINENO: result: no" >&5
25469echo "${ECHO_T}no" >&6
64440d77
DE
25470fi
25471
25472 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25473 MACSETFILE="\$(SETFILE)"
9711d31e 25474 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25475else
25476 if test "$wxUSE_PM" = 1; then
36825681 25477 MACRESCOMP="emxbind -ep"
90dd450c 25478 fi
4f14bcd8 25479fi
10f2d63a 25480
8284b0c5 25481
e6cc62c6
VS
25482echo "$as_me:$LINENO: checking for mode_t" >&5
25483echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25484if test "${ac_cv_type_mode_t+set}" = set; then
25485 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25486else
e6cc62c6
VS
25487 cat >conftest.$ac_ext <<_ACEOF
25488#line $LINENO "configure"
25489/* confdefs.h. */
25490_ACEOF
25491cat confdefs.h >>conftest.$ac_ext
25492cat >>conftest.$ac_ext <<_ACEOF
25493/* end confdefs.h. */
25494$ac_includes_default
25495int
25496main ()
25497{
25498if ((mode_t *) 0)
25499 return 0;
25500if (sizeof (mode_t))
25501 return 0;
25502 ;
25503 return 0;
25504}
25505_ACEOF
25506rm -f conftest.$ac_objext
25507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25508 (eval $ac_compile) 2>&5
25509 ac_status=$?
25510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25511 (exit $ac_status); } &&
25512 { ac_try='test -s conftest.$ac_objext'
25513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25514 (eval $ac_try) 2>&5
25515 ac_status=$?
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); }; }; then
25518 ac_cv_type_mode_t=yes
a0b9e27f 25519else
e6cc62c6
VS
25520 echo "$as_me: failed program was:" >&5
25521sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25522
e6cc62c6 25523ac_cv_type_mode_t=no
a0b9e27f 25524fi
e6cc62c6 25525rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25526fi
e6cc62c6
VS
25527echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25528echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25529if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25530 :
25531else
a0b9e27f 25532
e6cc62c6
VS
25533cat >>confdefs.h <<_ACEOF
25534#define mode_t int
25535_ACEOF
8284b0c5
MB
25536
25537fi
25538
e6cc62c6
VS
25539echo "$as_me:$LINENO: checking for off_t" >&5
25540echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25541if test "${ac_cv_type_off_t+set}" = set; then
25542 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25543else
e6cc62c6
VS
25544 cat >conftest.$ac_ext <<_ACEOF
25545#line $LINENO "configure"
25546/* confdefs.h. */
25547_ACEOF
25548cat confdefs.h >>conftest.$ac_ext
25549cat >>conftest.$ac_ext <<_ACEOF
25550/* end confdefs.h. */
25551$ac_includes_default
25552int
25553main ()
25554{
25555if ((off_t *) 0)
25556 return 0;
25557if (sizeof (off_t))
25558 return 0;
25559 ;
25560 return 0;
25561}
25562_ACEOF
25563rm -f conftest.$ac_objext
25564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25565 (eval $ac_compile) 2>&5
25566 ac_status=$?
25567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); } &&
25569 { ac_try='test -s conftest.$ac_objext'
25570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25571 (eval $ac_try) 2>&5
25572 ac_status=$?
25573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 (exit $ac_status); }; }; then
25575 ac_cv_type_off_t=yes
5c6fa7d2 25576else
e6cc62c6
VS
25577 echo "$as_me: failed program was:" >&5
25578sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25579
e6cc62c6 25580ac_cv_type_off_t=no
8284b0c5 25581fi
e6cc62c6 25582rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25583fi
e6cc62c6
VS
25584echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25585echo "${ECHO_T}$ac_cv_type_off_t" >&6
25586if test $ac_cv_type_off_t = yes; then
25587 :
247f5006
VZ
25588else
25589
e6cc62c6 25590cat >>confdefs.h <<_ACEOF
90dd450c 25591#define off_t long
e6cc62c6 25592_ACEOF
10f2d63a 25593
90dd450c 25594fi
10f2d63a 25595
e6cc62c6
VS
25596echo "$as_me:$LINENO: checking for pid_t" >&5
25597echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25598if test "${ac_cv_type_pid_t+set}" = set; then
25599 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25600else
e6cc62c6
VS
25601 cat >conftest.$ac_ext <<_ACEOF
25602#line $LINENO "configure"
25603/* confdefs.h. */
25604_ACEOF
25605cat confdefs.h >>conftest.$ac_ext
25606cat >>conftest.$ac_ext <<_ACEOF
25607/* end confdefs.h. */
25608$ac_includes_default
25609int
25610main ()
25611{
25612if ((pid_t *) 0)
25613 return 0;
25614if (sizeof (pid_t))
25615 return 0;
25616 ;
25617 return 0;
25618}
25619_ACEOF
25620rm -f conftest.$ac_objext
25621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25622 (eval $ac_compile) 2>&5
25623 ac_status=$?
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); } &&
25626 { ac_try='test -s conftest.$ac_objext'
25627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25628 (eval $ac_try) 2>&5
25629 ac_status=$?
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); }; }; then
90dd450c 25632 ac_cv_type_pid_t=yes
698dcdb6 25633else
e6cc62c6
VS
25634 echo "$as_me: failed program was:" >&5
25635sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25636
e6cc62c6
VS
25637ac_cv_type_pid_t=no
25638fi
25639rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25640fi
e6cc62c6
VS
25641echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25642echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25643if test $ac_cv_type_pid_t = yes; then
25644 :
25645else
25646
25647cat >>confdefs.h <<_ACEOF
90dd450c 25648#define pid_t int
e6cc62c6 25649_ACEOF
10f2d63a 25650
7b4a847f
RR
25651fi
25652
e6cc62c6
VS
25653echo "$as_me:$LINENO: checking for size_t" >&5
25654echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25655if test "${ac_cv_type_size_t+set}" = set; then
25656 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25657else
e6cc62c6
VS
25658 cat >conftest.$ac_ext <<_ACEOF
25659#line $LINENO "configure"
25660/* confdefs.h. */
25661_ACEOF
25662cat confdefs.h >>conftest.$ac_ext
25663cat >>conftest.$ac_ext <<_ACEOF
25664/* end confdefs.h. */
25665$ac_includes_default
25666int
25667main ()
25668{
25669if ((size_t *) 0)
25670 return 0;
25671if (sizeof (size_t))
25672 return 0;
25673 ;
25674 return 0;
25675}
25676_ACEOF
25677rm -f conftest.$ac_objext
25678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25679 (eval $ac_compile) 2>&5
25680 ac_status=$?
25681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); } &&
25683 { ac_try='test -s conftest.$ac_objext'
25684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25685 (eval $ac_try) 2>&5
25686 ac_status=$?
25687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); }; }; then
90dd450c 25689 ac_cv_type_size_t=yes
18dbb1f6 25690else
e6cc62c6
VS
25691 echo "$as_me: failed program was:" >&5
25692sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25693
e6cc62c6 25694ac_cv_type_size_t=no
a0b9e27f 25695fi
e6cc62c6
VS
25696rm -f conftest.$ac_objext conftest.$ac_ext
25697fi
25698echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25699echo "${ECHO_T}$ac_cv_type_size_t" >&6
25700if test $ac_cv_type_size_t = yes; then
25701 :
25702else
25703
25704cat >>confdefs.h <<_ACEOF
90dd450c 25705#define size_t unsigned
e6cc62c6 25706_ACEOF
90dd450c
VZ
25707
25708fi
25709
e6cc62c6
VS
25710echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25711echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25712if test "${ac_cv_type_uid_t+set}" = set; then
25713 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 25714else
e6cc62c6
VS
25715 cat >conftest.$ac_ext <<_ACEOF
25716#line $LINENO "configure"
25717/* confdefs.h. */
25718_ACEOF
25719cat confdefs.h >>conftest.$ac_ext
25720cat >>conftest.$ac_ext <<_ACEOF
25721/* end confdefs.h. */
90dd450c 25722#include <sys/types.h>
e6cc62c6
VS
25723
25724_ACEOF
90dd450c 25725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 25726 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 25727 ac_cv_type_uid_t=yes
b3e8d00a 25728else
90dd450c 25729 ac_cv_type_uid_t=no
b3e8d00a 25730fi
90dd450c 25731rm -f conftest*
b3e8d00a 25732
4f14bcd8 25733fi
e6cc62c6
VS
25734echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25735echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 25736if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
25737
25738cat >>confdefs.h <<\_ACEOF
90dd450c 25739#define uid_t int
e6cc62c6 25740_ACEOF
247f5006 25741
e6cc62c6
VS
25742
25743cat >>confdefs.h <<\_ACEOF
90dd450c 25744#define gid_t int
e6cc62c6 25745_ACEOF
4f14bcd8 25746
b3e8d00a 25747fi
b3e8d00a 25748
8284b0c5
MB
25749
25750
e6cc62c6
VS
25751
25752ac_ext=cc
4f14bcd8 25753ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
25754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25757
25758echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25759echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25760if test "${wx_cv_size_t_is_uint+set}" = set; then
25761 echo $ECHO_N "(cached) $ECHO_C" >&6
25762else
25763
25764 cat >conftest.$ac_ext <<_ACEOF
25765#line $LINENO "configure"
25766/* confdefs.h. */
25767_ACEOF
25768cat confdefs.h >>conftest.$ac_ext
25769cat >>conftest.$ac_ext <<_ACEOF
25770/* end confdefs.h. */
90dd450c 25771#include <stddef.h>
e6cc62c6
VS
25772int
25773main ()
25774{
90dd450c
VZ
25775
25776 return 0; }
25777
25778 struct Foo { void foo(size_t); void foo(unsigned int); };
25779
25780 int bar() {
e6cc62c6
VS
25781
25782 ;
25783 return 0;
25784}
25785_ACEOF
25786rm -f conftest.$ac_objext
25787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25788 (eval $ac_compile) 2>&5
25789 ac_status=$?
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); } &&
25792 { ac_try='test -s conftest.$ac_objext'
25793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25794 (eval $ac_try) 2>&5
25795 ac_status=$?
25796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797 (exit $ac_status); }; }; then
90dd450c 25798 wx_cv_size_t_is_uint=no
698dcdb6 25799else
e6cc62c6
VS
25800 echo "$as_me: failed program was:" >&5
25801sed 's/^/| /' conftest.$ac_ext >&5
25802
25803wx_cv_size_t_is_uint=yes
8284b0c5 25804
247f5006 25805fi
e6cc62c6
VS
25806rm -f conftest.$ac_objext conftest.$ac_ext
25807
a0b9e27f 25808
e6cc62c6
VS
25809fi
25810echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
25811echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 25812
90dd450c 25813if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 25814 cat >>confdefs.h <<\_ACEOF
90dd450c 25815#define wxSIZE_T_IS_UINT 1
e6cc62c6 25816_ACEOF
698dcdb6 25817
90dd450c 25818else
e6cc62c6
VS
25819 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
25820echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
25821if test "${wx_cv_size_t_is_ulong+set}" = set; then
25822 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 25823else
e6cc62c6
VS
25824 cat >conftest.$ac_ext <<_ACEOF
25825#line $LINENO "configure"
25826/* confdefs.h. */
25827_ACEOF
25828cat confdefs.h >>conftest.$ac_ext
25829cat >>conftest.$ac_ext <<_ACEOF
25830/* end confdefs.h. */
90dd450c 25831#include <stddef.h>
e6cc62c6
VS
25832int
25833main ()
25834{
90dd450c
VZ
25835
25836 return 0; }
25837
25838 struct Foo { void foo(size_t); void foo(unsigned long); };
25839
25840 int bar() {
e6cc62c6
VS
25841
25842 ;
25843 return 0;
25844}
25845_ACEOF
25846rm -f conftest.$ac_objext
25847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25848 (eval $ac_compile) 2>&5
25849 ac_status=$?
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } &&
25852 { ac_try='test -s conftest.$ac_objext'
25853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854 (eval $ac_try) 2>&5
25855 ac_status=$?
25856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); }; }; then
90dd450c 25858 wx_cv_size_t_is_ulong=no
698dcdb6 25859else
e6cc62c6
VS
25860 echo "$as_me: failed program was:" >&5
25861sed 's/^/| /' conftest.$ac_ext >&5
25862
25863wx_cv_size_t_is_ulong=yes
25864
247f5006 25865fi
e6cc62c6 25866rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25867
e6cc62c6
VS
25868fi
25869echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
25870echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 25871
90dd450c 25872 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 25873 cat >>confdefs.h <<\_ACEOF
90dd450c 25874#define wxSIZE_T_IS_ULONG 1
e6cc62c6 25875_ACEOF
4f14bcd8
GD
25876
25877 fi
90dd450c 25878fi
1e487827 25879
90dd450c 25880ac_ext=c
4f14bcd8 25881ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
25882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25884ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 25885
5c6fa7d2 25886
8284b0c5 25887
e6cc62c6
VS
25888echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
25889echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
25890if test "${wx_cv_struct_pw_gecos+set}" = set; then
25891 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25892else
e6cc62c6
VS
25893
25894 cat >conftest.$ac_ext <<_ACEOF
25895#line $LINENO "configure"
25896/* confdefs.h. */
25897_ACEOF
25898cat confdefs.h >>conftest.$ac_ext
25899cat >>conftest.$ac_ext <<_ACEOF
25900/* end confdefs.h. */
90dd450c 25901#include <pwd.h>
e6cc62c6
VS
25902int
25903main ()
25904{
f6bcfd97 25905
90dd450c
VZ
25906 char *p;
25907 struct passwd *pw;
25908 p = pw->pw_gecos;
e6cc62c6
VS
25909
25910 ;
25911 return 0;
25912}
25913_ACEOF
25914rm -f conftest.$ac_objext
25915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25916 (eval $ac_compile) 2>&5
25917 ac_status=$?
25918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919 (exit $ac_status); } &&
25920 { ac_try='test -s conftest.$ac_objext'
25921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25922 (eval $ac_try) 2>&5
25923 ac_status=$?
25924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925 (exit $ac_status); }; }; then
25926
90dd450c 25927 wx_cv_struct_pw_gecos=yes
e6cc62c6 25928
10f2d63a 25929else
e6cc62c6
VS
25930 echo "$as_me: failed program was:" >&5
25931sed 's/^/| /' conftest.$ac_ext >&5
25932
25933
90dd450c 25934 wx_cv_struct_pw_gecos=no
e6cc62c6 25935
247f5006
VZ
25936
25937fi
e6cc62c6 25938rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25939
e6cc62c6
VS
25940
25941fi
25942echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
25943echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 25944
90dd450c 25945if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 25946 cat >>confdefs.h <<\_ACEOF
90dd450c 25947#define HAVE_PW_GECOS 1
e6cc62c6 25948_ACEOF
c521c494 25949
90dd450c 25950fi
4f14bcd8 25951
8284b0c5 25952
d29b553b 25953if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 25954 cat >>confdefs.h <<\_ACEOF
d74f4b5a 25955#define wxUSE_WCHAR_T 1
e6cc62c6 25956_ACEOF
d74f4b5a 25957
8284b0c5 25958
d74f4b5a
VZ
25959 WCSLEN_FOUND=0
25960 WCHAR_LINK=
e6cc62c6
VS
25961
25962for ac_func in wcslen
7a30264c 25963do
e6cc62c6
VS
25964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25965echo "$as_me:$LINENO: checking for $ac_func" >&5
25966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25967if eval "test \"\${$as_ac_var+set}\" = set"; then
25968 echo $ECHO_N "(cached) $ECHO_C" >&6
25969else
25970 cat >conftest.$ac_ext <<_ACEOF
25971#line $LINENO "configure"
25972/* confdefs.h. */
25973_ACEOF
25974cat confdefs.h >>conftest.$ac_ext
25975cat >>conftest.$ac_ext <<_ACEOF
25976/* end confdefs.h. */
7a30264c 25977/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25978 which can conflict with char $ac_func (); below.
25979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25980 <limits.h> exists even on freestanding compilers. */
25981#ifdef __STDC__
25982# include <limits.h>
25983#else
25984# include <assert.h>
25985#endif
4f14bcd8 25986/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25987#ifdef __cplusplus
25988extern "C"
25989{
25990#endif
4f14bcd8 25991/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25992 builtin and then its argument prototype would still apply. */
25993char $ac_func ();
7a30264c
VZ
25994/* The GNU C library defines this for functions which it implements
25995 to always fail with ENOSYS. Some functions are actually named
25996 something starting with __ and the normal name is an alias. */
25997#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25998choke me
25999#else
e6cc62c6
VS
26000char (*f) () = $ac_func;
26001#endif
26002#ifdef __cplusplus
26003}
7a30264c
VZ
26004#endif
26005
e6cc62c6
VS
26006int
26007main ()
26008{
26009return f != $ac_func;
26010 ;
26011 return 0;
26012}
26013_ACEOF
26014rm -f conftest.$ac_objext conftest$ac_exeext
26015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26016 (eval $ac_link) 2>&5
26017 ac_status=$?
26018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); } &&
26020 { ac_try='test -s conftest$ac_exeext'
26021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26022 (eval $ac_try) 2>&5
26023 ac_status=$?
26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); }; }; then
26026 eval "$as_ac_var=yes"
26027else
26028 echo "$as_me: failed program was:" >&5
26029sed 's/^/| /' conftest.$ac_ext >&5
26030
26031eval "$as_ac_var=no"
26032fi
26033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26034fi
26035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26036echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26037if test `eval echo '${'$as_ac_var'}'` = yes; then
26038 cat >>confdefs.h <<_ACEOF
26039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26040_ACEOF
d74f4b5a 26041 WCSLEN_FOUND=1
7a30264c
VZ
26042fi
26043done
9d8deca0 26044
8284b0c5 26045
d74f4b5a 26046 if test "$WCSLEN_FOUND" = 0; then
7a30264c 26047 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
26048 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26049echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26050if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26051 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 26052else
e6cc62c6 26053 ac_check_lib_save_LIBS=$LIBS
7a30264c 26054LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
26055cat >conftest.$ac_ext <<_ACEOF
26056#line $LINENO "configure"
26057/* confdefs.h. */
26058_ACEOF
26059cat confdefs.h >>conftest.$ac_ext
26060cat >>conftest.$ac_ext <<_ACEOF
26061/* end confdefs.h. */
26062
4f14bcd8 26063/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26064#ifdef __cplusplus
26065extern "C"
26066#endif
4f14bcd8 26067/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26068 builtin and then its argument prototype would still apply. */
26069char wcslen ();
26070int
26071main ()
26072{
26073wcslen ();
26074 ;
26075 return 0;
26076}
26077_ACEOF
26078rm -f conftest.$ac_objext conftest$ac_exeext
26079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26080 (eval $ac_link) 2>&5
26081 ac_status=$?
26082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083 (exit $ac_status); } &&
26084 { ac_try='test -s conftest$ac_exeext'
26085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26086 (eval $ac_try) 2>&5
26087 ac_status=$?
26088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089 (exit $ac_status); }; }; then
26090 ac_cv_lib_msvcrt_wcslen=yes
26091else
26092 echo "$as_me: failed program was:" >&5
26093sed 's/^/| /' conftest.$ac_ext >&5
26094
26095ac_cv_lib_msvcrt_wcslen=no
26096fi
26097rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26098LIBS=$ac_check_lib_save_LIBS
26099fi
26100echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26101echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26102if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 26103 WCHAR_OK=1
d29b553b 26104fi
698dcdb6 26105
7a30264c 26106 else
e6cc62c6
VS
26107 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26108echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26109if test "${ac_cv_lib_w_wcslen+set}" = set; then
26110 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26111else
e6cc62c6 26112 ac_check_lib_save_LIBS=$LIBS
7a30264c 26113LIBS="-lw $LIBS"
e6cc62c6
VS
26114cat >conftest.$ac_ext <<_ACEOF
26115#line $LINENO "configure"
26116/* confdefs.h. */
26117_ACEOF
26118cat confdefs.h >>conftest.$ac_ext
26119cat >>conftest.$ac_ext <<_ACEOF
26120/* end confdefs.h. */
26121
4f14bcd8 26122/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26123#ifdef __cplusplus
26124extern "C"
26125#endif
4f14bcd8 26126/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26127 builtin and then its argument prototype would still apply. */
26128char wcslen ();
26129int
26130main ()
26131{
26132wcslen ();
26133 ;
26134 return 0;
26135}
26136_ACEOF
26137rm -f conftest.$ac_objext conftest$ac_exeext
26138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26139 (eval $ac_link) 2>&5
26140 ac_status=$?
26141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142 (exit $ac_status); } &&
26143 { ac_try='test -s conftest$ac_exeext'
26144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26145 (eval $ac_try) 2>&5
26146 ac_status=$?
26147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148 (exit $ac_status); }; }; then
26149 ac_cv_lib_w_wcslen=yes
26150else
26151 echo "$as_me: failed program was:" >&5
26152sed 's/^/| /' conftest.$ac_ext >&5
26153
26154ac_cv_lib_w_wcslen=no
26155fi
26156rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26157LIBS=$ac_check_lib_save_LIBS
26158fi
26159echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26160echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26161if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26162
7a30264c 26163 WCHAR_LINK=" -lw"
d74f4b5a 26164 WCSLEN_FOUND=1
e6cc62c6 26165
4f14bcd8 26166fi
10f2d63a 26167
7a30264c 26168 fi
d29b553b 26169 fi
95c8801c 26170
d74f4b5a 26171 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26172 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26173#define HAVE_WCSLEN 1
e6cc62c6 26174_ACEOF
10f2d63a 26175
d74f4b5a 26176 fi
52127426 26177
e6cc62c6
VS
26178
26179for ac_func in wcsrtombs
eb4efbdc 26180do
e6cc62c6
VS
26181as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26182echo "$as_me:$LINENO: checking for $ac_func" >&5
26183echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26184if eval "test \"\${$as_ac_var+set}\" = set"; then
26185 echo $ECHO_N "(cached) $ECHO_C" >&6
26186else
26187 cat >conftest.$ac_ext <<_ACEOF
26188#line $LINENO "configure"
26189/* confdefs.h. */
26190_ACEOF
26191cat confdefs.h >>conftest.$ac_ext
26192cat >>conftest.$ac_ext <<_ACEOF
26193/* end confdefs.h. */
eb4efbdc 26194/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26195 which can conflict with char $ac_func (); below.
26196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26197 <limits.h> exists even on freestanding compilers. */
26198#ifdef __STDC__
26199# include <limits.h>
26200#else
26201# include <assert.h>
26202#endif
eb4efbdc 26203/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26204#ifdef __cplusplus
26205extern "C"
26206{
26207#endif
4f14bcd8 26208/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26209 builtin and then its argument prototype would still apply. */
26210char $ac_func ();
10f2d63a
VZ
26211/* The GNU C library defines this for functions which it implements
26212 to always fail with ENOSYS. Some functions are actually named
26213 something starting with __ and the normal name is an alias. */
247f5006 26214#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26215choke me
26216#else
e6cc62c6
VS
26217char (*f) () = $ac_func;
26218#endif
26219#ifdef __cplusplus
26220}
10f2d63a
VZ
26221#endif
26222
e6cc62c6
VS
26223int
26224main ()
26225{
26226return f != $ac_func;
26227 ;
26228 return 0;
26229}
26230_ACEOF
26231rm -f conftest.$ac_objext conftest$ac_exeext
26232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26233 (eval $ac_link) 2>&5
26234 ac_status=$?
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); } &&
26237 { ac_try='test -s conftest$ac_exeext'
26238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26239 (eval $ac_try) 2>&5
26240 ac_status=$?
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); }; }; then
26243 eval "$as_ac_var=yes"
26244else
26245 echo "$as_me: failed program was:" >&5
26246sed 's/^/| /' conftest.$ac_ext >&5
26247
26248eval "$as_ac_var=no"
26249fi
26250rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26251fi
26252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26253echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26254if test `eval echo '${'$as_ac_var'}'` = yes; then
26255 cat >>confdefs.h <<_ACEOF
26256#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26257_ACEOF
270a909e 26258
4f14bcd8 26259fi
247f5006 26260done
1e487827 26261
af15babd 26262else
e6cc62c6
VS
26263 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26264echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26265fi
52127426 26266
8284b0c5 26267
e6cc62c6
VS
26268
26269ac_ext=cc
247f5006 26270ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26274
af15babd 26275
247f5006
VZ
26276
26277for ac_func in vsnprintf
26278do
e6cc62c6
VS
26279as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26280echo "$as_me:$LINENO: checking for $ac_func" >&5
26281echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26282if eval "test \"\${$as_ac_var+set}\" = set"; then
26283 echo $ECHO_N "(cached) $ECHO_C" >&6
26284else
26285 cat >conftest.$ac_ext <<_ACEOF
26286#line $LINENO "configure"
26287/* confdefs.h. */
26288_ACEOF
26289cat confdefs.h >>conftest.$ac_ext
26290cat >>conftest.$ac_ext <<_ACEOF
26291/* end confdefs.h. */
247f5006 26292/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26293 which can conflict with char $ac_func (); below.
26294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26295 <limits.h> exists even on freestanding compilers. */
26296#ifdef __STDC__
26297# include <limits.h>
26298#else
26299# include <assert.h>
26300#endif
247f5006
VZ
26301/* Override any gcc2 internal prototype to avoid an error. */
26302#ifdef __cplusplus
26303extern "C"
e6cc62c6 26304{
247f5006
VZ
26305#endif
26306/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26307 builtin and then its argument prototype would still apply. */
26308char $ac_func ();
247f5006
VZ
26309/* The GNU C library defines this for functions which it implements
26310 to always fail with ENOSYS. Some functions are actually named
26311 something starting with __ and the normal name is an alias. */
26312#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26313choke me
26314#else
e6cc62c6
VS
26315char (*f) () = $ac_func;
26316#endif
26317#ifdef __cplusplus
26318}
247f5006 26319#endif
af15babd 26320
e6cc62c6
VS
26321int
26322main ()
26323{
26324return f != $ac_func;
26325 ;
26326 return 0;
26327}
26328_ACEOF
26329rm -f conftest.$ac_objext conftest$ac_exeext
26330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26331 (eval $ac_link) 2>&5
26332 ac_status=$?
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); } &&
26335 { ac_try='test -s conftest$ac_exeext'
26336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26337 (eval $ac_try) 2>&5
26338 ac_status=$?
26339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340 (exit $ac_status); }; }; then
26341 eval "$as_ac_var=yes"
26342else
26343 echo "$as_me: failed program was:" >&5
26344sed 's/^/| /' conftest.$ac_ext >&5
26345
26346eval "$as_ac_var=no"
26347fi
26348rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26349fi
26350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26351echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26352if test `eval echo '${'$as_ac_var'}'` = yes; then
26353 cat >>confdefs.h <<_ACEOF
26354#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26355_ACEOF
52127426 26356
5c6fa7d2 26357fi
247f5006 26358done
8284b0c5 26359
4f14bcd8 26360
8d90d2f2 26361if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26362 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26363echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26364if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26365 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26366else
e6cc62c6
VS
26367
26368 cat >conftest.$ac_ext <<_ACEOF
26369#line $LINENO "configure"
26370/* confdefs.h. */
26371_ACEOF
26372cat confdefs.h >>conftest.$ac_ext
26373cat >>conftest.$ac_ext <<_ACEOF
26374/* end confdefs.h. */
8d90d2f2
VZ
26375
26376 #include <stdio.h>
26377 #include <stdarg.h>
e6cc62c6
VS
26378
26379int
26380main ()
26381{
8d90d2f2
VZ
26382
26383 char *buf;
26384 va_list ap;
26385 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26386
26387 ;
26388 return 0;
26389}
26390_ACEOF
26391rm -f conftest.$ac_objext
26392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26393 (eval $ac_compile) 2>&5
26394 ac_status=$?
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); } &&
26397 { ac_try='test -s conftest.$ac_objext'
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
8d90d2f2
VZ
26403 wx_cv_func_vsnprintf_decl=yes
26404else
e6cc62c6
VS
26405 echo "$as_me: failed program was:" >&5
26406sed 's/^/| /' conftest.$ac_ext >&5
26407
26408wx_cv_func_vsnprintf_decl=no
26409
8d90d2f2 26410fi
e6cc62c6
VS
26411rm -f conftest.$ac_objext conftest.$ac_ext
26412
8d90d2f2 26413
e6cc62c6
VS
26414fi
26415echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26416echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26417
26418 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26419 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26420#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26421_ACEOF
8d90d2f2
VZ
26422
26423 fi
26424fi
26425
247f5006 26426if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26427
26428
26429
26430for ac_func in fputwc wprintf vswprintf
d74f4b5a 26431do
e6cc62c6
VS
26432as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26433echo "$as_me:$LINENO: checking for $ac_func" >&5
26434echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26435if eval "test \"\${$as_ac_var+set}\" = set"; then
26436 echo $ECHO_N "(cached) $ECHO_C" >&6
26437else
26438 cat >conftest.$ac_ext <<_ACEOF
26439#line $LINENO "configure"
26440/* confdefs.h. */
26441_ACEOF
26442cat confdefs.h >>conftest.$ac_ext
26443cat >>conftest.$ac_ext <<_ACEOF
26444/* end confdefs.h. */
d74f4b5a 26445/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26446 which can conflict with char $ac_func (); below.
26447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26448 <limits.h> exists even on freestanding compilers. */
26449#ifdef __STDC__
26450# include <limits.h>
26451#else
26452# include <assert.h>
26453#endif
d74f4b5a 26454/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26455#ifdef __cplusplus
26456extern "C"
e6cc62c6 26457{
247f5006 26458#endif
d74f4b5a 26459/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26460 builtin and then its argument prototype would still apply. */
26461char $ac_func ();
d74f4b5a
VZ
26462/* The GNU C library defines this for functions which it implements
26463 to always fail with ENOSYS. Some functions are actually named
26464 something starting with __ and the normal name is an alias. */
26465#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26466choke me
26467#else
e6cc62c6
VS
26468char (*f) () = $ac_func;
26469#endif
26470#ifdef __cplusplus
26471}
d74f4b5a
VZ
26472#endif
26473
e6cc62c6
VS
26474int
26475main ()
26476{
26477return f != $ac_func;
26478 ;
26479 return 0;
26480}
26481_ACEOF
26482rm -f conftest.$ac_objext conftest$ac_exeext
26483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26484 (eval $ac_link) 2>&5
26485 ac_status=$?
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); } &&
26488 { ac_try='test -s conftest$ac_exeext'
26489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26490 (eval $ac_try) 2>&5
26491 ac_status=$?
26492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 (exit $ac_status); }; }; then
26494 eval "$as_ac_var=yes"
26495else
26496 echo "$as_me: failed program was:" >&5
26497sed 's/^/| /' conftest.$ac_ext >&5
26498
26499eval "$as_ac_var=no"
26500fi
26501rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26502fi
26503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26504echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26505if test `eval echo '${'$as_ac_var'}'` = yes; then
26506 cat >>confdefs.h <<_ACEOF
26507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26508_ACEOF
d74f4b5a 26509
d74f4b5a
VZ
26510fi
26511done
26512
8d90d2f2 26513
e6cc62c6
VS
26514 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26515echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26516 cat >conftest.$ac_ext <<_ACEOF
26517#line $LINENO "configure"
26518/* confdefs.h. */
26519_ACEOF
26520cat confdefs.h >>conftest.$ac_ext
26521cat >>conftest.$ac_ext <<_ACEOF
26522/* end confdefs.h. */
79668cae 26523#include <wchar.h>
e6cc62c6
VS
26524int
26525main ()
26526{
79668cae 26527&_vsnwprintf;
e6cc62c6
VS
26528 ;
26529 return 0;
26530}
26531_ACEOF
26532rm -f conftest.$ac_objext
26533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26534 (eval $ac_compile) 2>&5
26535 ac_status=$?
26536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537 (exit $ac_status); } &&
26538 { ac_try='test -s conftest.$ac_objext'
26539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26540 (eval $ac_try) 2>&5
26541 ac_status=$?
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); }; }; then
26544 echo "$as_me:$LINENO: result: yes" >&5
26545echo "${ECHO_T}yes" >&6
26546 cat >>confdefs.h <<\_ACEOF
79668cae 26547#define HAVE__VSNWPRINTF 1
e6cc62c6 26548_ACEOF
79668cae
MB
26549
26550else
e6cc62c6
VS
26551 echo "$as_me: failed program was:" >&5
26552sed 's/^/| /' conftest.$ac_ext >&5
26553
26554echo "$as_me:$LINENO: result: no" >&5
26555echo "${ECHO_T}no" >&6
79668cae 26556fi
e6cc62c6 26557rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26558fi
26559
247f5006
VZ
26560ac_ext=c
26561ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26564ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26565
26566
26567
26568
4f14bcd8 26569if test "$TOOLKIT" != "MSW"; then
af15babd 26570
8284b0c5
MB
26571
26572
e6cc62c6
VS
26573
26574ac_ext=cc
4f14bcd8 26575ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26579
52127426 26580
e6cc62c6
VS
26581
26582
26583# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26584if test "${with_libiconv_prefix+set}" = set; then
26585 withval="$with_libiconv_prefix"
e6cc62c6 26586
b040e242
VS
26587 for dir in `echo "$withval" | tr : ' '`; do
26588 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26589 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26590 done
b040e242 26591
e6cc62c6 26592fi;
b040e242 26593
e6cc62c6
VS
26594 echo "$as_me:$LINENO: checking for iconv" >&5
26595echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26596if test "${am_cv_func_iconv+set}" = set; then
26597 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26598else
e6cc62c6 26599
b040e242
VS
26600 am_cv_func_iconv="no, consider installing GNU libiconv"
26601 am_cv_lib_iconv=no
e6cc62c6
VS
26602 cat >conftest.$ac_ext <<_ACEOF
26603#line $LINENO "configure"
26604/* confdefs.h. */
26605_ACEOF
26606cat confdefs.h >>conftest.$ac_ext
26607cat >>conftest.$ac_ext <<_ACEOF
26608/* end confdefs.h. */
b040e242 26609#include <stdlib.h>
4f14bcd8 26610#include <iconv.h>
e6cc62c6
VS
26611int
26612main ()
26613{
b040e242
VS
26614iconv_t cd = iconv_open("","");
26615 iconv(cd,NULL,NULL,NULL,NULL);
26616 iconv_close(cd);
e6cc62c6
VS
26617 ;
26618 return 0;
26619}
26620_ACEOF
26621rm -f conftest.$ac_objext conftest$ac_exeext
26622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26623 (eval $ac_link) 2>&5
26624 ac_status=$?
26625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626 (exit $ac_status); } &&
26627 { ac_try='test -s conftest$ac_exeext'
26628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26629 (eval $ac_try) 2>&5
26630 ac_status=$?
26631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632 (exit $ac_status); }; }; then
b040e242 26633 am_cv_func_iconv=yes
af15babd 26634else
e6cc62c6
VS
26635 echo "$as_me: failed program was:" >&5
26636sed 's/^/| /' conftest.$ac_ext >&5
26637
b040e242 26638fi
e6cc62c6 26639rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26640 if test "$am_cv_func_iconv" != yes; then
26641 am_save_LIBS="$LIBS"
26642 LIBS="$LIBS -liconv"
e6cc62c6
VS
26643 cat >conftest.$ac_ext <<_ACEOF
26644#line $LINENO "configure"
26645/* confdefs.h. */
26646_ACEOF
26647cat confdefs.h >>conftest.$ac_ext
26648cat >>conftest.$ac_ext <<_ACEOF
26649/* end confdefs.h. */
b040e242
VS
26650#include <stdlib.h>
26651#include <iconv.h>
e6cc62c6
VS
26652int
26653main ()
26654{
b040e242
VS
26655iconv_t cd = iconv_open("","");
26656 iconv(cd,NULL,NULL,NULL,NULL);
26657 iconv_close(cd);
e6cc62c6
VS
26658 ;
26659 return 0;
26660}
26661_ACEOF
26662rm -f conftest.$ac_objext conftest$ac_exeext
26663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26664 (eval $ac_link) 2>&5
26665 ac_status=$?
26666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); } &&
26668 { ac_try='test -s conftest$ac_exeext'
26669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26670 (eval $ac_try) 2>&5
26671 ac_status=$?
26672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673 (exit $ac_status); }; }; then
b040e242
VS
26674 am_cv_lib_iconv=yes
26675 am_cv_func_iconv=yes
26676else
e6cc62c6
VS
26677 echo "$as_me: failed program was:" >&5
26678sed 's/^/| /' conftest.$ac_ext >&5
26679
af15babd 26680fi
e6cc62c6 26681rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26682 LIBS="$am_save_LIBS"
26683 fi
247f5006 26684
e6cc62c6
VS
26685fi
26686echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26687echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 26688 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
26689
26690cat >>confdefs.h <<\_ACEOF
b040e242 26691#define HAVE_ICONV 1
e6cc62c6 26692_ACEOF
b040e242 26693
e6cc62c6
VS
26694 echo "$as_me:$LINENO: checking if iconv needs const" >&5
26695echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26696if test "${wx_cv_func_iconv_const+set}" = set; then
26697 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 26698else
e6cc62c6
VS
26699 cat >conftest.$ac_ext <<_ACEOF
26700#line $LINENO "configure"
26701/* confdefs.h. */
26702_ACEOF
26703cat confdefs.h >>conftest.$ac_ext
26704cat >>conftest.$ac_ext <<_ACEOF
26705/* end confdefs.h. */
b040e242
VS
26706
26707#include <stdlib.h>
26708#include <iconv.h>
26709extern
26710#ifdef __cplusplus
26711"C"
26712#endif
26713#if defined(__STDC__) || defined(__cplusplus)
26714size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26715#else
26716size_t iconv();
26717#endif
af15babd 26718
e6cc62c6
VS
26719int
26720main ()
26721{
26722
26723 ;
26724 return 0;
26725}
26726_ACEOF
26727rm -f conftest.$ac_objext
26728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26729 (eval $ac_compile) 2>&5
26730 ac_status=$?
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); } &&
26733 { ac_try='test -s conftest.$ac_objext'
26734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26735 (eval $ac_try) 2>&5
26736 ac_status=$?
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); }; }; then
b7043674 26739 wx_cv_func_iconv_const="no"
b040e242 26740else
e6cc62c6
VS
26741 echo "$as_me: failed program was:" >&5
26742sed 's/^/| /' conftest.$ac_ext >&5
26743
26744wx_cv_func_iconv_const="yes"
26745
247f5006 26746fi
e6cc62c6 26747rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26748
e6cc62c6
VS
26749fi
26750echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26751echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
26752
26753 iconv_const=
1c405bb5 26754 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
26755 iconv_const="const"
26756 fi
26757
e6cc62c6
VS
26758
26759cat >>confdefs.h <<_ACEOF
f09359cf 26760#define ICONV_CONST $iconv_const
e6cc62c6 26761_ACEOF
b040e242
VS
26762
26763 fi
26764 LIBICONV=
26765 if test "$am_cv_lib_iconv" = yes; then
26766 LIBICONV="-liconv"
26767 fi
e6cc62c6 26768
b040e242
VS
26769
26770LIBS="$LIBICONV $LIBS"
4f14bcd8 26771ac_ext=c
4f14bcd8 26772ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26775ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 26776
5c6fa7d2 26777
8284b0c5 26778if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
26779
26780for ac_func in sigaction
af15babd 26781do
e6cc62c6
VS
26782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26783echo "$as_me:$LINENO: checking for $ac_func" >&5
26784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26785if eval "test \"\${$as_ac_var+set}\" = set"; then
26786 echo $ECHO_N "(cached) $ECHO_C" >&6
26787else
26788 cat >conftest.$ac_ext <<_ACEOF
26789#line $LINENO "configure"
26790/* confdefs.h. */
26791_ACEOF
26792cat confdefs.h >>conftest.$ac_ext
26793cat >>conftest.$ac_ext <<_ACEOF
26794/* end confdefs.h. */
af15babd 26795/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26796 which can conflict with char $ac_func (); below.
26797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26798 <limits.h> exists even on freestanding compilers. */
26799#ifdef __STDC__
26800# include <limits.h>
26801#else
26802# include <assert.h>
26803#endif
af15babd 26804/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26805#ifdef __cplusplus
26806extern "C"
26807{
26808#endif
af15babd 26809/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26810 builtin and then its argument prototype would still apply. */
26811char $ac_func ();
af15babd
VZ
26812/* The GNU C library defines this for functions which it implements
26813 to always fail with ENOSYS. Some functions are actually named
26814 something starting with __ and the normal name is an alias. */
26815#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26816choke me
26817#else
e6cc62c6
VS
26818char (*f) () = $ac_func;
26819#endif
26820#ifdef __cplusplus
26821}
af15babd
VZ
26822#endif
26823
e6cc62c6
VS
26824int
26825main ()
26826{
26827return f != $ac_func;
26828 ;
26829 return 0;
26830}
26831_ACEOF
26832rm -f conftest.$ac_objext conftest$ac_exeext
26833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26834 (eval $ac_link) 2>&5
26835 ac_status=$?
26836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837 (exit $ac_status); } &&
26838 { ac_try='test -s conftest$ac_exeext'
26839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26840 (eval $ac_try) 2>&5
26841 ac_status=$?
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); }; }; then
26844 eval "$as_ac_var=yes"
26845else
26846 echo "$as_me: failed program was:" >&5
26847sed 's/^/| /' conftest.$ac_ext >&5
26848
26849eval "$as_ac_var=no"
26850fi
26851rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26852fi
26853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26854echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26855if test `eval echo '${'$as_ac_var'}'` = yes; then
26856 cat >>confdefs.h <<_ACEOF
26857#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26858_ACEOF
7b4a847f 26859
4f14bcd8
GD
26860fi
26861done
26862
8284b0c5 26863
4f14bcd8 26864 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
26865 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
26866echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
26867 wxUSE_ON_FATAL_EXCEPTION=no
26868 fi
26869
26870 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
26871
26872
26873 ac_ext=cc
5c6fa7d2 26874ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 26878
5c6fa7d2 26879
e6cc62c6
VS
26880 echo "$as_me:$LINENO: checking for sa_handler type" >&5
26881echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
26882if test "${wx_cv_type_sa_handler+set}" = set; then
26883 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26884else
e6cc62c6
VS
26885
26886 cat >conftest.$ac_ext <<_ACEOF
26887#line $LINENO "configure"
26888/* confdefs.h. */
26889_ACEOF
26890cat confdefs.h >>conftest.$ac_ext
26891cat >>conftest.$ac_ext <<_ACEOF
26892/* end confdefs.h. */
4f14bcd8 26893#include <signal.h>
e6cc62c6
VS
26894int
26895main ()
26896{
4f14bcd8
GD
26897
26898 extern void testSigHandler(int);
26899
26900 struct sigaction sa;
26901 sa.sa_handler = testSigHandler;
e6cc62c6
VS
26902
26903 ;
26904 return 0;
26905}
26906_ACEOF
26907rm -f conftest.$ac_objext
26908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26909 (eval $ac_compile) 2>&5
26910 ac_status=$?
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } &&
26913 { ac_try='test -s conftest.$ac_objext'
26914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915 (eval $ac_try) 2>&5
26916 ac_status=$?
26917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); }; }; then
26919
4f14bcd8 26920 wx_cv_type_sa_handler=int
e6cc62c6 26921
af15babd 26922else
e6cc62c6
VS
26923 echo "$as_me: failed program was:" >&5
26924sed 's/^/| /' conftest.$ac_ext >&5
26925
26926
4f14bcd8 26927 wx_cv_type_sa_handler=void
e6cc62c6 26928
247f5006 26929fi
e6cc62c6 26930rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26931
e6cc62c6
VS
26932fi
26933echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
26934echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
26935
26936 ac_ext=c
4f14bcd8 26937ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26940ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 26941
8284b0c5 26942
e6cc62c6 26943 cat >>confdefs.h <<_ACEOF
4f14bcd8 26944#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 26945_ACEOF
af15babd 26946
4f14bcd8
GD
26947 fi
26948fi
af15babd 26949
e6cc62c6
VS
26950
26951
a1d22ad7 26952for ac_func in mkstemp mktemp
af15babd 26953do
e6cc62c6
VS
26954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26955echo "$as_me:$LINENO: checking for $ac_func" >&5
26956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26957if eval "test \"\${$as_ac_var+set}\" = set"; then
26958 echo $ECHO_N "(cached) $ECHO_C" >&6
26959else
26960 cat >conftest.$ac_ext <<_ACEOF
26961#line $LINENO "configure"
26962/* confdefs.h. */
26963_ACEOF
26964cat confdefs.h >>conftest.$ac_ext
26965cat >>conftest.$ac_ext <<_ACEOF
26966/* end confdefs.h. */
af15babd 26967/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26968 which can conflict with char $ac_func (); below.
26969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26970 <limits.h> exists even on freestanding compilers. */
26971#ifdef __STDC__
26972# include <limits.h>
26973#else
26974# include <assert.h>
26975#endif
af15babd 26976/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26977#ifdef __cplusplus
26978extern "C"
26979{
26980#endif
af15babd 26981/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26982 builtin and then its argument prototype would still apply. */
26983char $ac_func ();
af15babd
VZ
26984/* The GNU C library defines this for functions which it implements
26985 to always fail with ENOSYS. Some functions are actually named
26986 something starting with __ and the normal name is an alias. */
26987#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26988choke me
26989#else
e6cc62c6
VS
26990char (*f) () = $ac_func;
26991#endif
26992#ifdef __cplusplus
26993}
af15babd
VZ
26994#endif
26995
e6cc62c6
VS
26996int
26997main ()
26998{
26999return f != $ac_func;
27000 ;
27001 return 0;
27002}
27003_ACEOF
27004rm -f conftest.$ac_objext conftest$ac_exeext
27005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27006 (eval $ac_link) 2>&5
27007 ac_status=$?
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); } &&
27010 { ac_try='test -s conftest$ac_exeext'
27011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27012 (eval $ac_try) 2>&5
27013 ac_status=$?
27014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27015 (exit $ac_status); }; }; then
27016 eval "$as_ac_var=yes"
27017else
27018 echo "$as_me: failed program was:" >&5
27019sed 's/^/| /' conftest.$ac_ext >&5
27020
27021eval "$as_ac_var=no"
27022fi
27023rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27024fi
27025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27026echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27027if test `eval echo '${'$as_ac_var'}'` = yes; then
27028 cat >>confdefs.h <<_ACEOF
27029#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27030_ACEOF
ade35f11 27031 break
ade35f11
VZ
27032fi
27033done
27034
8284b0c5 27035
e6cc62c6
VS
27036echo "$as_me:$LINENO: checking for statfs" >&5
27037echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27038if test "${wx_cv_func_statfs+set}" = set; then
27039 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27040else
e6cc62c6
VS
27041 cat >conftest.$ac_ext <<_ACEOF
27042#line $LINENO "configure"
27043/* confdefs.h. */
27044_ACEOF
27045cat confdefs.h >>conftest.$ac_ext
27046cat >>conftest.$ac_ext <<_ACEOF
27047/* end confdefs.h. */
4f14bcd8
GD
27048
27049 #if defined(__BSD__)
27050 #include <sys/param.h>
27051 #include <sys/mount.h>
27052 #else
27053 #include <sys/vfs.h>
27054 #endif
e6cc62c6
VS
27055
27056int
27057main ()
27058{
4f14bcd8
GD
27059
27060 long l;
27061 struct statfs fs;
27062 statfs("/", &fs);
27063 l = fs.f_bsize;
27064 l += fs.f_blocks;
27065 l += fs.f_bavail;
e6cc62c6
VS
27066
27067 ;
27068 return 0;
27069}
27070_ACEOF
27071rm -f conftest.$ac_objext
27072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27073 (eval $ac_compile) 2>&5
27074 ac_status=$?
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); } &&
27077 { ac_try='test -s conftest.$ac_objext'
27078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27079 (eval $ac_try) 2>&5
27080 ac_status=$?
27081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); }; }; then
27083
4f14bcd8 27084 wx_cv_func_statfs=yes
e6cc62c6 27085
4f14bcd8 27086else
e6cc62c6
VS
27087 echo "$as_me: failed program was:" >&5
27088sed 's/^/| /' conftest.$ac_ext >&5
27089
27090
4f14bcd8 27091 wx_cv_func_statfs=no
e6cc62c6 27092
8284b0c5 27093
247f5006 27094fi
e6cc62c6 27095rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27096
e6cc62c6
VS
27097fi
27098echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27099echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
27100
27101if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 27102 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 27103 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27104#define HAVE_STATFS 1
e6cc62c6 27105_ACEOF
4f14bcd8
GD
27106
27107else
e6cc62c6
VS
27108 echo "$as_me:$LINENO: checking for statvfs" >&5
27109echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27110if test "${wx_cv_func_statvfs+set}" = set; then
27111 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27112else
e6cc62c6
VS
27113 cat >conftest.$ac_ext <<_ACEOF
27114#line $LINENO "configure"
27115/* confdefs.h. */
27116_ACEOF
27117cat confdefs.h >>conftest.$ac_ext
27118cat >>conftest.$ac_ext <<_ACEOF
27119/* end confdefs.h. */
af15babd 27120
54ab82b3
VZ
27121 #include <stddef.h>
27122 #include <sys/statvfs.h>
e6cc62c6
VS
27123
27124int
27125main ()
27126{
af15babd 27127
54ab82b3 27128 statvfs("/", NULL);
e6cc62c6
VS
27129
27130 ;
27131 return 0;
27132}
27133_ACEOF
27134rm -f conftest.$ac_objext
27135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27136 (eval $ac_compile) 2>&5
27137 ac_status=$?
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); } &&
27140 { ac_try='test -s conftest.$ac_objext'
27141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27142 (eval $ac_try) 2>&5
27143 ac_status=$?
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); }; }; then
54ab82b3 27146 wx_cv_func_statvfs=yes
af15babd 27147else
e6cc62c6
VS
27148 echo "$as_me: failed program was:" >&5
27149sed 's/^/| /' conftest.$ac_ext >&5
27150
27151wx_cv_func_statvfs=no
27152
247f5006 27153fi
e6cc62c6 27154rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27155
e6cc62c6
VS
27156fi
27157echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27158echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27159
4f14bcd8 27160 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27161
27162
27163 ac_ext=cc
54ab82b3 27164ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27168
27169
e6cc62c6
VS
27170 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27171echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27172if test "${wx_cv_type_statvfs_t+set}" = set; then
27173 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27174else
e6cc62c6
VS
27175 cat >conftest.$ac_ext <<_ACEOF
27176#line $LINENO "configure"
27177/* confdefs.h. */
27178_ACEOF
27179cat confdefs.h >>conftest.$ac_ext
27180cat >>conftest.$ac_ext <<_ACEOF
27181/* end confdefs.h. */
54ab82b3
VZ
27182
27183 #include <sys/statvfs.h>
e6cc62c6
VS
27184
27185int
27186main ()
27187{
54ab82b3
VZ
27188
27189 long l;
27190 statvfs_t fs;
27191 statvfs("/", &fs);
27192 l = fs.f_bsize;
27193 l += fs.f_blocks;
27194 l += fs.f_bavail;
e6cc62c6
VS
27195
27196 ;
27197 return 0;
27198}
27199_ACEOF
27200rm -f conftest.$ac_objext
27201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27202 (eval $ac_compile) 2>&5
27203 ac_status=$?
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); } &&
27206 { ac_try='test -s conftest.$ac_objext'
27207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27208 (eval $ac_try) 2>&5
27209 ac_status=$?
27210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211 (exit $ac_status); }; }; then
54ab82b3
VZ
27212 wx_cv_type_statvfs_t=statvfs_t
27213else
e6cc62c6
VS
27214 echo "$as_me: failed program was:" >&5
27215sed 's/^/| /' conftest.$ac_ext >&5
27216
27217
27218 cat >conftest.$ac_ext <<_ACEOF
27219#line $LINENO "configure"
27220/* confdefs.h. */
27221_ACEOF
27222cat confdefs.h >>conftest.$ac_ext
27223cat >>conftest.$ac_ext <<_ACEOF
27224/* end confdefs.h. */
54ab82b3
VZ
27225
27226 #include <sys/statvfs.h>
e6cc62c6
VS
27227
27228int
27229main ()
27230{
54ab82b3
VZ
27231
27232 long l;
65d8ef1e 27233 struct statvfs fs;
54ab82b3
VZ
27234 statvfs("/", &fs);
27235 l = fs.f_bsize;
27236 l += fs.f_blocks;
27237 l += fs.f_bavail;
e6cc62c6
VS
27238
27239 ;
27240 return 0;
27241}
27242_ACEOF
27243rm -f conftest.$ac_objext
27244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27245 (eval $ac_compile) 2>&5
27246 ac_status=$?
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); } &&
27249 { ac_try='test -s conftest.$ac_objext'
27250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27251 (eval $ac_try) 2>&5
27252 ac_status=$?
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); }; }; then
54ab82b3
VZ
27255 wx_cv_type_statvfs_t="struct statvfs"
27256else
e6cc62c6
VS
27257 echo "$as_me: failed program was:" >&5
27258sed 's/^/| /' conftest.$ac_ext >&5
27259
27260wx_cv_type_statvfs_t="unknown"
27261
54ab82b3 27262fi
e6cc62c6
VS
27263rm -f conftest.$ac_objext conftest.$ac_ext
27264
27265
54ab82b3 27266fi
e6cc62c6 27267rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27268
e6cc62c6
VS
27269fi
27270echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27271echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27272
27273 ac_ext=c
54ab82b3 27274ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27277ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27278
27279
27280 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27281 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27282#define HAVE_STATVFS 1
e6cc62c6 27283_ACEOF
af15babd 27284
54ab82b3 27285 fi
4f14bcd8 27286 else
54ab82b3 27287 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27288 fi
27289fi
af15babd 27290
54ab82b3 27291if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27292 cat >>confdefs.h <<_ACEOF
54ab82b3 27293#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27294_ACEOF
54ab82b3
VZ
27295
27296else
e6cc62c6
VS
27297 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27298echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27299fi
27300
4f14bcd8 27301if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27302
27303
27304for ac_func in fcntl flock
af15babd 27305do
e6cc62c6
VS
27306as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27307echo "$as_me:$LINENO: checking for $ac_func" >&5
27308echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27309if eval "test \"\${$as_ac_var+set}\" = set"; then
27310 echo $ECHO_N "(cached) $ECHO_C" >&6
27311else
27312 cat >conftest.$ac_ext <<_ACEOF
27313#line $LINENO "configure"
27314/* confdefs.h. */
27315_ACEOF
27316cat confdefs.h >>conftest.$ac_ext
27317cat >>conftest.$ac_ext <<_ACEOF
27318/* end confdefs.h. */
af15babd 27319/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27320 which can conflict with char $ac_func (); below.
27321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27322 <limits.h> exists even on freestanding compilers. */
27323#ifdef __STDC__
27324# include <limits.h>
27325#else
27326# include <assert.h>
27327#endif
af15babd 27328/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27329#ifdef __cplusplus
27330extern "C"
27331{
27332#endif
af15babd 27333/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27334 builtin and then its argument prototype would still apply. */
27335char $ac_func ();
af15babd
VZ
27336/* The GNU C library defines this for functions which it implements
27337 to always fail with ENOSYS. Some functions are actually named
27338 something starting with __ and the normal name is an alias. */
27339#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27340choke me
27341#else
e6cc62c6
VS
27342char (*f) () = $ac_func;
27343#endif
27344#ifdef __cplusplus
27345}
af15babd
VZ
27346#endif
27347
e6cc62c6
VS
27348int
27349main ()
27350{
27351return f != $ac_func;
27352 ;
27353 return 0;
27354}
27355_ACEOF
27356rm -f conftest.$ac_objext conftest$ac_exeext
27357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27358 (eval $ac_link) 2>&5
27359 ac_status=$?
27360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361 (exit $ac_status); } &&
27362 { ac_try='test -s conftest$ac_exeext'
27363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27364 (eval $ac_try) 2>&5
27365 ac_status=$?
27366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); }; }; then
27368 eval "$as_ac_var=yes"
27369else
27370 echo "$as_me: failed program was:" >&5
27371sed 's/^/| /' conftest.$ac_ext >&5
27372
27373eval "$as_ac_var=no"
27374fi
27375rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27376fi
27377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27378echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27379if test `eval echo '${'$as_ac_var'}'` = yes; then
27380 cat >>confdefs.h <<_ACEOF
27381#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27382_ACEOF
4f14bcd8 27383 break
af15babd
VZ
27384fi
27385done
27386
8284b0c5 27387
4f14bcd8 27388 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27389 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27390echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27391 wxUSE_SNGLINST_CHECKER=no
27392 fi
27393fi
af15babd 27394
e6cc62c6 27395
4f14bcd8 27396for ac_func in timegm
af15babd 27397do
e6cc62c6
VS
27398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27399echo "$as_me:$LINENO: checking for $ac_func" >&5
27400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27401if eval "test \"\${$as_ac_var+set}\" = set"; then
27402 echo $ECHO_N "(cached) $ECHO_C" >&6
27403else
27404 cat >conftest.$ac_ext <<_ACEOF
27405#line $LINENO "configure"
27406/* confdefs.h. */
27407_ACEOF
27408cat confdefs.h >>conftest.$ac_ext
27409cat >>conftest.$ac_ext <<_ACEOF
27410/* end confdefs.h. */
af15babd 27411/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27412 which can conflict with char $ac_func (); below.
27413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27414 <limits.h> exists even on freestanding compilers. */
27415#ifdef __STDC__
27416# include <limits.h>
27417#else
27418# include <assert.h>
27419#endif
af15babd 27420/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27421#ifdef __cplusplus
27422extern "C"
27423{
27424#endif
af15babd 27425/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27426 builtin and then its argument prototype would still apply. */
27427char $ac_func ();
af15babd
VZ
27428/* The GNU C library defines this for functions which it implements
27429 to always fail with ENOSYS. Some functions are actually named
27430 something starting with __ and the normal name is an alias. */
247f5006
VZ
27431#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27432choke me
27433#else
e6cc62c6
VS
27434char (*f) () = $ac_func;
27435#endif
27436#ifdef __cplusplus
27437}
247f5006
VZ
27438#endif
27439
e6cc62c6
VS
27440int
27441main ()
27442{
27443return f != $ac_func;
27444 ;
27445 return 0;
27446}
27447_ACEOF
27448rm -f conftest.$ac_objext conftest$ac_exeext
27449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27450 (eval $ac_link) 2>&5
27451 ac_status=$?
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); } &&
27454 { ac_try='test -s conftest$ac_exeext'
27455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27456 (eval $ac_try) 2>&5
27457 ac_status=$?
27458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459 (exit $ac_status); }; }; then
27460 eval "$as_ac_var=yes"
27461else
27462 echo "$as_me: failed program was:" >&5
27463sed 's/^/| /' conftest.$ac_ext >&5
27464
27465eval "$as_ac_var=no"
27466fi
27467rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27468fi
27469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27470echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27471if test `eval echo '${'$as_ac_var'}'` = yes; then
27472 cat >>confdefs.h <<_ACEOF
27473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27474_ACEOF
703e0a69 27475
af15babd
VZ
27476fi
27477done
27478
8284b0c5 27479
e6cc62c6
VS
27480
27481
4f14bcd8 27482for ac_func in putenv setenv
10f2d63a 27483do
e6cc62c6
VS
27484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27485echo "$as_me:$LINENO: checking for $ac_func" >&5
27486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27487if eval "test \"\${$as_ac_var+set}\" = set"; then
27488 echo $ECHO_N "(cached) $ECHO_C" >&6
27489else
27490 cat >conftest.$ac_ext <<_ACEOF
27491#line $LINENO "configure"
27492/* confdefs.h. */
27493_ACEOF
27494cat confdefs.h >>conftest.$ac_ext
27495cat >>conftest.$ac_ext <<_ACEOF
27496/* end confdefs.h. */
af15babd 27497/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27498 which can conflict with char $ac_func (); below.
27499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27500 <limits.h> exists even on freestanding compilers. */
27501#ifdef __STDC__
27502# include <limits.h>
27503#else
27504# include <assert.h>
27505#endif
af15babd 27506/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27507#ifdef __cplusplus
27508extern "C"
27509{
27510#endif
af15babd 27511/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27512 builtin and then its argument prototype would still apply. */
27513char $ac_func ();
af15babd
VZ
27514/* The GNU C library defines this for functions which it implements
27515 to always fail with ENOSYS. Some functions are actually named
27516 something starting with __ and the normal name is an alias. */
27517#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27518choke me
27519#else
e6cc62c6
VS
27520char (*f) () = $ac_func;
27521#endif
27522#ifdef __cplusplus
27523}
af15babd
VZ
27524#endif
27525
e6cc62c6
VS
27526int
27527main ()
27528{
27529return f != $ac_func;
27530 ;
27531 return 0;
27532}
27533_ACEOF
27534rm -f conftest.$ac_objext conftest$ac_exeext
27535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27536 (eval $ac_link) 2>&5
27537 ac_status=$?
27538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539 (exit $ac_status); } &&
27540 { ac_try='test -s conftest$ac_exeext'
27541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27542 (eval $ac_try) 2>&5
27543 ac_status=$?
27544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); }; }; then
27546 eval "$as_ac_var=yes"
27547else
27548 echo "$as_me: failed program was:" >&5
27549sed 's/^/| /' conftest.$ac_ext >&5
27550
27551eval "$as_ac_var=no"
27552fi
27553rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27554fi
27555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27556echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27557if test `eval echo '${'$as_ac_var'}'` = yes; then
27558 cat >>confdefs.h <<_ACEOF
27559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27560_ACEOF
4f14bcd8 27561 break
af15babd 27562fi
af15babd
VZ
27563done
27564
8284b0c5 27565
4f14bcd8
GD
27566HAVE_SOME_SLEEP_FUNC=0
27567if test "$USE_BEOS" = 1; then
e6cc62c6 27568 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27569#define HAVE_SLEEP 1
e6cc62c6 27570_ACEOF
af15babd 27571
4f14bcd8 27572 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27573fi
27574
4f14bcd8 27575if test "$USE_DARWIN" = 1; then
e6cc62c6 27576 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27577#define HAVE_USLEEP 1
e6cc62c6 27578_ACEOF
10f2d63a 27579
4f14bcd8 27580 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27581fi
27582
4f14bcd8
GD
27583if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27584 POSIX4_LINK=
e6cc62c6
VS
27585
27586for ac_func in nanosleep
4f14bcd8 27587do
e6cc62c6
VS
27588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27589echo "$as_me:$LINENO: checking for $ac_func" >&5
27590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27591if eval "test \"\${$as_ac_var+set}\" = set"; then
27592 echo $ECHO_N "(cached) $ECHO_C" >&6
27593else
27594 cat >conftest.$ac_ext <<_ACEOF
27595#line $LINENO "configure"
27596/* confdefs.h. */
27597_ACEOF
27598cat confdefs.h >>conftest.$ac_ext
27599cat >>conftest.$ac_ext <<_ACEOF
27600/* end confdefs.h. */
4f14bcd8 27601/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27602 which can conflict with char $ac_func (); below.
27603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27604 <limits.h> exists even on freestanding compilers. */
27605#ifdef __STDC__
27606# include <limits.h>
27607#else
27608# include <assert.h>
27609#endif
10f2d63a 27610/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27611#ifdef __cplusplus
27612extern "C"
27613{
27614#endif
10f2d63a 27615/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27616 builtin and then its argument prototype would still apply. */
27617char $ac_func ();
4f14bcd8
GD
27618/* The GNU C library defines this for functions which it implements
27619 to always fail with ENOSYS. Some functions are actually named
27620 something starting with __ and the normal name is an alias. */
27621#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27622choke me
27623#else
e6cc62c6
VS
27624char (*f) () = $ac_func;
27625#endif
27626#ifdef __cplusplus
27627}
4f14bcd8
GD
27628#endif
27629
e6cc62c6
VS
27630int
27631main ()
27632{
27633return f != $ac_func;
27634 ;
27635 return 0;
27636}
27637_ACEOF
27638rm -f conftest.$ac_objext conftest$ac_exeext
27639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27640 (eval $ac_link) 2>&5
27641 ac_status=$?
27642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643 (exit $ac_status); } &&
27644 { ac_try='test -s conftest$ac_exeext'
27645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27646 (eval $ac_try) 2>&5
27647 ac_status=$?
27648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649 (exit $ac_status); }; }; then
27650 eval "$as_ac_var=yes"
27651else
27652 echo "$as_me: failed program was:" >&5
27653sed 's/^/| /' conftest.$ac_ext >&5
27654
27655eval "$as_ac_var=no"
27656fi
27657rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27658fi
27659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27660echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27661if test `eval echo '${'$as_ac_var'}'` = yes; then
27662 cat >>confdefs.h <<_ACEOF
27663#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27664_ACEOF
27665 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27666#define HAVE_NANOSLEEP 1
e6cc62c6 27667_ACEOF
4f14bcd8 27668
10f2d63a 27669else
e6cc62c6
VS
27670
27671 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27672echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27673if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27674 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27675else
e6cc62c6 27676 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27677LIBS="-lposix4 $LIBS"
e6cc62c6
VS
27678cat >conftest.$ac_ext <<_ACEOF
27679#line $LINENO "configure"
27680/* confdefs.h. */
27681_ACEOF
27682cat confdefs.h >>conftest.$ac_ext
27683cat >>conftest.$ac_ext <<_ACEOF
27684/* end confdefs.h. */
27685
10f2d63a 27686/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27687#ifdef __cplusplus
27688extern "C"
27689#endif
10f2d63a 27690/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27691 builtin and then its argument prototype would still apply. */
27692char nanosleep ();
27693int
27694main ()
27695{
27696nanosleep ();
27697 ;
27698 return 0;
27699}
27700_ACEOF
27701rm -f conftest.$ac_objext conftest$ac_exeext
27702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27703 (eval $ac_link) 2>&5
27704 ac_status=$?
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); } &&
27707 { ac_try='test -s conftest$ac_exeext'
27708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27709 (eval $ac_try) 2>&5
27710 ac_status=$?
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); }; }; then
27713 ac_cv_lib_posix4_nanosleep=yes
27714else
27715 echo "$as_me: failed program was:" >&5
27716sed 's/^/| /' conftest.$ac_ext >&5
27717
27718ac_cv_lib_posix4_nanosleep=no
27719fi
27720rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27721LIBS=$ac_check_lib_save_LIBS
27722fi
27723echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27724echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27725if test $ac_cv_lib_posix4_nanosleep = yes; then
27726
27727 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27728#define HAVE_NANOSLEEP 1
e6cc62c6 27729_ACEOF
4f14bcd8 27730
3d63bc3a 27731 POSIX4_LINK=" -lposix4"
e6cc62c6 27732
10f2d63a 27733else
10f2d63a 27734
e6cc62c6
VS
27735
27736for ac_func in usleep
4f14bcd8 27737do
e6cc62c6
VS
27738as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27739echo "$as_me:$LINENO: checking for $ac_func" >&5
27740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27741if eval "test \"\${$as_ac_var+set}\" = set"; then
27742 echo $ECHO_N "(cached) $ECHO_C" >&6
27743else
27744 cat >conftest.$ac_ext <<_ACEOF
27745#line $LINENO "configure"
27746/* confdefs.h. */
27747_ACEOF
27748cat confdefs.h >>conftest.$ac_ext
27749cat >>conftest.$ac_ext <<_ACEOF
27750/* end confdefs.h. */
4f14bcd8 27751/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27752 which can conflict with char $ac_func (); below.
27753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27754 <limits.h> exists even on freestanding compilers. */
27755#ifdef __STDC__
27756# include <limits.h>
27757#else
27758# include <assert.h>
27759#endif
4f14bcd8 27760/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27761#ifdef __cplusplus
27762extern "C"
27763{
27764#endif
4f14bcd8 27765/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27766 builtin and then its argument prototype would still apply. */
27767char $ac_func ();
4f14bcd8
GD
27768/* The GNU C library defines this for functions which it implements
27769 to always fail with ENOSYS. Some functions are actually named
27770 something starting with __ and the normal name is an alias. */
27771#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27772choke me
27773#else
e6cc62c6
VS
27774char (*f) () = $ac_func;
27775#endif
27776#ifdef __cplusplus
27777}
4f14bcd8
GD
27778#endif
27779
e6cc62c6
VS
27780int
27781main ()
27782{
27783return f != $ac_func;
27784 ;
27785 return 0;
27786}
27787_ACEOF
27788rm -f conftest.$ac_objext conftest$ac_exeext
27789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27790 (eval $ac_link) 2>&5
27791 ac_status=$?
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); } &&
27794 { ac_try='test -s conftest$ac_exeext'
27795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27796 (eval $ac_try) 2>&5
27797 ac_status=$?
27798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799 (exit $ac_status); }; }; then
27800 eval "$as_ac_var=yes"
27801else
27802 echo "$as_me: failed program was:" >&5
27803sed 's/^/| /' conftest.$ac_ext >&5
27804
27805eval "$as_ac_var=no"
27806fi
27807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27808fi
27809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27810echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27811if test `eval echo '${'$as_ac_var'}'` = yes; then
27812 cat >>confdefs.h <<_ACEOF
27813#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27814_ACEOF
27815 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27816#define HAVE_USLEEP 1
e6cc62c6 27817_ACEOF
4f14bcd8 27818
698dcdb6 27819else
e6cc62c6
VS
27820 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
27821echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
27822
10f2d63a 27823fi
4f14bcd8 27824done
10f2d63a 27825
e6cc62c6
VS
27826
27827
6232543b 27828fi
10f2d63a 27829
e6cc62c6
VS
27830
27831
1e487827 27832fi
4f14bcd8 27833done
703e0a69 27834
10f2d63a
VZ
27835fi
27836
e6cc62c6
VS
27837
27838
4f14bcd8 27839for ac_func in uname gethostname
70846f0a 27840do
e6cc62c6
VS
27841as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27842echo "$as_me:$LINENO: checking for $ac_func" >&5
27843echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27844if eval "test \"\${$as_ac_var+set}\" = set"; then
27845 echo $ECHO_N "(cached) $ECHO_C" >&6
27846else
27847 cat >conftest.$ac_ext <<_ACEOF
27848#line $LINENO "configure"
27849/* confdefs.h. */
27850_ACEOF
27851cat confdefs.h >>conftest.$ac_ext
27852cat >>conftest.$ac_ext <<_ACEOF
27853/* end confdefs.h. */
70846f0a 27854/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27855 which can conflict with char $ac_func (); below.
27856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27857 <limits.h> exists even on freestanding compilers. */
27858#ifdef __STDC__
27859# include <limits.h>
27860#else
27861# include <assert.h>
27862#endif
70846f0a 27863/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27864#ifdef __cplusplus
27865extern "C"
27866{
27867#endif
70846f0a 27868/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27869 builtin and then its argument prototype would still apply. */
27870char $ac_func ();
70846f0a
VZ
27871/* The GNU C library defines this for functions which it implements
27872 to always fail with ENOSYS. Some functions are actually named
27873 something starting with __ and the normal name is an alias. */
27874#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27875choke me
27876#else
e6cc62c6
VS
27877char (*f) () = $ac_func;
27878#endif
27879#ifdef __cplusplus
27880}
70846f0a
VZ
27881#endif
27882
e6cc62c6
VS
27883int
27884main ()
27885{
27886return f != $ac_func;
27887 ;
27888 return 0;
27889}
27890_ACEOF
27891rm -f conftest.$ac_objext conftest$ac_exeext
27892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27893 (eval $ac_link) 2>&5
27894 ac_status=$?
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); } &&
27897 { ac_try='test -s conftest$ac_exeext'
27898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27899 (eval $ac_try) 2>&5
27900 ac_status=$?
27901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); }; }; then
27903 eval "$as_ac_var=yes"
27904else
27905 echo "$as_me: failed program was:" >&5
27906sed 's/^/| /' conftest.$ac_ext >&5
27907
27908eval "$as_ac_var=no"
27909fi
27910rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27911fi
27912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27913echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27914if test `eval echo '${'$as_ac_var'}'` = yes; then
27915 cat >>confdefs.h <<_ACEOF
27916#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27917_ACEOF
4f14bcd8 27918 break
70846f0a
VZ
27919fi
27920done
27921
8284b0c5
MB
27922
27923
e6cc62c6
VS
27924
27925ac_ext=cc
4f14bcd8 27926ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27930
8284b0c5 27931
4f14bcd8
GD
27932
27933for ac_func in strtok_r
10f2d63a 27934do
e6cc62c6
VS
27935as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27936echo "$as_me:$LINENO: checking for $ac_func" >&5
27937echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27938if eval "test \"\${$as_ac_var+set}\" = set"; then
27939 echo $ECHO_N "(cached) $ECHO_C" >&6
27940else
27941 cat >conftest.$ac_ext <<_ACEOF
27942#line $LINENO "configure"
27943/* confdefs.h. */
27944_ACEOF
27945cat confdefs.h >>conftest.$ac_ext
27946cat >>conftest.$ac_ext <<_ACEOF
27947/* end confdefs.h. */
4f14bcd8 27948/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27949 which can conflict with char $ac_func (); below.
27950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27951 <limits.h> exists even on freestanding compilers. */
27952#ifdef __STDC__
27953# include <limits.h>
27954#else
27955# include <assert.h>
27956#endif
4f14bcd8
GD
27957/* Override any gcc2 internal prototype to avoid an error. */
27958#ifdef __cplusplus
27959extern "C"
e6cc62c6 27960{
4f14bcd8
GD
27961#endif
27962/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27963 builtin and then its argument prototype would still apply. */
27964char $ac_func ();
4f14bcd8
GD
27965/* The GNU C library defines this for functions which it implements
27966 to always fail with ENOSYS. Some functions are actually named
27967 something starting with __ and the normal name is an alias. */
27968#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27969choke me
27970#else
e6cc62c6
VS
27971char (*f) () = $ac_func;
27972#endif
27973#ifdef __cplusplus
27974}
4f14bcd8
GD
27975#endif
27976
e6cc62c6
VS
27977int
27978main ()
27979{
27980return f != $ac_func;
27981 ;
27982 return 0;
27983}
27984_ACEOF
27985rm -f conftest.$ac_objext conftest$ac_exeext
27986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27987 (eval $ac_link) 2>&5
27988 ac_status=$?
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); } &&
27991 { ac_try='test -s conftest$ac_exeext'
27992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27993 (eval $ac_try) 2>&5
27994 ac_status=$?
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); }; }; then
27997 eval "$as_ac_var=yes"
27998else
27999 echo "$as_me: failed program was:" >&5
28000sed 's/^/| /' conftest.$ac_ext >&5
28001
28002eval "$as_ac_var=no"
28003fi
28004rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28005fi
28006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28007echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28008if test `eval echo '${'$as_ac_var'}'` = yes; then
28009 cat >>confdefs.h <<_ACEOF
28010#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28011_ACEOF
4f14bcd8 28012
10f2d63a
VZ
28013fi
28014done
28015
8284b0c5 28016
4f14bcd8 28017ac_ext=c
4f14bcd8 28018ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28021ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28022
5c6fa7d2 28023
8284b0c5 28024INET_LINK=
e6cc62c6 28025
4f14bcd8
GD
28026for ac_func in inet_addr
28027do
e6cc62c6
VS
28028as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28029echo "$as_me:$LINENO: checking for $ac_func" >&5
28030echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28031if eval "test \"\${$as_ac_var+set}\" = set"; then
28032 echo $ECHO_N "(cached) $ECHO_C" >&6
28033else
28034 cat >conftest.$ac_ext <<_ACEOF
28035#line $LINENO "configure"
28036/* confdefs.h. */
28037_ACEOF
28038cat confdefs.h >>conftest.$ac_ext
28039cat >>conftest.$ac_ext <<_ACEOF
28040/* end confdefs.h. */
4f14bcd8 28041/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28042 which can conflict with char $ac_func (); below.
28043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28044 <limits.h> exists even on freestanding compilers. */
28045#ifdef __STDC__
28046# include <limits.h>
28047#else
28048# include <assert.h>
28049#endif
10f2d63a 28050/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28051#ifdef __cplusplus
28052extern "C"
28053{
28054#endif
10f2d63a 28055/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28056 builtin and then its argument prototype would still apply. */
28057char $ac_func ();
4f14bcd8
GD
28058/* The GNU C library defines this for functions which it implements
28059 to always fail with ENOSYS. Some functions are actually named
28060 something starting with __ and the normal name is an alias. */
28061#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28062choke me
28063#else
e6cc62c6
VS
28064char (*f) () = $ac_func;
28065#endif
28066#ifdef __cplusplus
28067}
4f14bcd8
GD
28068#endif
28069
e6cc62c6
VS
28070int
28071main ()
28072{
28073return f != $ac_func;
28074 ;
28075 return 0;
28076}
28077_ACEOF
28078rm -f conftest.$ac_objext conftest$ac_exeext
28079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28080 (eval $ac_link) 2>&5
28081 ac_status=$?
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); } &&
28084 { ac_try='test -s conftest$ac_exeext'
28085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28086 (eval $ac_try) 2>&5
28087 ac_status=$?
28088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089 (exit $ac_status); }; }; then
28090 eval "$as_ac_var=yes"
28091else
28092 echo "$as_me: failed program was:" >&5
28093sed 's/^/| /' conftest.$ac_ext >&5
28094
28095eval "$as_ac_var=no"
28096fi
28097rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28098fi
28099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28100echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28101if test `eval echo '${'$as_ac_var'}'` = yes; then
28102 cat >>confdefs.h <<_ACEOF
28103#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28104_ACEOF
28105 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28106#define HAVE_INET_ADDR 1
e6cc62c6 28107_ACEOF
10f2d63a
VZ
28108
28109else
e6cc62c6
VS
28110
28111 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28112echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28113if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28114 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28115else
e6cc62c6 28116 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28117LIBS="-lnsl $LIBS"
e6cc62c6
VS
28118cat >conftest.$ac_ext <<_ACEOF
28119#line $LINENO "configure"
28120/* confdefs.h. */
28121_ACEOF
28122cat confdefs.h >>conftest.$ac_ext
28123cat >>conftest.$ac_ext <<_ACEOF
28124/* end confdefs.h. */
28125
10f2d63a 28126/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28127#ifdef __cplusplus
28128extern "C"
28129#endif
10f2d63a 28130/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28131 builtin and then its argument prototype would still apply. */
28132char inet_addr ();
28133int
28134main ()
28135{
28136inet_addr ();
28137 ;
28138 return 0;
28139}
28140_ACEOF
28141rm -f conftest.$ac_objext conftest$ac_exeext
28142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28143 (eval $ac_link) 2>&5
28144 ac_status=$?
28145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146 (exit $ac_status); } &&
28147 { ac_try='test -s conftest$ac_exeext'
28148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28149 (eval $ac_try) 2>&5
28150 ac_status=$?
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); }; }; then
28153 ac_cv_lib_nsl_inet_addr=yes
28154else
28155 echo "$as_me: failed program was:" >&5
28156sed 's/^/| /' conftest.$ac_ext >&5
28157
28158ac_cv_lib_nsl_inet_addr=no
28159fi
28160rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28161LIBS=$ac_check_lib_save_LIBS
28162fi
28163echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28164echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28165if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28166 INET_LINK="nsl"
10f2d63a 28167else
e6cc62c6
VS
28168 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28169echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28170if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28171 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28172else
e6cc62c6 28173 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28174LIBS="-lresolv $LIBS"
e6cc62c6
VS
28175cat >conftest.$ac_ext <<_ACEOF
28176#line $LINENO "configure"
28177/* confdefs.h. */
28178_ACEOF
28179cat confdefs.h >>conftest.$ac_ext
28180cat >>conftest.$ac_ext <<_ACEOF
28181/* end confdefs.h. */
28182
5c6fa7d2 28183/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28184#ifdef __cplusplus
28185extern "C"
28186#endif
5c6fa7d2 28187/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28188 builtin and then its argument prototype would still apply. */
28189char inet_addr ();
28190int
28191main ()
28192{
28193inet_addr ();
28194 ;
28195 return 0;
28196}
28197_ACEOF
28198rm -f conftest.$ac_objext conftest$ac_exeext
28199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28200 (eval $ac_link) 2>&5
28201 ac_status=$?
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); } &&
28204 { ac_try='test -s conftest$ac_exeext'
28205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28206 (eval $ac_try) 2>&5
28207 ac_status=$?
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); }; }; then
28210 ac_cv_lib_resolv_inet_addr=yes
28211else
28212 echo "$as_me: failed program was:" >&5
28213sed 's/^/| /' conftest.$ac_ext >&5
28214
28215ac_cv_lib_resolv_inet_addr=no
28216fi
28217rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28218LIBS=$ac_check_lib_save_LIBS
28219fi
28220echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28221echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28222if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28223 INET_LINK="resolv"
698dcdb6 28224else
e6cc62c6
VS
28225 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28226echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28227if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28228 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28229else
e6cc62c6 28230 ac_check_lib_save_LIBS=$LIBS
3c011993 28231LIBS="-lsocket $LIBS"
e6cc62c6
VS
28232cat >conftest.$ac_ext <<_ACEOF
28233#line $LINENO "configure"
28234/* confdefs.h. */
28235_ACEOF
28236cat confdefs.h >>conftest.$ac_ext
28237cat >>conftest.$ac_ext <<_ACEOF
28238/* end confdefs.h. */
28239
3c011993 28240/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28241#ifdef __cplusplus
28242extern "C"
28243#endif
3c011993 28244/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28245 builtin and then its argument prototype would still apply. */
28246char inet_addr ();
28247int
28248main ()
28249{
28250inet_addr ();
28251 ;
28252 return 0;
28253}
28254_ACEOF
28255rm -f conftest.$ac_objext conftest$ac_exeext
28256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28257 (eval $ac_link) 2>&5
28258 ac_status=$?
28259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); } &&
28261 { ac_try='test -s conftest$ac_exeext'
28262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28263 (eval $ac_try) 2>&5
28264 ac_status=$?
28265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28266 (exit $ac_status); }; }; then
28267 ac_cv_lib_socket_inet_addr=yes
28268else
28269 echo "$as_me: failed program was:" >&5
28270sed 's/^/| /' conftest.$ac_ext >&5
28271
28272ac_cv_lib_socket_inet_addr=no
28273fi
28274rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28275LIBS=$ac_check_lib_save_LIBS
28276fi
28277echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28278echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28279if test $ac_cv_lib_socket_inet_addr = yes; then
28280 INET_LINK="socket"
4f14bcd8 28281
8284b0c5 28282fi
e6cc62c6 28283
698dcdb6 28284
7b4a847f 28285fi
e6cc62c6
VS
28286
28287
a0b9e27f 28288fi
579d8138 28289
e6cc62c6
VS
28290
28291
5c6fa7d2 28292fi
e6cc62c6
VS
28293done
28294
28295
28296
28297for ac_func in inet_aton
28298do
28299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28300echo "$as_me:$LINENO: checking for $ac_func" >&5
28301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28302if eval "test \"\${$as_ac_var+set}\" = set"; then
28303 echo $ECHO_N "(cached) $ECHO_C" >&6
28304else
28305 cat >conftest.$ac_ext <<_ACEOF
28306#line $LINENO "configure"
28307/* confdefs.h. */
28308_ACEOF
28309cat confdefs.h >>conftest.$ac_ext
28310cat >>conftest.$ac_ext <<_ACEOF
28311/* end confdefs.h. */
28312/* System header to define __stub macros and hopefully few prototypes,
28313 which can conflict with char $ac_func (); below.
28314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28315 <limits.h> exists even on freestanding compilers. */
28316#ifdef __STDC__
28317# include <limits.h>
28318#else
28319# include <assert.h>
28320#endif
28321/* Override any gcc2 internal prototype to avoid an error. */
28322#ifdef __cplusplus
28323extern "C"
28324{
28325#endif
28326/* We use char because int might match the return type of a gcc2
28327 builtin and then its argument prototype would still apply. */
28328char $ac_func ();
28329/* The GNU C library defines this for functions which it implements
28330 to always fail with ENOSYS. Some functions are actually named
28331 something starting with __ and the normal name is an alias. */
28332#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28333choke me
28334#else
28335char (*f) () = $ac_func;
28336#endif
28337#ifdef __cplusplus
28338}
28339#endif
28340
28341int
28342main ()
28343{
28344return f != $ac_func;
28345 ;
28346 return 0;
28347}
28348_ACEOF
28349rm -f conftest.$ac_objext conftest$ac_exeext
28350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28351 (eval $ac_link) 2>&5
28352 ac_status=$?
28353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354 (exit $ac_status); } &&
28355 { ac_try='test -s conftest$ac_exeext'
28356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28357 (eval $ac_try) 2>&5
28358 ac_status=$?
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); }; }; then
28361 eval "$as_ac_var=yes"
28362else
28363 echo "$as_me: failed program was:" >&5
28364sed 's/^/| /' conftest.$ac_ext >&5
28365
28366eval "$as_ac_var=no"
28367fi
28368rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28369fi
28370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28371echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28372if test `eval echo '${'$as_ac_var'}'` = yes; then
28373 cat >>confdefs.h <<_ACEOF
28374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28375_ACEOF
28376 cat >>confdefs.h <<\_ACEOF
28377#define HAVE_INET_ATON 1
28378_ACEOF
28379
28380else
28381
28382 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28383echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28384echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28385if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28386 echo $ECHO_N "(cached) $ECHO_C" >&6
28387else
28388 ac_check_lib_save_LIBS=$LIBS
28389LIBS="-l$INET_LINK $LIBS"
28390cat >conftest.$ac_ext <<_ACEOF
28391#line $LINENO "configure"
28392/* confdefs.h. */
28393_ACEOF
28394cat confdefs.h >>conftest.$ac_ext
28395cat >>conftest.$ac_ext <<_ACEOF
28396/* end confdefs.h. */
28397
28398/* Override any gcc2 internal prototype to avoid an error. */
28399#ifdef __cplusplus
28400extern "C"
28401#endif
28402/* We use char because int might match the return type of a gcc2
28403 builtin and then its argument prototype would still apply. */
28404char inet_aton ();
28405int
28406main ()
28407{
28408inet_aton ();
28409 ;
28410 return 0;
28411}
28412_ACEOF
28413rm -f conftest.$ac_objext conftest$ac_exeext
28414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28415 (eval $ac_link) 2>&5
28416 ac_status=$?
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); } &&
28419 { ac_try='test -s conftest$ac_exeext'
28420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28421 (eval $ac_try) 2>&5
28422 ac_status=$?
28423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424 (exit $ac_status); }; }; then
28425 eval "$as_ac_Lib=yes"
28426else
28427 echo "$as_me: failed program was:" >&5
28428sed 's/^/| /' conftest.$ac_ext >&5
28429
28430eval "$as_ac_Lib=no"
28431fi
28432rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28433LIBS=$ac_check_lib_save_LIBS
28434fi
28435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28436echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28437if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28438 cat >>confdefs.h <<\_ACEOF
28439#define HAVE_INET_ATON 1
28440_ACEOF
52127426 28441
a0b9e27f 28442fi
247f5006 28443
8284b0c5 28444
698dcdb6 28445fi
4f14bcd8
GD
28446done
28447
8284b0c5 28448
e6cc62c6
VS
28449if test "x$INET_LINK" != "x"; then
28450 cat >>confdefs.h <<\_ACEOF
28451#define HAVE_INET_ADDR 1
28452_ACEOF
28453
28454 INET_LINK=" -l$INET_LINK"
28455fi
28456
28457fi
a0b9e27f 28458
a0b9e27f 28459
4f14bcd8 28460
edd891e2
VS
28461EXTRALIBS_ESD=
28462echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28463echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28464if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28465 echo $ECHO_N "(cached) $ECHO_C" >&6
28466else
28467 ac_check_lib_save_LIBS=$LIBS
28468LIBS="-lesd $LIBS"
28469cat >conftest.$ac_ext <<_ACEOF
28470#line $LINENO "configure"
28471/* confdefs.h. */
28472_ACEOF
28473cat confdefs.h >>conftest.$ac_ext
28474cat >>conftest.$ac_ext <<_ACEOF
28475/* end confdefs.h. */
28476
28477/* Override any gcc2 internal prototype to avoid an error. */
28478#ifdef __cplusplus
28479extern "C"
28480#endif
28481/* We use char because int might match the return type of a gcc2
28482 builtin and then its argument prototype would still apply. */
28483char esd_close ();
28484int
28485main ()
28486{
28487esd_close ();
28488 ;
28489 return 0;
28490}
28491_ACEOF
28492rm -f conftest.$ac_objext conftest$ac_exeext
28493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28494 (eval $ac_link) 2>&5
28495 ac_status=$?
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); } &&
28498 { ac_try='test -s conftest$ac_exeext'
28499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28500 (eval $ac_try) 2>&5
28501 ac_status=$?
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); }; }; then
28504 ac_cv_lib_esd_esd_close=yes
28505else
28506 echo "$as_me: failed program was:" >&5
28507sed 's/^/| /' conftest.$ac_ext >&5
28508
28509ac_cv_lib_esd_esd_close=no
28510fi
28511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28512LIBS=$ac_check_lib_save_LIBS
28513fi
28514echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28515echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28516if test $ac_cv_lib_esd_esd_close = yes; then
28517
28518
28519for ac_header in esd.h
28520do
28521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28522if eval "test \"\${$as_ac_Header+set}\" = set"; then
28523 echo "$as_me:$LINENO: checking for $ac_header" >&5
28524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28525if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28526 echo $ECHO_N "(cached) $ECHO_C" >&6
28527fi
edd891e2
VS
28528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
28530else
28531 # Is the header compilable?
edd891e2
VS
28532echo "$as_me:$LINENO: checking $ac_header usability" >&5
28533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6
VS
28534cat >conftest.$ac_ext <<_ACEOF
28535#line $LINENO "configure"
28536/* confdefs.h. */
28537_ACEOF
28538cat confdefs.h >>conftest.$ac_ext
28539cat >>conftest.$ac_ext <<_ACEOF
28540/* end confdefs.h. */
28541$ac_includes_default
edd891e2 28542#include <$ac_header>
e6cc62c6
VS
28543_ACEOF
28544rm -f conftest.$ac_objext
28545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28546 (eval $ac_compile) 2>&5
28547 ac_status=$?
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); } &&
28550 { ac_try='test -s conftest.$ac_objext'
28551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28552 (eval $ac_try) 2>&5
28553 ac_status=$?
28554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555 (exit $ac_status); }; }; then
28556 ac_header_compiler=yes
28557else
28558 echo "$as_me: failed program was:" >&5
28559sed 's/^/| /' conftest.$ac_ext >&5
28560
28561ac_header_compiler=no
28562fi
28563rm -f conftest.$ac_objext conftest.$ac_ext
28564echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28565echo "${ECHO_T}$ac_header_compiler" >&6
28566
28567# Is the header present?
edd891e2
VS
28568echo "$as_me:$LINENO: checking $ac_header presence" >&5
28569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6
VS
28570cat >conftest.$ac_ext <<_ACEOF
28571#line $LINENO "configure"
28572/* confdefs.h. */
28573_ACEOF
28574cat confdefs.h >>conftest.$ac_ext
28575cat >>conftest.$ac_ext <<_ACEOF
28576/* end confdefs.h. */
edd891e2 28577#include <$ac_header>
e6cc62c6
VS
28578_ACEOF
28579if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28581 ac_status=$?
28582 grep -v '^ *+' conftest.er1 >conftest.err
28583 rm -f conftest.er1
28584 cat conftest.err >&5
28585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586 (exit $ac_status); } >/dev/null; then
28587 if test -s conftest.err; then
28588 ac_cpp_err=$ac_c_preproc_warn_flag
28589 else
28590 ac_cpp_err=
28591 fi
a0b9e27f 28592else
e6cc62c6
VS
28593 ac_cpp_err=yes
28594fi
28595if test -z "$ac_cpp_err"; then
28596 ac_header_preproc=yes
28597else
28598 echo "$as_me: failed program was:" >&5
28599sed 's/^/| /' conftest.$ac_ext >&5
28600
28601 ac_header_preproc=no
28602fi
28603rm -f conftest.err conftest.$ac_ext
28604echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28605echo "${ECHO_T}$ac_header_preproc" >&6
28606
28607# So? What about this header?
28608case $ac_header_compiler:$ac_header_preproc in
28609 yes:no )
edd891e2
VS
28610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28611echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28613echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28614 (
28615 cat <<\_ASBOX
28616## ------------------------------------ ##
28617## Report this to bug-autoconf@gnu.org. ##
28618## ------------------------------------ ##
28619_ASBOX
28620 ) |
28621 sed "s/^/$as_me: WARNING: /" >&2
28622 ;;
28623 no:yes )
edd891e2
VS
28624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28625echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28627echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28629echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28630 (
28631 cat <<\_ASBOX
28632## ------------------------------------ ##
28633## Report this to bug-autoconf@gnu.org. ##
28634## ------------------------------------ ##
28635_ASBOX
28636 ) |
28637 sed "s/^/$as_me: WARNING: /" >&2
28638 ;;
28639esac
edd891e2
VS
28640echo "$as_me:$LINENO: checking for $ac_header" >&5
28641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28642if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28643 echo $ECHO_N "(cached) $ECHO_C" >&6
28644else
edd891e2 28645 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 28646fi
edd891e2
VS
28647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 28649
e6cc62c6 28650fi
edd891e2
VS
28651if test `eval echo '${'$as_ac_Header'}'` = yes; then
28652 cat >>confdefs.h <<_ACEOF
28653#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 28654_ACEOF
e6cc62c6 28655
edd891e2 28656 EXTRALIBS_ESD="-lesd"
4f14bcd8 28657
a0b9e27f 28658fi
247f5006 28659
edd891e2 28660done
8284b0c5 28661
4f14bcd8 28662
6232543b 28663fi
10f2d63a 28664
703e0a69 28665
8284b0c5 28666
e6cc62c6
VS
28667
28668
28669cat >confcache <<\_ACEOF
4f14bcd8
GD
28670# This file is a shell script that caches the results of configure
28671# tests run on this system so they can be shared between configure
e6cc62c6
VS
28672# scripts and configure runs, see configure's option --config-cache.
28673# It is not useful on other systems. If it contains results you don't
28674# want to keep, you may remove or edit it.
4f14bcd8 28675#
e6cc62c6
VS
28676# config.status only pays attention to the cache file if you give it
28677# the --recheck option to rerun configure.
4f14bcd8 28678#
e6cc62c6
VS
28679# `ac_cv_env_foo' variables (set or unset) will be overridden when
28680# loading this file, other *unset* `ac_cv_foo' will be assigned the
28681# following values.
28682
28683_ACEOF
28684
4f14bcd8
GD
28685# The following way of writing the cache mishandles newlines in values,
28686# but we know of no workaround that is simple, portable, and efficient.
28687# So, don't put newlines in cache variables' values.
28688# Ultrix sh set writes to stderr and can't be redirected directly,
28689# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
28690{
28691 (set) 2>&1 |
28692 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28693 *ac_space=\ *)
28694 # `set' does not quote correctly, so add quotes (double-quote
28695 # substitution turns \\\\ into \\, and sed turns \\ into \).
28696 sed -n \
28697 "s/'/'\\\\''/g;
28698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28699 ;;
28700 *)
28701 # `set' quotes correctly as required by POSIX, so do not add quotes.
28702 sed -n \
28703 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28704 ;;
28705 esac;
28706} |
28707 sed '
28708 t clear
28709 : clear
28710 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28711 t end
28712 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28713 : end' >>confcache
28714if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 28715 if test -w $cache_file; then
e6cc62c6
VS
28716 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28717 cat confcache >$cache_file
f6bcfd97 28718 else
4f14bcd8 28719 echo "not updating unwritable cache $cache_file"
f6bcfd97 28720 fi
4f14bcd8
GD
28721fi
28722rm -f confcache
f6bcfd97 28723
8284b0c5 28724
009fead0 28725CPP_MT_FLAG=
4f14bcd8
GD
28726if test "$TOOLKIT" != "MSW"; then
28727
e6cc62c6 28728
7274f1c7 28729 THREADS_LINK=
009fead0 28730 THREADS_CFLAGS=
7274f1c7
RL
28731
28732 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 28733 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
28734 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28735echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
28736 wxUSE_THREADS="no"
28737 fi
4f14bcd8 28738 fi
4f14bcd8 28739
7274f1c7 28740 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28741
28742
009fead0
VZ
28743 THREAD_OPTS="-pthread"
28744 case "${host}" in
28745 *-*-solaris2* | *-*-sunos4* )
28746 if test "x$GCC" = "xyes"; then
126be6b4 28747 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
28748 else
28749 THREAD_OPTS="-mt $THREAD_OPTS"
28750 fi
28751 ;;
28752 *-*-freebsd*)
28753 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28754 ;;
17234b26
MB
28755 *-*-darwin* | *-*-cygwin* )
28756 THREAD_OPTS=""
4101db81 28757 ;;
8f4a9a10 28758 *-*-aix*)
009fead0
VZ
28759 THREAD_OPTS="pthreads"
28760 ;;
4f5a7f74
VZ
28761 *-hp-hpux* )
28762 if test "x$GCC" != "xyes"; then
28763 THREAD_OPTS=""
28764 fi
89e3b3e4
VZ
28765 ;;
28766
28767 *-*-irix* )
28768 if test "x$GCC" = "xyes"; then
28769 THREAD_OPTS=""
28770 fi
28771 ;;
28772
28773 *-*-*UnixWare*)
28774 if test "x$GCC" != "xyes"; then
28775 THREAD_OPTS="-Ethread"
28776 fi
28777 ;;
009fead0 28778 esac
4f14bcd8 28779
02a1dfba 28780 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 28781
009fead0
VZ
28782 THREADS_OK=no
28783 for flag in $THREAD_OPTS; do
28784 case $flag in
28785 none)
e6cc62c6
VS
28786 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28787echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 28788 ;;
698dcdb6 28789
009fead0 28790 -*)
e6cc62c6
VS
28791 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28792echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
28793 THREADS_CFLAGS="$flag"
28794 ;;
698dcdb6 28795
009fead0 28796 *)
e6cc62c6
VS
28797 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28798echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
28799 THREADS_LINK="-l$flag"
28800 ;;
28801 esac
10f2d63a 28802
009fead0
VZ
28803 save_LIBS="$LIBS"
28804 save_CFLAGS="$CFLAGS"
28805 LIBS="$THREADS_LINK $LIBS"
04727afd 28806 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 28807
e6cc62c6
VS
28808 cat >conftest.$ac_ext <<_ACEOF
28809#line $LINENO "configure"
28810/* confdefs.h. */
28811_ACEOF
28812cat confdefs.h >>conftest.$ac_ext
28813cat >>conftest.$ac_ext <<_ACEOF
28814/* end confdefs.h. */
009fead0 28815#include <pthread.h>
e6cc62c6
VS
28816int
28817main ()
28818{
009fead0 28819pthread_create(0,0,0,0);
e6cc62c6
VS
28820 ;
28821 return 0;
28822}
28823_ACEOF
28824rm -f conftest.$ac_objext conftest$ac_exeext
28825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28826 (eval $ac_link) 2>&5
28827 ac_status=$?
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); } &&
28830 { ac_try='test -s conftest$ac_exeext'
28831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28832 (eval $ac_try) 2>&5
28833 ac_status=$?
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); }; }; then
009fead0 28836 THREADS_OK=yes
10f2d63a 28837else
e6cc62c6
VS
28838 echo "$as_me: failed program was:" >&5
28839sed 's/^/| /' conftest.$ac_ext >&5
28840
6232543b 28841fi
e6cc62c6 28842rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 28843
009fead0
VZ
28844 LIBS="$save_LIBS"
28845 CFLAGS="$save_CFLAGS"
d9b9876f 28846
e6cc62c6
VS
28847 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
28848echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
28849 if test "x$THREADS_OK" = "xyes"; then
28850 break;
28851 fi
d9b9876f 28852
009fead0
VZ
28853 THREADS_LINK=""
28854 THREADS_CFLAGS=""
28855 done
4f14bcd8 28856
009fead0
VZ
28857 if test "x$THREADS_OK" != "xyes"; then
28858 wxUSE_THREADS=no
e6cc62c6
VS
28859 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
28860echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 28861 else
db82f09e
VZ
28862 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
28863 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 28864
e6cc62c6
VS
28865 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28866echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
28867 flag=no
28868 case "${host}" in
2b5f62a0
VZ
28869 *-aix*)
28870 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
28871 flag="-D_THREAD_SAFE"
28872 ;;
28873 *-freebsd*)
009fead0
VZ
28874 flag="-D_THREAD_SAFE"
28875 ;;
06313569
GD
28876 *-hp-hpux* )
28877 flag="-D_REENTRANT"
4f5a7f74
VZ
28878 if test "x$GCC" != "xyes"; then
28879 flag="$flag -D_RWSTD_MULTI_THREAD"
28880 fi
06313569 28881 ;;
009fead0
VZ
28882 *solaris* | alpha*-osf*)
28883 flag="-D_REENTRANT"
28884 ;;
28885 esac
e6cc62c6
VS
28886 echo "$as_me:$LINENO: result: ${flag}" >&5
28887echo "${ECHO_T}${flag}" >&6
009fead0 28888 if test "x$flag" != xno; then
04727afd 28889 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
28890 fi
28891
009fead0 28892 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 28893 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
28894 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
28895 fi
28896 fi
4f14bcd8 28897 fi
4f14bcd8 28898
7274f1c7 28899 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28900
28901for ac_func in thr_setconcurrency
4f14bcd8 28902do
e6cc62c6
VS
28903as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28904echo "$as_me:$LINENO: checking for $ac_func" >&5
28905echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28906if eval "test \"\${$as_ac_var+set}\" = set"; then
28907 echo $ECHO_N "(cached) $ECHO_C" >&6
28908else
28909 cat >conftest.$ac_ext <<_ACEOF
28910#line $LINENO "configure"
28911/* confdefs.h. */
28912_ACEOF
28913cat confdefs.h >>conftest.$ac_ext
28914cat >>conftest.$ac_ext <<_ACEOF
28915/* end confdefs.h. */
4f14bcd8 28916/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28917 which can conflict with char $ac_func (); below.
28918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28919 <limits.h> exists even on freestanding compilers. */
28920#ifdef __STDC__
28921# include <limits.h>
28922#else
28923# include <assert.h>
28924#endif
4f14bcd8 28925/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28926#ifdef __cplusplus
28927extern "C"
28928{
28929#endif
4f14bcd8 28930/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28931 builtin and then its argument prototype would still apply. */
28932char $ac_func ();
4f14bcd8
GD
28933/* The GNU C library defines this for functions which it implements
28934 to always fail with ENOSYS. Some functions are actually named
28935 something starting with __ and the normal name is an alias. */
28936#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28937choke me
28938#else
e6cc62c6
VS
28939char (*f) () = $ac_func;
28940#endif
28941#ifdef __cplusplus
28942}
4f14bcd8
GD
28943#endif
28944
e6cc62c6
VS
28945int
28946main ()
28947{
28948return f != $ac_func;
28949 ;
28950 return 0;
28951}
28952_ACEOF
28953rm -f conftest.$ac_objext conftest$ac_exeext
28954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28955 (eval $ac_link) 2>&5
28956 ac_status=$?
28957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958 (exit $ac_status); } &&
28959 { ac_try='test -s conftest$ac_exeext'
28960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28961 (eval $ac_try) 2>&5
28962 ac_status=$?
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); }; }; then
28965 eval "$as_ac_var=yes"
28966else
28967 echo "$as_me: failed program was:" >&5
28968sed 's/^/| /' conftest.$ac_ext >&5
28969
28970eval "$as_ac_var=no"
28971fi
28972rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28973fi
28974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28975echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28976if test `eval echo '${'$as_ac_var'}'` = yes; then
28977 cat >>confdefs.h <<_ACEOF
28978#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28979_ACEOF
698dcdb6 28980
10f2d63a 28981fi
4f14bcd8 28982done
10f2d63a 28983
8284b0c5 28984
e6cc62c6
VS
28985
28986for ac_header in sched.h
4f14bcd8 28987do
e6cc62c6
VS
28988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28989if eval "test \"\${$as_ac_Header+set}\" = set"; then
28990 echo "$as_me:$LINENO: checking for $ac_header" >&5
28991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28992if eval "test \"\${$as_ac_Header+set}\" = set"; then
28993 echo $ECHO_N "(cached) $ECHO_C" >&6
28994fi
28995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28996echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28997else
28998 # Is the header compilable?
28999echo "$as_me:$LINENO: checking $ac_header usability" >&5
29000echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29001cat >conftest.$ac_ext <<_ACEOF
29002#line $LINENO "configure"
29003/* confdefs.h. */
29004_ACEOF
29005cat confdefs.h >>conftest.$ac_ext
29006cat >>conftest.$ac_ext <<_ACEOF
29007/* end confdefs.h. */
29008$ac_includes_default
29009#include <$ac_header>
29010_ACEOF
29011rm -f conftest.$ac_objext
29012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29013 (eval $ac_compile) 2>&5
29014 ac_status=$?
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); } &&
29017 { ac_try='test -s conftest.$ac_objext'
29018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29019 (eval $ac_try) 2>&5
29020 ac_status=$?
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); }; }; then
29023 ac_header_compiler=yes
29024else
29025 echo "$as_me: failed program was:" >&5
29026sed 's/^/| /' conftest.$ac_ext >&5
29027
29028ac_header_compiler=no
29029fi
29030rm -f conftest.$ac_objext conftest.$ac_ext
29031echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29032echo "${ECHO_T}$ac_header_compiler" >&6
29033
29034# Is the header present?
29035echo "$as_me:$LINENO: checking $ac_header presence" >&5
29036echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29037cat >conftest.$ac_ext <<_ACEOF
29038#line $LINENO "configure"
29039/* confdefs.h. */
29040_ACEOF
29041cat confdefs.h >>conftest.$ac_ext
29042cat >>conftest.$ac_ext <<_ACEOF
29043/* end confdefs.h. */
29044#include <$ac_header>
29045_ACEOF
29046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29048 ac_status=$?
29049 grep -v '^ *+' conftest.er1 >conftest.err
29050 rm -f conftest.er1
29051 cat conftest.err >&5
29052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053 (exit $ac_status); } >/dev/null; then
29054 if test -s conftest.err; then
29055 ac_cpp_err=$ac_c_preproc_warn_flag
29056 else
29057 ac_cpp_err=
29058 fi
29059else
29060 ac_cpp_err=yes
29061fi
29062if test -z "$ac_cpp_err"; then
29063 ac_header_preproc=yes
29064else
29065 echo "$as_me: failed program was:" >&5
29066sed 's/^/| /' conftest.$ac_ext >&5
29067
29068 ac_header_preproc=no
29069fi
29070rm -f conftest.err conftest.$ac_ext
29071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29072echo "${ECHO_T}$ac_header_preproc" >&6
29073
29074# So? What about this header?
29075case $ac_header_compiler:$ac_header_preproc in
29076 yes:no )
29077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29081 (
29082 cat <<\_ASBOX
29083## ------------------------------------ ##
29084## Report this to bug-autoconf@gnu.org. ##
29085## ------------------------------------ ##
29086_ASBOX
29087 ) |
29088 sed "s/^/$as_me: WARNING: /" >&2
29089 ;;
29090 no:yes )
29091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29092echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29094echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29097 (
29098 cat <<\_ASBOX
29099## ------------------------------------ ##
29100## Report this to bug-autoconf@gnu.org. ##
29101## ------------------------------------ ##
29102_ASBOX
29103 ) |
29104 sed "s/^/$as_me: WARNING: /" >&2
29105 ;;
29106esac
29107echo "$as_me:$LINENO: checking for $ac_header" >&5
29108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29109if eval "test \"\${$as_ac_Header+set}\" = set"; then
29110 echo $ECHO_N "(cached) $ECHO_C" >&6
29111else
29112 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 29113fi
e6cc62c6
VS
29114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29116
10f2d63a 29117fi
e6cc62c6
VS
29118if test `eval echo '${'$as_ac_Header'}'` = yes; then
29119 cat >>confdefs.h <<_ACEOF
29120#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29121_ACEOF
29122
f6bcfd97 29123fi
e6cc62c6 29124
4f14bcd8 29125done
f6bcfd97 29126
009fead0 29127 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
29128 echo "$as_me:$LINENO: checking for sched_yield" >&5
29129echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29130if test "${ac_cv_func_sched_yield+set}" = set; then
29131 echo $ECHO_N "(cached) $ECHO_C" >&6
29132else
29133 cat >conftest.$ac_ext <<_ACEOF
29134#line $LINENO "configure"
29135/* confdefs.h. */
29136_ACEOF
29137cat confdefs.h >>conftest.$ac_ext
29138cat >>conftest.$ac_ext <<_ACEOF
29139/* end confdefs.h. */
009fead0 29140/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29141 which can conflict with char sched_yield (); below.
29142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29143 <limits.h> exists even on freestanding compilers. */
29144#ifdef __STDC__
29145# include <limits.h>
29146#else
29147# include <assert.h>
29148#endif
4f14bcd8 29149/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29150#ifdef __cplusplus
29151extern "C"
29152{
29153#endif
4f14bcd8 29154/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29155 builtin and then its argument prototype would still apply. */
29156char sched_yield ();
009fead0
VZ
29157/* The GNU C library defines this for functions which it implements
29158 to always fail with ENOSYS. Some functions are actually named
29159 something starting with __ and the normal name is an alias. */
29160#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29161choke me
29162#else
e6cc62c6
VS
29163char (*f) () = sched_yield;
29164#endif
29165#ifdef __cplusplus
29166}
009fead0
VZ
29167#endif
29168
e6cc62c6
VS
29169int
29170main ()
29171{
29172return f != sched_yield;
29173 ;
29174 return 0;
29175}
29176_ACEOF
29177rm -f conftest.$ac_objext conftest$ac_exeext
29178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29179 (eval $ac_link) 2>&5
29180 ac_status=$?
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); } &&
29183 { ac_try='test -s conftest$ac_exeext'
29184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29185 (eval $ac_try) 2>&5
29186 ac_status=$?
29187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188 (exit $ac_status); }; }; then
29189 ac_cv_func_sched_yield=yes
29190else
29191 echo "$as_me: failed program was:" >&5
29192sed 's/^/| /' conftest.$ac_ext >&5
29193
29194ac_cv_func_sched_yield=no
29195fi
29196rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29197fi
29198echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29199echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29200if test $ac_cv_func_sched_yield = yes; then
29201 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29202#define HAVE_SCHED_YIELD 1
e6cc62c6 29203_ACEOF
10f2d63a 29204
4f14bcd8 29205else
009fead0 29206
e6cc62c6
VS
29207 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29208echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29209if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29210 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29211else
e6cc62c6 29212 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29213LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29214cat >conftest.$ac_ext <<_ACEOF
29215#line $LINENO "configure"
29216/* confdefs.h. */
29217_ACEOF
29218cat confdefs.h >>conftest.$ac_ext
29219cat >>conftest.$ac_ext <<_ACEOF
29220/* end confdefs.h. */
29221
4f14bcd8 29222/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29223#ifdef __cplusplus
29224extern "C"
29225#endif
4f14bcd8 29226/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29227 builtin and then its argument prototype would still apply. */
29228char sched_yield ();
29229int
29230main ()
29231{
29232sched_yield ();
29233 ;
29234 return 0;
29235}
29236_ACEOF
29237rm -f conftest.$ac_objext conftest$ac_exeext
29238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29239 (eval $ac_link) 2>&5
29240 ac_status=$?
29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 (exit $ac_status); } &&
29243 { ac_try='test -s conftest$ac_exeext'
29244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29245 (eval $ac_try) 2>&5
29246 ac_status=$?
29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 (exit $ac_status); }; }; then
29249 ac_cv_lib_posix4_sched_yield=yes
29250else
29251 echo "$as_me: failed program was:" >&5
29252sed 's/^/| /' conftest.$ac_ext >&5
29253
29254ac_cv_lib_posix4_sched_yield=no
29255fi
29256rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29257LIBS=$ac_check_lib_save_LIBS
29258fi
29259echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29260echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29261if test $ac_cv_lib_posix4_sched_yield = yes; then
29262 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29263#define HAVE_SCHED_YIELD 1
e6cc62c6 29264_ACEOF
3d63bc3a 29265 POSIX4_LINK=" -lposix4"
4f14bcd8 29266else
e6cc62c6
VS
29267 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29268echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29269
54276ccf
VZ
29270fi
29271
e6cc62c6
VS
29272
29273
4f14bcd8 29274fi
698dcdb6 29275
009fead0 29276 fi
10f2d63a 29277
7274f1c7 29278 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29279 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29280echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29281if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29282 echo $ECHO_N "(cached) $ECHO_C" >&6
29283else
29284 cat >conftest.$ac_ext <<_ACEOF
29285#line $LINENO "configure"
29286/* confdefs.h. */
29287_ACEOF
29288cat confdefs.h >>conftest.$ac_ext
29289cat >>conftest.$ac_ext <<_ACEOF
29290/* end confdefs.h. */
009fead0 29291/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29292 which can conflict with char pthread_attr_getschedpolicy (); below.
29293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29294 <limits.h> exists even on freestanding compilers. */
29295#ifdef __STDC__
29296# include <limits.h>
29297#else
29298# include <assert.h>
29299#endif
4f14bcd8 29300/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29301#ifdef __cplusplus
29302extern "C"
29303{
29304#endif
4f14bcd8 29305/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29306 builtin and then its argument prototype would still apply. */
29307char pthread_attr_getschedpolicy ();
009fead0
VZ
29308/* The GNU C library defines this for functions which it implements
29309 to always fail with ENOSYS. Some functions are actually named
29310 something starting with __ and the normal name is an alias. */
29311#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29312choke me
29313#else
e6cc62c6
VS
29314char (*f) () = pthread_attr_getschedpolicy;
29315#endif
29316#ifdef __cplusplus
29317}
009fead0
VZ
29318#endif
29319
e6cc62c6
VS
29320int
29321main ()
29322{
29323return f != pthread_attr_getschedpolicy;
29324 ;
29325 return 0;
29326}
29327_ACEOF
29328rm -f conftest.$ac_objext conftest$ac_exeext
29329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29330 (eval $ac_link) 2>&5
29331 ac_status=$?
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); } &&
29334 { ac_try='test -s conftest$ac_exeext'
29335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29336 (eval $ac_try) 2>&5
29337 ac_status=$?
29338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339 (exit $ac_status); }; }; then
29340 ac_cv_func_pthread_attr_getschedpolicy=yes
29341else
29342 echo "$as_me: failed program was:" >&5
29343sed 's/^/| /' conftest.$ac_ext >&5
29344
29345ac_cv_func_pthread_attr_getschedpolicy=no
29346fi
29347rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29348fi
29349echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29350echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29351if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29352 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29353echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29354if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29355 echo $ECHO_N "(cached) $ECHO_C" >&6
29356else
29357 cat >conftest.$ac_ext <<_ACEOF
29358#line $LINENO "configure"
29359/* confdefs.h. */
29360_ACEOF
29361cat confdefs.h >>conftest.$ac_ext
29362cat >>conftest.$ac_ext <<_ACEOF
29363/* end confdefs.h. */
a0b9e27f 29364/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29365 which can conflict with char pthread_attr_setschedparam (); below.
29366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29367 <limits.h> exists even on freestanding compilers. */
29368#ifdef __STDC__
29369# include <limits.h>
29370#else
29371# include <assert.h>
29372#endif
422107f9 29373/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29374#ifdef __cplusplus
29375extern "C"
29376{
29377#endif
422107f9 29378/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29379 builtin and then its argument prototype would still apply. */
29380char pthread_attr_setschedparam ();
009fead0
VZ
29381/* The GNU C library defines this for functions which it implements
29382 to always fail with ENOSYS. Some functions are actually named
29383 something starting with __ and the normal name is an alias. */
29384#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29385choke me
29386#else
e6cc62c6
VS
29387char (*f) () = pthread_attr_setschedparam;
29388#endif
29389#ifdef __cplusplus
29390}
009fead0
VZ
29391#endif
29392
e6cc62c6
VS
29393int
29394main ()
29395{
29396return f != pthread_attr_setschedparam;
29397 ;
29398 return 0;
29399}
29400_ACEOF
29401rm -f conftest.$ac_objext conftest$ac_exeext
29402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29403 (eval $ac_link) 2>&5
29404 ac_status=$?
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); } &&
29407 { ac_try='test -s conftest$ac_exeext'
29408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29409 (eval $ac_try) 2>&5
29410 ac_status=$?
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); }; }; then
29413 ac_cv_func_pthread_attr_setschedparam=yes
29414else
29415 echo "$as_me: failed program was:" >&5
29416sed 's/^/| /' conftest.$ac_ext >&5
29417
29418ac_cv_func_pthread_attr_setschedparam=no
29419fi
29420rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29421fi
29422echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29423echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29424if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29425 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29426echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29427if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29428 echo $ECHO_N "(cached) $ECHO_C" >&6
29429else
29430 cat >conftest.$ac_ext <<_ACEOF
29431#line $LINENO "configure"
29432/* confdefs.h. */
29433_ACEOF
29434cat confdefs.h >>conftest.$ac_ext
29435cat >>conftest.$ac_ext <<_ACEOF
29436/* end confdefs.h. */
ef33c576 29437/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29438 which can conflict with char sched_get_priority_max (); below.
29439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29440 <limits.h> exists even on freestanding compilers. */
29441#ifdef __STDC__
29442# include <limits.h>
29443#else
29444# include <assert.h>
29445#endif
4f14bcd8 29446/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29447#ifdef __cplusplus
29448extern "C"
29449{
29450#endif
4f14bcd8 29451/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29452 builtin and then its argument prototype would still apply. */
29453char sched_get_priority_max ();
009fead0
VZ
29454/* The GNU C library defines this for functions which it implements
29455 to always fail with ENOSYS. Some functions are actually named
29456 something starting with __ and the normal name is an alias. */
29457#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29458choke me
29459#else
e6cc62c6
VS
29460char (*f) () = sched_get_priority_max;
29461#endif
29462#ifdef __cplusplus
29463}
009fead0
VZ
29464#endif
29465
e6cc62c6
VS
29466int
29467main ()
29468{
29469return f != sched_get_priority_max;
29470 ;
29471 return 0;
29472}
29473_ACEOF
29474rm -f conftest.$ac_objext conftest$ac_exeext
29475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29476 (eval $ac_link) 2>&5
29477 ac_status=$?
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); } &&
29480 { ac_try='test -s conftest$ac_exeext'
29481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29482 (eval $ac_try) 2>&5
29483 ac_status=$?
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); }; }; then
29486 ac_cv_func_sched_get_priority_max=yes
29487else
29488 echo "$as_me: failed program was:" >&5
29489sed 's/^/| /' conftest.$ac_ext >&5
29490
29491ac_cv_func_sched_get_priority_max=no
29492fi
29493rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29494fi
29495echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29496echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29497if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29498 HAVE_PRIOR_FUNCS=1
29499else
e6cc62c6
VS
29500 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29501echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29502if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29503 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29504else
e6cc62c6 29505 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29506LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29507cat >conftest.$ac_ext <<_ACEOF
29508#line $LINENO "configure"
29509/* confdefs.h. */
29510_ACEOF
29511cat confdefs.h >>conftest.$ac_ext
29512cat >>conftest.$ac_ext <<_ACEOF
29513/* end confdefs.h. */
29514
422107f9 29515/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29516#ifdef __cplusplus
29517extern "C"
29518#endif
422107f9 29519/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29520 builtin and then its argument prototype would still apply. */
29521char sched_get_priority_max ();
29522int
29523main ()
29524{
29525sched_get_priority_max ();
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_lib_posix4_sched_get_priority_max=yes
29543else
29544 echo "$as_me: failed program was:" >&5
29545sed 's/^/| /' conftest.$ac_ext >&5
29546
29547ac_cv_lib_posix4_sched_get_priority_max=no
29548fi
29549rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29550LIBS=$ac_check_lib_save_LIBS
29551fi
29552echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29553echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29554if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29555
7274f1c7
RL
29556 HAVE_PRIOR_FUNCS=1
29557 POSIX4_LINK=" -lposix4"
e6cc62c6 29558
4f14bcd8 29559fi
463abc64 29560
e6cc62c6 29561
328a083c 29562fi
463abc64 29563
e6cc62c6 29564
7b4a847f 29565fi
579d8138 29566
e6cc62c6 29567
5c6fa7d2 29568fi
52127426 29569
8284b0c5 29570
7274f1c7 29571 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29572 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29573#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29574_ACEOF
463abc64 29575
7274f1c7 29576 else
e6cc62c6
VS
29577 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29578echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29579 fi
463abc64 29580
e6cc62c6
VS
29581 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29582echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29583if test "${ac_cv_func_pthread_cancel+set}" = set; then
29584 echo $ECHO_N "(cached) $ECHO_C" >&6
29585else
29586 cat >conftest.$ac_ext <<_ACEOF
29587#line $LINENO "configure"
29588/* confdefs.h. */
29589_ACEOF
29590cat confdefs.h >>conftest.$ac_ext
29591cat >>conftest.$ac_ext <<_ACEOF
29592/* end confdefs.h. */
009fead0 29593/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29594 which can conflict with char pthread_cancel (); below.
29595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29596 <limits.h> exists even on freestanding compilers. */
29597#ifdef __STDC__
29598# include <limits.h>
29599#else
29600# include <assert.h>
29601#endif
422107f9 29602/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29603#ifdef __cplusplus
29604extern "C"
29605{
29606#endif
422107f9 29607/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29608 builtin and then its argument prototype would still apply. */
29609char pthread_cancel ();
009fead0
VZ
29610/* The GNU C library defines this for functions which it implements
29611 to always fail with ENOSYS. Some functions are actually named
29612 something starting with __ and the normal name is an alias. */
29613#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29614choke me
29615#else
e6cc62c6
VS
29616char (*f) () = pthread_cancel;
29617#endif
29618#ifdef __cplusplus
29619}
009fead0
VZ
29620#endif
29621
e6cc62c6
VS
29622int
29623main ()
29624{
29625return f != pthread_cancel;
29626 ;
29627 return 0;
29628}
29629_ACEOF
29630rm -f conftest.$ac_objext conftest$ac_exeext
29631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29632 (eval $ac_link) 2>&5
29633 ac_status=$?
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); } &&
29636 { ac_try='test -s conftest$ac_exeext'
29637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29638 (eval $ac_try) 2>&5
29639 ac_status=$?
29640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641 (exit $ac_status); }; }; then
29642 ac_cv_func_pthread_cancel=yes
29643else
29644 echo "$as_me: failed program was:" >&5
29645sed 's/^/| /' conftest.$ac_ext >&5
29646
29647ac_cv_func_pthread_cancel=no
29648fi
29649rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29650fi
29651echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29652echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29653if test $ac_cv_func_pthread_cancel = yes; then
29654 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29655#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29656_ACEOF
4f14bcd8 29657
698dcdb6 29658else
e6cc62c6
VS
29659 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29660echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29661fi
29662
5c6fa7d2 29663
e6cc62c6
VS
29664 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29665echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29666if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29667 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29668else
e6cc62c6
VS
29669
29670 cat >conftest.$ac_ext <<_ACEOF
29671#line $LINENO "configure"
29672/* confdefs.h. */
29673_ACEOF
29674cat confdefs.h >>conftest.$ac_ext
29675cat >>conftest.$ac_ext <<_ACEOF
29676/* end confdefs.h. */
4f14bcd8 29677#include <pthread.h>
e6cc62c6
VS
29678int
29679main ()
29680{
4f14bcd8 29681
7274f1c7
RL
29682 pthread_cleanup_push(NULL, NULL);
29683 pthread_cleanup_pop(0);
e6cc62c6
VS
29684
29685 ;
29686 return 0;
29687}
29688_ACEOF
29689rm -f conftest.$ac_objext
29690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29691 (eval $ac_compile) 2>&5
29692 ac_status=$?
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); } &&
29695 { ac_try='test -s conftest.$ac_objext'
29696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29697 (eval $ac_try) 2>&5
29698 ac_status=$?
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); }; }; then
29701
7274f1c7 29702 wx_cv_func_pthread_cleanup_push=yes
e6cc62c6 29703
4f14bcd8 29704else
e6cc62c6
VS
29705 echo "$as_me: failed program was:" >&5
29706sed 's/^/| /' conftest.$ac_ext >&5
29707
29708
7274f1c7 29709 wx_cv_func_pthread_cleanup_push=no
e6cc62c6 29710
247f5006 29711fi
e6cc62c6 29712rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29713
e6cc62c6
VS
29714fi
29715echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29716echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 29717
7274f1c7 29718 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
e6cc62c6 29719 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29720#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
e6cc62c6 29721_ACEOF
c7a2bf27 29722
7274f1c7 29723 fi
4f14bcd8 29724
e6cc62c6
VS
29725
29726 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29727echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29728if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29729 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 29730else
e6cc62c6
VS
29731
29732 cat >conftest.$ac_ext <<_ACEOF
29733#line $LINENO "configure"
29734/* confdefs.h. */
29735_ACEOF
29736cat confdefs.h >>conftest.$ac_ext
29737cat >>conftest.$ac_ext <<_ACEOF
29738/* end confdefs.h. */
4f14bcd8 29739#include <pthread.h>
e6cc62c6
VS
29740int
29741main ()
29742{
4f14bcd8 29743
7274f1c7
RL
29744 pthread_mutexattr_t attr;
29745 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
29746
29747 ;
29748 return 0;
29749}
29750_ACEOF
29751rm -f conftest.$ac_objext
29752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29753 (eval $ac_compile) 2>&5
29754 ac_status=$?
29755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29756 (exit $ac_status); } &&
29757 { ac_try='test -s conftest.$ac_objext'
29758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29759 (eval $ac_try) 2>&5
29760 ac_status=$?
29761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762 (exit $ac_status); }; }; then
29763
7274f1c7 29764 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 29765
3fed1840 29766else
e6cc62c6
VS
29767 echo "$as_me: failed program was:" >&5
29768sed 's/^/| /' conftest.$ac_ext >&5
29769
29770
7274f1c7 29771 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
29772
29773
247f5006 29774fi
e6cc62c6 29775rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29776
e6cc62c6
VS
29777fi
29778echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29779echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 29780
7274f1c7 29781 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 29782 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29783#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 29784_ACEOF
4f14bcd8 29785
7274f1c7 29786 else
e6cc62c6
VS
29787 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29788echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29789if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29790 echo $ECHO_N "(cached) $ECHO_C" >&6
29791else
29792
29793 cat >conftest.$ac_ext <<_ACEOF
29794#line $LINENO "configure"
29795/* confdefs.h. */
29796_ACEOF
29797cat confdefs.h >>conftest.$ac_ext
29798cat >>conftest.$ac_ext <<_ACEOF
29799/* end confdefs.h. */
4f14bcd8 29800#include <pthread.h>
e6cc62c6
VS
29801int
29802main ()
29803{
4f14bcd8 29804
7274f1c7 29805 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
29806
29807 ;
29808 return 0;
29809}
29810_ACEOF
29811rm -f conftest.$ac_objext
29812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29813 (eval $ac_compile) 2>&5
29814 ac_status=$?
29815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816 (exit $ac_status); } &&
29817 { ac_try='test -s conftest.$ac_objext'
29818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29819 (eval $ac_try) 2>&5
29820 ac_status=$?
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822 (exit $ac_status); }; }; then
29823
7274f1c7 29824 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 29825
698dcdb6 29826else
e6cc62c6
VS
29827 echo "$as_me: failed program was:" >&5
29828sed 's/^/| /' conftest.$ac_ext >&5
29829
29830
7274f1c7 29831 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
29832
29833
247f5006 29834fi
e6cc62c6 29835rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29836
e6cc62c6
VS
29837fi
29838echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
29839echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 29840 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 29841 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29842#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 29843_ACEOF
3fed1840 29844
7274f1c7 29845 else
e6cc62c6
VS
29846 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
29847echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
29848 fi
29849 fi
7274f1c7 29850 fi
3fed1840 29851
a0b9e27f
MB
29852else
29853 if test "$wxUSE_THREADS" = "yes" ; then
29854 case "${host}" in
29855 *-*-mingw32* )
e6cc62c6
VS
29856 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
29857echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
29858if test "${wx_cv_cflags_mthread+set}" = set; then
29859 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 29860else
e6cc62c6 29861
ca8e52b3
VZ
29862 CFLAGS_OLD="$CFLAGS"
29863 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
29864 cat >conftest.$ac_ext <<_ACEOF
29865#line $LINENO "configure"
29866/* confdefs.h. */
29867_ACEOF
29868cat confdefs.h >>conftest.$ac_ext
29869cat >>conftest.$ac_ext <<_ACEOF
29870/* end confdefs.h. */
29871
29872int
29873main ()
29874{
ca8e52b3 29875
e6cc62c6
VS
29876 ;
29877 return 0;
29878}
29879_ACEOF
29880rm -f conftest.$ac_objext
29881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29882 (eval $ac_compile) 2>&5
29883 ac_status=$?
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); } &&
29886 { ac_try='test -s conftest.$ac_objext'
29887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29888 (eval $ac_try) 2>&5
29889 ac_status=$?
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); }; }; then
ca8e52b3
VZ
29892 wx_cv_cflags_mthread=yes
29893else
e6cc62c6
VS
29894 echo "$as_me: failed program was:" >&5
29895sed 's/^/| /' conftest.$ac_ext >&5
29896
29897wx_cv_cflags_mthread=no
29898
ca8e52b3 29899fi
e6cc62c6
VS
29900rm -f conftest.$ac_objext conftest.$ac_ext
29901
ca8e52b3 29902
e6cc62c6
VS
29903fi
29904echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
29905echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
29906
29907 if test "$wx_cv_cflags_mthread" = "yes"; then
29908 CXXFLAGS="$CXXFLAGS -mthreads"
29909 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
29910 LDFLAGS="$LDFLAGS -mthreads"
29911 else
29912 CFLAGS="$CFLAGS_OLD"
29913 fi
a0b9e27f
MB
29914 ;;
29915 esac
29916 fi
4f14bcd8
GD
29917fi
29918
29919if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 29920 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29921#define wxUSE_THREADS 1
e6cc62c6 29922_ACEOF
7b6058cd 29923
8284b0c5 29924
4f14bcd8 29925 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 29926else
4f14bcd8 29927 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
29928 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
29929echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
29930 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
29931 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
29932 echo "$as_me:$LINENO: result: yes" >&5
29933echo "${ECHO_T}yes" >&6
4f14bcd8 29934 else
e6cc62c6
VS
29935 echo "$as_me:$LINENO: result: no" >&5
29936echo "${ECHO_T}no" >&6
4f14bcd8
GD
29937 fi
29938 fi
29939fi
29940
29941if test "$WXGTK20" = 1 ; then
e6cc62c6 29942 cat >>confdefs.h <<_ACEOF
4f14bcd8 29943#define __WXGTK20__ $WXGTK20
e6cc62c6 29944_ACEOF
4f14bcd8
GD
29945
29946 WXGTK12=1
10f2d63a 29947fi
4f14bcd8
GD
29948
29949if test "$WXGTK12" = 1 ; then
e6cc62c6 29950 cat >>confdefs.h <<_ACEOF
4f14bcd8 29951#define __WXGTK12__ $WXGTK12
e6cc62c6 29952_ACEOF
4f14bcd8 29953
10f2d63a 29954fi
698dcdb6 29955
4f14bcd8 29956if test "$WXGTK127" = 1 ; then
e6cc62c6 29957 cat >>confdefs.h <<_ACEOF
4f14bcd8 29958#define __WXGTK127__ $WXGTK127
e6cc62c6 29959_ACEOF
4f14bcd8 29960
698dcdb6 29961fi
10f2d63a 29962
4f14bcd8
GD
29963WXDEBUG=
29964
29965if test "$wxUSE_DEBUG_INFO" = "yes" ; then
29966 WXDEBUG="-g"
29967 wxUSE_OPTIMISE=no
698dcdb6 29968fi
4f14bcd8
GD
29969
29970if test "$wxUSE_DEBUG_GDB" = "yes" ; then
29971 wxUSE_DEBUG_INFO=yes
29972 WXDEBUG="-ggdb"
10f2d63a
VZ
29973fi
29974
4f14bcd8 29975if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 29976 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29977#define WXDEBUG 1
e6cc62c6 29978_ACEOF
4f14bcd8
GD
29979
29980 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 29981else
4f14bcd8
GD
29982 if test "$wxUSE_GTK" = 1 ; then
29983 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
29984 fi
29985fi
29986
29987if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 29988 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29989#define wxUSE_MEMORY_TRACING 1
e6cc62c6 29990_ACEOF
4f14bcd8 29991
e6cc62c6 29992 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29993#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 29994_ACEOF
4f14bcd8 29995
e6cc62c6 29996 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29997#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 29998_ACEOF
4f14bcd8
GD
29999
30000 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30001fi
30002
30003if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 30004 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
30005fi
30006
30007PROFILE=
30008if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 30009 PROFILE=" -pg"
10f2d63a
VZ
30010fi
30011
009fead0
VZ
30012CODE_GEN_FLAGS=
30013CODE_GEN_FLAGS_CXX=
88e30f2b 30014if test "$GCC" = "yes" ; then
4f14bcd8
GD
30015 if test "$wxUSE_NO_RTTI" = "yes" ; then
30016 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 30017 fi
4f14bcd8
GD
30018 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30019 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30020 fi
30021 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30022 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30023 fi
1d1b75ac 30024
2b5f62a0 30025 case "${host}" in
1d1b75ac
VZ
30026 powerpc*-*-aix* )
30027 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30028 ;;
2b5f62a0
VZ
30029 *-hppa* )
30030 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30031 ;;
1d1b75ac 30032 esac
4f14bcd8
GD
30033fi
30034
af7b5345 30035OPTIMISE=
4f14bcd8 30036if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
30037 if test "$GCC" = yes ; then
30038 OPTIMISE="-O0"
30039 fi
4f14bcd8
GD
30040else
30041 if test "$GCC" = yes ; then
30042 OPTIMISE="-O2"
af7b5345
VZ
30043
30044 case "${host}" in
4f14bcd8
GD
30045 i586-*-*|i686-*-* )
30046 OPTIMISE="${OPTIMISE} "
30047 ;;
30048 esac
30049 else
30050 OPTIMISE="-O"
30051 fi
30052fi
30053
8d90d2f2 30054
65d8ef1e 30055if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30056 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30057#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30058_ACEOF
4f14bcd8 30059
8d90d2f2
VZ
30060
30061 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
30062fi
30063
65d8ef1e 30064if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 30065 cat >>confdefs.h <<\_ACEOF
65d8ef1e 30066#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 30067_ACEOF
65d8ef1e
VS
30068
30069fi
30070
8284b0c5 30071
10f2d63a 30072if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 30073 cat >>confdefs.h <<\_ACEOF
10f2d63a 30074#define wxUSE_GUI 1
e6cc62c6 30075_ACEOF
10f2d63a 30076
8284b0c5 30077
10f2d63a 30078 else
e6cc62c6 30079 cat >>confdefs.h <<\_ACEOF
10f2d63a 30080#define wxUSE_NOGUI 1
e6cc62c6 30081_ACEOF
10f2d63a
VZ
30082
30083fi
30084
8284b0c5 30085
10f2d63a 30086if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 30087 cat >>confdefs.h <<\_ACEOF
10f2d63a 30088#define wxUSE_UNIX 1
e6cc62c6 30089_ACEOF
10f2d63a
VZ
30090
30091fi
30092
8284b0c5 30093
df5168c4
MB
30094if test "$wxUSE_STL" = "yes"; then
30095 cat >>confdefs.h <<\_ACEOF
30096#define wxUSE_STL 1
30097_ACEOF
30098
30099fi
30100
10f2d63a 30101if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 30102 cat >>confdefs.h <<\_ACEOF
10f2d63a 30103#define wxUSE_APPLE_IEEE 1
e6cc62c6 30104_ACEOF
10f2d63a
VZ
30105
30106fi
30107
1e6feb95 30108if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 30109 cat >>confdefs.h <<\_ACEOF
1e6feb95 30110#define wxUSE_TIMER 1
e6cc62c6 30111_ACEOF
1e6feb95
VZ
30112
30113fi
30114
10f2d63a 30115if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 30116 cat >>confdefs.h <<\_ACEOF
10f2d63a 30117#define wxUSE_WAVE 1
e6cc62c6 30118_ACEOF
10f2d63a
VZ
30119
30120fi
30121
1e6feb95 30122if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 30123 cat >>confdefs.h <<\_ACEOF
1e6feb95 30124#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 30125_ACEOF
1e6feb95
VZ
30126
30127fi
30128
30129if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 30130 cat >>confdefs.h <<\_ACEOF
1e6feb95 30131#define wxUSE_STOPWATCH 1
e6cc62c6 30132_ACEOF
1e6feb95
VZ
30133
30134fi
30135
30136if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 30137 cat >>confdefs.h <<\_ACEOF
1e6feb95 30138#define wxUSE_DATETIME 1
e6cc62c6 30139_ACEOF
1e6feb95
VZ
30140
30141fi
30142
10f2d63a 30143if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30144 cat >>confdefs.h <<\_ACEOF
10f2d63a 30145#define wxUSE_FILE 1
e6cc62c6 30146_ACEOF
10f2d63a
VZ
30147
30148fi
30149
1e6feb95 30150if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30151 cat >>confdefs.h <<\_ACEOF
1e6feb95 30152#define wxUSE_FFILE 1
e6cc62c6 30153_ACEOF
1e6feb95
VZ
30154
30155fi
30156
24528b0c 30157if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30158 cat >>confdefs.h <<\_ACEOF
24528b0c 30159#define wxUSE_FILESYSTEM 1
e6cc62c6 30160_ACEOF
24528b0c
VS
30161
30162fi
30163
10f2d63a 30164if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30165 cat >>confdefs.h <<\_ACEOF
10f2d63a 30166#define wxUSE_FS_ZIP 1
e6cc62c6 30167_ACEOF
10f2d63a
VZ
30168
30169fi
30170
30171if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30172 cat >>confdefs.h <<\_ACEOF
10f2d63a 30173#define wxUSE_ZIPSTREAM 1
e6cc62c6 30174_ACEOF
10f2d63a
VZ
30175
30176fi
30177
eb4efbdc 30178if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30179 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30180#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30181_ACEOF
eb4efbdc
VZ
30182
30183fi
30184
4f3c5f06 30185if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30186 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30187#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30188_ACEOF
4f3c5f06
VZ
30189
30190fi
30191
10f2d63a 30192if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30193 cat >>confdefs.h <<\_ACEOF
10f2d63a 30194#define wxUSE_BUSYINFO 1
e6cc62c6 30195_ACEOF
10f2d63a
VZ
30196
30197fi
30198
30199if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30200 cat >>confdefs.h <<\_ACEOF
10f2d63a 30201#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30202_ACEOF
10f2d63a
VZ
30203
30204fi
30205
a3a584a7 30206if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30207 cat >>confdefs.h <<\_ACEOF
a3a584a7 30208#define wxUSE_TEXTBUFFER 1
e6cc62c6 30209_ACEOF
a3a584a7
VZ
30210
30211fi
30212
10f2d63a 30213if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30214 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30215 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30216echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30217 else
e6cc62c6 30218 cat >>confdefs.h <<\_ACEOF
10f2d63a 30219#define wxUSE_TEXTFILE 1
e6cc62c6 30220_ACEOF
10f2d63a
VZ
30221
30222 fi
30223fi
30224
30225if test "$wxUSE_CONFIG" = "yes" ; then
30226 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30227 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30228echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30229 else
e6cc62c6 30230 cat >>confdefs.h <<\_ACEOF
10f2d63a 30231#define wxUSE_CONFIG 1
e6cc62c6 30232_ACEOF
10f2d63a
VZ
30233
30234 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30235 fi
30236fi
30237
30238if test "$wxUSE_INTL" = "yes" ; then
30239 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30240 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30241echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30242 else
e6cc62c6 30243 cat >>confdefs.h <<\_ACEOF
10f2d63a 30244#define wxUSE_INTL 1
e6cc62c6 30245_ACEOF
10f2d63a
VZ
30246
30247 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30248 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30249 fi
30250fi
30251
30252if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30253 cat >>confdefs.h <<\_ACEOF
10f2d63a 30254#define wxUSE_LOG 1
e6cc62c6 30255_ACEOF
10f2d63a 30256
8284b0c5 30257
d73be714 30258 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30259 cat >>confdefs.h <<\_ACEOF
d73be714 30260#define wxUSE_LOGGUI 1
e6cc62c6 30261_ACEOF
d73be714
VZ
30262
30263 fi
30264
30265 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30266 cat >>confdefs.h <<\_ACEOF
d73be714 30267#define wxUSE_LOGWINDOW 1
e6cc62c6 30268_ACEOF
69d27ff7
MB
30269
30270 fi
30271
30272 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30273 cat >>confdefs.h <<\_ACEOF
69d27ff7 30274#define wxUSE_LOG_DIALOG 1
e6cc62c6 30275_ACEOF
d73be714
VZ
30276
30277 fi
10f2d63a
VZ
30278fi
30279
30280if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30281 cat >>confdefs.h <<\_ACEOF
10f2d63a 30282#define wxUSE_LONGLONG 1
e6cc62c6 30283_ACEOF
10f2d63a
VZ
30284
30285fi
30286
e8f65ba6 30287if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30288 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30289#define wxUSE_GEOMETRY 1
e6cc62c6 30290_ACEOF
e8f65ba6
RR
30291
30292fi
30293
10f2d63a 30294if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30295 cat >>confdefs.h <<\_ACEOF
10f2d63a 30296#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30297_ACEOF
10f2d63a 30298
70f7a477 30299 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30300fi
30301
30302if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30303 cat >>confdefs.h <<\_ACEOF
10f2d63a 30304#define wxUSE_STREAMS 1
e6cc62c6 30305_ACEOF
10f2d63a
VZ
30306
30307fi
30308
5c6fa7d2 30309
8284b0c5 30310if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30311
30312for ac_func in strptime
83307f33 30313do
e6cc62c6
VS
30314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30315echo "$as_me:$LINENO: checking for $ac_func" >&5
30316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30317if eval "test \"\${$as_ac_var+set}\" = set"; then
30318 echo $ECHO_N "(cached) $ECHO_C" >&6
30319else
30320 cat >conftest.$ac_ext <<_ACEOF
30321#line $LINENO "configure"
30322/* confdefs.h. */
30323_ACEOF
30324cat confdefs.h >>conftest.$ac_ext
30325cat >>conftest.$ac_ext <<_ACEOF
30326/* end confdefs.h. */
83307f33 30327/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30328 which can conflict with char $ac_func (); below.
30329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30330 <limits.h> exists even on freestanding compilers. */
30331#ifdef __STDC__
30332# include <limits.h>
30333#else
30334# include <assert.h>
30335#endif
83307f33 30336/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30337#ifdef __cplusplus
30338extern "C"
30339{
30340#endif
83307f33 30341/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30342 builtin and then its argument prototype would still apply. */
30343char $ac_func ();
83307f33
VZ
30344/* The GNU C library defines this for functions which it implements
30345 to always fail with ENOSYS. Some functions are actually named
30346 something starting with __ and the normal name is an alias. */
30347#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30348choke me
30349#else
e6cc62c6
VS
30350char (*f) () = $ac_func;
30351#endif
30352#ifdef __cplusplus
30353}
83307f33
VZ
30354#endif
30355
e6cc62c6
VS
30356int
30357main ()
30358{
30359return f != $ac_func;
30360 ;
30361 return 0;
30362}
30363_ACEOF
30364rm -f conftest.$ac_objext conftest$ac_exeext
30365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30366 (eval $ac_link) 2>&5
30367 ac_status=$?
30368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369 (exit $ac_status); } &&
30370 { ac_try='test -s conftest$ac_exeext'
30371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30372 (eval $ac_try) 2>&5
30373 ac_status=$?
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375 (exit $ac_status); }; }; then
30376 eval "$as_ac_var=yes"
30377else
30378 echo "$as_me: failed program was:" >&5
30379sed 's/^/| /' conftest.$ac_ext >&5
30380
30381eval "$as_ac_var=no"
30382fi
30383rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30384fi
30385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30386echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30387if test `eval echo '${'$as_ac_var'}'` = yes; then
30388 cat >>confdefs.h <<_ACEOF
30389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30390_ACEOF
83307f33 30391
83307f33
VZ
30392fi
30393done
30394
5c6fa7d2 30395
e6cc62c6
VS
30396 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30397echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30398if test "${wx_cv_var_timezone+set}" = set; then
30399 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30400else
e6cc62c6
VS
30401
30402 cat >conftest.$ac_ext <<_ACEOF
30403#line $LINENO "configure"
30404/* confdefs.h. */
30405_ACEOF
30406cat confdefs.h >>conftest.$ac_ext
30407cat >>conftest.$ac_ext <<_ACEOF
30408/* end confdefs.h. */
360d6699 30409
b4085ce6 30410 #include <time.h>
e6cc62c6
VS
30411
30412int
30413main ()
30414{
360d6699
VZ
30415
30416 int tz;
4f11a343 30417 tz = timezone;
e6cc62c6
VS
30418
30419 ;
30420 return 0;
30421}
30422_ACEOF
30423rm -f conftest.$ac_objext
30424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30425 (eval $ac_compile) 2>&5
30426 ac_status=$?
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); } &&
30429 { ac_try='test -s conftest.$ac_objext'
30430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30431 (eval $ac_try) 2>&5
30432 ac_status=$?
30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434 (exit $ac_status); }; }; then
30435
4f11a343 30436 wx_cv_var_timezone=timezone
e6cc62c6 30437
360d6699 30438else
e6cc62c6
VS
30439 echo "$as_me: failed program was:" >&5
30440sed 's/^/| /' conftest.$ac_ext >&5
30441
30442
30443 cat >conftest.$ac_ext <<_ACEOF
30444#line $LINENO "configure"
30445/* confdefs.h. */
30446_ACEOF
30447cat confdefs.h >>conftest.$ac_ext
30448cat >>conftest.$ac_ext <<_ACEOF
30449/* end confdefs.h. */
360d6699 30450
b4085ce6 30451 #include <time.h>
e6cc62c6
VS
30452
30453int
30454main ()
30455{
360d6699
VZ
30456
30457 int tz;
30458 tz = _timezone;
e6cc62c6
VS
30459
30460 ;
30461 return 0;
30462}
30463_ACEOF
30464rm -f conftest.$ac_objext
30465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30466 (eval $ac_compile) 2>&5
30467 ac_status=$?
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); } &&
30470 { ac_try='test -s conftest.$ac_objext'
30471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30472 (eval $ac_try) 2>&5
30473 ac_status=$?
30474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475 (exit $ac_status); }; }; then
30476
360d6699 30477 wx_cv_var_timezone=_timezone
e6cc62c6 30478
5357c8e8 30479else
e6cc62c6
VS
30480 echo "$as_me: failed program was:" >&5
30481sed 's/^/| /' conftest.$ac_ext >&5
30482
30483
30484 cat >conftest.$ac_ext <<_ACEOF
30485#line $LINENO "configure"
30486/* confdefs.h. */
30487_ACEOF
30488cat confdefs.h >>conftest.$ac_ext
30489cat >>conftest.$ac_ext <<_ACEOF
30490/* end confdefs.h. */
5357c8e8 30491
b4085ce6 30492 #include <time.h>
e6cc62c6
VS
30493
30494int
30495main ()
30496{
5357c8e8
VZ
30497
30498 int tz;
4f11a343 30499 tz = __timezone;
e6cc62c6
VS
30500
30501 ;
30502 return 0;
30503}
30504_ACEOF
30505rm -f conftest.$ac_objext
30506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30507 (eval $ac_compile) 2>&5
30508 ac_status=$?
30509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510 (exit $ac_status); } &&
30511 { ac_try='test -s conftest.$ac_objext'
30512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30513 (eval $ac_try) 2>&5
30514 ac_status=$?
30515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516 (exit $ac_status); }; }; then
30517
4f11a343 30518 wx_cv_var_timezone=__timezone
e6cc62c6 30519
360d6699 30520else
e6cc62c6
VS
30521 echo "$as_me: failed program was:" >&5
30522sed 's/^/| /' conftest.$ac_ext >&5
30523
30524
f9bc1684 30525 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30526 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30527echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30528 fi
e6cc62c6
VS
30529
30530
7b4a847f 30531fi
e6cc62c6
VS
30532rm -f conftest.$ac_objext conftest.$ac_ext
30533
30534
5c6fa7d2 30535fi
e6cc62c6
VS
30536rm -f conftest.$ac_objext conftest.$ac_ext
30537
30538
247f5006 30539fi
e6cc62c6 30540rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30541
e6cc62c6
VS
30542
30543fi
30544echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30545echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30546
f9bc1684 30547 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30548 cat >>confdefs.h <<_ACEOF
360d6699 30549#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30550_ACEOF
360d6699 30551
f9bc1684 30552 fi
698dcdb6 30553
e6cc62c6
VS
30554
30555for ac_func in localtime
afc31813 30556do
e6cc62c6
VS
30557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30558echo "$as_me:$LINENO: checking for $ac_func" >&5
30559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30560if eval "test \"\${$as_ac_var+set}\" = set"; then
30561 echo $ECHO_N "(cached) $ECHO_C" >&6
30562else
30563 cat >conftest.$ac_ext <<_ACEOF
30564#line $LINENO "configure"
30565/* confdefs.h. */
30566_ACEOF
30567cat confdefs.h >>conftest.$ac_ext
30568cat >>conftest.$ac_ext <<_ACEOF
30569/* end confdefs.h. */
afc31813 30570/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30571 which can conflict with char $ac_func (); below.
30572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30573 <limits.h> exists even on freestanding compilers. */
30574#ifdef __STDC__
30575# include <limits.h>
30576#else
30577# include <assert.h>
30578#endif
afc31813 30579/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30580#ifdef __cplusplus
30581extern "C"
30582{
30583#endif
afc31813 30584/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30585 builtin and then its argument prototype would still apply. */
30586char $ac_func ();
afc31813
VZ
30587/* The GNU C library defines this for functions which it implements
30588 to always fail with ENOSYS. Some functions are actually named
30589 something starting with __ and the normal name is an alias. */
30590#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30591choke me
30592#else
e6cc62c6
VS
30593char (*f) () = $ac_func;
30594#endif
30595#ifdef __cplusplus
30596}
afc31813
VZ
30597#endif
30598
e6cc62c6
VS
30599int
30600main ()
30601{
30602return f != $ac_func;
30603 ;
30604 return 0;
30605}
30606_ACEOF
30607rm -f conftest.$ac_objext conftest$ac_exeext
30608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30609 (eval $ac_link) 2>&5
30610 ac_status=$?
30611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612 (exit $ac_status); } &&
30613 { ac_try='test -s conftest$ac_exeext'
30614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30615 (eval $ac_try) 2>&5
30616 ac_status=$?
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); }; }; then
30619 eval "$as_ac_var=yes"
30620else
30621 echo "$as_me: failed program was:" >&5
30622sed 's/^/| /' conftest.$ac_ext >&5
30623
30624eval "$as_ac_var=no"
30625fi
30626rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30627fi
30628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30629echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30630if test `eval echo '${'$as_ac_var'}'` = yes; then
30631 cat >>confdefs.h <<_ACEOF
30632#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30633_ACEOF
afc31813 30634
afc31813
VZ
30635fi
30636done
30637
5c6fa7d2 30638
8284b0c5 30639 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30640 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30641echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30642if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30643 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30644else
e6cc62c6
VS
30645
30646 cat >conftest.$ac_ext <<_ACEOF
30647#line $LINENO "configure"
30648/* confdefs.h. */
30649_ACEOF
30650cat confdefs.h >>conftest.$ac_ext
30651cat >>conftest.$ac_ext <<_ACEOF
30652/* end confdefs.h. */
0470b1e6 30653
b4085ce6 30654 #include <time.h>
e6cc62c6
VS
30655
30656int
30657main ()
30658{
0470b1e6
VZ
30659
30660 struct tm tm;
30661 tm.tm_gmtoff++;
e6cc62c6
VS
30662
30663 ;
30664 return 0;
30665}
30666_ACEOF
30667rm -f conftest.$ac_objext
30668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30669 (eval $ac_compile) 2>&5
30670 ac_status=$?
30671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672 (exit $ac_status); } &&
30673 { ac_try='test -s conftest.$ac_objext'
30674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30675 (eval $ac_try) 2>&5
30676 ac_status=$?
30677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30678 (exit $ac_status); }; }; then
30679
f03a98d8 30680 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 30681
0470b1e6 30682else
e6cc62c6
VS
30683 echo "$as_me: failed program was:" >&5
30684sed 's/^/| /' conftest.$ac_ext >&5
30685
30686wx_cv_struct_tm_has_gmtoff=no
30687
247f5006 30688fi
e6cc62c6 30689rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30690
e6cc62c6
VS
30691fi
30692echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30693echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
30694 fi
30695
30696 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 30697 cat >>confdefs.h <<\_ACEOF
6232543b 30698#define WX_GMTOFF_IN_TM 1
e6cc62c6 30699_ACEOF
0470b1e6 30700
3fcdd07b
VZ
30701 fi
30702
e6cc62c6
VS
30703
30704
30705for ac_func in gettimeofday ftime
3fcdd07b 30706do
e6cc62c6
VS
30707as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30708echo "$as_me:$LINENO: checking for $ac_func" >&5
30709echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30710if eval "test \"\${$as_ac_var+set}\" = set"; then
30711 echo $ECHO_N "(cached) $ECHO_C" >&6
30712else
30713 cat >conftest.$ac_ext <<_ACEOF
30714#line $LINENO "configure"
30715/* confdefs.h. */
30716_ACEOF
30717cat confdefs.h >>conftest.$ac_ext
30718cat >>conftest.$ac_ext <<_ACEOF
30719/* end confdefs.h. */
3fcdd07b 30720/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30721 which can conflict with char $ac_func (); below.
30722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30723 <limits.h> exists even on freestanding compilers. */
30724#ifdef __STDC__
30725# include <limits.h>
30726#else
30727# include <assert.h>
30728#endif
3fcdd07b 30729/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30730#ifdef __cplusplus
30731extern "C"
30732{
30733#endif
3fcdd07b 30734/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30735 builtin and then its argument prototype would still apply. */
30736char $ac_func ();
3fcdd07b
VZ
30737/* The GNU C library defines this for functions which it implements
30738 to always fail with ENOSYS. Some functions are actually named
30739 something starting with __ and the normal name is an alias. */
30740#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30741choke me
30742#else
e6cc62c6
VS
30743char (*f) () = $ac_func;
30744#endif
30745#ifdef __cplusplus
30746}
3fcdd07b
VZ
30747#endif
30748
e6cc62c6
VS
30749int
30750main ()
30751{
30752return f != $ac_func;
30753 ;
30754 return 0;
30755}
30756_ACEOF
30757rm -f conftest.$ac_objext conftest$ac_exeext
30758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30759 (eval $ac_link) 2>&5
30760 ac_status=$?
30761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30762 (exit $ac_status); } &&
30763 { ac_try='test -s conftest$ac_exeext'
30764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30765 (eval $ac_try) 2>&5
30766 ac_status=$?
30767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768 (exit $ac_status); }; }; then
30769 eval "$as_ac_var=yes"
30770else
30771 echo "$as_me: failed program was:" >&5
30772sed 's/^/| /' conftest.$ac_ext >&5
30773
30774eval "$as_ac_var=no"
30775fi
30776rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30777fi
30778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30779echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30780if test `eval echo '${'$as_ac_var'}'` = yes; then
30781 cat >>confdefs.h <<_ACEOF
30782#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30783_ACEOF
3fcdd07b 30784 break
3fcdd07b
VZ
30785fi
30786done
30787
698dcdb6 30788
8284b0c5 30789 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
30790 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30791echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30792if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30793 echo $ECHO_N "(cached) $ECHO_C" >&6
30794else
30795
30796
30797
30798 ac_ext=cc
5c6fa7d2 30799ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 30803
8284b0c5 30804
e6cc62c6
VS
30805 cat >conftest.$ac_ext <<_ACEOF
30806#line $LINENO "configure"
30807/* confdefs.h. */
30808_ACEOF
30809cat confdefs.h >>conftest.$ac_ext
30810cat >>conftest.$ac_ext <<_ACEOF
30811/* end confdefs.h. */
afc31813
VZ
30812
30813 #include <sys/time.h>
30814 #include <unistd.h>
e6cc62c6
VS
30815
30816int
30817main ()
30818{
afc31813
VZ
30819
30820 struct timeval tv;
776862b4 30821 gettimeofday(&tv, NULL);
e6cc62c6
VS
30822
30823 ;
30824 return 0;
30825}
30826_ACEOF
30827rm -f conftest.$ac_objext
30828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30829 (eval $ac_compile) 2>&5
30830 ac_status=$?
30831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832 (exit $ac_status); } &&
30833 { ac_try='test -s conftest.$ac_objext'
30834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30835 (eval $ac_try) 2>&5
30836 ac_status=$?
30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 (exit $ac_status); }; }; then
afc31813 30839 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 30840else
e6cc62c6
VS
30841 echo "$as_me: failed program was:" >&5
30842sed 's/^/| /' conftest.$ac_ext >&5
30843
30844cat >conftest.$ac_ext <<_ACEOF
30845#line $LINENO "configure"
30846/* confdefs.h. */
30847_ACEOF
30848cat confdefs.h >>conftest.$ac_ext
30849cat >>conftest.$ac_ext <<_ACEOF
30850/* end confdefs.h. */
afc31813
VZ
30851
30852 #include <sys/time.h>
30853 #include <unistd.h>
e6cc62c6
VS
30854
30855int
30856main ()
30857{
afc31813
VZ
30858
30859 struct timeval tv;
30860 gettimeofday(&tv);
e6cc62c6
VS
30861
30862 ;
30863 return 0;
30864}
30865_ACEOF
30866rm -f conftest.$ac_objext
30867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30868 (eval $ac_compile) 2>&5
30869 ac_status=$?
30870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30871 (exit $ac_status); } &&
30872 { ac_try='test -s conftest.$ac_objext'
30873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30874 (eval $ac_try) 2>&5
30875 ac_status=$?
30876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877 (exit $ac_status); }; }; then
afc31813 30878 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 30879else
e6cc62c6
VS
30880 echo "$as_me: failed program was:" >&5
30881sed 's/^/| /' conftest.$ac_ext >&5
30882
30883
30884 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
30885echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 30886 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
30887
30888
10f2d63a 30889fi
e6cc62c6
VS
30890rm -f conftest.$ac_objext conftest.$ac_ext
30891
10f2d63a 30892fi
e6cc62c6 30893rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 30894 ac_ext=c
10f2d63a 30895ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30898ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 30899
a0b9e27f 30900
e6cc62c6
VS
30901fi
30902echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
30903echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 30904
afc31813 30905 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 30906 cat >>confdefs.h <<\_ACEOF
afc31813 30907#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 30908_ACEOF
afc31813
VZ
30909
30910 fi
30911 fi
30912
afc31813
VZ
30913 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
30914fi
30915
8284b0c5 30916
52127426 30917if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 30918 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
30919 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
30920echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
30921 wxUSE_SOCKETS="no"
30922 fi
3879ecda
VZ
30923 if test "$wxUSE_COCOA" = "1"; then
30924 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
30925echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
30926 wxUSE_SOCKETS="no"
30927 fi
0feee163 30928fi
b089607b 30929
0feee163
VZ
30930if test "$wxUSE_SOCKETS" = "yes"; then
30931 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
30932 echo "$as_me:$LINENO: checking for socket" >&5
30933echo $ECHO_N "checking for socket... $ECHO_C" >&6
30934if test "${ac_cv_func_socket+set}" = set; then
30935 echo $ECHO_N "(cached) $ECHO_C" >&6
30936else
30937 cat >conftest.$ac_ext <<_ACEOF
30938#line $LINENO "configure"
30939/* confdefs.h. */
30940_ACEOF
30941cat confdefs.h >>conftest.$ac_ext
30942cat >>conftest.$ac_ext <<_ACEOF
30943/* end confdefs.h. */
c63c7106 30944/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30945 which can conflict with char socket (); below.
30946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30947 <limits.h> exists even on freestanding compilers. */
30948#ifdef __STDC__
30949# include <limits.h>
30950#else
30951# include <assert.h>
30952#endif
c63c7106 30953/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30954#ifdef __cplusplus
30955extern "C"
30956{
30957#endif
c63c7106 30958/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30959 builtin and then its argument prototype would still apply. */
30960char socket ();
c63c7106
VZ
30961/* The GNU C library defines this for functions which it implements
30962 to always fail with ENOSYS. Some functions are actually named
30963 something starting with __ and the normal name is an alias. */
30964#if defined (__stub_socket) || defined (__stub___socket)
30965choke me
30966#else
e6cc62c6
VS
30967char (*f) () = socket;
30968#endif
30969#ifdef __cplusplus
30970}
c63c7106
VZ
30971#endif
30972
e6cc62c6
VS
30973int
30974main ()
30975{
30976return f != socket;
30977 ;
30978 return 0;
30979}
30980_ACEOF
30981rm -f conftest.$ac_objext conftest$ac_exeext
30982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30983 (eval $ac_link) 2>&5
30984 ac_status=$?
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); } &&
30987 { ac_try='test -s conftest$ac_exeext'
30988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30989 (eval $ac_try) 2>&5
30990 ac_status=$?
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); }; }; then
30993 ac_cv_func_socket=yes
30994else
30995 echo "$as_me: failed program was:" >&5
30996sed 's/^/| /' conftest.$ac_ext >&5
30997
30998ac_cv_func_socket=no
30999fi
31000rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31001fi
31002echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
31003echo "${ECHO_T}$ac_cv_func_socket" >&6
31004if test $ac_cv_func_socket = yes; then
c63c7106
VZ
31005 :
31006else
e6cc62c6
VS
31007 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
31008echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
31009if test "${ac_cv_lib_socket_socket+set}" = set; then
31010 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 31011else
e6cc62c6 31012 ac_check_lib_save_LIBS=$LIBS
c63c7106 31013LIBS="-lsocket $LIBS"
e6cc62c6
VS
31014cat >conftest.$ac_ext <<_ACEOF
31015#line $LINENO "configure"
31016/* confdefs.h. */
31017_ACEOF
31018cat confdefs.h >>conftest.$ac_ext
31019cat >>conftest.$ac_ext <<_ACEOF
31020/* end confdefs.h. */
31021
c63c7106 31022/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31023#ifdef __cplusplus
31024extern "C"
31025#endif
c63c7106 31026/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31027 builtin and then its argument prototype would still apply. */
31028char socket ();
31029int
31030main ()
31031{
31032socket ();
31033 ;
31034 return 0;
31035}
31036_ACEOF
31037rm -f conftest.$ac_objext conftest$ac_exeext
31038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31039 (eval $ac_link) 2>&5
31040 ac_status=$?
31041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042 (exit $ac_status); } &&
31043 { ac_try='test -s conftest$ac_exeext'
31044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31045 (eval $ac_try) 2>&5
31046 ac_status=$?
31047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); }; }; then
31049 ac_cv_lib_socket_socket=yes
31050else
31051 echo "$as_me: failed program was:" >&5
31052sed 's/^/| /' conftest.$ac_ext >&5
31053
31054ac_cv_lib_socket_socket=no
31055fi
31056rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31057LIBS=$ac_check_lib_save_LIBS
31058fi
31059echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31060echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31061if test $ac_cv_lib_socket_socket = yes; then
d558c907
VS
31062 if test "$INET_LINK" != " -lsocket"; then
31063 INET_LINK="$INET_LINK -lsocket"
31064 fi
c63c7106 31065else
afc31813 31066
e6cc62c6
VS
31067 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
31068echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
3a922bb4 31069 wxUSE_SOCKETS=no
e6cc62c6
VS
31070
31071
6232543b 31072fi
b089607b 31073
e6cc62c6 31074
1e487827 31075fi
afc31813 31076
3a922bb4 31077 fi
0feee163 31078fi
51a9faba 31079
0feee163
VZ
31080if test "$wxUSE_SOCKETS" = "yes" ; then
31081 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31082 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31083echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31084if test "${wx_cv_type_getsockname3+set}" = set; then
31085 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 31086else
e6cc62c6
VS
31087
31088 cat >conftest.$ac_ext <<_ACEOF
31089#line $LINENO "configure"
31090/* confdefs.h. */
31091_ACEOF
31092cat confdefs.h >>conftest.$ac_ext
31093cat >>conftest.$ac_ext <<_ACEOF
31094/* end confdefs.h. */
51a9faba 31095
3a922bb4
RL
31096 #include <sys/types.h>
31097 #include <sys/socket.h>
e6cc62c6
VS
31098
31099int
31100main ()
31101{
51a9faba 31102
3a922bb4
RL
31103 socklen_t len;
31104 getsockname(0, 0, &len);
e6cc62c6
VS
31105
31106 ;
31107 return 0;
31108}
31109_ACEOF
31110rm -f conftest.$ac_objext
31111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31112 (eval $ac_compile) 2>&5
31113 ac_status=$?
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); } &&
31116 { ac_try='test -s conftest.$ac_objext'
31117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31118 (eval $ac_try) 2>&5
31119 ac_status=$?
31120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121 (exit $ac_status); }; }; then
51a9faba 31122 wx_cv_type_getsockname3=socklen_t
afc31813 31123else
e6cc62c6
VS
31124 echo "$as_me: failed program was:" >&5
31125sed 's/^/| /' conftest.$ac_ext >&5
31126
31127
9711d31e
GD
31128 CFLAGS_OLD="$CFLAGS"
31129 if test "$GCC" = yes ; then
31130 CFLAGS="$CFLAGS -Werror"
31131 fi
31132
e6cc62c6
VS
31133 cat >conftest.$ac_ext <<_ACEOF
31134#line $LINENO "configure"
31135/* confdefs.h. */
31136_ACEOF
31137cat confdefs.h >>conftest.$ac_ext
31138cat >>conftest.$ac_ext <<_ACEOF
31139/* end confdefs.h. */
51a9faba 31140
9711d31e
GD
31141 #include <sys/types.h>
31142 #include <sys/socket.h>
e6cc62c6
VS
31143
31144int
31145main ()
31146{
51a9faba 31147
9711d31e
GD
31148 size_t len;
31149 getsockname(0, 0, &len);
e6cc62c6
VS
31150
31151 ;
31152 return 0;
31153}
31154_ACEOF
31155rm -f conftest.$ac_objext
31156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31157 (eval $ac_compile) 2>&5
31158 ac_status=$?
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); } &&
31161 { ac_try='test -s conftest.$ac_objext'
31162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31163 (eval $ac_try) 2>&5
31164 ac_status=$?
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); }; }; then
51a9faba 31167 wx_cv_type_getsockname3=size_t
afc31813 31168else
e6cc62c6
VS
31169 echo "$as_me: failed program was:" >&5
31170sed 's/^/| /' conftest.$ac_ext >&5
31171
31172cat >conftest.$ac_ext <<_ACEOF
31173#line $LINENO "configure"
31174/* confdefs.h. */
31175_ACEOF
31176cat confdefs.h >>conftest.$ac_ext
31177cat >>conftest.$ac_ext <<_ACEOF
31178/* end confdefs.h. */
51a9faba 31179
9711d31e
GD
31180 #include <sys/types.h>
31181 #include <sys/socket.h>
e6cc62c6
VS
31182
31183int
31184main ()
31185{
51a9faba 31186
9711d31e
GD
31187 int len;
31188 getsockname(0, 0, &len);
e6cc62c6
VS
31189
31190 ;
31191 return 0;
31192}
31193_ACEOF
31194rm -f conftest.$ac_objext
31195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31196 (eval $ac_compile) 2>&5
31197 ac_status=$?
31198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199 (exit $ac_status); } &&
31200 { ac_try='test -s conftest.$ac_objext'
31201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31202 (eval $ac_try) 2>&5
31203 ac_status=$?
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); }; }; then
51a9faba 31206 wx_cv_type_getsockname3=int
afc31813 31207else
e6cc62c6
VS
31208 echo "$as_me: failed program was:" >&5
31209sed 's/^/| /' conftest.$ac_ext >&5
31210
31211wx_cv_type_getsockname3=unknown
31212
afc31813 31213fi
e6cc62c6
VS
31214rm -f conftest.$ac_objext conftest.$ac_ext
31215
afc31813 31216fi
e6cc62c6 31217rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31218
31219 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31220
31221
247f5006 31222fi
e6cc62c6 31223rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31224
e6cc62c6
VS
31225fi
31226echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31227echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31228
3a922bb4
RL
31229 if test "$wx_cv_type_getsockname3" = "unknown"; then
31230 wxUSE_SOCKETS=no
e6cc62c6
VS
31231 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31232echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31233 else
e6cc62c6 31234 cat >>confdefs.h <<_ACEOF
51a9faba 31235#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31236_ACEOF
51a9faba 31237
3a922bb4 31238 fi
51a9faba
VZ
31239 fi
31240fi
afc31813 31241
51a9faba 31242if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31243 cat >>confdefs.h <<\_ACEOF
afc31813 31244#define wxUSE_SOCKETS 1
e6cc62c6 31245_ACEOF
afc31813 31246
70f7a477 31247 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31248fi
31249
3879ecda
VZ
31250if test "$wxUSE_PROTOCOL" = "yes"; then
31251 if test "$wxUSE_SOCKETS" != "yes"; then
31252 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31253echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31254 wxUSE_PROTOCOL=no
31255 fi
31256fi
31257
31258if test "$wxUSE_PROTOCOL" = "yes"; then
31259 cat >>confdefs.h <<\_ACEOF
31260#define wxUSE_PROTOCOL 1
31261_ACEOF
31262
31263
31264 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31265 cat >>confdefs.h <<\_ACEOF
31266#define wxUSE_PROTOCOL_HTTP 1
31267_ACEOF
31268
31269 fi
31270 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31271 cat >>confdefs.h <<\_ACEOF
31272#define wxUSE_PROTOCOL_FTP 1
31273_ACEOF
31274
31275 fi
31276 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31277 cat >>confdefs.h <<\_ACEOF
31278#define wxUSE_PROTOCOL_FILE 1
31279_ACEOF
31280
31281 fi
31282else
31283 if test "$wxUSE_FS_INET" = "yes"; then
31284 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31285echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31286 wxUSE_FS_INET="no"
31287 fi
31288fi
31289
31290if test "$wxUSE_URL" = "yes"; then
31291 if test "$wxUSE_PROTOCOL" != "yes"; then
31292 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31293echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31294 wxUSE_URL=no
31295 fi
31296 if test "$wxUSE_URL" = "yes"; then
31297 cat >>confdefs.h <<\_ACEOF
31298#define wxUSE_URL 1
31299_ACEOF
31300
31301 fi
31302fi
31303
31304if test "$wxUSE_FS_INET" = "yes"; then
31305 cat >>confdefs.h <<\_ACEOF
31306#define wxUSE_FS_INET 1
31307_ACEOF
31308
31309fi
31310
8284b0c5 31311
dc3d889d
VZ
31312if test "$wxUSE_GUI" = "yes"; then
31313
ac0c4cc3 31314 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31315 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31316echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523 31317 wxUSE_JOYSTICK=no
156b2523
GD
31318 fi
31319
131f235d 31320 if test "$TOOLKIT" != "MSW"; then
3a922bb4 31321 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31322
31323for ac_header in linux/joystick.h
10f2d63a 31324do
e6cc62c6
VS
31325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31326if eval "test \"\${$as_ac_Header+set}\" = set"; then
31327 echo "$as_me:$LINENO: checking for $ac_header" >&5
31328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31329if eval "test \"\${$as_ac_Header+set}\" = set"; then
31330 echo $ECHO_N "(cached) $ECHO_C" >&6
31331fi
31332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31333echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31334else
31335 # Is the header compilable?
31336echo "$as_me:$LINENO: checking $ac_header usability" >&5
31337echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31338cat >conftest.$ac_ext <<_ACEOF
31339#line $LINENO "configure"
31340/* confdefs.h. */
31341_ACEOF
31342cat confdefs.h >>conftest.$ac_ext
31343cat >>conftest.$ac_ext <<_ACEOF
31344/* end confdefs.h. */
31345$ac_includes_default
31346#include <$ac_header>
31347_ACEOF
31348rm -f conftest.$ac_objext
31349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31350 (eval $ac_compile) 2>&5
31351 ac_status=$?
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); } &&
31354 { ac_try='test -s conftest.$ac_objext'
31355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31356 (eval $ac_try) 2>&5
31357 ac_status=$?
31358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31359 (exit $ac_status); }; }; then
31360 ac_header_compiler=yes
31361else
31362 echo "$as_me: failed program was:" >&5
31363sed 's/^/| /' conftest.$ac_ext >&5
31364
31365ac_header_compiler=no
31366fi
31367rm -f conftest.$ac_objext conftest.$ac_ext
31368echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31369echo "${ECHO_T}$ac_header_compiler" >&6
31370
31371# Is the header present?
31372echo "$as_me:$LINENO: checking $ac_header presence" >&5
31373echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31374cat >conftest.$ac_ext <<_ACEOF
31375#line $LINENO "configure"
31376/* confdefs.h. */
31377_ACEOF
31378cat confdefs.h >>conftest.$ac_ext
31379cat >>conftest.$ac_ext <<_ACEOF
31380/* end confdefs.h. */
31381#include <$ac_header>
31382_ACEOF
31383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31385 ac_status=$?
31386 grep -v '^ *+' conftest.er1 >conftest.err
31387 rm -f conftest.er1
31388 cat conftest.err >&5
31389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31390 (exit $ac_status); } >/dev/null; then
31391 if test -s conftest.err; then
31392 ac_cpp_err=$ac_c_preproc_warn_flag
31393 else
31394 ac_cpp_err=
31395 fi
31396else
31397 ac_cpp_err=yes
31398fi
31399if test -z "$ac_cpp_err"; then
31400 ac_header_preproc=yes
31401else
31402 echo "$as_me: failed program was:" >&5
31403sed 's/^/| /' conftest.$ac_ext >&5
31404
31405 ac_header_preproc=no
31406fi
31407rm -f conftest.err conftest.$ac_ext
31408echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31409echo "${ECHO_T}$ac_header_preproc" >&6
31410
31411# So? What about this header?
31412case $ac_header_compiler:$ac_header_preproc in
31413 yes:no )
31414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31415echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31417echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31418 (
31419 cat <<\_ASBOX
31420## ------------------------------------ ##
31421## Report this to bug-autoconf@gnu.org. ##
31422## ------------------------------------ ##
31423_ASBOX
31424 ) |
31425 sed "s/^/$as_me: WARNING: /" >&2
31426 ;;
31427 no:yes )
31428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31433echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31434 (
31435 cat <<\_ASBOX
31436## ------------------------------------ ##
31437## Report this to bug-autoconf@gnu.org. ##
31438## ------------------------------------ ##
31439_ASBOX
31440 ) |
31441 sed "s/^/$as_me: WARNING: /" >&2
31442 ;;
31443esac
31444echo "$as_me:$LINENO: checking for $ac_header" >&5
31445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31446if eval "test \"\${$as_ac_Header+set}\" = set"; then
31447 echo $ECHO_N "(cached) $ECHO_C" >&6
31448else
31449 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31450fi
e6cc62c6
VS
31451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31453
10f2d63a 31454fi
e6cc62c6
VS
31455if test `eval echo '${'$as_ac_Header'}'` = yes; then
31456 cat >>confdefs.h <<_ACEOF
31457#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31458_ACEOF
31459
247f5006 31460fi
e6cc62c6 31461
10f2d63a
VZ
31462done
31463
3a922bb4
RL
31464 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31465 wxUSE_JOYSTICK=no
e6cc62c6
VS
31466 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31467echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31468 fi
31469 fi
31470 fi
b089607b 31471
3a922bb4 31472 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31473 cat >>confdefs.h <<\_ACEOF
10f2d63a 31474#define wxUSE_JOYSTICK 1
e6cc62c6 31475_ACEOF
10f2d63a 31476
3a922bb4
RL
31477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31478 fi
dc3d889d
VZ
31479fi
31480
8284b0c5 31481
b089607b
VZ
31482if test "$TOOLKIT" != "MSW"; then
31483
3a922bb4
RL
31484 HAVE_DL_FUNCS=0
31485 HAVE_SHL_FUNCS=0
0b9ab0bd 31486 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31487 if test "$USE_DARWIN" = 1; then
31488 HAVE_DL_FUNCS=1
31489 else
e6cc62c6
VS
31490
31491for ac_func in dlopen
10f2d63a 31492do
e6cc62c6
VS
31493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31494echo "$as_me:$LINENO: checking for $ac_func" >&5
31495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31496if eval "test \"\${$as_ac_var+set}\" = set"; then
31497 echo $ECHO_N "(cached) $ECHO_C" >&6
31498else
31499 cat >conftest.$ac_ext <<_ACEOF
31500#line $LINENO "configure"
31501/* confdefs.h. */
31502_ACEOF
31503cat confdefs.h >>conftest.$ac_ext
31504cat >>conftest.$ac_ext <<_ACEOF
31505/* end confdefs.h. */
10f2d63a 31506/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31507 which can conflict with char $ac_func (); below.
31508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31509 <limits.h> exists even on freestanding compilers. */
31510#ifdef __STDC__
31511# include <limits.h>
31512#else
31513# include <assert.h>
31514#endif
10f2d63a 31515/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31516#ifdef __cplusplus
31517extern "C"
31518{
31519#endif
10f2d63a 31520/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31521 builtin and then its argument prototype would still apply. */
31522char $ac_func ();
10f2d63a
VZ
31523/* The GNU C library defines this for functions which it implements
31524 to always fail with ENOSYS. Some functions are actually named
31525 something starting with __ and the normal name is an alias. */
31526#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31527choke me
31528#else
e6cc62c6
VS
31529char (*f) () = $ac_func;
31530#endif
31531#ifdef __cplusplus
31532}
10f2d63a
VZ
31533#endif
31534
e6cc62c6
VS
31535int
31536main ()
31537{
31538return f != $ac_func;
31539 ;
31540 return 0;
31541}
31542_ACEOF
31543rm -f conftest.$ac_objext conftest$ac_exeext
31544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31545 (eval $ac_link) 2>&5
31546 ac_status=$?
31547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); } &&
31549 { ac_try='test -s conftest$ac_exeext'
31550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31551 (eval $ac_try) 2>&5
31552 ac_status=$?
31553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31554 (exit $ac_status); }; }; then
31555 eval "$as_ac_var=yes"
31556else
31557 echo "$as_me: failed program was:" >&5
31558sed 's/^/| /' conftest.$ac_ext >&5
31559
31560eval "$as_ac_var=no"
31561fi
31562rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31563fi
31564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31566if test `eval echo '${'$as_ac_var'}'` = yes; then
31567 cat >>confdefs.h <<_ACEOF
31568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31569_ACEOF
31570
31571 cat >>confdefs.h <<\_ACEOF
10f2d63a 31572#define HAVE_DLOPEN 1
e6cc62c6 31573_ACEOF
10f2d63a 31574
3a922bb4 31575 HAVE_DL_FUNCS=1
e6cc62c6 31576
10f2d63a 31577else
e6cc62c6
VS
31578
31579 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31580echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31581if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31582 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31583else
e6cc62c6 31584 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31585LIBS="-ldl $LIBS"
e6cc62c6
VS
31586cat >conftest.$ac_ext <<_ACEOF
31587#line $LINENO "configure"
31588/* confdefs.h. */
31589_ACEOF
31590cat confdefs.h >>conftest.$ac_ext
31591cat >>conftest.$ac_ext <<_ACEOF
31592/* end confdefs.h. */
31593
10f2d63a 31594/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31595#ifdef __cplusplus
31596extern "C"
31597#endif
10f2d63a 31598/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31599 builtin and then its argument prototype would still apply. */
31600char dlopen ();
31601int
31602main ()
31603{
31604dlopen ();
31605 ;
31606 return 0;
31607}
31608_ACEOF
31609rm -f conftest.$ac_objext conftest$ac_exeext
31610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31611 (eval $ac_link) 2>&5
31612 ac_status=$?
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); } &&
31615 { ac_try='test -s conftest$ac_exeext'
31616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31617 (eval $ac_try) 2>&5
31618 ac_status=$?
31619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31620 (exit $ac_status); }; }; then
31621 ac_cv_lib_dl_dlopen=yes
31622else
31623 echo "$as_me: failed program was:" >&5
31624sed 's/^/| /' conftest.$ac_ext >&5
31625
31626ac_cv_lib_dl_dlopen=no
31627fi
31628rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31629LIBS=$ac_check_lib_save_LIBS
31630fi
31631echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31632echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31633if test $ac_cv_lib_dl_dlopen = yes; then
31634
31635 cat >>confdefs.h <<\_ACEOF
10f2d63a 31636#define HAVE_DLOPEN 1
e6cc62c6 31637_ACEOF
10f2d63a 31638
3a922bb4 31639 HAVE_DL_FUNCS=1
3d63bc3a 31640 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31641
10f2d63a 31642else
10f2d63a 31643
e6cc62c6
VS
31644
31645for ac_func in shl_load
10f2d63a 31646do
e6cc62c6
VS
31647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31648echo "$as_me:$LINENO: checking for $ac_func" >&5
31649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31650if eval "test \"\${$as_ac_var+set}\" = set"; then
31651 echo $ECHO_N "(cached) $ECHO_C" >&6
31652else
31653 cat >conftest.$ac_ext <<_ACEOF
31654#line $LINENO "configure"
31655/* confdefs.h. */
31656_ACEOF
31657cat confdefs.h >>conftest.$ac_ext
31658cat >>conftest.$ac_ext <<_ACEOF
31659/* end confdefs.h. */
10f2d63a 31660/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31661 which can conflict with char $ac_func (); below.
31662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31663 <limits.h> exists even on freestanding compilers. */
31664#ifdef __STDC__
31665# include <limits.h>
31666#else
31667# include <assert.h>
31668#endif
10f2d63a 31669/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31670#ifdef __cplusplus
31671extern "C"
31672{
31673#endif
10f2d63a 31674/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31675 builtin and then its argument prototype would still apply. */
31676char $ac_func ();
10f2d63a
VZ
31677/* The GNU C library defines this for functions which it implements
31678 to always fail with ENOSYS. Some functions are actually named
31679 something starting with __ and the normal name is an alias. */
31680#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31681choke me
31682#else
e6cc62c6
VS
31683char (*f) () = $ac_func;
31684#endif
31685#ifdef __cplusplus
31686}
10f2d63a
VZ
31687#endif
31688
e6cc62c6
VS
31689int
31690main ()
31691{
31692return f != $ac_func;
31693 ;
31694 return 0;
31695}
31696_ACEOF
31697rm -f conftest.$ac_objext conftest$ac_exeext
31698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31699 (eval $ac_link) 2>&5
31700 ac_status=$?
31701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702 (exit $ac_status); } &&
31703 { ac_try='test -s conftest$ac_exeext'
31704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31705 (eval $ac_try) 2>&5
31706 ac_status=$?
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); }; }; then
31709 eval "$as_ac_var=yes"
31710else
31711 echo "$as_me: failed program was:" >&5
31712sed 's/^/| /' conftest.$ac_ext >&5
31713
31714eval "$as_ac_var=no"
31715fi
31716rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31717fi
31718echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31719echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31720if test `eval echo '${'$as_ac_var'}'` = yes; then
31721 cat >>confdefs.h <<_ACEOF
31722#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31723_ACEOF
31724
31725 cat >>confdefs.h <<\_ACEOF
10f2d63a 31726#define HAVE_SHL_LOAD 1
e6cc62c6 31727_ACEOF
10f2d63a 31728
3a922bb4 31729 HAVE_SHL_FUNCS=1
e6cc62c6 31730
10f2d63a 31731else
e6cc62c6
VS
31732
31733 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31734echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31735if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31736 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31737else
e6cc62c6 31738 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31739LIBS="-lshl_load $LIBS"
e6cc62c6
VS
31740cat >conftest.$ac_ext <<_ACEOF
31741#line $LINENO "configure"
31742/* confdefs.h. */
31743_ACEOF
31744cat confdefs.h >>conftest.$ac_ext
31745cat >>conftest.$ac_ext <<_ACEOF
31746/* end confdefs.h. */
31747
8284b0c5 31748/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31749#ifdef __cplusplus
31750extern "C"
31751#endif
f6bcfd97 31752/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31753 builtin and then its argument prototype would still apply. */
31754char dld ();
31755int
31756main ()
31757{
31758dld ();
31759 ;
31760 return 0;
31761}
31762_ACEOF
31763rm -f conftest.$ac_objext conftest$ac_exeext
31764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31765 (eval $ac_link) 2>&5
31766 ac_status=$?
31767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768 (exit $ac_status); } &&
31769 { ac_try='test -s conftest$ac_exeext'
31770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31771 (eval $ac_try) 2>&5
31772 ac_status=$?
31773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774 (exit $ac_status); }; }; then
31775 ac_cv_lib_shl_load_dld=yes
31776else
31777 echo "$as_me: failed program was:" >&5
31778sed 's/^/| /' conftest.$ac_ext >&5
31779
31780ac_cv_lib_shl_load_dld=no
31781fi
31782rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31783LIBS=$ac_check_lib_save_LIBS
31784fi
31785echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31786echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31787if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 31788
3a922bb4 31789 HAVE_SHL_FUNCS=1
3d63bc3a 31790 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 31791
f6bcfd97
BP
31792fi
31793
e6cc62c6 31794
10f2d63a
VZ
31795fi
31796done
31797
e6cc62c6 31798
10f2d63a
VZ
31799fi
31800
e6cc62c6 31801
10f2d63a
VZ
31802fi
31803done
31804
5c6fa7d2 31805
8284b0c5 31806 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
31807
31808for ac_func in dlerror
f6bcfd97 31809do
e6cc62c6
VS
31810as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31811echo "$as_me:$LINENO: checking for $ac_func" >&5
31812echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31813if eval "test \"\${$as_ac_var+set}\" = set"; then
31814 echo $ECHO_N "(cached) $ECHO_C" >&6
31815else
31816 cat >conftest.$ac_ext <<_ACEOF
31817#line $LINENO "configure"
31818/* confdefs.h. */
31819_ACEOF
31820cat confdefs.h >>conftest.$ac_ext
31821cat >>conftest.$ac_ext <<_ACEOF
31822/* end confdefs.h. */
f6bcfd97 31823/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31824 which can conflict with char $ac_func (); below.
31825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31826 <limits.h> exists even on freestanding compilers. */
31827#ifdef __STDC__
31828# include <limits.h>
31829#else
31830# include <assert.h>
31831#endif
f6bcfd97 31832/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31833#ifdef __cplusplus
31834extern "C"
31835{
31836#endif
f6bcfd97 31837/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31838 builtin and then its argument prototype would still apply. */
31839char $ac_func ();
f6bcfd97
BP
31840/* The GNU C library defines this for functions which it implements
31841 to always fail with ENOSYS. Some functions are actually named
31842 something starting with __ and the normal name is an alias. */
31843#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31844choke me
31845#else
e6cc62c6
VS
31846char (*f) () = $ac_func;
31847#endif
31848#ifdef __cplusplus
31849}
f6bcfd97
BP
31850#endif
31851
e6cc62c6
VS
31852int
31853main ()
31854{
31855return f != $ac_func;
31856 ;
31857 return 0;
31858}
31859_ACEOF
31860rm -f conftest.$ac_objext conftest$ac_exeext
31861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31862 (eval $ac_link) 2>&5
31863 ac_status=$?
31864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865 (exit $ac_status); } &&
31866 { ac_try='test -s conftest$ac_exeext'
31867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31868 (eval $ac_try) 2>&5
31869 ac_status=$?
31870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871 (exit $ac_status); }; }; then
31872 eval "$as_ac_var=yes"
31873else
31874 echo "$as_me: failed program was:" >&5
31875sed 's/^/| /' conftest.$ac_ext >&5
31876
31877eval "$as_ac_var=no"
31878fi
31879rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31880fi
31881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31882echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31883if test `eval echo '${'$as_ac_var'}'` = yes; then
31884 cat >>confdefs.h <<_ACEOF
31885#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31886_ACEOF
31887 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31888#define HAVE_DLERROR 1
e6cc62c6 31889_ACEOF
f6bcfd97
BP
31890
31891else
e6cc62c6
VS
31892 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31893echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31894if test "${ac_cv_lib_dl_dlerror+set}" = set; then
31895 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31896else
e6cc62c6 31897 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31898LIBS="-ldl $LIBS"
e6cc62c6
VS
31899cat >conftest.$ac_ext <<_ACEOF
31900#line $LINENO "configure"
31901/* confdefs.h. */
31902_ACEOF
31903cat confdefs.h >>conftest.$ac_ext
31904cat >>conftest.$ac_ext <<_ACEOF
31905/* end confdefs.h. */
31906
f6bcfd97 31907/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31908#ifdef __cplusplus
31909extern "C"
31910#endif
f6bcfd97 31911/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31912 builtin and then its argument prototype would still apply. */
31913char dlerror ();
31914int
31915main ()
31916{
31917dlerror ();
31918 ;
31919 return 0;
31920}
31921_ACEOF
31922rm -f conftest.$ac_objext conftest$ac_exeext
31923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31924 (eval $ac_link) 2>&5
31925 ac_status=$?
31926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927 (exit $ac_status); } &&
31928 { ac_try='test -s conftest$ac_exeext'
31929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31930 (eval $ac_try) 2>&5
31931 ac_status=$?
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); }; }; then
31934 ac_cv_lib_dl_dlerror=yes
31935else
31936 echo "$as_me: failed program was:" >&5
31937sed 's/^/| /' conftest.$ac_ext >&5
31938
31939ac_cv_lib_dl_dlerror=no
31940fi
31941rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31942LIBS=$ac_check_lib_save_LIBS
31943fi
31944echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31945echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31946if test $ac_cv_lib_dl_dlerror = yes; then
31947 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31948#define HAVE_DLERROR 1
e6cc62c6 31949_ACEOF
f6bcfd97 31950
f6bcfd97
BP
31951fi
31952
31953fi
31954done
31955
3a922bb4
RL
31956 fi
31957 fi
f6bcfd97 31958
3a922bb4
RL
31959 if test "$HAVE_DL_FUNCS" = 0; then
31960 if test "$HAVE_SHL_FUNCS" = 0; then
31961 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
31962 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31963echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 31964 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
31965 wxUSE_DYNLIB_CLASS=no
31966 else
e6cc62c6
VS
31967 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31968echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
31969 fi
31970 fi
10f2d63a
VZ
31971 fi
31972 fi
31973fi
31974
0b9ab0bd 31975if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 31976 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 31977#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 31978_ACEOF
0b9ab0bd 31979
1948bb32
VS
31980fi
31981if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 31982 cat >>confdefs.h <<\_ACEOF
10f2d63a 31983#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 31984_ACEOF
10f2d63a
VZ
31985
31986fi
31987
8284b0c5 31988
1e6feb95 31989if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 31990 cat >>confdefs.h <<\_ACEOF
1e6feb95 31991#define wxUSE_FONTMAP 1
e6cc62c6 31992_ACEOF
1e6feb95
VZ
31993
31994fi
31995
10f2d63a 31996if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 31997 cat >>confdefs.h <<\_ACEOF
10f2d63a 31998#define wxUSE_UNICODE 1
e6cc62c6 31999_ACEOF
10f2d63a 32000
8284b0c5 32001
eb854003 32002 if test "$USE_WIN32" != 1; then
bbc3925a
VS
32003 wxUSE_UNICODE_MSLU=no
32004 fi
a72a4bfa 32005
eb854003 32006 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
32007 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32008echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32009if test "${ac_cv_lib_unicows_main+set}" = set; then
32010 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 32011else
e6cc62c6 32012 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 32013LIBS="-lunicows $LIBS"
e6cc62c6
VS
32014cat >conftest.$ac_ext <<_ACEOF
32015#line $LINENO "configure"
32016/* confdefs.h. */
32017_ACEOF
32018cat confdefs.h >>conftest.$ac_ext
32019cat >>conftest.$ac_ext <<_ACEOF
32020/* end confdefs.h. */
a72a4bfa 32021
8284b0c5 32022
e6cc62c6
VS
32023int
32024main ()
32025{
32026main ();
32027 ;
32028 return 0;
32029}
32030_ACEOF
32031rm -f conftest.$ac_objext conftest$ac_exeext
32032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32033 (eval $ac_link) 2>&5
32034 ac_status=$?
32035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32036 (exit $ac_status); } &&
32037 { ac_try='test -s conftest$ac_exeext'
32038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32039 (eval $ac_try) 2>&5
32040 ac_status=$?
32041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042 (exit $ac_status); }; }; then
32043 ac_cv_lib_unicows_main=yes
32044else
32045 echo "$as_me: failed program was:" >&5
32046sed 's/^/| /' conftest.$ac_ext >&5
32047
32048ac_cv_lib_unicows_main=no
32049fi
32050rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32051LIBS=$ac_check_lib_save_LIBS
32052fi
32053echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32054echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32055if test $ac_cv_lib_unicows_main = yes; then
32056
32057 cat >>confdefs.h <<\_ACEOF
a72a4bfa 32058#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
32059_ACEOF
32060
a72a4bfa 32061
a72a4bfa 32062else
a72a4bfa 32063
e6cc62c6
VS
32064 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32065 Applications will only run on Windows NT/2000/XP!" >&5
32066echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32067 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 32068 wxUSE_UNICODE_MSLU=no
e6cc62c6 32069
a72a4bfa
VS
32070fi
32071
32072 fi
10f2d63a
VZ
32073fi
32074
10f2d63a 32075if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 32076 cat >>confdefs.h <<\_ACEOF
10f2d63a 32077#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 32078_ACEOF
10f2d63a
VZ
32079
32080fi
32081
8284b0c5 32082
10f2d63a 32083if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 32084 cat >>confdefs.h <<\_ACEOF
10f2d63a 32085#define wxUSE_POSTSCRIPT 1
e6cc62c6 32086_ACEOF
10f2d63a
VZ
32087
32088fi
32089
e6cc62c6 32090cat >>confdefs.h <<\_ACEOF
10f2d63a 32091#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 32092_ACEOF
10f2d63a 32093
8284b0c5 32094
e6cc62c6 32095cat >>confdefs.h <<\_ACEOF
10f2d63a 32096#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 32097_ACEOF
10f2d63a 32098
8284b0c5
MB
32099
32100
10f2d63a 32101if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 32102 cat >>confdefs.h <<\_ACEOF
10f2d63a 32103#define wxUSE_CONSTRAINTS 1
e6cc62c6 32104_ACEOF
10f2d63a
VZ
32105
32106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32107fi
32108
3879ecda 32109if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 32110 cat >>confdefs.h <<\_ACEOF
10f2d63a 32111#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 32112_ACEOF
10f2d63a 32113
1772d20c 32114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
32115fi
32116
32117if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 32118 cat >>confdefs.h <<\_ACEOF
10f2d63a 32119#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 32120_ACEOF
10f2d63a
VZ
32121
32122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32123 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32125 fi
32126fi
32127
32128if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 32129 cat >>confdefs.h <<\_ACEOF
10f2d63a 32130#define wxUSE_HELP 1
e6cc62c6 32131_ACEOF
10f2d63a
VZ
32132
32133 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 32134
77e13408 32135 if test "$wxUSE_MSW" = 1; then
031d8228 32136 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 32137 cat >>confdefs.h <<\_ACEOF
29fd3c0c 32138#define wxUSE_MS_HTML_HELP 1
e6cc62c6 32139_ACEOF
29fd3c0c 32140
3e44f09d 32141 fi
3379ed37 32142 fi
031d8228
VS
32143
32144 if test "$wxUSE_WXHTML_HELP" = "yes"; then
32145 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32146 cat >>confdefs.h <<\_ACEOF
031d8228 32147#define wxUSE_WXHTML_HELP 1
e6cc62c6 32148_ACEOF
031d8228
VS
32149
32150 else
e6cc62c6
VS
32151 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32152echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
32153 wxUSE_WXHTML_HELP=no
32154 fi
32155 fi
10f2d63a
VZ
32156fi
32157
32158if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32159 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32160 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32161echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 32162 else
e6cc62c6 32163 cat >>confdefs.h <<\_ACEOF
10f2d63a 32164#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 32165_ACEOF
10f2d63a
VZ
32166
32167 fi
32168 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32169fi
32170
e6cc62c6
VS
32171if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
32172 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32173echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32174 { (exit 1); exit 1; }; }
32175fi
32176
32177
32178if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
32179 -o "$wxUSE_CLIPBOARD" = "yes" \
32180 -o "$wxUSE_OLE" = "yes" \
32181 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32182
32183for ac_header in ole2.h
32184do
32185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32186if eval "test \"\${$as_ac_Header+set}\" = set"; then
32187 echo "$as_me:$LINENO: checking for $ac_header" >&5
32188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32189if eval "test \"\${$as_ac_Header+set}\" = set"; then
32190 echo $ECHO_N "(cached) $ECHO_C" >&6
32191fi
32192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32193echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32194else
32195 # Is the header compilable?
32196echo "$as_me:$LINENO: checking $ac_header usability" >&5
32197echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32198cat >conftest.$ac_ext <<_ACEOF
32199#line $LINENO "configure"
32200/* confdefs.h. */
32201_ACEOF
32202cat confdefs.h >>conftest.$ac_ext
32203cat >>conftest.$ac_ext <<_ACEOF
32204/* end confdefs.h. */
32205$ac_includes_default
32206#include <$ac_header>
32207_ACEOF
32208rm -f conftest.$ac_objext
32209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32210 (eval $ac_compile) 2>&5
32211 ac_status=$?
32212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213 (exit $ac_status); } &&
32214 { ac_try='test -s conftest.$ac_objext'
32215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32216 (eval $ac_try) 2>&5
32217 ac_status=$?
32218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219 (exit $ac_status); }; }; then
32220 ac_header_compiler=yes
32221else
32222 echo "$as_me: failed program was:" >&5
32223sed 's/^/| /' conftest.$ac_ext >&5
32224
32225ac_header_compiler=no
32226fi
32227rm -f conftest.$ac_objext conftest.$ac_ext
32228echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32229echo "${ECHO_T}$ac_header_compiler" >&6
32230
32231# Is the header present?
32232echo "$as_me:$LINENO: checking $ac_header presence" >&5
32233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32234cat >conftest.$ac_ext <<_ACEOF
32235#line $LINENO "configure"
32236/* confdefs.h. */
32237_ACEOF
32238cat confdefs.h >>conftest.$ac_ext
32239cat >>conftest.$ac_ext <<_ACEOF
32240/* end confdefs.h. */
32241#include <$ac_header>
32242_ACEOF
32243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32245 ac_status=$?
32246 grep -v '^ *+' conftest.er1 >conftest.err
32247 rm -f conftest.er1
32248 cat conftest.err >&5
32249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250 (exit $ac_status); } >/dev/null; then
32251 if test -s conftest.err; then
32252 ac_cpp_err=$ac_c_preproc_warn_flag
32253 else
32254 ac_cpp_err=
32255 fi
32256else
32257 ac_cpp_err=yes
32258fi
32259if test -z "$ac_cpp_err"; then
32260 ac_header_preproc=yes
32261else
32262 echo "$as_me: failed program was:" >&5
32263sed 's/^/| /' conftest.$ac_ext >&5
32264
32265 ac_header_preproc=no
32266fi
32267rm -f conftest.err conftest.$ac_ext
32268echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32269echo "${ECHO_T}$ac_header_preproc" >&6
32270
32271# So? What about this header?
32272case $ac_header_compiler:$ac_header_preproc in
32273 yes:no )
32274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32275echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32277echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32278 (
32279 cat <<\_ASBOX
32280## ------------------------------------ ##
32281## Report this to bug-autoconf@gnu.org. ##
32282## ------------------------------------ ##
32283_ASBOX
32284 ) |
32285 sed "s/^/$as_me: WARNING: /" >&2
32286 ;;
32287 no:yes )
32288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32291echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32293echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32294 (
32295 cat <<\_ASBOX
32296## ------------------------------------ ##
32297## Report this to bug-autoconf@gnu.org. ##
32298## ------------------------------------ ##
32299_ASBOX
32300 ) |
32301 sed "s/^/$as_me: WARNING: /" >&2
32302 ;;
32303esac
32304echo "$as_me:$LINENO: checking for $ac_header" >&5
32305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32306if eval "test \"\${$as_ac_Header+set}\" = set"; then
32307 echo $ECHO_N "(cached) $ECHO_C" >&6
32308else
32309 eval "$as_ac_Header=$ac_header_preproc"
32310fi
32311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32313
10f2d63a 32314fi
e6cc62c6
VS
32315if test `eval echo '${'$as_ac_Header'}'` = yes; then
32316 cat >>confdefs.h <<_ACEOF
32317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32318_ACEOF
10f2d63a 32319
10f2d63a 32320fi
e6cc62c6 32321
10f2d63a
VZ
32322done
32323
8284b0c5 32324
2b9bdf71
VZ
32325 if test "$ac_cv_header_ole2_h" = "yes" ; then
32326 if test "$GCC" = yes ; then
8284b0c5
MB
32327
32328
e6cc62c6
VS
32329 ac_ext=cc
32330ac_cpp='$CXXCPP $CPPFLAGS'
32331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32334
32335
32336 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32337echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32338 cat >conftest.$ac_ext <<_ACEOF
32339#line $LINENO "configure"
32340/* confdefs.h. */
32341_ACEOF
32342cat confdefs.h >>conftest.$ac_ext
32343cat >>conftest.$ac_ext <<_ACEOF
32344/* end confdefs.h. */
8284b0c5
MB
32345#include <windows.h>
32346 #include <ole2.h>
e6cc62c6
VS
32347int
32348main ()
32349{
8284b0c5 32350
e6cc62c6
VS
32351 ;
32352 return 0;
32353}
32354_ACEOF
32355rm -f conftest.$ac_objext
32356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32357 (eval $ac_compile) 2>&5
32358 ac_status=$?
32359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360 (exit $ac_status); } &&
32361 { ac_try='test -s conftest.$ac_objext'
32362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32363 (eval $ac_try) 2>&5
32364 ac_status=$?
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); }; }; then
32367 echo "$as_me:$LINENO: result: no" >&5
32368echo "${ECHO_T}no" >&6
32369else
32370 echo "$as_me: failed program was:" >&5
32371sed 's/^/| /' conftest.$ac_ext >&5
32372
32373echo "$as_me:$LINENO: result: yes" >&5
32374echo "${ECHO_T}yes" >&6
8284b0c5
MB
32375 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32376fi
e6cc62c6 32377rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32378 ac_ext=c
8284b0c5 32379ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32382ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32383
2b9bdf71 32384 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32385 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32386 cat >>confdefs.h <<\_ACEOF
4f11a343 32387#define wxUSE_OLE 1
e6cc62c6 32388_ACEOF
4f11a343 32389
8284b0c5 32390
2b9bdf71
VZ
32391 fi
32392
e6cc62c6 32393 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32394#define wxUSE_DATAOBJ 1
e6cc62c6 32395_ACEOF
2b9bdf71
VZ
32396
32397 else
e6cc62c6
VS
32398 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32399echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32400
32401 wxUSE_CLIPBOARD=no
32402 wxUSE_DRAG_AND_DROP=no
32403 wxUSE_DATAOBJ=no
3bce6687
JS
32404 wxUSE_OLE=no
32405 fi
32406
32407 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32408 cat >>confdefs.h <<\_ACEOF
3bce6687 32409#define wxUSE_METAFILE 1
e6cc62c6 32410_ACEOF
3bce6687
JS
32411
32412
e6cc62c6 32413 cat >>confdefs.h <<\_ACEOF
3bce6687 32414#define wxUSE_ENH_METAFILE 1
e6cc62c6 32415_ACEOF
3bce6687
JS
32416
32417 fi
32418fi
32419
2b9bdf71
VZ
32420if test "$wxUSE_IPC" = "yes"; then
32421 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32422 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32423echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32424 fi
32425
e6cc62c6 32426 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32427#define wxUSE_IPC 1
e6cc62c6 32428_ACEOF
2b9bdf71
VZ
32429
32430fi
32431
32432if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32433 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32434 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32435echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32436 wxUSE_CLIPBOARD=no
32437 fi
32438
32439 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32440 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32441#define wxUSE_CLIPBOARD 1
e6cc62c6 32442_ACEOF
2b9bdf71 32443
8284b0c5 32444
e6cc62c6 32445 cat >>confdefs.h <<\_ACEOF
673f4220 32446#define wxUSE_DATAOBJ 1
e6cc62c6 32447_ACEOF
673f4220 32448
6c657b52 32449 fi
2b9bdf71
VZ
32450fi
32451
32452if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32453 if test "$wxUSE_GTK" = 1; then
32454 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32455 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32456echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32457 wxUSE_DRAG_AND_DROP=no
32458 fi
32459 fi
32460
2b9bdf71 32461 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32462 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32463echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32464 wxUSE_DRAG_AND_DROP=no
32465 fi
32466
f79bd02d 32467 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32468 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32469echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32470 wxUSE_DRAG_AND_DROP=no
32471 fi
32472
6c657b52 32473 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32474 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32475echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32476 wxUSE_DRAG_AND_DROP=no
32477 fi
32478
10f2d63a 32479 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32480 cat >>confdefs.h <<\_ACEOF
10f2d63a 32481#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32482_ACEOF
10f2d63a
VZ
32483
32484 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32485 fi
32486
32487fi
32488
32489if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32490 cat >>confdefs.h <<\_ACEOF
10f2d63a 32491#define wxUSE_SPLINES 1
e6cc62c6 32492_ACEOF
10f2d63a
VZ
32493
32494fi
32495
8284b0c5 32496
1e6feb95
VZ
32497USES_CONTROLS=0
32498if test "$wxUSE_CONTROLS" = "yes"; then
32499 USES_CONTROLS=1
32500fi
32501
10f2d63a 32502if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32503 cat >>confdefs.h <<\_ACEOF
10f2d63a 32504#define wxUSE_ACCEL 1
e6cc62c6 32505_ACEOF
10f2d63a 32506
1e6feb95
VZ
32507 USES_CONTROLS=1
32508fi
32509
32510if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32511 cat >>confdefs.h <<\_ACEOF
1e6feb95 32512#define wxUSE_BUTTON 1
e6cc62c6 32513_ACEOF
1e6feb95
VZ
32514
32515 USES_CONTROLS=1
32516fi
32517
32518if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32519 cat >>confdefs.h <<\_ACEOF
1e6feb95 32520#define wxUSE_BMPBUTTON 1
e6cc62c6 32521_ACEOF
1e6feb95
VZ
32522
32523 USES_CONTROLS=1
32524fi
32525
32526if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32527 cat >>confdefs.h <<\_ACEOF
1e6feb95 32528#define wxUSE_CALENDARCTRL 1
e6cc62c6 32529_ACEOF
1e6feb95
VZ
32530
32531 USES_CONTROLS=1
32532 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32533fi
32534
32535if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32536 cat >>confdefs.h <<\_ACEOF
10f2d63a 32537#define wxUSE_CARET 1
e6cc62c6 32538_ACEOF
10f2d63a 32539
1e6feb95 32540 USES_CONTROLS=1
10f2d63a
VZ
32541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32542fi
32543
32544if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32545 cat >>confdefs.h <<\_ACEOF
10f2d63a 32546#define wxUSE_COMBOBOX 1
e6cc62c6 32547_ACEOF
10f2d63a 32548
1e6feb95 32549 USES_CONTROLS=1
10f2d63a
VZ
32550fi
32551
32552if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32553 cat >>confdefs.h <<\_ACEOF
10f2d63a 32554#define wxUSE_CHOICE 1
e6cc62c6 32555_ACEOF
10f2d63a 32556
1e6feb95 32557 USES_CONTROLS=1
10f2d63a
VZ
32558fi
32559
32560if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32561 cat >>confdefs.h <<\_ACEOF
10f2d63a 32562#define wxUSE_CHECKBOX 1
e6cc62c6 32563_ACEOF
10f2d63a 32564
1e6feb95 32565 USES_CONTROLS=1
10f2d63a
VZ
32566fi
32567
32568if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32569 cat >>confdefs.h <<\_ACEOF
10f2d63a 32570#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32571_ACEOF
10f2d63a 32572
1e6feb95 32573 USES_CONTROLS=1
10f2d63a
VZ
32574 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32575fi
32576
da494b40 32577if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32578 cat >>confdefs.h <<\_ACEOF
da494b40 32579#define wxUSE_DISPLAY 1
e6cc62c6 32580_ACEOF
da494b40
MB
32581
32582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32583fi
32584
10f2d63a 32585if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32586 cat >>confdefs.h <<\_ACEOF
10f2d63a 32587#define wxUSE_GAUGE 1
e6cc62c6 32588_ACEOF
10f2d63a 32589
1e6feb95 32590 USES_CONTROLS=1
10f2d63a
VZ
32591fi
32592
d6a55c4b 32593if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32594 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32595#define wxUSE_GRID 1
e6cc62c6 32596_ACEOF
10f2d63a 32597
1e6feb95 32598 USES_CONTROLS=1
d6a55c4b 32599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32600fi
32601
32602if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32603 cat >>confdefs.h <<\_ACEOF
10f2d63a 32604#define wxUSE_IMAGLIST 1
e6cc62c6 32605_ACEOF
10f2d63a
VZ
32606
32607fi
32608
32609if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32610 cat >>confdefs.h <<\_ACEOF
10f2d63a 32611#define wxUSE_LISTBOX 1
e6cc62c6 32612_ACEOF
10f2d63a 32613
1e6feb95 32614 USES_CONTROLS=1
10f2d63a
VZ
32615fi
32616
32617if test "$wxUSE_LISTCTRL" = "yes"; then
32618 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32619 cat >>confdefs.h <<\_ACEOF
10f2d63a 32620#define wxUSE_LISTCTRL 1
e6cc62c6 32621_ACEOF
10f2d63a 32622
1e6feb95 32623 USES_CONTROLS=1
10f2d63a
VZ
32624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32625 else
e6cc62c6
VS
32626 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32627echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32628 fi
32629fi
32630
32631if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32632 cat >>confdefs.h <<\_ACEOF
10f2d63a 32633#define wxUSE_NOTEBOOK 1
e6cc62c6 32634_ACEOF
10f2d63a 32635
1e6feb95 32636 USES_CONTROLS=1
10f2d63a
VZ
32637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32638fi
32639
24176f2c 32640
10f2d63a 32641if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32642 cat >>confdefs.h <<\_ACEOF
10f2d63a 32643#define wxUSE_RADIOBOX 1
e6cc62c6 32644_ACEOF
10f2d63a 32645
1e6feb95 32646 USES_CONTROLS=1
10f2d63a
VZ
32647fi
32648
32649if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32650 cat >>confdefs.h <<\_ACEOF
10f2d63a 32651#define wxUSE_RADIOBTN 1
e6cc62c6 32652_ACEOF
10f2d63a 32653
1e6feb95 32654 USES_CONTROLS=1
10f2d63a
VZ
32655fi
32656
32657if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32658 cat >>confdefs.h <<\_ACEOF
10f2d63a 32659#define wxUSE_SASH 1
e6cc62c6 32660_ACEOF
10f2d63a
VZ
32661
32662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32663fi
32664
32665if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 32666 cat >>confdefs.h <<\_ACEOF
10f2d63a 32667#define wxUSE_SCROLLBAR 1
e6cc62c6 32668_ACEOF
10f2d63a 32669
1e6feb95 32670 USES_CONTROLS=1
741a9306 32671 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
32672fi
32673
32674if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 32675 cat >>confdefs.h <<\_ACEOF
10f2d63a 32676#define wxUSE_SLIDER 1
e6cc62c6 32677_ACEOF
10f2d63a 32678
1e6feb95 32679 USES_CONTROLS=1
10f2d63a
VZ
32680fi
32681
32682if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 32683 cat >>confdefs.h <<\_ACEOF
10f2d63a 32684#define wxUSE_SPINBTN 1
e6cc62c6 32685_ACEOF
10f2d63a 32686
1e6feb95 32687 USES_CONTROLS=1
10f2d63a
VZ
32688fi
32689
56cfaa52 32690if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 32691 cat >>confdefs.h <<\_ACEOF
56cfaa52 32692#define wxUSE_SPINCTRL 1
e6cc62c6 32693_ACEOF
56cfaa52 32694
1e6feb95 32695 USES_CONTROLS=1
56cfaa52
RR
32696fi
32697
10f2d63a 32698if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 32699 cat >>confdefs.h <<\_ACEOF
10f2d63a 32700#define wxUSE_SPLITTER 1
e6cc62c6 32701_ACEOF
10f2d63a
VZ
32702
32703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32704fi
32705
32706if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 32707 cat >>confdefs.h <<\_ACEOF
10f2d63a 32708#define wxUSE_STATBMP 1
e6cc62c6 32709_ACEOF
10f2d63a 32710
1e6feb95 32711 USES_CONTROLS=1
10f2d63a
VZ
32712fi
32713
32714if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 32715 cat >>confdefs.h <<\_ACEOF
10f2d63a 32716#define wxUSE_STATBOX 1
e6cc62c6 32717_ACEOF
10f2d63a 32718
1e6feb95
VZ
32719 USES_CONTROLS=1
32720fi
32721
32722if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 32723 cat >>confdefs.h <<\_ACEOF
1e6feb95 32724#define wxUSE_STATTEXT 1
e6cc62c6 32725_ACEOF
1e6feb95
VZ
32726
32727 USES_CONTROLS=1
10f2d63a
VZ
32728fi
32729
32730if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 32731 cat >>confdefs.h <<\_ACEOF
10f2d63a 32732#define wxUSE_STATLINE 1
e6cc62c6 32733_ACEOF
10f2d63a 32734
89e6bf6d 32735 USES_CONTROLS=1
10f2d63a
VZ
32736fi
32737
32738if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 32739 cat >>confdefs.h <<\_ACEOF
10f2d63a 32740#define wxUSE_STATUSBAR 1
e6cc62c6 32741_ACEOF
10f2d63a 32742
1e6feb95 32743 USES_CONTROLS=1
698dcdb6 32744
2286341c 32745 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
32746fi
32747
32748if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 32749 cat >>confdefs.h <<\_ACEOF
10f2d63a 32750#define wxUSE_TAB_DIALOG 1
e6cc62c6 32751_ACEOF
10f2d63a
VZ
32752
32753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32754fi
32755
1e6feb95 32756if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 32757 cat >>confdefs.h <<\_ACEOF
1e6feb95 32758#define wxUSE_TEXTCTRL 1
e6cc62c6 32759_ACEOF
1e6feb95
VZ
32760
32761 USES_CONTROLS=1
32762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32763fi
32764
1db8dc4a 32765if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 32766 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32767 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32768echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
32769 wxUSE_TOGGLEBTN=no
32770 fi
32771 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32772 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32773echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
32774 wxUSE_TOGGLEBTN=no
32775 fi
32776
32777 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 32778 cat >>confdefs.h <<\_ACEOF
1db8dc4a 32779#define wxUSE_TOGGLEBTN 1
e6cc62c6 32780_ACEOF
1db8dc4a 32781
1e6feb95 32782 USES_CONTROLS=1
a45d7ab7 32783 fi
1db8dc4a
VZ
32784fi
32785
360d6699 32786if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 32787 cat >>confdefs.h <<\_ACEOF
360d6699 32788#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 32789_ACEOF
360d6699
VZ
32790
32791 wxUSE_TOOLBAR="yes"
1e6feb95 32792 USES_CONTROLS=1
360d6699
VZ
32793fi
32794
10f2d63a 32795if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 32796 cat >>confdefs.h <<\_ACEOF
10f2d63a 32797#define wxUSE_TOOLBAR 1
e6cc62c6 32798_ACEOF
10f2d63a 32799
1e6feb95 32800 USES_CONTROLS=1
698dcdb6 32801
360d6699
VZ
32802 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
32803 wxUSE_TOOLBAR_NATIVE="yes"
32804 fi
32805
1e6feb95 32806 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 32807 cat >>confdefs.h <<\_ACEOF
360d6699 32808#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 32809_ACEOF
360d6699 32810
1e6feb95
VZ
32811 USES_CONTROLS=1
32812 fi
32813
32814 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
32815fi
32816
10f2d63a
VZ
32817if test "$wxUSE_TOOLTIPS" = "yes"; then
32818 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32819 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
32820echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 32821 else
89e6bf6d 32822 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32823 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
32824echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 32825 else
e6cc62c6 32826 cat >>confdefs.h <<\_ACEOF
10f2d63a 32827#define wxUSE_TOOLTIPS 1
e6cc62c6 32828_ACEOF
10f2d63a
VZ
32829
32830 fi
32831 fi
32832fi
32833
32834if test "$wxUSE_TREECTRL" = "yes"; then
32835 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32836 cat >>confdefs.h <<\_ACEOF
10f2d63a 32837#define wxUSE_TREECTRL 1
e6cc62c6 32838_ACEOF
10f2d63a 32839
1e6feb95 32840 USES_CONTROLS=1
10f2d63a
VZ
32841 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
32842 else
e6cc62c6
VS
32843 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
32844echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32845 fi
32846fi
32847
9f41d601 32848if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 32849 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32850 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
32851echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 32852 else
485cf710 32853 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32854 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
32855echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 32856 else
3c011993 32857 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32858 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
32859echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32860 else
e6cc62c6 32861 cat >>confdefs.h <<\_ACEOF
9f41d601 32862#define wxUSE_POPUPWIN 1
e6cc62c6 32863_ACEOF
9f41d601 32864
8284b0c5 32865
3c011993
VZ
32866 USES_CONTROLS=1
32867 fi
485cf710 32868 fi
6abe4b65 32869 fi
9f41d601
RR
32870fi
32871
dd964dcc 32872if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 32873 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32874 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
32875echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32876 else
e6cc62c6 32877 cat >>confdefs.h <<\_ACEOF
dd964dcc 32878#define wxUSE_TIPWINDOW 1
e6cc62c6 32879_ACEOF
dd964dcc 32880
3c011993 32881 fi
dd964dcc
VZ
32882fi
32883
1e6feb95 32884if test "$USES_CONTROLS" = 1; then
e6cc62c6 32885 cat >>confdefs.h <<\_ACEOF
1e6feb95 32886#define wxUSE_CONTROLS 1
e6cc62c6 32887_ACEOF
10f2d63a 32888
10f2d63a
VZ
32889fi
32890
8284b0c5 32891
1e6feb95 32892
24fd6d87 32893if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 32894 cat >>confdefs.h <<\_ACEOF
24fd6d87 32895#define wxUSE_DRAGIMAGE 1
e6cc62c6 32896_ACEOF
24fd6d87
VZ
32897
32898 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
32899fi
32900
7bb2947d 32901if test "$wxUSE_ACCESSIBILITY" = "yes"; then
e6cc62c6 32902 cat >>confdefs.h <<\_ACEOF
7bb2947d 32903#define wxUSE_ACCESSIBILITY 1
e6cc62c6 32904_ACEOF
7bb2947d
MB
32905
32906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
32907fi
32908
1e6feb95 32909if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 32910 cat >>confdefs.h <<\_ACEOF
1e6feb95 32911#define wxUSE_MENUS 1
e6cc62c6 32912_ACEOF
10f2d63a 32913
1e6feb95 32914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
32915fi
32916
1e6feb95 32917if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32918 cat >>confdefs.h <<\_ACEOF
1e6feb95 32919#define wxUSE_METAFILE 1
e6cc62c6 32920_ACEOF
10f2d63a 32921
10f2d63a
VZ
32922fi
32923
1e6feb95 32924if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 32925 cat >>confdefs.h <<\_ACEOF
1e6feb95 32926#define wxUSE_MIMETYPE 1
e6cc62c6 32927_ACEOF
10f2d63a 32928
10f2d63a
VZ
32929fi
32930
3e44f09d 32931if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 32932 cat >>confdefs.h <<\_ACEOF
3e44f09d 32933#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 32934_ACEOF
3e44f09d 32935
131f235d
VS
32936if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
32937 "$TOOLKIT" = "MOTIF"; then
321d2b14
VZ
32938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
32939fi
32940
3e44f09d
VZ
32941fi
32942
10f2d63a 32943if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 32944 cat >>confdefs.h <<\_ACEOF
10f2d63a 32945#define wxUSE_MINIFRAME 1
e6cc62c6 32946_ACEOF
10f2d63a
VZ
32947
32948 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
32949fi
32950
4d264332 32951USE_HTML=0
10f2d63a 32952if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32953 cat >>confdefs.h <<\_ACEOF
10f2d63a 32954#define wxUSE_HTML 1
e6cc62c6 32955_ACEOF
10f2d63a 32956
4d264332 32957 USE_HTML=1
c74dc163 32958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
10f2d63a
VZ
32959fi
32960
32961if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 32962 cat >>confdefs.h <<\_ACEOF
1e487827 32963#define wxUSE_VALIDATORS 1
e6cc62c6 32964_ACEOF
703e0a69 32965
698dcdb6
VZ
32966 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
32967fi
32968
edae8572 32969if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 32970 cat >>confdefs.h <<\_ACEOF
edae8572 32971#define wxUSE_PALETTE 1
e6cc62c6 32972_ACEOF
edae8572
VZ
32973
32974fi
32975
698dcdb6 32976if test "$wxUSE_IMAGE" = "yes" ; then
e6cc62c6 32977 cat >>confdefs.h <<\_ACEOF
698dcdb6 32978#define wxUSE_IMAGE 1
e6cc62c6 32979_ACEOF
698dcdb6
VZ
32980
32981fi
32982
32983if test "$wxUSE_GIF" = "yes" ; then
e6cc62c6 32984 cat >>confdefs.h <<\_ACEOF
698dcdb6 32985#define wxUSE_GIF 1
e6cc62c6 32986_ACEOF
698dcdb6
VZ
32987
32988fi
32989
32990if test "$wxUSE_PCX" = "yes" ; then
e6cc62c6 32991 cat >>confdefs.h <<\_ACEOF
698dcdb6 32992#define wxUSE_PCX 1
e6cc62c6 32993_ACEOF
698dcdb6
VZ
32994
32995fi
32996
4b6b4dfc 32997if test "$wxUSE_IFF" = "yes" ; then
e6cc62c6 32998 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 32999#define wxUSE_IFF 1
e6cc62c6 33000_ACEOF
4b6b4dfc
RR
33001
33002fi
33003
698dcdb6 33004if test "$wxUSE_PNM" = "yes" ; then
e6cc62c6 33005 cat >>confdefs.h <<\_ACEOF
698dcdb6 33006#define wxUSE_PNM 1
e6cc62c6 33007_ACEOF
698dcdb6
VZ
33008
33009fi
33010
33011if test "$wxUSE_XPM" = "yes" ; then
e6cc62c6 33012 cat >>confdefs.h <<\_ACEOF
698dcdb6 33013#define wxUSE_XPM 1
e6cc62c6 33014_ACEOF
698dcdb6
VZ
33015
33016fi
33017
658974ae 33018if test "$wxUSE_ICO_CUR" = "yes" ; then
e6cc62c6 33019 cat >>confdefs.h <<\_ACEOF
658974ae 33020#define wxUSE_ICO_CUR 1
e6cc62c6 33021_ACEOF
658974ae
VS
33022
33023fi
33024
a72a4bfa
VS
33025if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33026 LIBS=" -lunicows $LIBS"
33027fi
33028
8284b0c5 33029
1e6feb95 33030if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 33031 cat >>confdefs.h <<\_ACEOF
1e6feb95 33032#define wxUSE_CHOICEDLG 1
e6cc62c6 33033_ACEOF
1e6feb95
VZ
33034
33035fi
33036
33037if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 33038 cat >>confdefs.h <<\_ACEOF
1e6feb95 33039#define wxUSE_COLOURDLG 1
e6cc62c6 33040_ACEOF
1e6feb95
VZ
33041
33042fi
33043
33044if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 33045 cat >>confdefs.h <<\_ACEOF
1e6feb95 33046#define wxUSE_FILEDLG 1
e6cc62c6 33047_ACEOF
1e6feb95
VZ
33048
33049fi
33050
8db37e06 33051if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 33052 cat >>confdefs.h <<\_ACEOF
8db37e06 33053#define wxUSE_FINDREPLDLG 1
e6cc62c6 33054_ACEOF
8db37e06
VZ
33055
33056fi
33057
1e6feb95 33058if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 33059 cat >>confdefs.h <<\_ACEOF
1e6feb95 33060#define wxUSE_FONTDLG 1
e6cc62c6 33061_ACEOF
1e6feb95
VZ
33062
33063fi
33064
33065if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 33066 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
33067 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33068echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 33069 else
e6cc62c6 33070 cat >>confdefs.h <<\_ACEOF
1e6feb95 33071#define wxUSE_DIRDLG 1
e6cc62c6 33072_ACEOF
1e6feb95 33073
1e6feb95
VZ
33074 fi
33075fi
33076
33077if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 33078 cat >>confdefs.h <<\_ACEOF
1e6feb95 33079#define wxUSE_MSGDLG 1
e6cc62c6 33080_ACEOF
1e6feb95
VZ
33081
33082fi
33083
33084if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 33085 cat >>confdefs.h <<\_ACEOF
1e6feb95 33086#define wxUSE_NUMBERDLG 1
e6cc62c6 33087_ACEOF
1e6feb95
VZ
33088
33089fi
33090
33091if test "$wxUSE_PROGRESSDLG" = "yes"; then
33092 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33093 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33094echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 33095 else
e6cc62c6 33096 cat >>confdefs.h <<\_ACEOF
1e6feb95 33097#define wxUSE_PROGRESSDLG 1
e6cc62c6 33098_ACEOF
1e6feb95
VZ
33099
33100 fi
33101fi
33102
cbca9943 33103if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 33104 cat >>confdefs.h <<\_ACEOF
cbca9943 33105#define wxUSE_SPLASH 1
e6cc62c6 33106_ACEOF
cbca9943
VZ
33107
33108fi
33109
1e6feb95
VZ
33110if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33111 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33112 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33113echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 33114 else
e6cc62c6 33115 cat >>confdefs.h <<\_ACEOF
1e6feb95 33116#define wxUSE_STARTUP_TIPS 1
e6cc62c6 33117_ACEOF
1e6feb95 33118
7b4a847f
RR
33119 fi
33120fi
579d8138 33121
8284b0c5 33122if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 33123 cat >>confdefs.h <<\_ACEOF
8284b0c5 33124#define wxUSE_TEXTDLG 1
e6cc62c6 33125_ACEOF
8284b0c5
MB
33126
33127fi
33128
33129if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 33130 cat >>confdefs.h <<\_ACEOF
8284b0c5 33131#define wxUSE_WIZARDDLG 1
e6cc62c6 33132_ACEOF
8284b0c5
MB
33133
33134 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33135fi
33136
33137
33138if test "$cross_compiling" = "yes"; then
33139 OSINFO="\"$host\""
33140else
33141 OSINFO=`uname -s -r -m`
33142 OSINFO="\"$OSINFO\""
33143fi
33144
e6cc62c6 33145cat >>confdefs.h <<_ACEOF
8284b0c5 33146#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33147_ACEOF
8284b0c5
MB
33148
33149
33150
33151if test "x$prefix" != "xNONE"; then
33152 wxPREFIX=$prefix
33153else
33154 wxPREFIX=$ac_default_prefix
33155fi
33156
e6cc62c6 33157cat >>confdefs.h <<_ACEOF
8284b0c5 33158#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33159_ACEOF
8284b0c5
MB
33160
33161
e6cc62c6 33162top_builddir_wxconfig=`pwd`
52c71b80 33163
8284b0c5
MB
33164
33165
edd891e2
VS
33166CORE_BASE_LIBS="net base"
33167CORE_GUI_LIBS="adv core"
33168
33169if test "$wxUSE_XML" = "yes" ; then
33170 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
33171fi
45293562
VS
33172if test "$wxUSE_ODBC" != "no" ; then
33173 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
33174 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
33175fi
33176if test "$wxUSE_HTML" = "yes" ; then
33177 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
33178fi
33179
33180
33181
33182
33183
33184
33185
8284b0c5
MB
33186
33187if test "$wxUSE_MAC" = 1 ; then
33188 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33189fi
ac0c4cc3
DE
33190if test "$wxUSE_COCOA" = 1 ; then
33191 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33192fi
8284b0c5
MB
33193
33194
2b5f62a0
VZ
33195LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33196
33197have_cos=0
33198have_floor=0
e6cc62c6 33199
2b5f62a0
VZ
33200for ac_func in cos
33201do
e6cc62c6
VS
33202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33203echo "$as_me:$LINENO: checking for $ac_func" >&5
33204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33205if eval "test \"\${$as_ac_var+set}\" = set"; then
33206 echo $ECHO_N "(cached) $ECHO_C" >&6
33207else
33208 cat >conftest.$ac_ext <<_ACEOF
33209#line $LINENO "configure"
33210/* confdefs.h. */
33211_ACEOF
33212cat confdefs.h >>conftest.$ac_ext
33213cat >>conftest.$ac_ext <<_ACEOF
33214/* end confdefs.h. */
2b5f62a0 33215/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33216 which can conflict with char $ac_func (); below.
33217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33218 <limits.h> exists even on freestanding compilers. */
33219#ifdef __STDC__
33220# include <limits.h>
33221#else
33222# include <assert.h>
33223#endif
2b5f62a0 33224/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33225#ifdef __cplusplus
33226extern "C"
33227{
33228#endif
2b5f62a0 33229/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33230 builtin and then its argument prototype would still apply. */
33231char $ac_func ();
2b5f62a0
VZ
33232/* The GNU C library defines this for functions which it implements
33233 to always fail with ENOSYS. Some functions are actually named
33234 something starting with __ and the normal name is an alias. */
33235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33236choke me
33237#else
e6cc62c6
VS
33238char (*f) () = $ac_func;
33239#endif
33240#ifdef __cplusplus
33241}
2b5f62a0
VZ
33242#endif
33243
e6cc62c6
VS
33244int
33245main ()
33246{
33247return f != $ac_func;
33248 ;
33249 return 0;
33250}
33251_ACEOF
33252rm -f conftest.$ac_objext conftest$ac_exeext
33253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33254 (eval $ac_link) 2>&5
33255 ac_status=$?
33256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257 (exit $ac_status); } &&
33258 { ac_try='test -s conftest$ac_exeext'
33259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33260 (eval $ac_try) 2>&5
33261 ac_status=$?
33262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33263 (exit $ac_status); }; }; then
33264 eval "$as_ac_var=yes"
33265else
33266 echo "$as_me: failed program was:" >&5
33267sed 's/^/| /' conftest.$ac_ext >&5
33268
33269eval "$as_ac_var=no"
33270fi
33271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33272fi
33273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33274echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33275if test `eval echo '${'$as_ac_var'}'` = yes; then
33276 cat >>confdefs.h <<_ACEOF
33277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33278_ACEOF
2b5f62a0 33279 have_cos=1
2b5f62a0
VZ
33280fi
33281done
33282
e6cc62c6 33283
2b5f62a0
VZ
33284for ac_func in floor
33285do
e6cc62c6
VS
33286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33287echo "$as_me:$LINENO: checking for $ac_func" >&5
33288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33289if eval "test \"\${$as_ac_var+set}\" = set"; then
33290 echo $ECHO_N "(cached) $ECHO_C" >&6
33291else
33292 cat >conftest.$ac_ext <<_ACEOF
33293#line $LINENO "configure"
33294/* confdefs.h. */
33295_ACEOF
33296cat confdefs.h >>conftest.$ac_ext
33297cat >>conftest.$ac_ext <<_ACEOF
33298/* end confdefs.h. */
2b5f62a0 33299/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33300 which can conflict with char $ac_func (); below.
33301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33302 <limits.h> exists even on freestanding compilers. */
33303#ifdef __STDC__
33304# include <limits.h>
33305#else
33306# include <assert.h>
33307#endif
2b5f62a0 33308/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33309#ifdef __cplusplus
33310extern "C"
33311{
33312#endif
2b5f62a0 33313/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33314 builtin and then its argument prototype would still apply. */
33315char $ac_func ();
2b5f62a0
VZ
33316/* The GNU C library defines this for functions which it implements
33317 to always fail with ENOSYS. Some functions are actually named
33318 something starting with __ and the normal name is an alias. */
33319#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33320choke me
33321#else
e6cc62c6
VS
33322char (*f) () = $ac_func;
33323#endif
33324#ifdef __cplusplus
33325}
2b5f62a0
VZ
33326#endif
33327
e6cc62c6
VS
33328int
33329main ()
33330{
33331return f != $ac_func;
33332 ;
33333 return 0;
33334}
33335_ACEOF
33336rm -f conftest.$ac_objext conftest$ac_exeext
33337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33338 (eval $ac_link) 2>&5
33339 ac_status=$?
33340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341 (exit $ac_status); } &&
33342 { ac_try='test -s conftest$ac_exeext'
33343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33344 (eval $ac_try) 2>&5
33345 ac_status=$?
33346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33347 (exit $ac_status); }; }; then
33348 eval "$as_ac_var=yes"
33349else
33350 echo "$as_me: failed program was:" >&5
33351sed 's/^/| /' conftest.$ac_ext >&5
33352
33353eval "$as_ac_var=no"
33354fi
33355rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33356fi
33357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33358echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33359if test `eval echo '${'$as_ac_var'}'` = yes; then
33360 cat >>confdefs.h <<_ACEOF
33361#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33362_ACEOF
2b5f62a0 33363 have_floor=1
2b5f62a0
VZ
33364fi
33365done
33366
e6cc62c6
VS
33367echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33368echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33369if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33370 echo "$as_me:$LINENO: result: yes" >&5
33371echo "${ECHO_T}yes" >&6
2b5f62a0 33372else
e6cc62c6
VS
33373 echo "$as_me:$LINENO: result: no" >&5
33374echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33375 LIBS="$LIBS -lm"
33376 # use different functions to avoid configure caching
33377 have_sin=0
33378 have_ceil=0
e6cc62c6
VS
33379
33380for ac_func in sin
2b5f62a0 33381do
e6cc62c6
VS
33382as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33383echo "$as_me:$LINENO: checking for $ac_func" >&5
33384echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33385if eval "test \"\${$as_ac_var+set}\" = set"; then
33386 echo $ECHO_N "(cached) $ECHO_C" >&6
33387else
33388 cat >conftest.$ac_ext <<_ACEOF
33389#line $LINENO "configure"
33390/* confdefs.h. */
33391_ACEOF
33392cat confdefs.h >>conftest.$ac_ext
33393cat >>conftest.$ac_ext <<_ACEOF
33394/* end confdefs.h. */
2b5f62a0 33395/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33396 which can conflict with char $ac_func (); below.
33397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33398 <limits.h> exists even on freestanding compilers. */
33399#ifdef __STDC__
33400# include <limits.h>
33401#else
33402# include <assert.h>
33403#endif
2b5f62a0 33404/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33405#ifdef __cplusplus
33406extern "C"
33407{
33408#endif
2b5f62a0 33409/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33410 builtin and then its argument prototype would still apply. */
33411char $ac_func ();
2b5f62a0
VZ
33412/* The GNU C library defines this for functions which it implements
33413 to always fail with ENOSYS. Some functions are actually named
33414 something starting with __ and the normal name is an alias. */
33415#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33416choke me
33417#else
e6cc62c6
VS
33418char (*f) () = $ac_func;
33419#endif
33420#ifdef __cplusplus
33421}
2b5f62a0
VZ
33422#endif
33423
e6cc62c6
VS
33424int
33425main ()
33426{
33427return f != $ac_func;
33428 ;
33429 return 0;
33430}
33431_ACEOF
33432rm -f conftest.$ac_objext conftest$ac_exeext
33433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33434 (eval $ac_link) 2>&5
33435 ac_status=$?
33436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437 (exit $ac_status); } &&
33438 { ac_try='test -s conftest$ac_exeext'
33439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33440 (eval $ac_try) 2>&5
33441 ac_status=$?
33442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33443 (exit $ac_status); }; }; then
33444 eval "$as_ac_var=yes"
33445else
33446 echo "$as_me: failed program was:" >&5
33447sed 's/^/| /' conftest.$ac_ext >&5
33448
33449eval "$as_ac_var=no"
33450fi
33451rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33452fi
33453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33454echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33455if test `eval echo '${'$as_ac_var'}'` = yes; then
33456 cat >>confdefs.h <<_ACEOF
33457#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33458_ACEOF
2b5f62a0 33459 have_sin=1
2b5f62a0
VZ
33460fi
33461done
33462
e6cc62c6
VS
33463
33464for ac_func in ceil
2b5f62a0 33465do
e6cc62c6
VS
33466as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33467echo "$as_me:$LINENO: checking for $ac_func" >&5
33468echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33469if eval "test \"\${$as_ac_var+set}\" = set"; then
33470 echo $ECHO_N "(cached) $ECHO_C" >&6
33471else
33472 cat >conftest.$ac_ext <<_ACEOF
33473#line $LINENO "configure"
33474/* confdefs.h. */
33475_ACEOF
33476cat confdefs.h >>conftest.$ac_ext
33477cat >>conftest.$ac_ext <<_ACEOF
33478/* end confdefs.h. */
2b5f62a0 33479/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33480 which can conflict with char $ac_func (); below.
33481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33482 <limits.h> exists even on freestanding compilers. */
33483#ifdef __STDC__
33484# include <limits.h>
33485#else
33486# include <assert.h>
33487#endif
2b5f62a0 33488/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33489#ifdef __cplusplus
33490extern "C"
33491{
33492#endif
2b5f62a0 33493/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33494 builtin and then its argument prototype would still apply. */
33495char $ac_func ();
2b5f62a0
VZ
33496/* The GNU C library defines this for functions which it implements
33497 to always fail with ENOSYS. Some functions are actually named
33498 something starting with __ and the normal name is an alias. */
33499#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33500choke me
33501#else
e6cc62c6
VS
33502char (*f) () = $ac_func;
33503#endif
33504#ifdef __cplusplus
33505}
2b5f62a0
VZ
33506#endif
33507
e6cc62c6
VS
33508int
33509main ()
33510{
33511return f != $ac_func;
33512 ;
33513 return 0;
33514}
33515_ACEOF
33516rm -f conftest.$ac_objext conftest$ac_exeext
33517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33518 (eval $ac_link) 2>&5
33519 ac_status=$?
33520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521 (exit $ac_status); } &&
33522 { ac_try='test -s conftest$ac_exeext'
33523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33524 (eval $ac_try) 2>&5
33525 ac_status=$?
33526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527 (exit $ac_status); }; }; then
33528 eval "$as_ac_var=yes"
33529else
33530 echo "$as_me: failed program was:" >&5
33531sed 's/^/| /' conftest.$ac_ext >&5
33532
33533eval "$as_ac_var=no"
33534fi
33535rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33536fi
33537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33538echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33539if test `eval echo '${'$as_ac_var'}'` = yes; then
33540 cat >>confdefs.h <<_ACEOF
33541#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33542_ACEOF
2b5f62a0 33543 have_ceil=1
2b5f62a0
VZ
33544fi
33545done
33546
e6cc62c6
VS
33547 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33548echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33549 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33550 echo "$as_me:$LINENO: result: yes" >&5
33551echo "${ECHO_T}yes" >&6
2b5f62a0 33552 else
e6cc62c6
VS
33553 echo "$as_me:$LINENO: result: no" >&5
33554echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33555 # not sure we should warn the user, crash, etc.
33556 fi
33557fi
8284b0c5
MB
33558
33559if test "$wxUSE_GUI" = "yes"; then
33560
e6cc62c6 33561
8284b0c5
MB
33562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33563 drawing dynamic erase event exec font image \
1dd02ac0 33564 minimal propsize rotate shaped widgets render"
b625909c
VS
33565
33566 if test "$wxUSE_MONOLITHIC" != "yes"; then
33567 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33568 fi
8284b0c5
MB
33569else
33570 SAMPLES_SUBDIRS="console"
33571fi
33572
33573
e6cc62c6 33574INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33575-I\${top_srcdir}/include \
33576$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33577$TOOLKIT_INCLUDE"
33578
fddeb06b
VS
33579if test "$GXX" = yes ; then
33580 CXXWARNINGS="-Wall"
33581 fi
33582
33583EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33584
95318f7d 33585CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
33586CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33587CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
33588
33589
fddeb06b 33590LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 33591EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 33592EXTRALIBS_XML="$EXPAT_LINK"
bb41dcbe 33593EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
33594if test "$wxUSE_GUI" = "yes"; then
33595 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33596fi
34b08d2c
VS
33597if test "$wxUSE_OPENGL" = "yes"; then
33598 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
33599fi
fddeb06b
VS
33600
33601LDFLAGS="$LDFLAGS $PROFILE"
33602
8284b0c5
MB
33603if test "$wxUSE_GTK" = 1; then
33604 WXCONFIG_INCLUDE=
33605else
33606 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33607fi
33608
67c13b6c
VS
33609WXCONFIG_EXTRALIBS="$LIBS"
33610
33611if test "$wxUSE_REGEX" = "builtin" ; then
33612 wxconfig_3rdparty="$wxconfig_3rdparty regex"
33613fi
33614if test "$wxUSE_EXPAT" = "builtin" ; then
33615 wxconfig_3rdparty="$wxconfig_3rdparty expat"
33616fi
33617if test "$wxUSE_ODBC" = "builtin" ; then
33618 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33619fi
33620if test "$wxUSE_LIBTIFF" = "builtin" ; then
33621 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
33622fi
33623if test "$wxUSE_LIBJPEG" = "builtin" ; then
33624 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
33625fi
33626if test "$wxUSE_LIBPNG" = "builtin" ; then
33627 wxconfig_3rdparty="$wxconfig_3rdparty png"
33628fi
33629if test "$wxUSE_ZLIB" = "builtin" ; then
33630 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
33631fi
bb41dcbe
VS
33632if test "$wxUSE_ODBC" = "builtin" ; then
33633 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33634fi
67c13b6c
VS
33635
33636for i in $wxconfig_3rdparty ; do
33637 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
33638done
33639
33640
fe0895cf
VS
33641if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33642 WXUNIV=1
33643else
33644 WXUNIV=0
8284b0c5
MB
33645fi
33646
8284b0c5
MB
33647
33648
33649
33650
33651
33652
33653
672abd7a 33654
9747f85d
VS
33655if test $wxUSE_MONOLITHIC = "yes" ; then
33656 MONOLITHIC=1
33657else
33658 MONOLITHIC=0
33659fi
8284b0c5 33660
bb41dcbe
VS
33661if test $wxUSE_ODBC != "no" ; then
33662 USE_ODBC=1
33663else
33664 USE_ODBC=0
33665fi
33666
029b47ad
VS
33667if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
33668 OFFICIAL_BUILD=1
33669else
33670 OFFICIAL_BUILD=0
33671fi
33672
8ee2dd05
VS
33673
33674
33675
8284b0c5
MB
33676
33677
33678
33679
33680
33681
c74dc163 33682
34b08d2c 33683
672abd7a 33684
cf615ebb 33685
6c67131a
VS
33686
33687
bb41dcbe 33688
fe0895cf 33689TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
33690
33691
33692
33693
33694
ea66c762 33695
0f1bc9c2 33696
fe0895cf 33697 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
33698
33699 if test -n "$ac_tool_prefix"; then
33700 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33701set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33702echo "$as_me:$LINENO: checking for $ac_word" >&5
33703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33704if test "${ac_cv_prog_RANLIB+set}" = set; then
33705 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 33706else
fe0895cf
VS
33707 if test -n "$RANLIB"; then
33708 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 33709else
e6cc62c6
VS
33710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33711for as_dir in $PATH
33712do
33713 IFS=$as_save_IFS
33714 test -z "$as_dir" && as_dir=.
33715 for ac_exec_ext in '' $ac_executable_extensions; do
33716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33717 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33719 break 2
33720 fi
33721done
33722done
33723
10f2d63a 33724fi
10f2d63a 33725fi
e6cc62c6 33726RANLIB=$ac_cv_prog_RANLIB
fe0895cf 33727if test -n "$RANLIB"; then
e6cc62c6
VS
33728 echo "$as_me:$LINENO: result: $RANLIB" >&5
33729echo "${ECHO_T}$RANLIB" >&6
33730else
33731 echo "$as_me:$LINENO: result: no" >&5
33732echo "${ECHO_T}no" >&6
33733fi
33734
33735fi
33736if test -z "$ac_cv_prog_RANLIB"; then
33737 ac_ct_RANLIB=$RANLIB
33738 # Extract the first word of "ranlib", so it can be a program name with args.
33739set dummy ranlib; ac_word=$2
33740echo "$as_me:$LINENO: checking for $ac_word" >&5
33741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33742if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33743 echo $ECHO_N "(cached) $ECHO_C" >&6
33744else
33745 if test -n "$ac_ct_RANLIB"; then
33746 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33747else
33748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33749for as_dir in $PATH
33750do
33751 IFS=$as_save_IFS
33752 test -z "$as_dir" && as_dir=.
33753 for ac_exec_ext in '' $ac_executable_extensions; do
33754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33755 ac_cv_prog_ac_ct_RANLIB="ranlib"
33756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33757 break 2
33758 fi
33759done
33760done
33761
33762 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33763fi
33764fi
33765ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33766if test -n "$ac_ct_RANLIB"; then
33767 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33768echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 33769else
e6cc62c6
VS
33770 echo "$as_me:$LINENO: result: no" >&5
33771echo "${ECHO_T}no" >&6
33772fi
33773
33774 RANLIB=$ac_ct_RANLIB
33775else
33776 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 33777fi
665bbe97 33778
fe0895cf
VS
33779 # Find a good install program. We prefer a C program (faster),
33780# so one script is as good as another. But avoid the broken or
33781# incompatible versions:
33782# SysV /etc/install, /usr/sbin/install
33783# SunOS /usr/etc/install
33784# IRIX /sbin/install
33785# AIX /bin/install
e6cc62c6 33786# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
33787# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
33788# AFS /usr/afsws/bin/install, which mishandles nonexistent args
33789# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
33790# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
33791echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
33792echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 33793if test -z "$INSTALL"; then
e6cc62c6
VS
33794if test "${ac_cv_path_install+set}" = set; then
33795 echo $ECHO_N "(cached) $ECHO_C" >&6
33796else
33797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33798for as_dir in $PATH
33799do
33800 IFS=$as_save_IFS
33801 test -z "$as_dir" && as_dir=.
33802 # Account for people who put trailing slashes in PATH elements.
33803case $as_dir/ in
33804 ./ | .// | /cC/* | \
33805 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
33806 /usr/ucb/* ) ;;
33807 *)
33808 # OSF1 and SCO ODT 3.0 have their own names for install.
33809 # Don't use installbsd from OSF since it installs stuff as root
33810 # by default.
33811 for ac_prog in ginstall scoinst install; do
33812 for ac_exec_ext in '' $ac_executable_extensions; do
33813 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
33814 if test $ac_prog = install &&
33815 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33816 # AIX install. It has an incompatible calling convention.
33817 :
33818 elif test $ac_prog = install &&
33819 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33820 # program-specific install script used by HP pwplus--don't use.
33821 :
33822 else
33823 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
33824 break 3
33825 fi
33826 fi
fe0895cf 33827 done
e6cc62c6
VS
33828 done
33829 ;;
33830esac
33831done
33832
fe0895cf
VS
33833
33834fi
33835 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 33836 INSTALL=$ac_cv_path_install
fe0895cf
VS
33837 else
33838 # As a last resort, use the slow shell script. We don't cache a
33839 # path for INSTALL within a source directory, because that will
33840 # break other packages using the cache if that directory is
33841 # removed, or if the path is relative.
e6cc62c6 33842 INSTALL=$ac_install_sh
fe0895cf
VS
33843 fi
33844fi
e6cc62c6
VS
33845echo "$as_me:$LINENO: result: $INSTALL" >&5
33846echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
33847
33848# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
33849# It thinks the first close brace ends the variable substitution.
33850test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
33851
e6cc62c6 33852test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
33853
33854test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
33855
e6cc62c6
VS
33856 echo "$as_me:$LINENO: checking whether ln -s works" >&5
33857echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
33858LN_S=$as_ln_s
33859if test "$LN_S" = "ln -s"; then
33860 echo "$as_me:$LINENO: result: yes" >&5
33861echo "${ECHO_T}yes" >&6
fe0895cf 33862else
e6cc62c6
VS
33863 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
33864echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
33865fi
33866
33867
e6cc62c6
VS
33868 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
33869echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
33870set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
33871if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
33872 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33873else
e6cc62c6 33874 cat >conftest.make <<\_ACEOF
fe0895cf 33875all:
e6cc62c6
VS
33876 @echo 'ac_maketemp="$(MAKE)"'
33877_ACEOF
fe0895cf 33878# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 33879eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
33880if test -n "$ac_maketemp"; then
33881 eval ac_cv_prog_make_${ac_make}_set=yes
33882else
33883 eval ac_cv_prog_make_${ac_make}_set=no
33884fi
e6cc62c6 33885rm -f conftest.make
fe0895cf
VS
33886fi
33887if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
33888 echo "$as_me:$LINENO: result: yes" >&5
33889echo "${ECHO_T}yes" >&6
fe0895cf
VS
33890 SET_MAKE=
33891else
e6cc62c6
VS
33892 echo "$as_me:$LINENO: result: no" >&5
33893echo "${ECHO_T}no" >&6
fe0895cf
VS
33894 SET_MAKE="MAKE=${MAKE-make}"
33895fi
33896
e6cc62c6
VS
33897
33898
fe0895cf
VS
33899 if test "$build" != "$host" ; then
33900 AR=$host_alias-ar
33901 STRIP=$host_alias-strip
33902 else
33903 # Extract the first word of "ar", so it can be a program name with args.
33904set dummy ar; ac_word=$2
e6cc62c6
VS
33905echo "$as_me:$LINENO: checking for $ac_word" >&5
33906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33907if test "${ac_cv_prog_AR+set}" = set; then
33908 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33909else
33910 if test -n "$AR"; then
33911 ac_cv_prog_AR="$AR" # Let the user override the test.
33912else
e6cc62c6
VS
33913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33914for as_dir in $PATH
33915do
33916 IFS=$as_save_IFS
33917 test -z "$as_dir" && as_dir=.
33918 for ac_exec_ext in '' $ac_executable_extensions; do
33919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33920 ac_cv_prog_AR="ar"
33921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33922 break 2
33923 fi
33924done
33925done
33926
fe0895cf
VS
33927 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
33928fi
33929fi
e6cc62c6 33930AR=$ac_cv_prog_AR
fe0895cf 33931if test -n "$AR"; then
e6cc62c6
VS
33932 echo "$as_me:$LINENO: result: $AR" >&5
33933echo "${ECHO_T}$AR" >&6
fe0895cf 33934else
e6cc62c6
VS
33935 echo "$as_me:$LINENO: result: no" >&5
33936echo "${ECHO_T}no" >&6
fe0895cf
VS
33937fi
33938
33939 # Extract the first word of "strip", so it can be a program name with args.
33940set dummy strip; ac_word=$2
e6cc62c6
VS
33941echo "$as_me:$LINENO: checking for $ac_word" >&5
33942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33943if test "${ac_cv_prog_STRIP+set}" = set; then
33944 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33945else
33946 if test -n "$STRIP"; then
33947 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
33948else
e6cc62c6
VS
33949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33950for as_dir in $PATH
33951do
33952 IFS=$as_save_IFS
33953 test -z "$as_dir" && as_dir=.
33954 for ac_exec_ext in '' $ac_executable_extensions; do
33955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33956 ac_cv_prog_STRIP="strip"
33957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33958 break 2
33959 fi
33960done
33961done
33962
fe0895cf
VS
33963 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
33964fi
33965fi
e6cc62c6 33966STRIP=$ac_cv_prog_STRIP
fe0895cf 33967if test -n "$STRIP"; then
e6cc62c6
VS
33968 echo "$as_me:$LINENO: result: $STRIP" >&5
33969echo "${ECHO_T}$STRIP" >&6
fe0895cf 33970else
e6cc62c6
VS
33971 echo "$as_me:$LINENO: result: no" >&5
33972echo "${ECHO_T}no" >&6
fe0895cf
VS
33973fi
33974
33975 fi
33976
33977 case ${host} in
33978 *-hp-hpux* )
33979 INSTALL_DIR="mkdir"
33980 ;;
33981 *) INSTALL_DIR="$INSTALL -d"
33982 ;;
33983 esac
e6cc62c6 33984
fe0895cf 33985
6b9d41a5
VS
33986 LDFLAGS_GUI=
33987 case ${host} in
33988 *-*-cygwin* | *-*-mingw32* )
33989 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
33990 esac
33991
33992
fe0895cf 33993 fi
e6cc62c6
VS
33994
33995 echo "$as_me:$LINENO: checking if make is GNU make" >&5
33996echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 33997if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 33998 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33999else
e6cc62c6 34000
fe0895cf
VS
34001 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
34002 egrep -s GNU > /dev/null); then
34003 bakefile_cv_prog_makeisgnu="yes"
34004 else
34005 bakefile_cv_prog_makeisgnu="no"
34006 fi
fe0895cf 34007
e6cc62c6 34008fi
49b0a3aa
VS
34009echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
34010echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
34011
34012 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
34013 IF_GNU_MAKE=""
34014 else
34015 IF_GNU_MAKE="#"
34016 fi
fe0895cf 34017
e6cc62c6
VS
34018
34019
fe0895cf
VS
34020 PLATFORM_UNIX=0
34021 PLATFORM_WIN32=0
34022 PLATFORM_MSDOS=0
34023 PLATFORM_MAC=0
34024 PLATFORM_MACOSX=0
e6cc62c6 34025
fe0895cf
VS
34026 case "${host}" in
34027 *-*-cygwin* | *-*-mingw32* )
34028 PLATFORM_WIN32=1
34029 ;;
34030 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34031 PLATFORM_MSDOS=1
34032 ;;
34033 powerpc-*-darwin* )
34034 PLATFORM_MAC=1
34035 PLATFORM_MACOSX=1
34036 ;;
34037 * )
34038 PLATFORM_UNIX=1
34039 ;;
34040 esac
34041
fe0895cf 34042
e6cc62c6
VS
34043
34044
34045
34046
34047
34048
fe0895cf 34049 SO_SUFFIX="so"
131f235d 34050 SO_SUFFIX_MODULE="so"
fe0895cf
VS
34051 EXEEXT=""
34052 DLLPREFIX=lib
131f235d 34053 DLLPREFIX_MODULE=
e6cc62c6 34054
fe0895cf
VS
34055 case "${host}" in
34056 *-hp-hpux* )
34057 SO_SUFFIX="sl"
131f235d 34058 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
34059 ;;
34060 *-*-aix* )
34061 SO_SUFFIX="a"
131f235d 34062 SO_SUFFIX_MODULE="a"
fe0895cf
VS
34063 ;;
34064 *-*-cygwin* | *-*-mingw32* )
34065 SO_SUFFIX="dll"
131f235d 34066 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
34067 EXEEXT=".exe"
34068 DLLPREFIX=""
34069 ;;
34070 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34071 EXEEXT=".exe"
34072 DLLPREFIX=""
34073 ;;
34074 powerpc-*-darwin* )
34075 SO_SUFFIX="dylib"
131f235d 34076 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
34077 ;;
34078 esac
34079
fe0895cf 34080
e6cc62c6
VS
34081
34082
34083
34084
131f235d
VS
34085
34086
fe0895cf
VS
34087 SHARED_LD_CC="\$(CC) -shared -o"
34088 SHARED_LD_CXX="\$(CXX) -shared -o"
34089
34090 if test "x$GCC" = "xyes"; then
34091 PIC_FLAG="-fPIC"
34092 fi
34093
34094 case "${host}" in
34095 *-hp-hpux* )
34096 if test "x$GCC" = "xyes"; then
34097 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
34098 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
34099 else
34100 LDFLAGS="$LDFLAGS -L/usr/lib"
34101
34102 SHARED_LD_CC="${CC} -b -o"
34103 SHARED_LD_CXX="${CXX} -b -o"
34104 PIC_FLAG="+Z"
34105 fi
34106 ;;
34107
34108 *-*-linux* )
34109 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
34110 echo "$as_me:$LINENO: checking for Intel compiler" >&5
34111echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
34112if test "${bakefile_cv_prog_icc+set}" = set; then
34113 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34114else
fe0895cf 34115
e6cc62c6
VS
34116 cat >conftest.$ac_ext <<_ACEOF
34117#line $LINENO "configure"
34118/* confdefs.h. */
34119_ACEOF
34120cat confdefs.h >>conftest.$ac_ext
34121cat >>conftest.$ac_ext <<_ACEOF
34122/* end confdefs.h. */
34123
34124int
34125main ()
34126{
fe0895cf
VS
34127
34128 #ifndef __INTEL_COMPILER
34129 #error Not icc
34130 #endif
e6cc62c6
VS
34131
34132 ;
34133 return 0;
34134}
34135_ACEOF
34136rm -f conftest.$ac_objext
34137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34138 (eval $ac_compile) 2>&5
34139 ac_status=$?
34140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34141 (exit $ac_status); } &&
34142 { ac_try='test -s conftest.$ac_objext'
34143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34144 (eval $ac_try) 2>&5
34145 ac_status=$?
34146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147 (exit $ac_status); }; }; then
fe0895cf
VS
34148 bakefile_cv_prog_icc=yes
34149else
e6cc62c6
VS
34150 echo "$as_me: failed program was:" >&5
34151sed 's/^/| /' conftest.$ac_ext >&5
34152
34153bakefile_cv_prog_icc=no
34154
fe0895cf 34155fi
e6cc62c6 34156rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 34157
e6cc62c6
VS
34158fi
34159echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34160echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
34161 if test "$bakefile_cv_prog_icc" = "yes"; then
34162 PIC_FLAG="-KPIC"
34163 fi
34164 fi
34165 ;;
34166
34167 *-*-solaris2* )
34168 if test "x$GCC" != xyes ; then
34169 SHARED_LD_CC="${CC} -G -o"
34170 SHARED_LD_CXX="${CXX} -G -o"
34171 PIC_FLAG="-KPIC"
34172 fi
34173 ;;
34174
34175 *-*-darwin* )
34176 CFLAGS="$CFLAGS -fno-common"
34177 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
34178
34179
fe0895cf
VS
34180 cat <<EOF >shared-ld-sh
34181#!/bin/sh
34182#-----------------------------------------------------------------------------
34183#-- Name: distrib/mac/shared-ld-sh
34184#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
34185#-- Author: Gilles Depeyrot
34186#-- Copyright: (c) 2002 Gilles Depeyrot
34187#-- Licence: any use permitted
34188#-----------------------------------------------------------------------------
34189
34190verbose=0
34191args=""
34192objects=""
131f235d 34193linking_flag="-dynamiclib"
fe0895cf
VS
34194
34195while test \${#} -gt 0; do
34196 case \${1} in
34197
34198 -v)
34199 verbose=1
34200 ;;
34201
34202 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34203 # collect these options and values
34204 args="\${args} \${1} \${2}"
34205 shift
34206 ;;
34207
34208 -l*|-L*|-flat_namespace)
34209 # collect these options
34210 args="\${args} \${1}"
34211 ;;
34212
131f235d
VS
34213 -dynamiclib|-bundle)
34214 linking_flag="\${1}"
fe0895cf
VS
34215 ;;
34216
34217 -*)
34218 echo "shared-ld: unhandled option '\${1}'"
34219 exit 1
34220 ;;
34221
4d264332 34222 *.o | *.a | *.dylib)
fe0895cf
VS
34223 # collect object files
34224 objects="\${objects} \${1}"
34225 ;;
34226
34227 *)
34228 echo "shared-ld: unhandled argument '\${1}'"
34229 exit 1
34230 ;;
34231
34232 esac
34233 shift
34234done
34235
34236#
34237# Link one module containing all the others
34238#
34239if test \${verbose} = 1; then
34240 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34241fi
34242c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34243status=\$?
34244if test \${status} != 0; then
34245 exit \${status}
34246fi
34247
34248#
34249# Link the shared library from the single module created
34250#
34251if test \${verbose} = 1; then
131f235d 34252 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 34253fi
131f235d 34254c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
34255status=\$?
34256if test \${status} != 0; then
34257 exit \${status}
34258fi
34259
34260#
34261# Remove intermediate module
34262#
34263rm -f master.\$\$.o
34264
34265exit 0
34266EOF
34267 chmod +x shared-ld-sh
34268
131f235d
VS
34269 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -undefined suppress -flat_namespace -o"
34270 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -undefined suppress -flat_namespace -o"
fe0895cf 34271 SHARED_LD_CXX="$SHARED_LD_CC"
131f235d 34272 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
fe0895cf
VS
34273 PIC_FLAG="-dynamic -fPIC"
34274 ;;
34275
34276 *-*-aix* )
34277 if test "x$GCC" != "xyes"; then
34278 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34279set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34280echo "$as_me:$LINENO: checking for $ac_word" >&5
34281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34282if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34283 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34284else
34285 if test -n "$AIX_CXX_LD"; then
34286 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34287else
e6cc62c6
VS
34288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34289for as_dir in $PATH
34290do
34291 IFS=$as_save_IFS
34292 test -z "$as_dir" && as_dir=.
34293 for ac_exec_ext in '' $ac_executable_extensions; do
34294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34295 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34297 break 2
34298 fi
34299done
34300done
34301
fe0895cf
VS
34302 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34303fi
34304fi
e6cc62c6 34305AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 34306if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
34307 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34308echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 34309else
e6cc62c6
VS
34310 echo "$as_me:$LINENO: result: no" >&5
34311echo "${ECHO_T}no" >&6
fe0895cf
VS
34312fi
34313
34314 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34315 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34316 fi
34317 ;;
34318
34319 *-*-beos* )
34320 SHARED_LD_CC="${LD} -shared -o"
34321 SHARED_LD_CXX="${LD} -shared -o"
34322 ;;
34323
34324 *-*-irix* )
34325 if test "x$GCC" != "xyes"; then
34326 PIC_FLAG="-KPIC"
34327 fi
34328 ;;
e6cc62c6 34329
fe0895cf
VS
34330 *-*-cygwin* | *-*-mingw32* )
34331 PIC_FLAG=""
34332 ;;
e6cc62c6 34333
fe0895cf
VS
34334 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34335 *-*-sunos4* | \
34336 *-*-osf* | \
34337 *-*-dgux5* | \
34338 *-*-sysv5* )
34339 ;;
34340
34341 *)
e6cc62c6
VS
34342 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34343echo "$as_me: error: unknown system type $host." >&2;}
34344 { (exit 1); exit 1; }; }
fe0895cf
VS
34345 esac
34346
131f235d
VS
34347 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
34348 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
34349 fi
34350 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 34351 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
34352 fi
34353
34354
34355
fe0895cf 34356
e6cc62c6
VS
34357
34358
34359
34360
fe0895cf
VS
34361 USE_SOVERSION=0
34362 USE_SOVERLINUX=0
34363 USE_SOVERSOLARIS=0
34364 USE_SOSYMLINKS=0
34365 USE_MACVERSION=0
34366 SONAME_FLAG=
34367
34368 case "${host}" in
34369 *-*-linux* )
34370 SONAME_FLAG="-Wl,-soname,"
34371 USE_SOVERSION=1
34372 USE_SOVERLINUX=1
34373 USE_SOSYMLINKS=1
34374 ;;
34375
34376 *-*-solaris2* )
34377 SONAME_FLAG="-h "
34378 USE_SOVERSION=1
34379 USE_SOVERSOLARIS=1
34380 USE_SOSYMLINKS=1
34381 ;;
34382
34383 *-*-darwin* )
34384 USE_MACVERSION=1
34385 USE_SOVERSION=1
34386 USE_SOSYMLINKS=1
e6cc62c6 34387 ;;
fe0895cf
VS
34388 esac
34389
fe0895cf 34390
e6cc62c6
VS
34391
34392
34393
34394
34395
34396
34397
49b0a3aa
VS
34398 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34399echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34400 DEPS_TRACKING=0
34401
fe0895cf 34402 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
34403 DEPSMODE=gcc
34404 DEPS_TRACKING=1
3e5c3c83
VS
34405 case "${host}" in
34406 powerpc-*-darwin* )
34407 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
34408 ;;
34409 * )
34410 DEPSFLAG_GCC="-MMD"
34411 ;;
34412 esac
49b0a3aa
VS
34413 echo "$as_me:$LINENO: result: gcc" >&5
34414echo "${ECHO_T}gcc" >&6
34415 else
34416 echo "$as_me:$LINENO: result: none" >&5
34417echo "${ECHO_T}none" >&6
34418 fi
34419
34420 if test $DEPS_TRACKING = 1 ; then
34421 cat <<EOF >bk-deps
34422#!/bin/sh
34423
45842500
VS
34424# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34425# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
34426#
34427# Permission is given to use this file in any way.
34428
34429DEPSMODE=$DEPSMODE
34430DEPSDIR=.deps
3e5c3c83 34431DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
34432
34433mkdir -p \$DEPSDIR
34434
34435if test \$DEPSMODE = gcc ; then
3e5c3c83 34436 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
34437 status=\${?}
34438 if test \${status} != 0 ; then
34439 exit \${status}
34440 fi
34441 # move created file to the location we want it in:
34442 while test \${#} -gt 0; do
34443 case "\${1}" in
34444 -o )
34445 shift
34446 objfile=\${1}
34447 ;;
34448 -* )
34449 ;;
34450 * )
34451 srcfile=\${1}
34452 ;;
34453 esac
34454 shift
34455 done
34456 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34457 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
34458 if test -f \$depfile ; then
34459 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34460 rm -f \$depfile
34461 else
34462 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34463 if test -f \$depfile ; then
4c8b7f4b 34464 sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
34465 rm -f \$depfile
34466 fi
34467 fi
49b0a3aa
VS
34468 exit 0
34469else
34470 \${*}
34471 exit \${?}
34472fi
34473EOF
34474 chmod +x bk-deps
fe0895cf 34475 fi
fe0895cf 34476
e6cc62c6
VS
34477
34478
34479
fe0895cf
VS
34480 RESCOMP=
34481 SETFILE=
34482
e6cc62c6 34483 case ${host} in
fe0895cf
VS
34484 *-*-cygwin* | *-*-mingw32* )
34485 if test "$build" != "$host" ; then
34486 RESCOMP=$host_alias-windres
34487 else
34488 # Extract the first word of "windres", so it can be a program name with args.
34489set dummy windres; ac_word=$2
e6cc62c6
VS
34490echo "$as_me:$LINENO: checking for $ac_word" >&5
34491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34492if test "${ac_cv_prog_RESCOMP+set}" = set; then
34493 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34494else
34495 if test -n "$RESCOMP"; then
34496 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34497else
e6cc62c6
VS
34498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34499for as_dir in $PATH
34500do
34501 IFS=$as_save_IFS
34502 test -z "$as_dir" && as_dir=.
34503 for ac_exec_ext in '' $ac_executable_extensions; do
34504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34505 ac_cv_prog_RESCOMP="windres"
34506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34507 break 2
34508 fi
34509done
34510done
34511
fe0895cf
VS
34512 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34513fi
34514fi
e6cc62c6 34515RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34516if test -n "$RESCOMP"; then
e6cc62c6
VS
34517 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34518echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34519else
e6cc62c6
VS
34520 echo "$as_me:$LINENO: result: no" >&5
34521echo "${ECHO_T}no" >&6
fe0895cf
VS
34522fi
34523
34524 fi
34525 ;;
e6cc62c6 34526
fe0895cf
VS
34527 *-*-darwin* )
34528 # Extract the first word of "Rez", so it can be a program name with args.
34529set dummy Rez; ac_word=$2
e6cc62c6
VS
34530echo "$as_me:$LINENO: checking for $ac_word" >&5
34531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34532if test "${ac_cv_prog_RESCOMP+set}" = set; then
34533 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34534else
34535 if test -n "$RESCOMP"; then
34536 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34537else
e6cc62c6
VS
34538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34539for as_dir in $PATH
34540do
34541 IFS=$as_save_IFS
34542 test -z "$as_dir" && as_dir=.
34543 for ac_exec_ext in '' $ac_executable_extensions; do
34544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34545 ac_cv_prog_RESCOMP="Rez"
34546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34547 break 2
34548 fi
34549done
34550done
34551
fe0895cf
VS
34552 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34553fi
34554fi
e6cc62c6 34555RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34556if test -n "$RESCOMP"; then
e6cc62c6
VS
34557 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34558echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34559else
e6cc62c6
VS
34560 echo "$as_me:$LINENO: result: no" >&5
34561echo "${ECHO_T}no" >&6
fe0895cf
VS
34562fi
34563
34564 # Extract the first word of "SetFile", so it can be a program name with args.
34565set dummy SetFile; ac_word=$2
e6cc62c6
VS
34566echo "$as_me:$LINENO: checking for $ac_word" >&5
34567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34568if test "${ac_cv_prog_SETFILE+set}" = set; then
34569 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34570else
34571 if test -n "$SETFILE"; then
34572 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34573else
e6cc62c6
VS
34574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34575for as_dir in $PATH
34576do
34577 IFS=$as_save_IFS
34578 test -z "$as_dir" && as_dir=.
34579 for ac_exec_ext in '' $ac_executable_extensions; do
34580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34581 ac_cv_prog_SETFILE="SetFile"
34582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34583 break 2
34584 fi
34585done
34586done
34587
fe0895cf
VS
34588 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34589fi
34590fi
e6cc62c6 34591SETFILE=$ac_cv_prog_SETFILE
fe0895cf 34592if test -n "$SETFILE"; then
e6cc62c6
VS
34593 echo "$as_me:$LINENO: result: $SETFILE" >&5
34594echo "${ECHO_T}$SETFILE" >&6
fe0895cf 34595else
e6cc62c6
VS
34596 echo "$as_me:$LINENO: result: no" >&5
34597echo "${ECHO_T}no" >&6
fe0895cf
VS
34598fi
34599
34600 ;;
34601 esac
34602
fe0895cf
VS
34603
34604
e6cc62c6
VS
34605
34606
34607
34608
45842500 34609
40b46a49
VS
34610
34611
45842500
VS
34612 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
34613if test "${enable_precomp_headers+set}" = set; then
34614 enableval="$enable_precomp_headers"
34615 bk_use_pch="$enableval"
34616fi;
34617
34618 GCC_PCH=0
34619
34620 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
34621 if test "x$GCC" = "xyes"; then
34622 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
34623echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
34624 cat >conftest.$ac_ext <<_ACEOF
34625#line $LINENO "configure"
34626/* confdefs.h. */
34627_ACEOF
34628cat confdefs.h >>conftest.$ac_ext
34629cat >>conftest.$ac_ext <<_ACEOF
34630/* end confdefs.h. */
34631
34632int
34633main ()
34634{
34635
8bcf2d20
VS
34636 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
34637 #error "no pch support"
34638 #endif
34639 #if (__GNUC__ < 3)
34640 #error "no pch support"
34641 #endif
34642 #if (__GNUC__ == 3) && \
34643 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
34644 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
34645 #error "no pch support"
45842500
VS
34646 #endif
34647
34648 ;
34649 return 0;
34650}
34651_ACEOF
34652rm -f conftest.$ac_objext
34653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34654 (eval $ac_compile) 2>&5
34655 ac_status=$?
34656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34657 (exit $ac_status); } &&
34658 { ac_try='test -s conftest.$ac_objext'
34659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34660 (eval $ac_try) 2>&5
34661 ac_status=$?
34662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663 (exit $ac_status); }; }; then
34664
34665 echo "$as_me:$LINENO: result: yes" >&5
34666echo "${ECHO_T}yes" >&6
34667 CPPFLAGS="-fpch-deps $CPPFLAGS"
34668 GCC_PCH=1
34669
34670else
34671 echo "$as_me: failed program was:" >&5
34672sed 's/^/| /' conftest.$ac_ext >&5
34673
34674
34675 echo "$as_me:$LINENO: result: no" >&5
34676echo "${ECHO_T}no" >&6
34677
34678fi
34679rm -f conftest.$ac_objext conftest.$ac_ext
34680 if test $GCC_PCH = 1 ; then
34681 cat <<EOF >bk-make-pch
34682#!/bin/sh
34683
34684# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34685# script. It is used to generated precompiled headers.
34686#
34687# Permission is given to use this file in any way.
34688
34689outfile="\${1}"
34690header="\${2}"
34691shift
34692shift
34693
34694compiler=
34695headerfile=
34696while test \${#} -gt 0; do
34697 case "\${1}" in
34698 -I* )
34699 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
34700 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
34701 headerfile="\${incdir}/\${header}"
34702 fi
34703 ;;
34704 esac
34705 compiler="\${compiler} \${1}"
34706 shift
34707done
34708
34709if test "x\${headerfile}" = "x" ; then
34710 echo "error: can't find header \${header} in include paths" >2
34711else
34712 if test -f \${outfile} ; then
34713 rm -f \${outfile}
34714 else
34715 mkdir -p \`dirname \${outfile}\`
34716 fi
34717 depsfile=".deps/\`basename \${outfile}\`.d"
34718 mkdir -p .deps
34719 # can do this because gcc is >= 3.4:
34720 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
34721 exit \${?}
34722fi
34723EOF
34724 chmod +x bk-make-pch
34725 fi
34726 fi
34727 fi
34728
34729
34730
34731
34732
d78c94f2 34733 COND_BUILD_DEBUG="#"
6f628073 34734 if test "x$BUILD" = "xdebug" ; then
d78c94f2 34735 COND_BUILD_DEBUG=""
6f628073
VS
34736 fi
34737
6c67131a
VS
34738 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
34739 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
34740 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
34741 fi
34742
34743 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
34744 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
34745 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
34746 fi
34747
d78c94f2 34748 COND_BUILD_RELEASE="#"
6f628073 34749 if test "x$BUILD" = "xrelease" ; then
d78c94f2 34750 COND_BUILD_RELEASE=""
6b9d41a5
VS
34751 fi
34752
6c67131a
VS
34753 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
34754 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
34755 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
34756 fi
34757
34758 COND_DEBUG_FLAG_1="#"
34759 if test "x$DEBUG_FLAG" = "x1" ; then
34760 COND_DEBUG_FLAG_1=""
34761 fi
34762
34763 COND_DEBUG_INFO_0="#"
34764 if test "x$DEBUG_INFO" = "x0" ; then
34765 COND_DEBUG_INFO_0=""
34766 fi
34767
34768 COND_DEBUG_INFO_1="#"
34769 if test "x$DEBUG_INFO" = "x1" ; then
34770 COND_DEBUG_INFO_1=""
34771 fi
34772
f95cd8fa
VS
34773 COND_DEPS_TRACKING_0="#"
34774 if test "x$DEPS_TRACKING" = "x0" ; then
34775 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
34776 fi
34777
8ee2dd05
VS
34778 COND_DEPS_TRACKING_1="#"
34779 if test "x$DEPS_TRACKING" = "x1" ; then
34780 COND_DEPS_TRACKING_1=""
34781 fi
34782
45842500
VS
34783 COND_GCC_PCH_1="#"
34784 if test "x$GCC_PCH" = "x1" ; then
34785 COND_GCC_PCH_1=""
34786 fi
34787
6f628073
VS
34788 COND_MONOLITHIC_0="#"
34789 if test "x$MONOLITHIC" = "x0" ; then
34790 COND_MONOLITHIC_0=""
6b9d41a5
VS
34791 fi
34792
6f628073
VS
34793 COND_MONOLITHIC_0_SHARED_0="#"
34794 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
34795 COND_MONOLITHIC_0_SHARED_0=""
34796 fi
34797
34798 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
34799 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
34800 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 34801 fi
e6cc62c6 34802
8772a1a7
VS
34803 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
34804 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
34805 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
34806 fi
34807
250700e4
RD
34808 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
34809 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
34810 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
34811 fi
34812
eb69fda5
VS
34813 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
34814 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
34815 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
34816 fi
34817
8ee2dd05
VS
34818 COND_MONOLITHIC_0_SHARED_1="#"
34819 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
34820 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 34821 fi
e6cc62c6 34822
6f628073
VS
34823 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
34824 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
34825 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
34826 fi
34827
8772a1a7
VS
34828 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
34829 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
34830 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
34831 fi
34832
250700e4
RD
34833 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
34834 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
34835 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
34836 fi
34837
eb69fda5
VS
34838 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
34839 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
34840 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
34841 fi
34842
3af038c0
VS
34843 COND_MONOLITHIC_1="#"
34844 if test "x$MONOLITHIC" = "x1" ; then
34845 COND_MONOLITHIC_1=""
34846 fi
34847
6f628073
VS
34848 COND_MONOLITHIC_1_SHARED_0="#"
34849 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
34850 COND_MONOLITHIC_1_SHARED_0=""
34851 fi
34852
34853 COND_MONOLITHIC_1_SHARED_1="#"
34854 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
34855 COND_MONOLITHIC_1_SHARED_1=""
34856 fi
34857
3af038c0
VS
34858 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
34859 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
34860 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
34861 fi
34862
34863 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
34864 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
34865 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
34866 fi
34867
6f628073
VS
34868 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
34869 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
34870 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
34871 fi
34872
3af038c0
VS
34873 COND_PLATFORM_MACOSX_1="#"
34874 if test "x$PLATFORM_MACOSX" = "x1" ; then
34875 COND_PLATFORM_MACOSX_1=""
34876 fi
34877
250700e4
RD
34878 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
34879 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
34880 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
34881 fi
34882
34883 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
34884 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
34885 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
34886 fi
34887
34888 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
34889 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
34890 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
34891 fi
34892
8ee2dd05
VS
34893 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
34894 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
34895 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
34896 fi
34897
45842500
VS
34898 COND_PLATFORM_MAC_1="#"
34899 if test "x$PLATFORM_MAC" = "x1" ; then
34900 COND_PLATFORM_MAC_1=""
34901 fi
34902
8772a1a7
VS
34903 COND_PLATFORM_UNIX_0="#"
34904 if test "x$PLATFORM_UNIX" = "x0" ; then
34905 COND_PLATFORM_UNIX_0=""
34906 fi
34907
3af038c0
VS
34908 COND_PLATFORM_UNIX_1="#"
34909 if test "x$PLATFORM_UNIX" = "x1" ; then
34910 COND_PLATFORM_UNIX_1=""
34911 fi
34912
34913 COND_PLATFORM_WIN32_0="#"
34914 if test "x$PLATFORM_WIN32" = "x0" ; then
34915 COND_PLATFORM_WIN32_0=""
34916 fi
34917
34918 COND_PLATFORM_WIN32_1="#"
34919 if test "x$PLATFORM_WIN32" = "x1" ; then
34920 COND_PLATFORM_WIN32_1=""
34921 fi
34922
45842500
VS
34923 COND_SHARED_0="#"
34924 if test "x$SHARED" = "x0" ; then
34925 COND_SHARED_0=""
34926 fi
34927
250700e4
RD
34928 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
34929 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
34930 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
34931 fi
34932
52a5a009
VS
34933 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
34934 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
34935 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
34936 fi
34937
34938 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
34939 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
34940 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
34941 fi
34942
34943 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
34944 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
34945 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
34946 fi
34947
34948 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
34949 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
34950 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
34951 fi
34952
34953 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
34954 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
34955 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
34956 fi
34957
34958 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
34959 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
34960 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
34961 fi
34962
34963 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
34964 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
34965 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
34966 fi
34967
45842500
VS
34968 COND_SHARED_1="#"
34969 if test "x$SHARED" = "x1" ; then
34970 COND_SHARED_1=""
34971 fi
34972
250700e4
RD
34973 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
34974 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
34975 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
34976 fi
34977
6f628073
VS
34978 COND_TOOLKIT_COCOA="#"
34979 if test "x$TOOLKIT" = "xCOCOA" ; then
34980 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
34981 fi
34982
6f628073
VS
34983 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
34984 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
34985 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
34986 fi
34987
6f628073
VS
34988 COND_TOOLKIT_GTK="#"
34989 if test "x$TOOLKIT" = "xGTK" ; then
34990 COND_TOOLKIT_GTK=""
f95cd8fa
VS
34991 fi
34992
6f628073
VS
34993 COND_TOOLKIT_GTK_USE_GUI_1="#"
34994 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
34995 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
34996 fi
34997
6f628073
VS
34998 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
34999 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35000 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35001 fi
35002
3af038c0
VS
35003 COND_TOOLKIT_MAC="#"
35004 if test "x$TOOLKIT" = "xMAC" ; then
35005 COND_TOOLKIT_MAC=""
35006 fi
35007
8772a1a7
VS
35008 COND_TOOLKIT_MAC_USE_GUI_1="#"
35009 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
35010 COND_TOOLKIT_MAC_USE_GUI_1=""
35011 fi
35012
6f628073
VS
35013 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
35014 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35015 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35016 fi
35017
6f628073
VS
35018 COND_TOOLKIT_MGL="#"
35019 if test "x$TOOLKIT" = "xMGL" ; then
35020 COND_TOOLKIT_MGL=""
8ee2dd05
VS
35021 fi
35022
6f628073
VS
35023 COND_TOOLKIT_MGL_USE_GUI_1="#"
35024 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
35025 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
35026 fi
35027
6f628073
VS
35028 COND_TOOLKIT_MOTIF="#"
35029 if test "x$TOOLKIT" = "xMOTIF" ; then
35030 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
35031 fi
35032
6f628073
VS
35033 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
35034 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
35035 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 35036 fi
e6cc62c6 35037
6f628073
VS
35038 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
35039 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35040 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35041 fi
35042
6f628073
VS
35043 COND_TOOLKIT_MSW="#"
35044 if test "x$TOOLKIT" = "xMSW" ; then
35045 COND_TOOLKIT_MSW=""
8ee2dd05
VS
35046 fi
35047
6f628073
VS
35048 COND_TOOLKIT_MSW_USE_GUI_1="#"
35049 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
35050 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 35051 fi
e6cc62c6 35052
6f628073
VS
35053 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
35054 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35055 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 35056 fi
e6cc62c6 35057
6f628073
VS
35058 COND_TOOLKIT_OS2="#"
35059 if test "x$TOOLKIT" = "xOS2" ; then
35060 COND_TOOLKIT_OS2=""
9747f85d
VS
35061 fi
35062
8772a1a7
VS
35063 COND_TOOLKIT_OS2_USE_GUI_1="#"
35064 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" ; then
35065 COND_TOOLKIT_OS2_USE_GUI_1=""
35066 fi
35067
6f628073
VS
35068 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#"
35069 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35070 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0=""
f95cd8fa
VS
35071 fi
35072
6f628073
VS
35073 COND_TOOLKIT_X11="#"
35074 if test "x$TOOLKIT" = "xX11" ; then
35075 COND_TOOLKIT_X11=""
9747f85d
VS
35076 fi
35077
6f628073
VS
35078 COND_TOOLKIT_X11_USE_GUI_1="#"
35079 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
35080 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
35081 fi
35082
3af038c0
VS
35083 COND_UNICODE_1="#"
35084 if test "x$UNICODE" = "x1" ; then
35085 COND_UNICODE_1=""
35086 fi
35087
35088 COND_USE_GUI_0="#"
35089 if test "x$USE_GUI" = "x0" ; then
35090 COND_USE_GUI_0=""
35091 fi
35092
35093 COND_USE_GUI_1="#"
35094 if test "x$USE_GUI" = "x1" ; then
35095 COND_USE_GUI_1=""
35096 fi
35097
e6cc62c6 35098 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
35099 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35100 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 35101 fi
e6cc62c6
VS
35102
35103 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
35104 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
35105 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
35106 fi
35107
66a96744
VS
35108 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35109 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35110 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35111 fi
35112
35113 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35114 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35115 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35116 fi
35117
35118 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35119 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35120 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35121 fi
35122
6f628073
VS
35123 COND_USE_SOSYMLINKS_1="#"
35124 if test "x$USE_SOSYMLINKS" = "x1" ; then
35125 COND_USE_SOSYMLINKS_1=""
b625909c
VS
35126 fi
35127
6f628073
VS
35128 COND_USE_SOVERLINUX_1="#"
35129 if test "x$USE_SOVERLINUX" = "x1" ; then
35130 COND_USE_SOVERLINUX_1=""
b625909c
VS
35131 fi
35132
6f628073
VS
35133 COND_USE_SOVERSION_0="#"
35134 if test "x$USE_SOVERSION" = "x0" ; then
35135 COND_USE_SOVERSION_0=""
fddeb06b 35136 fi
fe0895cf 35137
6f628073
VS
35138 COND_USE_SOVERSOLARIS_1="#"
35139 if test "x$USE_SOVERSOLARIS" = "x1" ; then
35140 COND_USE_SOVERSOLARIS_1=""
fddeb06b 35141 fi
fe0895cf 35142
3af038c0
VS
35143 COND_WXUNIV_1="#"
35144 if test "x$WXUNIV" = "x1" ; then
35145 COND_WXUNIV_1=""
35146 fi
35147
66a96744
VS
35148 COND_WXUSE_EXPAT_BUILTIN="#"
35149 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
35150 COND_WXUSE_EXPAT_BUILTIN=""
35151 fi
35152
02980527
VS
35153 COND_WXUSE_LIBJPEG_BUILTIN="#"
35154 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35155 COND_WXUSE_LIBJPEG_BUILTIN=""
35156 fi
35157
35158 COND_WXUSE_LIBPNG_BUILTIN="#"
35159 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35160 COND_WXUSE_LIBPNG_BUILTIN=""
35161 fi
35162
35163 COND_WXUSE_LIBTIFF_BUILTIN="#"
35164 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35165 COND_WXUSE_LIBTIFF_BUILTIN=""
35166 fi
35167
35168 COND_WXUSE_ODBC_BUILTIN="#"
35169 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
35170 COND_WXUSE_ODBC_BUILTIN=""
35171 fi
35172
35173 COND_WXUSE_REGEX_BUILTIN="#"
35174 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
35175 COND_WXUSE_REGEX_BUILTIN=""
35176 fi
35177
35178 COND_WXUSE_ZLIB_BUILTIN="#"
35179 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
35180 COND_WXUSE_ZLIB_BUILTIN=""
35181 fi
35182
1772d20c 35183
fe0895cf 35184
fe0895cf 35185
fe0895cf 35186
45842500
VS
35187if test $GCC_PCH = 1 ; then
35188 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
35189else
35190 case "${host}" in
35191 powerpc-*-darwin* )
35192 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
35193 ;;
45842500
VS
35194 esac
35195fi
2c6f14e1
VS
35196case "${host}" in
35197 powerpc-*-darwin* )
35198 CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX"
35199 ;;
35200esac
fe0895cf
VS
35201
35202
fddeb06b 35203SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
35204
35205
35206
35207
35208
35209
35210
35211
35212
35213
35214
35215
35216
35217
35218
35219
35220
35221
35222
35223
35224
35225
35226
35227
35228
35229
35230
35231
35232
35233
35234
35235
35236
35237
35238
35239
35240
35241
35242
35243
35244
35245
35246
35247
35248
35249
35250
35251
35252
35253
35254
35255
35256
35257
35258
35259
35260
35261
35262
35263
35264
35265
35266
35267
35268
35269
35270
35271
35272
35273
35274
35275
35276
35277
35278
35279
35280
35281
35282
35283
35284
35285
35286
35287
35288
35289
35290
35291
35292
35293
35294
35295
35296
35297
fe0895cf 35298
f0290fca
VS
35299
35300
67c13b6c 35301
e6cc62c6
VS
35302
35303
35304echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35305echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35306set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
35307if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35308 echo $ECHO_N "(cached) $ECHO_C" >&6
35309else
35310 cat >conftest.make <<\_ACEOF
35311all:
35312 @echo 'ac_maketemp="$(MAKE)"'
35313_ACEOF
35314# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35315eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35316if test -n "$ac_maketemp"; then
35317 eval ac_cv_prog_make_${ac_make}_set=yes
35318else
35319 eval ac_cv_prog_make_${ac_make}_set=no
35320fi
35321rm -f conftest.make
35322fi
35323if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35324 echo "$as_me:$LINENO: result: yes" >&5
35325echo "${ECHO_T}yes" >&6
35326 SET_MAKE=
35327else
35328 echo "$as_me:$LINENO: result: no" >&5
35329echo "${ECHO_T}no" >&6
35330 SET_MAKE="MAKE=${MAKE-make}"
35331fi
35332
35333
35334if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
35335 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
35336fi
35337
35338 ac_config_headers="$ac_config_headers setup.h"
35339
35340
81345eef 35341 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
35342
35343
35344 ac_config_commands="$ac_config_commands default"
35345
35346
9de9b8f0 35347
6c3e36af
VZ
35348if test "$wxUSE_GUI" = "yes"; then
35349 SUBDIRS="samples demos utils contrib"
35350else SUBDIRS="samples utils"
35351fi
e6cc62c6 35352
166263e6 35353for subdir in `echo $SUBDIRS`; do
9747f85d 35354 if test -d ${srcdir}/${subdir} ; then
6c3e36af 35355 if test "$wxUSE_GUI" = "yes"; then
166263e6 35356 if test ${subdir} = "samples"; then
8772a1a7
VS
35357 makefiles="samples/Makefile.in $makefiles"
35358 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
35359 if test -d $srcdir/samples/$sample; then
35360 makefiles="samples/$sample/Makefile.in $makefiles"
35361 fi
35362 done
35363 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
35364 fi
6c3e36af 35365 else if test ${subdir} = "samples"; then
8772a1a7 35366 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af
VZ
35367 else makefiles="utils/HelpGen/Makefile.in \
35368 utils/HelpGen/src/Makefile.in \
35369 utils/makegen/Makefile.in"
35370 fi
35371 fi
35372
9747f85d
VS
35373 for mkin in $makefiles ; do
35374 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
35375 ac_config_files="$ac_config_files $mk"
e6cc62c6 35376
9747f85d
VS
35377 done
35378 fi
35379done
e6cc62c6 35380
9de9b8f0 35381
e6cc62c6
VS
35382cat >confcache <<\_ACEOF
35383# This file is a shell script that caches the results of configure
35384# tests run on this system so they can be shared between configure
35385# scripts and configure runs, see configure's option --config-cache.
35386# It is not useful on other systems. If it contains results you don't
35387# want to keep, you may remove or edit it.
35388#
35389# config.status only pays attention to the cache file if you give it
35390# the --recheck option to rerun configure.
35391#
35392# `ac_cv_env_foo' variables (set or unset) will be overridden when
35393# loading this file, other *unset* `ac_cv_foo' will be assigned the
35394# following values.
35395
35396_ACEOF
35397
35398# The following way of writing the cache mishandles newlines in values,
35399# but we know of no workaround that is simple, portable, and efficient.
35400# So, don't put newlines in cache variables' values.
35401# Ultrix sh set writes to stderr and can't be redirected directly,
35402# and sets the high bit in the cache file unless we assign to the vars.
35403{
35404 (set) 2>&1 |
35405 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35406 *ac_space=\ *)
35407 # `set' does not quote correctly, so add quotes (double-quote
35408 # substitution turns \\\\ into \\, and sed turns \\ into \).
35409 sed -n \
35410 "s/'/'\\\\''/g;
35411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35412 ;;
35413 *)
35414 # `set' quotes correctly as required by POSIX, so do not add quotes.
35415 sed -n \
35416 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35417 ;;
35418 esac;
35419} |
35420 sed '
35421 t clear
35422 : clear
35423 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35424 t end
35425 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35426 : end' >>confcache
35427if diff $cache_file confcache >/dev/null 2>&1; then :; else
35428 if test -w $cache_file; then
35429 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35430 cat confcache >$cache_file
35431 else
35432 echo "not updating unwritable cache $cache_file"
35433 fi
35434fi
35435rm -f confcache
35436
35437test "x$prefix" = xNONE && prefix=$ac_default_prefix
35438# Let make expand exec_prefix.
35439test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35440
35441# VPATH may cause trouble with some makes, so we remove $(srcdir),
35442# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35443# trailing colons and then remove the whole line if VPATH becomes empty
35444# (actually we leave an empty line to preserve line numbers).
35445if test "x$srcdir" = x.; then
35446 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35447s/:*\$(srcdir):*/:/;
35448s/:*\${srcdir}:*/:/;
35449s/:*@srcdir@:*/:/;
35450s/^\([^=]*=[ ]*\):*/\1/;
35451s/:*$//;
35452s/^[^=]*=[ ]*$//;
35453}'
35454fi
35455
35456DEFS=-DHAVE_CONFIG_H
35457
35458ac_libobjs=
35459ac_ltlibobjs=
35460for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35461 # 1. Remove the extension, and $U if already installed.
35462 ac_i=`echo "$ac_i" |
35463 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35464 # 2. Add them.
35465 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35466 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35467done
35468LIBOBJS=$ac_libobjs
35469
35470LTLIBOBJS=$ac_ltlibobjs
35471
35472
35473
35474: ${CONFIG_STATUS=./config.status}
35475ac_clean_files_save=$ac_clean_files
35476ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35477{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35478echo "$as_me: creating $CONFIG_STATUS" >&6;}
35479cat >$CONFIG_STATUS <<_ACEOF
35480#! $SHELL
35481# Generated by $as_me.
35482# Run this file to recreate the current configuration.
35483# Compiler output produced by configure, useful for debugging
35484# configure, is in config.log if it exists.
35485
35486debug=false
35487ac_cs_recheck=false
35488ac_cs_silent=false
35489SHELL=\${CONFIG_SHELL-$SHELL}
35490_ACEOF
35491
35492cat >>$CONFIG_STATUS <<\_ACEOF
35493## --------------------- ##
35494## M4sh Initialization. ##
35495## --------------------- ##
35496
35497# Be Bourne compatible
35498if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35499 emulate sh
35500 NULLCMD=:
35501 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35502 # is contrary to our usage. Disable this feature.
35503 alias -g '${1+"$@"}'='"$@"'
35504elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35505 set -o posix
35506fi
35507
35508# Support unset when possible.
35509if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35510 as_unset=unset
35511else
35512 as_unset=false
35513fi
35514
35515
35516# Work around bugs in pre-3.0 UWIN ksh.
35517$as_unset ENV MAIL MAILPATH
35518PS1='$ '
35519PS2='> '
35520PS4='+ '
35521
35522# NLS nuisances.
35523for as_var in \
35524 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35525 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35526 LC_TELEPHONE LC_TIME
35527do
35528 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
35529 eval $as_var=C; export $as_var
35530 else
35531 $as_unset $as_var
35532 fi
35533done
35534
35535# Required to use basename.
35536if expr a : '\(a\)' >/dev/null 2>&1; then
35537 as_expr=expr
35538else
35539 as_expr=false
35540fi
35541
35542if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35543 as_basename=basename
35544else
35545 as_basename=false
35546fi
35547
35548
35549# Name of the executable.
35550as_me=`$as_basename "$0" ||
35551$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35552 X"$0" : 'X\(//\)$' \| \
35553 X"$0" : 'X\(/\)$' \| \
35554 . : '\(.\)' 2>/dev/null ||
35555echo X/"$0" |
35556 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
35557 /^X\/\(\/\/\)$/{ s//\1/; q; }
35558 /^X\/\(\/\).*/{ s//\1/; q; }
35559 s/.*/./; q'`
35560
35561
35562# PATH needs CR, and LINENO needs CR and PATH.
35563# Avoid depending upon Character Ranges.
35564as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35565as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35566as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35567as_cr_digits='0123456789'
35568as_cr_alnum=$as_cr_Letters$as_cr_digits
35569
35570# The user is always right.
35571if test "${PATH_SEPARATOR+set}" != set; then
35572 echo "#! /bin/sh" >conf$$.sh
35573 echo "exit 0" >>conf$$.sh
35574 chmod +x conf$$.sh
35575 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35576 PATH_SEPARATOR=';'
35577 else
35578 PATH_SEPARATOR=:
35579 fi
35580 rm -f conf$$.sh
35581fi
35582
35583
35584 as_lineno_1=$LINENO
35585 as_lineno_2=$LINENO
35586 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35587 test "x$as_lineno_1" != "x$as_lineno_2" &&
35588 test "x$as_lineno_3" = "x$as_lineno_2" || {
35589 # Find who we are. Look in the path if we contain no path at all
35590 # relative or not.
35591 case $0 in
35592 *[\\/]* ) as_myself=$0 ;;
35593 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35594for as_dir in $PATH
35595do
35596 IFS=$as_save_IFS
35597 test -z "$as_dir" && as_dir=.
35598 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35599done
35600
35601 ;;
35602 esac
35603 # We did not find ourselves, most probably we were run as `sh COMMAND'
35604 # in which case we are not to be found in the path.
35605 if test "x$as_myself" = x; then
35606 as_myself=$0
35607 fi
35608 if test ! -f "$as_myself"; then
35609 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35610echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35611 { (exit 1); exit 1; }; }
35612 fi
35613 case $CONFIG_SHELL in
35614 '')
35615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35616for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35617do
35618 IFS=$as_save_IFS
35619 test -z "$as_dir" && as_dir=.
35620 for as_base in sh bash ksh sh5; do
35621 case $as_dir in
35622 /*)
35623 if ("$as_dir/$as_base" -c '
35624 as_lineno_1=$LINENO
35625 as_lineno_2=$LINENO
35626 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35627 test "x$as_lineno_1" != "x$as_lineno_2" &&
35628 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
35629 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35630 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35631 CONFIG_SHELL=$as_dir/$as_base
35632 export CONFIG_SHELL
35633 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35634 fi;;
35635 esac
35636 done
35637done
35638;;
35639 esac
35640
35641 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35642 # uniformly replaced by the line number. The first 'sed' inserts a
35643 # line-number line before each line; the second 'sed' does the real
35644 # work. The second script uses 'N' to pair each line-number line
35645 # with the numbered line, and appends trailing '-' during
35646 # substitution so that $LINENO is not a special case at line end.
35647 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35648 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
35649 sed '=' <$as_myself |
35650 sed '
35651 N
35652 s,$,-,
35653 : loop
35654 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35655 t loop
35656 s,-$,,
35657 s,^['$as_cr_digits']*\n,,
35658 ' >$as_me.lineno &&
35659 chmod +x $as_me.lineno ||
35660 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35661echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
35662 { (exit 1); exit 1; }; }
35663
35664 # Don't try to exec as it changes $[0], causing all sort of problems
35665 # (the dirname of $[0] is not the place where we might find the
35666 # original and so on. Autoconf is especially sensible to this).
35667 . ./$as_me.lineno
35668 # Exit status is that of the last command.
35669 exit
35670}
35671
35672
35673case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
35674 *c*,-n*) ECHO_N= ECHO_C='
35675' ECHO_T=' ' ;;
35676 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
35677 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
35678esac
35679
35680if expr a : '\(a\)' >/dev/null 2>&1; then
35681 as_expr=expr
35682else
35683 as_expr=false
35684fi
35685
35686rm -f conf$$ conf$$.exe conf$$.file
35687echo >conf$$.file
35688if ln -s conf$$.file conf$$ 2>/dev/null; then
35689 # We could just check for DJGPP; but this test a) works b) is more generic
35690 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
35691 if test -f conf$$.exe; then
35692 # Don't use ln at all; we don't have any links
35693 as_ln_s='cp -p'
35694 else
35695 as_ln_s='ln -s'
35696 fi
35697elif ln conf$$.file conf$$ 2>/dev/null; then
35698 as_ln_s=ln
35699else
35700 as_ln_s='cp -p'
35701fi
35702rm -f conf$$ conf$$.exe conf$$.file
35703
35704if mkdir -p . 2>/dev/null; then
35705 as_mkdir_p=:
35706else
35707 as_mkdir_p=false
35708fi
35709
35710as_executable_p="test -f"
35711
35712# Sed expression to map a string onto a valid CPP name.
35713as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35714
35715# Sed expression to map a string onto a valid variable name.
35716as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35717
35718
35719# IFS
35720# We need space, tab and new line, in precisely that order.
35721as_nl='
35722'
35723IFS=" $as_nl"
35724
35725# CDPATH.
35726$as_unset CDPATH
35727
35728exec 6>&1
35729
35730# Open the log real soon, to keep \$[0] and so on meaningful, and to
35731# report actual input values of CONFIG_FILES etc. instead of their
35732# values after options handling. Logging --version etc. is OK.
35733exec 5>>config.log
35734{
35735 echo
35736 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35737## Running $as_me. ##
35738_ASBOX
35739} >&5
35740cat >&5 <<_CSEOF
35741
35742This file was extended by wxWindows $as_me 2.5.0, which was
35743generated by GNU Autoconf 2.57. Invocation command line was
35744
35745 CONFIG_FILES = $CONFIG_FILES
35746 CONFIG_HEADERS = $CONFIG_HEADERS
35747 CONFIG_LINKS = $CONFIG_LINKS
35748 CONFIG_COMMANDS = $CONFIG_COMMANDS
35749 $ $0 $@
35750
35751_CSEOF
35752echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
35753echo >&5
35754_ACEOF
35755
35756# Files that config.status was made for.
35757if test -n "$ac_config_files"; then
35758 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
35759fi
35760
35761if test -n "$ac_config_headers"; then
35762 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
35763fi
35764
35765if test -n "$ac_config_links"; then
35766 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
35767fi
35768
35769if test -n "$ac_config_commands"; then
35770 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
35771fi
35772
35773cat >>$CONFIG_STATUS <<\_ACEOF
35774
35775ac_cs_usage="\
35776\`$as_me' instantiates files from templates according to the
35777current configuration.
35778
35779Usage: $0 [OPTIONS] [FILE]...
35780
35781 -h, --help print this help, then exit
35782 -V, --version print version number, then exit
35783 -q, --quiet do not print progress messages
35784 -d, --debug don't remove temporary files
35785 --recheck update $as_me by reconfiguring in the same conditions
35786 --file=FILE[:TEMPLATE]
35787 instantiate the configuration file FILE
35788 --header=FILE[:TEMPLATE]
35789 instantiate the configuration header FILE
35790
35791Configuration files:
35792$config_files
35793
35794Configuration headers:
35795$config_headers
35796
35797Configuration commands:
35798$config_commands
35799
35800Report bugs to <bug-autoconf@gnu.org>."
35801_ACEOF
35802
35803cat >>$CONFIG_STATUS <<_ACEOF
35804ac_cs_version="\\
35805wxWindows config.status 2.5.0
35806configured by $0, generated by GNU Autoconf 2.57,
35807 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
35808
35809Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
35810Free Software Foundation, Inc.
35811This config.status script is free software; the Free Software Foundation
35812gives unlimited permission to copy, distribute and modify it."
35813srcdir=$srcdir
35814INSTALL="$INSTALL"
35815_ACEOF
35816
35817cat >>$CONFIG_STATUS <<\_ACEOF
35818# If no file are specified by the user, then we need to provide default
35819# value. By we need to know if files were specified by the user.
35820ac_need_defaults=:
35821while test $# != 0
35822do
35823 case $1 in
35824 --*=*)
35825 ac_option=`expr "x$1" : 'x\([^=]*\)='`
35826 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
35827 ac_shift=:
35828 ;;
35829 -*)
35830 ac_option=$1
35831 ac_optarg=$2
35832 ac_shift=shift
35833 ;;
35834 *) # This is not an option, so the user has probably given explicit
35835 # arguments.
35836 ac_option=$1
35837 ac_need_defaults=false;;
35838 esac
35839
35840 case $ac_option in
35841 # Handling of the options.
35842_ACEOF
35843cat >>$CONFIG_STATUS <<\_ACEOF
35844 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35845 ac_cs_recheck=: ;;
35846 --version | --vers* | -V )
35847 echo "$ac_cs_version"; exit 0 ;;
35848 --he | --h)
35849 # Conflict between --help and --header
35850 { { echo "$as_me:$LINENO: error: ambiguous option: $1
35851Try \`$0 --help' for more information." >&5
35852echo "$as_me: error: ambiguous option: $1
35853Try \`$0 --help' for more information." >&2;}
35854 { (exit 1); exit 1; }; };;
35855 --help | --hel | -h )
35856 echo "$ac_cs_usage"; exit 0 ;;
35857 --debug | --d* | -d )
35858 debug=: ;;
35859 --file | --fil | --fi | --f )
35860 $ac_shift
35861 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35862 ac_need_defaults=false;;
35863 --header | --heade | --head | --hea )
35864 $ac_shift
35865 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35866 ac_need_defaults=false;;
35867 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35868 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35869 ac_cs_silent=: ;;
35870
35871 # This is an error.
35872 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
35873Try \`$0 --help' for more information." >&5
35874echo "$as_me: error: unrecognized option: $1
35875Try \`$0 --help' for more information." >&2;}
35876 { (exit 1); exit 1; }; } ;;
35877
35878 *) ac_config_targets="$ac_config_targets $1" ;;
35879
35880 esac
35881 shift
35882done
35883
35884ac_configure_extra_args=
35885
35886if $ac_cs_silent; then
35887 exec 6>/dev/null
35888 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
35889fi
35890
e6cc62c6
VS
35891_ACEOF
35892cat >>$CONFIG_STATUS <<_ACEOF
35893if \$ac_cs_recheck; then
35894 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35895 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
35896fi
35897
e6cc62c6 35898_ACEOF
fe0895cf 35899
e6cc62c6 35900cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 35901#
e6cc62c6 35902# INIT-COMMANDS section.
10f2d63a 35903#
10f2d63a 35904
a0b9e27f 35905
e6cc62c6
VS
35906 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
35907 LN_S="${LN_S}"
10f2d63a 35908
10f2d63a 35909
10f2d63a 35910
e6cc62c6 35911_ACEOF
8284b0c5 35912
52127426 35913
247f5006 35914
e6cc62c6
VS
35915cat >>$CONFIG_STATUS <<\_ACEOF
35916for ac_config_target in $ac_config_targets
247f5006 35917do
e6cc62c6
VS
35918 case "$ac_config_target" in
35919 # Handling of arguments.
81345eef
VZ
35920 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
35921 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
35922 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 35923 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
35924 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35925 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
35926 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35927echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35928 { (exit 1); exit 1; }; };;
247f5006
VZ
35929 esac
35930done
35931
e6cc62c6
VS
35932# If the user did not use the arguments to specify the items to instantiate,
35933# then the envvar interface is used. Set only those that are not.
35934# We use the long form for the default assignment because of an extremely
35935# bizarre bug on SunOS 4.1.3.
35936if $ac_need_defaults; then
35937 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35938 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35939 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35940fi
35941
35942# Have a temporary directory for convenience. Make it in the build tree
35943# simply because there is no reason to put it here, and in addition,
35944# creating and moving files from /tmp can sometimes cause problems.
35945# Create a temporary directory, and hook for its removal unless debugging.
35946$debug ||
35947{
35948 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
35949 trap '{ (exit 1); exit 1; }' 1 2 13 15
35950}
247f5006 35951
e6cc62c6 35952# Create a (secure) tmp directory for tmp files.
247f5006 35953
e6cc62c6
VS
35954{
35955 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
35956 test -n "$tmp" && test -d "$tmp"
35957} ||
35958{
35959 tmp=./confstat$$-$RANDOM
35960 (umask 077 && mkdir $tmp)
35961} ||
35962{
35963 echo "$me: cannot create a temporary directory in ." >&2
35964 { (exit 1); exit 1; }
35965}
35966
35967_ACEOF
35968
35969cat >>$CONFIG_STATUS <<_ACEOF
35970
35971#
35972# CONFIG_FILES section.
35973#
247f5006 35974
e6cc62c6
VS
35975# No need to generate the scripts if there are no CONFIG_FILES.
35976# This happens for instance when ./config.status config.h
35977if test -n "\$CONFIG_FILES"; then
35978 # Protect against being on the right side of a sed subst in config.status.
35979 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35980 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35981s,@SHELL@,$SHELL,;t t
35982s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35983s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
35984s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
35985s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
35986s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
35987s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
35988s,@exec_prefix@,$exec_prefix,;t t
35989s,@prefix@,$prefix,;t t
35990s,@program_transform_name@,$program_transform_name,;t t
35991s,@bindir@,$bindir,;t t
35992s,@sbindir@,$sbindir,;t t
35993s,@libexecdir@,$libexecdir,;t t
35994s,@datadir@,$datadir,;t t
35995s,@sysconfdir@,$sysconfdir,;t t
35996s,@sharedstatedir@,$sharedstatedir,;t t
35997s,@localstatedir@,$localstatedir,;t t
35998s,@libdir@,$libdir,;t t
35999s,@includedir@,$includedir,;t t
36000s,@oldincludedir@,$oldincludedir,;t t
36001s,@infodir@,$infodir,;t t
36002s,@mandir@,$mandir,;t t
36003s,@build_alias@,$build_alias,;t t
36004s,@host_alias@,$host_alias,;t t
36005s,@target_alias@,$target_alias,;t t
36006s,@DEFS@,$DEFS,;t t
36007s,@ECHO_C@,$ECHO_C,;t t
36008s,@ECHO_N@,$ECHO_N,;t t
36009s,@ECHO_T@,$ECHO_T,;t t
36010s,@LIBS@,$LIBS,;t t
36011s,@build@,$build,;t t
36012s,@build_cpu@,$build_cpu,;t t
36013s,@build_vendor@,$build_vendor,;t t
36014s,@build_os@,$build_os,;t t
36015s,@host@,$host,;t t
36016s,@host_cpu@,$host_cpu,;t t
36017s,@host_vendor@,$host_vendor,;t t
36018s,@host_os@,$host_os,;t t
36019s,@target@,$target,;t t
36020s,@target_cpu@,$target_cpu,;t t
36021s,@target_vendor@,$target_vendor,;t t
36022s,@target_os@,$target_os,;t t
36023s,@CC@,$CC,;t t
36024s,@CFLAGS@,$CFLAGS,;t t
36025s,@LDFLAGS@,$LDFLAGS,;t t
36026s,@CPPFLAGS@,$CPPFLAGS,;t t
36027s,@ac_ct_CC@,$ac_ct_CC,;t t
36028s,@EXEEXT@,$EXEEXT,;t t
36029s,@OBJEXT@,$OBJEXT,;t t
36030s,@CPP@,$CPP,;t t
36031s,@EGREP@,$EGREP,;t t
36032s,@CXX@,$CXX,;t t
36033s,@CXXFLAGS@,$CXXFLAGS,;t t
36034s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36035s,@RANLIB@,$RANLIB,;t t
36036s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36037s,@AR@,$AR,;t t
36038s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36039s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36040s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36041s,@STRIP@,$STRIP,;t t
36042s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
36043s,@LN_S@,$LN_S,;t t
36044s,@CXXCPP@,$CXXCPP,;t t
672abd7a 36045s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
36046s,@PKG_CONFIG@,$PKG_CONFIG,;t t
36047s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
36048s,@GTK_LIBS@,$GTK_LIBS,;t t
36049s,@GTK_CONFIG@,$GTK_CONFIG,;t t
36050s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
36051s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
36052s,@X_CFLAGS@,$X_CFLAGS,;t t
36053s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36054s,@X_LIBS@,$X_LIBS,;t t
36055s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36056s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
36057s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
36058s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
36059s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
36060s,@RESCOMP@,$RESCOMP,;t t
36061s,@DEREZ@,$DEREZ,;t t
36062s,@SETFILE@,$SETFILE,;t t
36063s,@LIBICONV@,$LIBICONV,;t t
edd891e2
VS
36064s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
36065s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
36066s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
36067s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
36068s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 36069s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
36070s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
36071s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
36072s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
36073s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
36074s,@VENDOR@,$VENDOR,;t t
36075s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
36076s,@WXUNIV@,$WXUNIV,;t t
36077s,@MONOLITHIC@,$MONOLITHIC,;t t
36078s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 36079s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
bb41dcbe 36080s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 36081s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 36082s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
36083s,@UNICODE@,$UNICODE,;t t
36084s,@BUILD@,$BUILD,;t t
6c67131a
VS
36085s,@DEBUG_INFO@,$DEBUG_INFO,;t t
36086s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
36087s,@SHARED@,$SHARED,;t t
36088s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
36089s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
36090s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 36091s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 36092s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
36093s,@SET_MAKE@,$SET_MAKE,;t t
36094s,@MAKE_SET@,$MAKE_SET,;t t
36095s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 36096s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
36097s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
36098s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
36099s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
36100s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
36101s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
36102s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 36103s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
e6cc62c6 36104s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 36105s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 36106s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
36107s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
36108s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
36109s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
36110s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
36111s,@PIC_FLAG@,$PIC_FLAG,;t t
36112s,@USE_SOVERSION@,$USE_SOVERSION,;t t
36113s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
36114s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
36115s,@USE_MACVERSION@,$USE_MACVERSION,;t t
36116s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
36117s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 36118s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 36119s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 36120s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
36121s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
36122s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
d78c94f2 36123s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a
VS
36124s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
36125s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
36126s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
36127s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 36128s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 36129s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 36130s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 36131s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
36132s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
36133s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 36134s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
250700e4 36135s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 36136s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 36137s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 36138s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 36139s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
250700e4 36140s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 36141s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
3af038c0 36142s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
36143s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
36144s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
36145s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
36146s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 36147s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 36148s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
36149s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
36150s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
36151s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
8ee2dd05 36152s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 36153s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
8772a1a7 36154s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0
VS
36155s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
36156s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
36157s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 36158s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 36159s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
36160s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36161s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36162s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36163s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
36164s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
36165s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
36166s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 36167s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 36168s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
36169s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
36170s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
36171s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
36172s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 36173s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 36174s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 36175s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
36176s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
36177s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
36178s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
36179s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
36180s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
36181s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 36182s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
36183s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
36184s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
6f628073 36185s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
8772a1a7 36186s,@COND_TOOLKIT_OS2_USE_GUI_1@,$COND_TOOLKIT_OS2_USE_GUI_1,;t t
6f628073
VS
36187s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t
36188s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
36189s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0
VS
36190s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
36191s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
36192s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
36193s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
36194s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
36195s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36196s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36197s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
6f628073
VS
36198s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
36199s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
36200s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
36201s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 36202s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 36203s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
36204s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
36205s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
36206s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
36207s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
36208s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
36209s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
36210s,@PATH_IFS@,$PATH_IFS,;t t
36211s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
36212s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
36213s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
36214s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
36215s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
36216s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
36217s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
36218s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
36219s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
36220s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
36221s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
36222s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
36223s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
36224s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
36225s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
36226s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
36227s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
36228s,@WX_ALL@,$WX_ALL,;t t
36229s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
36230s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
36231s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
36232s,@STATIC_FLAG@,$STATIC_FLAG,;t t
36233s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
36234s,@USE_GUI@,$USE_GUI,;t t
36235s,@AFMINSTALL@,$AFMINSTALL,;t t
36236s,@WIN32INSTALL@,$WIN32INSTALL,;t t
36237s,@TOOLKIT@,$TOOLKIT,;t t
36238s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
36239s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
36240s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
36241s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
36242s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
36243s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
36244s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 36245s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
36246s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
36247s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
36248s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
36249s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
36250s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
36251s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 36252s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 36253s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
36254s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
36255s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
36256s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
36257s,@ALL_HEADERS@,$ALL_HEADERS,;t t
36258s,@ALL_SOURCES@,$ALL_SOURCES,;t t
36259s,@GUIDIST@,$GUIDIST,;t t
36260s,@PORT_FILES@,$PORT_FILES,;t t
36261s,@DISTDIR@,$DISTDIR,;t t
36262s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
36263s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
36264s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
36265s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
36266s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
36267s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
36268s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
36269s,@RESFLAGS@,$RESFLAGS,;t t
36270s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
36271s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
36272s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
36273s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
36274s,@LIBWXMACRES@,$LIBWXMACRES,;t t
36275s,@MACRESCOMP@,$MACRESCOMP,;t t
36276s,@MACSETFILE@,$MACSETFILE,;t t
36277s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
36278s,@GCC@,$GCC,;t t
36279s,@DLLTOOL@,$DLLTOOL,;t t
36280s,@AS@,$AS,;t t
36281s,@NM@,$NM,;t t
36282s,@LD@,$LD,;t t
36283s,@MAKEINFO@,$MAKEINFO,;t t
36284s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
36285s,@LIBOBJS@,$LIBOBJS,;t t
36286s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
36287CEOF
36288
e6cc62c6
VS
36289_ACEOF
36290
36291 cat >>$CONFIG_STATUS <<\_ACEOF
36292 # Split the substitutions into bite-sized pieces for seds with
36293 # small command number limits, like on Digital OSF/1 and HP-UX.
36294 ac_max_sed_lines=48
36295 ac_sed_frag=1 # Number of current file.
36296 ac_beg=1 # First line for current file.
36297 ac_end=$ac_max_sed_lines # Line after last line for current file.
36298 ac_more_lines=:
36299 ac_sed_cmds=
36300 while $ac_more_lines; do
36301 if test $ac_beg -gt 1; then
36302 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 36303 else
e6cc62c6
VS
36304 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36305 fi
36306 if test ! -s $tmp/subs.frag; then
36307 ac_more_lines=false
36308 else
36309 # The purpose of the label and of the branching condition is to
36310 # speed up the sed processing (if there are no `@' at all, there
36311 # is no need to browse any of the substitutions).
36312 # These are the two extra sed commands mentioned above.
36313 (echo ':t
36314 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36315 if test -z "$ac_sed_cmds"; then
36316 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36317 else
36318 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36319 fi
36320 ac_sed_frag=`expr $ac_sed_frag + 1`
36321 ac_beg=$ac_end
36322 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 36323 fi
e6cc62c6
VS
36324 done
36325 if test -z "$ac_sed_cmds"; then
36326 ac_sed_cmds=cat
10f2d63a 36327 fi
e6cc62c6 36328fi # test -n "$CONFIG_FILES"
10f2d63a 36329
e6cc62c6
VS
36330_ACEOF
36331cat >>$CONFIG_STATUS <<\_ACEOF
36332for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 36333 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36334 case $ac_file in
36335 - | *:- | *:-:* ) # input from stdin
36336 cat >$tmp/stdin
36337 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36338 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36339 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36340 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36341 * ) ac_file_in=$ac_file.in ;;
10f2d63a 36342 esac
247f5006 36343
e6cc62c6
VS
36344 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36345 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36346$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36347 X"$ac_file" : 'X\(//\)[^/]' \| \
36348 X"$ac_file" : 'X\(//\)$' \| \
36349 X"$ac_file" : 'X\(/\)' \| \
36350 . : '\(.\)' 2>/dev/null ||
36351echo X"$ac_file" |
36352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36354 /^X\(\/\/\)$/{ s//\1/; q; }
36355 /^X\(\/\).*/{ s//\1/; q; }
36356 s/.*/./; q'`
36357 { if $as_mkdir_p; then
36358 mkdir -p "$ac_dir"
a0b9e27f 36359 else
e6cc62c6
VS
36360 as_dir="$ac_dir"
36361 as_dirs=
36362 while test ! -d "$as_dir"; do
36363 as_dirs="$as_dir $as_dirs"
36364 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36365$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36366 X"$as_dir" : 'X\(//\)[^/]' \| \
36367 X"$as_dir" : 'X\(//\)$' \| \
36368 X"$as_dir" : 'X\(/\)' \| \
36369 . : '\(.\)' 2>/dev/null ||
36370echo X"$as_dir" |
36371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36373 /^X\(\/\/\)$/{ s//\1/; q; }
36374 /^X\(\/\).*/{ s//\1/; q; }
36375 s/.*/./; q'`
36376 done
36377 test ! -n "$as_dirs" || mkdir $as_dirs
36378 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36379echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36380 { (exit 1); exit 1; }; }; }
36381
36382 ac_builddir=.
36383
36384if test "$ac_dir" != .; then
36385 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36386 # A "../" for each directory in $ac_dir_suffix.
36387 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36388else
36389 ac_dir_suffix= ac_top_builddir=
36390fi
247f5006 36391
e6cc62c6
VS
36392case $srcdir in
36393 .) # No --srcdir option. We are building in place.
36394 ac_srcdir=.
36395 if test -z "$ac_top_builddir"; then
36396 ac_top_srcdir=.
36397 else
36398 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36399 fi ;;
36400 [\\/]* | ?:[\\/]* ) # Absolute path.
36401 ac_srcdir=$srcdir$ac_dir_suffix;
36402 ac_top_srcdir=$srcdir ;;
247f5006 36403 *) # Relative path.
e6cc62c6
VS
36404 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36405 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36406esac
36407# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36408# absolute.
36409ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36410ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36411ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36412ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 36413
247f5006 36414
e6cc62c6
VS
36415 case $INSTALL in
36416 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36417 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 36418 esac
247f5006 36419
e6cc62c6
VS
36420 if test x"$ac_file" != x-; then
36421 { echo "$as_me:$LINENO: creating $ac_file" >&5
36422echo "$as_me: creating $ac_file" >&6;}
36423 rm -f "$ac_file"
36424 fi
36425 # Let's still pretend it is `configure' which instantiates (i.e., don't
36426 # use $as_me), people would be surprised to read:
36427 # /* config.h. Generated by config.status. */
36428 if test x"$ac_file" = x-; then
36429 configure_input=
36430 else
36431 configure_input="$ac_file. "
36432 fi
36433 configure_input=$configure_input"Generated from `echo $ac_file_in |
36434 sed 's,.*/,,'` by configure."
36435
36436 # First look for the input files in the build tree, otherwise in the
36437 # src tree.
36438 ac_file_inputs=`IFS=:
36439 for f in $ac_file_in; do
36440 case $f in
36441 -) echo $tmp/stdin ;;
36442 [\\/$]*)
36443 # Absolute (can't be DOS-style, as IFS=:)
36444 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36445echo "$as_me: error: cannot find input file: $f" >&2;}
36446 { (exit 1); exit 1; }; }
36447 echo $f;;
36448 *) # Relative
36449 if test -f "$f"; then
36450 # Build tree
36451 echo $f
36452 elif test -f "$srcdir/$f"; then
36453 # Source tree
36454 echo $srcdir/$f
36455 else
36456 # /dev/null tree
36457 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36458echo "$as_me: error: cannot find input file: $f" >&2;}
36459 { (exit 1); exit 1; }; }
36460 fi;;
36461 esac
36462 done` || { (exit 1); exit 1; }
36463_ACEOF
36464cat >>$CONFIG_STATUS <<_ACEOF
36465 sed "$ac_vpsub
36466$extrasub
36467_ACEOF
36468cat >>$CONFIG_STATUS <<\_ACEOF
36469:t
36470/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36471s,@configure_input@,$configure_input,;t t
36472s,@srcdir@,$ac_srcdir,;t t
36473s,@abs_srcdir@,$ac_abs_srcdir,;t t
36474s,@top_srcdir@,$ac_top_srcdir,;t t
36475s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36476s,@builddir@,$ac_builddir,;t t
36477s,@abs_builddir@,$ac_abs_builddir,;t t
36478s,@top_builddir@,$ac_top_builddir,;t t
36479s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36480s,@INSTALL@,$ac_INSTALL,;t t
36481" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36482 rm -f $tmp/stdin
36483 if test x"$ac_file" != x-; then
36484 mv $tmp/out $ac_file
36485 else
36486 cat $tmp/out
36487 rm -f $tmp/out
36488 fi
36489
36490done
36491_ACEOF
36492cat >>$CONFIG_STATUS <<\_ACEOF
36493
36494#
36495# CONFIG_HEADER section.
36496#
10f2d63a
VZ
36497
36498# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36499# NAME is the cpp macro being defined and VALUE is the value it is being given.
36500#
36501# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
36502ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
36503ac_dB='[ ].*$,\1#\2'
36504ac_dC=' '
36505ac_dD=',;t'
36506# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36507ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
36508ac_uB='$,\1#\2define\3'
10f2d63a 36509ac_uC=' '
e6cc62c6
VS
36510ac_uD=',;t'
36511
36512for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 36513 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36514 case $ac_file in
36515 - | *:- | *:-:* ) # input from stdin
36516 cat >$tmp/stdin
36517 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36518 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36519 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36520 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36521 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
36522 esac
36523
e6cc62c6
VS
36524 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36525echo "$as_me: creating $ac_file" >&6;}
36526
36527 # First look for the input files in the build tree, otherwise in the
36528 # src tree.
36529 ac_file_inputs=`IFS=:
36530 for f in $ac_file_in; do
36531 case $f in
36532 -) echo $tmp/stdin ;;
36533 [\\/$]*)
36534 # Absolute (can't be DOS-style, as IFS=:)
36535 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36536echo "$as_me: error: cannot find input file: $f" >&2;}
36537 { (exit 1); exit 1; }; }
36538 echo $f;;
36539 *) # Relative
36540 if test -f "$f"; then
36541 # Build tree
36542 echo $f
36543 elif test -f "$srcdir/$f"; then
36544 # Source tree
36545 echo $srcdir/$f
36546 else
36547 # /dev/null tree
36548 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36549echo "$as_me: error: cannot find input file: $f" >&2;}
36550 { (exit 1); exit 1; }; }
36551 fi;;
36552 esac
36553 done` || { (exit 1); exit 1; }
36554 # Remove the trailing spaces.
36555 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
36556
36557_ACEOF
36558
36559# Transform confdefs.h into two sed scripts, `conftest.defines' and
36560# `conftest.undefs', that substitutes the proper values into
36561# config.h.in to produce config.h. The first handles `#define'
36562# templates, and the second `#undef' templates.
36563# And first: Protect against being on the right side of a sed subst in
36564# config.status. Protect against being in an unquoted here document
36565# in config.status.
36566rm -f conftest.defines conftest.undefs
36567# Using a here document instead of a string reduces the quoting nightmare.
36568# Putting comments in sed scripts is not portable.
36569#
36570# `end' is used to avoid that the second main sed command (meant for
36571# 0-ary CPP macros) applies to n-ary macro definitions.
36572# See the Autoconf documentation for `clear'.
36573cat >confdef2sed.sed <<\_ACEOF
36574s/[\\&,]/\\&/g
36575s,[\\$`],\\&,g
36576t clear
36577: clear
36578s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36579t end
36580s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36581: end
36582_ACEOF
36583# If some macros were called several times there might be several times
36584# the same #defines, which is useless. Nevertheless, we may not want to
36585# sort them, since we want the *last* AC-DEFINE to be honored.
36586uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36587sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36588rm -f confdef2sed.sed
10f2d63a
VZ
36589
36590# This sed command replaces #undef with comments. This is necessary, for
36591# example, in the case of _POSIX_SOURCE, which is predefined and required
36592# on some systems where configure will not decide to define it.
e6cc62c6
VS
36593cat >>conftest.undefs <<\_ACEOF
36594s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36595_ACEOF
36596
36597# Break up conftest.defines because some shells have a limit on the size
36598# of here documents, and old seds have small limits too (100 cmds).
36599echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36600echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36601echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36602echo ' :' >>$CONFIG_STATUS
36603rm -f conftest.tail
36604while grep . conftest.defines >/dev/null
36605do
36606 # Write a limited-size here document to $tmp/defines.sed.
36607 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36608 # Speed up: don't consider the non `#define' lines.
36609 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
36610 # Work around the forget-to-reset-the-flag bug.
36611 echo 't clr' >>$CONFIG_STATUS
36612 echo ': clr' >>$CONFIG_STATUS
36613 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36614 echo 'CEOF
36615 sed -f $tmp/defines.sed $tmp/in >$tmp/out
36616 rm -f $tmp/in
36617 mv $tmp/out $tmp/in
36618' >>$CONFIG_STATUS
36619 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36620 rm -f conftest.defines
36621 mv conftest.tail conftest.defines
36622done
36623rm -f conftest.defines
36624echo ' fi # grep' >>$CONFIG_STATUS
36625echo >>$CONFIG_STATUS
10f2d63a 36626
e6cc62c6
VS
36627# Break up conftest.undefs because some shells have a limit on the size
36628# of here documents, and old seds have small limits too (100 cmds).
36629echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 36630rm -f conftest.tail
e6cc62c6 36631while grep . conftest.undefs >/dev/null
10f2d63a 36632do
e6cc62c6
VS
36633 # Write a limited-size here document to $tmp/undefs.sed.
36634 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36635 # Speed up: don't consider the non `#undef'
36636 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
36637 # Work around the forget-to-reset-the-flag bug.
36638 echo 't clr' >>$CONFIG_STATUS
36639 echo ': clr' >>$CONFIG_STATUS
36640 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 36641 echo 'CEOF
e6cc62c6
VS
36642 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
36643 rm -f $tmp/in
36644 mv $tmp/out $tmp/in
36645' >>$CONFIG_STATUS
36646 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
36647 rm -f conftest.undefs
36648 mv conftest.tail conftest.undefs
10f2d63a 36649done
e6cc62c6
VS
36650rm -f conftest.undefs
36651
36652cat >>$CONFIG_STATUS <<\_ACEOF
36653 # Let's still pretend it is `configure' which instantiates (i.e., don't
36654 # use $as_me), people would be surprised to read:
36655 # /* config.h. Generated by config.status. */
36656 if test x"$ac_file" = x-; then
36657 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 36658 else
e6cc62c6 36659 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 36660 fi
e6cc62c6
VS
36661 cat $tmp/in >>$tmp/config.h
36662 rm -f $tmp/in
36663 if test x"$ac_file" != x-; then
36664 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36665 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36666echo "$as_me: $ac_file is unchanged" >&6;}
36667 else
36668 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36669$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36670 X"$ac_file" : 'X\(//\)[^/]' \| \
36671 X"$ac_file" : 'X\(//\)$' \| \
36672 X"$ac_file" : 'X\(/\)' \| \
36673 . : '\(.\)' 2>/dev/null ||
36674echo X"$ac_file" |
36675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36677 /^X\(\/\/\)$/{ s//\1/; q; }
36678 /^X\(\/\).*/{ s//\1/; q; }
36679 s/.*/./; q'`
36680 { if $as_mkdir_p; then
36681 mkdir -p "$ac_dir"
36682 else
36683 as_dir="$ac_dir"
36684 as_dirs=
36685 while test ! -d "$as_dir"; do
36686 as_dirs="$as_dir $as_dirs"
36687 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36688$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36689 X"$as_dir" : 'X\(//\)[^/]' \| \
36690 X"$as_dir" : 'X\(//\)$' \| \
36691 X"$as_dir" : 'X\(/\)' \| \
36692 . : '\(.\)' 2>/dev/null ||
36693echo X"$as_dir" |
36694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36696 /^X\(\/\/\)$/{ s//\1/; q; }
36697 /^X\(\/\).*/{ s//\1/; q; }
36698 s/.*/./; q'`
36699 done
36700 test ! -n "$as_dirs" || mkdir $as_dirs
36701 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36702echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36703 { (exit 1); exit 1; }; }; }
a0b9e27f 36704
e6cc62c6
VS
36705 rm -f $ac_file
36706 mv $tmp/config.h $ac_file
36707 fi
36708 else
36709 cat $tmp/config.h
36710 rm -f $tmp/config.h
36711 fi
36712done
36713_ACEOF
36714cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 36715
e6cc62c6
VS
36716#
36717# CONFIG_COMMANDS section.
36718#
36719for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36720 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36721 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36722 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36723$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36724 X"$ac_dest" : 'X\(//\)[^/]' \| \
36725 X"$ac_dest" : 'X\(//\)$' \| \
36726 X"$ac_dest" : 'X\(/\)' \| \
36727 . : '\(.\)' 2>/dev/null ||
36728echo X"$ac_dest" |
36729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36731 /^X\(\/\/\)$/{ s//\1/; q; }
36732 /^X\(\/\).*/{ s//\1/; q; }
36733 s/.*/./; q'`
36734 ac_builddir=.
36735
36736if test "$ac_dir" != .; then
36737 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36738 # A "../" for each directory in $ac_dir_suffix.
36739 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36740else
36741 ac_dir_suffix= ac_top_builddir=
36742fi
36743
36744case $srcdir in
36745 .) # No --srcdir option. We are building in place.
36746 ac_srcdir=.
36747 if test -z "$ac_top_builddir"; then
36748 ac_top_srcdir=.
36749 else
36750 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36751 fi ;;
36752 [\\/]* | ?:[\\/]* ) # Absolute path.
36753 ac_srcdir=$srcdir$ac_dir_suffix;
36754 ac_top_srcdir=$srcdir ;;
36755 *) # Relative path.
36756 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36757 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36758esac
36759# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36760# absolute.
36761ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36762ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36763ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36764ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36765
36766
36767 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
36768echo "$as_me: executing $ac_dest commands" >&6;}
36769 case $ac_dest in
36770 default )
652d930d 36771 if test ! -h wx-config; then
991a5759 36772 chmod +x wx-config
3a922bb4
RL
36773 mv wx-config wx${TOOLCHAIN_NAME}-config
36774 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 36775 fi
665bbe97 36776
00cf1208
RR
36777 if test ! -d lib; then
36778 mkdir lib
36779 fi
36780 if test ! -d lib/wx; then
36781 mkdir lib/wx
36782 fi
36783 if test ! -d lib/wx/include; then
36784 mkdir lib/wx/include
36785 fi
3a922bb4
RL
36786 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
36787 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 36788 fi
3a922bb4
RL
36789 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
36790 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
36791 fi
36792 if test -f setup.h; then
3a922bb4 36793 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 36794 fi
e6cc62c6
VS
36795 ;;
36796 esac
36797done
36798_ACEOF
2224580a 36799
e6cc62c6 36800cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 36801
e6cc62c6
VS
36802{ (exit 0); exit 0; }
36803_ACEOF
36804chmod +x $CONFIG_STATUS
36805ac_clean_files=$ac_clean_files_save
36806
36807
36808# configure is writing to config.log, and then calls config.status.
36809# config.status does its own redirection, appending to config.log.
36810# Unfortunately, on DOS this fails, as config.log is still kept open
36811# by configure, so config.status won't be able to write to it; its
36812# output is simply discarded. So we exec the FD to /dev/null,
36813# effectively closing config.log, so it can be properly (re)opened and
36814# appended to by config.status. When coming back to configure, we
36815# need to make the FD available again.
36816if test "$no_create" != yes; then
36817 ac_cs_success=:
36818 ac_config_status_args=
36819 test "$silent" = yes &&
36820 ac_config_status_args="$ac_config_status_args --quiet"
36821 exec 5>/dev/null
36822 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36823 exec 5>>config.log
36824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36825 # would make configure fail if this is the last instruction.
36826 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
36827fi
36828
672abd7a
VS
36829#
36830# CONFIG_SUBDIRS section.
36831#
36832if test "$no_recursion" != yes; then
36833
36834 # Remove --cache-file and --srcdir arguments so they do not pile up.
36835 ac_sub_configure_args=
36836 ac_prev=
36837 for ac_arg in $ac_configure_args; do
36838 if test -n "$ac_prev"; then
36839 ac_prev=
36840 continue
36841 fi
36842 case $ac_arg in
36843 -cache-file | --cache-file | --cache-fil | --cache-fi \
36844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36845 ac_prev=cache_file ;;
36846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36848 | --c=*)
36849 ;;
36850 --config-cache | -C)
36851 ;;
36852 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36853 ac_prev=srcdir ;;
36854 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36855 ;;
36856 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36857 ac_prev=prefix ;;
36858 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36859 ;;
36860 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
36861 esac
36862 done
36863
36864 # Always prepend --prefix to ensure using the same prefix
36865 # in subdir configurations.
36866 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
36867
36868 ac_popdir=`pwd`
36869 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36870
36871 # Do not complain, so a configure script can configure whichever
36872 # parts of a large source tree are present.
36873 test -d $srcdir/$ac_dir || continue
36874
36875 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
36876echo "$as_me: configuring in $ac_dir" >&6;}
36877 { if $as_mkdir_p; then
36878 mkdir -p "$ac_dir"
36879 else
36880 as_dir="$ac_dir"
36881 as_dirs=
36882 while test ! -d "$as_dir"; do
36883 as_dirs="$as_dir $as_dirs"
36884 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36885$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36886 X"$as_dir" : 'X\(//\)[^/]' \| \
36887 X"$as_dir" : 'X\(//\)$' \| \
36888 X"$as_dir" : 'X\(/\)' \| \
36889 . : '\(.\)' 2>/dev/null ||
36890echo X"$as_dir" |
36891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36893 /^X\(\/\/\)$/{ s//\1/; q; }
36894 /^X\(\/\).*/{ s//\1/; q; }
36895 s/.*/./; q'`
36896 done
36897 test ! -n "$as_dirs" || mkdir $as_dirs
36898 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36899echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36900 { (exit 1); exit 1; }; }; }
36901
36902 ac_builddir=.
36903
36904if test "$ac_dir" != .; then
36905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36906 # A "../" for each directory in $ac_dir_suffix.
36907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36908else
36909 ac_dir_suffix= ac_top_builddir=
36910fi
36911
36912case $srcdir in
36913 .) # No --srcdir option. We are building in place.
36914 ac_srcdir=.
36915 if test -z "$ac_top_builddir"; then
36916 ac_top_srcdir=.
36917 else
36918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36919 fi ;;
36920 [\\/]* | ?:[\\/]* ) # Absolute path.
36921 ac_srcdir=$srcdir$ac_dir_suffix;
36922 ac_top_srcdir=$srcdir ;;
36923 *) # Relative path.
36924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36926esac
36927# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36928# absolute.
36929ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36930ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36931ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36932ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36933
36934
36935 cd $ac_dir
36936
36937 # Check for guested configure; otherwise get Cygnus style configure.
36938 if test -f $ac_srcdir/configure.gnu; then
36939 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
36940 elif test -f $ac_srcdir/configure; then
36941 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
36942 elif test -f $ac_srcdir/configure.in; then
36943 ac_sub_configure=$ac_configure
36944 else
36945 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36946echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36947 ac_sub_configure=
36948 fi
36949
36950 # The recursion is here.
36951 if test -n "$ac_sub_configure"; then
36952 # Make the cache file name correct relative to the subdirectory.
36953 case $cache_file in
36954 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36955 *) # Relative path.
36956 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
36957 esac
36958
36959 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36960echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36961 # The eval makes quoting arguments work.
36962 eval $ac_sub_configure $ac_sub_configure_args \
36963 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
36964 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36965echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36966 { (exit 1); exit 1; }; }
36967 fi
36968
36969 cd $ac_popdir
36970 done
36971fi
36972
8284b0c5 36973
2b5f62a0
VZ
36974echo
36975echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
36976echo ""
36977echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 36978echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
36979
36980echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
36981echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
36982echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
36983
0c98a14e 36984echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
36985echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
36986echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 36987
2b5f62a0
VZ
36988echo " Which libraries should wxWindows use?"
36989echo " jpeg ${wxUSE_LIBJPEG-none}"
36990echo " png ${wxUSE_LIBPNG-none}"
36991echo " regex ${wxUSE_REGEX}"
36992echo " tiff ${wxUSE_LIBTIFF-none}"
36993echo " zlib ${wxUSE_ZLIB}"
fd3d7534 36994echo " odbc ${wxUSE_ODBC}"
5f0b6dff 36995echo " expat ${wxUSE_EXPAT}"
2b5f62a0
VZ
36996
36997echo ""
36998