]> git.saurik.com Git - wxWidgets.git/blame - configure
OS/2 fix
[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"
d5fc095c
VS
1895 ac_executable_extensions=".exe"
1896 export ac_executable_extensions
1897 ac_save_IFS="$IFS"
1898 IFS="\\"
1899 ac_TEMP_PATH=
1900 for ac_dir in $PATH; do
1901 IFS=$ac_save_IFS
1902 if test -z "$ac_TEMP_PATH"; then
1903 ac_TEMP_PATH="$ac_dir"
1904 else
1905 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1906 fi
1907 done
1908 export PATH="$ac_TEMP_PATH"
1909 unset ac_TEMP_PATH
10f2d63a
VZ
1910 ;;
1911
d08b457b
GD
1912 powerpc-*-darwin* )
1913 USE_BSD=1
f11bdd03 1914 USE_DARWIN=1
3a922bb4 1915 SO_SUFFIX=dylib
e6cc62c6 1916 cat >>confdefs.h <<\_ACEOF
f11bdd03 1917#define __BSD__ 1
e6cc62c6 1918_ACEOF
b4085ce6 1919
e6cc62c6 1920 cat >>confdefs.h <<\_ACEOF
f11bdd03 1921#define __DARWIN__ 1
e6cc62c6 1922_ACEOF
d08b457b 1923
e6cc62c6 1924 cat >>confdefs.h <<\_ACEOF
d08b457b 1925#define __POWERPC__ 1
e6cc62c6 1926_ACEOF
82d43113 1927
e6cc62c6 1928 cat >>confdefs.h <<\_ACEOF
82d43113 1929#define TARGET_CARBON 1
e6cc62c6 1930_ACEOF
b4085ce6
GD
1931
1932 DEFAULT_DEFAULT_wxUSE_MAC=1
1933 ;;
1934
b12915c1
VZ
1935 *-*-beos* )
1936 USE_BEOS=1
e6cc62c6 1937 cat >>confdefs.h <<\_ACEOF
b12915c1 1938#define __BEOS__ 1
e6cc62c6 1939_ACEOF
b12915c1
VZ
1940
1941 ;;
1942
10f2d63a 1943 *)
e6cc62c6
VS
1944 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1945echo "$as_me: error: unknown system type ${host}." >&2;}
1946 { (exit 1); exit 1; }; }
10f2d63a
VZ
1947esac
1948
8284b0c5
MB
1949
1950
1951
1952 wx_arg_cache_file="configarg.cache"
1953 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1954 rm -f ${wx_arg_cache_file}.tmp
1955 touch ${wx_arg_cache_file}.tmp
1956 touch ${wx_arg_cache_file}
e6cc62c6 1957
10f2d63a
VZ
1958
1959DEBUG_CONFIGURE=0
1960if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1961 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1962 DEFAULT_wxUSE_STL=no
1e6feb95 1963
d8356fa3
VZ
1964 DEFAULT_wxUSE_NANOX=no
1965
10f2d63a
VZ
1966 DEFAULT_wxUSE_THREADS=yes
1967
1968 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1969 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1970 DEFAULT_wxUSE_PROFILE=no
1971 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1972 DEFAULT_wxUSE_NO_RTTI=no
1973 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1974 DEFAULT_wxUSE_PERMISSIVE=no
1975 DEFAULT_wxUSE_DEBUG_FLAG=yes
1976 DEFAULT_wxUSE_DEBUG_INFO=yes
1977 DEFAULT_wxUSE_DEBUG_GDB=yes
1978 DEFAULT_wxUSE_MEM_TRACING=no
1979 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1980 DEFAULT_wxUSE_DMALLOC=no
1981 DEFAULT_wxUSE_APPLE_IEEE=no
1982
1983 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1984 DEFAULT_wxUSE_LOGWINDOW=no
1985 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1986 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1987
1988 DEFAULT_wxUSE_GUI=yes
1e6feb95 1989 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1990
3e44f09d 1991 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
1992 DEFAULT_wxUSE_XML=no
1993 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
1994 DEFAULT_wxUSE_ZLIB=no
1995 DEFAULT_wxUSE_LIBPNG=no
1996 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1997 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1998 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1999 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2000
eb4efbdc 2001 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2002 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2003 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2004 DEFAULT_wxUSE_CMDLINE_PARSER=no
2005 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2006 DEFAULT_wxUSE_TIMER=no
2007 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2008 DEFAULT_wxUSE_FILE=no
1e6feb95 2009 DEFAULT_wxUSE_FFILE=no
a3a584a7 2010 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2011 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
2012 DEFAULT_wxUSE_WAVE=no
2013 DEFAULT_wxUSE_INTL=no
2014 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2015 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2016 DEFAULT_wxUSE_STREAMS=no
2017 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2018 DEFAULT_wxUSE_OLE=no
2019 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2020 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2021 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2022 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2023 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2024 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2025 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2026
2027 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2028 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2029 DEFAULT_wxUSE_POSTSCRIPT=no
2030
10f2d63a
VZ
2031 DEFAULT_wxUSE_CLIPBOARD=no
2032 DEFAULT_wxUSE_TOOLTIPS=no
2033 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2034 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2035 DEFAULT_wxUSE_SPLINES=no
2036
2037 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2038 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2039 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2040
10f2d63a
VZ
2041 DEFAULT_wxUSE_RESOURCES=no
2042 DEFAULT_wxUSE_CONSTRAINTS=no
2043 DEFAULT_wxUSE_IPC=no
2044 DEFAULT_wxUSE_HELP=no
29fd3c0c 2045 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2046 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2047 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2048 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2049 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2050 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2051 DEFAULT_wxUSE_PROTOCOL=no
2052 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2053 DEFAULT_wxUSE_PROTOCOL_FTP=no
2054 DEFAULT_wxUSE_PROTOCOL_FILE=no
2055 DEFAULT_wxUSE_URL=no
3bd8fb5f 2056
10f2d63a 2057 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2058 DEFAULT_wxUSE_CHOICEDLG=no
2059 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2060 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2061 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2062 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2063 DEFAULT_wxUSE_FONTDLG=no
2064 DEFAULT_wxUSE_MSGDLG=no
2065 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2066 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2067 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2068 DEFAULT_wxUSE_STARTUP_TIPS=no
2069 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2070 DEFAULT_wxUSE_WIZARDDLG=no
2071
1e6feb95 2072 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2073 DEFAULT_wxUSE_MINIFRAME=no
2074 DEFAULT_wxUSE_HTML=no
24528b0c 2075 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2076 DEFAULT_wxUSE_FS_INET=no
2077 DEFAULT_wxUSE_FS_ZIP=no
2078 DEFAULT_wxUSE_BUSYINFO=no
2079 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 2080 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2081
2082 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2083 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2084 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2085 DEFAULT_wxUSE_CALCTRL=no
2086 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2087 DEFAULT_wxUSE_CHECKBOX=no
2088 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2089 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2090 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2091 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2092 DEFAULT_wxUSE_GAUGE=no
2093 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
2094 DEFAULT_wxUSE_IMAGLIST=no
2095 DEFAULT_wxUSE_LISTBOX=no
2096 DEFAULT_wxUSE_LISTCTRL=no
2097 DEFAULT_wxUSE_NOTEBOOK=no
2098 DEFAULT_wxUSE_RADIOBOX=no
2099 DEFAULT_wxUSE_RADIOBTN=no
2100 DEFAULT_wxUSE_SASH=no
2101 DEFAULT_wxUSE_SCROLLBAR=no
2102 DEFAULT_wxUSE_SLIDER=no
2103 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2104 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2105 DEFAULT_wxUSE_SPLITTER=no
2106 DEFAULT_wxUSE_STATBMP=no
2107 DEFAULT_wxUSE_STATBOX=no
2108 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2109 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2110 DEFAULT_wxUSE_STATUSBAR=yes
2111 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2112 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2113 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2114 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2115 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2116 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2117 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2118 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2119 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2120
2121 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2122 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2123 DEFAULT_wxUSE_WCSRTOMBS=no
2124
edae8572 2125 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2126 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2127 DEFAULT_wxUSE_GIF=no
2128 DEFAULT_wxUSE_PCX=no
2129 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2130 DEFAULT_wxUSE_IFF=no
0046ff7c 2131 DEFAULT_wxUSE_XPM=no
658974ae 2132 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2133 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2134
e9e0dc15 2135 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2136 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2137else
1e6feb95 2138 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2139 DEFAULT_wxUSE_STL=no
1e6feb95 2140
d8356fa3
VZ
2141 DEFAULT_wxUSE_NANOX=no
2142
10f2d63a
VZ
2143 DEFAULT_wxUSE_THREADS=yes
2144
2145 DEFAULT_wxUSE_SHARED=yes
2146 DEFAULT_wxUSE_OPTIMISE=yes
2147 DEFAULT_wxUSE_PROFILE=no
2148 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2149 DEFAULT_wxUSE_NO_RTTI=no
2150 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2151 DEFAULT_wxUSE_PERMISSIVE=no
2152 DEFAULT_wxUSE_DEBUG_FLAG=no
2153 DEFAULT_wxUSE_DEBUG_INFO=no
2154 DEFAULT_wxUSE_DEBUG_GDB=no
2155 DEFAULT_wxUSE_MEM_TRACING=no
2156 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2157 DEFAULT_wxUSE_DMALLOC=no
2158 DEFAULT_wxUSE_APPLE_IEEE=yes
2159
2160 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2161 DEFAULT_wxUSE_LOGWINDOW=yes
2162 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2163 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2164
2165 DEFAULT_wxUSE_GUI=yes
2166
831b3152 2167 DEFAULT_wxUSE_REGEX=yes
672abd7a
VS
2168 DEFAULT_wxUSE_XML=yes
2169 DEFAULT_wxUSE_EXPAT=yes
10f2d63a
VZ
2170 DEFAULT_wxUSE_ZLIB=yes
2171 DEFAULT_wxUSE_LIBPNG=yes
2172 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 2173 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 2174 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2175 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2176
eb4efbdc 2177 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2178 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2179 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2180 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2181 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2182 DEFAULT_wxUSE_TIMER=yes
2183 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2184 DEFAULT_wxUSE_FILE=yes
1e6feb95 2185 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2186 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2187 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2188 DEFAULT_wxUSE_WAVE=no
2189 DEFAULT_wxUSE_INTL=yes
2190 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2191 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2192 DEFAULT_wxUSE_STREAMS=yes
2193 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2194 DEFAULT_wxUSE_OLE=yes
2195 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2196 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2197 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2198 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2199 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2200 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2201 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2202
2203 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2204 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2205 DEFAULT_wxUSE_POSTSCRIPT=yes
2206
10f2d63a
VZ
2207 DEFAULT_wxUSE_CLIPBOARD=yes
2208 DEFAULT_wxUSE_TOOLTIPS=yes
2209 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2210 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2211 DEFAULT_wxUSE_SPLINES=yes
2212
2213 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2214 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2215 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2216
2b5f62a0 2217 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2218 DEFAULT_wxUSE_CONSTRAINTS=yes
2219 DEFAULT_wxUSE_IPC=yes
2220 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2221 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2222 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2223 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2224 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2225 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2226 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2227 DEFAULT_wxUSE_PROTOCOL=yes
2228 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2229 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2230 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2231 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2232
2233 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2234 DEFAULT_wxUSE_CHOICEDLG=yes
2235 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2236 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2237 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2238 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2239 DEFAULT_wxUSE_FONTDLG=yes
2240 DEFAULT_wxUSE_MSGDLG=yes
2241 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2242 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2243 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2244 DEFAULT_wxUSE_STARTUP_TIPS=yes
2245 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2246 DEFAULT_wxUSE_WIZARDDLG=yes
2247
1e6feb95 2248 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2249 DEFAULT_wxUSE_MINIFRAME=yes
2250 DEFAULT_wxUSE_HTML=yes
24528b0c 2251 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2252 DEFAULT_wxUSE_FS_INET=yes
2253 DEFAULT_wxUSE_FS_ZIP=yes
2254 DEFAULT_wxUSE_BUSYINFO=yes
2255 DEFAULT_wxUSE_ZIPSTREAM=yes
2256 DEFAULT_wxUSE_VALIDATORS=yes
2257
2258 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2259 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2260 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2261 DEFAULT_wxUSE_CALCTRL=yes
2262 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2263 DEFAULT_wxUSE_CHECKBOX=yes
2264 DEFAULT_wxUSE_CHECKLST=yes
2265 DEFAULT_wxUSE_CHOICE=yes
2266 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2267 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2268 DEFAULT_wxUSE_GAUGE=yes
2269 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
2270 DEFAULT_wxUSE_IMAGLIST=yes
2271 DEFAULT_wxUSE_LISTBOX=yes
2272 DEFAULT_wxUSE_LISTCTRL=yes
2273 DEFAULT_wxUSE_NOTEBOOK=yes
2274 DEFAULT_wxUSE_RADIOBOX=yes
2275 DEFAULT_wxUSE_RADIOBTN=yes
2276 DEFAULT_wxUSE_SASH=yes
2277 DEFAULT_wxUSE_SCROLLBAR=yes
2278 DEFAULT_wxUSE_SLIDER=yes
2279 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2280 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2281 DEFAULT_wxUSE_SPLITTER=yes
2282 DEFAULT_wxUSE_STATBMP=yes
2283 DEFAULT_wxUSE_STATBOX=yes
2284 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2285 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2286 DEFAULT_wxUSE_STATUSBAR=yes
2287 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2288 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2289 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2290 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2291 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2292 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2293 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2294 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2295 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2296
2297 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2298 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2299 DEFAULT_wxUSE_WCSRTOMBS=no
2300
edae8572 2301 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2302 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2303 DEFAULT_wxUSE_GIF=yes
2304 DEFAULT_wxUSE_PCX=yes
cc0e8480 2305 DEFAULT_wxUSE_IFF=no
10f2d63a 2306 DEFAULT_wxUSE_PNM=yes
0046ff7c 2307 DEFAULT_wxUSE_XPM=yes
658974ae 2308 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2309 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2310
e9e0dc15 2311 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2312 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2313fi
2314
8284b0c5
MB
2315
2316
10f2d63a 2317for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2318 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2319 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2320 has_toolkit_in_cache=1
2321 eval "DEFAULT_$LINE"
2322 eval "CACHE_$toolkit=1"
2323 fi
2324done
2325
8284b0c5
MB
2326
2327
5005acfe 2328 enablestring=
e6cc62c6
VS
2329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2330echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2331 no_cache=0
2332 # Check whether --enable-gui or --disable-gui was given.
2333if test "${enable_gui+set}" = set; then
2334 enableval="$enable_gui"
e6cc62c6 2335
10f2d63a
VZ
2336 if test "$enableval" = yes; then
2337 ac_cv_use_gui='wxUSE_GUI=yes'
2338 else
2339 ac_cv_use_gui='wxUSE_GUI=no'
2340 fi
e6cc62c6 2341
10f2d63a 2342else
e6cc62c6 2343
10f2d63a
VZ
2344 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2345 if test "x$LINE" != x ; then
2346 eval "DEFAULT_$LINE"
2347 else
2348 no_cache=1
2349 fi
2350
2351 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2352
e6cc62c6 2353fi;
10f2d63a
VZ
2354
2355 eval "$ac_cv_use_gui"
2356 if test "$no_cache" != 1; then
2357 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2358 fi
2359
2360 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2361 echo "$as_me:$LINENO: result: yes" >&5
2362echo "${ECHO_T}yes" >&6
10f2d63a 2363 else
e6cc62c6
VS
2364 echo "$as_me:$LINENO: result: no" >&5
2365echo "${ECHO_T}no" >&6
10f2d63a 2366 fi
e6cc62c6 2367
10f2d63a 2368
9747f85d
VS
2369 enablestring=
2370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2371echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2372 no_cache=0
2373 # Check whether --enable-monolithic or --disable-monolithic was given.
2374if test "${enable_monolithic+set}" = set; then
2375 enableval="$enable_monolithic"
2376
2377 if test "$enableval" = yes; then
2378 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2379 else
2380 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2381 fi
2382
2383else
2384
2385 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2386 if test "x$LINE" != x ; then
2387 eval "DEFAULT_$LINE"
2388 else
2389 no_cache=1
2390 fi
2391
2392 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2393
2394fi;
2395
2396 eval "$ac_cv_use_monolithic"
2397 if test "$no_cache" != 1; then
2398 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2399 fi
2400
2401 if test "$wxUSE_MONOLITHIC" = yes; then
2402 echo "$as_me:$LINENO: result: yes" >&5
2403echo "${ECHO_T}yes" >&6
2404 else
2405 echo "$as_me:$LINENO: result: no" >&5
2406echo "${ECHO_T}no" >&6
2407 fi
2408
2409
b12915c1 2410if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2411
8284b0c5 2412
5005acfe 2413 enablestring=
e6cc62c6
VS
2414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2415echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2416 no_cache=0
2417 # Check whether --enable-universal or --disable-universal was given.
2418if test "${enable_universal+set}" = set; then
2419 enableval="$enable_universal"
e6cc62c6 2420
1e6feb95
VZ
2421 if test "$enableval" = yes; then
2422 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2423 else
2424 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2425 fi
e6cc62c6 2426
1e6feb95 2427else
e6cc62c6 2428
1e6feb95
VZ
2429 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2430 if test "x$LINE" != x ; then
2431 eval "DEFAULT_$LINE"
2432 else
2433 no_cache=1
2434 fi
2435
2436 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2437
e6cc62c6 2438fi;
1e6feb95
VZ
2439
2440 eval "$ac_cv_use_universal"
2441 if test "$no_cache" != 1; then
2442 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2443 fi
2444
2445 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2446 echo "$as_me:$LINENO: result: yes" >&5
2447echo "${ECHO_T}yes" >&6
1e6feb95 2448 else
e6cc62c6
VS
2449 echo "$as_me:$LINENO: result: no" >&5
2450echo "${ECHO_T}no" >&6
1e6feb95 2451 fi
e6cc62c6
VS
2452
2453
10f2d63a
VZ
2454# Check whether --with-gtk or --without-gtk was given.
2455if test "${with_gtk+set}" = set; then
2456 withval="$with_gtk"
2457 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2458fi;
10f2d63a
VZ
2459
2460# Check whether --with-motif or --without-motif was given.
2461if test "${with_motif+set}" = set; then
2462 withval="$with_motif"
2463 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2464fi;
10f2d63a 2465
b4085ce6
GD
2466# Check whether --with-mac or --without-mac was given.
2467if test "${with_mac+set}" = set; then
2468 withval="$with_mac"
2469 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2470fi;
b4085ce6 2471
ac0c4cc3
DE
2472# Check whether --with-cocoa or --without-cocoa was given.
2473if test "${with_cocoa+set}" = set; then
2474 withval="$with_cocoa"
2475 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2476fi;
ac0c4cc3 2477
10f2d63a
VZ
2478# Check whether --with-wine or --without-wine was given.
2479if test "${with_wine+set}" = set; then
2480 withval="$with_wine"
89e6bf6d 2481 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2482fi;
10f2d63a 2483
77e13408
RL
2484# Check whether --with-msw or --without-msw was given.
2485if test "${with_msw+set}" = set; then
2486 withval="$with_msw"
b4efce5e 2487 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2488fi;
10f2d63a 2489
e07802fc
VZ
2490# Check whether --with-pm or --without-pm was given.
2491if test "${with_pm+set}" = set; then
2492 withval="$with_pm"
2493 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2494fi;
698dcdb6 2495
1e6feb95
VZ
2496# Check whether --with-mgl or --without-mgl was given.
2497if test "${with_mgl+set}" = set; then
2498 withval="$with_mgl"
6c657b52 2499 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2500fi;
1e6feb95 2501
1725144d
RR
2502# Check whether --with-microwin or --without-microwin was given.
2503if test "${with_microwin+set}" = set; then
2504 withval="$with_microwin"
2505 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2506fi;
1725144d 2507
f79bd02d
JS
2508# Check whether --with-x11 or --without-x11 was given.
2509if test "${with_x11+set}" = set; then
2510 withval="$with_x11"
3c011993 2511 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2512fi;
a0b9e27f 2513
5005acfe 2514 enablestring=
e6cc62c6
VS
2515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2516echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2517 no_cache=0
ba875e66
VZ
2518 # Check whether --enable-nanox or --disable-nanox was given.
2519if test "${enable_nanox+set}" = set; then
2520 enableval="$enable_nanox"
e6cc62c6 2521
d8356fa3 2522 if test "$enableval" = yes; then
ba875e66 2523 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2524 else
ba875e66 2525 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2526 fi
e6cc62c6 2527
d8356fa3 2528else
e6cc62c6 2529
d8356fa3
VZ
2530 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2531 if test "x$LINE" != x ; then
2532 eval "DEFAULT_$LINE"
2533 else
2534 no_cache=1
2535 fi
2536
ba875e66 2537 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2538
e6cc62c6 2539fi;
d8356fa3 2540
ba875e66 2541 eval "$ac_cv_use_nanox"
d8356fa3 2542 if test "$no_cache" != 1; then
ba875e66 2543 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2544 fi
2545
2546 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2547 echo "$as_me:$LINENO: result: yes" >&5
2548echo "${ECHO_T}yes" >&6
d8356fa3 2549 else
e6cc62c6
VS
2550 echo "$as_me:$LINENO: result: no" >&5
2551echo "${ECHO_T}no" >&6
d8356fa3 2552 fi
e6cc62c6 2553
8284b0c5 2554
d74f4b5a 2555
5005acfe 2556 enablestring=
e6cc62c6
VS
2557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2558echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2559 no_cache=0
2560 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2561if test "${enable_gtk2+set}" = set; then
2562 enableval="$enable_gtk2"
e6cc62c6 2563
d74f4b5a
VZ
2564 if test "$enableval" = yes; then
2565 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2566 else
2567 ac_cv_use_gtk2='wxUSE_GTK2=no'
2568 fi
e6cc62c6 2569
10f2d63a 2570else
e6cc62c6 2571
d74f4b5a
VZ
2572 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2573 if test "x$LINE" != x ; then
2574 eval "DEFAULT_$LINE"
2575 else
2576 no_cache=1
2577 fi
2578
2579 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2580
e6cc62c6 2581fi;
328a083c 2582
d74f4b5a
VZ
2583 eval "$ac_cv_use_gtk2"
2584 if test "$no_cache" != 1; then
2585 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2586 fi
2587
2588 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2589 echo "$as_me:$LINENO: result: yes" >&5
2590echo "${ECHO_T}yes" >&6
d74f4b5a 2591 else
e6cc62c6
VS
2592 echo "$as_me:$LINENO: result: no" >&5
2593echo "${ECHO_T}no" >&6
d74f4b5a 2594 fi
d74f4b5a 2595
5c6fa7d2 2596
e6cc62c6
VS
2597
2598 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2599echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2600 no_cache=0
e6cc62c6
VS
2601
2602# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2603if test "${with_libpng+set}" = set; then
2604 withval="$with_libpng"
e6cc62c6 2605
10f2d63a 2606 if test "$withval" = yes; then
b12915c1 2607 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2608 elif test "$withval" = no; then
b12915c1 2609 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2610 elif test "$withval" = sys; then
2611 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2612 elif test "$withval" = builtin; then
2613 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2614 else
e6cc62c6
VS
2615 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2616echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2617 { (exit 1); exit 1; }; }
10f2d63a 2618 fi
e6cc62c6 2619
10f2d63a 2620else
e6cc62c6 2621
b12915c1 2622 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2623 if test "x$LINE" != x ; then
2624 eval "DEFAULT_$LINE"
2625 else
2626 no_cache=1
2627 fi
2628
b12915c1 2629 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2630
e6cc62c6 2631fi;
10f2d63a 2632
b12915c1 2633 eval "$ac_cv_use_libpng"
10f2d63a 2634 if test "$no_cache" != 1; then
b12915c1 2635 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2636 fi
2637
b12915c1 2638 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2639 echo "$as_me:$LINENO: result: yes" >&5
2640echo "${ECHO_T}yes" >&6
422107f9 2641 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2642 echo "$as_me:$LINENO: result: no" >&5
2643echo "${ECHO_T}no" >&6
422107f9 2644 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2645 echo "$as_me:$LINENO: result: system version" >&5
2646echo "${ECHO_T}system version" >&6
4f14bcd8 2647 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2648 echo "$as_me:$LINENO: result: builtin version" >&5
2649echo "${ECHO_T}builtin version" >&6
422107f9 2650 else
e6cc62c6
VS
2651 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2652echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2653 { (exit 1); exit 1; }; }
10f2d63a 2654 fi
10f2d63a 2655
e6cc62c6
VS
2656
2657 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2658echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2659 no_cache=0
e6cc62c6
VS
2660
2661# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2662if test "${with_libjpeg+set}" = set; then
2663 withval="$with_libjpeg"
e6cc62c6 2664
10f2d63a 2665 if test "$withval" = yes; then
b12915c1 2666 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2667 elif test "$withval" = no; then
b12915c1 2668 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2669 elif test "$withval" = sys; then
2670 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2671 elif test "$withval" = builtin; then
2672 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2673 else
e6cc62c6
VS
2674 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2675echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2676 { (exit 1); exit 1; }; }
10f2d63a 2677 fi
e6cc62c6 2678
10f2d63a 2679else
e6cc62c6 2680
b12915c1 2681 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2682 if test "x$LINE" != x ; then
2683 eval "DEFAULT_$LINE"
2684 else
2685 no_cache=1
2686 fi
2687
b12915c1 2688 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2689
e6cc62c6 2690fi;
10f2d63a 2691
b12915c1 2692 eval "$ac_cv_use_libjpeg"
10f2d63a 2693 if test "$no_cache" != 1; then
b12915c1 2694 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2695 fi
2696
b12915c1 2697 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2698 echo "$as_me:$LINENO: result: yes" >&5
2699echo "${ECHO_T}yes" >&6
422107f9 2700 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2701 echo "$as_me:$LINENO: result: no" >&5
2702echo "${ECHO_T}no" >&6
422107f9 2703 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2704 echo "$as_me:$LINENO: result: system version" >&5
2705echo "${ECHO_T}system version" >&6
4f14bcd8 2706 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2707 echo "$as_me:$LINENO: result: builtin version" >&5
2708echo "${ECHO_T}builtin version" >&6
422107f9 2709 else
e6cc62c6
VS
2710 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2711echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2712 { (exit 1); exit 1; }; }
10f2d63a 2713 fi
10f2d63a 2714
e6cc62c6
VS
2715
2716 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2717echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2718 no_cache=0
e6cc62c6
VS
2719
2720# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2721if test "${with_libtiff+set}" = set; then
2722 withval="$with_libtiff"
e6cc62c6 2723
10f2d63a 2724 if test "$withval" = yes; then
b12915c1 2725 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2726 elif test "$withval" = no; then
b12915c1 2727 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2728 elif test "$withval" = sys; then
2729 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2730 elif test "$withval" = builtin; then
2731 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2732 else
e6cc62c6
VS
2733 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2734echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2735 { (exit 1); exit 1; }; }
10f2d63a 2736 fi
e6cc62c6 2737
10f2d63a 2738else
e6cc62c6 2739
b12915c1 2740 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2741 if test "x$LINE" != x ; then
2742 eval "DEFAULT_$LINE"
2743 else
2744 no_cache=1
2745 fi
2746
b12915c1 2747 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2748
e6cc62c6 2749fi;
10f2d63a 2750
b12915c1 2751 eval "$ac_cv_use_libtiff"
10f2d63a 2752 if test "$no_cache" != 1; then
b12915c1 2753 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2754 fi
2755
b12915c1 2756 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2757 echo "$as_me:$LINENO: result: yes" >&5
2758echo "${ECHO_T}yes" >&6
0dcf9893 2759 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2760 echo "$as_me:$LINENO: result: no" >&5
2761echo "${ECHO_T}no" >&6
0dcf9893 2762 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2763 echo "$as_me:$LINENO: result: system version" >&5
2764echo "${ECHO_T}system version" >&6
4f14bcd8 2765 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2766 echo "$as_me:$LINENO: result: builtin version" >&5
2767echo "${ECHO_T}builtin version" >&6
0dcf9893 2768 else
e6cc62c6
VS
2769 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2770echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2771 { (exit 1); exit 1; }; }
10f2d63a 2772 fi
10f2d63a 2773
e6cc62c6
VS
2774
2775 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2776echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2777 no_cache=0
e6cc62c6
VS
2778
2779# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2780if test "${with_opengl+set}" = set; then
2781 withval="$with_opengl"
e6cc62c6 2782
10f2d63a 2783 if test "$withval" = yes; then
b12915c1 2784 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2785 else
b12915c1 2786 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2787 fi
e6cc62c6 2788
10f2d63a 2789else
e6cc62c6 2790
b12915c1 2791 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2792 if test "x$LINE" != x ; then
2793 eval "DEFAULT_$LINE"
2794 else
2795 no_cache=1
2796 fi
2797
b12915c1 2798 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2799
e6cc62c6 2800fi;
10f2d63a 2801
b12915c1 2802 eval "$ac_cv_use_opengl"
10f2d63a 2803 if test "$no_cache" != 1; then
b12915c1 2804 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2805 fi
2806
b12915c1 2807 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2808 echo "$as_me:$LINENO: result: yes" >&5
2809echo "${ECHO_T}yes" >&6
10f2d63a 2810 else
e6cc62c6
VS
2811 echo "$as_me:$LINENO: result: no" >&5
2812echo "${ECHO_T}no" >&6
10f2d63a 2813 fi
e6cc62c6 2814
10f2d63a 2815
b12915c1
VZ
2816fi
2817
5c6fa7d2 2818
e6cc62c6
VS
2819 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2820echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2821 no_cache=0
e6cc62c6
VS
2822
2823# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2824if test "${with_dmalloc+set}" = set; then
2825 withval="$with_dmalloc"
e6cc62c6 2826
c7a2bf27 2827 if test "$withval" = yes; then
b12915c1 2828 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2829 else
b12915c1 2830 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2831 fi
e6cc62c6 2832
c7a2bf27 2833else
e6cc62c6 2834
b12915c1 2835 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2836 if test "x$LINE" != x ; then
2837 eval "DEFAULT_$LINE"
2838 else
2839 no_cache=1
2840 fi
2841
b12915c1 2842 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2843
e6cc62c6 2844fi;
c7a2bf27 2845
b12915c1 2846 eval "$ac_cv_use_dmalloc"
c7a2bf27 2847 if test "$no_cache" != 1; then
b12915c1 2848 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2849 fi
2850
b12915c1 2851 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
2852 echo "$as_me:$LINENO: result: yes" >&5
2853echo "${ECHO_T}yes" >&6
c7a2bf27 2854 else
e6cc62c6
VS
2855 echo "$as_me:$LINENO: result: no" >&5
2856echo "${ECHO_T}no" >&6
c7a2bf27 2857 fi
c7a2bf27 2858
e6cc62c6
VS
2859
2860 echo "$as_me:$LINENO: checking for --with-regex" >&5
2861echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 2862 no_cache=0
e6cc62c6
VS
2863
2864# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
2865if test "${with_regex+set}" = set; then
2866 withval="$with_regex"
e6cc62c6 2867
3e44f09d
VZ
2868 if test "$withval" = yes; then
2869 ac_cv_use_regex='wxUSE_REGEX=yes'
2870 elif test "$withval" = no; then
2871 ac_cv_use_regex='wxUSE_REGEX=no'
2872 elif test "$withval" = sys; then
2873 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2874 elif test "$withval" = builtin; then
2875 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2876 else
e6cc62c6
VS
2877 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2878echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2879 { (exit 1); exit 1; }; }
3e44f09d 2880 fi
e6cc62c6 2881
3e44f09d 2882else
e6cc62c6 2883
3e44f09d
VZ
2884 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2885 if test "x$LINE" != x ; then
2886 eval "DEFAULT_$LINE"
2887 else
2888 no_cache=1
2889 fi
2890
2891 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 2892
e6cc62c6 2893fi;
3e44f09d
VZ
2894
2895 eval "$ac_cv_use_regex"
2896 if test "$no_cache" != 1; then
2897 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2898 fi
2899
2900 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
2901 echo "$as_me:$LINENO: result: yes" >&5
2902echo "${ECHO_T}yes" >&6
3e44f09d 2903 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
2904 echo "$as_me:$LINENO: result: no" >&5
2905echo "${ECHO_T}no" >&6
3e44f09d 2906 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
2907 echo "$as_me:$LINENO: result: system version" >&5
2908echo "${ECHO_T}system version" >&6
4f14bcd8 2909 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
2910 echo "$as_me:$LINENO: result: builtin version" >&5
2911echo "${ECHO_T}builtin version" >&6
3e44f09d 2912 else
e6cc62c6
VS
2913 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2914echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2915 { (exit 1); exit 1; }; }
3e44f09d 2916 fi
3e44f09d 2917
e6cc62c6
VS
2918
2919 echo "$as_me:$LINENO: checking for --with-zlib" >&5
2920echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 2921 no_cache=0
e6cc62c6
VS
2922
2923# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2924if test "${with_zlib+set}" = set; then
2925 withval="$with_zlib"
e6cc62c6 2926
10f2d63a 2927 if test "$withval" = yes; then
b12915c1 2928 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2929 elif test "$withval" = no; then
b12915c1 2930 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2931 elif test "$withval" = sys; then
2932 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2933 elif test "$withval" = builtin; then
2934 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2935 else
e6cc62c6
VS
2936 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2937echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2938 { (exit 1); exit 1; }; }
10f2d63a 2939 fi
e6cc62c6 2940
10f2d63a 2941else
e6cc62c6 2942
b12915c1 2943 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2944 if test "x$LINE" != x ; then
2945 eval "DEFAULT_$LINE"
2946 else
2947 no_cache=1
2948 fi
2949
b12915c1 2950 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 2951
e6cc62c6 2952fi;
10f2d63a 2953
b12915c1 2954 eval "$ac_cv_use_zlib"
10f2d63a 2955 if test "$no_cache" != 1; then
b12915c1 2956 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2957 fi
2958
b12915c1 2959 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
2960 echo "$as_me:$LINENO: result: yes" >&5
2961echo "${ECHO_T}yes" >&6
422107f9 2962 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
2963 echo "$as_me:$LINENO: result: no" >&5
2964echo "${ECHO_T}no" >&6
422107f9 2965 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
2966 echo "$as_me:$LINENO: result: system version" >&5
2967echo "${ECHO_T}system version" >&6
4f14bcd8 2968 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
2969 echo "$as_me:$LINENO: result: builtin version" >&5
2970echo "${ECHO_T}builtin version" >&6
422107f9 2971 else
e6cc62c6
VS
2972 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2973echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2974 { (exit 1); exit 1; }; }
10f2d63a 2975 fi
10f2d63a 2976
e6cc62c6
VS
2977
2978 echo "$as_me:$LINENO: checking for --with-odbc" >&5
2979echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 2980 no_cache=0
e6cc62c6
VS
2981
2982# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2983if test "${with_odbc+set}" = set; then
2984 withval="$with_odbc"
e6cc62c6 2985
10f2d63a
VZ
2986 if test "$withval" = yes; then
2987 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 2988 elif test "$withval" = no; then
10f2d63a 2989 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
2990 elif test "$withval" = sys; then
2991 ac_cv_use_odbc='wxUSE_ODBC=sys'
2992 elif test "$withval" = builtin; then
2993 ac_cv_use_odbc='wxUSE_ODBC=builtin'
2994 else
e6cc62c6
VS
2995 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2996echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2997 { (exit 1); exit 1; }; }
10f2d63a 2998 fi
e6cc62c6 2999
10f2d63a 3000else
e6cc62c6 3001
10f2d63a
VZ
3002 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3003 if test "x$LINE" != x ; then
3004 eval "DEFAULT_$LINE"
3005 else
3006 no_cache=1
3007 fi
3008
3009 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3010
e6cc62c6 3011fi;
10f2d63a
VZ
3012
3013 eval "$ac_cv_use_odbc"
3014 if test "$no_cache" != 1; then
3015 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3016 fi
3017
3018 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3019 echo "$as_me:$LINENO: result: yes" >&5
3020echo "${ECHO_T}yes" >&6
8647bec6 3021 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3022 echo "$as_me:$LINENO: result: no" >&5
3023echo "${ECHO_T}no" >&6
8647bec6 3024 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3025 echo "$as_me:$LINENO: result: system version" >&5
3026echo "${ECHO_T}system version" >&6
8647bec6 3027 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3028 echo "$as_me:$LINENO: result: builtin version" >&5
3029echo "${ECHO_T}builtin version" >&6
8647bec6 3030 else
e6cc62c6
VS
3031 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3032echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3033 { (exit 1); exit 1; }; }
10f2d63a 3034 fi
e6cc62c6 3035
52127426 3036
672abd7a
VS
3037 echo "$as_me:$LINENO: checking for --with-expat" >&5
3038echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3039 no_cache=0
3040
3041# Check whether --with-expat or --without-expat was given.
3042if test "${with_expat+set}" = set; then
3043 withval="$with_expat"
3044
3045 if test "$withval" = yes; then
3046 ac_cv_use_expat='wxUSE_EXPAT=yes'
3047 elif test "$withval" = no; then
3048 ac_cv_use_expat='wxUSE_EXPAT=no'
3049 elif test "$withval" = sys; then
3050 ac_cv_use_expat='wxUSE_EXPAT=sys'
3051 elif test "$withval" = builtin; then
3052 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3053 else
3054 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3055echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3056 { (exit 1); exit 1; }; }
3057 fi
3058
3059else
3060
3061 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3062 if test "x$LINE" != x ; then
3063 eval "DEFAULT_$LINE"
3064 else
3065 no_cache=1
3066 fi
3067
3068 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3069
3070fi;
3071
3072 eval "$ac_cv_use_expat"
3073 if test "$no_cache" != 1; then
3074 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3075 fi
3076
3077 if test "$wxUSE_EXPAT" = yes; then
3078 echo "$as_me:$LINENO: result: yes" >&5
3079echo "${ECHO_T}yes" >&6
3080 elif test "$wxUSE_EXPAT" = no; then
3081 echo "$as_me:$LINENO: result: no" >&5
3082echo "${ECHO_T}no" >&6
3083 elif test "$wxUSE_EXPAT" = sys; then
3084 echo "$as_me:$LINENO: result: system version" >&5
3085echo "${ECHO_T}system version" >&6
3086 elif test "$wxUSE_EXPAT" = builtin; then
3087 echo "$as_me:$LINENO: result: builtin version" >&5
3088echo "${ECHO_T}builtin version" >&6
3089 else
3090 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3091echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3092 { (exit 1); exit 1; }; }
3093 fi
3094
3095
8284b0c5
MB
3096
3097
5005acfe 3098 enablestring=
e6cc62c6
VS
3099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3100echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3101 no_cache=0
3102 # Check whether --enable-shared or --disable-shared was given.
3103if test "${enable_shared+set}" = set; then
3104 enableval="$enable_shared"
e6cc62c6 3105
10f2d63a
VZ
3106 if test "$enableval" = yes; then
3107 ac_cv_use_shared='wxUSE_SHARED=yes'
3108 else
3109 ac_cv_use_shared='wxUSE_SHARED=no'
3110 fi
e6cc62c6 3111
10f2d63a 3112else
e6cc62c6 3113
10f2d63a
VZ
3114 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3115 if test "x$LINE" != x ; then
3116 eval "DEFAULT_$LINE"
3117 else
3118 no_cache=1
3119 fi
3120
3121 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3122
e6cc62c6 3123fi;
10f2d63a
VZ
3124
3125 eval "$ac_cv_use_shared"
3126 if test "$no_cache" != 1; then
3127 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3128 fi
3129
3130 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3131 echo "$as_me:$LINENO: result: yes" >&5
3132echo "${ECHO_T}yes" >&6
10f2d63a 3133 else
e6cc62c6
VS
3134 echo "$as_me:$LINENO: result: no" >&5
3135echo "${ECHO_T}no" >&6
10f2d63a 3136 fi
e6cc62c6 3137
10f2d63a 3138
5005acfe 3139 enablestring=
e6cc62c6
VS
3140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3141echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3142 no_cache=0
3143 # Check whether --enable-optimise or --disable-optimise was given.
3144if test "${enable_optimise+set}" = set; then
3145 enableval="$enable_optimise"
e6cc62c6 3146
10f2d63a
VZ
3147 if test "$enableval" = yes; then
3148 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3149 else
3150 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3151 fi
e6cc62c6 3152
10f2d63a 3153else
e6cc62c6 3154
10f2d63a
VZ
3155 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3156 if test "x$LINE" != x ; then
3157 eval "DEFAULT_$LINE"
3158 else
3159 no_cache=1
3160 fi
3161
3162 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3163
e6cc62c6 3164fi;
10f2d63a
VZ
3165
3166 eval "$ac_cv_use_optimise"
3167 if test "$no_cache" != 1; then
3168 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3169 fi
3170
3171 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3172 echo "$as_me:$LINENO: result: yes" >&5
3173echo "${ECHO_T}yes" >&6
10f2d63a 3174 else
e6cc62c6
VS
3175 echo "$as_me:$LINENO: result: no" >&5
3176echo "${ECHO_T}no" >&6
10f2d63a 3177 fi
e6cc62c6 3178
10f2d63a 3179
5005acfe 3180 enablestring=
e6cc62c6
VS
3181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3182echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3183 no_cache=0
3184 # Check whether --enable-debug or --disable-debug was given.
3185if test "${enable_debug+set}" = set; then
3186 enableval="$enable_debug"
e6cc62c6 3187
10f2d63a
VZ
3188 if test "$enableval" = yes; then
3189 ac_cv_use_debug='wxUSE_DEBUG=yes'
3190 else
3191 ac_cv_use_debug='wxUSE_DEBUG=no'
3192 fi
e6cc62c6 3193
10f2d63a 3194else
e6cc62c6 3195
10f2d63a
VZ
3196 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3197 if test "x$LINE" != x ; then
3198 eval "DEFAULT_$LINE"
3199 else
3200 no_cache=1
3201 fi
3202
3203 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3204
e6cc62c6 3205fi;
10f2d63a
VZ
3206
3207 eval "$ac_cv_use_debug"
3208 if test "$no_cache" != 1; then
3209 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3210 fi
3211
3212 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3213 echo "$as_me:$LINENO: result: yes" >&5
3214echo "${ECHO_T}yes" >&6
10f2d63a 3215 else
e6cc62c6
VS
3216 echo "$as_me:$LINENO: result: no" >&5
3217echo "${ECHO_T}no" >&6
10f2d63a 3218 fi
e6cc62c6 3219
52127426 3220
df5168c4
MB
3221 enablestring=
3222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3223echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3224 no_cache=0
3225 # Check whether --enable-stl or --disable-stl was given.
3226if test "${enable_stl+set}" = set; then
3227 enableval="$enable_stl"
3228
3229 if test "$enableval" = yes; then
3230 ac_cv_use_stl='wxUSE_STL=yes'
3231 else
3232 ac_cv_use_stl='wxUSE_STL=no'
3233 fi
3234
3235else
3236
3237 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3238 if test "x$LINE" != x ; then
3239 eval "DEFAULT_$LINE"
3240 else
3241 no_cache=1
3242 fi
3243
3244 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3245
3246fi;
3247
3248 eval "$ac_cv_use_stl"
3249 if test "$no_cache" != 1; then
3250 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3251 fi
3252
3253 if test "$wxUSE_STL" = yes; then
3254 echo "$as_me:$LINENO: result: yes" >&5
3255echo "${ECHO_T}yes" >&6
3256 else
3257 echo "$as_me:$LINENO: result: no" >&5
3258echo "${ECHO_T}no" >&6
3259 fi
3260
3261
10f2d63a
VZ
3262if test "$wxUSE_DEBUG" = "yes"; then
3263 DEFAULT_wxUSE_DEBUG_FLAG=yes
3264 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3265 BUILD=debug
10f2d63a
VZ
3266elif test "$wxUSE_DEBUG" = "no"; then
3267 DEFAULT_wxUSE_DEBUG_FLAG=no
3268 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3269 BUILD=release
10f2d63a
VZ
3270fi
3271
8284b0c5 3272
5005acfe 3273 enablestring=
e6cc62c6
VS
3274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3275echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3276 no_cache=0
3277 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3278if test "${enable_debug_flag+set}" = set; then
3279 enableval="$enable_debug_flag"
e6cc62c6 3280
10f2d63a
VZ
3281 if test "$enableval" = yes; then
3282 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3283 else
3284 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3285 fi
e6cc62c6 3286
10f2d63a 3287else
e6cc62c6 3288
10f2d63a
VZ
3289 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3290 if test "x$LINE" != x ; then
3291 eval "DEFAULT_$LINE"
3292 else
3293 no_cache=1
3294 fi
3295
3296 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3297
e6cc62c6 3298fi;
10f2d63a
VZ
3299
3300 eval "$ac_cv_use_debug_flag"
3301 if test "$no_cache" != 1; then
3302 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3303 fi
3304
3305 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3306 echo "$as_me:$LINENO: result: yes" >&5
3307echo "${ECHO_T}yes" >&6
10f2d63a 3308 else
e6cc62c6
VS
3309 echo "$as_me:$LINENO: result: no" >&5
3310echo "${ECHO_T}no" >&6
10f2d63a 3311 fi
e6cc62c6 3312
10f2d63a 3313
5005acfe 3314 enablestring=
e6cc62c6
VS
3315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3316echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3317 no_cache=0
3318 # Check whether --enable-debug_info or --disable-debug_info was given.
3319if test "${enable_debug_info+set}" = set; then
3320 enableval="$enable_debug_info"
e6cc62c6 3321
10f2d63a
VZ
3322 if test "$enableval" = yes; then
3323 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3324 else
3325 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3326 fi
e6cc62c6 3327
10f2d63a 3328else
e6cc62c6 3329
10f2d63a
VZ
3330 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3331 if test "x$LINE" != x ; then
3332 eval "DEFAULT_$LINE"
3333 else
3334 no_cache=1
3335 fi
3336
3337 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3338
e6cc62c6 3339fi;
10f2d63a
VZ
3340
3341 eval "$ac_cv_use_debug_info"
3342 if test "$no_cache" != 1; then
3343 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3344 fi
3345
3346 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3347 echo "$as_me:$LINENO: result: yes" >&5
3348echo "${ECHO_T}yes" >&6
10f2d63a 3349 else
e6cc62c6
VS
3350 echo "$as_me:$LINENO: result: no" >&5
3351echo "${ECHO_T}no" >&6
10f2d63a 3352 fi
e6cc62c6 3353
10f2d63a 3354
5005acfe 3355 enablestring=
e6cc62c6
VS
3356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3357echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3358 no_cache=0
3359 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3360if test "${enable_debug_gdb+set}" = set; then
3361 enableval="$enable_debug_gdb"
e6cc62c6 3362
10f2d63a
VZ
3363 if test "$enableval" = yes; then
3364 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3365 else
3366 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3367 fi
e6cc62c6 3368
10f2d63a 3369else
e6cc62c6 3370
10f2d63a
VZ
3371 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3379
e6cc62c6 3380fi;
10f2d63a
VZ
3381
3382 eval "$ac_cv_use_debug_gdb"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3388 echo "$as_me:$LINENO: result: yes" >&5
3389echo "${ECHO_T}yes" >&6
10f2d63a 3390 else
e6cc62c6
VS
3391 echo "$as_me:$LINENO: result: no" >&5
3392echo "${ECHO_T}no" >&6
10f2d63a 3393 fi
e6cc62c6 3394
10f2d63a 3395
5005acfe 3396 enablestring=
e6cc62c6
VS
3397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3398echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3399 no_cache=0
3400 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3401if test "${enable_debug_cntxt+set}" = set; then
3402 enableval="$enable_debug_cntxt"
e6cc62c6 3403
10f2d63a
VZ
3404 if test "$enableval" = yes; then
3405 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3406 else
3407 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3408 fi
e6cc62c6 3409
10f2d63a 3410else
e6cc62c6 3411
10f2d63a
VZ
3412 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3413 if test "x$LINE" != x ; then
3414 eval "DEFAULT_$LINE"
3415 else
3416 no_cache=1
3417 fi
3418
3419 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3420
e6cc62c6 3421fi;
10f2d63a
VZ
3422
3423 eval "$ac_cv_use_debug_cntxt"
3424 if test "$no_cache" != 1; then
3425 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3426 fi
3427
3428 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3429 echo "$as_me:$LINENO: result: yes" >&5
3430echo "${ECHO_T}yes" >&6
10f2d63a 3431 else
e6cc62c6
VS
3432 echo "$as_me:$LINENO: result: no" >&5
3433echo "${ECHO_T}no" >&6
10f2d63a 3434 fi
e6cc62c6 3435
10f2d63a 3436
5005acfe 3437 enablestring=
e6cc62c6
VS
3438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3439echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3440 no_cache=0
3441 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3442if test "${enable_mem_tracing+set}" = set; then
3443 enableval="$enable_mem_tracing"
e6cc62c6 3444
10f2d63a
VZ
3445 if test "$enableval" = yes; then
3446 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3447 else
3448 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3449 fi
e6cc62c6 3450
10f2d63a 3451else
e6cc62c6 3452
10f2d63a
VZ
3453 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3454 if test "x$LINE" != x ; then
3455 eval "DEFAULT_$LINE"
3456 else
3457 no_cache=1
3458 fi
3459
3460 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3461
e6cc62c6 3462fi;
10f2d63a
VZ
3463
3464 eval "$ac_cv_use_mem_tracing"
3465 if test "$no_cache" != 1; then
3466 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3467 fi
3468
3469 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3470 echo "$as_me:$LINENO: result: yes" >&5
3471echo "${ECHO_T}yes" >&6
10f2d63a 3472 else
e6cc62c6
VS
3473 echo "$as_me:$LINENO: result: no" >&5
3474echo "${ECHO_T}no" >&6
10f2d63a 3475 fi
e6cc62c6 3476
10f2d63a 3477
5005acfe 3478 enablestring=
e6cc62c6
VS
3479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3480echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3481 no_cache=0
3482 # Check whether --enable-profile or --disable-profile was given.
3483if test "${enable_profile+set}" = set; then
3484 enableval="$enable_profile"
e6cc62c6 3485
10f2d63a
VZ
3486 if test "$enableval" = yes; then
3487 ac_cv_use_profile='wxUSE_PROFILE=yes'
3488 else
3489 ac_cv_use_profile='wxUSE_PROFILE=no'
3490 fi
e6cc62c6 3491
10f2d63a 3492else
e6cc62c6 3493
10f2d63a
VZ
3494 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3495 if test "x$LINE" != x ; then
3496 eval "DEFAULT_$LINE"
3497 else
3498 no_cache=1
3499 fi
3500
3501 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3502
e6cc62c6 3503fi;
10f2d63a
VZ
3504
3505 eval "$ac_cv_use_profile"
3506 if test "$no_cache" != 1; then
3507 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3508 fi
3509
3510 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3511 echo "$as_me:$LINENO: result: yes" >&5
3512echo "${ECHO_T}yes" >&6
10f2d63a 3513 else
e6cc62c6
VS
3514 echo "$as_me:$LINENO: result: no" >&5
3515echo "${ECHO_T}no" >&6
10f2d63a 3516 fi
e6cc62c6 3517
10f2d63a 3518
5005acfe 3519 enablestring=
e6cc62c6
VS
3520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3521echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3522 no_cache=0
3523 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3524if test "${enable_no_rtti+set}" = set; then
3525 enableval="$enable_no_rtti"
e6cc62c6 3526
10f2d63a
VZ
3527 if test "$enableval" = yes; then
3528 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3529 else
3530 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3531 fi
e6cc62c6 3532
10f2d63a 3533else
e6cc62c6 3534
10f2d63a
VZ
3535 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3536 if test "x$LINE" != x ; then
3537 eval "DEFAULT_$LINE"
3538 else
3539 no_cache=1
3540 fi
3541
3542 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3543
e6cc62c6 3544fi;
10f2d63a
VZ
3545
3546 eval "$ac_cv_use_no_rtti"
3547 if test "$no_cache" != 1; then
3548 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3549 fi
3550
3551 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3552 echo "$as_me:$LINENO: result: yes" >&5
3553echo "${ECHO_T}yes" >&6
10f2d63a 3554 else
e6cc62c6
VS
3555 echo "$as_me:$LINENO: result: no" >&5
3556echo "${ECHO_T}no" >&6
10f2d63a 3557 fi
e6cc62c6 3558
10f2d63a 3559
5005acfe 3560 enablestring=
e6cc62c6
VS
3561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3562echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3563 no_cache=0
3564 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3565if test "${enable_no_exceptions+set}" = set; then
3566 enableval="$enable_no_exceptions"
e6cc62c6 3567
10f2d63a
VZ
3568 if test "$enableval" = yes; then
3569 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3570 else
3571 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3572 fi
e6cc62c6 3573
10f2d63a 3574else
e6cc62c6 3575
10f2d63a
VZ
3576 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3577 if test "x$LINE" != x ; then
3578 eval "DEFAULT_$LINE"
3579 else
3580 no_cache=1
3581 fi
3582
3583 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3584
e6cc62c6 3585fi;
10f2d63a
VZ
3586
3587 eval "$ac_cv_use_no_exceptions"
3588 if test "$no_cache" != 1; then
3589 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3590 fi
3591
3592 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3593 echo "$as_me:$LINENO: result: yes" >&5
3594echo "${ECHO_T}yes" >&6
10f2d63a 3595 else
e6cc62c6
VS
3596 echo "$as_me:$LINENO: result: no" >&5
3597echo "${ECHO_T}no" >&6
10f2d63a 3598 fi
e6cc62c6 3599
10f2d63a 3600
5005acfe 3601 enablestring=
e6cc62c6
VS
3602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3603echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3604 no_cache=0
3605 # Check whether --enable-permissive or --disable-permissive was given.
3606if test "${enable_permissive+set}" = set; then
3607 enableval="$enable_permissive"
e6cc62c6 3608
10f2d63a
VZ
3609 if test "$enableval" = yes; then
3610 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3611 else
3612 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3613 fi
e6cc62c6 3614
10f2d63a 3615else
e6cc62c6 3616
10f2d63a
VZ
3617 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3618 if test "x$LINE" != x ; then
3619 eval "DEFAULT_$LINE"
3620 else
3621 no_cache=1
3622 fi
3623
3624 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3625
e6cc62c6 3626fi;
10f2d63a
VZ
3627
3628 eval "$ac_cv_use_permissive"
3629 if test "$no_cache" != 1; then
3630 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3631 fi
3632
3633 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3634 echo "$as_me:$LINENO: result: yes" >&5
3635echo "${ECHO_T}yes" >&6
10f2d63a 3636 else
e6cc62c6
VS
3637 echo "$as_me:$LINENO: result: no" >&5
3638echo "${ECHO_T}no" >&6
10f2d63a 3639 fi
e6cc62c6 3640
10f2d63a 3641
5005acfe 3642 enablestring=
e6cc62c6
VS
3643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3644echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3645 no_cache=0
3646 # Check whether --enable-no_deps or --disable-no_deps was given.
3647if test "${enable_no_deps+set}" = set; then
3648 enableval="$enable_no_deps"
e6cc62c6 3649
10f2d63a
VZ
3650 if test "$enableval" = yes; then
3651 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3652 else
3653 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3654 fi
e6cc62c6 3655
10f2d63a 3656else
e6cc62c6 3657
10f2d63a
VZ
3658 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3659 if test "x$LINE" != x ; then
3660 eval "DEFAULT_$LINE"
3661 else
3662 no_cache=1
3663 fi
3664
3665 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3666
e6cc62c6 3667fi;
10f2d63a
VZ
3668
3669 eval "$ac_cv_use_no_deps"
3670 if test "$no_cache" != 1; then
3671 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3672 fi
3673
3674 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3675 echo "$as_me:$LINENO: result: yes" >&5
3676echo "${ECHO_T}yes" >&6
10f2d63a 3677 else
e6cc62c6
VS
3678 echo "$as_me:$LINENO: result: no" >&5
3679echo "${ECHO_T}no" >&6
10f2d63a 3680 fi
e6cc62c6 3681
52127426 3682
8284b0c5 3683
65d8ef1e 3684 enablestring=
e6cc62c6
VS
3685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3686echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3687 no_cache=0
3688 # Check whether --enable-compat22 or --disable-compat22 was given.
3689if test "${enable_compat22+set}" = set; then
3690 enableval="$enable_compat22"
e6cc62c6 3691
54276ccf
VZ
3692 if test "$enableval" = yes; then
3693 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3694 else
3695 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3696 fi
e6cc62c6 3697
54276ccf 3698else
e6cc62c6 3699
54276ccf
VZ
3700 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3701 if test "x$LINE" != x ; then
3702 eval "DEFAULT_$LINE"
3703 else
3704 no_cache=1
3705 fi
3706
3707 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3708
e6cc62c6 3709fi;
54276ccf
VZ
3710
3711 eval "$ac_cv_use_compat22"
3712 if test "$no_cache" != 1; then
3713 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3714 fi
3715
3716 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3717 echo "$as_me:$LINENO: result: yes" >&5
3718echo "${ECHO_T}yes" >&6
54276ccf 3719 else
e6cc62c6
VS
3720 echo "$as_me:$LINENO: result: no" >&5
3721echo "${ECHO_T}no" >&6
54276ccf 3722 fi
e6cc62c6 3723
54276ccf 3724
65d8ef1e 3725 enablestring=disable
e6cc62c6
VS
3726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3727echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3728 no_cache=0
3729 # Check whether --enable-compat24 or --disable-compat24 was given.
3730if test "${enable_compat24+set}" = set; then
3731 enableval="$enable_compat24"
e6cc62c6 3732
65d8ef1e
VS
3733 if test "$enableval" = yes; then
3734 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3735 else
3736 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3737 fi
e6cc62c6 3738
65d8ef1e 3739else
e6cc62c6 3740
65d8ef1e
VS
3741 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3742 if test "x$LINE" != x ; then
3743 eval "DEFAULT_$LINE"
3744 else
3745 no_cache=1
3746 fi
3747
3748 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3749
e6cc62c6 3750fi;
65d8ef1e
VS
3751
3752 eval "$ac_cv_use_compat24"
3753 if test "$no_cache" != 1; then
3754 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3755 fi
3756
3757 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3758 echo "$as_me:$LINENO: result: yes" >&5
3759echo "${ECHO_T}yes" >&6
65d8ef1e 3760 else
e6cc62c6
VS
3761 echo "$as_me:$LINENO: result: no" >&5
3762echo "${ECHO_T}no" >&6
65d8ef1e 3763 fi
e6cc62c6 3764
65d8ef1e 3765
3bd8fb5f
RD
3766# Check whether --enable-rpath or --disable-rpath was given.
3767if test "${enable_rpath+set}" = set; then
3768 enableval="$enable_rpath"
3769 wxRPATH_DIR="$enableval"
e6cc62c6 3770fi;
3bd8fb5f
RD
3771
3772if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3773 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3774fi
3775
8284b0c5
MB
3776
3777
3778
5005acfe 3779 enablestring=
e6cc62c6
VS
3780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3781echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3782 no_cache=0
3783 # Check whether --enable-intl or --disable-intl was given.
3784if test "${enable_intl+set}" = set; then
3785 enableval="$enable_intl"
e6cc62c6 3786
10f2d63a
VZ
3787 if test "$enableval" = yes; then
3788 ac_cv_use_intl='wxUSE_INTL=yes'
3789 else
3790 ac_cv_use_intl='wxUSE_INTL=no'
3791 fi
e6cc62c6 3792
10f2d63a 3793else
e6cc62c6 3794
10f2d63a
VZ
3795 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3796 if test "x$LINE" != x ; then
3797 eval "DEFAULT_$LINE"
3798 else
3799 no_cache=1
3800 fi
3801
3802 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3803
e6cc62c6 3804fi;
10f2d63a
VZ
3805
3806 eval "$ac_cv_use_intl"
3807 if test "$no_cache" != 1; then
3808 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3809 fi
3810
3811 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3812 echo "$as_me:$LINENO: result: yes" >&5
3813echo "${ECHO_T}yes" >&6
10f2d63a 3814 else
e6cc62c6
VS
3815 echo "$as_me:$LINENO: result: no" >&5
3816echo "${ECHO_T}no" >&6
10f2d63a 3817 fi
e6cc62c6 3818
10f2d63a 3819
5005acfe 3820 enablestring=
e6cc62c6
VS
3821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3822echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3823 no_cache=0
3824 # Check whether --enable-config or --disable-config was given.
3825if test "${enable_config+set}" = set; then
3826 enableval="$enable_config"
e6cc62c6 3827
10f2d63a
VZ
3828 if test "$enableval" = yes; then
3829 ac_cv_use_config='wxUSE_CONFIG=yes'
3830 else
3831 ac_cv_use_config='wxUSE_CONFIG=no'
3832 fi
e6cc62c6 3833
10f2d63a 3834else
e6cc62c6 3835
10f2d63a
VZ
3836 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3837 if test "x$LINE" != x ; then
3838 eval "DEFAULT_$LINE"
3839 else
3840 no_cache=1
3841 fi
3842
3843 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3844
e6cc62c6 3845fi;
10f2d63a
VZ
3846
3847 eval "$ac_cv_use_config"
3848 if test "$no_cache" != 1; then
3849 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3850 fi
3851
3852 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
3853 echo "$as_me:$LINENO: result: yes" >&5
3854echo "${ECHO_T}yes" >&6
10f2d63a 3855 else
e6cc62c6
VS
3856 echo "$as_me:$LINENO: result: no" >&5
3857echo "${ECHO_T}no" >&6
10f2d63a 3858 fi
e6cc62c6 3859
52127426 3860
8284b0c5 3861
5005acfe 3862 enablestring=
e6cc62c6
VS
3863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3864echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
3865 no_cache=0
3866 # Check whether --enable-protocols or --disable-protocols was given.
3867if test "${enable_protocols+set}" = set; then
3868 enableval="$enable_protocols"
e6cc62c6 3869
a1622950
VZ
3870 if test "$enableval" = yes; then
3871 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3872 else
3873 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3874 fi
e6cc62c6 3875
a1622950 3876else
e6cc62c6 3877
a1622950
VZ
3878 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3879 if test "x$LINE" != x ; then
3880 eval "DEFAULT_$LINE"
3881 else
3882 no_cache=1
3883 fi
3884
3885 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 3886
e6cc62c6 3887fi;
a1622950
VZ
3888
3889 eval "$ac_cv_use_protocols"
3890 if test "$no_cache" != 1; then
3891 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3892 fi
3893
3894 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
3895 echo "$as_me:$LINENO: result: yes" >&5
3896echo "${ECHO_T}yes" >&6
a1622950 3897 else
e6cc62c6
VS
3898 echo "$as_me:$LINENO: result: no" >&5
3899echo "${ECHO_T}no" >&6
a1622950 3900 fi
e6cc62c6 3901
a1622950 3902
5005acfe 3903 enablestring=
e6cc62c6
VS
3904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3905echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
3906 no_cache=0
3907 # Check whether --enable-ftp or --disable-ftp was given.
3908if test "${enable_ftp+set}" = set; then
3909 enableval="$enable_ftp"
e6cc62c6 3910
a1622950
VZ
3911 if test "$enableval" = yes; then
3912 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3913 else
3914 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3915 fi
e6cc62c6 3916
a1622950 3917else
e6cc62c6 3918
a1622950
VZ
3919 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3920 if test "x$LINE" != x ; then
3921 eval "DEFAULT_$LINE"
3922 else
3923 no_cache=1
3924 fi
3925
3926 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 3927
e6cc62c6 3928fi;
a1622950
VZ
3929
3930 eval "$ac_cv_use_ftp"
3931 if test "$no_cache" != 1; then
3932 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3933 fi
3934
3935 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
3936 echo "$as_me:$LINENO: result: yes" >&5
3937echo "${ECHO_T}yes" >&6
a1622950 3938 else
e6cc62c6
VS
3939 echo "$as_me:$LINENO: result: no" >&5
3940echo "${ECHO_T}no" >&6
a1622950 3941 fi
e6cc62c6 3942
a1622950 3943
5005acfe 3944 enablestring=
e6cc62c6
VS
3945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3946echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
3947 no_cache=0
3948 # Check whether --enable-http or --disable-http was given.
3949if test "${enable_http+set}" = set; then
3950 enableval="$enable_http"
e6cc62c6 3951
a1622950
VZ
3952 if test "$enableval" = yes; then
3953 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3954 else
3955 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3956 fi
e6cc62c6 3957
a1622950 3958else
e6cc62c6 3959
a1622950
VZ
3960 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3961 if test "x$LINE" != x ; then
3962 eval "DEFAULT_$LINE"
3963 else
3964 no_cache=1
3965 fi
3966
3967 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 3968
e6cc62c6 3969fi;
a1622950
VZ
3970
3971 eval "$ac_cv_use_http"
3972 if test "$no_cache" != 1; then
3973 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3974 fi
3975
3976 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
3977 echo "$as_me:$LINENO: result: yes" >&5
3978echo "${ECHO_T}yes" >&6
a1622950 3979 else
e6cc62c6
VS
3980 echo "$as_me:$LINENO: result: no" >&5
3981echo "${ECHO_T}no" >&6
a1622950 3982 fi
e6cc62c6 3983
a1622950 3984
5005acfe 3985 enablestring=
e6cc62c6
VS
3986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
3987echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
3988 no_cache=0
3989 # Check whether --enable-fileproto or --disable-fileproto was given.
3990if test "${enable_fileproto+set}" = set; then
3991 enableval="$enable_fileproto"
e6cc62c6 3992
a1622950
VZ
3993 if test "$enableval" = yes; then
3994 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3995 else
3996 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3997 fi
e6cc62c6 3998
a1622950 3999else
e6cc62c6 4000
a1622950
VZ
4001 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4002 if test "x$LINE" != x ; then
4003 eval "DEFAULT_$LINE"
4004 else
4005 no_cache=1
4006 fi
4007
4008 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4009
e6cc62c6 4010fi;
a1622950
VZ
4011
4012 eval "$ac_cv_use_fileproto"
4013 if test "$no_cache" != 1; then
4014 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4015 fi
4016
4017 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4018 echo "$as_me:$LINENO: result: yes" >&5
4019echo "${ECHO_T}yes" >&6
a1622950 4020 else
e6cc62c6
VS
4021 echo "$as_me:$LINENO: result: no" >&5
4022echo "${ECHO_T}no" >&6
a1622950 4023 fi
e6cc62c6 4024
a1622950 4025
5005acfe 4026 enablestring=
e6cc62c6
VS
4027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4028echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4029 no_cache=0
4030 # Check whether --enable-sockets or --disable-sockets was given.
4031if test "${enable_sockets+set}" = set; then
4032 enableval="$enable_sockets"
e6cc62c6 4033
10f2d63a
VZ
4034 if test "$enableval" = yes; then
4035 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4036 else
4037 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4038 fi
e6cc62c6 4039
10f2d63a 4040else
e6cc62c6 4041
10f2d63a
VZ
4042 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4043 if test "x$LINE" != x ; then
4044 eval "DEFAULT_$LINE"
4045 else
4046 no_cache=1
4047 fi
4048
4049 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4050
e6cc62c6 4051fi;
10f2d63a
VZ
4052
4053 eval "$ac_cv_use_sockets"
4054 if test "$no_cache" != 1; then
4055 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4056 fi
4057
4058 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4059 echo "$as_me:$LINENO: result: yes" >&5
4060echo "${ECHO_T}yes" >&6
10f2d63a 4061 else
e6cc62c6
VS
4062 echo "$as_me:$LINENO: result: no" >&5
4063echo "${ECHO_T}no" >&6
10f2d63a 4064 fi
e6cc62c6 4065
8284b0c5 4066
5005acfe 4067 enablestring=
e6cc62c6
VS
4068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4069echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4070 no_cache=0
4071 # Check whether --enable-ole or --disable-ole was given.
4072if test "${enable_ole+set}" = set; then
4073 enableval="$enable_ole"
e6cc62c6 4074
3bce6687
JS
4075 if test "$enableval" = yes; then
4076 ac_cv_use_ole='wxUSE_OLE=yes'
4077 else
4078 ac_cv_use_ole='wxUSE_OLE=no'
4079 fi
e6cc62c6 4080
3bce6687 4081else
e6cc62c6 4082
3bce6687
JS
4083 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4084 if test "x$LINE" != x ; then
4085 eval "DEFAULT_$LINE"
4086 else
4087 no_cache=1
4088 fi
4089
4090 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4091
e6cc62c6 4092fi;
3bce6687
JS
4093
4094 eval "$ac_cv_use_ole"
4095 if test "$no_cache" != 1; then
4096 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4097 fi
4098
4099 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4100 echo "$as_me:$LINENO: result: yes" >&5
4101echo "${ECHO_T}yes" >&6
3bce6687 4102 else
e6cc62c6
VS
4103 echo "$as_me:$LINENO: result: no" >&5
4104echo "${ECHO_T}no" >&6
3bce6687 4105 fi
e6cc62c6 4106
3bce6687 4107
5005acfe 4108 enablestring=
e6cc62c6
VS
4109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4110echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4111 no_cache=0
4112 # Check whether --enable-dataobj or --disable-dataobj was given.
4113if test "${enable_dataobj+set}" = set; then
4114 enableval="$enable_dataobj"
e6cc62c6 4115
3bce6687
JS
4116 if test "$enableval" = yes; then
4117 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4118 else
4119 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4120 fi
e6cc62c6 4121
3bce6687 4122else
e6cc62c6 4123
3bce6687
JS
4124 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4125 if test "x$LINE" != x ; then
4126 eval "DEFAULT_$LINE"
4127 else
4128 no_cache=1
4129 fi
4130
4131 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4132
e6cc62c6 4133fi;
3bce6687
JS
4134
4135 eval "$ac_cv_use_dataobj"
4136 if test "$no_cache" != 1; then
4137 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4138 fi
4139
4140 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4141 echo "$as_me:$LINENO: result: yes" >&5
4142echo "${ECHO_T}yes" >&6
3bce6687 4143 else
e6cc62c6
VS
4144 echo "$as_me:$LINENO: result: no" >&5
4145echo "${ECHO_T}no" >&6
3bce6687 4146 fi
e6cc62c6 4147
3bce6687 4148
52127426 4149
5005acfe 4150 enablestring=
e6cc62c6
VS
4151 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4152echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4153 no_cache=0
eb4efbdc
VZ
4154 # Check whether --enable-ipc or --disable-ipc was given.
4155if test "${enable_ipc+set}" = set; then
4156 enableval="$enable_ipc"
e6cc62c6 4157
10f2d63a 4158 if test "$enableval" = yes; then
eb4efbdc 4159 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4160 else
eb4efbdc 4161 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4162 fi
e6cc62c6 4163
10f2d63a 4164else
e6cc62c6 4165
eb4efbdc 4166 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4167 if test "x$LINE" != x ; then
4168 eval "DEFAULT_$LINE"
4169 else
4170 no_cache=1
4171 fi
4172
eb4efbdc 4173 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4174
e6cc62c6 4175fi;
10f2d63a 4176
eb4efbdc 4177 eval "$ac_cv_use_ipc"
10f2d63a 4178 if test "$no_cache" != 1; then
eb4efbdc 4179 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4180 fi
4181
eb4efbdc 4182 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4183 echo "$as_me:$LINENO: result: yes" >&5
4184echo "${ECHO_T}yes" >&6
10f2d63a 4185 else
e6cc62c6
VS
4186 echo "$as_me:$LINENO: result: no" >&5
4187echo "${ECHO_T}no" >&6
10f2d63a 4188 fi
e6cc62c6 4189
52127426 4190
8284b0c5 4191
5005acfe 4192 enablestring=
e6cc62c6
VS
4193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4194echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
1e6feb95
VZ
4195 no_cache=0
4196 # Check whether --enable-cmdline or --disable-cmdline was given.
4197if test "${enable_cmdline+set}" = set; then
4198 enableval="$enable_cmdline"
e6cc62c6 4199
1e6feb95
VZ
4200 if test "$enableval" = yes; then
4201 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4202 else
4203 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4204 fi
e6cc62c6 4205
1e6feb95 4206else
e6cc62c6 4207
1e6feb95
VZ
4208 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4209 if test "x$LINE" != x ; then
4210 eval "DEFAULT_$LINE"
4211 else
4212 no_cache=1
4213 fi
4214
4215 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
1e6feb95 4216
e6cc62c6 4217fi;
1e6feb95
VZ
4218
4219 eval "$ac_cv_use_cmdline"
4220 if test "$no_cache" != 1; then
4221 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4222 fi
4223
4224 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4225 echo "$as_me:$LINENO: result: yes" >&5
4226echo "${ECHO_T}yes" >&6
1e6feb95 4227 else
e6cc62c6
VS
4228 echo "$as_me:$LINENO: result: no" >&5
4229echo "${ECHO_T}no" >&6
1e6feb95 4230 fi
e6cc62c6 4231
1e6feb95 4232
5005acfe 4233 enablestring=
e6cc62c6
VS
4234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4235echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
1e6feb95
VZ
4236 no_cache=0
4237 # Check whether --enable-datetime or --disable-datetime was given.
4238if test "${enable_datetime+set}" = set; then
4239 enableval="$enable_datetime"
e6cc62c6 4240
1e6feb95
VZ
4241 if test "$enableval" = yes; then
4242 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4243 else
4244 ac_cv_use_datetime='wxUSE_DATETIME=no'
4245 fi
e6cc62c6 4246
1e6feb95 4247else
e6cc62c6 4248
1e6feb95
VZ
4249 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4250 if test "x$LINE" != x ; then
4251 eval "DEFAULT_$LINE"
4252 else
4253 no_cache=1
4254 fi
4255
4256 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
1e6feb95 4257
e6cc62c6 4258fi;
1e6feb95
VZ
4259
4260 eval "$ac_cv_use_datetime"
4261 if test "$no_cache" != 1; then
4262 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4263 fi
4264
4265 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4266 echo "$as_me:$LINENO: result: yes" >&5
4267echo "${ECHO_T}yes" >&6
1e6feb95 4268 else
e6cc62c6
VS
4269 echo "$as_me:$LINENO: result: no" >&5
4270echo "${ECHO_T}no" >&6
1e6feb95 4271 fi
e6cc62c6 4272
1e6feb95 4273
5005acfe 4274 enablestring=
e6cc62c6
VS
4275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4276echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
1e6feb95
VZ
4277 no_cache=0
4278 # Check whether --enable-stopwatch or --disable-stopwatch was given.
4279if test "${enable_stopwatch+set}" = set; then
4280 enableval="$enable_stopwatch"
e6cc62c6 4281
1e6feb95
VZ
4282 if test "$enableval" = yes; then
4283 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4284 else
4285 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4286 fi
e6cc62c6 4287
1e6feb95 4288else
e6cc62c6 4289
1e6feb95
VZ
4290 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4291 if test "x$LINE" != x ; then
4292 eval "DEFAULT_$LINE"
4293 else
4294 no_cache=1
4295 fi
4296
4297 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
1e6feb95 4298
e6cc62c6 4299fi;
1e6feb95
VZ
4300
4301 eval "$ac_cv_use_stopwatch"
4302 if test "$no_cache" != 1; then
4303 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4304 fi
4305
4306 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
4307 echo "$as_me:$LINENO: result: yes" >&5
4308echo "${ECHO_T}yes" >&6
1e6feb95 4309 else
e6cc62c6
VS
4310 echo "$as_me:$LINENO: result: no" >&5
4311echo "${ECHO_T}no" >&6
1e6feb95 4312 fi
e6cc62c6 4313
1e6feb95 4314
5005acfe 4315 enablestring=
e6cc62c6
VS
4316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4317echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4318 no_cache=0
eb4efbdc
VZ
4319 # Check whether --enable-dialupman or --disable-dialupman was given.
4320if test "${enable_dialupman+set}" = set; then
4321 enableval="$enable_dialupman"
e6cc62c6 4322
10f2d63a 4323 if test "$enableval" = yes; then
eb4efbdc 4324 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4325 else
eb4efbdc 4326 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4327 fi
e6cc62c6 4328
10f2d63a 4329else
e6cc62c6 4330
eb4efbdc 4331 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4332 if test "x$LINE" != x ; then
4333 eval "DEFAULT_$LINE"
4334 else
4335 no_cache=1
4336 fi
4337
eb4efbdc 4338 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4339
e6cc62c6 4340fi;
10f2d63a 4341
eb4efbdc 4342 eval "$ac_cv_use_dialupman"
10f2d63a 4343 if test "$no_cache" != 1; then
eb4efbdc 4344 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4345 fi
4346
eb4efbdc 4347 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4348 echo "$as_me:$LINENO: result: yes" >&5
4349echo "${ECHO_T}yes" >&6
10f2d63a 4350 else
e6cc62c6
VS
4351 echo "$as_me:$LINENO: result: no" >&5
4352echo "${ECHO_T}no" >&6
10f2d63a 4353 fi
e6cc62c6 4354
10f2d63a 4355
5005acfe 4356 enablestring=
e6cc62c6
VS
4357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4358echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a
VZ
4359 no_cache=0
4360 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4361if test "${enable_apple_ieee+set}" = set; then
4362 enableval="$enable_apple_ieee"
e6cc62c6 4363
10f2d63a
VZ
4364 if test "$enableval" = yes; then
4365 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4366 else
4367 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4368 fi
e6cc62c6 4369
10f2d63a 4370else
e6cc62c6 4371
10f2d63a
VZ
4372 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4373 if test "x$LINE" != x ; then
4374 eval "DEFAULT_$LINE"
4375 else
4376 no_cache=1
4377 fi
4378
4379 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4380
e6cc62c6 4381fi;
10f2d63a
VZ
4382
4383 eval "$ac_cv_use_apple_ieee"
4384 if test "$no_cache" != 1; then
4385 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4386 fi
4387
4388 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4389 echo "$as_me:$LINENO: result: yes" >&5
4390echo "${ECHO_T}yes" >&6
10f2d63a 4391 else
e6cc62c6
VS
4392 echo "$as_me:$LINENO: result: no" >&5
4393echo "${ECHO_T}no" >&6
10f2d63a 4394 fi
e6cc62c6 4395
10f2d63a 4396
5005acfe 4397 enablestring=
e6cc62c6
VS
4398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4399echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
10f2d63a 4400 no_cache=0
1e6feb95
VZ
4401 # Check whether --enable-timer or --disable-timer was given.
4402if test "${enable_timer+set}" = set; then
4403 enableval="$enable_timer"
e6cc62c6 4404
10f2d63a 4405 if test "$enableval" = yes; then
1e6feb95 4406 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 4407 else
1e6feb95 4408 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 4409 fi
e6cc62c6 4410
10f2d63a 4411else
e6cc62c6 4412
1e6feb95 4413 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
4414 if test "x$LINE" != x ; then
4415 eval "DEFAULT_$LINE"
4416 else
4417 no_cache=1
4418 fi
4419
1e6feb95 4420 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
10f2d63a 4421
e6cc62c6 4422fi;
10f2d63a 4423
1e6feb95 4424 eval "$ac_cv_use_timer"
10f2d63a 4425 if test "$no_cache" != 1; then
1e6feb95 4426 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4427 fi
4428
1e6feb95 4429 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
4430 echo "$as_me:$LINENO: result: yes" >&5
4431echo "${ECHO_T}yes" >&6
10f2d63a 4432 else
e6cc62c6
VS
4433 echo "$as_me:$LINENO: result: no" >&5
4434echo "${ECHO_T}no" >&6
10f2d63a 4435 fi
e6cc62c6 4436
10f2d63a 4437
5005acfe 4438 enablestring=
e6cc62c6
VS
4439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4440echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
10f2d63a
VZ
4441 no_cache=0
4442 # Check whether --enable-wave or --disable-wave was given.
4443if test "${enable_wave+set}" = set; then
4444 enableval="$enable_wave"
e6cc62c6 4445
10f2d63a
VZ
4446 if test "$enableval" = yes; then
4447 ac_cv_use_wave='wxUSE_WAVE=yes'
4448 else
4449 ac_cv_use_wave='wxUSE_WAVE=no'
4450 fi
e6cc62c6 4451
10f2d63a 4452else
e6cc62c6 4453
10f2d63a
VZ
4454 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4455 if test "x$LINE" != x ; then
4456 eval "DEFAULT_$LINE"
4457 else
4458 no_cache=1
4459 fi
4460
4461 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
10f2d63a 4462
e6cc62c6 4463fi;
10f2d63a
VZ
4464
4465 eval "$ac_cv_use_wave"
4466 if test "$no_cache" != 1; then
4467 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4468 fi
4469
4470 if test "$wxUSE_WAVE" = yes; then
e6cc62c6
VS
4471 echo "$as_me:$LINENO: result: yes" >&5
4472echo "${ECHO_T}yes" >&6
10f2d63a 4473 else
e6cc62c6
VS
4474 echo "$as_me:$LINENO: result: no" >&5
4475echo "${ECHO_T}no" >&6
10f2d63a 4476 fi
e6cc62c6 4477
10f2d63a 4478
5005acfe 4479 enablestring=
e6cc62c6
VS
4480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4481echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
10f2d63a
VZ
4482 no_cache=0
4483 # Check whether --enable-fraction or --disable-fraction was given.
4484if test "${enable_fraction+set}" = set; then
4485 enableval="$enable_fraction"
e6cc62c6 4486
10f2d63a
VZ
4487 if test "$enableval" = yes; then
4488 ac_cv_use_fraction='wxUSE_FRACTION=yes'
4489 else
4490 ac_cv_use_fraction='wxUSE_FRACTION=no'
4491 fi
e6cc62c6 4492
10f2d63a 4493else
e6cc62c6 4494
10f2d63a
VZ
4495 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4496 if test "x$LINE" != x ; then
4497 eval "DEFAULT_$LINE"
4498 else
4499 no_cache=1
4500 fi
4501
4502 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
10f2d63a 4503
e6cc62c6 4504fi;
10f2d63a
VZ
4505
4506 eval "$ac_cv_use_fraction"
4507 if test "$no_cache" != 1; then
4508 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4509 fi
4510
4511 if test "$wxUSE_FRACTION" = yes; then
e6cc62c6
VS
4512 echo "$as_me:$LINENO: result: yes" >&5
4513echo "${ECHO_T}yes" >&6
10f2d63a 4514 else
e6cc62c6
VS
4515 echo "$as_me:$LINENO: result: no" >&5
4516echo "${ECHO_T}no" >&6
10f2d63a 4517 fi
e6cc62c6 4518
10f2d63a 4519
5005acfe 4520 enablestring=
e6cc62c6
VS
4521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4522echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4523 no_cache=0
4524 # Check whether --enable-dynlib or --disable-dynlib was given.
4525if test "${enable_dynlib+set}" = set; then
4526 enableval="$enable_dynlib"
e6cc62c6 4527
10f2d63a
VZ
4528 if test "$enableval" = yes; then
4529 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4530 else
4531 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4532 fi
e6cc62c6 4533
10f2d63a 4534else
e6cc62c6 4535
10f2d63a
VZ
4536 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4537 if test "x$LINE" != x ; then
4538 eval "DEFAULT_$LINE"
4539 else
4540 no_cache=1
4541 fi
4542
4543 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4544
e6cc62c6 4545fi;
10f2d63a
VZ
4546
4547 eval "$ac_cv_use_dynlib"
4548 if test "$no_cache" != 1; then
4549 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4550 fi
4551
4552 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4553 echo "$as_me:$LINENO: result: yes" >&5
4554echo "${ECHO_T}yes" >&6
10f2d63a 4555 else
e6cc62c6
VS
4556 echo "$as_me:$LINENO: result: no" >&5
4557echo "${ECHO_T}no" >&6
10f2d63a 4558 fi
e6cc62c6 4559
10f2d63a 4560
5005acfe 4561 enablestring=
e6cc62c6
VS
4562 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4563echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4564 no_cache=0
4565 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4566if test "${enable_dynamicloader+set}" = set; then
4567 enableval="$enable_dynamicloader"
e6cc62c6 4568
0b9ab0bd
RL
4569 if test "$enableval" = yes; then
4570 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4571 else
4572 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4573 fi
e6cc62c6 4574
0b9ab0bd 4575else
e6cc62c6 4576
0b9ab0bd
RL
4577 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4578 if test "x$LINE" != x ; then
4579 eval "DEFAULT_$LINE"
4580 else
4581 no_cache=1
4582 fi
4583
4584 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4585
e6cc62c6 4586fi;
0b9ab0bd
RL
4587
4588 eval "$ac_cv_use_dynamicloader"
4589 if test "$no_cache" != 1; then
4590 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4591 fi
4592
4593 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4594 echo "$as_me:$LINENO: result: yes" >&5
4595echo "${ECHO_T}yes" >&6
0b9ab0bd 4596 else
e6cc62c6
VS
4597 echo "$as_me:$LINENO: result: no" >&5
4598echo "${ECHO_T}no" >&6
0b9ab0bd 4599 fi
e6cc62c6 4600
0b9ab0bd 4601
5005acfe 4602 enablestring=
e6cc62c6
VS
4603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4604echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a
VZ
4605 no_cache=0
4606 # Check whether --enable-longlong or --disable-longlong was given.
4607if test "${enable_longlong+set}" = set; then
4608 enableval="$enable_longlong"
e6cc62c6 4609
10f2d63a
VZ
4610 if test "$enableval" = yes; then
4611 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4612 else
4613 ac_cv_use_longlong='wxUSE_LONGLONG=no'
4614 fi
e6cc62c6 4615
10f2d63a 4616else
e6cc62c6 4617
10f2d63a
VZ
4618 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4619 if test "x$LINE" != x ; then
4620 eval "DEFAULT_$LINE"
4621 else
4622 no_cache=1
4623 fi
4624
4625 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
10f2d63a 4626
e6cc62c6 4627fi;
10f2d63a
VZ
4628
4629 eval "$ac_cv_use_longlong"
4630 if test "$no_cache" != 1; then
4631 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4632 fi
4633
4634 if test "$wxUSE_LONGLONG" = yes; then
e6cc62c6
VS
4635 echo "$as_me:$LINENO: result: yes" >&5
4636echo "${ECHO_T}yes" >&6
10f2d63a 4637 else
e6cc62c6
VS
4638 echo "$as_me:$LINENO: result: no" >&5
4639echo "${ECHO_T}no" >&6
10f2d63a 4640 fi
e6cc62c6 4641
10f2d63a 4642
5005acfe 4643 enablestring=
e6cc62c6
VS
4644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4645echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
e8f65ba6
RR
4646 no_cache=0
4647 # Check whether --enable-geometry or --disable-geometry was given.
4648if test "${enable_geometry+set}" = set; then
4649 enableval="$enable_geometry"
e6cc62c6 4650
e8f65ba6
RR
4651 if test "$enableval" = yes; then
4652 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4653 else
4654 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4655 fi
e6cc62c6 4656
e8f65ba6 4657else
e6cc62c6 4658
e8f65ba6
RR
4659 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4660 if test "x$LINE" != x ; then
4661 eval "DEFAULT_$LINE"
4662 else
4663 no_cache=1
4664 fi
4665
4666 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
e8f65ba6 4667
e6cc62c6 4668fi;
e8f65ba6
RR
4669
4670 eval "$ac_cv_use_geometry"
4671 if test "$no_cache" != 1; then
4672 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4673 fi
4674
4675 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4676 echo "$as_me:$LINENO: result: yes" >&5
4677echo "${ECHO_T}yes" >&6
e8f65ba6 4678 else
e6cc62c6
VS
4679 echo "$as_me:$LINENO: result: no" >&5
4680echo "${ECHO_T}no" >&6
e8f65ba6 4681 fi
e6cc62c6 4682
e8f65ba6 4683
5005acfe 4684 enablestring=
e6cc62c6
VS
4685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4686echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a
VZ
4687 no_cache=0
4688 # Check whether --enable-log or --disable-log was given.
4689if test "${enable_log+set}" = set; then
4690 enableval="$enable_log"
e6cc62c6 4691
10f2d63a
VZ
4692 if test "$enableval" = yes; then
4693 ac_cv_use_log='wxUSE_LOG=yes'
4694 else
4695 ac_cv_use_log='wxUSE_LOG=no'
4696 fi
e6cc62c6 4697
10f2d63a 4698else
e6cc62c6 4699
10f2d63a
VZ
4700 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4701 if test "x$LINE" != x ; then
4702 eval "DEFAULT_$LINE"
4703 else
4704 no_cache=1
4705 fi
4706
4707 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4708
e6cc62c6 4709fi;
10f2d63a
VZ
4710
4711 eval "$ac_cv_use_log"
4712 if test "$no_cache" != 1; then
4713 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4714 fi
4715
4716 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4717 echo "$as_me:$LINENO: result: yes" >&5
4718echo "${ECHO_T}yes" >&6
10f2d63a 4719 else
e6cc62c6
VS
4720 echo "$as_me:$LINENO: result: no" >&5
4721echo "${ECHO_T}no" >&6
10f2d63a 4722 fi
e6cc62c6 4723
10f2d63a 4724
5005acfe 4725 enablestring=
e6cc62c6
VS
4726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4727echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
10f2d63a
VZ
4728 no_cache=0
4729 # Check whether --enable-streams or --disable-streams was given.
4730if test "${enable_streams+set}" = set; then
4731 enableval="$enable_streams"
e6cc62c6 4732
10f2d63a
VZ
4733 if test "$enableval" = yes; then
4734 ac_cv_use_streams='wxUSE_STREAMS=yes'
4735 else
4736 ac_cv_use_streams='wxUSE_STREAMS=no'
4737 fi
e6cc62c6 4738
10f2d63a 4739else
e6cc62c6 4740
10f2d63a
VZ
4741 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4742 if test "x$LINE" != x ; then
4743 eval "DEFAULT_$LINE"
4744 else
4745 no_cache=1
4746 fi
4747
4748 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
10f2d63a 4749
e6cc62c6 4750fi;
10f2d63a
VZ
4751
4752 eval "$ac_cv_use_streams"
4753 if test "$no_cache" != 1; then
4754 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4755 fi
4756
4757 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
4758 echo "$as_me:$LINENO: result: yes" >&5
4759echo "${ECHO_T}yes" >&6
10f2d63a 4760 else
e6cc62c6
VS
4761 echo "$as_me:$LINENO: result: no" >&5
4762echo "${ECHO_T}no" >&6
10f2d63a 4763 fi
e6cc62c6 4764
10f2d63a 4765
5005acfe 4766 enablestring=
e6cc62c6
VS
4767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4768echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a
VZ
4769 no_cache=0
4770 # Check whether --enable-file or --disable-file was given.
4771if test "${enable_file+set}" = set; then
4772 enableval="$enable_file"
e6cc62c6 4773
10f2d63a
VZ
4774 if test "$enableval" = yes; then
4775 ac_cv_use_file='wxUSE_FILE=yes'
4776 else
4777 ac_cv_use_file='wxUSE_FILE=no'
4778 fi
e6cc62c6 4779
10f2d63a 4780else
e6cc62c6 4781
10f2d63a
VZ
4782 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4783 if test "x$LINE" != x ; then
4784 eval "DEFAULT_$LINE"
4785 else
4786 no_cache=1
4787 fi
4788
4789 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4790
e6cc62c6 4791fi;
10f2d63a
VZ
4792
4793 eval "$ac_cv_use_file"
4794 if test "$no_cache" != 1; then
4795 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4796 fi
4797
4798 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4799 echo "$as_me:$LINENO: result: yes" >&5
4800echo "${ECHO_T}yes" >&6
10f2d63a 4801 else
e6cc62c6
VS
4802 echo "$as_me:$LINENO: result: no" >&5
4803echo "${ECHO_T}no" >&6
10f2d63a 4804 fi
e6cc62c6 4805
10f2d63a 4806
5005acfe 4807 enablestring=
e6cc62c6
VS
4808 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4809echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
10f2d63a 4810 no_cache=0
1e6feb95
VZ
4811 # Check whether --enable-ffile or --disable-ffile was given.
4812if test "${enable_ffile+set}" = set; then
4813 enableval="$enable_ffile"
e6cc62c6 4814
10f2d63a 4815 if test "$enableval" = yes; then
1e6feb95 4816 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 4817 else
1e6feb95 4818 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 4819 fi
e6cc62c6 4820
10f2d63a 4821else
e6cc62c6 4822
1e6feb95 4823 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4824 if test "x$LINE" != x ; then
4825 eval "DEFAULT_$LINE"
4826 else
4827 no_cache=1
4828 fi
4829
1e6feb95 4830 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
10f2d63a 4831
e6cc62c6 4832fi;
10f2d63a 4833
1e6feb95 4834 eval "$ac_cv_use_ffile"
10f2d63a 4835 if test "$no_cache" != 1; then
1e6feb95 4836 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4837 fi
4838
1e6feb95 4839 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4840 echo "$as_me:$LINENO: result: yes" >&5
4841echo "${ECHO_T}yes" >&6
10f2d63a 4842 else
e6cc62c6
VS
4843 echo "$as_me:$LINENO: result: no" >&5
4844echo "${ECHO_T}no" >&6
10f2d63a 4845 fi
e6cc62c6 4846
10f2d63a 4847
5005acfe 4848 enablestring=
e6cc62c6
VS
4849 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4850echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
a3a584a7
VZ
4851 no_cache=0
4852 # Check whether --enable-textbuf or --disable-textbuf was given.
4853if test "${enable_textbuf+set}" = set; then
4854 enableval="$enable_textbuf"
e6cc62c6 4855
a3a584a7
VZ
4856 if test "$enableval" = yes; then
4857 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4858 else
4859 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4860 fi
e6cc62c6 4861
a3a584a7 4862else
e6cc62c6 4863
a3a584a7
VZ
4864 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4865 if test "x$LINE" != x ; then
4866 eval "DEFAULT_$LINE"
4867 else
4868 no_cache=1
4869 fi
4870
4871 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
a3a584a7 4872
e6cc62c6 4873fi;
a3a584a7
VZ
4874
4875 eval "$ac_cv_use_textbuf"
4876 if test "$no_cache" != 1; then
4877 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4878 fi
4879
4880 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
4881 echo "$as_me:$LINENO: result: yes" >&5
4882echo "${ECHO_T}yes" >&6
a3a584a7 4883 else
e6cc62c6
VS
4884 echo "$as_me:$LINENO: result: no" >&5
4885echo "${ECHO_T}no" >&6
a3a584a7 4886 fi
e6cc62c6 4887
a3a584a7 4888
5005acfe 4889 enablestring=
e6cc62c6
VS
4890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4891echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 4892 no_cache=0
1e6feb95
VZ
4893 # Check whether --enable-textfile or --disable-textfile was given.
4894if test "${enable_textfile+set}" = set; then
4895 enableval="$enable_textfile"
e6cc62c6 4896
10f2d63a 4897 if test "$enableval" = yes; then
1e6feb95 4898 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4899 else
1e6feb95 4900 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4901 fi
e6cc62c6 4902
10f2d63a 4903else
e6cc62c6 4904
1e6feb95 4905 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4906 if test "x$LINE" != x ; then
4907 eval "DEFAULT_$LINE"
4908 else
4909 no_cache=1
4910 fi
4911
1e6feb95 4912 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 4913
e6cc62c6 4914fi;
10f2d63a 4915
1e6feb95 4916 eval "$ac_cv_use_textfile"
10f2d63a 4917 if test "$no_cache" != 1; then
1e6feb95 4918 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4919 fi
4920
1e6feb95 4921 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
4922 echo "$as_me:$LINENO: result: yes" >&5
4923echo "${ECHO_T}yes" >&6
10f2d63a 4924 else
e6cc62c6
VS
4925 echo "$as_me:$LINENO: result: no" >&5
4926echo "${ECHO_T}no" >&6
10f2d63a 4927 fi
e6cc62c6 4928
10f2d63a 4929
5005acfe 4930 enablestring=
e6cc62c6
VS
4931 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4932echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4933 no_cache=0
1e6feb95
VZ
4934 # Check whether --enable-fontmap or --disable-fontmap was given.
4935if test "${enable_fontmap+set}" = set; then
4936 enableval="$enable_fontmap"
e6cc62c6 4937
10f2d63a 4938 if test "$enableval" = yes; then
1e6feb95 4939 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4940 else
1e6feb95 4941 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4942 fi
e6cc62c6 4943
10f2d63a 4944else
e6cc62c6 4945
1e6feb95 4946 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4947 if test "x$LINE" != x ; then
4948 eval "DEFAULT_$LINE"
4949 else
4950 no_cache=1
4951 fi
4952
1e6feb95 4953 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4954
e6cc62c6 4955fi;
10f2d63a 4956
1e6feb95 4957 eval "$ac_cv_use_fontmap"
10f2d63a 4958 if test "$no_cache" != 1; then
1e6feb95 4959 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4960 fi
4961
1e6feb95 4962 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4963 echo "$as_me:$LINENO: result: yes" >&5
4964echo "${ECHO_T}yes" >&6
10f2d63a 4965 else
e6cc62c6
VS
4966 echo "$as_me:$LINENO: result: no" >&5
4967echo "${ECHO_T}no" >&6
10f2d63a 4968 fi
e6cc62c6 4969
10f2d63a 4970
5005acfe 4971 enablestring=
e6cc62c6
VS
4972 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4973echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
10f2d63a 4974 no_cache=0
1e6feb95
VZ
4975 # Check whether --enable-unicode or --disable-unicode was given.
4976if test "${enable_unicode+set}" = set; then
4977 enableval="$enable_unicode"
e6cc62c6 4978
1e6feb95
VZ
4979 if test "$enableval" = yes; then
4980 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4981 else
4982 ac_cv_use_unicode='wxUSE_UNICODE=no'
4983 fi
e6cc62c6 4984
1e6feb95 4985else
e6cc62c6 4986
1e6feb95
VZ
4987 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4988 if test "x$LINE" != x ; then
4989 eval "DEFAULT_$LINE"
4990 else
4991 no_cache=1
4992 fi
4993
4994 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
1e6feb95 4995
e6cc62c6 4996fi;
1e6feb95
VZ
4997
4998 eval "$ac_cv_use_unicode"
4999 if test "$no_cache" != 1; then
5000 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5001 fi
5002
5003 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5004 echo "$as_me:$LINENO: result: yes" >&5
5005echo "${ECHO_T}yes" >&6
1e6feb95 5006 else
e6cc62c6
VS
5007 echo "$as_me:$LINENO: result: no" >&5
5008echo "${ECHO_T}no" >&6
1e6feb95 5009 fi
e6cc62c6 5010
1e6feb95 5011
5005acfe 5012 enablestring=
e6cc62c6
VS
5013 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5014echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5015 no_cache=0
5016 # Check whether --enable-mslu or --disable-mslu was given.
5017if test "${enable_mslu+set}" = set; then
5018 enableval="$enable_mslu"
e6cc62c6 5019
a72a4bfa
VS
5020 if test "$enableval" = yes; then
5021 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5022 else
5023 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5024 fi
e6cc62c6 5025
a72a4bfa 5026else
e6cc62c6 5027
a72a4bfa
VS
5028 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5029 if test "x$LINE" != x ; then
5030 eval "DEFAULT_$LINE"
5031 else
5032 no_cache=1
5033 fi
5034
5035 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5036
e6cc62c6 5037fi;
a72a4bfa
VS
5038
5039 eval "$ac_cv_use_mslu"
5040 if test "$no_cache" != 1; then
5041 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5042 fi
5043
5044 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5045 echo "$as_me:$LINENO: result: yes" >&5
5046echo "${ECHO_T}yes" >&6
a72a4bfa 5047 else
e6cc62c6
VS
5048 echo "$as_me:$LINENO: result: no" >&5
5049echo "${ECHO_T}no" >&6
a72a4bfa 5050 fi
e6cc62c6 5051
a72a4bfa 5052
5005acfe 5053 enablestring=
e6cc62c6
VS
5054 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5055echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95
VZ
5056 no_cache=0
5057 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5058if test "${enable_wxprintfv+set}" = set; then
5059 enableval="$enable_wxprintfv"
e6cc62c6 5060
1e6feb95 5061 if test "$enableval" = yes; then
10f2d63a
VZ
5062 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5063 else
5064 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5065 fi
e6cc62c6 5066
10f2d63a 5067else
e6cc62c6 5068
10f2d63a
VZ
5069 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5070 if test "x$LINE" != x ; then
5071 eval "DEFAULT_$LINE"
5072 else
5073 no_cache=1
5074 fi
5075
5076 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
10f2d63a 5077
e6cc62c6 5078fi;
10f2d63a
VZ
5079
5080 eval "$ac_cv_use_wxprintfv"
5081 if test "$no_cache" != 1; then
5082 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5083 fi
5084
5085 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5086 echo "$as_me:$LINENO: result: yes" >&5
5087echo "${ECHO_T}yes" >&6
10f2d63a 5088 else
e6cc62c6
VS
5089 echo "$as_me:$LINENO: result: no" >&5
5090echo "${ECHO_T}no" >&6
10f2d63a 5091 fi
e6cc62c6 5092
10f2d63a 5093
5005acfe 5094 enablestring=
e6cc62c6
VS
5095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5096echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5097 no_cache=0
5098 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5099if test "${enable_std_iostreams+set}" = set; then
5100 enableval="$enable_std_iostreams"
e6cc62c6 5101
10f2d63a
VZ
5102 if test "$enableval" = yes; then
5103 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5104 else
5105 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5106 fi
e6cc62c6 5107
10f2d63a 5108else
e6cc62c6 5109
10f2d63a
VZ
5110 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5111 if test "x$LINE" != x ; then
5112 eval "DEFAULT_$LINE"
5113 else
5114 no_cache=1
5115 fi
5116
5117 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5118
e6cc62c6 5119fi;
10f2d63a
VZ
5120
5121 eval "$ac_cv_use_std_iostreams"
5122 if test "$no_cache" != 1; then
5123 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5124 fi
5125
5126 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5127 echo "$as_me:$LINENO: result: yes" >&5
5128echo "${ECHO_T}yes" >&6
10f2d63a 5129 else
e6cc62c6
VS
5130 echo "$as_me:$LINENO: result: no" >&5
5131echo "${ECHO_T}no" >&6
10f2d63a 5132 fi
e6cc62c6 5133
10f2d63a 5134
5005acfe 5135 enablestring=
e6cc62c6
VS
5136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5137echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
24528b0c
VS
5138 no_cache=0
5139 # Check whether --enable-filesystem or --disable-filesystem was given.
5140if test "${enable_filesystem+set}" = set; then
5141 enableval="$enable_filesystem"
e6cc62c6 5142
24528b0c
VS
5143 if test "$enableval" = yes; then
5144 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5145 else
5146 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5147 fi
e6cc62c6 5148
24528b0c 5149else
e6cc62c6 5150
24528b0c
VS
5151 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5152 if test "x$LINE" != x ; then
5153 eval "DEFAULT_$LINE"
5154 else
5155 no_cache=1
5156 fi
5157
5158 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
24528b0c 5159
e6cc62c6 5160fi;
24528b0c
VS
5161
5162 eval "$ac_cv_use_filesystem"
5163 if test "$no_cache" != 1; then
5164 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5165 fi
5166
5167 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
5168 echo "$as_me:$LINENO: result: yes" >&5
5169echo "${ECHO_T}yes" >&6
24528b0c 5170 else
e6cc62c6
VS
5171 echo "$as_me:$LINENO: result: no" >&5
5172echo "${ECHO_T}no" >&6
24528b0c 5173 fi
e6cc62c6 5174
24528b0c 5175
5005acfe 5176 enablestring=
e6cc62c6
VS
5177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5178echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a
VZ
5179 no_cache=0
5180 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5181if test "${enable_fs_inet+set}" = set; then
5182 enableval="$enable_fs_inet"
e6cc62c6 5183
10f2d63a
VZ
5184 if test "$enableval" = yes; then
5185 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5186 else
5187 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5188 fi
e6cc62c6 5189
10f2d63a 5190else
e6cc62c6 5191
10f2d63a
VZ
5192 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5193 if test "x$LINE" != x ; then
5194 eval "DEFAULT_$LINE"
5195 else
5196 no_cache=1
5197 fi
5198
5199 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 5200
e6cc62c6 5201fi;
10f2d63a
VZ
5202
5203 eval "$ac_cv_use_fs_inet"
5204 if test "$no_cache" != 1; then
5205 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5206 fi
5207
5208 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
5209 echo "$as_me:$LINENO: result: yes" >&5
5210echo "${ECHO_T}yes" >&6
10f2d63a 5211 else
e6cc62c6
VS
5212 echo "$as_me:$LINENO: result: no" >&5
5213echo "${ECHO_T}no" >&6
10f2d63a 5214 fi
e6cc62c6 5215
10f2d63a 5216
5005acfe 5217 enablestring=
e6cc62c6
VS
5218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5219echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
10f2d63a
VZ
5220 no_cache=0
5221 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5222if test "${enable_fs_zip+set}" = set; then
5223 enableval="$enable_fs_zip"
e6cc62c6 5224
10f2d63a
VZ
5225 if test "$enableval" = yes; then
5226 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5227 else
5228 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5229 fi
e6cc62c6 5230
10f2d63a 5231else
e6cc62c6 5232
10f2d63a
VZ
5233 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5234 if test "x$LINE" != x ; then
5235 eval "DEFAULT_$LINE"
5236 else
5237 no_cache=1
5238 fi
5239
5240 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
10f2d63a 5241
e6cc62c6 5242fi;
10f2d63a
VZ
5243
5244 eval "$ac_cv_use_fs_zip"
5245 if test "$no_cache" != 1; then
5246 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5247 fi
5248
5249 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5250 echo "$as_me:$LINENO: result: yes" >&5
5251echo "${ECHO_T}yes" >&6
10f2d63a 5252 else
e6cc62c6
VS
5253 echo "$as_me:$LINENO: result: no" >&5
5254echo "${ECHO_T}no" >&6
10f2d63a 5255 fi
e6cc62c6 5256
10f2d63a 5257
5005acfe 5258 enablestring=
e6cc62c6
VS
5259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5260echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
10f2d63a
VZ
5261 no_cache=0
5262 # Check whether --enable-zipstream or --disable-zipstream was given.
5263if test "${enable_zipstream+set}" = set; then
5264 enableval="$enable_zipstream"
e6cc62c6 5265
10f2d63a
VZ
5266 if test "$enableval" = yes; then
5267 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5268 else
5269 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5270 fi
e6cc62c6 5271
10f2d63a 5272else
e6cc62c6 5273
10f2d63a
VZ
5274 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5275 if test "x$LINE" != x ; then
5276 eval "DEFAULT_$LINE"
5277 else
5278 no_cache=1
5279 fi
5280
5281 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
10f2d63a 5282
e6cc62c6 5283fi;
10f2d63a
VZ
5284
5285 eval "$ac_cv_use_zipstream"
5286 if test "$no_cache" != 1; then
5287 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5288 fi
5289
5290 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5291 echo "$as_me:$LINENO: result: yes" >&5
5292echo "${ECHO_T}yes" >&6
10f2d63a 5293 else
e6cc62c6
VS
5294 echo "$as_me:$LINENO: result: no" >&5
5295echo "${ECHO_T}no" >&6
10f2d63a 5296 fi
e6cc62c6 5297
8284b0c5 5298
52127426 5299
5005acfe 5300 enablestring=
e6cc62c6
VS
5301 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5302echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eb4efbdc
VZ
5303 no_cache=0
5304 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5305if test "${enable_catch_segvs+set}" = set; then
5306 enableval="$enable_catch_segvs"
e6cc62c6 5307
eb4efbdc
VZ
5308 if test "$enableval" = yes; then
5309 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5310 else
5311 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5312 fi
e6cc62c6 5313
eb4efbdc 5314else
e6cc62c6 5315
eb4efbdc
VZ
5316 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5317 if test "x$LINE" != x ; then
5318 eval "DEFAULT_$LINE"
5319 else
5320 no_cache=1
5321 fi
5322
5323 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eb4efbdc 5324
e6cc62c6 5325fi;
eb4efbdc
VZ
5326
5327 eval "$ac_cv_use_catch_segvs"
5328 if test "$no_cache" != 1; then
5329 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5330 fi
5331
5332 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
5333 echo "$as_me:$LINENO: result: yes" >&5
5334echo "${ECHO_T}yes" >&6
eb4efbdc 5335 else
e6cc62c6
VS
5336 echo "$as_me:$LINENO: result: no" >&5
5337echo "${ECHO_T}no" >&6
eb4efbdc 5338 fi
e6cc62c6 5339
eb4efbdc 5340
5005acfe 5341 enablestring=
e6cc62c6
VS
5342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5343echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
4f3c5f06
VZ
5344 no_cache=0
5345 # Check whether --enable-snglinst or --disable-snglinst was given.
5346if test "${enable_snglinst+set}" = set; then
5347 enableval="$enable_snglinst"
e6cc62c6 5348
4f3c5f06
VZ
5349 if test "$enableval" = yes; then
5350 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5351 else
5352 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5353 fi
e6cc62c6 5354
4f3c5f06 5355else
e6cc62c6 5356
4f3c5f06
VZ
5357 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5358 if test "x$LINE" != x ; then
5359 eval "DEFAULT_$LINE"
5360 else
5361 no_cache=1
5362 fi
5363
5364 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4f3c5f06 5365
e6cc62c6 5366fi;
4f3c5f06
VZ
5367
5368 eval "$ac_cv_use_snglinst"
5369 if test "$no_cache" != 1; then
5370 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5371 fi
5372
5373 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
e6cc62c6
VS
5374 echo "$as_me:$LINENO: result: yes" >&5
5375echo "${ECHO_T}yes" >&6
4f3c5f06 5376 else
e6cc62c6
VS
5377 echo "$as_me:$LINENO: result: no" >&5
5378echo "${ECHO_T}no" >&6
4f3c5f06 5379 fi
e6cc62c6 5380
52127426 5381
8284b0c5 5382
5005acfe 5383 enablestring=
e6cc62c6
VS
5384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5385echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
1e6feb95
VZ
5386 no_cache=0
5387 # Check whether --enable-mimetype or --disable-mimetype was given.
5388if test "${enable_mimetype+set}" = set; then
5389 enableval="$enable_mimetype"
e6cc62c6 5390
1e6feb95
VZ
5391 if test "$enableval" = yes; then
5392 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5393 else
5394 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5395 fi
e6cc62c6 5396
1e6feb95 5397else
e6cc62c6 5398
1e6feb95
VZ
5399 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5400 if test "x$LINE" != x ; then
5401 eval "DEFAULT_$LINE"
5402 else
5403 no_cache=1
5404 fi
5405
5406 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
1e6feb95 5407
e6cc62c6 5408fi;
1e6feb95
VZ
5409
5410 eval "$ac_cv_use_mimetype"
5411 if test "$no_cache" != 1; then
5412 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5413 fi
5414
5415 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5416 echo "$as_me:$LINENO: result: yes" >&5
5417echo "${ECHO_T}yes" >&6
1e6feb95 5418 else
e6cc62c6
VS
5419 echo "$as_me:$LINENO: result: no" >&5
5420echo "${ECHO_T}no" >&6
1e6feb95 5421 fi
e6cc62c6 5422
1e6feb95 5423
5005acfe 5424 enablestring=
e6cc62c6
VS
5425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5426echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
3e44f09d
VZ
5427 no_cache=0
5428 # Check whether --enable-system_options or --disable-system_options was given.
5429if test "${enable_system_options+set}" = set; then
5430 enableval="$enable_system_options"
e6cc62c6 5431
3e44f09d
VZ
5432 if test "$enableval" = yes; then
5433 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5434 else
5435 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5436 fi
e6cc62c6 5437
3e44f09d 5438else
e6cc62c6 5439
3e44f09d
VZ
5440 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5441 if test "x$LINE" != x ; then
5442 eval "DEFAULT_$LINE"
5443 else
5444 no_cache=1
5445 fi
5446
5447 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
3e44f09d 5448
e6cc62c6 5449fi;
3e44f09d
VZ
5450
5451 eval "$ac_cv_use_system_options"
5452 if test "$no_cache" != 1; then
5453 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5454 fi
5455
5456 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5457 echo "$as_me:$LINENO: result: yes" >&5
5458echo "${ECHO_T}yes" >&6
3e44f09d 5459 else
e6cc62c6
VS
5460 echo "$as_me:$LINENO: result: no" >&5
5461echo "${ECHO_T}no" >&6
3e44f09d 5462 fi
e6cc62c6 5463
8284b0c5 5464
52127426 5465
5005acfe 5466 enablestring=
e6cc62c6
VS
5467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5468echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5469 no_cache=0
5470 # Check whether --enable-url or --disable-url was given.
5471if test "${enable_url+set}" = set; then
5472 enableval="$enable_url"
e6cc62c6 5473
4cdb0ab0
VS
5474 if test "$enableval" = yes; then
5475 ac_cv_use_url='wxUSE_URL=yes'
5476 else
5477 ac_cv_use_url='wxUSE_URL=no'
5478 fi
e6cc62c6 5479
4cdb0ab0 5480else
e6cc62c6 5481
4cdb0ab0
VS
5482 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5483 if test "x$LINE" != x ; then
5484 eval "DEFAULT_$LINE"
5485 else
5486 no_cache=1
5487 fi
5488
5489 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5490
e6cc62c6 5491fi;
4cdb0ab0
VS
5492
5493 eval "$ac_cv_use_url"
5494 if test "$no_cache" != 1; then
5495 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5496 fi
5497
5498 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5499 echo "$as_me:$LINENO: result: yes" >&5
5500echo "${ECHO_T}yes" >&6
4cdb0ab0 5501 else
e6cc62c6
VS
5502 echo "$as_me:$LINENO: result: no" >&5
5503echo "${ECHO_T}no" >&6
4cdb0ab0 5504 fi
e6cc62c6 5505
4cdb0ab0 5506
5005acfe 5507 enablestring=
e6cc62c6
VS
5508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5509echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5510 no_cache=0
5511 # Check whether --enable-protocol or --disable-protocol was given.
5512if test "${enable_protocol+set}" = set; then
5513 enableval="$enable_protocol"
e6cc62c6 5514
4cdb0ab0
VS
5515 if test "$enableval" = yes; then
5516 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5517 else
5518 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5519 fi
e6cc62c6 5520
4cdb0ab0 5521else
e6cc62c6 5522
4cdb0ab0
VS
5523 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5524 if test "x$LINE" != x ; then
5525 eval "DEFAULT_$LINE"
5526 else
5527 no_cache=1
5528 fi
5529
5530 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5531
e6cc62c6 5532fi;
4cdb0ab0
VS
5533
5534 eval "$ac_cv_use_protocol"
5535 if test "$no_cache" != 1; then
5536 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5537 fi
5538
5539 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5540 echo "$as_me:$LINENO: result: yes" >&5
5541echo "${ECHO_T}yes" >&6
4cdb0ab0 5542 else
e6cc62c6
VS
5543 echo "$as_me:$LINENO: result: no" >&5
5544echo "${ECHO_T}no" >&6
4cdb0ab0 5545 fi
e6cc62c6 5546
4cdb0ab0 5547
5005acfe 5548 enablestring=
e6cc62c6
VS
5549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5550echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5551 no_cache=0
5552 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5553if test "${enable_protocol_http+set}" = set; then
5554 enableval="$enable_protocol_http"
e6cc62c6 5555
4cdb0ab0
VS
5556 if test "$enableval" = yes; then
5557 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5558 else
5559 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5560 fi
e6cc62c6 5561
4cdb0ab0 5562else
e6cc62c6 5563
4cdb0ab0
VS
5564 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5565 if test "x$LINE" != x ; then
5566 eval "DEFAULT_$LINE"
5567 else
5568 no_cache=1
5569 fi
5570
5571 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5572
e6cc62c6 5573fi;
4cdb0ab0
VS
5574
5575 eval "$ac_cv_use_protocol_http"
5576 if test "$no_cache" != 1; then
5577 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5578 fi
5579
5580 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5581 echo "$as_me:$LINENO: result: yes" >&5
5582echo "${ECHO_T}yes" >&6
4cdb0ab0 5583 else
e6cc62c6
VS
5584 echo "$as_me:$LINENO: result: no" >&5
5585echo "${ECHO_T}no" >&6
4cdb0ab0 5586 fi
e6cc62c6 5587
4cdb0ab0 5588
5005acfe 5589 enablestring=
e6cc62c6
VS
5590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5591echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5592 no_cache=0
5593 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5594if test "${enable_protocol_ftp+set}" = set; then
5595 enableval="$enable_protocol_ftp"
e6cc62c6 5596
4cdb0ab0
VS
5597 if test "$enableval" = yes; then
5598 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5599 else
5600 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5601 fi
e6cc62c6 5602
4cdb0ab0 5603else
e6cc62c6 5604
4cdb0ab0
VS
5605 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5606 if test "x$LINE" != x ; then
5607 eval "DEFAULT_$LINE"
5608 else
5609 no_cache=1
5610 fi
5611
5612 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5613
e6cc62c6 5614fi;
4cdb0ab0
VS
5615
5616 eval "$ac_cv_use_protocol_ftp"
5617 if test "$no_cache" != 1; then
5618 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5619 fi
5620
5621 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5622 echo "$as_me:$LINENO: result: yes" >&5
5623echo "${ECHO_T}yes" >&6
4cdb0ab0 5624 else
e6cc62c6
VS
5625 echo "$as_me:$LINENO: result: no" >&5
5626echo "${ECHO_T}no" >&6
4cdb0ab0 5627 fi
e6cc62c6 5628
4cdb0ab0 5629
5005acfe 5630 enablestring=
e6cc62c6
VS
5631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5632echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5633 no_cache=0
5634 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5635if test "${enable_protocol_file+set}" = set; then
5636 enableval="$enable_protocol_file"
e6cc62c6 5637
4cdb0ab0
VS
5638 if test "$enableval" = yes; then
5639 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5640 else
5641 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5642 fi
e6cc62c6 5643
4cdb0ab0 5644else
e6cc62c6 5645
4cdb0ab0
VS
5646 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5647 if test "x$LINE" != x ; then
5648 eval "DEFAULT_$LINE"
5649 else
5650 no_cache=1
5651 fi
5652
5653 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5654
e6cc62c6 5655fi;
4cdb0ab0
VS
5656
5657 eval "$ac_cv_use_protocol_file"
5658 if test "$no_cache" != 1; then
5659 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5660 fi
5661
5662 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5663 echo "$as_me:$LINENO: result: yes" >&5
5664echo "${ECHO_T}yes" >&6
4cdb0ab0 5665 else
e6cc62c6
VS
5666 echo "$as_me:$LINENO: result: no" >&5
5667echo "${ECHO_T}no" >&6
4cdb0ab0 5668 fi
e6cc62c6 5669
52127426 5670
8284b0c5
MB
5671
5672
5673
5005acfe 5674 enablestring=
e6cc62c6
VS
5675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5676echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5677 no_cache=0
5678 # Check whether --enable-threads or --disable-threads was given.
5679if test "${enable_threads+set}" = set; then
5680 enableval="$enable_threads"
e6cc62c6 5681
10f2d63a
VZ
5682 if test "$enableval" = yes; then
5683 ac_cv_use_threads='wxUSE_THREADS=yes'
5684 else
5685 ac_cv_use_threads='wxUSE_THREADS=no'
5686 fi
e6cc62c6 5687
10f2d63a 5688else
e6cc62c6 5689
10f2d63a
VZ
5690 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5691 if test "x$LINE" != x ; then
5692 eval "DEFAULT_$LINE"
5693 else
5694 no_cache=1
5695 fi
5696
5697 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5698
e6cc62c6 5699fi;
10f2d63a
VZ
5700
5701 eval "$ac_cv_use_threads"
5702 if test "$no_cache" != 1; then
5703 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5704 fi
5705
5706 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5707 echo "$as_me:$LINENO: result: yes" >&5
5708echo "${ECHO_T}yes" >&6
10f2d63a 5709 else
e6cc62c6
VS
5710 echo "$as_me:$LINENO: result: no" >&5
5711echo "${ECHO_T}no" >&6
10f2d63a 5712 fi
e6cc62c6 5713
10f2d63a 5714
b12915c1
VZ
5715if test "$wxUSE_GUI" = "yes"; then
5716
8284b0c5
MB
5717
5718
5005acfe 5719 enablestring=
e6cc62c6
VS
5720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5721echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5722 no_cache=0
5723 # Check whether --enable-docview or --disable-docview was given.
5724if test "${enable_docview+set}" = set; then
5725 enableval="$enable_docview"
e6cc62c6 5726
10f2d63a
VZ
5727 if test "$enableval" = yes; then
5728 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5729 else
5730 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5731 fi
e6cc62c6 5732
10f2d63a 5733else
e6cc62c6 5734
10f2d63a
VZ
5735 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5736 if test "x$LINE" != x ; then
5737 eval "DEFAULT_$LINE"
5738 else
5739 no_cache=1
5740 fi
5741
5742 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5743
e6cc62c6 5744fi;
10f2d63a
VZ
5745
5746 eval "$ac_cv_use_docview"
5747 if test "$no_cache" != 1; then
5748 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5749 fi
5750
5751 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5752 echo "$as_me:$LINENO: result: yes" >&5
5753echo "${ECHO_T}yes" >&6
10f2d63a 5754 else
e6cc62c6
VS
5755 echo "$as_me:$LINENO: result: no" >&5
5756echo "${ECHO_T}no" >&6
10f2d63a 5757 fi
e6cc62c6 5758
10f2d63a 5759
5005acfe 5760 enablestring=
e6cc62c6
VS
5761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5762echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5763 no_cache=0
5764 # Check whether --enable-help or --disable-help was given.
5765if test "${enable_help+set}" = set; then
5766 enableval="$enable_help"
e6cc62c6 5767
10f2d63a
VZ
5768 if test "$enableval" = yes; then
5769 ac_cv_use_help='wxUSE_HELP=yes'
5770 else
5771 ac_cv_use_help='wxUSE_HELP=no'
5772 fi
e6cc62c6 5773
10f2d63a 5774else
e6cc62c6 5775
10f2d63a
VZ
5776 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5777 if test "x$LINE" != x ; then
5778 eval "DEFAULT_$LINE"
5779 else
5780 no_cache=1
5781 fi
5782
5783 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5784
e6cc62c6 5785fi;
10f2d63a
VZ
5786
5787 eval "$ac_cv_use_help"
5788 if test "$no_cache" != 1; then
5789 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5790 fi
5791
5792 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5793 echo "$as_me:$LINENO: result: yes" >&5
5794echo "${ECHO_T}yes" >&6
10f2d63a 5795 else
e6cc62c6
VS
5796 echo "$as_me:$LINENO: result: no" >&5
5797echo "${ECHO_T}no" >&6
10f2d63a 5798 fi
e6cc62c6 5799
10f2d63a 5800
5005acfe 5801 enablestring=
e6cc62c6
VS
5802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5803echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5804 no_cache=0
5805 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5806if test "${enable_mshtmlhelp+set}" = set; then
5807 enableval="$enable_mshtmlhelp"
e6cc62c6 5808
29fd3c0c
VS
5809 if test "$enableval" = yes; then
5810 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5811 else
5812 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5813 fi
e6cc62c6 5814
29fd3c0c 5815else
e6cc62c6 5816
29fd3c0c
VS
5817 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5818 if test "x$LINE" != x ; then
5819 eval "DEFAULT_$LINE"
5820 else
5821 no_cache=1
5822 fi
5823
5824 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 5825
e6cc62c6 5826fi;
29fd3c0c
VS
5827
5828 eval "$ac_cv_use_mshtmlhelp"
5829 if test "$no_cache" != 1; then
5830 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5831 fi
5832
5833 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
5834 echo "$as_me:$LINENO: result: yes" >&5
5835echo "${ECHO_T}yes" >&6
29fd3c0c 5836 else
e6cc62c6
VS
5837 echo "$as_me:$LINENO: result: no" >&5
5838echo "${ECHO_T}no" >&6
29fd3c0c 5839 fi
e6cc62c6 5840
29fd3c0c 5841
5005acfe 5842 enablestring=
e6cc62c6
VS
5843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5844echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
5845 no_cache=0
5846 # Check whether --enable-html or --disable-html was given.
5847if test "${enable_html+set}" = set; then
5848 enableval="$enable_html"
e6cc62c6 5849
3379ed37
VZ
5850 if test "$enableval" = yes; then
5851 ac_cv_use_html='wxUSE_HTML=yes'
5852 else
5853 ac_cv_use_html='wxUSE_HTML=no'
5854 fi
e6cc62c6 5855
3379ed37 5856else
e6cc62c6 5857
3379ed37
VZ
5858 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5859 if test "x$LINE" != x ; then
5860 eval "DEFAULT_$LINE"
5861 else
5862 no_cache=1
5863 fi
5864
5865 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 5866
e6cc62c6 5867fi;
3379ed37
VZ
5868
5869 eval "$ac_cv_use_html"
5870 if test "$no_cache" != 1; then
5871 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5872 fi
5873
5874 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
5875 echo "$as_me:$LINENO: result: yes" >&5
5876echo "${ECHO_T}yes" >&6
3379ed37 5877 else
e6cc62c6
VS
5878 echo "$as_me:$LINENO: result: no" >&5
5879echo "${ECHO_T}no" >&6
3379ed37 5880 fi
e6cc62c6 5881
3379ed37 5882
5005acfe 5883 enablestring=
e6cc62c6
VS
5884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5885echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
5886 no_cache=0
5887 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5888if test "${enable_htmlhelp+set}" = set; then
5889 enableval="$enable_htmlhelp"
e6cc62c6 5890
3379ed37
VZ
5891 if test "$enableval" = yes; then
5892 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5893 else
5894 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5895 fi
e6cc62c6 5896
3379ed37 5897else
e6cc62c6 5898
3379ed37
VZ
5899 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5900 if test "x$LINE" != x ; then
5901 eval "DEFAULT_$LINE"
5902 else
5903 no_cache=1
5904 fi
5905
5906 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 5907
e6cc62c6 5908fi;
3379ed37
VZ
5909
5910 eval "$ac_cv_use_htmlhelp"
5911 if test "$no_cache" != 1; then
5912 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5913 fi
5914
5915 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
5916 echo "$as_me:$LINENO: result: yes" >&5
5917echo "${ECHO_T}yes" >&6
3379ed37 5918 else
e6cc62c6
VS
5919 echo "$as_me:$LINENO: result: no" >&5
5920echo "${ECHO_T}no" >&6
3379ed37 5921 fi
e6cc62c6 5922
3379ed37 5923
5005acfe 5924 enablestring=
e6cc62c6
VS
5925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5926echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
5927 no_cache=0
5928 # Check whether --enable-constraints or --disable-constraints was given.
5929if test "${enable_constraints+set}" = set; then
5930 enableval="$enable_constraints"
e6cc62c6 5931
10f2d63a
VZ
5932 if test "$enableval" = yes; then
5933 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5934 else
5935 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5936 fi
e6cc62c6 5937
10f2d63a 5938else
e6cc62c6 5939
10f2d63a
VZ
5940 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5941 if test "x$LINE" != x ; then
5942 eval "DEFAULT_$LINE"
5943 else
5944 no_cache=1
5945 fi
5946
5947 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 5948
e6cc62c6 5949fi;
10f2d63a
VZ
5950
5951 eval "$ac_cv_use_constraints"
5952 if test "$no_cache" != 1; then
5953 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5954 fi
5955
5956 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
5957 echo "$as_me:$LINENO: result: yes" >&5
5958echo "${ECHO_T}yes" >&6
10f2d63a 5959 else
e6cc62c6
VS
5960 echo "$as_me:$LINENO: result: no" >&5
5961echo "${ECHO_T}no" >&6
10f2d63a 5962 fi
e6cc62c6 5963
10f2d63a 5964
5005acfe 5965 enablestring=
e6cc62c6
VS
5966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5967echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
5968 no_cache=0
5969 # Check whether --enable-printarch or --disable-printarch was given.
5970if test "${enable_printarch+set}" = set; then
5971 enableval="$enable_printarch"
e6cc62c6 5972
10f2d63a
VZ
5973 if test "$enableval" = yes; then
5974 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5975 else
5976 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5977 fi
e6cc62c6 5978
10f2d63a 5979else
e6cc62c6 5980
10f2d63a
VZ
5981 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5982 if test "x$LINE" != x ; then
5983 eval "DEFAULT_$LINE"
5984 else
5985 no_cache=1
5986 fi
5987
5988 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 5989
e6cc62c6 5990fi;
10f2d63a
VZ
5991
5992 eval "$ac_cv_use_printarch"
5993 if test "$no_cache" != 1; then
5994 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5995 fi
5996
5997 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
5998 echo "$as_me:$LINENO: result: yes" >&5
5999echo "${ECHO_T}yes" >&6
10f2d63a 6000 else
e6cc62c6
VS
6001 echo "$as_me:$LINENO: result: no" >&5
6002echo "${ECHO_T}no" >&6
10f2d63a 6003 fi
e6cc62c6 6004
10f2d63a 6005
5005acfe 6006 enablestring=
e6cc62c6
VS
6007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6008echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6009 no_cache=0
6010 # Check whether --enable-mdi or --disable-mdi was given.
6011if test "${enable_mdi+set}" = set; then
6012 enableval="$enable_mdi"
e6cc62c6 6013
10f2d63a
VZ
6014 if test "$enableval" = yes; then
6015 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6016 else
6017 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6018 fi
e6cc62c6 6019
10f2d63a 6020else
e6cc62c6 6021
10f2d63a
VZ
6022 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6023 if test "x$LINE" != x ; then
6024 eval "DEFAULT_$LINE"
6025 else
6026 no_cache=1
6027 fi
6028
6029 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6030
e6cc62c6 6031fi;
10f2d63a
VZ
6032
6033 eval "$ac_cv_use_mdi"
6034 if test "$no_cache" != 1; then
6035 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6036 fi
6037
6038 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6039 echo "$as_me:$LINENO: result: yes" >&5
6040echo "${ECHO_T}yes" >&6
10f2d63a 6041 else
e6cc62c6
VS
6042 echo "$as_me:$LINENO: result: no" >&5
6043echo "${ECHO_T}no" >&6
10f2d63a 6044 fi
e6cc62c6 6045
698dcdb6 6046
5005acfe 6047 enablestring=
e6cc62c6
VS
6048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6049echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6050 no_cache=0
6051 # Check whether --enable-loggui or --disable-loggui was given.
6052if test "${enable_loggui+set}" = set; then
6053 enableval="$enable_loggui"
e6cc62c6 6054
1e6feb95
VZ
6055 if test "$enableval" = yes; then
6056 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6057 else
6058 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6059 fi
e6cc62c6 6060
1e6feb95 6061else
e6cc62c6 6062
1e6feb95
VZ
6063 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6064 if test "x$LINE" != x ; then
6065 eval "DEFAULT_$LINE"
6066 else
6067 no_cache=1
6068 fi
6069
6070 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6071
e6cc62c6 6072fi;
1e6feb95
VZ
6073
6074 eval "$ac_cv_use_loggui"
6075 if test "$no_cache" != 1; then
6076 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6077 fi
6078
6079 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6080 echo "$as_me:$LINENO: result: yes" >&5
6081echo "${ECHO_T}yes" >&6
1e6feb95 6082 else
e6cc62c6
VS
6083 echo "$as_me:$LINENO: result: no" >&5
6084echo "${ECHO_T}no" >&6
1e6feb95 6085 fi
e6cc62c6 6086
1e6feb95 6087
5005acfe 6088 enablestring=
e6cc62c6
VS
6089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6090echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6091 no_cache=0
6092 # Check whether --enable-logwin or --disable-logwin was given.
6093if test "${enable_logwin+set}" = set; then
6094 enableval="$enable_logwin"
e6cc62c6 6095
1e6feb95
VZ
6096 if test "$enableval" = yes; then
6097 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6098 else
6099 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6100 fi
e6cc62c6 6101
1e6feb95 6102else
e6cc62c6 6103
1e6feb95
VZ
6104 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6105 if test "x$LINE" != x ; then
6106 eval "DEFAULT_$LINE"
6107 else
6108 no_cache=1
6109 fi
6110
6111 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6112
e6cc62c6 6113fi;
1e6feb95
VZ
6114
6115 eval "$ac_cv_use_logwin"
6116 if test "$no_cache" != 1; then
6117 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6118 fi
6119
6120 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6121 echo "$as_me:$LINENO: result: yes" >&5
6122echo "${ECHO_T}yes" >&6
1e6feb95 6123 else
e6cc62c6
VS
6124 echo "$as_me:$LINENO: result: no" >&5
6125echo "${ECHO_T}no" >&6
1e6feb95 6126 fi
e6cc62c6 6127
1e6feb95 6128
5005acfe 6129 enablestring=
e6cc62c6
VS
6130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6131echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6132 no_cache=0
6133 # Check whether --enable-logdialog or --disable-logdialog was given.
6134if test "${enable_logdialog+set}" = set; then
6135 enableval="$enable_logdialog"
e6cc62c6 6136
69d27ff7
MB
6137 if test "$enableval" = yes; then
6138 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6139 else
6140 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6141 fi
e6cc62c6 6142
69d27ff7 6143else
e6cc62c6 6144
69d27ff7
MB
6145 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6146 if test "x$LINE" != x ; then
6147 eval "DEFAULT_$LINE"
6148 else
6149 no_cache=1
6150 fi
6151
6152 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6153
e6cc62c6 6154fi;
69d27ff7
MB
6155
6156 eval "$ac_cv_use_logdialog"
6157 if test "$no_cache" != 1; then
6158 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6159 fi
6160
6161 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6162 echo "$as_me:$LINENO: result: yes" >&5
6163echo "${ECHO_T}yes" >&6
69d27ff7 6164 else
e6cc62c6
VS
6165 echo "$as_me:$LINENO: result: no" >&5
6166echo "${ECHO_T}no" >&6
69d27ff7 6167 fi
e6cc62c6 6168
8284b0c5 6169
52127426 6170
5005acfe 6171 enablestring=
e6cc62c6
VS
6172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6173echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6174 no_cache=0
6175 # Check whether --enable-postscript or --disable-postscript was given.
6176if test "${enable_postscript+set}" = set; then
6177 enableval="$enable_postscript"
e6cc62c6 6178
10f2d63a
VZ
6179 if test "$enableval" = yes; then
6180 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6181 else
6182 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6183 fi
e6cc62c6 6184
10f2d63a 6185else
e6cc62c6 6186
10f2d63a
VZ
6187 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6188 if test "x$LINE" != x ; then
6189 eval "DEFAULT_$LINE"
6190 else
6191 no_cache=1
6192 fi
6193
6194 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6195
e6cc62c6 6196fi;
10f2d63a
VZ
6197
6198 eval "$ac_cv_use_postscript"
6199 if test "$no_cache" != 1; then
6200 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6201 fi
6202
6203 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6204 echo "$as_me:$LINENO: result: yes" >&5
6205echo "${ECHO_T}yes" >&6
10f2d63a 6206 else
e6cc62c6
VS
6207 echo "$as_me:$LINENO: result: no" >&5
6208echo "${ECHO_T}no" >&6
10f2d63a 6209 fi
e6cc62c6 6210
8284b0c5
MB
6211
6212
52127426 6213
8284b0c5 6214
5005acfe 6215 enablestring=
e6cc62c6
VS
6216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6217echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6218 no_cache=0
3c907f20
VZ
6219 # Check whether --enable-prologio or --disable-prologio was given.
6220if test "${enable_prologio+set}" = set; then
6221 enableval="$enable_prologio"
e6cc62c6 6222
10f2d63a 6223 if test "$enableval" = yes; then
3c907f20 6224 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6225 else
3c907f20 6226 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6227 fi
e6cc62c6 6228
10f2d63a 6229else
e6cc62c6 6230
3c907f20 6231 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6232 if test "x$LINE" != x ; then
6233 eval "DEFAULT_$LINE"
6234 else
6235 no_cache=1
6236 fi
6237
3c907f20 6238 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6239
e6cc62c6 6240fi;
10f2d63a 6241
3c907f20 6242 eval "$ac_cv_use_prologio"
10f2d63a 6243 if test "$no_cache" != 1; then
3c907f20 6244 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6245 fi
6246
3c907f20 6247 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6248 echo "$as_me:$LINENO: result: yes" >&5
6249echo "${ECHO_T}yes" >&6
10f2d63a 6250 else
e6cc62c6
VS
6251 echo "$as_me:$LINENO: result: no" >&5
6252echo "${ECHO_T}no" >&6
10f2d63a 6253 fi
e6cc62c6 6254
8284b0c5 6255
5005acfe 6256 enablestring=
e6cc62c6
VS
6257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6258echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6259 no_cache=0
3c907f20
VZ
6260 # Check whether --enable-resources or --disable-resources was given.
6261if test "${enable_resources+set}" = set; then
6262 enableval="$enable_resources"
e6cc62c6 6263
10f2d63a 6264 if test "$enableval" = yes; then
3c907f20 6265 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6266 else
3c907f20 6267 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6268 fi
e6cc62c6 6269
10f2d63a 6270else
e6cc62c6 6271
3c907f20 6272 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6273 if test "x$LINE" != x ; then
6274 eval "DEFAULT_$LINE"
6275 else
6276 no_cache=1
6277 fi
6278
3c907f20 6279 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6280
e6cc62c6 6281fi;
10f2d63a 6282
3c907f20 6283 eval "$ac_cv_use_resources"
10f2d63a 6284 if test "$no_cache" != 1; then
3c907f20 6285 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6286 fi
6287
3c907f20 6288 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6289 echo "$as_me:$LINENO: result: yes" >&5
6290echo "${ECHO_T}yes" >&6
10f2d63a 6291 else
e6cc62c6
VS
6292 echo "$as_me:$LINENO: result: no" >&5
6293echo "${ECHO_T}no" >&6
10f2d63a 6294 fi
e6cc62c6 6295
8284b0c5
MB
6296
6297
52127426 6298
5005acfe 6299 enablestring=
e6cc62c6
VS
6300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6301echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6302 no_cache=0
6303 # Check whether --enable-clipboard or --disable-clipboard was given.
6304if test "${enable_clipboard+set}" = set; then
6305 enableval="$enable_clipboard"
e6cc62c6 6306
10f2d63a
VZ
6307 if test "$enableval" = yes; then
6308 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6309 else
6310 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6311 fi
e6cc62c6 6312
10f2d63a 6313else
e6cc62c6 6314
10f2d63a
VZ
6315 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6316 if test "x$LINE" != x ; then
6317 eval "DEFAULT_$LINE"
6318 else
6319 no_cache=1
6320 fi
6321
6322 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6323
e6cc62c6 6324fi;
10f2d63a
VZ
6325
6326 eval "$ac_cv_use_clipboard"
6327 if test "$no_cache" != 1; then
6328 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6329 fi
6330
6331 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6332 echo "$as_me:$LINENO: result: yes" >&5
6333echo "${ECHO_T}yes" >&6
10f2d63a 6334 else
e6cc62c6
VS
6335 echo "$as_me:$LINENO: result: no" >&5
6336echo "${ECHO_T}no" >&6
10f2d63a 6337 fi
e6cc62c6 6338
10f2d63a 6339
5005acfe 6340 enablestring=
e6cc62c6
VS
6341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6342echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6343 no_cache=0
6344 # Check whether --enable-dnd or --disable-dnd was given.
6345if test "${enable_dnd+set}" = set; then
6346 enableval="$enable_dnd"
e6cc62c6 6347
10f2d63a
VZ
6348 if test "$enableval" = yes; then
6349 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6350 else
6351 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6352 fi
e6cc62c6 6353
10f2d63a 6354else
e6cc62c6 6355
10f2d63a
VZ
6356 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6357 if test "x$LINE" != x ; then
6358 eval "DEFAULT_$LINE"
6359 else
6360 no_cache=1
6361 fi
6362
6363 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6364
e6cc62c6 6365fi;
10f2d63a
VZ
6366
6367 eval "$ac_cv_use_dnd"
6368 if test "$no_cache" != 1; then
6369 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6370 fi
6371
6372 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6373 echo "$as_me:$LINENO: result: yes" >&5
6374echo "${ECHO_T}yes" >&6
10f2d63a 6375 else
e6cc62c6
VS
6376 echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6
10f2d63a 6378 fi
e6cc62c6 6379
10f2d63a 6380
5005acfe 6381 enablestring=
e6cc62c6
VS
6382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6383echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6384 no_cache=0
6385 # Check whether --enable-metafile or --disable-metafile was given.
6386if test "${enable_metafile+set}" = set; then
6387 enableval="$enable_metafile"
e6cc62c6 6388
b64f0a5f
RL
6389 if test "$enableval" = yes; then
6390 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6391 else
6392 ac_cv_use_metafile='wxUSE_METAFILE=no'
6393 fi
e6cc62c6 6394
b64f0a5f 6395else
e6cc62c6 6396
b64f0a5f
RL
6397 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6398 if test "x$LINE" != x ; then
6399 eval "DEFAULT_$LINE"
6400 else
6401 no_cache=1
6402 fi
6403
6404 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6405
e6cc62c6 6406fi;
b64f0a5f
RL
6407
6408 eval "$ac_cv_use_metafile"
6409 if test "$no_cache" != 1; then
6410 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6411 fi
6412
6413 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6414 echo "$as_me:$LINENO: result: yes" >&5
6415echo "${ECHO_T}yes" >&6
b64f0a5f 6416 else
e6cc62c6
VS
6417 echo "$as_me:$LINENO: result: no" >&5
6418echo "${ECHO_T}no" >&6
b64f0a5f 6419 fi
e6cc62c6 6420
52127426 6421
8284b0c5 6422
52127426 6423
8284b0c5 6424
5005acfe 6425 enablestring=
e6cc62c6
VS
6426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6427echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6428 no_cache=0
6429 # Check whether --enable-controls or --disable-controls was given.
6430if test "${enable_controls+set}" = set; then
6431 enableval="$enable_controls"
e6cc62c6 6432
10f2d63a
VZ
6433 if test "$enableval" = yes; then
6434 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6435 else
6436 ac_cv_use_controls='wxUSE_CONTROLS=no'
6437 fi
e6cc62c6 6438
10f2d63a 6439else
e6cc62c6 6440
10f2d63a
VZ
6441 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6442 if test "x$LINE" != x ; then
6443 eval "DEFAULT_$LINE"
6444 else
6445 no_cache=1
6446 fi
6447
6448 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6449
e6cc62c6 6450fi;
10f2d63a
VZ
6451
6452 eval "$ac_cv_use_controls"
6453 if test "$no_cache" != 1; then
6454 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6455 fi
6456
6457 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6458 echo "$as_me:$LINENO: result: yes" >&5
6459echo "${ECHO_T}yes" >&6
10f2d63a 6460 else
e6cc62c6
VS
6461 echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6
10f2d63a 6463 fi
e6cc62c6 6464
10f2d63a
VZ
6465
6466if test "$wxUSE_CONTROLS" = "yes"; then
6467 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6468 DEFAULT_wxUSE_BMPBUTTON=yes
6469 DEFAULT_wxUSE_BUTTON=yes
6470 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6471 DEFAULT_wxUSE_CARET=yes
6472 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6473 DEFAULT_wxUSE_CHECKBOX=yes
6474 DEFAULT_wxUSE_CHECKLISTBOX=yes
6475 DEFAULT_wxUSE_CHOICE=yes
6476 DEFAULT_wxUSE_GAUGE=yes
6477 DEFAULT_wxUSE_GRID=yes
10f2d63a
VZ
6478 DEFAULT_wxUSE_IMAGLIST=yes
6479 DEFAULT_wxUSE_LISTBOX=yes
6480 DEFAULT_wxUSE_LISTCTRL=yes
6481 DEFAULT_wxUSE_NOTEBOOK=yes
6482 DEFAULT_wxUSE_RADIOBOX=yes
6483 DEFAULT_wxUSE_RADIOBTN=yes
6484 DEFAULT_wxUSE_SASH=yes
6485 DEFAULT_wxUSE_SCROLLBAR=yes
6486 DEFAULT_wxUSE_SLIDER=yes
6487 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6488 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6489 DEFAULT_wxUSE_SPLITTER=yes
6490 DEFAULT_wxUSE_STATBMP=yes
6491 DEFAULT_wxUSE_STATBOX=yes
6492 DEFAULT_wxUSE_STATLINE=yes
6493 DEFAULT_wxUSE_STATUSBAR=yes
6494 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6495 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6496 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6497 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6498 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6499 DEFAULT_wxUSE_TOOLTIPS=yes
6500 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6501 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6502 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6503elif test "$wxUSE_CONTROLS" = "no"; then
6504 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6505 DEFAULT_wxUSE_BMPBUTTON=no
6506 DEFAULT_wxUSE_BUTTON=no
6507 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6508 DEFAULT_wxUSE_CARET=no
6509 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6510 DEFAULT_wxUSE_CHECKBOX=no
6511 DEFAULT_wxUSE_CHECKLISTBOX=no
6512 DEFAULT_wxUSE_CHOICE=no
6513 DEFAULT_wxUSE_GAUGE=no
6514 DEFAULT_wxUSE_GRID=no
10f2d63a
VZ
6515 DEFAULT_wxUSE_IMAGLIST=no
6516 DEFAULT_wxUSE_LISTBOX=no
6517 DEFAULT_wxUSE_LISTCTRL=no
6518 DEFAULT_wxUSE_NOTEBOOK=no
6519 DEFAULT_wxUSE_RADIOBOX=no
6520 DEFAULT_wxUSE_RADIOBTN=no
6521 DEFAULT_wxUSE_SASH=no
6522 DEFAULT_wxUSE_SCROLLBAR=no
6523 DEFAULT_wxUSE_SLIDER=no
6524 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6525 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6526 DEFAULT_wxUSE_SPLITTER=no
6527 DEFAULT_wxUSE_STATBMP=no
6528 DEFAULT_wxUSE_STATBOX=no
6529 DEFAULT_wxUSE_STATLINE=no
6530 DEFAULT_wxUSE_STATUSBAR=no
6531 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6532 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6533 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6534 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6535 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6536 DEFAULT_wxUSE_TOOLTIPS=no
6537 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6538 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6539 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6540fi
6541
ac0c4cc3
DE
6542## FIXME: This is a blatant hack
6543if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6544 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6545 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6546 # Generic notebook requires tab dialog
6547 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6548 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3 6549 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6550 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6551 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6552fi
6553
8284b0c5 6554
5005acfe 6555 enablestring=
e6cc62c6
VS
6556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6557echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6558 no_cache=0
6559 # Check whether --enable-accel or --disable-accel was given.
6560if test "${enable_accel+set}" = set; then
6561 enableval="$enable_accel"
e6cc62c6 6562
10f2d63a
VZ
6563 if test "$enableval" = yes; then
6564 ac_cv_use_accel='wxUSE_ACCEL=yes'
6565 else
6566 ac_cv_use_accel='wxUSE_ACCEL=no'
6567 fi
e6cc62c6 6568
10f2d63a 6569else
e6cc62c6 6570
10f2d63a
VZ
6571 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6572 if test "x$LINE" != x ; then
6573 eval "DEFAULT_$LINE"
6574 else
6575 no_cache=1
6576 fi
6577
6578 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6579
e6cc62c6 6580fi;
10f2d63a
VZ
6581
6582 eval "$ac_cv_use_accel"
6583 if test "$no_cache" != 1; then
6584 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6585 fi
6586
6587 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6588 echo "$as_me:$LINENO: result: yes" >&5
6589echo "${ECHO_T}yes" >&6
10f2d63a 6590 else
e6cc62c6
VS
6591 echo "$as_me:$LINENO: result: no" >&5
6592echo "${ECHO_T}no" >&6
10f2d63a 6593 fi
e6cc62c6 6594
10f2d63a 6595
5005acfe 6596 enablestring=
e6cc62c6
VS
6597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6598echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6599 no_cache=0
1e6feb95
VZ
6600 # Check whether --enable-button or --disable-button was given.
6601if test "${enable_button+set}" = set; then
6602 enableval="$enable_button"
e6cc62c6 6603
10f2d63a 6604 if test "$enableval" = yes; then
1e6feb95 6605 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6606 else
1e6feb95 6607 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6608 fi
e6cc62c6 6609
10f2d63a 6610else
e6cc62c6 6611
1e6feb95 6612 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6613 if test "x$LINE" != x ; then
6614 eval "DEFAULT_$LINE"
6615 else
6616 no_cache=1
6617 fi
6618
1e6feb95 6619 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6620
e6cc62c6 6621fi;
10f2d63a 6622
1e6feb95 6623 eval "$ac_cv_use_button"
10f2d63a 6624 if test "$no_cache" != 1; then
1e6feb95 6625 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6626 fi
6627
1e6feb95 6628 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6629 echo "$as_me:$LINENO: result: yes" >&5
6630echo "${ECHO_T}yes" >&6
10f2d63a 6631 else
e6cc62c6
VS
6632 echo "$as_me:$LINENO: result: no" >&5
6633echo "${ECHO_T}no" >&6
10f2d63a 6634 fi
e6cc62c6 6635
10f2d63a 6636
5005acfe 6637 enablestring=
e6cc62c6
VS
6638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6639echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6640 no_cache=0
6641 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6642if test "${enable_bmpbutton+set}" = set; then
6643 enableval="$enable_bmpbutton"
e6cc62c6 6644
10f2d63a
VZ
6645 if test "$enableval" = yes; then
6646 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6647 else
6648 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6649 fi
e6cc62c6 6650
10f2d63a 6651else
e6cc62c6 6652
10f2d63a
VZ
6653 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6654 if test "x$LINE" != x ; then
6655 eval "DEFAULT_$LINE"
6656 else
6657 no_cache=1
6658 fi
6659
6660 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6661
e6cc62c6 6662fi;
10f2d63a
VZ
6663
6664 eval "$ac_cv_use_bmpbutton"
6665 if test "$no_cache" != 1; then
6666 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6667 fi
6668
6669 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6670 echo "$as_me:$LINENO: result: yes" >&5
6671echo "${ECHO_T}yes" >&6
10f2d63a 6672 else
e6cc62c6
VS
6673 echo "$as_me:$LINENO: result: no" >&5
6674echo "${ECHO_T}no" >&6
10f2d63a 6675 fi
e6cc62c6 6676
10f2d63a 6677
5005acfe 6678 enablestring=
e6cc62c6
VS
6679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6680echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6681 no_cache=0
6682 # Check whether --enable-calendar or --disable-calendar was given.
6683if test "${enable_calendar+set}" = set; then
6684 enableval="$enable_calendar"
e6cc62c6 6685
1e6feb95
VZ
6686 if test "$enableval" = yes; then
6687 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6688 else
6689 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6690 fi
e6cc62c6 6691
1e6feb95 6692else
e6cc62c6 6693
1e6feb95
VZ
6694 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6695 if test "x$LINE" != x ; then
6696 eval "DEFAULT_$LINE"
6697 else
6698 no_cache=1
6699 fi
6700
6701 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6702
e6cc62c6 6703fi;
1e6feb95
VZ
6704
6705 eval "$ac_cv_use_calendar"
6706 if test "$no_cache" != 1; then
6707 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6708 fi
6709
6710 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6711 echo "$as_me:$LINENO: result: yes" >&5
6712echo "${ECHO_T}yes" >&6
1e6feb95 6713 else
e6cc62c6
VS
6714 echo "$as_me:$LINENO: result: no" >&5
6715echo "${ECHO_T}no" >&6
1e6feb95 6716 fi
e6cc62c6 6717
1e6feb95 6718
5005acfe 6719 enablestring=
e6cc62c6
VS
6720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6721echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6722 no_cache=0
6723 # Check whether --enable-caret or --disable-caret was given.
6724if test "${enable_caret+set}" = set; then
6725 enableval="$enable_caret"
e6cc62c6 6726
1e6feb95
VZ
6727 if test "$enableval" = yes; then
6728 ac_cv_use_caret='wxUSE_CARET=yes'
6729 else
6730 ac_cv_use_caret='wxUSE_CARET=no'
6731 fi
e6cc62c6 6732
1e6feb95 6733else
e6cc62c6 6734
1e6feb95
VZ
6735 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6736 if test "x$LINE" != x ; then
6737 eval "DEFAULT_$LINE"
6738 else
6739 no_cache=1
6740 fi
6741
6742 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6743
e6cc62c6 6744fi;
1e6feb95
VZ
6745
6746 eval "$ac_cv_use_caret"
6747 if test "$no_cache" != 1; then
6748 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6749 fi
6750
6751 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6752 echo "$as_me:$LINENO: result: yes" >&5
6753echo "${ECHO_T}yes" >&6
1e6feb95 6754 else
e6cc62c6
VS
6755 echo "$as_me:$LINENO: result: no" >&5
6756echo "${ECHO_T}no" >&6
1e6feb95 6757 fi
e6cc62c6 6758
1e6feb95 6759
5005acfe 6760 enablestring=
e6cc62c6
VS
6761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6762echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6763 no_cache=0
6764 # Check whether --enable-checkbox or --disable-checkbox was given.
6765if test "${enable_checkbox+set}" = set; then
6766 enableval="$enable_checkbox"
e6cc62c6 6767
10f2d63a
VZ
6768 if test "$enableval" = yes; then
6769 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6770 else
6771 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6772 fi
e6cc62c6 6773
10f2d63a 6774else
e6cc62c6 6775
10f2d63a
VZ
6776 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6777 if test "x$LINE" != x ; then
6778 eval "DEFAULT_$LINE"
6779 else
6780 no_cache=1
6781 fi
6782
6783 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6784
e6cc62c6 6785fi;
10f2d63a
VZ
6786
6787 eval "$ac_cv_use_checkbox"
6788 if test "$no_cache" != 1; then
6789 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6790 fi
6791
6792 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6793 echo "$as_me:$LINENO: result: yes" >&5
6794echo "${ECHO_T}yes" >&6
10f2d63a 6795 else
e6cc62c6
VS
6796 echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6
10f2d63a 6798 fi
e6cc62c6 6799
10f2d63a 6800
5005acfe 6801 enablestring=
e6cc62c6
VS
6802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6803echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6804 no_cache=0
6805 # Check whether --enable-checklst or --disable-checklst was given.
6806if test "${enable_checklst+set}" = set; then
6807 enableval="$enable_checklst"
e6cc62c6 6808
10f2d63a
VZ
6809 if test "$enableval" = yes; then
6810 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6811 else
6812 ac_cv_use_checklst='wxUSE_CHECKLST=no'
6813 fi
e6cc62c6 6814
10f2d63a 6815else
e6cc62c6 6816
10f2d63a
VZ
6817 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6818 if test "x$LINE" != x ; then
6819 eval "DEFAULT_$LINE"
6820 else
6821 no_cache=1
6822 fi
6823
6824 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 6825
e6cc62c6 6826fi;
10f2d63a
VZ
6827
6828 eval "$ac_cv_use_checklst"
6829 if test "$no_cache" != 1; then
6830 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6831 fi
6832
6833 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
6834 echo "$as_me:$LINENO: result: yes" >&5
6835echo "${ECHO_T}yes" >&6
10f2d63a 6836 else
e6cc62c6
VS
6837 echo "$as_me:$LINENO: result: no" >&5
6838echo "${ECHO_T}no" >&6
10f2d63a 6839 fi
e6cc62c6 6840
10f2d63a 6841
5005acfe 6842 enablestring=
e6cc62c6
VS
6843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6844echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
6845 no_cache=0
6846 # Check whether --enable-choice or --disable-choice was given.
6847if test "${enable_choice+set}" = set; then
6848 enableval="$enable_choice"
e6cc62c6 6849
10f2d63a
VZ
6850 if test "$enableval" = yes; then
6851 ac_cv_use_choice='wxUSE_CHOICE=yes'
6852 else
6853 ac_cv_use_choice='wxUSE_CHOICE=no'
6854 fi
e6cc62c6 6855
10f2d63a 6856else
e6cc62c6 6857
10f2d63a
VZ
6858 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6859 if test "x$LINE" != x ; then
6860 eval "DEFAULT_$LINE"
6861 else
6862 no_cache=1
6863 fi
6864
6865 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 6866
e6cc62c6 6867fi;
10f2d63a
VZ
6868
6869 eval "$ac_cv_use_choice"
6870 if test "$no_cache" != 1; then
6871 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6872 fi
6873
6874 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
6875 echo "$as_me:$LINENO: result: yes" >&5
6876echo "${ECHO_T}yes" >&6
10f2d63a 6877 else
e6cc62c6
VS
6878 echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6
10f2d63a 6880 fi
e6cc62c6 6881
10f2d63a 6882
5005acfe 6883 enablestring=
e6cc62c6
VS
6884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6885echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
6886 no_cache=0
6887 # Check whether --enable-combobox or --disable-combobox was given.
6888if test "${enable_combobox+set}" = set; then
6889 enableval="$enable_combobox"
e6cc62c6 6890
10f2d63a
VZ
6891 if test "$enableval" = yes; then
6892 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6893 else
6894 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6895 fi
e6cc62c6 6896
10f2d63a 6897else
e6cc62c6 6898
10f2d63a
VZ
6899 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6900 if test "x$LINE" != x ; then
6901 eval "DEFAULT_$LINE"
6902 else
6903 no_cache=1
6904 fi
6905
6906 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 6907
e6cc62c6 6908fi;
10f2d63a
VZ
6909
6910 eval "$ac_cv_use_combobox"
6911 if test "$no_cache" != 1; then
6912 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6913 fi
6914
6915 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
6916 echo "$as_me:$LINENO: result: yes" >&5
6917echo "${ECHO_T}yes" >&6
10f2d63a 6918 else
e6cc62c6
VS
6919 echo "$as_me:$LINENO: result: no" >&5
6920echo "${ECHO_T}no" >&6
10f2d63a 6921 fi
e6cc62c6 6922
10f2d63a 6923
da494b40 6924 enablestring=
e6cc62c6
VS
6925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6926echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
6927 no_cache=0
6928 # Check whether --enable-display or --disable-display was given.
6929if test "${enable_display+set}" = set; then
6930 enableval="$enable_display"
e6cc62c6 6931
da494b40
MB
6932 if test "$enableval" = yes; then
6933 ac_cv_use_display='wxUSE_DISPLAY=yes'
6934 else
6935 ac_cv_use_display='wxUSE_DISPLAY=no'
6936 fi
e6cc62c6 6937
da494b40 6938else
e6cc62c6 6939
da494b40
MB
6940 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6941 if test "x$LINE" != x ; then
6942 eval "DEFAULT_$LINE"
6943 else
6944 no_cache=1
6945 fi
6946
6947 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 6948
e6cc62c6 6949fi;
da494b40
MB
6950
6951 eval "$ac_cv_use_display"
6952 if test "$no_cache" != 1; then
6953 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6954 fi
6955
6956 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
6957 echo "$as_me:$LINENO: result: yes" >&5
6958echo "${ECHO_T}yes" >&6
da494b40 6959 else
e6cc62c6
VS
6960 echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6
da494b40 6962 fi
e6cc62c6 6963
da494b40 6964
5005acfe 6965 enablestring=
e6cc62c6
VS
6966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6967echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
6968 no_cache=0
6969 # Check whether --enable-gauge or --disable-gauge was given.
6970if test "${enable_gauge+set}" = set; then
6971 enableval="$enable_gauge"
e6cc62c6 6972
10f2d63a
VZ
6973 if test "$enableval" = yes; then
6974 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6975 else
6976 ac_cv_use_gauge='wxUSE_GAUGE=no'
6977 fi
e6cc62c6 6978
10f2d63a 6979else
e6cc62c6 6980
10f2d63a
VZ
6981 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 6989
e6cc62c6 6990fi;
10f2d63a
VZ
6991
6992 eval "$ac_cv_use_gauge"
6993 if test "$no_cache" != 1; then
6994 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6995 fi
6996
6997 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
6998 echo "$as_me:$LINENO: result: yes" >&5
6999echo "${ECHO_T}yes" >&6
10f2d63a 7000 else
e6cc62c6
VS
7001 echo "$as_me:$LINENO: result: no" >&5
7002echo "${ECHO_T}no" >&6
10f2d63a 7003 fi
e6cc62c6 7004
10f2d63a 7005
5005acfe 7006 enablestring=
e6cc62c6
VS
7007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7008echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7009 no_cache=0
7010 # Check whether --enable-grid or --disable-grid was given.
7011if test "${enable_grid+set}" = set; then
7012 enableval="$enable_grid"
e6cc62c6 7013
10f2d63a
VZ
7014 if test "$enableval" = yes; then
7015 ac_cv_use_grid='wxUSE_GRID=yes'
7016 else
7017 ac_cv_use_grid='wxUSE_GRID=no'
7018 fi
e6cc62c6 7019
10f2d63a 7020else
e6cc62c6 7021
10f2d63a
VZ
7022 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7023 if test "x$LINE" != x ; then
7024 eval "DEFAULT_$LINE"
7025 else
7026 no_cache=1
7027 fi
7028
7029 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7030
e6cc62c6 7031fi;
10f2d63a
VZ
7032
7033 eval "$ac_cv_use_grid"
7034 if test "$no_cache" != 1; then
7035 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7036 fi
7037
7038 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7039 echo "$as_me:$LINENO: result: yes" >&5
7040echo "${ECHO_T}yes" >&6
10f2d63a 7041 else
e6cc62c6
VS
7042 echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6
10f2d63a 7044 fi
e6cc62c6 7045
10f2d63a 7046
5005acfe 7047 enablestring=
e6cc62c6
VS
7048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7049echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7050 no_cache=0
7051 # Check whether --enable-imaglist or --disable-imaglist was given.
7052if test "${enable_imaglist+set}" = set; then
7053 enableval="$enable_imaglist"
e6cc62c6 7054
10f2d63a
VZ
7055 if test "$enableval" = yes; then
7056 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7057 else
7058 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7059 fi
e6cc62c6 7060
10f2d63a 7061else
e6cc62c6 7062
10f2d63a
VZ
7063 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7064 if test "x$LINE" != x ; then
7065 eval "DEFAULT_$LINE"
7066 else
7067 no_cache=1
7068 fi
7069
7070 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7071
e6cc62c6 7072fi;
10f2d63a
VZ
7073
7074 eval "$ac_cv_use_imaglist"
7075 if test "$no_cache" != 1; then
7076 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7077 fi
7078
7079 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7080 echo "$as_me:$LINENO: result: yes" >&5
7081echo "${ECHO_T}yes" >&6
10f2d63a 7082 else
e6cc62c6
VS
7083 echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6
10f2d63a 7085 fi
e6cc62c6 7086
10f2d63a 7087
5005acfe 7088 enablestring=
e6cc62c6
VS
7089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7090echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7091 no_cache=0
7092 # Check whether --enable-listbox or --disable-listbox was given.
7093if test "${enable_listbox+set}" = set; then
7094 enableval="$enable_listbox"
e6cc62c6 7095
10f2d63a
VZ
7096 if test "$enableval" = yes; then
7097 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7098 else
7099 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7100 fi
e6cc62c6 7101
10f2d63a 7102else
e6cc62c6 7103
10f2d63a
VZ
7104 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7112
e6cc62c6 7113fi;
10f2d63a
VZ
7114
7115 eval "$ac_cv_use_listbox"
7116 if test "$no_cache" != 1; then
7117 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7118 fi
7119
7120 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7121 echo "$as_me:$LINENO: result: yes" >&5
7122echo "${ECHO_T}yes" >&6
10f2d63a 7123 else
e6cc62c6
VS
7124 echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6
10f2d63a 7126 fi
e6cc62c6 7127
10f2d63a 7128
5005acfe 7129 enablestring=
e6cc62c6
VS
7130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7131echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7132 no_cache=0
7133 # Check whether --enable-listctrl or --disable-listctrl was given.
7134if test "${enable_listctrl+set}" = set; then
7135 enableval="$enable_listctrl"
e6cc62c6 7136
10f2d63a
VZ
7137 if test "$enableval" = yes; then
7138 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7139 else
7140 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7141 fi
e6cc62c6 7142
10f2d63a 7143else
e6cc62c6 7144
10f2d63a
VZ
7145 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7153
e6cc62c6 7154fi;
10f2d63a
VZ
7155
7156 eval "$ac_cv_use_listctrl"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7162 echo "$as_me:$LINENO: result: yes" >&5
7163echo "${ECHO_T}yes" >&6
10f2d63a 7164 else
e6cc62c6
VS
7165 echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6
10f2d63a 7167 fi
e6cc62c6 7168
10f2d63a 7169
5005acfe 7170 enablestring=
e6cc62c6
VS
7171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7172echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7173 no_cache=0
7174 # Check whether --enable-notebook or --disable-notebook was given.
7175if test "${enable_notebook+set}" = set; then
7176 enableval="$enable_notebook"
e6cc62c6 7177
10f2d63a
VZ
7178 if test "$enableval" = yes; then
7179 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7180 else
7181 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7182 fi
e6cc62c6 7183
10f2d63a 7184else
e6cc62c6 7185
10f2d63a
VZ
7186 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7187 if test "x$LINE" != x ; then
7188 eval "DEFAULT_$LINE"
7189 else
7190 no_cache=1
7191 fi
7192
7193 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7194
e6cc62c6 7195fi;
10f2d63a
VZ
7196
7197 eval "$ac_cv_use_notebook"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7200 fi
7201
7202 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7203 echo "$as_me:$LINENO: result: yes" >&5
7204echo "${ECHO_T}yes" >&6
10f2d63a 7205 else
e6cc62c6
VS
7206 echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6
10f2d63a 7208 fi
e6cc62c6 7209
10f2d63a 7210
5005acfe 7211 enablestring=
e6cc62c6
VS
7212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7213echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7214 no_cache=0
7215 # Check whether --enable-radiobox or --disable-radiobox was given.
7216if test "${enable_radiobox+set}" = set; then
7217 enableval="$enable_radiobox"
e6cc62c6 7218
10f2d63a
VZ
7219 if test "$enableval" = yes; then
7220 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7221 else
7222 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7223 fi
e6cc62c6 7224
10f2d63a 7225else
e6cc62c6 7226
10f2d63a
VZ
7227 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7228 if test "x$LINE" != x ; then
7229 eval "DEFAULT_$LINE"
7230 else
7231 no_cache=1
7232 fi
7233
7234 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7235
e6cc62c6 7236fi;
10f2d63a
VZ
7237
7238 eval "$ac_cv_use_radiobox"
7239 if test "$no_cache" != 1; then
7240 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7241 fi
7242
7243 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7244 echo "$as_me:$LINENO: result: yes" >&5
7245echo "${ECHO_T}yes" >&6
10f2d63a 7246 else
e6cc62c6
VS
7247 echo "$as_me:$LINENO: result: no" >&5
7248echo "${ECHO_T}no" >&6
10f2d63a 7249 fi
e6cc62c6 7250
10f2d63a 7251
5005acfe 7252 enablestring=
e6cc62c6
VS
7253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7254echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7255 no_cache=0
7256 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7257if test "${enable_radiobtn+set}" = set; then
7258 enableval="$enable_radiobtn"
e6cc62c6 7259
10f2d63a
VZ
7260 if test "$enableval" = yes; then
7261 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7262 else
7263 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7264 fi
e6cc62c6 7265
10f2d63a 7266else
e6cc62c6 7267
10f2d63a
VZ
7268 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7269 if test "x$LINE" != x ; then
7270 eval "DEFAULT_$LINE"
7271 else
7272 no_cache=1
7273 fi
7274
7275 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7276
e6cc62c6 7277fi;
10f2d63a
VZ
7278
7279 eval "$ac_cv_use_radiobtn"
7280 if test "$no_cache" != 1; then
7281 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7282 fi
7283
7284 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7285 echo "$as_me:$LINENO: result: yes" >&5
7286echo "${ECHO_T}yes" >&6
10f2d63a 7287 else
e6cc62c6
VS
7288 echo "$as_me:$LINENO: result: no" >&5
7289echo "${ECHO_T}no" >&6
10f2d63a 7290 fi
e6cc62c6 7291
10f2d63a 7292
5005acfe 7293 enablestring=
e6cc62c6
VS
7294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7295echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7296 no_cache=0
7297 # Check whether --enable-sash or --disable-sash was given.
7298if test "${enable_sash+set}" = set; then
7299 enableval="$enable_sash"
e6cc62c6 7300
10f2d63a
VZ
7301 if test "$enableval" = yes; then
7302 ac_cv_use_sash='wxUSE_SASH=yes'
7303 else
7304 ac_cv_use_sash='wxUSE_SASH=no'
7305 fi
e6cc62c6 7306
10f2d63a 7307else
e6cc62c6 7308
10f2d63a
VZ
7309 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7310 if test "x$LINE" != x ; then
7311 eval "DEFAULT_$LINE"
7312 else
7313 no_cache=1
7314 fi
7315
7316 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7317
e6cc62c6 7318fi;
10f2d63a
VZ
7319
7320 eval "$ac_cv_use_sash"
7321 if test "$no_cache" != 1; then
7322 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7323 fi
7324
7325 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7326 echo "$as_me:$LINENO: result: yes" >&5
7327echo "${ECHO_T}yes" >&6
10f2d63a 7328 else
e6cc62c6
VS
7329 echo "$as_me:$LINENO: result: no" >&5
7330echo "${ECHO_T}no" >&6
10f2d63a 7331 fi
e6cc62c6 7332
10f2d63a 7333
5005acfe 7334 enablestring=
e6cc62c6
VS
7335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7336echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7337 no_cache=0
7338 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7339if test "${enable_scrollbar+set}" = set; then
7340 enableval="$enable_scrollbar"
e6cc62c6 7341
10f2d63a
VZ
7342 if test "$enableval" = yes; then
7343 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7344 else
7345 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7346 fi
e6cc62c6 7347
10f2d63a 7348else
e6cc62c6 7349
10f2d63a
VZ
7350 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7351 if test "x$LINE" != x ; then
7352 eval "DEFAULT_$LINE"
7353 else
7354 no_cache=1
7355 fi
7356
7357 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7358
e6cc62c6 7359fi;
10f2d63a
VZ
7360
7361 eval "$ac_cv_use_scrollbar"
7362 if test "$no_cache" != 1; then
7363 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7364 fi
7365
7366 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7367 echo "$as_me:$LINENO: result: yes" >&5
7368echo "${ECHO_T}yes" >&6
10f2d63a 7369 else
e6cc62c6
VS
7370 echo "$as_me:$LINENO: result: no" >&5
7371echo "${ECHO_T}no" >&6
10f2d63a 7372 fi
e6cc62c6 7373
10f2d63a 7374
5005acfe 7375 enablestring=
e6cc62c6
VS
7376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7377echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7378 no_cache=0
7379 # Check whether --enable-slider or --disable-slider was given.
7380if test "${enable_slider+set}" = set; then
7381 enableval="$enable_slider"
e6cc62c6 7382
10f2d63a
VZ
7383 if test "$enableval" = yes; then
7384 ac_cv_use_slider='wxUSE_SLIDER=yes'
7385 else
7386 ac_cv_use_slider='wxUSE_SLIDER=no'
7387 fi
e6cc62c6 7388
10f2d63a 7389else
e6cc62c6 7390
10f2d63a
VZ
7391 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7392 if test "x$LINE" != x ; then
7393 eval "DEFAULT_$LINE"
7394 else
7395 no_cache=1
7396 fi
7397
7398 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7399
e6cc62c6 7400fi;
10f2d63a
VZ
7401
7402 eval "$ac_cv_use_slider"
7403 if test "$no_cache" != 1; then
7404 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7405 fi
7406
7407 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7408 echo "$as_me:$LINENO: result: yes" >&5
7409echo "${ECHO_T}yes" >&6
10f2d63a 7410 else
e6cc62c6
VS
7411 echo "$as_me:$LINENO: result: no" >&5
7412echo "${ECHO_T}no" >&6
10f2d63a 7413 fi
e6cc62c6 7414
10f2d63a 7415
5005acfe 7416 enablestring=
e6cc62c6
VS
7417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7418echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7419 no_cache=0
7420 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7421if test "${enable_spinbtn+set}" = set; then
7422 enableval="$enable_spinbtn"
e6cc62c6 7423
10f2d63a
VZ
7424 if test "$enableval" = yes; then
7425 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7426 else
7427 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7428 fi
e6cc62c6 7429
10f2d63a 7430else
e6cc62c6 7431
10f2d63a
VZ
7432 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7433 if test "x$LINE" != x ; then
7434 eval "DEFAULT_$LINE"
7435 else
7436 no_cache=1
7437 fi
7438
7439 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7440
e6cc62c6 7441fi;
10f2d63a
VZ
7442
7443 eval "$ac_cv_use_spinbtn"
7444 if test "$no_cache" != 1; then
7445 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7446 fi
7447
7448 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7449 echo "$as_me:$LINENO: result: yes" >&5
7450echo "${ECHO_T}yes" >&6
10f2d63a 7451 else
e6cc62c6
VS
7452 echo "$as_me:$LINENO: result: no" >&5
7453echo "${ECHO_T}no" >&6
10f2d63a 7454 fi
e6cc62c6 7455
10f2d63a 7456
5005acfe 7457 enablestring=
e6cc62c6
VS
7458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7459echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7460 no_cache=0
7461 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7462if test "${enable_spinctrl+set}" = set; then
7463 enableval="$enable_spinctrl"
e6cc62c6 7464
56cfaa52
RR
7465 if test "$enableval" = yes; then
7466 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7467 else
7468 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7469 fi
e6cc62c6 7470
56cfaa52 7471else
e6cc62c6 7472
56cfaa52
RR
7473 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7474 if test "x$LINE" != x ; then
7475 eval "DEFAULT_$LINE"
7476 else
7477 no_cache=1
7478 fi
7479
7480 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7481
e6cc62c6 7482fi;
56cfaa52
RR
7483
7484 eval "$ac_cv_use_spinctrl"
7485 if test "$no_cache" != 1; then
7486 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7487 fi
7488
7489 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7490 echo "$as_me:$LINENO: result: yes" >&5
7491echo "${ECHO_T}yes" >&6
56cfaa52 7492 else
e6cc62c6
VS
7493 echo "$as_me:$LINENO: result: no" >&5
7494echo "${ECHO_T}no" >&6
56cfaa52 7495 fi
e6cc62c6 7496
56cfaa52 7497
5005acfe 7498 enablestring=
e6cc62c6
VS
7499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7500echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7501 no_cache=0
7502 # Check whether --enable-splitter or --disable-splitter was given.
7503if test "${enable_splitter+set}" = set; then
7504 enableval="$enable_splitter"
e6cc62c6 7505
10f2d63a
VZ
7506 if test "$enableval" = yes; then
7507 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7508 else
7509 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7510 fi
e6cc62c6 7511
10f2d63a 7512else
e6cc62c6 7513
10f2d63a
VZ
7514 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7515 if test "x$LINE" != x ; then
7516 eval "DEFAULT_$LINE"
7517 else
7518 no_cache=1
7519 fi
7520
7521 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7522
e6cc62c6 7523fi;
10f2d63a
VZ
7524
7525 eval "$ac_cv_use_splitter"
7526 if test "$no_cache" != 1; then
7527 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7528 fi
7529
7530 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7531 echo "$as_me:$LINENO: result: yes" >&5
7532echo "${ECHO_T}yes" >&6
10f2d63a 7533 else
e6cc62c6
VS
7534 echo "$as_me:$LINENO: result: no" >&5
7535echo "${ECHO_T}no" >&6
10f2d63a 7536 fi
e6cc62c6 7537
10f2d63a 7538
5005acfe 7539 enablestring=
e6cc62c6
VS
7540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7541echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7542 no_cache=0
7543 # Check whether --enable-statbmp or --disable-statbmp was given.
7544if test "${enable_statbmp+set}" = set; then
7545 enableval="$enable_statbmp"
e6cc62c6 7546
10f2d63a
VZ
7547 if test "$enableval" = yes; then
7548 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7549 else
7550 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7551 fi
e6cc62c6 7552
10f2d63a 7553else
e6cc62c6 7554
10f2d63a
VZ
7555 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7556 if test "x$LINE" != x ; then
7557 eval "DEFAULT_$LINE"
7558 else
7559 no_cache=1
7560 fi
7561
7562 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7563
e6cc62c6 7564fi;
10f2d63a
VZ
7565
7566 eval "$ac_cv_use_statbmp"
7567 if test "$no_cache" != 1; then
7568 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7569 fi
7570
7571 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7572 echo "$as_me:$LINENO: result: yes" >&5
7573echo "${ECHO_T}yes" >&6
10f2d63a 7574 else
e6cc62c6
VS
7575 echo "$as_me:$LINENO: result: no" >&5
7576echo "${ECHO_T}no" >&6
10f2d63a 7577 fi
e6cc62c6 7578
10f2d63a 7579
5005acfe 7580 enablestring=
e6cc62c6
VS
7581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7582echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7583 no_cache=0
7584 # Check whether --enable-statbox or --disable-statbox was given.
7585if test "${enable_statbox+set}" = set; then
7586 enableval="$enable_statbox"
e6cc62c6 7587
10f2d63a
VZ
7588 if test "$enableval" = yes; then
7589 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7590 else
7591 ac_cv_use_statbox='wxUSE_STATBOX=no'
7592 fi
e6cc62c6 7593
10f2d63a 7594else
e6cc62c6 7595
10f2d63a
VZ
7596 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7597 if test "x$LINE" != x ; then
7598 eval "DEFAULT_$LINE"
7599 else
7600 no_cache=1
7601 fi
7602
7603 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7604
e6cc62c6 7605fi;
10f2d63a
VZ
7606
7607 eval "$ac_cv_use_statbox"
7608 if test "$no_cache" != 1; then
7609 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7610 fi
7611
7612 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7613 echo "$as_me:$LINENO: result: yes" >&5
7614echo "${ECHO_T}yes" >&6
10f2d63a 7615 else
e6cc62c6
VS
7616 echo "$as_me:$LINENO: result: no" >&5
7617echo "${ECHO_T}no" >&6
10f2d63a 7618 fi
e6cc62c6 7619
10f2d63a 7620
5005acfe 7621 enablestring=
e6cc62c6
VS
7622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7623echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7624 no_cache=0
7625 # Check whether --enable-statline or --disable-statline was given.
7626if test "${enable_statline+set}" = set; then
7627 enableval="$enable_statline"
e6cc62c6 7628
10f2d63a
VZ
7629 if test "$enableval" = yes; then
7630 ac_cv_use_statline='wxUSE_STATLINE=yes'
7631 else
7632 ac_cv_use_statline='wxUSE_STATLINE=no'
7633 fi
e6cc62c6 7634
10f2d63a 7635else
e6cc62c6 7636
10f2d63a
VZ
7637 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7638 if test "x$LINE" != x ; then
7639 eval "DEFAULT_$LINE"
7640 else
7641 no_cache=1
7642 fi
7643
7644 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7645
e6cc62c6 7646fi;
10f2d63a
VZ
7647
7648 eval "$ac_cv_use_statline"
7649 if test "$no_cache" != 1; then
7650 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7651 fi
7652
7653 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7654 echo "$as_me:$LINENO: result: yes" >&5
7655echo "${ECHO_T}yes" >&6
10f2d63a 7656 else
e6cc62c6
VS
7657 echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6
10f2d63a 7659 fi
e6cc62c6 7660
10f2d63a 7661
5005acfe 7662 enablestring=
e6cc62c6
VS
7663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7664echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7665 no_cache=0
7666 # Check whether --enable-stattext or --disable-stattext was given.
7667if test "${enable_stattext+set}" = set; then
7668 enableval="$enable_stattext"
e6cc62c6 7669
1e6feb95
VZ
7670 if test "$enableval" = yes; then
7671 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7672 else
7673 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7674 fi
e6cc62c6 7675
1e6feb95 7676else
e6cc62c6 7677
1e6feb95
VZ
7678 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7679 if test "x$LINE" != x ; then
7680 eval "DEFAULT_$LINE"
7681 else
7682 no_cache=1
7683 fi
7684
7685 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7686
e6cc62c6 7687fi;
1e6feb95
VZ
7688
7689 eval "$ac_cv_use_stattext"
7690 if test "$no_cache" != 1; then
7691 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7692 fi
7693
7694 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7695 echo "$as_me:$LINENO: result: yes" >&5
7696echo "${ECHO_T}yes" >&6
1e6feb95 7697 else
e6cc62c6
VS
7698 echo "$as_me:$LINENO: result: no" >&5
7699echo "${ECHO_T}no" >&6
1e6feb95 7700 fi
e6cc62c6 7701
1e6feb95 7702
5005acfe 7703 enablestring=
e6cc62c6
VS
7704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7705echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7706 no_cache=0
7707 # Check whether --enable-statusbar or --disable-statusbar was given.
7708if test "${enable_statusbar+set}" = set; then
7709 enableval="$enable_statusbar"
e6cc62c6 7710
10f2d63a
VZ
7711 if test "$enableval" = yes; then
7712 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7713 else
7714 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7715 fi
e6cc62c6 7716
10f2d63a 7717else
e6cc62c6 7718
10f2d63a
VZ
7719 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7720 if test "x$LINE" != x ; then
7721 eval "DEFAULT_$LINE"
7722 else
7723 no_cache=1
7724 fi
7725
7726 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7727
e6cc62c6 7728fi;
10f2d63a
VZ
7729
7730 eval "$ac_cv_use_statusbar"
7731 if test "$no_cache" != 1; then
7732 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7733 fi
7734
7735 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7736 echo "$as_me:$LINENO: result: yes" >&5
7737echo "${ECHO_T}yes" >&6
10f2d63a 7738 else
e6cc62c6
VS
7739 echo "$as_me:$LINENO: result: no" >&5
7740echo "${ECHO_T}no" >&6
10f2d63a 7741 fi
e6cc62c6 7742
10f2d63a 7743
5005acfe 7744 enablestring=
e6cc62c6
VS
7745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7746echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7747 no_cache=0
7748 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7749if test "${enable_tabdialog+set}" = set; then
7750 enableval="$enable_tabdialog"
e6cc62c6 7751
10f2d63a
VZ
7752 if test "$enableval" = yes; then
7753 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7754 else
7755 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7756 fi
e6cc62c6 7757
10f2d63a 7758else
e6cc62c6 7759
10f2d63a
VZ
7760 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7761 if test "x$LINE" != x ; then
7762 eval "DEFAULT_$LINE"
7763 else
7764 no_cache=1
7765 fi
7766
7767 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7768
e6cc62c6 7769fi;
10f2d63a
VZ
7770
7771 eval "$ac_cv_use_tabdialog"
7772 if test "$no_cache" != 1; then
7773 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7774 fi
7775
7776 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
7777 echo "$as_me:$LINENO: result: yes" >&5
7778echo "${ECHO_T}yes" >&6
10f2d63a 7779 else
e6cc62c6
VS
7780 echo "$as_me:$LINENO: result: no" >&5
7781echo "${ECHO_T}no" >&6
10f2d63a 7782 fi
e6cc62c6 7783
10f2d63a 7784
5005acfe 7785 enablestring=
e6cc62c6
VS
7786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7787echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
7788 no_cache=0
7789 # Check whether --enable-textctrl or --disable-textctrl was given.
7790if test "${enable_textctrl+set}" = set; then
7791 enableval="$enable_textctrl"
e6cc62c6 7792
1e6feb95
VZ
7793 if test "$enableval" = yes; then
7794 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7795 else
7796 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7797 fi
e6cc62c6 7798
1e6feb95 7799else
e6cc62c6 7800
1e6feb95
VZ
7801 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7802 if test "x$LINE" != x ; then
7803 eval "DEFAULT_$LINE"
7804 else
7805 no_cache=1
7806 fi
7807
7808 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 7809
e6cc62c6 7810fi;
1e6feb95
VZ
7811
7812 eval "$ac_cv_use_textctrl"
7813 if test "$no_cache" != 1; then
7814 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7815 fi
7816
7817 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
7818 echo "$as_me:$LINENO: result: yes" >&5
7819echo "${ECHO_T}yes" >&6
1e6feb95 7820 else
e6cc62c6
VS
7821 echo "$as_me:$LINENO: result: no" >&5
7822echo "${ECHO_T}no" >&6
1e6feb95 7823 fi
e6cc62c6 7824
1e6feb95 7825
5005acfe 7826 enablestring=
e6cc62c6
VS
7827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7828echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
7829 no_cache=0
7830 # Check whether --enable-togglebtn or --disable-togglebtn was given.
7831if test "${enable_togglebtn+set}" = set; then
7832 enableval="$enable_togglebtn"
e6cc62c6 7833
1db8dc4a
VZ
7834 if test "$enableval" = yes; then
7835 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7836 else
7837 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7838 fi
e6cc62c6 7839
1db8dc4a 7840else
e6cc62c6 7841
1db8dc4a
VZ
7842 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7843 if test "x$LINE" != x ; then
7844 eval "DEFAULT_$LINE"
7845 else
7846 no_cache=1
7847 fi
7848
7849 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 7850
e6cc62c6 7851fi;
1db8dc4a
VZ
7852
7853 eval "$ac_cv_use_togglebtn"
7854 if test "$no_cache" != 1; then
7855 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7856 fi
7857
7858 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
7859 echo "$as_me:$LINENO: result: yes" >&5
7860echo "${ECHO_T}yes" >&6
1db8dc4a 7861 else
e6cc62c6
VS
7862 echo "$as_me:$LINENO: result: no" >&5
7863echo "${ECHO_T}no" >&6
1db8dc4a 7864 fi
e6cc62c6 7865
1db8dc4a 7866
5005acfe 7867 enablestring=
e6cc62c6
VS
7868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7869echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
7870 no_cache=0
7871 # Check whether --enable-toolbar or --disable-toolbar was given.
7872if test "${enable_toolbar+set}" = set; then
7873 enableval="$enable_toolbar"
e6cc62c6 7874
10f2d63a
VZ
7875 if test "$enableval" = yes; then
7876 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7877 else
7878 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7879 fi
e6cc62c6 7880
10f2d63a 7881else
e6cc62c6 7882
10f2d63a
VZ
7883 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7884 if test "x$LINE" != x ; then
7885 eval "DEFAULT_$LINE"
7886 else
7887 no_cache=1
7888 fi
7889
7890 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 7891
e6cc62c6 7892fi;
10f2d63a
VZ
7893
7894 eval "$ac_cv_use_toolbar"
7895 if test "$no_cache" != 1; then
7896 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7897 fi
7898
7899 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
7900 echo "$as_me:$LINENO: result: yes" >&5
7901echo "${ECHO_T}yes" >&6
10f2d63a 7902 else
e6cc62c6
VS
7903 echo "$as_me:$LINENO: result: no" >&5
7904echo "${ECHO_T}no" >&6
10f2d63a 7905 fi
e6cc62c6 7906
10f2d63a 7907
5005acfe 7908 enablestring=
e6cc62c6
VS
7909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7910echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
7911 no_cache=0
7912 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7913if test "${enable_tbarnative+set}" = set; then
7914 enableval="$enable_tbarnative"
e6cc62c6 7915
360d6699
VZ
7916 if test "$enableval" = yes; then
7917 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7918 else
7919 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7920 fi
e6cc62c6 7921
360d6699 7922else
e6cc62c6 7923
360d6699
VZ
7924 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7925 if test "x$LINE" != x ; then
7926 eval "DEFAULT_$LINE"
7927 else
7928 no_cache=1
7929 fi
7930
7931 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 7932
e6cc62c6 7933fi;
360d6699
VZ
7934
7935 eval "$ac_cv_use_tbarnative"
7936 if test "$no_cache" != 1; then
7937 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7938 fi
7939
7940 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
7941 echo "$as_me:$LINENO: result: yes" >&5
7942echo "${ECHO_T}yes" >&6
360d6699 7943 else
e6cc62c6
VS
7944 echo "$as_me:$LINENO: result: no" >&5
7945echo "${ECHO_T}no" >&6
360d6699 7946 fi
e6cc62c6 7947
360d6699 7948
5005acfe 7949 enablestring=
e6cc62c6
VS
7950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7951echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
7952 no_cache=0
7953 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7954if test "${enable_tbarsmpl+set}" = set; then
7955 enableval="$enable_tbarsmpl"
e6cc62c6 7956
360d6699
VZ
7957 if test "$enableval" = yes; then
7958 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7959 else
7960 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7961 fi
e6cc62c6 7962
360d6699 7963else
e6cc62c6 7964
360d6699
VZ
7965 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7966 if test "x$LINE" != x ; then
7967 eval "DEFAULT_$LINE"
7968 else
7969 no_cache=1
7970 fi
7971
7972 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 7973
e6cc62c6 7974fi;
360d6699
VZ
7975
7976 eval "$ac_cv_use_tbarsmpl"
7977 if test "$no_cache" != 1; then
7978 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7979 fi
7980
7981 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
7982 echo "$as_me:$LINENO: result: yes" >&5
7983echo "${ECHO_T}yes" >&6
360d6699 7984 else
e6cc62c6
VS
7985 echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6
360d6699 7987 fi
e6cc62c6 7988
360d6699 7989
5005acfe 7990 enablestring=
e6cc62c6
VS
7991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
7992echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
7993 no_cache=0
7994 # Check whether --enable-treectrl or --disable-treectrl was given.
7995if test "${enable_treectrl+set}" = set; then
7996 enableval="$enable_treectrl"
e6cc62c6 7997
10f2d63a
VZ
7998 if test "$enableval" = yes; then
7999 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8000 else
8001 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8002 fi
e6cc62c6 8003
10f2d63a 8004else
e6cc62c6 8005
10f2d63a
VZ
8006 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8007 if test "x$LINE" != x ; then
8008 eval "DEFAULT_$LINE"
8009 else
8010 no_cache=1
8011 fi
8012
8013 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8014
e6cc62c6 8015fi;
10f2d63a 8016
1e6feb95
VZ
8017 eval "$ac_cv_use_treectrl"
8018 if test "$no_cache" != 1; then
8019 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8020 fi
8021
8022 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8023 echo "$as_me:$LINENO: result: yes" >&5
8024echo "${ECHO_T}yes" >&6
1e6feb95 8025 else
e6cc62c6
VS
8026 echo "$as_me:$LINENO: result: no" >&5
8027echo "${ECHO_T}no" >&6
1e6feb95 8028 fi
e6cc62c6 8029
1e6feb95 8030
5005acfe 8031 enablestring=
e6cc62c6
VS
8032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8033echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8034 no_cache=0
8035 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8036if test "${enable_tipwindow+set}" = set; then
8037 enableval="$enable_tipwindow"
e6cc62c6 8038
9926e4a4
VZ
8039 if test "$enableval" = yes; then
8040 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8041 else
8042 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8043 fi
e6cc62c6 8044
9926e4a4 8045else
e6cc62c6 8046
9926e4a4
VZ
8047 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8048 if test "x$LINE" != x ; then
8049 eval "DEFAULT_$LINE"
8050 else
8051 no_cache=1
8052 fi
8053
8054 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8055
e6cc62c6 8056fi;
9926e4a4
VZ
8057
8058 eval "$ac_cv_use_tipwindow"
8059 if test "$no_cache" != 1; then
8060 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8061 fi
8062
8063 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8064 echo "$as_me:$LINENO: result: yes" >&5
8065echo "${ECHO_T}yes" >&6
9926e4a4 8066 else
e6cc62c6
VS
8067 echo "$as_me:$LINENO: result: no" >&5
8068echo "${ECHO_T}no" >&6
9926e4a4 8069 fi
e6cc62c6 8070
9926e4a4 8071
5005acfe 8072 enablestring=
e6cc62c6
VS
8073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8074echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8075 no_cache=0
8076 # Check whether --enable-popupwin or --disable-popupwin was given.
8077if test "${enable_popupwin+set}" = set; then
8078 enableval="$enable_popupwin"
e6cc62c6 8079
9f41d601
RR
8080 if test "$enableval" = yes; then
8081 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8082 else
8083 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8084 fi
e6cc62c6 8085
9f41d601 8086else
e6cc62c6 8087
9f41d601
RR
8088 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8089 if test "x$LINE" != x ; then
8090 eval "DEFAULT_$LINE"
8091 else
8092 no_cache=1
8093 fi
8094
8095 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8096
e6cc62c6 8097fi;
9f41d601
RR
8098
8099 eval "$ac_cv_use_popupwin"
8100 if test "$no_cache" != 1; then
8101 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8102 fi
8103
8104 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8105 echo "$as_me:$LINENO: result: yes" >&5
8106echo "${ECHO_T}yes" >&6
9f41d601 8107 else
e6cc62c6
VS
8108 echo "$as_me:$LINENO: result: no" >&5
8109echo "${ECHO_T}no" >&6
9f41d601 8110 fi
e6cc62c6 8111
52127426 8112
8284b0c5
MB
8113
8114
5005acfe 8115 enablestring=
e6cc62c6
VS
8116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8117echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8118 no_cache=0
8119 # Check whether --enable-commondlg or --disable-commondlg was given.
8120if test "${enable_commondlg+set}" = set; then
8121 enableval="$enable_commondlg"
e6cc62c6 8122
1e6feb95
VZ
8123 if test "$enableval" = yes; then
8124 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8125 else
8126 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8127 fi
e6cc62c6 8128
1e6feb95 8129else
e6cc62c6 8130
1e6feb95
VZ
8131 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8132 if test "x$LINE" != x ; then
8133 eval "DEFAULT_$LINE"
8134 else
8135 no_cache=1
8136 fi
8137
8138 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8139
e6cc62c6 8140fi;
1e6feb95
VZ
8141
8142 eval "$ac_cv_use_commondlg"
8143 if test "$no_cache" != 1; then
8144 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8145 fi
8146
8147 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8148 echo "$as_me:$LINENO: result: yes" >&5
8149echo "${ECHO_T}yes" >&6
1e6feb95 8150 else
e6cc62c6
VS
8151 echo "$as_me:$LINENO: result: no" >&5
8152echo "${ECHO_T}no" >&6
1e6feb95 8153 fi
e6cc62c6 8154
1e6feb95 8155
5005acfe 8156 enablestring=
e6cc62c6
VS
8157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8158echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8159 no_cache=0
8160 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8161if test "${enable_choicedlg+set}" = set; then
8162 enableval="$enable_choicedlg"
e6cc62c6 8163
1e6feb95
VZ
8164 if test "$enableval" = yes; then
8165 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8166 else
8167 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8168 fi
e6cc62c6 8169
1e6feb95 8170else
e6cc62c6 8171
1e6feb95
VZ
8172 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8173 if test "x$LINE" != x ; then
8174 eval "DEFAULT_$LINE"
8175 else
8176 no_cache=1
8177 fi
8178
8179 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8180
e6cc62c6 8181fi;
1e6feb95
VZ
8182
8183 eval "$ac_cv_use_choicedlg"
8184 if test "$no_cache" != 1; then
8185 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8186 fi
8187
8188 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8189 echo "$as_me:$LINENO: result: yes" >&5
8190echo "${ECHO_T}yes" >&6
1e6feb95 8191 else
e6cc62c6
VS
8192 echo "$as_me:$LINENO: result: no" >&5
8193echo "${ECHO_T}no" >&6
1e6feb95 8194 fi
e6cc62c6 8195
1e6feb95 8196
5005acfe 8197 enablestring=
e6cc62c6
VS
8198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8199echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8200 no_cache=0
8201 # Check whether --enable-coldlg or --disable-coldlg was given.
8202if test "${enable_coldlg+set}" = set; then
8203 enableval="$enable_coldlg"
e6cc62c6 8204
1e6feb95
VZ
8205 if test "$enableval" = yes; then
8206 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8207 else
8208 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8209 fi
e6cc62c6 8210
1e6feb95 8211else
e6cc62c6 8212
1e6feb95
VZ
8213 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8214 if test "x$LINE" != x ; then
8215 eval "DEFAULT_$LINE"
8216 else
8217 no_cache=1
8218 fi
8219
8220 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8221
e6cc62c6 8222fi;
1e6feb95
VZ
8223
8224 eval "$ac_cv_use_coldlg"
8225 if test "$no_cache" != 1; then
8226 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8227 fi
8228
8229 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8230 echo "$as_me:$LINENO: result: yes" >&5
8231echo "${ECHO_T}yes" >&6
1e6feb95 8232 else
e6cc62c6
VS
8233 echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6
1e6feb95 8235 fi
e6cc62c6 8236
1e6feb95 8237
5005acfe 8238 enablestring=
e6cc62c6
VS
8239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8240echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8241 no_cache=0
8242 # Check whether --enable-filedlg or --disable-filedlg was given.
8243if test "${enable_filedlg+set}" = set; then
8244 enableval="$enable_filedlg"
e6cc62c6 8245
1e6feb95
VZ
8246 if test "$enableval" = yes; then
8247 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8248 else
8249 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8250 fi
e6cc62c6 8251
1e6feb95 8252else
e6cc62c6 8253
1e6feb95
VZ
8254 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8255 if test "x$LINE" != x ; then
8256 eval "DEFAULT_$LINE"
8257 else
8258 no_cache=1
8259 fi
8260
8261 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8262
e6cc62c6 8263fi;
1e6feb95
VZ
8264
8265 eval "$ac_cv_use_filedlg"
8266 if test "$no_cache" != 1; then
8267 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8268 fi
8269
8270 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8271 echo "$as_me:$LINENO: result: yes" >&5
8272echo "${ECHO_T}yes" >&6
1e6feb95 8273 else
e6cc62c6
VS
8274 echo "$as_me:$LINENO: result: no" >&5
8275echo "${ECHO_T}no" >&6
1e6feb95 8276 fi
e6cc62c6 8277
1e6feb95 8278
5005acfe 8279 enablestring=
e6cc62c6
VS
8280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8281echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8282 no_cache=0
69d27ff7
MB
8283 # Check whether --enable-finddlg or --disable-finddlg was given.
8284if test "${enable_finddlg+set}" = set; then
8285 enableval="$enable_finddlg"
e6cc62c6 8286
8db37e06 8287 if test "$enableval" = yes; then
69d27ff7 8288 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8289 else
69d27ff7 8290 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8291 fi
e6cc62c6 8292
8db37e06 8293else
e6cc62c6 8294
8db37e06
VZ
8295 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8296 if test "x$LINE" != x ; then
8297 eval "DEFAULT_$LINE"
8298 else
8299 no_cache=1
8300 fi
8301
69d27ff7 8302 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8303
e6cc62c6 8304fi;
8db37e06 8305
69d27ff7 8306 eval "$ac_cv_use_finddlg"
8db37e06 8307 if test "$no_cache" != 1; then
69d27ff7 8308 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8309 fi
8310
8311 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8312 echo "$as_me:$LINENO: result: yes" >&5
8313echo "${ECHO_T}yes" >&6
8db37e06 8314 else
e6cc62c6
VS
8315 echo "$as_me:$LINENO: result: no" >&5
8316echo "${ECHO_T}no" >&6
8db37e06 8317 fi
e6cc62c6 8318
8db37e06 8319
5005acfe 8320 enablestring=
e6cc62c6
VS
8321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8322echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8323 no_cache=0
8324 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8325if test "${enable_fontdlg+set}" = set; then
8326 enableval="$enable_fontdlg"
e6cc62c6 8327
1e6feb95
VZ
8328 if test "$enableval" = yes; then
8329 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8330 else
8331 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8332 fi
e6cc62c6 8333
1e6feb95 8334else
e6cc62c6 8335
1e6feb95
VZ
8336 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8337 if test "x$LINE" != x ; then
8338 eval "DEFAULT_$LINE"
8339 else
8340 no_cache=1
8341 fi
8342
8343 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8344
e6cc62c6 8345fi;
1e6feb95
VZ
8346
8347 eval "$ac_cv_use_fontdlg"
8348 if test "$no_cache" != 1; then
8349 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8350 fi
8351
8352 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8353 echo "$as_me:$LINENO: result: yes" >&5
8354echo "${ECHO_T}yes" >&6
1e6feb95 8355 else
e6cc62c6
VS
8356 echo "$as_me:$LINENO: result: no" >&5
8357echo "${ECHO_T}no" >&6
1e6feb95 8358 fi
e6cc62c6 8359
1e6feb95 8360
5005acfe 8361 enablestring=
e6cc62c6
VS
8362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8363echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8364 no_cache=0
8365 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8366if test "${enable_dirdlg+set}" = set; then
8367 enableval="$enable_dirdlg"
e6cc62c6 8368
1e6feb95
VZ
8369 if test "$enableval" = yes; then
8370 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8371 else
8372 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8373 fi
e6cc62c6 8374
1e6feb95 8375else
e6cc62c6 8376
1e6feb95
VZ
8377 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8378 if test "x$LINE" != x ; then
8379 eval "DEFAULT_$LINE"
8380 else
8381 no_cache=1
8382 fi
8383
8384 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8385
e6cc62c6 8386fi;
1e6feb95
VZ
8387
8388 eval "$ac_cv_use_dirdlg"
10f2d63a 8389 if test "$no_cache" != 1; then
1e6feb95 8390 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8391 fi
8392
1e6feb95 8393 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8394 echo "$as_me:$LINENO: result: yes" >&5
8395echo "${ECHO_T}yes" >&6
10f2d63a 8396 else
e6cc62c6
VS
8397 echo "$as_me:$LINENO: result: no" >&5
8398echo "${ECHO_T}no" >&6
10f2d63a 8399 fi
e6cc62c6 8400
698dcdb6 8401
5005acfe 8402 enablestring=
e6cc62c6
VS
8403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8404echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8405 no_cache=0
1e6feb95
VZ
8406 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8407if test "${enable_msgdlg+set}" = set; then
8408 enableval="$enable_msgdlg"
e6cc62c6 8409
10f2d63a 8410 if test "$enableval" = yes; then
1e6feb95 8411 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8412 else
1e6feb95 8413 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8414 fi
e6cc62c6 8415
10f2d63a 8416else
e6cc62c6 8417
1e6feb95 8418 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8419 if test "x$LINE" != x ; then
8420 eval "DEFAULT_$LINE"
8421 else
8422 no_cache=1
8423 fi
8424
1e6feb95 8425 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8426
e6cc62c6 8427fi;
10f2d63a 8428
1e6feb95 8429 eval "$ac_cv_use_msgdlg"
10f2d63a 8430 if test "$no_cache" != 1; then
1e6feb95 8431 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8432 fi
8433
1e6feb95 8434 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8435 echo "$as_me:$LINENO: result: yes" >&5
8436echo "${ECHO_T}yes" >&6
10f2d63a 8437 else
e6cc62c6
VS
8438 echo "$as_me:$LINENO: result: no" >&5
8439echo "${ECHO_T}no" >&6
10f2d63a 8440 fi
e6cc62c6 8441
10f2d63a 8442
5005acfe 8443 enablestring=
e6cc62c6
VS
8444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8445echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8446 no_cache=0
1e6feb95
VZ
8447 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8448if test "${enable_numberdlg+set}" = set; then
8449 enableval="$enable_numberdlg"
e6cc62c6 8450
10f2d63a 8451 if test "$enableval" = yes; then
1e6feb95 8452 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8453 else
1e6feb95 8454 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8455 fi
e6cc62c6 8456
10f2d63a 8457else
e6cc62c6 8458
1e6feb95 8459 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8460 if test "x$LINE" != x ; then
8461 eval "DEFAULT_$LINE"
8462 else
8463 no_cache=1
8464 fi
8465
1e6feb95 8466 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8467
e6cc62c6 8468fi;
10f2d63a 8469
1e6feb95 8470 eval "$ac_cv_use_numberdlg"
10f2d63a 8471 if test "$no_cache" != 1; then
1e6feb95 8472 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8473 fi
8474
1e6feb95 8475 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8476 echo "$as_me:$LINENO: result: yes" >&5
8477echo "${ECHO_T}yes" >&6
10f2d63a 8478 else
e6cc62c6
VS
8479 echo "$as_me:$LINENO: result: no" >&5
8480echo "${ECHO_T}no" >&6
10f2d63a 8481 fi
e6cc62c6 8482
10f2d63a 8483
5005acfe 8484 enablestring=
e6cc62c6
VS
8485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8486echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8487 no_cache=0
8488 # Check whether --enable-splash or --disable-splash was given.
8489if test "${enable_splash+set}" = set; then
8490 enableval="$enable_splash"
e6cc62c6 8491
cbca9943
VZ
8492 if test "$enableval" = yes; then
8493 ac_cv_use_splash='wxUSE_SPLASH=yes'
8494 else
8495 ac_cv_use_splash='wxUSE_SPLASH=no'
8496 fi
e6cc62c6 8497
cbca9943 8498else
e6cc62c6 8499
cbca9943
VZ
8500 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8501 if test "x$LINE" != x ; then
8502 eval "DEFAULT_$LINE"
8503 else
8504 no_cache=1
8505 fi
8506
8507 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8508
e6cc62c6 8509fi;
cbca9943
VZ
8510
8511 eval "$ac_cv_use_splash"
8512 if test "$no_cache" != 1; then
8513 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8514 fi
8515
8516 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8517 echo "$as_me:$LINENO: result: yes" >&5
8518echo "${ECHO_T}yes" >&6
cbca9943 8519 else
e6cc62c6
VS
8520 echo "$as_me:$LINENO: result: no" >&5
8521echo "${ECHO_T}no" >&6
cbca9943 8522 fi
e6cc62c6 8523
cbca9943 8524
5005acfe 8525 enablestring=
e6cc62c6
VS
8526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8527echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8528 no_cache=0
8529 # Check whether --enable-textdlg or --disable-textdlg was given.
8530if test "${enable_textdlg+set}" = set; then
8531 enableval="$enable_textdlg"
e6cc62c6 8532
10f2d63a
VZ
8533 if test "$enableval" = yes; then
8534 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8535 else
8536 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8537 fi
e6cc62c6 8538
10f2d63a 8539else
e6cc62c6 8540
10f2d63a
VZ
8541 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8542 if test "x$LINE" != x ; then
8543 eval "DEFAULT_$LINE"
8544 else
8545 no_cache=1
8546 fi
8547
8548 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8549
e6cc62c6 8550fi;
10f2d63a
VZ
8551
8552 eval "$ac_cv_use_textdlg"
8553 if test "$no_cache" != 1; then
8554 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8555 fi
8556
8557 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8558 echo "$as_me:$LINENO: result: yes" >&5
8559echo "${ECHO_T}yes" >&6
10f2d63a 8560 else
e6cc62c6
VS
8561 echo "$as_me:$LINENO: result: no" >&5
8562echo "${ECHO_T}no" >&6
10f2d63a 8563 fi
e6cc62c6 8564
10f2d63a 8565
5005acfe 8566 enablestring=
e6cc62c6
VS
8567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8568echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8569 no_cache=0
8570 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8571if test "${enable_tipdlg+set}" = set; then
8572 enableval="$enable_tipdlg"
e6cc62c6 8573
10f2d63a
VZ
8574 if test "$enableval" = yes; then
8575 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8576 else
8577 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8578 fi
e6cc62c6 8579
10f2d63a 8580else
e6cc62c6 8581
10f2d63a
VZ
8582 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8583 if test "x$LINE" != x ; then
8584 eval "DEFAULT_$LINE"
8585 else
8586 no_cache=1
8587 fi
8588
8589 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8590
e6cc62c6 8591fi;
10f2d63a
VZ
8592
8593 eval "$ac_cv_use_tipdlg"
8594 if test "$no_cache" != 1; then
8595 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8596 fi
8597
8598 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8599 echo "$as_me:$LINENO: result: yes" >&5
8600echo "${ECHO_T}yes" >&6
10f2d63a 8601 else
e6cc62c6
VS
8602 echo "$as_me:$LINENO: result: no" >&5
8603echo "${ECHO_T}no" >&6
10f2d63a 8604 fi
e6cc62c6 8605
10f2d63a 8606
5005acfe 8607 enablestring=
e6cc62c6
VS
8608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8609echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8610 no_cache=0
8611 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8612if test "${enable_progressdlg+set}" = set; then
8613 enableval="$enable_progressdlg"
e6cc62c6 8614
10f2d63a
VZ
8615 if test "$enableval" = yes; then
8616 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8617 else
8618 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8619 fi
e6cc62c6 8620
10f2d63a 8621else
e6cc62c6 8622
10f2d63a
VZ
8623 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8624 if test "x$LINE" != x ; then
8625 eval "DEFAULT_$LINE"
8626 else
8627 no_cache=1
8628 fi
8629
8630 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8631
e6cc62c6 8632fi;
10f2d63a
VZ
8633
8634 eval "$ac_cv_use_progressdlg"
8635 if test "$no_cache" != 1; then
8636 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8637 fi
8638
8639 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8640 echo "$as_me:$LINENO: result: yes" >&5
8641echo "${ECHO_T}yes" >&6
10f2d63a 8642 else
e6cc62c6
VS
8643 echo "$as_me:$LINENO: result: no" >&5
8644echo "${ECHO_T}no" >&6
10f2d63a 8645 fi
e6cc62c6 8646
10f2d63a 8647
5005acfe 8648 enablestring=
e6cc62c6
VS
8649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8650echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8651 no_cache=0
8652 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8653if test "${enable_wizarddlg+set}" = set; then
8654 enableval="$enable_wizarddlg"
e6cc62c6 8655
b1f5d087
VZ
8656 if test "$enableval" = yes; then
8657 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8658 else
8659 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8660 fi
e6cc62c6 8661
b1f5d087 8662else
e6cc62c6 8663
b1f5d087
VZ
8664 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8665 if test "x$LINE" != x ; then
8666 eval "DEFAULT_$LINE"
8667 else
8668 no_cache=1
8669 fi
8670
8671 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8672
e6cc62c6 8673fi;
b1f5d087
VZ
8674
8675 eval "$ac_cv_use_wizarddlg"
8676 if test "$no_cache" != 1; then
8677 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8678 fi
8679
8680 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8681 echo "$as_me:$LINENO: result: yes" >&5
8682echo "${ECHO_T}yes" >&6
b1f5d087 8683 else
e6cc62c6
VS
8684 echo "$as_me:$LINENO: result: no" >&5
8685echo "${ECHO_T}no" >&6
b1f5d087 8686 fi
e6cc62c6 8687
8284b0c5
MB
8688
8689
52127426 8690
5005acfe 8691 enablestring=
e6cc62c6
VS
8692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8693echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8694 no_cache=0
8695 # Check whether --enable-menus or --disable-menus was given.
8696if test "${enable_menus+set}" = set; then
8697 enableval="$enable_menus"
e6cc62c6 8698
1e6feb95
VZ
8699 if test "$enableval" = yes; then
8700 ac_cv_use_menus='wxUSE_MENUS=yes'
8701 else
8702 ac_cv_use_menus='wxUSE_MENUS=no'
8703 fi
e6cc62c6 8704
1e6feb95 8705else
e6cc62c6 8706
1e6feb95
VZ
8707 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8708 if test "x$LINE" != x ; then
8709 eval "DEFAULT_$LINE"
8710 else
8711 no_cache=1
8712 fi
8713
8714 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8715
e6cc62c6 8716fi;
1e6feb95
VZ
8717
8718 eval "$ac_cv_use_menus"
8719 if test "$no_cache" != 1; then
8720 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8721 fi
8722
8723 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8724 echo "$as_me:$LINENO: result: yes" >&5
8725echo "${ECHO_T}yes" >&6
1e6feb95 8726 else
e6cc62c6
VS
8727 echo "$as_me:$LINENO: result: no" >&5
8728echo "${ECHO_T}no" >&6
1e6feb95 8729 fi
e6cc62c6 8730
1e6feb95 8731
5005acfe 8732 enablestring=
e6cc62c6
VS
8733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8734echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8735 no_cache=0
8736 # Check whether --enable-miniframe or --disable-miniframe was given.
8737if test "${enable_miniframe+set}" = set; then
8738 enableval="$enable_miniframe"
e6cc62c6 8739
10f2d63a
VZ
8740 if test "$enableval" = yes; then
8741 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8742 else
8743 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8744 fi
e6cc62c6 8745
10f2d63a 8746else
e6cc62c6 8747
10f2d63a
VZ
8748 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8749 if test "x$LINE" != x ; then
8750 eval "DEFAULT_$LINE"
8751 else
8752 no_cache=1
8753 fi
8754
8755 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8756
e6cc62c6 8757fi;
10f2d63a
VZ
8758
8759 eval "$ac_cv_use_miniframe"
8760 if test "$no_cache" != 1; then
8761 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8762 fi
8763
8764 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8765 echo "$as_me:$LINENO: result: yes" >&5
8766echo "${ECHO_T}yes" >&6
10f2d63a 8767 else
e6cc62c6
VS
8768 echo "$as_me:$LINENO: result: no" >&5
8769echo "${ECHO_T}no" >&6
10f2d63a 8770 fi
e6cc62c6 8771
10f2d63a 8772
5005acfe 8773 enablestring=
e6cc62c6
VS
8774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8775echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
8776 no_cache=0
8777 # Check whether --enable-tooltips or --disable-tooltips was given.
8778if test "${enable_tooltips+set}" = set; then
8779 enableval="$enable_tooltips"
e6cc62c6 8780
10f2d63a
VZ
8781 if test "$enableval" = yes; then
8782 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8783 else
8784 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8785 fi
e6cc62c6 8786
10f2d63a 8787else
e6cc62c6 8788
10f2d63a
VZ
8789 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8790 if test "x$LINE" != x ; then
8791 eval "DEFAULT_$LINE"
8792 else
8793 no_cache=1
8794 fi
8795
8796 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 8797
e6cc62c6 8798fi;
10f2d63a
VZ
8799
8800 eval "$ac_cv_use_tooltips"
8801 if test "$no_cache" != 1; then
8802 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8803 fi
8804
8805 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
8806 echo "$as_me:$LINENO: result: yes" >&5
8807echo "${ECHO_T}yes" >&6
10f2d63a 8808 else
e6cc62c6
VS
8809 echo "$as_me:$LINENO: result: no" >&5
8810echo "${ECHO_T}no" >&6
10f2d63a 8811 fi
e6cc62c6 8812
10f2d63a 8813
5005acfe 8814 enablestring=
e6cc62c6
VS
8815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8816echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
8817 no_cache=0
8818 # Check whether --enable-splines or --disable-splines was given.
8819if test "${enable_splines+set}" = set; then
8820 enableval="$enable_splines"
e6cc62c6 8821
10f2d63a
VZ
8822 if test "$enableval" = yes; then
8823 ac_cv_use_splines='wxUSE_SPLINES=yes'
8824 else
8825 ac_cv_use_splines='wxUSE_SPLINES=no'
8826 fi
e6cc62c6 8827
10f2d63a 8828else
e6cc62c6 8829
10f2d63a
VZ
8830 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8831 if test "x$LINE" != x ; then
8832 eval "DEFAULT_$LINE"
8833 else
8834 no_cache=1
8835 fi
8836
8837 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 8838
e6cc62c6 8839fi;
10f2d63a
VZ
8840
8841 eval "$ac_cv_use_splines"
8842 if test "$no_cache" != 1; then
8843 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8844 fi
8845
8846 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
8847 echo "$as_me:$LINENO: result: yes" >&5
8848echo "${ECHO_T}yes" >&6
10f2d63a 8849 else
e6cc62c6
VS
8850 echo "$as_me:$LINENO: result: no" >&5
8851echo "${ECHO_T}no" >&6
10f2d63a 8852 fi
e6cc62c6 8853
10f2d63a 8854
5005acfe 8855 enablestring=
e6cc62c6
VS
8856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8857echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
8858 no_cache=0
8859 # Check whether --enable-validators or --disable-validators was given.
8860if test "${enable_validators+set}" = set; then
8861 enableval="$enable_validators"
e6cc62c6 8862
10f2d63a
VZ
8863 if test "$enableval" = yes; then
8864 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8865 else
8866 ac_cv_use_validators='wxUSE_VALIDATORS=no'
8867 fi
e6cc62c6 8868
10f2d63a 8869else
e6cc62c6 8870
10f2d63a
VZ
8871 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8872 if test "x$LINE" != x ; then
8873 eval "DEFAULT_$LINE"
8874 else
8875 no_cache=1
8876 fi
8877
8878 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 8879
e6cc62c6 8880fi;
10f2d63a
VZ
8881
8882 eval "$ac_cv_use_validators"
8883 if test "$no_cache" != 1; then
8884 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8885 fi
8886
8887 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
8888 echo "$as_me:$LINENO: result: yes" >&5
8889echo "${ECHO_T}yes" >&6
10f2d63a 8890 else
e6cc62c6
VS
8891 echo "$as_me:$LINENO: result: no" >&5
8892echo "${ECHO_T}no" >&6
10f2d63a 8893 fi
e6cc62c6 8894
10f2d63a 8895
5005acfe 8896 enablestring=
e6cc62c6
VS
8897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8898echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
8899 no_cache=0
8900 # Check whether --enable-busyinfo or --disable-busyinfo was given.
8901if test "${enable_busyinfo+set}" = set; then
8902 enableval="$enable_busyinfo"
e6cc62c6 8903
10f2d63a
VZ
8904 if test "$enableval" = yes; then
8905 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8906 else
8907 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8908 fi
e6cc62c6 8909
10f2d63a 8910else
e6cc62c6 8911
10f2d63a
VZ
8912 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8913 if test "x$LINE" != x ; then
8914 eval "DEFAULT_$LINE"
8915 else
8916 no_cache=1
8917 fi
8918
8919 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 8920
e6cc62c6 8921fi;
10f2d63a
VZ
8922
8923 eval "$ac_cv_use_busyinfo"
8924 if test "$no_cache" != 1; then
8925 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8926 fi
8927
8928 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
8929 echo "$as_me:$LINENO: result: yes" >&5
8930echo "${ECHO_T}yes" >&6
10f2d63a 8931 else
e6cc62c6
VS
8932 echo "$as_me:$LINENO: result: no" >&5
8933echo "${ECHO_T}no" >&6
10f2d63a 8934 fi
e6cc62c6 8935
10f2d63a 8936
5005acfe 8937 enablestring=
e6cc62c6
VS
8938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8939echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
8940 no_cache=0
8941 # Check whether --enable-joystick or --disable-joystick was given.
8942if test "${enable_joystick+set}" = set; then
8943 enableval="$enable_joystick"
e6cc62c6 8944
f6bcfd97
BP
8945 if test "$enableval" = yes; then
8946 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8947 else
8948 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8949 fi
e6cc62c6 8950
f6bcfd97 8951else
e6cc62c6 8952
f6bcfd97
BP
8953 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8954 if test "x$LINE" != x ; then
8955 eval "DEFAULT_$LINE"
8956 else
8957 no_cache=1
8958 fi
8959
8960 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 8961
e6cc62c6 8962fi;
f6bcfd97
BP
8963
8964 eval "$ac_cv_use_joystick"
8965 if test "$no_cache" != 1; then
8966 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8967 fi
8968
8969 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
8970 echo "$as_me:$LINENO: result: yes" >&5
8971echo "${ECHO_T}yes" >&6
f6bcfd97 8972 else
e6cc62c6
VS
8973 echo "$as_me:$LINENO: result: no" >&5
8974echo "${ECHO_T}no" >&6
f6bcfd97 8975 fi
e6cc62c6 8976
698dcdb6 8977
5005acfe 8978 enablestring=
e6cc62c6
VS
8979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
8980echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
8981 no_cache=0
8982 # Check whether --enable-metafile or --disable-metafile was given.
8983if test "${enable_metafile+set}" = set; then
8984 enableval="$enable_metafile"
e6cc62c6 8985
1e6feb95
VZ
8986 if test "$enableval" = yes; then
8987 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8988 else
8989 ac_cv_use_metafile='wxUSE_METAFILE=no'
8990 fi
e6cc62c6 8991
1e6feb95 8992else
e6cc62c6 8993
1e6feb95
VZ
8994 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8995 if test "x$LINE" != x ; then
8996 eval "DEFAULT_$LINE"
8997 else
8998 no_cache=1
8999 fi
9000
9001 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9002
e6cc62c6 9003fi;
1e6feb95
VZ
9004
9005 eval "$ac_cv_use_metafile"
9006 if test "$no_cache" != 1; then
9007 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9008 fi
9009
9010 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9011 echo "$as_me:$LINENO: result: yes" >&5
9012echo "${ECHO_T}yes" >&6
1e6feb95 9013 else
e6cc62c6
VS
9014 echo "$as_me:$LINENO: result: no" >&5
9015echo "${ECHO_T}no" >&6
1e6feb95 9016 fi
e6cc62c6 9017
1e6feb95 9018
5005acfe 9019 enablestring=
e6cc62c6
VS
9020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9021echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9022 no_cache=0
9023 # Check whether --enable-dragimage or --disable-dragimage was given.
9024if test "${enable_dragimage+set}" = set; then
9025 enableval="$enable_dragimage"
e6cc62c6 9026
24fd6d87
VZ
9027 if test "$enableval" = yes; then
9028 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9029 else
9030 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9031 fi
e6cc62c6 9032
24fd6d87 9033else
e6cc62c6 9034
24fd6d87
VZ
9035 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9036 if test "x$LINE" != x ; then
9037 eval "DEFAULT_$LINE"
9038 else
9039 no_cache=1
9040 fi
9041
9042 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9043
e6cc62c6 9044fi;
24fd6d87
VZ
9045
9046 eval "$ac_cv_use_dragimage"
9047 if test "$no_cache" != 1; then
9048 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9049 fi
9050
9051 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9052 echo "$as_me:$LINENO: result: yes" >&5
9053echo "${ECHO_T}yes" >&6
24fd6d87 9054 else
e6cc62c6
VS
9055 echo "$as_me:$LINENO: result: no" >&5
9056echo "${ECHO_T}no" >&6
24fd6d87 9057 fi
e6cc62c6 9058
52127426 9059
7bb2947d 9060 enablestring=
e6cc62c6
VS
9061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9062echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9063 no_cache=0
9064 # Check whether --enable-accessibility or --disable-accessibility was given.
9065if test "${enable_accessibility+set}" = set; then
9066 enableval="$enable_accessibility"
e6cc62c6 9067
7bb2947d
MB
9068 if test "$enableval" = yes; then
9069 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9070 else
9071 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9072 fi
e6cc62c6 9073
7bb2947d 9074else
e6cc62c6 9075
7bb2947d
MB
9076 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9077 if test "x$LINE" != x ; then
9078 eval "DEFAULT_$LINE"
9079 else
9080 no_cache=1
9081 fi
9082
9083 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9084
e6cc62c6 9085fi;
7bb2947d
MB
9086
9087 eval "$ac_cv_use_accessibility"
9088 if test "$no_cache" != 1; then
9089 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9090 fi
9091
9092 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9093 echo "$as_me:$LINENO: result: yes" >&5
9094echo "${ECHO_T}yes" >&6
7bb2947d 9095 else
e6cc62c6
VS
9096 echo "$as_me:$LINENO: result: no" >&5
9097echo "${ECHO_T}no" >&6
7bb2947d 9098 fi
e6cc62c6 9099
7bb2947d 9100
8284b0c5
MB
9101
9102
5005acfe 9103 enablestring=
e6cc62c6
VS
9104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9105echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9106 no_cache=0
9107 # Check whether --enable-palette or --disable-palette was given.
9108if test "${enable_palette+set}" = set; then
9109 enableval="$enable_palette"
e6cc62c6 9110
edae8572
VZ
9111 if test "$enableval" = yes; then
9112 ac_cv_use_palette='wxUSE_PALETTE=yes'
9113 else
9114 ac_cv_use_palette='wxUSE_PALETTE=no'
9115 fi
e6cc62c6 9116
edae8572 9117else
e6cc62c6 9118
edae8572
VZ
9119 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9120 if test "x$LINE" != x ; then
9121 eval "DEFAULT_$LINE"
9122 else
9123 no_cache=1
9124 fi
9125
9126 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9127
e6cc62c6 9128fi;
edae8572
VZ
9129
9130 eval "$ac_cv_use_palette"
9131 if test "$no_cache" != 1; then
9132 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9133 fi
9134
9135 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9136 echo "$as_me:$LINENO: result: yes" >&5
9137echo "${ECHO_T}yes" >&6
edae8572 9138 else
e6cc62c6
VS
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
edae8572 9141 fi
e6cc62c6 9142
edae8572 9143
5005acfe 9144 enablestring=
e6cc62c6
VS
9145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9146echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9147 no_cache=0
9148 # Check whether --enable-image or --disable-image was given.
9149if test "${enable_image+set}" = set; then
9150 enableval="$enable_image"
e6cc62c6 9151
0046ff7c
VS
9152 if test "$enableval" = yes; then
9153 ac_cv_use_image='wxUSE_IMAGE=yes'
9154 else
9155 ac_cv_use_image='wxUSE_IMAGE=no'
9156 fi
e6cc62c6 9157
0046ff7c 9158else
e6cc62c6 9159
0046ff7c
VS
9160 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9161 if test "x$LINE" != x ; then
9162 eval "DEFAULT_$LINE"
9163 else
9164 no_cache=1
9165 fi
9166
9167 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9168
e6cc62c6 9169fi;
0046ff7c
VS
9170
9171 eval "$ac_cv_use_image"
9172 if test "$no_cache" != 1; then
9173 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9174 fi
9175
9176 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9177 echo "$as_me:$LINENO: result: yes" >&5
9178echo "${ECHO_T}yes" >&6
0046ff7c 9179 else
e6cc62c6
VS
9180 echo "$as_me:$LINENO: result: no" >&5
9181echo "${ECHO_T}no" >&6
0046ff7c 9182 fi
e6cc62c6 9183
0046ff7c 9184
5005acfe 9185 enablestring=
e6cc62c6
VS
9186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9187echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9188 no_cache=0
9189 # Check whether --enable-gif or --disable-gif was given.
9190if test "${enable_gif+set}" = set; then
9191 enableval="$enable_gif"
e6cc62c6 9192
10f2d63a
VZ
9193 if test "$enableval" = yes; then
9194 ac_cv_use_gif='wxUSE_GIF=yes'
9195 else
9196 ac_cv_use_gif='wxUSE_GIF=no'
9197 fi
e6cc62c6 9198
10f2d63a 9199else
e6cc62c6 9200
10f2d63a
VZ
9201 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9202 if test "x$LINE" != x ; then
9203 eval "DEFAULT_$LINE"
9204 else
9205 no_cache=1
9206 fi
9207
9208 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9209
e6cc62c6 9210fi;
10f2d63a
VZ
9211
9212 eval "$ac_cv_use_gif"
9213 if test "$no_cache" != 1; then
9214 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9215 fi
9216
9217 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9218 echo "$as_me:$LINENO: result: yes" >&5
9219echo "${ECHO_T}yes" >&6
10f2d63a 9220 else
e6cc62c6
VS
9221 echo "$as_me:$LINENO: result: no" >&5
9222echo "${ECHO_T}no" >&6
10f2d63a 9223 fi
e6cc62c6 9224
10f2d63a 9225
5005acfe 9226 enablestring=
e6cc62c6
VS
9227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9228echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9229 no_cache=0
9230 # Check whether --enable-pcx or --disable-pcx was given.
9231if test "${enable_pcx+set}" = set; then
9232 enableval="$enable_pcx"
e6cc62c6 9233
10f2d63a
VZ
9234 if test "$enableval" = yes; then
9235 ac_cv_use_pcx='wxUSE_PCX=yes'
9236 else
9237 ac_cv_use_pcx='wxUSE_PCX=no'
9238 fi
e6cc62c6 9239
10f2d63a 9240else
e6cc62c6 9241
10f2d63a
VZ
9242 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9243 if test "x$LINE" != x ; then
9244 eval "DEFAULT_$LINE"
9245 else
9246 no_cache=1
9247 fi
9248
9249 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9250
e6cc62c6 9251fi;
10f2d63a
VZ
9252
9253 eval "$ac_cv_use_pcx"
9254 if test "$no_cache" != 1; then
9255 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9256 fi
9257
9258 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9259 echo "$as_me:$LINENO: result: yes" >&5
9260echo "${ECHO_T}yes" >&6
10f2d63a 9261 else
e6cc62c6
VS
9262 echo "$as_me:$LINENO: result: no" >&5
9263echo "${ECHO_T}no" >&6
10f2d63a 9264 fi
e6cc62c6 9265
10f2d63a 9266
5005acfe 9267 enablestring=
e6cc62c6
VS
9268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9269echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9270 no_cache=0
9271 # Check whether --enable-iff or --disable-iff was given.
9272if test "${enable_iff+set}" = set; then
9273 enableval="$enable_iff"
e6cc62c6 9274
4b6b4dfc
RR
9275 if test "$enableval" = yes; then
9276 ac_cv_use_iff='wxUSE_IFF=yes'
9277 else
9278 ac_cv_use_iff='wxUSE_IFF=no'
9279 fi
e6cc62c6 9280
4b6b4dfc 9281else
e6cc62c6 9282
4b6b4dfc
RR
9283 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9284 if test "x$LINE" != x ; then
9285 eval "DEFAULT_$LINE"
9286 else
9287 no_cache=1
9288 fi
9289
9290 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9291
e6cc62c6 9292fi;
4b6b4dfc
RR
9293
9294 eval "$ac_cv_use_iff"
9295 if test "$no_cache" != 1; then
9296 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9297 fi
9298
9299 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9300 echo "$as_me:$LINENO: result: yes" >&5
9301echo "${ECHO_T}yes" >&6
4b6b4dfc 9302 else
e6cc62c6
VS
9303 echo "$as_me:$LINENO: result: no" >&5
9304echo "${ECHO_T}no" >&6
4b6b4dfc 9305 fi
e6cc62c6 9306
4b6b4dfc 9307
5005acfe 9308 enablestring=
e6cc62c6
VS
9309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9310echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9311 no_cache=0
9312 # Check whether --enable-pnm or --disable-pnm was given.
9313if test "${enable_pnm+set}" = set; then
9314 enableval="$enable_pnm"
e6cc62c6 9315
10f2d63a
VZ
9316 if test "$enableval" = yes; then
9317 ac_cv_use_pnm='wxUSE_PNM=yes'
9318 else
9319 ac_cv_use_pnm='wxUSE_PNM=no'
9320 fi
e6cc62c6 9321
10f2d63a 9322else
e6cc62c6 9323
10f2d63a
VZ
9324 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9325 if test "x$LINE" != x ; then
9326 eval "DEFAULT_$LINE"
9327 else
9328 no_cache=1
9329 fi
9330
9331 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9332
e6cc62c6 9333fi;
10f2d63a
VZ
9334
9335 eval "$ac_cv_use_pnm"
9336 if test "$no_cache" != 1; then
9337 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9338 fi
9339
9340 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9341 echo "$as_me:$LINENO: result: yes" >&5
9342echo "${ECHO_T}yes" >&6
10f2d63a 9343 else
e6cc62c6
VS
9344 echo "$as_me:$LINENO: result: no" >&5
9345echo "${ECHO_T}no" >&6
10f2d63a 9346 fi
e6cc62c6 9347
10f2d63a 9348
5005acfe 9349 enablestring=
e6cc62c6
VS
9350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9351echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9352 no_cache=0
69d27ff7
MB
9353 # Check whether --enable-xpm or --disable-xpm was given.
9354if test "${enable_xpm+set}" = set; then
9355 enableval="$enable_xpm"
e6cc62c6 9356
0046ff7c 9357 if test "$enableval" = yes; then
69d27ff7 9358 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9359 else
69d27ff7 9360 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9361 fi
e6cc62c6 9362
0046ff7c 9363else
e6cc62c6 9364
0046ff7c
VS
9365 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9366 if test "x$LINE" != x ; then
9367 eval "DEFAULT_$LINE"
9368 else
9369 no_cache=1
9370 fi
9371
69d27ff7 9372 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9373
e6cc62c6 9374fi;
0046ff7c 9375
69d27ff7 9376 eval "$ac_cv_use_xpm"
0046ff7c 9377 if test "$no_cache" != 1; then
69d27ff7 9378 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9379 fi
9380
9381 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9382 echo "$as_me:$LINENO: result: yes" >&5
9383echo "${ECHO_T}yes" >&6
0046ff7c 9384 else
e6cc62c6
VS
9385 echo "$as_me:$LINENO: result: no" >&5
9386echo "${ECHO_T}no" >&6
0046ff7c 9387 fi
e6cc62c6 9388
0046ff7c 9389
5005acfe 9390 enablestring=
e6cc62c6
VS
9391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9392echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9393 no_cache=0
c7206e64
VS
9394 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9395if test "${enable_ico_cur+set}" = set; then
9396 enableval="$enable_ico_cur"
e6cc62c6 9397
658974ae 9398 if test "$enableval" = yes; then
c7206e64 9399 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9400 else
c7206e64 9401 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9402 fi
e6cc62c6 9403
658974ae 9404else
e6cc62c6 9405
658974ae
VS
9406 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9407 if test "x$LINE" != x ; then
9408 eval "DEFAULT_$LINE"
9409 else
9410 no_cache=1
9411 fi
9412
c7206e64 9413 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9414
e6cc62c6 9415fi;
658974ae 9416
c7206e64 9417 eval "$ac_cv_use_ico_cur"
658974ae 9418 if test "$no_cache" != 1; then
c7206e64 9419 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9420 fi
9421
9422 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9423 echo "$as_me:$LINENO: result: yes" >&5
9424echo "${ECHO_T}yes" >&6
658974ae 9425 else
e6cc62c6
VS
9426 echo "$as_me:$LINENO: result: no" >&5
9427echo "${ECHO_T}no" >&6
658974ae 9428 fi
e6cc62c6 9429
658974ae 9430
b12915c1
VZ
9431fi
9432
029b47ad
VS
9433
9434
9435 enablestring=
9436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9437echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9438 no_cache=0
9439 # Check whether --enable-official_build or --disable-official_build was given.
9440if test "${enable_official_build+set}" = set; then
9441 enableval="$enable_official_build"
9442
9443 if test "$enableval" = yes; then
9444 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9445 else
9446 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9447 fi
9448
9449else
9450
9451 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9452 if test "x$LINE" != x ; then
9453 eval "DEFAULT_$LINE"
9454 else
9455 no_cache=1
9456 fi
9457
9458 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9459
9460fi;
9461
9462 eval "$ac_cv_use_official_build"
9463 if test "$no_cache" != 1; then
9464 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9465 fi
9466
9467 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9468 echo "$as_me:$LINENO: result: yes" >&5
9469echo "${ECHO_T}yes" >&6
9470 else
9471 echo "$as_me:$LINENO: result: no" >&5
9472echo "${ECHO_T}no" >&6
9473 fi
9474
9475# Check whether --enable-vendor or --disable-vendor was given.
9476if test "${enable_vendor+set}" = set; then
9477 enableval="$enable_vendor"
9478 VENDOR="$enableval"
9479fi;
9480if test "x$VENDOR" = "x"; then
9481 VENDOR="custom"
9482fi
9483
d558c907
VS
9484case "${host}" in
9485 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9486 PATH_IFS=';'
d558c907
VS
9487 ;;
9488 *)
9489 PATH_IFS=':'
d558c907
VS
9490 ;;
9491esac
9492
8284b0c5
MB
9493
9494
10f2d63a
VZ
9495 echo "saving argument cache $wx_arg_cache_file"
9496 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9497
8284b0c5 9498
e6cc62c6
VS
9499
9500echo "$as_me:$LINENO: checking for toolkit" >&5
9501echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9502
9503# In Wine, we need to default to MSW, not GTK or MOTIF
9504if test "$wxUSE_WINE" = "yes"; then
9505 DEFAULT_DEFAULT_wxUSE_GTK=0
9506 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9507 DEFAULT_DEFAULT_wxUSE_MSW=1
9508fi
10f2d63a
VZ
9509
9510if test "$wxUSE_GUI" = "yes"; then
9511
3a922bb4 9512 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9513 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9514echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9515 { (exit 1); exit 1; }; }
3a922bb4 9516 fi
b12915c1 9517
3a922bb4
RL
9518 if test "$TOOLKIT_GIVEN" = 1; then
9519 for toolkit in `echo $ALL_TOOLKITS`; do
9520 var=wxUSE_$toolkit
9521 eval "value=\$${var}"
9522 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9523 done
10f2d63a 9524 else
3a922bb4
RL
9525 for toolkit in `echo $ALL_TOOLKITS`; do
9526 if test "$has_toolkit_in_cache" != 1; then
9527 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9528 else
9529 var=DEFAULT_wxUSE_$toolkit
9530 fi
9531 eval "wxUSE_$toolkit=\$${var}"
9532 done
10f2d63a 9533 fi
10f2d63a 9534
ac0c4cc3
DE
9535 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9536 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9537 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9538
d558c907 9539 case "${host}" in
6fa882bd 9540 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9541 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9542 esac
10f2d63a 9543
3a922bb4
RL
9544 case "$NUM_TOOLKITS" in
9545 1)
9546 ;;
9547 0)
e6cc62c6
VS
9548 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9549echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9550 { (exit 1); exit 1; }; }
3a922bb4
RL
9551 ;;
9552 *)
e6cc62c6
VS
9553 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9554echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9555 { (exit 1); exit 1; }; }
3a922bb4 9556 esac
10f2d63a 9557
3a922bb4
RL
9558 for toolkit in `echo $ALL_TOOLKITS`; do
9559 var=wxUSE_$toolkit
9560 eval "value=\$${var}"
9561 if test "x$value" != x; then
9562 cache_var=CACHE_$toolkit
9563 eval "cache=\$${cache_var}"
9564 if test "$cache" = 1; then
9565 echo "$var=$value" >> ${wx_arg_cache_file}
9566 fi
9567 if test "$value" = 1; then
9568 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
e6cc62c6
VS
9569 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9570echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9571 fi
9572 fi
9573 done
10f2d63a 9574else
9de9b8f0
VZ
9575 if test "x$host_alias" != "x"; then
9576 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9577echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9578 else
9579 echo "$as_me:$LINENO: result: base only" >&5
9580echo "${ECHO_T}base only" >&6
9581 fi
10f2d63a
VZ
9582fi
9583
43d99b6d
VS
9584wants_win32=0
9585doesnt_want_win32=0
17234b26
MB
9586case "${host}" in
9587 *-*-cygwin*)
9588 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9589 wants_win32=1
9590 else
9591 doesnt_want_win32=1
17234b26
MB
9592 fi
9593 ;;
9594 *-*-mingw*)
43d99b6d 9595 wants_win32=1
17234b26
MB
9596 ;;
9597esac
9598
89e6bf6d
VZ
9599if test "$wxUSE_WINE" = "yes"; then
9600 wants_win32=1
9601 CC=winegcc
9602 CXX=wineg++
9603 RESCOMP=wrc
9604fi
9605
43d99b6d 9606if test "$wants_win32" = 1 ; then
17234b26
MB
9607 USE_UNIX=0
9608 USE_WIN32=1
e6cc62c6 9609 cat >>confdefs.h <<\_ACEOF
17234b26 9610#define __WIN32__ 1
e6cc62c6 9611_ACEOF
17234b26 9612
e6cc62c6 9613 cat >>confdefs.h <<\_ACEOF
17234b26 9614#define __WIN95__ 1
e6cc62c6 9615_ACEOF
17234b26 9616
e6cc62c6 9617 cat >>confdefs.h <<\_ACEOF
17234b26 9618#define __WINDOWS__ 1
e6cc62c6 9619_ACEOF
17234b26 9620
e6cc62c6 9621 cat >>confdefs.h <<\_ACEOF
17234b26 9622#define __GNUWIN32__ 1
e6cc62c6 9623_ACEOF
17234b26 9624
e6cc62c6 9625 cat >>confdefs.h <<\_ACEOF
17234b26 9626#define STRICT 1
e6cc62c6 9627_ACEOF
17234b26 9628
e6cc62c6 9629 cat >>confdefs.h <<\_ACEOF
17234b26 9630#define WINVER 0x0400
e6cc62c6 9631_ACEOF
17234b26 9632
43d99b6d
VS
9633fi
9634if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9635 USE_UNIX=1
9636 USE_WIN32=0
9637fi
9638
9639if test "$USE_UNIX" = 1 ; then
9640 wxUSE_UNIX=yes
e6cc62c6 9641 cat >>confdefs.h <<\_ACEOF
17234b26 9642#define __UNIX__ 1
e6cc62c6 9643_ACEOF
17234b26
MB
9644
9645fi
9646
8284b0c5 9647
e6cc62c6 9648cat >confcache <<\_ACEOF
10f2d63a
VZ
9649# This file is a shell script that caches the results of configure
9650# tests run on this system so they can be shared between configure
e6cc62c6
VS
9651# scripts and configure runs, see configure's option --config-cache.
9652# It is not useful on other systems. If it contains results you don't
9653# want to keep, you may remove or edit it.
10f2d63a 9654#
e6cc62c6
VS
9655# config.status only pays attention to the cache file if you give it
9656# the --recheck option to rerun configure.
10f2d63a 9657#
e6cc62c6
VS
9658# `ac_cv_env_foo' variables (set or unset) will be overridden when
9659# loading this file, other *unset* `ac_cv_foo' will be assigned the
9660# following values.
9661
9662_ACEOF
9663
10f2d63a
VZ
9664# The following way of writing the cache mishandles newlines in values,
9665# but we know of no workaround that is simple, portable, and efficient.
9666# So, don't put newlines in cache variables' values.
9667# Ultrix sh set writes to stderr and can't be redirected directly,
9668# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9669{
9670 (set) 2>&1 |
9671 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9672 *ac_space=\ *)
9673 # `set' does not quote correctly, so add quotes (double-quote
9674 # substitution turns \\\\ into \\, and sed turns \\ into \).
9675 sed -n \
9676 "s/'/'\\\\''/g;
9677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9678 ;;
9679 *)
9680 # `set' quotes correctly as required by POSIX, so do not add quotes.
9681 sed -n \
9682 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9683 ;;
9684 esac;
9685} |
9686 sed '
9687 t clear
9688 : clear
9689 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9690 t end
9691 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9692 : end' >>confcache
9693if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9694 if test -w $cache_file; then
e6cc62c6
VS
9695 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9696 cat confcache >$cache_file
10f2d63a
VZ
9697 else
9698 echo "not updating unwritable cache $cache_file"
9699 fi
9700fi
9701rm -f confcache
9702
e59890c3 9703if test "$build" != "$host" ; then
9d353d4a 9704 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9705 CC=$host_alias-gcc
9706 CXX=$host_alias-c++
9707 AR=$host_alias-ar
9708 RANLIB=$host_alias-ranlib
9709 DLLTOOL=$host_alias-dlltool
9710 RESCOMP=$host_alias-windres
9711 LD=$host_alias-ld
9712 NM=$host_alias-nm
9713 STRIP=$host_alias-strip
9714 else
e6cc62c6
VS
9715 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9716echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9717 { (exit 1); exit 1; }; }
3a922bb4 9718 fi
10f2d63a
VZ
9719fi
9720
ec603395 9721CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9722ac_ext=c
9723ac_cpp='$CPP $CPPFLAGS'
9724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9726ac_compiler_gnu=$ac_cv_c_compiler_gnu
9727if test -n "$ac_tool_prefix"; then
9728 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9729set dummy ${ac_tool_prefix}gcc; ac_word=$2
9730echo "$as_me:$LINENO: checking for $ac_word" >&5
9731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9732if test "${ac_cv_prog_CC+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9734else
9735 if test -n "$CC"; then
9736 ac_cv_prog_CC="$CC" # Let the user override the test.
9737else
9738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739for as_dir in $PATH
9740do
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9745 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9747 break 2
9748 fi
9749done
9750done
9751
9752fi
9753fi
9754CC=$ac_cv_prog_CC
9755if test -n "$CC"; then
9756 echo "$as_me:$LINENO: result: $CC" >&5
9757echo "${ECHO_T}$CC" >&6
9758else
9759 echo "$as_me:$LINENO: result: no" >&5
9760echo "${ECHO_T}no" >&6
9761fi
9762
9763fi
9764if test -z "$ac_cv_prog_CC"; then
9765 ac_ct_CC=$CC
9766 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9767set dummy gcc; ac_word=$2
e6cc62c6
VS
9768echo "$as_me:$LINENO: checking for $ac_word" >&5
9769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9770if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
9773 if test -n "$ac_ct_CC"; then
9774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9775else
9776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777for as_dir in $PATH
9778do
9779 IFS=$as_save_IFS
9780 test -z "$as_dir" && as_dir=.
9781 for ac_exec_ext in '' $ac_executable_extensions; do
9782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9783 ac_cv_prog_ac_ct_CC="gcc"
9784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9785 break 2
9786 fi
9787done
9788done
9789
9790fi
9791fi
9792ac_ct_CC=$ac_cv_prog_ac_ct_CC
9793if test -n "$ac_ct_CC"; then
9794 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9795echo "${ECHO_T}$ac_ct_CC" >&6
9796else
9797 echo "$as_me:$LINENO: result: no" >&5
9798echo "${ECHO_T}no" >&6
9799fi
9800
9801 CC=$ac_ct_CC
9802else
9803 CC="$ac_cv_prog_CC"
9804fi
9805
9806if test -z "$CC"; then
9807 if test -n "$ac_tool_prefix"; then
9808 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9809set dummy ${ac_tool_prefix}cc; ac_word=$2
9810echo "$as_me:$LINENO: checking for $ac_word" >&5
9811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9812if test "${ac_cv_prog_CC+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
9814else
9815 if test -n "$CC"; then
9816 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 9817else
e6cc62c6
VS
9818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9819for as_dir in $PATH
9820do
9821 IFS=$as_save_IFS
9822 test -z "$as_dir" && as_dir=.
9823 for ac_exec_ext in '' $ac_executable_extensions; do
9824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9825 ac_cv_prog_CC="${ac_tool_prefix}cc"
9826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9827 break 2
9828 fi
9829done
9830done
9831
10f2d63a 9832fi
6232543b 9833fi
e6cc62c6 9834CC=$ac_cv_prog_CC
6232543b 9835if test -n "$CC"; then
e6cc62c6
VS
9836 echo "$as_me:$LINENO: result: $CC" >&5
9837echo "${ECHO_T}$CC" >&6
9838else
9839 echo "$as_me:$LINENO: result: no" >&5
9840echo "${ECHO_T}no" >&6
9841fi
9842
9843fi
9844if test -z "$ac_cv_prog_CC"; then
9845 ac_ct_CC=$CC
9846 # Extract the first word of "cc", so it can be a program name with args.
9847set dummy cc; ac_word=$2
9848echo "$as_me:$LINENO: checking for $ac_word" >&5
9849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9850if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9851 echo $ECHO_N "(cached) $ECHO_C" >&6
9852else
9853 if test -n "$ac_ct_CC"; then
9854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9855else
9856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9857for as_dir in $PATH
9858do
9859 IFS=$as_save_IFS
9860 test -z "$as_dir" && as_dir=.
9861 for ac_exec_ext in '' $ac_executable_extensions; do
9862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9863 ac_cv_prog_ac_ct_CC="cc"
9864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9865 break 2
9866 fi
9867done
9868done
9869
9870fi
9871fi
9872ac_ct_CC=$ac_cv_prog_ac_ct_CC
9873if test -n "$ac_ct_CC"; then
9874 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9875echo "${ECHO_T}$ac_ct_CC" >&6
9876else
9877 echo "$as_me:$LINENO: result: no" >&5
9878echo "${ECHO_T}no" >&6
9879fi
9880
9881 CC=$ac_ct_CC
247f5006 9882else
e6cc62c6 9883 CC="$ac_cv_prog_CC"
247f5006
VZ
9884fi
9885
e6cc62c6 9886fi
5c6fa7d2
RR
9887if test -z "$CC"; then
9888 # Extract the first word of "cc", so it can be a program name with args.
9889set dummy cc; ac_word=$2
e6cc62c6
VS
9890echo "$as_me:$LINENO: checking for $ac_word" >&5
9891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9892if test "${ac_cv_prog_CC+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
9894else
9895 if test -n "$CC"; then
9896 ac_cv_prog_CC="$CC" # Let the user override the test.
9897else
9898 ac_prog_rejected=no
e6cc62c6
VS
9899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900for as_dir in $PATH
9901do
9902 IFS=$as_save_IFS
9903 test -z "$as_dir" && as_dir=.
9904 for ac_exec_ext in '' $ac_executable_extensions; do
9905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9907 ac_prog_rejected=yes
9908 continue
9909 fi
9910 ac_cv_prog_CC="cc"
9911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 break 2
9913 fi
9914done
9915done
9916
328a083c
RR
9917if test $ac_prog_rejected = yes; then
9918 # We found a bogon in the path, so make sure we never use it.
9919 set dummy $ac_cv_prog_CC
9920 shift
e6cc62c6 9921 if test $# != 0; then
328a083c 9922 # We chose a different compiler from the bogus one.
1e487827
VS
9923 # However, it has the same basename, so the bogon will be chosen
9924 # first if we set CC to just the basename; use the full file name.
9925 shift
e6cc62c6 9926 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 9927 fi
1e487827
VS
9928fi
9929fi
9930fi
e6cc62c6 9931CC=$ac_cv_prog_CC
1e487827 9932if test -n "$CC"; then
e6cc62c6
VS
9933 echo "$as_me:$LINENO: result: $CC" >&5
9934echo "${ECHO_T}$CC" >&6
703e0a69 9935else
e6cc62c6
VS
9936 echo "$as_me:$LINENO: result: no" >&5
9937echo "${ECHO_T}no" >&6
703e0a69 9938fi
1e487827 9939
e6cc62c6
VS
9940fi
9941if test -z "$CC"; then
9942 if test -n "$ac_tool_prefix"; then
9943 for ac_prog in cl
9944 do
9945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9947echo "$as_me:$LINENO: checking for $ac_word" >&5
9948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9949if test "${ac_cv_prog_CC+set}" = set; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
9951else
9952 if test -n "$CC"; then
9953 ac_cv_prog_CC="$CC" # Let the user override the test.
9954else
e6cc62c6
VS
9955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956for as_dir in $PATH
9957do
9958 IFS=$as_save_IFS
9959 test -z "$as_dir" && as_dir=.
9960 for ac_exec_ext in '' $ac_executable_extensions; do
9961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9962 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9964 break 2
9965 fi
9966done
9967done
9968
f09359cf
VS
9969fi
9970fi
e6cc62c6 9971CC=$ac_cv_prog_CC
f09359cf 9972if test -n "$CC"; then
e6cc62c6
VS
9973 echo "$as_me:$LINENO: result: $CC" >&5
9974echo "${ECHO_T}$CC" >&6
f09359cf 9975else
e6cc62c6
VS
9976 echo "$as_me:$LINENO: result: no" >&5
9977echo "${ECHO_T}no" >&6
5c6fa7d2 9978fi
1e487827 9979
e6cc62c6
VS
9980 test -n "$CC" && break
9981 done
9982fi
9983if test -z "$CC"; then
9984 ac_ct_CC=$CC
9985 for ac_prog in cl
9986do
9987 # Extract the first word of "$ac_prog", so it can be a program name with args.
9988set dummy $ac_prog; ac_word=$2
9989echo "$as_me:$LINENO: checking for $ac_word" >&5
9990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9991if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9993else
9994 if test -n "$ac_ct_CC"; then
9995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9996else
9997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998for as_dir in $PATH
9999do
10000 IFS=$as_save_IFS
10001 test -z "$as_dir" && as_dir=.
10002 for ac_exec_ext in '' $ac_executable_extensions; do
10003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10004 ac_cv_prog_ac_ct_CC="$ac_prog"
10005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10006 break 2
10007 fi
10008done
10009done
f09359cf 10010
e6cc62c6
VS
10011fi
10012fi
10013ac_ct_CC=$ac_cv_prog_ac_ct_CC
10014if test -n "$ac_ct_CC"; then
10015 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10016echo "${ECHO_T}$ac_ct_CC" >&6
10017else
10018 echo "$as_me:$LINENO: result: no" >&5
10019echo "${ECHO_T}no" >&6
10020fi
f09359cf 10021
e6cc62c6
VS
10022 test -n "$ac_ct_CC" && break
10023done
247f5006 10024
e6cc62c6
VS
10025 CC=$ac_ct_CC
10026fi
10027
10028fi
10029
10030
10031test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10032See \`config.log' for more details." >&5
10033echo "$as_me: error: no acceptable C compiler found in \$PATH
10034See \`config.log' for more details." >&2;}
10035 { (exit 1); exit 1; }; }
10036
10037# Provide some information about the compiler.
10038echo "$as_me:$LINENO:" \
10039 "checking for C compiler version" >&5
10040ac_compiler=`set X $ac_compile; echo $2`
10041{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10042 (eval $ac_compiler --version </dev/null >&5) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }
10046{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10047 (eval $ac_compiler -v </dev/null >&5) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }
10051{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10052 (eval $ac_compiler -V </dev/null >&5) 2>&5
10053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }
10056
10057cat >conftest.$ac_ext <<_ACEOF
10058#line $LINENO "configure"
10059/* confdefs.h. */
10060_ACEOF
10061cat confdefs.h >>conftest.$ac_ext
10062cat >>conftest.$ac_ext <<_ACEOF
10063/* end confdefs.h. */
10064
10065int
10066main ()
10067{
247f5006 10068
e6cc62c6
VS
10069 ;
10070 return 0;
10071}
10072_ACEOF
10073ac_clean_files_save=$ac_clean_files
10074ac_clean_files="$ac_clean_files a.out a.exe b.out"
10075# Try to create an executable without -o first, disregard a.out.
10076# It will help us diagnose broken compilers, and finding out an intuition
10077# of exeext.
10078echo "$as_me:$LINENO: checking for C compiler default output" >&5
10079echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10080ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10081if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10082 (eval $ac_link_default) 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; then
10086 # Find the output, starting from the most likely. This scheme is
10087# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10088# resort.
10089
10090# Be careful to initialize this variable, since it used to be cached.
10091# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10092ac_cv_exeext=
10093# b.out is created by i960 compilers.
10094for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10095do
10096 test -f "$ac_file" || continue
10097 case $ac_file in
10098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10099 ;;
10100 conftest.$ac_ext )
10101 # This is the source file.
10102 ;;
10103 [ab].out )
10104 # We found the default executable, but exeext='' is most
10105 # certainly right.
10106 break;;
10107 *.* )
10108 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10109 # FIXME: I believe we export ac_cv_exeext for Libtool,
10110 # but it would be cool to find out if it's true. Does anybody
10111 # maintain Libtool? --akim.
10112 export ac_cv_exeext
10113 break;;
10114 * )
10115 break;;
10116 esac
10117done
10118else
10119 echo "$as_me: failed program was:" >&5
10120sed 's/^/| /' conftest.$ac_ext >&5
10121
10122{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10123See \`config.log' for more details." >&5
10124echo "$as_me: error: C compiler cannot create executables
10125See \`config.log' for more details." >&2;}
10126 { (exit 77); exit 77; }; }
10127fi
10128
10129ac_exeext=$ac_cv_exeext
10130echo "$as_me:$LINENO: result: $ac_file" >&5
10131echo "${ECHO_T}$ac_file" >&6
10132
10133# Check the compiler produces executables we can run. If not, either
10134# the compiler is broken, or we cross compile.
10135echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10136echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10137# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10138# If not cross compiling, check that we can run a simple program.
10139if test "$cross_compiling" != yes; then
10140 if { ac_try='./$ac_file'
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10143 ac_status=$?
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; }; then
10146 cross_compiling=no
698dcdb6 10147 else
e6cc62c6
VS
10148 if test "$cross_compiling" = maybe; then
10149 cross_compiling=yes
10150 else
10151 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10152If you meant to cross compile, use \`--host'.
10153See \`config.log' for more details." >&5
10154echo "$as_me: error: cannot run C compiled programs.
10155If you meant to cross compile, use \`--host'.
10156See \`config.log' for more details." >&2;}
10157 { (exit 1); exit 1; }; }
10158 fi
698dcdb6 10159 fi
52127426 10160fi
e6cc62c6
VS
10161echo "$as_me:$LINENO: result: yes" >&5
10162echo "${ECHO_T}yes" >&6
10163
10164rm -f a.out a.exe conftest$ac_cv_exeext b.out
10165ac_clean_files=$ac_clean_files_save
10166# Check the compiler produces executables we can run. If not, either
10167# the compiler is broken, or we cross compile.
10168echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10169echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10170echo "$as_me:$LINENO: result: $cross_compiling" >&5
10171echo "${ECHO_T}$cross_compiling" >&6
10172
10173echo "$as_me:$LINENO: checking for suffix of executables" >&5
10174echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10176 (eval $ac_link) 2>&5
10177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; then
10180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10181# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10182# work properly (i.e., refer to `conftest.exe'), while it won't with
10183# `rm'.
10184for ac_file in conftest.exe conftest conftest.*; do
10185 test -f "$ac_file" || continue
10186 case $ac_file in
10187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10188 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10189 export ac_cv_exeext
10190 break;;
10191 * ) break;;
10192 esac
10193done
5c6fa7d2 10194else
e6cc62c6
VS
10195 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10196See \`config.log' for more details." >&5
10197echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10198See \`config.log' for more details." >&2;}
10199 { (exit 1); exit 1; }; }
10200fi
10201
10202rm -f conftest$ac_cv_exeext
10203echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10204echo "${ECHO_T}$ac_cv_exeext" >&6
10205
10206rm -f conftest.$ac_ext
10207EXEEXT=$ac_cv_exeext
10208ac_exeext=$EXEEXT
10209echo "$as_me:$LINENO: checking for suffix of object files" >&5
10210echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10211if test "${ac_cv_objext+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10213else
10214 cat >conftest.$ac_ext <<_ACEOF
10215#line $LINENO "configure"
10216/* confdefs.h. */
10217_ACEOF
10218cat confdefs.h >>conftest.$ac_ext
10219cat >>conftest.$ac_ext <<_ACEOF
10220/* end confdefs.h. */
10221
10222int
10223main ()
10224{
f09359cf 10225
e6cc62c6
VS
10226 ;
10227 return 0;
10228}
10229_ACEOF
10230rm -f conftest.o conftest.obj
10231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10232 (eval $ac_compile) 2>&5
10233 ac_status=$?
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); }; then
10236 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10237 case $ac_file in
10238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10239 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10240 break;;
10241 esac
10242done
a0b9e27f 10243else
e6cc62c6
VS
10244 echo "$as_me: failed program was:" >&5
10245sed 's/^/| /' conftest.$ac_ext >&5
10246
10247{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10248See \`config.log' for more details." >&5
10249echo "$as_me: error: cannot compute suffix of object files: cannot compile
10250See \`config.log' for more details." >&2;}
10251 { (exit 1); exit 1; }; }
a0b9e27f 10252fi
247f5006 10253
e6cc62c6
VS
10254rm -f conftest.$ac_cv_objext conftest.$ac_ext
10255fi
10256echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10257echo "${ECHO_T}$ac_cv_objext" >&6
10258OBJEXT=$ac_cv_objext
10259ac_objext=$OBJEXT
10260echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10261echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10262if test "${ac_cv_c_compiler_gnu+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10264else
e6cc62c6
VS
10265 cat >conftest.$ac_ext <<_ACEOF
10266#line $LINENO "configure"
10267/* confdefs.h. */
10268_ACEOF
10269cat confdefs.h >>conftest.$ac_ext
10270cat >>conftest.$ac_ext <<_ACEOF
10271/* end confdefs.h. */
10272
10273int
10274main ()
10275{
10276#ifndef __GNUC__
10277 choke me
10278#endif
10279
10280 ;
10281 return 0;
10282}
10283_ACEOF
10284rm -f conftest.$ac_objext
10285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10286 (eval $ac_compile) 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -s conftest.$ac_objext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 ac_compiler_gnu=yes
10297else
10298 echo "$as_me: failed program was:" >&5
10299sed 's/^/| /' conftest.$ac_ext >&5
10300
10301ac_compiler_gnu=no
10302fi
10303rm -f conftest.$ac_objext conftest.$ac_ext
10304ac_cv_c_compiler_gnu=$ac_compiler_gnu
10305
10306fi
10307echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10308echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10309GCC=`test $ac_compiler_gnu = yes && echo yes`
10310ac_test_CFLAGS=${CFLAGS+set}
10311ac_save_CFLAGS=$CFLAGS
10312CFLAGS="-g"
10313echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10314echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10315if test "${ac_cv_prog_cc_g+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10317else
10318 cat >conftest.$ac_ext <<_ACEOF
10319#line $LINENO "configure"
10320/* confdefs.h. */
10321_ACEOF
10322cat confdefs.h >>conftest.$ac_ext
10323cat >>conftest.$ac_ext <<_ACEOF
10324/* end confdefs.h. */
10325
10326int
10327main ()
10328{
10329
10330 ;
10331 return 0;
10332}
10333_ACEOF
10334rm -f conftest.$ac_objext
10335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10336 (eval $ac_compile) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } &&
10340 { ac_try='test -s conftest.$ac_objext'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; }; then
10f2d63a
VZ
10346 ac_cv_prog_cc_g=yes
10347else
e6cc62c6
VS
10348 echo "$as_me: failed program was:" >&5
10349sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10350
e6cc62c6 10351ac_cv_prog_cc_g=no
10f2d63a 10352fi
e6cc62c6
VS
10353rm -f conftest.$ac_objext conftest.$ac_ext
10354fi
10355echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10356echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10357if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10358 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10359elif test $ac_cv_prog_cc_g = yes; then
10360 if test "$GCC" = yes; then
10f2d63a
VZ
10361 CFLAGS="-g -O2"
10362 else
f09359cf 10363 CFLAGS="-g"
10f2d63a 10364 fi
5c0a20c3 10365else
f09359cf
VS
10366 if test "$GCC" = yes; then
10367 CFLAGS="-O2"
10368 else
10369 CFLAGS=
10370 fi
10f2d63a 10371fi
e6cc62c6
VS
10372echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10373echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10374if test "${ac_cv_prog_cc_stdc+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10376else
10377 ac_cv_prog_cc_stdc=no
10378ac_save_CC=$CC
10379cat >conftest.$ac_ext <<_ACEOF
10380#line $LINENO "configure"
10381/* confdefs.h. */
10382_ACEOF
10383cat confdefs.h >>conftest.$ac_ext
10384cat >>conftest.$ac_ext <<_ACEOF
10385/* end confdefs.h. */
10386#include <stdarg.h>
10387#include <stdio.h>
10388#include <sys/types.h>
10389#include <sys/stat.h>
10390/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10391struct buf { int x; };
10392FILE * (*rcsopen) (struct buf *, struct stat *, int);
10393static char *e (p, i)
10394 char **p;
10395 int i;
10396{
10397 return p[i];
10398}
10399static char *f (char * (*g) (char **, int), char **p, ...)
10400{
10401 char *s;
10402 va_list v;
10403 va_start (v,p);
10404 s = g (p, va_arg (v,int));
10405 va_end (v);
10406 return s;
10407}
10408int test (int i, double x);
10409struct s1 {int (*f) (int a);};
10410struct s2 {int (*f) (double a);};
10411int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10412int argc;
10413char **argv;
10414int
10415main ()
10416{
10417return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10418 ;
10419 return 0;
10420}
10421_ACEOF
10422# Don't try gcc -ansi; that turns off useful extensions and
10423# breaks some systems' header files.
10424# AIX -qlanglvl=ansi
10425# Ultrix and OSF/1 -std1
10426# HP-UX 10.20 and later -Ae
10427# HP-UX older versions -Aa -D_HPUX_SOURCE
10428# SVR4 -Xc -D__EXTENSIONS__
10429for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10430do
10431 CC="$ac_save_CC $ac_arg"
10432 rm -f conftest.$ac_objext
10433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10434 (eval $ac_compile) 2>&5
10435 ac_status=$?
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } &&
10438 { ac_try='test -s conftest.$ac_objext'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }; then
10444 ac_cv_prog_cc_stdc=$ac_arg
10445break
10446else
10447 echo "$as_me: failed program was:" >&5
10448sed 's/^/| /' conftest.$ac_ext >&5
10449
10450fi
10451rm -f conftest.$ac_objext
10452done
10453rm -f conftest.$ac_ext conftest.$ac_objext
10454CC=$ac_save_CC
10455
10456fi
10457
10458case "x$ac_cv_prog_cc_stdc" in
10459 x|xno)
10460 echo "$as_me:$LINENO: result: none needed" >&5
10461echo "${ECHO_T}none needed" >&6 ;;
10462 *)
10463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10464echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10465 CC="$CC $ac_cv_prog_cc_stdc" ;;
10466esac
10467
10468# Some people use a C++ compiler to compile C. Since we use `exit',
10469# in C++ we need to declare it. In case someone uses the same compiler
10470# for both compiling C and C++ we need to have the C++ compiler decide
10471# the declaration of exit, since it's the most demanding environment.
10472cat >conftest.$ac_ext <<_ACEOF
10473#ifndef __cplusplus
10474 choke me
10475#endif
10476_ACEOF
10477rm -f conftest.$ac_objext
10478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10479 (eval $ac_compile) 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -s conftest.$ac_objext'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; }; then
10489 for ac_declaration in \
6f628073
VS
10490 ''\
10491 '#include <stdlib.h>' \
e6cc62c6
VS
10492 'extern "C" void std::exit (int) throw (); using std::exit;' \
10493 'extern "C" void std::exit (int); using std::exit;' \
10494 'extern "C" void exit (int) throw ();' \
10495 'extern "C" void exit (int);' \
10496 'void exit (int);'
10497do
10498 cat >conftest.$ac_ext <<_ACEOF
10499#line $LINENO "configure"
10500/* confdefs.h. */
10501_ACEOF
10502cat confdefs.h >>conftest.$ac_ext
10503cat >>conftest.$ac_ext <<_ACEOF
10504/* end confdefs.h. */
71e83a03 10505#include <stdlib.h>
6f628073 10506$ac_declaration
e6cc62c6
VS
10507int
10508main ()
10509{
10510exit (42);
10511 ;
10512 return 0;
10513}
10514_ACEOF
10515rm -f conftest.$ac_objext
10516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10517 (eval $ac_compile) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } &&
10521 { ac_try='test -s conftest.$ac_objext'
10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10524 ac_status=$?
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
10527 :
10528else
10529 echo "$as_me: failed program was:" >&5
10530sed 's/^/| /' conftest.$ac_ext >&5
10531
10532continue
10533fi
10534rm -f conftest.$ac_objext conftest.$ac_ext
10535 cat >conftest.$ac_ext <<_ACEOF
10536#line $LINENO "configure"
10537/* confdefs.h. */
10538_ACEOF
10539cat confdefs.h >>conftest.$ac_ext
10540cat >>conftest.$ac_ext <<_ACEOF
10541/* end confdefs.h. */
10542$ac_declaration
10543int
10544main ()
10545{
10546exit (42);
10547 ;
10548 return 0;
10549}
10550_ACEOF
10551rm -f conftest.$ac_objext
10552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10553 (eval $ac_compile) 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
10557 { ac_try='test -s conftest.$ac_objext'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 break
10564else
10565 echo "$as_me: failed program was:" >&5
10566sed 's/^/| /' conftest.$ac_ext >&5
10567
10568fi
10569rm -f conftest.$ac_objext conftest.$ac_ext
10570done
10571rm -f conftest*
10572if test -n "$ac_declaration"; then
10573 echo '#ifdef __cplusplus' >>confdefs.h
10574 echo $ac_declaration >>confdefs.h
10575 echo '#endif' >>confdefs.h
10576fi
10577
10578else
10579 echo "$as_me: failed program was:" >&5
10580sed 's/^/| /' conftest.$ac_ext >&5
10581
10582fi
10583rm -f conftest.$ac_objext conftest.$ac_ext
10584ac_ext=c
10585ac_cpp='$CPP $CPPFLAGS'
10586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10588ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10589
10590
e6cc62c6
VS
10591
10592ac_ext=c
10593ac_cpp='$CPP $CPPFLAGS'
10594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10596ac_compiler_gnu=$ac_cv_c_compiler_gnu
10597echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10598echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10599# On Suns, sometimes $CPP names a directory.
10600if test -n "$CPP" && test -d "$CPP"; then
10601 CPP=
10602fi
10603if test -z "$CPP"; then
e6cc62c6
VS
10604 if test "${ac_cv_prog_CPP+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10606else
10607 # Double quotes because CPP needs to be expanded
10608 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10609 do
10610 ac_preproc_ok=false
10611for ac_c_preproc_warn_flag in '' yes
10612do
10613 # Use a header file that comes with gcc, so configuring glibc
10614 # with a fresh cross-compiler works.
10615 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10616 # <limits.h> exists even on freestanding compilers.
10f2d63a 10617 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10618 # not just through cpp. "Syntax error" is here to catch this case.
10619 cat >conftest.$ac_ext <<_ACEOF
10620#line $LINENO "configure"
10621/* confdefs.h. */
10622_ACEOF
10623cat confdefs.h >>conftest.$ac_ext
10624cat >>conftest.$ac_ext <<_ACEOF
10625/* end confdefs.h. */
10626#ifdef __STDC__
10627# include <limits.h>
10628#else
10629# include <assert.h>
10630#endif
10631 Syntax error
10632_ACEOF
10633if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10634 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10635 ac_status=$?
10636 grep -v '^ *+' conftest.er1 >conftest.err
10637 rm -f conftest.er1
10638 cat conftest.err >&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); } >/dev/null; then
10641 if test -s conftest.err; then
10642 ac_cpp_err=$ac_c_preproc_warn_flag
10643 else
10644 ac_cpp_err=
10645 fi
10f2d63a 10646else
e6cc62c6
VS
10647 ac_cpp_err=yes
10648fi
10649if test -z "$ac_cpp_err"; then
a0b9e27f 10650 :
247f5006 10651else
e6cc62c6
VS
10652 echo "$as_me: failed program was:" >&5
10653sed 's/^/| /' conftest.$ac_ext >&5
10654
10655 # Broken: fails on valid input.
10656continue
10657fi
10658rm -f conftest.err conftest.$ac_ext
10659
10660 # OK, works on sane cases. Now check whether non-existent headers
10661 # can be detected and how.
10662 cat >conftest.$ac_ext <<_ACEOF
10663#line $LINENO "configure"
10664/* confdefs.h. */
10665_ACEOF
10666cat confdefs.h >>conftest.$ac_ext
10667cat >>conftest.$ac_ext <<_ACEOF
10668/* end confdefs.h. */
10669#include <ac_nonexistent.h>
10670_ACEOF
10671if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10673 ac_status=$?
10674 grep -v '^ *+' conftest.er1 >conftest.err
10675 rm -f conftest.er1
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } >/dev/null; then
10679 if test -s conftest.err; then
10680 ac_cpp_err=$ac_c_preproc_warn_flag
10681 else
10682 ac_cpp_err=
10683 fi
10f2d63a 10684else
e6cc62c6 10685 ac_cpp_err=yes
579d8138 10686fi
e6cc62c6
VS
10687if test -z "$ac_cpp_err"; then
10688 # Broken: success on invalid input.
10689continue
10690else
10691 echo "$as_me: failed program was:" >&5
10692sed 's/^/| /' conftest.$ac_ext >&5
10693
10694 # Passes both tests.
10695ac_preproc_ok=:
10696break
52127426 10697fi
e6cc62c6
VS
10698rm -f conftest.err conftest.$ac_ext
10699
10700done
10701# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10702rm -f conftest.err conftest.$ac_ext
10703if $ac_preproc_ok; then
10704 break
8284b0c5 10705fi
e6cc62c6
VS
10706
10707 done
10708 ac_cv_prog_CPP=$CPP
10709
10710fi
10711 CPP=$ac_cv_prog_CPP
10712else
10713 ac_cv_prog_CPP=$CPP
10714fi
10715echo "$as_me:$LINENO: result: $CPP" >&5
10716echo "${ECHO_T}$CPP" >&6
10717ac_preproc_ok=false
10718for ac_c_preproc_warn_flag in '' yes
10719do
10720 # Use a header file that comes with gcc, so configuring glibc
10721 # with a fresh cross-compiler works.
10722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10723 # <limits.h> exists even on freestanding compilers.
10724 # On the NeXT, cc -E runs the code through the compiler's parser,
10725 # not just through cpp. "Syntax error" is here to catch this case.
10726 cat >conftest.$ac_ext <<_ACEOF
10727#line $LINENO "configure"
10728/* confdefs.h. */
10729_ACEOF
10730cat confdefs.h >>conftest.$ac_ext
10731cat >>conftest.$ac_ext <<_ACEOF
10732/* end confdefs.h. */
10733#ifdef __STDC__
10734# include <limits.h>
10735#else
10736# include <assert.h>
10737#endif
10738 Syntax error
10739_ACEOF
10740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10742 ac_status=$?
10743 grep -v '^ *+' conftest.er1 >conftest.err
10744 rm -f conftest.er1
10745 cat conftest.err >&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } >/dev/null; then
10748 if test -s conftest.err; then
10749 ac_cpp_err=$ac_c_preproc_warn_flag
10750 else
10751 ac_cpp_err=
10752 fi
10753else
10754 ac_cpp_err=yes
10755fi
10756if test -z "$ac_cpp_err"; then
10757 :
10758else
10759 echo "$as_me: failed program was:" >&5
10760sed 's/^/| /' conftest.$ac_ext >&5
10761
10762 # Broken: fails on valid input.
10763continue
10764fi
10765rm -f conftest.err conftest.$ac_ext
10766
10767 # OK, works on sane cases. Now check whether non-existent headers
10768 # can be detected and how.
10769 cat >conftest.$ac_ext <<_ACEOF
10770#line $LINENO "configure"
10771/* confdefs.h. */
10772_ACEOF
10773cat confdefs.h >>conftest.$ac_ext
10774cat >>conftest.$ac_ext <<_ACEOF
10775/* end confdefs.h. */
10776#include <ac_nonexistent.h>
10777_ACEOF
10778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10780 ac_status=$?
10781 grep -v '^ *+' conftest.er1 >conftest.err
10782 rm -f conftest.er1
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } >/dev/null; then
10786 if test -s conftest.err; then
10787 ac_cpp_err=$ac_c_preproc_warn_flag
10788 else
10789 ac_cpp_err=
10790 fi
10791else
10792 ac_cpp_err=yes
10793fi
10794if test -z "$ac_cpp_err"; then
10795 # Broken: success on invalid input.
10796continue
10797else
10798 echo "$as_me: failed program was:" >&5
10799sed 's/^/| /' conftest.$ac_ext >&5
10800
10801 # Passes both tests.
10802ac_preproc_ok=:
10803break
a0b9e27f 10804fi
e6cc62c6
VS
10805rm -f conftest.err conftest.$ac_ext
10806
10807done
10808# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10809rm -f conftest.err conftest.$ac_ext
10810if $ac_preproc_ok; then
10811 :
10812else
10813 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10814See \`config.log' for more details." >&5
10815echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10816See \`config.log' for more details." >&2;}
10817 { (exit 1); exit 1; }; }
10818fi
10819
10820ac_ext=c
10821ac_cpp='$CPP $CPPFLAGS'
10822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10824ac_compiler_gnu=$ac_cv_c_compiler_gnu
10825
10826
10827echo "$as_me:$LINENO: checking for egrep" >&5
10828echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10829if test "${ac_cv_prog_egrep+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 10831else
e6cc62c6
VS
10832 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10833 then ac_cv_prog_egrep='grep -E'
10834 else ac_cv_prog_egrep='egrep'
10835 fi
10f2d63a 10836fi
e6cc62c6
VS
10837echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10838echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10839 EGREP=$ac_cv_prog_egrep
10840
10f2d63a 10841
e6cc62c6
VS
10842if test $ac_cv_c_compiler_gnu = yes; then
10843 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10844echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10845if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10847else
10848 ac_pattern="Autoconf.*'x'"
e6cc62c6
VS
10849 cat >conftest.$ac_ext <<_ACEOF
10850#line $LINENO "configure"
10851/* confdefs.h. */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
10855/* end confdefs.h. */
10f2d63a
VZ
10856#include <sgtty.h>
10857Autoconf TIOCGETP
e6cc62c6 10858_ACEOF
10f2d63a 10859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10860 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10861 ac_cv_prog_gcc_traditional=yes
10862else
10f2d63a
VZ
10863 ac_cv_prog_gcc_traditional=no
10864fi
10865rm -f conftest*
10866
8284b0c5 10867
10f2d63a 10868 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6
VS
10869 cat >conftest.$ac_ext <<_ACEOF
10870#line $LINENO "configure"
10871/* confdefs.h. */
10872_ACEOF
10873cat confdefs.h >>conftest.$ac_ext
10874cat >>conftest.$ac_ext <<_ACEOF
10875/* end confdefs.h. */
10f2d63a
VZ
10876#include <termio.h>
10877Autoconf TCGETA
e6cc62c6 10878_ACEOF
10f2d63a 10879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 10880 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
10881 ac_cv_prog_gcc_traditional=yes
10882fi
10883rm -f conftest*
10884
10885 fi
10886fi
e6cc62c6
VS
10887echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10888echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
10889 if test $ac_cv_prog_gcc_traditional = yes; then
10890 CC="$CC -traditional"
10891 fi
10892fi
10893
8284b0c5
MB
10894
10895
e6cc62c6
VS
10896
10897ac_ext=cc
1e487827 10898ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
10899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 10902
698dcdb6 10903
ec603395 10904CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
10905ac_ext=cc
10906ac_cpp='$CXXCPP $CPPFLAGS'
10907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10910if test -n "$ac_tool_prefix"; then
10911 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10912 do
10913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10914set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10915echo "$as_me:$LINENO: checking for $ac_word" >&5
10916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10917if test "${ac_cv_prog_CXX+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
10919else
10920 if test -n "$CXX"; then
10921 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10922else
e6cc62c6
VS
10923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924for as_dir in $PATH
10925do
10926 IFS=$as_save_IFS
10927 test -z "$as_dir" && as_dir=.
10928 for ac_exec_ext in '' $ac_executable_extensions; do
10929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10930 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10932 break 2
10933 fi
10934done
10935done
10936
10f2d63a
VZ
10937fi
10938fi
e6cc62c6 10939CXX=$ac_cv_prog_CXX
10f2d63a 10940if test -n "$CXX"; then
e6cc62c6
VS
10941 echo "$as_me:$LINENO: result: $CXX" >&5
10942echo "${ECHO_T}$CXX" >&6
10f2d63a 10943else
e6cc62c6
VS
10944 echo "$as_me:$LINENO: result: no" >&5
10945echo "${ECHO_T}no" >&6
10f2d63a
VZ
10946fi
10947
e6cc62c6
VS
10948 test -n "$CXX" && break
10949 done
10950fi
10951if test -z "$CXX"; then
10952 ac_ct_CXX=$CXX
10953 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10954do
10955 # Extract the first word of "$ac_prog", so it can be a program name with args.
10956set dummy $ac_prog; ac_word=$2
10957echo "$as_me:$LINENO: checking for $ac_word" >&5
10958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10959if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961else
10962 if test -n "$ac_ct_CXX"; then
10963 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10964else
10965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10966for as_dir in $PATH
10967do
10968 IFS=$as_save_IFS
10969 test -z "$as_dir" && as_dir=.
10970 for ac_exec_ext in '' $ac_executable_extensions; do
10971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10972 ac_cv_prog_ac_ct_CXX="$ac_prog"
10973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10974 break 2
10975 fi
10976done
10f2d63a 10977done
a0b9e27f 10978
8284b0c5 10979fi
a0b9e27f 10980fi
e6cc62c6
VS
10981ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10982if test -n "$ac_ct_CXX"; then
10983 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10984echo "${ECHO_T}$ac_ct_CXX" >&6
10985else
10986 echo "$as_me:$LINENO: result: no" >&5
10987echo "${ECHO_T}no" >&6
a0b9e27f 10988fi
10f2d63a 10989
e6cc62c6
VS
10990 test -n "$ac_ct_CXX" && break
10991done
10992test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
10993
10994 CXX=$ac_ct_CXX
10995fi
10996
10997
10998# Provide some information about the compiler.
10999echo "$as_me:$LINENO:" \
11000 "checking for C++ compiler version" >&5
11001ac_compiler=`set X $ac_compile; echo $2`
11002{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11003 (eval $ac_compiler --version </dev/null >&5) 2>&5
11004 ac_status=$?
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }
11007{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11008 (eval $ac_compiler -v </dev/null >&5) 2>&5
11009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }
11012{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11013 (eval $ac_compiler -V </dev/null >&5) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }
11017
11018echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11019echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11020if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11022else
11023 cat >conftest.$ac_ext <<_ACEOF
11024#line $LINENO "configure"
11025/* confdefs.h. */
11026_ACEOF
11027cat confdefs.h >>conftest.$ac_ext
11028cat >>conftest.$ac_ext <<_ACEOF
11029/* end confdefs.h. */
11030
11031int
11032main ()
11033{
11034#ifndef __GNUC__
11035 choke me
11036#endif
10f2d63a 11037
e6cc62c6
VS
11038 ;
11039 return 0;
11040}
11041_ACEOF
11042rm -f conftest.$ac_objext
11043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044 (eval $ac_compile) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } &&
11048 { ac_try='test -s conftest.$ac_objext'
11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050 (eval $ac_try) 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; }; then
11054 ac_compiler_gnu=yes
11055else
11056 echo "$as_me: failed program was:" >&5
11057sed 's/^/| /' conftest.$ac_ext >&5
11058
11059ac_compiler_gnu=no
11060fi
11061rm -f conftest.$ac_objext conftest.$ac_ext
11062ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11063
11064fi
11065echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11066echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11067GXX=`test $ac_compiler_gnu = yes && echo yes`
11068ac_test_CXXFLAGS=${CXXFLAGS+set}
11069ac_save_CXXFLAGS=$CXXFLAGS
11070CXXFLAGS="-g"
11071echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11072echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11073if test "${ac_cv_prog_cxx_g+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11075else
11076 cat >conftest.$ac_ext <<_ACEOF
11077#line $LINENO "configure"
11078/* confdefs.h. */
11079_ACEOF
11080cat confdefs.h >>conftest.$ac_ext
11081cat >>conftest.$ac_ext <<_ACEOF
11082/* end confdefs.h. */
11083
11084int
11085main ()
11086{
f09359cf 11087
e6cc62c6
VS
11088 ;
11089 return 0;
11090}
11091_ACEOF
11092rm -f conftest.$ac_objext
11093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11094 (eval $ac_compile) 2>&5
11095 ac_status=$?
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } &&
11098 { ac_try='test -s conftest.$ac_objext'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
10f2d63a
VZ
11104 ac_cv_prog_cxx_g=yes
11105else
e6cc62c6
VS
11106 echo "$as_me: failed program was:" >&5
11107sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11108
e6cc62c6 11109ac_cv_prog_cxx_g=no
10f2d63a 11110fi
e6cc62c6
VS
11111rm -f conftest.$ac_objext conftest.$ac_ext
11112fi
11113echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11114echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11115if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11116 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11117elif test $ac_cv_prog_cxx_g = yes; then
11118 if test "$GXX" = yes; then
10f2d63a
VZ
11119 CXXFLAGS="-g -O2"
11120 else
f09359cf 11121 CXXFLAGS="-g"
10f2d63a 11122 fi
5c0a20c3 11123else
f09359cf
VS
11124 if test "$GXX" = yes; then
11125 CXXFLAGS="-O2"
11126 else
11127 CXXFLAGS=
11128 fi
10f2d63a 11129fi
e6cc62c6 11130for ac_declaration in \
6f628073
VS
11131 ''\
11132 '#include <stdlib.h>' \
e6cc62c6
VS
11133 'extern "C" void std::exit (int) throw (); using std::exit;' \
11134 'extern "C" void std::exit (int); using std::exit;' \
11135 'extern "C" void exit (int) throw ();' \
11136 'extern "C" void exit (int);' \
11137 'void exit (int);'
11138do
11139 cat >conftest.$ac_ext <<_ACEOF
11140#line $LINENO "configure"
11141/* confdefs.h. */
11142_ACEOF
11143cat confdefs.h >>conftest.$ac_ext
11144cat >>conftest.$ac_ext <<_ACEOF
11145/* end confdefs.h. */
71e83a03 11146#include <stdlib.h>
6f628073 11147$ac_declaration
e6cc62c6
VS
11148int
11149main ()
11150{
11151exit (42);
11152 ;
11153 return 0;
11154}
11155_ACEOF
11156rm -f conftest.$ac_objext
11157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11158 (eval $ac_compile) 2>&5
11159 ac_status=$?
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } &&
11162 { ac_try='test -s conftest.$ac_objext'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11165 ac_status=$?
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 :
11169else
11170 echo "$as_me: failed program was:" >&5
11171sed 's/^/| /' conftest.$ac_ext >&5
11172
11173continue
11174fi
11175rm -f conftest.$ac_objext conftest.$ac_ext
11176 cat >conftest.$ac_ext <<_ACEOF
11177#line $LINENO "configure"
11178/* confdefs.h. */
11179_ACEOF
11180cat confdefs.h >>conftest.$ac_ext
11181cat >>conftest.$ac_ext <<_ACEOF
11182/* end confdefs.h. */
11183$ac_declaration
11184int
11185main ()
11186{
11187exit (42);
11188 ;
11189 return 0;
11190}
11191_ACEOF
11192rm -f conftest.$ac_objext
11193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11194 (eval $ac_compile) 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } &&
11198 { ac_try='test -s conftest.$ac_objext'
11199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11201 ac_status=$?
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; }; then
11204 break
11205else
11206 echo "$as_me: failed program was:" >&5
11207sed 's/^/| /' conftest.$ac_ext >&5
11208
11209fi
11210rm -f conftest.$ac_objext conftest.$ac_ext
11211done
11212rm -f conftest*
11213if test -n "$ac_declaration"; then
11214 echo '#ifdef __cplusplus' >>confdefs.h
11215 echo $ac_declaration >>confdefs.h
11216 echo '#endif' >>confdefs.h
11217fi
11218
11219ac_ext=cc
11220ac_cpp='$CXXCPP $CPPFLAGS'
11221ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11222ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11223ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11224
11225
10f2d63a 11226ac_ext=c
10f2d63a 11227ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11230ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11231
11232
e6cc62c6
VS
11233if test -n "$ac_tool_prefix"; then
11234 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11235set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11236echo "$as_me:$LINENO: checking for $ac_word" >&5
11237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11238if test "${ac_cv_prog_RANLIB+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11240else
11241 if test -n "$RANLIB"; then
11242 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11243else
e6cc62c6
VS
11244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245for as_dir in $PATH
11246do
11247 IFS=$as_save_IFS
11248 test -z "$as_dir" && as_dir=.
11249 for ac_exec_ext in '' $ac_executable_extensions; do
11250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11251 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11253 break 2
11254 fi
11255done
11256done
11257
10f2d63a
VZ
11258fi
11259fi
e6cc62c6 11260RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11261if test -n "$RANLIB"; then
e6cc62c6
VS
11262 echo "$as_me:$LINENO: result: $RANLIB" >&5
11263echo "${ECHO_T}$RANLIB" >&6
11264else
11265 echo "$as_me:$LINENO: result: no" >&5
11266echo "${ECHO_T}no" >&6
11267fi
11268
11269fi
11270if test -z "$ac_cv_prog_RANLIB"; then
11271 ac_ct_RANLIB=$RANLIB
11272 # Extract the first word of "ranlib", so it can be a program name with args.
11273set dummy ranlib; ac_word=$2
11274echo "$as_me:$LINENO: checking for $ac_word" >&5
11275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11276if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11278else
e6cc62c6
VS
11279 if test -n "$ac_ct_RANLIB"; then
11280 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11281else
11282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283for as_dir in $PATH
11284do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11289 ac_cv_prog_ac_ct_RANLIB="ranlib"
11290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11291 break 2
11292 fi
11293done
11294done
11295
11296 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11297fi
11298fi
11299ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11300if test -n "$ac_ct_RANLIB"; then
11301 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11302echo "${ECHO_T}$ac_ct_RANLIB" >&6
11303else
11304 echo "$as_me:$LINENO: result: no" >&5
11305echo "${ECHO_T}no" >&6
11306fi
11307
11308 RANLIB=$ac_ct_RANLIB
11309else
11310 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11311fi
11312
10f2d63a
VZ
11313
11314# Extract the first word of "ar", so it can be a program name with args.
11315set dummy ar; ac_word=$2
e6cc62c6
VS
11316echo "$as_me:$LINENO: checking for $ac_word" >&5
11317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11318if test "${ac_cv_prog_AR+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11320else
11321 if test -n "$AR"; then
11322 ac_cv_prog_AR="$AR" # Let the user override the test.
11323else
e6cc62c6
VS
11324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325for as_dir in $PATH
11326do
11327 IFS=$as_save_IFS
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11331 ac_cv_prog_AR="ar"
11332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11333 break 2
11334 fi
11335done
11336done
11337
10f2d63a
VZ
11338fi
11339fi
e6cc62c6 11340AR=$ac_cv_prog_AR
10f2d63a 11341if test -n "$AR"; then
e6cc62c6
VS
11342 echo "$as_me:$LINENO: result: $AR" >&5
11343echo "${ECHO_T}$AR" >&6
10f2d63a 11344else
e6cc62c6
VS
11345 echo "$as_me:$LINENO: result: no" >&5
11346echo "${ECHO_T}no" >&6
10f2d63a
VZ
11347fi
11348
911740e7
VS
11349if test "x$AR" = "x" ; then
11350 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11351echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11352 { (exit 1); exit 1; }; }
11353fi
8284b0c5 11354
6054113a 11355# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11356# so one script is as good as another. But avoid the broken or
11357# incompatible versions:
11358# SysV /etc/install, /usr/sbin/install
11359# SunOS /usr/etc/install
11360# IRIX /sbin/install
11361# AIX /bin/install
e6cc62c6 11362# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11363# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11364# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11365# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11366# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11367echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11368echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11369if test -z "$INSTALL"; then
e6cc62c6
VS
11370if test "${ac_cv_path_install+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11372else
11373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374for as_dir in $PATH
11375do
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 # Account for people who put trailing slashes in PATH elements.
11379case $as_dir/ in
11380 ./ | .// | /cC/* | \
11381 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11382 /usr/ucb/* ) ;;
11383 *)
11384 # OSF1 and SCO ODT 3.0 have their own names for install.
11385 # Don't use installbsd from OSF since it installs stuff as root
11386 # by default.
11387 for ac_prog in ginstall scoinst install; do
11388 for ac_exec_ext in '' $ac_executable_extensions; do
11389 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11390 if test $ac_prog = install &&
11391 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11392 # AIX install. It has an incompatible calling convention.
11393 :
11394 elif test $ac_prog = install &&
11395 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11396 # program-specific install script used by HP pwplus--don't use.
11397 :
11398 else
11399 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11400 break 3
11401 fi
11402 fi
10f2d63a 11403 done
e6cc62c6
VS
11404 done
11405 ;;
11406esac
11407done
11408
10f2d63a
VZ
11409
11410fi
11411 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11412 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11413 else
11414 # As a last resort, use the slow shell script. We don't cache a
11415 # path for INSTALL within a source directory, because that will
11416 # break other packages using the cache if that directory is
11417 # removed, or if the path is relative.
e6cc62c6 11418 INSTALL=$ac_install_sh
10f2d63a
VZ
11419 fi
11420fi
e6cc62c6
VS
11421echo "$as_me:$LINENO: result: $INSTALL" >&5
11422echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11423
11424# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11425# It thinks the first close brace ends the variable substitution.
11426test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11427
e6cc62c6 11428test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11429
10f2d63a
VZ
11430test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11431
8284b0c5 11432
1d1b75ac
VZ
11433case ${INSTALL} in
11434 /* ) # Absolute
11435 ;;
4f5a7f74
VZ
11436 ?:* ) # Drive letter, considered as absolute.
11437 ;;
3bd8fb5f 11438 *)
1d1b75ac
VZ
11439 INSTALL=`pwd`/${INSTALL} ;;
11440esac
11441
4f5a7f74
VZ
11442case ${host} in
11443 *-hp-hpux* )
11444 INSTALL_DIR="mkdir"
11445 ;;
11446
11447 *) INSTALL_DIR="$INSTALL -d"
11448 ;;
11449esac
11450
8284b0c5 11451
6054113a
GD
11452case "${host}" in
11453
b5853384 11454 powerpc-*-darwin* )
eb99ae0b
GD
11455 INSTALL_PROGRAM="cp -fp"
11456 INSTALL_DATA="cp -fp"
6054113a
GD
11457 ;;
11458 *)
11459 ;;
d6853540 11460esac
698dcdb6 11461
10f2d63a
VZ
11462# Extract the first word of "strip", so it can be a program name with args.
11463set dummy strip; ac_word=$2
e6cc62c6
VS
11464echo "$as_me:$LINENO: checking for $ac_word" >&5
11465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11466if test "${ac_cv_prog_STRIP+set}" = set; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11468else
11469 if test -n "$STRIP"; then
11470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11471else
e6cc62c6
VS
11472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473for as_dir in $PATH
11474do
11475 IFS=$as_save_IFS
11476 test -z "$as_dir" && as_dir=.
11477 for ac_exec_ext in '' $ac_executable_extensions; do
11478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11479 ac_cv_prog_STRIP="strip"
11480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 break 2
11482 fi
11483done
11484done
11485
10f2d63a
VZ
11486 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11487fi
11488fi
e6cc62c6 11489STRIP=$ac_cv_prog_STRIP
10f2d63a 11490if test -n "$STRIP"; then
e6cc62c6
VS
11491 echo "$as_me:$LINENO: result: $STRIP" >&5
11492echo "${ECHO_T}$STRIP" >&6
10f2d63a 11493else
e6cc62c6
VS
11494 echo "$as_me:$LINENO: result: no" >&5
11495echo "${ECHO_T}no" >&6
10f2d63a
VZ
11496fi
11497
5c6fa7d2 11498
e6cc62c6
VS
11499echo "$as_me:$LINENO: checking if make is GNU make" >&5
11500echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11501if test "${wx_cv_prog_makeisgnu+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11503else
e6cc62c6 11504
414eab6d 11505 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11506 egrep -s GNU > /dev/null); then
414eab6d
VZ
11507 wx_cv_prog_makeisgnu="yes"
11508 else
11509 wx_cv_prog_makeisgnu="no"
11510 fi
11511
11512fi
e6cc62c6
VS
11513echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11514echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11515
11516if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11517 IF_GNU_MAKE=""
11518else
11519 IF_GNU_MAKE="#"
11520fi
11521
8284b0c5
MB
11522
11523
414eab6d 11524if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11525echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11526echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11527if test "${wx_cv_prog_makevpath+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11529else
e6cc62c6 11530
10f2d63a
VZ
11531cat - << EOF > confMake
11532check : file
11533 cp \$? \$@
11534 cp \$? final_file
11535EOF
11536
11537if test ! -d sub ; then
11538 mkdir sub
11539fi
11540echo dummy > sub/file
f6bcfd97 11541${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11542RESULT=$?
11543rm -f sub/file check final_file confMake
11544rmdir sub
11545if test "$RESULT" = 0; then
04e7a216 11546 wx_cv_prog_makevpath="yes"
10f2d63a 11547else
04e7a216
VZ
11548 wx_cv_prog_makevpath="no"
11549fi
11550
11551fi
e6cc62c6
VS
11552echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11553echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11554
11555if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11556{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11557You need a make-utility that is able to use the variable
11558VPATH correctly.
11559If your version of make does not support VPATH correctly,
11560please install GNU-make (possibly as gmake), and start
11561configure with the following command:
11562export MAKE=gmake; ./configure for sh-type shells
11563setenv MAKE gmake; ./configure for csh-type shells
11564Also please do remember to use gmake in this case every time
11565you are trying to compile.
e6cc62c6
VS
11566" >&5
11567echo "$as_me: error:
11568You need a make-utility that is able to use the variable
11569VPATH correctly.
11570If your version of make does not support VPATH correctly,
11571please install GNU-make (possibly as gmake), and start
11572configure with the following command:
11573export MAKE=gmake; ./configure for sh-type shells
11574setenv MAKE gmake; ./configure for csh-type shells
11575Also please do remember to use gmake in this case every time
11576you are trying to compile.
11577" >&2;}
11578 { (exit 1); exit 1; }; }
11579fi fi
e6cc62c6
VS
11580echo "$as_me:$LINENO: checking whether ln -s works" >&5
11581echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11582LN_S=$as_ln_s
11583if test "$LN_S" = "ln -s"; then
11584 echo "$as_me:$LINENO: result: yes" >&5
11585echo "${ECHO_T}yes" >&6
10f2d63a 11586else
e6cc62c6
VS
11587 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11588echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11589fi
5c6fa7d2 11590
247f5006 11591
2b5f62a0
VZ
11592case "${host}" in
11593 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 11594 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11595 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11596echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11597if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11599else
e6cc62c6 11600 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11601LIBS="-lcExt $LIBS"
e6cc62c6
VS
11602cat >conftest.$ac_ext <<_ACEOF
11603#line $LINENO "configure"
11604/* confdefs.h. */
11605_ACEOF
11606cat confdefs.h >>conftest.$ac_ext
11607cat >>conftest.$ac_ext <<_ACEOF
11608/* end confdefs.h. */
11609
2b5f62a0 11610/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11611#ifdef __cplusplus
11612extern "C"
11613#endif
2b5f62a0 11614/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11615 builtin and then its argument prototype would still apply. */
11616char drand48 ();
11617int
11618main ()
11619{
11620drand48 ();
11621 ;
11622 return 0;
11623}
11624_ACEOF
11625rm -f conftest.$ac_objext conftest$ac_exeext
11626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11627 (eval $ac_link) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } &&
11631 { ac_try='test -s conftest$ac_exeext'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11637 ac_cv_lib_cExt_drand48=yes
11638else
11639 echo "$as_me: failed program was:" >&5
11640sed 's/^/| /' conftest.$ac_ext >&5
11641
11642ac_cv_lib_cExt_drand48=no
11643fi
11644rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11645LIBS=$ac_check_lib_save_LIBS
11646fi
11647echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11648echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11649if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11650 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11651fi
11652
11653 else
11654 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11655 fi
11656 ;;
11657esac
11658
a0b9e27f 11659
01aa5863
VS
11660if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11661 echo "$as_me:$LINENO: checking for strings.h" >&5
11662echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11663if test "${ac_cv_header_strings_h+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11665else
11666 ac_cv_header_strings_h=no
11667fi
11668echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11669echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11670 if test "$ac_cv_header_strings_h" = "no"; then
11671 echo "$as_me:$LINENO: result: forced no into cache" >&5
11672echo "${ECHO_T}forced no into cache" >&6
11673 else
11674 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11675echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11676 fi
11677fi
11678echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
11679echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11680if test "${ac_cv_header_stdc+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11682else
11683 cat >conftest.$ac_ext <<_ACEOF
11684#line $LINENO "configure"
11685/* confdefs.h. */
11686_ACEOF
11687cat confdefs.h >>conftest.$ac_ext
11688cat >>conftest.$ac_ext <<_ACEOF
11689/* end confdefs.h. */
11690#include <stdlib.h>
11691#include <stdarg.h>
11692#include <string.h>
11693#include <float.h>
247f5006 11694
e6cc62c6
VS
11695int
11696main ()
11697{
90dd450c 11698
e6cc62c6
VS
11699 ;
11700 return 0;
11701}
11702_ACEOF
11703rm -f conftest.$ac_objext
11704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11705 (eval $ac_compile) 2>&5
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } &&
11709 { ac_try='test -s conftest.$ac_objext'
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711 (eval $ac_try) 2>&5
11712 ac_status=$?
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; }; then
11715 ac_cv_header_stdc=yes
8284b0c5 11716else
e6cc62c6
VS
11717 echo "$as_me: failed program was:" >&5
11718sed 's/^/| /' conftest.$ac_ext >&5
11719
11720ac_cv_header_stdc=no
21d1c967 11721fi
e6cc62c6 11722rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 11723
e6cc62c6
VS
11724if test $ac_cv_header_stdc = yes; then
11725 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11726 cat >conftest.$ac_ext <<_ACEOF
11727#line $LINENO "configure"
11728/* confdefs.h. */
11729_ACEOF
11730cat confdefs.h >>conftest.$ac_ext
11731cat >>conftest.$ac_ext <<_ACEOF
11732/* end confdefs.h. */
11733#include <string.h>
11734
11735_ACEOF
11736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11737 $EGREP "memchr" >/dev/null 2>&1; then
11738 :
11739else
11740 ac_cv_header_stdc=no
3a922bb4 11741fi
a0b9e27f 11742rm -f conftest*
e6cc62c6 11743
90dd450c 11744fi
e6cc62c6
VS
11745
11746if test $ac_cv_header_stdc = yes; then
11747 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11748 cat >conftest.$ac_ext <<_ACEOF
11749#line $LINENO "configure"
11750/* confdefs.h. */
11751_ACEOF
11752cat confdefs.h >>conftest.$ac_ext
11753cat >>conftest.$ac_ext <<_ACEOF
11754/* end confdefs.h. */
11755#include <stdlib.h>
11756
11757_ACEOF
11758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11759 $EGREP "free" >/dev/null 2>&1; then
11760 :
a0b9e27f 11761else
e6cc62c6 11762 ac_cv_header_stdc=no
21d1c967 11763fi
e6cc62c6 11764rm -f conftest*
247f5006
VZ
11765
11766fi
e6cc62c6
VS
11767
11768if test $ac_cv_header_stdc = yes; then
11769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11770 if test "$cross_compiling" = yes; then
11771 :
11772else
11773 cat >conftest.$ac_ext <<_ACEOF
11774#line $LINENO "configure"
11775/* confdefs.h. */
11776_ACEOF
11777cat confdefs.h >>conftest.$ac_ext
11778cat >>conftest.$ac_ext <<_ACEOF
11779/* end confdefs.h. */
11780#include <ctype.h>
11781#if ((' ' & 0x0FF) == 0x020)
11782# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11783# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11784#else
11785# define ISLOWER(c) \
11786 (('a' <= (c) && (c) <= 'i') \
11787 || ('j' <= (c) && (c) <= 'r') \
11788 || ('s' <= (c) && (c) <= 'z'))
11789# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11790#endif
11791
11792#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11793int
11794main ()
11795{
11796 int i;
11797 for (i = 0; i < 256; i++)
11798 if (XOR (islower (i), ISLOWER (i))
11799 || toupper (i) != TOUPPER (i))
11800 exit(2);
11801 exit (0);
11802}
11803_ACEOF
11804rm -f conftest$ac_exeext
11805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806 (eval $ac_link) 2>&5
11807 ac_status=$?
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811 (eval $ac_try) 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; }; then
11815 :
a0b9e27f 11816else
e6cc62c6
VS
11817 echo "$as_me: program exited with status $ac_status" >&5
11818echo "$as_me: failed program was:" >&5
11819sed 's/^/| /' conftest.$ac_ext >&5
11820
11821( exit $ac_status )
11822ac_cv_header_stdc=no
11823fi
11824rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11825fi
11826fi
11827fi
11828echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11829echo "${ECHO_T}$ac_cv_header_stdc" >&6
11830if test $ac_cv_header_stdc = yes; then
11831
11832cat >>confdefs.h <<\_ACEOF
11833#define STDC_HEADERS 1
11834_ACEOF
11835
a0b9e27f 11836fi
e6cc62c6
VS
11837
11838# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11849 inttypes.h stdint.h unistd.h
11850do
11851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11852echo "$as_me:$LINENO: checking for $ac_header" >&5
11853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11854if eval "test \"\${$as_ac_Header+set}\" = set"; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11856else
11857 cat >conftest.$ac_ext <<_ACEOF
11858#line $LINENO "configure"
11859/* confdefs.h. */
11860_ACEOF
11861cat confdefs.h >>conftest.$ac_ext
11862cat >>conftest.$ac_ext <<_ACEOF
11863/* end confdefs.h. */
11864$ac_includes_default
11865
11866#include <$ac_header>
11867_ACEOF
11868rm -f conftest.$ac_objext
11869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870 (eval $ac_compile) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } &&
11874 { ac_try='test -s conftest.$ac_objext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 eval "$as_ac_Header=yes"
11881else
11882 echo "$as_me: failed program was:" >&5
11883sed 's/^/| /' conftest.$ac_ext >&5
11884
11885eval "$as_ac_Header=no"
11886fi
11887rm -f conftest.$ac_objext conftest.$ac_ext
11888fi
11889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11890echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11891if test `eval echo '${'$as_ac_Header'}'` = yes; then
11892 cat >>confdefs.h <<_ACEOF
11893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11894_ACEOF
11895
11896fi
11897
a0b9e27f 11898done
90dd450c 11899
e6cc62c6
VS
11900
11901
11902for ac_header in strings.h
21d1c967 11903do
e6cc62c6
VS
11904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11905if eval "test \"\${$as_ac_Header+set}\" = set"; then
11906 echo "$as_me:$LINENO: checking for $ac_header" >&5
11907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11908if eval "test \"\${$as_ac_Header+set}\" = set"; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910fi
11911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11913else
11914 # Is the header compilable?
11915echo "$as_me:$LINENO: checking $ac_header usability" >&5
11916echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11917cat >conftest.$ac_ext <<_ACEOF
11918#line $LINENO "configure"
11919/* confdefs.h. */
11920_ACEOF
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h. */
11924$ac_includes_default
11925#include <$ac_header>
11926_ACEOF
11927rm -f conftest.$ac_objext
11928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11929 (eval $ac_compile) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -s conftest.$ac_objext'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 ac_header_compiler=yes
11940else
11941 echo "$as_me: failed program was:" >&5
11942sed 's/^/| /' conftest.$ac_ext >&5
11943
11944ac_header_compiler=no
11945fi
11946rm -f conftest.$ac_objext conftest.$ac_ext
11947echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11948echo "${ECHO_T}$ac_header_compiler" >&6
11949
11950# Is the header present?
11951echo "$as_me:$LINENO: checking $ac_header presence" >&5
11952echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11953cat >conftest.$ac_ext <<_ACEOF
11954#line $LINENO "configure"
11955/* confdefs.h. */
11956_ACEOF
11957cat confdefs.h >>conftest.$ac_ext
11958cat >>conftest.$ac_ext <<_ACEOF
11959/* end confdefs.h. */
11960#include <$ac_header>
11961_ACEOF
11962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11964 ac_status=$?
11965 grep -v '^ *+' conftest.er1 >conftest.err
11966 rm -f conftest.er1
11967 cat conftest.err >&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } >/dev/null; then
11970 if test -s conftest.err; then
11971 ac_cpp_err=$ac_c_preproc_warn_flag
11972 else
11973 ac_cpp_err=
11974 fi
11975else
11976 ac_cpp_err=yes
11977fi
11978if test -z "$ac_cpp_err"; then
11979 ac_header_preproc=yes
11980else
11981 echo "$as_me: failed program was:" >&5
11982sed 's/^/| /' conftest.$ac_ext >&5
11983
11984 ac_header_preproc=no
11985fi
11986rm -f conftest.err conftest.$ac_ext
11987echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11988echo "${ECHO_T}$ac_header_preproc" >&6
11989
11990# So? What about this header?
11991case $ac_header_compiler:$ac_header_preproc in
11992 yes:no )
11993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11994echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11997 (
11998 cat <<\_ASBOX
11999## ------------------------------------ ##
12000## Report this to bug-autoconf@gnu.org. ##
12001## ------------------------------------ ##
12002_ASBOX
12003 ) |
12004 sed "s/^/$as_me: WARNING: /" >&2
12005 ;;
12006 no:yes )
12007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12008echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12010echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12013 (
12014 cat <<\_ASBOX
12015## ------------------------------------ ##
12016## Report this to bug-autoconf@gnu.org. ##
12017## ------------------------------------ ##
12018_ASBOX
12019 ) |
12020 sed "s/^/$as_me: WARNING: /" >&2
12021 ;;
12022esac
12023echo "$as_me:$LINENO: checking for $ac_header" >&5
12024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12025if eval "test \"\${$as_ac_Header+set}\" = set"; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12027else
12028 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12029fi
e6cc62c6
VS
12030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12032
a0b9e27f 12033fi
e6cc62c6
VS
12034if test `eval echo '${'$as_ac_Header'}'` = yes; then
12035 cat >>confdefs.h <<_ACEOF
12036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12037_ACEOF
12038
12039fi
12040
12041done
12042
e6cc62c6
VS
12043
12044
12045for ac_header in stdlib.h
12046do
12047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12048if eval "test \"\${$as_ac_Header+set}\" = set"; then
12049 echo "$as_me:$LINENO: checking for $ac_header" >&5
12050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12051if eval "test \"\${$as_ac_Header+set}\" = set"; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053fi
12054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12056else
12057 # Is the header compilable?
12058echo "$as_me:$LINENO: checking $ac_header usability" >&5
12059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12060cat >conftest.$ac_ext <<_ACEOF
12061#line $LINENO "configure"
12062/* confdefs.h. */
12063_ACEOF
12064cat confdefs.h >>conftest.$ac_ext
12065cat >>conftest.$ac_ext <<_ACEOF
12066/* end confdefs.h. */
12067$ac_includes_default
12068#include <$ac_header>
12069_ACEOF
12070rm -f conftest.$ac_objext
12071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12072 (eval $ac_compile) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -s conftest.$ac_objext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_header_compiler=yes
12083else
12084 echo "$as_me: failed program was:" >&5
12085sed 's/^/| /' conftest.$ac_ext >&5
12086
12087ac_header_compiler=no
12088fi
12089rm -f conftest.$ac_objext conftest.$ac_ext
12090echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12091echo "${ECHO_T}$ac_header_compiler" >&6
12092
12093# Is the header present?
12094echo "$as_me:$LINENO: checking $ac_header presence" >&5
12095echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12096cat >conftest.$ac_ext <<_ACEOF
12097#line $LINENO "configure"
12098/* confdefs.h. */
12099_ACEOF
12100cat confdefs.h >>conftest.$ac_ext
12101cat >>conftest.$ac_ext <<_ACEOF
12102/* end confdefs.h. */
12103#include <$ac_header>
12104_ACEOF
12105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12107 ac_status=$?
12108 grep -v '^ *+' conftest.er1 >conftest.err
12109 rm -f conftest.er1
12110 cat conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } >/dev/null; then
12113 if test -s conftest.err; then
12114 ac_cpp_err=$ac_c_preproc_warn_flag
12115 else
12116 ac_cpp_err=
12117 fi
12118else
12119 ac_cpp_err=yes
12120fi
12121if test -z "$ac_cpp_err"; then
12122 ac_header_preproc=yes
12123else
12124 echo "$as_me: failed program was:" >&5
12125sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 ac_header_preproc=no
12128fi
12129rm -f conftest.err conftest.$ac_ext
12130echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12131echo "${ECHO_T}$ac_header_preproc" >&6
12132
12133# So? What about this header?
12134case $ac_header_compiler:$ac_header_preproc in
12135 yes:no )
12136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12137echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12140 (
12141 cat <<\_ASBOX
12142## ------------------------------------ ##
12143## Report this to bug-autoconf@gnu.org. ##
12144## ------------------------------------ ##
12145_ASBOX
12146 ) |
12147 sed "s/^/$as_me: WARNING: /" >&2
12148 ;;
12149 no:yes )
12150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12151echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12153echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12155echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12156 (
12157 cat <<\_ASBOX
12158## ------------------------------------ ##
12159## Report this to bug-autoconf@gnu.org. ##
12160## ------------------------------------ ##
12161_ASBOX
12162 ) |
12163 sed "s/^/$as_me: WARNING: /" >&2
12164 ;;
12165esac
12166echo "$as_me:$LINENO: checking for $ac_header" >&5
12167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12168if eval "test \"\${$as_ac_Header+set}\" = set"; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12170else
e6cc62c6
VS
12171 eval "$as_ac_Header=$ac_header_preproc"
12172fi
12173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12174echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12175
21d1c967 12176fi
e6cc62c6
VS
12177if test `eval echo '${'$as_ac_Header'}'` = yes; then
12178 cat >>confdefs.h <<_ACEOF
12179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12180_ACEOF
12181
12182fi
12183
21d1c967 12184done
4f14bcd8 12185
5c6fa7d2 12186
e6cc62c6 12187for ac_header in malloc.h
21d1c967 12188do
e6cc62c6
VS
12189as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12190if eval "test \"\${$as_ac_Header+set}\" = set"; then
12191 echo "$as_me:$LINENO: checking for $ac_header" >&5
12192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12193if eval "test \"\${$as_ac_Header+set}\" = set"; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195fi
12196echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12197echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12198else
12199 # Is the header compilable?
12200echo "$as_me:$LINENO: checking $ac_header usability" >&5
12201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12202cat >conftest.$ac_ext <<_ACEOF
12203#line $LINENO "configure"
12204/* confdefs.h. */
12205_ACEOF
12206cat confdefs.h >>conftest.$ac_ext
12207cat >>conftest.$ac_ext <<_ACEOF
12208/* end confdefs.h. */
12209$ac_includes_default
12210#include <$ac_header>
12211_ACEOF
12212rm -f conftest.$ac_objext
12213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12214 (eval $ac_compile) 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } &&
12218 { ac_try='test -s conftest.$ac_objext'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_header_compiler=yes
12225else
12226 echo "$as_me: failed program was:" >&5
12227sed 's/^/| /' conftest.$ac_ext >&5
12228
12229ac_header_compiler=no
12230fi
12231rm -f conftest.$ac_objext conftest.$ac_ext
12232echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12233echo "${ECHO_T}$ac_header_compiler" >&6
12234
12235# Is the header present?
12236echo "$as_me:$LINENO: checking $ac_header presence" >&5
12237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12238cat >conftest.$ac_ext <<_ACEOF
12239#line $LINENO "configure"
12240/* confdefs.h. */
12241_ACEOF
12242cat confdefs.h >>conftest.$ac_ext
12243cat >>conftest.$ac_ext <<_ACEOF
12244/* end confdefs.h. */
12245#include <$ac_header>
12246_ACEOF
12247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12249 ac_status=$?
12250 grep -v '^ *+' conftest.er1 >conftest.err
12251 rm -f conftest.er1
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } >/dev/null; then
12255 if test -s conftest.err; then
12256 ac_cpp_err=$ac_c_preproc_warn_flag
12257 else
12258 ac_cpp_err=
12259 fi
12260else
12261 ac_cpp_err=yes
12262fi
12263if test -z "$ac_cpp_err"; then
12264 ac_header_preproc=yes
12265else
12266 echo "$as_me: failed program was:" >&5
12267sed 's/^/| /' conftest.$ac_ext >&5
12268
12269 ac_header_preproc=no
12270fi
12271rm -f conftest.err conftest.$ac_ext
12272echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12273echo "${ECHO_T}$ac_header_preproc" >&6
12274
12275# So? What about this header?
12276case $ac_header_compiler:$ac_header_preproc in
12277 yes:no )
12278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12279echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12281echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12282 (
12283 cat <<\_ASBOX
12284## ------------------------------------ ##
12285## Report this to bug-autoconf@gnu.org. ##
12286## ------------------------------------ ##
12287_ASBOX
12288 ) |
12289 sed "s/^/$as_me: WARNING: /" >&2
12290 ;;
12291 no:yes )
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12293echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12295echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12298 (
12299 cat <<\_ASBOX
12300## ------------------------------------ ##
12301## Report this to bug-autoconf@gnu.org. ##
12302## ------------------------------------ ##
12303_ASBOX
12304 ) |
12305 sed "s/^/$as_me: WARNING: /" >&2
12306 ;;
12307esac
12308echo "$as_me:$LINENO: checking for $ac_header" >&5
12309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12310if eval "test \"\${$as_ac_Header+set}\" = set"; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12312else
12313 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12314fi
e6cc62c6
VS
12315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12317
21d1c967 12318fi
e6cc62c6
VS
12319if test `eval echo '${'$as_ac_Header'}'` = yes; then
12320 cat >>confdefs.h <<_ACEOF
12321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12322_ACEOF
12323
12324fi
12325
12326done
12327
12328
12329for ac_header in unistd.h
12330do
12331as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12332if eval "test \"\${$as_ac_Header+set}\" = set"; then
12333 echo "$as_me:$LINENO: checking for $ac_header" >&5
12334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12335if eval "test \"\${$as_ac_Header+set}\" = set"; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12337fi
12338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12340else
12341 # Is the header compilable?
12342echo "$as_me:$LINENO: checking $ac_header usability" >&5
12343echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12344cat >conftest.$ac_ext <<_ACEOF
12345#line $LINENO "configure"
12346/* confdefs.h. */
12347_ACEOF
12348cat confdefs.h >>conftest.$ac_ext
12349cat >>conftest.$ac_ext <<_ACEOF
12350/* end confdefs.h. */
12351$ac_includes_default
12352#include <$ac_header>
12353_ACEOF
12354rm -f conftest.$ac_objext
12355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12356 (eval $ac_compile) 2>&5
12357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } &&
12360 { ac_try='test -s conftest.$ac_objext'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12363 ac_status=$?
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; }; then
12366 ac_header_compiler=yes
12367else
12368 echo "$as_me: failed program was:" >&5
12369sed 's/^/| /' conftest.$ac_ext >&5
12370
12371ac_header_compiler=no
12372fi
12373rm -f conftest.$ac_objext conftest.$ac_ext
12374echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12375echo "${ECHO_T}$ac_header_compiler" >&6
12376
12377# Is the header present?
12378echo "$as_me:$LINENO: checking $ac_header presence" >&5
12379echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12380cat >conftest.$ac_ext <<_ACEOF
12381#line $LINENO "configure"
12382/* confdefs.h. */
12383_ACEOF
12384cat confdefs.h >>conftest.$ac_ext
12385cat >>conftest.$ac_ext <<_ACEOF
12386/* end confdefs.h. */
12387#include <$ac_header>
12388_ACEOF
12389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12391 ac_status=$?
12392 grep -v '^ *+' conftest.er1 >conftest.err
12393 rm -f conftest.er1
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } >/dev/null; then
12397 if test -s conftest.err; then
12398 ac_cpp_err=$ac_c_preproc_warn_flag
12399 else
12400 ac_cpp_err=
12401 fi
a0b9e27f 12402else
e6cc62c6
VS
12403 ac_cpp_err=yes
12404fi
12405if test -z "$ac_cpp_err"; then
12406 ac_header_preproc=yes
12407else
12408 echo "$as_me: failed program was:" >&5
12409sed 's/^/| /' conftest.$ac_ext >&5
12410
12411 ac_header_preproc=no
12412fi
12413rm -f conftest.err conftest.$ac_ext
12414echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12415echo "${ECHO_T}$ac_header_preproc" >&6
12416
12417# So? What about this header?
12418case $ac_header_compiler:$ac_header_preproc in
12419 yes:no )
12420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12421echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12423echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12424 (
12425 cat <<\_ASBOX
12426## ------------------------------------ ##
12427## Report this to bug-autoconf@gnu.org. ##
12428## ------------------------------------ ##
12429_ASBOX
12430 ) |
12431 sed "s/^/$as_me: WARNING: /" >&2
12432 ;;
12433 no:yes )
12434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12435echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12437echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12439echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12440 (
12441 cat <<\_ASBOX
12442## ------------------------------------ ##
12443## Report this to bug-autoconf@gnu.org. ##
12444## ------------------------------------ ##
12445_ASBOX
12446 ) |
12447 sed "s/^/$as_me: WARNING: /" >&2
12448 ;;
12449esac
12450echo "$as_me:$LINENO: checking for $ac_header" >&5
12451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12452if eval "test \"\${$as_ac_Header+set}\" = set"; then
12453 echo $ECHO_N "(cached) $ECHO_C" >&6
12454else
12455 eval "$as_ac_Header=$ac_header_preproc"
12456fi
12457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12459
12460fi
12461if test `eval echo '${'$as_ac_Header'}'` = yes; then
12462 cat >>confdefs.h <<_ACEOF
12463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12464_ACEOF
12465
d4158b5d 12466fi
e6cc62c6 12467
21d1c967 12468done
f6bcfd97 12469
e6cc62c6
VS
12470
12471for ac_header in wchar.h
12472do
12473as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12474if eval "test \"\${$as_ac_Header+set}\" = set"; then
12475 echo "$as_me:$LINENO: checking for $ac_header" >&5
12476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12477if eval "test \"\${$as_ac_Header+set}\" = set"; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12479fi
12480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12482else
12483 # Is the header compilable?
12484echo "$as_me:$LINENO: checking $ac_header usability" >&5
12485echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12486cat >conftest.$ac_ext <<_ACEOF
12487#line $LINENO "configure"
12488/* confdefs.h. */
12489_ACEOF
12490cat confdefs.h >>conftest.$ac_ext
12491cat >>conftest.$ac_ext <<_ACEOF
12492/* end confdefs.h. */
12493$ac_includes_default
12494#include <$ac_header>
12495_ACEOF
12496rm -f conftest.$ac_objext
12497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12498 (eval $ac_compile) 2>&5
12499 ac_status=$?
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
12502 { ac_try='test -s conftest.$ac_objext'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12505 ac_status=$?
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; }; then
12508 ac_header_compiler=yes
12509else
12510 echo "$as_me: failed program was:" >&5
12511sed 's/^/| /' conftest.$ac_ext >&5
12512
12513ac_header_compiler=no
12514fi
12515rm -f conftest.$ac_objext conftest.$ac_ext
12516echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12517echo "${ECHO_T}$ac_header_compiler" >&6
12518
12519# Is the header present?
12520echo "$as_me:$LINENO: checking $ac_header presence" >&5
12521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12522cat >conftest.$ac_ext <<_ACEOF
12523#line $LINENO "configure"
12524/* confdefs.h. */
12525_ACEOF
12526cat confdefs.h >>conftest.$ac_ext
12527cat >>conftest.$ac_ext <<_ACEOF
12528/* end confdefs.h. */
12529#include <$ac_header>
12530_ACEOF
12531if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } >/dev/null; then
12539 if test -s conftest.err; then
12540 ac_cpp_err=$ac_c_preproc_warn_flag
12541 else
12542 ac_cpp_err=
12543 fi
12544else
12545 ac_cpp_err=yes
12546fi
12547if test -z "$ac_cpp_err"; then
12548 ac_header_preproc=yes
12549else
12550 echo "$as_me: failed program was:" >&5
12551sed 's/^/| /' conftest.$ac_ext >&5
12552
12553 ac_header_preproc=no
12554fi
12555rm -f conftest.err conftest.$ac_ext
12556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12557echo "${ECHO_T}$ac_header_preproc" >&6
12558
12559# So? What about this header?
12560case $ac_header_compiler:$ac_header_preproc in
12561 yes:no )
12562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12563echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12565echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12566 (
12567 cat <<\_ASBOX
12568## ------------------------------------ ##
12569## Report this to bug-autoconf@gnu.org. ##
12570## ------------------------------------ ##
12571_ASBOX
12572 ) |
12573 sed "s/^/$as_me: WARNING: /" >&2
12574 ;;
12575 no:yes )
12576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12577echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12579echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12582 (
12583 cat <<\_ASBOX
12584## ------------------------------------ ##
12585## Report this to bug-autoconf@gnu.org. ##
12586## ------------------------------------ ##
12587_ASBOX
12588 ) |
12589 sed "s/^/$as_me: WARNING: /" >&2
12590 ;;
12591esac
12592echo "$as_me:$LINENO: checking for $ac_header" >&5
12593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12594if eval "test \"\${$as_ac_Header+set}\" = set"; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596else
12597 eval "$as_ac_Header=$ac_header_preproc"
12598fi
12599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12600echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12601
90dd450c 12602fi
e6cc62c6
VS
12603if test `eval echo '${'$as_ac_Header'}'` = yes; then
12604 cat >>confdefs.h <<_ACEOF
12605#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12606_ACEOF
12607
12608fi
12609
12610done
90dd450c 12611
e6cc62c6
VS
12612
12613if test "$ac_cv_header_wchar_h" != "yes"; then
12614
12615for ac_header in wcstr.h
21d1c967 12616do
e6cc62c6
VS
12617as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12618if eval "test \"\${$as_ac_Header+set}\" = set"; then
12619 echo "$as_me:$LINENO: checking for $ac_header" >&5
12620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12621if eval "test \"\${$as_ac_Header+set}\" = set"; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12623fi
12624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12626else
12627 # Is the header compilable?
12628echo "$as_me:$LINENO: checking $ac_header usability" >&5
12629echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12630cat >conftest.$ac_ext <<_ACEOF
12631#line $LINENO "configure"
12632/* confdefs.h. */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
12636/* end confdefs.h. */
12637$ac_includes_default
12638#include <$ac_header>
12639_ACEOF
12640rm -f conftest.$ac_objext
12641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642 (eval $ac_compile) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); } &&
12646 { ac_try='test -s conftest.$ac_objext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 ac_header_compiler=yes
12653else
12654 echo "$as_me: failed program was:" >&5
12655sed 's/^/| /' conftest.$ac_ext >&5
12656
12657ac_header_compiler=no
12658fi
12659rm -f conftest.$ac_objext conftest.$ac_ext
12660echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12661echo "${ECHO_T}$ac_header_compiler" >&6
12662
12663# Is the header present?
12664echo "$as_me:$LINENO: checking $ac_header presence" >&5
12665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12666cat >conftest.$ac_ext <<_ACEOF
12667#line $LINENO "configure"
12668/* confdefs.h. */
12669_ACEOF
12670cat confdefs.h >>conftest.$ac_ext
12671cat >>conftest.$ac_ext <<_ACEOF
12672/* end confdefs.h. */
12673#include <$ac_header>
12674_ACEOF
12675if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12677 ac_status=$?
12678 grep -v '^ *+' conftest.er1 >conftest.err
12679 rm -f conftest.er1
12680 cat conftest.err >&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } >/dev/null; then
12683 if test -s conftest.err; then
12684 ac_cpp_err=$ac_c_preproc_warn_flag
12685 else
12686 ac_cpp_err=
12687 fi
12688else
12689 ac_cpp_err=yes
12690fi
12691if test -z "$ac_cpp_err"; then
12692 ac_header_preproc=yes
12693else
12694 echo "$as_me: failed program was:" >&5
12695sed 's/^/| /' conftest.$ac_ext >&5
12696
12697 ac_header_preproc=no
12698fi
12699rm -f conftest.err conftest.$ac_ext
12700echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12701echo "${ECHO_T}$ac_header_preproc" >&6
12702
12703# So? What about this header?
12704case $ac_header_compiler:$ac_header_preproc in
12705 yes:no )
12706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12707echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12709echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12710 (
12711 cat <<\_ASBOX
12712## ------------------------------------ ##
12713## Report this to bug-autoconf@gnu.org. ##
12714## ------------------------------------ ##
12715_ASBOX
12716 ) |
12717 sed "s/^/$as_me: WARNING: /" >&2
12718 ;;
12719 no:yes )
12720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12726 (
12727 cat <<\_ASBOX
12728## ------------------------------------ ##
12729## Report this to bug-autoconf@gnu.org. ##
12730## ------------------------------------ ##
12731_ASBOX
12732 ) |
12733 sed "s/^/$as_me: WARNING: /" >&2
12734 ;;
12735esac
12736echo "$as_me:$LINENO: checking for $ac_header" >&5
12737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12738if eval "test \"\${$as_ac_Header+set}\" = set"; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12740else
12741 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 12742fi
e6cc62c6
VS
12743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12745
4f14bcd8 12746fi
e6cc62c6
VS
12747if test `eval echo '${'$as_ac_Header'}'` = yes; then
12748 cat >>confdefs.h <<_ACEOF
12749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12750_ACEOF
12751
12752fi
12753
12754done
12755
12756fi
12757
12758
12759for ac_header in fnmatch.h
12760do
12761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12762if eval "test \"\${$as_ac_Header+set}\" = set"; then
12763 echo "$as_me:$LINENO: checking for $ac_header" >&5
12764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12765if eval "test \"\${$as_ac_Header+set}\" = set"; then
12766 echo $ECHO_N "(cached) $ECHO_C" >&6
12767fi
12768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12770else
12771 # Is the header compilable?
12772echo "$as_me:$LINENO: checking $ac_header usability" >&5
12773echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12774cat >conftest.$ac_ext <<_ACEOF
12775#line $LINENO "configure"
12776/* confdefs.h. */
12777_ACEOF
12778cat confdefs.h >>conftest.$ac_ext
12779cat >>conftest.$ac_ext <<_ACEOF
12780/* end confdefs.h. */
12781$ac_includes_default
12782#include <$ac_header>
12783_ACEOF
12784rm -f conftest.$ac_objext
12785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12786 (eval $ac_compile) 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
12790 { ac_try='test -s conftest.$ac_objext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796 ac_header_compiler=yes
12797else
12798 echo "$as_me: failed program was:" >&5
12799sed 's/^/| /' conftest.$ac_ext >&5
12800
12801ac_header_compiler=no
12802fi
12803rm -f conftest.$ac_objext conftest.$ac_ext
12804echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12805echo "${ECHO_T}$ac_header_compiler" >&6
12806
12807# Is the header present?
12808echo "$as_me:$LINENO: checking $ac_header presence" >&5
12809echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12810cat >conftest.$ac_ext <<_ACEOF
12811#line $LINENO "configure"
12812/* confdefs.h. */
12813_ACEOF
12814cat confdefs.h >>conftest.$ac_ext
12815cat >>conftest.$ac_ext <<_ACEOF
12816/* end confdefs.h. */
12817#include <$ac_header>
12818_ACEOF
12819if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12821 ac_status=$?
12822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } >/dev/null; then
12827 if test -s conftest.err; then
12828 ac_cpp_err=$ac_c_preproc_warn_flag
12829 else
12830 ac_cpp_err=
12831 fi
12832else
12833 ac_cpp_err=yes
12834fi
12835if test -z "$ac_cpp_err"; then
12836 ac_header_preproc=yes
12837else
12838 echo "$as_me: failed program was:" >&5
12839sed 's/^/| /' conftest.$ac_ext >&5
12840
12841 ac_header_preproc=no
12842fi
12843rm -f conftest.err conftest.$ac_ext
12844echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12845echo "${ECHO_T}$ac_header_preproc" >&6
12846
12847# So? What about this header?
12848case $ac_header_compiler:$ac_header_preproc in
12849 yes:no )
12850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12851echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12853echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12854 (
12855 cat <<\_ASBOX
12856## ------------------------------------ ##
12857## Report this to bug-autoconf@gnu.org. ##
12858## ------------------------------------ ##
12859_ASBOX
12860 ) |
12861 sed "s/^/$as_me: WARNING: /" >&2
12862 ;;
12863 no:yes )
12864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12865echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12867echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12869echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12870 (
12871 cat <<\_ASBOX
12872## ------------------------------------ ##
12873## Report this to bug-autoconf@gnu.org. ##
12874## ------------------------------------ ##
12875_ASBOX
12876 ) |
12877 sed "s/^/$as_me: WARNING: /" >&2
12878 ;;
12879esac
12880echo "$as_me:$LINENO: checking for $ac_header" >&5
12881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12882if eval "test \"\${$as_ac_Header+set}\" = set"; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12884else
e6cc62c6
VS
12885 eval "$as_ac_Header=$ac_header_preproc"
12886fi
12887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12889
21d1c967 12890fi
e6cc62c6
VS
12891if test `eval echo '${'$as_ac_Header'}'` = yes; then
12892 cat >>confdefs.h <<_ACEOF
12893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12894_ACEOF
12895
12896fi
12897
21d1c967 12898done
90dd450c 12899
5c6fa7d2 12900
a0b9e27f 12901if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
12902
12903for ac_func in fnmatch
21d1c967 12904do
e6cc62c6
VS
12905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12906echo "$as_me:$LINENO: checking for $ac_func" >&5
12907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12908if eval "test \"\${$as_ac_var+set}\" = set"; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
12910else
12911 cat >conftest.$ac_ext <<_ACEOF
12912#line $LINENO "configure"
12913/* confdefs.h. */
12914_ACEOF
12915cat confdefs.h >>conftest.$ac_ext
12916cat >>conftest.$ac_ext <<_ACEOF
12917/* end confdefs.h. */
a0b9e27f 12918/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
12919 which can conflict with char $ac_func (); below.
12920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12921 <limits.h> exists even on freestanding compilers. */
12922#ifdef __STDC__
12923# include <limits.h>
12924#else
12925# include <assert.h>
12926#endif
a0b9e27f 12927/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
12928#ifdef __cplusplus
12929extern "C"
12930{
12931#endif
a0b9e27f 12932/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
12933 builtin and then its argument prototype would still apply. */
12934char $ac_func ();
a0b9e27f
MB
12935/* The GNU C library defines this for functions which it implements
12936 to always fail with ENOSYS. Some functions are actually named
12937 something starting with __ and the normal name is an alias. */
12938#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12939choke me
12940#else
e6cc62c6
VS
12941char (*f) () = $ac_func;
12942#endif
12943#ifdef __cplusplus
12944}
a0b9e27f
MB
12945#endif
12946
e6cc62c6
VS
12947int
12948main ()
12949{
12950return f != $ac_func;
12951 ;
12952 return 0;
12953}
12954_ACEOF
12955rm -f conftest.$ac_objext conftest$ac_exeext
12956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12957 (eval $ac_link) 2>&5
12958 ac_status=$?
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
12961 { ac_try='test -s conftest$ac_exeext'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; }; then
12967 eval "$as_ac_var=yes"
12968else
12969 echo "$as_me: failed program was:" >&5
12970sed 's/^/| /' conftest.$ac_ext >&5
12971
12972eval "$as_ac_var=no"
12973fi
12974rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12975fi
12976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12977echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12978if test `eval echo '${'$as_ac_var'}'` = yes; then
12979 cat >>confdefs.h <<_ACEOF
12980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12981_ACEOF
32832908 12982
21d1c967
GD
12983fi
12984done
90dd450c 12985
a0b9e27f 12986fi
90dd450c 12987
e6cc62c6
VS
12988
12989for ac_header in langinfo.h
21d1c967 12990do
e6cc62c6
VS
12991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12992if eval "test \"\${$as_ac_Header+set}\" = set"; then
12993 echo "$as_me:$LINENO: checking for $ac_header" >&5
12994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12995if eval "test \"\${$as_ac_Header+set}\" = set"; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12997fi
12998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13000else
13001 # Is the header compilable?
13002echo "$as_me:$LINENO: checking $ac_header usability" >&5
13003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13004cat >conftest.$ac_ext <<_ACEOF
13005#line $LINENO "configure"
13006/* confdefs.h. */
13007_ACEOF
13008cat confdefs.h >>conftest.$ac_ext
13009cat >>conftest.$ac_ext <<_ACEOF
13010/* end confdefs.h. */
13011$ac_includes_default
13012#include <$ac_header>
13013_ACEOF
13014rm -f conftest.$ac_objext
13015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13016 (eval $ac_compile) 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } &&
13020 { ac_try='test -s conftest.$ac_objext'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13026 ac_header_compiler=yes
13027else
13028 echo "$as_me: failed program was:" >&5
13029sed 's/^/| /' conftest.$ac_ext >&5
13030
13031ac_header_compiler=no
13032fi
13033rm -f conftest.$ac_objext conftest.$ac_ext
13034echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13035echo "${ECHO_T}$ac_header_compiler" >&6
13036
13037# Is the header present?
13038echo "$as_me:$LINENO: checking $ac_header presence" >&5
13039echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13040cat >conftest.$ac_ext <<_ACEOF
13041#line $LINENO "configure"
13042/* confdefs.h. */
13043_ACEOF
13044cat confdefs.h >>conftest.$ac_ext
13045cat >>conftest.$ac_ext <<_ACEOF
13046/* end confdefs.h. */
13047#include <$ac_header>
13048_ACEOF
13049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13051 ac_status=$?
13052 grep -v '^ *+' conftest.er1 >conftest.err
13053 rm -f conftest.er1
13054 cat conftest.err >&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } >/dev/null; then
13057 if test -s conftest.err; then
13058 ac_cpp_err=$ac_c_preproc_warn_flag
13059 else
13060 ac_cpp_err=
13061 fi
13062else
13063 ac_cpp_err=yes
13064fi
13065if test -z "$ac_cpp_err"; then
13066 ac_header_preproc=yes
13067else
13068 echo "$as_me: failed program was:" >&5
13069sed 's/^/| /' conftest.$ac_ext >&5
13070
13071 ac_header_preproc=no
13072fi
13073rm -f conftest.err conftest.$ac_ext
13074echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13075echo "${ECHO_T}$ac_header_preproc" >&6
13076
13077# So? What about this header?
13078case $ac_header_compiler:$ac_header_preproc in
13079 yes:no )
13080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13081echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13083echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13084 (
13085 cat <<\_ASBOX
13086## ------------------------------------ ##
13087## Report this to bug-autoconf@gnu.org. ##
13088## ------------------------------------ ##
13089_ASBOX
13090 ) |
13091 sed "s/^/$as_me: WARNING: /" >&2
13092 ;;
13093 no:yes )
13094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13095echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13097echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13099echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13100 (
13101 cat <<\_ASBOX
13102## ------------------------------------ ##
13103## Report this to bug-autoconf@gnu.org. ##
13104## ------------------------------------ ##
13105_ASBOX
13106 ) |
13107 sed "s/^/$as_me: WARNING: /" >&2
13108 ;;
13109esac
13110echo "$as_me:$LINENO: checking for $ac_header" >&5
13111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13112if eval "test \"\${$as_ac_Header+set}\" = set"; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13114else
13115 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13116fi
e6cc62c6
VS
13117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13119
4f14bcd8 13120fi
e6cc62c6
VS
13121if test `eval echo '${'$as_ac_Header'}'` = yes; then
13122 cat >>confdefs.h <<_ACEOF
13123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13124_ACEOF
13125
21d1c967 13126fi
e6cc62c6 13127
21d1c967 13128done
3a922bb4 13129
8284b0c5 13130
4f5a7f74
VZ
13131case "${host}" in
13132 *-pc-os2_emx | *-pc-os2-emx )
13133 if test $ac_cv_header_langinfo_h = "yes"; then
13134 LIBS="$LIBS -lintl"
13135 fi
13136 ;;
13137esac
1542ea39 13138
a0b9e27f
MB
13139if test "$wxUSE_GUI" = "yes"; then
13140 if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 13141
eb69fda5 13142for ac_header in X11/Xlib.h
21d1c967 13143do
e6cc62c6
VS
13144as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13145if eval "test \"\${$as_ac_Header+set}\" = set"; then
13146 echo "$as_me:$LINENO: checking for $ac_header" >&5
13147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13148if eval "test \"\${$as_ac_Header+set}\" = set"; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13150fi
13151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13153else
13154 # Is the header compilable?
13155echo "$as_me:$LINENO: checking $ac_header usability" >&5
13156echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13157cat >conftest.$ac_ext <<_ACEOF
13158#line $LINENO "configure"
13159/* confdefs.h. */
13160_ACEOF
13161cat confdefs.h >>conftest.$ac_ext
13162cat >>conftest.$ac_ext <<_ACEOF
13163/* end confdefs.h. */
13164$ac_includes_default
13165#include <$ac_header>
13166_ACEOF
13167rm -f conftest.$ac_objext
13168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13169 (eval $ac_compile) 2>&5
13170 ac_status=$?
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } &&
13173 { ac_try='test -s conftest.$ac_objext'
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13176 ac_status=$?
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; }; then
13179 ac_header_compiler=yes
13180else
13181 echo "$as_me: failed program was:" >&5
13182sed 's/^/| /' conftest.$ac_ext >&5
13183
13184ac_header_compiler=no
13185fi
13186rm -f conftest.$ac_objext conftest.$ac_ext
13187echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13188echo "${ECHO_T}$ac_header_compiler" >&6
13189
13190# Is the header present?
13191echo "$as_me:$LINENO: checking $ac_header presence" >&5
13192echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13193cat >conftest.$ac_ext <<_ACEOF
13194#line $LINENO "configure"
13195/* confdefs.h. */
13196_ACEOF
13197cat confdefs.h >>conftest.$ac_ext
13198cat >>conftest.$ac_ext <<_ACEOF
13199/* end confdefs.h. */
13200#include <$ac_header>
13201_ACEOF
13202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13204 ac_status=$?
13205 grep -v '^ *+' conftest.er1 >conftest.err
13206 rm -f conftest.er1
13207 cat conftest.err >&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); } >/dev/null; then
13210 if test -s conftest.err; then
13211 ac_cpp_err=$ac_c_preproc_warn_flag
13212 else
13213 ac_cpp_err=
13214 fi
13215else
13216 ac_cpp_err=yes
13217fi
13218if test -z "$ac_cpp_err"; then
13219 ac_header_preproc=yes
13220else
13221 echo "$as_me: failed program was:" >&5
13222sed 's/^/| /' conftest.$ac_ext >&5
13223
13224 ac_header_preproc=no
13225fi
13226rm -f conftest.err conftest.$ac_ext
13227echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13228echo "${ECHO_T}$ac_header_preproc" >&6
13229
13230# So? What about this header?
13231case $ac_header_compiler:$ac_header_preproc in
13232 yes:no )
13233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13234echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13236echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13237 (
13238 cat <<\_ASBOX
13239## ------------------------------------ ##
13240## Report this to bug-autoconf@gnu.org. ##
13241## ------------------------------------ ##
13242_ASBOX
13243 ) |
13244 sed "s/^/$as_me: WARNING: /" >&2
13245 ;;
13246 no:yes )
13247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13252echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13253 (
13254 cat <<\_ASBOX
13255## ------------------------------------ ##
13256## Report this to bug-autoconf@gnu.org. ##
13257## ------------------------------------ ##
13258_ASBOX
13259 ) |
13260 sed "s/^/$as_me: WARNING: /" >&2
13261 ;;
13262esac
13263echo "$as_me:$LINENO: checking for $ac_header" >&5
13264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13265if eval "test \"\${$as_ac_Header+set}\" = set"; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13267else
13268 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13269fi
e6cc62c6
VS
13270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13272
90dd450c 13273fi
e6cc62c6
VS
13274if test `eval echo '${'$as_ac_Header'}'` = yes; then
13275 cat >>confdefs.h <<_ACEOF
13276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13277_ACEOF
13278
247f5006 13279fi
e6cc62c6 13280
eb69fda5
VS
13281done
13282
13283
13284for ac_header in X11/XKBlib.h
13285do
13286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13287echo "$as_me:$LINENO: checking for $ac_header" >&5
13288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13289if eval "test \"\${$as_ac_Header+set}\" = set"; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13291else
13292 cat >conftest.$ac_ext <<_ACEOF
13293#line $LINENO "configure"
13294/* confdefs.h. */
13295_ACEOF
13296cat confdefs.h >>conftest.$ac_ext
13297cat >>conftest.$ac_ext <<_ACEOF
13298/* end confdefs.h. */
13299
13300 #if HAVE_X11_XLIB_H
13301 #include <X11/Xlib.h>
13302 #endif
13303
13304
13305#include <$ac_header>
13306_ACEOF
13307rm -f conftest.$ac_objext
13308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13309 (eval $ac_compile) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
13313 { ac_try='test -s conftest.$ac_objext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 eval "$as_ac_Header=yes"
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324eval "$as_ac_Header=no"
13325fi
13326rm -f conftest.$ac_objext conftest.$ac_ext
13327fi
13328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13329echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13330if test `eval echo '${'$as_ac_Header'}'` = yes; then
13331 cat >>confdefs.h <<_ACEOF
13332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13333_ACEOF
13334
13335fi
13336
247f5006
VZ
13337done
13338
a0b9e27f
MB
13339 fi
13340fi
247f5006 13341
247f5006 13342
e6cc62c6
VS
13343echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13344echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13345if test "${ac_cv_c_const+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13347else
13348 cat >conftest.$ac_ext <<_ACEOF
13349#line $LINENO "configure"
13350/* confdefs.h. */
13351_ACEOF
13352cat confdefs.h >>conftest.$ac_ext
13353cat >>conftest.$ac_ext <<_ACEOF
13354/* end confdefs.h. */
13355
13356int
13357main ()
13358{
13359/* FIXME: Include the comments suggested by Paul. */
13360#ifndef __cplusplus
13361 /* Ultrix mips cc rejects this. */
13362 typedef int charset[2];
13363 const charset x;
13364 /* SunOS 4.1.1 cc rejects this. */
13365 char const *const *ccp;
13366 char **p;
13367 /* NEC SVR4.0.2 mips cc rejects this. */
13368 struct point {int x, y;};
13369 static struct point const zero = {0,0};
13370 /* AIX XL C 1.02.0.0 rejects this.
13371 It does not let you subtract one const X* pointer from another in
13372 an arm of an if-expression whose if-part is not a constant
13373 expression */
13374 const char *g = "string";
13375 ccp = &g + (g ? g-g : 0);
13376 /* HPUX 7.0 cc rejects these. */
13377 ++ccp;
13378 p = (char**) ccp;
13379 ccp = (char const *const *) p;
13380 { /* SCO 3.2v4 cc rejects this. */
13381 char *t;
13382 char const *s = 0 ? (char *) 0 : (char const *) 0;
13383
13384 *t++ = 0;
13385 }
13386 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13387 int x[] = {25, 17};
13388 const int *foo = &x[0];
13389 ++foo;
13390 }
13391 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13392 typedef const int *iptr;
13393 iptr p = 0;
13394 ++p;
13395 }
13396 { /* AIX XL C 1.02.0.0 rejects this saying
13397 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13398 struct s { int j; const int *ap[3]; };
13399 struct s *b; b->j = 5;
13400 }
13401 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13402 const int foo = 10;
13403 }
13404#endif
13405
13406 ;
13407 return 0;
13408}
13409_ACEOF
13410rm -f conftest.$ac_objext
13411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13412 (eval $ac_compile) 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
13416 { ac_try='test -s conftest.$ac_objext'
13417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418 (eval $ac_try) 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; }; then
a0b9e27f 13422 ac_cv_c_const=yes
247f5006 13423else
e6cc62c6
VS
13424 echo "$as_me: failed program was:" >&5
13425sed 's/^/| /' conftest.$ac_ext >&5
13426
13427ac_cv_c_const=no
247f5006 13428fi
e6cc62c6 13429rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13430fi
e6cc62c6
VS
13431echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13432echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13433if test $ac_cv_c_const = no; then
e6cc62c6
VS
13434
13435cat >>confdefs.h <<\_ACEOF
13436#define const
13437_ACEOF
10f2d63a 13438
90dd450c 13439fi
81809c07 13440
e6cc62c6
VS
13441echo "$as_me:$LINENO: checking for inline" >&5
13442echo $ECHO_N "checking for inline... $ECHO_C" >&6
13443if test "${ac_cv_c_inline+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13445else
a0b9e27f
MB
13446 ac_cv_c_inline=no
13447for ac_kw in inline __inline__ __inline; do
e6cc62c6
VS
13448 cat >conftest.$ac_ext <<_ACEOF
13449#line $LINENO "configure"
13450/* confdefs.h. */
13451_ACEOF
13452cat confdefs.h >>conftest.$ac_ext
13453cat >>conftest.$ac_ext <<_ACEOF
13454/* end confdefs.h. */
13455#ifndef __cplusplus
13456typedef int foo_t;
13457static $ac_kw foo_t static_foo () {return 0; }
13458$ac_kw foo_t foo () {return 0; }
13459#endif
a0b9e27f 13460
e6cc62c6
VS
13461_ACEOF
13462rm -f conftest.$ac_objext
13463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13464 (eval $ac_compile) 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } &&
13468 { ac_try='test -s conftest.$ac_objext'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
a0b9e27f 13474 ac_cv_c_inline=$ac_kw; break
247f5006 13475else
e6cc62c6
VS
13476 echo "$as_me: failed program was:" >&5
13477sed 's/^/| /' conftest.$ac_ext >&5
13478
247f5006 13479fi
e6cc62c6 13480rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13481done
247f5006
VZ
13482
13483fi
e6cc62c6
VS
13484echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13485echo "${ECHO_T}$ac_cv_c_inline" >&6
13486case $ac_cv_c_inline in
a0b9e27f 13487 inline | yes) ;;
e6cc62c6
VS
13488 no)
13489cat >>confdefs.h <<\_ACEOF
13490#define inline
13491_ACEOF
a0b9e27f 13492 ;;
e6cc62c6 13493 *) cat >>confdefs.h <<_ACEOF
a0b9e27f 13494#define inline $ac_cv_c_inline
e6cc62c6 13495_ACEOF
a0b9e27f
MB
13496 ;;
13497esac
247f5006 13498
247f5006 13499
e6cc62c6
VS
13500echo "$as_me:$LINENO: checking for char" >&5
13501echo $ECHO_N "checking for char... $ECHO_C" >&6
13502if test "${ac_cv_type_char+set}" = set; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13504else
13505 cat >conftest.$ac_ext <<_ACEOF
13506#line $LINENO "configure"
13507/* confdefs.h. */
13508_ACEOF
13509cat confdefs.h >>conftest.$ac_ext
13510cat >>conftest.$ac_ext <<_ACEOF
13511/* end confdefs.h. */
13512$ac_includes_default
13513int
13514main ()
13515{
13516if ((char *) 0)
13517 return 0;
13518if (sizeof (char))
13519 return 0;
13520 ;
13521 return 0;
13522}
13523_ACEOF
13524rm -f conftest.$ac_objext
13525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526 (eval $ac_compile) 2>&5
13527 ac_status=$?
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try='test -s conftest.$ac_objext'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13533 ac_status=$?
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13536 ac_cv_type_char=yes
13537else
13538 echo "$as_me: failed program was:" >&5
13539sed 's/^/| /' conftest.$ac_ext >&5
13540
13541ac_cv_type_char=no
13542fi
13543rm -f conftest.$ac_objext conftest.$ac_ext
13544fi
13545echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13546echo "${ECHO_T}$ac_cv_type_char" >&6
13547
13548echo "$as_me:$LINENO: checking size of char" >&5
13549echo $ECHO_N "checking size of char... $ECHO_C" >&6
13550if test "${ac_cv_sizeof_char+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13552else
13553 if test "$ac_cv_type_char" = yes; then
13554 # The cast to unsigned long works around a bug in the HP C Compiler
13555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13557 # This bug is HP SR number 8606223364.
a0b9e27f 13558 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13559 # Depending upon the size, compute the lo and hi bounds.
13560cat >conftest.$ac_ext <<_ACEOF
13561#line $LINENO "configure"
13562/* confdefs.h. */
13563_ACEOF
13564cat confdefs.h >>conftest.$ac_ext
13565cat >>conftest.$ac_ext <<_ACEOF
13566/* end confdefs.h. */
13567$ac_includes_default
13568int
13569main ()
13570{
13571static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13572test_array [0] = 0
13573
13574 ;
13575 return 0;
13576}
13577_ACEOF
13578rm -f conftest.$ac_objext
13579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13580 (eval $ac_compile) 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
13584 { ac_try='test -s conftest.$ac_objext'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 ac_lo=0 ac_mid=0
13591 while :; do
13592 cat >conftest.$ac_ext <<_ACEOF
13593#line $LINENO "configure"
13594/* confdefs.h. */
13595_ACEOF
13596cat confdefs.h >>conftest.$ac_ext
13597cat >>conftest.$ac_ext <<_ACEOF
13598/* end confdefs.h. */
13599$ac_includes_default
13600int
13601main ()
13602{
13603static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13604test_array [0] = 0
13605
13606 ;
13607 return 0;
13608}
13609_ACEOF
13610rm -f conftest.$ac_objext
13611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13612 (eval $ac_compile) 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } &&
13616 { ac_try='test -s conftest.$ac_objext'
13617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13618 (eval $ac_try) 2>&5
13619 ac_status=$?
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); }; }; then
13622 ac_hi=$ac_mid; break
13623else
13624 echo "$as_me: failed program was:" >&5
13625sed 's/^/| /' conftest.$ac_ext >&5
13626
13627ac_lo=`expr $ac_mid + 1`
13628 if test $ac_lo -le $ac_mid; then
13629 ac_lo= ac_hi=
13630 break
13631 fi
13632 ac_mid=`expr 2 '*' $ac_mid + 1`
13633fi
13634rm -f conftest.$ac_objext conftest.$ac_ext
13635 done
a0b9e27f 13636else
e6cc62c6
VS
13637 echo "$as_me: failed program was:" >&5
13638sed 's/^/| /' conftest.$ac_ext >&5
13639
13640cat >conftest.$ac_ext <<_ACEOF
13641#line $LINENO "configure"
13642/* confdefs.h. */
13643_ACEOF
13644cat confdefs.h >>conftest.$ac_ext
13645cat >>conftest.$ac_ext <<_ACEOF
13646/* end confdefs.h. */
13647$ac_includes_default
13648int
13649main ()
13650{
13651static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13652test_array [0] = 0
13653
13654 ;
13655 return 0;
13656}
13657_ACEOF
13658rm -f conftest.$ac_objext
13659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13660 (eval $ac_compile) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } &&
13664 { ac_try='test -s conftest.$ac_objext'
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; }; then
13670 ac_hi=-1 ac_mid=-1
13671 while :; do
13672 cat >conftest.$ac_ext <<_ACEOF
13673#line $LINENO "configure"
13674/* confdefs.h. */
13675_ACEOF
13676cat confdefs.h >>conftest.$ac_ext
13677cat >>conftest.$ac_ext <<_ACEOF
13678/* end confdefs.h. */
13679$ac_includes_default
13680int
13681main ()
13682{
13683static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13684test_array [0] = 0
13685
13686 ;
13687 return 0;
13688}
13689_ACEOF
13690rm -f conftest.$ac_objext
13691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13692 (eval $ac_compile) 2>&5
13693 ac_status=$?
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } &&
13696 { ac_try='test -s conftest.$ac_objext'
13697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698 (eval $ac_try) 2>&5
13699 ac_status=$?
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; }; then
13702 ac_lo=$ac_mid; break
13703else
13704 echo "$as_me: failed program was:" >&5
13705sed 's/^/| /' conftest.$ac_ext >&5
13706
13707ac_hi=`expr '(' $ac_mid ')' - 1`
13708 if test $ac_mid -le $ac_hi; then
13709 ac_lo= ac_hi=
13710 break
13711 fi
13712 ac_mid=`expr 2 '*' $ac_mid`
13713fi
13714rm -f conftest.$ac_objext conftest.$ac_ext
13715 done
13716else
13717 echo "$as_me: failed program was:" >&5
13718sed 's/^/| /' conftest.$ac_ext >&5
13719
13720ac_lo= ac_hi=
13721fi
13722rm -f conftest.$ac_objext conftest.$ac_ext
13723fi
13724rm -f conftest.$ac_objext conftest.$ac_ext
13725# Binary search between lo and hi bounds.
13726while test "x$ac_lo" != "x$ac_hi"; do
13727 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13728 cat >conftest.$ac_ext <<_ACEOF
13729#line $LINENO "configure"
13730/* confdefs.h. */
13731_ACEOF
13732cat confdefs.h >>conftest.$ac_ext
13733cat >>conftest.$ac_ext <<_ACEOF
13734/* end confdefs.h. */
13735$ac_includes_default
13736int
13737main ()
13738{
13739static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13740test_array [0] = 0
13741
13742 ;
13743 return 0;
13744}
13745_ACEOF
13746rm -f conftest.$ac_objext
13747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13748 (eval $ac_compile) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } &&
13752 { ac_try='test -s conftest.$ac_objext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 ac_hi=$ac_mid
13759else
13760 echo "$as_me: failed program was:" >&5
13761sed 's/^/| /' conftest.$ac_ext >&5
13762
13763ac_lo=`expr '(' $ac_mid ')' + 1`
13764fi
13765rm -f conftest.$ac_objext conftest.$ac_ext
13766done
13767case $ac_lo in
13768?*) ac_cv_sizeof_char=$ac_lo;;
13769'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13770See \`config.log' for more details." >&5
13771echo "$as_me: error: cannot compute sizeof (char), 77
13772See \`config.log' for more details." >&2;}
13773 { (exit 1); exit 1; }; } ;;
13774esac
13775else
13776 if test "$cross_compiling" = yes; then
13777 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13778See \`config.log' for more details." >&5
13779echo "$as_me: error: cannot run test program while cross compiling
13780See \`config.log' for more details." >&2;}
13781 { (exit 1); exit 1; }; }
13782else
13783 cat >conftest.$ac_ext <<_ACEOF
13784#line $LINENO "configure"
13785/* confdefs.h. */
13786_ACEOF
13787cat confdefs.h >>conftest.$ac_ext
13788cat >>conftest.$ac_ext <<_ACEOF
13789/* end confdefs.h. */
13790$ac_includes_default
13791long longval () { return (long) (sizeof (char)); }
13792unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 13793#include <stdio.h>
e6cc62c6
VS
13794#include <stdlib.h>
13795int
13796main ()
247f5006 13797{
e6cc62c6
VS
13798
13799 FILE *f = fopen ("conftest.val", "w");
13800 if (! f)
13801 exit (1);
13802 if (((long) (sizeof (char))) < 0)
13803 {
13804 long i = longval ();
13805 if (i != ((long) (sizeof (char))))
13806 exit (1);
13807 fprintf (f, "%ld\n", i);
13808 }
13809 else
13810 {
13811 unsigned long i = ulongval ();
13812 if (i != ((long) (sizeof (char))))
13813 exit (1);
13814 fprintf (f, "%lu\n", i);
13815 }
13816 exit (ferror (f) || fclose (f) != 0);
13817
13818 ;
13819 return 0;
52127426 13820}
e6cc62c6
VS
13821_ACEOF
13822rm -f conftest$ac_exeext
13823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13824 (eval $ac_link) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13830 ac_status=$?
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
13833 ac_cv_sizeof_char=`cat conftest.val`
13834else
13835 echo "$as_me: program exited with status $ac_status" >&5
13836echo "$as_me: failed program was:" >&5
13837sed 's/^/| /' conftest.$ac_ext >&5
13838
13839( exit $ac_status )
13840{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13841See \`config.log' for more details." >&5
13842echo "$as_me: error: cannot compute sizeof (char), 77
13843See \`config.log' for more details." >&2;}
13844 { (exit 1); exit 1; }; }
13845fi
13846rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13847fi
13848fi
13849rm -f conftest.val
247f5006 13850else
a0b9e27f 13851 ac_cv_sizeof_char=0
247f5006 13852fi
247f5006 13853fi
e6cc62c6
VS
13854echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13855echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13856cat >>confdefs.h <<_ACEOF
13857#define SIZEOF_CHAR $ac_cv_sizeof_char
13858_ACEOF
13859
13860
13861echo "$as_me:$LINENO: checking for short" >&5
13862echo $ECHO_N "checking for short... $ECHO_C" >&6
13863if test "${ac_cv_type_short+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13865else
13866 cat >conftest.$ac_ext <<_ACEOF
13867#line $LINENO "configure"
13868/* confdefs.h. */
13869_ACEOF
13870cat confdefs.h >>conftest.$ac_ext
13871cat >>conftest.$ac_ext <<_ACEOF
13872/* end confdefs.h. */
13873$ac_includes_default
13874int
13875main ()
13876{
13877if ((short *) 0)
13878 return 0;
13879if (sizeof (short))
13880 return 0;
13881 ;
13882 return 0;
13883}
13884_ACEOF
13885rm -f conftest.$ac_objext
13886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13887 (eval $ac_compile) 2>&5
13888 ac_status=$?
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -s conftest.$ac_objext'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13894 ac_status=$?
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13897 ac_cv_type_short=yes
13898else
13899 echo "$as_me: failed program was:" >&5
13900sed 's/^/| /' conftest.$ac_ext >&5
13901
13902ac_cv_type_short=no
13903fi
13904rm -f conftest.$ac_objext conftest.$ac_ext
13905fi
13906echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13907echo "${ECHO_T}$ac_cv_type_short" >&6
13908
13909echo "$as_me:$LINENO: checking size of short" >&5
13910echo $ECHO_N "checking size of short... $ECHO_C" >&6
13911if test "${ac_cv_sizeof_short+set}" = set; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13913else
13914 if test "$ac_cv_type_short" = yes; then
13915 # The cast to unsigned long works around a bug in the HP C Compiler
13916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13918 # This bug is HP SR number 8606223364.
13919 if test "$cross_compiling" = yes; then
13920 # Depending upon the size, compute the lo and hi bounds.
13921cat >conftest.$ac_ext <<_ACEOF
13922#line $LINENO "configure"
13923/* confdefs.h. */
13924_ACEOF
13925cat confdefs.h >>conftest.$ac_ext
13926cat >>conftest.$ac_ext <<_ACEOF
13927/* end confdefs.h. */
13928$ac_includes_default
13929int
13930main ()
13931{
13932static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
13933test_array [0] = 0
247f5006 13934
e6cc62c6
VS
13935 ;
13936 return 0;
13937}
13938_ACEOF
13939rm -f conftest.$ac_objext
13940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13941 (eval $ac_compile) 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } &&
13945 { ac_try='test -s conftest.$ac_objext'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13948 ac_status=$?
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13951 ac_lo=0 ac_mid=0
13952 while :; do
13953 cat >conftest.$ac_ext <<_ACEOF
13954#line $LINENO "configure"
13955/* confdefs.h. */
13956_ACEOF
13957cat confdefs.h >>conftest.$ac_ext
13958cat >>conftest.$ac_ext <<_ACEOF
13959/* end confdefs.h. */
13960$ac_includes_default
13961int
13962main ()
13963{
13964static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13965test_array [0] = 0
13966
13967 ;
13968 return 0;
13969}
13970_ACEOF
13971rm -f conftest.$ac_objext
13972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13973 (eval $ac_compile) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
13977 { ac_try='test -s conftest.$ac_objext'
13978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13980 ac_status=$?
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
13983 ac_hi=$ac_mid; break
13984else
13985 echo "$as_me: failed program was:" >&5
13986sed 's/^/| /' conftest.$ac_ext >&5
13987
13988ac_lo=`expr $ac_mid + 1`
13989 if test $ac_lo -le $ac_mid; then
13990 ac_lo= ac_hi=
13991 break
13992 fi
13993 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 13994fi
e6cc62c6
VS
13995rm -f conftest.$ac_objext conftest.$ac_ext
13996 done
13997else
13998 echo "$as_me: failed program was:" >&5
13999sed 's/^/| /' conftest.$ac_ext >&5
14000
14001cat >conftest.$ac_ext <<_ACEOF
14002#line $LINENO "configure"
14003/* confdefs.h. */
14004_ACEOF
14005cat confdefs.h >>conftest.$ac_ext
14006cat >>conftest.$ac_ext <<_ACEOF
14007/* end confdefs.h. */
14008$ac_includes_default
14009int
14010main ()
14011{
14012static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14013test_array [0] = 0
247f5006 14014
e6cc62c6
VS
14015 ;
14016 return 0;
14017}
14018_ACEOF
14019rm -f conftest.$ac_objext
14020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14021 (eval $ac_compile) 2>&5
14022 ac_status=$?
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } &&
14025 { ac_try='test -s conftest.$ac_objext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14031 ac_hi=-1 ac_mid=-1
14032 while :; do
14033 cat >conftest.$ac_ext <<_ACEOF
14034#line $LINENO "configure"
14035/* confdefs.h. */
14036_ACEOF
14037cat confdefs.h >>conftest.$ac_ext
14038cat >>conftest.$ac_ext <<_ACEOF
14039/* end confdefs.h. */
14040$ac_includes_default
14041int
14042main ()
14043{
14044static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14045test_array [0] = 0
247f5006 14046
e6cc62c6
VS
14047 ;
14048 return 0;
14049}
14050_ACEOF
14051rm -f conftest.$ac_objext
14052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14053 (eval $ac_compile) 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } &&
14057 { ac_try='test -s conftest.$ac_objext'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14060 ac_status=$?
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }; then
14063 ac_lo=$ac_mid; break
14064else
14065 echo "$as_me: failed program was:" >&5
14066sed 's/^/| /' conftest.$ac_ext >&5
14067
14068ac_hi=`expr '(' $ac_mid ')' - 1`
14069 if test $ac_mid -le $ac_hi; then
14070 ac_lo= ac_hi=
14071 break
14072 fi
14073 ac_mid=`expr 2 '*' $ac_mid`
14074fi
14075rm -f conftest.$ac_objext conftest.$ac_ext
14076 done
247f5006 14077else
e6cc62c6
VS
14078 echo "$as_me: failed program was:" >&5
14079sed 's/^/| /' conftest.$ac_ext >&5
14080
14081ac_lo= ac_hi=
14082fi
14083rm -f conftest.$ac_objext conftest.$ac_ext
14084fi
14085rm -f conftest.$ac_objext conftest.$ac_ext
14086# Binary search between lo and hi bounds.
14087while test "x$ac_lo" != "x$ac_hi"; do
14088 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14089 cat >conftest.$ac_ext <<_ACEOF
14090#line $LINENO "configure"
14091/* confdefs.h. */
14092_ACEOF
14093cat confdefs.h >>conftest.$ac_ext
14094cat >>conftest.$ac_ext <<_ACEOF
14095/* end confdefs.h. */
14096$ac_includes_default
14097int
14098main ()
14099{
14100static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14101test_array [0] = 0
14102
14103 ;
14104 return 0;
14105}
14106_ACEOF
14107rm -f conftest.$ac_objext
14108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14109 (eval $ac_compile) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } &&
14113 { ac_try='test -s conftest.$ac_objext'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 ac_hi=$ac_mid
14120else
14121 echo "$as_me: failed program was:" >&5
14122sed 's/^/| /' conftest.$ac_ext >&5
14123
14124ac_lo=`expr '(' $ac_mid ')' + 1`
14125fi
14126rm -f conftest.$ac_objext conftest.$ac_ext
14127done
14128case $ac_lo in
14129?*) ac_cv_sizeof_short=$ac_lo;;
14130'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14131See \`config.log' for more details." >&5
14132echo "$as_me: error: cannot compute sizeof (short), 77
14133See \`config.log' for more details." >&2;}
14134 { (exit 1); exit 1; }; } ;;
14135esac
247f5006 14136else
e6cc62c6
VS
14137 if test "$cross_compiling" = yes; then
14138 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14139See \`config.log' for more details." >&5
14140echo "$as_me: error: cannot run test program while cross compiling
14141See \`config.log' for more details." >&2;}
14142 { (exit 1); exit 1; }; }
14143else
14144 cat >conftest.$ac_ext <<_ACEOF
14145#line $LINENO "configure"
14146/* confdefs.h. */
14147_ACEOF
14148cat confdefs.h >>conftest.$ac_ext
14149cat >>conftest.$ac_ext <<_ACEOF
14150/* end confdefs.h. */
14151$ac_includes_default
14152long longval () { return (long) (sizeof (short)); }
14153unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14154#include <stdio.h>
e6cc62c6
VS
14155#include <stdlib.h>
14156int
14157main ()
a0b9e27f 14158{
e6cc62c6
VS
14159
14160 FILE *f = fopen ("conftest.val", "w");
14161 if (! f)
14162 exit (1);
14163 if (((long) (sizeof (short))) < 0)
14164 {
14165 long i = longval ();
14166 if (i != ((long) (sizeof (short))))
14167 exit (1);
14168 fprintf (f, "%ld\n", i);
14169 }
14170 else
14171 {
14172 unsigned long i = ulongval ();
14173 if (i != ((long) (sizeof (short))))
14174 exit (1);
14175 fprintf (f, "%lu\n", i);
14176 }
14177 exit (ferror (f) || fclose (f) != 0);
14178
14179 ;
14180 return 0;
a0b9e27f 14181}
e6cc62c6
VS
14182_ACEOF
14183rm -f conftest$ac_exeext
14184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14185 (eval $ac_link) 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14191 ac_status=$?
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; }; then
14194 ac_cv_sizeof_short=`cat conftest.val`
14195else
14196 echo "$as_me: program exited with status $ac_status" >&5
14197echo "$as_me: failed program was:" >&5
14198sed 's/^/| /' conftest.$ac_ext >&5
14199
14200( exit $ac_status )
14201{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14202See \`config.log' for more details." >&5
14203echo "$as_me: error: cannot compute sizeof (short), 77
14204See \`config.log' for more details." >&2;}
14205 { (exit 1); exit 1; }; }
14206fi
14207rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14208fi
14209fi
14210rm -f conftest.val
247f5006 14211else
a0b9e27f 14212 ac_cv_sizeof_short=0
247f5006 14213fi
247f5006 14214fi
e6cc62c6
VS
14215echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14216echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14217cat >>confdefs.h <<_ACEOF
14218#define SIZEOF_SHORT $ac_cv_sizeof_short
14219_ACEOF
14220
14221
14222echo "$as_me:$LINENO: checking for void *" >&5
14223echo $ECHO_N "checking for void *... $ECHO_C" >&6
14224if test "${ac_cv_type_void_p+set}" = set; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14226else
14227 cat >conftest.$ac_ext <<_ACEOF
14228#line $LINENO "configure"
14229/* confdefs.h. */
14230_ACEOF
14231cat confdefs.h >>conftest.$ac_ext
14232cat >>conftest.$ac_ext <<_ACEOF
14233/* end confdefs.h. */
14234$ac_includes_default
14235int
14236main ()
14237{
14238if ((void * *) 0)
14239 return 0;
14240if (sizeof (void *))
14241 return 0;
14242 ;
14243 return 0;
14244}
14245_ACEOF
14246rm -f conftest.$ac_objext
14247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14248 (eval $ac_compile) 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } &&
14252 { ac_try='test -s conftest.$ac_objext'
14253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14254 (eval $ac_try) 2>&5
14255 ac_status=$?
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; }; then
14258 ac_cv_type_void_p=yes
14259else
14260 echo "$as_me: failed program was:" >&5
14261sed 's/^/| /' conftest.$ac_ext >&5
14262
14263ac_cv_type_void_p=no
14264fi
14265rm -f conftest.$ac_objext conftest.$ac_ext
14266fi
14267echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14268echo "${ECHO_T}$ac_cv_type_void_p" >&6
14269
14270echo "$as_me:$LINENO: checking size of void *" >&5
14271echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14272if test "${ac_cv_sizeof_void_p+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14274else
14275 if test "$ac_cv_type_void_p" = yes; then
14276 # The cast to unsigned long works around a bug in the HP C Compiler
14277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14279 # This bug is HP SR number 8606223364.
14280 if test "$cross_compiling" = yes; then
14281 # Depending upon the size, compute the lo and hi bounds.
14282cat >conftest.$ac_ext <<_ACEOF
14283#line $LINENO "configure"
14284/* confdefs.h. */
14285_ACEOF
14286cat confdefs.h >>conftest.$ac_ext
14287cat >>conftest.$ac_ext <<_ACEOF
14288/* end confdefs.h. */
14289$ac_includes_default
14290int
14291main ()
14292{
14293static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14294test_array [0] = 0
14295
14296 ;
14297 return 0;
14298}
14299_ACEOF
14300rm -f conftest.$ac_objext
14301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14302 (eval $ac_compile) 2>&5
14303 ac_status=$?
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } &&
14306 { ac_try='test -s conftest.$ac_objext'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
14312 ac_lo=0 ac_mid=0
14313 while :; do
14314 cat >conftest.$ac_ext <<_ACEOF
14315#line $LINENO "configure"
14316/* confdefs.h. */
14317_ACEOF
14318cat confdefs.h >>conftest.$ac_ext
14319cat >>conftest.$ac_ext <<_ACEOF
14320/* end confdefs.h. */
14321$ac_includes_default
14322int
14323main ()
14324{
14325static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14326test_array [0] = 0
247f5006 14327
e6cc62c6
VS
14328 ;
14329 return 0;
14330}
14331_ACEOF
14332rm -f conftest.$ac_objext
14333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14334 (eval $ac_compile) 2>&5
14335 ac_status=$?
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); } &&
14338 { ac_try='test -s conftest.$ac_objext'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14341 ac_status=$?
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; }; then
14344 ac_hi=$ac_mid; break
14345else
14346 echo "$as_me: failed program was:" >&5
14347sed 's/^/| /' conftest.$ac_ext >&5
14348
14349ac_lo=`expr $ac_mid + 1`
14350 if test $ac_lo -le $ac_mid; then
14351 ac_lo= ac_hi=
14352 break
14353 fi
14354 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14355fi
e6cc62c6
VS
14356rm -f conftest.$ac_objext conftest.$ac_ext
14357 done
14358else
14359 echo "$as_me: failed program was:" >&5
14360sed 's/^/| /' conftest.$ac_ext >&5
14361
14362cat >conftest.$ac_ext <<_ACEOF
14363#line $LINENO "configure"
14364/* confdefs.h. */
14365_ACEOF
14366cat confdefs.h >>conftest.$ac_ext
14367cat >>conftest.$ac_ext <<_ACEOF
14368/* end confdefs.h. */
14369$ac_includes_default
14370int
14371main ()
14372{
14373static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14374test_array [0] = 0
247f5006 14375
e6cc62c6
VS
14376 ;
14377 return 0;
14378}
14379_ACEOF
14380rm -f conftest.$ac_objext
14381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382 (eval $ac_compile) 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } &&
14386 { ac_try='test -s conftest.$ac_objext'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; }; then
14392 ac_hi=-1 ac_mid=-1
14393 while :; do
14394 cat >conftest.$ac_ext <<_ACEOF
14395#line $LINENO "configure"
14396/* confdefs.h. */
14397_ACEOF
14398cat confdefs.h >>conftest.$ac_ext
14399cat >>conftest.$ac_ext <<_ACEOF
14400/* end confdefs.h. */
14401$ac_includes_default
14402int
14403main ()
14404{
14405static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14406test_array [0] = 0
247f5006 14407
e6cc62c6
VS
14408 ;
14409 return 0;
14410}
14411_ACEOF
14412rm -f conftest.$ac_objext
14413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14414 (eval $ac_compile) 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -s conftest.$ac_objext'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }; then
14424 ac_lo=$ac_mid; break
14425else
14426 echo "$as_me: failed program was:" >&5
14427sed 's/^/| /' conftest.$ac_ext >&5
14428
14429ac_hi=`expr '(' $ac_mid ')' - 1`
14430 if test $ac_mid -le $ac_hi; then
14431 ac_lo= ac_hi=
14432 break
14433 fi
14434 ac_mid=`expr 2 '*' $ac_mid`
14435fi
14436rm -f conftest.$ac_objext conftest.$ac_ext
14437 done
a0b9e27f 14438else
e6cc62c6
VS
14439 echo "$as_me: failed program was:" >&5
14440sed 's/^/| /' conftest.$ac_ext >&5
14441
14442ac_lo= ac_hi=
14443fi
14444rm -f conftest.$ac_objext conftest.$ac_ext
14445fi
14446rm -f conftest.$ac_objext conftest.$ac_ext
14447# Binary search between lo and hi bounds.
14448while test "x$ac_lo" != "x$ac_hi"; do
14449 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14450 cat >conftest.$ac_ext <<_ACEOF
14451#line $LINENO "configure"
14452/* confdefs.h. */
14453_ACEOF
14454cat confdefs.h >>conftest.$ac_ext
14455cat >>conftest.$ac_ext <<_ACEOF
14456/* end confdefs.h. */
14457$ac_includes_default
14458int
14459main ()
14460{
14461static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14462test_array [0] = 0
14463
14464 ;
14465 return 0;
14466}
14467_ACEOF
14468rm -f conftest.$ac_objext
14469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14470 (eval $ac_compile) 2>&5
14471 ac_status=$?
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } &&
14474 { ac_try='test -s conftest.$ac_objext'
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14477 ac_status=$?
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; }; then
14480 ac_hi=$ac_mid
14481else
14482 echo "$as_me: failed program was:" >&5
14483sed 's/^/| /' conftest.$ac_ext >&5
14484
14485ac_lo=`expr '(' $ac_mid ')' + 1`
14486fi
14487rm -f conftest.$ac_objext conftest.$ac_ext
14488done
14489case $ac_lo in
14490?*) ac_cv_sizeof_void_p=$ac_lo;;
14491'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14492See \`config.log' for more details." >&5
14493echo "$as_me: error: cannot compute sizeof (void *), 77
14494See \`config.log' for more details." >&2;}
14495 { (exit 1); exit 1; }; } ;;
14496esac
247f5006 14497else
e6cc62c6
VS
14498 if test "$cross_compiling" = yes; then
14499 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14500See \`config.log' for more details." >&5
14501echo "$as_me: error: cannot run test program while cross compiling
14502See \`config.log' for more details." >&2;}
14503 { (exit 1); exit 1; }; }
14504else
14505 cat >conftest.$ac_ext <<_ACEOF
14506#line $LINENO "configure"
14507/* confdefs.h. */
14508_ACEOF
14509cat confdefs.h >>conftest.$ac_ext
14510cat >>conftest.$ac_ext <<_ACEOF
14511/* end confdefs.h. */
14512$ac_includes_default
14513long longval () { return (long) (sizeof (void *)); }
14514unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14515#include <stdio.h>
e6cc62c6
VS
14516#include <stdlib.h>
14517int
14518main ()
247f5006 14519{
e6cc62c6
VS
14520
14521 FILE *f = fopen ("conftest.val", "w");
14522 if (! f)
14523 exit (1);
14524 if (((long) (sizeof (void *))) < 0)
14525 {
14526 long i = longval ();
14527 if (i != ((long) (sizeof (void *))))
14528 exit (1);
14529 fprintf (f, "%ld\n", i);
14530 }
14531 else
14532 {
14533 unsigned long i = ulongval ();
14534 if (i != ((long) (sizeof (void *))))
14535 exit (1);
14536 fprintf (f, "%lu\n", i);
14537 }
14538 exit (ferror (f) || fclose (f) != 0);
14539
14540 ;
14541 return 0;
5c6fa7d2 14542}
e6cc62c6
VS
14543_ACEOF
14544rm -f conftest$ac_exeext
14545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14546 (eval $ac_link) 2>&5
14547 ac_status=$?
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14555 ac_cv_sizeof_void_p=`cat conftest.val`
14556else
14557 echo "$as_me: program exited with status $ac_status" >&5
14558echo "$as_me: failed program was:" >&5
14559sed 's/^/| /' conftest.$ac_ext >&5
14560
14561( exit $ac_status )
14562{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14563See \`config.log' for more details." >&5
14564echo "$as_me: error: cannot compute sizeof (void *), 77
14565See \`config.log' for more details." >&2;}
14566 { (exit 1); exit 1; }; }
14567fi
14568rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14569fi
14570fi
14571rm -f conftest.val
a0b9e27f 14572else
a0b9e27f
MB
14573 ac_cv_sizeof_void_p=0
14574fi
a0b9e27f 14575fi
e6cc62c6
VS
14576echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14577echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14578cat >>confdefs.h <<_ACEOF
14579#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14580_ACEOF
14581
14582
14583echo "$as_me:$LINENO: checking for int" >&5
14584echo $ECHO_N "checking for int... $ECHO_C" >&6
14585if test "${ac_cv_type_int+set}" = set; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14587else
14588 cat >conftest.$ac_ext <<_ACEOF
14589#line $LINENO "configure"
14590/* confdefs.h. */
14591_ACEOF
14592cat confdefs.h >>conftest.$ac_ext
14593cat >>conftest.$ac_ext <<_ACEOF
14594/* end confdefs.h. */
14595$ac_includes_default
14596int
14597main ()
14598{
14599if ((int *) 0)
14600 return 0;
14601if (sizeof (int))
14602 return 0;
14603 ;
14604 return 0;
14605}
14606_ACEOF
14607rm -f conftest.$ac_objext
14608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14609 (eval $ac_compile) 2>&5
14610 ac_status=$?
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } &&
14613 { ac_try='test -s conftest.$ac_objext'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 ac_cv_type_int=yes
14620else
14621 echo "$as_me: failed program was:" >&5
14622sed 's/^/| /' conftest.$ac_ext >&5
14623
14624ac_cv_type_int=no
14625fi
14626rm -f conftest.$ac_objext conftest.$ac_ext
14627fi
14628echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14629echo "${ECHO_T}$ac_cv_type_int" >&6
14630
14631echo "$as_me:$LINENO: checking size of int" >&5
14632echo $ECHO_N "checking size of int... $ECHO_C" >&6
14633if test "${ac_cv_sizeof_int+set}" = set; then
14634 echo $ECHO_N "(cached) $ECHO_C" >&6
14635else
14636 if test "$ac_cv_type_int" = yes; then
14637 # The cast to unsigned long works around a bug in the HP C Compiler
14638 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14639 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14640 # This bug is HP SR number 8606223364.
14641 if test "$cross_compiling" = yes; then
14642 # Depending upon the size, compute the lo and hi bounds.
14643cat >conftest.$ac_ext <<_ACEOF
14644#line $LINENO "configure"
14645/* confdefs.h. */
14646_ACEOF
14647cat confdefs.h >>conftest.$ac_ext
14648cat >>conftest.$ac_ext <<_ACEOF
14649/* end confdefs.h. */
14650$ac_includes_default
14651int
14652main ()
14653{
14654static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14655test_array [0] = 0
8284b0c5 14656
e6cc62c6
VS
14657 ;
14658 return 0;
14659}
14660_ACEOF
14661rm -f conftest.$ac_objext
14662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14663 (eval $ac_compile) 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } &&
14667 { ac_try='test -s conftest.$ac_objext'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; }; then
14673 ac_lo=0 ac_mid=0
14674 while :; do
14675 cat >conftest.$ac_ext <<_ACEOF
14676#line $LINENO "configure"
14677/* confdefs.h. */
14678_ACEOF
14679cat confdefs.h >>conftest.$ac_ext
14680cat >>conftest.$ac_ext <<_ACEOF
14681/* end confdefs.h. */
14682$ac_includes_default
14683int
14684main ()
14685{
14686static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14687test_array [0] = 0
14688
14689 ;
14690 return 0;
14691}
14692_ACEOF
14693rm -f conftest.$ac_objext
14694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14695 (eval $ac_compile) 2>&5
14696 ac_status=$?
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } &&
14699 { ac_try='test -s conftest.$ac_objext'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; }; then
14705 ac_hi=$ac_mid; break
14706else
14707 echo "$as_me: failed program was:" >&5
14708sed 's/^/| /' conftest.$ac_ext >&5
14709
14710ac_lo=`expr $ac_mid + 1`
14711 if test $ac_lo -le $ac_mid; then
14712 ac_lo= ac_hi=
14713 break
14714 fi
14715 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14716fi
e6cc62c6
VS
14717rm -f conftest.$ac_objext conftest.$ac_ext
14718 done
14719else
14720 echo "$as_me: failed program was:" >&5
14721sed 's/^/| /' conftest.$ac_ext >&5
14722
14723cat >conftest.$ac_ext <<_ACEOF
14724#line $LINENO "configure"
14725/* confdefs.h. */
14726_ACEOF
14727cat confdefs.h >>conftest.$ac_ext
14728cat >>conftest.$ac_ext <<_ACEOF
14729/* end confdefs.h. */
14730$ac_includes_default
14731int
14732main ()
14733{
14734static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14735test_array [0] = 0
247f5006 14736
e6cc62c6
VS
14737 ;
14738 return 0;
14739}
14740_ACEOF
14741rm -f conftest.$ac_objext
14742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14743 (eval $ac_compile) 2>&5
14744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } &&
14747 { ac_try='test -s conftest.$ac_objext'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14750 ac_status=$?
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; }; then
14753 ac_hi=-1 ac_mid=-1
14754 while :; do
14755 cat >conftest.$ac_ext <<_ACEOF
14756#line $LINENO "configure"
14757/* confdefs.h. */
14758_ACEOF
14759cat confdefs.h >>conftest.$ac_ext
14760cat >>conftest.$ac_ext <<_ACEOF
14761/* end confdefs.h. */
14762$ac_includes_default
14763int
14764main ()
14765{
14766static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14767test_array [0] = 0
247f5006 14768
e6cc62c6
VS
14769 ;
14770 return 0;
14771}
14772_ACEOF
14773rm -f conftest.$ac_objext
14774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14775 (eval $ac_compile) 2>&5
14776 ac_status=$?
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } &&
14779 { ac_try='test -s conftest.$ac_objext'
14780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781 (eval $ac_try) 2>&5
14782 ac_status=$?
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; }; then
14785 ac_lo=$ac_mid; break
14786else
14787 echo "$as_me: failed program was:" >&5
14788sed 's/^/| /' conftest.$ac_ext >&5
14789
14790ac_hi=`expr '(' $ac_mid ')' - 1`
14791 if test $ac_mid -le $ac_hi; then
14792 ac_lo= ac_hi=
14793 break
14794 fi
14795 ac_mid=`expr 2 '*' $ac_mid`
14796fi
14797rm -f conftest.$ac_objext conftest.$ac_ext
14798 done
247f5006 14799else
e6cc62c6
VS
14800 echo "$as_me: failed program was:" >&5
14801sed 's/^/| /' conftest.$ac_ext >&5
14802
14803ac_lo= ac_hi=
14804fi
14805rm -f conftest.$ac_objext conftest.$ac_ext
14806fi
14807rm -f conftest.$ac_objext conftest.$ac_ext
14808# Binary search between lo and hi bounds.
14809while test "x$ac_lo" != "x$ac_hi"; do
14810 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14811 cat >conftest.$ac_ext <<_ACEOF
14812#line $LINENO "configure"
14813/* confdefs.h. */
14814_ACEOF
14815cat confdefs.h >>conftest.$ac_ext
14816cat >>conftest.$ac_ext <<_ACEOF
14817/* end confdefs.h. */
14818$ac_includes_default
14819int
14820main ()
14821{
14822static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14823test_array [0] = 0
14824
14825 ;
14826 return 0;
14827}
14828_ACEOF
14829rm -f conftest.$ac_objext
14830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14831 (eval $ac_compile) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); } &&
14835 { ac_try='test -s conftest.$ac_objext'
14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; }; then
14841 ac_hi=$ac_mid
14842else
14843 echo "$as_me: failed program was:" >&5
14844sed 's/^/| /' conftest.$ac_ext >&5
14845
14846ac_lo=`expr '(' $ac_mid ')' + 1`
14847fi
14848rm -f conftest.$ac_objext conftest.$ac_ext
14849done
14850case $ac_lo in
14851?*) ac_cv_sizeof_int=$ac_lo;;
14852'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14853See \`config.log' for more details." >&5
14854echo "$as_me: error: cannot compute sizeof (int), 77
14855See \`config.log' for more details." >&2;}
14856 { (exit 1); exit 1; }; } ;;
14857esac
a0b9e27f 14858else
e6cc62c6
VS
14859 if test "$cross_compiling" = yes; then
14860 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14861See \`config.log' for more details." >&5
14862echo "$as_me: error: cannot run test program while cross compiling
14863See \`config.log' for more details." >&2;}
14864 { (exit 1); exit 1; }; }
14865else
14866 cat >conftest.$ac_ext <<_ACEOF
14867#line $LINENO "configure"
14868/* confdefs.h. */
14869_ACEOF
14870cat confdefs.h >>conftest.$ac_ext
14871cat >>conftest.$ac_ext <<_ACEOF
14872/* end confdefs.h. */
14873$ac_includes_default
14874long longval () { return (long) (sizeof (int)); }
14875unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 14876#include <stdio.h>
e6cc62c6
VS
14877#include <stdlib.h>
14878int
14879main ()
247f5006 14880{
e6cc62c6
VS
14881
14882 FILE *f = fopen ("conftest.val", "w");
14883 if (! f)
14884 exit (1);
14885 if (((long) (sizeof (int))) < 0)
14886 {
14887 long i = longval ();
14888 if (i != ((long) (sizeof (int))))
14889 exit (1);
14890 fprintf (f, "%ld\n", i);
14891 }
14892 else
14893 {
14894 unsigned long i = ulongval ();
14895 if (i != ((long) (sizeof (int))))
14896 exit (1);
14897 fprintf (f, "%lu\n", i);
14898 }
14899 exit (ferror (f) || fclose (f) != 0);
14900
14901 ;
14902 return 0;
247f5006 14903}
e6cc62c6
VS
14904_ACEOF
14905rm -f conftest$ac_exeext
14906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14907 (eval $ac_link) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; }; then
14916 ac_cv_sizeof_int=`cat conftest.val`
14917else
14918 echo "$as_me: program exited with status $ac_status" >&5
14919echo "$as_me: failed program was:" >&5
14920sed 's/^/| /' conftest.$ac_ext >&5
14921
14922( exit $ac_status )
14923{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14924See \`config.log' for more details." >&5
14925echo "$as_me: error: cannot compute sizeof (int), 77
14926See \`config.log' for more details." >&2;}
14927 { (exit 1); exit 1; }; }
14928fi
14929rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14930fi
14931fi
14932rm -f conftest.val
6f72b082 14933else
a0b9e27f 14934 ac_cv_sizeof_int=0
21d1c967 14935fi
698dcdb6 14936fi
e6cc62c6
VS
14937echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14938echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14939cat >>confdefs.h <<_ACEOF
14940#define SIZEOF_INT $ac_cv_sizeof_int
14941_ACEOF
14942
14943
14944echo "$as_me:$LINENO: checking for long" >&5
14945echo $ECHO_N "checking for long... $ECHO_C" >&6
14946if test "${ac_cv_type_long+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14948else
14949 cat >conftest.$ac_ext <<_ACEOF
14950#line $LINENO "configure"
14951/* confdefs.h. */
14952_ACEOF
14953cat confdefs.h >>conftest.$ac_ext
14954cat >>conftest.$ac_ext <<_ACEOF
14955/* end confdefs.h. */
14956$ac_includes_default
14957int
14958main ()
14959{
14960if ((long *) 0)
14961 return 0;
14962if (sizeof (long))
14963 return 0;
14964 ;
14965 return 0;
14966}
14967_ACEOF
14968rm -f conftest.$ac_objext
14969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14970 (eval $ac_compile) 2>&5
14971 ac_status=$?
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
14974 { ac_try='test -s conftest.$ac_objext'
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14977 ac_status=$?
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; }; then
14980 ac_cv_type_long=yes
14981else
14982 echo "$as_me: failed program was:" >&5
14983sed 's/^/| /' conftest.$ac_ext >&5
14984
14985ac_cv_type_long=no
14986fi
14987rm -f conftest.$ac_objext conftest.$ac_ext
14988fi
14989echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14990echo "${ECHO_T}$ac_cv_type_long" >&6
14991
14992echo "$as_me:$LINENO: checking size of long" >&5
14993echo $ECHO_N "checking size of long... $ECHO_C" >&6
14994if test "${ac_cv_sizeof_long+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996else
14997 if test "$ac_cv_type_long" = yes; then
14998 # The cast to unsigned long works around a bug in the HP C Compiler
14999 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15000 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15001 # This bug is HP SR number 8606223364.
15002 if test "$cross_compiling" = yes; then
15003 # Depending upon the size, compute the lo and hi bounds.
15004cat >conftest.$ac_ext <<_ACEOF
15005#line $LINENO "configure"
15006/* confdefs.h. */
15007_ACEOF
15008cat confdefs.h >>conftest.$ac_ext
15009cat >>conftest.$ac_ext <<_ACEOF
15010/* end confdefs.h. */
15011$ac_includes_default
15012int
15013main ()
15014{
15015static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15016test_array [0] = 0
15017
15018 ;
15019 return 0;
15020}
15021_ACEOF
15022rm -f conftest.$ac_objext
15023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15024 (eval $ac_compile) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } &&
15028 { ac_try='test -s conftest.$ac_objext'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; }; then
15034 ac_lo=0 ac_mid=0
15035 while :; do
15036 cat >conftest.$ac_ext <<_ACEOF
15037#line $LINENO "configure"
15038/* confdefs.h. */
15039_ACEOF
15040cat confdefs.h >>conftest.$ac_ext
15041cat >>conftest.$ac_ext <<_ACEOF
15042/* end confdefs.h. */
15043$ac_includes_default
15044int
15045main ()
15046{
15047static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15048test_array [0] = 0
4f14bcd8 15049
e6cc62c6
VS
15050 ;
15051 return 0;
15052}
15053_ACEOF
15054rm -f conftest.$ac_objext
15055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15056 (eval $ac_compile) 2>&5
15057 ac_status=$?
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } &&
15060 { ac_try='test -s conftest.$ac_objext'
15061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15062 (eval $ac_try) 2>&5
15063 ac_status=$?
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); }; }; then
15066 ac_hi=$ac_mid; break
15067else
15068 echo "$as_me: failed program was:" >&5
15069sed 's/^/| /' conftest.$ac_ext >&5
15070
15071ac_lo=`expr $ac_mid + 1`
15072 if test $ac_lo -le $ac_mid; then
15073 ac_lo= ac_hi=
15074 break
15075 fi
15076 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15077fi
e6cc62c6
VS
15078rm -f conftest.$ac_objext conftest.$ac_ext
15079 done
15080else
15081 echo "$as_me: failed program was:" >&5
15082sed 's/^/| /' conftest.$ac_ext >&5
15083
15084cat >conftest.$ac_ext <<_ACEOF
15085#line $LINENO "configure"
15086/* confdefs.h. */
15087_ACEOF
15088cat confdefs.h >>conftest.$ac_ext
15089cat >>conftest.$ac_ext <<_ACEOF
15090/* end confdefs.h. */
15091$ac_includes_default
15092int
15093main ()
15094{
15095static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15096test_array [0] = 0
4f14bcd8 15097
e6cc62c6
VS
15098 ;
15099 return 0;
15100}
15101_ACEOF
15102rm -f conftest.$ac_objext
15103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15104 (eval $ac_compile) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
15108 { ac_try='test -s conftest.$ac_objext'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 ac_hi=-1 ac_mid=-1
15115 while :; do
15116 cat >conftest.$ac_ext <<_ACEOF
15117#line $LINENO "configure"
15118/* confdefs.h. */
15119_ACEOF
15120cat confdefs.h >>conftest.$ac_ext
15121cat >>conftest.$ac_ext <<_ACEOF
15122/* end confdefs.h. */
15123$ac_includes_default
15124int
15125main ()
15126{
15127static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15128test_array [0] = 0
5c6fa7d2 15129
e6cc62c6
VS
15130 ;
15131 return 0;
15132}
15133_ACEOF
15134rm -f conftest.$ac_objext
15135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15136 (eval $ac_compile) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } &&
15140 { ac_try='test -s conftest.$ac_objext'
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15143 ac_status=$?
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; }; then
15146 ac_lo=$ac_mid; break
15147else
15148 echo "$as_me: failed program was:" >&5
15149sed 's/^/| /' conftest.$ac_ext >&5
15150
15151ac_hi=`expr '(' $ac_mid ')' - 1`
15152 if test $ac_mid -le $ac_hi; then
15153 ac_lo= ac_hi=
15154 break
15155 fi
15156 ac_mid=`expr 2 '*' $ac_mid`
15157fi
15158rm -f conftest.$ac_objext conftest.$ac_ext
15159 done
247f5006 15160else
e6cc62c6
VS
15161 echo "$as_me: failed program was:" >&5
15162sed 's/^/| /' conftest.$ac_ext >&5
15163
15164ac_lo= ac_hi=
15165fi
15166rm -f conftest.$ac_objext conftest.$ac_ext
15167fi
15168rm -f conftest.$ac_objext conftest.$ac_ext
15169# Binary search between lo and hi bounds.
15170while test "x$ac_lo" != "x$ac_hi"; do
15171 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15172 cat >conftest.$ac_ext <<_ACEOF
15173#line $LINENO "configure"
15174/* confdefs.h. */
15175_ACEOF
15176cat confdefs.h >>conftest.$ac_ext
15177cat >>conftest.$ac_ext <<_ACEOF
15178/* end confdefs.h. */
15179$ac_includes_default
15180int
15181main ()
15182{
15183static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15184test_array [0] = 0
15185
15186 ;
15187 return 0;
15188}
15189_ACEOF
15190rm -f conftest.$ac_objext
15191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15192 (eval $ac_compile) 2>&5
15193 ac_status=$?
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); } &&
15196 { ac_try='test -s conftest.$ac_objext'
15197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198 (eval $ac_try) 2>&5
15199 ac_status=$?
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); }; }; then
15202 ac_hi=$ac_mid
15203else
15204 echo "$as_me: failed program was:" >&5
15205sed 's/^/| /' conftest.$ac_ext >&5
15206
15207ac_lo=`expr '(' $ac_mid ')' + 1`
15208fi
15209rm -f conftest.$ac_objext conftest.$ac_ext
15210done
15211case $ac_lo in
15212?*) ac_cv_sizeof_long=$ac_lo;;
15213'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15214See \`config.log' for more details." >&5
15215echo "$as_me: error: cannot compute sizeof (long), 77
15216See \`config.log' for more details." >&2;}
15217 { (exit 1); exit 1; }; } ;;
15218esac
247f5006 15219else
e6cc62c6
VS
15220 if test "$cross_compiling" = yes; then
15221 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15222See \`config.log' for more details." >&5
15223echo "$as_me: error: cannot run test program while cross compiling
15224See \`config.log' for more details." >&2;}
15225 { (exit 1); exit 1; }; }
15226else
15227 cat >conftest.$ac_ext <<_ACEOF
15228#line $LINENO "configure"
15229/* confdefs.h. */
15230_ACEOF
15231cat confdefs.h >>conftest.$ac_ext
15232cat >>conftest.$ac_ext <<_ACEOF
15233/* end confdefs.h. */
15234$ac_includes_default
15235long longval () { return (long) (sizeof (long)); }
15236unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15237#include <stdio.h>
e6cc62c6
VS
15238#include <stdlib.h>
15239int
15240main ()
247f5006 15241{
e6cc62c6
VS
15242
15243 FILE *f = fopen ("conftest.val", "w");
15244 if (! f)
15245 exit (1);
15246 if (((long) (sizeof (long))) < 0)
15247 {
15248 long i = longval ();
15249 if (i != ((long) (sizeof (long))))
15250 exit (1);
15251 fprintf (f, "%ld\n", i);
15252 }
15253 else
15254 {
15255 unsigned long i = ulongval ();
15256 if (i != ((long) (sizeof (long))))
15257 exit (1);
15258 fprintf (f, "%lu\n", i);
15259 }
15260 exit (ferror (f) || fclose (f) != 0);
15261
15262 ;
15263 return 0;
247f5006 15264}
e6cc62c6
VS
15265_ACEOF
15266rm -f conftest$ac_exeext
15267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15268 (eval $ac_link) 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15273 (eval $ac_try) 2>&5
15274 ac_status=$?
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); }; }; then
15277 ac_cv_sizeof_long=`cat conftest.val`
15278else
15279 echo "$as_me: program exited with status $ac_status" >&5
15280echo "$as_me: failed program was:" >&5
15281sed 's/^/| /' conftest.$ac_ext >&5
15282
15283( exit $ac_status )
15284{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15285See \`config.log' for more details." >&5
15286echo "$as_me: error: cannot compute sizeof (long), 77
15287See \`config.log' for more details." >&2;}
15288 { (exit 1); exit 1; }; }
15289fi
15290rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15291fi
15292fi
15293rm -f conftest.val
247f5006 15294else
a0b9e27f 15295 ac_cv_sizeof_long=0
247f5006 15296fi
247f5006 15297fi
e6cc62c6
VS
15298echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15299echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15300cat >>confdefs.h <<_ACEOF
a0b9e27f 15301#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15302_ACEOF
247f5006 15303
a0b9e27f
MB
15304
15305
15306case "${host}" in
15307 arm-*-linux* )
e6cc62c6
VS
15308 echo "$as_me:$LINENO: checking for long long" >&5
15309echo $ECHO_N "checking for long long... $ECHO_C" >&6
15310if test "${ac_cv_type_long_long+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15312else
15313 cat >conftest.$ac_ext <<_ACEOF
15314#line $LINENO "configure"
15315/* confdefs.h. */
15316_ACEOF
15317cat confdefs.h >>conftest.$ac_ext
15318cat >>conftest.$ac_ext <<_ACEOF
15319/* end confdefs.h. */
15320$ac_includes_default
15321int
15322main ()
15323{
15324if ((long long *) 0)
15325 return 0;
15326if (sizeof (long long))
15327 return 0;
15328 ;
15329 return 0;
15330}
15331_ACEOF
15332rm -f conftest.$ac_objext
15333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15334 (eval $ac_compile) 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -s conftest.$ac_objext'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15344 ac_cv_type_long_long=yes
15345else
15346 echo "$as_me: failed program was:" >&5
15347sed 's/^/| /' conftest.$ac_ext >&5
15348
15349ac_cv_type_long_long=no
15350fi
15351rm -f conftest.$ac_objext conftest.$ac_ext
15352fi
15353echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15354echo "${ECHO_T}$ac_cv_type_long_long" >&6
15355
15356echo "$as_me:$LINENO: checking size of long long" >&5
15357echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15358if test "${ac_cv_sizeof_long_long+set}" = set; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15360else
15361 if test "$ac_cv_type_long_long" = yes; then
15362 # The cast to unsigned long works around a bug in the HP C Compiler
15363 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15364 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15365 # This bug is HP SR number 8606223364.
a0b9e27f 15366 if test "$cross_compiling" = yes; then
e6cc62c6
VS
15367 # Depending upon the size, compute the lo and hi bounds.
15368cat >conftest.$ac_ext <<_ACEOF
15369#line $LINENO "configure"
15370/* confdefs.h. */
15371_ACEOF
15372cat confdefs.h >>conftest.$ac_ext
15373cat >>conftest.$ac_ext <<_ACEOF
15374/* end confdefs.h. */
15375$ac_includes_default
15376int
15377main ()
15378{
15379static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15380test_array [0] = 0
15381
15382 ;
15383 return 0;
15384}
15385_ACEOF
15386rm -f conftest.$ac_objext
15387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15388 (eval $ac_compile) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } &&
15392 { ac_try='test -s conftest.$ac_objext'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_lo=0 ac_mid=0
15399 while :; do
15400 cat >conftest.$ac_ext <<_ACEOF
15401#line $LINENO "configure"
15402/* confdefs.h. */
15403_ACEOF
15404cat confdefs.h >>conftest.$ac_ext
15405cat >>conftest.$ac_ext <<_ACEOF
15406/* end confdefs.h. */
15407$ac_includes_default
15408int
15409main ()
15410{
15411static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15412test_array [0] = 0
15413
15414 ;
15415 return 0;
15416}
15417_ACEOF
15418rm -f conftest.$ac_objext
15419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15420 (eval $ac_compile) 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } &&
15424 { ac_try='test -s conftest.$ac_objext'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15427 ac_status=$?
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 ac_hi=$ac_mid; break
15431else
15432 echo "$as_me: failed program was:" >&5
15433sed 's/^/| /' conftest.$ac_ext >&5
15434
15435ac_lo=`expr $ac_mid + 1`
15436 if test $ac_lo -le $ac_mid; then
15437 ac_lo= ac_hi=
15438 break
15439 fi
15440 ac_mid=`expr 2 '*' $ac_mid + 1`
15441fi
15442rm -f conftest.$ac_objext conftest.$ac_ext
15443 done
15444else
15445 echo "$as_me: failed program was:" >&5
15446sed 's/^/| /' conftest.$ac_ext >&5
15447
15448cat >conftest.$ac_ext <<_ACEOF
15449#line $LINENO "configure"
15450/* confdefs.h. */
15451_ACEOF
15452cat confdefs.h >>conftest.$ac_ext
15453cat >>conftest.$ac_ext <<_ACEOF
15454/* end confdefs.h. */
15455$ac_includes_default
15456int
15457main ()
15458{
15459static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15460test_array [0] = 0
15461
15462 ;
15463 return 0;
15464}
15465_ACEOF
15466rm -f conftest.$ac_objext
15467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15468 (eval $ac_compile) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); } &&
15472 { ac_try='test -s conftest.$ac_objext'
15473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_hi=-1 ac_mid=-1
15479 while :; do
15480 cat >conftest.$ac_ext <<_ACEOF
15481#line $LINENO "configure"
15482/* confdefs.h. */
15483_ACEOF
15484cat confdefs.h >>conftest.$ac_ext
15485cat >>conftest.$ac_ext <<_ACEOF
15486/* end confdefs.h. */
15487$ac_includes_default
15488int
15489main ()
15490{
15491static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15492test_array [0] = 0
15493
15494 ;
15495 return 0;
15496}
15497_ACEOF
15498rm -f conftest.$ac_objext
15499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15500 (eval $ac_compile) 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
15504 { ac_try='test -s conftest.$ac_objext'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510 ac_lo=$ac_mid; break
15511else
15512 echo "$as_me: failed program was:" >&5
15513sed 's/^/| /' conftest.$ac_ext >&5
15514
15515ac_hi=`expr '(' $ac_mid ')' - 1`
15516 if test $ac_mid -le $ac_hi; then
15517 ac_lo= ac_hi=
15518 break
15519 fi
15520 ac_mid=`expr 2 '*' $ac_mid`
15521fi
15522rm -f conftest.$ac_objext conftest.$ac_ext
15523 done
15524else
15525 echo "$as_me: failed program was:" >&5
15526sed 's/^/| /' conftest.$ac_ext >&5
15527
15528ac_lo= ac_hi=
15529fi
15530rm -f conftest.$ac_objext conftest.$ac_ext
15531fi
15532rm -f conftest.$ac_objext conftest.$ac_ext
15533# Binary search between lo and hi bounds.
15534while test "x$ac_lo" != "x$ac_hi"; do
15535 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15536 cat >conftest.$ac_ext <<_ACEOF
15537#line $LINENO "configure"
15538/* confdefs.h. */
15539_ACEOF
15540cat confdefs.h >>conftest.$ac_ext
15541cat >>conftest.$ac_ext <<_ACEOF
15542/* end confdefs.h. */
15543$ac_includes_default
15544int
15545main ()
15546{
15547static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15548test_array [0] = 0
15549
15550 ;
15551 return 0;
15552}
15553_ACEOF
15554rm -f conftest.$ac_objext
15555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15556 (eval $ac_compile) 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } &&
15560 { ac_try='test -s conftest.$ac_objext'
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }; then
15566 ac_hi=$ac_mid
15567else
15568 echo "$as_me: failed program was:" >&5
15569sed 's/^/| /' conftest.$ac_ext >&5
15570
15571ac_lo=`expr '(' $ac_mid ')' + 1`
15572fi
15573rm -f conftest.$ac_objext conftest.$ac_ext
15574done
15575case $ac_lo in
15576?*) ac_cv_sizeof_long_long=$ac_lo;;
15577'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15578See \`config.log' for more details." >&5
15579echo "$as_me: error: cannot compute sizeof (long long), 77
15580See \`config.log' for more details." >&2;}
15581 { (exit 1); exit 1; }; } ;;
15582esac
a0b9e27f 15583else
e6cc62c6
VS
15584 if test "$cross_compiling" = yes; then
15585 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15586See \`config.log' for more details." >&5
15587echo "$as_me: error: cannot run test program while cross compiling
15588See \`config.log' for more details." >&2;}
15589 { (exit 1); exit 1; }; }
15590else
15591 cat >conftest.$ac_ext <<_ACEOF
15592#line $LINENO "configure"
15593/* confdefs.h. */
15594_ACEOF
15595cat confdefs.h >>conftest.$ac_ext
15596cat >>conftest.$ac_ext <<_ACEOF
15597/* end confdefs.h. */
15598$ac_includes_default
15599long longval () { return (long) (sizeof (long long)); }
15600unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 15601#include <stdio.h>
e6cc62c6
VS
15602#include <stdlib.h>
15603int
15604main ()
247f5006 15605{
e6cc62c6
VS
15606
15607 FILE *f = fopen ("conftest.val", "w");
15608 if (! f)
15609 exit (1);
15610 if (((long) (sizeof (long long))) < 0)
15611 {
15612 long i = longval ();
15613 if (i != ((long) (sizeof (long long))))
15614 exit (1);
15615 fprintf (f, "%ld\n", i);
15616 }
15617 else
15618 {
15619 unsigned long i = ulongval ();
15620 if (i != ((long) (sizeof (long long))))
15621 exit (1);
15622 fprintf (f, "%lu\n", i);
15623 }
15624 exit (ferror (f) || fclose (f) != 0);
15625
15626 ;
15627 return 0;
247f5006 15628}
e6cc62c6
VS
15629_ACEOF
15630rm -f conftest$ac_exeext
15631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15632 (eval $ac_link) 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 ac_cv_sizeof_long_long=`cat conftest.val`
15642else
15643 echo "$as_me: program exited with status $ac_status" >&5
15644echo "$as_me: failed program was:" >&5
15645sed 's/^/| /' conftest.$ac_ext >&5
15646
15647( exit $ac_status )
15648{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15649See \`config.log' for more details." >&5
15650echo "$as_me: error: cannot compute sizeof (long long), 77
15651See \`config.log' for more details." >&2;}
15652 { (exit 1); exit 1; }; }
15653fi
15654rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15655fi
15656fi
15657rm -f conftest.val
7b4a847f 15658else
a0b9e27f 15659 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
15660fi
15661fi
e6cc62c6
VS
15662echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15663echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15664cat >>confdefs.h <<_ACEOF
15665#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15666_ACEOF
15667
15668
15669 ;;
15670 *-hp-hpux* )
15671 echo "$as_me:$LINENO: checking for long long" >&5
15672echo $ECHO_N "checking for long long... $ECHO_C" >&6
15673if test "${ac_cv_type_long_long+set}" = set; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15675else
15676 cat >conftest.$ac_ext <<_ACEOF
15677#line $LINENO "configure"
15678/* confdefs.h. */
15679_ACEOF
15680cat confdefs.h >>conftest.$ac_ext
15681cat >>conftest.$ac_ext <<_ACEOF
15682/* end confdefs.h. */
15683$ac_includes_default
15684int
15685main ()
15686{
15687if ((long long *) 0)
15688 return 0;
15689if (sizeof (long long))
15690 return 0;
15691 ;
15692 return 0;
15693}
15694_ACEOF
15695rm -f conftest.$ac_objext
15696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15697 (eval $ac_compile) 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try='test -s conftest.$ac_objext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 ac_cv_type_long_long=yes
15708else
15709 echo "$as_me: failed program was:" >&5
15710sed 's/^/| /' conftest.$ac_ext >&5
15711
15712ac_cv_type_long_long=no
15713fi
15714rm -f conftest.$ac_objext conftest.$ac_ext
15715fi
15716echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15717echo "${ECHO_T}$ac_cv_type_long_long" >&6
15718
15719echo "$as_me:$LINENO: checking size of long long" >&5
15720echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15721if test "${ac_cv_sizeof_long_long+set}" = set; then
15722 echo $ECHO_N "(cached) $ECHO_C" >&6
15723else
15724 if test "$ac_cv_type_long_long" = yes; then
15725 # The cast to unsigned long works around a bug in the HP C Compiler
15726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15728 # This bug is HP SR number 8606223364.
15729 if test "$cross_compiling" = yes; then
15730 # Depending upon the size, compute the lo and hi bounds.
15731cat >conftest.$ac_ext <<_ACEOF
15732#line $LINENO "configure"
15733/* confdefs.h. */
15734_ACEOF
15735cat confdefs.h >>conftest.$ac_ext
15736cat >>conftest.$ac_ext <<_ACEOF
15737/* end confdefs.h. */
15738$ac_includes_default
15739int
15740main ()
15741{
15742static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15743test_array [0] = 0
15744
15745 ;
15746 return 0;
15747}
15748_ACEOF
15749rm -f conftest.$ac_objext
15750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15751 (eval $ac_compile) 2>&5
15752 ac_status=$?
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } &&
15755 { ac_try='test -s conftest.$ac_objext'
15756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15757 (eval $ac_try) 2>&5
15758 ac_status=$?
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); }; }; then
15761 ac_lo=0 ac_mid=0
15762 while :; do
15763 cat >conftest.$ac_ext <<_ACEOF
15764#line $LINENO "configure"
15765/* confdefs.h. */
15766_ACEOF
15767cat confdefs.h >>conftest.$ac_ext
15768cat >>conftest.$ac_ext <<_ACEOF
15769/* end confdefs.h. */
15770$ac_includes_default
15771int
15772main ()
15773{
15774static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15775test_array [0] = 0
8284b0c5 15776
e6cc62c6
VS
15777 ;
15778 return 0;
15779}
15780_ACEOF
15781rm -f conftest.$ac_objext
15782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15783 (eval $ac_compile) 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } &&
15787 { ac_try='test -s conftest.$ac_objext'
15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15790 ac_status=$?
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793 ac_hi=$ac_mid; break
15794else
15795 echo "$as_me: failed program was:" >&5
15796sed 's/^/| /' conftest.$ac_ext >&5
15797
15798ac_lo=`expr $ac_mid + 1`
15799 if test $ac_lo -le $ac_mid; then
15800 ac_lo= ac_hi=
15801 break
15802 fi
15803 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 15804fi
e6cc62c6
VS
15805rm -f conftest.$ac_objext conftest.$ac_ext
15806 done
15807else
15808 echo "$as_me: failed program was:" >&5
15809sed 's/^/| /' conftest.$ac_ext >&5
15810
15811cat >conftest.$ac_ext <<_ACEOF
15812#line $LINENO "configure"
15813/* confdefs.h. */
15814_ACEOF
15815cat confdefs.h >>conftest.$ac_ext
15816cat >>conftest.$ac_ext <<_ACEOF
15817/* end confdefs.h. */
15818$ac_includes_default
15819int
15820main ()
15821{
15822static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15823test_array [0] = 0
a0b9e27f 15824
e6cc62c6
VS
15825 ;
15826 return 0;
15827}
15828_ACEOF
15829rm -f conftest.$ac_objext
15830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15831 (eval $ac_compile) 2>&5
15832 ac_status=$?
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } &&
15835 { ac_try='test -s conftest.$ac_objext'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15838 ac_status=$?
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; }; then
15841 ac_hi=-1 ac_mid=-1
15842 while :; do
15843 cat >conftest.$ac_ext <<_ACEOF
15844#line $LINENO "configure"
15845/* confdefs.h. */
15846_ACEOF
15847cat confdefs.h >>conftest.$ac_ext
15848cat >>conftest.$ac_ext <<_ACEOF
15849/* end confdefs.h. */
15850$ac_includes_default
15851int
15852main ()
15853{
15854static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15855test_array [0] = 0
a0b9e27f 15856
e6cc62c6
VS
15857 ;
15858 return 0;
15859}
15860_ACEOF
15861rm -f conftest.$ac_objext
15862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15863 (eval $ac_compile) 2>&5
15864 ac_status=$?
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); } &&
15867 { ac_try='test -s conftest.$ac_objext'
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; }; then
15873 ac_lo=$ac_mid; break
15874else
15875 echo "$as_me: failed program was:" >&5
15876sed 's/^/| /' conftest.$ac_ext >&5
15877
15878ac_hi=`expr '(' $ac_mid ')' - 1`
15879 if test $ac_mid -le $ac_hi; then
15880 ac_lo= ac_hi=
15881 break
15882 fi
15883 ac_mid=`expr 2 '*' $ac_mid`
15884fi
15885rm -f conftest.$ac_objext conftest.$ac_ext
15886 done
8284b0c5 15887else
e6cc62c6
VS
15888 echo "$as_me: failed program was:" >&5
15889sed 's/^/| /' conftest.$ac_ext >&5
15890
15891ac_lo= ac_hi=
15892fi
15893rm -f conftest.$ac_objext conftest.$ac_ext
15894fi
15895rm -f conftest.$ac_objext conftest.$ac_ext
15896# Binary search between lo and hi bounds.
15897while test "x$ac_lo" != "x$ac_hi"; do
15898 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15899 cat >conftest.$ac_ext <<_ACEOF
15900#line $LINENO "configure"
15901/* confdefs.h. */
15902_ACEOF
15903cat confdefs.h >>conftest.$ac_ext
15904cat >>conftest.$ac_ext <<_ACEOF
15905/* end confdefs.h. */
15906$ac_includes_default
15907int
15908main ()
15909{
15910static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15911test_array [0] = 0
15912
15913 ;
15914 return 0;
15915}
15916_ACEOF
15917rm -f conftest.$ac_objext
15918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15919 (eval $ac_compile) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } &&
15923 { ac_try='test -s conftest.$ac_objext'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; }; then
15929 ac_hi=$ac_mid
15930else
15931 echo "$as_me: failed program was:" >&5
15932sed 's/^/| /' conftest.$ac_ext >&5
15933
15934ac_lo=`expr '(' $ac_mid ')' + 1`
15935fi
15936rm -f conftest.$ac_objext conftest.$ac_ext
15937done
15938case $ac_lo in
15939?*) ac_cv_sizeof_long_long=$ac_lo;;
15940'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15941See \`config.log' for more details." >&5
15942echo "$as_me: error: cannot compute sizeof (long long), 77
15943See \`config.log' for more details." >&2;}
15944 { (exit 1); exit 1; }; } ;;
15945esac
8284b0c5 15946else
e6cc62c6
VS
15947 if test "$cross_compiling" = yes; then
15948 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15949See \`config.log' for more details." >&5
15950echo "$as_me: error: cannot run test program while cross compiling
15951See \`config.log' for more details." >&2;}
15952 { (exit 1); exit 1; }; }
15953else
15954 cat >conftest.$ac_ext <<_ACEOF
15955#line $LINENO "configure"
15956/* confdefs.h. */
15957_ACEOF
15958cat confdefs.h >>conftest.$ac_ext
15959cat >>conftest.$ac_ext <<_ACEOF
15960/* end confdefs.h. */
15961$ac_includes_default
15962long longval () { return (long) (sizeof (long long)); }
15963unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 15964#include <stdio.h>
e6cc62c6
VS
15965#include <stdlib.h>
15966int
15967main ()
8284b0c5 15968{
e6cc62c6
VS
15969
15970 FILE *f = fopen ("conftest.val", "w");
15971 if (! f)
15972 exit (1);
15973 if (((long) (sizeof (long long))) < 0)
15974 {
15975 long i = longval ();
15976 if (i != ((long) (sizeof (long long))))
15977 exit (1);
15978 fprintf (f, "%ld\n", i);
15979 }
15980 else
15981 {
15982 unsigned long i = ulongval ();
15983 if (i != ((long) (sizeof (long long))))
15984 exit (1);
15985 fprintf (f, "%lu\n", i);
15986 }
15987 exit (ferror (f) || fclose (f) != 0);
15988
15989 ;
15990 return 0;
8284b0c5 15991}
e6cc62c6
VS
15992_ACEOF
15993rm -f conftest$ac_exeext
15994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15995 (eval $ac_link) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000 (eval $ac_try) 2>&5
16001 ac_status=$?
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; }; then
16004 ac_cv_sizeof_long_long=`cat conftest.val`
16005else
16006 echo "$as_me: program exited with status $ac_status" >&5
16007echo "$as_me: failed program was:" >&5
16008sed 's/^/| /' conftest.$ac_ext >&5
16009
16010( exit $ac_status )
16011{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16012See \`config.log' for more details." >&5
16013echo "$as_me: error: cannot compute sizeof (long long), 77
16014See \`config.log' for more details." >&2;}
16015 { (exit 1); exit 1; }; }
16016fi
16017rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16018fi
16019fi
16020rm -f conftest.val
5c6fa7d2
RR
16021else
16022 ac_cv_sizeof_long_long=0
52127426 16023fi
4f57cf11 16024fi
e6cc62c6
VS
16025echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16026echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16027cat >>confdefs.h <<_ACEOF
4f57cf11 16028#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16029_ACEOF
4f57cf11
GD
16030
16031
16032 if test "$ac_cv_sizeof_long_long" != "0"; then
16033 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16034 fi
16035 ;;
16036 * )
e6cc62c6
VS
16037 echo "$as_me:$LINENO: checking for long long" >&5
16038echo $ECHO_N "checking for long long... $ECHO_C" >&6
16039if test "${ac_cv_type_long_long+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16041else
16042 cat >conftest.$ac_ext <<_ACEOF
16043#line $LINENO "configure"
16044/* confdefs.h. */
16045_ACEOF
16046cat confdefs.h >>conftest.$ac_ext
16047cat >>conftest.$ac_ext <<_ACEOF
16048/* end confdefs.h. */
16049$ac_includes_default
16050int
16051main ()
16052{
16053if ((long long *) 0)
16054 return 0;
16055if (sizeof (long long))
16056 return 0;
16057 ;
16058 return 0;
16059}
16060_ACEOF
16061rm -f conftest.$ac_objext
16062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16063 (eval $ac_compile) 2>&5
16064 ac_status=$?
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } &&
16067 { ac_try='test -s conftest.$ac_objext'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16070 ac_status=$?
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; }; then
16073 ac_cv_type_long_long=yes
16074else
16075 echo "$as_me: failed program was:" >&5
16076sed 's/^/| /' conftest.$ac_ext >&5
16077
16078ac_cv_type_long_long=no
16079fi
16080rm -f conftest.$ac_objext conftest.$ac_ext
16081fi
16082echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16083echo "${ECHO_T}$ac_cv_type_long_long" >&6
16084
16085echo "$as_me:$LINENO: checking size of long long" >&5
16086echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16087if test "${ac_cv_sizeof_long_long+set}" = set; then
16088 echo $ECHO_N "(cached) $ECHO_C" >&6
16089else
16090 if test "$ac_cv_type_long_long" = yes; then
16091 # The cast to unsigned long works around a bug in the HP C Compiler
16092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16094 # This bug is HP SR number 8606223364.
4f57cf11 16095 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16096 # Depending upon the size, compute the lo and hi bounds.
16097cat >conftest.$ac_ext <<_ACEOF
16098#line $LINENO "configure"
16099/* confdefs.h. */
16100_ACEOF
16101cat confdefs.h >>conftest.$ac_ext
16102cat >>conftest.$ac_ext <<_ACEOF
16103/* end confdefs.h. */
16104$ac_includes_default
16105int
16106main ()
16107{
16108static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16109test_array [0] = 0
16110
16111 ;
16112 return 0;
16113}
16114_ACEOF
16115rm -f conftest.$ac_objext
16116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16117 (eval $ac_compile) 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try='test -s conftest.$ac_objext'
16122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123 (eval $ac_try) 2>&5
16124 ac_status=$?
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; }; then
16127 ac_lo=0 ac_mid=0
16128 while :; do
16129 cat >conftest.$ac_ext <<_ACEOF
16130#line $LINENO "configure"
16131/* confdefs.h. */
16132_ACEOF
16133cat confdefs.h >>conftest.$ac_ext
16134cat >>conftest.$ac_ext <<_ACEOF
16135/* end confdefs.h. */
16136$ac_includes_default
16137int
16138main ()
16139{
16140static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16141test_array [0] = 0
16142
16143 ;
16144 return 0;
16145}
16146_ACEOF
16147rm -f conftest.$ac_objext
16148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16149 (eval $ac_compile) 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } &&
16153 { ac_try='test -s conftest.$ac_objext'
16154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16155 (eval $ac_try) 2>&5
16156 ac_status=$?
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); }; }; then
16159 ac_hi=$ac_mid; break
16160else
16161 echo "$as_me: failed program was:" >&5
16162sed 's/^/| /' conftest.$ac_ext >&5
16163
16164ac_lo=`expr $ac_mid + 1`
16165 if test $ac_lo -le $ac_mid; then
16166 ac_lo= ac_hi=
16167 break
16168 fi
16169 ac_mid=`expr 2 '*' $ac_mid + 1`
16170fi
16171rm -f conftest.$ac_objext conftest.$ac_ext
16172 done
16173else
16174 echo "$as_me: failed program was:" >&5
16175sed 's/^/| /' conftest.$ac_ext >&5
16176
16177cat >conftest.$ac_ext <<_ACEOF
16178#line $LINENO "configure"
16179/* confdefs.h. */
16180_ACEOF
16181cat confdefs.h >>conftest.$ac_ext
16182cat >>conftest.$ac_ext <<_ACEOF
16183/* end confdefs.h. */
16184$ac_includes_default
16185int
16186main ()
16187{
16188static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16189test_array [0] = 0
16190
16191 ;
16192 return 0;
16193}
16194_ACEOF
16195rm -f conftest.$ac_objext
16196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16197 (eval $ac_compile) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try='test -s conftest.$ac_objext'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; }; then
16207 ac_hi=-1 ac_mid=-1
16208 while :; do
16209 cat >conftest.$ac_ext <<_ACEOF
16210#line $LINENO "configure"
16211/* confdefs.h. */
16212_ACEOF
16213cat confdefs.h >>conftest.$ac_ext
16214cat >>conftest.$ac_ext <<_ACEOF
16215/* end confdefs.h. */
16216$ac_includes_default
16217int
16218main ()
16219{
16220static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16221test_array [0] = 0
16222
16223 ;
16224 return 0;
16225}
16226_ACEOF
16227rm -f conftest.$ac_objext
16228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16229 (eval $ac_compile) 2>&5
16230 ac_status=$?
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } &&
16233 { ac_try='test -s conftest.$ac_objext'
16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235 (eval $ac_try) 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; }; then
16239 ac_lo=$ac_mid; break
16240else
16241 echo "$as_me: failed program was:" >&5
16242sed 's/^/| /' conftest.$ac_ext >&5
16243
16244ac_hi=`expr '(' $ac_mid ')' - 1`
16245 if test $ac_mid -le $ac_hi; then
16246 ac_lo= ac_hi=
16247 break
16248 fi
16249 ac_mid=`expr 2 '*' $ac_mid`
16250fi
16251rm -f conftest.$ac_objext conftest.$ac_ext
16252 done
4f57cf11 16253else
e6cc62c6
VS
16254 echo "$as_me: failed program was:" >&5
16255sed 's/^/| /' conftest.$ac_ext >&5
16256
16257ac_lo= ac_hi=
16258fi
16259rm -f conftest.$ac_objext conftest.$ac_ext
16260fi
16261rm -f conftest.$ac_objext conftest.$ac_ext
16262# Binary search between lo and hi bounds.
16263while test "x$ac_lo" != "x$ac_hi"; do
16264 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16265 cat >conftest.$ac_ext <<_ACEOF
16266#line $LINENO "configure"
16267/* confdefs.h. */
16268_ACEOF
16269cat confdefs.h >>conftest.$ac_ext
16270cat >>conftest.$ac_ext <<_ACEOF
16271/* end confdefs.h. */
16272$ac_includes_default
16273int
16274main ()
16275{
16276static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16277test_array [0] = 0
16278
16279 ;
16280 return 0;
16281}
16282_ACEOF
16283rm -f conftest.$ac_objext
16284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16285 (eval $ac_compile) 2>&5
16286 ac_status=$?
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); } &&
16289 { ac_try='test -s conftest.$ac_objext'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; }; then
16295 ac_hi=$ac_mid
16296else
16297 echo "$as_me: failed program was:" >&5
16298sed 's/^/| /' conftest.$ac_ext >&5
16299
16300ac_lo=`expr '(' $ac_mid ')' + 1`
16301fi
16302rm -f conftest.$ac_objext conftest.$ac_ext
16303done
16304case $ac_lo in
16305?*) ac_cv_sizeof_long_long=$ac_lo;;
16306'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16307See \`config.log' for more details." >&5
16308echo "$as_me: error: cannot compute sizeof (long long), 77
16309See \`config.log' for more details." >&2;}
16310 { (exit 1); exit 1; }; } ;;
16311esac
16312else
16313 if test "$cross_compiling" = yes; then
16314 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16315See \`config.log' for more details." >&5
16316echo "$as_me: error: cannot run test program while cross compiling
16317See \`config.log' for more details." >&2;}
16318 { (exit 1); exit 1; }; }
16319else
16320 cat >conftest.$ac_ext <<_ACEOF
16321#line $LINENO "configure"
16322/* confdefs.h. */
16323_ACEOF
16324cat confdefs.h >>conftest.$ac_ext
16325cat >>conftest.$ac_ext <<_ACEOF
16326/* end confdefs.h. */
16327$ac_includes_default
16328long longval () { return (long) (sizeof (long long)); }
16329unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 16330#include <stdio.h>
e6cc62c6
VS
16331#include <stdlib.h>
16332int
16333main ()
4f57cf11 16334{
e6cc62c6
VS
16335
16336 FILE *f = fopen ("conftest.val", "w");
16337 if (! f)
16338 exit (1);
16339 if (((long) (sizeof (long long))) < 0)
16340 {
16341 long i = longval ();
16342 if (i != ((long) (sizeof (long long))))
16343 exit (1);
16344 fprintf (f, "%ld\n", i);
16345 }
16346 else
16347 {
16348 unsigned long i = ulongval ();
16349 if (i != ((long) (sizeof (long long))))
16350 exit (1);
16351 fprintf (f, "%lu\n", i);
16352 }
16353 exit (ferror (f) || fclose (f) != 0);
16354
16355 ;
16356 return 0;
4f57cf11 16357}
e6cc62c6
VS
16358_ACEOF
16359rm -f conftest$ac_exeext
16360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16361 (eval $ac_link) 2>&5
16362 ac_status=$?
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16366 (eval $ac_try) 2>&5
16367 ac_status=$?
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); }; }; then
16370 ac_cv_sizeof_long_long=`cat conftest.val`
16371else
16372 echo "$as_me: program exited with status $ac_status" >&5
16373echo "$as_me: failed program was:" >&5
16374sed 's/^/| /' conftest.$ac_ext >&5
16375
16376( exit $ac_status )
16377{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16378See \`config.log' for more details." >&5
16379echo "$as_me: error: cannot compute sizeof (long long), 77
16380See \`config.log' for more details." >&2;}
16381 { (exit 1); exit 1; }; }
16382fi
16383rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16384fi
16385fi
16386rm -f conftest.val
4f57cf11 16387else
4f57cf11
GD
16388 ac_cv_sizeof_long_long=0
16389fi
7b4a847f 16390fi
e6cc62c6
VS
16391echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16392echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16393cat >>confdefs.h <<_ACEOF
21d1c967 16394#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16395_ACEOF
9e691f46 16396
8284b0c5 16397
21d1c967
GD
16398esac
16399
e6cc62c6
VS
16400echo "$as_me:$LINENO: checking size of wchar_t" >&5
16401echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16402if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 16404else
e6cc62c6 16405
21d1c967 16406 if test "$cross_compiling" = yes; then
e6cc62c6 16407
2b5f62a0
VZ
16408 case "${host}" in
16409 *-pc-msdosdjgpp )
16410 wx_cv_sizeof_wchar_t=0
16411 ;;
16412 * )
16413 wx_cv_sizeof_wchar_t=4
16414 ;;
16415 esac
e6cc62c6
VS
16416
16417
6f72b082 16418else
e6cc62c6
VS
16419 cat >conftest.$ac_ext <<_ACEOF
16420#line $LINENO "configure"
16421/* confdefs.h. */
16422_ACEOF
16423cat confdefs.h >>conftest.$ac_ext
16424cat >>conftest.$ac_ext <<_ACEOF
16425/* end confdefs.h. */
21d1c967 16426
2b5f62a0
VZ
16427 /* DJGPP only has fake wchar_t: */
16428 #ifdef __DJGPP__
16429 # error "fake wchar_t"
16430 #endif
21d1c967
GD
16431 #ifdef HAVE_WCHAR_H
16432 # ifdef __CYGWIN__
16433 # include <stddef.h>
16434 # endif
16435 # include <wchar.h>
16436 #endif
16437 #ifdef HAVE_STDLIB_H
16438 # include <stdlib.h>
16439 #endif
16440 #include <stdio.h>
16441 int main()
16442 {
16443 FILE *f=fopen("conftestval", "w");
16444 if (!f) exit(1);
16445 fprintf(f, "%i", sizeof(wchar_t));
16446 exit(0);
16447 }
e6cc62c6
VS
16448
16449_ACEOF
16450rm -f conftest$ac_exeext
16451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16452 (eval $ac_link) 2>&5
16453 ac_status=$?
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16458 ac_status=$?
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
21d1c967 16461 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 16462else
e6cc62c6
VS
16463 echo "$as_me: program exited with status $ac_status" >&5
16464echo "$as_me: failed program was:" >&5
16465sed 's/^/| /' conftest.$ac_ext >&5
16466
16467( exit $ac_status )
16468wx_cv_sizeof_wchar_t=0
6f72b082 16469fi
e6cc62c6 16470rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 16471fi
6f72b082 16472
3f345b47 16473fi
e6cc62c6
VS
16474echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16475echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 16476
e6cc62c6 16477cat >>confdefs.h <<_ACEOF
21d1c967 16478#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 16479_ACEOF
90dd450c 16480
8284b0c5 16481
21d1c967
GD
16482# Check whether --enable-largefile or --disable-largefile was given.
16483if test "${enable_largefile+set}" = set; then
16484 enableval="$enable_largefile"
3f345b47 16485
e6cc62c6 16486fi;
21d1c967
GD
16487if test "$enable_largefile" != no; then
16488 wx_largefile=no
e6cc62c6
VS
16489
16490 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16491echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16492if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16494else
16495
16496 cat >conftest.$ac_ext <<_ACEOF
16497#line $LINENO "configure"
16498/* confdefs.h. */
16499_ACEOF
16500cat confdefs.h >>conftest.$ac_ext
16501cat >>conftest.$ac_ext <<_ACEOF
16502/* end confdefs.h. */
21d1c967
GD
16503#define _FILE_OFFSET_BITS 64
16504 #include <sys/types.h>
e6cc62c6
VS
16505int
16506main ()
16507{
21d1c967
GD
16508typedef struct {
16509 unsigned int field: sizeof(off_t) == 8;
16510} wxlf;
16511
e6cc62c6
VS
16512 ;
16513 return 0;
16514}
16515_ACEOF
16516rm -f conftest.$ac_objext
16517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16518 (eval $ac_compile) 2>&5
16519 ac_status=$?
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); } &&
16522 { ac_try='test -s conftest.$ac_objext'
16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; }; then
21d1c967 16528 ac_cv_sys_file_offset_bits=64
f6bcfd97 16529else
e6cc62c6
VS
16530 echo "$as_me: failed program was:" >&5
16531sed 's/^/| /' conftest.$ac_ext >&5
16532
16533ac_cv_sys_file_offset_bits=no
247f5006 16534fi
e6cc62c6
VS
16535rm -f conftest.$ac_objext conftest.$ac_ext
16536
a0b9e27f 16537
e6cc62c6
VS
16538fi
16539echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16540echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
16541
16542 if test "$ac_cv_sys_file_offset_bits" != no; then
16543 wx_largefile=yes
e6cc62c6 16544 cat >>confdefs.h <<_ACEOF
21d1c967 16545#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 16546_ACEOF
21d1c967
GD
16547
16548 fi
16549
16550 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
16551
16552 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16553echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16554if test "${ac_cv_sys_large_files+set}" = set; then
16555 echo $ECHO_N "(cached) $ECHO_C" >&6
16556else
16557
16558 cat >conftest.$ac_ext <<_ACEOF
16559#line $LINENO "configure"
16560/* confdefs.h. */
16561_ACEOF
16562cat confdefs.h >>conftest.$ac_ext
16563cat >>conftest.$ac_ext <<_ACEOF
16564/* end confdefs.h. */
21d1c967
GD
16565#define _LARGE_FILES 1
16566 #include <sys/types.h>
e6cc62c6
VS
16567int
16568main ()
16569{
21d1c967
GD
16570typedef struct {
16571 unsigned int field: sizeof(off_t) == 8;
16572} wxlf;
16573
e6cc62c6
VS
16574 ;
16575 return 0;
16576}
16577_ACEOF
16578rm -f conftest.$ac_objext
16579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16580 (eval $ac_compile) 2>&5
16581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); } &&
16584 { ac_try='test -s conftest.$ac_objext'
16585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586 (eval $ac_try) 2>&5
16587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; }; then
21d1c967 16590 ac_cv_sys_large_files=1
f6bcfd97 16591else
e6cc62c6
VS
16592 echo "$as_me: failed program was:" >&5
16593sed 's/^/| /' conftest.$ac_ext >&5
16594
16595ac_cv_sys_large_files=no
247f5006 16596fi
e6cc62c6 16597rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 16598
e6cc62c6
VS
16599
16600fi
16601echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16602echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 16603
21d1c967
GD
16604 if test "$ac_cv_sys_large_files" != no; then
16605 wx_largefile=yes
e6cc62c6 16606 cat >>confdefs.h <<_ACEOF
21d1c967 16607#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 16608_ACEOF
90dd450c 16609
90dd450c
VZ
16610 fi
16611
90dd450c 16612 fi
90dd450c 16613
e6cc62c6
VS
16614 echo "$as_me:$LINENO: checking if large file support is available" >&5
16615echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 16616 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 16617 cat >>confdefs.h <<\_ACEOF
21d1c967 16618#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 16619_ACEOF
90dd450c 16620
90dd450c 16621 fi
e6cc62c6
VS
16622 echo "$as_me:$LINENO: result: $wx_largefile" >&5
16623echo "${ECHO_T}$wx_largefile" >&6
21d1c967 16624fi
90dd450c 16625
8284b0c5 16626
f02444d0 16627if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
16628 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16629 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 16630 else
e26c13cf 16631 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 16632 fi
e26c13cf 16633 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
16634fi
16635
e6cc62c6
VS
16636echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16637echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16638if test "${ac_cv_c_bigendian+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 16640else
21d1c967
GD
16641 ac_cv_c_bigendian=unknown
16642# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6
VS
16643cat >conftest.$ac_ext <<_ACEOF
16644#line $LINENO "configure"
16645/* confdefs.h. */
16646_ACEOF
16647cat confdefs.h >>conftest.$ac_ext
16648cat >>conftest.$ac_ext <<_ACEOF
16649/* end confdefs.h. */
21d1c967
GD
16650#include <sys/types.h>
16651#include <sys/param.h>
e6cc62c6
VS
16652int
16653main ()
16654{
21d1c967
GD
16655
16656#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16657 bogus endian macros
16658#endif
e6cc62c6
VS
16659 ;
16660 return 0;
16661}
16662_ACEOF
16663rm -f conftest.$ac_objext
16664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16665 (eval $ac_compile) 2>&5
16666 ac_status=$?
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } &&
16669 { ac_try='test -s conftest.$ac_objext'
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16672 ac_status=$?
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; }; then
21d1c967 16675 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6
VS
16676cat >conftest.$ac_ext <<_ACEOF
16677#line $LINENO "configure"
16678/* confdefs.h. */
16679_ACEOF
16680cat confdefs.h >>conftest.$ac_ext
16681cat >>conftest.$ac_ext <<_ACEOF
16682/* end confdefs.h. */
21d1c967
GD
16683#include <sys/types.h>
16684#include <sys/param.h>
e6cc62c6
VS
16685int
16686main ()
16687{
21d1c967
GD
16688
16689#if BYTE_ORDER != BIG_ENDIAN
16690 not big endian
16691#endif
e6cc62c6
VS
16692 ;
16693 return 0;
16694}
16695_ACEOF
16696rm -f conftest.$ac_objext
16697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16698 (eval $ac_compile) 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } &&
16702 { ac_try='test -s conftest.$ac_objext'
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
21d1c967 16708 ac_cv_c_bigendian=yes
3f345b47 16709else
e6cc62c6
VS
16710 echo "$as_me: failed program was:" >&5
16711sed 's/^/| /' conftest.$ac_ext >&5
16712
16713ac_cv_c_bigendian=no
3f345b47 16714fi
e6cc62c6 16715rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 16716else
e6cc62c6
VS
16717 echo "$as_me: failed program was:" >&5
16718sed 's/^/| /' conftest.$ac_ext >&5
16719
3f345b47 16720fi
e6cc62c6 16721rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
16722if test $ac_cv_c_bigendian = unknown; then
16723if test "$cross_compiling" = yes; then
16724 ac_cv_c_bigendian=unknown
10f2d63a 16725else
e6cc62c6
VS
16726 cat >conftest.$ac_ext <<_ACEOF
16727#line $LINENO "configure"
16728/* confdefs.h. */
16729_ACEOF
16730cat confdefs.h >>conftest.$ac_ext
16731cat >>conftest.$ac_ext <<_ACEOF
16732/* end confdefs.h. */
21d1c967
GD
16733main () {
16734 /* Are we little or big endian? From Harbison&Steele. */
16735 union
16736 {
16737 long l;
16738 char c[sizeof (long)];
16739 } u;
16740 u.l = 1;
16741 exit (u.c[sizeof (long) - 1] == 1);
16742}
e6cc62c6
VS
16743_ACEOF
16744rm -f conftest$ac_exeext
16745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16746 (eval $ac_link) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; }; then
21d1c967 16755 ac_cv_c_bigendian=no
3f345b47 16756else
e6cc62c6
VS
16757 echo "$as_me: program exited with status $ac_status" >&5
16758echo "$as_me: failed program was:" >&5
16759sed 's/^/| /' conftest.$ac_ext >&5
16760
16761( exit $ac_status )
16762ac_cv_c_bigendian=yes
247f5006 16763fi
e6cc62c6 16764rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 16765fi
3f345b47 16766fi
8168de4c 16767fi
e6cc62c6
VS
16768echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16769echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 16770if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
16771 { 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
16772echo "$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
16773fi
16774if test $ac_cv_c_bigendian = yes; then
e6cc62c6 16775 cat >>confdefs.h <<\_ACEOF
247f5006 16776#define WORDS_BIGENDIAN 1
e6cc62c6 16777_ACEOF
247f5006
VZ
16778
16779fi
16780
16781
e6cc62c6
VS
16782
16783ac_ext=cc
16784ac_cpp='$CXXCPP $CPPFLAGS'
16785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16788echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16789echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 16790if test -z "$CXXCPP"; then
e6cc62c6
VS
16791 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16793else
16794 # Double quotes because CXXCPP needs to be expanded
16795 for CXXCPP in "$CXX -E" "/lib/cpp"
16796 do
16797 ac_preproc_ok=false
16798for ac_cxx_preproc_warn_flag in '' yes
16799do
16800 # Use a header file that comes with gcc, so configuring glibc
16801 # with a fresh cross-compiler works.
16802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16803 # <limits.h> exists even on freestanding compilers.
16804 # On the NeXT, cc -E runs the code through the compiler's parser,
16805 # not just through cpp. "Syntax error" is here to catch this case.
16806 cat >conftest.$ac_ext <<_ACEOF
16807#line $LINENO "configure"
16808/* confdefs.h. */
16809_ACEOF
16810cat confdefs.h >>conftest.$ac_ext
16811cat >>conftest.$ac_ext <<_ACEOF
16812/* end confdefs.h. */
16813#ifdef __STDC__
16814# include <limits.h>
16815#else
16816# include <assert.h>
16817#endif
16818 Syntax error
16819_ACEOF
16820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16822 ac_status=$?
16823 grep -v '^ *+' conftest.er1 >conftest.err
16824 rm -f conftest.er1
16825 cat conftest.err >&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } >/dev/null; then
16828 if test -s conftest.err; then
16829 ac_cpp_err=$ac_cxx_preproc_warn_flag
16830 else
16831 ac_cpp_err=
16832 fi
247f5006 16833else
e6cc62c6
VS
16834 ac_cpp_err=yes
16835fi
16836if test -z "$ac_cpp_err"; then
16837 :
16838else
16839 echo "$as_me: failed program was:" >&5
16840sed 's/^/| /' conftest.$ac_ext >&5
16841
16842 # Broken: fails on valid input.
16843continue
16844fi
16845rm -f conftest.err conftest.$ac_ext
16846
16847 # OK, works on sane cases. Now check whether non-existent headers
16848 # can be detected and how.
16849 cat >conftest.$ac_ext <<_ACEOF
16850#line $LINENO "configure"
16851/* confdefs.h. */
16852_ACEOF
16853cat confdefs.h >>conftest.$ac_ext
16854cat >>conftest.$ac_ext <<_ACEOF
16855/* end confdefs.h. */
16856#include <ac_nonexistent.h>
16857_ACEOF
16858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16860 ac_status=$?
16861 grep -v '^ *+' conftest.er1 >conftest.err
16862 rm -f conftest.er1
16863 cat conftest.err >&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } >/dev/null; then
16866 if test -s conftest.err; then
16867 ac_cpp_err=$ac_cxx_preproc_warn_flag
16868 else
16869 ac_cpp_err=
16870 fi
16871else
16872 ac_cpp_err=yes
16873fi
16874if test -z "$ac_cpp_err"; then
16875 # Broken: success on invalid input.
16876continue
16877else
16878 echo "$as_me: failed program was:" >&5
16879sed 's/^/| /' conftest.$ac_ext >&5
16880
16881 # Passes both tests.
16882ac_preproc_ok=:
16883break
16884fi
16885rm -f conftest.err conftest.$ac_ext
16886
16887done
16888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16889rm -f conftest.err conftest.$ac_ext
16890if $ac_preproc_ok; then
16891 break
16892fi
16893
16894 done
16895 ac_cv_prog_CXXCPP=$CXXCPP
16896
16897fi
16898 CXXCPP=$ac_cv_prog_CXXCPP
16899else
16900 ac_cv_prog_CXXCPP=$CXXCPP
16901fi
16902echo "$as_me:$LINENO: result: $CXXCPP" >&5
16903echo "${ECHO_T}$CXXCPP" >&6
16904ac_preproc_ok=false
16905for ac_cxx_preproc_warn_flag in '' yes
16906do
16907 # Use a header file that comes with gcc, so configuring glibc
16908 # with a fresh cross-compiler works.
16909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16910 # <limits.h> exists even on freestanding compilers.
16911 # On the NeXT, cc -E runs the code through the compiler's parser,
16912 # not just through cpp. "Syntax error" is here to catch this case.
16913 cat >conftest.$ac_ext <<_ACEOF
16914#line $LINENO "configure"
16915/* confdefs.h. */
16916_ACEOF
16917cat confdefs.h >>conftest.$ac_ext
16918cat >>conftest.$ac_ext <<_ACEOF
16919/* end confdefs.h. */
16920#ifdef __STDC__
16921# include <limits.h>
16922#else
16923# include <assert.h>
16924#endif
16925 Syntax error
16926_ACEOF
16927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16929 ac_status=$?
16930 grep -v '^ *+' conftest.er1 >conftest.err
16931 rm -f conftest.er1
16932 cat conftest.err >&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } >/dev/null; then
16935 if test -s conftest.err; then
16936 ac_cpp_err=$ac_cxx_preproc_warn_flag
16937 else
16938 ac_cpp_err=
16939 fi
16940else
16941 ac_cpp_err=yes
16942fi
16943if test -z "$ac_cpp_err"; then
21d1c967 16944 :
698dcdb6 16945else
e6cc62c6
VS
16946 echo "$as_me: failed program was:" >&5
16947sed 's/^/| /' conftest.$ac_ext >&5
16948
16949 # Broken: fails on valid input.
16950continue
16951fi
16952rm -f conftest.err conftest.$ac_ext
16953
16954 # OK, works on sane cases. Now check whether non-existent headers
16955 # can be detected and how.
16956 cat >conftest.$ac_ext <<_ACEOF
16957#line $LINENO "configure"
16958/* confdefs.h. */
16959_ACEOF
16960cat confdefs.h >>conftest.$ac_ext
16961cat >>conftest.$ac_ext <<_ACEOF
16962/* end confdefs.h. */
16963#include <ac_nonexistent.h>
16964_ACEOF
16965if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16967 ac_status=$?
16968 grep -v '^ *+' conftest.er1 >conftest.err
16969 rm -f conftest.er1
16970 cat conftest.err >&5
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); } >/dev/null; then
16973 if test -s conftest.err; then
16974 ac_cpp_err=$ac_cxx_preproc_warn_flag
16975 else
16976 ac_cpp_err=
16977 fi
16978else
16979 ac_cpp_err=yes
247f5006 16980fi
e6cc62c6
VS
16981if test -z "$ac_cpp_err"; then
16982 # Broken: success on invalid input.
16983continue
16984else
16985 echo "$as_me: failed program was:" >&5
16986sed 's/^/| /' conftest.$ac_ext >&5
16987
16988 # Passes both tests.
16989ac_preproc_ok=:
16990break
328a083c 16991fi
e6cc62c6
VS
16992rm -f conftest.err conftest.$ac_ext
16993
16994done
16995# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16996rm -f conftest.err conftest.$ac_ext
16997if $ac_preproc_ok; then
16998 :
16999else
17000 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17001See \`config.log' for more details." >&5
17002echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17003See \`config.log' for more details." >&2;}
17004 { (exit 1); exit 1; }; }
90dd450c 17005fi
e6cc62c6
VS
17006
17007ac_ext=cc
17008ac_cpp='$CXXCPP $CPPFLAGS'
17009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17012
1e6feb95 17013
1725144d 17014
21d1c967 17015 if test "$cross_compiling" = "yes"; then
e6cc62c6 17016 cat >>confdefs.h <<\_ACEOF
21d1c967 17017#define wxUSE_IOSTREAMH 1
e6cc62c6 17018_ACEOF
ab9b9eab 17019
21d1c967 17020 else
e6cc62c6
VS
17021
17022
17023 ac_ext=cc
5c6fa7d2 17024ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17028
52127426 17029
247f5006 17030
e6cc62c6 17031for ac_header in iostream
21d1c967 17032do
e6cc62c6
VS
17033as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17034if eval "test \"\${$as_ac_Header+set}\" = set"; then
17035 echo "$as_me:$LINENO: checking for $ac_header" >&5
17036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17037if eval "test \"\${$as_ac_Header+set}\" = set"; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17039fi
17040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17042else
17043 # Is the header compilable?
17044echo "$as_me:$LINENO: checking $ac_header usability" >&5
17045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17046cat >conftest.$ac_ext <<_ACEOF
17047#line $LINENO "configure"
17048/* confdefs.h. */
17049_ACEOF
17050cat confdefs.h >>conftest.$ac_ext
17051cat >>conftest.$ac_ext <<_ACEOF
17052/* end confdefs.h. */
17053$ac_includes_default
17054#include <$ac_header>
17055_ACEOF
17056rm -f conftest.$ac_objext
17057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17058 (eval $ac_compile) 2>&5
17059 ac_status=$?
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } &&
17062 { ac_try='test -s conftest.$ac_objext'
17063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064 (eval $ac_try) 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17068 ac_header_compiler=yes
17069else
17070 echo "$as_me: failed program was:" >&5
17071sed 's/^/| /' conftest.$ac_ext >&5
17072
17073ac_header_compiler=no
17074fi
17075rm -f conftest.$ac_objext conftest.$ac_ext
17076echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17077echo "${ECHO_T}$ac_header_compiler" >&6
17078
17079# Is the header present?
17080echo "$as_me:$LINENO: checking $ac_header presence" >&5
17081echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17082cat >conftest.$ac_ext <<_ACEOF
17083#line $LINENO "configure"
17084/* confdefs.h. */
17085_ACEOF
17086cat confdefs.h >>conftest.$ac_ext
17087cat >>conftest.$ac_ext <<_ACEOF
17088/* end confdefs.h. */
17089#include <$ac_header>
17090_ACEOF
17091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17093 ac_status=$?
17094 grep -v '^ *+' conftest.er1 >conftest.err
17095 rm -f conftest.er1
17096 cat conftest.err >&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } >/dev/null; then
17099 if test -s conftest.err; then
17100 ac_cpp_err=$ac_cxx_preproc_warn_flag
17101 else
17102 ac_cpp_err=
17103 fi
17104else
17105 ac_cpp_err=yes
17106fi
17107if test -z "$ac_cpp_err"; then
17108 ac_header_preproc=yes
17109else
17110 echo "$as_me: failed program was:" >&5
17111sed 's/^/| /' conftest.$ac_ext >&5
17112
17113 ac_header_preproc=no
17114fi
17115rm -f conftest.err conftest.$ac_ext
17116echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17117echo "${ECHO_T}$ac_header_preproc" >&6
17118
17119# So? What about this header?
17120case $ac_header_compiler:$ac_header_preproc in
17121 yes:no )
17122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17123echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17125echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17126 (
17127 cat <<\_ASBOX
17128## ------------------------------------ ##
17129## Report this to bug-autoconf@gnu.org. ##
17130## ------------------------------------ ##
17131_ASBOX
17132 ) |
17133 sed "s/^/$as_me: WARNING: /" >&2
17134 ;;
17135 no:yes )
17136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17137echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17139echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17141echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17142 (
17143 cat <<\_ASBOX
17144## ------------------------------------ ##
17145## Report this to bug-autoconf@gnu.org. ##
17146## ------------------------------------ ##
17147_ASBOX
17148 ) |
17149 sed "s/^/$as_me: WARNING: /" >&2
17150 ;;
17151esac
17152echo "$as_me:$LINENO: checking for $ac_header" >&5
17153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17154if eval "test \"\${$as_ac_Header+set}\" = set"; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17156else
17157 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17158fi
e6cc62c6
VS
17159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17161
90dd450c 17162fi
e6cc62c6
VS
17163if test `eval echo '${'$as_ac_Header'}'` = yes; then
17164 cat >>confdefs.h <<_ACEOF
17165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17166_ACEOF
17167
90dd450c 17168fi
e6cc62c6 17169
21d1c967 17170done
10f2d63a 17171
8284b0c5 17172
21d1c967
GD
17173 if test "$ac_cv_header_iostream" = "yes" ; then
17174 :
17175 else
e6cc62c6 17176 cat >>confdefs.h <<\_ACEOF
21d1c967 17177#define wxUSE_IOSTREAMH 1
e6cc62c6 17178_ACEOF
788deba1 17179
90dd450c 17180 fi
ab9b9eab 17181
21d1c967 17182 ac_ext=c
21d1c967 17183ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17186ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17187
21d1c967 17188 fi
ab9b9eab 17189
52127426 17190
8284b0c5 17191
e6cc62c6
VS
17192 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17193echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17194if test "${wx_cv_cpp_bool+set}" = set; then
17195 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17196else
e6cc62c6
VS
17197
17198
17199
17200 ac_ext=cc
5c6fa7d2 17201ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17205
8284b0c5 17206
e6cc62c6
VS
17207 cat >conftest.$ac_ext <<_ACEOF
17208#line $LINENO "configure"
17209/* confdefs.h. */
17210_ACEOF
17211cat confdefs.h >>conftest.$ac_ext
17212cat >>conftest.$ac_ext <<_ACEOF
17213/* end confdefs.h. */
21d1c967 17214
e6cc62c6
VS
17215
17216int
17217main ()
17218{
21d1c967
GD
17219
17220 bool b = true;
17221
17222 return 0;
e6cc62c6
VS
17223
17224 ;
17225 return 0;
17226}
17227_ACEOF
17228rm -f conftest.$ac_objext
17229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17230 (eval $ac_compile) 2>&5
17231 ac_status=$?
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); } &&
17234 { ac_try='test -s conftest.$ac_objext'
17235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17236 (eval $ac_try) 2>&5
17237 ac_status=$?
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; }; then
17240
21d1c967 17241 wx_cv_cpp_bool=yes
e6cc62c6 17242
698dcdb6 17243else
e6cc62c6
VS
17244 echo "$as_me: failed program was:" >&5
17245sed 's/^/| /' conftest.$ac_ext >&5
17246
17247
21d1c967 17248 wx_cv_cpp_bool=no
e6cc62c6
VS
17249
17250
698dcdb6 17251fi
e6cc62c6 17252rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17253
17254 ac_ext=c
21d1c967 17255ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17258ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17259
a0b9e27f 17260
e6cc62c6
VS
17261fi
17262echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17263echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17264
17265 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17266 cat >>confdefs.h <<\_ACEOF
21d1c967 17267#define HAVE_BOOL 1
e6cc62c6 17268_ACEOF
ab9b9eab 17269
21d1c967
GD
17270 fi
17271
52127426 17272
8284b0c5 17273
e6cc62c6
VS
17274 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17275echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17276if test "${wx_cv_explicit+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17278else
e6cc62c6
VS
17279
17280
17281
17282 ac_ext=cc
5c6fa7d2 17283ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17287
8284b0c5 17288
e6cc62c6
VS
17289 cat >conftest.$ac_ext <<_ACEOF
17290#line $LINENO "configure"
17291/* confdefs.h. */
17292_ACEOF
17293cat confdefs.h >>conftest.$ac_ext
17294cat >>conftest.$ac_ext <<_ACEOF
17295/* end confdefs.h. */
986ecc86
VZ
17296
17297 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17298
17299int
17300main ()
17301{
986ecc86
VZ
17302
17303 return 0;
e6cc62c6
VS
17304
17305 ;
17306 return 0;
17307}
17308_ACEOF
17309rm -f conftest.$ac_objext
17310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17311 (eval $ac_compile) 2>&5
17312 ac_status=$?
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } &&
17315 { ac_try='test -s conftest.$ac_objext'
17316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317 (eval $ac_try) 2>&5
17318 ac_status=$?
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; }; then
17321
17322 cat >conftest.$ac_ext <<_ACEOF
17323#line $LINENO "configure"
17324/* confdefs.h. */
17325_ACEOF
17326cat confdefs.h >>conftest.$ac_ext
17327cat >>conftest.$ac_ext <<_ACEOF
17328/* end confdefs.h. */
986ecc86
VZ
17329
17330 class Foo { public: explicit Foo(int) {} };
17331 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
17332
17333int
17334main ()
17335{
986ecc86
VZ
17336
17337 TakeFoo(17);
17338 return 0;
e6cc62c6
VS
17339
17340 ;
17341 return 0;
17342}
17343_ACEOF
17344rm -f conftest.$ac_objext
17345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17346 (eval $ac_compile) 2>&5
17347 ac_status=$?
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); } &&
17350 { ac_try='test -s conftest.$ac_objext'
17351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352 (eval $ac_try) 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; }; then
986ecc86
VZ
17356 wx_cv_explicit=no
17357else
e6cc62c6
VS
17358 echo "$as_me: failed program was:" >&5
17359sed 's/^/| /' conftest.$ac_ext >&5
17360
17361wx_cv_explicit=yes
17362
986ecc86 17363fi
e6cc62c6
VS
17364rm -f conftest.$ac_objext conftest.$ac_ext
17365
986ecc86 17366else
e6cc62c6
VS
17367 echo "$as_me: failed program was:" >&5
17368sed 's/^/| /' conftest.$ac_ext >&5
17369
17370wx_cv_explicit=no
17371
986ecc86 17372fi
e6cc62c6 17373rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
17374
17375 ac_ext=c
986ecc86 17376ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17379ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17380
a0b9e27f 17381
e6cc62c6
VS
17382fi
17383echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17384echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
17385
17386 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 17387 cat >>confdefs.h <<\_ACEOF
986ecc86 17388#define HAVE_EXPLICIT 1
e6cc62c6 17389_ACEOF
986ecc86
VZ
17390
17391 fi
17392
8284b0c5 17393
e6cc62c6
VS
17394echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17395echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17396if test "${ac_cv_cxx_const_cast+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 17398else
521196a2 17399
521196a2 17400
e6cc62c6
VS
17401 ac_ext=cc
17402ac_cpp='$CXXCPP $CPPFLAGS'
17403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17406
17407 cat >conftest.$ac_ext <<_ACEOF
17408#line $LINENO "configure"
17409/* confdefs.h. */
17410_ACEOF
17411cat confdefs.h >>conftest.$ac_ext
17412cat >>conftest.$ac_ext <<_ACEOF
17413/* end confdefs.h. */
17414
17415int
17416main ()
17417{
521196a2 17418int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
17419 ;
17420 return 0;
17421}
17422_ACEOF
17423rm -f conftest.$ac_objext
17424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17425 (eval $ac_compile) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } &&
17429 { ac_try='test -s conftest.$ac_objext'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; }; then
521196a2
MB
17435 ac_cv_cxx_const_cast=yes
17436else
e6cc62c6
VS
17437 echo "$as_me: failed program was:" >&5
17438sed 's/^/| /' conftest.$ac_ext >&5
17439
17440ac_cv_cxx_const_cast=no
521196a2 17441fi
e6cc62c6 17442rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 17443 ac_ext=c
521196a2 17444ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17447ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
17448
17449
17450fi
e6cc62c6
VS
17451echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17452echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 17453if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
17454
17455cat >>confdefs.h <<\_ACEOF
17456#define HAVE_CONST_CAST
17457_ACEOF
521196a2
MB
17458
17459fi
17460
17461
e87b7833
MB
17462if test "$wxUSE_STL" = "yes"; then
17463 ac_ext=cc
17464ac_cpp='$CXXCPP $CPPFLAGS'
17465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17468
17469
17470 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17471echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
17472 cat >conftest.$ac_ext <<_ACEOF
17473#line $LINENO "configure"
17474/* confdefs.h. */
17475_ACEOF
17476cat confdefs.h >>conftest.$ac_ext
17477cat >>conftest.$ac_ext <<_ACEOF
17478/* end confdefs.h. */
17479#include <string>
17480 #include <functional>
17481 #include <algorithm>
17482 #include <vector>
17483 #include <list>
17484int
17485main ()
17486{
17487std::vector<int> moo;
17488 std::list<int> foo;
17489 std::vector<int>::iterator it =
17490 std::find_if(moo.begin(), moo.end(),
17491 std::bind2nd(std::less<int>(), 3));
17492 ;
17493 return 0;
17494}
17495_ACEOF
17496rm -f conftest.$ac_objext
17497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17498 (eval $ac_compile) 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } &&
17502 { ac_try='test -s conftest.$ac_objext'
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; }; then
17508 echo "$as_me:$LINENO: result: yes" >&5
17509echo "${ECHO_T}yes" >&6
17510else
17511 echo "$as_me: failed program was:" >&5
17512sed 's/^/| /' conftest.$ac_ext >&5
17513
17514echo "$as_me:$LINENO: result: no" >&5
17515echo "${ECHO_T}no" >&6
17516 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17517echo "$as_me: error: Basic STL functionality missing" >&2;}
17518 { (exit 1); exit 1; }; }
17519fi
17520rm -f conftest.$ac_objext conftest.$ac_ext
17521
17522 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17523echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17524 cat >conftest.$ac_ext <<_ACEOF
17525#line $LINENO "configure"
17526/* confdefs.h. */
17527_ACEOF
17528cat confdefs.h >>conftest.$ac_ext
17529cat >>conftest.$ac_ext <<_ACEOF
17530/* end confdefs.h. */
17531#include <string>
17532int
17533main ()
17534{
17535std::wstring foo;
17536 ;
17537 return 0;
17538}
17539_ACEOF
17540rm -f conftest.$ac_objext
17541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17542 (eval $ac_compile) 2>&5
17543 ac_status=$?
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try='test -s conftest.$ac_objext'
17547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17549 ac_status=$?
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); }; }; then
17552 echo "$as_me:$LINENO: result: yes" >&5
17553echo "${ECHO_T}yes" >&6
17554 cat >>confdefs.h <<\_ACEOF
17555#define HAVE_STD_WSTRING 1
17556_ACEOF
17557
17558else
17559 echo "$as_me: failed program was:" >&5
17560sed 's/^/| /' conftest.$ac_ext >&5
17561
17562echo "$as_me:$LINENO: result: no" >&5
17563echo "${ECHO_T}no" >&6
17564fi
17565rm -f conftest.$ac_objext conftest.$ac_ext
17566
17567 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17568echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17569 cat >conftest.$ac_ext <<_ACEOF
17570#line $LINENO "configure"
17571/* confdefs.h. */
17572_ACEOF
17573cat confdefs.h >>conftest.$ac_ext
17574cat >>conftest.$ac_ext <<_ACEOF
17575/* end confdefs.h. */
17576#include <string>
17577int
17578main ()
17579{
17580std::string foo, bar;
17581 foo.compare(bar);
17582 foo.compare(1, 1, bar);
17583 foo.compare(1, 1, bar, 1, 1);
17584 foo.compare("");
17585 foo.compare(1, 1, "");
17586 foo.compare(1, 1, "", 2);
17587 ;
17588 return 0;
17589}
17590_ACEOF
17591rm -f conftest.$ac_objext
17592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17593 (eval $ac_compile) 2>&5
17594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); } &&
17597 { ac_try='test -s conftest.$ac_objext'
17598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599 (eval $ac_try) 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; }; then
17603 echo "$as_me:$LINENO: result: yes" >&5
17604echo "${ECHO_T}yes" >&6
17605 cat >>confdefs.h <<\_ACEOF
17606#define HAVE_STD_STRING_COMPARE 1
17607_ACEOF
17608
17609else
17610 echo "$as_me: failed program was:" >&5
17611sed 's/^/| /' conftest.$ac_ext >&5
17612
17613echo "$as_me:$LINENO: result: no" >&5
17614echo "${ECHO_T}no" >&6
17615fi
17616rm -f conftest.$ac_objext conftest.$ac_ext
17617
17618 ac_ext=c
17619ac_cpp='$CPP $CPPFLAGS'
17620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17622ac_compiler_gnu=$ac_cv_c_compiler_gnu
17623
17624fi
17625
8284b0c5 17626
21d1c967
GD
17627SEARCH_INCLUDE="\
17628 /usr/local/include \
17629 \
17630 /usr/Motif-1.2/include \
17631 /usr/Motif-2.1/include \
17632 \
17633 /usr/include/Motif1.2 \
17634 /opt/xpm/include/X11 \
17635 /opt/GBxpm/include/ \
17636 /opt/GBxpm/X11/include/ \
17637 \
17638 /usr/Motif1.2/include \
17639 /usr/dt/include \
17640 /usr/openwin/include \
17641 \
17642 /usr/include/Xm \
17643 \
17644 /usr/X11R6/include \
17645 /usr/X11R6.4/include \
17646 /usr/X11R5/include \
17647 /usr/X11R4/include \
17648 \
17649 /usr/include/X11R6 \
17650 /usr/include/X11R5 \
17651 /usr/include/X11R4 \
17652 \
17653 /usr/local/X11R6/include \
17654 /usr/local/X11R5/include \
17655 /usr/local/X11R4/include \
17656 \
17657 /usr/local/include/X11R6 \
17658 /usr/local/include/X11R5 \
17659 /usr/local/include/X11R4 \
17660 \
17661 /usr/X11/include \
17662 /usr/include/X11 \
17663 /usr/local/X11/include \
17664 /usr/local/include/X11 \
17665 \
17666 /usr/X386/include \
17667 /usr/x386/include \
17668 /usr/XFree86/include/X11 \
17669 \
17670 X:/XFree86/include \
17671 X:/XFree86/include/X11 \
17672 \
17673 /usr/include/gtk \
17674 /usr/local/include/gtk \
17675 /usr/include/glib \
17676 /usr/local/include/glib \
17677 \
17678 /usr/include/qt \
17679 /usr/local/include/qt \
17680 \
17681 /usr/include/windows \
17682 /usr/include/wine \
17683 /usr/local/include/wine \
17684 \
17685 /usr/unsupported/include \
17686 /usr/athena/include \
17687 /usr/local/x11r5/include \
17688 /usr/lpp/Xamples/include \
17689 \
2b5f62a0 17690 /usr/openwin/share/include"
21d1c967
GD
17691
17692SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17693
8284b0c5 17694
e6cc62c6 17695cat >confcache <<\_ACEOF
21d1c967
GD
17696# This file is a shell script that caches the results of configure
17697# tests run on this system so they can be shared between configure
e6cc62c6
VS
17698# scripts and configure runs, see configure's option --config-cache.
17699# It is not useful on other systems. If it contains results you don't
17700# want to keep, you may remove or edit it.
21d1c967 17701#
e6cc62c6
VS
17702# config.status only pays attention to the cache file if you give it
17703# the --recheck option to rerun configure.
21d1c967 17704#
e6cc62c6
VS
17705# `ac_cv_env_foo' variables (set or unset) will be overridden when
17706# loading this file, other *unset* `ac_cv_foo' will be assigned the
17707# following values.
17708
17709_ACEOF
17710
21d1c967
GD
17711# The following way of writing the cache mishandles newlines in values,
17712# but we know of no workaround that is simple, portable, and efficient.
17713# So, don't put newlines in cache variables' values.
17714# Ultrix sh set writes to stderr and can't be redirected directly,
17715# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
17716{
17717 (set) 2>&1 |
17718 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17719 *ac_space=\ *)
17720 # `set' does not quote correctly, so add quotes (double-quote
17721 # substitution turns \\\\ into \\, and sed turns \\ into \).
17722 sed -n \
17723 "s/'/'\\\\''/g;
17724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17725 ;;
17726 *)
17727 # `set' quotes correctly as required by POSIX, so do not add quotes.
17728 sed -n \
17729 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17730 ;;
17731 esac;
17732} |
17733 sed '
17734 t clear
17735 : clear
17736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17737 t end
17738 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17739 : end' >>confcache
17740if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 17741 if test -w $cache_file; then
e6cc62c6
VS
17742 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17743 cat confcache >$cache_file
21d1c967
GD
17744 else
17745 echo "not updating unwritable cache $cache_file"
17746 fi
ab9b9eab 17747fi
21d1c967 17748rm -f confcache
ab9b9eab 17749
fe0895cf 17750if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
17751 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17752echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17753if test "${wx_cv_lib_glibc21+set}" = set; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17755else
17756
17757 cat >conftest.$ac_ext <<_ACEOF
17758#line $LINENO "configure"
17759/* confdefs.h. */
17760_ACEOF
17761cat confdefs.h >>conftest.$ac_ext
17762cat >>conftest.$ac_ext <<_ACEOF
17763/* end confdefs.h. */
21d1c967 17764#include <features.h>
e6cc62c6
VS
17765int
17766main ()
17767{
ab9b9eab 17768
21d1c967
GD
17769 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17770 #error not glibc2.1
17771 #endif
e6cc62c6
VS
17772
17773 ;
17774 return 0;
17775}
17776_ACEOF
17777rm -f conftest.$ac_objext
17778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17779 (eval $ac_compile) 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } &&
17783 { ac_try='test -s conftest.$ac_objext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17786 ac_status=$?
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789
21d1c967 17790 wx_cv_lib_glibc21=yes
e6cc62c6 17791
698dcdb6 17792else
e6cc62c6
VS
17793 echo "$as_me: failed program was:" >&5
17794sed 's/^/| /' conftest.$ac_ext >&5
17795
17796
21d1c967 17797 wx_cv_lib_glibc21=no
e6cc62c6
VS
17798
17799
247f5006 17800fi
e6cc62c6 17801rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17802
e6cc62c6
VS
17803fi
17804echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
17805echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 17806 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 17807 cat >>confdefs.h <<\_ACEOF
21d1c967 17808#define wxHAVE_GLIBC2 1
e6cc62c6 17809_ACEOF
1e487827 17810
90dd450c 17811 fi
ab9b9eab
VZ
17812fi
17813
5c0a20c3
VZ
17814if test "x$wx_cv_lib_glibc21" = "xyes"; then
17815 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 17816 cat >>confdefs.h <<\_ACEOF
5c0a20c3 17817#define _GNU_SOURCE 1
e6cc62c6 17818_ACEOF
5c0a20c3
VZ
17819
17820 fi
17821fi
17822
8284b0c5
MB
17823
17824
21d1c967
GD
17825REGEX_INCLUDE=
17826if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 17827 cat >>confdefs.h <<\_ACEOF
21d1c967 17828#define wxUSE_REGEX 1
e6cc62c6 17829_ACEOF
698dcdb6 17830
8284b0c5 17831
21d1c967 17832 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
17833 if test "${ac_cv_header_regex_h+set}" = set; then
17834 echo "$as_me:$LINENO: checking for regex.h" >&5
17835echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17836if test "${ac_cv_header_regex_h+set}" = set; then
17837 echo $ECHO_N "(cached) $ECHO_C" >&6
17838fi
17839echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17840echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17841else
17842 # Is the header compilable?
17843echo "$as_me:$LINENO: checking regex.h usability" >&5
17844echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
17845cat >conftest.$ac_ext <<_ACEOF
17846#line $LINENO "configure"
17847/* confdefs.h. */
17848_ACEOF
17849cat confdefs.h >>conftest.$ac_ext
17850cat >>conftest.$ac_ext <<_ACEOF
17851/* end confdefs.h. */
17852$ac_includes_default
247f5006 17853#include <regex.h>
e6cc62c6
VS
17854_ACEOF
17855rm -f conftest.$ac_objext
17856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857 (eval $ac_compile) 2>&5
17858 ac_status=$?
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } &&
17861 { ac_try='test -s conftest.$ac_objext'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17864 ac_status=$?
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; }; then
17867 ac_header_compiler=yes
17868else
17869 echo "$as_me: failed program was:" >&5
17870sed 's/^/| /' conftest.$ac_ext >&5
17871
17872ac_header_compiler=no
17873fi
17874rm -f conftest.$ac_objext conftest.$ac_ext
17875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17876echo "${ECHO_T}$ac_header_compiler" >&6
17877
17878# Is the header present?
17879echo "$as_me:$LINENO: checking regex.h presence" >&5
17880echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
17881cat >conftest.$ac_ext <<_ACEOF
17882#line $LINENO "configure"
17883/* confdefs.h. */
17884_ACEOF
17885cat confdefs.h >>conftest.$ac_ext
17886cat >>conftest.$ac_ext <<_ACEOF
17887/* end confdefs.h. */
17888#include <regex.h>
17889_ACEOF
17890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17892 ac_status=$?
17893 grep -v '^ *+' conftest.er1 >conftest.err
17894 rm -f conftest.er1
17895 cat conftest.err >&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } >/dev/null; then
17898 if test -s conftest.err; then
17899 ac_cpp_err=$ac_c_preproc_warn_flag
17900 else
17901 ac_cpp_err=
17902 fi
17903else
17904 ac_cpp_err=yes
17905fi
17906if test -z "$ac_cpp_err"; then
17907 ac_header_preproc=yes
17908else
17909 echo "$as_me: failed program was:" >&5
17910sed 's/^/| /' conftest.$ac_ext >&5
17911
17912 ac_header_preproc=no
17913fi
17914rm -f conftest.err conftest.$ac_ext
17915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17916echo "${ECHO_T}$ac_header_preproc" >&6
17917
17918# So? What about this header?
17919case $ac_header_compiler:$ac_header_preproc in
17920 yes:no )
17921 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
17922echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17923 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17924echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17925 (
17926 cat <<\_ASBOX
17927## ------------------------------------ ##
17928## Report this to bug-autoconf@gnu.org. ##
17929## ------------------------------------ ##
17930_ASBOX
17931 ) |
17932 sed "s/^/$as_me: WARNING: /" >&2
17933 ;;
17934 no:yes )
17935 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
17936echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
17937 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
17938echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
17939 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17940echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17941 (
17942 cat <<\_ASBOX
17943## ------------------------------------ ##
17944## Report this to bug-autoconf@gnu.org. ##
17945## ------------------------------------ ##
17946_ASBOX
17947 ) |
17948 sed "s/^/$as_me: WARNING: /" >&2
17949 ;;
17950esac
17951echo "$as_me:$LINENO: checking for regex.h" >&5
17952echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17953if test "${ac_cv_header_regex_h+set}" = set; then
17954 echo $ECHO_N "(cached) $ECHO_C" >&6
17955else
17956 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 17957fi
e6cc62c6
VS
17958echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17959echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17960
698dcdb6 17961fi
e6cc62c6
VS
17962if test $ac_cv_header_regex_h = yes; then
17963
17964for ac_func in regcomp
21d1c967 17965do
e6cc62c6
VS
17966as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17967echo "$as_me:$LINENO: checking for $ac_func" >&5
17968echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17969if eval "test \"\${$as_ac_var+set}\" = set"; then
17970 echo $ECHO_N "(cached) $ECHO_C" >&6
17971else
17972 cat >conftest.$ac_ext <<_ACEOF
17973#line $LINENO "configure"
17974/* confdefs.h. */
17975_ACEOF
17976cat confdefs.h >>conftest.$ac_ext
17977cat >>conftest.$ac_ext <<_ACEOF
17978/* end confdefs.h. */
a0b9e27f 17979/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
17980 which can conflict with char $ac_func (); below.
17981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17982 <limits.h> exists even on freestanding compilers. */
17983#ifdef __STDC__
17984# include <limits.h>
17985#else
17986# include <assert.h>
17987#endif
21d1c967 17988/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
17989#ifdef __cplusplus
17990extern "C"
17991{
17992#endif
21d1c967 17993/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
17994 builtin and then its argument prototype would still apply. */
17995char $ac_func ();
21d1c967
GD
17996/* The GNU C library defines this for functions which it implements
17997 to always fail with ENOSYS. Some functions are actually named
17998 something starting with __ and the normal name is an alias. */
17999#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18000choke me
18001#else
e6cc62c6
VS
18002char (*f) () = $ac_func;
18003#endif
18004#ifdef __cplusplus
18005}
21d1c967 18006#endif
90dd450c 18007
e6cc62c6
VS
18008int
18009main ()
18010{
18011return f != $ac_func;
18012 ;
18013 return 0;
18014}
18015_ACEOF
18016rm -f conftest.$ac_objext conftest$ac_exeext
18017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18018 (eval $ac_link) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } &&
18022 { ac_try='test -s conftest$ac_exeext'
18023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18025 ac_status=$?
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; }; then
18028 eval "$as_ac_var=yes"
18029else
18030 echo "$as_me: failed program was:" >&5
18031sed 's/^/| /' conftest.$ac_ext >&5
18032
18033eval "$as_ac_var=no"
18034fi
18035rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18036fi
18037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18038echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18039if test `eval echo '${'$as_ac_var'}'` = yes; then
18040 cat >>confdefs.h <<_ACEOF
18041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18042_ACEOF
5c6fa7d2 18043
698dcdb6 18044fi
21d1c967
GD
18045done
18046
ab9b9eab
VZ
18047fi
18048
8284b0c5 18049
e6cc62c6 18050
21d1c967
GD
18051 if test "x$ac_cv_func_regcomp" != "xyes"; then
18052 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18053 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18054echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18055 { (exit 1); exit 1; }; }
21d1c967 18056 else
e6cc62c6
VS
18057 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18058echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18059 wxUSE_REGEX=builtin
18060 fi
18061 else
18062 wxUSE_REGEX=sys
18063 fi
ab9b9eab 18064 fi
90dd450c 18065
21d1c967
GD
18066 if test "$wxUSE_REGEX" = "builtin" ; then
18067 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 18068 fi
21d1c967 18069fi
90dd450c 18070
8284b0c5 18071
21d1c967
GD
18072ZLIB_INCLUDE=
18073ZLIB_LINK=
18074if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18075 cat >>confdefs.h <<\_ACEOF
21d1c967 18076#define wxUSE_ZLIB 1
e6cc62c6 18077_ACEOF
21d1c967 18078
8284b0c5 18079
21d1c967 18080 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18081 if test "$USE_DARWIN" = 1; then
18082 system_zlib_h_ok="yes"
18083 else
e6cc62c6
VS
18084 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18085echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18086if test "${ac_cv_header_zlib_h+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18088else
18089 if test "$cross_compiling" = yes; then
89e6bf6d 18090 unset ac_cv_header_zlib_h
e6cc62c6 18091
d643b80e 18092else
e6cc62c6
VS
18093 cat >conftest.$ac_ext <<_ACEOF
18094#line $LINENO "configure"
18095/* confdefs.h. */
18096_ACEOF
18097cat confdefs.h >>conftest.$ac_ext
18098cat >>conftest.$ac_ext <<_ACEOF
18099/* end confdefs.h. */
18100
ef33c576 18101 #include <zlib.h>
d775acfa 18102 #include <stdio.h>
d643b80e 18103
d775acfa
VZ
18104 int main()
18105 {
18106 FILE *f=fopen("conftestval", "w");
18107 if (!f) exit(1);
18108 fprintf(f, "%s",
18109 ZLIB_VERSION[0] == '1' &&
18110 (ZLIB_VERSION[2] > '1' ||
18111 (ZLIB_VERSION[2] == '1' &&
18112 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18113 exit(0);
18114 }
e6cc62c6
VS
18115
18116_ACEOF
18117rm -f conftest$ac_exeext
18118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18119 (eval $ac_link) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
d643b80e
VZ
18128 ac_cv_header_zlib_h=`cat conftestval`
18129else
e6cc62c6
VS
18130 echo "$as_me: program exited with status $ac_status" >&5
18131echo "$as_me: failed program was:" >&5
18132sed 's/^/| /' conftest.$ac_ext >&5
18133
18134( exit $ac_status )
18135ac_cv_header_zlib_h=no
d643b80e 18136fi
e6cc62c6 18137rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18138fi
18139
d643b80e 18140fi
e6cc62c6
VS
18141echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18142echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18143 if test "${ac_cv_header_zlib_h+set}" = set; then
18144 echo "$as_me:$LINENO: checking for zlib.h" >&5
18145echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18146if test "${ac_cv_header_zlib_h+set}" = set; then
18147 echo $ECHO_N "(cached) $ECHO_C" >&6
18148fi
18149echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18150echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18151else
e6cc62c6
VS
18152 # Is the header compilable?
18153echo "$as_me:$LINENO: checking zlib.h usability" >&5
18154echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18155cat >conftest.$ac_ext <<_ACEOF
18156#line $LINENO "configure"
18157/* confdefs.h. */
18158_ACEOF
18159cat confdefs.h >>conftest.$ac_ext
18160cat >>conftest.$ac_ext <<_ACEOF
18161/* end confdefs.h. */
18162$ac_includes_default
89e6bf6d 18163#include <zlib.h>
e6cc62c6
VS
18164_ACEOF
18165rm -f conftest.$ac_objext
18166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18167 (eval $ac_compile) 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } &&
18171 { ac_try='test -s conftest.$ac_objext'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; }; then
18177 ac_header_compiler=yes
18178else
18179 echo "$as_me: failed program was:" >&5
18180sed 's/^/| /' conftest.$ac_ext >&5
18181
18182ac_header_compiler=no
18183fi
18184rm -f conftest.$ac_objext conftest.$ac_ext
18185echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18186echo "${ECHO_T}$ac_header_compiler" >&6
18187
18188# Is the header present?
18189echo "$as_me:$LINENO: checking zlib.h presence" >&5
18190echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18191cat >conftest.$ac_ext <<_ACEOF
18192#line $LINENO "configure"
18193/* confdefs.h. */
18194_ACEOF
18195cat confdefs.h >>conftest.$ac_ext
18196cat >>conftest.$ac_ext <<_ACEOF
18197/* end confdefs.h. */
18198#include <zlib.h>
18199_ACEOF
18200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18202 ac_status=$?
18203 grep -v '^ *+' conftest.er1 >conftest.err
18204 rm -f conftest.er1
18205 cat conftest.err >&5
18206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } >/dev/null; then
18208 if test -s conftest.err; then
18209 ac_cpp_err=$ac_c_preproc_warn_flag
18210 else
18211 ac_cpp_err=
18212 fi
18213else
18214 ac_cpp_err=yes
18215fi
18216if test -z "$ac_cpp_err"; then
18217 ac_header_preproc=yes
18218else
18219 echo "$as_me: failed program was:" >&5
18220sed 's/^/| /' conftest.$ac_ext >&5
18221
18222 ac_header_preproc=no
18223fi
18224rm -f conftest.err conftest.$ac_ext
18225echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18226echo "${ECHO_T}$ac_header_preproc" >&6
18227
18228# So? What about this header?
18229case $ac_header_compiler:$ac_header_preproc in
18230 yes:no )
18231 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18232echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18233 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18234echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18235 (
18236 cat <<\_ASBOX
18237## ------------------------------------ ##
18238## Report this to bug-autoconf@gnu.org. ##
18239## ------------------------------------ ##
18240_ASBOX
18241 ) |
18242 sed "s/^/$as_me: WARNING: /" >&2
18243 ;;
18244 no:yes )
18245 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18246echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18247 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18248echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18249 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18250echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18251 (
18252 cat <<\_ASBOX
18253## ------------------------------------ ##
18254## Report this to bug-autoconf@gnu.org. ##
18255## ------------------------------------ ##
18256_ASBOX
18257 ) |
18258 sed "s/^/$as_me: WARNING: /" >&2
18259 ;;
18260esac
18261echo "$as_me:$LINENO: checking for zlib.h" >&5
18262echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18263if test "${ac_cv_header_zlib_h+set}" = set; then
18264 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18265else
e6cc62c6
VS
18266 ac_cv_header_zlib_h=$ac_header_preproc
18267fi
18268echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18269echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18270
89e6bf6d
VZ
18271fi
18272
d643b80e 18273
e6cc62c6 18274
d775acfa
VZ
18275 system_zlib_h_ok=$ac_cv_header_zlib_h
18276 fi
18277
18278 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
18279 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18280echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18281if test "${ac_cv_lib_z_deflate+set}" = set; then
18282 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18283else
e6cc62c6 18284 ac_check_lib_save_LIBS=$LIBS
21d1c967 18285LIBS="-lz $LIBS"
e6cc62c6
VS
18286cat >conftest.$ac_ext <<_ACEOF
18287#line $LINENO "configure"
18288/* confdefs.h. */
18289_ACEOF
18290cat confdefs.h >>conftest.$ac_ext
18291cat >>conftest.$ac_ext <<_ACEOF
18292/* end confdefs.h. */
18293
21d1c967 18294/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18295#ifdef __cplusplus
18296extern "C"
18297#endif
21d1c967 18298/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18299 builtin and then its argument prototype would still apply. */
18300char deflate ();
18301int
18302main ()
18303{
18304deflate ();
18305 ;
18306 return 0;
18307}
18308_ACEOF
18309rm -f conftest.$ac_objext conftest$ac_exeext
18310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18311 (eval $ac_link) 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } &&
18315 { ac_try='test -s conftest$ac_exeext'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 ac_cv_lib_z_deflate=yes
18322else
18323 echo "$as_me: failed program was:" >&5
18324sed 's/^/| /' conftest.$ac_ext >&5
18325
18326ac_cv_lib_z_deflate=no
18327fi
18328rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18329LIBS=$ac_check_lib_save_LIBS
18330fi
18331echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18332echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18333if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 18334 ZLIB_LINK=" -lz"
a0b9e27f 18335fi
698dcdb6 18336
d643b80e 18337 fi
247f5006 18338
21d1c967
GD
18339 if test "x$ZLIB_LINK" = "x" ; then
18340 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
18341 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18342echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18343 { (exit 1); exit 1; }; }
21d1c967 18344 else
e6cc62c6
VS
18345 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18346echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18347 wxUSE_ZLIB=builtin
18348 fi
18349 else
18350 wxUSE_ZLIB=sys
18351 fi
18352 fi
18353
18354 if test "$wxUSE_ZLIB" = "builtin" ; then
18355 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18356 fi
ab9b9eab
VZ
18357fi
18358
8284b0c5 18359
21d1c967
GD
18360PNG_INCLUDE=
18361PNG_LINK=
18362if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 18363 cat >>confdefs.h <<\_ACEOF
21d1c967 18364#define wxUSE_LIBPNG 1
e6cc62c6 18365_ACEOF
90dd450c 18366
8284b0c5 18367
21d1c967 18368 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
18369 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18370echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
18371 wxUSE_LIBPNG=sys
18372 fi
90dd450c 18373
21d1c967 18374 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
18375 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18376echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
18377 wxUSE_LIBPNG=builtin
18378 fi
18379
18380 if test "$wxUSE_MGL" != 1 ; then
18381 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
18382 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18383echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18384if test "${ac_cv_header_png_h+set}" = set; then
18385 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
18386else
18387 if test "$cross_compiling" = yes; then
89e6bf6d 18388 unset ac_cv_header_png_h
e6cc62c6 18389
5d3f766d 18390else
e6cc62c6
VS
18391 cat >conftest.$ac_ext <<_ACEOF
18392#line $LINENO "configure"
18393/* confdefs.h. */
18394_ACEOF
18395cat confdefs.h >>conftest.$ac_ext
18396cat >>conftest.$ac_ext <<_ACEOF
18397/* end confdefs.h. */
18398
ef33c576 18399 #include <png.h>
5d3f766d
VZ
18400 #include <stdio.h>
18401
18402 int main()
18403 {
18404 FILE *f=fopen("conftestval", "w");
18405 if (!f) exit(1);
18406 fprintf(f, "%s",
18407 PNG_LIBPNG_VER > 90 ? "yes" : "no");
18408 exit(0);
18409 }
e6cc62c6
VS
18410
18411_ACEOF
18412rm -f conftest$ac_exeext
18413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18414 (eval $ac_link) 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419 (eval $ac_try) 2>&5
18420 ac_status=$?
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; }; then
5d3f766d
VZ
18423 ac_cv_header_png_h=`cat conftestval`
18424else
e6cc62c6
VS
18425 echo "$as_me: program exited with status $ac_status" >&5
18426echo "$as_me: failed program was:" >&5
18427sed 's/^/| /' conftest.$ac_ext >&5
18428
18429( exit $ac_status )
18430ac_cv_header_png_h=no
5d3f766d 18431fi
e6cc62c6 18432rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
18433fi
18434
5d3f766d 18435fi
e6cc62c6
VS
18436echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18437echo "${ECHO_T}$ac_cv_header_png_h" >&6
18438 if test "${ac_cv_header_png_h+set}" = set; then
18439 echo "$as_me:$LINENO: checking for png.h" >&5
18440echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18441if test "${ac_cv_header_png_h+set}" = set; then
18442 echo $ECHO_N "(cached) $ECHO_C" >&6
18443fi
18444echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18445echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 18446else
e6cc62c6
VS
18447 # Is the header compilable?
18448echo "$as_me:$LINENO: checking png.h usability" >&5
18449echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18450cat >conftest.$ac_ext <<_ACEOF
18451#line $LINENO "configure"
18452/* confdefs.h. */
18453_ACEOF
18454cat confdefs.h >>conftest.$ac_ext
18455cat >>conftest.$ac_ext <<_ACEOF
18456/* end confdefs.h. */
18457$ac_includes_default
89e6bf6d 18458#include <png.h>
e6cc62c6
VS
18459_ACEOF
18460rm -f conftest.$ac_objext
18461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18462 (eval $ac_compile) 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); } &&
18466 { ac_try='test -s conftest.$ac_objext'
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18469 ac_status=$?
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 ac_header_compiler=yes
18473else
18474 echo "$as_me: failed program was:" >&5
18475sed 's/^/| /' conftest.$ac_ext >&5
18476
18477ac_header_compiler=no
18478fi
18479rm -f conftest.$ac_objext conftest.$ac_ext
18480echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18481echo "${ECHO_T}$ac_header_compiler" >&6
18482
18483# Is the header present?
18484echo "$as_me:$LINENO: checking png.h presence" >&5
18485echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18486cat >conftest.$ac_ext <<_ACEOF
18487#line $LINENO "configure"
18488/* confdefs.h. */
18489_ACEOF
18490cat confdefs.h >>conftest.$ac_ext
18491cat >>conftest.$ac_ext <<_ACEOF
18492/* end confdefs.h. */
18493#include <png.h>
18494_ACEOF
18495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18497 ac_status=$?
18498 grep -v '^ *+' conftest.er1 >conftest.err
18499 rm -f conftest.er1
18500 cat conftest.err >&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } >/dev/null; then
18503 if test -s conftest.err; then
18504 ac_cpp_err=$ac_c_preproc_warn_flag
18505 else
18506 ac_cpp_err=
18507 fi
18508else
18509 ac_cpp_err=yes
18510fi
18511if test -z "$ac_cpp_err"; then
18512 ac_header_preproc=yes
18513else
18514 echo "$as_me: failed program was:" >&5
18515sed 's/^/| /' conftest.$ac_ext >&5
18516
18517 ac_header_preproc=no
18518fi
18519rm -f conftest.err conftest.$ac_ext
18520echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18521echo "${ECHO_T}$ac_header_preproc" >&6
18522
18523# So? What about this header?
18524case $ac_header_compiler:$ac_header_preproc in
18525 yes:no )
18526 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18527echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18528 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18529echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18530 (
18531 cat <<\_ASBOX
18532## ------------------------------------ ##
18533## Report this to bug-autoconf@gnu.org. ##
18534## ------------------------------------ ##
18535_ASBOX
18536 ) |
18537 sed "s/^/$as_me: WARNING: /" >&2
18538 ;;
18539 no:yes )
18540 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18541echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18542 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18543echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18544 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18545echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18546 (
18547 cat <<\_ASBOX
18548## ------------------------------------ ##
18549## Report this to bug-autoconf@gnu.org. ##
18550## ------------------------------------ ##
18551_ASBOX
18552 ) |
18553 sed "s/^/$as_me: WARNING: /" >&2
18554 ;;
18555esac
18556echo "$as_me:$LINENO: checking for png.h" >&5
18557echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18558if test "${ac_cv_header_png_h+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 18560else
e6cc62c6
VS
18561 ac_cv_header_png_h=$ac_header_preproc
18562fi
18563echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18564echo "${ECHO_T}$ac_cv_header_png_h" >&6
18565
89e6bf6d
VZ
18566fi
18567
5d3f766d 18568
e6cc62c6 18569
5d3f766d 18570 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
18571 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18572echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18573if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18575else
e6cc62c6 18576 ac_check_lib_save_LIBS=$LIBS
21d1c967 18577LIBS="-lpng -lz -lm $LIBS"
e6cc62c6
VS
18578cat >conftest.$ac_ext <<_ACEOF
18579#line $LINENO "configure"
18580/* confdefs.h. */
18581_ACEOF
18582cat confdefs.h >>conftest.$ac_ext
18583cat >>conftest.$ac_ext <<_ACEOF
18584/* end confdefs.h. */
18585
21d1c967 18586/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18587#ifdef __cplusplus
18588extern "C"
18589#endif
21d1c967 18590/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18591 builtin and then its argument prototype would still apply. */
18592char png_check_sig ();
18593int
18594main ()
18595{
18596png_check_sig ();
18597 ;
18598 return 0;
18599}
18600_ACEOF
18601rm -f conftest.$ac_objext conftest$ac_exeext
18602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18603 (eval $ac_link) 2>&5
18604 ac_status=$?
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); } &&
18607 { ac_try='test -s conftest$ac_exeext'
18608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609 (eval $ac_try) 2>&5
18610 ac_status=$?
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; }; then
18613 ac_cv_lib_png_png_check_sig=yes
18614else
18615 echo "$as_me: failed program was:" >&5
18616sed 's/^/| /' conftest.$ac_ext >&5
18617
18618ac_cv_lib_png_png_check_sig=no
18619fi
18620rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18621LIBS=$ac_check_lib_save_LIBS
18622fi
18623echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18624echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18625if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 18626 PNG_LINK=" -lpng"
a0b9e27f 18627fi
90dd450c 18628
5d3f766d 18629 fi
247f5006 18630
21d1c967
GD
18631 if test "x$PNG_LINK" = "x" ; then
18632 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
18633 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18634echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18635 { (exit 1); exit 1; }; }
21d1c967 18636 else
e6cc62c6
VS
18637 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18638echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
18639 wxUSE_LIBPNG=builtin
18640 fi
18641 else
2b5f62a0 18642 wxUSE_LIBPNG=sys
21d1c967
GD
18643 fi
18644 fi
18645 fi
90dd450c 18646
21d1c967
GD
18647 if test "$wxUSE_LIBPNG" = "builtin" ; then
18648 PNG_INCLUDE="-I\${top_srcdir}/src/png"
18649 fi
90dd450c 18650
21d1c967 18651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
18652fi
18653
8284b0c5 18654
21d1c967
GD
18655JPEG_INCLUDE=
18656JPEG_LINK=
18657if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 18658 cat >>confdefs.h <<\_ACEOF
21d1c967 18659#define wxUSE_LIBJPEG 1
e6cc62c6 18660_ACEOF
90dd450c 18661
8284b0c5 18662
21d1c967 18663 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
18664 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18665echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
18666 wxUSE_LIBJPEG=sys
18667 fi
90dd450c 18668
21d1c967
GD
18669 if test "$wxUSE_MGL" != 1 ; then
18670 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
18671 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18672echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18673 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18674 echo $ECHO_N "(cached) $ECHO_C" >&6
18675else
18676 cat >conftest.$ac_ext <<_ACEOF
18677#line $LINENO "configure"
18678/* confdefs.h. */
18679_ACEOF
18680cat confdefs.h >>conftest.$ac_ext
18681cat >>conftest.$ac_ext <<_ACEOF
18682/* end confdefs.h. */
90dd450c 18683
21d1c967
GD
18684 #undef HAVE_STDLIB_H
18685 #include <stdio.h>
18686 #include <jpeglib.h>
90dd450c 18687
e6cc62c6
VS
18688int
18689main ()
18690{
18691
18692
18693 ;
18694 return 0;
18695}
18696_ACEOF
18697rm -f conftest.$ac_objext
18698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18699 (eval $ac_compile) 2>&5
18700 ac_status=$?
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } &&
18703 { ac_try='test -s conftest.$ac_objext'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18706 ac_status=$?
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; }; then
21d1c967 18709 ac_cv_header_jpeglib_h=yes
90dd450c 18710else
e6cc62c6
VS
18711 echo "$as_me: failed program was:" >&5
18712sed 's/^/| /' conftest.$ac_ext >&5
18713
18714ac_cv_header_jpeglib_h=no
18715
90dd450c 18716fi
e6cc62c6
VS
18717rm -f conftest.$ac_objext conftest.$ac_ext
18718
90dd450c
VZ
18719fi
18720
e6cc62c6
VS
18721 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18722echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 18723
21d1c967 18724 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
18725 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18726echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18727if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 18729else
e6cc62c6 18730 ac_check_lib_save_LIBS=$LIBS
21d1c967 18731LIBS="-ljpeg $LIBS"
e6cc62c6
VS
18732cat >conftest.$ac_ext <<_ACEOF
18733#line $LINENO "configure"
18734/* confdefs.h. */
18735_ACEOF
18736cat confdefs.h >>conftest.$ac_ext
18737cat >>conftest.$ac_ext <<_ACEOF
18738/* end confdefs.h. */
18739
21d1c967 18740/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18741#ifdef __cplusplus
18742extern "C"
18743#endif
21d1c967 18744/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18745 builtin and then its argument prototype would still apply. */
18746char jpeg_read_header ();
18747int
18748main ()
18749{
18750jpeg_read_header ();
18751 ;
18752 return 0;
18753}
18754_ACEOF
18755rm -f conftest.$ac_objext conftest$ac_exeext
18756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18757 (eval $ac_link) 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); } &&
18761 { ac_try='test -s conftest$ac_exeext'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; }; then
18767 ac_cv_lib_jpeg_jpeg_read_header=yes
18768else
18769 echo "$as_me: failed program was:" >&5
18770sed 's/^/| /' conftest.$ac_ext >&5
18771
18772ac_cv_lib_jpeg_jpeg_read_header=no
18773fi
18774rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18775LIBS=$ac_check_lib_save_LIBS
18776fi
18777echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18778echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18779if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 18780 JPEG_LINK=" -ljpeg"
90dd450c
VZ
18781fi
18782
21d1c967 18783 fi
90dd450c 18784
21d1c967
GD
18785 if test "x$JPEG_LINK" = "x" ; then
18786 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
18787 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18788echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18789 { (exit 1); exit 1; }; }
21d1c967 18790 else
e6cc62c6
VS
18791 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18792echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
18793 wxUSE_LIBJPEG=builtin
18794 fi
18795 else
18796 wxUSE_LIBJPEG=sys
18797 fi
18798 fi
18799 fi
90dd450c 18800
21d1c967
GD
18801 if test "$wxUSE_LIBJPEG" = "builtin" ; then
18802 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
18803 fi
18804fi
90dd450c 18805
8284b0c5 18806
21d1c967
GD
18807TIFF_INCLUDE=
18808TIFF_LINK=
2b5f62a0 18809TIFF_PREREQ_LINKS=-lm
21d1c967 18810if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 18811 cat >>confdefs.h <<\_ACEOF
21d1c967 18812#define wxUSE_LIBTIFF 1
e6cc62c6 18813_ACEOF
21d1c967 18814
8284b0c5 18815
21d1c967 18816 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
18817 if test "$wxUSE_LIBJPEG" = "sys"; then
18818 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
18819 fi
18820 if test "$wxUSE_ZLIB" = "sys"; then
18821 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
18822 fi
e6cc62c6
VS
18823 if test "${ac_cv_header_tiffio_h+set}" = set; then
18824 echo "$as_me:$LINENO: checking for tiffio.h" >&5
18825echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18826if test "${ac_cv_header_tiffio_h+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18828fi
18829echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18830echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18831else
18832 # Is the header compilable?
18833echo "$as_me:$LINENO: checking tiffio.h usability" >&5
18834echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
18835cat >conftest.$ac_ext <<_ACEOF
18836#line $LINENO "configure"
18837/* confdefs.h. */
18838_ACEOF
18839cat confdefs.h >>conftest.$ac_ext
18840cat >>conftest.$ac_ext <<_ACEOF
18841/* end confdefs.h. */
18842$ac_includes_default
247f5006 18843#include <tiffio.h>
e6cc62c6
VS
18844_ACEOF
18845rm -f conftest.$ac_objext
18846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18847 (eval $ac_compile) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); } &&
18851 { ac_try='test -s conftest.$ac_objext'
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
18857 ac_header_compiler=yes
18858else
18859 echo "$as_me: failed program was:" >&5
18860sed 's/^/| /' conftest.$ac_ext >&5
18861
18862ac_header_compiler=no
18863fi
18864rm -f conftest.$ac_objext conftest.$ac_ext
18865echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18866echo "${ECHO_T}$ac_header_compiler" >&6
18867
18868# Is the header present?
18869echo "$as_me:$LINENO: checking tiffio.h presence" >&5
18870echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
18871cat >conftest.$ac_ext <<_ACEOF
18872#line $LINENO "configure"
18873/* confdefs.h. */
18874_ACEOF
18875cat confdefs.h >>conftest.$ac_ext
18876cat >>conftest.$ac_ext <<_ACEOF
18877/* end confdefs.h. */
18878#include <tiffio.h>
18879_ACEOF
18880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18882 ac_status=$?
18883 grep -v '^ *+' conftest.er1 >conftest.err
18884 rm -f conftest.er1
18885 cat conftest.err >&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } >/dev/null; then
18888 if test -s conftest.err; then
18889 ac_cpp_err=$ac_c_preproc_warn_flag
18890 else
18891 ac_cpp_err=
18892 fi
18893else
18894 ac_cpp_err=yes
18895fi
18896if test -z "$ac_cpp_err"; then
18897 ac_header_preproc=yes
18898else
18899 echo "$as_me: failed program was:" >&5
18900sed 's/^/| /' conftest.$ac_ext >&5
18901
18902 ac_header_preproc=no
18903fi
18904rm -f conftest.err conftest.$ac_ext
18905echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18906echo "${ECHO_T}$ac_header_preproc" >&6
18907
18908# So? What about this header?
18909case $ac_header_compiler:$ac_header_preproc in
18910 yes:no )
18911 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
18912echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18913 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18914echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18915 (
18916 cat <<\_ASBOX
18917## ------------------------------------ ##
18918## Report this to bug-autoconf@gnu.org. ##
18919## ------------------------------------ ##
18920_ASBOX
18921 ) |
18922 sed "s/^/$as_me: WARNING: /" >&2
18923 ;;
18924 no:yes )
18925 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
18926echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
18927 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
18928echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
18929 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18930echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18931 (
18932 cat <<\_ASBOX
18933## ------------------------------------ ##
18934## Report this to bug-autoconf@gnu.org. ##
18935## ------------------------------------ ##
18936_ASBOX
18937 ) |
18938 sed "s/^/$as_me: WARNING: /" >&2
18939 ;;
18940esac
18941echo "$as_me:$LINENO: checking for tiffio.h" >&5
18942echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18943if test "${ac_cv_header_tiffio_h+set}" = set; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
18945else
18946 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 18947fi
e6cc62c6
VS
18948echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18949echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18950
21d1c967 18951fi
e6cc62c6
VS
18952if test $ac_cv_header_tiffio_h = yes; then
18953 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
18954echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
18955if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 18957else
e6cc62c6 18958 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 18959LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6
VS
18960cat >conftest.$ac_ext <<_ACEOF
18961#line $LINENO "configure"
18962/* confdefs.h. */
18963_ACEOF
18964cat confdefs.h >>conftest.$ac_ext
18965cat >>conftest.$ac_ext <<_ACEOF
18966/* end confdefs.h. */
18967
ab9b9eab 18968/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18969#ifdef __cplusplus
18970extern "C"
18971#endif
ab9b9eab 18972/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18973 builtin and then its argument prototype would still apply. */
18974char TIFFError ();
18975int
18976main ()
18977{
18978TIFFError ();
18979 ;
18980 return 0;
18981}
18982_ACEOF
18983rm -f conftest.$ac_objext conftest$ac_exeext
18984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18985 (eval $ac_link) 2>&5
18986 ac_status=$?
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } &&
18989 { ac_try='test -s conftest$ac_exeext'
18990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991 (eval $ac_try) 2>&5
18992 ac_status=$?
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; }; then
18995 ac_cv_lib_tiff_TIFFError=yes
18996else
18997 echo "$as_me: failed program was:" >&5
18998sed 's/^/| /' conftest.$ac_ext >&5
18999
19000ac_cv_lib_tiff_TIFFError=no
19001fi
19002rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19003LIBS=$ac_check_lib_save_LIBS
19004fi
19005echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19006echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19007if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19008 TIFF_LINK=" -ltiff"
a0b9e27f 19009fi
cd6d6d5b 19010
e6cc62c6 19011
a0b9e27f 19012fi
8284b0c5 19013
247f5006 19014
e6cc62c6 19015
21d1c967
GD
19016 if test "x$TIFF_LINK" = "x" ; then
19017 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19018 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19019echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19020 { (exit 1); exit 1; }; }
90dd450c 19021 else
e6cc62c6
VS
19022 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19023echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19024 wxUSE_LIBTIFF=builtin
d8356fa3 19025 fi
d8356fa3 19026 else
21d1c967 19027 wxUSE_LIBTIFF=sys
d8356fa3 19028 fi
21d1c967 19029 fi
d8356fa3 19030
21d1c967
GD
19031 if test "$wxUSE_LIBTIFF" = "builtin" ; then
19032 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 19033 fi
21d1c967 19034fi
10f2d63a 19035
8284b0c5 19036
672abd7a 19037if test "$wxUSE_EXPAT" != "no"; then
e06468e8 19038 wxUSE_XML=yes
672abd7a
VS
19039 cat >>confdefs.h <<\_ACEOF
19040#define wxUSE_EXPAT 1
19041_ACEOF
19042
19043 cat >>confdefs.h <<\_ACEOF
19044#define wxUSE_XML 1
19045_ACEOF
19046
19047
19048 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19049 if test "${ac_cv_header_expat_h+set}" = set; then
19050 echo "$as_me:$LINENO: checking for expat.h" >&5
19051echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19052if test "${ac_cv_header_expat_h+set}" = set; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
19054fi
19055echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19056echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19057else
19058 # Is the header compilable?
19059echo "$as_me:$LINENO: checking expat.h usability" >&5
19060echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19061cat >conftest.$ac_ext <<_ACEOF
19062#line $LINENO "configure"
19063/* confdefs.h. */
19064_ACEOF
19065cat confdefs.h >>conftest.$ac_ext
19066cat >>conftest.$ac_ext <<_ACEOF
19067/* end confdefs.h. */
19068$ac_includes_default
19069#include <expat.h>
19070_ACEOF
19071rm -f conftest.$ac_objext
19072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19073 (eval $ac_compile) 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } &&
19077 { ac_try='test -s conftest.$ac_objext'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_header_compiler=yes
19084else
19085 echo "$as_me: failed program was:" >&5
19086sed 's/^/| /' conftest.$ac_ext >&5
19087
19088ac_header_compiler=no
19089fi
19090rm -f conftest.$ac_objext conftest.$ac_ext
19091echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19092echo "${ECHO_T}$ac_header_compiler" >&6
19093
19094# Is the header present?
19095echo "$as_me:$LINENO: checking expat.h presence" >&5
19096echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19097cat >conftest.$ac_ext <<_ACEOF
19098#line $LINENO "configure"
19099/* confdefs.h. */
19100_ACEOF
19101cat confdefs.h >>conftest.$ac_ext
19102cat >>conftest.$ac_ext <<_ACEOF
19103/* end confdefs.h. */
19104#include <expat.h>
19105_ACEOF
19106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19108 ac_status=$?
19109 grep -v '^ *+' conftest.er1 >conftest.err
19110 rm -f conftest.er1
19111 cat conftest.err >&5
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } >/dev/null; then
19114 if test -s conftest.err; then
19115 ac_cpp_err=$ac_c_preproc_warn_flag
19116 else
19117 ac_cpp_err=
19118 fi
19119else
19120 ac_cpp_err=yes
19121fi
19122if test -z "$ac_cpp_err"; then
19123 ac_header_preproc=yes
19124else
19125 echo "$as_me: failed program was:" >&5
19126sed 's/^/| /' conftest.$ac_ext >&5
19127
19128 ac_header_preproc=no
19129fi
19130rm -f conftest.err conftest.$ac_ext
19131echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19132echo "${ECHO_T}$ac_header_preproc" >&6
19133
19134# So? What about this header?
19135case $ac_header_compiler:$ac_header_preproc in
19136 yes:no )
19137 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19138echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19139 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19140echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19141 (
19142 cat <<\_ASBOX
19143## ------------------------------------ ##
19144## Report this to bug-autoconf@gnu.org. ##
19145## ------------------------------------ ##
19146_ASBOX
19147 ) |
19148 sed "s/^/$as_me: WARNING: /" >&2
19149 ;;
19150 no:yes )
19151 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19152echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19153 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19154echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19155 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19156echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19157 (
19158 cat <<\_ASBOX
19159## ------------------------------------ ##
19160## Report this to bug-autoconf@gnu.org. ##
19161## ------------------------------------ ##
19162_ASBOX
19163 ) |
19164 sed "s/^/$as_me: WARNING: /" >&2
19165 ;;
19166esac
19167echo "$as_me:$LINENO: checking for expat.h" >&5
19168echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19169if test "${ac_cv_header_expat_h+set}" = set; then
19170 echo $ECHO_N "(cached) $ECHO_C" >&6
19171else
19172 ac_cv_header_expat_h=$ac_header_preproc
19173fi
19174echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19175echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19176
19177fi
5f0b6dff
VS
19178if test $ac_cv_header_expat_h = yes; then
19179 found_expat_h=1
19180fi
19181
19182
19183 if test "x$found_expat_h" = "x1"; then
19184 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19185echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19186if test "${wx_cv_expat_is_not_broken+set}" = set; then
19187 echo $ECHO_N "(cached) $ECHO_C" >&6
19188else
19189
19190
672abd7a 19191
5f0b6dff
VS
19192 ac_ext=cc
19193ac_cpp='$CXXCPP $CPPFLAGS'
19194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19197
19198 cat >conftest.$ac_ext <<_ACEOF
19199#line $LINENO "configure"
19200/* confdefs.h. */
19201_ACEOF
19202cat confdefs.h >>conftest.$ac_ext
19203cat >>conftest.$ac_ext <<_ACEOF
19204/* end confdefs.h. */
19205#include <expat.h>
19206int
19207main ()
19208{
672abd7a 19209
5f0b6dff
VS
19210 ;
19211 return 0;
19212}
19213_ACEOF
19214rm -f conftest.$ac_objext
19215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19216 (eval $ac_compile) 2>&5
19217 ac_status=$?
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } &&
19220 { ac_try='test -s conftest.$ac_objext'
19221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222 (eval $ac_try) 2>&5
19223 ac_status=$?
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; }; then
19226 wx_cv_expat_is_not_broken=yes
19227else
19228 echo "$as_me: failed program was:" >&5
19229sed 's/^/| /' conftest.$ac_ext >&5
19230
19231wx_cv_expat_is_not_broken=no
19232
19233fi
19234rm -f conftest.$ac_objext conftest.$ac_ext
19235 ac_ext=c
19236ac_cpp='$CPP $CPPFLAGS'
19237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19239ac_compiler_gnu=$ac_cv_c_compiler_gnu
19240
19241
19242
19243fi
19244echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19245echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19246 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19247 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
19248echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19249if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19251else
19252 ac_check_lib_save_LIBS=$LIBS
19253LIBS="-lexpat $LIBS"
19254cat >conftest.$ac_ext <<_ACEOF
19255#line $LINENO "configure"
19256/* confdefs.h. */
19257_ACEOF
19258cat confdefs.h >>conftest.$ac_ext
19259cat >>conftest.$ac_ext <<_ACEOF
19260/* end confdefs.h. */
19261
19262/* Override any gcc2 internal prototype to avoid an error. */
19263#ifdef __cplusplus
19264extern "C"
19265#endif
19266/* We use char because int might match the return type of a gcc2
19267 builtin and then its argument prototype would still apply. */
19268char XML_ParserCreate ();
19269int
19270main ()
19271{
19272XML_ParserCreate ();
19273 ;
19274 return 0;
19275}
19276_ACEOF
19277rm -f conftest.$ac_objext conftest$ac_exeext
19278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19279 (eval $ac_link) 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } &&
19283 { ac_try='test -s conftest$ac_exeext'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; }; then
19289 ac_cv_lib_expat_XML_ParserCreate=yes
19290else
19291 echo "$as_me: failed program was:" >&5
19292sed 's/^/| /' conftest.$ac_ext >&5
19293
19294ac_cv_lib_expat_XML_ParserCreate=no
19295fi
19296rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19297LIBS=$ac_check_lib_save_LIBS
19298fi
19299echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19300echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19301if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19302 EXPAT_LINK=" -lexpat"
19303fi
19304
5f0b6dff 19305 fi
672abd7a
VS
19306 fi
19307 if test "x$EXPAT_LINK" = "x" ; then
19308 if test "$wxUSE_EXPAT" = "sys" ; then
19309 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19310echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19311 { (exit 1); exit 1; }; }
19312 else
19313 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19314echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19315 wxUSE_EXPAT=builtin
19316 fi
19317 else
19318 wxUSE_EXPAT=sys
19319 fi
19320 fi
19321 if test "$wxUSE_EXPAT" = "builtin" ; then
19322
19323
19324subdirs="$subdirs src/expat"
19325
19326 fi
19327fi
19328
19329
19330
21d1c967 19331AFMINSTALL=
2b5f62a0 19332WIN32INSTALL=
90dd450c 19333
21d1c967
GD
19334TOOLKIT=
19335TOOLKIT_INCLUDE=
19336WIDGET_SET=
19337
19338if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
19339
19340for ac_header in w32api.h
21d1c967 19341do
e6cc62c6
VS
19342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19343if eval "test \"\${$as_ac_Header+set}\" = set"; then
19344 echo "$as_me:$LINENO: checking for $ac_header" >&5
19345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19346if eval "test \"\${$as_ac_Header+set}\" = set"; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19348fi
19349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19350echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19351else
19352 # Is the header compilable?
19353echo "$as_me:$LINENO: checking $ac_header usability" >&5
19354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19355cat >conftest.$ac_ext <<_ACEOF
19356#line $LINENO "configure"
19357/* confdefs.h. */
19358_ACEOF
19359cat confdefs.h >>conftest.$ac_ext
19360cat >>conftest.$ac_ext <<_ACEOF
19361/* end confdefs.h. */
19362$ac_includes_default
19363#include <$ac_header>
19364_ACEOF
19365rm -f conftest.$ac_objext
19366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19367 (eval $ac_compile) 2>&5
19368 ac_status=$?
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } &&
19371 { ac_try='test -s conftest.$ac_objext'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; }; then
19377 ac_header_compiler=yes
19378else
19379 echo "$as_me: failed program was:" >&5
19380sed 's/^/| /' conftest.$ac_ext >&5
19381
19382ac_header_compiler=no
19383fi
19384rm -f conftest.$ac_objext conftest.$ac_ext
19385echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19386echo "${ECHO_T}$ac_header_compiler" >&6
19387
19388# Is the header present?
19389echo "$as_me:$LINENO: checking $ac_header presence" >&5
19390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19391cat >conftest.$ac_ext <<_ACEOF
19392#line $LINENO "configure"
19393/* confdefs.h. */
19394_ACEOF
19395cat confdefs.h >>conftest.$ac_ext
19396cat >>conftest.$ac_ext <<_ACEOF
19397/* end confdefs.h. */
19398#include <$ac_header>
19399_ACEOF
19400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19402 ac_status=$?
19403 grep -v '^ *+' conftest.er1 >conftest.err
19404 rm -f conftest.er1
19405 cat conftest.err >&5
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } >/dev/null; then
19408 if test -s conftest.err; then
19409 ac_cpp_err=$ac_c_preproc_warn_flag
19410 else
19411 ac_cpp_err=
19412 fi
19413else
19414 ac_cpp_err=yes
19415fi
19416if test -z "$ac_cpp_err"; then
19417 ac_header_preproc=yes
19418else
19419 echo "$as_me: failed program was:" >&5
19420sed 's/^/| /' conftest.$ac_ext >&5
19421
19422 ac_header_preproc=no
19423fi
19424rm -f conftest.err conftest.$ac_ext
19425echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19426echo "${ECHO_T}$ac_header_preproc" >&6
19427
19428# So? What about this header?
19429case $ac_header_compiler:$ac_header_preproc in
19430 yes:no )
19431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19434echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19435 (
19436 cat <<\_ASBOX
19437## ------------------------------------ ##
19438## Report this to bug-autoconf@gnu.org. ##
19439## ------------------------------------ ##
19440_ASBOX
19441 ) |
19442 sed "s/^/$as_me: WARNING: /" >&2
19443 ;;
19444 no:yes )
19445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19448echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19450echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19451 (
19452 cat <<\_ASBOX
19453## ------------------------------------ ##
19454## Report this to bug-autoconf@gnu.org. ##
19455## ------------------------------------ ##
19456_ASBOX
19457 ) |
19458 sed "s/^/$as_me: WARNING: /" >&2
19459 ;;
19460esac
19461echo "$as_me:$LINENO: checking for $ac_header" >&5
19462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19463if eval "test \"\${$as_ac_Header+set}\" = set"; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
19465else
19466 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 19467fi
e6cc62c6
VS
19468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19470
21d1c967 19471fi
e6cc62c6
VS
19472if test `eval echo '${'$as_ac_Header'}'` = yes; then
19473 cat >>confdefs.h <<_ACEOF
19474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19475_ACEOF
19476
21d1c967 19477fi
e6cc62c6 19478
21d1c967 19479done
f79bd02d 19480
e6cc62c6
VS
19481 if test "${ac_cv_header_windows_h+set}" = set; then
19482 echo "$as_me:$LINENO: checking for windows.h" >&5
19483echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19484if test "${ac_cv_header_windows_h+set}" = set; then
19485 echo $ECHO_N "(cached) $ECHO_C" >&6
19486fi
19487echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19488echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19489else
19490 # Is the header compilable?
19491echo "$as_me:$LINENO: checking windows.h usability" >&5
19492echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19493cat >conftest.$ac_ext <<_ACEOF
19494#line $LINENO "configure"
19495/* confdefs.h. */
19496_ACEOF
19497cat confdefs.h >>conftest.$ac_ext
19498cat >>conftest.$ac_ext <<_ACEOF
19499/* end confdefs.h. */
19500$ac_includes_default
247f5006 19501#include <windows.h>
e6cc62c6
VS
19502_ACEOF
19503rm -f conftest.$ac_objext
19504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19505 (eval $ac_compile) 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } &&
19509 { ac_try='test -s conftest.$ac_objext'
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515 ac_header_compiler=yes
19516else
19517 echo "$as_me: failed program was:" >&5
19518sed 's/^/| /' conftest.$ac_ext >&5
19519
19520ac_header_compiler=no
19521fi
19522rm -f conftest.$ac_objext conftest.$ac_ext
19523echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19524echo "${ECHO_T}$ac_header_compiler" >&6
19525
19526# Is the header present?
19527echo "$as_me:$LINENO: checking windows.h presence" >&5
19528echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19529cat >conftest.$ac_ext <<_ACEOF
19530#line $LINENO "configure"
19531/* confdefs.h. */
19532_ACEOF
19533cat confdefs.h >>conftest.$ac_ext
19534cat >>conftest.$ac_ext <<_ACEOF
19535/* end confdefs.h. */
19536#include <windows.h>
19537_ACEOF
19538if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19540 ac_status=$?
19541 grep -v '^ *+' conftest.er1 >conftest.err
19542 rm -f conftest.er1
19543 cat conftest.err >&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } >/dev/null; then
19546 if test -s conftest.err; then
19547 ac_cpp_err=$ac_c_preproc_warn_flag
19548 else
19549 ac_cpp_err=
19550 fi
19551else
19552 ac_cpp_err=yes
19553fi
19554if test -z "$ac_cpp_err"; then
19555 ac_header_preproc=yes
19556else
19557 echo "$as_me: failed program was:" >&5
19558sed 's/^/| /' conftest.$ac_ext >&5
19559
19560 ac_header_preproc=no
19561fi
19562rm -f conftest.err conftest.$ac_ext
19563echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19564echo "${ECHO_T}$ac_header_preproc" >&6
19565
19566# So? What about this header?
19567case $ac_header_compiler:$ac_header_preproc in
19568 yes:no )
19569 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19570echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19571 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19572echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19573 (
19574 cat <<\_ASBOX
19575## ------------------------------------ ##
19576## Report this to bug-autoconf@gnu.org. ##
19577## ------------------------------------ ##
19578_ASBOX
19579 ) |
19580 sed "s/^/$as_me: WARNING: /" >&2
19581 ;;
19582 no:yes )
19583 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19584echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19585 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19586echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19587 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19588echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19589 (
19590 cat <<\_ASBOX
19591## ------------------------------------ ##
19592## Report this to bug-autoconf@gnu.org. ##
19593## ------------------------------------ ##
19594_ASBOX
19595 ) |
19596 sed "s/^/$as_me: WARNING: /" >&2
19597 ;;
19598esac
19599echo "$as_me:$LINENO: checking for windows.h" >&5
19600echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19601if test "${ac_cv_header_windows_h+set}" = set; then
19602 echo $ECHO_N "(cached) $ECHO_C" >&6
19603else
19604 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 19605fi
e6cc62c6
VS
19606echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19607echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19608
90dd450c 19609fi
e6cc62c6 19610if test $ac_cv_header_windows_h = yes; then
21d1c967 19611 :
90dd450c 19612else
21d1c967 19613
e6cc62c6
VS
19614 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19615echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19616 { (exit 1); exit 1; }; }
19617
5c6fa7d2 19618fi
7b4a847f 19619
5c6fa7d2 19620
e6cc62c6 19621
b3dfbbc9 19622 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 19623
7bb2947d
MB
19624 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19625 LIBS="$LIBS -loleacc"
19626 fi
19627
21d1c967
GD
19628 case "${host}" in
19629 *-*-cygwin* )
b3dfbbc9 19630 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 19631 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 19632 esac
f79bd02d 19633
8647bec6
RG
19634 if test "$wxUSE_ODBC" = "sys" ; then
19635 wxUSE_ODBC = "yes"
21d1c967 19636 fi
8647bec6
RG
19637 if test "$wxUSE_ODBC" = "yes" ; then
19638 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 19639 cat >>confdefs.h <<\_ACEOF
8647bec6 19640#define wxUSE_ODBC 1
e6cc62c6 19641_ACEOF
f79bd02d 19642
8647bec6 19643 fi
e6cc62c6 19644
21d1c967
GD
19645 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19646 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
19647
19648 WIN32INSTALL=win32install
f79bd02d 19649fi
f79bd02d 19650
21d1c967
GD
19651if test "$wxUSE_GUI" = "yes"; then
19652 USE_GUI=1
f79bd02d 19653
21d1c967 19654 GUI_TK_LIBRARY=
f79bd02d 19655
21d1c967
GD
19656 WXGTK12=
19657 WXGTK127=
19658 WXGTK20=
f79bd02d 19659
21d1c967
GD
19660 if test "$wxUSE_MSW" = 1 ; then
19661 TOOLKIT=MSW
19662 GUIDIST=MSW_DIST
ffef10f6
VS
19663
19664 case "${host}" in
19665 *-*-mingw32* )
19666 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
19667 esac
f79bd02d
JS
19668 fi
19669
21d1c967 19670 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
19671 echo "$as_me:$LINENO: checking for GTK+ version" >&5
19672echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
19673
19674 gtk_version_cached=1
e6cc62c6
VS
19675 if test "${wx_cv_lib_gtk+set}" = set; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 19677else
e6cc62c6 19678
21d1c967 19679 gtk_version_cached=0
e6cc62c6
VS
19680 echo "$as_me:$LINENO: result: " >&5
19681echo "${ECHO_T}" >&6
f79bd02d 19682
21d1c967
GD
19683 GTK_MODULES=
19684 if test "$wxUSE_THREADS" = "yes"; then
19685 GTK_MODULES=gthread
19686 fi
f79bd02d 19687
2b5f62a0 19688 wx_cv_lib_gtk=
21d1c967
GD
19689 if test "x$wxUSE_GTK2" = "xyes"; then
19690 # Check whether --enable-gtktest or --disable-gtktest was given.
19691if test "${enable_gtktest+set}" = set; then
19692 enableval="$enable_gtktest"
e6cc62c6 19693
f79bd02d 19694else
21d1c967 19695 enable_gtktest=yes
e6cc62c6 19696fi;
f79bd02d 19697
21d1c967
GD
19698 pkg_config_args=gtk+-2.0
19699 for module in . $GTK_MODULES
19700 do
19701 case "$module" in
e6cc62c6 19702 gthread)
21d1c967
GD
19703 pkg_config_args="$pkg_config_args gthread-2.0"
19704 ;;
19705 esac
19706 done
19707
19708 no_gtk=""
f79bd02d 19709
21d1c967
GD
19710 # Extract the first word of "pkg-config", so it can be a program name with args.
19711set dummy pkg-config; ac_word=$2
e6cc62c6
VS
19712echo "$as_me:$LINENO: checking for $ac_word" >&5
19713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19714if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19716else
e6cc62c6
VS
19717 case $PKG_CONFIG in
19718 [\\/]* | ?:[\\/]*)
21d1c967
GD
19719 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19720 ;;
21d1c967 19721 *)
e6cc62c6
VS
19722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19723for as_dir in $PATH
19724do
19725 IFS=$as_save_IFS
19726 test -z "$as_dir" && as_dir=.
19727 for ac_exec_ext in '' $ac_executable_extensions; do
19728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19729 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19731 break 2
19732 fi
19733done
19734done
19735
21d1c967
GD
19736 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19737 ;;
19738esac
f79bd02d 19739fi
e6cc62c6
VS
19740PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19741
21d1c967 19742if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
19743 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19744echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 19745else
e6cc62c6
VS
19746 echo "$as_me:$LINENO: result: no" >&5
19747echo "${ECHO_T}no" >&6
f79bd02d
JS
19748fi
19749
8284b0c5 19750
21d1c967
GD
19751 if test x$PKG_CONFIG != xno ; then
19752 if pkg-config --atleast-pkgconfig-version 0.7 ; then
19753 :
19754 else
19755 echo *** pkg-config too old; version 0.7 or better required.
19756 no_gtk=yes
19757 PKG_CONFIG=no
19758 fi
19759 else
19760 no_gtk=yes
19761 fi
f79bd02d 19762
21d1c967 19763 min_gtk_version=2.0.0
e6cc62c6
VS
19764 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19765echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 19766
21d1c967
GD
19767 if test x$PKG_CONFIG != xno ; then
19768 ## don't try to run the test against uninstalled libtool libs
19769 if $PKG_CONFIG --uninstalled $pkg_config_args; then
19770 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19771 enable_gtktest=no
19772 fi
f79bd02d 19773
21d1c967
GD
19774 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19775 :
19776 else
19777 no_gtk=yes
19778 fi
19779 fi
f79bd02d 19780
21d1c967
GD
19781 if test x"$no_gtk" = x ; then
19782 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19783 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19784 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19785 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19786 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19787 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19788 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19789 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19790 if test "x$enable_gtktest" = "xyes" ; then
19791 ac_save_CFLAGS="$CFLAGS"
19792 ac_save_LIBS="$LIBS"
19793 CFLAGS="$CFLAGS $GTK_CFLAGS"
19794 LIBS="$GTK_LIBS $LIBS"
19795 rm -f conf.gtktest
19796 if test "$cross_compiling" = yes; then
19797 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 19798else
e6cc62c6
VS
19799 cat >conftest.$ac_ext <<_ACEOF
19800#line $LINENO "configure"
19801/* confdefs.h. */
19802_ACEOF
19803cat confdefs.h >>conftest.$ac_ext
19804cat >>conftest.$ac_ext <<_ACEOF
19805/* end confdefs.h. */
f79bd02d 19806
21d1c967
GD
19807#include <gtk/gtk.h>
19808#include <stdio.h>
19809#include <stdlib.h>
f79bd02d 19810
e6cc62c6 19811int
21d1c967
GD
19812main ()
19813{
19814 int major, minor, micro;
19815 char *tmp_version;
f79bd02d 19816
21d1c967 19817 system ("touch conf.gtktest");
f79bd02d 19818
21d1c967
GD
19819 /* HP/UX 9 (%@#!) writes to sscanf strings */
19820 tmp_version = g_strdup("$min_gtk_version");
19821 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19822 printf("%s, bad version string\n", "$min_gtk_version");
19823 exit(1);
19824 }
f79bd02d 19825
21d1c967
GD
19826 if ((gtk_major_version != $gtk_config_major_version) ||
19827 (gtk_minor_version != $gtk_config_minor_version) ||
19828 (gtk_micro_version != $gtk_config_micro_version))
19829 {
e6cc62c6 19830 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
19831 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19832 gtk_major_version, gtk_minor_version, gtk_micro_version);
19833 printf ("*** was found! If pkg-config was correct, then it is best\n");
19834 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19835 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19836 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19837 printf("*** required on your system.\n");
19838 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19839 printf("*** to point to the correct configuration files\n");
e6cc62c6 19840 }
21d1c967
GD
19841 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19842 (gtk_minor_version != GTK_MINOR_VERSION) ||
19843 (gtk_micro_version != GTK_MICRO_VERSION))
19844 {
19845 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19846 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19847 printf("*** library (version %d.%d.%d)\n",
19848 gtk_major_version, gtk_minor_version, gtk_micro_version);
19849 }
19850 else
19851 {
19852 if ((gtk_major_version > major) ||
19853 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19854 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19855 {
19856 return 0;
19857 }
19858 else
19859 {
19860 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19861 gtk_major_version, gtk_minor_version, gtk_micro_version);
19862 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19863 major, minor, micro);
19864 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19865 printf("***\n");
19866 printf("*** If you have already installed a sufficiently new version, this error\n");
19867 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
19868 printf("*** being found. The easiest way to fix this is to remove the old version\n");
19869 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
19870 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
19871 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19872 printf("*** so that the correct libraries are found at run-time))\n");
19873 }
19874 }
19875 return 1;
19876}
f79bd02d 19877
e6cc62c6
VS
19878_ACEOF
19879rm -f conftest$ac_exeext
19880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19881 (eval $ac_link) 2>&5
19882 ac_status=$?
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886 (eval $ac_try) 2>&5
19887 ac_status=$?
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
21d1c967 19890 :
f79bd02d 19891else
e6cc62c6
VS
19892 echo "$as_me: program exited with status $ac_status" >&5
19893echo "$as_me: failed program was:" >&5
19894sed 's/^/| /' conftest.$ac_ext >&5
19895
19896( exit $ac_status )
19897no_gtk=yes
f79bd02d 19898fi
e6cc62c6 19899rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 19900fi
21d1c967
GD
19901 CFLAGS="$ac_save_CFLAGS"
19902 LIBS="$ac_save_LIBS"
19903 fi
19904 fi
19905 if test "x$no_gtk" = x ; then
e6cc62c6
VS
19906 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
19907echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
19908 wx_cv_lib_gtk=2.0
21d1c967 19909 else
e6cc62c6
VS
19910 echo "$as_me:$LINENO: result: no" >&5
19911echo "${ECHO_T}no" >&6
21d1c967
GD
19912 if test "$PKG_CONFIG" = "no" ; then
19913 echo "*** A new enough version of pkg-config was not found."
19914 echo "*** See http://pkgconfig.sourceforge.net"
19915 else
19916 if test -f conf.gtktest ; then
19917 :
19918 else
19919 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
19920 ac_save_CFLAGS="$CFLAGS"
19921 ac_save_LIBS="$LIBS"
21d1c967
GD
19922 CFLAGS="$CFLAGS $GTK_CFLAGS"
19923 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
19924 cat >conftest.$ac_ext <<_ACEOF
19925#line $LINENO "configure"
19926/* confdefs.h. */
19927_ACEOF
19928cat confdefs.h >>conftest.$ac_ext
19929cat >>conftest.$ac_ext <<_ACEOF
19930/* end confdefs.h. */
21d1c967
GD
19931
19932#include <gtk/gtk.h>
19933#include <stdio.h>
f79bd02d 19934
e6cc62c6
VS
19935int
19936main ()
19937{
19938 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19939 ;
19940 return 0;
19941}
19942_ACEOF
19943rm -f conftest.$ac_objext conftest$ac_exeext
19944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19945 (eval $ac_link) 2>&5
19946 ac_status=$?
19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948 (exit $ac_status); } &&
19949 { ac_try='test -s conftest$ac_exeext'
19950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951 (eval $ac_try) 2>&5
19952 ac_status=$?
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; }; then
21d1c967
GD
19955 echo "*** The test program compiled, but did not run. This usually means"
19956 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
19957 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
19958 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
19959 echo "*** to the installed location Also, make sure you have run ldconfig if that"
19960 echo "*** is required on your system"
19961 echo "***"
19962 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 19963 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 19964else
e6cc62c6
VS
19965 echo "$as_me: failed program was:" >&5
19966sed 's/^/| /' conftest.$ac_ext >&5
19967
19968 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 19969 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 19970fi
e6cc62c6 19971rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
19972 CFLAGS="$ac_save_CFLAGS"
19973 LIBS="$ac_save_LIBS"
19974 fi
19975 fi
19976 GTK_CFLAGS=""
19977 GTK_LIBS=""
19978 :
19979 fi
e6cc62c6
VS
19980
19981
21d1c967 19982 rm -f conf.gtktest
f79bd02d 19983
2b5f62a0 19984 else
e6cc62c6
VS
19985
19986# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
19987if test "${with_gtk_prefix+set}" = set; then
19988 withval="$with_gtk_prefix"
19989 gtk_config_prefix="$withval"
19990else
19991 gtk_config_prefix=""
e6cc62c6 19992fi;
f79bd02d 19993
21d1c967
GD
19994# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
19995if test "${with_gtk_exec_prefix+set}" = set; then
19996 withval="$with_gtk_exec_prefix"
19997 gtk_config_exec_prefix="$withval"
19998else
19999 gtk_config_exec_prefix=""
e6cc62c6 20000fi;
21d1c967
GD
20001# Check whether --enable-gtktest or --disable-gtktest was given.
20002if test "${enable_gtktest+set}" = set; then
20003 enableval="$enable_gtktest"
e6cc62c6 20004
21d1c967
GD
20005else
20006 enable_gtktest=yes
e6cc62c6 20007fi;
21d1c967
GD
20008
20009 for module in . $GTK_MODULES
20010 do
20011 case "$module" in
e6cc62c6 20012 gthread)
21d1c967
GD
20013 gtk_config_args="$gtk_config_args gthread"
20014 ;;
20015 esac
20016 done
20017
20018 if test x$gtk_config_exec_prefix != x ; then
20019 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20020 if test x${GTK_CONFIG+set} != xset ; then
20021 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20022 fi
20023 fi
20024 if test x$gtk_config_prefix != x ; then
20025 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20026 if test x${GTK_CONFIG+set} != xset ; then
20027 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20028 fi
20029 fi
20030
20031 # Extract the first word of "gtk-config", so it can be a program name with args.
20032set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20033echo "$as_me:$LINENO: checking for $ac_word" >&5
20034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20035if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20036 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20037else
e6cc62c6
VS
20038 case $GTK_CONFIG in
20039 [\\/]* | ?:[\\/]*)
21d1c967
GD
20040 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20041 ;;
21d1c967 20042 *)
e6cc62c6
VS
20043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20044for as_dir in $PATH
20045do
20046 IFS=$as_save_IFS
20047 test -z "$as_dir" && as_dir=.
20048 for ac_exec_ext in '' $ac_executable_extensions; do
20049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20050 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20052 break 2
20053 fi
20054done
20055done
20056
21d1c967
GD
20057 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20058 ;;
20059esac
20060fi
e6cc62c6
VS
20061GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20062
21d1c967 20063if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20064 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20065echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20066else
e6cc62c6
VS
20067 echo "$as_me:$LINENO: result: no" >&5
20068echo "${ECHO_T}no" >&6
21d1c967
GD
20069fi
20070
20071 min_gtk_version=1.2.7
e6cc62c6
VS
20072 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20073echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20074 no_gtk=""
20075 if test "$GTK_CONFIG" = "no" ; then
20076 no_gtk=yes
20077 else
20078 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20079 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20080 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20081 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20082 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20083 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20084 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20085 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20086 if test "x$enable_gtktest" = "xyes" ; then
20087 ac_save_CFLAGS="$CFLAGS"
20088 ac_save_LIBS="$LIBS"
20089 CFLAGS="$CFLAGS $GTK_CFLAGS"
20090 LIBS="$GTK_LIBS $LIBS"
20091 rm -f conf.gtktest
20092 if test "$cross_compiling" = yes; then
20093 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20094else
e6cc62c6
VS
20095 cat >conftest.$ac_ext <<_ACEOF
20096#line $LINENO "configure"
20097/* confdefs.h. */
20098_ACEOF
20099cat confdefs.h >>conftest.$ac_ext
20100cat >>conftest.$ac_ext <<_ACEOF
20101/* end confdefs.h. */
f79bd02d 20102
21d1c967
GD
20103#include <gtk/gtk.h>
20104#include <stdio.h>
20105#include <stdlib.h>
f79bd02d 20106
e6cc62c6 20107int
21d1c967
GD
20108main ()
20109{
20110 int major, minor, micro;
20111 char *tmp_version;
20112
20113 system ("touch conf.gtktest");
20114
20115 /* HP/UX 9 (%@#!) writes to sscanf strings */
20116 tmp_version = g_strdup("$min_gtk_version");
20117 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20118 printf("%s, bad version string\n", "$min_gtk_version");
20119 exit(1);
20120 }
90dd450c 20121
21d1c967
GD
20122 if ((gtk_major_version != $gtk_config_major_version) ||
20123 (gtk_minor_version != $gtk_config_minor_version) ||
20124 (gtk_micro_version != $gtk_config_micro_version))
20125 {
e6cc62c6 20126 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20127 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20128 gtk_major_version, gtk_minor_version, gtk_micro_version);
20129 printf ("*** was found! If gtk-config was correct, then it is best\n");
20130 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20131 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20132 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20133 printf("*** required on your system.\n");
20134 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20135 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20136 printf("*** before re-running configure\n");
e6cc62c6 20137 }
21d1c967
GD
20138#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20139 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20140 (gtk_minor_version != GTK_MINOR_VERSION) ||
20141 (gtk_micro_version != GTK_MICRO_VERSION))
20142 {
20143 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20144 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20145 printf("*** library (version %d.%d.%d)\n",
20146 gtk_major_version, gtk_minor_version, gtk_micro_version);
20147 }
20148#endif /* defined (GTK_MAJOR_VERSION) ... */
20149 else
20150 {
20151 if ((gtk_major_version > major) ||
20152 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20153 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20154 {
20155 return 0;
20156 }
20157 else
20158 {
20159 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20160 gtk_major_version, gtk_minor_version, gtk_micro_version);
20161 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20162 major, minor, micro);
20163 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20164 printf("***\n");
20165 printf("*** If you have already installed a sufficiently new version, this error\n");
20166 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20167 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20168 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20169 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20170 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20171 printf("*** so that the correct libraries are found at run-time))\n");
20172 }
20173 }
20174 return 1;
20175}
20176
e6cc62c6
VS
20177_ACEOF
20178rm -f conftest$ac_exeext
20179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20180 (eval $ac_link) 2>&5
20181 ac_status=$?
20182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20186 ac_status=$?
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; }; then
21d1c967
GD
20189 :
20190else
e6cc62c6
VS
20191 echo "$as_me: program exited with status $ac_status" >&5
20192echo "$as_me: failed program was:" >&5
20193sed 's/^/| /' conftest.$ac_ext >&5
20194
20195( exit $ac_status )
20196no_gtk=yes
21d1c967 20197fi
e6cc62c6 20198rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20199fi
21d1c967
GD
20200 CFLAGS="$ac_save_CFLAGS"
20201 LIBS="$ac_save_LIBS"
20202 fi
20203 fi
20204 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20205 echo "$as_me:$LINENO: result: yes" >&5
20206echo "${ECHO_T}yes" >&6
20207 wx_cv_lib_gtk=1.2.7
21d1c967 20208 else
e6cc62c6
VS
20209 echo "$as_me:$LINENO: result: no" >&5
20210echo "${ECHO_T}no" >&6
21d1c967
GD
20211 if test "$GTK_CONFIG" = "no" ; then
20212 echo "*** The gtk-config script installed by GTK could not be found"
20213 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20214 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20215 echo "*** full path to gtk-config."
20216 else
20217 if test -f conf.gtktest ; then
20218 :
20219 else
20220 echo "*** Could not run GTK test program, checking why..."
20221 CFLAGS="$CFLAGS $GTK_CFLAGS"
20222 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20223 cat >conftest.$ac_ext <<_ACEOF
20224#line $LINENO "configure"
20225/* confdefs.h. */
20226_ACEOF
20227cat confdefs.h >>conftest.$ac_ext
20228cat >>conftest.$ac_ext <<_ACEOF
20229/* end confdefs.h. */
21d1c967
GD
20230
20231#include <gtk/gtk.h>
20232#include <stdio.h>
20233
e6cc62c6
VS
20234int
20235main ()
20236{
20237 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20238 ;
20239 return 0;
20240}
20241_ACEOF
20242rm -f conftest.$ac_objext conftest$ac_exeext
20243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20244 (eval $ac_link) 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); } &&
20248 { ac_try='test -s conftest$ac_exeext'
20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; }; then
21d1c967
GD
20254 echo "*** The test program compiled, but did not run. This usually means"
20255 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20256 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20257 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20258 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20259 echo "*** is required on your system"
20260 echo "***"
20261 echo "*** If you have an old version installed, it is best to remove it, although"
20262 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20263 echo "***"
20264 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20265 echo "*** came with the system with the command"
20266 echo "***"
e6cc62c6 20267 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20268else
e6cc62c6
VS
20269 echo "$as_me: failed program was:" >&5
20270sed 's/^/| /' conftest.$ac_ext >&5
20271
20272 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20273 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20274 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20275 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20276fi
e6cc62c6 20277rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20278 CFLAGS="$ac_save_CFLAGS"
20279 LIBS="$ac_save_LIBS"
20280 fi
20281 fi
20282 GTK_CFLAGS=""
20283 GTK_LIBS=""
20284 :
20285 fi
e6cc62c6
VS
20286
20287
21d1c967
GD
20288 rm -f conf.gtktest
20289
21d1c967 20290
2b5f62a0 20291 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
20292
20293# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20294if test "${with_gtk_prefix+set}" = set; then
20295 withval="$with_gtk_prefix"
20296 gtk_config_prefix="$withval"
20297else
20298 gtk_config_prefix=""
e6cc62c6 20299fi;
f79bd02d 20300
21d1c967
GD
20301# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20302if test "${with_gtk_exec_prefix+set}" = set; then
20303 withval="$with_gtk_exec_prefix"
20304 gtk_config_exec_prefix="$withval"
20305else
20306 gtk_config_exec_prefix=""
e6cc62c6 20307fi;
21d1c967
GD
20308# Check whether --enable-gtktest or --disable-gtktest was given.
20309if test "${enable_gtktest+set}" = set; then
20310 enableval="$enable_gtktest"
e6cc62c6 20311
90dd450c 20312else
21d1c967 20313 enable_gtktest=yes
e6cc62c6 20314fi;
21d1c967
GD
20315
20316 for module in . $GTK_MODULES
20317 do
20318 case "$module" in
e6cc62c6 20319 gthread)
21d1c967
GD
20320 gtk_config_args="$gtk_config_args gthread"
20321 ;;
20322 esac
20323 done
20324
20325 if test x$gtk_config_exec_prefix != x ; then
20326 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20327 if test x${GTK_CONFIG+set} != xset ; then
20328 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20329 fi
20330 fi
20331 if test x$gtk_config_prefix != x ; then
20332 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20333 if test x${GTK_CONFIG+set} != xset ; then
20334 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20335 fi
20336 fi
20337
20338 # Extract the first word of "gtk-config", so it can be a program name with args.
20339set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20340echo "$as_me:$LINENO: checking for $ac_word" >&5
20341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20342if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20343 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20344else
e6cc62c6
VS
20345 case $GTK_CONFIG in
20346 [\\/]* | ?:[\\/]*)
21d1c967
GD
20347 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20348 ;;
21d1c967 20349 *)
e6cc62c6
VS
20350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20351for as_dir in $PATH
20352do
20353 IFS=$as_save_IFS
20354 test -z "$as_dir" && as_dir=.
20355 for ac_exec_ext in '' $ac_executable_extensions; do
20356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20357 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20359 break 2
20360 fi
20361done
20362done
20363
21d1c967
GD
20364 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20365 ;;
20366esac
20367fi
e6cc62c6
VS
20368GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20369
21d1c967 20370if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
20371 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20372echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 20373else
e6cc62c6
VS
20374 echo "$as_me:$LINENO: result: no" >&5
20375echo "${ECHO_T}no" >&6
21d1c967
GD
20376fi
20377
20378 min_gtk_version=1.2.3
e6cc62c6
VS
20379 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20380echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
20381 no_gtk=""
20382 if test "$GTK_CONFIG" = "no" ; then
20383 no_gtk=yes
20384 else
20385 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20386 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20387 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20388 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20389 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20390 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20391 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20392 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20393 if test "x$enable_gtktest" = "xyes" ; then
20394 ac_save_CFLAGS="$CFLAGS"
20395 ac_save_LIBS="$LIBS"
20396 CFLAGS="$CFLAGS $GTK_CFLAGS"
20397 LIBS="$GTK_LIBS $LIBS"
20398 rm -f conf.gtktest
20399 if test "$cross_compiling" = yes; then
20400 echo $ac_n "cross compiling; assumed OK... $ac_c"
20401else
e6cc62c6
VS
20402 cat >conftest.$ac_ext <<_ACEOF
20403#line $LINENO "configure"
20404/* confdefs.h. */
20405_ACEOF
20406cat confdefs.h >>conftest.$ac_ext
20407cat >>conftest.$ac_ext <<_ACEOF
20408/* end confdefs.h. */
21d1c967
GD
20409
20410#include <gtk/gtk.h>
20411#include <stdio.h>
20412#include <stdlib.h>
20413
e6cc62c6 20414int
21d1c967
GD
20415main ()
20416{
20417 int major, minor, micro;
20418 char *tmp_version;
20419
20420 system ("touch conf.gtktest");
20421
20422 /* HP/UX 9 (%@#!) writes to sscanf strings */
20423 tmp_version = g_strdup("$min_gtk_version");
20424 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20425 printf("%s, bad version string\n", "$min_gtk_version");
20426 exit(1);
20427 }
20428
20429 if ((gtk_major_version != $gtk_config_major_version) ||
20430 (gtk_minor_version != $gtk_config_minor_version) ||
20431 (gtk_micro_version != $gtk_config_micro_version))
20432 {
e6cc62c6 20433 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20434 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20435 gtk_major_version, gtk_minor_version, gtk_micro_version);
20436 printf ("*** was found! If gtk-config was correct, then it is best\n");
20437 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20438 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20439 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20440 printf("*** required on your system.\n");
20441 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20442 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20443 printf("*** before re-running configure\n");
e6cc62c6 20444 }
21d1c967
GD
20445#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20446 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20447 (gtk_minor_version != GTK_MINOR_VERSION) ||
20448 (gtk_micro_version != GTK_MICRO_VERSION))
20449 {
20450 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20451 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20452 printf("*** library (version %d.%d.%d)\n",
20453 gtk_major_version, gtk_minor_version, gtk_micro_version);
20454 }
20455#endif /* defined (GTK_MAJOR_VERSION) ... */
20456 else
20457 {
20458 if ((gtk_major_version > major) ||
20459 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20460 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20461 {
20462 return 0;
20463 }
20464 else
20465 {
20466 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20467 gtk_major_version, gtk_minor_version, gtk_micro_version);
20468 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20469 major, minor, micro);
20470 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20471 printf("***\n");
20472 printf("*** If you have already installed a sufficiently new version, this error\n");
20473 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20474 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20475 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20476 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20477 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20478 printf("*** so that the correct libraries are found at run-time))\n");
20479 }
20480 }
20481 return 1;
20482}
20483
e6cc62c6
VS
20484_ACEOF
20485rm -f conftest$ac_exeext
20486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20487 (eval $ac_link) 2>&5
20488 ac_status=$?
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492 (eval $ac_try) 2>&5
20493 ac_status=$?
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); }; }; then
21d1c967
GD
20496 :
20497else
e6cc62c6
VS
20498 echo "$as_me: program exited with status $ac_status" >&5
20499echo "$as_me: failed program was:" >&5
20500sed 's/^/| /' conftest.$ac_ext >&5
20501
20502( exit $ac_status )
20503no_gtk=yes
21d1c967 20504fi
e6cc62c6 20505rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 20506fi
21d1c967
GD
20507 CFLAGS="$ac_save_CFLAGS"
20508 LIBS="$ac_save_LIBS"
20509 fi
20510 fi
20511 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20512 echo "$as_me:$LINENO: result: yes" >&5
20513echo "${ECHO_T}yes" >&6
20514 wx_cv_lib_gtk=1.2.3
21d1c967 20515 else
e6cc62c6
VS
20516 echo "$as_me:$LINENO: result: no" >&5
20517echo "${ECHO_T}no" >&6
21d1c967
GD
20518 if test "$GTK_CONFIG" = "no" ; then
20519 echo "*** The gtk-config script installed by GTK could not be found"
20520 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20521 echo "*** your path, or set the GTK_CONFIG environment variable to the"
20522 echo "*** full path to gtk-config."
20523 else
20524 if test -f conf.gtktest ; then
20525 :
20526 else
20527 echo "*** Could not run GTK test program, checking why..."
20528 CFLAGS="$CFLAGS $GTK_CFLAGS"
20529 LIBS="$LIBS $GTK_LIBS"
e6cc62c6
VS
20530 cat >conftest.$ac_ext <<_ACEOF
20531#line $LINENO "configure"
20532/* confdefs.h. */
20533_ACEOF
20534cat confdefs.h >>conftest.$ac_ext
20535cat >>conftest.$ac_ext <<_ACEOF
20536/* end confdefs.h. */
21d1c967
GD
20537
20538#include <gtk/gtk.h>
20539#include <stdio.h>
f79bd02d 20540
e6cc62c6
VS
20541int
20542main ()
20543{
20544 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20545 ;
20546 return 0;
20547}
20548_ACEOF
20549rm -f conftest.$ac_objext conftest$ac_exeext
20550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20551 (eval $ac_link) 2>&5
20552 ac_status=$?
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } &&
20555 { ac_try='test -s conftest$ac_exeext'
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
21d1c967
GD
20561 echo "*** The test program compiled, but did not run. This usually means"
20562 echo "*** that the run-time linker is not finding GTK or finding the wrong"
20563 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20564 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20565 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20566 echo "*** is required on your system"
20567 echo "***"
20568 echo "*** If you have an old version installed, it is best to remove it, although"
20569 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20570 echo "***"
20571 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20572 echo "*** came with the system with the command"
20573 echo "***"
e6cc62c6 20574 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 20575else
e6cc62c6
VS
20576 echo "$as_me: failed program was:" >&5
20577sed 's/^/| /' conftest.$ac_ext >&5
20578
20579 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
20580 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20581 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 20582 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 20583fi
e6cc62c6 20584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20585 CFLAGS="$ac_save_CFLAGS"
20586 LIBS="$ac_save_LIBS"
20587 fi
20588 fi
20589 GTK_CFLAGS=""
20590 GTK_LIBS=""
20591 :
20592 fi
e6cc62c6
VS
20593
20594
21d1c967 20595 rm -f conf.gtktest
f79bd02d 20596
2b5f62a0 20597 fi
21d1c967
GD
20598 fi
20599
20600 if test -z "$wx_cv_lib_gtk"; then
20601 wx_cv_lib_gtk=none
20602 else
20603 wx_cv_cflags_gtk=$GTK_CFLAGS
20604 wx_cv_libs_gtk=$GTK_LIBS
20605 fi
e6cc62c6
VS
20606
20607
5c6fa7d2 20608fi
52127426 20609
8284b0c5 20610
21d1c967 20611 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
20612 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20613echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
20614 fi
20615
20616 case "$wx_cv_lib_gtk" in
20617 2.0) WXGTK20=1
2b5f62a0 20618 TOOLKIT_VERSION=2
21d1c967
GD
20619 ;;
20620 1.2.7) WXGTK127=1
20621 WXGTK12=1
20622 ;;
20623 1.2.3) WXGTK12=1
20624 ;;
e6cc62c6
VS
20625 *) { { echo "$as_me:$LINENO: error:
20626Please check that gtk-config is in path, the directory
20627where GTK+ libraries are installed (returned by
20628'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20629equivalent variable and GTK+ is version 1.2.3 or above.
20630 " >&5
20631echo "$as_me: error:
247f5006
VZ
20632Please check that gtk-config is in path, the directory
20633where GTK+ libraries are installed (returned by
20634'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20635equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
20636 " >&2;}
20637 { (exit 1); exit 1; }; }
21d1c967
GD
20638 ;;
20639 esac
20640
b13cd66e
VZ
20641 if test "$WXGTK20" = 1; then
20642 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 20643
f09359cf
VS
20644 succeeded=no
20645
20646 if test -z "$PKG_CONFIG"; then
20647 # Extract the first word of "pkg-config", so it can be a program name with args.
20648set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20649echo "$as_me:$LINENO: checking for $ac_word" >&5
20650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20651if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 20653else
e6cc62c6
VS
20654 case $PKG_CONFIG in
20655 [\\/]* | ?:[\\/]*)
f09359cf
VS
20656 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20657 ;;
f09359cf 20658 *)
e6cc62c6
VS
20659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20660for as_dir in $PATH
20661do
20662 IFS=$as_save_IFS
20663 test -z "$as_dir" && as_dir=.
20664 for ac_exec_ext in '' $ac_executable_extensions; do
20665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20666 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20668 break 2
20669 fi
20670done
20671done
20672
f09359cf
VS
20673 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20674 ;;
20675esac
20676fi
e6cc62c6
VS
20677PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20678
f09359cf 20679if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20680 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20681echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 20682else
e6cc62c6
VS
20683 echo "$as_me:$LINENO: result: no" >&5
20684echo "${ECHO_T}no" >&6
f09359cf
VS
20685fi
20686
20687 fi
20688
20689 if test "$PKG_CONFIG" = "no" ; then
20690 echo "*** The pkg-config script could not be found. Make sure it is"
20691 echo "*** in your path, or set the PKG_CONFIG environment variable"
20692 echo "*** to the full path to pkg-config."
20693 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20694 else
20695 PKG_CONFIG_MIN_VERSION=0.9.0
20696 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
20697 echo "$as_me:$LINENO: checking for pangoft2" >&5
20698echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
20699
20700 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
20701 echo "$as_me:$LINENO: result: yes" >&5
20702echo "${ECHO_T}yes" >&6
f09359cf
VS
20703 succeeded=yes
20704
e6cc62c6
VS
20705 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20706echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 20707 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
20708 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20709echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 20710
e6cc62c6
VS
20711 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20712echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 20713 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
20714 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20715echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
20716 else
20717 PANGOFT2_CFLAGS=""
20718 PANGOFT2_LIBS=""
e6cc62c6 20719 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
20720 ## do set a variable so people can do so.
20721 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 20722
f09359cf
VS
20723 fi
20724
e6cc62c6
VS
20725
20726
f09359cf
VS
20727 else
20728 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20729 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20730 fi
20731 fi
20732
20733 if test $succeeded = yes; then
e6cc62c6 20734
b13cd66e 20735 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 20736 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 20737
f09359cf 20738 else
e6cc62c6
VS
20739
20740 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20741echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 20742 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
20743
20744
f09359cf
VS
20745 fi
20746
b13cd66e 20747 fi
2b5f62a0
VZ
20748 else
20749 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
20750 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20751echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
20752 wxUSE_UNICODE=no
20753 fi
20754 fi
20755
20756 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
20757
20758for ac_func in poll
2b5f62a0 20759do
e6cc62c6
VS
20760as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20761echo "$as_me:$LINENO: checking for $ac_func" >&5
20762echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20763if eval "test \"\${$as_ac_var+set}\" = set"; then
20764 echo $ECHO_N "(cached) $ECHO_C" >&6
20765else
20766 cat >conftest.$ac_ext <<_ACEOF
20767#line $LINENO "configure"
20768/* confdefs.h. */
20769_ACEOF
20770cat confdefs.h >>conftest.$ac_ext
20771cat >>conftest.$ac_ext <<_ACEOF
20772/* end confdefs.h. */
2b5f62a0 20773/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
20774 which can conflict with char $ac_func (); below.
20775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20776 <limits.h> exists even on freestanding compilers. */
20777#ifdef __STDC__
20778# include <limits.h>
20779#else
20780# include <assert.h>
20781#endif
2b5f62a0 20782/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20783#ifdef __cplusplus
20784extern "C"
20785{
20786#endif
2b5f62a0 20787/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20788 builtin and then its argument prototype would still apply. */
20789char $ac_func ();
2b5f62a0
VZ
20790/* The GNU C library defines this for functions which it implements
20791 to always fail with ENOSYS. Some functions are actually named
20792 something starting with __ and the normal name is an alias. */
20793#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20794choke me
20795#else
e6cc62c6
VS
20796char (*f) () = $ac_func;
20797#endif
20798#ifdef __cplusplus
20799}
2b5f62a0
VZ
20800#endif
20801
e6cc62c6
VS
20802int
20803main ()
20804{
20805return f != $ac_func;
20806 ;
20807 return 0;
20808}
20809_ACEOF
20810rm -f conftest.$ac_objext conftest$ac_exeext
20811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20812 (eval $ac_link) 2>&5
20813 ac_status=$?
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } &&
20816 { ac_try='test -s conftest$ac_exeext'
20817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818 (eval $ac_try) 2>&5
20819 ac_status=$?
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; }; then
20822 eval "$as_ac_var=yes"
20823else
20824 echo "$as_me: failed program was:" >&5
20825sed 's/^/| /' conftest.$ac_ext >&5
20826
20827eval "$as_ac_var=no"
20828fi
20829rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20830fi
20831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20832echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20833if test `eval echo '${'$as_ac_var'}'` = yes; then
20834 cat >>confdefs.h <<_ACEOF
20835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20836_ACEOF
2b5f62a0 20837
2b5f62a0
VZ
20838fi
20839done
20840
f09359cf
VS
20841 fi
20842
21d1c967 20843 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 20844 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
20845
20846 AFMINSTALL=afminstall
20847 TOOLKIT=GTK
20848 GUIDIST=GTK_DIST
20849
e6cc62c6
VS
20850 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
20851echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
20852if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
20853 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 20854else
e6cc62c6 20855 ac_check_lib_save_LIBS=$LIBS
21d1c967 20856LIBS="-lgdk $LIBS"
e6cc62c6
VS
20857cat >conftest.$ac_ext <<_ACEOF
20858#line $LINENO "configure"
20859/* confdefs.h. */
20860_ACEOF
20861cat confdefs.h >>conftest.$ac_ext
20862cat >>conftest.$ac_ext <<_ACEOF
20863/* end confdefs.h. */
20864
5c6fa7d2 20865/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20866#ifdef __cplusplus
20867extern "C"
20868#endif
5c6fa7d2 20869/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20870 builtin and then its argument prototype would still apply. */
20871char gdk_im_open ();
20872int
20873main ()
20874{
20875gdk_im_open ();
20876 ;
20877 return 0;
20878}
20879_ACEOF
20880rm -f conftest.$ac_objext conftest$ac_exeext
20881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20882 (eval $ac_link) 2>&5
20883 ac_status=$?
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -s conftest$ac_exeext'
20887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20888 (eval $ac_try) 2>&5
20889 ac_status=$?
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; }; then
20892 ac_cv_lib_gdk_gdk_im_open=yes
20893else
20894 echo "$as_me: failed program was:" >&5
20895sed 's/^/| /' conftest.$ac_ext >&5
20896
20897ac_cv_lib_gdk_gdk_im_open=no
20898fi
20899rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20900LIBS=$ac_check_lib_save_LIBS
20901fi
20902echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
20903echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
20904if test $ac_cv_lib_gdk_gdk_im_open = yes; then
20905 cat >>confdefs.h <<\_ACEOF
21d1c967 20906#define HAVE_XIM 1
e6cc62c6 20907_ACEOF
21d1c967 20908
90dd450c 20909fi
1e6feb95 20910
21d1c967 20911 fi
1e6feb95 20912
21d1c967 20913 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
20914 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
20915echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 20916 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
20917 echo "$as_me:$LINENO: result: not found" >&5
20918echo "${ECHO_T}not found" >&6
20919 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
20920echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
20921 { (exit 1); exit 1; }; }
21d1c967 20922 else
e6cc62c6
VS
20923 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
20924echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
20925 fi
20926
e6cc62c6
VS
20927 echo "$as_me:$LINENO: checking for libmgl location" >&5
20928echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21d1c967
GD
20929 case "${host}" in
20930 *-*-linux* )
63a76696
VS
20931 if test "x$wxUSE_SHARED" = xyes ; then
20932 mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
20933 else
20934 mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
20935 fi
21d1c967
GD
20936 ;;
20937 *-pc-msdosdjgpp )
63a76696 20938 mgl_os_candidates="dos32/dj2"
21d1c967
GD
20939 ;;
20940 *)
e6cc62c6
VS
20941 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
20942echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
20943 { (exit 1); exit 1; }; }
21d1c967 20944 esac
1e6feb95 20945
21d1c967 20946 mgl_lib_type=""
63a76696
VS
20947 mgl_os=""
20948
20949 for mgl_os_i in $mgl_os_candidates ; do
20950 if test "x$mgl_os" = x ; then
20951 if test "$wxUSE_DEBUG_FLAG" = yes ; then
20952 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
20953 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
20954 mgl_lib_type=debug
20955 mgl_os=$mgl_os_i
20956 fi
20957 fi
20958 if test "x$mgl_lib_type" = x ; then
20959 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
20960 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
20961 mgl_lib_type=release
20962 mgl_os=$mgl_os_i
20963 fi
20964 fi
21d1c967 20965 fi
63a76696 20966 done
2224580a 20967
63a76696 20968 if test "x$mgl_os" = x ; then
e6cc62c6
VS
20969 echo "$as_me:$LINENO: result: not found" >&5
20970echo "${ECHO_T}not found" >&6
20971 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
20972echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
20973 { (exit 1); exit 1; }; }
63a76696 20974 fi
e6cc62c6
VS
20975 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
20976echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 20977
1d1b75ac
VZ
20978 wxUSE_UNIVERSAL="yes"
20979
21d1c967
GD
20980 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
20981 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
20982
90dd450c 20983 AFMINSTALL=afminstall
21d1c967
GD
20984 TOOLKIT=MGL
20985 GUIDIST=MGL_DIST
20986 fi
dad6c0ea 20987
21d1c967 20988 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
20989 echo "$as_me:$LINENO: checking for MicroWindows" >&5
20990echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 20991 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
20992 echo "$as_me:$LINENO: result: not found" >&5
20993echo "${ECHO_T}not found" >&6
20994 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
20995echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
20996 { (exit 1); exit 1; }; }
21d1c967 20997 else
e6cc62c6
VS
20998 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
20999echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 21000 fi
f6bcfd97 21001
21d1c967 21002 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
21003 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21004echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 21005 else
e6cc62c6
VS
21006 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21007echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21008 { (exit 1); exit 1; }; }
90dd450c 21009 fi
0b2effe9 21010
21d1c967
GD
21011 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21012 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21013
1d1b75ac
VZ
21014 wxUSE_UNIVERSAL="yes"
21015
21d1c967
GD
21016 AFMINSTALL=afminstall
21017 TOOLKIT=MICROWIN
21018 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21019
21020 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21021 fi
f6bcfd97 21022
21d1c967 21023 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21024 echo "$as_me:$LINENO: checking for X" >&5
21025echo $ECHO_N "checking for X... $ECHO_C" >&6
21026
d8356fa3 21027
21d1c967
GD
21028# Check whether --with-x or --without-x was given.
21029if test "${with_x+set}" = set; then
21030 withval="$with_x"
2224580a 21031
e6cc62c6 21032fi;
21d1c967
GD
21033# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21034if test "x$with_x" = xno; then
21035 # The user explicitly disabled X.
21036 have_x=disabled
21037else
21038 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21039 # Both variables are already set.
21040 have_x=yes
21041 else
e6cc62c6
VS
21042 if test "${ac_cv_have_x+set}" = set; then
21043 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
21044else
21045 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
21046ac_x_includes=no ac_x_libraries=no
21047rm -fr conftest.dir
21048if mkdir conftest.dir; then
21049 cd conftest.dir
21d1c967 21050 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 21051 cat >Imakefile <<'_ACEOF'
21d1c967
GD
21052acfindx:
21053 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 21054_ACEOF
21d1c967
GD
21055 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21056 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21057 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21058 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21059 for ac_extension in a so sl; do
21060 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
e6cc62c6 21061 test -f $ac_im_libdir/libX11.$ac_extension; then
21d1c967
GD
21062 ac_im_usrlibdir=$ac_im_libdir; break
21063 fi
21064 done
21065 # Screen out bogus values from the imake configuration. They are
21066 # bogus both because they are the default anyway, and because
21067 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 21068 case $ac_im_incroot in
21d1c967 21069 /usr/include) ;;
e6cc62c6 21070 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 21071 esac
e6cc62c6 21072 case $ac_im_usrlibdir in
21d1c967 21073 /usr/lib | /lib) ;;
e6cc62c6 21074 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
21075 esac
21076 fi
21077 cd ..
e6cc62c6 21078 rm -fr conftest.dir
21d1c967 21079fi
10f2d63a 21080
e6cc62c6
VS
21081# Standard set of common directories for X headers.
21082# Check X11 before X11Rn because it is often a symlink to the current release.
21083ac_x_header_dirs='
21084/usr/X11/include
21085/usr/X11R6/include
21086/usr/X11R5/include
21087/usr/X11R4/include
21088
21089/usr/include/X11
21090/usr/include/X11R6
21091/usr/include/X11R5
21092/usr/include/X11R4
21093
21094/usr/local/X11/include
21095/usr/local/X11R6/include
21096/usr/local/X11R5/include
21097/usr/local/X11R4/include
21098
21099/usr/local/include/X11
21100/usr/local/include/X11R6
21101/usr/local/include/X11R5
21102/usr/local/include/X11R4
21103
21104/usr/X386/include
21105/usr/x386/include
21106/usr/XFree86/include/X11
21107
21108/usr/include
21109/usr/local/include
21110/usr/unsupported/include
21111/usr/athena/include
21112/usr/local/x11r5/include
21113/usr/lpp/Xamples/include
21114
21115/usr/openwin/include
21116/usr/openwin/share/include'
21117
21118if test "$ac_x_includes" = no; then
21119 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 21120 # First, try using that file with no special directory specified.
e6cc62c6
VS
21121 cat >conftest.$ac_ext <<_ACEOF
21122#line $LINENO "configure"
21123/* confdefs.h. */
21124_ACEOF
21125cat confdefs.h >>conftest.$ac_ext
21126cat >>conftest.$ac_ext <<_ACEOF
21127/* end confdefs.h. */
21128#include <X11/Intrinsic.h>
21129_ACEOF
21130if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21132 ac_status=$?
21133 grep -v '^ *+' conftest.er1 >conftest.err
21134 rm -f conftest.er1
21135 cat conftest.err >&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } >/dev/null; then
21138 if test -s conftest.err; then
21139 ac_cpp_err=$ac_c_preproc_warn_flag
21140 else
21141 ac_cpp_err=
21142 fi
21143else
21144 ac_cpp_err=yes
21145fi
21146if test -z "$ac_cpp_err"; then
21d1c967
GD
21147 # We can compile using X headers with no special include directory.
21148ac_x_includes=
90dd450c 21149else
e6cc62c6
VS
21150 echo "$as_me: failed program was:" >&5
21151sed 's/^/| /' conftest.$ac_ext >&5
21152
21153 for ac_dir in $ac_x_header_dirs; do
21154 if test -r "$ac_dir/X11/Intrinsic.h"; then
21155 ac_x_includes=$ac_dir
21156 break
21157 fi
21158done
3a922bb4 21159fi
e6cc62c6
VS
21160rm -f conftest.err conftest.$ac_ext
21161fi # $ac_x_includes = no
10f2d63a 21162
e6cc62c6 21163if test "$ac_x_libraries" = no; then
21d1c967 21164 # Check for the libraries.
21d1c967
GD
21165 # See if we find them without any special options.
21166 # Don't add to $LIBS permanently.
e6cc62c6
VS
21167 ac_save_LIBS=$LIBS
21168 LIBS="-lXt $LIBS"
21169 cat >conftest.$ac_ext <<_ACEOF
21170#line $LINENO "configure"
21171/* confdefs.h. */
21172_ACEOF
21173cat confdefs.h >>conftest.$ac_ext
21174cat >>conftest.$ac_ext <<_ACEOF
21175/* end confdefs.h. */
21176#include <X11/Intrinsic.h>
21177int
21178main ()
21179{
21180XtMalloc (0)
21181 ;
21182 return 0;
21183}
21184_ACEOF
21185rm -f conftest.$ac_objext conftest$ac_exeext
21186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21187 (eval $ac_link) 2>&5
21188 ac_status=$?
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } &&
21191 { ac_try='test -s conftest$ac_exeext'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; }; then
21197 LIBS=$ac_save_LIBS
21d1c967
GD
21198# We can link X programs with no special library path.
21199ac_x_libraries=
3a922bb4 21200else
e6cc62c6
VS
21201 echo "$as_me: failed program was:" >&5
21202sed 's/^/| /' conftest.$ac_ext >&5
21203
21204LIBS=$ac_save_LIBS
21205for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 21206do
e6cc62c6 21207 # Don't even attempt the hair of trying to link an X program!
21d1c967 21208 for ac_extension in a so sl; do
e6cc62c6 21209 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
21210 ac_x_libraries=$ac_dir
21211 break 2
21212 fi
21213 done
21214done
3a922bb4 21215fi
e6cc62c6
VS
21216rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21217fi # $ac_x_libraries = no
90dd450c 21218
e6cc62c6 21219if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
21220 # Didn't find X anywhere. Cache the known absence of X.
21221 ac_cv_have_x="have_x=no"
21222else
21223 # Record where we found X for the cache.
21224 ac_cv_have_x="have_x=yes \
21225 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 21226fi
21d1c967 21227fi
e6cc62c6 21228
21d1c967
GD
21229 fi
21230 eval "$ac_cv_have_x"
21231fi # $with_x != no
90dd450c 21232
21d1c967 21233if test "$have_x" != yes; then
e6cc62c6
VS
21234 echo "$as_me:$LINENO: result: $have_x" >&5
21235echo "${ECHO_T}$have_x" >&6
21d1c967
GD
21236 no_x=yes
21237else
21238 # If each of the values was on the command line, it overrides each guess.
21239 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21240 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21241 # Update the cache value to reflect the command line values.
21242 ac_cv_have_x="have_x=yes \
21243 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
21244 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21245echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 21246fi
90dd450c 21247
21d1c967 21248if test "$no_x" = yes; then
90dd450c 21249 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
21250
21251cat >>confdefs.h <<\_ACEOF
90dd450c 21252#define X_DISPLAY_MISSING 1
e6cc62c6 21253_ACEOF
90dd450c
VZ
21254
21255 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21256else
21257 if test -n "$x_includes"; then
21258 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 21259 fi
3a922bb4 21260
90dd450c
VZ
21261 # It would also be nice to do this for all -L options, not just this one.
21262 if test -n "$x_libraries"; then
21263 X_LIBS="$X_LIBS -L$x_libraries"
21264 # For Solaris; some versions of Sun CC require a space after -R and
21265 # others require no space. Words are not sufficient . . . .
e6cc62c6 21266 case `(uname -sr) 2>/dev/null` in
90dd450c 21267 "SunOS 5"*)
e6cc62c6
VS
21268 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21269echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21270 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21271 cat >conftest.$ac_ext <<_ACEOF
21272#line $LINENO "configure"
21273/* confdefs.h. */
21274_ACEOF
21275cat confdefs.h >>conftest.$ac_ext
21276cat >>conftest.$ac_ext <<_ACEOF
21277/* end confdefs.h. */
21278
21279int
21280main ()
21281{
90dd450c 21282
e6cc62c6
VS
21283 ;
21284 return 0;
21285}
21286_ACEOF
21287rm -f conftest.$ac_objext conftest$ac_exeext
21288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21289 (eval $ac_link) 2>&5
21290 ac_status=$?
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } &&
21293 { ac_try='test -s conftest$ac_exeext'
21294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21295 (eval $ac_try) 2>&5
21296 ac_status=$?
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); }; }; then
90dd450c 21299 ac_R_nospace=yes
3a922bb4 21300else
e6cc62c6
VS
21301 echo "$as_me: failed program was:" >&5
21302sed 's/^/| /' conftest.$ac_ext >&5
21303
21304ac_R_nospace=no
3a922bb4 21305fi
e6cc62c6 21306rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21307 if test $ac_R_nospace = yes; then
e6cc62c6
VS
21308 echo "$as_me:$LINENO: result: no" >&5
21309echo "${ECHO_T}no" >&6
90dd450c
VZ
21310 X_LIBS="$X_LIBS -R$x_libraries"
21311 else
21312 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
21313 cat >conftest.$ac_ext <<_ACEOF
21314#line $LINENO "configure"
21315/* confdefs.h. */
21316_ACEOF
21317cat confdefs.h >>conftest.$ac_ext
21318cat >>conftest.$ac_ext <<_ACEOF
21319/* end confdefs.h. */
21320
21321int
21322main ()
21323{
6f754473 21324
e6cc62c6
VS
21325 ;
21326 return 0;
21327}
21328_ACEOF
21329rm -f conftest.$ac_objext conftest$ac_exeext
21330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21331 (eval $ac_link) 2>&5
21332 ac_status=$?
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } &&
21335 { ac_try='test -s conftest$ac_exeext'
21336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337 (eval $ac_try) 2>&5
21338 ac_status=$?
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; }; then
90dd450c
VZ
21341 ac_R_space=yes
21342else
e6cc62c6
VS
21343 echo "$as_me: failed program was:" >&5
21344sed 's/^/| /' conftest.$ac_ext >&5
21345
21346ac_R_space=no
90dd450c 21347fi
e6cc62c6 21348rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 21349 if test $ac_R_space = yes; then
e6cc62c6
VS
21350 echo "$as_me:$LINENO: result: yes" >&5
21351echo "${ECHO_T}yes" >&6
90dd450c
VZ
21352 X_LIBS="$X_LIBS -R $x_libraries"
21353 else
e6cc62c6
VS
21354 echo "$as_me:$LINENO: result: neither works" >&5
21355echo "${ECHO_T}neither works" >&6
90dd450c
VZ
21356 fi
21357 fi
e6cc62c6 21358 LIBS=$ac_xsave_LIBS
90dd450c
VZ
21359 esac
21360 fi
21361
21362 # Check for system-dependent libraries X programs must link with.
21363 # Do this before checking for the system-independent R6 libraries
21364 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 21365
90dd450c
VZ
21366 if test "$ISC" = yes; then
21367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21368 else
e6cc62c6
VS
21369 # Martyn Johnson says this is needed for Ultrix, if the X
21370 # libraries were built with DECnet support. And Karl Berry says
90dd450c 21371 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
21372 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21373 cat >conftest.$ac_ext <<_ACEOF
21374#line $LINENO "configure"
21375/* confdefs.h. */
21376_ACEOF
21377cat confdefs.h >>conftest.$ac_ext
21378cat >>conftest.$ac_ext <<_ACEOF
21379/* end confdefs.h. */
21380
247f5006 21381/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21382#ifdef __cplusplus
21383extern "C"
21384#endif
247f5006 21385/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21386 builtin and then its argument prototype would still apply. */
21387char XOpenDisplay ();
21388int
21389main ()
21390{
21391XOpenDisplay ();
21392 ;
21393 return 0;
21394}
21395_ACEOF
21396rm -f conftest.$ac_objext conftest$ac_exeext
21397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21398 (eval $ac_link) 2>&5
21399 ac_status=$?
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); } &&
21402 { ac_try='test -s conftest$ac_exeext'
21403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404 (eval $ac_try) 2>&5
21405 ac_status=$?
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); }; }; then
21408 :
21409else
21410 echo "$as_me: failed program was:" >&5
21411sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 21412
e6cc62c6
VS
21413echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21414echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21415if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21416 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21417else
e6cc62c6
VS
21418 ac_check_lib_save_LIBS=$LIBS
21419LIBS="-ldnet $LIBS"
21420cat >conftest.$ac_ext <<_ACEOF
21421#line $LINENO "configure"
21422/* confdefs.h. */
21423_ACEOF
21424cat confdefs.h >>conftest.$ac_ext
21425cat >>conftest.$ac_ext <<_ACEOF
21426/* end confdefs.h. */
a0b9e27f 21427
e6cc62c6
VS
21428/* Override any gcc2 internal prototype to avoid an error. */
21429#ifdef __cplusplus
21430extern "C"
21431#endif
21432/* We use char because int might match the return type of a gcc2
21433 builtin and then its argument prototype would still apply. */
21434char dnet_ntoa ();
21435int
21436main ()
21437{
21438dnet_ntoa ();
21439 ;
21440 return 0;
21441}
21442_ACEOF
21443rm -f conftest.$ac_objext conftest$ac_exeext
21444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21445 (eval $ac_link) 2>&5
21446 ac_status=$?
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } &&
21449 { ac_try='test -s conftest$ac_exeext'
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21452 ac_status=$?
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; }; then
21455 ac_cv_lib_dnet_dnet_ntoa=yes
21456else
21457 echo "$as_me: failed program was:" >&5
21458sed 's/^/| /' conftest.$ac_ext >&5
21459
21460ac_cv_lib_dnet_dnet_ntoa=no
21461fi
21462rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21463LIBS=$ac_check_lib_save_LIBS
21464fi
21465echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21466echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21467if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 21468 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
21469fi
21470
90dd450c 21471 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
21472 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21473echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21474if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21475 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21476else
e6cc62c6 21477 ac_check_lib_save_LIBS=$LIBS
90dd450c 21478LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
21479cat >conftest.$ac_ext <<_ACEOF
21480#line $LINENO "configure"
21481/* confdefs.h. */
21482_ACEOF
21483cat confdefs.h >>conftest.$ac_ext
21484cat >>conftest.$ac_ext <<_ACEOF
21485/* end confdefs.h. */
21486
90dd450c 21487/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21488#ifdef __cplusplus
21489extern "C"
21490#endif
90dd450c 21491/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21492 builtin and then its argument prototype would still apply. */
21493char dnet_ntoa ();
21494int
21495main ()
21496{
21497dnet_ntoa ();
21498 ;
21499 return 0;
21500}
21501_ACEOF
21502rm -f conftest.$ac_objext conftest$ac_exeext
21503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21504 (eval $ac_link) 2>&5
21505 ac_status=$?
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } &&
21508 { ac_try='test -s conftest$ac_exeext'
21509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510 (eval $ac_try) 2>&5
21511 ac_status=$?
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); }; }; then
21514 ac_cv_lib_dnet_stub_dnet_ntoa=yes
21515else
21516 echo "$as_me: failed program was:" >&5
21517sed 's/^/| /' conftest.$ac_ext >&5
21518
21519ac_cv_lib_dnet_stub_dnet_ntoa=no
21520fi
21521rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21522LIBS=$ac_check_lib_save_LIBS
21523fi
21524echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21525echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21526if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 21527 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
21528fi
21529
90dd450c 21530 fi
e6cc62c6
VS
21531fi
21532rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21533 LIBS="$ac_xsave_LIBS"
978f1259 21534
90dd450c
VZ
21535 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21536 # to get the SysV transport functions.
e6cc62c6 21537 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
21538 # needs -lnsl.
21539 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
21540 # on Irix 5.2, according to T.E. Dickey.
21541 # The functions gethostbyname, getservbyname, and inet_addr are
21542 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21543 echo "$as_me:$LINENO: checking for gethostbyname" >&5
21544echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21545if test "${ac_cv_func_gethostbyname+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21547else
21548 cat >conftest.$ac_ext <<_ACEOF
21549#line $LINENO "configure"
21550/* confdefs.h. */
21551_ACEOF
21552cat confdefs.h >>conftest.$ac_ext
21553cat >>conftest.$ac_ext <<_ACEOF
21554/* end confdefs.h. */
90dd450c 21555/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21556 which can conflict with char gethostbyname (); below.
21557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21558 <limits.h> exists even on freestanding compilers. */
21559#ifdef __STDC__
21560# include <limits.h>
21561#else
21562# include <assert.h>
21563#endif
90dd450c 21564/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21565#ifdef __cplusplus
21566extern "C"
21567{
21568#endif
90dd450c 21569/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21570 builtin and then its argument prototype would still apply. */
21571char gethostbyname ();
90dd450c
VZ
21572/* The GNU C library defines this for functions which it implements
21573 to always fail with ENOSYS. Some functions are actually named
21574 something starting with __ and the normal name is an alias. */
21575#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21576choke me
21577#else
e6cc62c6
VS
21578char (*f) () = gethostbyname;
21579#endif
21580#ifdef __cplusplus
21581}
90dd450c 21582#endif
978f1259 21583
e6cc62c6
VS
21584int
21585main ()
21586{
21587return f != gethostbyname;
21588 ;
21589 return 0;
21590}
21591_ACEOF
21592rm -f conftest.$ac_objext conftest$ac_exeext
21593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21594 (eval $ac_link) 2>&5
21595 ac_status=$?
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } &&
21598 { ac_try='test -s conftest$ac_exeext'
21599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21601 ac_status=$?
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; }; then
21604 ac_cv_func_gethostbyname=yes
21605else
21606 echo "$as_me: failed program was:" >&5
21607sed 's/^/| /' conftest.$ac_ext >&5
21608
21609ac_cv_func_gethostbyname=no
21610fi
21611rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21612fi
21613echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21614echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 21615
90dd450c 21616 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
21617 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21618echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21619if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21620 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21621else
e6cc62c6 21622 ac_check_lib_save_LIBS=$LIBS
90dd450c 21623LIBS="-lnsl $LIBS"
e6cc62c6
VS
21624cat >conftest.$ac_ext <<_ACEOF
21625#line $LINENO "configure"
21626/* confdefs.h. */
21627_ACEOF
21628cat confdefs.h >>conftest.$ac_ext
21629cat >>conftest.$ac_ext <<_ACEOF
21630/* end confdefs.h. */
21631
90dd450c 21632/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21633#ifdef __cplusplus
21634extern "C"
21635#endif
90dd450c 21636/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21637 builtin and then its argument prototype would still apply. */
21638char gethostbyname ();
21639int
21640main ()
21641{
21642gethostbyname ();
21643 ;
21644 return 0;
21645}
21646_ACEOF
21647rm -f conftest.$ac_objext conftest$ac_exeext
21648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21649 (eval $ac_link) 2>&5
21650 ac_status=$?
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } &&
21653 { ac_try='test -s conftest$ac_exeext'
21654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655 (eval $ac_try) 2>&5
21656 ac_status=$?
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; }; then
21659 ac_cv_lib_nsl_gethostbyname=yes
21660else
21661 echo "$as_me: failed program was:" >&5
21662sed 's/^/| /' conftest.$ac_ext >&5
21663
21664ac_cv_lib_nsl_gethostbyname=no
21665fi
21666rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21667LIBS=$ac_check_lib_save_LIBS
21668fi
21669echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21670echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21671if test $ac_cv_lib_nsl_gethostbyname = yes; then
21672 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 21673fi
247f5006 21674
e6cc62c6
VS
21675 if test $ac_cv_lib_nsl_gethostbyname = no; then
21676 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21677echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21678if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21679 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 21680else
e6cc62c6
VS
21681 ac_check_lib_save_LIBS=$LIBS
21682LIBS="-lbsd $LIBS"
21683cat >conftest.$ac_ext <<_ACEOF
21684#line $LINENO "configure"
21685/* confdefs.h. */
21686_ACEOF
21687cat confdefs.h >>conftest.$ac_ext
21688cat >>conftest.$ac_ext <<_ACEOF
21689/* end confdefs.h. */
21690
21691/* Override any gcc2 internal prototype to avoid an error. */
21692#ifdef __cplusplus
21693extern "C"
21694#endif
21695/* We use char because int might match the return type of a gcc2
21696 builtin and then its argument prototype would still apply. */
21697char gethostbyname ();
21698int
21699main ()
21700{
21701gethostbyname ();
21702 ;
21703 return 0;
21704}
21705_ACEOF
21706rm -f conftest.$ac_objext conftest$ac_exeext
21707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21708 (eval $ac_link) 2>&5
21709 ac_status=$?
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); } &&
21712 { ac_try='test -s conftest$ac_exeext'
21713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714 (eval $ac_try) 2>&5
21715 ac_status=$?
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); }; }; then
21718 ac_cv_lib_bsd_gethostbyname=yes
21719else
21720 echo "$as_me: failed program was:" >&5
21721sed 's/^/| /' conftest.$ac_ext >&5
21722
21723ac_cv_lib_bsd_gethostbyname=no
21724fi
21725rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21726LIBS=$ac_check_lib_save_LIBS
21727fi
21728echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21729echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21730if test $ac_cv_lib_bsd_gethostbyname = yes; then
21731 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 21732fi
b12915c1 21733
e6cc62c6 21734 fi
90dd450c
VZ
21735 fi
21736
21737 # lieder@skyler.mavd.honeywell.com says without -lsocket,
21738 # socket/setsockopt and other routines are undefined under SCO ODT
21739 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
21740 # on later versions), says Simon Leinen: it contains gethostby*
21741 # variants that don't use the name server (or something). -lsocket
21742 # must be given before -lnsl if both are needed. We assume that
21743 # if connect needs -lnsl, so does gethostbyname.
21744 echo "$as_me:$LINENO: checking for connect" >&5
21745echo $ECHO_N "checking for connect... $ECHO_C" >&6
21746if test "${ac_cv_func_connect+set}" = set; then
21747 echo $ECHO_N "(cached) $ECHO_C" >&6
21748else
21749 cat >conftest.$ac_ext <<_ACEOF
21750#line $LINENO "configure"
21751/* confdefs.h. */
21752_ACEOF
21753cat confdefs.h >>conftest.$ac_ext
21754cat >>conftest.$ac_ext <<_ACEOF
21755/* end confdefs.h. */
90dd450c 21756/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21757 which can conflict with char connect (); below.
21758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21759 <limits.h> exists even on freestanding compilers. */
21760#ifdef __STDC__
21761# include <limits.h>
21762#else
21763# include <assert.h>
21764#endif
90dd450c 21765/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21766#ifdef __cplusplus
21767extern "C"
21768{
21769#endif
90dd450c 21770/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21771 builtin and then its argument prototype would still apply. */
21772char connect ();
90dd450c
VZ
21773/* The GNU C library defines this for functions which it implements
21774 to always fail with ENOSYS. Some functions are actually named
21775 something starting with __ and the normal name is an alias. */
21776#if defined (__stub_connect) || defined (__stub___connect)
21777choke me
21778#else
e6cc62c6
VS
21779char (*f) () = connect;
21780#endif
21781#ifdef __cplusplus
21782}
90dd450c
VZ
21783#endif
21784
e6cc62c6
VS
21785int
21786main ()
21787{
21788return f != connect;
21789 ;
21790 return 0;
21791}
21792_ACEOF
21793rm -f conftest.$ac_objext conftest$ac_exeext
21794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21795 (eval $ac_link) 2>&5
21796 ac_status=$?
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } &&
21799 { ac_try='test -s conftest$ac_exeext'
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21802 ac_status=$?
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; }; then
21805 ac_cv_func_connect=yes
21806else
21807 echo "$as_me: failed program was:" >&5
21808sed 's/^/| /' conftest.$ac_ext >&5
21809
21810ac_cv_func_connect=no
21811fi
21812rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21813fi
21814echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21815echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 21816
90dd450c 21817 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
21818 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21819echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21820if test "${ac_cv_lib_socket_connect+set}" = set; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21822else
e6cc62c6 21823 ac_check_lib_save_LIBS=$LIBS
90dd450c 21824LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
21825cat >conftest.$ac_ext <<_ACEOF
21826#line $LINENO "configure"
21827/* confdefs.h. */
21828_ACEOF
21829cat confdefs.h >>conftest.$ac_ext
21830cat >>conftest.$ac_ext <<_ACEOF
21831/* end confdefs.h. */
21832
90dd450c 21833/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21834#ifdef __cplusplus
21835extern "C"
21836#endif
90dd450c 21837/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21838 builtin and then its argument prototype would still apply. */
21839char connect ();
21840int
21841main ()
21842{
21843connect ();
21844 ;
21845 return 0;
21846}
21847_ACEOF
21848rm -f conftest.$ac_objext conftest$ac_exeext
21849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21850 (eval $ac_link) 2>&5
21851 ac_status=$?
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } &&
21854 { ac_try='test -s conftest$ac_exeext'
21855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; }; then
21860 ac_cv_lib_socket_connect=yes
21861else
21862 echo "$as_me: failed program was:" >&5
21863sed 's/^/| /' conftest.$ac_ext >&5
21864
21865ac_cv_lib_socket_connect=no
21866fi
21867rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21868LIBS=$ac_check_lib_save_LIBS
21869fi
21870echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21871echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21872if test $ac_cv_lib_socket_connect = yes; then
90dd450c 21873 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 21874fi
77e13408 21875
90dd450c 21876 fi
25d0687a 21877
e6cc62c6
VS
21878 # Guillermo Gomez says -lposix is necessary on A/UX.
21879 echo "$as_me:$LINENO: checking for remove" >&5
21880echo $ECHO_N "checking for remove... $ECHO_C" >&6
21881if test "${ac_cv_func_remove+set}" = set; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21883else
21884 cat >conftest.$ac_ext <<_ACEOF
21885#line $LINENO "configure"
21886/* confdefs.h. */
21887_ACEOF
21888cat confdefs.h >>conftest.$ac_ext
21889cat >>conftest.$ac_ext <<_ACEOF
21890/* end confdefs.h. */
90dd450c 21891/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21892 which can conflict with char remove (); below.
21893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21894 <limits.h> exists even on freestanding compilers. */
21895#ifdef __STDC__
21896# include <limits.h>
21897#else
21898# include <assert.h>
21899#endif
90dd450c 21900/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21901#ifdef __cplusplus
21902extern "C"
21903{
21904#endif
90dd450c 21905/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21906 builtin and then its argument prototype would still apply. */
21907char remove ();
90dd450c
VZ
21908/* The GNU C library defines this for functions which it implements
21909 to always fail with ENOSYS. Some functions are actually named
21910 something starting with __ and the normal name is an alias. */
21911#if defined (__stub_remove) || defined (__stub___remove)
21912choke me
21913#else
e6cc62c6
VS
21914char (*f) () = remove;
21915#endif
21916#ifdef __cplusplus
21917}
90dd450c 21918#endif
55e80573 21919
e6cc62c6
VS
21920int
21921main ()
21922{
21923return f != remove;
21924 ;
21925 return 0;
21926}
21927_ACEOF
21928rm -f conftest.$ac_objext conftest$ac_exeext
21929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21930 (eval $ac_link) 2>&5
21931 ac_status=$?
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); } &&
21934 { ac_try='test -s conftest$ac_exeext'
21935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21936 (eval $ac_try) 2>&5
21937 ac_status=$?
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); }; }; then
21940 ac_cv_func_remove=yes
21941else
21942 echo "$as_me: failed program was:" >&5
21943sed 's/^/| /' conftest.$ac_ext >&5
21944
21945ac_cv_func_remove=no
21946fi
21947rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21948fi
21949echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21950echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 21951
90dd450c 21952 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
21953 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21954echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21955if test "${ac_cv_lib_posix_remove+set}" = set; then
21956 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21957else
e6cc62c6 21958 ac_check_lib_save_LIBS=$LIBS
90dd450c 21959LIBS="-lposix $LIBS"
e6cc62c6
VS
21960cat >conftest.$ac_ext <<_ACEOF
21961#line $LINENO "configure"
21962/* confdefs.h. */
21963_ACEOF
21964cat confdefs.h >>conftest.$ac_ext
21965cat >>conftest.$ac_ext <<_ACEOF
21966/* end confdefs.h. */
21967
90dd450c 21968/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21969#ifdef __cplusplus
21970extern "C"
21971#endif
90dd450c 21972/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21973 builtin and then its argument prototype would still apply. */
21974char remove ();
21975int
21976main ()
21977{
21978remove ();
21979 ;
21980 return 0;
21981}
21982_ACEOF
21983rm -f conftest.$ac_objext conftest$ac_exeext
21984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21985 (eval $ac_link) 2>&5
21986 ac_status=$?
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); } &&
21989 { ac_try='test -s conftest$ac_exeext'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; }; then
21995 ac_cv_lib_posix_remove=yes
21996else
21997 echo "$as_me: failed program was:" >&5
21998sed 's/^/| /' conftest.$ac_ext >&5
21999
22000ac_cv_lib_posix_remove=no
22001fi
22002rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22003LIBS=$ac_check_lib_save_LIBS
22004fi
22005echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22006echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22007if test $ac_cv_lib_posix_remove = yes; then
90dd450c 22008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 22009fi
f6bcfd97 22010
6fa882bd
RR
22011 fi
22012
90dd450c 22013 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
22014 echo "$as_me:$LINENO: checking for shmat" >&5
22015echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22016if test "${ac_cv_func_shmat+set}" = set; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22018else
22019 cat >conftest.$ac_ext <<_ACEOF
22020#line $LINENO "configure"
22021/* confdefs.h. */
22022_ACEOF
22023cat confdefs.h >>conftest.$ac_ext
22024cat >>conftest.$ac_ext <<_ACEOF
22025/* end confdefs.h. */
90dd450c 22026/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22027 which can conflict with char shmat (); below.
22028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22029 <limits.h> exists even on freestanding compilers. */
22030#ifdef __STDC__
22031# include <limits.h>
22032#else
22033# include <assert.h>
22034#endif
90dd450c 22035/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22036#ifdef __cplusplus
22037extern "C"
22038{
22039#endif
90dd450c 22040/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22041 builtin and then its argument prototype would still apply. */
22042char shmat ();
90dd450c
VZ
22043/* The GNU C library defines this for functions which it implements
22044 to always fail with ENOSYS. Some functions are actually named
22045 something starting with __ and the normal name is an alias. */
22046#if defined (__stub_shmat) || defined (__stub___shmat)
22047choke me
22048#else
e6cc62c6
VS
22049char (*f) () = shmat;
22050#endif
22051#ifdef __cplusplus
22052}
90dd450c 22053#endif
10f2d63a 22054
e6cc62c6
VS
22055int
22056main ()
22057{
22058return f != shmat;
22059 ;
22060 return 0;
22061}
22062_ACEOF
22063rm -f conftest.$ac_objext conftest$ac_exeext
22064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22065 (eval $ac_link) 2>&5
22066 ac_status=$?
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } &&
22069 { ac_try='test -s conftest$ac_exeext'
22070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22071 (eval $ac_try) 2>&5
22072 ac_status=$?
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; }; then
22075 ac_cv_func_shmat=yes
22076else
22077 echo "$as_me: failed program was:" >&5
22078sed 's/^/| /' conftest.$ac_ext >&5
22079
22080ac_cv_func_shmat=no
22081fi
22082rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22083fi
22084echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22085echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 22086
90dd450c 22087 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
22088 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22089echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22090if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22091 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 22092else
e6cc62c6 22093 ac_check_lib_save_LIBS=$LIBS
90dd450c 22094LIBS="-lipc $LIBS"
e6cc62c6
VS
22095cat >conftest.$ac_ext <<_ACEOF
22096#line $LINENO "configure"
22097/* confdefs.h. */
22098_ACEOF
22099cat confdefs.h >>conftest.$ac_ext
22100cat >>conftest.$ac_ext <<_ACEOF
22101/* end confdefs.h. */
22102
8284b0c5 22103/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22104#ifdef __cplusplus
22105extern "C"
22106#endif
90dd450c 22107/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22108 builtin and then its argument prototype would still apply. */
22109char shmat ();
22110int
22111main ()
22112{
22113shmat ();
22114 ;
22115 return 0;
22116}
22117_ACEOF
22118rm -f conftest.$ac_objext conftest$ac_exeext
22119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22120 (eval $ac_link) 2>&5
22121 ac_status=$?
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); } &&
22124 { ac_try='test -s conftest$ac_exeext'
22125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22126 (eval $ac_try) 2>&5
22127 ac_status=$?
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); }; }; then
22130 ac_cv_lib_ipc_shmat=yes
22131else
22132 echo "$as_me: failed program was:" >&5
22133sed 's/^/| /' conftest.$ac_ext >&5
22134
22135ac_cv_lib_ipc_shmat=no
22136fi
22137rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22138LIBS=$ac_check_lib_save_LIBS
22139fi
22140echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22141echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22142if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 22143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
22144fi
22145
d558c907 22146 fi
90dd450c 22147 fi
3a922bb4 22148
90dd450c 22149 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 22150 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
22151 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22152 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22153 # check for ICE first), but we must link in the order -lSM -lICE or
22154 # we get undefined symbols. So assume we have SM if we have ICE.
22155 # These have to be linked with before -lX11, unlike the other
22156 # libraries we check for below, so use a different variable.
e6cc62c6
VS
22157 # John Interrante, Karl Berry
22158 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22159echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22160if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22161 echo $ECHO_N "(cached) $ECHO_C" >&6
22162else
22163 ac_check_lib_save_LIBS=$LIBS
f09359cf 22164LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
22165cat >conftest.$ac_ext <<_ACEOF
22166#line $LINENO "configure"
22167/* confdefs.h. */
22168_ACEOF
22169cat confdefs.h >>conftest.$ac_ext
22170cat >>conftest.$ac_ext <<_ACEOF
22171/* end confdefs.h. */
22172
90dd450c 22173/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22174#ifdef __cplusplus
22175extern "C"
22176#endif
90dd450c 22177/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22178 builtin and then its argument prototype would still apply. */
22179char IceConnectionNumber ();
22180int
22181main ()
22182{
22183IceConnectionNumber ();
22184 ;
22185 return 0;
22186}
22187_ACEOF
22188rm -f conftest.$ac_objext conftest$ac_exeext
22189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22190 (eval $ac_link) 2>&5
22191 ac_status=$?
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); } &&
22194 { ac_try='test -s conftest$ac_exeext'
22195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196 (eval $ac_try) 2>&5
22197 ac_status=$?
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); }; }; then
22200 ac_cv_lib_ICE_IceConnectionNumber=yes
22201else
22202 echo "$as_me: failed program was:" >&5
22203sed 's/^/| /' conftest.$ac_ext >&5
22204
22205ac_cv_lib_ICE_IceConnectionNumber=no
22206fi
22207rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22208LIBS=$ac_check_lib_save_LIBS
22209fi
22210echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22211echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22212if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 22213 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 22214fi
10f2d63a 22215
e6cc62c6 22216 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
22217
22218fi
22219
8284b0c5 22220
90dd450c 22221 if test "$no_x" = "yes"; then
e6cc62c6
VS
22222 { { echo "$as_me:$LINENO: error: X11 not found" >&5
22223echo "$as_me: error: X11 not found" >&2;}
22224 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
22225 fi
22226
22227 GUI_TK_LIBRARY="$X_LIBS"
22228 TOOLKIT_INCLUDE="$X_CFLAGS"
22229 AFMINSTALL=afminstall
22230 COMPILED_X_PROGRAM=0
22231
21d1c967 22232 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
22233 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22234echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 22235 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
22236 echo "$as_me:$LINENO: result: not found" >&5
22237echo "${ECHO_T}not found" >&6
22238 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22239echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22240 { (exit 1); exit 1; }; }
90dd450c 22241 else
e6cc62c6
VS
22242 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22243echo "${ECHO_T}$MICROWIN" >&6
22244 cat >>confdefs.h <<\_ACEOF
21d1c967 22245#define wxUSE_NANOX 1
e6cc62c6 22246_ACEOF
21d1c967 22247
90dd450c
VZ
22248 fi
22249 fi
22250
22251 xpm_link=
e6cc62c6
VS
22252 echo "$as_me:$LINENO: checking for Xpm library" >&5
22253echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22254
90dd450c 22255ac_find_libraries=
2b5f62a0 22256for ac_dir in $SEARCH_LIB /usr/lib;
90dd450c
VZ
22257 do
22258 for ac_extension in a so sl dylib; do
22259 if test -f "$ac_dir/libXpm.$ac_extension"; then
22260 ac_find_libraries=$ac_dir
22261 break 2
22262 fi
22263 done
22264 done
22265
22266 if test "$ac_find_libraries" != "" ; then
e6cc62c6 22267
90dd450c
VZ
22268 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22269 result=$?
22270 if test $result = 0; then
22271 ac_path_to_link=""
22272 else
22273 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 22274 fi
90dd450c 22275
21d1c967
GD
22276 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22277 xpm_link=" -lXpm"
e6cc62c6 22278 cat >>confdefs.h <<\_ACEOF
21d1c967 22279#define wxHAVE_LIB_XPM 1
e6cc62c6 22280_ACEOF
90dd450c 22281
e6cc62c6
VS
22282 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22283echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 22284 else
e6cc62c6
VS
22285 cat >conftest.$ac_ext <<_ACEOF
22286#line $LINENO "configure"
22287/* confdefs.h. */
22288_ACEOF
22289cat confdefs.h >>conftest.$ac_ext
22290cat >>conftest.$ac_ext <<_ACEOF
22291/* end confdefs.h. */
90dd450c 22292
21d1c967 22293 #include <X11/xpm.h>
e6cc62c6
VS
22294
22295int
22296main ()
22297{
6f72b082 22298
21d1c967
GD
22299 int version;
22300 version = XpmLibraryVersion();
e6cc62c6
VS
22301
22302 ;
22303 return 0;
22304}
22305_ACEOF
22306rm -f conftest.$ac_objext
22307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22308 (eval $ac_compile) 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } &&
22312 { ac_try='test -s conftest.$ac_objext'
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; }; then
22318
21d1c967 22319 xpm_link=" -lXpm"
e6cc62c6 22320 cat >>confdefs.h <<\_ACEOF
21d1c967 22321#define wxHAVE_LIB_XPM 1
e6cc62c6 22322_ACEOF
90dd450c 22323
e6cc62c6
VS
22324 echo "$as_me:$LINENO: result: found in default search path" >&5
22325echo "${ECHO_T}found in default search path" >&6
21d1c967 22326 COMPILED_X_PROGRAM=0
e6cc62c6 22327
21d1c967 22328else
e6cc62c6
VS
22329 echo "$as_me: failed program was:" >&5
22330sed 's/^/| /' conftest.$ac_ext >&5
22331
22332
22333 echo "$as_me:$LINENO: result: no" >&5
22334echo "${ECHO_T}no" >&6
22335 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22336echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22337
22338
6f72b082 22339fi
e6cc62c6 22340rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 22341 fi
90dd450c 22342
e6cc62c6
VS
22343 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22344echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22345if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22346 echo $ECHO_N "(cached) $ECHO_C" >&6
f7f78039 22347else
e6cc62c6 22348 ac_check_lib_save_LIBS=$LIBS
f7f78039 22349LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
e6cc62c6
VS
22350cat >conftest.$ac_ext <<_ACEOF
22351#line $LINENO "configure"
22352/* confdefs.h. */
22353_ACEOF
22354cat confdefs.h >>conftest.$ac_ext
22355cat >>conftest.$ac_ext <<_ACEOF
22356/* end confdefs.h. */
22357
f7f78039 22358/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22359#ifdef __cplusplus
22360extern "C"
22361#endif
f7f78039 22362/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22363 builtin and then its argument prototype would still apply. */
22364char XShapeQueryExtension ();
22365int
22366main ()
22367{
22368XShapeQueryExtension ();
22369 ;
22370 return 0;
22371}
22372_ACEOF
22373rm -f conftest.$ac_objext conftest$ac_exeext
22374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22375 (eval $ac_link) 2>&5
22376 ac_status=$?
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } &&
22379 { ac_try='test -s conftest$ac_exeext'
22380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22381 (eval $ac_try) 2>&5
22382 ac_status=$?
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); }; }; then
22385 ac_cv_lib_Xext_XShapeQueryExtension=yes
22386else
22387 echo "$as_me: failed program was:" >&5
22388sed 's/^/| /' conftest.$ac_ext >&5
22389
22390ac_cv_lib_Xext_XShapeQueryExtension=no
22391fi
22392rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22393LIBS=$ac_check_lib_save_LIBS
22394fi
22395echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22396echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22397if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
f7f78039 22398
f7f78039
MB
22399 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22400 wxHAVE_XEXT_LIB=1
e6cc62c6 22401
f7f78039
MB
22402fi
22403
22404
2b5f62a0 22405 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 22406
2b5f62a0 22407 succeeded=no
90dd450c 22408
2b5f62a0
VZ
22409 if test -z "$PKG_CONFIG"; then
22410 # Extract the first word of "pkg-config", so it can be a program name with args.
22411set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22412echo "$as_me:$LINENO: checking for $ac_word" >&5
22413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22414if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22415 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22416else
e6cc62c6
VS
22417 case $PKG_CONFIG in
22418 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22419 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22420 ;;
2b5f62a0 22421 *)
e6cc62c6
VS
22422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22423for as_dir in $PATH
22424do
22425 IFS=$as_save_IFS
22426 test -z "$as_dir" && as_dir=.
22427 for ac_exec_ext in '' $ac_executable_extensions; do
22428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22429 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22431 break 2
22432 fi
22433done
22434done
22435
2b5f62a0
VZ
22436 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22437 ;;
22438esac
22439fi
e6cc62c6
VS
22440PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22441
2b5f62a0 22442if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22443 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22444echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22445else
e6cc62c6
VS
22446 echo "$as_me:$LINENO: result: no" >&5
22447echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22448fi
22449
22450 fi
22451
22452 if test "$PKG_CONFIG" = "no" ; then
22453 echo "*** The pkg-config script could not be found. Make sure it is"
22454 echo "*** in your path, or set the PKG_CONFIG environment variable"
22455 echo "*** to the full path to pkg-config."
22456 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22457 else
22458 PKG_CONFIG_MIN_VERSION=0.9.0
22459 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22460 echo "$as_me:$LINENO: checking for pangox" >&5
22461echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
22462
22463 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
22464 echo "$as_me:$LINENO: result: yes" >&5
22465echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22466 succeeded=yes
22467
e6cc62c6
VS
22468 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22469echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 22470 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
22471 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22472echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 22473
e6cc62c6
VS
22474 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22475echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 22476 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
22477 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22478echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
22479 else
22480 PANGOX_CFLAGS=""
22481 PANGOX_LIBS=""
e6cc62c6 22482 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22483 ## do set a variable so people can do so.
22484 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 22485
2b5f62a0
VZ
22486 fi
22487
e6cc62c6
VS
22488
22489
2b5f62a0
VZ
22490 else
22491 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22492 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22493 fi
22494 fi
22495
22496 if test $succeeded = yes; then
e6cc62c6 22497
2b5f62a0 22498 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 22499 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 22500
2b5f62a0 22501 else
e6cc62c6
VS
22502
22503 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22504echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22505 { (exit 1); exit 1; }; }
22506
22507
2b5f62a0
VZ
22508 fi
22509
e6cc62c6 22510
2b5f62a0
VZ
22511 succeeded=no
22512
22513 if test -z "$PKG_CONFIG"; then
22514 # Extract the first word of "pkg-config", so it can be a program name with args.
22515set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22516echo "$as_me:$LINENO: checking for $ac_word" >&5
22517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22518if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22519 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22520else
e6cc62c6
VS
22521 case $PKG_CONFIG in
22522 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22523 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22524 ;;
2b5f62a0 22525 *)
e6cc62c6
VS
22526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22527for as_dir in $PATH
22528do
22529 IFS=$as_save_IFS
22530 test -z "$as_dir" && as_dir=.
22531 for ac_exec_ext in '' $ac_executable_extensions; do
22532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22533 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22535 break 2
22536 fi
22537done
22538done
22539
2b5f62a0
VZ
22540 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22541 ;;
22542esac
22543fi
e6cc62c6
VS
22544PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22545
2b5f62a0 22546if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22547 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22548echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22549else
e6cc62c6
VS
22550 echo "$as_me:$LINENO: result: no" >&5
22551echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22552fi
22553
22554 fi
22555
22556 if test "$PKG_CONFIG" = "no" ; then
22557 echo "*** The pkg-config script could not be found. Make sure it is"
22558 echo "*** in your path, or set the PKG_CONFIG environment variable"
22559 echo "*** to the full path to pkg-config."
22560 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22561 else
22562 PKG_CONFIG_MIN_VERSION=0.9.0
22563 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22564 echo "$as_me:$LINENO: checking for pangoft2" >&5
22565echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
22566
22567 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22568 echo "$as_me:$LINENO: result: yes" >&5
22569echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22570 succeeded=yes
22571
e6cc62c6
VS
22572 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22573echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 22574 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22575 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22576echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 22577
e6cc62c6
VS
22578 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22579echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 22580 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22581 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22582echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
22583 else
22584 PANGOFT2_CFLAGS=""
22585 PANGOFT2_LIBS=""
e6cc62c6 22586 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22587 ## do set a variable so people can do so.
22588 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22589
2b5f62a0
VZ
22590 fi
22591
e6cc62c6
VS
22592
22593
2b5f62a0
VZ
22594 else
22595 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22596 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22597 fi
22598 fi
22599
22600 if test $succeeded = yes; then
e6cc62c6 22601
2b5f62a0 22602 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22603 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22604
2b5f62a0 22605 else
e6cc62c6
VS
22606
22607 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22608echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 22609 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22610
22611
2b5f62a0
VZ
22612 fi
22613
e6cc62c6 22614
2b5f62a0
VZ
22615 succeeded=no
22616
22617 if test -z "$PKG_CONFIG"; then
22618 # Extract the first word of "pkg-config", so it can be a program name with args.
22619set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22620echo "$as_me:$LINENO: checking for $ac_word" >&5
22621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22622if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22623 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 22624else
e6cc62c6
VS
22625 case $PKG_CONFIG in
22626 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
22627 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22628 ;;
2b5f62a0 22629 *)
e6cc62c6
VS
22630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22631for as_dir in $PATH
22632do
22633 IFS=$as_save_IFS
22634 test -z "$as_dir" && as_dir=.
22635 for ac_exec_ext in '' $ac_executable_extensions; do
22636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22637 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22639 break 2
22640 fi
22641done
22642done
22643
2b5f62a0
VZ
22644 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22645 ;;
22646esac
22647fi
e6cc62c6
VS
22648PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22649
2b5f62a0 22650if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22651 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22652echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 22653else
e6cc62c6
VS
22654 echo "$as_me:$LINENO: result: no" >&5
22655echo "${ECHO_T}no" >&6
2b5f62a0
VZ
22656fi
22657
22658 fi
22659
22660 if test "$PKG_CONFIG" = "no" ; then
22661 echo "*** The pkg-config script could not be found. Make sure it is"
22662 echo "*** in your path, or set the PKG_CONFIG environment variable"
22663 echo "*** to the full path to pkg-config."
22664 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22665 else
22666 PKG_CONFIG_MIN_VERSION=0.9.0
22667 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22668 echo "$as_me:$LINENO: checking for pangoxft" >&5
22669echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
22670
22671 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
22672 echo "$as_me:$LINENO: result: yes" >&5
22673echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
22674 succeeded=yes
22675
e6cc62c6
VS
22676 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22677echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 22678 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
22679 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22680echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 22681
e6cc62c6
VS
22682 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22683echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 22684 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
22685 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22686echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
22687 else
22688 PANGOXFT_CFLAGS=""
22689 PANGOXFT_LIBS=""
e6cc62c6 22690 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
22691 ## do set a variable so people can do so.
22692 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 22693
2b5f62a0
VZ
22694 fi
22695
e6cc62c6
VS
22696
22697
2b5f62a0
VZ
22698 else
22699 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22700 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22701 fi
22702 fi
22703
22704 if test $succeeded = yes; then
e6cc62c6 22705
2b5f62a0 22706 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 22707 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 22708
2b5f62a0 22709 else
e6cc62c6
VS
22710
22711 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22712echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22713
22714
2b5f62a0
VZ
22715 fi
22716
22717 fi
22718
22719 wxUSE_UNIVERSAL="yes"
22720
22721 if test "$wxUSE_NANOX" = "yes"; then
22722 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 22723 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
22724 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22725 else
22726 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22727 fi
22728
22729 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22730 TOOLKIT=X11
22731 GUIDIST=X11_DIST
22732 fi
22733
21d1c967
GD
22734 if test "$wxUSE_MOTIF" = 1; then
22735 if test "$no_x" = yes; then
22736 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22737
22738cat >>confdefs.h <<\_ACEOF
21d1c967 22739#define X_DISPLAY_MISSING 1
e6cc62c6 22740_ACEOF
21d1c967
GD
22741
22742 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22743else
22744 if test -n "$x_includes"; then
22745 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
22746 fi
22747
21d1c967
GD
22748 # It would also be nice to do this for all -L options, not just this one.
22749 if test -n "$x_libraries"; then
22750 X_LIBS="$X_LIBS -L$x_libraries"
22751 # For Solaris; some versions of Sun CC require a space after -R and
22752 # others require no space. Words are not sufficient . . . .
e6cc62c6 22753 case `(uname -sr) 2>/dev/null` in
21d1c967 22754 "SunOS 5"*)
e6cc62c6
VS
22755 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22756echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22757 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22758 cat >conftest.$ac_ext <<_ACEOF
22759#line $LINENO "configure"
22760/* confdefs.h. */
22761_ACEOF
22762cat confdefs.h >>conftest.$ac_ext
22763cat >>conftest.$ac_ext <<_ACEOF
22764/* end confdefs.h. */
22765
22766int
22767main ()
22768{
21d1c967 22769
e6cc62c6
VS
22770 ;
22771 return 0;
22772}
22773_ACEOF
22774rm -f conftest.$ac_objext conftest$ac_exeext
22775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22776 (eval $ac_link) 2>&5
22777 ac_status=$?
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); } &&
22780 { ac_try='test -s conftest$ac_exeext'
22781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782 (eval $ac_try) 2>&5
22783 ac_status=$?
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); }; }; then
21d1c967 22786 ac_R_nospace=yes
698dcdb6 22787else
e6cc62c6
VS
22788 echo "$as_me: failed program was:" >&5
22789sed 's/^/| /' conftest.$ac_ext >&5
22790
22791ac_R_nospace=no
10f2d63a 22792fi
e6cc62c6 22793rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22794 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22795 echo "$as_me:$LINENO: result: no" >&5
22796echo "${ECHO_T}no" >&6
21d1c967
GD
22797 X_LIBS="$X_LIBS -R$x_libraries"
22798 else
22799 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6
VS
22800 cat >conftest.$ac_ext <<_ACEOF
22801#line $LINENO "configure"
22802/* confdefs.h. */
22803_ACEOF
22804cat confdefs.h >>conftest.$ac_ext
22805cat >>conftest.$ac_ext <<_ACEOF
22806/* end confdefs.h. */
22807
22808int
22809main ()
22810{
f0c87536 22811
e6cc62c6
VS
22812 ;
22813 return 0;
22814}
22815_ACEOF
22816rm -f conftest.$ac_objext conftest$ac_exeext
22817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22818 (eval $ac_link) 2>&5
22819 ac_status=$?
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); } &&
22822 { ac_try='test -s conftest$ac_exeext'
22823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824 (eval $ac_try) 2>&5
22825 ac_status=$?
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); }; }; then
21d1c967
GD
22828 ac_R_space=yes
22829else
e6cc62c6
VS
22830 echo "$as_me: failed program was:" >&5
22831sed 's/^/| /' conftest.$ac_ext >&5
22832
22833ac_R_space=no
21d1c967 22834fi
e6cc62c6 22835rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 22836 if test $ac_R_space = yes; then
e6cc62c6
VS
22837 echo "$as_me:$LINENO: result: yes" >&5
22838echo "${ECHO_T}yes" >&6
21d1c967
GD
22839 X_LIBS="$X_LIBS -R $x_libraries"
22840 else
e6cc62c6
VS
22841 echo "$as_me:$LINENO: result: neither works" >&5
22842echo "${ECHO_T}neither works" >&6
21d1c967
GD
22843 fi
22844 fi
e6cc62c6 22845 LIBS=$ac_xsave_LIBS
21d1c967
GD
22846 esac
22847 fi
90dd450c 22848
21d1c967
GD
22849 # Check for system-dependent libraries X programs must link with.
22850 # Do this before checking for the system-independent R6 libraries
22851 # (-lICE), since we may need -lsocket or whatever for X linking.
22852
22853 if test "$ISC" = yes; then
22854 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22855 else
e6cc62c6
VS
22856 # Martyn Johnson says this is needed for Ultrix, if the X
22857 # libraries were built with DECnet support. And Karl Berry says
21d1c967 22858 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22859 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22860 cat >conftest.$ac_ext <<_ACEOF
22861#line $LINENO "configure"
22862/* confdefs.h. */
22863_ACEOF
22864cat confdefs.h >>conftest.$ac_ext
22865cat >>conftest.$ac_ext <<_ACEOF
22866/* end confdefs.h. */
22867
247f5006 22868/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22869#ifdef __cplusplus
22870extern "C"
22871#endif
247f5006 22872/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22873 builtin and then its argument prototype would still apply. */
22874char XOpenDisplay ();
22875int
22876main ()
22877{
22878XOpenDisplay ();
22879 ;
22880 return 0;
22881}
22882_ACEOF
22883rm -f conftest.$ac_objext conftest$ac_exeext
22884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22885 (eval $ac_link) 2>&5
22886 ac_status=$?
22887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); } &&
22889 { ac_try='test -s conftest$ac_exeext'
22890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22891 (eval $ac_try) 2>&5
22892 ac_status=$?
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); }; }; then
22895 :
22896else
22897 echo "$as_me: failed program was:" >&5
22898sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 22899
e6cc62c6
VS
22900echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22901echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22902if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22903 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22904else
e6cc62c6
VS
22905 ac_check_lib_save_LIBS=$LIBS
22906LIBS="-ldnet $LIBS"
22907cat >conftest.$ac_ext <<_ACEOF
22908#line $LINENO "configure"
22909/* confdefs.h. */
22910_ACEOF
22911cat confdefs.h >>conftest.$ac_ext
22912cat >>conftest.$ac_ext <<_ACEOF
22913/* end confdefs.h. */
a0b9e27f 22914
e6cc62c6
VS
22915/* Override any gcc2 internal prototype to avoid an error. */
22916#ifdef __cplusplus
22917extern "C"
22918#endif
22919/* We use char because int might match the return type of a gcc2
22920 builtin and then its argument prototype would still apply. */
22921char dnet_ntoa ();
22922int
22923main ()
22924{
22925dnet_ntoa ();
22926 ;
22927 return 0;
22928}
22929_ACEOF
22930rm -f conftest.$ac_objext conftest$ac_exeext
22931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22932 (eval $ac_link) 2>&5
22933 ac_status=$?
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); } &&
22936 { ac_try='test -s conftest$ac_exeext'
22937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938 (eval $ac_try) 2>&5
22939 ac_status=$?
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); }; }; then
22942 ac_cv_lib_dnet_dnet_ntoa=yes
22943else
22944 echo "$as_me: failed program was:" >&5
22945sed 's/^/| /' conftest.$ac_ext >&5
22946
22947ac_cv_lib_dnet_dnet_ntoa=no
22948fi
22949rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22950LIBS=$ac_check_lib_save_LIBS
22951fi
22952echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22953echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22954if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 22955 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 22956fi
0fb0dd83 22957
21d1c967 22958 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
22959 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22960echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22961if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22962 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22963else
e6cc62c6 22964 ac_check_lib_save_LIBS=$LIBS
21d1c967 22965LIBS="-ldnet_stub $LIBS"
e6cc62c6
VS
22966cat >conftest.$ac_ext <<_ACEOF
22967#line $LINENO "configure"
22968/* confdefs.h. */
22969_ACEOF
22970cat confdefs.h >>conftest.$ac_ext
22971cat >>conftest.$ac_ext <<_ACEOF
22972/* end confdefs.h. */
22973
21d1c967 22974/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22975#ifdef __cplusplus
22976extern "C"
22977#endif
21d1c967 22978/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22979 builtin and then its argument prototype would still apply. */
22980char dnet_ntoa ();
22981int
22982main ()
22983{
22984dnet_ntoa ();
22985 ;
22986 return 0;
22987}
22988_ACEOF
22989rm -f conftest.$ac_objext conftest$ac_exeext
22990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22991 (eval $ac_link) 2>&5
22992 ac_status=$?
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); } &&
22995 { ac_try='test -s conftest$ac_exeext'
22996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22997 (eval $ac_try) 2>&5
22998 ac_status=$?
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); }; }; then
23001 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23002else
23003 echo "$as_me: failed program was:" >&5
23004sed 's/^/| /' conftest.$ac_ext >&5
23005
23006ac_cv_lib_dnet_stub_dnet_ntoa=no
23007fi
23008rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23009LIBS=$ac_check_lib_save_LIBS
23010fi
23011echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23012echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23013if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 23014 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23015fi
23016
21d1c967 23017 fi
e6cc62c6
VS
23018fi
23019rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23020 LIBS="$ac_xsave_LIBS"
90dd450c 23021
21d1c967
GD
23022 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23023 # to get the SysV transport functions.
e6cc62c6 23024 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23025 # needs -lnsl.
23026 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23027 # on Irix 5.2, according to T.E. Dickey.
23028 # The functions gethostbyname, getservbyname, and inet_addr are
23029 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23030 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23031echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23032if test "${ac_cv_func_gethostbyname+set}" = set; then
23033 echo $ECHO_N "(cached) $ECHO_C" >&6
23034else
23035 cat >conftest.$ac_ext <<_ACEOF
23036#line $LINENO "configure"
23037/* confdefs.h. */
23038_ACEOF
23039cat confdefs.h >>conftest.$ac_ext
23040cat >>conftest.$ac_ext <<_ACEOF
23041/* end confdefs.h. */
21d1c967 23042/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23043 which can conflict with char gethostbyname (); below.
23044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23045 <limits.h> exists even on freestanding compilers. */
23046#ifdef __STDC__
23047# include <limits.h>
23048#else
23049# include <assert.h>
23050#endif
21d1c967 23051/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23052#ifdef __cplusplus
23053extern "C"
23054{
23055#endif
21d1c967 23056/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23057 builtin and then its argument prototype would still apply. */
23058char gethostbyname ();
21d1c967
GD
23059/* The GNU C library defines this for functions which it implements
23060 to always fail with ENOSYS. Some functions are actually named
23061 something starting with __ and the normal name is an alias. */
23062#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23063choke me
23064#else
e6cc62c6
VS
23065char (*f) () = gethostbyname;
23066#endif
23067#ifdef __cplusplus
23068}
21d1c967 23069#endif
90dd450c 23070
e6cc62c6
VS
23071int
23072main ()
23073{
23074return f != gethostbyname;
23075 ;
23076 return 0;
23077}
23078_ACEOF
23079rm -f conftest.$ac_objext conftest$ac_exeext
23080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23081 (eval $ac_link) 2>&5
23082 ac_status=$?
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); } &&
23085 { ac_try='test -s conftest$ac_exeext'
23086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087 (eval $ac_try) 2>&5
23088 ac_status=$?
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); }; }; then
23091 ac_cv_func_gethostbyname=yes
23092else
23093 echo "$as_me: failed program was:" >&5
23094sed 's/^/| /' conftest.$ac_ext >&5
23095
23096ac_cv_func_gethostbyname=no
23097fi
23098rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23099fi
23100echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23101echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23102
21d1c967 23103 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23104 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23105echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23106if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23107 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23108else
e6cc62c6 23109 ac_check_lib_save_LIBS=$LIBS
21d1c967 23110LIBS="-lnsl $LIBS"
e6cc62c6
VS
23111cat >conftest.$ac_ext <<_ACEOF
23112#line $LINENO "configure"
23113/* confdefs.h. */
23114_ACEOF
23115cat confdefs.h >>conftest.$ac_ext
23116cat >>conftest.$ac_ext <<_ACEOF
23117/* end confdefs.h. */
23118
21d1c967 23119/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23120#ifdef __cplusplus
23121extern "C"
23122#endif
21d1c967 23123/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23124 builtin and then its argument prototype would still apply. */
23125char gethostbyname ();
23126int
23127main ()
23128{
23129gethostbyname ();
23130 ;
23131 return 0;
23132}
23133_ACEOF
23134rm -f conftest.$ac_objext conftest$ac_exeext
23135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23136 (eval $ac_link) 2>&5
23137 ac_status=$?
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); } &&
23140 { ac_try='test -s conftest$ac_exeext'
23141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23142 (eval $ac_try) 2>&5
23143 ac_status=$?
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); }; }; then
23146 ac_cv_lib_nsl_gethostbyname=yes
23147else
23148 echo "$as_me: failed program was:" >&5
23149sed 's/^/| /' conftest.$ac_ext >&5
23150
23151ac_cv_lib_nsl_gethostbyname=no
23152fi
23153rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23154LIBS=$ac_check_lib_save_LIBS
23155fi
23156echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23157echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23158if test $ac_cv_lib_nsl_gethostbyname = yes; then
23159 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23160fi
247f5006 23161
e6cc62c6
VS
23162 if test $ac_cv_lib_nsl_gethostbyname = no; then
23163 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23164echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23165if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23166 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23167else
e6cc62c6
VS
23168 ac_check_lib_save_LIBS=$LIBS
23169LIBS="-lbsd $LIBS"
23170cat >conftest.$ac_ext <<_ACEOF
23171#line $LINENO "configure"
23172/* confdefs.h. */
23173_ACEOF
23174cat confdefs.h >>conftest.$ac_ext
23175cat >>conftest.$ac_ext <<_ACEOF
23176/* end confdefs.h. */
23177
23178/* Override any gcc2 internal prototype to avoid an error. */
23179#ifdef __cplusplus
23180extern "C"
23181#endif
23182/* We use char because int might match the return type of a gcc2
23183 builtin and then its argument prototype would still apply. */
23184char gethostbyname ();
23185int
23186main ()
23187{
23188gethostbyname ();
23189 ;
23190 return 0;
23191}
23192_ACEOF
23193rm -f conftest.$ac_objext conftest$ac_exeext
23194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23195 (eval $ac_link) 2>&5
23196 ac_status=$?
23197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); } &&
23199 { ac_try='test -s conftest$ac_exeext'
23200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23201 (eval $ac_try) 2>&5
23202 ac_status=$?
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); }; }; then
23205 ac_cv_lib_bsd_gethostbyname=yes
23206else
23207 echo "$as_me: failed program was:" >&5
23208sed 's/^/| /' conftest.$ac_ext >&5
23209
23210ac_cv_lib_bsd_gethostbyname=no
23211fi
23212rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23213LIBS=$ac_check_lib_save_LIBS
23214fi
23215echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23216echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23217if test $ac_cv_lib_bsd_gethostbyname = yes; then
23218 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 23219fi
90dd450c 23220
e6cc62c6 23221 fi
90dd450c
VZ
23222 fi
23223
21d1c967
GD
23224 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23225 # socket/setsockopt and other routines are undefined under SCO ODT
23226 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23227 # on later versions), says Simon Leinen: it contains gethostby*
23228 # variants that don't use the name server (or something). -lsocket
23229 # must be given before -lnsl if both are needed. We assume that
23230 # if connect needs -lnsl, so does gethostbyname.
23231 echo "$as_me:$LINENO: checking for connect" >&5
23232echo $ECHO_N "checking for connect... $ECHO_C" >&6
23233if test "${ac_cv_func_connect+set}" = set; then
23234 echo $ECHO_N "(cached) $ECHO_C" >&6
23235else
23236 cat >conftest.$ac_ext <<_ACEOF
23237#line $LINENO "configure"
23238/* confdefs.h. */
23239_ACEOF
23240cat confdefs.h >>conftest.$ac_ext
23241cat >>conftest.$ac_ext <<_ACEOF
23242/* end confdefs.h. */
21d1c967 23243/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23244 which can conflict with char connect (); below.
23245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23246 <limits.h> exists even on freestanding compilers. */
23247#ifdef __STDC__
23248# include <limits.h>
23249#else
23250# include <assert.h>
23251#endif
21d1c967 23252/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23253#ifdef __cplusplus
23254extern "C"
23255{
23256#endif
21d1c967 23257/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23258 builtin and then its argument prototype would still apply. */
23259char connect ();
21d1c967
GD
23260/* The GNU C library defines this for functions which it implements
23261 to always fail with ENOSYS. Some functions are actually named
23262 something starting with __ and the normal name is an alias. */
23263#if defined (__stub_connect) || defined (__stub___connect)
23264choke me
23265#else
e6cc62c6
VS
23266char (*f) () = connect;
23267#endif
23268#ifdef __cplusplus
23269}
21d1c967 23270#endif
90dd450c 23271
e6cc62c6
VS
23272int
23273main ()
23274{
23275return f != connect;
23276 ;
23277 return 0;
23278}
23279_ACEOF
23280rm -f conftest.$ac_objext conftest$ac_exeext
23281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23282 (eval $ac_link) 2>&5
23283 ac_status=$?
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); } &&
23286 { ac_try='test -s conftest$ac_exeext'
23287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23288 (eval $ac_try) 2>&5
23289 ac_status=$?
23290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); }; }; then
23292 ac_cv_func_connect=yes
23293else
23294 echo "$as_me: failed program was:" >&5
23295sed 's/^/| /' conftest.$ac_ext >&5
23296
23297ac_cv_func_connect=no
23298fi
23299rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23300fi
23301echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23302echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 23303
21d1c967 23304 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23305 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23306echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23307if test "${ac_cv_lib_socket_connect+set}" = set; then
23308 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 23309else
e6cc62c6 23310 ac_check_lib_save_LIBS=$LIBS
21d1c967 23311LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23312cat >conftest.$ac_ext <<_ACEOF
23313#line $LINENO "configure"
23314/* confdefs.h. */
23315_ACEOF
23316cat confdefs.h >>conftest.$ac_ext
23317cat >>conftest.$ac_ext <<_ACEOF
23318/* end confdefs.h. */
23319
21d1c967 23320/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23321#ifdef __cplusplus
23322extern "C"
23323#endif
21d1c967 23324/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23325 builtin and then its argument prototype would still apply. */
23326char connect ();
23327int
23328main ()
23329{
23330connect ();
23331 ;
23332 return 0;
23333}
23334_ACEOF
23335rm -f conftest.$ac_objext conftest$ac_exeext
23336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23337 (eval $ac_link) 2>&5
23338 ac_status=$?
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); } &&
23341 { ac_try='test -s conftest$ac_exeext'
23342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23343 (eval $ac_try) 2>&5
23344 ac_status=$?
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); }; }; then
23347 ac_cv_lib_socket_connect=yes
23348else
23349 echo "$as_me: failed program was:" >&5
23350sed 's/^/| /' conftest.$ac_ext >&5
23351
23352ac_cv_lib_socket_connect=no
23353fi
23354rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23355LIBS=$ac_check_lib_save_LIBS
23356fi
23357echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23358echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23359if test $ac_cv_lib_socket_connect = yes; then
21d1c967 23360 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 23361fi
90dd450c 23362
21d1c967 23363 fi
90dd450c 23364
e6cc62c6
VS
23365 # Guillermo Gomez says -lposix is necessary on A/UX.
23366 echo "$as_me:$LINENO: checking for remove" >&5
23367echo $ECHO_N "checking for remove... $ECHO_C" >&6
23368if test "${ac_cv_func_remove+set}" = set; then
23369 echo $ECHO_N "(cached) $ECHO_C" >&6
23370else
23371 cat >conftest.$ac_ext <<_ACEOF
23372#line $LINENO "configure"
23373/* confdefs.h. */
23374_ACEOF
23375cat confdefs.h >>conftest.$ac_ext
23376cat >>conftest.$ac_ext <<_ACEOF
23377/* end confdefs.h. */
21d1c967 23378/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23379 which can conflict with char remove (); below.
23380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23381 <limits.h> exists even on freestanding compilers. */
23382#ifdef __STDC__
23383# include <limits.h>
23384#else
23385# include <assert.h>
23386#endif
21d1c967 23387/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23388#ifdef __cplusplus
23389extern "C"
23390{
23391#endif
21d1c967 23392/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23393 builtin and then its argument prototype would still apply. */
23394char remove ();
21d1c967
GD
23395/* The GNU C library defines this for functions which it implements
23396 to always fail with ENOSYS. Some functions are actually named
23397 something starting with __ and the normal name is an alias. */
23398#if defined (__stub_remove) || defined (__stub___remove)
23399choke me
23400#else
e6cc62c6
VS
23401char (*f) () = remove;
23402#endif
23403#ifdef __cplusplus
23404}
21d1c967 23405#endif
90dd450c 23406
e6cc62c6
VS
23407int
23408main ()
23409{
23410return f != remove;
23411 ;
23412 return 0;
23413}
23414_ACEOF
23415rm -f conftest.$ac_objext conftest$ac_exeext
23416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23417 (eval $ac_link) 2>&5
23418 ac_status=$?
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } &&
23421 { ac_try='test -s conftest$ac_exeext'
23422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423 (eval $ac_try) 2>&5
23424 ac_status=$?
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); }; }; then
23427 ac_cv_func_remove=yes
23428else
23429 echo "$as_me: failed program was:" >&5
23430sed 's/^/| /' conftest.$ac_ext >&5
23431
23432ac_cv_func_remove=no
23433fi
23434rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23435fi
23436echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23437echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 23438
21d1c967 23439 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23440 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23441echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23442if test "${ac_cv_lib_posix_remove+set}" = set; then
23443 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23444else
e6cc62c6 23445 ac_check_lib_save_LIBS=$LIBS
21d1c967 23446LIBS="-lposix $LIBS"
e6cc62c6
VS
23447cat >conftest.$ac_ext <<_ACEOF
23448#line $LINENO "configure"
23449/* confdefs.h. */
23450_ACEOF
23451cat confdefs.h >>conftest.$ac_ext
23452cat >>conftest.$ac_ext <<_ACEOF
23453/* end confdefs.h. */
23454
21d1c967 23455/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23456#ifdef __cplusplus
23457extern "C"
23458#endif
21d1c967 23459/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23460 builtin and then its argument prototype would still apply. */
23461char remove ();
23462int
23463main ()
23464{
23465remove ();
23466 ;
23467 return 0;
23468}
23469_ACEOF
23470rm -f conftest.$ac_objext conftest$ac_exeext
23471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23472 (eval $ac_link) 2>&5
23473 ac_status=$?
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); } &&
23476 { ac_try='test -s conftest$ac_exeext'
23477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23478 (eval $ac_try) 2>&5
23479 ac_status=$?
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; }; then
23482 ac_cv_lib_posix_remove=yes
23483else
23484 echo "$as_me: failed program was:" >&5
23485sed 's/^/| /' conftest.$ac_ext >&5
23486
23487ac_cv_lib_posix_remove=no
23488fi
23489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23490LIBS=$ac_check_lib_save_LIBS
23491fi
23492echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23493echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23494if test $ac_cv_lib_posix_remove = yes; then
21d1c967 23495 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 23496fi
19bc6aad 23497
90dd450c 23498 fi
19bc6aad 23499
21d1c967 23500 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23501 echo "$as_me:$LINENO: checking for shmat" >&5
23502echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23503if test "${ac_cv_func_shmat+set}" = set; then
23504 echo $ECHO_N "(cached) $ECHO_C" >&6
23505else
23506 cat >conftest.$ac_ext <<_ACEOF
23507#line $LINENO "configure"
23508/* confdefs.h. */
23509_ACEOF
23510cat confdefs.h >>conftest.$ac_ext
23511cat >>conftest.$ac_ext <<_ACEOF
23512/* end confdefs.h. */
21d1c967 23513/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23514 which can conflict with char shmat (); below.
23515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23516 <limits.h> exists even on freestanding compilers. */
23517#ifdef __STDC__
23518# include <limits.h>
23519#else
23520# include <assert.h>
23521#endif
21d1c967 23522/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23523#ifdef __cplusplus
23524extern "C"
23525{
23526#endif
21d1c967 23527/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23528 builtin and then its argument prototype would still apply. */
23529char shmat ();
21d1c967
GD
23530/* The GNU C library defines this for functions which it implements
23531 to always fail with ENOSYS. Some functions are actually named
23532 something starting with __ and the normal name is an alias. */
23533#if defined (__stub_shmat) || defined (__stub___shmat)
23534choke me
23535#else
e6cc62c6
VS
23536char (*f) () = shmat;
23537#endif
23538#ifdef __cplusplus
23539}
21d1c967 23540#endif
90dd450c 23541
e6cc62c6
VS
23542int
23543main ()
23544{
23545return f != shmat;
23546 ;
23547 return 0;
23548}
23549_ACEOF
23550rm -f conftest.$ac_objext conftest$ac_exeext
23551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23552 (eval $ac_link) 2>&5
23553 ac_status=$?
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); } &&
23556 { ac_try='test -s conftest$ac_exeext'
23557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23558 (eval $ac_try) 2>&5
23559 ac_status=$?
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); }; }; then
23562 ac_cv_func_shmat=yes
23563else
23564 echo "$as_me: failed program was:" >&5
23565sed 's/^/| /' conftest.$ac_ext >&5
23566
23567ac_cv_func_shmat=no
23568fi
23569rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23570fi
23571echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23572echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 23573
21d1c967 23574 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23575 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23576echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23577if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23578 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 23579else
e6cc62c6 23580 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 23581LIBS="-lipc $LIBS"
e6cc62c6
VS
23582cat >conftest.$ac_ext <<_ACEOF
23583#line $LINENO "configure"
23584/* confdefs.h. */
23585_ACEOF
23586cat confdefs.h >>conftest.$ac_ext
23587cat >>conftest.$ac_ext <<_ACEOF
23588/* end confdefs.h. */
23589
5c6fa7d2 23590/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23591#ifdef __cplusplus
23592extern "C"
23593#endif
5c6fa7d2 23594/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23595 builtin and then its argument prototype would still apply. */
23596char shmat ();
23597int
23598main ()
23599{
23600shmat ();
23601 ;
23602 return 0;
23603}
23604_ACEOF
23605rm -f conftest.$ac_objext conftest$ac_exeext
23606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23607 (eval $ac_link) 2>&5
23608 ac_status=$?
23609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); } &&
23611 { ac_try='test -s conftest$ac_exeext'
23612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23613 (eval $ac_try) 2>&5
23614 ac_status=$?
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); }; }; then
23617 ac_cv_lib_ipc_shmat=yes
23618else
23619 echo "$as_me: failed program was:" >&5
23620sed 's/^/| /' conftest.$ac_ext >&5
23621
23622ac_cv_lib_ipc_shmat=no
23623fi
23624rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23625LIBS=$ac_check_lib_save_LIBS
23626fi
23627echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23628echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23629if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 23630 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 23631fi
90dd450c 23632
90dd450c 23633 fi
21d1c967 23634 fi
10f2d63a 23635
21d1c967 23636 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23637 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
23638 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23639 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23640 # check for ICE first), but we must link in the order -lSM -lICE or
23641 # we get undefined symbols. So assume we have SM if we have ICE.
23642 # These have to be linked with before -lX11, unlike the other
23643 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23644 # John Interrante, Karl Berry
23645 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23646echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23647if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23648 echo $ECHO_N "(cached) $ECHO_C" >&6
23649else
23650 ac_check_lib_save_LIBS=$LIBS
f09359cf 23651LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6
VS
23652cat >conftest.$ac_ext <<_ACEOF
23653#line $LINENO "configure"
23654/* confdefs.h. */
23655_ACEOF
23656cat confdefs.h >>conftest.$ac_ext
23657cat >>conftest.$ac_ext <<_ACEOF
23658/* end confdefs.h. */
23659
21d1c967 23660/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23661#ifdef __cplusplus
23662extern "C"
23663#endif
21d1c967 23664/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23665 builtin and then its argument prototype would still apply. */
23666char IceConnectionNumber ();
23667int
23668main ()
23669{
23670IceConnectionNumber ();
23671 ;
23672 return 0;
23673}
23674_ACEOF
23675rm -f conftest.$ac_objext conftest$ac_exeext
23676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23677 (eval $ac_link) 2>&5
23678 ac_status=$?
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } &&
23681 { ac_try='test -s conftest$ac_exeext'
23682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683 (eval $ac_try) 2>&5
23684 ac_status=$?
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); }; }; then
23687 ac_cv_lib_ICE_IceConnectionNumber=yes
23688else
23689 echo "$as_me: failed program was:" >&5
23690sed 's/^/| /' conftest.$ac_ext >&5
23691
23692ac_cv_lib_ICE_IceConnectionNumber=no
23693fi
23694rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23695LIBS=$ac_check_lib_save_LIBS
23696fi
23697echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23698echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23699if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 23700 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 23701fi
21d1c967 23702
e6cc62c6 23703 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 23704
10f2d63a
VZ
23705fi
23706
8284b0c5 23707
21d1c967 23708 if test "$no_x" = "yes"; then
e6cc62c6
VS
23709 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23710echo "$as_me: error: X11 not found" >&2;}
23711 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
23712 fi
23713
2b5f62a0
VZ
23714 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23715 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
23716 AFMINSTALL=afminstall
23717 COMPILED_X_PROGRAM=0
23718
e6cc62c6
VS
23719 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23720echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23721
21d1c967 23722ac_find_includes=
2b5f62a0 23723for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
23724 do
23725 if test -f "$ac_dir/Xm/Xm.h"; then
23726 ac_find_includes=$ac_dir
23727 break
23728 fi
23729 done
23730
23731 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
23732 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23733echo "${ECHO_T}found in $ac_find_includes" >&6
23734
2b5f62a0 23735 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
23736 ac_path_to_include=""
23737 else
2b5f62a0
VZ
23738 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23739 result=$?
23740 if test $result = 0; then
23741 ac_path_to_include=""
23742 else
23743 ac_path_to_include=" -I$ac_find_includes"
23744 fi
dd0e4a90
VZ
23745 fi
23746
23747 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 23748 else
e6cc62c6
VS
23749 cat >conftest.$ac_ext <<_ACEOF
23750#line $LINENO "configure"
23751/* confdefs.h. */
23752_ACEOF
23753cat confdefs.h >>conftest.$ac_ext
23754cat >>conftest.$ac_ext <<_ACEOF
23755/* end confdefs.h. */
21d1c967
GD
23756
23757 #include <Xm/Xm.h>
e6cc62c6
VS
23758
23759int
23760main ()
23761{
21d1c967
GD
23762
23763 int version;
23764 version = xmUseVersion;
e6cc62c6
VS
23765
23766 ;
23767 return 0;
23768}
23769_ACEOF
23770rm -f conftest.$ac_objext
23771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23772 (eval $ac_compile) 2>&5
23773 ac_status=$?
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); } &&
23776 { ac_try='test -s conftest.$ac_objext'
23777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23778 (eval $ac_try) 2>&5
23779 ac_status=$?
23780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781 (exit $ac_status); }; }; then
23782
23783 echo "$as_me:$LINENO: result: found in default search path" >&5
23784echo "${ECHO_T}found in default search path" >&6
21d1c967 23785 COMPILED_X_PROGRAM=1
e6cc62c6 23786
10f2d63a 23787else
e6cc62c6
VS
23788 echo "$as_me: failed program was:" >&5
23789sed 's/^/| /' conftest.$ac_ext >&5
23790
23791
23792 echo "$as_me:$LINENO: result: no" >&5
23793echo "${ECHO_T}no" >&6
23794 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
23795echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
23796 { (exit 1); exit 1; }; }
23797
23798
10f2d63a 23799fi
e6cc62c6 23800rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 23801 fi
10f2d63a 23802
21d1c967 23803 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
23804 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
23805echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
23806
21d1c967 23807ac_find_libraries=
2b5f62a0 23808for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23809 do
23810 for ac_extension in a so sl dylib; do
23811 if test -f "$ac_dir/libXm.$ac_extension"; then
23812 ac_find_libraries=$ac_dir
23813 break 2
23814 fi
23815 done
23816 done
23817
23818 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
23819 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23820echo "${ECHO_T}found at $ac_find_libraries" >&6
23821
21d1c967 23822
21d1c967
GD
23823 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23824 result=$?
23825 if test $result = 0; then
23826 ac_path_to_link=""
23827 else
23828 ac_path_to_link=" -L$ac_find_libraries"
23829 fi
23830
21d1c967 23831 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 23832 else
dd0e4a90
VZ
23833 save_CFLAGS=$CFLAGS
23834 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23835
e6cc62c6
VS
23836 cat >conftest.$ac_ext <<_ACEOF
23837#line $LINENO "configure"
23838/* confdefs.h. */
23839_ACEOF
23840cat confdefs.h >>conftest.$ac_ext
23841cat >>conftest.$ac_ext <<_ACEOF
23842/* end confdefs.h. */
21d1c967
GD
23843
23844 #include <Xm/Xm.h>
e6cc62c6
VS
23845
23846int
23847main ()
23848{
21d1c967
GD
23849
23850 int version;
23851 version = xmUseVersion;
e6cc62c6
VS
23852
23853 ;
23854 return 0;
23855}
23856_ACEOF
23857rm -f conftest.$ac_objext
23858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23859 (eval $ac_compile) 2>&5
23860 ac_status=$?
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); } &&
23863 { ac_try='test -s conftest.$ac_objext'
23864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23865 (eval $ac_try) 2>&5
23866 ac_status=$?
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); }; }; then
23869
23870 echo "$as_me:$LINENO: result: found in default search path" >&5
23871echo "${ECHO_T}found in default search path" >&6
21d1c967 23872 COMPILED_X_PROGRAM=1
e6cc62c6 23873
d836ee96 23874else
e6cc62c6
VS
23875 echo "$as_me: failed program was:" >&5
23876sed 's/^/| /' conftest.$ac_ext >&5
23877
23878
23879 echo "$as_me:$LINENO: result: no" >&5
23880echo "${ECHO_T}no" >&6
23881 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
23882echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
23883 { (exit 1); exit 1; }; }
23884
23885
d836ee96 23886fi
e6cc62c6 23887rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23888
23889 CFLAGS=$save_CFLAGS
21d1c967
GD
23890 fi
23891 fi
23892
23893 xpm_link=
e6cc62c6
VS
23894 echo "$as_me:$LINENO: checking for Xpm library" >&5
23895echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
23896
21d1c967 23897ac_find_libraries=
2b5f62a0 23898for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
23899 do
23900 for ac_extension in a so sl dylib; do
23901 if test -f "$ac_dir/libXpm.$ac_extension"; then
23902 ac_find_libraries=$ac_dir
23903 break 2
23904 fi
23905 done
23906 done
23907
23908 if test "$ac_find_libraries" != "" ; then
e6cc62c6 23909
21d1c967
GD
23910 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23911 result=$?
23912 if test $result = 0; then
23913 ac_path_to_link=""
23914 else
23915 ac_path_to_link=" -L$ac_find_libraries"
23916 fi
23917
23918 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
dd0e4a90 23919
21d1c967 23920 xpm_link=" -lXpm"
e6cc62c6 23921 cat >>confdefs.h <<\_ACEOF
21d1c967 23922#define wxHAVE_LIB_XPM 1
e6cc62c6 23923_ACEOF
90dd450c 23924
e6cc62c6
VS
23925 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23926echo "${ECHO_T}found at $ac_find_libraries" >&6
21d1c967 23927 else
dd0e4a90
VZ
23928 save_CFLAGS=$CFLAGS
23929 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23930
e6cc62c6
VS
23931 cat >conftest.$ac_ext <<_ACEOF
23932#line $LINENO "configure"
23933/* confdefs.h. */
23934_ACEOF
23935cat confdefs.h >>conftest.$ac_ext
23936cat >>conftest.$ac_ext <<_ACEOF
23937/* end confdefs.h. */
21d1c967
GD
23938
23939 #include <X11/xpm.h>
e6cc62c6
VS
23940
23941int
23942main ()
23943{
21d1c967
GD
23944
23945 int version;
23946 version = XpmLibraryVersion();
e6cc62c6
VS
23947
23948 ;
23949 return 0;
23950}
23951_ACEOF
23952rm -f conftest.$ac_objext
23953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23954 (eval $ac_compile) 2>&5
23955 ac_status=$?
23956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957 (exit $ac_status); } &&
23958 { ac_try='test -s conftest.$ac_objext'
23959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23960 (eval $ac_try) 2>&5
23961 ac_status=$?
23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963 (exit $ac_status); }; }; then
23964
21d1c967 23965 xpm_link=" -lXpm"
e6cc62c6 23966 cat >>confdefs.h <<\_ACEOF
21d1c967 23967#define wxHAVE_LIB_XPM 1
e6cc62c6 23968_ACEOF
21d1c967 23969
e6cc62c6
VS
23970 echo "$as_me:$LINENO: result: found in default search path" >&5
23971echo "${ECHO_T}found in default search path" >&6
21d1c967 23972 COMPILED_X_PROGRAM=0
e6cc62c6 23973
d836ee96 23974else
e6cc62c6
VS
23975 echo "$as_me: failed program was:" >&5
23976sed 's/^/| /' conftest.$ac_ext >&5
23977
23978
23979 echo "$as_me:$LINENO: result: no" >&5
23980echo "${ECHO_T}no" >&6
23981 { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
23982echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
23983
23984
d836ee96 23985fi
e6cc62c6 23986rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
23987
23988 CFLAGS=$save_CFLAGS
21d1c967
GD
23989 fi
23990
e6cc62c6
VS
23991 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
23992echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
23993 libp_link=""
23994 libsm_ice_link=""
23995 libs_found=0
23996 for libp in "" " -lXp"; do
23997 if test "$libs_found" = "0"; then
23998 for libsm_ice in " -lSM -lICE"; do
e26c13cf 23999 if test "$libs_found" = "0"; then
6a30f1c8
MB
24000 save_LIBS="$LIBS"
24001 LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
24002 save_CFLAGS=$CFLAGS
24003 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24004
e6cc62c6
VS
24005 cat >conftest.$ac_ext <<_ACEOF
24006#line $LINENO "configure"
24007/* confdefs.h. */
24008_ACEOF
24009cat confdefs.h >>conftest.$ac_ext
24010cat >>conftest.$ac_ext <<_ACEOF
24011/* end confdefs.h. */
17234b26 24012
6a30f1c8
MB
24013 #include <Xm/Xm.h>
24014 #include <Xm/List.h>
e6cc62c6
VS
24015
24016int
24017main ()
24018{
6a30f1c8
MB
24019
24020 XmString string = NULL;
24021 Widget w = NULL;
24022 int position = 0;
24023 XmListAddItem(w, string, position);
e6cc62c6
VS
24024
24025 ;
24026 return 0;
24027}
24028_ACEOF
24029rm -f conftest.$ac_objext conftest$ac_exeext
24030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24031 (eval $ac_link) 2>&5
24032 ac_status=$?
24033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); } &&
24035 { ac_try='test -s conftest$ac_exeext'
24036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24037 (eval $ac_try) 2>&5
24038 ac_status=$?
24039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24040 (exit $ac_status); }; }; then
24041
6a30f1c8
MB
24042 libp_link="$libp"
24043 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24044 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24045echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24046 libs_found=1
e6cc62c6 24047
6a30f1c8 24048else
e6cc62c6
VS
24049 echo "$as_me: failed program was:" >&5
24050sed 's/^/| /' conftest.$ac_ext >&5
24051
24052
24053
6a30f1c8 24054fi
e6cc62c6 24055rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24056
6a30f1c8 24057 LIBS="$save_LIBS"
dd0e4a90 24058 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24059 fi
24060 done
24061 fi
24062 done
24063
24064 if test "$libs_found" = "0"; then
e6cc62c6
VS
24065 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24066echo "${ECHO_T}can't find the right libraries" >&6
24067 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24068echo "$as_me: error: can't link a simple motif program" >&2;}
24069 { (exit 1); exit 1; }; }
6a30f1c8
MB
24070 fi
24071
da494b40
MB
24072 save_CFLAGS=$CFLAGS
24073 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24074 echo "$as_me:$LINENO: checking for Motif 2" >&5
24075echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24076 cat >conftest.$ac_ext <<_ACEOF
24077#line $LINENO "configure"
24078/* confdefs.h. */
24079_ACEOF
24080cat confdefs.h >>conftest.$ac_ext
24081cat >>conftest.$ac_ext <<_ACEOF
24082/* end confdefs.h. */
da494b40
MB
24083
24084 #include <Xm/Xm.h>
e6cc62c6
VS
24085
24086int
24087main ()
24088{
da494b40
MB
24089
24090 #if XmVersion < 2000
24091 #error "Not Motif 2"
24092 #endif
e6cc62c6
VS
24093
24094 ;
24095 return 0;
24096}
24097_ACEOF
24098rm -f conftest.$ac_objext
24099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24100 (eval $ac_compile) 2>&5
24101 ac_status=$?
24102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103 (exit $ac_status); } &&
24104 { ac_try='test -s conftest.$ac_objext'
24105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24106 (eval $ac_try) 2>&5
24107 ac_status=$?
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); }; }; then
24110
24111 cat >>confdefs.h <<\_ACEOF
da494b40 24112#define __WXMOTIF20__ 1
e6cc62c6
VS
24113_ACEOF
24114
24115 echo "$as_me:$LINENO: result: found" >&5
24116echo "${ECHO_T}found" >&6
da494b40 24117
da494b40 24118else
e6cc62c6
VS
24119 echo "$as_me: failed program was:" >&5
24120sed 's/^/| /' conftest.$ac_ext >&5
24121
24122
24123 cat >>confdefs.h <<\_ACEOF
da494b40 24124#define __WXMOTIF20__ 0
e6cc62c6
VS
24125_ACEOF
24126
24127 echo "$as_me:$LINENO: result: not found" >&5
24128echo "${ECHO_T}not found" >&6
da494b40 24129
da494b40 24130fi
e6cc62c6 24131rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24132 CFLAGS=$save_CFLAGS
24133
6a30f1c8 24134 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24135 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24136 TOOLKIT=MOTIF
24137 GUIDIST=MOTIF_DIST
f7f78039
MB
24138 wxHAVE_XEXT_LIB=1
24139 fi
24140
24141 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24142 test "$wxHAVE_XEXT_LIB" = 1; then
24143 save_CFLAGS="$CFLAGS"
24144 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24145
e6cc62c6
VS
24146 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24147echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24148 cat >conftest.$ac_ext <<_ACEOF
24149#line $LINENO "configure"
24150/* confdefs.h. */
24151_ACEOF
24152cat confdefs.h >>conftest.$ac_ext
24153cat >>conftest.$ac_ext <<_ACEOF
24154/* end confdefs.h. */
24155
24156 #include <X11/Xlib.h>
f7f78039 24157 #include <X11/extensions/shape.h>
e6cc62c6
VS
24158
24159int
24160main ()
24161{
f7f78039
MB
24162
24163 int dummy1, dummy2;
24164 XShapeQueryExtension((Display*)NULL,
24165 (int*)NULL, (int*)NULL);
e6cc62c6
VS
24166
24167 ;
24168 return 0;
24169}
24170_ACEOF
24171rm -f conftest.$ac_objext
24172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24173 (eval $ac_compile) 2>&5
24174 ac_status=$?
24175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176 (exit $ac_status); } &&
24177 { ac_try='test -s conftest.$ac_objext'
24178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24179 (eval $ac_try) 2>&5
24180 ac_status=$?
24181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182 (exit $ac_status); }; }; then
24183
24184 cat >>confdefs.h <<\_ACEOF
f7f78039 24185#define HAVE_XSHAPE 1
e6cc62c6
VS
24186_ACEOF
24187
24188 echo "$as_me:$LINENO: result: found" >&5
24189echo "${ECHO_T}found" >&6
f7f78039 24190
f7f78039 24191else
e6cc62c6
VS
24192 echo "$as_me: failed program was:" >&5
24193sed 's/^/| /' conftest.$ac_ext >&5
24194
24195
24196 echo "$as_me:$LINENO: result: not found" >&5
24197echo "${ECHO_T}not found" >&6
24198
f7f78039 24199fi
e6cc62c6 24200rm -f conftest.$ac_objext conftest.$ac_ext
f7f78039 24201 CFLAGS="$save_CFLAGS"
21d1c967
GD
24202 fi
24203
24204 if test "$wxUSE_MAC" = 1; then
0c98a14e 24205 CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 24206
0c98a14e 24207 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
24208 TOOLKIT=MAC
24209 GUIDIST=MACX_DIST
cf615ebb 24210 WXBASEPORT="_carbon"
21d1c967
GD
24211 fi
24212
ac0c4cc3
DE
24213 if test "$wxUSE_COCOA" = 1; then
24214 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24215 TOOLKIT=COCOA
24216 GUIDIST=COCOA_DIST
24217 fi
24218
21d1c967
GD
24219 if test "$wxUSE_PM" = 1; then
24220 TOOLKIT=PM
24221 GUIDIST=GTK_DIST
e6cc62c6
VS
24222 { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
24223echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
f657dbe7 24224 wxUSE_THREADS="no"
21d1c967
GD
24225 fi
24226
24227 if test "$TOOLKIT" = "PM" ; then
24228 TOOLKIT_DIR="os2"
24229 else
24230 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24231 fi
24232
24233 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24234
24235 if test "$wxUSE_UNIVERSAL" = "yes"; then
24236 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24237
24238 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24239 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24240
24241 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24242 if test "$wxUSE_X11" = 1; then
24243 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24244 else
24245 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24246 fi
24247 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24248 WIDGET_SET=univ
24249 else
24250 ALL_OBJECTS="\$(GUIOBJS)"
24251 ALL_SOURCES="\$(ALL_SOURCES)"
24252 ALL_HEADERS="\$(ALL_HEADERS)"
24253 fi
24254
24255 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24256
24257 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24258 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24259 fi
24260
24261 if test "$wxUSE_HTML" = "yes"; then
24262 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24263 fi
24264
24265 if test "$wxUSE_LIBJPEG" = "builtin" ; then
24266 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24267 fi
24268 if test "$wxUSE_LIBTIFF" = "builtin" ; then
24269 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24270 fi
24271 if test "$wxUSE_LIBPNG" = "builtin" ; then
24272 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24273 fi
24274
24275 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24276 DISTDIR="wx\$(TOOLKIT)"
90dd450c 24277else
21d1c967
GD
24278 USE_GUI=0
24279
24280 TOOLKIT_DIR="base"
24281
24282 if test "$USE_WIN32" = 1 ; then
24283 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24284 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24285
24286 TOOLKIT="MSW"
24287 else
24288 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24289 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24290 fi
24291
24292 ALL_SOURCES="\$(ALL_SOURCES)"
24293 ALL_HEADERS="\$(ALL_HEADERS)"
24294
24295 PORT_FILES="\${top_srcdir}/src/files.lst"
24296
24297 GUIDIST="BASE_DIST"
24298 DISTDIR="wxBase"
d836ee96
VZ
24299fi
24300
8284b0c5 24301
8647bec6
RG
24302
24303
24304IODBC_C_SRC=""
24305
24306
24307if test "$TOOLKIT" != "MSW" ; then
24308
bb41dcbe 24309 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 24310
bb41dcbe 24311 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
24312 echo "$as_me:$LINENO: checking for sql.h" >&5
24313echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24314if test "${ac_cv_header_sql_h+set}" = set; then
24315 echo $ECHO_N "(cached) $ECHO_C" >&6
24316fi
24317echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24318echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24319else
24320 # Is the header compilable?
24321echo "$as_me:$LINENO: checking sql.h usability" >&5
24322echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24323cat >conftest.$ac_ext <<_ACEOF
24324#line $LINENO "configure"
24325/* confdefs.h. */
24326_ACEOF
24327cat confdefs.h >>conftest.$ac_ext
24328cat >>conftest.$ac_ext <<_ACEOF
24329/* end confdefs.h. */
24330$ac_includes_default
8647bec6 24331#include <sql.h>
e6cc62c6
VS
24332_ACEOF
24333rm -f conftest.$ac_objext
24334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24335 (eval $ac_compile) 2>&5
24336 ac_status=$?
24337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338 (exit $ac_status); } &&
24339 { ac_try='test -s conftest.$ac_objext'
24340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24341 (eval $ac_try) 2>&5
24342 ac_status=$?
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); }; }; then
24345 ac_header_compiler=yes
24346else
24347 echo "$as_me: failed program was:" >&5
24348sed 's/^/| /' conftest.$ac_ext >&5
24349
24350ac_header_compiler=no
24351fi
24352rm -f conftest.$ac_objext conftest.$ac_ext
24353echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24354echo "${ECHO_T}$ac_header_compiler" >&6
24355
24356# Is the header present?
24357echo "$as_me:$LINENO: checking sql.h presence" >&5
24358echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24359cat >conftest.$ac_ext <<_ACEOF
24360#line $LINENO "configure"
24361/* confdefs.h. */
24362_ACEOF
24363cat confdefs.h >>conftest.$ac_ext
24364cat >>conftest.$ac_ext <<_ACEOF
24365/* end confdefs.h. */
24366#include <sql.h>
24367_ACEOF
24368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24370 ac_status=$?
24371 grep -v '^ *+' conftest.er1 >conftest.err
24372 rm -f conftest.er1
24373 cat conftest.err >&5
24374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375 (exit $ac_status); } >/dev/null; then
24376 if test -s conftest.err; then
24377 ac_cpp_err=$ac_c_preproc_warn_flag
24378 else
24379 ac_cpp_err=
24380 fi
24381else
24382 ac_cpp_err=yes
24383fi
24384if test -z "$ac_cpp_err"; then
24385 ac_header_preproc=yes
24386else
24387 echo "$as_me: failed program was:" >&5
24388sed 's/^/| /' conftest.$ac_ext >&5
24389
24390 ac_header_preproc=no
24391fi
24392rm -f conftest.err conftest.$ac_ext
24393echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24394echo "${ECHO_T}$ac_header_preproc" >&6
24395
24396# So? What about this header?
24397case $ac_header_compiler:$ac_header_preproc in
24398 yes:no )
24399 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24400echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24401 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24402echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24403 (
24404 cat <<\_ASBOX
24405## ------------------------------------ ##
24406## Report this to bug-autoconf@gnu.org. ##
24407## ------------------------------------ ##
24408_ASBOX
24409 ) |
24410 sed "s/^/$as_me: WARNING: /" >&2
24411 ;;
24412 no:yes )
24413 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24414echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24415 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24416echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24417 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24418echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24419 (
24420 cat <<\_ASBOX
24421## ------------------------------------ ##
24422## Report this to bug-autoconf@gnu.org. ##
24423## ------------------------------------ ##
24424_ASBOX
24425 ) |
24426 sed "s/^/$as_me: WARNING: /" >&2
24427 ;;
24428esac
24429echo "$as_me:$LINENO: checking for sql.h" >&5
24430echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24431if test "${ac_cv_header_sql_h+set}" = set; then
24432 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24433else
e6cc62c6
VS
24434 ac_cv_header_sql_h=$ac_header_preproc
24435fi
24436echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24437echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24438
bb41dcbe
VS
24439fi
24440if test $ac_cv_header_sql_h = yes; then
24441 found_sql_h=1
8647bec6
RG
24442fi
24443
e6cc62c6 24444
bb41dcbe
VS
24445 if test "x$found_sql_h" = "x1" ; then
24446 echo "$as_me:$LINENO: checking for iodbc in -lSQLAllocEnv" >&5
24447echo $ECHO_N "checking for iodbc in -lSQLAllocEnv... $ECHO_C" >&6
24448if test "${ac_cv_lib_SQLAllocEnv_iodbc+set}" = set; then
e6cc62c6 24449 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 24450else
bb41dcbe
VS
24451 ac_check_lib_save_LIBS=$LIBS
24452LIBS="-lSQLAllocEnv $LIBS"
e6cc62c6
VS
24453cat >conftest.$ac_ext <<_ACEOF
24454#line $LINENO "configure"
24455/* confdefs.h. */
24456_ACEOF
24457cat confdefs.h >>conftest.$ac_ext
24458cat >>conftest.$ac_ext <<_ACEOF
24459/* end confdefs.h. */
24460
8647bec6 24461/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24462#ifdef __cplusplus
24463extern "C"
24464#endif
8647bec6 24465/* We use char because int might match the return type of a gcc2
e6cc62c6 24466 builtin and then its argument prototype would still apply. */
bb41dcbe 24467char iodbc ();
e6cc62c6
VS
24468int
24469main ()
24470{
bb41dcbe 24471iodbc ();
e6cc62c6
VS
24472 ;
24473 return 0;
24474}
24475_ACEOF
24476rm -f conftest.$ac_objext conftest$ac_exeext
24477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24478 (eval $ac_link) 2>&5
24479 ac_status=$?
24480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); } &&
24482 { ac_try='test -s conftest$ac_exeext'
24483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484 (eval $ac_try) 2>&5
24485 ac_status=$?
24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); }; }; then
bb41dcbe 24488 ac_cv_lib_SQLAllocEnv_iodbc=yes
8647bec6 24489else
e6cc62c6
VS
24490 echo "$as_me: failed program was:" >&5
24491sed 's/^/| /' conftest.$ac_ext >&5
24492
bb41dcbe 24493ac_cv_lib_SQLAllocEnv_iodbc=no
8647bec6 24494fi
e6cc62c6 24495rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
24496LIBS=$ac_check_lib_save_LIBS
24497fi
24498echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_iodbc" >&5
24499echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_iodbc" >&6
24500if test $ac_cv_lib_SQLAllocEnv_iodbc = yes; then
24501 ODBC_LINK=" -liodbc"
24502else
24503
24504 echo "$as_me:$LINENO: checking for unixodbc in -lSQLAllocEnv" >&5
24505echo $ECHO_N "checking for unixodbc in -lSQLAllocEnv... $ECHO_C" >&6
24506if test "${ac_cv_lib_SQLAllocEnv_unixodbc+set}" = set; then
24507 echo $ECHO_N "(cached) $ECHO_C" >&6
24508else
24509 ac_check_lib_save_LIBS=$LIBS
24510LIBS="-lSQLAllocEnv $LIBS"
24511cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24512#line $LINENO "configure"
24513/* confdefs.h. */
24514_ACEOF
24515cat confdefs.h >>conftest.$ac_ext
24516cat >>conftest.$ac_ext <<_ACEOF
24517/* end confdefs.h. */
24518
8647bec6 24519/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24520#ifdef __cplusplus
24521extern "C"
24522#endif
8647bec6 24523/* We use char because int might match the return type of a gcc2
e6cc62c6 24524 builtin and then its argument prototype would still apply. */
bb41dcbe 24525char unixodbc ();
e6cc62c6
VS
24526int
24527main ()
24528{
bb41dcbe 24529unixodbc ();
e6cc62c6
VS
24530 ;
24531 return 0;
24532}
24533_ACEOF
24534rm -f conftest.$ac_objext conftest$ac_exeext
24535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24536 (eval $ac_link) 2>&5
24537 ac_status=$?
24538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24539 (exit $ac_status); } &&
24540 { ac_try='test -s conftest$ac_exeext'
24541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24542 (eval $ac_try) 2>&5
24543 ac_status=$?
24544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545 (exit $ac_status); }; }; then
bb41dcbe 24546 ac_cv_lib_SQLAllocEnv_unixodbc=yes
8647bec6 24547else
e6cc62c6
VS
24548 echo "$as_me: failed program was:" >&5
24549sed 's/^/| /' conftest.$ac_ext >&5
24550
bb41dcbe 24551ac_cv_lib_SQLAllocEnv_unixodbc=no
8647bec6 24552fi
e6cc62c6 24553rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe 24554LIBS=$ac_check_lib_save_LIBS
e6cc62c6 24555fi
bb41dcbe
VS
24556echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_unixodbc" >&5
24557echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_unixodbc" >&6
24558if test $ac_cv_lib_SQLAllocEnv_unixodbc = yes; then
24559 ODBC_LINK=" -lunixodbc"
24560else
24561
24562 echo "$as_me:$LINENO: checking for odbc in -lSQLAllocEnv" >&5
24563echo $ECHO_N "checking for odbc in -lSQLAllocEnv... $ECHO_C" >&6
24564if test "${ac_cv_lib_SQLAllocEnv_odbc+set}" = set; then
24565 echo $ECHO_N "(cached) $ECHO_C" >&6
24566else
24567 ac_check_lib_save_LIBS=$LIBS
24568LIBS="-lSQLAllocEnv $LIBS"
24569cat >conftest.$ac_ext <<_ACEOF
24570#line $LINENO "configure"
24571/* confdefs.h. */
24572_ACEOF
24573cat confdefs.h >>conftest.$ac_ext
24574cat >>conftest.$ac_ext <<_ACEOF
24575/* end confdefs.h. */
e6cc62c6 24576
bb41dcbe
VS
24577/* Override any gcc2 internal prototype to avoid an error. */
24578#ifdef __cplusplus
24579extern "C"
24580#endif
24581/* We use char because int might match the return type of a gcc2
24582 builtin and then its argument prototype would still apply. */
24583char odbc ();
24584int
24585main ()
24586{
24587odbc ();
24588 ;
24589 return 0;
24590}
24591_ACEOF
24592rm -f conftest.$ac_objext conftest$ac_exeext
24593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24594 (eval $ac_link) 2>&5
24595 ac_status=$?
24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); } &&
24598 { ac_try='test -s conftest$ac_exeext'
24599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24600 (eval $ac_try) 2>&5
24601 ac_status=$?
24602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603 (exit $ac_status); }; }; then
24604 ac_cv_lib_SQLAllocEnv_odbc=yes
e6cc62c6 24605else
bb41dcbe
VS
24606 echo "$as_me: failed program was:" >&5
24607sed 's/^/| /' conftest.$ac_ext >&5
24608
24609ac_cv_lib_SQLAllocEnv_odbc=no
24610fi
24611rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24612LIBS=$ac_check_lib_save_LIBS
24613fi
24614echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_odbc" >&5
24615echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_odbc" >&6
24616if test $ac_cv_lib_SQLAllocEnv_odbc = yes; then
24617 ODBC_LINK=" -lodbc"
24618fi
24619
24620
24621fi
e6cc62c6 24622
e6cc62c6 24623
8647bec6 24624fi
e6cc62c6 24625
fd3d7534 24626 fi
bb41dcbe
VS
24627 if test "x$ODBC_LINK" = "x" ; then
24628 if test "$wxUSE_ODBC" = "sys" ; then
24629 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
24630echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
24631 { (exit 1); exit 1; }; }
24632 else
24633 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
24634echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
24635 wxUSE_ODBC=builtin
24636 fi
24637 else
24638 wxUSE_ODBC=sys
8647bec6 24639 fi
8647bec6 24640 fi
bb41dcbe
VS
24641 if test "$wxUSE_ODBC" != "no" ; then
24642 cat >>confdefs.h <<\_ACEOF
24643#define wxUSE_ODBC 1
24644_ACEOF
e6cc62c6 24645
bb41dcbe
VS
24646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
24647
24648 WXODBCFLAG="-D_IODBC_"
24649 fi
6232543b 24650fi
21d1c967
GD
24651
24652if test "$wxUSE_REGEX" = "builtin" ; then
24653 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 24654fi
21d1c967
GD
24655if test "$wxUSE_ZLIB" = "builtin" ; then
24656 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
24657fi
24658
8284b0c5 24659
4d264332 24660USE_OPENGL=0
21d1c967 24661if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 24662 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
24663 OPENGL_LIBS="-framework OpenGL -framework AGL"
24664 elif test "$wxUSE_MSW" = 1; then
24665 OPENGL_LIBS="-lopengl32 -lglu32"
24666 else
01aa5863
VS
24667
24668
24669ac_find_includes=
24670for ac_dir in $SEARCH_INCLUDE /usr/include;
24671 do
24672 if test -f "$ac_dir/GL/gl.h"; then
24673 ac_find_includes=$ac_dir
24674 break
24675 fi
24676 done
24677
24678 if test "$ac_find_includes" != "" ; then
24679 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24680echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
24681
24682 if test "x$ac_find_includes" = "x/usr/include"; then
24683 ac_path_to_include=""
24684 else
24685 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24686 result=$?
24687 if test $result = 0; then
24688 ac_path_to_include=""
24689 else
24690 ac_path_to_include=" -I$ac_find_includes"
24691 fi
24692 fi
24693
24694 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
24695 fi
24696
e6cc62c6
VS
24697 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24698 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24699echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24700if test "${ac_cv_header_GL_gl_h+set}" = set; then
24701 echo $ECHO_N "(cached) $ECHO_C" >&6
24702fi
24703echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24704echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24705else
24706 # Is the header compilable?
24707echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24708echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24709cat >conftest.$ac_ext <<_ACEOF
24710#line $LINENO "configure"
24711/* confdefs.h. */
24712_ACEOF
24713cat confdefs.h >>conftest.$ac_ext
24714cat >>conftest.$ac_ext <<_ACEOF
24715/* end confdefs.h. */
24716$ac_includes_default
21d1c967 24717#include <GL/gl.h>
e6cc62c6
VS
24718_ACEOF
24719rm -f conftest.$ac_objext
24720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24721 (eval $ac_compile) 2>&5
24722 ac_status=$?
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); } &&
24725 { ac_try='test -s conftest.$ac_objext'
24726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24727 (eval $ac_try) 2>&5
24728 ac_status=$?
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); }; }; then
24731 ac_header_compiler=yes
24732else
24733 echo "$as_me: failed program was:" >&5
24734sed 's/^/| /' conftest.$ac_ext >&5
24735
24736ac_header_compiler=no
24737fi
24738rm -f conftest.$ac_objext conftest.$ac_ext
24739echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24740echo "${ECHO_T}$ac_header_compiler" >&6
24741
24742# Is the header present?
24743echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24744echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24745cat >conftest.$ac_ext <<_ACEOF
24746#line $LINENO "configure"
24747/* confdefs.h. */
24748_ACEOF
24749cat confdefs.h >>conftest.$ac_ext
24750cat >>conftest.$ac_ext <<_ACEOF
24751/* end confdefs.h. */
24752#include <GL/gl.h>
24753_ACEOF
24754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24756 ac_status=$?
24757 grep -v '^ *+' conftest.er1 >conftest.err
24758 rm -f conftest.er1
24759 cat conftest.err >&5
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); } >/dev/null; then
24762 if test -s conftest.err; then
24763 ac_cpp_err=$ac_c_preproc_warn_flag
24764 else
24765 ac_cpp_err=
24766 fi
24767else
24768 ac_cpp_err=yes
24769fi
24770if test -z "$ac_cpp_err"; then
24771 ac_header_preproc=yes
24772else
24773 echo "$as_me: failed program was:" >&5
24774sed 's/^/| /' conftest.$ac_ext >&5
24775
24776 ac_header_preproc=no
24777fi
24778rm -f conftest.err conftest.$ac_ext
24779echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24780echo "${ECHO_T}$ac_header_preproc" >&6
24781
24782# So? What about this header?
24783case $ac_header_compiler:$ac_header_preproc in
24784 yes:no )
24785 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24786echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24787 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24788echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24789 (
24790 cat <<\_ASBOX
24791## ------------------------------------ ##
24792## Report this to bug-autoconf@gnu.org. ##
24793## ------------------------------------ ##
24794_ASBOX
24795 ) |
24796 sed "s/^/$as_me: WARNING: /" >&2
24797 ;;
24798 no:yes )
24799 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24800echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24801 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24802echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24803 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24804echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24805 (
24806 cat <<\_ASBOX
24807## ------------------------------------ ##
24808## Report this to bug-autoconf@gnu.org. ##
24809## ------------------------------------ ##
24810_ASBOX
24811 ) |
24812 sed "s/^/$as_me: WARNING: /" >&2
24813 ;;
24814esac
24815echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24816echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24817if test "${ac_cv_header_GL_gl_h+set}" = set; then
24818 echo $ECHO_N "(cached) $ECHO_C" >&6
24819else
24820 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 24821fi
e6cc62c6
VS
24822echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24823echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24824
698dcdb6 24825fi
e6cc62c6
VS
24826if test $ac_cv_header_GL_gl_h = yes; then
24827
89e3b3e4
VZ
24828 found_gl=0
24829
e6cc62c6
VS
24830 echo "$as_me:$LINENO: checking for -lGL" >&5
24831echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
24832
21d1c967 24833ac_find_libraries=
2b5f62a0 24834for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24835 do
24836 for ac_extension in a so sl dylib; do
24837 if test -f "$ac_dir/libGL.$ac_extension"; then
24838 ac_find_libraries=$ac_dir
24839 break 2
24840 fi
24841 done
24842 done
24843
24844 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24845
21d1c967
GD
24846 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24847 result=$?
24848 if test $result = 0; then
24849 ac_path_to_link=""
24850 else
24851 ac_path_to_link=" -L$ac_find_libraries"
24852 fi
24853
89e3b3e4
VZ
24854 if test "$ac_path_to_link" != " -L/usr/lib" ; then
24855 LDFLAGS_GL="$ac_path_to_link"
21d1c967 24856 fi
89e3b3e4 24857
e6cc62c6 24858
89e3b3e4
VZ
24859ac_find_libraries=
24860for ac_dir in $SEARCH_LIB /usr/lib;
24861 do
24862 for ac_extension in a so sl dylib; do
24863 if test -f "$ac_dir/libGLU.$ac_extension"; then
24864 ac_find_libraries=$ac_dir
24865 break 2
24866 fi
24867 done
24868 done
24869
24870 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24871
89e3b3e4
VZ
24872 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24873 result=$?
24874 if test $result = 0; then
24875 ac_path_to_link=""
24876 else
24877 ac_path_to_link=" -L$ac_find_libraries"
24878 fi
24879
24880 if test "$ac_path_to_link" != " -L/usr/lib" -a \
24881 "$ac_path_to_link" != "$LDFLAGS_GL"; then
24882 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
24883 fi
24884
24885 found_gl=1
24886 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
24887 echo "$as_me:$LINENO: result: yes" >&5
24888echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
24889 fi
24890 fi
24891
bb41dcbe 24892 if test "$found_gl" != 1; then
e6cc62c6
VS
24893 echo "$as_me:$LINENO: result: no" >&5
24894echo "${ECHO_T}no" >&6
24895 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
24896echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
24897
21d1c967 24898ac_find_libraries=
2b5f62a0 24899for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24900 do
24901 for ac_extension in a so sl dylib; do
24902 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
24903 ac_find_libraries=$ac_dir
24904 break 2
24905 fi
24906 done
24907 done
24908
24909 if test "$ac_find_libraries" != "" ; then
e6cc62c6 24910
21d1c967
GD
24911 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24912 result=$?
24913 if test $result = 0; then
24914 ac_path_to_link=""
24915 else
24916 ac_path_to_link=" -L$ac_find_libraries"
24917 fi
24918
24919 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
24920 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
24921 echo "$as_me:$LINENO: result: yes" >&5
24922echo "${ECHO_T}yes" >&6
21d1c967 24923 else
e6cc62c6
VS
24924 echo "$as_me:$LINENO: result: no" >&5
24925echo "${ECHO_T}no" >&6
21d1c967
GD
24926 fi
24927 fi
e6cc62c6 24928
5c6fa7d2 24929fi
52127426 24930
8284b0c5 24931
e6cc62c6 24932
21d1c967 24933 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
24934 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
24935echo "$as_me: error: OpenGL libraries not available" >&2;}
24936 { (exit 1); exit 1; }; }
21d1c967
GD
24937 fi
24938 fi
90dd450c 24939
21d1c967 24940 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 24941 USE_OPENGL=1
e6cc62c6 24942 cat >>confdefs.h <<\_ACEOF
21d1c967 24943#define wxUSE_OPENGL 1
e6cc62c6 24944_ACEOF
21d1c967 24945
e6cc62c6 24946 cat >>confdefs.h <<\_ACEOF
21d1c967 24947#define wxUSE_GLCANVAS 1
e6cc62c6 24948_ACEOF
21d1c967 24949
520755bb 24950 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 24951 fi
10f2d63a 24952fi
21d1c967
GD
24953
24954if test -z "$TOOLKIT_VPATH" ; then
24955 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 24956fi
21d1c967
GD
24957
24958if test -n "$TOOLKIT" ; then
24959 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
24960fi
24961
fe0895cf 24962UNICODE=0
21d1c967
GD
24963lib_unicode_suffix=
24964if test "$wxUSE_UNICODE" = "yes"; then
24965 lib_unicode_suffix=u
fe0895cf 24966 UNICODE=1
90dd450c 24967fi
698dcdb6 24968
21d1c967 24969lib_debug_suffix=
6c67131a 24970DEBUG_FLAG=0
21d1c967
GD
24971if test "$wxUSE_DEBUG_FLAG" = "yes"; then
24972 lib_debug_suffix=d
6c67131a
VS
24973 DEBUG_FLAG=1
24974fi
24975
24976DEBUG_INFO=0
24977if test "$wxUSE_DEBUG_INFO" = "yes"; then
24978 DEBUG_INFO=1
21d1c967 24979fi
698dcdb6 24980
1cbb95a2 24981WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
24982
24983TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
24984TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
24985
24986if test "$cross_compiling" = "yes"; then
24987 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
24988 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 24989 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
24990fi
24991
24992WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
24993WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
24994WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
24995WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
24996
24997WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24998WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
24999
25000WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
25001WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25002WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
25003WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25004
25005case "${host}" in
25006 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
25007 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
25008 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
25009 ;;
25010
25011 *-*-darwin* )
e6cc62c6 25012
05159a27
GD
25013 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25014 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25015
25016 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25017 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25018 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25019 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25020
21d1c967 25021 if test "$wxUSE_MAC" = 1; then
f346733b
GD
25022 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
25023 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
25024 fi
25025 ;;
25026esac
25027
25028WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25029WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25030
25031WXCONFIG_LIBS="-l${WX_LIBRARY}"
25032WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25033
25034if test "$wxUSE_OPENGL" = "yes"; then
25035 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25036 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25037fi
25038
8284b0c5
MB
25039
25040
21d1c967
GD
25041if test "$wxUSE_SHARED" = "yes"; then
25042 case "${host}" in
25043 *-pc-os2_emx | *-pc-os2-emx | \
25044 *-pc-msdosdjgpp )
25045 wxUSE_SHARED=no
e6cc62c6
VS
25046 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25047echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
25048 ;;
25049 esac
25050fi
25051
fe0895cf 25052SHARED=0
2b5f62a0 25053if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 25054 SHARED=1
2b5f62a0 25055
e6cc62c6 25056
2b5f62a0
VZ
25057 found_versioning=no
25058
e6cc62c6 25059
2b5f62a0 25060 if test $found_versioning = no ; then
e6cc62c6
VS
25061 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25062echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25063if test "${wx_cv_version_script+set}" = set; then
25064 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 25065else
e6cc62c6 25066
2b5f62a0
VZ
25067 echo "VER_1 { *; };" >conftest.sym
25068 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 25069
2b5f62a0
VZ
25070 if { ac_try='
25071 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
25072 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25074 (eval $ac_try) 2>&5
25075 ac_status=$?
25076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077 (exit $ac_status); }; } ; then
2b5f62a0
VZ
25078 if test -s conftest.stderr ; then
25079 wx_cv_version_script=no
25080 else
25081 wx_cv_version_script=yes
25082 fi
25083 else
25084 wx_cv_version_script=no
25085 fi
25086 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 25087
e6cc62c6
VS
25088fi
25089echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25090echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 25091 if test $wx_cv_version_script = yes ; then
e6cc62c6 25092 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
25093 fi
25094 fi
21d1c967 25095
21d1c967 25096
21d1c967 25097 case "${host}" in
fe0895cf 25098 *-*-linux* | *-*-gnu* )
e6cc62c6 25099 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 25100 ;;
21d1c967
GD
25101
25102 *-*-solaris2* )
25103 if test "$GCC" = yes ; then
25104 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
25105
25106 saveLdflags="$LDFLAGS"
25107 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
25108 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25109echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25110 cat >conftest.$ac_ext <<_ACEOF
25111#line $LINENO "configure"
25112/* confdefs.h. */
25113_ACEOF
25114cat confdefs.h >>conftest.$ac_ext
25115cat >>conftest.$ac_ext <<_ACEOF
25116/* end confdefs.h. */
25117
25118int
25119main ()
25120{
fe0895cf 25121
e6cc62c6
VS
25122 ;
25123 return 0;
25124}
25125_ACEOF
25126rm -f conftest.$ac_objext conftest$ac_exeext
25127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25128 (eval $ac_link) 2>&5
25129 ac_status=$?
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } &&
25132 { ac_try='test -s conftest$ac_exeext'
25133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25134 (eval $ac_try) 2>&5
25135 ac_status=$?
25136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137 (exit $ac_status); }; }; then
25138
25139 echo "$as_me:$LINENO: result: yes" >&5
25140echo "${ECHO_T}yes" >&6
25141 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25142
25143else
25144 echo "$as_me: failed program was:" >&5
25145sed 's/^/| /' conftest.$ac_ext >&5
25146
25147
25148 echo "$as_me:$LINENO: result: no" >&5
25149echo "${ECHO_T}no" >&6
25150 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25151echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 25152 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6
VS
25153 cat >conftest.$ac_ext <<_ACEOF
25154#line $LINENO "configure"
25155/* confdefs.h. */
25156_ACEOF
25157cat confdefs.h >>conftest.$ac_ext
25158cat >>conftest.$ac_ext <<_ACEOF
25159/* end confdefs.h. */
25160
25161int
25162main ()
25163{
25164
25165 ;
25166 return 0;
25167}
25168_ACEOF
25169rm -f conftest.$ac_objext conftest$ac_exeext
25170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25171 (eval $ac_link) 2>&5
25172 ac_status=$?
25173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); } &&
25175 { ac_try='test -s conftest$ac_exeext'
25176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25177 (eval $ac_try) 2>&5
25178 ac_status=$?
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); }; }; then
25181
25182 echo "$as_me:$LINENO: result: yes" >&5
25183echo "${ECHO_T}yes" >&6
25184 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25185else
25186 echo "$as_me: failed program was:" >&5
25187sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 25188
fe0895cf 25189
e6cc62c6
VS
25190 echo "$as_me:$LINENO: result: no" >&5
25191echo "${ECHO_T}no" >&6
25192
fe0895cf 25193fi
e6cc62c6
VS
25194rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25195
25196fi
25197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 25198 LDFLAGS="$saveLdflags"
21d1c967
GD
25199 else
25200 SHARED_LD="${CXX} -G -o"
25201 PIC_FLAG="-KPIC"
e6cc62c6 25202 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
25203 fi
25204 ;;
0f1bc9c2
VS
25205
25206 powerpc-*-darwin* )
ef0add05
VS
25207 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
25208 cat <<EOF >change-install-names
25209#!/bin/sh
25210libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
25211inst_cmd="install_name_tool "
25212for i in \${libnames} ; do
25213 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
25214done
25215\${inst_cmd} \${3}
25216EOF
25217 chmod +x change-install-names
0f1bc9c2
VS
25218 ;;
25219
21d1c967
GD
25220 esac
25221
25222 if test "x$WX_TARGET_LIBRARY" = "x"; then
25223 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25224 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25225 fi
25226
25227 WX_TARGET_LIBRARY_TYPE="so"
25228 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 25229fi
10f2d63a 25230
21d1c967
GD
25231if test "$wxUSE_SHARED" = "no"; then
25232
25233 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25234 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25235 fi
25236
ac0c4cc3 25237 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
25238 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25239 fi
25240
25241 if test "$wxUSE_OPENGL" = "yes"; then
25242 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25243 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25244 else
25245 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25246 fi
25247
25248 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25249 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25250
25251 WX_TARGET_LIBRARY_TYPE="a"
25252 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
25253
25254 STATIC_FLAG="yes"
25255else
25256 STATIC_FLAG="no"
90dd450c 25257fi
1e487827 25258
93fac604
VZ
25259MACRESCOMP="@#"
25260MACSETFILE="@#"
36825681 25261MACRESWXCONFIG="#"
21d1c967 25262if test "$wxUSE_MAC" = 1; then
e6cc62c6 25263 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
25264 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25265 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25266 # Extract the first word of "Rez", so it can be a program name with args.
25267set dummy Rez; ac_word=$2
e6cc62c6
VS
25268echo "$as_me:$LINENO: checking for $ac_word" >&5
25269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25270if test "${ac_cv_prog_RESCOMP+set}" = set; then
25271 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 25272else
21d1c967
GD
25273 if test -n "$RESCOMP"; then
25274 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 25275else
e6cc62c6
VS
25276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25277for as_dir in $PATH
25278do
25279 IFS=$as_save_IFS
25280 test -z "$as_dir" && as_dir=.
25281 for ac_exec_ext in '' $ac_executable_extensions; do
25282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25283 ac_cv_prog_RESCOMP="Rez"
25284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25285 break 2
25286 fi
25287done
25288done
25289
21d1c967 25290 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 25291fi
b93d0d08 25292fi
e6cc62c6 25293RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 25294if test -n "$RESCOMP"; then
e6cc62c6
VS
25295 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25296echo "${ECHO_T}$RESCOMP" >&6
90dd450c 25297else
e6cc62c6
VS
25298 echo "$as_me:$LINENO: result: no" >&5
25299echo "${ECHO_T}no" >&6
90dd450c 25300fi
b93d0d08 25301
21d1c967
GD
25302 # Extract the first word of "DeRez", so it can be a program name with args.
25303set dummy DeRez; ac_word=$2
e6cc62c6
VS
25304echo "$as_me:$LINENO: checking for $ac_word" >&5
25305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25306if test "${ac_cv_prog_DEREZ+set}" = set; then
25307 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 25308else
21d1c967
GD
25309 if test -n "$DEREZ"; then
25310 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 25311else
e6cc62c6
VS
25312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25313for as_dir in $PATH
25314do
25315 IFS=$as_save_IFS
25316 test -z "$as_dir" && as_dir=.
25317 for ac_exec_ext in '' $ac_executable_extensions; do
25318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25319 ac_cv_prog_DEREZ="DeRez"
25320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25321 break 2
25322 fi
25323done
25324done
25325
21d1c967 25326 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 25327fi
90dd450c 25328fi
e6cc62c6 25329DEREZ=$ac_cv_prog_DEREZ
21d1c967 25330if test -n "$DEREZ"; then
e6cc62c6
VS
25331 echo "$as_me:$LINENO: result: $DEREZ" >&5
25332echo "${ECHO_T}$DEREZ" >&6
90dd450c 25333else
e6cc62c6
VS
25334 echo "$as_me:$LINENO: result: no" >&5
25335echo "${ECHO_T}no" >&6
3a922bb4 25336fi
698dcdb6 25337
36825681
GD
25338 # Extract the first word of "SetFile", so it can be a program name with args.
25339set dummy SetFile; ac_word=$2
e6cc62c6
VS
25340echo "$as_me:$LINENO: checking for $ac_word" >&5
25341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25342if test "${ac_cv_prog_SETFILE+set}" = set; then
25343 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
25344else
25345 if test -n "$SETFILE"; then
25346 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25347else
e6cc62c6
VS
25348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25349for as_dir in $PATH
25350do
25351 IFS=$as_save_IFS
25352 test -z "$as_dir" && as_dir=.
25353 for ac_exec_ext in '' $ac_executable_extensions; do
25354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25355 ac_cv_prog_SETFILE="SetFile"
25356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25357 break 2
25358 fi
25359done
25360done
25361
36825681
GD
25362 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25363fi
25364fi
e6cc62c6 25365SETFILE=$ac_cv_prog_SETFILE
36825681 25366if test -n "$SETFILE"; then
e6cc62c6
VS
25367 echo "$as_me:$LINENO: result: $SETFILE" >&5
25368echo "${ECHO_T}$SETFILE" >&6
36825681 25369else
e6cc62c6
VS
25370 echo "$as_me:$LINENO: result: no" >&5
25371echo "${ECHO_T}no" >&6
36825681
GD
25372fi
25373
21d1c967 25374 MACOSX_BUNDLE="bundle"
36825681
GD
25375 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25376 MACSETFILE="\$(SETFILE)"
9711d31e 25377 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
25378elif test "$wxUSE_COCOA" = 1; then
25379 # Extract the first word of "Rez", so it can be a program name with args.
25380set dummy Rez; ac_word=$2
e6cc62c6
VS
25381echo "$as_me:$LINENO: checking for $ac_word" >&5
25382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25383if test "${ac_cv_prog_RESCOMP+set}" = set; then
25384 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25385else
25386 if test -n "$RESCOMP"; then
25387 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25388else
e6cc62c6
VS
25389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25390for as_dir in $PATH
25391do
25392 IFS=$as_save_IFS
25393 test -z "$as_dir" && as_dir=.
25394 for ac_exec_ext in '' $ac_executable_extensions; do
25395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25396 ac_cv_prog_RESCOMP="Rez"
25397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25398 break 2
25399 fi
25400done
25401done
25402
64440d77
DE
25403 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25404fi
25405fi
e6cc62c6 25406RESCOMP=$ac_cv_prog_RESCOMP
64440d77 25407if test -n "$RESCOMP"; then
e6cc62c6
VS
25408 echo "$as_me:$LINENO: result: $RESCOMP" >&5
25409echo "${ECHO_T}$RESCOMP" >&6
64440d77 25410else
e6cc62c6
VS
25411 echo "$as_me:$LINENO: result: no" >&5
25412echo "${ECHO_T}no" >&6
64440d77
DE
25413fi
25414
25415 # Extract the first word of "DeRez", so it can be a program name with args.
25416set dummy DeRez; ac_word=$2
e6cc62c6
VS
25417echo "$as_me:$LINENO: checking for $ac_word" >&5
25418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25419if test "${ac_cv_prog_DEREZ+set}" = set; then
25420 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25421else
25422 if test -n "$DEREZ"; then
25423 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25424else
e6cc62c6
VS
25425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25426for as_dir in $PATH
25427do
25428 IFS=$as_save_IFS
25429 test -z "$as_dir" && as_dir=.
25430 for ac_exec_ext in '' $ac_executable_extensions; do
25431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25432 ac_cv_prog_DEREZ="DeRez"
25433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25434 break 2
25435 fi
25436done
25437done
25438
64440d77
DE
25439 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25440fi
25441fi
e6cc62c6 25442DEREZ=$ac_cv_prog_DEREZ
64440d77 25443if test -n "$DEREZ"; then
e6cc62c6
VS
25444 echo "$as_me:$LINENO: result: $DEREZ" >&5
25445echo "${ECHO_T}$DEREZ" >&6
64440d77 25446else
e6cc62c6
VS
25447 echo "$as_me:$LINENO: result: no" >&5
25448echo "${ECHO_T}no" >&6
64440d77
DE
25449fi
25450
25451 # Extract the first word of "SetFile", so it can be a program name with args.
25452set dummy SetFile; ac_word=$2
e6cc62c6
VS
25453echo "$as_me:$LINENO: checking for $ac_word" >&5
25454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25455if test "${ac_cv_prog_SETFILE+set}" = set; then
25456 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
25457else
25458 if test -n "$SETFILE"; then
25459 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25460else
e6cc62c6
VS
25461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25462for as_dir in $PATH
25463do
25464 IFS=$as_save_IFS
25465 test -z "$as_dir" && as_dir=.
25466 for ac_exec_ext in '' $ac_executable_extensions; do
25467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25468 ac_cv_prog_SETFILE="SetFile"
25469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25470 break 2
25471 fi
25472done
25473done
25474
64440d77
DE
25475 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25476fi
25477fi
e6cc62c6 25478SETFILE=$ac_cv_prog_SETFILE
64440d77 25479if test -n "$SETFILE"; then
e6cc62c6
VS
25480 echo "$as_me:$LINENO: result: $SETFILE" >&5
25481echo "${ECHO_T}$SETFILE" >&6
64440d77 25482else
e6cc62c6
VS
25483 echo "$as_me:$LINENO: result: no" >&5
25484echo "${ECHO_T}no" >&6
64440d77
DE
25485fi
25486
25487 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25488 MACSETFILE="\$(SETFILE)"
9711d31e 25489 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
25490else
25491 if test "$wxUSE_PM" = 1; then
36825681 25492 MACRESCOMP="emxbind -ep"
90dd450c 25493 fi
4f14bcd8 25494fi
10f2d63a 25495
8284b0c5 25496
e6cc62c6
VS
25497echo "$as_me:$LINENO: checking for mode_t" >&5
25498echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25499if test "${ac_cv_type_mode_t+set}" = set; then
25500 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 25501else
e6cc62c6
VS
25502 cat >conftest.$ac_ext <<_ACEOF
25503#line $LINENO "configure"
25504/* confdefs.h. */
25505_ACEOF
25506cat confdefs.h >>conftest.$ac_ext
25507cat >>conftest.$ac_ext <<_ACEOF
25508/* end confdefs.h. */
25509$ac_includes_default
25510int
25511main ()
25512{
25513if ((mode_t *) 0)
25514 return 0;
25515if (sizeof (mode_t))
25516 return 0;
25517 ;
25518 return 0;
25519}
25520_ACEOF
25521rm -f conftest.$ac_objext
25522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25523 (eval $ac_compile) 2>&5
25524 ac_status=$?
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); } &&
25527 { ac_try='test -s conftest.$ac_objext'
25528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25529 (eval $ac_try) 2>&5
25530 ac_status=$?
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); }; }; then
25533 ac_cv_type_mode_t=yes
a0b9e27f 25534else
e6cc62c6
VS
25535 echo "$as_me: failed program was:" >&5
25536sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25537
e6cc62c6 25538ac_cv_type_mode_t=no
a0b9e27f 25539fi
e6cc62c6 25540rm -f conftest.$ac_objext conftest.$ac_ext
52127426 25541fi
e6cc62c6
VS
25542echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25543echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25544if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
25545 :
25546else
a0b9e27f 25547
e6cc62c6
VS
25548cat >>confdefs.h <<_ACEOF
25549#define mode_t int
25550_ACEOF
8284b0c5
MB
25551
25552fi
25553
e6cc62c6
VS
25554echo "$as_me:$LINENO: checking for off_t" >&5
25555echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25556if test "${ac_cv_type_off_t+set}" = set; then
25557 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25558else
e6cc62c6
VS
25559 cat >conftest.$ac_ext <<_ACEOF
25560#line $LINENO "configure"
25561/* confdefs.h. */
25562_ACEOF
25563cat confdefs.h >>conftest.$ac_ext
25564cat >>conftest.$ac_ext <<_ACEOF
25565/* end confdefs.h. */
25566$ac_includes_default
25567int
25568main ()
25569{
25570if ((off_t *) 0)
25571 return 0;
25572if (sizeof (off_t))
25573 return 0;
25574 ;
25575 return 0;
25576}
25577_ACEOF
25578rm -f conftest.$ac_objext
25579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25580 (eval $ac_compile) 2>&5
25581 ac_status=$?
25582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); } &&
25584 { ac_try='test -s conftest.$ac_objext'
25585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25586 (eval $ac_try) 2>&5
25587 ac_status=$?
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); }; }; then
25590 ac_cv_type_off_t=yes
5c6fa7d2 25591else
e6cc62c6
VS
25592 echo "$as_me: failed program was:" >&5
25593sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25594
e6cc62c6 25595ac_cv_type_off_t=no
8284b0c5 25596fi
e6cc62c6 25597rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 25598fi
e6cc62c6
VS
25599echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25600echo "${ECHO_T}$ac_cv_type_off_t" >&6
25601if test $ac_cv_type_off_t = yes; then
25602 :
247f5006
VZ
25603else
25604
e6cc62c6 25605cat >>confdefs.h <<_ACEOF
90dd450c 25606#define off_t long
e6cc62c6 25607_ACEOF
10f2d63a 25608
90dd450c 25609fi
10f2d63a 25610
e6cc62c6
VS
25611echo "$as_me:$LINENO: checking for pid_t" >&5
25612echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25613if test "${ac_cv_type_pid_t+set}" = set; then
25614 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 25615else
e6cc62c6
VS
25616 cat >conftest.$ac_ext <<_ACEOF
25617#line $LINENO "configure"
25618/* confdefs.h. */
25619_ACEOF
25620cat confdefs.h >>conftest.$ac_ext
25621cat >>conftest.$ac_ext <<_ACEOF
25622/* end confdefs.h. */
25623$ac_includes_default
25624int
25625main ()
25626{
25627if ((pid_t *) 0)
25628 return 0;
25629if (sizeof (pid_t))
25630 return 0;
25631 ;
25632 return 0;
25633}
25634_ACEOF
25635rm -f conftest.$ac_objext
25636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25637 (eval $ac_compile) 2>&5
25638 ac_status=$?
25639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640 (exit $ac_status); } &&
25641 { ac_try='test -s conftest.$ac_objext'
25642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25643 (eval $ac_try) 2>&5
25644 ac_status=$?
25645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646 (exit $ac_status); }; }; then
90dd450c 25647 ac_cv_type_pid_t=yes
698dcdb6 25648else
e6cc62c6
VS
25649 echo "$as_me: failed program was:" >&5
25650sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25651
e6cc62c6
VS
25652ac_cv_type_pid_t=no
25653fi
25654rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25655fi
e6cc62c6
VS
25656echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25657echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25658if test $ac_cv_type_pid_t = yes; then
25659 :
25660else
25661
25662cat >>confdefs.h <<_ACEOF
90dd450c 25663#define pid_t int
e6cc62c6 25664_ACEOF
10f2d63a 25665
7b4a847f
RR
25666fi
25667
e6cc62c6
VS
25668echo "$as_me:$LINENO: checking for size_t" >&5
25669echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25670if test "${ac_cv_type_size_t+set}" = set; then
25671 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 25672else
e6cc62c6
VS
25673 cat >conftest.$ac_ext <<_ACEOF
25674#line $LINENO "configure"
25675/* confdefs.h. */
25676_ACEOF
25677cat confdefs.h >>conftest.$ac_ext
25678cat >>conftest.$ac_ext <<_ACEOF
25679/* end confdefs.h. */
25680$ac_includes_default
25681int
25682main ()
25683{
25684if ((size_t *) 0)
25685 return 0;
25686if (sizeof (size_t))
25687 return 0;
25688 ;
25689 return 0;
25690}
25691_ACEOF
25692rm -f conftest.$ac_objext
25693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25694 (eval $ac_compile) 2>&5
25695 ac_status=$?
25696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); } &&
25698 { ac_try='test -s conftest.$ac_objext'
25699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25700 (eval $ac_try) 2>&5
25701 ac_status=$?
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); }; }; then
90dd450c 25704 ac_cv_type_size_t=yes
18dbb1f6 25705else
e6cc62c6
VS
25706 echo "$as_me: failed program was:" >&5
25707sed 's/^/| /' conftest.$ac_ext >&5
247f5006 25708
e6cc62c6 25709ac_cv_type_size_t=no
a0b9e27f 25710fi
e6cc62c6
VS
25711rm -f conftest.$ac_objext conftest.$ac_ext
25712fi
25713echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25714echo "${ECHO_T}$ac_cv_type_size_t" >&6
25715if test $ac_cv_type_size_t = yes; then
25716 :
25717else
25718
25719cat >>confdefs.h <<_ACEOF
90dd450c 25720#define size_t unsigned
e6cc62c6 25721_ACEOF
90dd450c
VZ
25722
25723fi
25724
e6cc62c6
VS
25725echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25726echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25727if test "${ac_cv_type_uid_t+set}" = set; then
25728 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 25729else
e6cc62c6
VS
25730 cat >conftest.$ac_ext <<_ACEOF
25731#line $LINENO "configure"
25732/* confdefs.h. */
25733_ACEOF
25734cat confdefs.h >>conftest.$ac_ext
25735cat >>conftest.$ac_ext <<_ACEOF
25736/* end confdefs.h. */
90dd450c 25737#include <sys/types.h>
e6cc62c6
VS
25738
25739_ACEOF
90dd450c 25740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 25741 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 25742 ac_cv_type_uid_t=yes
b3e8d00a 25743else
90dd450c 25744 ac_cv_type_uid_t=no
b3e8d00a 25745fi
90dd450c 25746rm -f conftest*
b3e8d00a 25747
4f14bcd8 25748fi
e6cc62c6
VS
25749echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25750echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 25751if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
25752
25753cat >>confdefs.h <<\_ACEOF
90dd450c 25754#define uid_t int
e6cc62c6 25755_ACEOF
247f5006 25756
e6cc62c6
VS
25757
25758cat >>confdefs.h <<\_ACEOF
90dd450c 25759#define gid_t int
e6cc62c6 25760_ACEOF
4f14bcd8 25761
b3e8d00a 25762fi
b3e8d00a 25763
8284b0c5
MB
25764
25765
e6cc62c6
VS
25766
25767ac_ext=cc
4f14bcd8 25768ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
25769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25772
25773echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25774echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25775if test "${wx_cv_size_t_is_uint+set}" = set; then
25776 echo $ECHO_N "(cached) $ECHO_C" >&6
25777else
25778
25779 cat >conftest.$ac_ext <<_ACEOF
25780#line $LINENO "configure"
25781/* confdefs.h. */
25782_ACEOF
25783cat confdefs.h >>conftest.$ac_ext
25784cat >>conftest.$ac_ext <<_ACEOF
25785/* end confdefs.h. */
90dd450c 25786#include <stddef.h>
e6cc62c6
VS
25787int
25788main ()
25789{
90dd450c
VZ
25790
25791 return 0; }
25792
25793 struct Foo { void foo(size_t); void foo(unsigned int); };
25794
25795 int bar() {
e6cc62c6
VS
25796
25797 ;
25798 return 0;
25799}
25800_ACEOF
25801rm -f conftest.$ac_objext
25802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25803 (eval $ac_compile) 2>&5
25804 ac_status=$?
25805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806 (exit $ac_status); } &&
25807 { ac_try='test -s conftest.$ac_objext'
25808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25809 (eval $ac_try) 2>&5
25810 ac_status=$?
25811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812 (exit $ac_status); }; }; then
90dd450c 25813 wx_cv_size_t_is_uint=no
698dcdb6 25814else
e6cc62c6
VS
25815 echo "$as_me: failed program was:" >&5
25816sed 's/^/| /' conftest.$ac_ext >&5
25817
25818wx_cv_size_t_is_uint=yes
8284b0c5 25819
247f5006 25820fi
e6cc62c6
VS
25821rm -f conftest.$ac_objext conftest.$ac_ext
25822
a0b9e27f 25823
e6cc62c6
VS
25824fi
25825echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
25826echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 25827
90dd450c 25828if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 25829 cat >>confdefs.h <<\_ACEOF
90dd450c 25830#define wxSIZE_T_IS_UINT 1
e6cc62c6 25831_ACEOF
698dcdb6 25832
90dd450c 25833else
e6cc62c6
VS
25834 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
25835echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
25836if test "${wx_cv_size_t_is_ulong+set}" = set; then
25837 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 25838else
e6cc62c6
VS
25839 cat >conftest.$ac_ext <<_ACEOF
25840#line $LINENO "configure"
25841/* confdefs.h. */
25842_ACEOF
25843cat confdefs.h >>conftest.$ac_ext
25844cat >>conftest.$ac_ext <<_ACEOF
25845/* end confdefs.h. */
90dd450c 25846#include <stddef.h>
e6cc62c6
VS
25847int
25848main ()
25849{
90dd450c
VZ
25850
25851 return 0; }
25852
25853 struct Foo { void foo(size_t); void foo(unsigned long); };
25854
25855 int bar() {
e6cc62c6
VS
25856
25857 ;
25858 return 0;
25859}
25860_ACEOF
25861rm -f conftest.$ac_objext
25862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25863 (eval $ac_compile) 2>&5
25864 ac_status=$?
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); } &&
25867 { ac_try='test -s conftest.$ac_objext'
25868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25869 (eval $ac_try) 2>&5
25870 ac_status=$?
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); }; }; then
90dd450c 25873 wx_cv_size_t_is_ulong=no
698dcdb6 25874else
e6cc62c6
VS
25875 echo "$as_me: failed program was:" >&5
25876sed 's/^/| /' conftest.$ac_ext >&5
25877
25878wx_cv_size_t_is_ulong=yes
25879
247f5006 25880fi
e6cc62c6 25881rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25882
e6cc62c6
VS
25883fi
25884echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
25885echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 25886
90dd450c 25887 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 25888 cat >>confdefs.h <<\_ACEOF
90dd450c 25889#define wxSIZE_T_IS_ULONG 1
e6cc62c6 25890_ACEOF
4f14bcd8
GD
25891
25892 fi
90dd450c 25893fi
1e487827 25894
90dd450c 25895ac_ext=c
4f14bcd8 25896ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
25897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25899ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 25900
5c6fa7d2 25901
8284b0c5 25902
e6cc62c6
VS
25903echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
25904echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
25905if test "${wx_cv_struct_pw_gecos+set}" = set; then
25906 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 25907else
e6cc62c6
VS
25908
25909 cat >conftest.$ac_ext <<_ACEOF
25910#line $LINENO "configure"
25911/* confdefs.h. */
25912_ACEOF
25913cat confdefs.h >>conftest.$ac_ext
25914cat >>conftest.$ac_ext <<_ACEOF
25915/* end confdefs.h. */
90dd450c 25916#include <pwd.h>
e6cc62c6
VS
25917int
25918main ()
25919{
f6bcfd97 25920
90dd450c
VZ
25921 char *p;
25922 struct passwd *pw;
25923 p = pw->pw_gecos;
e6cc62c6
VS
25924
25925 ;
25926 return 0;
25927}
25928_ACEOF
25929rm -f conftest.$ac_objext
25930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25931 (eval $ac_compile) 2>&5
25932 ac_status=$?
25933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); } &&
25935 { ac_try='test -s conftest.$ac_objext'
25936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25937 (eval $ac_try) 2>&5
25938 ac_status=$?
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); }; }; then
25941
90dd450c 25942 wx_cv_struct_pw_gecos=yes
e6cc62c6 25943
10f2d63a 25944else
e6cc62c6
VS
25945 echo "$as_me: failed program was:" >&5
25946sed 's/^/| /' conftest.$ac_ext >&5
25947
25948
90dd450c 25949 wx_cv_struct_pw_gecos=no
e6cc62c6 25950
247f5006
VZ
25951
25952fi
e6cc62c6 25953rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 25954
e6cc62c6
VS
25955
25956fi
25957echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
25958echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 25959
90dd450c 25960if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 25961 cat >>confdefs.h <<\_ACEOF
90dd450c 25962#define HAVE_PW_GECOS 1
e6cc62c6 25963_ACEOF
c521c494 25964
90dd450c 25965fi
4f14bcd8 25966
8284b0c5 25967
d29b553b 25968if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 25969 cat >>confdefs.h <<\_ACEOF
d74f4b5a 25970#define wxUSE_WCHAR_T 1
e6cc62c6 25971_ACEOF
d74f4b5a 25972
8284b0c5 25973
d74f4b5a
VZ
25974 WCSLEN_FOUND=0
25975 WCHAR_LINK=
e6cc62c6
VS
25976
25977for ac_func in wcslen
7a30264c 25978do
e6cc62c6
VS
25979as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25980echo "$as_me:$LINENO: checking for $ac_func" >&5
25981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25982if eval "test \"\${$as_ac_var+set}\" = set"; then
25983 echo $ECHO_N "(cached) $ECHO_C" >&6
25984else
25985 cat >conftest.$ac_ext <<_ACEOF
25986#line $LINENO "configure"
25987/* confdefs.h. */
25988_ACEOF
25989cat confdefs.h >>conftest.$ac_ext
25990cat >>conftest.$ac_ext <<_ACEOF
25991/* end confdefs.h. */
7a30264c 25992/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25993 which can conflict with char $ac_func (); below.
25994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25995 <limits.h> exists even on freestanding compilers. */
25996#ifdef __STDC__
25997# include <limits.h>
25998#else
25999# include <assert.h>
26000#endif
4f14bcd8 26001/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26002#ifdef __cplusplus
26003extern "C"
26004{
26005#endif
4f14bcd8 26006/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26007 builtin and then its argument prototype would still apply. */
26008char $ac_func ();
7a30264c
VZ
26009/* The GNU C library defines this for functions which it implements
26010 to always fail with ENOSYS. Some functions are actually named
26011 something starting with __ and the normal name is an alias. */
26012#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26013choke me
26014#else
e6cc62c6
VS
26015char (*f) () = $ac_func;
26016#endif
26017#ifdef __cplusplus
26018}
7a30264c
VZ
26019#endif
26020
e6cc62c6
VS
26021int
26022main ()
26023{
26024return f != $ac_func;
26025 ;
26026 return 0;
26027}
26028_ACEOF
26029rm -f conftest.$ac_objext conftest$ac_exeext
26030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26031 (eval $ac_link) 2>&5
26032 ac_status=$?
26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); } &&
26035 { ac_try='test -s conftest$ac_exeext'
26036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037 (eval $ac_try) 2>&5
26038 ac_status=$?
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); }; }; then
26041 eval "$as_ac_var=yes"
26042else
26043 echo "$as_me: failed program was:" >&5
26044sed 's/^/| /' conftest.$ac_ext >&5
26045
26046eval "$as_ac_var=no"
26047fi
26048rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26049fi
26050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26051echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26052if test `eval echo '${'$as_ac_var'}'` = yes; then
26053 cat >>confdefs.h <<_ACEOF
26054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26055_ACEOF
d74f4b5a 26056 WCSLEN_FOUND=1
7a30264c
VZ
26057fi
26058done
9d8deca0 26059
8284b0c5 26060
d74f4b5a 26061 if test "$WCSLEN_FOUND" = 0; then
7a30264c 26062 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
26063 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26064echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26065if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26066 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 26067else
e6cc62c6 26068 ac_check_lib_save_LIBS=$LIBS
7a30264c 26069LIBS="-lmsvcrt $LIBS"
e6cc62c6
VS
26070cat >conftest.$ac_ext <<_ACEOF
26071#line $LINENO "configure"
26072/* confdefs.h. */
26073_ACEOF
26074cat confdefs.h >>conftest.$ac_ext
26075cat >>conftest.$ac_ext <<_ACEOF
26076/* end confdefs.h. */
26077
4f14bcd8 26078/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26079#ifdef __cplusplus
26080extern "C"
26081#endif
4f14bcd8 26082/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26083 builtin and then its argument prototype would still apply. */
26084char wcslen ();
26085int
26086main ()
26087{
26088wcslen ();
26089 ;
26090 return 0;
26091}
26092_ACEOF
26093rm -f conftest.$ac_objext conftest$ac_exeext
26094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26095 (eval $ac_link) 2>&5
26096 ac_status=$?
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); } &&
26099 { ac_try='test -s conftest$ac_exeext'
26100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26101 (eval $ac_try) 2>&5
26102 ac_status=$?
26103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104 (exit $ac_status); }; }; then
26105 ac_cv_lib_msvcrt_wcslen=yes
26106else
26107 echo "$as_me: failed program was:" >&5
26108sed 's/^/| /' conftest.$ac_ext >&5
26109
26110ac_cv_lib_msvcrt_wcslen=no
26111fi
26112rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26113LIBS=$ac_check_lib_save_LIBS
26114fi
26115echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26116echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26117if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 26118 WCHAR_OK=1
d29b553b 26119fi
698dcdb6 26120
7a30264c 26121 else
e6cc62c6
VS
26122 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26123echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26124if test "${ac_cv_lib_w_wcslen+set}" = set; then
26125 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26126else
e6cc62c6 26127 ac_check_lib_save_LIBS=$LIBS
7a30264c 26128LIBS="-lw $LIBS"
e6cc62c6
VS
26129cat >conftest.$ac_ext <<_ACEOF
26130#line $LINENO "configure"
26131/* confdefs.h. */
26132_ACEOF
26133cat confdefs.h >>conftest.$ac_ext
26134cat >>conftest.$ac_ext <<_ACEOF
26135/* end confdefs.h. */
26136
4f14bcd8 26137/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26138#ifdef __cplusplus
26139extern "C"
26140#endif
4f14bcd8 26141/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26142 builtin and then its argument prototype would still apply. */
26143char wcslen ();
26144int
26145main ()
26146{
26147wcslen ();
26148 ;
26149 return 0;
26150}
26151_ACEOF
26152rm -f conftest.$ac_objext conftest$ac_exeext
26153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26154 (eval $ac_link) 2>&5
26155 ac_status=$?
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); } &&
26158 { ac_try='test -s conftest$ac_exeext'
26159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26160 (eval $ac_try) 2>&5
26161 ac_status=$?
26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163 (exit $ac_status); }; }; then
26164 ac_cv_lib_w_wcslen=yes
26165else
26166 echo "$as_me: failed program was:" >&5
26167sed 's/^/| /' conftest.$ac_ext >&5
26168
26169ac_cv_lib_w_wcslen=no
26170fi
26171rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26172LIBS=$ac_check_lib_save_LIBS
26173fi
26174echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26175echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26176if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 26177
7a30264c 26178 WCHAR_LINK=" -lw"
d74f4b5a 26179 WCSLEN_FOUND=1
e6cc62c6 26180
4f14bcd8 26181fi
10f2d63a 26182
7a30264c 26183 fi
d29b553b 26184 fi
95c8801c 26185
d74f4b5a 26186 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 26187 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26188#define HAVE_WCSLEN 1
e6cc62c6 26189_ACEOF
10f2d63a 26190
d74f4b5a 26191 fi
52127426 26192
e6cc62c6
VS
26193
26194for ac_func in wcsrtombs
eb4efbdc 26195do
e6cc62c6
VS
26196as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26197echo "$as_me:$LINENO: checking for $ac_func" >&5
26198echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26199if eval "test \"\${$as_ac_var+set}\" = set"; then
26200 echo $ECHO_N "(cached) $ECHO_C" >&6
26201else
26202 cat >conftest.$ac_ext <<_ACEOF
26203#line $LINENO "configure"
26204/* confdefs.h. */
26205_ACEOF
26206cat confdefs.h >>conftest.$ac_ext
26207cat >>conftest.$ac_ext <<_ACEOF
26208/* end confdefs.h. */
eb4efbdc 26209/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26210 which can conflict with char $ac_func (); below.
26211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26212 <limits.h> exists even on freestanding compilers. */
26213#ifdef __STDC__
26214# include <limits.h>
26215#else
26216# include <assert.h>
26217#endif
eb4efbdc 26218/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26219#ifdef __cplusplus
26220extern "C"
26221{
26222#endif
4f14bcd8 26223/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26224 builtin and then its argument prototype would still apply. */
26225char $ac_func ();
10f2d63a
VZ
26226/* The GNU C library defines this for functions which it implements
26227 to always fail with ENOSYS. Some functions are actually named
26228 something starting with __ and the normal name is an alias. */
247f5006 26229#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
26230choke me
26231#else
e6cc62c6
VS
26232char (*f) () = $ac_func;
26233#endif
26234#ifdef __cplusplus
26235}
10f2d63a
VZ
26236#endif
26237
e6cc62c6
VS
26238int
26239main ()
26240{
26241return f != $ac_func;
26242 ;
26243 return 0;
26244}
26245_ACEOF
26246rm -f conftest.$ac_objext conftest$ac_exeext
26247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26248 (eval $ac_link) 2>&5
26249 ac_status=$?
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); } &&
26252 { ac_try='test -s conftest$ac_exeext'
26253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254 (eval $ac_try) 2>&5
26255 ac_status=$?
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); }; }; then
26258 eval "$as_ac_var=yes"
26259else
26260 echo "$as_me: failed program was:" >&5
26261sed 's/^/| /' conftest.$ac_ext >&5
26262
26263eval "$as_ac_var=no"
26264fi
26265rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26266fi
26267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26268echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26269if test `eval echo '${'$as_ac_var'}'` = yes; then
26270 cat >>confdefs.h <<_ACEOF
26271#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26272_ACEOF
270a909e 26273
4f14bcd8 26274fi
247f5006 26275done
1e487827 26276
af15babd 26277else
e6cc62c6
VS
26278 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26279echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 26280fi
52127426 26281
8284b0c5 26282
e6cc62c6
VS
26283
26284ac_ext=cc
247f5006 26285ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26289
af15babd 26290
247f5006
VZ
26291
26292for ac_func in vsnprintf
26293do
e6cc62c6
VS
26294as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26295echo "$as_me:$LINENO: checking for $ac_func" >&5
26296echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26297if eval "test \"\${$as_ac_var+set}\" = set"; then
26298 echo $ECHO_N "(cached) $ECHO_C" >&6
26299else
26300 cat >conftest.$ac_ext <<_ACEOF
26301#line $LINENO "configure"
26302/* confdefs.h. */
26303_ACEOF
26304cat confdefs.h >>conftest.$ac_ext
26305cat >>conftest.$ac_ext <<_ACEOF
26306/* end confdefs.h. */
247f5006 26307/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26308 which can conflict with char $ac_func (); below.
26309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26310 <limits.h> exists even on freestanding compilers. */
26311#ifdef __STDC__
26312# include <limits.h>
26313#else
26314# include <assert.h>
26315#endif
247f5006
VZ
26316/* Override any gcc2 internal prototype to avoid an error. */
26317#ifdef __cplusplus
26318extern "C"
e6cc62c6 26319{
247f5006
VZ
26320#endif
26321/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26322 builtin and then its argument prototype would still apply. */
26323char $ac_func ();
247f5006
VZ
26324/* The GNU C library defines this for functions which it implements
26325 to always fail with ENOSYS. Some functions are actually named
26326 something starting with __ and the normal name is an alias. */
26327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26328choke me
26329#else
e6cc62c6
VS
26330char (*f) () = $ac_func;
26331#endif
26332#ifdef __cplusplus
26333}
247f5006 26334#endif
af15babd 26335
e6cc62c6
VS
26336int
26337main ()
26338{
26339return f != $ac_func;
26340 ;
26341 return 0;
26342}
26343_ACEOF
26344rm -f conftest.$ac_objext conftest$ac_exeext
26345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26346 (eval $ac_link) 2>&5
26347 ac_status=$?
26348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349 (exit $ac_status); } &&
26350 { ac_try='test -s conftest$ac_exeext'
26351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352 (eval $ac_try) 2>&5
26353 ac_status=$?
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); }; }; then
26356 eval "$as_ac_var=yes"
26357else
26358 echo "$as_me: failed program was:" >&5
26359sed 's/^/| /' conftest.$ac_ext >&5
26360
26361eval "$as_ac_var=no"
26362fi
26363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26364fi
26365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26366echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26367if test `eval echo '${'$as_ac_var'}'` = yes; then
26368 cat >>confdefs.h <<_ACEOF
26369#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26370_ACEOF
52127426 26371
5c6fa7d2 26372fi
247f5006 26373done
8284b0c5 26374
4f14bcd8 26375
8d90d2f2 26376if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
26377 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26378echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26379if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26380 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 26381else
e6cc62c6
VS
26382
26383 cat >conftest.$ac_ext <<_ACEOF
26384#line $LINENO "configure"
26385/* confdefs.h. */
26386_ACEOF
26387cat confdefs.h >>conftest.$ac_ext
26388cat >>conftest.$ac_ext <<_ACEOF
26389/* end confdefs.h. */
8d90d2f2
VZ
26390
26391 #include <stdio.h>
26392 #include <stdarg.h>
e6cc62c6
VS
26393
26394int
26395main ()
26396{
8d90d2f2
VZ
26397
26398 char *buf;
26399 va_list ap;
26400 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
26401
26402 ;
26403 return 0;
26404}
26405_ACEOF
26406rm -f conftest.$ac_objext
26407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26408 (eval $ac_compile) 2>&5
26409 ac_status=$?
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); } &&
26412 { ac_try='test -s conftest.$ac_objext'
26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414 (eval $ac_try) 2>&5
26415 ac_status=$?
26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417 (exit $ac_status); }; }; then
8d90d2f2
VZ
26418 wx_cv_func_vsnprintf_decl=yes
26419else
e6cc62c6
VS
26420 echo "$as_me: failed program was:" >&5
26421sed 's/^/| /' conftest.$ac_ext >&5
26422
26423wx_cv_func_vsnprintf_decl=no
26424
8d90d2f2 26425fi
e6cc62c6
VS
26426rm -f conftest.$ac_objext conftest.$ac_ext
26427
8d90d2f2 26428
e6cc62c6
VS
26429fi
26430echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26431echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
26432
26433 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 26434 cat >>confdefs.h <<\_ACEOF
8d90d2f2 26435#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 26436_ACEOF
8d90d2f2
VZ
26437
26438 fi
26439fi
26440
247f5006 26441if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
26442
26443
26444
26445for ac_func in fputwc wprintf vswprintf
d74f4b5a 26446do
e6cc62c6
VS
26447as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26448echo "$as_me:$LINENO: checking for $ac_func" >&5
26449echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26450if eval "test \"\${$as_ac_var+set}\" = set"; then
26451 echo $ECHO_N "(cached) $ECHO_C" >&6
26452else
26453 cat >conftest.$ac_ext <<_ACEOF
26454#line $LINENO "configure"
26455/* confdefs.h. */
26456_ACEOF
26457cat confdefs.h >>conftest.$ac_ext
26458cat >>conftest.$ac_ext <<_ACEOF
26459/* end confdefs.h. */
d74f4b5a 26460/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26461 which can conflict with char $ac_func (); below.
26462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26463 <limits.h> exists even on freestanding compilers. */
26464#ifdef __STDC__
26465# include <limits.h>
26466#else
26467# include <assert.h>
26468#endif
d74f4b5a 26469/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
26470#ifdef __cplusplus
26471extern "C"
e6cc62c6 26472{
247f5006 26473#endif
d74f4b5a 26474/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26475 builtin and then its argument prototype would still apply. */
26476char $ac_func ();
d74f4b5a
VZ
26477/* The GNU C library defines this for functions which it implements
26478 to always fail with ENOSYS. Some functions are actually named
26479 something starting with __ and the normal name is an alias. */
26480#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26481choke me
26482#else
e6cc62c6
VS
26483char (*f) () = $ac_func;
26484#endif
26485#ifdef __cplusplus
26486}
d74f4b5a
VZ
26487#endif
26488
e6cc62c6
VS
26489int
26490main ()
26491{
26492return f != $ac_func;
26493 ;
26494 return 0;
26495}
26496_ACEOF
26497rm -f conftest.$ac_objext conftest$ac_exeext
26498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26499 (eval $ac_link) 2>&5
26500 ac_status=$?
26501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502 (exit $ac_status); } &&
26503 { ac_try='test -s conftest$ac_exeext'
26504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26505 (eval $ac_try) 2>&5
26506 ac_status=$?
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); }; }; then
26509 eval "$as_ac_var=yes"
26510else
26511 echo "$as_me: failed program was:" >&5
26512sed 's/^/| /' conftest.$ac_ext >&5
26513
26514eval "$as_ac_var=no"
26515fi
26516rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26517fi
26518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26520if test `eval echo '${'$as_ac_var'}'` = yes; then
26521 cat >>confdefs.h <<_ACEOF
26522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26523_ACEOF
d74f4b5a 26524
d74f4b5a
VZ
26525fi
26526done
26527
8d90d2f2 26528
e6cc62c6
VS
26529 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26530echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26531 cat >conftest.$ac_ext <<_ACEOF
26532#line $LINENO "configure"
26533/* confdefs.h. */
26534_ACEOF
26535cat confdefs.h >>conftest.$ac_ext
26536cat >>conftest.$ac_ext <<_ACEOF
26537/* end confdefs.h. */
79668cae 26538#include <wchar.h>
e6cc62c6
VS
26539int
26540main ()
26541{
79668cae 26542&_vsnwprintf;
e6cc62c6
VS
26543 ;
26544 return 0;
26545}
26546_ACEOF
26547rm -f conftest.$ac_objext
26548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26549 (eval $ac_compile) 2>&5
26550 ac_status=$?
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); } &&
26553 { ac_try='test -s conftest.$ac_objext'
26554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26555 (eval $ac_try) 2>&5
26556 ac_status=$?
26557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558 (exit $ac_status); }; }; then
26559 echo "$as_me:$LINENO: result: yes" >&5
26560echo "${ECHO_T}yes" >&6
26561 cat >>confdefs.h <<\_ACEOF
79668cae 26562#define HAVE__VSNWPRINTF 1
e6cc62c6 26563_ACEOF
79668cae
MB
26564
26565else
e6cc62c6
VS
26566 echo "$as_me: failed program was:" >&5
26567sed 's/^/| /' conftest.$ac_ext >&5
26568
26569echo "$as_me:$LINENO: result: no" >&5
26570echo "${ECHO_T}no" >&6
79668cae 26571fi
e6cc62c6 26572rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
26573fi
26574
247f5006
VZ
26575ac_ext=c
26576ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26579ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
26580
26581
26582
26583
4f14bcd8 26584if test "$TOOLKIT" != "MSW"; then
af15babd 26585
8284b0c5
MB
26586
26587
e6cc62c6
VS
26588
26589ac_ext=cc
4f14bcd8 26590ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 26594
52127426 26595
e6cc62c6
VS
26596
26597
26598# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
26599if test "${with_libiconv_prefix+set}" = set; then
26600 withval="$with_libiconv_prefix"
e6cc62c6 26601
b040e242
VS
26602 for dir in `echo "$withval" | tr : ' '`; do
26603 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26604 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26605 done
b040e242 26606
e6cc62c6 26607fi;
b040e242 26608
e6cc62c6
VS
26609 echo "$as_me:$LINENO: checking for iconv" >&5
26610echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26611if test "${am_cv_func_iconv+set}" = set; then
26612 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 26613else
e6cc62c6 26614
b040e242
VS
26615 am_cv_func_iconv="no, consider installing GNU libiconv"
26616 am_cv_lib_iconv=no
e6cc62c6
VS
26617 cat >conftest.$ac_ext <<_ACEOF
26618#line $LINENO "configure"
26619/* confdefs.h. */
26620_ACEOF
26621cat confdefs.h >>conftest.$ac_ext
26622cat >>conftest.$ac_ext <<_ACEOF
26623/* end confdefs.h. */
b040e242 26624#include <stdlib.h>
4f14bcd8 26625#include <iconv.h>
e6cc62c6
VS
26626int
26627main ()
26628{
b040e242
VS
26629iconv_t cd = iconv_open("","");
26630 iconv(cd,NULL,NULL,NULL,NULL);
26631 iconv_close(cd);
e6cc62c6
VS
26632 ;
26633 return 0;
26634}
26635_ACEOF
26636rm -f conftest.$ac_objext conftest$ac_exeext
26637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26638 (eval $ac_link) 2>&5
26639 ac_status=$?
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); } &&
26642 { ac_try='test -s conftest$ac_exeext'
26643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26644 (eval $ac_try) 2>&5
26645 ac_status=$?
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); }; }; then
b040e242 26648 am_cv_func_iconv=yes
af15babd 26649else
e6cc62c6
VS
26650 echo "$as_me: failed program was:" >&5
26651sed 's/^/| /' conftest.$ac_ext >&5
26652
b040e242 26653fi
e6cc62c6 26654rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26655 if test "$am_cv_func_iconv" != yes; then
26656 am_save_LIBS="$LIBS"
26657 LIBS="$LIBS -liconv"
e6cc62c6
VS
26658 cat >conftest.$ac_ext <<_ACEOF
26659#line $LINENO "configure"
26660/* confdefs.h. */
26661_ACEOF
26662cat confdefs.h >>conftest.$ac_ext
26663cat >>conftest.$ac_ext <<_ACEOF
26664/* end confdefs.h. */
b040e242
VS
26665#include <stdlib.h>
26666#include <iconv.h>
e6cc62c6
VS
26667int
26668main ()
26669{
b040e242
VS
26670iconv_t cd = iconv_open("","");
26671 iconv(cd,NULL,NULL,NULL,NULL);
26672 iconv_close(cd);
e6cc62c6
VS
26673 ;
26674 return 0;
26675}
26676_ACEOF
26677rm -f conftest.$ac_objext conftest$ac_exeext
26678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26679 (eval $ac_link) 2>&5
26680 ac_status=$?
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); } &&
26683 { ac_try='test -s conftest$ac_exeext'
26684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26685 (eval $ac_try) 2>&5
26686 ac_status=$?
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); }; }; then
b040e242
VS
26689 am_cv_lib_iconv=yes
26690 am_cv_func_iconv=yes
26691else
e6cc62c6
VS
26692 echo "$as_me: failed program was:" >&5
26693sed 's/^/| /' conftest.$ac_ext >&5
26694
af15babd 26695fi
e6cc62c6 26696rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
26697 LIBS="$am_save_LIBS"
26698 fi
247f5006 26699
e6cc62c6
VS
26700fi
26701echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26702echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 26703 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
26704
26705cat >>confdefs.h <<\_ACEOF
b040e242 26706#define HAVE_ICONV 1
e6cc62c6 26707_ACEOF
b040e242 26708
e6cc62c6
VS
26709 echo "$as_me:$LINENO: checking if iconv needs const" >&5
26710echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26711if test "${wx_cv_func_iconv_const+set}" = set; then
26712 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 26713else
e6cc62c6
VS
26714 cat >conftest.$ac_ext <<_ACEOF
26715#line $LINENO "configure"
26716/* confdefs.h. */
26717_ACEOF
26718cat confdefs.h >>conftest.$ac_ext
26719cat >>conftest.$ac_ext <<_ACEOF
26720/* end confdefs.h. */
b040e242
VS
26721
26722#include <stdlib.h>
26723#include <iconv.h>
26724extern
26725#ifdef __cplusplus
26726"C"
26727#endif
26728#if defined(__STDC__) || defined(__cplusplus)
26729size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26730#else
26731size_t iconv();
26732#endif
af15babd 26733
e6cc62c6
VS
26734int
26735main ()
26736{
26737
26738 ;
26739 return 0;
26740}
26741_ACEOF
26742rm -f conftest.$ac_objext
26743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26744 (eval $ac_compile) 2>&5
26745 ac_status=$?
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); } &&
26748 { ac_try='test -s conftest.$ac_objext'
26749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; }; then
b7043674 26754 wx_cv_func_iconv_const="no"
b040e242 26755else
e6cc62c6
VS
26756 echo "$as_me: failed program was:" >&5
26757sed 's/^/| /' conftest.$ac_ext >&5
26758
26759wx_cv_func_iconv_const="yes"
26760
247f5006 26761fi
e6cc62c6 26762rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26763
e6cc62c6
VS
26764fi
26765echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26766echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
26767
26768 iconv_const=
1c405bb5 26769 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
26770 iconv_const="const"
26771 fi
26772
e6cc62c6
VS
26773
26774cat >>confdefs.h <<_ACEOF
f09359cf 26775#define ICONV_CONST $iconv_const
e6cc62c6 26776_ACEOF
b040e242
VS
26777
26778 fi
26779 LIBICONV=
26780 if test "$am_cv_lib_iconv" = yes; then
26781 LIBICONV="-liconv"
26782 fi
e6cc62c6 26783
b040e242
VS
26784
26785LIBS="$LIBICONV $LIBS"
4f14bcd8 26786ac_ext=c
4f14bcd8 26787ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26790ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 26791
5c6fa7d2 26792
8284b0c5 26793if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
26794
26795for ac_func in sigaction
af15babd 26796do
e6cc62c6
VS
26797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26798echo "$as_me:$LINENO: checking for $ac_func" >&5
26799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26800if eval "test \"\${$as_ac_var+set}\" = set"; then
26801 echo $ECHO_N "(cached) $ECHO_C" >&6
26802else
26803 cat >conftest.$ac_ext <<_ACEOF
26804#line $LINENO "configure"
26805/* confdefs.h. */
26806_ACEOF
26807cat confdefs.h >>conftest.$ac_ext
26808cat >>conftest.$ac_ext <<_ACEOF
26809/* end confdefs.h. */
af15babd 26810/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26811 which can conflict with char $ac_func (); below.
26812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26813 <limits.h> exists even on freestanding compilers. */
26814#ifdef __STDC__
26815# include <limits.h>
26816#else
26817# include <assert.h>
26818#endif
af15babd 26819/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26820#ifdef __cplusplus
26821extern "C"
26822{
26823#endif
af15babd 26824/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26825 builtin and then its argument prototype would still apply. */
26826char $ac_func ();
af15babd
VZ
26827/* The GNU C library defines this for functions which it implements
26828 to always fail with ENOSYS. Some functions are actually named
26829 something starting with __ and the normal name is an alias. */
26830#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26831choke me
26832#else
e6cc62c6
VS
26833char (*f) () = $ac_func;
26834#endif
26835#ifdef __cplusplus
26836}
af15babd
VZ
26837#endif
26838
e6cc62c6
VS
26839int
26840main ()
26841{
26842return f != $ac_func;
26843 ;
26844 return 0;
26845}
26846_ACEOF
26847rm -f conftest.$ac_objext conftest$ac_exeext
26848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26849 (eval $ac_link) 2>&5
26850 ac_status=$?
26851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852 (exit $ac_status); } &&
26853 { ac_try='test -s conftest$ac_exeext'
26854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855 (eval $ac_try) 2>&5
26856 ac_status=$?
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); }; }; then
26859 eval "$as_ac_var=yes"
26860else
26861 echo "$as_me: failed program was:" >&5
26862sed 's/^/| /' conftest.$ac_ext >&5
26863
26864eval "$as_ac_var=no"
26865fi
26866rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26867fi
26868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26869echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26870if test `eval echo '${'$as_ac_var'}'` = yes; then
26871 cat >>confdefs.h <<_ACEOF
26872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26873_ACEOF
7b4a847f 26874
4f14bcd8
GD
26875fi
26876done
26877
8284b0c5 26878
4f14bcd8 26879 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
26880 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
26881echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
26882 wxUSE_ON_FATAL_EXCEPTION=no
26883 fi
26884
26885 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
26886
26887
26888 ac_ext=cc
5c6fa7d2 26889ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 26893
5c6fa7d2 26894
e6cc62c6
VS
26895 echo "$as_me:$LINENO: checking for sa_handler type" >&5
26896echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
26897if test "${wx_cv_type_sa_handler+set}" = set; then
26898 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26899else
e6cc62c6
VS
26900
26901 cat >conftest.$ac_ext <<_ACEOF
26902#line $LINENO "configure"
26903/* confdefs.h. */
26904_ACEOF
26905cat confdefs.h >>conftest.$ac_ext
26906cat >>conftest.$ac_ext <<_ACEOF
26907/* end confdefs.h. */
4f14bcd8 26908#include <signal.h>
e6cc62c6
VS
26909int
26910main ()
26911{
4f14bcd8
GD
26912
26913 extern void testSigHandler(int);
26914
26915 struct sigaction sa;
26916 sa.sa_handler = testSigHandler;
e6cc62c6
VS
26917
26918 ;
26919 return 0;
26920}
26921_ACEOF
26922rm -f conftest.$ac_objext
26923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26924 (eval $ac_compile) 2>&5
26925 ac_status=$?
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); } &&
26928 { ac_try='test -s conftest.$ac_objext'
26929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26930 (eval $ac_try) 2>&5
26931 ac_status=$?
26932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933 (exit $ac_status); }; }; then
26934
4f14bcd8 26935 wx_cv_type_sa_handler=int
e6cc62c6 26936
af15babd 26937else
e6cc62c6
VS
26938 echo "$as_me: failed program was:" >&5
26939sed 's/^/| /' conftest.$ac_ext >&5
26940
26941
4f14bcd8 26942 wx_cv_type_sa_handler=void
e6cc62c6 26943
247f5006 26944fi
e6cc62c6 26945rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26946
e6cc62c6
VS
26947fi
26948echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
26949echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
26950
26951 ac_ext=c
4f14bcd8 26952ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26955ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 26956
8284b0c5 26957
e6cc62c6 26958 cat >>confdefs.h <<_ACEOF
4f14bcd8 26959#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 26960_ACEOF
af15babd 26961
4f14bcd8
GD
26962 fi
26963fi
af15babd 26964
e6cc62c6
VS
26965
26966
a1d22ad7 26967for ac_func in mkstemp mktemp
af15babd 26968do
e6cc62c6
VS
26969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26970echo "$as_me:$LINENO: checking for $ac_func" >&5
26971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26972if eval "test \"\${$as_ac_var+set}\" = set"; then
26973 echo $ECHO_N "(cached) $ECHO_C" >&6
26974else
26975 cat >conftest.$ac_ext <<_ACEOF
26976#line $LINENO "configure"
26977/* confdefs.h. */
26978_ACEOF
26979cat confdefs.h >>conftest.$ac_ext
26980cat >>conftest.$ac_ext <<_ACEOF
26981/* end confdefs.h. */
af15babd 26982/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26983 which can conflict with char $ac_func (); below.
26984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26985 <limits.h> exists even on freestanding compilers. */
26986#ifdef __STDC__
26987# include <limits.h>
26988#else
26989# include <assert.h>
26990#endif
af15babd 26991/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26992#ifdef __cplusplus
26993extern "C"
26994{
26995#endif
af15babd 26996/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26997 builtin and then its argument prototype would still apply. */
26998char $ac_func ();
af15babd
VZ
26999/* The GNU C library defines this for functions which it implements
27000 to always fail with ENOSYS. Some functions are actually named
27001 something starting with __ and the normal name is an alias. */
27002#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27003choke me
27004#else
e6cc62c6
VS
27005char (*f) () = $ac_func;
27006#endif
27007#ifdef __cplusplus
27008}
af15babd
VZ
27009#endif
27010
e6cc62c6
VS
27011int
27012main ()
27013{
27014return f != $ac_func;
27015 ;
27016 return 0;
27017}
27018_ACEOF
27019rm -f conftest.$ac_objext conftest$ac_exeext
27020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27021 (eval $ac_link) 2>&5
27022 ac_status=$?
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); } &&
27025 { ac_try='test -s conftest$ac_exeext'
27026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27027 (eval $ac_try) 2>&5
27028 ac_status=$?
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); }; }; then
27031 eval "$as_ac_var=yes"
27032else
27033 echo "$as_me: failed program was:" >&5
27034sed 's/^/| /' conftest.$ac_ext >&5
27035
27036eval "$as_ac_var=no"
27037fi
27038rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27039fi
27040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27041echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27042if test `eval echo '${'$as_ac_var'}'` = yes; then
27043 cat >>confdefs.h <<_ACEOF
27044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27045_ACEOF
ade35f11 27046 break
ade35f11
VZ
27047fi
27048done
27049
8284b0c5 27050
e6cc62c6
VS
27051echo "$as_me:$LINENO: checking for statfs" >&5
27052echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27053if test "${wx_cv_func_statfs+set}" = set; then
27054 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27055else
e6cc62c6
VS
27056 cat >conftest.$ac_ext <<_ACEOF
27057#line $LINENO "configure"
27058/* confdefs.h. */
27059_ACEOF
27060cat confdefs.h >>conftest.$ac_ext
27061cat >>conftest.$ac_ext <<_ACEOF
27062/* end confdefs.h. */
4f14bcd8
GD
27063
27064 #if defined(__BSD__)
27065 #include <sys/param.h>
27066 #include <sys/mount.h>
27067 #else
27068 #include <sys/vfs.h>
27069 #endif
e6cc62c6
VS
27070
27071int
27072main ()
27073{
4f14bcd8
GD
27074
27075 long l;
27076 struct statfs fs;
27077 statfs("/", &fs);
27078 l = fs.f_bsize;
27079 l += fs.f_blocks;
27080 l += fs.f_bavail;
e6cc62c6
VS
27081
27082 ;
27083 return 0;
27084}
27085_ACEOF
27086rm -f conftest.$ac_objext
27087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27088 (eval $ac_compile) 2>&5
27089 ac_status=$?
27090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091 (exit $ac_status); } &&
27092 { ac_try='test -s conftest.$ac_objext'
27093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27094 (eval $ac_try) 2>&5
27095 ac_status=$?
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); }; }; then
27098
4f14bcd8 27099 wx_cv_func_statfs=yes
e6cc62c6 27100
4f14bcd8 27101else
e6cc62c6
VS
27102 echo "$as_me: failed program was:" >&5
27103sed 's/^/| /' conftest.$ac_ext >&5
27104
27105
4f14bcd8 27106 wx_cv_func_statfs=no
e6cc62c6 27107
8284b0c5 27108
247f5006 27109fi
e6cc62c6 27110rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27111
e6cc62c6
VS
27112fi
27113echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27114echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
27115
27116if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 27117 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 27118 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27119#define HAVE_STATFS 1
e6cc62c6 27120_ACEOF
4f14bcd8
GD
27121
27122else
e6cc62c6
VS
27123 echo "$as_me:$LINENO: checking for statvfs" >&5
27124echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27125if test "${wx_cv_func_statvfs+set}" = set; then
27126 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27127else
e6cc62c6
VS
27128 cat >conftest.$ac_ext <<_ACEOF
27129#line $LINENO "configure"
27130/* confdefs.h. */
27131_ACEOF
27132cat confdefs.h >>conftest.$ac_ext
27133cat >>conftest.$ac_ext <<_ACEOF
27134/* end confdefs.h. */
af15babd 27135
54ab82b3
VZ
27136 #include <stddef.h>
27137 #include <sys/statvfs.h>
e6cc62c6
VS
27138
27139int
27140main ()
27141{
af15babd 27142
54ab82b3 27143 statvfs("/", NULL);
e6cc62c6
VS
27144
27145 ;
27146 return 0;
27147}
27148_ACEOF
27149rm -f conftest.$ac_objext
27150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27151 (eval $ac_compile) 2>&5
27152 ac_status=$?
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); } &&
27155 { ac_try='test -s conftest.$ac_objext'
27156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27157 (eval $ac_try) 2>&5
27158 ac_status=$?
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); }; }; then
54ab82b3 27161 wx_cv_func_statvfs=yes
af15babd 27162else
e6cc62c6
VS
27163 echo "$as_me: failed program was:" >&5
27164sed 's/^/| /' conftest.$ac_ext >&5
27165
27166wx_cv_func_statvfs=no
27167
247f5006 27168fi
e6cc62c6 27169rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27170
e6cc62c6
VS
27171fi
27172echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27173echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 27174
4f14bcd8 27175 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
27176
27177
27178 ac_ext=cc
54ab82b3 27179ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
27183
27184
e6cc62c6
VS
27185 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27186echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27187if test "${wx_cv_type_statvfs_t+set}" = set; then
27188 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 27189else
e6cc62c6
VS
27190 cat >conftest.$ac_ext <<_ACEOF
27191#line $LINENO "configure"
27192/* confdefs.h. */
27193_ACEOF
27194cat confdefs.h >>conftest.$ac_ext
27195cat >>conftest.$ac_ext <<_ACEOF
27196/* end confdefs.h. */
54ab82b3
VZ
27197
27198 #include <sys/statvfs.h>
e6cc62c6
VS
27199
27200int
27201main ()
27202{
54ab82b3
VZ
27203
27204 long l;
27205 statvfs_t fs;
27206 statvfs("/", &fs);
27207 l = fs.f_bsize;
27208 l += fs.f_blocks;
27209 l += fs.f_bavail;
e6cc62c6
VS
27210
27211 ;
27212 return 0;
27213}
27214_ACEOF
27215rm -f conftest.$ac_objext
27216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27217 (eval $ac_compile) 2>&5
27218 ac_status=$?
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); } &&
27221 { ac_try='test -s conftest.$ac_objext'
27222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27223 (eval $ac_try) 2>&5
27224 ac_status=$?
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); }; }; then
54ab82b3
VZ
27227 wx_cv_type_statvfs_t=statvfs_t
27228else
e6cc62c6
VS
27229 echo "$as_me: failed program was:" >&5
27230sed 's/^/| /' conftest.$ac_ext >&5
27231
27232
27233 cat >conftest.$ac_ext <<_ACEOF
27234#line $LINENO "configure"
27235/* confdefs.h. */
27236_ACEOF
27237cat confdefs.h >>conftest.$ac_ext
27238cat >>conftest.$ac_ext <<_ACEOF
27239/* end confdefs.h. */
54ab82b3
VZ
27240
27241 #include <sys/statvfs.h>
e6cc62c6
VS
27242
27243int
27244main ()
27245{
54ab82b3
VZ
27246
27247 long l;
65d8ef1e 27248 struct statvfs fs;
54ab82b3
VZ
27249 statvfs("/", &fs);
27250 l = fs.f_bsize;
27251 l += fs.f_blocks;
27252 l += fs.f_bavail;
e6cc62c6
VS
27253
27254 ;
27255 return 0;
27256}
27257_ACEOF
27258rm -f conftest.$ac_objext
27259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27260 (eval $ac_compile) 2>&5
27261 ac_status=$?
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); } &&
27264 { ac_try='test -s conftest.$ac_objext'
27265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27266 (eval $ac_try) 2>&5
27267 ac_status=$?
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); }; }; then
54ab82b3
VZ
27270 wx_cv_type_statvfs_t="struct statvfs"
27271else
e6cc62c6
VS
27272 echo "$as_me: failed program was:" >&5
27273sed 's/^/| /' conftest.$ac_ext >&5
27274
27275wx_cv_type_statvfs_t="unknown"
27276
54ab82b3 27277fi
e6cc62c6
VS
27278rm -f conftest.$ac_objext conftest.$ac_ext
27279
27280
54ab82b3 27281fi
e6cc62c6 27282rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 27283
e6cc62c6
VS
27284fi
27285echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27286echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
27287
27288 ac_ext=c
54ab82b3 27289ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27292ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
27293
27294
27295 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27296 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27297#define HAVE_STATVFS 1
e6cc62c6 27298_ACEOF
af15babd 27299
54ab82b3 27300 fi
4f14bcd8 27301 else
54ab82b3 27302 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
27303 fi
27304fi
af15babd 27305
54ab82b3 27306if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 27307 cat >>confdefs.h <<_ACEOF
54ab82b3 27308#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 27309_ACEOF
54ab82b3
VZ
27310
27311else
e6cc62c6
VS
27312 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27313echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
27314fi
27315
4f14bcd8 27316if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
27317
27318
27319for ac_func in fcntl flock
af15babd 27320do
e6cc62c6
VS
27321as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27322echo "$as_me:$LINENO: checking for $ac_func" >&5
27323echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27324if eval "test \"\${$as_ac_var+set}\" = set"; then
27325 echo $ECHO_N "(cached) $ECHO_C" >&6
27326else
27327 cat >conftest.$ac_ext <<_ACEOF
27328#line $LINENO "configure"
27329/* confdefs.h. */
27330_ACEOF
27331cat confdefs.h >>conftest.$ac_ext
27332cat >>conftest.$ac_ext <<_ACEOF
27333/* end confdefs.h. */
af15babd 27334/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27335 which can conflict with char $ac_func (); below.
27336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27337 <limits.h> exists even on freestanding compilers. */
27338#ifdef __STDC__
27339# include <limits.h>
27340#else
27341# include <assert.h>
27342#endif
af15babd 27343/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27344#ifdef __cplusplus
27345extern "C"
27346{
27347#endif
af15babd 27348/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27349 builtin and then its argument prototype would still apply. */
27350char $ac_func ();
af15babd
VZ
27351/* The GNU C library defines this for functions which it implements
27352 to always fail with ENOSYS. Some functions are actually named
27353 something starting with __ and the normal name is an alias. */
27354#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27355choke me
27356#else
e6cc62c6
VS
27357char (*f) () = $ac_func;
27358#endif
27359#ifdef __cplusplus
27360}
af15babd
VZ
27361#endif
27362
e6cc62c6
VS
27363int
27364main ()
27365{
27366return f != $ac_func;
27367 ;
27368 return 0;
27369}
27370_ACEOF
27371rm -f conftest.$ac_objext conftest$ac_exeext
27372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27373 (eval $ac_link) 2>&5
27374 ac_status=$?
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); } &&
27377 { ac_try='test -s conftest$ac_exeext'
27378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27379 (eval $ac_try) 2>&5
27380 ac_status=$?
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); }; }; then
27383 eval "$as_ac_var=yes"
27384else
27385 echo "$as_me: failed program was:" >&5
27386sed 's/^/| /' conftest.$ac_ext >&5
27387
27388eval "$as_ac_var=no"
27389fi
27390rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27391fi
27392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27393echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27394if test `eval echo '${'$as_ac_var'}'` = yes; then
27395 cat >>confdefs.h <<_ACEOF
27396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27397_ACEOF
4f14bcd8 27398 break
af15babd
VZ
27399fi
27400done
27401
8284b0c5 27402
4f14bcd8 27403 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
27404 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27405echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
27406 wxUSE_SNGLINST_CHECKER=no
27407 fi
27408fi
af15babd 27409
e6cc62c6 27410
4f14bcd8 27411for ac_func in timegm
af15babd 27412do
e6cc62c6
VS
27413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27414echo "$as_me:$LINENO: checking for $ac_func" >&5
27415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27416if eval "test \"\${$as_ac_var+set}\" = set"; then
27417 echo $ECHO_N "(cached) $ECHO_C" >&6
27418else
27419 cat >conftest.$ac_ext <<_ACEOF
27420#line $LINENO "configure"
27421/* confdefs.h. */
27422_ACEOF
27423cat confdefs.h >>conftest.$ac_ext
27424cat >>conftest.$ac_ext <<_ACEOF
27425/* end confdefs.h. */
af15babd 27426/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27427 which can conflict with char $ac_func (); below.
27428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27429 <limits.h> exists even on freestanding compilers. */
27430#ifdef __STDC__
27431# include <limits.h>
27432#else
27433# include <assert.h>
27434#endif
af15babd 27435/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27436#ifdef __cplusplus
27437extern "C"
27438{
27439#endif
af15babd 27440/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27441 builtin and then its argument prototype would still apply. */
27442char $ac_func ();
af15babd
VZ
27443/* The GNU C library defines this for functions which it implements
27444 to always fail with ENOSYS. Some functions are actually named
27445 something starting with __ and the normal name is an alias. */
247f5006
VZ
27446#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27447choke me
27448#else
e6cc62c6
VS
27449char (*f) () = $ac_func;
27450#endif
27451#ifdef __cplusplus
27452}
247f5006
VZ
27453#endif
27454
e6cc62c6
VS
27455int
27456main ()
27457{
27458return f != $ac_func;
27459 ;
27460 return 0;
27461}
27462_ACEOF
27463rm -f conftest.$ac_objext conftest$ac_exeext
27464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27465 (eval $ac_link) 2>&5
27466 ac_status=$?
27467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468 (exit $ac_status); } &&
27469 { ac_try='test -s conftest$ac_exeext'
27470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27471 (eval $ac_try) 2>&5
27472 ac_status=$?
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); }; }; then
27475 eval "$as_ac_var=yes"
27476else
27477 echo "$as_me: failed program was:" >&5
27478sed 's/^/| /' conftest.$ac_ext >&5
27479
27480eval "$as_ac_var=no"
27481fi
27482rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27483fi
27484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27485echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27486if test `eval echo '${'$as_ac_var'}'` = yes; then
27487 cat >>confdefs.h <<_ACEOF
27488#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27489_ACEOF
703e0a69 27490
af15babd
VZ
27491fi
27492done
27493
8284b0c5 27494
e6cc62c6
VS
27495
27496
4f14bcd8 27497for ac_func in putenv setenv
10f2d63a 27498do
e6cc62c6
VS
27499as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27500echo "$as_me:$LINENO: checking for $ac_func" >&5
27501echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27502if eval "test \"\${$as_ac_var+set}\" = set"; then
27503 echo $ECHO_N "(cached) $ECHO_C" >&6
27504else
27505 cat >conftest.$ac_ext <<_ACEOF
27506#line $LINENO "configure"
27507/* confdefs.h. */
27508_ACEOF
27509cat confdefs.h >>conftest.$ac_ext
27510cat >>conftest.$ac_ext <<_ACEOF
27511/* end confdefs.h. */
af15babd 27512/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27513 which can conflict with char $ac_func (); below.
27514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27515 <limits.h> exists even on freestanding compilers. */
27516#ifdef __STDC__
27517# include <limits.h>
27518#else
27519# include <assert.h>
27520#endif
af15babd 27521/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27522#ifdef __cplusplus
27523extern "C"
27524{
27525#endif
af15babd 27526/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27527 builtin and then its argument prototype would still apply. */
27528char $ac_func ();
af15babd
VZ
27529/* The GNU C library defines this for functions which it implements
27530 to always fail with ENOSYS. Some functions are actually named
27531 something starting with __ and the normal name is an alias. */
27532#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27533choke me
27534#else
e6cc62c6
VS
27535char (*f) () = $ac_func;
27536#endif
27537#ifdef __cplusplus
27538}
af15babd
VZ
27539#endif
27540
e6cc62c6
VS
27541int
27542main ()
27543{
27544return f != $ac_func;
27545 ;
27546 return 0;
27547}
27548_ACEOF
27549rm -f conftest.$ac_objext conftest$ac_exeext
27550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27551 (eval $ac_link) 2>&5
27552 ac_status=$?
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); } &&
27555 { ac_try='test -s conftest$ac_exeext'
27556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27557 (eval $ac_try) 2>&5
27558 ac_status=$?
27559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560 (exit $ac_status); }; }; then
27561 eval "$as_ac_var=yes"
27562else
27563 echo "$as_me: failed program was:" >&5
27564sed 's/^/| /' conftest.$ac_ext >&5
27565
27566eval "$as_ac_var=no"
27567fi
27568rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27569fi
27570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27571echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27572if test `eval echo '${'$as_ac_var'}'` = yes; then
27573 cat >>confdefs.h <<_ACEOF
27574#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27575_ACEOF
4f14bcd8 27576 break
af15babd 27577fi
af15babd
VZ
27578done
27579
8284b0c5 27580
4f14bcd8
GD
27581HAVE_SOME_SLEEP_FUNC=0
27582if test "$USE_BEOS" = 1; then
e6cc62c6 27583 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27584#define HAVE_SLEEP 1
e6cc62c6 27585_ACEOF
af15babd 27586
4f14bcd8 27587 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27588fi
27589
4f14bcd8 27590if test "$USE_DARWIN" = 1; then
e6cc62c6 27591 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27592#define HAVE_USLEEP 1
e6cc62c6 27593_ACEOF
10f2d63a 27594
4f14bcd8 27595 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
27596fi
27597
4f14bcd8
GD
27598if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27599 POSIX4_LINK=
e6cc62c6
VS
27600
27601for ac_func in nanosleep
4f14bcd8 27602do
e6cc62c6
VS
27603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27604echo "$as_me:$LINENO: checking for $ac_func" >&5
27605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27606if eval "test \"\${$as_ac_var+set}\" = set"; then
27607 echo $ECHO_N "(cached) $ECHO_C" >&6
27608else
27609 cat >conftest.$ac_ext <<_ACEOF
27610#line $LINENO "configure"
27611/* confdefs.h. */
27612_ACEOF
27613cat confdefs.h >>conftest.$ac_ext
27614cat >>conftest.$ac_ext <<_ACEOF
27615/* end confdefs.h. */
4f14bcd8 27616/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27617 which can conflict with char $ac_func (); below.
27618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27619 <limits.h> exists even on freestanding compilers. */
27620#ifdef __STDC__
27621# include <limits.h>
27622#else
27623# include <assert.h>
27624#endif
10f2d63a 27625/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27626#ifdef __cplusplus
27627extern "C"
27628{
27629#endif
10f2d63a 27630/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27631 builtin and then its argument prototype would still apply. */
27632char $ac_func ();
4f14bcd8
GD
27633/* The GNU C library defines this for functions which it implements
27634 to always fail with ENOSYS. Some functions are actually named
27635 something starting with __ and the normal name is an alias. */
27636#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27637choke me
27638#else
e6cc62c6
VS
27639char (*f) () = $ac_func;
27640#endif
27641#ifdef __cplusplus
27642}
4f14bcd8
GD
27643#endif
27644
e6cc62c6
VS
27645int
27646main ()
27647{
27648return f != $ac_func;
27649 ;
27650 return 0;
27651}
27652_ACEOF
27653rm -f conftest.$ac_objext conftest$ac_exeext
27654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27655 (eval $ac_link) 2>&5
27656 ac_status=$?
27657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); } &&
27659 { ac_try='test -s conftest$ac_exeext'
27660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27661 (eval $ac_try) 2>&5
27662 ac_status=$?
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664 (exit $ac_status); }; }; then
27665 eval "$as_ac_var=yes"
27666else
27667 echo "$as_me: failed program was:" >&5
27668sed 's/^/| /' conftest.$ac_ext >&5
27669
27670eval "$as_ac_var=no"
27671fi
27672rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27673fi
27674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27675echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27676if test `eval echo '${'$as_ac_var'}'` = yes; then
27677 cat >>confdefs.h <<_ACEOF
27678#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27679_ACEOF
27680 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27681#define HAVE_NANOSLEEP 1
e6cc62c6 27682_ACEOF
4f14bcd8 27683
10f2d63a 27684else
e6cc62c6
VS
27685
27686 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27687echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27688if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27689 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 27690else
e6cc62c6 27691 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 27692LIBS="-lposix4 $LIBS"
e6cc62c6
VS
27693cat >conftest.$ac_ext <<_ACEOF
27694#line $LINENO "configure"
27695/* confdefs.h. */
27696_ACEOF
27697cat confdefs.h >>conftest.$ac_ext
27698cat >>conftest.$ac_ext <<_ACEOF
27699/* end confdefs.h. */
27700
10f2d63a 27701/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27702#ifdef __cplusplus
27703extern "C"
27704#endif
10f2d63a 27705/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27706 builtin and then its argument prototype would still apply. */
27707char nanosleep ();
27708int
27709main ()
27710{
27711nanosleep ();
27712 ;
27713 return 0;
27714}
27715_ACEOF
27716rm -f conftest.$ac_objext conftest$ac_exeext
27717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27718 (eval $ac_link) 2>&5
27719 ac_status=$?
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); } &&
27722 { ac_try='test -s conftest$ac_exeext'
27723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27724 (eval $ac_try) 2>&5
27725 ac_status=$?
27726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727 (exit $ac_status); }; }; then
27728 ac_cv_lib_posix4_nanosleep=yes
27729else
27730 echo "$as_me: failed program was:" >&5
27731sed 's/^/| /' conftest.$ac_ext >&5
27732
27733ac_cv_lib_posix4_nanosleep=no
27734fi
27735rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27736LIBS=$ac_check_lib_save_LIBS
27737fi
27738echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27739echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27740if test $ac_cv_lib_posix4_nanosleep = yes; then
27741
27742 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27743#define HAVE_NANOSLEEP 1
e6cc62c6 27744_ACEOF
4f14bcd8 27745
3d63bc3a 27746 POSIX4_LINK=" -lposix4"
e6cc62c6 27747
10f2d63a 27748else
10f2d63a 27749
e6cc62c6
VS
27750
27751for ac_func in usleep
4f14bcd8 27752do
e6cc62c6
VS
27753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27754echo "$as_me:$LINENO: checking for $ac_func" >&5
27755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27756if eval "test \"\${$as_ac_var+set}\" = set"; then
27757 echo $ECHO_N "(cached) $ECHO_C" >&6
27758else
27759 cat >conftest.$ac_ext <<_ACEOF
27760#line $LINENO "configure"
27761/* confdefs.h. */
27762_ACEOF
27763cat confdefs.h >>conftest.$ac_ext
27764cat >>conftest.$ac_ext <<_ACEOF
27765/* end confdefs.h. */
4f14bcd8 27766/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27767 which can conflict with char $ac_func (); below.
27768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27769 <limits.h> exists even on freestanding compilers. */
27770#ifdef __STDC__
27771# include <limits.h>
27772#else
27773# include <assert.h>
27774#endif
4f14bcd8 27775/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27776#ifdef __cplusplus
27777extern "C"
27778{
27779#endif
4f14bcd8 27780/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27781 builtin and then its argument prototype would still apply. */
27782char $ac_func ();
4f14bcd8
GD
27783/* The GNU C library defines this for functions which it implements
27784 to always fail with ENOSYS. Some functions are actually named
27785 something starting with __ and the normal name is an alias. */
27786#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27787choke me
27788#else
e6cc62c6
VS
27789char (*f) () = $ac_func;
27790#endif
27791#ifdef __cplusplus
27792}
4f14bcd8
GD
27793#endif
27794
e6cc62c6
VS
27795int
27796main ()
27797{
27798return f != $ac_func;
27799 ;
27800 return 0;
27801}
27802_ACEOF
27803rm -f conftest.$ac_objext conftest$ac_exeext
27804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27805 (eval $ac_link) 2>&5
27806 ac_status=$?
27807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); } &&
27809 { ac_try='test -s conftest$ac_exeext'
27810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27811 (eval $ac_try) 2>&5
27812 ac_status=$?
27813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); }; }; then
27815 eval "$as_ac_var=yes"
27816else
27817 echo "$as_me: failed program was:" >&5
27818sed 's/^/| /' conftest.$ac_ext >&5
27819
27820eval "$as_ac_var=no"
27821fi
27822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27823fi
27824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27825echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27826if test `eval echo '${'$as_ac_var'}'` = yes; then
27827 cat >>confdefs.h <<_ACEOF
27828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27829_ACEOF
27830 cat >>confdefs.h <<\_ACEOF
4f14bcd8 27831#define HAVE_USLEEP 1
e6cc62c6 27832_ACEOF
4f14bcd8 27833
698dcdb6 27834else
e6cc62c6
VS
27835 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
27836echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
27837
10f2d63a 27838fi
4f14bcd8 27839done
10f2d63a 27840
e6cc62c6
VS
27841
27842
6232543b 27843fi
10f2d63a 27844
e6cc62c6
VS
27845
27846
1e487827 27847fi
4f14bcd8 27848done
703e0a69 27849
10f2d63a
VZ
27850fi
27851
e6cc62c6
VS
27852
27853
4f14bcd8 27854for ac_func in uname gethostname
70846f0a 27855do
e6cc62c6
VS
27856as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27857echo "$as_me:$LINENO: checking for $ac_func" >&5
27858echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27859if eval "test \"\${$as_ac_var+set}\" = set"; then
27860 echo $ECHO_N "(cached) $ECHO_C" >&6
27861else
27862 cat >conftest.$ac_ext <<_ACEOF
27863#line $LINENO "configure"
27864/* confdefs.h. */
27865_ACEOF
27866cat confdefs.h >>conftest.$ac_ext
27867cat >>conftest.$ac_ext <<_ACEOF
27868/* end confdefs.h. */
70846f0a 27869/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27870 which can conflict with char $ac_func (); below.
27871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27872 <limits.h> exists even on freestanding compilers. */
27873#ifdef __STDC__
27874# include <limits.h>
27875#else
27876# include <assert.h>
27877#endif
70846f0a 27878/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27879#ifdef __cplusplus
27880extern "C"
27881{
27882#endif
70846f0a 27883/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27884 builtin and then its argument prototype would still apply. */
27885char $ac_func ();
70846f0a
VZ
27886/* The GNU C library defines this for functions which it implements
27887 to always fail with ENOSYS. Some functions are actually named
27888 something starting with __ and the normal name is an alias. */
27889#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27890choke me
27891#else
e6cc62c6
VS
27892char (*f) () = $ac_func;
27893#endif
27894#ifdef __cplusplus
27895}
70846f0a
VZ
27896#endif
27897
e6cc62c6
VS
27898int
27899main ()
27900{
27901return f != $ac_func;
27902 ;
27903 return 0;
27904}
27905_ACEOF
27906rm -f conftest.$ac_objext conftest$ac_exeext
27907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27908 (eval $ac_link) 2>&5
27909 ac_status=$?
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); } &&
27912 { ac_try='test -s conftest$ac_exeext'
27913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27914 (eval $ac_try) 2>&5
27915 ac_status=$?
27916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27917 (exit $ac_status); }; }; then
27918 eval "$as_ac_var=yes"
27919else
27920 echo "$as_me: failed program was:" >&5
27921sed 's/^/| /' conftest.$ac_ext >&5
27922
27923eval "$as_ac_var=no"
27924fi
27925rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27926fi
27927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27928echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27929if test `eval echo '${'$as_ac_var'}'` = yes; then
27930 cat >>confdefs.h <<_ACEOF
27931#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27932_ACEOF
4f14bcd8 27933 break
70846f0a
VZ
27934fi
27935done
27936
8284b0c5
MB
27937
27938
e6cc62c6
VS
27939
27940ac_ext=cc
4f14bcd8 27941ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27945
8284b0c5 27946
4f14bcd8
GD
27947
27948for ac_func in strtok_r
10f2d63a 27949do
e6cc62c6
VS
27950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27951echo "$as_me:$LINENO: checking for $ac_func" >&5
27952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27953if eval "test \"\${$as_ac_var+set}\" = set"; then
27954 echo $ECHO_N "(cached) $ECHO_C" >&6
27955else
27956 cat >conftest.$ac_ext <<_ACEOF
27957#line $LINENO "configure"
27958/* confdefs.h. */
27959_ACEOF
27960cat confdefs.h >>conftest.$ac_ext
27961cat >>conftest.$ac_ext <<_ACEOF
27962/* end confdefs.h. */
4f14bcd8 27963/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27964 which can conflict with char $ac_func (); below.
27965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27966 <limits.h> exists even on freestanding compilers. */
27967#ifdef __STDC__
27968# include <limits.h>
27969#else
27970# include <assert.h>
27971#endif
4f14bcd8
GD
27972/* Override any gcc2 internal prototype to avoid an error. */
27973#ifdef __cplusplus
27974extern "C"
e6cc62c6 27975{
4f14bcd8
GD
27976#endif
27977/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27978 builtin and then its argument prototype would still apply. */
27979char $ac_func ();
4f14bcd8
GD
27980/* The GNU C library defines this for functions which it implements
27981 to always fail with ENOSYS. Some functions are actually named
27982 something starting with __ and the normal name is an alias. */
27983#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27984choke me
27985#else
e6cc62c6
VS
27986char (*f) () = $ac_func;
27987#endif
27988#ifdef __cplusplus
27989}
4f14bcd8
GD
27990#endif
27991
e6cc62c6
VS
27992int
27993main ()
27994{
27995return f != $ac_func;
27996 ;
27997 return 0;
27998}
27999_ACEOF
28000rm -f conftest.$ac_objext conftest$ac_exeext
28001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28002 (eval $ac_link) 2>&5
28003 ac_status=$?
28004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005 (exit $ac_status); } &&
28006 { ac_try='test -s conftest$ac_exeext'
28007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28008 (eval $ac_try) 2>&5
28009 ac_status=$?
28010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); }; }; then
28012 eval "$as_ac_var=yes"
28013else
28014 echo "$as_me: failed program was:" >&5
28015sed 's/^/| /' conftest.$ac_ext >&5
28016
28017eval "$as_ac_var=no"
28018fi
28019rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28020fi
28021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28022echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28023if test `eval echo '${'$as_ac_var'}'` = yes; then
28024 cat >>confdefs.h <<_ACEOF
28025#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28026_ACEOF
4f14bcd8 28027
10f2d63a
VZ
28028fi
28029done
28030
8284b0c5 28031
4f14bcd8 28032ac_ext=c
4f14bcd8 28033ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28036ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28037
5c6fa7d2 28038
8284b0c5 28039INET_LINK=
e6cc62c6 28040
4f14bcd8
GD
28041for ac_func in inet_addr
28042do
e6cc62c6
VS
28043as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28044echo "$as_me:$LINENO: checking for $ac_func" >&5
28045echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28046if eval "test \"\${$as_ac_var+set}\" = set"; then
28047 echo $ECHO_N "(cached) $ECHO_C" >&6
28048else
28049 cat >conftest.$ac_ext <<_ACEOF
28050#line $LINENO "configure"
28051/* confdefs.h. */
28052_ACEOF
28053cat confdefs.h >>conftest.$ac_ext
28054cat >>conftest.$ac_ext <<_ACEOF
28055/* end confdefs.h. */
4f14bcd8 28056/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28057 which can conflict with char $ac_func (); below.
28058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28059 <limits.h> exists even on freestanding compilers. */
28060#ifdef __STDC__
28061# include <limits.h>
28062#else
28063# include <assert.h>
28064#endif
10f2d63a 28065/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28066#ifdef __cplusplus
28067extern "C"
28068{
28069#endif
10f2d63a 28070/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28071 builtin and then its argument prototype would still apply. */
28072char $ac_func ();
4f14bcd8
GD
28073/* The GNU C library defines this for functions which it implements
28074 to always fail with ENOSYS. Some functions are actually named
28075 something starting with __ and the normal name is an alias. */
28076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28077choke me
28078#else
e6cc62c6
VS
28079char (*f) () = $ac_func;
28080#endif
28081#ifdef __cplusplus
28082}
4f14bcd8
GD
28083#endif
28084
e6cc62c6
VS
28085int
28086main ()
28087{
28088return f != $ac_func;
28089 ;
28090 return 0;
28091}
28092_ACEOF
28093rm -f conftest.$ac_objext conftest$ac_exeext
28094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28095 (eval $ac_link) 2>&5
28096 ac_status=$?
28097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098 (exit $ac_status); } &&
28099 { ac_try='test -s conftest$ac_exeext'
28100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28101 (eval $ac_try) 2>&5
28102 ac_status=$?
28103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28104 (exit $ac_status); }; }; then
28105 eval "$as_ac_var=yes"
28106else
28107 echo "$as_me: failed program was:" >&5
28108sed 's/^/| /' conftest.$ac_ext >&5
28109
28110eval "$as_ac_var=no"
28111fi
28112rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28113fi
28114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28115echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28116if test `eval echo '${'$as_ac_var'}'` = yes; then
28117 cat >>confdefs.h <<_ACEOF
28118#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28119_ACEOF
28120 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28121#define HAVE_INET_ADDR 1
e6cc62c6 28122_ACEOF
10f2d63a
VZ
28123
28124else
e6cc62c6
VS
28125
28126 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28127echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28128if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28129 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28130else
e6cc62c6 28131 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28132LIBS="-lnsl $LIBS"
e6cc62c6
VS
28133cat >conftest.$ac_ext <<_ACEOF
28134#line $LINENO "configure"
28135/* confdefs.h. */
28136_ACEOF
28137cat confdefs.h >>conftest.$ac_ext
28138cat >>conftest.$ac_ext <<_ACEOF
28139/* end confdefs.h. */
28140
10f2d63a 28141/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28142#ifdef __cplusplus
28143extern "C"
28144#endif
10f2d63a 28145/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28146 builtin and then its argument prototype would still apply. */
28147char inet_addr ();
28148int
28149main ()
28150{
28151inet_addr ();
28152 ;
28153 return 0;
28154}
28155_ACEOF
28156rm -f conftest.$ac_objext conftest$ac_exeext
28157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28158 (eval $ac_link) 2>&5
28159 ac_status=$?
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); } &&
28162 { ac_try='test -s conftest$ac_exeext'
28163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28164 (eval $ac_try) 2>&5
28165 ac_status=$?
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); }; }; then
28168 ac_cv_lib_nsl_inet_addr=yes
28169else
28170 echo "$as_me: failed program was:" >&5
28171sed 's/^/| /' conftest.$ac_ext >&5
28172
28173ac_cv_lib_nsl_inet_addr=no
28174fi
28175rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28176LIBS=$ac_check_lib_save_LIBS
28177fi
28178echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28179echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28180if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 28181 INET_LINK="nsl"
10f2d63a 28182else
e6cc62c6
VS
28183 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28184echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28185if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28186 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28187else
e6cc62c6 28188 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28189LIBS="-lresolv $LIBS"
e6cc62c6
VS
28190cat >conftest.$ac_ext <<_ACEOF
28191#line $LINENO "configure"
28192/* confdefs.h. */
28193_ACEOF
28194cat confdefs.h >>conftest.$ac_ext
28195cat >>conftest.$ac_ext <<_ACEOF
28196/* end confdefs.h. */
28197
5c6fa7d2 28198/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28199#ifdef __cplusplus
28200extern "C"
28201#endif
5c6fa7d2 28202/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28203 builtin and then its argument prototype would still apply. */
28204char inet_addr ();
28205int
28206main ()
28207{
28208inet_addr ();
28209 ;
28210 return 0;
28211}
28212_ACEOF
28213rm -f conftest.$ac_objext conftest$ac_exeext
28214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28215 (eval $ac_link) 2>&5
28216 ac_status=$?
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); } &&
28219 { ac_try='test -s conftest$ac_exeext'
28220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28221 (eval $ac_try) 2>&5
28222 ac_status=$?
28223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); }; }; then
28225 ac_cv_lib_resolv_inet_addr=yes
28226else
28227 echo "$as_me: failed program was:" >&5
28228sed 's/^/| /' conftest.$ac_ext >&5
28229
28230ac_cv_lib_resolv_inet_addr=no
28231fi
28232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28233LIBS=$ac_check_lib_save_LIBS
28234fi
28235echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28236echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28237if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 28238 INET_LINK="resolv"
698dcdb6 28239else
e6cc62c6
VS
28240 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28241echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28242if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28243 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 28244else
e6cc62c6 28245 ac_check_lib_save_LIBS=$LIBS
3c011993 28246LIBS="-lsocket $LIBS"
e6cc62c6
VS
28247cat >conftest.$ac_ext <<_ACEOF
28248#line $LINENO "configure"
28249/* confdefs.h. */
28250_ACEOF
28251cat confdefs.h >>conftest.$ac_ext
28252cat >>conftest.$ac_ext <<_ACEOF
28253/* end confdefs.h. */
28254
3c011993 28255/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28256#ifdef __cplusplus
28257extern "C"
28258#endif
3c011993 28259/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28260 builtin and then its argument prototype would still apply. */
28261char inet_addr ();
28262int
28263main ()
28264{
28265inet_addr ();
28266 ;
28267 return 0;
28268}
28269_ACEOF
28270rm -f conftest.$ac_objext conftest$ac_exeext
28271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28272 (eval $ac_link) 2>&5
28273 ac_status=$?
28274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); } &&
28276 { ac_try='test -s conftest$ac_exeext'
28277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28278 (eval $ac_try) 2>&5
28279 ac_status=$?
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); }; }; then
28282 ac_cv_lib_socket_inet_addr=yes
28283else
28284 echo "$as_me: failed program was:" >&5
28285sed 's/^/| /' conftest.$ac_ext >&5
28286
28287ac_cv_lib_socket_inet_addr=no
28288fi
28289rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28290LIBS=$ac_check_lib_save_LIBS
28291fi
28292echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28293echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28294if test $ac_cv_lib_socket_inet_addr = yes; then
28295 INET_LINK="socket"
4f14bcd8 28296
8284b0c5 28297fi
e6cc62c6 28298
698dcdb6 28299
7b4a847f 28300fi
e6cc62c6
VS
28301
28302
a0b9e27f 28303fi
579d8138 28304
e6cc62c6
VS
28305
28306
5c6fa7d2 28307fi
e6cc62c6
VS
28308done
28309
28310
28311
28312for ac_func in inet_aton
28313do
28314as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28315echo "$as_me:$LINENO: checking for $ac_func" >&5
28316echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28317if eval "test \"\${$as_ac_var+set}\" = set"; then
28318 echo $ECHO_N "(cached) $ECHO_C" >&6
28319else
28320 cat >conftest.$ac_ext <<_ACEOF
28321#line $LINENO "configure"
28322/* confdefs.h. */
28323_ACEOF
28324cat confdefs.h >>conftest.$ac_ext
28325cat >>conftest.$ac_ext <<_ACEOF
28326/* end confdefs.h. */
28327/* System header to define __stub macros and hopefully few prototypes,
28328 which can conflict with char $ac_func (); below.
28329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28330 <limits.h> exists even on freestanding compilers. */
28331#ifdef __STDC__
28332# include <limits.h>
28333#else
28334# include <assert.h>
28335#endif
28336/* Override any gcc2 internal prototype to avoid an error. */
28337#ifdef __cplusplus
28338extern "C"
28339{
28340#endif
28341/* We use char because int might match the return type of a gcc2
28342 builtin and then its argument prototype would still apply. */
28343char $ac_func ();
28344/* The GNU C library defines this for functions which it implements
28345 to always fail with ENOSYS. Some functions are actually named
28346 something starting with __ and the normal name is an alias. */
28347#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28348choke me
28349#else
28350char (*f) () = $ac_func;
28351#endif
28352#ifdef __cplusplus
28353}
28354#endif
28355
28356int
28357main ()
28358{
28359return f != $ac_func;
28360 ;
28361 return 0;
28362}
28363_ACEOF
28364rm -f conftest.$ac_objext conftest$ac_exeext
28365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28366 (eval $ac_link) 2>&5
28367 ac_status=$?
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); } &&
28370 { ac_try='test -s conftest$ac_exeext'
28371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28372 (eval $ac_try) 2>&5
28373 ac_status=$?
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); }; }; then
28376 eval "$as_ac_var=yes"
28377else
28378 echo "$as_me: failed program was:" >&5
28379sed 's/^/| /' conftest.$ac_ext >&5
28380
28381eval "$as_ac_var=no"
28382fi
28383rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28384fi
28385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28386echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28387if test `eval echo '${'$as_ac_var'}'` = yes; then
28388 cat >>confdefs.h <<_ACEOF
28389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28390_ACEOF
28391 cat >>confdefs.h <<\_ACEOF
28392#define HAVE_INET_ATON 1
28393_ACEOF
28394
28395else
28396
28397 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28398echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28399echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28400if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28401 echo $ECHO_N "(cached) $ECHO_C" >&6
28402else
28403 ac_check_lib_save_LIBS=$LIBS
28404LIBS="-l$INET_LINK $LIBS"
28405cat >conftest.$ac_ext <<_ACEOF
28406#line $LINENO "configure"
28407/* confdefs.h. */
28408_ACEOF
28409cat confdefs.h >>conftest.$ac_ext
28410cat >>conftest.$ac_ext <<_ACEOF
28411/* end confdefs.h. */
28412
28413/* Override any gcc2 internal prototype to avoid an error. */
28414#ifdef __cplusplus
28415extern "C"
28416#endif
28417/* We use char because int might match the return type of a gcc2
28418 builtin and then its argument prototype would still apply. */
28419char inet_aton ();
28420int
28421main ()
28422{
28423inet_aton ();
28424 ;
28425 return 0;
28426}
28427_ACEOF
28428rm -f conftest.$ac_objext conftest$ac_exeext
28429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28430 (eval $ac_link) 2>&5
28431 ac_status=$?
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); } &&
28434 { ac_try='test -s conftest$ac_exeext'
28435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28436 (eval $ac_try) 2>&5
28437 ac_status=$?
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); }; }; then
28440 eval "$as_ac_Lib=yes"
28441else
28442 echo "$as_me: failed program was:" >&5
28443sed 's/^/| /' conftest.$ac_ext >&5
28444
28445eval "$as_ac_Lib=no"
28446fi
28447rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28448LIBS=$ac_check_lib_save_LIBS
28449fi
28450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28451echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28452if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28453 cat >>confdefs.h <<\_ACEOF
28454#define HAVE_INET_ATON 1
28455_ACEOF
52127426 28456
a0b9e27f 28457fi
247f5006 28458
8284b0c5 28459
698dcdb6 28460fi
4f14bcd8
GD
28461done
28462
8284b0c5 28463
e6cc62c6
VS
28464if test "x$INET_LINK" != "x"; then
28465 cat >>confdefs.h <<\_ACEOF
28466#define HAVE_INET_ADDR 1
28467_ACEOF
28468
28469 INET_LINK=" -l$INET_LINK"
28470fi
28471
28472fi
a0b9e27f 28473
a0b9e27f 28474
4f14bcd8 28475
edd891e2
VS
28476EXTRALIBS_ESD=
28477echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28478echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28479if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28480 echo $ECHO_N "(cached) $ECHO_C" >&6
28481else
28482 ac_check_lib_save_LIBS=$LIBS
28483LIBS="-lesd $LIBS"
28484cat >conftest.$ac_ext <<_ACEOF
28485#line $LINENO "configure"
28486/* confdefs.h. */
28487_ACEOF
28488cat confdefs.h >>conftest.$ac_ext
28489cat >>conftest.$ac_ext <<_ACEOF
28490/* end confdefs.h. */
28491
28492/* Override any gcc2 internal prototype to avoid an error. */
28493#ifdef __cplusplus
28494extern "C"
28495#endif
28496/* We use char because int might match the return type of a gcc2
28497 builtin and then its argument prototype would still apply. */
28498char esd_close ();
28499int
28500main ()
28501{
28502esd_close ();
28503 ;
28504 return 0;
28505}
28506_ACEOF
28507rm -f conftest.$ac_objext conftest$ac_exeext
28508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28509 (eval $ac_link) 2>&5
28510 ac_status=$?
28511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28512 (exit $ac_status); } &&
28513 { ac_try='test -s conftest$ac_exeext'
28514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28515 (eval $ac_try) 2>&5
28516 ac_status=$?
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); }; }; then
28519 ac_cv_lib_esd_esd_close=yes
28520else
28521 echo "$as_me: failed program was:" >&5
28522sed 's/^/| /' conftest.$ac_ext >&5
28523
28524ac_cv_lib_esd_esd_close=no
28525fi
28526rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28527LIBS=$ac_check_lib_save_LIBS
28528fi
28529echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28530echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28531if test $ac_cv_lib_esd_esd_close = yes; then
28532
28533
28534for ac_header in esd.h
28535do
28536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28537if eval "test \"\${$as_ac_Header+set}\" = set"; then
28538 echo "$as_me:$LINENO: checking for $ac_header" >&5
28539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28540if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28541 echo $ECHO_N "(cached) $ECHO_C" >&6
28542fi
edd891e2
VS
28543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
28545else
28546 # Is the header compilable?
edd891e2
VS
28547echo "$as_me:$LINENO: checking $ac_header usability" >&5
28548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6
VS
28549cat >conftest.$ac_ext <<_ACEOF
28550#line $LINENO "configure"
28551/* confdefs.h. */
28552_ACEOF
28553cat confdefs.h >>conftest.$ac_ext
28554cat >>conftest.$ac_ext <<_ACEOF
28555/* end confdefs.h. */
28556$ac_includes_default
edd891e2 28557#include <$ac_header>
e6cc62c6
VS
28558_ACEOF
28559rm -f conftest.$ac_objext
28560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28561 (eval $ac_compile) 2>&5
28562 ac_status=$?
28563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564 (exit $ac_status); } &&
28565 { ac_try='test -s conftest.$ac_objext'
28566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28567 (eval $ac_try) 2>&5
28568 ac_status=$?
28569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570 (exit $ac_status); }; }; then
28571 ac_header_compiler=yes
28572else
28573 echo "$as_me: failed program was:" >&5
28574sed 's/^/| /' conftest.$ac_ext >&5
28575
28576ac_header_compiler=no
28577fi
28578rm -f conftest.$ac_objext conftest.$ac_ext
28579echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28580echo "${ECHO_T}$ac_header_compiler" >&6
28581
28582# Is the header present?
edd891e2
VS
28583echo "$as_me:$LINENO: checking $ac_header presence" >&5
28584echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6
VS
28585cat >conftest.$ac_ext <<_ACEOF
28586#line $LINENO "configure"
28587/* confdefs.h. */
28588_ACEOF
28589cat confdefs.h >>conftest.$ac_ext
28590cat >>conftest.$ac_ext <<_ACEOF
28591/* end confdefs.h. */
edd891e2 28592#include <$ac_header>
e6cc62c6
VS
28593_ACEOF
28594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28596 ac_status=$?
28597 grep -v '^ *+' conftest.er1 >conftest.err
28598 rm -f conftest.er1
28599 cat conftest.err >&5
28600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28601 (exit $ac_status); } >/dev/null; then
28602 if test -s conftest.err; then
28603 ac_cpp_err=$ac_c_preproc_warn_flag
28604 else
28605 ac_cpp_err=
28606 fi
a0b9e27f 28607else
e6cc62c6
VS
28608 ac_cpp_err=yes
28609fi
28610if test -z "$ac_cpp_err"; then
28611 ac_header_preproc=yes
28612else
28613 echo "$as_me: failed program was:" >&5
28614sed 's/^/| /' conftest.$ac_ext >&5
28615
28616 ac_header_preproc=no
28617fi
28618rm -f conftest.err conftest.$ac_ext
28619echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28620echo "${ECHO_T}$ac_header_preproc" >&6
28621
28622# So? What about this header?
28623case $ac_header_compiler:$ac_header_preproc in
28624 yes:no )
edd891e2
VS
28625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28626echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28629 (
28630 cat <<\_ASBOX
28631## ------------------------------------ ##
28632## Report this to bug-autoconf@gnu.org. ##
28633## ------------------------------------ ##
28634_ASBOX
28635 ) |
28636 sed "s/^/$as_me: WARNING: /" >&2
28637 ;;
28638 no:yes )
edd891e2
VS
28639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28640echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28642echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28644echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
28645 (
28646 cat <<\_ASBOX
28647## ------------------------------------ ##
28648## Report this to bug-autoconf@gnu.org. ##
28649## ------------------------------------ ##
28650_ASBOX
28651 ) |
28652 sed "s/^/$as_me: WARNING: /" >&2
28653 ;;
28654esac
edd891e2
VS
28655echo "$as_me:$LINENO: checking for $ac_header" >&5
28656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28657if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
28658 echo $ECHO_N "(cached) $ECHO_C" >&6
28659else
edd891e2 28660 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 28661fi
edd891e2
VS
28662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 28664
e6cc62c6 28665fi
edd891e2
VS
28666if test `eval echo '${'$as_ac_Header'}'` = yes; then
28667 cat >>confdefs.h <<_ACEOF
28668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 28669_ACEOF
e6cc62c6 28670
edd891e2 28671 EXTRALIBS_ESD="-lesd"
4f14bcd8 28672
a0b9e27f 28673fi
247f5006 28674
edd891e2 28675done
8284b0c5 28676
4f14bcd8 28677
6232543b 28678fi
10f2d63a 28679
703e0a69 28680
8284b0c5 28681
e6cc62c6
VS
28682
28683
28684cat >confcache <<\_ACEOF
4f14bcd8
GD
28685# This file is a shell script that caches the results of configure
28686# tests run on this system so they can be shared between configure
e6cc62c6
VS
28687# scripts and configure runs, see configure's option --config-cache.
28688# It is not useful on other systems. If it contains results you don't
28689# want to keep, you may remove or edit it.
4f14bcd8 28690#
e6cc62c6
VS
28691# config.status only pays attention to the cache file if you give it
28692# the --recheck option to rerun configure.
4f14bcd8 28693#
e6cc62c6
VS
28694# `ac_cv_env_foo' variables (set or unset) will be overridden when
28695# loading this file, other *unset* `ac_cv_foo' will be assigned the
28696# following values.
28697
28698_ACEOF
28699
4f14bcd8
GD
28700# The following way of writing the cache mishandles newlines in values,
28701# but we know of no workaround that is simple, portable, and efficient.
28702# So, don't put newlines in cache variables' values.
28703# Ultrix sh set writes to stderr and can't be redirected directly,
28704# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
28705{
28706 (set) 2>&1 |
28707 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28708 *ac_space=\ *)
28709 # `set' does not quote correctly, so add quotes (double-quote
28710 # substitution turns \\\\ into \\, and sed turns \\ into \).
28711 sed -n \
28712 "s/'/'\\\\''/g;
28713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28714 ;;
28715 *)
28716 # `set' quotes correctly as required by POSIX, so do not add quotes.
28717 sed -n \
28718 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28719 ;;
28720 esac;
28721} |
28722 sed '
28723 t clear
28724 : clear
28725 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28726 t end
28727 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28728 : end' >>confcache
28729if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 28730 if test -w $cache_file; then
e6cc62c6
VS
28731 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28732 cat confcache >$cache_file
f6bcfd97 28733 else
4f14bcd8 28734 echo "not updating unwritable cache $cache_file"
f6bcfd97 28735 fi
4f14bcd8
GD
28736fi
28737rm -f confcache
f6bcfd97 28738
8284b0c5 28739
009fead0 28740CPP_MT_FLAG=
4f14bcd8
GD
28741if test "$TOOLKIT" != "MSW"; then
28742
e6cc62c6 28743
7274f1c7 28744 THREADS_LINK=
009fead0 28745 THREADS_CFLAGS=
7274f1c7
RL
28746
28747 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 28748 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
28749 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28750echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
28751 wxUSE_THREADS="no"
28752 fi
4f14bcd8 28753 fi
4f14bcd8 28754
7274f1c7 28755 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28756
28757
009fead0
VZ
28758 THREAD_OPTS="-pthread"
28759 case "${host}" in
28760 *-*-solaris2* | *-*-sunos4* )
28761 if test "x$GCC" = "xyes"; then
126be6b4 28762 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
28763 else
28764 THREAD_OPTS="-mt $THREAD_OPTS"
28765 fi
28766 ;;
28767 *-*-freebsd*)
28768 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28769 ;;
17234b26
MB
28770 *-*-darwin* | *-*-cygwin* )
28771 THREAD_OPTS=""
4101db81 28772 ;;
8f4a9a10 28773 *-*-aix*)
009fead0
VZ
28774 THREAD_OPTS="pthreads"
28775 ;;
4f5a7f74
VZ
28776 *-hp-hpux* )
28777 if test "x$GCC" != "xyes"; then
28778 THREAD_OPTS=""
28779 fi
89e3b3e4
VZ
28780 ;;
28781
28782 *-*-irix* )
28783 if test "x$GCC" = "xyes"; then
28784 THREAD_OPTS=""
28785 fi
28786 ;;
28787
28788 *-*-*UnixWare*)
28789 if test "x$GCC" != "xyes"; then
28790 THREAD_OPTS="-Ethread"
28791 fi
28792 ;;
009fead0 28793 esac
4f14bcd8 28794
02a1dfba 28795 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 28796
009fead0
VZ
28797 THREADS_OK=no
28798 for flag in $THREAD_OPTS; do
28799 case $flag in
28800 none)
e6cc62c6
VS
28801 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28802echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 28803 ;;
698dcdb6 28804
009fead0 28805 -*)
e6cc62c6
VS
28806 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28807echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
28808 THREADS_CFLAGS="$flag"
28809 ;;
698dcdb6 28810
009fead0 28811 *)
e6cc62c6
VS
28812 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28813echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
28814 THREADS_LINK="-l$flag"
28815 ;;
28816 esac
10f2d63a 28817
009fead0
VZ
28818 save_LIBS="$LIBS"
28819 save_CFLAGS="$CFLAGS"
28820 LIBS="$THREADS_LINK $LIBS"
04727afd 28821 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 28822
e6cc62c6
VS
28823 cat >conftest.$ac_ext <<_ACEOF
28824#line $LINENO "configure"
28825/* confdefs.h. */
28826_ACEOF
28827cat confdefs.h >>conftest.$ac_ext
28828cat >>conftest.$ac_ext <<_ACEOF
28829/* end confdefs.h. */
009fead0 28830#include <pthread.h>
e6cc62c6
VS
28831int
28832main ()
28833{
009fead0 28834pthread_create(0,0,0,0);
e6cc62c6
VS
28835 ;
28836 return 0;
28837}
28838_ACEOF
28839rm -f conftest.$ac_objext conftest$ac_exeext
28840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28841 (eval $ac_link) 2>&5
28842 ac_status=$?
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); } &&
28845 { ac_try='test -s conftest$ac_exeext'
28846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28847 (eval $ac_try) 2>&5
28848 ac_status=$?
28849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850 (exit $ac_status); }; }; then
009fead0 28851 THREADS_OK=yes
10f2d63a 28852else
e6cc62c6
VS
28853 echo "$as_me: failed program was:" >&5
28854sed 's/^/| /' conftest.$ac_ext >&5
28855
6232543b 28856fi
e6cc62c6 28857rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 28858
009fead0
VZ
28859 LIBS="$save_LIBS"
28860 CFLAGS="$save_CFLAGS"
d9b9876f 28861
e6cc62c6
VS
28862 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
28863echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
28864 if test "x$THREADS_OK" = "xyes"; then
28865 break;
28866 fi
d9b9876f 28867
009fead0
VZ
28868 THREADS_LINK=""
28869 THREADS_CFLAGS=""
28870 done
4f14bcd8 28871
009fead0
VZ
28872 if test "x$THREADS_OK" != "xyes"; then
28873 wxUSE_THREADS=no
e6cc62c6
VS
28874 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
28875echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 28876 else
db82f09e
VZ
28877 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
28878 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 28879
e6cc62c6
VS
28880 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28881echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
28882 flag=no
28883 case "${host}" in
2b5f62a0
VZ
28884 *-aix*)
28885 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
28886 flag="-D_THREAD_SAFE"
28887 ;;
28888 *-freebsd*)
009fead0
VZ
28889 flag="-D_THREAD_SAFE"
28890 ;;
06313569
GD
28891 *-hp-hpux* )
28892 flag="-D_REENTRANT"
4f5a7f74
VZ
28893 if test "x$GCC" != "xyes"; then
28894 flag="$flag -D_RWSTD_MULTI_THREAD"
28895 fi
06313569 28896 ;;
009fead0
VZ
28897 *solaris* | alpha*-osf*)
28898 flag="-D_REENTRANT"
28899 ;;
28900 esac
e6cc62c6
VS
28901 echo "$as_me:$LINENO: result: ${flag}" >&5
28902echo "${ECHO_T}${flag}" >&6
009fead0 28903 if test "x$flag" != xno; then
04727afd 28904 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
28905 fi
28906
009fead0 28907 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 28908 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
28909 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
28910 fi
28911 fi
4f14bcd8 28912 fi
4f14bcd8 28913
7274f1c7 28914 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
28915
28916for ac_func in thr_setconcurrency
4f14bcd8 28917do
e6cc62c6
VS
28918as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28919echo "$as_me:$LINENO: checking for $ac_func" >&5
28920echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28921if eval "test \"\${$as_ac_var+set}\" = set"; then
28922 echo $ECHO_N "(cached) $ECHO_C" >&6
28923else
28924 cat >conftest.$ac_ext <<_ACEOF
28925#line $LINENO "configure"
28926/* confdefs.h. */
28927_ACEOF
28928cat confdefs.h >>conftest.$ac_ext
28929cat >>conftest.$ac_ext <<_ACEOF
28930/* end confdefs.h. */
4f14bcd8 28931/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28932 which can conflict with char $ac_func (); below.
28933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28934 <limits.h> exists even on freestanding compilers. */
28935#ifdef __STDC__
28936# include <limits.h>
28937#else
28938# include <assert.h>
28939#endif
4f14bcd8 28940/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28941#ifdef __cplusplus
28942extern "C"
28943{
28944#endif
4f14bcd8 28945/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28946 builtin and then its argument prototype would still apply. */
28947char $ac_func ();
4f14bcd8
GD
28948/* The GNU C library defines this for functions which it implements
28949 to always fail with ENOSYS. Some functions are actually named
28950 something starting with __ and the normal name is an alias. */
28951#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28952choke me
28953#else
e6cc62c6
VS
28954char (*f) () = $ac_func;
28955#endif
28956#ifdef __cplusplus
28957}
4f14bcd8
GD
28958#endif
28959
e6cc62c6
VS
28960int
28961main ()
28962{
28963return f != $ac_func;
28964 ;
28965 return 0;
28966}
28967_ACEOF
28968rm -f conftest.$ac_objext conftest$ac_exeext
28969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28970 (eval $ac_link) 2>&5
28971 ac_status=$?
28972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28973 (exit $ac_status); } &&
28974 { ac_try='test -s conftest$ac_exeext'
28975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28976 (eval $ac_try) 2>&5
28977 ac_status=$?
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); }; }; then
28980 eval "$as_ac_var=yes"
28981else
28982 echo "$as_me: failed program was:" >&5
28983sed 's/^/| /' conftest.$ac_ext >&5
28984
28985eval "$as_ac_var=no"
28986fi
28987rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28988fi
28989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28990echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28991if test `eval echo '${'$as_ac_var'}'` = yes; then
28992 cat >>confdefs.h <<_ACEOF
28993#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28994_ACEOF
698dcdb6 28995
10f2d63a 28996fi
4f14bcd8 28997done
10f2d63a 28998
8284b0c5 28999
e6cc62c6
VS
29000
29001for ac_header in sched.h
4f14bcd8 29002do
e6cc62c6
VS
29003as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29004if eval "test \"\${$as_ac_Header+set}\" = set"; then
29005 echo "$as_me:$LINENO: checking for $ac_header" >&5
29006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29007if eval "test \"\${$as_ac_Header+set}\" = set"; then
29008 echo $ECHO_N "(cached) $ECHO_C" >&6
29009fi
29010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29011echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29012else
29013 # Is the header compilable?
29014echo "$as_me:$LINENO: checking $ac_header usability" >&5
29015echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29016cat >conftest.$ac_ext <<_ACEOF
29017#line $LINENO "configure"
29018/* confdefs.h. */
29019_ACEOF
29020cat confdefs.h >>conftest.$ac_ext
29021cat >>conftest.$ac_ext <<_ACEOF
29022/* end confdefs.h. */
29023$ac_includes_default
29024#include <$ac_header>
29025_ACEOF
29026rm -f conftest.$ac_objext
29027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29028 (eval $ac_compile) 2>&5
29029 ac_status=$?
29030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031 (exit $ac_status); } &&
29032 { ac_try='test -s conftest.$ac_objext'
29033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29034 (eval $ac_try) 2>&5
29035 ac_status=$?
29036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037 (exit $ac_status); }; }; then
29038 ac_header_compiler=yes
29039else
29040 echo "$as_me: failed program was:" >&5
29041sed 's/^/| /' conftest.$ac_ext >&5
29042
29043ac_header_compiler=no
29044fi
29045rm -f conftest.$ac_objext conftest.$ac_ext
29046echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29047echo "${ECHO_T}$ac_header_compiler" >&6
29048
29049# Is the header present?
29050echo "$as_me:$LINENO: checking $ac_header presence" >&5
29051echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29052cat >conftest.$ac_ext <<_ACEOF
29053#line $LINENO "configure"
29054/* confdefs.h. */
29055_ACEOF
29056cat confdefs.h >>conftest.$ac_ext
29057cat >>conftest.$ac_ext <<_ACEOF
29058/* end confdefs.h. */
29059#include <$ac_header>
29060_ACEOF
29061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29063 ac_status=$?
29064 grep -v '^ *+' conftest.er1 >conftest.err
29065 rm -f conftest.er1
29066 cat conftest.err >&5
29067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); } >/dev/null; then
29069 if test -s conftest.err; then
29070 ac_cpp_err=$ac_c_preproc_warn_flag
29071 else
29072 ac_cpp_err=
29073 fi
29074else
29075 ac_cpp_err=yes
29076fi
29077if test -z "$ac_cpp_err"; then
29078 ac_header_preproc=yes
29079else
29080 echo "$as_me: failed program was:" >&5
29081sed 's/^/| /' conftest.$ac_ext >&5
29082
29083 ac_header_preproc=no
29084fi
29085rm -f conftest.err conftest.$ac_ext
29086echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29087echo "${ECHO_T}$ac_header_preproc" >&6
29088
29089# So? What about this header?
29090case $ac_header_compiler:$ac_header_preproc in
29091 yes:no )
29092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29093echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29095echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29096 (
29097 cat <<\_ASBOX
29098## ------------------------------------ ##
29099## Report this to bug-autoconf@gnu.org. ##
29100## ------------------------------------ ##
29101_ASBOX
29102 ) |
29103 sed "s/^/$as_me: WARNING: /" >&2
29104 ;;
29105 no:yes )
29106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29109echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29112 (
29113 cat <<\_ASBOX
29114## ------------------------------------ ##
29115## Report this to bug-autoconf@gnu.org. ##
29116## ------------------------------------ ##
29117_ASBOX
29118 ) |
29119 sed "s/^/$as_me: WARNING: /" >&2
29120 ;;
29121esac
29122echo "$as_me:$LINENO: checking for $ac_header" >&5
29123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29124if eval "test \"\${$as_ac_Header+set}\" = set"; then
29125 echo $ECHO_N "(cached) $ECHO_C" >&6
29126else
29127 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 29128fi
e6cc62c6
VS
29129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29131
10f2d63a 29132fi
e6cc62c6
VS
29133if test `eval echo '${'$as_ac_Header'}'` = yes; then
29134 cat >>confdefs.h <<_ACEOF
29135#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29136_ACEOF
29137
f6bcfd97 29138fi
e6cc62c6 29139
4f14bcd8 29140done
f6bcfd97 29141
009fead0 29142 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
29143 echo "$as_me:$LINENO: checking for sched_yield" >&5
29144echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29145if test "${ac_cv_func_sched_yield+set}" = set; then
29146 echo $ECHO_N "(cached) $ECHO_C" >&6
29147else
29148 cat >conftest.$ac_ext <<_ACEOF
29149#line $LINENO "configure"
29150/* confdefs.h. */
29151_ACEOF
29152cat confdefs.h >>conftest.$ac_ext
29153cat >>conftest.$ac_ext <<_ACEOF
29154/* end confdefs.h. */
009fead0 29155/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29156 which can conflict with char sched_yield (); below.
29157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29158 <limits.h> exists even on freestanding compilers. */
29159#ifdef __STDC__
29160# include <limits.h>
29161#else
29162# include <assert.h>
29163#endif
4f14bcd8 29164/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29165#ifdef __cplusplus
29166extern "C"
29167{
29168#endif
4f14bcd8 29169/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29170 builtin and then its argument prototype would still apply. */
29171char sched_yield ();
009fead0
VZ
29172/* The GNU C library defines this for functions which it implements
29173 to always fail with ENOSYS. Some functions are actually named
29174 something starting with __ and the normal name is an alias. */
29175#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29176choke me
29177#else
e6cc62c6
VS
29178char (*f) () = sched_yield;
29179#endif
29180#ifdef __cplusplus
29181}
009fead0
VZ
29182#endif
29183
e6cc62c6
VS
29184int
29185main ()
29186{
29187return f != sched_yield;
29188 ;
29189 return 0;
29190}
29191_ACEOF
29192rm -f conftest.$ac_objext conftest$ac_exeext
29193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29194 (eval $ac_link) 2>&5
29195 ac_status=$?
29196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29197 (exit $ac_status); } &&
29198 { ac_try='test -s conftest$ac_exeext'
29199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29200 (eval $ac_try) 2>&5
29201 ac_status=$?
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); }; }; then
29204 ac_cv_func_sched_yield=yes
29205else
29206 echo "$as_me: failed program was:" >&5
29207sed 's/^/| /' conftest.$ac_ext >&5
29208
29209ac_cv_func_sched_yield=no
29210fi
29211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29212fi
29213echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29214echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29215if test $ac_cv_func_sched_yield = yes; then
29216 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29217#define HAVE_SCHED_YIELD 1
e6cc62c6 29218_ACEOF
10f2d63a 29219
4f14bcd8 29220else
009fead0 29221
e6cc62c6
VS
29222 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29223echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29224if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29225 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29226else
e6cc62c6 29227 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29228LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29229cat >conftest.$ac_ext <<_ACEOF
29230#line $LINENO "configure"
29231/* confdefs.h. */
29232_ACEOF
29233cat confdefs.h >>conftest.$ac_ext
29234cat >>conftest.$ac_ext <<_ACEOF
29235/* end confdefs.h. */
29236
4f14bcd8 29237/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29238#ifdef __cplusplus
29239extern "C"
29240#endif
4f14bcd8 29241/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29242 builtin and then its argument prototype would still apply. */
29243char sched_yield ();
29244int
29245main ()
29246{
29247sched_yield ();
29248 ;
29249 return 0;
29250}
29251_ACEOF
29252rm -f conftest.$ac_objext conftest$ac_exeext
29253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29254 (eval $ac_link) 2>&5
29255 ac_status=$?
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); } &&
29258 { ac_try='test -s conftest$ac_exeext'
29259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29260 (eval $ac_try) 2>&5
29261 ac_status=$?
29262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); }; }; then
29264 ac_cv_lib_posix4_sched_yield=yes
29265else
29266 echo "$as_me: failed program was:" >&5
29267sed 's/^/| /' conftest.$ac_ext >&5
29268
29269ac_cv_lib_posix4_sched_yield=no
29270fi
29271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29272LIBS=$ac_check_lib_save_LIBS
29273fi
29274echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29275echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29276if test $ac_cv_lib_posix4_sched_yield = yes; then
29277 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29278#define HAVE_SCHED_YIELD 1
e6cc62c6 29279_ACEOF
3d63bc3a 29280 POSIX4_LINK=" -lposix4"
4f14bcd8 29281else
e6cc62c6
VS
29282 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29283echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29284
54276ccf
VZ
29285fi
29286
e6cc62c6
VS
29287
29288
4f14bcd8 29289fi
698dcdb6 29290
009fead0 29291 fi
10f2d63a 29292
7274f1c7 29293 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
29294 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29295echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29296if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29297 echo $ECHO_N "(cached) $ECHO_C" >&6
29298else
29299 cat >conftest.$ac_ext <<_ACEOF
29300#line $LINENO "configure"
29301/* confdefs.h. */
29302_ACEOF
29303cat confdefs.h >>conftest.$ac_ext
29304cat >>conftest.$ac_ext <<_ACEOF
29305/* end confdefs.h. */
009fead0 29306/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29307 which can conflict with char pthread_attr_getschedpolicy (); below.
29308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29309 <limits.h> exists even on freestanding compilers. */
29310#ifdef __STDC__
29311# include <limits.h>
29312#else
29313# include <assert.h>
29314#endif
4f14bcd8 29315/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29316#ifdef __cplusplus
29317extern "C"
29318{
29319#endif
4f14bcd8 29320/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29321 builtin and then its argument prototype would still apply. */
29322char pthread_attr_getschedpolicy ();
009fead0
VZ
29323/* The GNU C library defines this for functions which it implements
29324 to always fail with ENOSYS. Some functions are actually named
29325 something starting with __ and the normal name is an alias. */
29326#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29327choke me
29328#else
e6cc62c6
VS
29329char (*f) () = pthread_attr_getschedpolicy;
29330#endif
29331#ifdef __cplusplus
29332}
009fead0
VZ
29333#endif
29334
e6cc62c6
VS
29335int
29336main ()
29337{
29338return f != pthread_attr_getschedpolicy;
29339 ;
29340 return 0;
29341}
29342_ACEOF
29343rm -f conftest.$ac_objext conftest$ac_exeext
29344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29345 (eval $ac_link) 2>&5
29346 ac_status=$?
29347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348 (exit $ac_status); } &&
29349 { ac_try='test -s conftest$ac_exeext'
29350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29351 (eval $ac_try) 2>&5
29352 ac_status=$?
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354 (exit $ac_status); }; }; then
29355 ac_cv_func_pthread_attr_getschedpolicy=yes
29356else
29357 echo "$as_me: failed program was:" >&5
29358sed 's/^/| /' conftest.$ac_ext >&5
29359
29360ac_cv_func_pthread_attr_getschedpolicy=no
29361fi
29362rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29363fi
29364echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29365echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29366if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29367 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29368echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29369if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29370 echo $ECHO_N "(cached) $ECHO_C" >&6
29371else
29372 cat >conftest.$ac_ext <<_ACEOF
29373#line $LINENO "configure"
29374/* confdefs.h. */
29375_ACEOF
29376cat confdefs.h >>conftest.$ac_ext
29377cat >>conftest.$ac_ext <<_ACEOF
29378/* end confdefs.h. */
a0b9e27f 29379/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29380 which can conflict with char pthread_attr_setschedparam (); below.
29381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29382 <limits.h> exists even on freestanding compilers. */
29383#ifdef __STDC__
29384# include <limits.h>
29385#else
29386# include <assert.h>
29387#endif
422107f9 29388/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29389#ifdef __cplusplus
29390extern "C"
29391{
29392#endif
422107f9 29393/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29394 builtin and then its argument prototype would still apply. */
29395char pthread_attr_setschedparam ();
009fead0
VZ
29396/* The GNU C library defines this for functions which it implements
29397 to always fail with ENOSYS. Some functions are actually named
29398 something starting with __ and the normal name is an alias. */
29399#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29400choke me
29401#else
e6cc62c6
VS
29402char (*f) () = pthread_attr_setschedparam;
29403#endif
29404#ifdef __cplusplus
29405}
009fead0
VZ
29406#endif
29407
e6cc62c6
VS
29408int
29409main ()
29410{
29411return f != pthread_attr_setschedparam;
29412 ;
29413 return 0;
29414}
29415_ACEOF
29416rm -f conftest.$ac_objext conftest$ac_exeext
29417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29418 (eval $ac_link) 2>&5
29419 ac_status=$?
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); } &&
29422 { ac_try='test -s conftest$ac_exeext'
29423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29424 (eval $ac_try) 2>&5
29425 ac_status=$?
29426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427 (exit $ac_status); }; }; then
29428 ac_cv_func_pthread_attr_setschedparam=yes
29429else
29430 echo "$as_me: failed program was:" >&5
29431sed 's/^/| /' conftest.$ac_ext >&5
29432
29433ac_cv_func_pthread_attr_setschedparam=no
29434fi
29435rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29436fi
29437echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29438echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29439if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29440 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29441echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29442if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29443 echo $ECHO_N "(cached) $ECHO_C" >&6
29444else
29445 cat >conftest.$ac_ext <<_ACEOF
29446#line $LINENO "configure"
29447/* confdefs.h. */
29448_ACEOF
29449cat confdefs.h >>conftest.$ac_ext
29450cat >>conftest.$ac_ext <<_ACEOF
29451/* end confdefs.h. */
ef33c576 29452/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29453 which can conflict with char sched_get_priority_max (); below.
29454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29455 <limits.h> exists even on freestanding compilers. */
29456#ifdef __STDC__
29457# include <limits.h>
29458#else
29459# include <assert.h>
29460#endif
4f14bcd8 29461/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29462#ifdef __cplusplus
29463extern "C"
29464{
29465#endif
4f14bcd8 29466/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29467 builtin and then its argument prototype would still apply. */
29468char sched_get_priority_max ();
009fead0
VZ
29469/* The GNU C library defines this for functions which it implements
29470 to always fail with ENOSYS. Some functions are actually named
29471 something starting with __ and the normal name is an alias. */
29472#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29473choke me
29474#else
e6cc62c6
VS
29475char (*f) () = sched_get_priority_max;
29476#endif
29477#ifdef __cplusplus
29478}
009fead0
VZ
29479#endif
29480
e6cc62c6
VS
29481int
29482main ()
29483{
29484return f != sched_get_priority_max;
29485 ;
29486 return 0;
29487}
29488_ACEOF
29489rm -f conftest.$ac_objext conftest$ac_exeext
29490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29491 (eval $ac_link) 2>&5
29492 ac_status=$?
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); } &&
29495 { ac_try='test -s conftest$ac_exeext'
29496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29497 (eval $ac_try) 2>&5
29498 ac_status=$?
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); }; }; then
29501 ac_cv_func_sched_get_priority_max=yes
29502else
29503 echo "$as_me: failed program was:" >&5
29504sed 's/^/| /' conftest.$ac_ext >&5
29505
29506ac_cv_func_sched_get_priority_max=no
29507fi
29508rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29509fi
29510echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29511echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29512if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
29513 HAVE_PRIOR_FUNCS=1
29514else
e6cc62c6
VS
29515 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29516echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29517if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29518 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 29519else
e6cc62c6 29520 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29521LIBS="-lposix4 $LIBS"
e6cc62c6
VS
29522cat >conftest.$ac_ext <<_ACEOF
29523#line $LINENO "configure"
29524/* confdefs.h. */
29525_ACEOF
29526cat confdefs.h >>conftest.$ac_ext
29527cat >>conftest.$ac_ext <<_ACEOF
29528/* end confdefs.h. */
29529
422107f9 29530/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29531#ifdef __cplusplus
29532extern "C"
29533#endif
422107f9 29534/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29535 builtin and then its argument prototype would still apply. */
29536char sched_get_priority_max ();
29537int
29538main ()
29539{
29540sched_get_priority_max ();
29541 ;
29542 return 0;
29543}
29544_ACEOF
29545rm -f conftest.$ac_objext conftest$ac_exeext
29546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29547 (eval $ac_link) 2>&5
29548 ac_status=$?
29549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); } &&
29551 { ac_try='test -s conftest$ac_exeext'
29552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29553 (eval $ac_try) 2>&5
29554 ac_status=$?
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); }; }; then
29557 ac_cv_lib_posix4_sched_get_priority_max=yes
29558else
29559 echo "$as_me: failed program was:" >&5
29560sed 's/^/| /' conftest.$ac_ext >&5
29561
29562ac_cv_lib_posix4_sched_get_priority_max=no
29563fi
29564rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29565LIBS=$ac_check_lib_save_LIBS
29566fi
29567echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29568echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29569if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 29570
7274f1c7
RL
29571 HAVE_PRIOR_FUNCS=1
29572 POSIX4_LINK=" -lposix4"
e6cc62c6 29573
4f14bcd8 29574fi
463abc64 29575
e6cc62c6 29576
328a083c 29577fi
463abc64 29578
e6cc62c6 29579
7b4a847f 29580fi
579d8138 29581
e6cc62c6 29582
5c6fa7d2 29583fi
52127426 29584
8284b0c5 29585
7274f1c7 29586 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 29587 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29588#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 29589_ACEOF
463abc64 29590
7274f1c7 29591 else
e6cc62c6
VS
29592 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29593echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 29594 fi
463abc64 29595
e6cc62c6
VS
29596 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29597echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29598if test "${ac_cv_func_pthread_cancel+set}" = set; then
29599 echo $ECHO_N "(cached) $ECHO_C" >&6
29600else
29601 cat >conftest.$ac_ext <<_ACEOF
29602#line $LINENO "configure"
29603/* confdefs.h. */
29604_ACEOF
29605cat confdefs.h >>conftest.$ac_ext
29606cat >>conftest.$ac_ext <<_ACEOF
29607/* end confdefs.h. */
009fead0 29608/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29609 which can conflict with char pthread_cancel (); below.
29610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29611 <limits.h> exists even on freestanding compilers. */
29612#ifdef __STDC__
29613# include <limits.h>
29614#else
29615# include <assert.h>
29616#endif
422107f9 29617/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29618#ifdef __cplusplus
29619extern "C"
29620{
29621#endif
422107f9 29622/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29623 builtin and then its argument prototype would still apply. */
29624char pthread_cancel ();
009fead0
VZ
29625/* The GNU C library defines this for functions which it implements
29626 to always fail with ENOSYS. Some functions are actually named
29627 something starting with __ and the normal name is an alias. */
29628#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29629choke me
29630#else
e6cc62c6
VS
29631char (*f) () = pthread_cancel;
29632#endif
29633#ifdef __cplusplus
29634}
009fead0
VZ
29635#endif
29636
e6cc62c6
VS
29637int
29638main ()
29639{
29640return f != pthread_cancel;
29641 ;
29642 return 0;
29643}
29644_ACEOF
29645rm -f conftest.$ac_objext conftest$ac_exeext
29646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29647 (eval $ac_link) 2>&5
29648 ac_status=$?
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); } &&
29651 { ac_try='test -s conftest$ac_exeext'
29652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29653 (eval $ac_try) 2>&5
29654 ac_status=$?
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); }; }; then
29657 ac_cv_func_pthread_cancel=yes
29658else
29659 echo "$as_me: failed program was:" >&5
29660sed 's/^/| /' conftest.$ac_ext >&5
29661
29662ac_cv_func_pthread_cancel=no
29663fi
29664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29665fi
29666echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29667echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29668if test $ac_cv_func_pthread_cancel = yes; then
29669 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29670#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 29671_ACEOF
4f14bcd8 29672
698dcdb6 29673else
e6cc62c6
VS
29674 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29675echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
29676fi
29677
5c6fa7d2 29678
e6cc62c6
VS
29679 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29680echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29681if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29682 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29683else
e6cc62c6
VS
29684
29685 cat >conftest.$ac_ext <<_ACEOF
29686#line $LINENO "configure"
29687/* confdefs.h. */
29688_ACEOF
29689cat confdefs.h >>conftest.$ac_ext
29690cat >>conftest.$ac_ext <<_ACEOF
29691/* end confdefs.h. */
4f14bcd8 29692#include <pthread.h>
e6cc62c6
VS
29693int
29694main ()
29695{
4f14bcd8 29696
7274f1c7
RL
29697 pthread_cleanup_push(NULL, NULL);
29698 pthread_cleanup_pop(0);
e6cc62c6
VS
29699
29700 ;
29701 return 0;
29702}
29703_ACEOF
29704rm -f conftest.$ac_objext
29705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29706 (eval $ac_compile) 2>&5
29707 ac_status=$?
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); } &&
29710 { ac_try='test -s conftest.$ac_objext'
29711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29712 (eval $ac_try) 2>&5
29713 ac_status=$?
29714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); }; }; then
29716
7274f1c7 29717 wx_cv_func_pthread_cleanup_push=yes
e6cc62c6 29718
4f14bcd8 29719else
e6cc62c6
VS
29720 echo "$as_me: failed program was:" >&5
29721sed 's/^/| /' conftest.$ac_ext >&5
29722
29723
7274f1c7 29724 wx_cv_func_pthread_cleanup_push=no
e6cc62c6 29725
247f5006 29726fi
e6cc62c6 29727rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29728
e6cc62c6
VS
29729fi
29730echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29731echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
4f14bcd8 29732
7274f1c7 29733 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
e6cc62c6 29734 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29735#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
e6cc62c6 29736_ACEOF
c7a2bf27 29737
7274f1c7 29738 fi
4f14bcd8 29739
e6cc62c6
VS
29740
29741 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29742echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29743if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29744 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 29745else
e6cc62c6
VS
29746
29747 cat >conftest.$ac_ext <<_ACEOF
29748#line $LINENO "configure"
29749/* confdefs.h. */
29750_ACEOF
29751cat confdefs.h >>conftest.$ac_ext
29752cat >>conftest.$ac_ext <<_ACEOF
29753/* end confdefs.h. */
4f14bcd8 29754#include <pthread.h>
e6cc62c6
VS
29755int
29756main ()
29757{
4f14bcd8 29758
7274f1c7
RL
29759 pthread_mutexattr_t attr;
29760 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
29761
29762 ;
29763 return 0;
29764}
29765_ACEOF
29766rm -f conftest.$ac_objext
29767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29768 (eval $ac_compile) 2>&5
29769 ac_status=$?
29770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771 (exit $ac_status); } &&
29772 { ac_try='test -s conftest.$ac_objext'
29773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29774 (eval $ac_try) 2>&5
29775 ac_status=$?
29776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); }; }; then
29778
7274f1c7 29779 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 29780
3fed1840 29781else
e6cc62c6
VS
29782 echo "$as_me: failed program was:" >&5
29783sed 's/^/| /' conftest.$ac_ext >&5
29784
29785
7274f1c7 29786 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
29787
29788
247f5006 29789fi
e6cc62c6 29790rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29791
e6cc62c6
VS
29792fi
29793echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29794echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 29795
7274f1c7 29796 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 29797 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29798#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 29799_ACEOF
4f14bcd8 29800
7274f1c7 29801 else
e6cc62c6
VS
29802 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29803echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29804if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29805 echo $ECHO_N "(cached) $ECHO_C" >&6
29806else
29807
29808 cat >conftest.$ac_ext <<_ACEOF
29809#line $LINENO "configure"
29810/* confdefs.h. */
29811_ACEOF
29812cat confdefs.h >>conftest.$ac_ext
29813cat >>conftest.$ac_ext <<_ACEOF
29814/* end confdefs.h. */
4f14bcd8 29815#include <pthread.h>
e6cc62c6
VS
29816int
29817main ()
29818{
4f14bcd8 29819
7274f1c7 29820 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
29821
29822 ;
29823 return 0;
29824}
29825_ACEOF
29826rm -f conftest.$ac_objext
29827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29828 (eval $ac_compile) 2>&5
29829 ac_status=$?
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); } &&
29832 { ac_try='test -s conftest.$ac_objext'
29833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29834 (eval $ac_try) 2>&5
29835 ac_status=$?
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); }; }; then
29838
7274f1c7 29839 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 29840
698dcdb6 29841else
e6cc62c6
VS
29842 echo "$as_me: failed program was:" >&5
29843sed 's/^/| /' conftest.$ac_ext >&5
29844
29845
7274f1c7 29846 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
29847
29848
247f5006 29849fi
e6cc62c6 29850rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29851
e6cc62c6
VS
29852fi
29853echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
29854echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 29855 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 29856 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29857#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 29858_ACEOF
3fed1840 29859
7274f1c7 29860 else
e6cc62c6
VS
29861 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
29862echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
29863 fi
29864 fi
7274f1c7 29865 fi
3fed1840 29866
a0b9e27f
MB
29867else
29868 if test "$wxUSE_THREADS" = "yes" ; then
29869 case "${host}" in
29870 *-*-mingw32* )
e6cc62c6
VS
29871 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
29872echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
29873if test "${wx_cv_cflags_mthread+set}" = set; then
29874 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 29875else
e6cc62c6 29876
ca8e52b3
VZ
29877 CFLAGS_OLD="$CFLAGS"
29878 CFLAGS="$CFLAGS -mthreads"
e6cc62c6
VS
29879 cat >conftest.$ac_ext <<_ACEOF
29880#line $LINENO "configure"
29881/* confdefs.h. */
29882_ACEOF
29883cat confdefs.h >>conftest.$ac_ext
29884cat >>conftest.$ac_ext <<_ACEOF
29885/* end confdefs.h. */
29886
29887int
29888main ()
29889{
ca8e52b3 29890
e6cc62c6
VS
29891 ;
29892 return 0;
29893}
29894_ACEOF
29895rm -f conftest.$ac_objext
29896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29897 (eval $ac_compile) 2>&5
29898 ac_status=$?
29899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900 (exit $ac_status); } &&
29901 { ac_try='test -s conftest.$ac_objext'
29902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29903 (eval $ac_try) 2>&5
29904 ac_status=$?
29905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906 (exit $ac_status); }; }; then
ca8e52b3
VZ
29907 wx_cv_cflags_mthread=yes
29908else
e6cc62c6
VS
29909 echo "$as_me: failed program was:" >&5
29910sed 's/^/| /' conftest.$ac_ext >&5
29911
29912wx_cv_cflags_mthread=no
29913
ca8e52b3 29914fi
e6cc62c6
VS
29915rm -f conftest.$ac_objext conftest.$ac_ext
29916
ca8e52b3 29917
e6cc62c6
VS
29918fi
29919echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
29920echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
29921
29922 if test "$wx_cv_cflags_mthread" = "yes"; then
29923 CXXFLAGS="$CXXFLAGS -mthreads"
29924 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
29925 LDFLAGS="$LDFLAGS -mthreads"
29926 else
29927 CFLAGS="$CFLAGS_OLD"
29928 fi
a0b9e27f
MB
29929 ;;
29930 esac
29931 fi
4f14bcd8
GD
29932fi
29933
29934if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 29935 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29936#define wxUSE_THREADS 1
e6cc62c6 29937_ACEOF
7b6058cd 29938
8284b0c5 29939
4f14bcd8 29940 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 29941else
4f14bcd8 29942 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
29943 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
29944echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
29945 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
29946 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
29947 echo "$as_me:$LINENO: result: yes" >&5
29948echo "${ECHO_T}yes" >&6
4f14bcd8 29949 else
e6cc62c6
VS
29950 echo "$as_me:$LINENO: result: no" >&5
29951echo "${ECHO_T}no" >&6
4f14bcd8
GD
29952 fi
29953 fi
29954fi
29955
29956if test "$WXGTK20" = 1 ; then
e6cc62c6 29957 cat >>confdefs.h <<_ACEOF
4f14bcd8 29958#define __WXGTK20__ $WXGTK20
e6cc62c6 29959_ACEOF
4f14bcd8
GD
29960
29961 WXGTK12=1
10f2d63a 29962fi
4f14bcd8
GD
29963
29964if test "$WXGTK12" = 1 ; then
e6cc62c6 29965 cat >>confdefs.h <<_ACEOF
4f14bcd8 29966#define __WXGTK12__ $WXGTK12
e6cc62c6 29967_ACEOF
4f14bcd8 29968
10f2d63a 29969fi
698dcdb6 29970
4f14bcd8 29971if test "$WXGTK127" = 1 ; then
e6cc62c6 29972 cat >>confdefs.h <<_ACEOF
4f14bcd8 29973#define __WXGTK127__ $WXGTK127
e6cc62c6 29974_ACEOF
4f14bcd8 29975
698dcdb6 29976fi
10f2d63a 29977
4f14bcd8
GD
29978WXDEBUG=
29979
29980if test "$wxUSE_DEBUG_INFO" = "yes" ; then
29981 WXDEBUG="-g"
29982 wxUSE_OPTIMISE=no
698dcdb6 29983fi
4f14bcd8
GD
29984
29985if test "$wxUSE_DEBUG_GDB" = "yes" ; then
29986 wxUSE_DEBUG_INFO=yes
29987 WXDEBUG="-ggdb"
10f2d63a
VZ
29988fi
29989
4f14bcd8 29990if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 29991 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29992#define WXDEBUG 1
e6cc62c6 29993_ACEOF
4f14bcd8
GD
29994
29995 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 29996else
4f14bcd8
GD
29997 if test "$wxUSE_GTK" = 1 ; then
29998 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
29999 fi
30000fi
30001
30002if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 30003 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30004#define wxUSE_MEMORY_TRACING 1
e6cc62c6 30005_ACEOF
4f14bcd8 30006
e6cc62c6 30007 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30008#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 30009_ACEOF
4f14bcd8 30010
e6cc62c6 30011 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30012#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 30013_ACEOF
4f14bcd8
GD
30014
30015 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30016fi
30017
30018if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 30019 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
30020fi
30021
30022PROFILE=
30023if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 30024 PROFILE=" -pg"
10f2d63a
VZ
30025fi
30026
009fead0
VZ
30027CODE_GEN_FLAGS=
30028CODE_GEN_FLAGS_CXX=
88e30f2b 30029if test "$GCC" = "yes" ; then
4f14bcd8
GD
30030 if test "$wxUSE_NO_RTTI" = "yes" ; then
30031 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 30032 fi
4f14bcd8
GD
30033 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30034 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30035 fi
30036 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30037 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30038 fi
1d1b75ac 30039
2b5f62a0 30040 case "${host}" in
1d1b75ac
VZ
30041 powerpc*-*-aix* )
30042 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30043 ;;
2b5f62a0
VZ
30044 *-hppa* )
30045 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30046 ;;
1d1b75ac 30047 esac
4f14bcd8
GD
30048fi
30049
af7b5345 30050OPTIMISE=
4f14bcd8 30051if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
30052 if test "$GCC" = yes ; then
30053 OPTIMISE="-O0"
30054 fi
4f14bcd8
GD
30055else
30056 if test "$GCC" = yes ; then
30057 OPTIMISE="-O2"
af7b5345
VZ
30058
30059 case "${host}" in
4f14bcd8
GD
30060 i586-*-*|i686-*-* )
30061 OPTIMISE="${OPTIMISE} "
30062 ;;
30063 esac
30064 else
30065 OPTIMISE="-O"
30066 fi
30067fi
30068
8d90d2f2 30069
65d8ef1e 30070if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30071 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30072#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30073_ACEOF
4f14bcd8 30074
8d90d2f2
VZ
30075
30076 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
30077fi
30078
65d8ef1e 30079if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 30080 cat >>confdefs.h <<\_ACEOF
65d8ef1e 30081#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 30082_ACEOF
65d8ef1e
VS
30083
30084fi
30085
8284b0c5 30086
10f2d63a 30087if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 30088 cat >>confdefs.h <<\_ACEOF
10f2d63a 30089#define wxUSE_GUI 1
e6cc62c6 30090_ACEOF
10f2d63a 30091
8284b0c5 30092
10f2d63a 30093 else
e6cc62c6 30094 cat >>confdefs.h <<\_ACEOF
10f2d63a 30095#define wxUSE_NOGUI 1
e6cc62c6 30096_ACEOF
10f2d63a
VZ
30097
30098fi
30099
8284b0c5 30100
10f2d63a 30101if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 30102 cat >>confdefs.h <<\_ACEOF
10f2d63a 30103#define wxUSE_UNIX 1
e6cc62c6 30104_ACEOF
10f2d63a
VZ
30105
30106fi
30107
8284b0c5 30108
df5168c4
MB
30109if test "$wxUSE_STL" = "yes"; then
30110 cat >>confdefs.h <<\_ACEOF
30111#define wxUSE_STL 1
30112_ACEOF
30113
30114fi
30115
10f2d63a 30116if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 30117 cat >>confdefs.h <<\_ACEOF
10f2d63a 30118#define wxUSE_APPLE_IEEE 1
e6cc62c6 30119_ACEOF
10f2d63a
VZ
30120
30121fi
30122
1e6feb95 30123if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 30124 cat >>confdefs.h <<\_ACEOF
1e6feb95 30125#define wxUSE_TIMER 1
e6cc62c6 30126_ACEOF
1e6feb95
VZ
30127
30128fi
30129
10f2d63a 30130if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 30131 cat >>confdefs.h <<\_ACEOF
10f2d63a 30132#define wxUSE_WAVE 1
e6cc62c6 30133_ACEOF
10f2d63a
VZ
30134
30135fi
30136
1e6feb95 30137if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 30138 cat >>confdefs.h <<\_ACEOF
1e6feb95 30139#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 30140_ACEOF
1e6feb95
VZ
30141
30142fi
30143
30144if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 30145 cat >>confdefs.h <<\_ACEOF
1e6feb95 30146#define wxUSE_STOPWATCH 1
e6cc62c6 30147_ACEOF
1e6feb95
VZ
30148
30149fi
30150
30151if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 30152 cat >>confdefs.h <<\_ACEOF
1e6feb95 30153#define wxUSE_DATETIME 1
e6cc62c6 30154_ACEOF
1e6feb95
VZ
30155
30156fi
30157
10f2d63a 30158if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 30159 cat >>confdefs.h <<\_ACEOF
10f2d63a 30160#define wxUSE_FILE 1
e6cc62c6 30161_ACEOF
10f2d63a
VZ
30162
30163fi
30164
1e6feb95 30165if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 30166 cat >>confdefs.h <<\_ACEOF
1e6feb95 30167#define wxUSE_FFILE 1
e6cc62c6 30168_ACEOF
1e6feb95
VZ
30169
30170fi
30171
24528b0c 30172if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 30173 cat >>confdefs.h <<\_ACEOF
24528b0c 30174#define wxUSE_FILESYSTEM 1
e6cc62c6 30175_ACEOF
24528b0c
VS
30176
30177fi
30178
10f2d63a 30179if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 30180 cat >>confdefs.h <<\_ACEOF
10f2d63a 30181#define wxUSE_FS_ZIP 1
e6cc62c6 30182_ACEOF
10f2d63a
VZ
30183
30184fi
30185
30186if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 30187 cat >>confdefs.h <<\_ACEOF
10f2d63a 30188#define wxUSE_ZIPSTREAM 1
e6cc62c6 30189_ACEOF
10f2d63a
VZ
30190
30191fi
30192
eb4efbdc 30193if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 30194 cat >>confdefs.h <<\_ACEOF
eb4efbdc 30195#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 30196_ACEOF
eb4efbdc
VZ
30197
30198fi
30199
4f3c5f06 30200if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 30201 cat >>confdefs.h <<\_ACEOF
4f3c5f06 30202#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 30203_ACEOF
4f3c5f06
VZ
30204
30205fi
30206
10f2d63a 30207if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 30208 cat >>confdefs.h <<\_ACEOF
10f2d63a 30209#define wxUSE_BUSYINFO 1
e6cc62c6 30210_ACEOF
10f2d63a
VZ
30211
30212fi
30213
30214if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 30215 cat >>confdefs.h <<\_ACEOF
10f2d63a 30216#define wxUSE_STD_IOSTREAM 1
e6cc62c6 30217_ACEOF
10f2d63a
VZ
30218
30219fi
30220
a3a584a7 30221if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 30222 cat >>confdefs.h <<\_ACEOF
a3a584a7 30223#define wxUSE_TEXTBUFFER 1
e6cc62c6 30224_ACEOF
a3a584a7
VZ
30225
30226fi
30227
10f2d63a 30228if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 30229 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
30230 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30231echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 30232 else
e6cc62c6 30233 cat >>confdefs.h <<\_ACEOF
10f2d63a 30234#define wxUSE_TEXTFILE 1
e6cc62c6 30235_ACEOF
10f2d63a
VZ
30236
30237 fi
30238fi
30239
30240if test "$wxUSE_CONFIG" = "yes" ; then
30241 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
30242 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30243echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 30244 else
e6cc62c6 30245 cat >>confdefs.h <<\_ACEOF
10f2d63a 30246#define wxUSE_CONFIG 1
e6cc62c6 30247_ACEOF
10f2d63a
VZ
30248
30249 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30250 fi
30251fi
30252
30253if test "$wxUSE_INTL" = "yes" ; then
30254 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
30255 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30256echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 30257 else
e6cc62c6 30258 cat >>confdefs.h <<\_ACEOF
10f2d63a 30259#define wxUSE_INTL 1
e6cc62c6 30260_ACEOF
10f2d63a
VZ
30261
30262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 30263 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
30264 fi
30265fi
30266
30267if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 30268 cat >>confdefs.h <<\_ACEOF
10f2d63a 30269#define wxUSE_LOG 1
e6cc62c6 30270_ACEOF
10f2d63a 30271
8284b0c5 30272
d73be714 30273 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 30274 cat >>confdefs.h <<\_ACEOF
d73be714 30275#define wxUSE_LOGGUI 1
e6cc62c6 30276_ACEOF
d73be714
VZ
30277
30278 fi
30279
30280 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 30281 cat >>confdefs.h <<\_ACEOF
d73be714 30282#define wxUSE_LOGWINDOW 1
e6cc62c6 30283_ACEOF
69d27ff7
MB
30284
30285 fi
30286
30287 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 30288 cat >>confdefs.h <<\_ACEOF
69d27ff7 30289#define wxUSE_LOG_DIALOG 1
e6cc62c6 30290_ACEOF
d73be714
VZ
30291
30292 fi
10f2d63a
VZ
30293fi
30294
30295if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 30296 cat >>confdefs.h <<\_ACEOF
10f2d63a 30297#define wxUSE_LONGLONG 1
e6cc62c6 30298_ACEOF
10f2d63a
VZ
30299
30300fi
30301
e8f65ba6 30302if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 30303 cat >>confdefs.h <<\_ACEOF
e8f65ba6 30304#define wxUSE_GEOMETRY 1
e6cc62c6 30305_ACEOF
e8f65ba6
RR
30306
30307fi
30308
10f2d63a 30309if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 30310 cat >>confdefs.h <<\_ACEOF
10f2d63a 30311#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 30312_ACEOF
10f2d63a 30313
70f7a477 30314 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
30315fi
30316
30317if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 30318 cat >>confdefs.h <<\_ACEOF
10f2d63a 30319#define wxUSE_STREAMS 1
e6cc62c6 30320_ACEOF
10f2d63a
VZ
30321
30322fi
30323
5c6fa7d2 30324
8284b0c5 30325if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
30326
30327for ac_func in strptime
83307f33 30328do
e6cc62c6
VS
30329as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30330echo "$as_me:$LINENO: checking for $ac_func" >&5
30331echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30332if eval "test \"\${$as_ac_var+set}\" = set"; then
30333 echo $ECHO_N "(cached) $ECHO_C" >&6
30334else
30335 cat >conftest.$ac_ext <<_ACEOF
30336#line $LINENO "configure"
30337/* confdefs.h. */
30338_ACEOF
30339cat confdefs.h >>conftest.$ac_ext
30340cat >>conftest.$ac_ext <<_ACEOF
30341/* end confdefs.h. */
83307f33 30342/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30343 which can conflict with char $ac_func (); below.
30344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30345 <limits.h> exists even on freestanding compilers. */
30346#ifdef __STDC__
30347# include <limits.h>
30348#else
30349# include <assert.h>
30350#endif
83307f33 30351/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30352#ifdef __cplusplus
30353extern "C"
30354{
30355#endif
83307f33 30356/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30357 builtin and then its argument prototype would still apply. */
30358char $ac_func ();
83307f33
VZ
30359/* The GNU C library defines this for functions which it implements
30360 to always fail with ENOSYS. Some functions are actually named
30361 something starting with __ and the normal name is an alias. */
30362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30363choke me
30364#else
e6cc62c6
VS
30365char (*f) () = $ac_func;
30366#endif
30367#ifdef __cplusplus
30368}
83307f33
VZ
30369#endif
30370
e6cc62c6
VS
30371int
30372main ()
30373{
30374return f != $ac_func;
30375 ;
30376 return 0;
30377}
30378_ACEOF
30379rm -f conftest.$ac_objext conftest$ac_exeext
30380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30381 (eval $ac_link) 2>&5
30382 ac_status=$?
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); } &&
30385 { ac_try='test -s conftest$ac_exeext'
30386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30387 (eval $ac_try) 2>&5
30388 ac_status=$?
30389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390 (exit $ac_status); }; }; then
30391 eval "$as_ac_var=yes"
30392else
30393 echo "$as_me: failed program was:" >&5
30394sed 's/^/| /' conftest.$ac_ext >&5
30395
30396eval "$as_ac_var=no"
30397fi
30398rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30399fi
30400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30401echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30402if test `eval echo '${'$as_ac_var'}'` = yes; then
30403 cat >>confdefs.h <<_ACEOF
30404#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30405_ACEOF
83307f33 30406
83307f33
VZ
30407fi
30408done
30409
5c6fa7d2 30410
e6cc62c6
VS
30411 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30412echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30413if test "${wx_cv_var_timezone+set}" = set; then
30414 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 30415else
e6cc62c6
VS
30416
30417 cat >conftest.$ac_ext <<_ACEOF
30418#line $LINENO "configure"
30419/* confdefs.h. */
30420_ACEOF
30421cat confdefs.h >>conftest.$ac_ext
30422cat >>conftest.$ac_ext <<_ACEOF
30423/* end confdefs.h. */
360d6699 30424
b4085ce6 30425 #include <time.h>
e6cc62c6
VS
30426
30427int
30428main ()
30429{
360d6699
VZ
30430
30431 int tz;
4f11a343 30432 tz = timezone;
e6cc62c6
VS
30433
30434 ;
30435 return 0;
30436}
30437_ACEOF
30438rm -f conftest.$ac_objext
30439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30440 (eval $ac_compile) 2>&5
30441 ac_status=$?
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); } &&
30444 { ac_try='test -s conftest.$ac_objext'
30445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30446 (eval $ac_try) 2>&5
30447 ac_status=$?
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); }; }; then
30450
4f11a343 30451 wx_cv_var_timezone=timezone
e6cc62c6 30452
360d6699 30453else
e6cc62c6
VS
30454 echo "$as_me: failed program was:" >&5
30455sed 's/^/| /' conftest.$ac_ext >&5
30456
30457
30458 cat >conftest.$ac_ext <<_ACEOF
30459#line $LINENO "configure"
30460/* confdefs.h. */
30461_ACEOF
30462cat confdefs.h >>conftest.$ac_ext
30463cat >>conftest.$ac_ext <<_ACEOF
30464/* end confdefs.h. */
360d6699 30465
b4085ce6 30466 #include <time.h>
e6cc62c6
VS
30467
30468int
30469main ()
30470{
360d6699
VZ
30471
30472 int tz;
30473 tz = _timezone;
e6cc62c6
VS
30474
30475 ;
30476 return 0;
30477}
30478_ACEOF
30479rm -f conftest.$ac_objext
30480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30481 (eval $ac_compile) 2>&5
30482 ac_status=$?
30483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484 (exit $ac_status); } &&
30485 { ac_try='test -s conftest.$ac_objext'
30486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30487 (eval $ac_try) 2>&5
30488 ac_status=$?
30489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490 (exit $ac_status); }; }; then
30491
360d6699 30492 wx_cv_var_timezone=_timezone
e6cc62c6 30493
5357c8e8 30494else
e6cc62c6
VS
30495 echo "$as_me: failed program was:" >&5
30496sed 's/^/| /' conftest.$ac_ext >&5
30497
30498
30499 cat >conftest.$ac_ext <<_ACEOF
30500#line $LINENO "configure"
30501/* confdefs.h. */
30502_ACEOF
30503cat confdefs.h >>conftest.$ac_ext
30504cat >>conftest.$ac_ext <<_ACEOF
30505/* end confdefs.h. */
5357c8e8 30506
b4085ce6 30507 #include <time.h>
e6cc62c6
VS
30508
30509int
30510main ()
30511{
5357c8e8
VZ
30512
30513 int tz;
4f11a343 30514 tz = __timezone;
e6cc62c6
VS
30515
30516 ;
30517 return 0;
30518}
30519_ACEOF
30520rm -f conftest.$ac_objext
30521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30522 (eval $ac_compile) 2>&5
30523 ac_status=$?
30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); } &&
30526 { ac_try='test -s conftest.$ac_objext'
30527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30528 (eval $ac_try) 2>&5
30529 ac_status=$?
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); }; }; then
30532
4f11a343 30533 wx_cv_var_timezone=__timezone
e6cc62c6 30534
360d6699 30535else
e6cc62c6
VS
30536 echo "$as_me: failed program was:" >&5
30537sed 's/^/| /' conftest.$ac_ext >&5
30538
30539
f9bc1684 30540 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
30541 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30542echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 30543 fi
e6cc62c6
VS
30544
30545
7b4a847f 30546fi
e6cc62c6
VS
30547rm -f conftest.$ac_objext conftest.$ac_ext
30548
30549
5c6fa7d2 30550fi
e6cc62c6
VS
30551rm -f conftest.$ac_objext conftest.$ac_ext
30552
30553
247f5006 30554fi
e6cc62c6 30555rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30556
e6cc62c6
VS
30557
30558fi
30559echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30560echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 30561
f9bc1684 30562 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 30563 cat >>confdefs.h <<_ACEOF
360d6699 30564#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 30565_ACEOF
360d6699 30566
f9bc1684 30567 fi
698dcdb6 30568
e6cc62c6
VS
30569
30570for ac_func in localtime
afc31813 30571do
e6cc62c6
VS
30572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30573echo "$as_me:$LINENO: checking for $ac_func" >&5
30574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30575if eval "test \"\${$as_ac_var+set}\" = set"; then
30576 echo $ECHO_N "(cached) $ECHO_C" >&6
30577else
30578 cat >conftest.$ac_ext <<_ACEOF
30579#line $LINENO "configure"
30580/* confdefs.h. */
30581_ACEOF
30582cat confdefs.h >>conftest.$ac_ext
30583cat >>conftest.$ac_ext <<_ACEOF
30584/* end confdefs.h. */
afc31813 30585/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30586 which can conflict with char $ac_func (); below.
30587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30588 <limits.h> exists even on freestanding compilers. */
30589#ifdef __STDC__
30590# include <limits.h>
30591#else
30592# include <assert.h>
30593#endif
afc31813 30594/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30595#ifdef __cplusplus
30596extern "C"
30597{
30598#endif
afc31813 30599/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30600 builtin and then its argument prototype would still apply. */
30601char $ac_func ();
afc31813
VZ
30602/* The GNU C library defines this for functions which it implements
30603 to always fail with ENOSYS. Some functions are actually named
30604 something starting with __ and the normal name is an alias. */
30605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30606choke me
30607#else
e6cc62c6
VS
30608char (*f) () = $ac_func;
30609#endif
30610#ifdef __cplusplus
30611}
afc31813
VZ
30612#endif
30613
e6cc62c6
VS
30614int
30615main ()
30616{
30617return f != $ac_func;
30618 ;
30619 return 0;
30620}
30621_ACEOF
30622rm -f conftest.$ac_objext conftest$ac_exeext
30623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30624 (eval $ac_link) 2>&5
30625 ac_status=$?
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); } &&
30628 { ac_try='test -s conftest$ac_exeext'
30629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30630 (eval $ac_try) 2>&5
30631 ac_status=$?
30632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633 (exit $ac_status); }; }; then
30634 eval "$as_ac_var=yes"
30635else
30636 echo "$as_me: failed program was:" >&5
30637sed 's/^/| /' conftest.$ac_ext >&5
30638
30639eval "$as_ac_var=no"
30640fi
30641rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30642fi
30643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30644echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30645if test `eval echo '${'$as_ac_var'}'` = yes; then
30646 cat >>confdefs.h <<_ACEOF
30647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30648_ACEOF
afc31813 30649
afc31813
VZ
30650fi
30651done
30652
5c6fa7d2 30653
8284b0c5 30654 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
30655 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30656echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30657if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30658 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 30659else
e6cc62c6
VS
30660
30661 cat >conftest.$ac_ext <<_ACEOF
30662#line $LINENO "configure"
30663/* confdefs.h. */
30664_ACEOF
30665cat confdefs.h >>conftest.$ac_ext
30666cat >>conftest.$ac_ext <<_ACEOF
30667/* end confdefs.h. */
0470b1e6 30668
b4085ce6 30669 #include <time.h>
e6cc62c6
VS
30670
30671int
30672main ()
30673{
0470b1e6
VZ
30674
30675 struct tm tm;
30676 tm.tm_gmtoff++;
e6cc62c6
VS
30677
30678 ;
30679 return 0;
30680}
30681_ACEOF
30682rm -f conftest.$ac_objext
30683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30684 (eval $ac_compile) 2>&5
30685 ac_status=$?
30686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687 (exit $ac_status); } &&
30688 { ac_try='test -s conftest.$ac_objext'
30689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30690 (eval $ac_try) 2>&5
30691 ac_status=$?
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); }; }; then
30694
f03a98d8 30695 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 30696
0470b1e6 30697else
e6cc62c6
VS
30698 echo "$as_me: failed program was:" >&5
30699sed 's/^/| /' conftest.$ac_ext >&5
30700
30701wx_cv_struct_tm_has_gmtoff=no
30702
247f5006 30703fi
e6cc62c6 30704rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30705
e6cc62c6
VS
30706fi
30707echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30708echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
30709 fi
30710
30711 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 30712 cat >>confdefs.h <<\_ACEOF
6232543b 30713#define WX_GMTOFF_IN_TM 1
e6cc62c6 30714_ACEOF
0470b1e6 30715
3fcdd07b
VZ
30716 fi
30717
e6cc62c6
VS
30718
30719
30720for ac_func in gettimeofday ftime
3fcdd07b 30721do
e6cc62c6
VS
30722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30723echo "$as_me:$LINENO: checking for $ac_func" >&5
30724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30725if eval "test \"\${$as_ac_var+set}\" = set"; then
30726 echo $ECHO_N "(cached) $ECHO_C" >&6
30727else
30728 cat >conftest.$ac_ext <<_ACEOF
30729#line $LINENO "configure"
30730/* confdefs.h. */
30731_ACEOF
30732cat confdefs.h >>conftest.$ac_ext
30733cat >>conftest.$ac_ext <<_ACEOF
30734/* end confdefs.h. */
3fcdd07b 30735/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30736 which can conflict with char $ac_func (); below.
30737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30738 <limits.h> exists even on freestanding compilers. */
30739#ifdef __STDC__
30740# include <limits.h>
30741#else
30742# include <assert.h>
30743#endif
3fcdd07b 30744/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30745#ifdef __cplusplus
30746extern "C"
30747{
30748#endif
3fcdd07b 30749/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30750 builtin and then its argument prototype would still apply. */
30751char $ac_func ();
3fcdd07b
VZ
30752/* The GNU C library defines this for functions which it implements
30753 to always fail with ENOSYS. Some functions are actually named
30754 something starting with __ and the normal name is an alias. */
30755#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30756choke me
30757#else
e6cc62c6
VS
30758char (*f) () = $ac_func;
30759#endif
30760#ifdef __cplusplus
30761}
3fcdd07b
VZ
30762#endif
30763
e6cc62c6
VS
30764int
30765main ()
30766{
30767return f != $ac_func;
30768 ;
30769 return 0;
30770}
30771_ACEOF
30772rm -f conftest.$ac_objext conftest$ac_exeext
30773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30774 (eval $ac_link) 2>&5
30775 ac_status=$?
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); } &&
30778 { ac_try='test -s conftest$ac_exeext'
30779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30780 (eval $ac_try) 2>&5
30781 ac_status=$?
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); }; }; then
30784 eval "$as_ac_var=yes"
30785else
30786 echo "$as_me: failed program was:" >&5
30787sed 's/^/| /' conftest.$ac_ext >&5
30788
30789eval "$as_ac_var=no"
30790fi
30791rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30792fi
30793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30794echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30795if test `eval echo '${'$as_ac_var'}'` = yes; then
30796 cat >>confdefs.h <<_ACEOF
30797#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30798_ACEOF
3fcdd07b 30799 break
3fcdd07b
VZ
30800fi
30801done
30802
698dcdb6 30803
8284b0c5 30804 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
30805 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30806echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30807if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30808 echo $ECHO_N "(cached) $ECHO_C" >&6
30809else
30810
30811
30812
30813 ac_ext=cc
5c6fa7d2 30814ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 30818
8284b0c5 30819
e6cc62c6
VS
30820 cat >conftest.$ac_ext <<_ACEOF
30821#line $LINENO "configure"
30822/* confdefs.h. */
30823_ACEOF
30824cat confdefs.h >>conftest.$ac_ext
30825cat >>conftest.$ac_ext <<_ACEOF
30826/* end confdefs.h. */
afc31813
VZ
30827
30828 #include <sys/time.h>
30829 #include <unistd.h>
e6cc62c6
VS
30830
30831int
30832main ()
30833{
afc31813
VZ
30834
30835 struct timeval tv;
776862b4 30836 gettimeofday(&tv, NULL);
e6cc62c6
VS
30837
30838 ;
30839 return 0;
30840}
30841_ACEOF
30842rm -f conftest.$ac_objext
30843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30844 (eval $ac_compile) 2>&5
30845 ac_status=$?
30846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847 (exit $ac_status); } &&
30848 { ac_try='test -s conftest.$ac_objext'
30849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30850 (eval $ac_try) 2>&5
30851 ac_status=$?
30852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853 (exit $ac_status); }; }; then
afc31813 30854 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 30855else
e6cc62c6
VS
30856 echo "$as_me: failed program was:" >&5
30857sed 's/^/| /' conftest.$ac_ext >&5
30858
30859cat >conftest.$ac_ext <<_ACEOF
30860#line $LINENO "configure"
30861/* confdefs.h. */
30862_ACEOF
30863cat confdefs.h >>conftest.$ac_ext
30864cat >>conftest.$ac_ext <<_ACEOF
30865/* end confdefs.h. */
afc31813
VZ
30866
30867 #include <sys/time.h>
30868 #include <unistd.h>
e6cc62c6
VS
30869
30870int
30871main ()
30872{
afc31813
VZ
30873
30874 struct timeval tv;
30875 gettimeofday(&tv);
e6cc62c6
VS
30876
30877 ;
30878 return 0;
30879}
30880_ACEOF
30881rm -f conftest.$ac_objext
30882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30883 (eval $ac_compile) 2>&5
30884 ac_status=$?
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); } &&
30887 { ac_try='test -s conftest.$ac_objext'
30888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30889 (eval $ac_try) 2>&5
30890 ac_status=$?
30891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30892 (exit $ac_status); }; }; then
afc31813 30893 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 30894else
e6cc62c6
VS
30895 echo "$as_me: failed program was:" >&5
30896sed 's/^/| /' conftest.$ac_ext >&5
30897
30898
30899 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
30900echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 30901 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
30902
30903
10f2d63a 30904fi
e6cc62c6
VS
30905rm -f conftest.$ac_objext conftest.$ac_ext
30906
10f2d63a 30907fi
e6cc62c6 30908rm -f conftest.$ac_objext conftest.$ac_ext
afc31813 30909 ac_ext=c
10f2d63a 30910ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30913ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 30914
a0b9e27f 30915
e6cc62c6
VS
30916fi
30917echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
30918echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 30919
afc31813 30920 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 30921 cat >>confdefs.h <<\_ACEOF
afc31813 30922#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 30923_ACEOF
afc31813
VZ
30924
30925 fi
30926 fi
30927
afc31813
VZ
30928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
30929fi
30930
8284b0c5 30931
52127426 30932if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 30933 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
30934 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
30935echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
30936 wxUSE_SOCKETS="no"
30937 fi
3879ecda
VZ
30938 if test "$wxUSE_COCOA" = "1"; then
30939 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
30940echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
30941 wxUSE_SOCKETS="no"
30942 fi
0feee163 30943fi
b089607b 30944
0feee163
VZ
30945if test "$wxUSE_SOCKETS" = "yes"; then
30946 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
30947 echo "$as_me:$LINENO: checking for socket" >&5
30948echo $ECHO_N "checking for socket... $ECHO_C" >&6
30949if test "${ac_cv_func_socket+set}" = set; then
30950 echo $ECHO_N "(cached) $ECHO_C" >&6
30951else
30952 cat >conftest.$ac_ext <<_ACEOF
30953#line $LINENO "configure"
30954/* confdefs.h. */
30955_ACEOF
30956cat confdefs.h >>conftest.$ac_ext
30957cat >>conftest.$ac_ext <<_ACEOF
30958/* end confdefs.h. */
c63c7106 30959/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30960 which can conflict with char socket (); below.
30961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30962 <limits.h> exists even on freestanding compilers. */
30963#ifdef __STDC__
30964# include <limits.h>
30965#else
30966# include <assert.h>
30967#endif
c63c7106 30968/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30969#ifdef __cplusplus
30970extern "C"
30971{
30972#endif
c63c7106 30973/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30974 builtin and then its argument prototype would still apply. */
30975char socket ();
c63c7106
VZ
30976/* The GNU C library defines this for functions which it implements
30977 to always fail with ENOSYS. Some functions are actually named
30978 something starting with __ and the normal name is an alias. */
30979#if defined (__stub_socket) || defined (__stub___socket)
30980choke me
30981#else
e6cc62c6
VS
30982char (*f) () = socket;
30983#endif
30984#ifdef __cplusplus
30985}
c63c7106
VZ
30986#endif
30987
e6cc62c6
VS
30988int
30989main ()
30990{
30991return f != socket;
30992 ;
30993 return 0;
30994}
30995_ACEOF
30996rm -f conftest.$ac_objext conftest$ac_exeext
30997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30998 (eval $ac_link) 2>&5
30999 ac_status=$?
31000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001 (exit $ac_status); } &&
31002 { ac_try='test -s conftest$ac_exeext'
31003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31004 (eval $ac_try) 2>&5
31005 ac_status=$?
31006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31007 (exit $ac_status); }; }; then
31008 ac_cv_func_socket=yes
31009else
31010 echo "$as_me: failed program was:" >&5
31011sed 's/^/| /' conftest.$ac_ext >&5
31012
31013ac_cv_func_socket=no
31014fi
31015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31016fi
31017echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
31018echo "${ECHO_T}$ac_cv_func_socket" >&6
31019if test $ac_cv_func_socket = yes; then
c63c7106
VZ
31020 :
31021else
e6cc62c6
VS
31022 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
31023echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
31024if test "${ac_cv_lib_socket_socket+set}" = set; then
31025 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 31026else
e6cc62c6 31027 ac_check_lib_save_LIBS=$LIBS
c63c7106 31028LIBS="-lsocket $LIBS"
e6cc62c6
VS
31029cat >conftest.$ac_ext <<_ACEOF
31030#line $LINENO "configure"
31031/* confdefs.h. */
31032_ACEOF
31033cat confdefs.h >>conftest.$ac_ext
31034cat >>conftest.$ac_ext <<_ACEOF
31035/* end confdefs.h. */
31036
c63c7106 31037/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31038#ifdef __cplusplus
31039extern "C"
31040#endif
c63c7106 31041/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31042 builtin and then its argument prototype would still apply. */
31043char socket ();
31044int
31045main ()
31046{
31047socket ();
31048 ;
31049 return 0;
31050}
31051_ACEOF
31052rm -f conftest.$ac_objext conftest$ac_exeext
31053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31054 (eval $ac_link) 2>&5
31055 ac_status=$?
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); } &&
31058 { ac_try='test -s conftest$ac_exeext'
31059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31060 (eval $ac_try) 2>&5
31061 ac_status=$?
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); }; }; then
31064 ac_cv_lib_socket_socket=yes
31065else
31066 echo "$as_me: failed program was:" >&5
31067sed 's/^/| /' conftest.$ac_ext >&5
31068
31069ac_cv_lib_socket_socket=no
31070fi
31071rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31072LIBS=$ac_check_lib_save_LIBS
31073fi
31074echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31075echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31076if test $ac_cv_lib_socket_socket = yes; then
d558c907
VS
31077 if test "$INET_LINK" != " -lsocket"; then
31078 INET_LINK="$INET_LINK -lsocket"
31079 fi
c63c7106 31080else
afc31813 31081
e6cc62c6
VS
31082 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
31083echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
3a922bb4 31084 wxUSE_SOCKETS=no
e6cc62c6
VS
31085
31086
6232543b 31087fi
b089607b 31088
e6cc62c6 31089
1e487827 31090fi
afc31813 31091
3a922bb4 31092 fi
0feee163 31093fi
51a9faba 31094
0feee163
VZ
31095if test "$wxUSE_SOCKETS" = "yes" ; then
31096 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
31097 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31098echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31099if test "${wx_cv_type_getsockname3+set}" = set; then
31100 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 31101else
e6cc62c6
VS
31102
31103 cat >conftest.$ac_ext <<_ACEOF
31104#line $LINENO "configure"
31105/* confdefs.h. */
31106_ACEOF
31107cat confdefs.h >>conftest.$ac_ext
31108cat >>conftest.$ac_ext <<_ACEOF
31109/* end confdefs.h. */
51a9faba 31110
3a922bb4
RL
31111 #include <sys/types.h>
31112 #include <sys/socket.h>
e6cc62c6
VS
31113
31114int
31115main ()
31116{
51a9faba 31117
3a922bb4
RL
31118 socklen_t len;
31119 getsockname(0, 0, &len);
e6cc62c6
VS
31120
31121 ;
31122 return 0;
31123}
31124_ACEOF
31125rm -f conftest.$ac_objext
31126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31127 (eval $ac_compile) 2>&5
31128 ac_status=$?
31129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130 (exit $ac_status); } &&
31131 { ac_try='test -s conftest.$ac_objext'
31132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31133 (eval $ac_try) 2>&5
31134 ac_status=$?
31135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136 (exit $ac_status); }; }; then
51a9faba 31137 wx_cv_type_getsockname3=socklen_t
afc31813 31138else
e6cc62c6
VS
31139 echo "$as_me: failed program was:" >&5
31140sed 's/^/| /' conftest.$ac_ext >&5
31141
31142
9711d31e
GD
31143 CFLAGS_OLD="$CFLAGS"
31144 if test "$GCC" = yes ; then
31145 CFLAGS="$CFLAGS -Werror"
31146 fi
31147
e6cc62c6
VS
31148 cat >conftest.$ac_ext <<_ACEOF
31149#line $LINENO "configure"
31150/* confdefs.h. */
31151_ACEOF
31152cat confdefs.h >>conftest.$ac_ext
31153cat >>conftest.$ac_ext <<_ACEOF
31154/* end confdefs.h. */
51a9faba 31155
9711d31e
GD
31156 #include <sys/types.h>
31157 #include <sys/socket.h>
e6cc62c6
VS
31158
31159int
31160main ()
31161{
51a9faba 31162
9711d31e
GD
31163 size_t len;
31164 getsockname(0, 0, &len);
e6cc62c6
VS
31165
31166 ;
31167 return 0;
31168}
31169_ACEOF
31170rm -f conftest.$ac_objext
31171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31172 (eval $ac_compile) 2>&5
31173 ac_status=$?
31174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175 (exit $ac_status); } &&
31176 { ac_try='test -s conftest.$ac_objext'
31177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31178 (eval $ac_try) 2>&5
31179 ac_status=$?
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); }; }; then
51a9faba 31182 wx_cv_type_getsockname3=size_t
afc31813 31183else
e6cc62c6
VS
31184 echo "$as_me: failed program was:" >&5
31185sed 's/^/| /' conftest.$ac_ext >&5
31186
31187cat >conftest.$ac_ext <<_ACEOF
31188#line $LINENO "configure"
31189/* confdefs.h. */
31190_ACEOF
31191cat confdefs.h >>conftest.$ac_ext
31192cat >>conftest.$ac_ext <<_ACEOF
31193/* end confdefs.h. */
51a9faba 31194
9711d31e
GD
31195 #include <sys/types.h>
31196 #include <sys/socket.h>
e6cc62c6
VS
31197
31198int
31199main ()
31200{
51a9faba 31201
9711d31e
GD
31202 int len;
31203 getsockname(0, 0, &len);
e6cc62c6
VS
31204
31205 ;
31206 return 0;
31207}
31208_ACEOF
31209rm -f conftest.$ac_objext
31210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31211 (eval $ac_compile) 2>&5
31212 ac_status=$?
31213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31214 (exit $ac_status); } &&
31215 { ac_try='test -s conftest.$ac_objext'
31216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31217 (eval $ac_try) 2>&5
31218 ac_status=$?
31219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220 (exit $ac_status); }; }; then
51a9faba 31221 wx_cv_type_getsockname3=int
afc31813 31222else
e6cc62c6
VS
31223 echo "$as_me: failed program was:" >&5
31224sed 's/^/| /' conftest.$ac_ext >&5
31225
31226wx_cv_type_getsockname3=unknown
31227
afc31813 31228fi
e6cc62c6
VS
31229rm -f conftest.$ac_objext conftest.$ac_ext
31230
afc31813 31231fi
e6cc62c6 31232rm -f conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
31233
31234 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
31235
31236
247f5006 31237fi
e6cc62c6 31238rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 31239
e6cc62c6
VS
31240fi
31241echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31242echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 31243
3a922bb4
RL
31244 if test "$wx_cv_type_getsockname3" = "unknown"; then
31245 wxUSE_SOCKETS=no
e6cc62c6
VS
31246 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31247echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 31248 else
e6cc62c6 31249 cat >>confdefs.h <<_ACEOF
51a9faba 31250#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 31251_ACEOF
51a9faba 31252
3a922bb4 31253 fi
51a9faba
VZ
31254 fi
31255fi
afc31813 31256
51a9faba 31257if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 31258 cat >>confdefs.h <<\_ACEOF
afc31813 31259#define wxUSE_SOCKETS 1
e6cc62c6 31260_ACEOF
afc31813 31261
70f7a477 31262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
31263fi
31264
3879ecda
VZ
31265if test "$wxUSE_PROTOCOL" = "yes"; then
31266 if test "$wxUSE_SOCKETS" != "yes"; then
31267 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31268echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31269 wxUSE_PROTOCOL=no
31270 fi
31271fi
31272
31273if test "$wxUSE_PROTOCOL" = "yes"; then
31274 cat >>confdefs.h <<\_ACEOF
31275#define wxUSE_PROTOCOL 1
31276_ACEOF
31277
31278
31279 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31280 cat >>confdefs.h <<\_ACEOF
31281#define wxUSE_PROTOCOL_HTTP 1
31282_ACEOF
31283
31284 fi
31285 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31286 cat >>confdefs.h <<\_ACEOF
31287#define wxUSE_PROTOCOL_FTP 1
31288_ACEOF
31289
31290 fi
31291 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31292 cat >>confdefs.h <<\_ACEOF
31293#define wxUSE_PROTOCOL_FILE 1
31294_ACEOF
31295
31296 fi
31297else
31298 if test "$wxUSE_FS_INET" = "yes"; then
31299 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31300echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31301 wxUSE_FS_INET="no"
31302 fi
31303fi
31304
31305if test "$wxUSE_URL" = "yes"; then
31306 if test "$wxUSE_PROTOCOL" != "yes"; then
31307 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31308echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31309 wxUSE_URL=no
31310 fi
31311 if test "$wxUSE_URL" = "yes"; then
31312 cat >>confdefs.h <<\_ACEOF
31313#define wxUSE_URL 1
31314_ACEOF
31315
31316 fi
31317fi
31318
31319if test "$wxUSE_FS_INET" = "yes"; then
31320 cat >>confdefs.h <<\_ACEOF
31321#define wxUSE_FS_INET 1
31322_ACEOF
31323
31324fi
31325
8284b0c5 31326
dc3d889d
VZ
31327if test "$wxUSE_GUI" = "yes"; then
31328
ac0c4cc3 31329 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
31330 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31331echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523 31332 wxUSE_JOYSTICK=no
156b2523
GD
31333 fi
31334
131f235d 31335 if test "$TOOLKIT" != "MSW"; then
3a922bb4 31336 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
31337
31338for ac_header in linux/joystick.h
10f2d63a 31339do
e6cc62c6
VS
31340as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31341if eval "test \"\${$as_ac_Header+set}\" = set"; then
31342 echo "$as_me:$LINENO: checking for $ac_header" >&5
31343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31344if eval "test \"\${$as_ac_Header+set}\" = set"; then
31345 echo $ECHO_N "(cached) $ECHO_C" >&6
31346fi
31347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31349else
31350 # Is the header compilable?
31351echo "$as_me:$LINENO: checking $ac_header usability" >&5
31352echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31353cat >conftest.$ac_ext <<_ACEOF
31354#line $LINENO "configure"
31355/* confdefs.h. */
31356_ACEOF
31357cat confdefs.h >>conftest.$ac_ext
31358cat >>conftest.$ac_ext <<_ACEOF
31359/* end confdefs.h. */
31360$ac_includes_default
31361#include <$ac_header>
31362_ACEOF
31363rm -f conftest.$ac_objext
31364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31365 (eval $ac_compile) 2>&5
31366 ac_status=$?
31367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368 (exit $ac_status); } &&
31369 { ac_try='test -s conftest.$ac_objext'
31370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31371 (eval $ac_try) 2>&5
31372 ac_status=$?
31373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374 (exit $ac_status); }; }; then
31375 ac_header_compiler=yes
31376else
31377 echo "$as_me: failed program was:" >&5
31378sed 's/^/| /' conftest.$ac_ext >&5
31379
31380ac_header_compiler=no
31381fi
31382rm -f conftest.$ac_objext conftest.$ac_ext
31383echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31384echo "${ECHO_T}$ac_header_compiler" >&6
31385
31386# Is the header present?
31387echo "$as_me:$LINENO: checking $ac_header presence" >&5
31388echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31389cat >conftest.$ac_ext <<_ACEOF
31390#line $LINENO "configure"
31391/* confdefs.h. */
31392_ACEOF
31393cat confdefs.h >>conftest.$ac_ext
31394cat >>conftest.$ac_ext <<_ACEOF
31395/* end confdefs.h. */
31396#include <$ac_header>
31397_ACEOF
31398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31400 ac_status=$?
31401 grep -v '^ *+' conftest.er1 >conftest.err
31402 rm -f conftest.er1
31403 cat conftest.err >&5
31404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405 (exit $ac_status); } >/dev/null; then
31406 if test -s conftest.err; then
31407 ac_cpp_err=$ac_c_preproc_warn_flag
31408 else
31409 ac_cpp_err=
31410 fi
31411else
31412 ac_cpp_err=yes
31413fi
31414if test -z "$ac_cpp_err"; then
31415 ac_header_preproc=yes
31416else
31417 echo "$as_me: failed program was:" >&5
31418sed 's/^/| /' conftest.$ac_ext >&5
31419
31420 ac_header_preproc=no
31421fi
31422rm -f conftest.err conftest.$ac_ext
31423echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31424echo "${ECHO_T}$ac_header_preproc" >&6
31425
31426# So? What about this header?
31427case $ac_header_compiler:$ac_header_preproc in
31428 yes:no )
31429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31430echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31432echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31433 (
31434 cat <<\_ASBOX
31435## ------------------------------------ ##
31436## Report this to bug-autoconf@gnu.org. ##
31437## ------------------------------------ ##
31438_ASBOX
31439 ) |
31440 sed "s/^/$as_me: WARNING: /" >&2
31441 ;;
31442 no:yes )
31443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31444echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31446echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31448echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31449 (
31450 cat <<\_ASBOX
31451## ------------------------------------ ##
31452## Report this to bug-autoconf@gnu.org. ##
31453## ------------------------------------ ##
31454_ASBOX
31455 ) |
31456 sed "s/^/$as_me: WARNING: /" >&2
31457 ;;
31458esac
31459echo "$as_me:$LINENO: checking for $ac_header" >&5
31460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31461if eval "test \"\${$as_ac_Header+set}\" = set"; then
31462 echo $ECHO_N "(cached) $ECHO_C" >&6
31463else
31464 eval "$as_ac_Header=$ac_header_preproc"
247f5006 31465fi
e6cc62c6
VS
31466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31467echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31468
10f2d63a 31469fi
e6cc62c6
VS
31470if test `eval echo '${'$as_ac_Header'}'` = yes; then
31471 cat >>confdefs.h <<_ACEOF
31472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31473_ACEOF
31474
247f5006 31475fi
e6cc62c6 31476
10f2d63a
VZ
31477done
31478
3a922bb4
RL
31479 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31480 wxUSE_JOYSTICK=no
e6cc62c6
VS
31481 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31482echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
31483 fi
31484 fi
31485 fi
b089607b 31486
3a922bb4 31487 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 31488 cat >>confdefs.h <<\_ACEOF
10f2d63a 31489#define wxUSE_JOYSTICK 1
e6cc62c6 31490_ACEOF
10f2d63a 31491
3a922bb4
RL
31492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31493 fi
dc3d889d
VZ
31494fi
31495
8284b0c5 31496
b089607b
VZ
31497if test "$TOOLKIT" != "MSW"; then
31498
3a922bb4
RL
31499 HAVE_DL_FUNCS=0
31500 HAVE_SHL_FUNCS=0
0b9ab0bd 31501 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
31502 if test "$USE_DARWIN" = 1; then
31503 HAVE_DL_FUNCS=1
31504 else
e6cc62c6
VS
31505
31506for ac_func in dlopen
10f2d63a 31507do
e6cc62c6
VS
31508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31509echo "$as_me:$LINENO: checking for $ac_func" >&5
31510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31511if eval "test \"\${$as_ac_var+set}\" = set"; then
31512 echo $ECHO_N "(cached) $ECHO_C" >&6
31513else
31514 cat >conftest.$ac_ext <<_ACEOF
31515#line $LINENO "configure"
31516/* confdefs.h. */
31517_ACEOF
31518cat confdefs.h >>conftest.$ac_ext
31519cat >>conftest.$ac_ext <<_ACEOF
31520/* end confdefs.h. */
10f2d63a 31521/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31522 which can conflict with char $ac_func (); below.
31523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31524 <limits.h> exists even on freestanding compilers. */
31525#ifdef __STDC__
31526# include <limits.h>
31527#else
31528# include <assert.h>
31529#endif
10f2d63a 31530/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31531#ifdef __cplusplus
31532extern "C"
31533{
31534#endif
10f2d63a 31535/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31536 builtin and then its argument prototype would still apply. */
31537char $ac_func ();
10f2d63a
VZ
31538/* The GNU C library defines this for functions which it implements
31539 to always fail with ENOSYS. Some functions are actually named
31540 something starting with __ and the normal name is an alias. */
31541#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31542choke me
31543#else
e6cc62c6
VS
31544char (*f) () = $ac_func;
31545#endif
31546#ifdef __cplusplus
31547}
10f2d63a
VZ
31548#endif
31549
e6cc62c6
VS
31550int
31551main ()
31552{
31553return f != $ac_func;
31554 ;
31555 return 0;
31556}
31557_ACEOF
31558rm -f conftest.$ac_objext conftest$ac_exeext
31559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31560 (eval $ac_link) 2>&5
31561 ac_status=$?
31562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563 (exit $ac_status); } &&
31564 { ac_try='test -s conftest$ac_exeext'
31565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31566 (eval $ac_try) 2>&5
31567 ac_status=$?
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); }; }; then
31570 eval "$as_ac_var=yes"
31571else
31572 echo "$as_me: failed program was:" >&5
31573sed 's/^/| /' conftest.$ac_ext >&5
31574
31575eval "$as_ac_var=no"
31576fi
31577rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31578fi
31579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31580echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31581if test `eval echo '${'$as_ac_var'}'` = yes; then
31582 cat >>confdefs.h <<_ACEOF
31583#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31584_ACEOF
31585
31586 cat >>confdefs.h <<\_ACEOF
10f2d63a 31587#define HAVE_DLOPEN 1
e6cc62c6 31588_ACEOF
10f2d63a 31589
3a922bb4 31590 HAVE_DL_FUNCS=1
e6cc62c6 31591
10f2d63a 31592else
e6cc62c6
VS
31593
31594 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31595echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31596if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31597 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31598else
e6cc62c6 31599 ac_check_lib_save_LIBS=$LIBS
10f2d63a 31600LIBS="-ldl $LIBS"
e6cc62c6
VS
31601cat >conftest.$ac_ext <<_ACEOF
31602#line $LINENO "configure"
31603/* confdefs.h. */
31604_ACEOF
31605cat confdefs.h >>conftest.$ac_ext
31606cat >>conftest.$ac_ext <<_ACEOF
31607/* end confdefs.h. */
31608
10f2d63a 31609/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31610#ifdef __cplusplus
31611extern "C"
31612#endif
10f2d63a 31613/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31614 builtin and then its argument prototype would still apply. */
31615char dlopen ();
31616int
31617main ()
31618{
31619dlopen ();
31620 ;
31621 return 0;
31622}
31623_ACEOF
31624rm -f conftest.$ac_objext conftest$ac_exeext
31625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31626 (eval $ac_link) 2>&5
31627 ac_status=$?
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); } &&
31630 { ac_try='test -s conftest$ac_exeext'
31631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31632 (eval $ac_try) 2>&5
31633 ac_status=$?
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); }; }; then
31636 ac_cv_lib_dl_dlopen=yes
31637else
31638 echo "$as_me: failed program was:" >&5
31639sed 's/^/| /' conftest.$ac_ext >&5
31640
31641ac_cv_lib_dl_dlopen=no
31642fi
31643rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31644LIBS=$ac_check_lib_save_LIBS
31645fi
31646echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31647echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31648if test $ac_cv_lib_dl_dlopen = yes; then
31649
31650 cat >>confdefs.h <<\_ACEOF
10f2d63a 31651#define HAVE_DLOPEN 1
e6cc62c6 31652_ACEOF
10f2d63a 31653
3a922bb4 31654 HAVE_DL_FUNCS=1
3d63bc3a 31655 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 31656
10f2d63a 31657else
10f2d63a 31658
e6cc62c6
VS
31659
31660for ac_func in shl_load
10f2d63a 31661do
e6cc62c6
VS
31662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31663echo "$as_me:$LINENO: checking for $ac_func" >&5
31664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31665if eval "test \"\${$as_ac_var+set}\" = set"; then
31666 echo $ECHO_N "(cached) $ECHO_C" >&6
31667else
31668 cat >conftest.$ac_ext <<_ACEOF
31669#line $LINENO "configure"
31670/* confdefs.h. */
31671_ACEOF
31672cat confdefs.h >>conftest.$ac_ext
31673cat >>conftest.$ac_ext <<_ACEOF
31674/* end confdefs.h. */
10f2d63a 31675/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31676 which can conflict with char $ac_func (); below.
31677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31678 <limits.h> exists even on freestanding compilers. */
31679#ifdef __STDC__
31680# include <limits.h>
31681#else
31682# include <assert.h>
31683#endif
10f2d63a 31684/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31685#ifdef __cplusplus
31686extern "C"
31687{
31688#endif
10f2d63a 31689/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31690 builtin and then its argument prototype would still apply. */
31691char $ac_func ();
10f2d63a
VZ
31692/* The GNU C library defines this for functions which it implements
31693 to always fail with ENOSYS. Some functions are actually named
31694 something starting with __ and the normal name is an alias. */
31695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31696choke me
31697#else
e6cc62c6
VS
31698char (*f) () = $ac_func;
31699#endif
31700#ifdef __cplusplus
31701}
10f2d63a
VZ
31702#endif
31703
e6cc62c6
VS
31704int
31705main ()
31706{
31707return f != $ac_func;
31708 ;
31709 return 0;
31710}
31711_ACEOF
31712rm -f conftest.$ac_objext conftest$ac_exeext
31713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31714 (eval $ac_link) 2>&5
31715 ac_status=$?
31716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717 (exit $ac_status); } &&
31718 { ac_try='test -s conftest$ac_exeext'
31719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31720 (eval $ac_try) 2>&5
31721 ac_status=$?
31722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723 (exit $ac_status); }; }; then
31724 eval "$as_ac_var=yes"
31725else
31726 echo "$as_me: failed program was:" >&5
31727sed 's/^/| /' conftest.$ac_ext >&5
31728
31729eval "$as_ac_var=no"
31730fi
31731rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31732fi
31733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31735if test `eval echo '${'$as_ac_var'}'` = yes; then
31736 cat >>confdefs.h <<_ACEOF
31737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31738_ACEOF
31739
31740 cat >>confdefs.h <<\_ACEOF
10f2d63a 31741#define HAVE_SHL_LOAD 1
e6cc62c6 31742_ACEOF
10f2d63a 31743
3a922bb4 31744 HAVE_SHL_FUNCS=1
e6cc62c6 31745
10f2d63a 31746else
e6cc62c6
VS
31747
31748 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31749echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31750if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31751 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31752else
e6cc62c6 31753 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31754LIBS="-lshl_load $LIBS"
e6cc62c6
VS
31755cat >conftest.$ac_ext <<_ACEOF
31756#line $LINENO "configure"
31757/* confdefs.h. */
31758_ACEOF
31759cat confdefs.h >>conftest.$ac_ext
31760cat >>conftest.$ac_ext <<_ACEOF
31761/* end confdefs.h. */
31762
8284b0c5 31763/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31764#ifdef __cplusplus
31765extern "C"
31766#endif
f6bcfd97 31767/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31768 builtin and then its argument prototype would still apply. */
31769char dld ();
31770int
31771main ()
31772{
31773dld ();
31774 ;
31775 return 0;
31776}
31777_ACEOF
31778rm -f conftest.$ac_objext conftest$ac_exeext
31779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31780 (eval $ac_link) 2>&5
31781 ac_status=$?
31782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); } &&
31784 { ac_try='test -s conftest$ac_exeext'
31785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31786 (eval $ac_try) 2>&5
31787 ac_status=$?
31788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789 (exit $ac_status); }; }; then
31790 ac_cv_lib_shl_load_dld=yes
31791else
31792 echo "$as_me: failed program was:" >&5
31793sed 's/^/| /' conftest.$ac_ext >&5
31794
31795ac_cv_lib_shl_load_dld=no
31796fi
31797rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31798LIBS=$ac_check_lib_save_LIBS
31799fi
31800echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31801echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31802if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 31803
3a922bb4 31804 HAVE_SHL_FUNCS=1
3d63bc3a 31805 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 31806
f6bcfd97
BP
31807fi
31808
e6cc62c6 31809
10f2d63a
VZ
31810fi
31811done
31812
e6cc62c6 31813
10f2d63a
VZ
31814fi
31815
e6cc62c6 31816
10f2d63a
VZ
31817fi
31818done
31819
5c6fa7d2 31820
8284b0c5 31821 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
31822
31823for ac_func in dlerror
f6bcfd97 31824do
e6cc62c6
VS
31825as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31826echo "$as_me:$LINENO: checking for $ac_func" >&5
31827echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31828if eval "test \"\${$as_ac_var+set}\" = set"; then
31829 echo $ECHO_N "(cached) $ECHO_C" >&6
31830else
31831 cat >conftest.$ac_ext <<_ACEOF
31832#line $LINENO "configure"
31833/* confdefs.h. */
31834_ACEOF
31835cat confdefs.h >>conftest.$ac_ext
31836cat >>conftest.$ac_ext <<_ACEOF
31837/* end confdefs.h. */
f6bcfd97 31838/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31839 which can conflict with char $ac_func (); below.
31840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31841 <limits.h> exists even on freestanding compilers. */
31842#ifdef __STDC__
31843# include <limits.h>
31844#else
31845# include <assert.h>
31846#endif
f6bcfd97 31847/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31848#ifdef __cplusplus
31849extern "C"
31850{
31851#endif
f6bcfd97 31852/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31853 builtin and then its argument prototype would still apply. */
31854char $ac_func ();
f6bcfd97
BP
31855/* The GNU C library defines this for functions which it implements
31856 to always fail with ENOSYS. Some functions are actually named
31857 something starting with __ and the normal name is an alias. */
31858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31859choke me
31860#else
e6cc62c6
VS
31861char (*f) () = $ac_func;
31862#endif
31863#ifdef __cplusplus
31864}
f6bcfd97
BP
31865#endif
31866
e6cc62c6
VS
31867int
31868main ()
31869{
31870return f != $ac_func;
31871 ;
31872 return 0;
31873}
31874_ACEOF
31875rm -f conftest.$ac_objext conftest$ac_exeext
31876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31877 (eval $ac_link) 2>&5
31878 ac_status=$?
31879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880 (exit $ac_status); } &&
31881 { ac_try='test -s conftest$ac_exeext'
31882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31883 (eval $ac_try) 2>&5
31884 ac_status=$?
31885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31886 (exit $ac_status); }; }; then
31887 eval "$as_ac_var=yes"
31888else
31889 echo "$as_me: failed program was:" >&5
31890sed 's/^/| /' conftest.$ac_ext >&5
31891
31892eval "$as_ac_var=no"
31893fi
31894rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31895fi
31896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31897echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31898if test `eval echo '${'$as_ac_var'}'` = yes; then
31899 cat >>confdefs.h <<_ACEOF
31900#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31901_ACEOF
31902 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31903#define HAVE_DLERROR 1
e6cc62c6 31904_ACEOF
f6bcfd97
BP
31905
31906else
e6cc62c6
VS
31907 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31908echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31909if test "${ac_cv_lib_dl_dlerror+set}" = set; then
31910 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 31911else
e6cc62c6 31912 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 31913LIBS="-ldl $LIBS"
e6cc62c6
VS
31914cat >conftest.$ac_ext <<_ACEOF
31915#line $LINENO "configure"
31916/* confdefs.h. */
31917_ACEOF
31918cat confdefs.h >>conftest.$ac_ext
31919cat >>conftest.$ac_ext <<_ACEOF
31920/* end confdefs.h. */
31921
f6bcfd97 31922/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31923#ifdef __cplusplus
31924extern "C"
31925#endif
f6bcfd97 31926/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31927 builtin and then its argument prototype would still apply. */
31928char dlerror ();
31929int
31930main ()
31931{
31932dlerror ();
31933 ;
31934 return 0;
31935}
31936_ACEOF
31937rm -f conftest.$ac_objext conftest$ac_exeext
31938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31939 (eval $ac_link) 2>&5
31940 ac_status=$?
31941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31942 (exit $ac_status); } &&
31943 { ac_try='test -s conftest$ac_exeext'
31944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31945 (eval $ac_try) 2>&5
31946 ac_status=$?
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31948 (exit $ac_status); }; }; then
31949 ac_cv_lib_dl_dlerror=yes
31950else
31951 echo "$as_me: failed program was:" >&5
31952sed 's/^/| /' conftest.$ac_ext >&5
31953
31954ac_cv_lib_dl_dlerror=no
31955fi
31956rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31957LIBS=$ac_check_lib_save_LIBS
31958fi
31959echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31960echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31961if test $ac_cv_lib_dl_dlerror = yes; then
31962 cat >>confdefs.h <<\_ACEOF
f6bcfd97 31963#define HAVE_DLERROR 1
e6cc62c6 31964_ACEOF
f6bcfd97 31965
f6bcfd97
BP
31966fi
31967
31968fi
31969done
31970
3a922bb4
RL
31971 fi
31972 fi
f6bcfd97 31973
3a922bb4
RL
31974 if test "$HAVE_DL_FUNCS" = 0; then
31975 if test "$HAVE_SHL_FUNCS" = 0; then
31976 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
31977 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31978echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 31979 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
31980 wxUSE_DYNLIB_CLASS=no
31981 else
e6cc62c6
VS
31982 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31983echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
31984 fi
31985 fi
10f2d63a
VZ
31986 fi
31987 fi
31988fi
31989
0b9ab0bd 31990if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 31991 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 31992#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 31993_ACEOF
0b9ab0bd 31994
1948bb32
VS
31995fi
31996if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 31997 cat >>confdefs.h <<\_ACEOF
10f2d63a 31998#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 31999_ACEOF
10f2d63a
VZ
32000
32001fi
32002
8284b0c5 32003
1e6feb95 32004if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 32005 cat >>confdefs.h <<\_ACEOF
1e6feb95 32006#define wxUSE_FONTMAP 1
e6cc62c6 32007_ACEOF
1e6feb95
VZ
32008
32009fi
32010
10f2d63a 32011if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 32012 cat >>confdefs.h <<\_ACEOF
10f2d63a 32013#define wxUSE_UNICODE 1
e6cc62c6 32014_ACEOF
10f2d63a 32015
8284b0c5 32016
eb854003 32017 if test "$USE_WIN32" != 1; then
bbc3925a
VS
32018 wxUSE_UNICODE_MSLU=no
32019 fi
a72a4bfa 32020
eb854003 32021 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
32022 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32023echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32024if test "${ac_cv_lib_unicows_main+set}" = set; then
32025 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 32026else
e6cc62c6 32027 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 32028LIBS="-lunicows $LIBS"
e6cc62c6
VS
32029cat >conftest.$ac_ext <<_ACEOF
32030#line $LINENO "configure"
32031/* confdefs.h. */
32032_ACEOF
32033cat confdefs.h >>conftest.$ac_ext
32034cat >>conftest.$ac_ext <<_ACEOF
32035/* end confdefs.h. */
a72a4bfa 32036
8284b0c5 32037
e6cc62c6
VS
32038int
32039main ()
32040{
32041main ();
32042 ;
32043 return 0;
32044}
32045_ACEOF
32046rm -f conftest.$ac_objext conftest$ac_exeext
32047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32048 (eval $ac_link) 2>&5
32049 ac_status=$?
32050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); } &&
32052 { ac_try='test -s conftest$ac_exeext'
32053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32054 (eval $ac_try) 2>&5
32055 ac_status=$?
32056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057 (exit $ac_status); }; }; then
32058 ac_cv_lib_unicows_main=yes
32059else
32060 echo "$as_me: failed program was:" >&5
32061sed 's/^/| /' conftest.$ac_ext >&5
32062
32063ac_cv_lib_unicows_main=no
32064fi
32065rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32066LIBS=$ac_check_lib_save_LIBS
32067fi
32068echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32069echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32070if test $ac_cv_lib_unicows_main = yes; then
32071
32072 cat >>confdefs.h <<\_ACEOF
a72a4bfa 32073#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
32074_ACEOF
32075
a72a4bfa 32076
a72a4bfa 32077else
a72a4bfa 32078
e6cc62c6
VS
32079 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32080 Applications will only run on Windows NT/2000/XP!" >&5
32081echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32082 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 32083 wxUSE_UNICODE_MSLU=no
e6cc62c6 32084
a72a4bfa
VS
32085fi
32086
32087 fi
10f2d63a
VZ
32088fi
32089
10f2d63a 32090if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 32091 cat >>confdefs.h <<\_ACEOF
10f2d63a 32092#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 32093_ACEOF
10f2d63a
VZ
32094
32095fi
32096
8284b0c5 32097
10f2d63a 32098if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 32099 cat >>confdefs.h <<\_ACEOF
10f2d63a 32100#define wxUSE_POSTSCRIPT 1
e6cc62c6 32101_ACEOF
10f2d63a
VZ
32102
32103fi
32104
e6cc62c6 32105cat >>confdefs.h <<\_ACEOF
10f2d63a 32106#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 32107_ACEOF
10f2d63a 32108
8284b0c5 32109
e6cc62c6 32110cat >>confdefs.h <<\_ACEOF
10f2d63a 32111#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 32112_ACEOF
10f2d63a 32113
8284b0c5
MB
32114
32115
10f2d63a 32116if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 32117 cat >>confdefs.h <<\_ACEOF
10f2d63a 32118#define wxUSE_CONSTRAINTS 1
e6cc62c6 32119_ACEOF
10f2d63a
VZ
32120
32121 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32122fi
32123
3879ecda 32124if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 32125 cat >>confdefs.h <<\_ACEOF
10f2d63a 32126#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 32127_ACEOF
10f2d63a 32128
1772d20c 32129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
32130fi
32131
32132if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 32133 cat >>confdefs.h <<\_ACEOF
10f2d63a 32134#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 32135_ACEOF
10f2d63a
VZ
32136
32137 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32138 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32140 fi
32141fi
32142
32143if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 32144 cat >>confdefs.h <<\_ACEOF
10f2d63a 32145#define wxUSE_HELP 1
e6cc62c6 32146_ACEOF
10f2d63a
VZ
32147
32148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 32149
77e13408 32150 if test "$wxUSE_MSW" = 1; then
031d8228 32151 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 32152 cat >>confdefs.h <<\_ACEOF
29fd3c0c 32153#define wxUSE_MS_HTML_HELP 1
e6cc62c6 32154_ACEOF
29fd3c0c 32155
3e44f09d 32156 fi
3379ed37 32157 fi
031d8228
VS
32158
32159 if test "$wxUSE_WXHTML_HELP" = "yes"; then
32160 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32161 cat >>confdefs.h <<\_ACEOF
031d8228 32162#define wxUSE_WXHTML_HELP 1
e6cc62c6 32163_ACEOF
031d8228
VS
32164
32165 else
e6cc62c6
VS
32166 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32167echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
32168 wxUSE_WXHTML_HELP=no
32169 fi
32170 fi
10f2d63a
VZ
32171fi
32172
32173if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32174 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
32175 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32176echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 32177 else
e6cc62c6 32178 cat >>confdefs.h <<\_ACEOF
10f2d63a 32179#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 32180_ACEOF
10f2d63a
VZ
32181
32182 fi
32183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32184fi
32185
e6cc62c6
VS
32186if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
32187 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32188echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32189 { (exit 1); exit 1; }; }
32190fi
32191
32192
32193if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
32194 -o "$wxUSE_CLIPBOARD" = "yes" \
32195 -o "$wxUSE_OLE" = "yes" \
32196 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32197
32198for ac_header in ole2.h
32199do
32200as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32201if eval "test \"\${$as_ac_Header+set}\" = set"; then
32202 echo "$as_me:$LINENO: checking for $ac_header" >&5
32203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32204if eval "test \"\${$as_ac_Header+set}\" = set"; then
32205 echo $ECHO_N "(cached) $ECHO_C" >&6
32206fi
32207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32209else
32210 # Is the header compilable?
32211echo "$as_me:$LINENO: checking $ac_header usability" >&5
32212echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32213cat >conftest.$ac_ext <<_ACEOF
32214#line $LINENO "configure"
32215/* confdefs.h. */
32216_ACEOF
32217cat confdefs.h >>conftest.$ac_ext
32218cat >>conftest.$ac_ext <<_ACEOF
32219/* end confdefs.h. */
32220$ac_includes_default
32221#include <$ac_header>
32222_ACEOF
32223rm -f conftest.$ac_objext
32224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32225 (eval $ac_compile) 2>&5
32226 ac_status=$?
32227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32228 (exit $ac_status); } &&
32229 { ac_try='test -s conftest.$ac_objext'
32230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32231 (eval $ac_try) 2>&5
32232 ac_status=$?
32233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234 (exit $ac_status); }; }; then
32235 ac_header_compiler=yes
32236else
32237 echo "$as_me: failed program was:" >&5
32238sed 's/^/| /' conftest.$ac_ext >&5
32239
32240ac_header_compiler=no
32241fi
32242rm -f conftest.$ac_objext conftest.$ac_ext
32243echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32244echo "${ECHO_T}$ac_header_compiler" >&6
32245
32246# Is the header present?
32247echo "$as_me:$LINENO: checking $ac_header presence" >&5
32248echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32249cat >conftest.$ac_ext <<_ACEOF
32250#line $LINENO "configure"
32251/* confdefs.h. */
32252_ACEOF
32253cat confdefs.h >>conftest.$ac_ext
32254cat >>conftest.$ac_ext <<_ACEOF
32255/* end confdefs.h. */
32256#include <$ac_header>
32257_ACEOF
32258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32260 ac_status=$?
32261 grep -v '^ *+' conftest.er1 >conftest.err
32262 rm -f conftest.er1
32263 cat conftest.err >&5
32264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265 (exit $ac_status); } >/dev/null; then
32266 if test -s conftest.err; then
32267 ac_cpp_err=$ac_c_preproc_warn_flag
32268 else
32269 ac_cpp_err=
32270 fi
32271else
32272 ac_cpp_err=yes
32273fi
32274if test -z "$ac_cpp_err"; then
32275 ac_header_preproc=yes
32276else
32277 echo "$as_me: failed program was:" >&5
32278sed 's/^/| /' conftest.$ac_ext >&5
32279
32280 ac_header_preproc=no
32281fi
32282rm -f conftest.err conftest.$ac_ext
32283echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32284echo "${ECHO_T}$ac_header_preproc" >&6
32285
32286# So? What about this header?
32287case $ac_header_compiler:$ac_header_preproc in
32288 yes:no )
32289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32290echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32293 (
32294 cat <<\_ASBOX
32295## ------------------------------------ ##
32296## Report this to bug-autoconf@gnu.org. ##
32297## ------------------------------------ ##
32298_ASBOX
32299 ) |
32300 sed "s/^/$as_me: WARNING: /" >&2
32301 ;;
32302 no:yes )
32303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32304echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32306echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32308echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32309 (
32310 cat <<\_ASBOX
32311## ------------------------------------ ##
32312## Report this to bug-autoconf@gnu.org. ##
32313## ------------------------------------ ##
32314_ASBOX
32315 ) |
32316 sed "s/^/$as_me: WARNING: /" >&2
32317 ;;
32318esac
32319echo "$as_me:$LINENO: checking for $ac_header" >&5
32320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32321if eval "test \"\${$as_ac_Header+set}\" = set"; then
32322 echo $ECHO_N "(cached) $ECHO_C" >&6
32323else
32324 eval "$as_ac_Header=$ac_header_preproc"
32325fi
32326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32328
10f2d63a 32329fi
e6cc62c6
VS
32330if test `eval echo '${'$as_ac_Header'}'` = yes; then
32331 cat >>confdefs.h <<_ACEOF
32332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32333_ACEOF
10f2d63a 32334
10f2d63a 32335fi
e6cc62c6 32336
10f2d63a
VZ
32337done
32338
8284b0c5 32339
2b9bdf71
VZ
32340 if test "$ac_cv_header_ole2_h" = "yes" ; then
32341 if test "$GCC" = yes ; then
8284b0c5
MB
32342
32343
e6cc62c6
VS
32344 ac_ext=cc
32345ac_cpp='$CXXCPP $CPPFLAGS'
32346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32349
32350
32351 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32352echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32353 cat >conftest.$ac_ext <<_ACEOF
32354#line $LINENO "configure"
32355/* confdefs.h. */
32356_ACEOF
32357cat confdefs.h >>conftest.$ac_ext
32358cat >>conftest.$ac_ext <<_ACEOF
32359/* end confdefs.h. */
8284b0c5
MB
32360#include <windows.h>
32361 #include <ole2.h>
e6cc62c6
VS
32362int
32363main ()
32364{
8284b0c5 32365
e6cc62c6
VS
32366 ;
32367 return 0;
32368}
32369_ACEOF
32370rm -f conftest.$ac_objext
32371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32372 (eval $ac_compile) 2>&5
32373 ac_status=$?
32374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375 (exit $ac_status); } &&
32376 { ac_try='test -s conftest.$ac_objext'
32377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32378 (eval $ac_try) 2>&5
32379 ac_status=$?
32380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381 (exit $ac_status); }; }; then
32382 echo "$as_me:$LINENO: result: no" >&5
32383echo "${ECHO_T}no" >&6
32384else
32385 echo "$as_me: failed program was:" >&5
32386sed 's/^/| /' conftest.$ac_ext >&5
32387
32388echo "$as_me:$LINENO: result: yes" >&5
32389echo "${ECHO_T}yes" >&6
8284b0c5
MB
32390 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32391fi
e6cc62c6 32392rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 32393 ac_ext=c
8284b0c5 32394ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
32395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32397ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 32398
2b9bdf71 32399 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 32400 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 32401 cat >>confdefs.h <<\_ACEOF
4f11a343 32402#define wxUSE_OLE 1
e6cc62c6 32403_ACEOF
4f11a343 32404
8284b0c5 32405
2b9bdf71
VZ
32406 fi
32407
e6cc62c6 32408 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32409#define wxUSE_DATAOBJ 1
e6cc62c6 32410_ACEOF
2b9bdf71
VZ
32411
32412 else
e6cc62c6
VS
32413 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32414echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
32415
32416 wxUSE_CLIPBOARD=no
32417 wxUSE_DRAG_AND_DROP=no
32418 wxUSE_DATAOBJ=no
3bce6687
JS
32419 wxUSE_OLE=no
32420 fi
32421
32422 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32423 cat >>confdefs.h <<\_ACEOF
3bce6687 32424#define wxUSE_METAFILE 1
e6cc62c6 32425_ACEOF
3bce6687
JS
32426
32427
e6cc62c6 32428 cat >>confdefs.h <<\_ACEOF
3bce6687 32429#define wxUSE_ENH_METAFILE 1
e6cc62c6 32430_ACEOF
3bce6687
JS
32431
32432 fi
32433fi
32434
2b9bdf71
VZ
32435if test "$wxUSE_IPC" = "yes"; then
32436 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
32437 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32438echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
32439 fi
32440
e6cc62c6 32441 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32442#define wxUSE_IPC 1
e6cc62c6 32443_ACEOF
2b9bdf71
VZ
32444
32445fi
32446
32447if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 32448 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32449 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32450echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32451 wxUSE_CLIPBOARD=no
32452 fi
32453
32454 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 32455 cat >>confdefs.h <<\_ACEOF
2b9bdf71 32456#define wxUSE_CLIPBOARD 1
e6cc62c6 32457_ACEOF
2b9bdf71 32458
8284b0c5 32459
e6cc62c6 32460 cat >>confdefs.h <<\_ACEOF
673f4220 32461#define wxUSE_DATAOBJ 1
e6cc62c6 32462_ACEOF
673f4220 32463
6c657b52 32464 fi
2b9bdf71
VZ
32465fi
32466
32467if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32468 if test "$wxUSE_GTK" = 1; then
32469 if test "$WXGTK12" != 1; then
e6cc62c6
VS
32470 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32471echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
32472 wxUSE_DRAG_AND_DROP=no
32473 fi
32474 fi
32475
2b9bdf71 32476 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32477 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32478echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
32479 wxUSE_DRAG_AND_DROP=no
32480 fi
32481
f79bd02d 32482 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
32483 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32484echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
32485 wxUSE_DRAG_AND_DROP=no
32486 fi
32487
6c657b52 32488 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
32489 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32490echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
32491 wxUSE_DRAG_AND_DROP=no
32492 fi
32493
10f2d63a 32494 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 32495 cat >>confdefs.h <<\_ACEOF
10f2d63a 32496#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 32497_ACEOF
10f2d63a
VZ
32498
32499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32500 fi
32501
32502fi
32503
32504if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 32505 cat >>confdefs.h <<\_ACEOF
10f2d63a 32506#define wxUSE_SPLINES 1
e6cc62c6 32507_ACEOF
10f2d63a
VZ
32508
32509fi
32510
8284b0c5 32511
1e6feb95
VZ
32512USES_CONTROLS=0
32513if test "$wxUSE_CONTROLS" = "yes"; then
32514 USES_CONTROLS=1
32515fi
32516
10f2d63a 32517if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 32518 cat >>confdefs.h <<\_ACEOF
10f2d63a 32519#define wxUSE_ACCEL 1
e6cc62c6 32520_ACEOF
10f2d63a 32521
1e6feb95
VZ
32522 USES_CONTROLS=1
32523fi
32524
32525if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 32526 cat >>confdefs.h <<\_ACEOF
1e6feb95 32527#define wxUSE_BUTTON 1
e6cc62c6 32528_ACEOF
1e6feb95
VZ
32529
32530 USES_CONTROLS=1
32531fi
32532
32533if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 32534 cat >>confdefs.h <<\_ACEOF
1e6feb95 32535#define wxUSE_BMPBUTTON 1
e6cc62c6 32536_ACEOF
1e6feb95
VZ
32537
32538 USES_CONTROLS=1
32539fi
32540
32541if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 32542 cat >>confdefs.h <<\_ACEOF
1e6feb95 32543#define wxUSE_CALENDARCTRL 1
e6cc62c6 32544_ACEOF
1e6feb95
VZ
32545
32546 USES_CONTROLS=1
32547 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
32548fi
32549
32550if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 32551 cat >>confdefs.h <<\_ACEOF
10f2d63a 32552#define wxUSE_CARET 1
e6cc62c6 32553_ACEOF
10f2d63a 32554
1e6feb95 32555 USES_CONTROLS=1
10f2d63a
VZ
32556 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32557fi
32558
32559if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 32560 cat >>confdefs.h <<\_ACEOF
10f2d63a 32561#define wxUSE_COMBOBOX 1
e6cc62c6 32562_ACEOF
10f2d63a 32563
1e6feb95 32564 USES_CONTROLS=1
10f2d63a
VZ
32565fi
32566
32567if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 32568 cat >>confdefs.h <<\_ACEOF
10f2d63a 32569#define wxUSE_CHOICE 1
e6cc62c6 32570_ACEOF
10f2d63a 32571
1e6feb95 32572 USES_CONTROLS=1
10f2d63a
VZ
32573fi
32574
32575if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 32576 cat >>confdefs.h <<\_ACEOF
10f2d63a 32577#define wxUSE_CHECKBOX 1
e6cc62c6 32578_ACEOF
10f2d63a 32579
1e6feb95 32580 USES_CONTROLS=1
10f2d63a
VZ
32581fi
32582
32583if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 32584 cat >>confdefs.h <<\_ACEOF
10f2d63a 32585#define wxUSE_CHECKLISTBOX 1
e6cc62c6 32586_ACEOF
10f2d63a 32587
1e6feb95 32588 USES_CONTROLS=1
10f2d63a
VZ
32589 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32590fi
32591
da494b40 32592if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 32593 cat >>confdefs.h <<\_ACEOF
da494b40 32594#define wxUSE_DISPLAY 1
e6cc62c6 32595_ACEOF
da494b40
MB
32596
32597 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32598fi
32599
10f2d63a 32600if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 32601 cat >>confdefs.h <<\_ACEOF
10f2d63a 32602#define wxUSE_GAUGE 1
e6cc62c6 32603_ACEOF
10f2d63a 32604
1e6feb95 32605 USES_CONTROLS=1
10f2d63a
VZ
32606fi
32607
d6a55c4b 32608if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 32609 cat >>confdefs.h <<\_ACEOF
d6a55c4b 32610#define wxUSE_GRID 1
e6cc62c6 32611_ACEOF
10f2d63a 32612
1e6feb95 32613 USES_CONTROLS=1
d6a55c4b 32614 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
32615fi
32616
32617if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32618 cat >>confdefs.h <<\_ACEOF
10f2d63a 32619#define wxUSE_IMAGLIST 1
e6cc62c6 32620_ACEOF
10f2d63a
VZ
32621
32622fi
32623
32624if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 32625 cat >>confdefs.h <<\_ACEOF
10f2d63a 32626#define wxUSE_LISTBOX 1
e6cc62c6 32627_ACEOF
10f2d63a 32628
1e6feb95 32629 USES_CONTROLS=1
10f2d63a
VZ
32630fi
32631
32632if test "$wxUSE_LISTCTRL" = "yes"; then
32633 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32634 cat >>confdefs.h <<\_ACEOF
10f2d63a 32635#define wxUSE_LISTCTRL 1
e6cc62c6 32636_ACEOF
10f2d63a 32637
1e6feb95 32638 USES_CONTROLS=1
10f2d63a
VZ
32639 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32640 else
e6cc62c6
VS
32641 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32642echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32643 fi
32644fi
32645
32646if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 32647 cat >>confdefs.h <<\_ACEOF
10f2d63a 32648#define wxUSE_NOTEBOOK 1
e6cc62c6 32649_ACEOF
10f2d63a 32650
1e6feb95 32651 USES_CONTROLS=1
10f2d63a
VZ
32652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32653fi
32654
24176f2c 32655
10f2d63a 32656if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 32657 cat >>confdefs.h <<\_ACEOF
10f2d63a 32658#define wxUSE_RADIOBOX 1
e6cc62c6 32659_ACEOF
10f2d63a 32660
1e6feb95 32661 USES_CONTROLS=1
10f2d63a
VZ
32662fi
32663
32664if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 32665 cat >>confdefs.h <<\_ACEOF
10f2d63a 32666#define wxUSE_RADIOBTN 1
e6cc62c6 32667_ACEOF
10f2d63a 32668
1e6feb95 32669 USES_CONTROLS=1
10f2d63a
VZ
32670fi
32671
32672if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 32673 cat >>confdefs.h <<\_ACEOF
10f2d63a 32674#define wxUSE_SASH 1
e6cc62c6 32675_ACEOF
10f2d63a
VZ
32676
32677 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32678fi
32679
32680if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 32681 cat >>confdefs.h <<\_ACEOF
10f2d63a 32682#define wxUSE_SCROLLBAR 1
e6cc62c6 32683_ACEOF
10f2d63a 32684
1e6feb95 32685 USES_CONTROLS=1
741a9306 32686 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
32687fi
32688
32689if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 32690 cat >>confdefs.h <<\_ACEOF
10f2d63a 32691#define wxUSE_SLIDER 1
e6cc62c6 32692_ACEOF
10f2d63a 32693
1e6feb95 32694 USES_CONTROLS=1
10f2d63a
VZ
32695fi
32696
32697if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 32698 cat >>confdefs.h <<\_ACEOF
10f2d63a 32699#define wxUSE_SPINBTN 1
e6cc62c6 32700_ACEOF
10f2d63a 32701
1e6feb95 32702 USES_CONTROLS=1
10f2d63a
VZ
32703fi
32704
56cfaa52 32705if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 32706 cat >>confdefs.h <<\_ACEOF
56cfaa52 32707#define wxUSE_SPINCTRL 1
e6cc62c6 32708_ACEOF
56cfaa52 32709
1e6feb95 32710 USES_CONTROLS=1
56cfaa52
RR
32711fi
32712
10f2d63a 32713if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 32714 cat >>confdefs.h <<\_ACEOF
10f2d63a 32715#define wxUSE_SPLITTER 1
e6cc62c6 32716_ACEOF
10f2d63a
VZ
32717
32718 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32719fi
32720
32721if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 32722 cat >>confdefs.h <<\_ACEOF
10f2d63a 32723#define wxUSE_STATBMP 1
e6cc62c6 32724_ACEOF
10f2d63a 32725
1e6feb95 32726 USES_CONTROLS=1
10f2d63a
VZ
32727fi
32728
32729if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 32730 cat >>confdefs.h <<\_ACEOF
10f2d63a 32731#define wxUSE_STATBOX 1
e6cc62c6 32732_ACEOF
10f2d63a 32733
1e6feb95
VZ
32734 USES_CONTROLS=1
32735fi
32736
32737if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 32738 cat >>confdefs.h <<\_ACEOF
1e6feb95 32739#define wxUSE_STATTEXT 1
e6cc62c6 32740_ACEOF
1e6feb95
VZ
32741
32742 USES_CONTROLS=1
10f2d63a
VZ
32743fi
32744
32745if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 32746 cat >>confdefs.h <<\_ACEOF
10f2d63a 32747#define wxUSE_STATLINE 1
e6cc62c6 32748_ACEOF
10f2d63a 32749
89e6bf6d 32750 USES_CONTROLS=1
10f2d63a
VZ
32751fi
32752
32753if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 32754 cat >>confdefs.h <<\_ACEOF
10f2d63a 32755#define wxUSE_STATUSBAR 1
e6cc62c6 32756_ACEOF
10f2d63a 32757
1e6feb95 32758 USES_CONTROLS=1
698dcdb6 32759
2286341c 32760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
32761fi
32762
32763if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 32764 cat >>confdefs.h <<\_ACEOF
10f2d63a 32765#define wxUSE_TAB_DIALOG 1
e6cc62c6 32766_ACEOF
10f2d63a
VZ
32767
32768 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32769fi
32770
1e6feb95 32771if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 32772 cat >>confdefs.h <<\_ACEOF
1e6feb95 32773#define wxUSE_TEXTCTRL 1
e6cc62c6 32774_ACEOF
1e6feb95
VZ
32775
32776 USES_CONTROLS=1
32777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32778fi
32779
1db8dc4a 32780if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 32781 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32782 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32783echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
32784 wxUSE_TOGGLEBTN=no
32785 fi
32786 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32787 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32788echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
32789 wxUSE_TOGGLEBTN=no
32790 fi
32791
32792 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 32793 cat >>confdefs.h <<\_ACEOF
1db8dc4a 32794#define wxUSE_TOGGLEBTN 1
e6cc62c6 32795_ACEOF
1db8dc4a 32796
1e6feb95 32797 USES_CONTROLS=1
a45d7ab7 32798 fi
1db8dc4a
VZ
32799fi
32800
360d6699 32801if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 32802 cat >>confdefs.h <<\_ACEOF
360d6699 32803#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 32804_ACEOF
360d6699
VZ
32805
32806 wxUSE_TOOLBAR="yes"
1e6feb95 32807 USES_CONTROLS=1
360d6699
VZ
32808fi
32809
10f2d63a 32810if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 32811 cat >>confdefs.h <<\_ACEOF
10f2d63a 32812#define wxUSE_TOOLBAR 1
e6cc62c6 32813_ACEOF
10f2d63a 32814
1e6feb95 32815 USES_CONTROLS=1
698dcdb6 32816
360d6699
VZ
32817 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
32818 wxUSE_TOOLBAR_NATIVE="yes"
32819 fi
32820
1e6feb95 32821 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 32822 cat >>confdefs.h <<\_ACEOF
360d6699 32823#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 32824_ACEOF
360d6699 32825
1e6feb95
VZ
32826 USES_CONTROLS=1
32827 fi
32828
32829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
32830fi
32831
10f2d63a
VZ
32832if test "$wxUSE_TOOLTIPS" = "yes"; then
32833 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32834 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
32835echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 32836 else
89e6bf6d 32837 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
32838 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
32839echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 32840 else
e6cc62c6 32841 cat >>confdefs.h <<\_ACEOF
10f2d63a 32842#define wxUSE_TOOLTIPS 1
e6cc62c6 32843_ACEOF
10f2d63a
VZ
32844
32845 fi
32846 fi
32847fi
32848
32849if test "$wxUSE_TREECTRL" = "yes"; then
32850 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 32851 cat >>confdefs.h <<\_ACEOF
10f2d63a 32852#define wxUSE_TREECTRL 1
e6cc62c6 32853_ACEOF
10f2d63a 32854
1e6feb95 32855 USES_CONTROLS=1
10f2d63a
VZ
32856 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
32857 else
e6cc62c6
VS
32858 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
32859echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
32860 fi
32861fi
32862
9f41d601 32863if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 32864 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
32865 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
32866echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 32867 else
485cf710 32868 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
32869 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
32870echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
485cf710 32871 else
3c011993 32872 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32873 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
32874echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32875 else
e6cc62c6 32876 cat >>confdefs.h <<\_ACEOF
9f41d601 32877#define wxUSE_POPUPWIN 1
e6cc62c6 32878_ACEOF
9f41d601 32879
8284b0c5 32880
3c011993
VZ
32881 USES_CONTROLS=1
32882 fi
485cf710 32883 fi
6abe4b65 32884 fi
9f41d601
RR
32885fi
32886
dd964dcc 32887if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 32888 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
32889 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
32890echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 32891 else
e6cc62c6 32892 cat >>confdefs.h <<\_ACEOF
dd964dcc 32893#define wxUSE_TIPWINDOW 1
e6cc62c6 32894_ACEOF
dd964dcc 32895
3c011993 32896 fi
dd964dcc
VZ
32897fi
32898
1e6feb95 32899if test "$USES_CONTROLS" = 1; then
e6cc62c6 32900 cat >>confdefs.h <<\_ACEOF
1e6feb95 32901#define wxUSE_CONTROLS 1
e6cc62c6 32902_ACEOF
10f2d63a 32903
10f2d63a
VZ
32904fi
32905
8284b0c5 32906
1e6feb95 32907
24fd6d87 32908if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 32909 cat >>confdefs.h <<\_ACEOF
24fd6d87 32910#define wxUSE_DRAGIMAGE 1
e6cc62c6 32911_ACEOF
24fd6d87
VZ
32912
32913 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
32914fi
32915
7bb2947d 32916if test "$wxUSE_ACCESSIBILITY" = "yes"; then
e6cc62c6 32917 cat >>confdefs.h <<\_ACEOF
7bb2947d 32918#define wxUSE_ACCESSIBILITY 1
e6cc62c6 32919_ACEOF
7bb2947d
MB
32920
32921 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
32922fi
32923
1e6feb95 32924if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 32925 cat >>confdefs.h <<\_ACEOF
1e6feb95 32926#define wxUSE_MENUS 1
e6cc62c6 32927_ACEOF
10f2d63a 32928
1e6feb95 32929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
32930fi
32931
1e6feb95 32932if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 32933 cat >>confdefs.h <<\_ACEOF
1e6feb95 32934#define wxUSE_METAFILE 1
e6cc62c6 32935_ACEOF
10f2d63a 32936
10f2d63a
VZ
32937fi
32938
1e6feb95 32939if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 32940 cat >>confdefs.h <<\_ACEOF
1e6feb95 32941#define wxUSE_MIMETYPE 1
e6cc62c6 32942_ACEOF
10f2d63a 32943
10f2d63a
VZ
32944fi
32945
3e44f09d 32946if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 32947 cat >>confdefs.h <<\_ACEOF
3e44f09d 32948#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 32949_ACEOF
3e44f09d 32950
131f235d
VS
32951if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
32952 "$TOOLKIT" = "MOTIF"; then
321d2b14
VZ
32953 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
32954fi
32955
3e44f09d
VZ
32956fi
32957
10f2d63a 32958if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 32959 cat >>confdefs.h <<\_ACEOF
10f2d63a 32960#define wxUSE_MINIFRAME 1
e6cc62c6 32961_ACEOF
10f2d63a
VZ
32962
32963 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
32964fi
32965
4d264332 32966USE_HTML=0
10f2d63a 32967if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 32968 cat >>confdefs.h <<\_ACEOF
10f2d63a 32969#define wxUSE_HTML 1
e6cc62c6 32970_ACEOF
10f2d63a 32971
4d264332 32972 USE_HTML=1
c74dc163 32973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
10f2d63a
VZ
32974fi
32975
32976if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 32977 cat >>confdefs.h <<\_ACEOF
1e487827 32978#define wxUSE_VALIDATORS 1
e6cc62c6 32979_ACEOF
703e0a69 32980
698dcdb6
VZ
32981 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
32982fi
32983
edae8572 32984if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 32985 cat >>confdefs.h <<\_ACEOF
edae8572 32986#define wxUSE_PALETTE 1
e6cc62c6 32987_ACEOF
edae8572
VZ
32988
32989fi
32990
698dcdb6 32991if test "$wxUSE_IMAGE" = "yes" ; then
e6cc62c6 32992 cat >>confdefs.h <<\_ACEOF
698dcdb6 32993#define wxUSE_IMAGE 1
e6cc62c6 32994_ACEOF
698dcdb6
VZ
32995
32996fi
32997
32998if test "$wxUSE_GIF" = "yes" ; then
e6cc62c6 32999 cat >>confdefs.h <<\_ACEOF
698dcdb6 33000#define wxUSE_GIF 1
e6cc62c6 33001_ACEOF
698dcdb6
VZ
33002
33003fi
33004
33005if test "$wxUSE_PCX" = "yes" ; then
e6cc62c6 33006 cat >>confdefs.h <<\_ACEOF
698dcdb6 33007#define wxUSE_PCX 1
e6cc62c6 33008_ACEOF
698dcdb6
VZ
33009
33010fi
33011
4b6b4dfc 33012if test "$wxUSE_IFF" = "yes" ; then
e6cc62c6 33013 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 33014#define wxUSE_IFF 1
e6cc62c6 33015_ACEOF
4b6b4dfc
RR
33016
33017fi
33018
698dcdb6 33019if test "$wxUSE_PNM" = "yes" ; then
e6cc62c6 33020 cat >>confdefs.h <<\_ACEOF
698dcdb6 33021#define wxUSE_PNM 1
e6cc62c6 33022_ACEOF
698dcdb6
VZ
33023
33024fi
33025
33026if test "$wxUSE_XPM" = "yes" ; then
e6cc62c6 33027 cat >>confdefs.h <<\_ACEOF
698dcdb6 33028#define wxUSE_XPM 1
e6cc62c6 33029_ACEOF
698dcdb6
VZ
33030
33031fi
33032
658974ae 33033if test "$wxUSE_ICO_CUR" = "yes" ; then
e6cc62c6 33034 cat >>confdefs.h <<\_ACEOF
658974ae 33035#define wxUSE_ICO_CUR 1
e6cc62c6 33036_ACEOF
658974ae
VS
33037
33038fi
33039
a72a4bfa
VS
33040if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33041 LIBS=" -lunicows $LIBS"
33042fi
33043
8284b0c5 33044
1e6feb95 33045if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 33046 cat >>confdefs.h <<\_ACEOF
1e6feb95 33047#define wxUSE_CHOICEDLG 1
e6cc62c6 33048_ACEOF
1e6feb95
VZ
33049
33050fi
33051
33052if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 33053 cat >>confdefs.h <<\_ACEOF
1e6feb95 33054#define wxUSE_COLOURDLG 1
e6cc62c6 33055_ACEOF
1e6feb95
VZ
33056
33057fi
33058
33059if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 33060 cat >>confdefs.h <<\_ACEOF
1e6feb95 33061#define wxUSE_FILEDLG 1
e6cc62c6 33062_ACEOF
1e6feb95
VZ
33063
33064fi
33065
8db37e06 33066if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 33067 cat >>confdefs.h <<\_ACEOF
8db37e06 33068#define wxUSE_FINDREPLDLG 1
e6cc62c6 33069_ACEOF
8db37e06
VZ
33070
33071fi
33072
1e6feb95 33073if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 33074 cat >>confdefs.h <<\_ACEOF
1e6feb95 33075#define wxUSE_FONTDLG 1
e6cc62c6 33076_ACEOF
1e6feb95
VZ
33077
33078fi
33079
33080if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 33081 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
33082 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33083echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 33084 else
e6cc62c6 33085 cat >>confdefs.h <<\_ACEOF
1e6feb95 33086#define wxUSE_DIRDLG 1
e6cc62c6 33087_ACEOF
1e6feb95 33088
1e6feb95
VZ
33089 fi
33090fi
33091
33092if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 33093 cat >>confdefs.h <<\_ACEOF
1e6feb95 33094#define wxUSE_MSGDLG 1
e6cc62c6 33095_ACEOF
1e6feb95
VZ
33096
33097fi
33098
33099if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 33100 cat >>confdefs.h <<\_ACEOF
1e6feb95 33101#define wxUSE_NUMBERDLG 1
e6cc62c6 33102_ACEOF
1e6feb95
VZ
33103
33104fi
33105
33106if test "$wxUSE_PROGRESSDLG" = "yes"; then
33107 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33108 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33109echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 33110 else
e6cc62c6 33111 cat >>confdefs.h <<\_ACEOF
1e6feb95 33112#define wxUSE_PROGRESSDLG 1
e6cc62c6 33113_ACEOF
1e6feb95
VZ
33114
33115 fi
33116fi
33117
cbca9943 33118if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 33119 cat >>confdefs.h <<\_ACEOF
cbca9943 33120#define wxUSE_SPLASH 1
e6cc62c6 33121_ACEOF
cbca9943
VZ
33122
33123fi
33124
1e6feb95
VZ
33125if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33126 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33127 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33128echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 33129 else
e6cc62c6 33130 cat >>confdefs.h <<\_ACEOF
1e6feb95 33131#define wxUSE_STARTUP_TIPS 1
e6cc62c6 33132_ACEOF
1e6feb95 33133
7b4a847f
RR
33134 fi
33135fi
579d8138 33136
8284b0c5 33137if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 33138 cat >>confdefs.h <<\_ACEOF
8284b0c5 33139#define wxUSE_TEXTDLG 1
e6cc62c6 33140_ACEOF
8284b0c5
MB
33141
33142fi
33143
33144if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 33145 cat >>confdefs.h <<\_ACEOF
8284b0c5 33146#define wxUSE_WIZARDDLG 1
e6cc62c6 33147_ACEOF
8284b0c5
MB
33148
33149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33150fi
33151
33152
33153if test "$cross_compiling" = "yes"; then
33154 OSINFO="\"$host\""
33155else
33156 OSINFO=`uname -s -r -m`
33157 OSINFO="\"$OSINFO\""
33158fi
33159
e6cc62c6 33160cat >>confdefs.h <<_ACEOF
8284b0c5 33161#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 33162_ACEOF
8284b0c5
MB
33163
33164
33165
33166if test "x$prefix" != "xNONE"; then
33167 wxPREFIX=$prefix
33168else
33169 wxPREFIX=$ac_default_prefix
33170fi
33171
e6cc62c6 33172cat >>confdefs.h <<_ACEOF
8284b0c5 33173#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 33174_ACEOF
8284b0c5
MB
33175
33176
e6cc62c6 33177top_builddir_wxconfig=`pwd`
52c71b80 33178
8284b0c5
MB
33179
33180
edd891e2
VS
33181CORE_BASE_LIBS="net base"
33182CORE_GUI_LIBS="adv core"
33183
33184if test "$wxUSE_XML" = "yes" ; then
33185 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
33186fi
45293562
VS
33187if test "$wxUSE_ODBC" != "no" ; then
33188 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
33189 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
33190fi
33191if test "$wxUSE_HTML" = "yes" ; then
33192 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
33193fi
33194
33195
33196
33197
33198
33199
33200
8284b0c5
MB
33201
33202if test "$wxUSE_MAC" = 1 ; then
33203 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33204fi
ac0c4cc3
DE
33205if test "$wxUSE_COCOA" = 1 ; then
33206 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33207fi
8284b0c5
MB
33208
33209
2b5f62a0
VZ
33210LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33211
33212have_cos=0
33213have_floor=0
e6cc62c6 33214
2b5f62a0
VZ
33215for ac_func in cos
33216do
e6cc62c6
VS
33217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33218echo "$as_me:$LINENO: checking for $ac_func" >&5
33219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33220if eval "test \"\${$as_ac_var+set}\" = set"; then
33221 echo $ECHO_N "(cached) $ECHO_C" >&6
33222else
33223 cat >conftest.$ac_ext <<_ACEOF
33224#line $LINENO "configure"
33225/* confdefs.h. */
33226_ACEOF
33227cat confdefs.h >>conftest.$ac_ext
33228cat >>conftest.$ac_ext <<_ACEOF
33229/* end confdefs.h. */
2b5f62a0 33230/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33231 which can conflict with char $ac_func (); below.
33232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33233 <limits.h> exists even on freestanding compilers. */
33234#ifdef __STDC__
33235# include <limits.h>
33236#else
33237# include <assert.h>
33238#endif
2b5f62a0 33239/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33240#ifdef __cplusplus
33241extern "C"
33242{
33243#endif
2b5f62a0 33244/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33245 builtin and then its argument prototype would still apply. */
33246char $ac_func ();
2b5f62a0
VZ
33247/* The GNU C library defines this for functions which it implements
33248 to always fail with ENOSYS. Some functions are actually named
33249 something starting with __ and the normal name is an alias. */
33250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33251choke me
33252#else
e6cc62c6
VS
33253char (*f) () = $ac_func;
33254#endif
33255#ifdef __cplusplus
33256}
2b5f62a0
VZ
33257#endif
33258
e6cc62c6
VS
33259int
33260main ()
33261{
33262return f != $ac_func;
33263 ;
33264 return 0;
33265}
33266_ACEOF
33267rm -f conftest.$ac_objext conftest$ac_exeext
33268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33269 (eval $ac_link) 2>&5
33270 ac_status=$?
33271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33272 (exit $ac_status); } &&
33273 { ac_try='test -s conftest$ac_exeext'
33274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33275 (eval $ac_try) 2>&5
33276 ac_status=$?
33277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33278 (exit $ac_status); }; }; then
33279 eval "$as_ac_var=yes"
33280else
33281 echo "$as_me: failed program was:" >&5
33282sed 's/^/| /' conftest.$ac_ext >&5
33283
33284eval "$as_ac_var=no"
33285fi
33286rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33287fi
33288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33289echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33290if test `eval echo '${'$as_ac_var'}'` = yes; then
33291 cat >>confdefs.h <<_ACEOF
33292#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33293_ACEOF
2b5f62a0 33294 have_cos=1
2b5f62a0
VZ
33295fi
33296done
33297
e6cc62c6 33298
2b5f62a0
VZ
33299for ac_func in floor
33300do
e6cc62c6
VS
33301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33302echo "$as_me:$LINENO: checking for $ac_func" >&5
33303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33304if eval "test \"\${$as_ac_var+set}\" = set"; then
33305 echo $ECHO_N "(cached) $ECHO_C" >&6
33306else
33307 cat >conftest.$ac_ext <<_ACEOF
33308#line $LINENO "configure"
33309/* confdefs.h. */
33310_ACEOF
33311cat confdefs.h >>conftest.$ac_ext
33312cat >>conftest.$ac_ext <<_ACEOF
33313/* end confdefs.h. */
2b5f62a0 33314/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33315 which can conflict with char $ac_func (); below.
33316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33317 <limits.h> exists even on freestanding compilers. */
33318#ifdef __STDC__
33319# include <limits.h>
33320#else
33321# include <assert.h>
33322#endif
2b5f62a0 33323/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33324#ifdef __cplusplus
33325extern "C"
33326{
33327#endif
2b5f62a0 33328/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33329 builtin and then its argument prototype would still apply. */
33330char $ac_func ();
2b5f62a0
VZ
33331/* The GNU C library defines this for functions which it implements
33332 to always fail with ENOSYS. Some functions are actually named
33333 something starting with __ and the normal name is an alias. */
33334#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33335choke me
33336#else
e6cc62c6
VS
33337char (*f) () = $ac_func;
33338#endif
33339#ifdef __cplusplus
33340}
2b5f62a0
VZ
33341#endif
33342
e6cc62c6
VS
33343int
33344main ()
33345{
33346return f != $ac_func;
33347 ;
33348 return 0;
33349}
33350_ACEOF
33351rm -f conftest.$ac_objext conftest$ac_exeext
33352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33353 (eval $ac_link) 2>&5
33354 ac_status=$?
33355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33356 (exit $ac_status); } &&
33357 { ac_try='test -s conftest$ac_exeext'
33358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33359 (eval $ac_try) 2>&5
33360 ac_status=$?
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); }; }; then
33363 eval "$as_ac_var=yes"
33364else
33365 echo "$as_me: failed program was:" >&5
33366sed 's/^/| /' conftest.$ac_ext >&5
33367
33368eval "$as_ac_var=no"
33369fi
33370rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33371fi
33372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33373echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33374if test `eval echo '${'$as_ac_var'}'` = yes; then
33375 cat >>confdefs.h <<_ACEOF
33376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33377_ACEOF
2b5f62a0 33378 have_floor=1
2b5f62a0
VZ
33379fi
33380done
33381
e6cc62c6
VS
33382echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33383echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 33384if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
33385 echo "$as_me:$LINENO: result: yes" >&5
33386echo "${ECHO_T}yes" >&6
2b5f62a0 33387else
e6cc62c6
VS
33388 echo "$as_me:$LINENO: result: no" >&5
33389echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33390 LIBS="$LIBS -lm"
33391 # use different functions to avoid configure caching
33392 have_sin=0
33393 have_ceil=0
e6cc62c6
VS
33394
33395for ac_func in sin
2b5f62a0 33396do
e6cc62c6
VS
33397as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33398echo "$as_me:$LINENO: checking for $ac_func" >&5
33399echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33400if eval "test \"\${$as_ac_var+set}\" = set"; then
33401 echo $ECHO_N "(cached) $ECHO_C" >&6
33402else
33403 cat >conftest.$ac_ext <<_ACEOF
33404#line $LINENO "configure"
33405/* confdefs.h. */
33406_ACEOF
33407cat confdefs.h >>conftest.$ac_ext
33408cat >>conftest.$ac_ext <<_ACEOF
33409/* end confdefs.h. */
2b5f62a0 33410/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33411 which can conflict with char $ac_func (); below.
33412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33413 <limits.h> exists even on freestanding compilers. */
33414#ifdef __STDC__
33415# include <limits.h>
33416#else
33417# include <assert.h>
33418#endif
2b5f62a0 33419/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33420#ifdef __cplusplus
33421extern "C"
33422{
33423#endif
2b5f62a0 33424/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33425 builtin and then its argument prototype would still apply. */
33426char $ac_func ();
2b5f62a0
VZ
33427/* The GNU C library defines this for functions which it implements
33428 to always fail with ENOSYS. Some functions are actually named
33429 something starting with __ and the normal name is an alias. */
33430#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33431choke me
33432#else
e6cc62c6
VS
33433char (*f) () = $ac_func;
33434#endif
33435#ifdef __cplusplus
33436}
2b5f62a0
VZ
33437#endif
33438
e6cc62c6
VS
33439int
33440main ()
33441{
33442return f != $ac_func;
33443 ;
33444 return 0;
33445}
33446_ACEOF
33447rm -f conftest.$ac_objext conftest$ac_exeext
33448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33449 (eval $ac_link) 2>&5
33450 ac_status=$?
33451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33452 (exit $ac_status); } &&
33453 { ac_try='test -s conftest$ac_exeext'
33454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33455 (eval $ac_try) 2>&5
33456 ac_status=$?
33457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33458 (exit $ac_status); }; }; then
33459 eval "$as_ac_var=yes"
33460else
33461 echo "$as_me: failed program was:" >&5
33462sed 's/^/| /' conftest.$ac_ext >&5
33463
33464eval "$as_ac_var=no"
33465fi
33466rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33467fi
33468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33469echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33470if test `eval echo '${'$as_ac_var'}'` = yes; then
33471 cat >>confdefs.h <<_ACEOF
33472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33473_ACEOF
2b5f62a0 33474 have_sin=1
2b5f62a0
VZ
33475fi
33476done
33477
e6cc62c6
VS
33478
33479for ac_func in ceil
2b5f62a0 33480do
e6cc62c6
VS
33481as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33482echo "$as_me:$LINENO: checking for $ac_func" >&5
33483echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33484if eval "test \"\${$as_ac_var+set}\" = set"; then
33485 echo $ECHO_N "(cached) $ECHO_C" >&6
33486else
33487 cat >conftest.$ac_ext <<_ACEOF
33488#line $LINENO "configure"
33489/* confdefs.h. */
33490_ACEOF
33491cat confdefs.h >>conftest.$ac_ext
33492cat >>conftest.$ac_ext <<_ACEOF
33493/* end confdefs.h. */
2b5f62a0 33494/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33495 which can conflict with char $ac_func (); below.
33496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33497 <limits.h> exists even on freestanding compilers. */
33498#ifdef __STDC__
33499# include <limits.h>
33500#else
33501# include <assert.h>
33502#endif
2b5f62a0 33503/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33504#ifdef __cplusplus
33505extern "C"
33506{
33507#endif
2b5f62a0 33508/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33509 builtin and then its argument prototype would still apply. */
33510char $ac_func ();
2b5f62a0
VZ
33511/* The GNU C library defines this for functions which it implements
33512 to always fail with ENOSYS. Some functions are actually named
33513 something starting with __ and the normal name is an alias. */
33514#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33515choke me
33516#else
e6cc62c6
VS
33517char (*f) () = $ac_func;
33518#endif
33519#ifdef __cplusplus
33520}
2b5f62a0
VZ
33521#endif
33522
e6cc62c6
VS
33523int
33524main ()
33525{
33526return f != $ac_func;
33527 ;
33528 return 0;
33529}
33530_ACEOF
33531rm -f conftest.$ac_objext conftest$ac_exeext
33532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33533 (eval $ac_link) 2>&5
33534 ac_status=$?
33535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33536 (exit $ac_status); } &&
33537 { ac_try='test -s conftest$ac_exeext'
33538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33539 (eval $ac_try) 2>&5
33540 ac_status=$?
33541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33542 (exit $ac_status); }; }; then
33543 eval "$as_ac_var=yes"
33544else
33545 echo "$as_me: failed program was:" >&5
33546sed 's/^/| /' conftest.$ac_ext >&5
33547
33548eval "$as_ac_var=no"
33549fi
33550rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33551fi
33552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33553echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33554if test `eval echo '${'$as_ac_var'}'` = yes; then
33555 cat >>confdefs.h <<_ACEOF
33556#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33557_ACEOF
2b5f62a0 33558 have_ceil=1
2b5f62a0
VZ
33559fi
33560done
33561
e6cc62c6
VS
33562 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33563echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 33564 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
33565 echo "$as_me:$LINENO: result: yes" >&5
33566echo "${ECHO_T}yes" >&6
2b5f62a0 33567 else
e6cc62c6
VS
33568 echo "$as_me:$LINENO: result: no" >&5
33569echo "${ECHO_T}no" >&6
2b5f62a0
VZ
33570 # not sure we should warn the user, crash, etc.
33571 fi
33572fi
8284b0c5
MB
33573
33574if test "$wxUSE_GUI" = "yes"; then
33575
e6cc62c6 33576
8284b0c5
MB
33577 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33578 drawing dynamic erase event exec font image \
1dd02ac0 33579 minimal propsize rotate shaped widgets render"
b625909c
VS
33580
33581 if test "$wxUSE_MONOLITHIC" != "yes"; then
33582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33583 fi
8284b0c5
MB
33584else
33585 SAMPLES_SUBDIRS="console"
33586fi
33587
33588
e6cc62c6 33589INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
8284b0c5
MB
33590-I\${top_srcdir}/include \
33591$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33592$TOOLKIT_INCLUDE"
33593
fddeb06b
VS
33594if test "$GXX" = yes ; then
33595 CXXWARNINGS="-Wall"
33596 fi
33597
33598EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33599
95318f7d 33600CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
33601CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33602CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
33603
33604
fddeb06b 33605LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 33606EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 33607EXTRALIBS_XML="$EXPAT_LINK"
bb41dcbe 33608EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
33609if test "$wxUSE_GUI" = "yes"; then
33610 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33611fi
34b08d2c
VS
33612if test "$wxUSE_OPENGL" = "yes"; then
33613 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
33614fi
fddeb06b
VS
33615
33616LDFLAGS="$LDFLAGS $PROFILE"
33617
8284b0c5
MB
33618if test "$wxUSE_GTK" = 1; then
33619 WXCONFIG_INCLUDE=
33620else
33621 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33622fi
33623
67c13b6c
VS
33624WXCONFIG_EXTRALIBS="$LIBS"
33625
33626if test "$wxUSE_REGEX" = "builtin" ; then
33627 wxconfig_3rdparty="$wxconfig_3rdparty regex"
33628fi
33629if test "$wxUSE_EXPAT" = "builtin" ; then
33630 wxconfig_3rdparty="$wxconfig_3rdparty expat"
33631fi
33632if test "$wxUSE_ODBC" = "builtin" ; then
33633 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33634fi
33635if test "$wxUSE_LIBTIFF" = "builtin" ; then
33636 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
33637fi
33638if test "$wxUSE_LIBJPEG" = "builtin" ; then
33639 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
33640fi
33641if test "$wxUSE_LIBPNG" = "builtin" ; then
33642 wxconfig_3rdparty="$wxconfig_3rdparty png"
33643fi
33644if test "$wxUSE_ZLIB" = "builtin" ; then
33645 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
33646fi
bb41dcbe
VS
33647if test "$wxUSE_ODBC" = "builtin" ; then
33648 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33649fi
67c13b6c
VS
33650
33651for i in $wxconfig_3rdparty ; do
33652 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
33653done
33654
33655
fe0895cf
VS
33656if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33657 WXUNIV=1
33658else
33659 WXUNIV=0
8284b0c5
MB
33660fi
33661
8284b0c5
MB
33662
33663
33664
33665
33666
33667
33668
672abd7a 33669
9747f85d
VS
33670if test $wxUSE_MONOLITHIC = "yes" ; then
33671 MONOLITHIC=1
33672else
33673 MONOLITHIC=0
33674fi
8284b0c5 33675
bb41dcbe
VS
33676if test $wxUSE_ODBC != "no" ; then
33677 USE_ODBC=1
33678else
33679 USE_ODBC=0
33680fi
33681
029b47ad
VS
33682if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
33683 OFFICIAL_BUILD=1
33684else
33685 OFFICIAL_BUILD=0
33686fi
33687
8ee2dd05
VS
33688
33689
33690
8284b0c5
MB
33691
33692
33693
33694
33695
33696
c74dc163 33697
34b08d2c 33698
672abd7a 33699
cf615ebb 33700
6c67131a
VS
33701
33702
bb41dcbe 33703
fe0895cf 33704TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
8284b0c5
MB
33705
33706
33707
33708
33709
ea66c762 33710
0f1bc9c2 33711
fe0895cf 33712 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
33713
33714 if test -n "$ac_tool_prefix"; then
33715 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33716set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33717echo "$as_me:$LINENO: checking for $ac_word" >&5
33718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33719if test "${ac_cv_prog_RANLIB+set}" = set; then
33720 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 33721else
fe0895cf
VS
33722 if test -n "$RANLIB"; then
33723 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 33724else
e6cc62c6
VS
33725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33726for as_dir in $PATH
33727do
33728 IFS=$as_save_IFS
33729 test -z "$as_dir" && as_dir=.
33730 for ac_exec_ext in '' $ac_executable_extensions; do
33731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33732 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33734 break 2
33735 fi
33736done
33737done
33738
10f2d63a 33739fi
10f2d63a 33740fi
e6cc62c6 33741RANLIB=$ac_cv_prog_RANLIB
fe0895cf 33742if test -n "$RANLIB"; then
e6cc62c6
VS
33743 echo "$as_me:$LINENO: result: $RANLIB" >&5
33744echo "${ECHO_T}$RANLIB" >&6
33745else
33746 echo "$as_me:$LINENO: result: no" >&5
33747echo "${ECHO_T}no" >&6
33748fi
33749
33750fi
33751if test -z "$ac_cv_prog_RANLIB"; then
33752 ac_ct_RANLIB=$RANLIB
33753 # Extract the first word of "ranlib", so it can be a program name with args.
33754set dummy ranlib; ac_word=$2
33755echo "$as_me:$LINENO: checking for $ac_word" >&5
33756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33757if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33758 echo $ECHO_N "(cached) $ECHO_C" >&6
33759else
33760 if test -n "$ac_ct_RANLIB"; then
33761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33762else
33763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33764for as_dir in $PATH
33765do
33766 IFS=$as_save_IFS
33767 test -z "$as_dir" && as_dir=.
33768 for ac_exec_ext in '' $ac_executable_extensions; do
33769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33770 ac_cv_prog_ac_ct_RANLIB="ranlib"
33771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33772 break 2
33773 fi
33774done
33775done
33776
33777 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33778fi
33779fi
33780ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33781if test -n "$ac_ct_RANLIB"; then
33782 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33783echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 33784else
e6cc62c6
VS
33785 echo "$as_me:$LINENO: result: no" >&5
33786echo "${ECHO_T}no" >&6
33787fi
33788
33789 RANLIB=$ac_ct_RANLIB
33790else
33791 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 33792fi
665bbe97 33793
fe0895cf
VS
33794 # Find a good install program. We prefer a C program (faster),
33795# so one script is as good as another. But avoid the broken or
33796# incompatible versions:
33797# SysV /etc/install, /usr/sbin/install
33798# SunOS /usr/etc/install
33799# IRIX /sbin/install
33800# AIX /bin/install
e6cc62c6 33801# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
33802# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
33803# AFS /usr/afsws/bin/install, which mishandles nonexistent args
33804# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
33805# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
33806echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
33807echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 33808if test -z "$INSTALL"; then
e6cc62c6
VS
33809if test "${ac_cv_path_install+set}" = set; then
33810 echo $ECHO_N "(cached) $ECHO_C" >&6
33811else
33812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33813for as_dir in $PATH
33814do
33815 IFS=$as_save_IFS
33816 test -z "$as_dir" && as_dir=.
33817 # Account for people who put trailing slashes in PATH elements.
33818case $as_dir/ in
33819 ./ | .// | /cC/* | \
33820 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
33821 /usr/ucb/* ) ;;
33822 *)
33823 # OSF1 and SCO ODT 3.0 have their own names for install.
33824 # Don't use installbsd from OSF since it installs stuff as root
33825 # by default.
33826 for ac_prog in ginstall scoinst install; do
33827 for ac_exec_ext in '' $ac_executable_extensions; do
33828 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
33829 if test $ac_prog = install &&
33830 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33831 # AIX install. It has an incompatible calling convention.
33832 :
33833 elif test $ac_prog = install &&
33834 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33835 # program-specific install script used by HP pwplus--don't use.
33836 :
33837 else
33838 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
33839 break 3
33840 fi
33841 fi
fe0895cf 33842 done
e6cc62c6
VS
33843 done
33844 ;;
33845esac
33846done
33847
fe0895cf
VS
33848
33849fi
33850 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 33851 INSTALL=$ac_cv_path_install
fe0895cf
VS
33852 else
33853 # As a last resort, use the slow shell script. We don't cache a
33854 # path for INSTALL within a source directory, because that will
33855 # break other packages using the cache if that directory is
33856 # removed, or if the path is relative.
e6cc62c6 33857 INSTALL=$ac_install_sh
fe0895cf
VS
33858 fi
33859fi
e6cc62c6
VS
33860echo "$as_me:$LINENO: result: $INSTALL" >&5
33861echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
33862
33863# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
33864# It thinks the first close brace ends the variable substitution.
33865test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
33866
e6cc62c6 33867test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
33868
33869test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
33870
e6cc62c6
VS
33871 echo "$as_me:$LINENO: checking whether ln -s works" >&5
33872echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
33873LN_S=$as_ln_s
33874if test "$LN_S" = "ln -s"; then
33875 echo "$as_me:$LINENO: result: yes" >&5
33876echo "${ECHO_T}yes" >&6
fe0895cf 33877else
e6cc62c6
VS
33878 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
33879echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
33880fi
33881
33882
e6cc62c6
VS
33883 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
33884echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
33885set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
33886if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
33887 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 33888else
e6cc62c6 33889 cat >conftest.make <<\_ACEOF
fe0895cf 33890all:
e6cc62c6
VS
33891 @echo 'ac_maketemp="$(MAKE)"'
33892_ACEOF
fe0895cf 33893# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 33894eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
33895if test -n "$ac_maketemp"; then
33896 eval ac_cv_prog_make_${ac_make}_set=yes
33897else
33898 eval ac_cv_prog_make_${ac_make}_set=no
33899fi
e6cc62c6 33900rm -f conftest.make
fe0895cf
VS
33901fi
33902if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
33903 echo "$as_me:$LINENO: result: yes" >&5
33904echo "${ECHO_T}yes" >&6
fe0895cf
VS
33905 SET_MAKE=
33906else
e6cc62c6
VS
33907 echo "$as_me:$LINENO: result: no" >&5
33908echo "${ECHO_T}no" >&6
fe0895cf
VS
33909 SET_MAKE="MAKE=${MAKE-make}"
33910fi
33911
e6cc62c6
VS
33912
33913
fe0895cf
VS
33914 if test "$build" != "$host" ; then
33915 AR=$host_alias-ar
33916 STRIP=$host_alias-strip
33917 else
33918 # Extract the first word of "ar", so it can be a program name with args.
33919set dummy ar; ac_word=$2
e6cc62c6
VS
33920echo "$as_me:$LINENO: checking for $ac_word" >&5
33921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33922if test "${ac_cv_prog_AR+set}" = set; then
33923 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33924else
33925 if test -n "$AR"; then
33926 ac_cv_prog_AR="$AR" # Let the user override the test.
33927else
e6cc62c6
VS
33928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33929for as_dir in $PATH
33930do
33931 IFS=$as_save_IFS
33932 test -z "$as_dir" && as_dir=.
33933 for ac_exec_ext in '' $ac_executable_extensions; do
33934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33935 ac_cv_prog_AR="ar"
33936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33937 break 2
33938 fi
33939done
33940done
33941
fe0895cf
VS
33942 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
33943fi
33944fi
e6cc62c6 33945AR=$ac_cv_prog_AR
fe0895cf 33946if test -n "$AR"; then
e6cc62c6
VS
33947 echo "$as_me:$LINENO: result: $AR" >&5
33948echo "${ECHO_T}$AR" >&6
fe0895cf 33949else
e6cc62c6
VS
33950 echo "$as_me:$LINENO: result: no" >&5
33951echo "${ECHO_T}no" >&6
fe0895cf
VS
33952fi
33953
33954 # Extract the first word of "strip", so it can be a program name with args.
33955set dummy strip; ac_word=$2
e6cc62c6
VS
33956echo "$as_me:$LINENO: checking for $ac_word" >&5
33957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33958if test "${ac_cv_prog_STRIP+set}" = set; then
33959 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
33960else
33961 if test -n "$STRIP"; then
33962 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
33963else
e6cc62c6
VS
33964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33965for as_dir in $PATH
33966do
33967 IFS=$as_save_IFS
33968 test -z "$as_dir" && as_dir=.
33969 for ac_exec_ext in '' $ac_executable_extensions; do
33970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33971 ac_cv_prog_STRIP="strip"
33972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33973 break 2
33974 fi
33975done
33976done
33977
fe0895cf
VS
33978 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
33979fi
33980fi
e6cc62c6 33981STRIP=$ac_cv_prog_STRIP
fe0895cf 33982if test -n "$STRIP"; then
e6cc62c6
VS
33983 echo "$as_me:$LINENO: result: $STRIP" >&5
33984echo "${ECHO_T}$STRIP" >&6
fe0895cf 33985else
e6cc62c6
VS
33986 echo "$as_me:$LINENO: result: no" >&5
33987echo "${ECHO_T}no" >&6
fe0895cf
VS
33988fi
33989
33990 fi
33991
33992 case ${host} in
33993 *-hp-hpux* )
33994 INSTALL_DIR="mkdir"
33995 ;;
33996 *) INSTALL_DIR="$INSTALL -d"
33997 ;;
33998 esac
e6cc62c6 33999
fe0895cf 34000
6b9d41a5
VS
34001 LDFLAGS_GUI=
34002 case ${host} in
34003 *-*-cygwin* | *-*-mingw32* )
34004 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
34005 esac
34006
34007
fe0895cf 34008 fi
e6cc62c6
VS
34009
34010 echo "$as_me:$LINENO: checking if make is GNU make" >&5
34011echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 34012if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 34013 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34014else
e6cc62c6 34015
fe0895cf
VS
34016 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
34017 egrep -s GNU > /dev/null); then
34018 bakefile_cv_prog_makeisgnu="yes"
34019 else
34020 bakefile_cv_prog_makeisgnu="no"
34021 fi
fe0895cf 34022
e6cc62c6 34023fi
49b0a3aa
VS
34024echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
34025echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
34026
34027 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
34028 IF_GNU_MAKE=""
34029 else
34030 IF_GNU_MAKE="#"
34031 fi
fe0895cf 34032
e6cc62c6
VS
34033
34034
fe0895cf
VS
34035 PLATFORM_UNIX=0
34036 PLATFORM_WIN32=0
34037 PLATFORM_MSDOS=0
34038 PLATFORM_MAC=0
34039 PLATFORM_MACOSX=0
e6cc62c6 34040
fe0895cf
VS
34041 case "${host}" in
34042 *-*-cygwin* | *-*-mingw32* )
34043 PLATFORM_WIN32=1
34044 ;;
34045 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34046 PLATFORM_MSDOS=1
34047 ;;
34048 powerpc-*-darwin* )
34049 PLATFORM_MAC=1
34050 PLATFORM_MACOSX=1
34051 ;;
34052 * )
34053 PLATFORM_UNIX=1
34054 ;;
34055 esac
34056
fe0895cf 34057
e6cc62c6
VS
34058
34059
34060
34061
34062
34063
fe0895cf 34064 SO_SUFFIX="so"
131f235d 34065 SO_SUFFIX_MODULE="so"
fe0895cf
VS
34066 EXEEXT=""
34067 DLLPREFIX=lib
131f235d 34068 DLLPREFIX_MODULE=
e6cc62c6 34069
fe0895cf
VS
34070 case "${host}" in
34071 *-hp-hpux* )
34072 SO_SUFFIX="sl"
131f235d 34073 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
34074 ;;
34075 *-*-aix* )
34076 SO_SUFFIX="a"
131f235d 34077 SO_SUFFIX_MODULE="a"
fe0895cf
VS
34078 ;;
34079 *-*-cygwin* | *-*-mingw32* )
34080 SO_SUFFIX="dll"
131f235d 34081 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
34082 EXEEXT=".exe"
34083 DLLPREFIX=""
34084 ;;
34085 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34086 EXEEXT=".exe"
34087 DLLPREFIX=""
34088 ;;
34089 powerpc-*-darwin* )
34090 SO_SUFFIX="dylib"
131f235d 34091 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
34092 ;;
34093 esac
34094
fe0895cf 34095
e6cc62c6
VS
34096
34097
34098
34099
131f235d
VS
34100
34101
fe0895cf
VS
34102 SHARED_LD_CC="\$(CC) -shared -o"
34103 SHARED_LD_CXX="\$(CXX) -shared -o"
34104
34105 if test "x$GCC" = "xyes"; then
34106 PIC_FLAG="-fPIC"
34107 fi
34108
34109 case "${host}" in
34110 *-hp-hpux* )
34111 if test "x$GCC" = "xyes"; then
34112 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
34113 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
34114 else
34115 LDFLAGS="$LDFLAGS -L/usr/lib"
34116
34117 SHARED_LD_CC="${CC} -b -o"
34118 SHARED_LD_CXX="${CXX} -b -o"
34119 PIC_FLAG="+Z"
34120 fi
34121 ;;
34122
34123 *-*-linux* )
34124 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
34125 echo "$as_me:$LINENO: checking for Intel compiler" >&5
34126echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
34127if test "${bakefile_cv_prog_icc+set}" = set; then
34128 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 34129else
fe0895cf 34130
e6cc62c6
VS
34131 cat >conftest.$ac_ext <<_ACEOF
34132#line $LINENO "configure"
34133/* confdefs.h. */
34134_ACEOF
34135cat confdefs.h >>conftest.$ac_ext
34136cat >>conftest.$ac_ext <<_ACEOF
34137/* end confdefs.h. */
34138
34139int
34140main ()
34141{
fe0895cf
VS
34142
34143 #ifndef __INTEL_COMPILER
34144 #error Not icc
34145 #endif
e6cc62c6
VS
34146
34147 ;
34148 return 0;
34149}
34150_ACEOF
34151rm -f conftest.$ac_objext
34152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34153 (eval $ac_compile) 2>&5
34154 ac_status=$?
34155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156 (exit $ac_status); } &&
34157 { ac_try='test -s conftest.$ac_objext'
34158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34159 (eval $ac_try) 2>&5
34160 ac_status=$?
34161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34162 (exit $ac_status); }; }; then
fe0895cf
VS
34163 bakefile_cv_prog_icc=yes
34164else
e6cc62c6
VS
34165 echo "$as_me: failed program was:" >&5
34166sed 's/^/| /' conftest.$ac_ext >&5
34167
34168bakefile_cv_prog_icc=no
34169
fe0895cf 34170fi
e6cc62c6 34171rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 34172
e6cc62c6
VS
34173fi
34174echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34175echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
34176 if test "$bakefile_cv_prog_icc" = "yes"; then
34177 PIC_FLAG="-KPIC"
34178 fi
34179 fi
34180 ;;
34181
34182 *-*-solaris2* )
34183 if test "x$GCC" != xyes ; then
34184 SHARED_LD_CC="${CC} -G -o"
34185 SHARED_LD_CXX="${CXX} -G -o"
34186 PIC_FLAG="-KPIC"
34187 fi
34188 ;;
34189
34190 *-*-darwin* )
34191 CFLAGS="$CFLAGS -fno-common"
34192 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
34193
34194
fe0895cf
VS
34195 cat <<EOF >shared-ld-sh
34196#!/bin/sh
34197#-----------------------------------------------------------------------------
34198#-- Name: distrib/mac/shared-ld-sh
34199#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
34200#-- Author: Gilles Depeyrot
34201#-- Copyright: (c) 2002 Gilles Depeyrot
34202#-- Licence: any use permitted
34203#-----------------------------------------------------------------------------
34204
34205verbose=0
34206args=""
34207objects=""
131f235d 34208linking_flag="-dynamiclib"
fe0895cf
VS
34209
34210while test \${#} -gt 0; do
34211 case \${1} in
34212
34213 -v)
34214 verbose=1
34215 ;;
34216
34217 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34218 # collect these options and values
34219 args="\${args} \${1} \${2}"
34220 shift
34221 ;;
34222
34223 -l*|-L*|-flat_namespace)
34224 # collect these options
34225 args="\${args} \${1}"
34226 ;;
34227
131f235d
VS
34228 -dynamiclib|-bundle)
34229 linking_flag="\${1}"
fe0895cf
VS
34230 ;;
34231
34232 -*)
34233 echo "shared-ld: unhandled option '\${1}'"
34234 exit 1
34235 ;;
34236
4d264332 34237 *.o | *.a | *.dylib)
fe0895cf
VS
34238 # collect object files
34239 objects="\${objects} \${1}"
34240 ;;
34241
34242 *)
34243 echo "shared-ld: unhandled argument '\${1}'"
34244 exit 1
34245 ;;
34246
34247 esac
34248 shift
34249done
34250
34251#
34252# Link one module containing all the others
34253#
34254if test \${verbose} = 1; then
34255 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34256fi
34257c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34258status=\$?
34259if test \${status} != 0; then
34260 exit \${status}
34261fi
34262
34263#
34264# Link the shared library from the single module created
34265#
34266if test \${verbose} = 1; then
131f235d 34267 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 34268fi
131f235d 34269c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
34270status=\$?
34271if test \${status} != 0; then
34272 exit \${status}
34273fi
34274
34275#
34276# Remove intermediate module
34277#
34278rm -f master.\$\$.o
34279
34280exit 0
34281EOF
34282 chmod +x shared-ld-sh
34283
131f235d
VS
34284 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -undefined suppress -flat_namespace -o"
34285 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -undefined suppress -flat_namespace -o"
fe0895cf 34286 SHARED_LD_CXX="$SHARED_LD_CC"
131f235d 34287 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
fe0895cf
VS
34288 PIC_FLAG="-dynamic -fPIC"
34289 ;;
34290
34291 *-*-aix* )
34292 if test "x$GCC" != "xyes"; then
34293 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34294set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
34295echo "$as_me:$LINENO: checking for $ac_word" >&5
34296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34297if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34298 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34299else
34300 if test -n "$AIX_CXX_LD"; then
34301 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34302else
e6cc62c6
VS
34303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34304for as_dir in $PATH
34305do
34306 IFS=$as_save_IFS
34307 test -z "$as_dir" && as_dir=.
34308 for ac_exec_ext in '' $ac_executable_extensions; do
34309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34310 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34312 break 2
34313 fi
34314done
34315done
34316
fe0895cf
VS
34317 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34318fi
34319fi
e6cc62c6 34320AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 34321if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
34322 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34323echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 34324else
e6cc62c6
VS
34325 echo "$as_me:$LINENO: result: no" >&5
34326echo "${ECHO_T}no" >&6
fe0895cf
VS
34327fi
34328
34329 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34330 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34331 fi
34332 ;;
34333
34334 *-*-beos* )
34335 SHARED_LD_CC="${LD} -shared -o"
34336 SHARED_LD_CXX="${LD} -shared -o"
34337 ;;
34338
34339 *-*-irix* )
34340 if test "x$GCC" != "xyes"; then
34341 PIC_FLAG="-KPIC"
34342 fi
34343 ;;
e6cc62c6 34344
fe0895cf
VS
34345 *-*-cygwin* | *-*-mingw32* )
34346 PIC_FLAG=""
34347 ;;
e6cc62c6 34348
fe0895cf
VS
34349 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34350 *-*-sunos4* | \
34351 *-*-osf* | \
34352 *-*-dgux5* | \
d5fc095c 34353 *-pc-os2-emx | \
fe0895cf
VS
34354 *-*-sysv5* )
34355 ;;
34356
34357 *)
e6cc62c6
VS
34358 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34359echo "$as_me: error: unknown system type $host." >&2;}
34360 { (exit 1); exit 1; }; }
fe0895cf
VS
34361 esac
34362
131f235d
VS
34363 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
34364 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
34365 fi
34366 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 34367 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
34368 fi
34369
34370
34371
fe0895cf 34372
e6cc62c6
VS
34373
34374
34375
34376
fe0895cf
VS
34377 USE_SOVERSION=0
34378 USE_SOVERLINUX=0
34379 USE_SOVERSOLARIS=0
34380 USE_SOSYMLINKS=0
34381 USE_MACVERSION=0
34382 SONAME_FLAG=
34383
34384 case "${host}" in
34385 *-*-linux* )
34386 SONAME_FLAG="-Wl,-soname,"
34387 USE_SOVERSION=1
34388 USE_SOVERLINUX=1
34389 USE_SOSYMLINKS=1
34390 ;;
34391
34392 *-*-solaris2* )
34393 SONAME_FLAG="-h "
34394 USE_SOVERSION=1
34395 USE_SOVERSOLARIS=1
34396 USE_SOSYMLINKS=1
34397 ;;
34398
34399 *-*-darwin* )
34400 USE_MACVERSION=1
34401 USE_SOVERSION=1
34402 USE_SOSYMLINKS=1
e6cc62c6 34403 ;;
fe0895cf
VS
34404 esac
34405
fe0895cf 34406
e6cc62c6
VS
34407
34408
34409
34410
34411
34412
34413
49b0a3aa
VS
34414 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34415echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34416 DEPS_TRACKING=0
34417
fe0895cf 34418 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
34419 DEPSMODE=gcc
34420 DEPS_TRACKING=1
3e5c3c83
VS
34421 case "${host}" in
34422 powerpc-*-darwin* )
34423 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
34424 ;;
34425 * )
34426 DEPSFLAG_GCC="-MMD"
34427 ;;
34428 esac
49b0a3aa
VS
34429 echo "$as_me:$LINENO: result: gcc" >&5
34430echo "${ECHO_T}gcc" >&6
34431 else
34432 echo "$as_me:$LINENO: result: none" >&5
34433echo "${ECHO_T}none" >&6
34434 fi
34435
34436 if test $DEPS_TRACKING = 1 ; then
34437 cat <<EOF >bk-deps
34438#!/bin/sh
34439
45842500
VS
34440# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34441# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
34442#
34443# Permission is given to use this file in any way.
34444
34445DEPSMODE=$DEPSMODE
34446DEPSDIR=.deps
3e5c3c83 34447DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
34448
34449mkdir -p \$DEPSDIR
34450
34451if test \$DEPSMODE = gcc ; then
3e5c3c83 34452 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
34453 status=\${?}
34454 if test \${status} != 0 ; then
34455 exit \${status}
34456 fi
34457 # move created file to the location we want it in:
34458 while test \${#} -gt 0; do
34459 case "\${1}" in
34460 -o )
34461 shift
34462 objfile=\${1}
34463 ;;
34464 -* )
34465 ;;
34466 * )
34467 srcfile=\${1}
34468 ;;
34469 esac
34470 shift
34471 done
34472 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34473 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
34474 if test -f \$depfile ; then
34475 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34476 rm -f \$depfile
34477 else
34478 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34479 if test -f \$depfile ; then
4c8b7f4b 34480 sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
34481 rm -f \$depfile
34482 fi
34483 fi
49b0a3aa
VS
34484 exit 0
34485else
34486 \${*}
34487 exit \${?}
34488fi
34489EOF
34490 chmod +x bk-deps
fe0895cf 34491 fi
fe0895cf 34492
e6cc62c6
VS
34493
34494
34495
fe0895cf
VS
34496 RESCOMP=
34497 SETFILE=
34498
e6cc62c6 34499 case ${host} in
fe0895cf
VS
34500 *-*-cygwin* | *-*-mingw32* )
34501 if test "$build" != "$host" ; then
34502 RESCOMP=$host_alias-windres
34503 else
34504 # Extract the first word of "windres", so it can be a program name with args.
34505set dummy windres; ac_word=$2
e6cc62c6
VS
34506echo "$as_me:$LINENO: checking for $ac_word" >&5
34507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34508if test "${ac_cv_prog_RESCOMP+set}" = set; then
34509 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34510else
34511 if test -n "$RESCOMP"; then
34512 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34513else
e6cc62c6
VS
34514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34515for as_dir in $PATH
34516do
34517 IFS=$as_save_IFS
34518 test -z "$as_dir" && as_dir=.
34519 for ac_exec_ext in '' $ac_executable_extensions; do
34520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34521 ac_cv_prog_RESCOMP="windres"
34522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34523 break 2
34524 fi
34525done
34526done
34527
fe0895cf
VS
34528 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34529fi
34530fi
e6cc62c6 34531RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34532if test -n "$RESCOMP"; then
e6cc62c6
VS
34533 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34534echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34535else
e6cc62c6
VS
34536 echo "$as_me:$LINENO: result: no" >&5
34537echo "${ECHO_T}no" >&6
fe0895cf
VS
34538fi
34539
34540 fi
34541 ;;
e6cc62c6 34542
fe0895cf
VS
34543 *-*-darwin* )
34544 # Extract the first word of "Rez", so it can be a program name with args.
34545set dummy Rez; ac_word=$2
e6cc62c6
VS
34546echo "$as_me:$LINENO: checking for $ac_word" >&5
34547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34548if test "${ac_cv_prog_RESCOMP+set}" = set; then
34549 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34550else
34551 if test -n "$RESCOMP"; then
34552 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34553else
e6cc62c6
VS
34554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34555for as_dir in $PATH
34556do
34557 IFS=$as_save_IFS
34558 test -z "$as_dir" && as_dir=.
34559 for ac_exec_ext in '' $ac_executable_extensions; do
34560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34561 ac_cv_prog_RESCOMP="Rez"
34562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34563 break 2
34564 fi
34565done
34566done
34567
fe0895cf
VS
34568 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34569fi
34570fi
e6cc62c6 34571RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 34572if test -n "$RESCOMP"; then
e6cc62c6
VS
34573 echo "$as_me:$LINENO: result: $RESCOMP" >&5
34574echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 34575else
e6cc62c6
VS
34576 echo "$as_me:$LINENO: result: no" >&5
34577echo "${ECHO_T}no" >&6
fe0895cf
VS
34578fi
34579
34580 # Extract the first word of "SetFile", so it can be a program name with args.
34581set dummy SetFile; ac_word=$2
e6cc62c6
VS
34582echo "$as_me:$LINENO: checking for $ac_word" >&5
34583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34584if test "${ac_cv_prog_SETFILE+set}" = set; then
34585 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
34586else
34587 if test -n "$SETFILE"; then
34588 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34589else
e6cc62c6
VS
34590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34591for as_dir in $PATH
34592do
34593 IFS=$as_save_IFS
34594 test -z "$as_dir" && as_dir=.
34595 for ac_exec_ext in '' $ac_executable_extensions; do
34596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34597 ac_cv_prog_SETFILE="SetFile"
34598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34599 break 2
34600 fi
34601done
34602done
34603
fe0895cf
VS
34604 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34605fi
34606fi
e6cc62c6 34607SETFILE=$ac_cv_prog_SETFILE
fe0895cf 34608if test -n "$SETFILE"; then
e6cc62c6
VS
34609 echo "$as_me:$LINENO: result: $SETFILE" >&5
34610echo "${ECHO_T}$SETFILE" >&6
fe0895cf 34611else
e6cc62c6
VS
34612 echo "$as_me:$LINENO: result: no" >&5
34613echo "${ECHO_T}no" >&6
fe0895cf
VS
34614fi
34615
34616 ;;
34617 esac
34618
fe0895cf
VS
34619
34620
e6cc62c6
VS
34621
34622
34623
34624
45842500 34625
40b46a49
VS
34626
34627
45842500
VS
34628 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
34629if test "${enable_precomp_headers+set}" = set; then
34630 enableval="$enable_precomp_headers"
34631 bk_use_pch="$enableval"
34632fi;
34633
34634 GCC_PCH=0
34635
34636 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
34637 if test "x$GCC" = "xyes"; then
34638 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
34639echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
34640 cat >conftest.$ac_ext <<_ACEOF
34641#line $LINENO "configure"
34642/* confdefs.h. */
34643_ACEOF
34644cat confdefs.h >>conftest.$ac_ext
34645cat >>conftest.$ac_ext <<_ACEOF
34646/* end confdefs.h. */
34647
34648int
34649main ()
34650{
34651
8bcf2d20
VS
34652 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
34653 #error "no pch support"
34654 #endif
34655 #if (__GNUC__ < 3)
34656 #error "no pch support"
34657 #endif
34658 #if (__GNUC__ == 3) && \
34659 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
34660 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
34661 #error "no pch support"
45842500
VS
34662 #endif
34663
34664 ;
34665 return 0;
34666}
34667_ACEOF
34668rm -f conftest.$ac_objext
34669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34670 (eval $ac_compile) 2>&5
34671 ac_status=$?
34672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34673 (exit $ac_status); } &&
34674 { ac_try='test -s conftest.$ac_objext'
34675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34676 (eval $ac_try) 2>&5
34677 ac_status=$?
34678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34679 (exit $ac_status); }; }; then
34680
34681 echo "$as_me:$LINENO: result: yes" >&5
34682echo "${ECHO_T}yes" >&6
34683 CPPFLAGS="-fpch-deps $CPPFLAGS"
34684 GCC_PCH=1
34685
34686else
34687 echo "$as_me: failed program was:" >&5
34688sed 's/^/| /' conftest.$ac_ext >&5
34689
34690
34691 echo "$as_me:$LINENO: result: no" >&5
34692echo "${ECHO_T}no" >&6
34693
34694fi
34695rm -f conftest.$ac_objext conftest.$ac_ext
34696 if test $GCC_PCH = 1 ; then
34697 cat <<EOF >bk-make-pch
34698#!/bin/sh
34699
34700# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34701# script. It is used to generated precompiled headers.
34702#
34703# Permission is given to use this file in any way.
34704
34705outfile="\${1}"
34706header="\${2}"
34707shift
34708shift
34709
34710compiler=
34711headerfile=
34712while test \${#} -gt 0; do
34713 case "\${1}" in
34714 -I* )
34715 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
34716 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
34717 headerfile="\${incdir}/\${header}"
34718 fi
34719 ;;
34720 esac
34721 compiler="\${compiler} \${1}"
34722 shift
34723done
34724
34725if test "x\${headerfile}" = "x" ; then
34726 echo "error: can't find header \${header} in include paths" >2
34727else
34728 if test -f \${outfile} ; then
34729 rm -f \${outfile}
34730 else
34731 mkdir -p \`dirname \${outfile}\`
34732 fi
34733 depsfile=".deps/\`basename \${outfile}\`.d"
34734 mkdir -p .deps
34735 # can do this because gcc is >= 3.4:
34736 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
34737 exit \${?}
34738fi
34739EOF
34740 chmod +x bk-make-pch
34741 fi
34742 fi
34743 fi
34744
34745
34746
34747
34748
d78c94f2 34749 COND_BUILD_DEBUG="#"
6f628073 34750 if test "x$BUILD" = "xdebug" ; then
d78c94f2 34751 COND_BUILD_DEBUG=""
6f628073
VS
34752 fi
34753
6c67131a
VS
34754 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
34755 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
34756 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
34757 fi
34758
34759 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
34760 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
34761 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
34762 fi
34763
d78c94f2 34764 COND_BUILD_RELEASE="#"
6f628073 34765 if test "x$BUILD" = "xrelease" ; then
d78c94f2 34766 COND_BUILD_RELEASE=""
6b9d41a5
VS
34767 fi
34768
6c67131a
VS
34769 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
34770 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
34771 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
34772 fi
34773
34774 COND_DEBUG_FLAG_1="#"
34775 if test "x$DEBUG_FLAG" = "x1" ; then
34776 COND_DEBUG_FLAG_1=""
34777 fi
34778
34779 COND_DEBUG_INFO_0="#"
34780 if test "x$DEBUG_INFO" = "x0" ; then
34781 COND_DEBUG_INFO_0=""
34782 fi
34783
34784 COND_DEBUG_INFO_1="#"
34785 if test "x$DEBUG_INFO" = "x1" ; then
34786 COND_DEBUG_INFO_1=""
34787 fi
34788
f95cd8fa
VS
34789 COND_DEPS_TRACKING_0="#"
34790 if test "x$DEPS_TRACKING" = "x0" ; then
34791 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
34792 fi
34793
8ee2dd05
VS
34794 COND_DEPS_TRACKING_1="#"
34795 if test "x$DEPS_TRACKING" = "x1" ; then
34796 COND_DEPS_TRACKING_1=""
34797 fi
34798
45842500
VS
34799 COND_GCC_PCH_1="#"
34800 if test "x$GCC_PCH" = "x1" ; then
34801 COND_GCC_PCH_1=""
34802 fi
34803
6f628073
VS
34804 COND_MONOLITHIC_0="#"
34805 if test "x$MONOLITHIC" = "x0" ; then
34806 COND_MONOLITHIC_0=""
6b9d41a5
VS
34807 fi
34808
6f628073
VS
34809 COND_MONOLITHIC_0_SHARED_0="#"
34810 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
34811 COND_MONOLITHIC_0_SHARED_0=""
34812 fi
34813
34814 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
34815 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
34816 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 34817 fi
e6cc62c6 34818
8772a1a7
VS
34819 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
34820 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
34821 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
34822 fi
34823
250700e4
RD
34824 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
34825 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
34826 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
34827 fi
34828
eb69fda5
VS
34829 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
34830 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
34831 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
34832 fi
34833
8ee2dd05
VS
34834 COND_MONOLITHIC_0_SHARED_1="#"
34835 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
34836 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 34837 fi
e6cc62c6 34838
6f628073
VS
34839 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
34840 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
34841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
34842 fi
34843
8772a1a7
VS
34844 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
34845 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
34846 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
34847 fi
34848
250700e4
RD
34849 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
34850 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
34851 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
34852 fi
34853
eb69fda5
VS
34854 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
34855 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
34856 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
34857 fi
34858
3af038c0
VS
34859 COND_MONOLITHIC_1="#"
34860 if test "x$MONOLITHIC" = "x1" ; then
34861 COND_MONOLITHIC_1=""
34862 fi
34863
6f628073
VS
34864 COND_MONOLITHIC_1_SHARED_0="#"
34865 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
34866 COND_MONOLITHIC_1_SHARED_0=""
34867 fi
34868
34869 COND_MONOLITHIC_1_SHARED_1="#"
34870 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
34871 COND_MONOLITHIC_1_SHARED_1=""
34872 fi
34873
3af038c0
VS
34874 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
34875 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
34876 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
34877 fi
34878
34879 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
34880 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
34881 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
34882 fi
34883
6f628073
VS
34884 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
34885 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
34886 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
34887 fi
34888
3af038c0
VS
34889 COND_PLATFORM_MACOSX_1="#"
34890 if test "x$PLATFORM_MACOSX" = "x1" ; then
34891 COND_PLATFORM_MACOSX_1=""
34892 fi
34893
250700e4
RD
34894 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
34895 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
34896 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
34897 fi
34898
34899 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
34900 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
34901 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
34902 fi
34903
34904 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
34905 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
34906 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
34907 fi
34908
8ee2dd05
VS
34909 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
34910 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
34911 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
34912 fi
34913
45842500
VS
34914 COND_PLATFORM_MAC_1="#"
34915 if test "x$PLATFORM_MAC" = "x1" ; then
34916 COND_PLATFORM_MAC_1=""
34917 fi
34918
8772a1a7
VS
34919 COND_PLATFORM_UNIX_0="#"
34920 if test "x$PLATFORM_UNIX" = "x0" ; then
34921 COND_PLATFORM_UNIX_0=""
34922 fi
34923
3af038c0
VS
34924 COND_PLATFORM_UNIX_1="#"
34925 if test "x$PLATFORM_UNIX" = "x1" ; then
34926 COND_PLATFORM_UNIX_1=""
34927 fi
34928
34929 COND_PLATFORM_WIN32_0="#"
34930 if test "x$PLATFORM_WIN32" = "x0" ; then
34931 COND_PLATFORM_WIN32_0=""
34932 fi
34933
34934 COND_PLATFORM_WIN32_1="#"
34935 if test "x$PLATFORM_WIN32" = "x1" ; then
34936 COND_PLATFORM_WIN32_1=""
34937 fi
34938
45842500
VS
34939 COND_SHARED_0="#"
34940 if test "x$SHARED" = "x0" ; then
34941 COND_SHARED_0=""
34942 fi
34943
250700e4
RD
34944 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
34945 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
34946 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
34947 fi
34948
52a5a009
VS
34949 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
34950 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
34951 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
34952 fi
34953
34954 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
34955 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
34956 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
34957 fi
34958
34959 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
34960 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
34961 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
34962 fi
34963
34964 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
34965 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
34966 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
34967 fi
34968
34969 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
34970 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
34971 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
34972 fi
34973
34974 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
34975 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
34976 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
34977 fi
34978
34979 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
34980 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
34981 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
34982 fi
34983
45842500
VS
34984 COND_SHARED_1="#"
34985 if test "x$SHARED" = "x1" ; then
34986 COND_SHARED_1=""
34987 fi
34988
250700e4
RD
34989 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
34990 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
34991 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
34992 fi
34993
6f628073
VS
34994 COND_TOOLKIT_COCOA="#"
34995 if test "x$TOOLKIT" = "xCOCOA" ; then
34996 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
34997 fi
34998
6f628073
VS
34999 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
35000 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35001 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35002 fi
35003
6f628073
VS
35004 COND_TOOLKIT_GTK="#"
35005 if test "x$TOOLKIT" = "xGTK" ; then
35006 COND_TOOLKIT_GTK=""
f95cd8fa
VS
35007 fi
35008
6f628073
VS
35009 COND_TOOLKIT_GTK_USE_GUI_1="#"
35010 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
35011 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
35012 fi
35013
6f628073
VS
35014 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
35015 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35016 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35017 fi
35018
3af038c0
VS
35019 COND_TOOLKIT_MAC="#"
35020 if test "x$TOOLKIT" = "xMAC" ; then
35021 COND_TOOLKIT_MAC=""
35022 fi
35023
8772a1a7
VS
35024 COND_TOOLKIT_MAC_USE_GUI_1="#"
35025 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
35026 COND_TOOLKIT_MAC_USE_GUI_1=""
35027 fi
35028
6f628073
VS
35029 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
35030 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35031 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35032 fi
35033
6f628073
VS
35034 COND_TOOLKIT_MGL="#"
35035 if test "x$TOOLKIT" = "xMGL" ; then
35036 COND_TOOLKIT_MGL=""
8ee2dd05
VS
35037 fi
35038
6f628073
VS
35039 COND_TOOLKIT_MGL_USE_GUI_1="#"
35040 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
35041 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
35042 fi
35043
6f628073
VS
35044 COND_TOOLKIT_MOTIF="#"
35045 if test "x$TOOLKIT" = "xMOTIF" ; then
35046 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
35047 fi
35048
6f628073
VS
35049 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
35050 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
35051 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 35052 fi
e6cc62c6 35053
6f628073
VS
35054 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
35055 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35056 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
35057 fi
35058
6f628073
VS
35059 COND_TOOLKIT_MSW="#"
35060 if test "x$TOOLKIT" = "xMSW" ; then
35061 COND_TOOLKIT_MSW=""
8ee2dd05
VS
35062 fi
35063
6f628073
VS
35064 COND_TOOLKIT_MSW_USE_GUI_1="#"
35065 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
35066 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 35067 fi
e6cc62c6 35068
6f628073
VS
35069 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
35070 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35071 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 35072 fi
e6cc62c6 35073
6f628073
VS
35074 COND_TOOLKIT_OS2="#"
35075 if test "x$TOOLKIT" = "xOS2" ; then
35076 COND_TOOLKIT_OS2=""
9747f85d
VS
35077 fi
35078
8772a1a7
VS
35079 COND_TOOLKIT_OS2_USE_GUI_1="#"
35080 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" ; then
35081 COND_TOOLKIT_OS2_USE_GUI_1=""
35082 fi
35083
6f628073
VS
35084 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#"
35085 if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35086 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0=""
f95cd8fa
VS
35087 fi
35088
6f628073
VS
35089 COND_TOOLKIT_X11="#"
35090 if test "x$TOOLKIT" = "xX11" ; then
35091 COND_TOOLKIT_X11=""
9747f85d
VS
35092 fi
35093
6f628073
VS
35094 COND_TOOLKIT_X11_USE_GUI_1="#"
35095 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
35096 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
35097 fi
35098
3af038c0
VS
35099 COND_UNICODE_1="#"
35100 if test "x$UNICODE" = "x1" ; then
35101 COND_UNICODE_1=""
35102 fi
35103
35104 COND_USE_GUI_0="#"
35105 if test "x$USE_GUI" = "x0" ; then
35106 COND_USE_GUI_0=""
35107 fi
35108
35109 COND_USE_GUI_1="#"
35110 if test "x$USE_GUI" = "x1" ; then
35111 COND_USE_GUI_1=""
35112 fi
35113
e6cc62c6 35114 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
35115 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35116 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 35117 fi
e6cc62c6
VS
35118
35119 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
35120 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
35121 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
35122 fi
35123
66a96744
VS
35124 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35125 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35126 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35127 fi
35128
35129 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35130 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35131 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35132 fi
35133
35134 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35135 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35136 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35137 fi
35138
6f628073
VS
35139 COND_USE_SOSYMLINKS_1="#"
35140 if test "x$USE_SOSYMLINKS" = "x1" ; then
35141 COND_USE_SOSYMLINKS_1=""
b625909c
VS
35142 fi
35143
6f628073
VS
35144 COND_USE_SOVERLINUX_1="#"
35145 if test "x$USE_SOVERLINUX" = "x1" ; then
35146 COND_USE_SOVERLINUX_1=""
b625909c
VS
35147 fi
35148
6f628073
VS
35149 COND_USE_SOVERSION_0="#"
35150 if test "x$USE_SOVERSION" = "x0" ; then
35151 COND_USE_SOVERSION_0=""
fddeb06b 35152 fi
fe0895cf 35153
6f628073
VS
35154 COND_USE_SOVERSOLARIS_1="#"
35155 if test "x$USE_SOVERSOLARIS" = "x1" ; then
35156 COND_USE_SOVERSOLARIS_1=""
fddeb06b 35157 fi
fe0895cf 35158
3af038c0
VS
35159 COND_WXUNIV_1="#"
35160 if test "x$WXUNIV" = "x1" ; then
35161 COND_WXUNIV_1=""
35162 fi
35163
66a96744
VS
35164 COND_WXUSE_EXPAT_BUILTIN="#"
35165 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
35166 COND_WXUSE_EXPAT_BUILTIN=""
35167 fi
35168
02980527
VS
35169 COND_WXUSE_LIBJPEG_BUILTIN="#"
35170 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35171 COND_WXUSE_LIBJPEG_BUILTIN=""
35172 fi
35173
35174 COND_WXUSE_LIBPNG_BUILTIN="#"
35175 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35176 COND_WXUSE_LIBPNG_BUILTIN=""
35177 fi
35178
35179 COND_WXUSE_LIBTIFF_BUILTIN="#"
35180 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35181 COND_WXUSE_LIBTIFF_BUILTIN=""
35182 fi
35183
35184 COND_WXUSE_ODBC_BUILTIN="#"
35185 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
35186 COND_WXUSE_ODBC_BUILTIN=""
35187 fi
35188
35189 COND_WXUSE_REGEX_BUILTIN="#"
35190 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
35191 COND_WXUSE_REGEX_BUILTIN=""
35192 fi
35193
35194 COND_WXUSE_ZLIB_BUILTIN="#"
35195 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
35196 COND_WXUSE_ZLIB_BUILTIN=""
35197 fi
35198
1772d20c 35199
fe0895cf 35200
fe0895cf 35201
fe0895cf 35202
45842500
VS
35203if test $GCC_PCH = 1 ; then
35204 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
35205else
35206 case "${host}" in
35207 powerpc-*-darwin* )
35208 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
35209 ;;
45842500
VS
35210 esac
35211fi
2c6f14e1
VS
35212case "${host}" in
35213 powerpc-*-darwin* )
35214 CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX"
35215 ;;
35216esac
fe0895cf
VS
35217
35218
fddeb06b 35219SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
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
35298
35299
35300
35301
35302
35303
35304
35305
35306
35307
35308
35309
35310
35311
35312
35313
fe0895cf 35314
f0290fca
VS
35315
35316
67c13b6c 35317
e6cc62c6
VS
35318
35319
35320echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35321echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35322set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
35323if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35324 echo $ECHO_N "(cached) $ECHO_C" >&6
35325else
35326 cat >conftest.make <<\_ACEOF
35327all:
35328 @echo 'ac_maketemp="$(MAKE)"'
35329_ACEOF
35330# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35331eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35332if test -n "$ac_maketemp"; then
35333 eval ac_cv_prog_make_${ac_make}_set=yes
35334else
35335 eval ac_cv_prog_make_${ac_make}_set=no
35336fi
35337rm -f conftest.make
35338fi
35339if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35340 echo "$as_me:$LINENO: result: yes" >&5
35341echo "${ECHO_T}yes" >&6
35342 SET_MAKE=
35343else
35344 echo "$as_me:$LINENO: result: no" >&5
35345echo "${ECHO_T}no" >&6
35346 SET_MAKE="MAKE=${MAKE-make}"
35347fi
35348
35349
35350if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
35351 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
35352fi
35353
35354 ac_config_headers="$ac_config_headers setup.h"
35355
35356
81345eef 35357 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
35358
35359
35360 ac_config_commands="$ac_config_commands default"
35361
35362
9de9b8f0 35363
6c3e36af
VZ
35364if test "$wxUSE_GUI" = "yes"; then
35365 SUBDIRS="samples demos utils contrib"
35366else SUBDIRS="samples utils"
35367fi
e6cc62c6 35368
166263e6 35369for subdir in `echo $SUBDIRS`; do
9747f85d 35370 if test -d ${srcdir}/${subdir} ; then
6c3e36af 35371 if test "$wxUSE_GUI" = "yes"; then
166263e6 35372 if test ${subdir} = "samples"; then
8772a1a7
VS
35373 makefiles="samples/Makefile.in $makefiles"
35374 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
35375 if test -d $srcdir/samples/$sample; then
35376 makefiles="samples/$sample/Makefile.in $makefiles"
35377 fi
35378 done
35379 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
35380 fi
6c3e36af 35381 else if test ${subdir} = "samples"; then
8772a1a7 35382 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af
VZ
35383 else makefiles="utils/HelpGen/Makefile.in \
35384 utils/HelpGen/src/Makefile.in \
35385 utils/makegen/Makefile.in"
35386 fi
35387 fi
35388
9747f85d
VS
35389 for mkin in $makefiles ; do
35390 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
35391 ac_config_files="$ac_config_files $mk"
e6cc62c6 35392
9747f85d
VS
35393 done
35394 fi
35395done
e6cc62c6 35396
9de9b8f0 35397
e6cc62c6
VS
35398cat >confcache <<\_ACEOF
35399# This file is a shell script that caches the results of configure
35400# tests run on this system so they can be shared between configure
35401# scripts and configure runs, see configure's option --config-cache.
35402# It is not useful on other systems. If it contains results you don't
35403# want to keep, you may remove or edit it.
35404#
35405# config.status only pays attention to the cache file if you give it
35406# the --recheck option to rerun configure.
35407#
35408# `ac_cv_env_foo' variables (set or unset) will be overridden when
35409# loading this file, other *unset* `ac_cv_foo' will be assigned the
35410# following values.
35411
35412_ACEOF
35413
35414# The following way of writing the cache mishandles newlines in values,
35415# but we know of no workaround that is simple, portable, and efficient.
35416# So, don't put newlines in cache variables' values.
35417# Ultrix sh set writes to stderr and can't be redirected directly,
35418# and sets the high bit in the cache file unless we assign to the vars.
35419{
35420 (set) 2>&1 |
35421 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35422 *ac_space=\ *)
35423 # `set' does not quote correctly, so add quotes (double-quote
35424 # substitution turns \\\\ into \\, and sed turns \\ into \).
35425 sed -n \
35426 "s/'/'\\\\''/g;
35427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35428 ;;
35429 *)
35430 # `set' quotes correctly as required by POSIX, so do not add quotes.
35431 sed -n \
35432 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35433 ;;
35434 esac;
35435} |
35436 sed '
35437 t clear
35438 : clear
35439 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35440 t end
35441 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35442 : end' >>confcache
35443if diff $cache_file confcache >/dev/null 2>&1; then :; else
35444 if test -w $cache_file; then
35445 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35446 cat confcache >$cache_file
35447 else
35448 echo "not updating unwritable cache $cache_file"
35449 fi
35450fi
35451rm -f confcache
35452
35453test "x$prefix" = xNONE && prefix=$ac_default_prefix
35454# Let make expand exec_prefix.
35455test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35456
35457# VPATH may cause trouble with some makes, so we remove $(srcdir),
35458# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35459# trailing colons and then remove the whole line if VPATH becomes empty
35460# (actually we leave an empty line to preserve line numbers).
35461if test "x$srcdir" = x.; then
35462 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35463s/:*\$(srcdir):*/:/;
35464s/:*\${srcdir}:*/:/;
35465s/:*@srcdir@:*/:/;
35466s/^\([^=]*=[ ]*\):*/\1/;
35467s/:*$//;
35468s/^[^=]*=[ ]*$//;
35469}'
35470fi
35471
35472DEFS=-DHAVE_CONFIG_H
35473
35474ac_libobjs=
35475ac_ltlibobjs=
35476for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35477 # 1. Remove the extension, and $U if already installed.
35478 ac_i=`echo "$ac_i" |
35479 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35480 # 2. Add them.
35481 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35482 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35483done
35484LIBOBJS=$ac_libobjs
35485
35486LTLIBOBJS=$ac_ltlibobjs
35487
35488
35489
35490: ${CONFIG_STATUS=./config.status}
35491ac_clean_files_save=$ac_clean_files
35492ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35493{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35494echo "$as_me: creating $CONFIG_STATUS" >&6;}
35495cat >$CONFIG_STATUS <<_ACEOF
35496#! $SHELL
35497# Generated by $as_me.
35498# Run this file to recreate the current configuration.
35499# Compiler output produced by configure, useful for debugging
35500# configure, is in config.log if it exists.
35501
35502debug=false
35503ac_cs_recheck=false
35504ac_cs_silent=false
35505SHELL=\${CONFIG_SHELL-$SHELL}
35506_ACEOF
35507
35508cat >>$CONFIG_STATUS <<\_ACEOF
35509## --------------------- ##
35510## M4sh Initialization. ##
35511## --------------------- ##
35512
35513# Be Bourne compatible
35514if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35515 emulate sh
35516 NULLCMD=:
35517 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35518 # is contrary to our usage. Disable this feature.
35519 alias -g '${1+"$@"}'='"$@"'
35520elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35521 set -o posix
35522fi
35523
35524# Support unset when possible.
35525if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35526 as_unset=unset
35527else
35528 as_unset=false
35529fi
35530
35531
35532# Work around bugs in pre-3.0 UWIN ksh.
35533$as_unset ENV MAIL MAILPATH
35534PS1='$ '
35535PS2='> '
35536PS4='+ '
35537
35538# NLS nuisances.
35539for as_var in \
35540 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35541 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35542 LC_TELEPHONE LC_TIME
35543do
35544 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
35545 eval $as_var=C; export $as_var
35546 else
35547 $as_unset $as_var
35548 fi
35549done
35550
35551# Required to use basename.
35552if expr a : '\(a\)' >/dev/null 2>&1; then
35553 as_expr=expr
35554else
35555 as_expr=false
35556fi
35557
35558if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35559 as_basename=basename
35560else
35561 as_basename=false
35562fi
35563
35564
35565# Name of the executable.
35566as_me=`$as_basename "$0" ||
35567$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35568 X"$0" : 'X\(//\)$' \| \
35569 X"$0" : 'X\(/\)$' \| \
35570 . : '\(.\)' 2>/dev/null ||
35571echo X/"$0" |
35572 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
35573 /^X\/\(\/\/\)$/{ s//\1/; q; }
35574 /^X\/\(\/\).*/{ s//\1/; q; }
35575 s/.*/./; q'`
35576
35577
35578# PATH needs CR, and LINENO needs CR and PATH.
35579# Avoid depending upon Character Ranges.
35580as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35581as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35582as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35583as_cr_digits='0123456789'
35584as_cr_alnum=$as_cr_Letters$as_cr_digits
35585
35586# The user is always right.
35587if test "${PATH_SEPARATOR+set}" != set; then
35588 echo "#! /bin/sh" >conf$$.sh
35589 echo "exit 0" >>conf$$.sh
35590 chmod +x conf$$.sh
35591 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35592 PATH_SEPARATOR=';'
35593 else
35594 PATH_SEPARATOR=:
35595 fi
35596 rm -f conf$$.sh
35597fi
35598
35599
35600 as_lineno_1=$LINENO
35601 as_lineno_2=$LINENO
35602 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35603 test "x$as_lineno_1" != "x$as_lineno_2" &&
35604 test "x$as_lineno_3" = "x$as_lineno_2" || {
35605 # Find who we are. Look in the path if we contain no path at all
35606 # relative or not.
35607 case $0 in
35608 *[\\/]* ) as_myself=$0 ;;
35609 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35610for as_dir in $PATH
35611do
35612 IFS=$as_save_IFS
35613 test -z "$as_dir" && as_dir=.
35614 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35615done
35616
35617 ;;
35618 esac
35619 # We did not find ourselves, most probably we were run as `sh COMMAND'
35620 # in which case we are not to be found in the path.
35621 if test "x$as_myself" = x; then
35622 as_myself=$0
35623 fi
35624 if test ! -f "$as_myself"; then
35625 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35626echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35627 { (exit 1); exit 1; }; }
35628 fi
35629 case $CONFIG_SHELL in
35630 '')
35631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35632for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35633do
35634 IFS=$as_save_IFS
35635 test -z "$as_dir" && as_dir=.
35636 for as_base in sh bash ksh sh5; do
35637 case $as_dir in
35638 /*)
35639 if ("$as_dir/$as_base" -c '
35640 as_lineno_1=$LINENO
35641 as_lineno_2=$LINENO
35642 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35643 test "x$as_lineno_1" != "x$as_lineno_2" &&
35644 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
35645 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35646 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35647 CONFIG_SHELL=$as_dir/$as_base
35648 export CONFIG_SHELL
35649 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35650 fi;;
35651 esac
35652 done
35653done
35654;;
35655 esac
35656
35657 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35658 # uniformly replaced by the line number. The first 'sed' inserts a
35659 # line-number line before each line; the second 'sed' does the real
35660 # work. The second script uses 'N' to pair each line-number line
35661 # with the numbered line, and appends trailing '-' during
35662 # substitution so that $LINENO is not a special case at line end.
35663 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35664 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
35665 sed '=' <$as_myself |
35666 sed '
35667 N
35668 s,$,-,
35669 : loop
35670 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35671 t loop
35672 s,-$,,
35673 s,^['$as_cr_digits']*\n,,
35674 ' >$as_me.lineno &&
35675 chmod +x $as_me.lineno ||
35676 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35677echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
35678 { (exit 1); exit 1; }; }
35679
35680 # Don't try to exec as it changes $[0], causing all sort of problems
35681 # (the dirname of $[0] is not the place where we might find the
35682 # original and so on. Autoconf is especially sensible to this).
35683 . ./$as_me.lineno
35684 # Exit status is that of the last command.
35685 exit
35686}
35687
35688
35689case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
35690 *c*,-n*) ECHO_N= ECHO_C='
35691' ECHO_T=' ' ;;
35692 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
35693 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
35694esac
35695
35696if expr a : '\(a\)' >/dev/null 2>&1; then
35697 as_expr=expr
35698else
35699 as_expr=false
35700fi
35701
35702rm -f conf$$ conf$$.exe conf$$.file
35703echo >conf$$.file
35704if ln -s conf$$.file conf$$ 2>/dev/null; then
35705 # We could just check for DJGPP; but this test a) works b) is more generic
35706 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
35707 if test -f conf$$.exe; then
35708 # Don't use ln at all; we don't have any links
35709 as_ln_s='cp -p'
35710 else
35711 as_ln_s='ln -s'
35712 fi
35713elif ln conf$$.file conf$$ 2>/dev/null; then
35714 as_ln_s=ln
35715else
35716 as_ln_s='cp -p'
35717fi
35718rm -f conf$$ conf$$.exe conf$$.file
35719
35720if mkdir -p . 2>/dev/null; then
35721 as_mkdir_p=:
35722else
35723 as_mkdir_p=false
35724fi
35725
35726as_executable_p="test -f"
35727
35728# Sed expression to map a string onto a valid CPP name.
35729as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35730
35731# Sed expression to map a string onto a valid variable name.
35732as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35733
35734
35735# IFS
35736# We need space, tab and new line, in precisely that order.
35737as_nl='
35738'
35739IFS=" $as_nl"
35740
35741# CDPATH.
35742$as_unset CDPATH
35743
35744exec 6>&1
35745
35746# Open the log real soon, to keep \$[0] and so on meaningful, and to
35747# report actual input values of CONFIG_FILES etc. instead of their
35748# values after options handling. Logging --version etc. is OK.
35749exec 5>>config.log
35750{
35751 echo
35752 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35753## Running $as_me. ##
35754_ASBOX
35755} >&5
35756cat >&5 <<_CSEOF
35757
35758This file was extended by wxWindows $as_me 2.5.0, which was
35759generated by GNU Autoconf 2.57. Invocation command line was
35760
35761 CONFIG_FILES = $CONFIG_FILES
35762 CONFIG_HEADERS = $CONFIG_HEADERS
35763 CONFIG_LINKS = $CONFIG_LINKS
35764 CONFIG_COMMANDS = $CONFIG_COMMANDS
35765 $ $0 $@
35766
35767_CSEOF
35768echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
35769echo >&5
35770_ACEOF
35771
35772# Files that config.status was made for.
35773if test -n "$ac_config_files"; then
35774 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
35775fi
35776
35777if test -n "$ac_config_headers"; then
35778 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
35779fi
35780
35781if test -n "$ac_config_links"; then
35782 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
35783fi
35784
35785if test -n "$ac_config_commands"; then
35786 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
35787fi
35788
35789cat >>$CONFIG_STATUS <<\_ACEOF
35790
35791ac_cs_usage="\
35792\`$as_me' instantiates files from templates according to the
35793current configuration.
35794
35795Usage: $0 [OPTIONS] [FILE]...
35796
35797 -h, --help print this help, then exit
35798 -V, --version print version number, then exit
35799 -q, --quiet do not print progress messages
35800 -d, --debug don't remove temporary files
35801 --recheck update $as_me by reconfiguring in the same conditions
35802 --file=FILE[:TEMPLATE]
35803 instantiate the configuration file FILE
35804 --header=FILE[:TEMPLATE]
35805 instantiate the configuration header FILE
35806
35807Configuration files:
35808$config_files
35809
35810Configuration headers:
35811$config_headers
35812
35813Configuration commands:
35814$config_commands
35815
35816Report bugs to <bug-autoconf@gnu.org>."
35817_ACEOF
35818
35819cat >>$CONFIG_STATUS <<_ACEOF
35820ac_cs_version="\\
35821wxWindows config.status 2.5.0
35822configured by $0, generated by GNU Autoconf 2.57,
35823 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
35824
35825Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
35826Free Software Foundation, Inc.
35827This config.status script is free software; the Free Software Foundation
35828gives unlimited permission to copy, distribute and modify it."
35829srcdir=$srcdir
35830INSTALL="$INSTALL"
35831_ACEOF
35832
35833cat >>$CONFIG_STATUS <<\_ACEOF
35834# If no file are specified by the user, then we need to provide default
35835# value. By we need to know if files were specified by the user.
35836ac_need_defaults=:
35837while test $# != 0
35838do
35839 case $1 in
35840 --*=*)
35841 ac_option=`expr "x$1" : 'x\([^=]*\)='`
35842 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
35843 ac_shift=:
35844 ;;
35845 -*)
35846 ac_option=$1
35847 ac_optarg=$2
35848 ac_shift=shift
35849 ;;
35850 *) # This is not an option, so the user has probably given explicit
35851 # arguments.
35852 ac_option=$1
35853 ac_need_defaults=false;;
35854 esac
35855
35856 case $ac_option in
35857 # Handling of the options.
35858_ACEOF
35859cat >>$CONFIG_STATUS <<\_ACEOF
35860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35861 ac_cs_recheck=: ;;
35862 --version | --vers* | -V )
35863 echo "$ac_cs_version"; exit 0 ;;
35864 --he | --h)
35865 # Conflict between --help and --header
35866 { { echo "$as_me:$LINENO: error: ambiguous option: $1
35867Try \`$0 --help' for more information." >&5
35868echo "$as_me: error: ambiguous option: $1
35869Try \`$0 --help' for more information." >&2;}
35870 { (exit 1); exit 1; }; };;
35871 --help | --hel | -h )
35872 echo "$ac_cs_usage"; exit 0 ;;
35873 --debug | --d* | -d )
35874 debug=: ;;
35875 --file | --fil | --fi | --f )
35876 $ac_shift
35877 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35878 ac_need_defaults=false;;
35879 --header | --heade | --head | --hea )
35880 $ac_shift
35881 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35882 ac_need_defaults=false;;
35883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35884 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35885 ac_cs_silent=: ;;
35886
35887 # This is an error.
35888 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
35889Try \`$0 --help' for more information." >&5
35890echo "$as_me: error: unrecognized option: $1
35891Try \`$0 --help' for more information." >&2;}
35892 { (exit 1); exit 1; }; } ;;
35893
35894 *) ac_config_targets="$ac_config_targets $1" ;;
35895
35896 esac
35897 shift
35898done
35899
35900ac_configure_extra_args=
35901
35902if $ac_cs_silent; then
35903 exec 6>/dev/null
35904 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
35905fi
35906
e6cc62c6
VS
35907_ACEOF
35908cat >>$CONFIG_STATUS <<_ACEOF
35909if \$ac_cs_recheck; then
35910 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35911 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
35912fi
35913
e6cc62c6 35914_ACEOF
fe0895cf 35915
e6cc62c6 35916cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 35917#
e6cc62c6 35918# INIT-COMMANDS section.
10f2d63a 35919#
10f2d63a 35920
a0b9e27f 35921
e6cc62c6
VS
35922 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
35923 LN_S="${LN_S}"
10f2d63a 35924
10f2d63a 35925
10f2d63a 35926
e6cc62c6 35927_ACEOF
8284b0c5 35928
52127426 35929
247f5006 35930
e6cc62c6
VS
35931cat >>$CONFIG_STATUS <<\_ACEOF
35932for ac_config_target in $ac_config_targets
247f5006 35933do
e6cc62c6
VS
35934 case "$ac_config_target" in
35935 # Handling of arguments.
81345eef
VZ
35936 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
35937 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
35938 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 35939 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
35940 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35941 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
35942 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35943echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35944 { (exit 1); exit 1; }; };;
247f5006
VZ
35945 esac
35946done
35947
e6cc62c6
VS
35948# If the user did not use the arguments to specify the items to instantiate,
35949# then the envvar interface is used. Set only those that are not.
35950# We use the long form for the default assignment because of an extremely
35951# bizarre bug on SunOS 4.1.3.
35952if $ac_need_defaults; then
35953 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35954 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35955 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35956fi
35957
35958# Have a temporary directory for convenience. Make it in the build tree
35959# simply because there is no reason to put it here, and in addition,
35960# creating and moving files from /tmp can sometimes cause problems.
35961# Create a temporary directory, and hook for its removal unless debugging.
35962$debug ||
35963{
35964 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
35965 trap '{ (exit 1); exit 1; }' 1 2 13 15
35966}
247f5006 35967
e6cc62c6 35968# Create a (secure) tmp directory for tmp files.
247f5006 35969
e6cc62c6
VS
35970{
35971 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
35972 test -n "$tmp" && test -d "$tmp"
35973} ||
35974{
35975 tmp=./confstat$$-$RANDOM
35976 (umask 077 && mkdir $tmp)
35977} ||
35978{
35979 echo "$me: cannot create a temporary directory in ." >&2
35980 { (exit 1); exit 1; }
35981}
35982
35983_ACEOF
35984
35985cat >>$CONFIG_STATUS <<_ACEOF
35986
35987#
35988# CONFIG_FILES section.
35989#
247f5006 35990
e6cc62c6
VS
35991# No need to generate the scripts if there are no CONFIG_FILES.
35992# This happens for instance when ./config.status config.h
35993if test -n "\$CONFIG_FILES"; then
35994 # Protect against being on the right side of a sed subst in config.status.
35995 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35996 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35997s,@SHELL@,$SHELL,;t t
35998s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35999s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36000s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36001s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36002s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36003s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36004s,@exec_prefix@,$exec_prefix,;t t
36005s,@prefix@,$prefix,;t t
36006s,@program_transform_name@,$program_transform_name,;t t
36007s,@bindir@,$bindir,;t t
36008s,@sbindir@,$sbindir,;t t
36009s,@libexecdir@,$libexecdir,;t t
36010s,@datadir@,$datadir,;t t
36011s,@sysconfdir@,$sysconfdir,;t t
36012s,@sharedstatedir@,$sharedstatedir,;t t
36013s,@localstatedir@,$localstatedir,;t t
36014s,@libdir@,$libdir,;t t
36015s,@includedir@,$includedir,;t t
36016s,@oldincludedir@,$oldincludedir,;t t
36017s,@infodir@,$infodir,;t t
36018s,@mandir@,$mandir,;t t
36019s,@build_alias@,$build_alias,;t t
36020s,@host_alias@,$host_alias,;t t
36021s,@target_alias@,$target_alias,;t t
36022s,@DEFS@,$DEFS,;t t
36023s,@ECHO_C@,$ECHO_C,;t t
36024s,@ECHO_N@,$ECHO_N,;t t
36025s,@ECHO_T@,$ECHO_T,;t t
36026s,@LIBS@,$LIBS,;t t
36027s,@build@,$build,;t t
36028s,@build_cpu@,$build_cpu,;t t
36029s,@build_vendor@,$build_vendor,;t t
36030s,@build_os@,$build_os,;t t
36031s,@host@,$host,;t t
36032s,@host_cpu@,$host_cpu,;t t
36033s,@host_vendor@,$host_vendor,;t t
36034s,@host_os@,$host_os,;t t
36035s,@target@,$target,;t t
36036s,@target_cpu@,$target_cpu,;t t
36037s,@target_vendor@,$target_vendor,;t t
36038s,@target_os@,$target_os,;t t
36039s,@CC@,$CC,;t t
36040s,@CFLAGS@,$CFLAGS,;t t
36041s,@LDFLAGS@,$LDFLAGS,;t t
36042s,@CPPFLAGS@,$CPPFLAGS,;t t
36043s,@ac_ct_CC@,$ac_ct_CC,;t t
36044s,@EXEEXT@,$EXEEXT,;t t
36045s,@OBJEXT@,$OBJEXT,;t t
36046s,@CPP@,$CPP,;t t
36047s,@EGREP@,$EGREP,;t t
36048s,@CXX@,$CXX,;t t
36049s,@CXXFLAGS@,$CXXFLAGS,;t t
36050s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36051s,@RANLIB@,$RANLIB,;t t
36052s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36053s,@AR@,$AR,;t t
36054s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36055s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36056s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36057s,@STRIP@,$STRIP,;t t
36058s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
36059s,@LN_S@,$LN_S,;t t
36060s,@CXXCPP@,$CXXCPP,;t t
672abd7a 36061s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
36062s,@PKG_CONFIG@,$PKG_CONFIG,;t t
36063s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
36064s,@GTK_LIBS@,$GTK_LIBS,;t t
36065s,@GTK_CONFIG@,$GTK_CONFIG,;t t
36066s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
36067s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
36068s,@X_CFLAGS@,$X_CFLAGS,;t t
36069s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36070s,@X_LIBS@,$X_LIBS,;t t
36071s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36072s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
36073s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
36074s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
36075s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
36076s,@RESCOMP@,$RESCOMP,;t t
36077s,@DEREZ@,$DEREZ,;t t
36078s,@SETFILE@,$SETFILE,;t t
36079s,@LIBICONV@,$LIBICONV,;t t
edd891e2
VS
36080s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
36081s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
36082s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
36083s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
36084s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 36085s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
36086s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
36087s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
36088s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
36089s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
36090s,@VENDOR@,$VENDOR,;t t
36091s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
36092s,@WXUNIV@,$WXUNIV,;t t
36093s,@MONOLITHIC@,$MONOLITHIC,;t t
36094s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 36095s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
bb41dcbe 36096s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 36097s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 36098s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
36099s,@UNICODE@,$UNICODE,;t t
36100s,@BUILD@,$BUILD,;t t
6c67131a
VS
36101s,@DEBUG_INFO@,$DEBUG_INFO,;t t
36102s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
36103s,@SHARED@,$SHARED,;t t
36104s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
36105s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
36106s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 36107s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 36108s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
36109s,@SET_MAKE@,$SET_MAKE,;t t
36110s,@MAKE_SET@,$MAKE_SET,;t t
36111s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 36112s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
36113s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
36114s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
36115s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
36116s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
36117s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
36118s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 36119s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
e6cc62c6 36120s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 36121s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 36122s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
36123s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
36124s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
36125s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
36126s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
36127s,@PIC_FLAG@,$PIC_FLAG,;t t
36128s,@USE_SOVERSION@,$USE_SOVERSION,;t t
36129s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
36130s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
36131s,@USE_MACVERSION@,$USE_MACVERSION,;t t
36132s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
36133s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 36134s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 36135s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 36136s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
36137s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
36138s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
d78c94f2 36139s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a
VS
36140s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
36141s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
36142s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
36143s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 36144s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 36145s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 36146s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 36147s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
36148s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
36149s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 36150s,@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 36151s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 36152s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 36153s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 36154s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 36155s,@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 36156s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 36157s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
3af038c0 36158s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
36159s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
36160s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
36161s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
36162s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 36163s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 36164s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
36165s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
36166s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
36167s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
8ee2dd05 36168s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 36169s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
8772a1a7 36170s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0
VS
36171s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
36172s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
36173s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 36174s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 36175s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
36176s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36177s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36178s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36179s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
36180s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
36181s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
36182s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 36183s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 36184s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
36185s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
36186s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
36187s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
36188s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 36189s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 36190s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 36191s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
36192s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
36193s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
36194s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
36195s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
36196s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
36197s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 36198s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
36199s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
36200s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
6f628073 36201s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
8772a1a7 36202s,@COND_TOOLKIT_OS2_USE_GUI_1@,$COND_TOOLKIT_OS2_USE_GUI_1,;t t
6f628073
VS
36203s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t
36204s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
36205s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0
VS
36206s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
36207s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
36208s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
36209s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
36210s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
36211s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36212s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36213s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
6f628073
VS
36214s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
36215s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
36216s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
36217s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 36218s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 36219s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
36220s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
36221s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
36222s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
36223s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
36224s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
36225s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
36226s,@PATH_IFS@,$PATH_IFS,;t t
36227s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
36228s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
36229s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
36230s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
36231s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
36232s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
36233s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
36234s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
36235s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
36236s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
36237s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
36238s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
36239s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
36240s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
36241s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
36242s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
36243s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
36244s,@WX_ALL@,$WX_ALL,;t t
36245s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
36246s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
36247s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
36248s,@STATIC_FLAG@,$STATIC_FLAG,;t t
36249s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
36250s,@USE_GUI@,$USE_GUI,;t t
36251s,@AFMINSTALL@,$AFMINSTALL,;t t
36252s,@WIN32INSTALL@,$WIN32INSTALL,;t t
36253s,@TOOLKIT@,$TOOLKIT,;t t
36254s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
36255s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
36256s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
36257s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
36258s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
36259s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
36260s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 36261s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
36262s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
36263s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
36264s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
36265s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
36266s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
36267s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 36268s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 36269s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
36270s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
36271s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
36272s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
36273s,@ALL_HEADERS@,$ALL_HEADERS,;t t
36274s,@ALL_SOURCES@,$ALL_SOURCES,;t t
36275s,@GUIDIST@,$GUIDIST,;t t
36276s,@PORT_FILES@,$PORT_FILES,;t t
36277s,@DISTDIR@,$DISTDIR,;t t
36278s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
36279s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
36280s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
36281s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
36282s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
36283s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
36284s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
36285s,@RESFLAGS@,$RESFLAGS,;t t
36286s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
36287s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
36288s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
36289s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
36290s,@LIBWXMACRES@,$LIBWXMACRES,;t t
36291s,@MACRESCOMP@,$MACRESCOMP,;t t
36292s,@MACSETFILE@,$MACSETFILE,;t t
36293s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
36294s,@GCC@,$GCC,;t t
36295s,@DLLTOOL@,$DLLTOOL,;t t
36296s,@AS@,$AS,;t t
36297s,@NM@,$NM,;t t
36298s,@LD@,$LD,;t t
36299s,@MAKEINFO@,$MAKEINFO,;t t
36300s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
36301s,@LIBOBJS@,$LIBOBJS,;t t
36302s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
36303CEOF
36304
e6cc62c6
VS
36305_ACEOF
36306
36307 cat >>$CONFIG_STATUS <<\_ACEOF
36308 # Split the substitutions into bite-sized pieces for seds with
36309 # small command number limits, like on Digital OSF/1 and HP-UX.
36310 ac_max_sed_lines=48
36311 ac_sed_frag=1 # Number of current file.
36312 ac_beg=1 # First line for current file.
36313 ac_end=$ac_max_sed_lines # Line after last line for current file.
36314 ac_more_lines=:
36315 ac_sed_cmds=
36316 while $ac_more_lines; do
36317 if test $ac_beg -gt 1; then
36318 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 36319 else
e6cc62c6
VS
36320 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36321 fi
36322 if test ! -s $tmp/subs.frag; then
36323 ac_more_lines=false
36324 else
36325 # The purpose of the label and of the branching condition is to
36326 # speed up the sed processing (if there are no `@' at all, there
36327 # is no need to browse any of the substitutions).
36328 # These are the two extra sed commands mentioned above.
36329 (echo ':t
36330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36331 if test -z "$ac_sed_cmds"; then
36332 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36333 else
36334 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36335 fi
36336 ac_sed_frag=`expr $ac_sed_frag + 1`
36337 ac_beg=$ac_end
36338 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 36339 fi
e6cc62c6
VS
36340 done
36341 if test -z "$ac_sed_cmds"; then
36342 ac_sed_cmds=cat
10f2d63a 36343 fi
e6cc62c6 36344fi # test -n "$CONFIG_FILES"
10f2d63a 36345
e6cc62c6
VS
36346_ACEOF
36347cat >>$CONFIG_STATUS <<\_ACEOF
36348for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 36349 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36350 case $ac_file in
36351 - | *:- | *:-:* ) # input from stdin
36352 cat >$tmp/stdin
36353 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36354 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36355 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36356 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36357 * ) ac_file_in=$ac_file.in ;;
10f2d63a 36358 esac
247f5006 36359
e6cc62c6
VS
36360 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36361 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36362$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36363 X"$ac_file" : 'X\(//\)[^/]' \| \
36364 X"$ac_file" : 'X\(//\)$' \| \
36365 X"$ac_file" : 'X\(/\)' \| \
36366 . : '\(.\)' 2>/dev/null ||
36367echo X"$ac_file" |
36368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36370 /^X\(\/\/\)$/{ s//\1/; q; }
36371 /^X\(\/\).*/{ s//\1/; q; }
36372 s/.*/./; q'`
36373 { if $as_mkdir_p; then
36374 mkdir -p "$ac_dir"
a0b9e27f 36375 else
e6cc62c6
VS
36376 as_dir="$ac_dir"
36377 as_dirs=
36378 while test ! -d "$as_dir"; do
36379 as_dirs="$as_dir $as_dirs"
36380 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36381$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36382 X"$as_dir" : 'X\(//\)[^/]' \| \
36383 X"$as_dir" : 'X\(//\)$' \| \
36384 X"$as_dir" : 'X\(/\)' \| \
36385 . : '\(.\)' 2>/dev/null ||
36386echo X"$as_dir" |
36387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36388 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36389 /^X\(\/\/\)$/{ s//\1/; q; }
36390 /^X\(\/\).*/{ s//\1/; q; }
36391 s/.*/./; q'`
36392 done
36393 test ! -n "$as_dirs" || mkdir $as_dirs
36394 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36395echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36396 { (exit 1); exit 1; }; }; }
36397
36398 ac_builddir=.
36399
36400if test "$ac_dir" != .; then
36401 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36402 # A "../" for each directory in $ac_dir_suffix.
36403 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36404else
36405 ac_dir_suffix= ac_top_builddir=
36406fi
247f5006 36407
e6cc62c6
VS
36408case $srcdir in
36409 .) # No --srcdir option. We are building in place.
36410 ac_srcdir=.
36411 if test -z "$ac_top_builddir"; then
36412 ac_top_srcdir=.
36413 else
36414 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36415 fi ;;
36416 [\\/]* | ?:[\\/]* ) # Absolute path.
36417 ac_srcdir=$srcdir$ac_dir_suffix;
36418 ac_top_srcdir=$srcdir ;;
247f5006 36419 *) # Relative path.
e6cc62c6
VS
36420 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36421 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36422esac
36423# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36424# absolute.
36425ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36426ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36427ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36428ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 36429
247f5006 36430
e6cc62c6
VS
36431 case $INSTALL in
36432 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36433 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 36434 esac
247f5006 36435
e6cc62c6
VS
36436 if test x"$ac_file" != x-; then
36437 { echo "$as_me:$LINENO: creating $ac_file" >&5
36438echo "$as_me: creating $ac_file" >&6;}
36439 rm -f "$ac_file"
36440 fi
36441 # Let's still pretend it is `configure' which instantiates (i.e., don't
36442 # use $as_me), people would be surprised to read:
36443 # /* config.h. Generated by config.status. */
36444 if test x"$ac_file" = x-; then
36445 configure_input=
36446 else
36447 configure_input="$ac_file. "
36448 fi
36449 configure_input=$configure_input"Generated from `echo $ac_file_in |
36450 sed 's,.*/,,'` by configure."
36451
36452 # First look for the input files in the build tree, otherwise in the
36453 # src tree.
36454 ac_file_inputs=`IFS=:
36455 for f in $ac_file_in; do
36456 case $f in
36457 -) echo $tmp/stdin ;;
36458 [\\/$]*)
36459 # Absolute (can't be DOS-style, as IFS=:)
36460 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36461echo "$as_me: error: cannot find input file: $f" >&2;}
36462 { (exit 1); exit 1; }; }
36463 echo $f;;
36464 *) # Relative
36465 if test -f "$f"; then
36466 # Build tree
36467 echo $f
36468 elif test -f "$srcdir/$f"; then
36469 # Source tree
36470 echo $srcdir/$f
36471 else
36472 # /dev/null tree
36473 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36474echo "$as_me: error: cannot find input file: $f" >&2;}
36475 { (exit 1); exit 1; }; }
36476 fi;;
36477 esac
36478 done` || { (exit 1); exit 1; }
36479_ACEOF
36480cat >>$CONFIG_STATUS <<_ACEOF
36481 sed "$ac_vpsub
36482$extrasub
36483_ACEOF
36484cat >>$CONFIG_STATUS <<\_ACEOF
36485:t
36486/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36487s,@configure_input@,$configure_input,;t t
36488s,@srcdir@,$ac_srcdir,;t t
36489s,@abs_srcdir@,$ac_abs_srcdir,;t t
36490s,@top_srcdir@,$ac_top_srcdir,;t t
36491s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36492s,@builddir@,$ac_builddir,;t t
36493s,@abs_builddir@,$ac_abs_builddir,;t t
36494s,@top_builddir@,$ac_top_builddir,;t t
36495s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36496s,@INSTALL@,$ac_INSTALL,;t t
36497" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36498 rm -f $tmp/stdin
36499 if test x"$ac_file" != x-; then
36500 mv $tmp/out $ac_file
36501 else
36502 cat $tmp/out
36503 rm -f $tmp/out
36504 fi
36505
36506done
36507_ACEOF
36508cat >>$CONFIG_STATUS <<\_ACEOF
36509
36510#
36511# CONFIG_HEADER section.
36512#
10f2d63a
VZ
36513
36514# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36515# NAME is the cpp macro being defined and VALUE is the value it is being given.
36516#
36517# ac_d sets the value in "#define NAME VALUE" lines.
e6cc62c6
VS
36518ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
36519ac_dB='[ ].*$,\1#\2'
36520ac_dC=' '
36521ac_dD=',;t'
36522# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36523ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
36524ac_uB='$,\1#\2define\3'
10f2d63a 36525ac_uC=' '
e6cc62c6
VS
36526ac_uD=',;t'
36527
36528for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 36529 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
36530 case $ac_file in
36531 - | *:- | *:-:* ) # input from stdin
36532 cat >$tmp/stdin
36533 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36534 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36535 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36536 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36537 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
36538 esac
36539
e6cc62c6
VS
36540 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36541echo "$as_me: creating $ac_file" >&6;}
36542
36543 # First look for the input files in the build tree, otherwise in the
36544 # src tree.
36545 ac_file_inputs=`IFS=:
36546 for f in $ac_file_in; do
36547 case $f in
36548 -) echo $tmp/stdin ;;
36549 [\\/$]*)
36550 # Absolute (can't be DOS-style, as IFS=:)
36551 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36552echo "$as_me: error: cannot find input file: $f" >&2;}
36553 { (exit 1); exit 1; }; }
36554 echo $f;;
36555 *) # Relative
36556 if test -f "$f"; then
36557 # Build tree
36558 echo $f
36559 elif test -f "$srcdir/$f"; then
36560 # Source tree
36561 echo $srcdir/$f
36562 else
36563 # /dev/null tree
36564 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36565echo "$as_me: error: cannot find input file: $f" >&2;}
36566 { (exit 1); exit 1; }; }
36567 fi;;
36568 esac
36569 done` || { (exit 1); exit 1; }
36570 # Remove the trailing spaces.
36571 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
36572
36573_ACEOF
36574
36575# Transform confdefs.h into two sed scripts, `conftest.defines' and
36576# `conftest.undefs', that substitutes the proper values into
36577# config.h.in to produce config.h. The first handles `#define'
36578# templates, and the second `#undef' templates.
36579# And first: Protect against being on the right side of a sed subst in
36580# config.status. Protect against being in an unquoted here document
36581# in config.status.
36582rm -f conftest.defines conftest.undefs
36583# Using a here document instead of a string reduces the quoting nightmare.
36584# Putting comments in sed scripts is not portable.
36585#
36586# `end' is used to avoid that the second main sed command (meant for
36587# 0-ary CPP macros) applies to n-ary macro definitions.
36588# See the Autoconf documentation for `clear'.
36589cat >confdef2sed.sed <<\_ACEOF
36590s/[\\&,]/\\&/g
36591s,[\\$`],\\&,g
36592t clear
36593: clear
36594s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36595t end
36596s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36597: end
36598_ACEOF
36599# If some macros were called several times there might be several times
36600# the same #defines, which is useless. Nevertheless, we may not want to
36601# sort them, since we want the *last* AC-DEFINE to be honored.
36602uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36603sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36604rm -f confdef2sed.sed
10f2d63a
VZ
36605
36606# This sed command replaces #undef with comments. This is necessary, for
36607# example, in the case of _POSIX_SOURCE, which is predefined and required
36608# on some systems where configure will not decide to define it.
e6cc62c6
VS
36609cat >>conftest.undefs <<\_ACEOF
36610s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36611_ACEOF
36612
36613# Break up conftest.defines because some shells have a limit on the size
36614# of here documents, and old seds have small limits too (100 cmds).
36615echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36616echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36617echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36618echo ' :' >>$CONFIG_STATUS
36619rm -f conftest.tail
36620while grep . conftest.defines >/dev/null
36621do
36622 # Write a limited-size here document to $tmp/defines.sed.
36623 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36624 # Speed up: don't consider the non `#define' lines.
36625 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
36626 # Work around the forget-to-reset-the-flag bug.
36627 echo 't clr' >>$CONFIG_STATUS
36628 echo ': clr' >>$CONFIG_STATUS
36629 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36630 echo 'CEOF
36631 sed -f $tmp/defines.sed $tmp/in >$tmp/out
36632 rm -f $tmp/in
36633 mv $tmp/out $tmp/in
36634' >>$CONFIG_STATUS
36635 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36636 rm -f conftest.defines
36637 mv conftest.tail conftest.defines
36638done
36639rm -f conftest.defines
36640echo ' fi # grep' >>$CONFIG_STATUS
36641echo >>$CONFIG_STATUS
10f2d63a 36642
e6cc62c6
VS
36643# Break up conftest.undefs because some shells have a limit on the size
36644# of here documents, and old seds have small limits too (100 cmds).
36645echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 36646rm -f conftest.tail
e6cc62c6 36647while grep . conftest.undefs >/dev/null
10f2d63a 36648do
e6cc62c6
VS
36649 # Write a limited-size here document to $tmp/undefs.sed.
36650 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36651 # Speed up: don't consider the non `#undef'
36652 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
36653 # Work around the forget-to-reset-the-flag bug.
36654 echo 't clr' >>$CONFIG_STATUS
36655 echo ': clr' >>$CONFIG_STATUS
36656 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 36657 echo 'CEOF
e6cc62c6
VS
36658 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
36659 rm -f $tmp/in
36660 mv $tmp/out $tmp/in
36661' >>$CONFIG_STATUS
36662 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
36663 rm -f conftest.undefs
36664 mv conftest.tail conftest.undefs
10f2d63a 36665done
e6cc62c6
VS
36666rm -f conftest.undefs
36667
36668cat >>$CONFIG_STATUS <<\_ACEOF
36669 # Let's still pretend it is `configure' which instantiates (i.e., don't
36670 # use $as_me), people would be surprised to read:
36671 # /* config.h. Generated by config.status. */
36672 if test x"$ac_file" = x-; then
36673 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 36674 else
e6cc62c6 36675 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 36676 fi
e6cc62c6
VS
36677 cat $tmp/in >>$tmp/config.h
36678 rm -f $tmp/in
36679 if test x"$ac_file" != x-; then
36680 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36681 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36682echo "$as_me: $ac_file is unchanged" >&6;}
36683 else
36684 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36685$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36686 X"$ac_file" : 'X\(//\)[^/]' \| \
36687 X"$ac_file" : 'X\(//\)$' \| \
36688 X"$ac_file" : 'X\(/\)' \| \
36689 . : '\(.\)' 2>/dev/null ||
36690echo X"$ac_file" |
36691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36692 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36693 /^X\(\/\/\)$/{ s//\1/; q; }
36694 /^X\(\/\).*/{ s//\1/; q; }
36695 s/.*/./; q'`
36696 { if $as_mkdir_p; then
36697 mkdir -p "$ac_dir"
36698 else
36699 as_dir="$ac_dir"
36700 as_dirs=
36701 while test ! -d "$as_dir"; do
36702 as_dirs="$as_dir $as_dirs"
36703 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36704$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36705 X"$as_dir" : 'X\(//\)[^/]' \| \
36706 X"$as_dir" : 'X\(//\)$' \| \
36707 X"$as_dir" : 'X\(/\)' \| \
36708 . : '\(.\)' 2>/dev/null ||
36709echo X"$as_dir" |
36710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36712 /^X\(\/\/\)$/{ s//\1/; q; }
36713 /^X\(\/\).*/{ s//\1/; q; }
36714 s/.*/./; q'`
36715 done
36716 test ! -n "$as_dirs" || mkdir $as_dirs
36717 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36718echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36719 { (exit 1); exit 1; }; }; }
a0b9e27f 36720
e6cc62c6
VS
36721 rm -f $ac_file
36722 mv $tmp/config.h $ac_file
36723 fi
36724 else
36725 cat $tmp/config.h
36726 rm -f $tmp/config.h
36727 fi
36728done
36729_ACEOF
36730cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 36731
e6cc62c6
VS
36732#
36733# CONFIG_COMMANDS section.
36734#
36735for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36736 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36737 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36738 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36739$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36740 X"$ac_dest" : 'X\(//\)[^/]' \| \
36741 X"$ac_dest" : 'X\(//\)$' \| \
36742 X"$ac_dest" : 'X\(/\)' \| \
36743 . : '\(.\)' 2>/dev/null ||
36744echo X"$ac_dest" |
36745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36747 /^X\(\/\/\)$/{ s//\1/; q; }
36748 /^X\(\/\).*/{ s//\1/; q; }
36749 s/.*/./; q'`
36750 ac_builddir=.
36751
36752if test "$ac_dir" != .; then
36753 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36754 # A "../" for each directory in $ac_dir_suffix.
36755 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36756else
36757 ac_dir_suffix= ac_top_builddir=
36758fi
36759
36760case $srcdir in
36761 .) # No --srcdir option. We are building in place.
36762 ac_srcdir=.
36763 if test -z "$ac_top_builddir"; then
36764 ac_top_srcdir=.
36765 else
36766 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36767 fi ;;
36768 [\\/]* | ?:[\\/]* ) # Absolute path.
36769 ac_srcdir=$srcdir$ac_dir_suffix;
36770 ac_top_srcdir=$srcdir ;;
36771 *) # Relative path.
36772 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36773 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36774esac
36775# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36776# absolute.
36777ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36778ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36779ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36780ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36781
36782
36783 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
36784echo "$as_me: executing $ac_dest commands" >&6;}
36785 case $ac_dest in
36786 default )
652d930d 36787 if test ! -h wx-config; then
991a5759 36788 chmod +x wx-config
3a922bb4
RL
36789 mv wx-config wx${TOOLCHAIN_NAME}-config
36790 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 36791 fi
665bbe97 36792
00cf1208
RR
36793 if test ! -d lib; then
36794 mkdir lib
36795 fi
36796 if test ! -d lib/wx; then
36797 mkdir lib/wx
36798 fi
36799 if test ! -d lib/wx/include; then
36800 mkdir lib/wx/include
36801 fi
3a922bb4
RL
36802 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
36803 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 36804 fi
3a922bb4
RL
36805 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
36806 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
36807 fi
36808 if test -f setup.h; then
3a922bb4 36809 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 36810 fi
e6cc62c6
VS
36811 ;;
36812 esac
36813done
36814_ACEOF
2224580a 36815
e6cc62c6 36816cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 36817
e6cc62c6
VS
36818{ (exit 0); exit 0; }
36819_ACEOF
36820chmod +x $CONFIG_STATUS
36821ac_clean_files=$ac_clean_files_save
36822
36823
36824# configure is writing to config.log, and then calls config.status.
36825# config.status does its own redirection, appending to config.log.
36826# Unfortunately, on DOS this fails, as config.log is still kept open
36827# by configure, so config.status won't be able to write to it; its
36828# output is simply discarded. So we exec the FD to /dev/null,
36829# effectively closing config.log, so it can be properly (re)opened and
36830# appended to by config.status. When coming back to configure, we
36831# need to make the FD available again.
36832if test "$no_create" != yes; then
36833 ac_cs_success=:
36834 ac_config_status_args=
36835 test "$silent" = yes &&
36836 ac_config_status_args="$ac_config_status_args --quiet"
36837 exec 5>/dev/null
36838 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36839 exec 5>>config.log
36840 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36841 # would make configure fail if this is the last instruction.
36842 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
36843fi
36844
672abd7a
VS
36845#
36846# CONFIG_SUBDIRS section.
36847#
36848if test "$no_recursion" != yes; then
36849
36850 # Remove --cache-file and --srcdir arguments so they do not pile up.
36851 ac_sub_configure_args=
36852 ac_prev=
36853 for ac_arg in $ac_configure_args; do
36854 if test -n "$ac_prev"; then
36855 ac_prev=
36856 continue
36857 fi
36858 case $ac_arg in
36859 -cache-file | --cache-file | --cache-fil | --cache-fi \
36860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36861 ac_prev=cache_file ;;
36862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36864 | --c=*)
36865 ;;
36866 --config-cache | -C)
36867 ;;
36868 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36869 ac_prev=srcdir ;;
36870 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36871 ;;
36872 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36873 ac_prev=prefix ;;
36874 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36875 ;;
36876 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
36877 esac
36878 done
36879
36880 # Always prepend --prefix to ensure using the same prefix
36881 # in subdir configurations.
36882 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
36883
36884 ac_popdir=`pwd`
36885 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36886
36887 # Do not complain, so a configure script can configure whichever
36888 # parts of a large source tree are present.
36889 test -d $srcdir/$ac_dir || continue
36890
36891 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
36892echo "$as_me: configuring in $ac_dir" >&6;}
36893 { if $as_mkdir_p; then
36894 mkdir -p "$ac_dir"
36895 else
36896 as_dir="$ac_dir"
36897 as_dirs=
36898 while test ! -d "$as_dir"; do
36899 as_dirs="$as_dir $as_dirs"
36900 as_dir=`(dirname "$as_dir") 2>/dev/null ||
36901$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36902 X"$as_dir" : 'X\(//\)[^/]' \| \
36903 X"$as_dir" : 'X\(//\)$' \| \
36904 X"$as_dir" : 'X\(/\)' \| \
36905 . : '\(.\)' 2>/dev/null ||
36906echo X"$as_dir" |
36907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36909 /^X\(\/\/\)$/{ s//\1/; q; }
36910 /^X\(\/\).*/{ s//\1/; q; }
36911 s/.*/./; q'`
36912 done
36913 test ! -n "$as_dirs" || mkdir $as_dirs
36914 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36915echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36916 { (exit 1); exit 1; }; }; }
36917
36918 ac_builddir=.
36919
36920if test "$ac_dir" != .; then
36921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36922 # A "../" for each directory in $ac_dir_suffix.
36923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36924else
36925 ac_dir_suffix= ac_top_builddir=
36926fi
36927
36928case $srcdir in
36929 .) # No --srcdir option. We are building in place.
36930 ac_srcdir=.
36931 if test -z "$ac_top_builddir"; then
36932 ac_top_srcdir=.
36933 else
36934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36935 fi ;;
36936 [\\/]* | ?:[\\/]* ) # Absolute path.
36937 ac_srcdir=$srcdir$ac_dir_suffix;
36938 ac_top_srcdir=$srcdir ;;
36939 *) # Relative path.
36940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
36942esac
36943# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36944# absolute.
36945ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36946ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36947ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36948ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36949
36950
36951 cd $ac_dir
36952
36953 # Check for guested configure; otherwise get Cygnus style configure.
36954 if test -f $ac_srcdir/configure.gnu; then
36955 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
36956 elif test -f $ac_srcdir/configure; then
36957 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
36958 elif test -f $ac_srcdir/configure.in; then
36959 ac_sub_configure=$ac_configure
36960 else
36961 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36962echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36963 ac_sub_configure=
36964 fi
36965
36966 # The recursion is here.
36967 if test -n "$ac_sub_configure"; then
36968 # Make the cache file name correct relative to the subdirectory.
36969 case $cache_file in
36970 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36971 *) # Relative path.
36972 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
36973 esac
36974
36975 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36976echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36977 # The eval makes quoting arguments work.
36978 eval $ac_sub_configure $ac_sub_configure_args \
36979 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
36980 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36981echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36982 { (exit 1); exit 1; }; }
36983 fi
36984
36985 cd $ac_popdir
36986 done
36987fi
36988
8284b0c5 36989
2b5f62a0
VZ
36990echo
36991echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
36992echo ""
36993echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}"
9747f85d 36994echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
36995
36996echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
36997echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
36998echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
36999
0c98a14e 37000echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
37001echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
37002echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 37003
2b5f62a0
VZ
37004echo " Which libraries should wxWindows use?"
37005echo " jpeg ${wxUSE_LIBJPEG-none}"
37006echo " png ${wxUSE_LIBPNG-none}"
37007echo " regex ${wxUSE_REGEX}"
37008echo " tiff ${wxUSE_LIBTIFF-none}"
37009echo " zlib ${wxUSE_ZLIB}"
fd3d7534 37010echo " odbc ${wxUSE_ODBC}"
5f0b6dff 37011echo " expat ${wxUSE_EXPAT}"
2b5f62a0
VZ
37012
37013echo ""
37014