]> git.saurik.com Git - wxWidgets.git/blame - configure
This should work on SuSE and Mandrake icon themes.
[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.
789c5f4a 4# Generated by GNU Autoconf 2.57 for wxWindows 2.5.1.
e6cc62c6
VS
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
789c5f4a
VZ
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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 27# Support unset when possible.
789c5f4a 28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
e6cc62c6
VS
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
789c5f4a 47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
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 229# Sed expression to map a string onto a valid CPP name.
789c5f4a 230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
fe0895cf 231
e6cc62c6 232# Sed expression to map a string onto a valid variable name.
789c5f4a 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'
e46d2a18
VS
272PACKAGE_VERSION='2.5.1'
273PACKAGE_STRING='wxWindows 2.5.1'
e6cc62c6
VS
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"
f93ca9fd 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 SDL_CONFIG SDL_CFLAGS SDL_LIBS 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 USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX 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_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 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_0_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_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 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_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_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_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_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 LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS 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 \
789c5f4a 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\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
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
e46d2a18 796\`configure' configures wxWindows 2.5.1 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
789c5f4a 821 [$ac_default_prefix]
e6cc62c6 822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
789c5f4a 823 [PREFIX]
e6cc62c6
VS
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
e46d2a18 862 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
e6cc62c6
VS
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
f93ca9fd
VS
870 --enable-monolithic build wxWindows as single library
871 --enable-plugins build parts of wxWindows as loadable components
e6cc62c6
VS
872 --enable-universal use wxWindows GUI controls instead of native ones
873 --enable-nanox use NanoX
874 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
875 --enable-shared create shared library code
e6cc62c6
VS
876 --enable-optimise create optimised code
877 --enable-debug same as debug_flag and debug_info
df5168c4 878 --enable-stl use STL for containers
e6cc62c6
VS
879 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
880 --enable-debug_info create code with debugging information
881 --enable-debug_gdb create code with extra GDB debugging information
882 --enable-debug_cntxt use wxDebugContext
883 --enable-mem_tracing create code with memory tracing
884 --enable-profile create code with profiling information
885 --enable-no_rtti create code without RTTI information
886 --enable-no_exceptions create code without C++ exceptions handling
887 --enable-permissive compile code disregarding strict ANSI
888 --enable-no_deps create code without dependency information
e6cc62c6
VS
889 --enable-compat22 enable wxWindows 2.2 compatibility
890 --disable-compat24 disable wxWindows 2.4 compatibility
891 --enable-rpath=DIR output the rpath flag from wx-config
892 --enable-intl use internationalization system
893 --enable-config use wxConfig (and derived) classes
894 --enable-protocols use wxProtocol and derived classes
895 --enable-ftp use wxFTP (requires wxProtocol
896 --enable-http use wxHTTP (requires wxProtocol
897 --enable-fileproto use wxFileProto class (requires wxProtocol
898 --enable-sockets use socket/network classes
e46d2a18 899 --enable-ole use OLE classes (Win32 only)
e6cc62c6
VS
900 --enable-dataobj use data object classes
901 --enable-ipc use interprocess communication (wxSocket etc.)
e46d2a18
VS
902 --enable-apple_ieee use the Apple IEEE codec
903 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
e6cc62c6
VS
904 --enable-cmdline use wxCmdLineParser class
905 --enable-datetime use wxDateTime class
e6cc62c6 906 --enable-dialupman use dialup network classes
e6cc62c6
VS
907 --enable-dynlib use wxLibrary class for DLL loading
908 --enable-dynamicloader use (new) wxDynamicLibrary class
e46d2a18
VS
909 --enable-exceptions build exception-safe library
910 --enable-ffile use wxFFile class
911 --enable-file use wxFile class
912 --enable-filesystem use virtual file systems classes
913 --enable-fontmap use font encodings conversion classes
914 --enable-fs_inet use virtual HTTP/FTP filesystems
915 --enable-fs_zip use virtual ZIP filesystems
e6cc62c6
VS
916 --enable-geometry use geometry class
917 --enable-log use logging system
e46d2a18
VS
918 --enable-longlong use wxLongLong class
919 --enable-mimetype use wxMimeTypesManager
920 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
921 --enable-snglinst use wxSingleInstanceChecker class
e6cc62c6 922 --enable-streams use wxStream etc classes
e46d2a18
VS
923 --enable-std_iostreams use standard C++ stream classes
924 --enable-stopwatch use wxStopWatch class
925 --enable-sysoptions use wxSystemOptions
e6cc62c6
VS
926 --enable-textbuf use wxTextBuffer class
927 --enable-textfile use wxTextFile class
e46d2a18 928 --enable-timer use wxTimer class
e6cc62c6 929 --enable-unicode compile wxString with Unicode support
002ed9af 930 --enable-sound use wxSound class
e6cc62c6 931 --enable-wxprintfv use wxWindows implementation of vprintf()
e6cc62c6 932 --enable-zipstream use wxZipInputStream
7015ef3a 933 --enable-gzstream use wxGzipInputStream
e6cc62c6
VS
934 --enable-url use wxURL class
935 --enable-protocol use wxProtocol class
936 --enable-protocol-http HTTP support in wxProtocol
937 --enable-protocol-ftp FTP support in wxProtocol
938 --enable-protocol-file FILE support in wxProtocol
939 --enable-threads use threads
940 --enable-docview use document view architecture
941 --enable-help use help subsystem
942 --enable-mshtmlhelp use MS HTML Help (win32)
943 --enable-html use wxHTML sub-library
944 --enable-htmlhelp use wxHTML-based help
945 --enable-constraints use layout-constraints system
946 --enable-printarch use printing architecture
947 --enable-mdi use multiple document interface architecture
948 --enable-loggui use standard GUI logger
949 --enable-logwin use wxLogWindow
950 --enable-logdialog use wxLogDialog
951 --enable-postscript use wxPostscriptDC device context (default for gtk+)
952 --enable-prologio not available; see contrib
953 --enable-resources not available; see contrib
954 --enable-clipboard use wxClipboard class
955 --enable-dnd use Drag'n'Drop classes
956 --enable-metafile use win32 metafiles
957 --enable-controls use all usual controls
958 --enable-accel use accelerators
959 --enable-button use wxButton class
960 --enable-bmpbutton use wxBitmapButton class
961 --enable-calendar use wxCalendarCtrl class
962 --enable-caret use wxCaret class
963 --enable-checkbox use wxCheckBox class
964 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
965 --enable-choice use wxChoice class
966 --enable-combobox use wxComboBox class
967 --enable-display use wxDisplay class
968 --enable-gauge use wxGauge class
969 --enable-grid use wxGrid class
970 --enable-imaglist use wxImageList class
0e012a93 971 --enable-listbook use wxListbook class
e6cc62c6
VS
972 --enable-listbox use wxListBox class
973 --enable-listctrl use wxListCtrl class
974 --enable-notebook use wxNotebook class
975 --enable-radiobox use wxRadioBox class
976 --enable-radiobtn use wxRadioButton class
977 --enable-sash use wxSashWindow class
978 --enable-scrollbar use wxScrollBar class and scrollable windows
979 --enable-slider use wxSlider class
980 --enable-spinbtn use wxSpinButton class
981 --enable-spinctrl use wxSpinCtrl class
982 --enable-splitter use wxSplitterWindow class
983 --enable-statbmp use wxStaticBitmap class
984 --enable-statbox use wxStaticBox class
985 --enable-statline use wxStaticLine class
986 --enable-stattext use wxStaticText class
987 --enable-statusbar use wxStatusBar class
988 --enable-tabdialog use wxTabControl class
989 --enable-textctrl use wxTextCtrl class
990 --enable-togglebtn use wxToggleButton class
991 --enable-toolbar use wxToolBar class
992 --enable-tbarnative use native wxToolBar class
993 --enable-tbarsmpl use wxToolBarSimple class
994 --enable-treectrl use wxTreeCtrl class
995 --enable-tipwindow use wxTipWindow class
996 --enable-popupwin use wxPopUpWindow class
997 --enable-commondlg use all common dialogs
998 --enable-choicedlg use wxChoiceDialog
999 --enable-coldlg use wxColourDialog
1000 --enable-filedlg use wxFileDialog
1001 --enable-finddlg use wxFindReplaceDialog
1002 --enable-fontdlg use wxFontDialog
1003 --enable-dirdlg use wxDirDialog
1004 --enable-msgdlg use wxMessageDialog
1005 --enable-numberdlg use wxNumberEntryDialog
1006 --enable-splash use wxSplashScreen
1007 --enable-textdlg use wxTextDialog
1008 --enable-tipdlg use startup tips
1009 --enable-progressdlg use wxProgressDialog
1010 --enable-wizarddlg use wxWizard
1011 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1012 --enable-miniframe use wxMiniFrame class
1013 --enable-tooltips use wxToolTip class
1014 --enable-splines use spline drawing code
1015 --enable-validators use wxValidator and derived classes
1016 --enable-busyinfo use wxBusyInfo
1017 --enable-joystick use wxJoystick (Linux only)
1018 --enable-metafiles use wxMetaFile (Windows only)
1019 --enable-dragimage use wxDragImage
1020 --enable-accessibility enable accessibility support
1021 --enable-palette use wxPalette class
1022 --enable-image use wxImage class
1023 --enable-gif use gif images (GIF file format)
1024 --enable-pcx use pcx images (PCX file format)
1025 --enable-iff use iff images (IFF file format)
1026 --enable-pnm use pnm images (PNM file format)
1027 --enable-xpm use xpm images (XPM file format)
1028 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1029 --enable-official_build official build of wxWindows (win32 DLL only)
1030 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1031 --disable-largefile omit support for large files
1032 --disable-gtktest do not try to compile and run a test GTK+ program
1033 --disable-gtktest Do not try to compile and run a test GTK program
f93ca9fd 1034 --disable-sdltest Do not try to compile and run a test SDL program
45842500 1035 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1036
1037Optional Packages:
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-gtk use GTK+
1041 --with-motif use Motif/Lesstif
1042 --with-mac use Mac OS X
1043 --with-cocoa use Cocoa
1044 --with-wine use Wine
1045 --with-msw use MS-Windows
1046 --with-pm use OS/2 Presentation Manager
1047 --with-mgl use SciTech MGL
1048 --with-microwin use MicroWindows
1049 --with-x11 use X11
1050 --with-libpng use libpng (PNG image format)
1051 --with-libjpeg use libjpeg (JPEG file format)
1052 --with-libtiff use libtiff (TIFF file format)
89fe663f 1053 --with-libxpm use libxpm (XPM file format)
3527f29c 1054 --with-libmspack use libmspack (CHM help files loading)
f93ca9fd 1055 --with-sdl use SDL for audio on Unix
e6cc62c6
VS
1056 --with-opengl use OpenGL (or Mesa)
1057 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1058 --with-regex enable support for wxRegEx class
1059 --with-zlib use zlib for LZW compression
1060 --with-odbc use the IODBC and wxODBC classes
672abd7a 1061 --with-expat enable XML support using expat parser
e6cc62c6
VS
1062 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1063 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1064 --with-x use the X Window System
1065 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
f93ca9fd
VS
1066 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1067 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
e6cc62c6
VS
1068
1069Some influential environment variables:
1070 CC C compiler command
1071 CFLAGS C compiler flags
1072 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1073 nonstandard directory <lib dir>
1074 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1075 headers in a nonstandard directory <include dir>
1076 CPP C preprocessor
1077 CXX C++ compiler command
1078 CXXFLAGS C++ compiler flags
1079 CXXCPP C++ preprocessor
1080
1081Use these variables to override the choices made by `configure' or to help
1082it to find libraries and programs with nonstandard names/locations.
1083
1084Report bugs to <wx-dev@lists.wxwindows.org>.
1085_ACEOF
1086fi
1087
1088if test "$ac_init_help" = "recursive"; then
1089 # If there are subdirs, report their specific --help.
1090 ac_popdir=`pwd`
1091 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1092 test -d $ac_dir || continue
1093 ac_builddir=.
1094
1095if test "$ac_dir" != .; then
1096 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1097 # A "../" for each directory in $ac_dir_suffix.
1098 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099else
1100 ac_dir_suffix= ac_top_builddir=
1101fi
1102
1103case $srcdir in
1104 .) # No --srcdir option. We are building in place.
1105 ac_srcdir=.
1106 if test -z "$ac_top_builddir"; then
1107 ac_top_srcdir=.
1108 else
1109 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110 fi ;;
1111 [\\/]* | ?:[\\/]* ) # Absolute path.
1112 ac_srcdir=$srcdir$ac_dir_suffix;
1113 ac_top_srcdir=$srcdir ;;
1114 *) # Relative path.
1115 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1116 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1117esac
789c5f4a
VZ
1118# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1119# absolute.
1120ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1121ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1122ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1123ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
e6cc62c6
VS
1124
1125 cd $ac_dir
1126 # Check for guested configure; otherwise get Cygnus style configure.
1127 if test -f $ac_srcdir/configure.gnu; then
1128 echo
1129 $SHELL $ac_srcdir/configure.gnu --help=recursive
1130 elif test -f $ac_srcdir/configure; then
1131 echo
1132 $SHELL $ac_srcdir/configure --help=recursive
1133 elif test -f $ac_srcdir/configure.ac ||
789c5f4a 1134 test -f $ac_srcdir/configure.in; then
e6cc62c6
VS
1135 echo
1136 $ac_configure --help
1137 else
1138 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139 fi
1140 cd $ac_popdir
1141 done
1142fi
8284b0c5 1143
e6cc62c6
VS
1144test -n "$ac_init_help" && exit 0
1145if $ac_init_version; then
1146 cat <<\_ACEOF
e46d2a18 1147wxWindows configure 2.5.1
789c5f4a 1148generated by GNU Autoconf 2.57
10f2d63a 1149
789c5f4a
VZ
1150Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1151Free Software Foundation, Inc.
e6cc62c6
VS
1152This configure script is free software; the Free Software Foundation
1153gives unlimited permission to copy, distribute and modify it.
1154_ACEOF
1155 exit 0
7c66a493 1156fi
e6cc62c6
VS
1157exec 5>config.log
1158cat >&5 <<_ACEOF
1159This file contains any messages produced by compilers while
1160running configure, to aid debugging if configure makes a mistake.
1161
e46d2a18 1162It was created by wxWindows $as_me 2.5.1, which was
789c5f4a 1163generated by GNU Autoconf 2.57. Invocation command line was
e6cc62c6
VS
1164
1165 $ $0 $@
1166
1167_ACEOF
1168{
1169cat <<_ASUNAME
1170## --------- ##
1171## Platform. ##
1172## --------- ##
1173
1174hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1175uname -m = `(uname -m) 2>/dev/null || echo unknown`
1176uname -r = `(uname -r) 2>/dev/null || echo unknown`
1177uname -s = `(uname -s) 2>/dev/null || echo unknown`
1178uname -v = `(uname -v) 2>/dev/null || echo unknown`
1179
1180/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1181/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1182
1183/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1184/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1185/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1186hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1187/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1188/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1189/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1190
1191_ASUNAME
1192
1193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1194for as_dir in $PATH
1195do
1196 IFS=$as_save_IFS
1197 test -z "$as_dir" && as_dir=.
1198 echo "PATH: $as_dir"
1199done
1200
1201} >&5
1202
1203cat >&5 <<_ACEOF
1204
1205
1206## ----------- ##
1207## Core tests. ##
1208## ----------- ##
1209
1210_ACEOF
1211
1212
1213# Keep a trace of the command line.
1214# Strip out --no-create and --no-recursion so they do not pile up.
1215# Strip out --silent because we don't want to record it for future runs.
1216# Also quote any args containing shell meta-characters.
1217# Make two passes to allow for proper duplicate-argument suppression.
1218ac_configure_args=
1219ac_configure_args0=
1220ac_configure_args1=
1221ac_sep=
1222ac_must_keep_next=false
1223for ac_pass in 1 2
1224do
1225 for ac_arg
1226 do
1227 case $ac_arg in
1228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1231 continue ;;
1232 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1234 esac
1235 case $ac_pass in
1236 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1237 2)
1238 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1239 if test $ac_must_keep_next = true; then
789c5f4a 1240 ac_must_keep_next=false # Got value, back to normal.
e6cc62c6 1241 else
789c5f4a
VZ
1242 case $ac_arg in
1243 *=* | --config-cache | -C | -disable-* | --disable-* \
1244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1246 | -with-* | --with-* | -without-* | --without-* | --x)
1247 case "$ac_configure_args0 " in
1248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1249 esac
1250 ;;
1251 -* ) ac_must_keep_next=true ;;
1252 esac
e6cc62c6
VS
1253 fi
1254 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1255 # Get rid of the leading space.
1256 ac_sep=" "
1257 ;;
1258 esac
1259 done
1260done
1261$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1262$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1263
1264# When interrupted or exit'd, cleanup temporary files, and complete
1265# config.log. We remove comments because anyway the quotes in there
1266# would cause problems or look ugly.
1267# WARNING: Be sure not to use single quotes in there, as some shells,
1268# such as our DU 5.0 friend, will then `close' the trap.
1269trap 'exit_status=$?
1270 # Save into config.log some information that might help in debugging.
1271 {
1272 echo
1273
1274 cat <<\_ASBOX
1275## ---------------- ##
1276## Cache variables. ##
1277## ---------------- ##
1278_ASBOX
1279 echo
1280 # The following way of writing the cache mishandles newlines in values,
1281{
1282 (set) 2>&1 |
1283 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1284 *ac_space=\ *)
1285 sed -n \
789c5f4a
VZ
1286 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
e6cc62c6
VS
1288 ;;
1289 *)
1290 sed -n \
789c5f4a 1291 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
1292 ;;
1293 esac;
1294}
1295 echo
1296
1297 cat <<\_ASBOX
1298## ----------------- ##
1299## Output variables. ##
1300## ----------------- ##
1301_ASBOX
1302 echo
1303 for ac_var in $ac_subst_vars
1304 do
1305 eval ac_val=$`echo $ac_var`
1306 echo "$ac_var='"'"'$ac_val'"'"'"
1307 done | sort
1308 echo
1309
1310 if test -n "$ac_subst_files"; then
1311 cat <<\_ASBOX
1312## ------------- ##
1313## Output files. ##
1314## ------------- ##
1315_ASBOX
1316 echo
1317 for ac_var in $ac_subst_files
1318 do
1319 eval ac_val=$`echo $ac_var`
789c5f4a 1320 echo "$ac_var='"'"'$ac_val'"'"'"
e6cc62c6
VS
1321 done | sort
1322 echo
1323 fi
1324
1325 if test -s confdefs.h; then
1326 cat <<\_ASBOX
1327## ----------- ##
1328## confdefs.h. ##
1329## ----------- ##
1330_ASBOX
1331 echo
1332 sed "/^$/d" confdefs.h | sort
1333 echo
1334 fi
1335 test "$ac_signal" != 0 &&
1336 echo "$as_me: caught signal $ac_signal"
1337 echo "$as_me: exit $exit_status"
1338 } >&5
789c5f4a 1339 rm -f core core.* *.core &&
e6cc62c6
VS
1340 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1341 exit $exit_status
1342 ' 0
1343for ac_signal in 1 2 13 15; do
1344 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1345done
1346ac_signal=0
1347
1348# confdefs.h avoids OS command line length limits that DEFS can exceed.
1349rm -rf conftest* confdefs.h
1350# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1351echo >confdefs.h
1352
1353# Predefined preprocessor variables.
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_NAME "$PACKAGE_NAME"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1362_ACEOF
1363
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_VERSION "$PACKAGE_VERSION"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_STRING "$PACKAGE_STRING"
1372_ACEOF
1373
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1377_ACEOF
1378
1379
1380# Let the site file select an alternate cache file if it wants to.
1381# Prefer explicitly selected file to automatically selected ones.
1382if test -z "$CONFIG_SITE"; then
1383 if test "x$prefix" != xNONE; then
1384 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1385 else
1386 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1387 fi
1388fi
1389for ac_site_file in $CONFIG_SITE; do
1390 if test -r "$ac_site_file"; then
1391 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1392echo "$as_me: loading site script $ac_site_file" >&6;}
1393 sed 's/^/| /' "$ac_site_file" >&5
1394 . "$ac_site_file"
1395 fi
1396done
1397
1398if test -r "$cache_file"; then
1399 # Some versions of bash will fail to source /dev/null (special
1400 # files actually), so we avoid doing that.
1401 if test -f "$cache_file"; then
1402 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1403echo "$as_me: loading cache $cache_file" >&6;}
1404 case $cache_file in
1405 [\\/]* | ?:[\\/]* ) . $cache_file;;
1406 *) . ./$cache_file;;
1407 esac
1408 fi
1409else
1410 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1411echo "$as_me: creating cache $cache_file" >&6;}
1412 >$cache_file
1413fi
1414
1415# Check that the precious variables saved in the cache have kept the same
1416# value.
1417ac_cache_corrupted=false
1418for ac_var in `(set) 2>&1 |
789c5f4a 1419 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
e6cc62c6
VS
1420 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1421 eval ac_new_set=\$ac_env_${ac_var}_set
1422 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1423 eval ac_new_val="\$ac_env_${ac_var}_value"
1424 case $ac_old_set,$ac_new_set in
1425 set,)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1427echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,set)
1430 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1431echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1432 ac_cache_corrupted=: ;;
1433 ,);;
1434 *)
1435 if test "x$ac_old_val" != "x$ac_new_val"; then
789c5f4a 1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
e6cc62c6 1437echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
789c5f4a 1438 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
e6cc62c6 1439echo "$as_me: former value: $ac_old_val" >&2;}
789c5f4a 1440 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
e6cc62c6 1441echo "$as_me: current value: $ac_new_val" >&2;}
789c5f4a 1442 ac_cache_corrupted=:
e6cc62c6
VS
1443 fi;;
1444 esac
1445 # Pass precious variables to config.status.
1446 if test "$ac_new_set" = set; then
1447 case $ac_new_val in
1448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1449 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1450 *) ac_arg=$ac_var=$ac_new_val ;;
1451 esac
1452 case " $ac_configure_args " in
1453 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1454 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1455 esac
1456 fi
1457done
1458if $ac_cache_corrupted; then
1459 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1460echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1461 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1462echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1463 { (exit 1); exit 1; }; }
1464fi
1465
1466ac_ext=c
1467ac_cpp='$CPP $CPPFLAGS'
1468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1470ac_compiler_gnu=$ac_cv_c_compiler_gnu
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
698dcdb6 1488
8284b0c5 1489
7c66a493 1490
a0b9e27f
MB
1491
1492
a0b9e27f 1493
a0b9e27f 1494
a0b9e27f 1495
a0b9e27f 1496
a0b9e27f 1497
a0b9e27f 1498
e6cc62c6
VS
1499
1500
1501ac_aux_dir=
1502for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1506 break
1507 elif test -f $ac_dir/install.sh; then
1508 ac_aux_dir=$ac_dir
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1510 break
1511 elif test -f $ac_dir/shtool; then
1512 ac_aux_dir=$ac_dir
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1514 break
1515 fi
1516done
1517if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1521fi
1522ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525
1526# Make sure we can run config.sub.
1527$ac_config_sub sun4 >/dev/null 2>&1 ||
1528 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1529echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1530 { (exit 1); exit 1; }; }
1531
1532echo "$as_me:$LINENO: checking build system type" >&5
1533echo $ECHO_N "checking build system type... $ECHO_C" >&6
1534if test "${ac_cv_build+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537 ac_cv_build_alias=$build_alias
1538test -z "$ac_cv_build_alias" &&
1539 ac_cv_build_alias=`$ac_config_guess`
1540test -z "$ac_cv_build_alias" &&
1541 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1542echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1543 { (exit 1); exit 1; }; }
1544ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1545 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1546echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1547 { (exit 1); exit 1; }; }
1548
1549fi
1550echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1551echo "${ECHO_T}$ac_cv_build" >&6
1552build=$ac_cv_build
1553build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556
1557
1558echo "$as_me:$LINENO: checking host system type" >&5
1559echo $ECHO_N "checking host system type... $ECHO_C" >&6
1560if test "${ac_cv_host+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563 ac_cv_host_alias=$host_alias
1564test -z "$ac_cv_host_alias" &&
1565 ac_cv_host_alias=$ac_cv_build_alias
1566ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1567 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1568echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571fi
1572echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1573echo "${ECHO_T}$ac_cv_host" >&6
1574host=$ac_cv_host
1575host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578
1579
1580echo "$as_me:$LINENO: checking target system type" >&5
1581echo $ECHO_N "checking target system type... $ECHO_C" >&6
1582if test "${ac_cv_target+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585 ac_cv_target_alias=$target_alias
1586test "x$ac_cv_target_alias" = "x" &&
1587 ac_cv_target_alias=$ac_cv_host_alias
1588ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1589 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1590echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1591 { (exit 1); exit 1; }; }
1592
1593fi
1594echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1595echo "${ECHO_T}$ac_cv_target" >&6
1596target=$ac_cv_target
1597target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600
1601
1602# The aliases save the names the user supplied, while $host etc.
1603# will get canonicalized.
1604test -n "$target_alias" &&
7c66a493
VZ
1605 test "$program_prefix$program_suffix$program_transform_name" = \
1606 NONENONEs,x,x, &&
1607 program_prefix=${target_alias}-
8284b0c5
MB
1608
1609
a0b9e27f 1610
10f2d63a 1611WX_MAJOR_VERSION_NUMBER=2
34bed6d9 1612WX_MINOR_VERSION_NUMBER=5
e46d2a18 1613WX_RELEASE_NUMBER=1
10f2d63a 1614
10f2d63a 1615WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1616WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1617
978f1259
RL
1618WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1619
7015ef3a 1620WX_CURRENT=1
6426998c
RL
1621WX_REVISION=0
1622WX_AGE=0
1623
8284b0c5
MB
1624
1625
10f2d63a 1626USE_UNIX=1
73d617c9 1627USE_OS2=0
10f2d63a 1628USE_WIN32=0
f9bc1684 1629USE_DOS=0
b12915c1 1630USE_BEOS=0
1216f52d 1631USE_MAC=0
b12915c1 1632
10f2d63a 1633USE_AIX=
fe0895cf
VS
1634USE_BSD= USE_DARWIN= USE_FREEBSD=
1635USE_GNU= USE_HPUX=
89e3b3e4 1636USE_LINUX=
f6bcfd97 1637USE_NETBSD=
89e3b3e4 1638USE_OPENBSD=
fe0895cf
VS
1639USE_OSF= USE_SGI=
1640USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1641USE_ULTRIX=
89e3b3e4
VZ
1642USE_UNIXWARE=
1643
1644USE_ALPHA=
10f2d63a 1645
ab9b9eab
VZ
1646NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1647
ac0c4cc3 1648ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1649
ac0c4cc3 1650DEFAULT_wxUSE_COCOA=0
10f2d63a 1651DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1652DEFAULT_wxUSE_MAC=0
1653DEFAULT_wxUSE_MGL=0
1725144d 1654DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1655DEFAULT_wxUSE_MOTIF=0
1656DEFAULT_wxUSE_MSW=0
e07802fc 1657DEFAULT_wxUSE_PM=0
f79bd02d 1658DEFAULT_wxUSE_X11=0
10f2d63a 1659
ac0c4cc3 1660DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1661DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1662DEFAULT_DEFAULT_wxUSE_MAC=0
1663DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1664DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1665DEFAULT_DEFAULT_wxUSE_MOTIF=0
1666DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1667DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1668DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1669
d6a55c4b 1670PROGRAM_EXT=
3a922bb4 1671SO_SUFFIX=so
fe0895cf 1672SAMPLES_RPATH_FLAG=
0f1bc9c2 1673SAMPLES_RPATH_POSTLINK=
d6a55c4b 1674
10f2d63a
VZ
1675case "${host}" in
1676 *-hp-hpux* )
1677 USE_HPUX=1
1678 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1679 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1680 SO_SUFFIX=sl
e6cc62c6 1681 cat >>confdefs.h <<\_ACEOF
10f2d63a 1682#define __HPUX__ 1
e6cc62c6 1683_ACEOF
10f2d63a
VZ
1684
1685 ;;
1686 *-*-linux* )
1687 USE_LINUX=1
e6cc62c6 1688 cat >>confdefs.h <<\_ACEOF
10f2d63a 1689#define __LINUX__ 1
e6cc62c6 1690_ACEOF
10f2d63a
VZ
1691
1692 TMP=`uname -m`
1693 if test "x$TMP" = "xalpha"; then
1694 USE_ALPHA=1
e6cc62c6 1695 cat >>confdefs.h <<\_ACEOF
10f2d63a 1696#define __ALPHA__ 1
e6cc62c6 1697_ACEOF
fe0895cf
VS
1698
1699 fi
1700 DEFAULT_DEFAULT_wxUSE_GTK=1
1701 ;;
1702 *-*-gnu* )
1703 USE_GNU=1
e6cc62c6 1704 cat >>confdefs.h <<\_ACEOF
fe0895cf 1705#define __GNU__ 1
e6cc62c6 1706_ACEOF
fe0895cf
VS
1707
1708 TMP=`uname -m`
1709 if test "x$TMP" = "xalpha"; then
1710 USE_ALPHA=1
e6cc62c6 1711 cat >>confdefs.h <<\_ACEOF
fe0895cf 1712#define __ALPHA__ 1
e6cc62c6 1713_ACEOF
10f2d63a
VZ
1714
1715 fi
1716 DEFAULT_DEFAULT_wxUSE_GTK=1
1717 ;;
1718 *-*-irix5* | *-*-irix6* )
1719 USE_SGI=1
1720 USE_SVR4=1
e6cc62c6 1721 cat >>confdefs.h <<\_ACEOF
10f2d63a 1722#define __SGI__ 1
e6cc62c6 1723_ACEOF
10f2d63a 1724
e6cc62c6 1725 cat >>confdefs.h <<\_ACEOF
10f2d63a 1726#define __SVR4__ 1
e6cc62c6 1727_ACEOF
10f2d63a
VZ
1728
1729 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1730 ;;
1731 *-*-solaris2* )
1732 USE_SUN=1
1733 USE_SOLARIS=1
1734 USE_SVR4=1
e6cc62c6 1735 cat >>confdefs.h <<\_ACEOF
10f2d63a 1736#define __SUN__ 1
e6cc62c6 1737_ACEOF
10f2d63a 1738
e6cc62c6 1739 cat >>confdefs.h <<\_ACEOF
10f2d63a 1740#define __SOLARIS__ 1
e6cc62c6 1741_ACEOF
10f2d63a 1742
e6cc62c6 1743 cat >>confdefs.h <<\_ACEOF
10f2d63a 1744#define __SVR4__ 1
e6cc62c6 1745_ACEOF
10f2d63a
VZ
1746
1747 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1748 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1749 ;;
1750 *-*-sunos4* )
1751 USE_SUN=1
1752 USE_SUNOS=1
1753 USE_BSD=1
e6cc62c6 1754 cat >>confdefs.h <<\_ACEOF
10f2d63a 1755#define __SUN__ 1
e6cc62c6 1756_ACEOF
10f2d63a 1757
e6cc62c6 1758 cat >>confdefs.h <<\_ACEOF
10f2d63a 1759#define __SUNOS__ 1
e6cc62c6 1760_ACEOF
10f2d63a 1761
e6cc62c6 1762 cat >>confdefs.h <<\_ACEOF
10f2d63a 1763#define __BSD__ 1
e6cc62c6 1764_ACEOF
10f2d63a
VZ
1765
1766 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1767 ;;
f6bcfd97 1768 *-*-freebsd*)
10f2d63a
VZ
1769 USE_BSD=1
1770 USE_FREEBSD=1
e6cc62c6 1771 cat >>confdefs.h <<\_ACEOF
10f2d63a 1772#define __FREEBSD__ 1
e6cc62c6 1773_ACEOF
10f2d63a 1774
e6cc62c6 1775 cat >>confdefs.h <<\_ACEOF
10f2d63a 1776#define __BSD__ 1
e6cc62c6 1777_ACEOF
95c8801c
VS
1778
1779 DEFAULT_DEFAULT_wxUSE_GTK=1
1780 ;;
1781 *-*-openbsd*)
1782 USE_BSD=1
1783 USE_OPENBSD=1
e6cc62c6 1784 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1785#define __OPENBSD__ 1
e6cc62c6 1786_ACEOF
95c8801c 1787
e6cc62c6 1788 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1789#define __BSD__ 1
e6cc62c6 1790_ACEOF
f6bcfd97
BP
1791
1792 DEFAULT_DEFAULT_wxUSE_GTK=1
1793 ;;
1794 *-*-netbsd*)
1795 USE_BSD=1
1796 USE_NETBSD=1
e6cc62c6 1797 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1798#define __NETBSD__ 1
e6cc62c6 1799_ACEOF
f6bcfd97 1800
e6cc62c6 1801 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1802#define __BSD__ 1
e6cc62c6 1803_ACEOF
10f2d63a
VZ
1804
1805 DEFAULT_DEFAULT_wxUSE_GTK=1
1806 ;;
1807 *-*-osf* )
1808 USE_ALPHA=1
1809 USE_OSF=1
e6cc62c6 1810 cat >>confdefs.h <<\_ACEOF
10f2d63a 1811#define __ALPHA__ 1
e6cc62c6 1812_ACEOF
10f2d63a 1813
e6cc62c6 1814 cat >>confdefs.h <<\_ACEOF
10f2d63a 1815#define __OSF__ 1
e6cc62c6 1816_ACEOF
10f2d63a
VZ
1817
1818 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1819 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1820 ;;
1821 *-*-dgux5* )
1822 USE_ALPHA=1
1823 USE_SVR4=1
e6cc62c6 1824 cat >>confdefs.h <<\_ACEOF
10f2d63a 1825#define __ALPHA__ 1
e6cc62c6 1826_ACEOF
10f2d63a 1827
e6cc62c6 1828 cat >>confdefs.h <<\_ACEOF
10f2d63a 1829#define __SVR4__ 1
e6cc62c6 1830_ACEOF
10f2d63a
VZ
1831
1832 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1833 ;;
1834 *-*-sysv5* )
1835 USE_SYSV=1
1836 USE_SVR4=1
e6cc62c6 1837 cat >>confdefs.h <<\_ACEOF
10f2d63a 1838#define __SYSV__ 1
e6cc62c6 1839_ACEOF
10f2d63a 1840
e6cc62c6 1841 cat >>confdefs.h <<\_ACEOF
10f2d63a 1842#define __SVR4__ 1
e6cc62c6 1843_ACEOF
10f2d63a
VZ
1844
1845 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1846 ;;
1847 *-*-aix* )
1848 USE_AIX=1
1849 USE_SYSV=1
1850 USE_SVR4=1
2b5f62a0 1851 SO_SUFFIX=a
e6cc62c6 1852 cat >>confdefs.h <<\_ACEOF
10f2d63a 1853#define __AIX__ 1
e6cc62c6 1854_ACEOF
10f2d63a 1855
e6cc62c6 1856 cat >>confdefs.h <<\_ACEOF
10f2d63a 1857#define __SYSV__ 1
e6cc62c6 1858_ACEOF
10f2d63a 1859
e6cc62c6 1860 cat >>confdefs.h <<\_ACEOF
10f2d63a 1861#define __SVR4__ 1
e6cc62c6 1862_ACEOF
10f2d63a
VZ
1863
1864 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1865 ;;
1866
89e3b3e4
VZ
1867 *-*-*UnixWare*)
1868 USE_SYSV=1
1869 USE_SVR4=1
1870 USE_UNIXWARE=1
e6cc62c6 1871 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1872#define __UNIXWARE__ 1
e6cc62c6 1873_ACEOF
89e3b3e4
VZ
1874
1875 ;;
1876
1c8183e2 1877 *-*-cygwin* | *-*-mingw32* )
17234b26 1878 SO_SUFFIX=dll
cf27ef00 1879 PROGRAM_EXT=".exe"
7b7a7637 1880 RESCOMP=windres
10f2d63a
VZ
1881 DEFAULT_DEFAULT_wxUSE_MSW=1
1882 ;;
1883
f9bc1684
VS
1884 *-pc-msdosdjgpp )
1885 USE_UNIX=0
1886 USE_DOS=1
e6cc62c6 1887 cat >>confdefs.h <<\_ACEOF
f9bc1684 1888#define __DOS__ 1
e6cc62c6 1889_ACEOF
f9bc1684
VS
1890
1891 PROGRAM_EXT=".exe"
1892 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1893 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1894 ;;
1895
6fa882bd 1896 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1897 cat >>confdefs.h <<\_ACEOF
10f2d63a 1898#define __EMX__ 1
e6cc62c6 1899_ACEOF
10f2d63a 1900
73d617c9 1901 USE_OS2=1
7015ef3a
VZ
1902 cat >>confdefs.h <<\_ACEOF
1903#define __OS2__ 1
1904_ACEOF
1905
cf27ef00 1906 PROGRAM_EXT=".exe"
e07802fc 1907 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5 1908 CXX=gcc
73d617c9 1909 LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
d5fc095c
VS
1910 ac_executable_extensions=".exe"
1911 export ac_executable_extensions
1912 ac_save_IFS="$IFS"
e46d2a18 1913 IFS='\\'
d5fc095c
VS
1914 ac_TEMP_PATH=
1915 for ac_dir in $PATH; do
1916 IFS=$ac_save_IFS
1917 if test -z "$ac_TEMP_PATH"; then
1918 ac_TEMP_PATH="$ac_dir"
1919 else
1920 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1921 fi
1922 done
1923 export PATH="$ac_TEMP_PATH"
1924 unset ac_TEMP_PATH
10f2d63a
VZ
1925 ;;
1926
d08b457b
GD
1927 powerpc-*-darwin* )
1928 USE_BSD=1
f11bdd03 1929 USE_DARWIN=1
3a922bb4 1930 SO_SUFFIX=dylib
e6cc62c6 1931 cat >>confdefs.h <<\_ACEOF
f11bdd03 1932#define __BSD__ 1
e6cc62c6 1933_ACEOF
b4085ce6 1934
e6cc62c6 1935 cat >>confdefs.h <<\_ACEOF
f11bdd03 1936#define __DARWIN__ 1
e6cc62c6 1937_ACEOF
d08b457b 1938
e6cc62c6 1939 cat >>confdefs.h <<\_ACEOF
d08b457b 1940#define __POWERPC__ 1
e6cc62c6 1941_ACEOF
82d43113 1942
e6cc62c6 1943 cat >>confdefs.h <<\_ACEOF
82d43113 1944#define TARGET_CARBON 1
e6cc62c6 1945_ACEOF
b4085ce6
GD
1946
1947 DEFAULT_DEFAULT_wxUSE_MAC=1
1948 ;;
1949
b12915c1
VZ
1950 *-*-beos* )
1951 USE_BEOS=1
e6cc62c6 1952 cat >>confdefs.h <<\_ACEOF
b12915c1 1953#define __BEOS__ 1
e6cc62c6 1954_ACEOF
b12915c1
VZ
1955
1956 ;;
1957
10f2d63a 1958 *)
e6cc62c6
VS
1959 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1960echo "$as_me: error: unknown system type ${host}." >&2;}
1961 { (exit 1); exit 1; }; }
10f2d63a
VZ
1962esac
1963
8284b0c5
MB
1964
1965
1966
1967 wx_arg_cache_file="configarg.cache"
1968 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1969 rm -f ${wx_arg_cache_file}.tmp
1970 touch ${wx_arg_cache_file}.tmp
1971 touch ${wx_arg_cache_file}
e6cc62c6 1972
10f2d63a
VZ
1973
1974DEBUG_CONFIGURE=0
1975if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1976 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1977 DEFAULT_wxUSE_STL=no
1e6feb95 1978
d8356fa3
VZ
1979 DEFAULT_wxUSE_NANOX=no
1980
10f2d63a
VZ
1981 DEFAULT_wxUSE_THREADS=yes
1982
1983 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1984 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1985 DEFAULT_wxUSE_PROFILE=no
1986 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1987 DEFAULT_wxUSE_NO_RTTI=no
1988 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1989 DEFAULT_wxUSE_PERMISSIVE=no
1990 DEFAULT_wxUSE_DEBUG_FLAG=yes
1991 DEFAULT_wxUSE_DEBUG_INFO=yes
1992 DEFAULT_wxUSE_DEBUG_GDB=yes
1993 DEFAULT_wxUSE_MEM_TRACING=no
1994 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1995 DEFAULT_wxUSE_DMALLOC=no
1996 DEFAULT_wxUSE_APPLE_IEEE=no
1997
e46d2a18 1998 DEFAULT_wxUSE_EXCEPTIONS=no
10f2d63a 1999 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
2000 DEFAULT_wxUSE_LOGWINDOW=no
2001 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 2002 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
2003
2004 DEFAULT_wxUSE_GUI=yes
1e6feb95 2005 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 2006
3e44f09d 2007 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
2008 DEFAULT_wxUSE_XML=no
2009 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
2010 DEFAULT_wxUSE_ZLIB=no
2011 DEFAULT_wxUSE_LIBPNG=no
2012 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2013 DEFAULT_wxUSE_LIBTIFF=no
89fe663f 2014 DEFAULT_wxUSE_LIBXPM=no
f93ca9fd
VS
2015 DEFAULT_wxUSE_LIBMSPACK=no
2016 DEFAULT_wxUSE_LIBSDL=no
10f2d63a 2017 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2018 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2019
eb4efbdc 2020 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2021 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2022 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2023 DEFAULT_wxUSE_CMDLINE_PARSER=no
2024 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2025 DEFAULT_wxUSE_TIMER=no
2026 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2027 DEFAULT_wxUSE_FILE=no
1e6feb95 2028 DEFAULT_wxUSE_FFILE=no
a3a584a7 2029 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2030 DEFAULT_wxUSE_TEXTFILE=no
002ed9af 2031 DEFAULT_wxUSE_SOUND=no
10f2d63a
VZ
2032 DEFAULT_wxUSE_INTL=no
2033 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2034 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2035 DEFAULT_wxUSE_STREAMS=no
2036 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2037 DEFAULT_wxUSE_OLE=no
2038 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2039 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2040 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2041 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2042 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2043 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2044 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2045
2046 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2047 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2048 DEFAULT_wxUSE_POSTSCRIPT=no
2049
10f2d63a
VZ
2050 DEFAULT_wxUSE_CLIPBOARD=no
2051 DEFAULT_wxUSE_TOOLTIPS=no
2052 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2053 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2054 DEFAULT_wxUSE_SPLINES=no
2055
2056 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2057 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2058 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2059
10f2d63a
VZ
2060 DEFAULT_wxUSE_RESOURCES=no
2061 DEFAULT_wxUSE_CONSTRAINTS=no
2062 DEFAULT_wxUSE_IPC=no
2063 DEFAULT_wxUSE_HELP=no
29fd3c0c 2064 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2065 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2066 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2067 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2068 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2069 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2070 DEFAULT_wxUSE_PROTOCOL=no
2071 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2072 DEFAULT_wxUSE_PROTOCOL_FTP=no
2073 DEFAULT_wxUSE_PROTOCOL_FILE=no
2074 DEFAULT_wxUSE_URL=no
3bd8fb5f 2075
10f2d63a 2076 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2077 DEFAULT_wxUSE_CHOICEDLG=no
2078 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2079 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2080 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2081 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2082 DEFAULT_wxUSE_FONTDLG=no
2083 DEFAULT_wxUSE_MSGDLG=no
2084 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2085 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2086 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2087 DEFAULT_wxUSE_STARTUP_TIPS=no
2088 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2089 DEFAULT_wxUSE_WIZARDDLG=no
2090
1e6feb95 2091 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2092 DEFAULT_wxUSE_MINIFRAME=no
2093 DEFAULT_wxUSE_HTML=no
24528b0c 2094 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2095 DEFAULT_wxUSE_FS_INET=no
2096 DEFAULT_wxUSE_FS_ZIP=no
2097 DEFAULT_wxUSE_BUSYINFO=no
2098 DEFAULT_wxUSE_ZIPSTREAM=no
7015ef3a 2099 DEFAULT_wxUSE_GZSTREAM=no
1e6feb95 2100 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2101
2102 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2103 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2104 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2105 DEFAULT_wxUSE_CALCTRL=no
2106 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2107 DEFAULT_wxUSE_CHECKBOX=no
2108 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2109 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2110 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2111 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2112 DEFAULT_wxUSE_GAUGE=no
2113 DEFAULT_wxUSE_GRID=no
10f2d63a 2114 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2115 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2116 DEFAULT_wxUSE_LISTBOX=no
2117 DEFAULT_wxUSE_LISTCTRL=no
2118 DEFAULT_wxUSE_NOTEBOOK=no
2119 DEFAULT_wxUSE_RADIOBOX=no
2120 DEFAULT_wxUSE_RADIOBTN=no
2121 DEFAULT_wxUSE_SASH=no
2122 DEFAULT_wxUSE_SCROLLBAR=no
2123 DEFAULT_wxUSE_SLIDER=no
2124 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2125 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2126 DEFAULT_wxUSE_SPLITTER=no
2127 DEFAULT_wxUSE_STATBMP=no
2128 DEFAULT_wxUSE_STATBOX=no
2129 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2130 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2131 DEFAULT_wxUSE_STATUSBAR=yes
2132 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2133 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2134 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2135 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2136 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2137 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2138 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2139 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2140 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2141
2142 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2143 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2144 DEFAULT_wxUSE_WCSRTOMBS=no
2145
edae8572 2146 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2147 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2148 DEFAULT_wxUSE_GIF=no
2149 DEFAULT_wxUSE_PCX=no
2150 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2151 DEFAULT_wxUSE_IFF=no
0046ff7c 2152 DEFAULT_wxUSE_XPM=no
658974ae 2153 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2154 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2155
e9e0dc15 2156 DEFAULT_wxUSE_MONOLITHIC=no
f93ca9fd 2157 DEFAULT_wxUSE_PLUGINS=no
029b47ad 2158 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2159else
1e6feb95 2160 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2161 DEFAULT_wxUSE_STL=no
1e6feb95 2162
d8356fa3
VZ
2163 DEFAULT_wxUSE_NANOX=no
2164
10f2d63a
VZ
2165 DEFAULT_wxUSE_THREADS=yes
2166
2167 DEFAULT_wxUSE_SHARED=yes
2168 DEFAULT_wxUSE_OPTIMISE=yes
2169 DEFAULT_wxUSE_PROFILE=no
2170 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2171 DEFAULT_wxUSE_NO_RTTI=no
2172 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2173 DEFAULT_wxUSE_PERMISSIVE=no
2174 DEFAULT_wxUSE_DEBUG_FLAG=no
2175 DEFAULT_wxUSE_DEBUG_INFO=no
2176 DEFAULT_wxUSE_DEBUG_GDB=no
2177 DEFAULT_wxUSE_MEM_TRACING=no
2178 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2179 DEFAULT_wxUSE_DMALLOC=no
2180 DEFAULT_wxUSE_APPLE_IEEE=yes
2181
e46d2a18 2182 DEFAULT_wxUSE_EXCEPTIONS=yes
10f2d63a 2183 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2184 DEFAULT_wxUSE_LOGWINDOW=yes
2185 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2186 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2187
2188 DEFAULT_wxUSE_GUI=yes
2189
aa2d9ecc 2190 DEFAULT_wxUSE_REGEX=yes
672abd7a 2191 DEFAULT_wxUSE_XML=yes
aa2d9ecc
VZ
2192 DEFAULT_wxUSE_EXPAT=yes
2193 DEFAULT_wxUSE_ZLIB=yes
2194 DEFAULT_wxUSE_LIBPNG=yes
2195 DEFAULT_wxUSE_LIBJPEG=yes
2196 DEFAULT_wxUSE_LIBTIFF=yes
2197 DEFAULT_wxUSE_LIBXPM=yes
3527f29c 2198 DEFAULT_wxUSE_LIBMSPACK=yes
f93ca9fd 2199 DEFAULT_wxUSE_LIBSDL=no
16b52fa1 2200 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2201 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2202
eb4efbdc 2203 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2204 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2205 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2206 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2207 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2208 DEFAULT_wxUSE_TIMER=yes
2209 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2210 DEFAULT_wxUSE_FILE=yes
1e6feb95 2211 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2212 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2213 DEFAULT_wxUSE_TEXTFILE=yes
002ed9af 2214 DEFAULT_wxUSE_SOUND=yes
10f2d63a
VZ
2215 DEFAULT_wxUSE_INTL=yes
2216 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2217 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2218 DEFAULT_wxUSE_STREAMS=yes
2219 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2220 DEFAULT_wxUSE_OLE=yes
2221 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2222 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2223 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2224 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2225 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2226 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2227 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2228
2229 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2230 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2231 DEFAULT_wxUSE_POSTSCRIPT=yes
2232
10f2d63a
VZ
2233 DEFAULT_wxUSE_CLIPBOARD=yes
2234 DEFAULT_wxUSE_TOOLTIPS=yes
2235 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2236 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2237 DEFAULT_wxUSE_SPLINES=yes
2238
2239 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2240 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2241 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2242
2b5f62a0 2243 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2244 DEFAULT_wxUSE_CONSTRAINTS=yes
2245 DEFAULT_wxUSE_IPC=yes
2246 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2247 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2248 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2249 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2250 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2251 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2252 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2253 DEFAULT_wxUSE_PROTOCOL=yes
2254 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2255 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2256 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2257 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2258
2259 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2260 DEFAULT_wxUSE_CHOICEDLG=yes
2261 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2262 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2263 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2264 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2265 DEFAULT_wxUSE_FONTDLG=yes
2266 DEFAULT_wxUSE_MSGDLG=yes
2267 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2268 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2269 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2270 DEFAULT_wxUSE_STARTUP_TIPS=yes
2271 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2272 DEFAULT_wxUSE_WIZARDDLG=yes
2273
1e6feb95 2274 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2275 DEFAULT_wxUSE_MINIFRAME=yes
2276 DEFAULT_wxUSE_HTML=yes
24528b0c 2277 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2278 DEFAULT_wxUSE_FS_INET=yes
2279 DEFAULT_wxUSE_FS_ZIP=yes
2280 DEFAULT_wxUSE_BUSYINFO=yes
2281 DEFAULT_wxUSE_ZIPSTREAM=yes
7015ef3a 2282 DEFAULT_wxUSE_GZSTREAM=yes
10f2d63a
VZ
2283 DEFAULT_wxUSE_VALIDATORS=yes
2284
2285 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2286 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2287 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2288 DEFAULT_wxUSE_CALCTRL=yes
2289 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2290 DEFAULT_wxUSE_CHECKBOX=yes
2291 DEFAULT_wxUSE_CHECKLST=yes
2292 DEFAULT_wxUSE_CHOICE=yes
2293 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2294 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2295 DEFAULT_wxUSE_GAUGE=yes
2296 DEFAULT_wxUSE_GRID=yes
10f2d63a 2297 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2298 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2299 DEFAULT_wxUSE_LISTBOX=yes
2300 DEFAULT_wxUSE_LISTCTRL=yes
2301 DEFAULT_wxUSE_NOTEBOOK=yes
2302 DEFAULT_wxUSE_RADIOBOX=yes
2303 DEFAULT_wxUSE_RADIOBTN=yes
2304 DEFAULT_wxUSE_SASH=yes
2305 DEFAULT_wxUSE_SCROLLBAR=yes
2306 DEFAULT_wxUSE_SLIDER=yes
2307 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2308 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2309 DEFAULT_wxUSE_SPLITTER=yes
2310 DEFAULT_wxUSE_STATBMP=yes
2311 DEFAULT_wxUSE_STATBOX=yes
2312 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2313 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2314 DEFAULT_wxUSE_STATUSBAR=yes
2315 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2316 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2317 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2318 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2319 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2320 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2321 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2322 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2323 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2324
2325 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2326 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2327 DEFAULT_wxUSE_WCSRTOMBS=no
2328
edae8572 2329 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2330 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2331 DEFAULT_wxUSE_GIF=yes
2332 DEFAULT_wxUSE_PCX=yes
cc0e8480 2333 DEFAULT_wxUSE_IFF=no
10f2d63a 2334 DEFAULT_wxUSE_PNM=yes
0046ff7c 2335 DEFAULT_wxUSE_XPM=yes
658974ae 2336 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2337 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2338
e9e0dc15 2339 DEFAULT_wxUSE_MONOLITHIC=no
f93ca9fd 2340 DEFAULT_wxUSE_PLUGINS=no
029b47ad 2341 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2342fi
2343
8284b0c5
MB
2344
2345
10f2d63a 2346for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2347 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2348 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2349 has_toolkit_in_cache=1
2350 eval "DEFAULT_$LINE"
2351 eval "CACHE_$toolkit=1"
2352 fi
2353done
2354
8284b0c5
MB
2355
2356
5005acfe 2357 enablestring=
e6cc62c6
VS
2358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2359echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2360 no_cache=0
2361 # Check whether --enable-gui or --disable-gui was given.
2362if test "${enable_gui+set}" = set; then
2363 enableval="$enable_gui"
e6cc62c6 2364
10f2d63a
VZ
2365 if test "$enableval" = yes; then
2366 ac_cv_use_gui='wxUSE_GUI=yes'
2367 else
2368 ac_cv_use_gui='wxUSE_GUI=no'
2369 fi
e6cc62c6 2370
10f2d63a 2371else
e6cc62c6 2372
10f2d63a
VZ
2373 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2374 if test "x$LINE" != x ; then
2375 eval "DEFAULT_$LINE"
2376 else
2377 no_cache=1
2378 fi
2379
2380 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2381
e6cc62c6 2382fi;
10f2d63a
VZ
2383
2384 eval "$ac_cv_use_gui"
2385 if test "$no_cache" != 1; then
2386 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2387 fi
2388
2389 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2390 echo "$as_me:$LINENO: result: yes" >&5
2391echo "${ECHO_T}yes" >&6
10f2d63a 2392 else
e6cc62c6
VS
2393 echo "$as_me:$LINENO: result: no" >&5
2394echo "${ECHO_T}no" >&6
10f2d63a 2395 fi
e6cc62c6 2396
10f2d63a 2397
9747f85d
VS
2398 enablestring=
2399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2400echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2401 no_cache=0
2402 # Check whether --enable-monolithic or --disable-monolithic was given.
2403if test "${enable_monolithic+set}" = set; then
2404 enableval="$enable_monolithic"
2405
2406 if test "$enableval" = yes; then
2407 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2408 else
2409 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2410 fi
2411
2412else
2413
2414 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2415 if test "x$LINE" != x ; then
2416 eval "DEFAULT_$LINE"
2417 else
2418 no_cache=1
2419 fi
2420
2421 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2422
2423fi;
2424
2425 eval "$ac_cv_use_monolithic"
2426 if test "$no_cache" != 1; then
2427 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2428 fi
2429
2430 if test "$wxUSE_MONOLITHIC" = yes; then
2431 echo "$as_me:$LINENO: result: yes" >&5
2432echo "${ECHO_T}yes" >&6
2433 else
2434 echo "$as_me:$LINENO: result: no" >&5
2435echo "${ECHO_T}no" >&6
2436 fi
2437
2438
f93ca9fd
VS
2439 enablestring=
2440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2441echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2442 no_cache=0
2443 # Check whether --enable-plugins or --disable-plugins was given.
2444if test "${enable_plugins+set}" = set; then
2445 enableval="$enable_plugins"
2446
2447 if test "$enableval" = yes; then
2448 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2449 else
2450 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2451 fi
2452
2453else
2454
2455 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2456 if test "x$LINE" != x ; then
2457 eval "DEFAULT_$LINE"
2458 else
2459 no_cache=1
2460 fi
2461
2462 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2463
2464fi;
2465
2466 eval "$ac_cv_use_plugins"
2467 if test "$no_cache" != 1; then
2468 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2469 fi
2470
2471 if test "$wxUSE_PLUGINS" = yes; then
2472 echo "$as_me:$LINENO: result: yes" >&5
2473echo "${ECHO_T}yes" >&6
2474 else
2475 echo "$as_me:$LINENO: result: no" >&5
2476echo "${ECHO_T}no" >&6
2477 fi
2478
2479
b12915c1 2480if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2481
8284b0c5 2482
5005acfe 2483 enablestring=
e6cc62c6
VS
2484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2485echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2486 no_cache=0
2487 # Check whether --enable-universal or --disable-universal was given.
2488if test "${enable_universal+set}" = set; then
2489 enableval="$enable_universal"
e6cc62c6 2490
1e6feb95
VZ
2491 if test "$enableval" = yes; then
2492 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2493 else
2494 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2495 fi
e6cc62c6 2496
1e6feb95 2497else
e6cc62c6 2498
1e6feb95
VZ
2499 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2500 if test "x$LINE" != x ; then
2501 eval "DEFAULT_$LINE"
2502 else
2503 no_cache=1
2504 fi
2505
2506 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2507
e6cc62c6 2508fi;
1e6feb95
VZ
2509
2510 eval "$ac_cv_use_universal"
2511 if test "$no_cache" != 1; then
2512 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2513 fi
2514
2515 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2516 echo "$as_me:$LINENO: result: yes" >&5
2517echo "${ECHO_T}yes" >&6
1e6feb95 2518 else
e6cc62c6
VS
2519 echo "$as_me:$LINENO: result: no" >&5
2520echo "${ECHO_T}no" >&6
1e6feb95 2521 fi
e6cc62c6
VS
2522
2523
10f2d63a
VZ
2524# Check whether --with-gtk or --without-gtk was given.
2525if test "${with_gtk+set}" = set; then
2526 withval="$with_gtk"
2527 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2528fi;
10f2d63a
VZ
2529
2530# Check whether --with-motif or --without-motif was given.
2531if test "${with_motif+set}" = set; then
2532 withval="$with_motif"
2533 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2534fi;
10f2d63a 2535
b4085ce6
GD
2536# Check whether --with-mac or --without-mac was given.
2537if test "${with_mac+set}" = set; then
2538 withval="$with_mac"
2539 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2540fi;
b4085ce6 2541
ac0c4cc3
DE
2542# Check whether --with-cocoa or --without-cocoa was given.
2543if test "${with_cocoa+set}" = set; then
2544 withval="$with_cocoa"
2545 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2546fi;
ac0c4cc3 2547
10f2d63a
VZ
2548# Check whether --with-wine or --without-wine was given.
2549if test "${with_wine+set}" = set; then
2550 withval="$with_wine"
89e6bf6d 2551 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2552fi;
10f2d63a 2553
77e13408
RL
2554# Check whether --with-msw or --without-msw was given.
2555if test "${with_msw+set}" = set; then
2556 withval="$with_msw"
b4efce5e 2557 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2558fi;
10f2d63a 2559
e07802fc
VZ
2560# Check whether --with-pm or --without-pm was given.
2561if test "${with_pm+set}" = set; then
2562 withval="$with_pm"
2563 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2564fi;
698dcdb6 2565
1e6feb95
VZ
2566# Check whether --with-mgl or --without-mgl was given.
2567if test "${with_mgl+set}" = set; then
2568 withval="$with_mgl"
6c657b52 2569 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2570fi;
1e6feb95 2571
1725144d
RR
2572# Check whether --with-microwin or --without-microwin was given.
2573if test "${with_microwin+set}" = set; then
2574 withval="$with_microwin"
2575 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2576fi;
1725144d 2577
f79bd02d
JS
2578# Check whether --with-x11 or --without-x11 was given.
2579if test "${with_x11+set}" = set; then
2580 withval="$with_x11"
3c011993 2581 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2582fi;
a0b9e27f 2583
5005acfe 2584 enablestring=
e6cc62c6
VS
2585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2586echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2587 no_cache=0
ba875e66
VZ
2588 # Check whether --enable-nanox or --disable-nanox was given.
2589if test "${enable_nanox+set}" = set; then
2590 enableval="$enable_nanox"
e6cc62c6 2591
d8356fa3 2592 if test "$enableval" = yes; then
ba875e66 2593 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2594 else
ba875e66 2595 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2596 fi
e6cc62c6 2597
d8356fa3 2598else
e6cc62c6 2599
d8356fa3
VZ
2600 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2601 if test "x$LINE" != x ; then
2602 eval "DEFAULT_$LINE"
2603 else
2604 no_cache=1
2605 fi
2606
ba875e66 2607 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2608
e6cc62c6 2609fi;
d8356fa3 2610
ba875e66 2611 eval "$ac_cv_use_nanox"
d8356fa3 2612 if test "$no_cache" != 1; then
ba875e66 2613 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2614 fi
2615
2616 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2617 echo "$as_me:$LINENO: result: yes" >&5
2618echo "${ECHO_T}yes" >&6
d8356fa3 2619 else
e6cc62c6
VS
2620 echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6
d8356fa3 2622 fi
e6cc62c6 2623
8284b0c5 2624
d74f4b5a 2625
5005acfe 2626 enablestring=
e6cc62c6
VS
2627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2628echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2629 no_cache=0
2630 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2631if test "${enable_gtk2+set}" = set; then
2632 enableval="$enable_gtk2"
e6cc62c6 2633
d74f4b5a
VZ
2634 if test "$enableval" = yes; then
2635 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2636 else
2637 ac_cv_use_gtk2='wxUSE_GTK2=no'
2638 fi
e6cc62c6 2639
10f2d63a 2640else
e6cc62c6 2641
d74f4b5a
VZ
2642 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2643 if test "x$LINE" != x ; then
2644 eval "DEFAULT_$LINE"
2645 else
2646 no_cache=1
2647 fi
2648
2649 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2650
e6cc62c6 2651fi;
328a083c 2652
d74f4b5a
VZ
2653 eval "$ac_cv_use_gtk2"
2654 if test "$no_cache" != 1; then
2655 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2656 fi
2657
2658 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2659 echo "$as_me:$LINENO: result: yes" >&5
2660echo "${ECHO_T}yes" >&6
d74f4b5a 2661 else
e6cc62c6
VS
2662 echo "$as_me:$LINENO: result: no" >&5
2663echo "${ECHO_T}no" >&6
d74f4b5a 2664 fi
d74f4b5a 2665
5c6fa7d2 2666
e6cc62c6
VS
2667
2668 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2669echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2670 no_cache=0
e6cc62c6
VS
2671
2672# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2673if test "${with_libpng+set}" = set; then
2674 withval="$with_libpng"
e6cc62c6 2675
10f2d63a 2676 if test "$withval" = yes; then
b12915c1 2677 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2678 elif test "$withval" = no; then
b12915c1 2679 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2680 elif test "$withval" = sys; then
2681 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2682 elif test "$withval" = builtin; then
2683 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2684 else
e6cc62c6
VS
2685 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2686echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2687 { (exit 1); exit 1; }; }
10f2d63a 2688 fi
e6cc62c6 2689
10f2d63a 2690else
e6cc62c6 2691
b12915c1 2692 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2693 if test "x$LINE" != x ; then
2694 eval "DEFAULT_$LINE"
2695 else
2696 no_cache=1
2697 fi
2698
b12915c1 2699 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2700
e6cc62c6 2701fi;
10f2d63a 2702
b12915c1 2703 eval "$ac_cv_use_libpng"
10f2d63a 2704 if test "$no_cache" != 1; then
b12915c1 2705 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2706 fi
2707
b12915c1 2708 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2709 echo "$as_me:$LINENO: result: yes" >&5
2710echo "${ECHO_T}yes" >&6
422107f9 2711 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2712 echo "$as_me:$LINENO: result: no" >&5
2713echo "${ECHO_T}no" >&6
422107f9 2714 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2715 echo "$as_me:$LINENO: result: system version" >&5
2716echo "${ECHO_T}system version" >&6
4f14bcd8 2717 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2718 echo "$as_me:$LINENO: result: builtin version" >&5
2719echo "${ECHO_T}builtin version" >&6
422107f9 2720 else
e6cc62c6
VS
2721 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2722echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2723 { (exit 1); exit 1; }; }
10f2d63a 2724 fi
10f2d63a 2725
e6cc62c6
VS
2726
2727 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2728echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2729 no_cache=0
e6cc62c6
VS
2730
2731# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2732if test "${with_libjpeg+set}" = set; then
2733 withval="$with_libjpeg"
e6cc62c6 2734
10f2d63a 2735 if test "$withval" = yes; then
b12915c1 2736 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2737 elif test "$withval" = no; then
b12915c1 2738 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2739 elif test "$withval" = sys; then
2740 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2741 elif test "$withval" = builtin; then
2742 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2743 else
e6cc62c6
VS
2744 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2745echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2746 { (exit 1); exit 1; }; }
10f2d63a 2747 fi
e6cc62c6 2748
10f2d63a 2749else
e6cc62c6 2750
b12915c1 2751 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2752 if test "x$LINE" != x ; then
2753 eval "DEFAULT_$LINE"
2754 else
2755 no_cache=1
2756 fi
2757
b12915c1 2758 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2759
e6cc62c6 2760fi;
10f2d63a 2761
b12915c1 2762 eval "$ac_cv_use_libjpeg"
10f2d63a 2763 if test "$no_cache" != 1; then
b12915c1 2764 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2765 fi
2766
b12915c1 2767 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2768 echo "$as_me:$LINENO: result: yes" >&5
2769echo "${ECHO_T}yes" >&6
422107f9 2770 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2771 echo "$as_me:$LINENO: result: no" >&5
2772echo "${ECHO_T}no" >&6
422107f9 2773 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2774 echo "$as_me:$LINENO: result: system version" >&5
2775echo "${ECHO_T}system version" >&6
4f14bcd8 2776 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2777 echo "$as_me:$LINENO: result: builtin version" >&5
2778echo "${ECHO_T}builtin version" >&6
422107f9 2779 else
e6cc62c6
VS
2780 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2781echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2782 { (exit 1); exit 1; }; }
10f2d63a 2783 fi
10f2d63a 2784
e6cc62c6
VS
2785
2786 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2787echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2788 no_cache=0
e6cc62c6
VS
2789
2790# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2791if test "${with_libtiff+set}" = set; then
2792 withval="$with_libtiff"
e6cc62c6 2793
10f2d63a 2794 if test "$withval" = yes; then
b12915c1 2795 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2796 elif test "$withval" = no; then
b12915c1 2797 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2798 elif test "$withval" = sys; then
2799 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2800 elif test "$withval" = builtin; then
2801 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2802 else
e6cc62c6
VS
2803 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2804echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2805 { (exit 1); exit 1; }; }
10f2d63a 2806 fi
e6cc62c6 2807
10f2d63a 2808else
e6cc62c6 2809
b12915c1 2810 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2811 if test "x$LINE" != x ; then
2812 eval "DEFAULT_$LINE"
2813 else
2814 no_cache=1
2815 fi
2816
b12915c1 2817 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2818
e6cc62c6 2819fi;
10f2d63a 2820
b12915c1 2821 eval "$ac_cv_use_libtiff"
10f2d63a 2822 if test "$no_cache" != 1; then
b12915c1 2823 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2824 fi
2825
b12915c1 2826 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2827 echo "$as_me:$LINENO: result: yes" >&5
2828echo "${ECHO_T}yes" >&6
0dcf9893 2829 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2830 echo "$as_me:$LINENO: result: no" >&5
2831echo "${ECHO_T}no" >&6
0dcf9893 2832 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2833 echo "$as_me:$LINENO: result: system version" >&5
2834echo "${ECHO_T}system version" >&6
4f14bcd8 2835 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2836 echo "$as_me:$LINENO: result: builtin version" >&5
2837echo "${ECHO_T}builtin version" >&6
0dcf9893 2838 else
e6cc62c6
VS
2839 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2840echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2841 { (exit 1); exit 1; }; }
10f2d63a 2842 fi
10f2d63a 2843
e6cc62c6 2844
89fe663f
VZ
2845 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2846echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2847 no_cache=0
2848
2849# Check whether --with-libxpm or --without-libxpm was given.
2850if test "${with_libxpm+set}" = set; then
2851 withval="$with_libxpm"
2852
2853 if test "$withval" = yes; then
2854 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2855 elif test "$withval" = no; then
2856 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2857 elif test "$withval" = sys; then
2858 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2859 elif test "$withval" = builtin; then
2860 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2861 else
2862 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2863echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2864 { (exit 1); exit 1; }; }
2865 fi
2866
2867else
2868
2869 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2870 if test "x$LINE" != x ; then
2871 eval "DEFAULT_$LINE"
2872 else
2873 no_cache=1
2874 fi
2875
2876 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2877
2878fi;
2879
2880 eval "$ac_cv_use_libxpm"
2881 if test "$no_cache" != 1; then
2882 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2883 fi
2884
2885 if test "$wxUSE_LIBXPM" = yes; then
2886 echo "$as_me:$LINENO: result: yes" >&5
2887echo "${ECHO_T}yes" >&6
2888 elif test "$wxUSE_LIBXPM" = no; then
2889 echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
2891 elif test "$wxUSE_LIBXPM" = sys; then
2892 echo "$as_me:$LINENO: result: system version" >&5
2893echo "${ECHO_T}system version" >&6
2894 elif test "$wxUSE_LIBXPM" = builtin; then
2895 echo "$as_me:$LINENO: result: builtin version" >&5
2896echo "${ECHO_T}builtin version" >&6
2897 else
2898 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2899echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2900 { (exit 1); exit 1; }; }
2901 fi
2902
2903
3527f29c
VS
2904 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2905echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2906 no_cache=0
2907
2908# Check whether --with-libmspack or --without-libmspack was given.
2909if test "${with_libmspack+set}" = set; then
2910 withval="$with_libmspack"
2911
2912 if test "$withval" = yes; then
2913 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2914 else
2915 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2916 fi
2917
2918else
2919
2920 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2921 if test "x$LINE" != x ; then
2922 eval "DEFAULT_$LINE"
2923 else
2924 no_cache=1
2925 fi
2926
2927 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2928
2929fi;
2930
2931 eval "$ac_cv_use_libmspack"
2932 if test "$no_cache" != 1; then
2933 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2934 fi
2935
2936 if test "$wxUSE_LIBMSPACK" = yes; then
2937 echo "$as_me:$LINENO: result: yes" >&5
2938echo "${ECHO_T}yes" >&6
2939 else
2940 echo "$as_me:$LINENO: result: no" >&5
2941echo "${ECHO_T}no" >&6
2942 fi
2943
2944
f93ca9fd
VS
2945 echo "$as_me:$LINENO: checking for --with-sdl" >&5
2946echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
2947 no_cache=0
2948
2949# Check whether --with-sdl or --without-sdl was given.
2950if test "${with_sdl+set}" = set; then
2951 withval="$with_sdl"
2952
2953 if test "$withval" = yes; then
2954 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
2955 else
2956 ac_cv_use_sdl='wxUSE_LIBSDL=no'
2957 fi
2958
2959else
2960
2961 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
2962 if test "x$LINE" != x ; then
2963 eval "DEFAULT_$LINE"
2964 else
2965 no_cache=1
2966 fi
2967
2968 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
2969
2970fi;
2971
2972 eval "$ac_cv_use_sdl"
2973 if test "$no_cache" != 1; then
2974 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
2975 fi
2976
2977 if test "$wxUSE_LIBSDL" = yes; then
2978 echo "$as_me:$LINENO: result: yes" >&5
2979echo "${ECHO_T}yes" >&6
2980 else
2981 echo "$as_me:$LINENO: result: no" >&5
2982echo "${ECHO_T}no" >&6
2983 fi
2984
2985
e6cc62c6
VS
2986 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2987echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2988 no_cache=0
e6cc62c6
VS
2989
2990# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2991if test "${with_opengl+set}" = set; then
2992 withval="$with_opengl"
e6cc62c6 2993
10f2d63a 2994 if test "$withval" = yes; then
b12915c1 2995 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2996 else
b12915c1 2997 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2998 fi
e6cc62c6 2999
10f2d63a 3000else
e6cc62c6 3001
b12915c1 3002 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
3003 if test "x$LINE" != x ; then
3004 eval "DEFAULT_$LINE"
3005 else
3006 no_cache=1
3007 fi
3008
b12915c1 3009 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 3010
e6cc62c6 3011fi;
10f2d63a 3012
b12915c1 3013 eval "$ac_cv_use_opengl"
10f2d63a 3014 if test "$no_cache" != 1; then
b12915c1 3015 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3016 fi
3017
b12915c1 3018 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
3019 echo "$as_me:$LINENO: result: yes" >&5
3020echo "${ECHO_T}yes" >&6
10f2d63a 3021 else
e6cc62c6
VS
3022 echo "$as_me:$LINENO: result: no" >&5
3023echo "${ECHO_T}no" >&6
10f2d63a 3024 fi
e6cc62c6 3025
10f2d63a 3026
b12915c1
VZ
3027fi
3028
5c6fa7d2 3029
e6cc62c6
VS
3030 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3031echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 3032 no_cache=0
e6cc62c6
VS
3033
3034# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
3035if test "${with_dmalloc+set}" = set; then
3036 withval="$with_dmalloc"
e6cc62c6 3037
c7a2bf27 3038 if test "$withval" = yes; then
b12915c1 3039 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 3040 else
b12915c1 3041 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 3042 fi
e6cc62c6 3043
c7a2bf27 3044else
e6cc62c6 3045
b12915c1 3046 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
3047 if test "x$LINE" != x ; then
3048 eval "DEFAULT_$LINE"
3049 else
3050 no_cache=1
3051 fi
3052
b12915c1 3053 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 3054
e6cc62c6 3055fi;
c7a2bf27 3056
b12915c1 3057 eval "$ac_cv_use_dmalloc"
c7a2bf27 3058 if test "$no_cache" != 1; then
b12915c1 3059 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
3060 fi
3061
b12915c1 3062 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
3063 echo "$as_me:$LINENO: result: yes" >&5
3064echo "${ECHO_T}yes" >&6
c7a2bf27 3065 else
e6cc62c6
VS
3066 echo "$as_me:$LINENO: result: no" >&5
3067echo "${ECHO_T}no" >&6
c7a2bf27 3068 fi
c7a2bf27 3069
e6cc62c6
VS
3070
3071 echo "$as_me:$LINENO: checking for --with-regex" >&5
3072echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 3073 no_cache=0
e6cc62c6
VS
3074
3075# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
3076if test "${with_regex+set}" = set; then
3077 withval="$with_regex"
e6cc62c6 3078
3e44f09d
VZ
3079 if test "$withval" = yes; then
3080 ac_cv_use_regex='wxUSE_REGEX=yes'
3081 elif test "$withval" = no; then
3082 ac_cv_use_regex='wxUSE_REGEX=no'
3083 elif test "$withval" = sys; then
3084 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
3085 elif test "$withval" = builtin; then
3086 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 3087 else
e6cc62c6
VS
3088 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3089echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3090 { (exit 1); exit 1; }; }
3e44f09d 3091 fi
e6cc62c6 3092
3e44f09d 3093else
e6cc62c6 3094
3e44f09d
VZ
3095 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 3103
e6cc62c6 3104fi;
3e44f09d
VZ
3105
3106 eval "$ac_cv_use_regex"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
3112 echo "$as_me:$LINENO: result: yes" >&5
3113echo "${ECHO_T}yes" >&6
3e44f09d 3114 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
3115 echo "$as_me:$LINENO: result: no" >&5
3116echo "${ECHO_T}no" >&6
3e44f09d 3117 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
3118 echo "$as_me:$LINENO: result: system version" >&5
3119echo "${ECHO_T}system version" >&6
4f14bcd8 3120 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
3121 echo "$as_me:$LINENO: result: builtin version" >&5
3122echo "${ECHO_T}builtin version" >&6
3e44f09d 3123 else
e6cc62c6
VS
3124 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3125echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3126 { (exit 1); exit 1; }; }
3e44f09d 3127 fi
3e44f09d 3128
e6cc62c6
VS
3129
3130 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3131echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 3132 no_cache=0
e6cc62c6
VS
3133
3134# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
3135if test "${with_zlib+set}" = set; then
3136 withval="$with_zlib"
e6cc62c6 3137
10f2d63a 3138 if test "$withval" = yes; then
b12915c1 3139 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 3140 elif test "$withval" = no; then
b12915c1 3141 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
3142 elif test "$withval" = sys; then
3143 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
3144 elif test "$withval" = builtin; then
3145 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 3146 else
e6cc62c6
VS
3147 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3148echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3149 { (exit 1); exit 1; }; }
10f2d63a 3150 fi
e6cc62c6 3151
10f2d63a 3152else
e6cc62c6 3153
b12915c1 3154 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
3155 if test "x$LINE" != x ; then
3156 eval "DEFAULT_$LINE"
3157 else
3158 no_cache=1
3159 fi
3160
b12915c1 3161 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 3162
e6cc62c6 3163fi;
10f2d63a 3164
b12915c1 3165 eval "$ac_cv_use_zlib"
10f2d63a 3166 if test "$no_cache" != 1; then
b12915c1 3167 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3168 fi
3169
b12915c1 3170 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
3171 echo "$as_me:$LINENO: result: yes" >&5
3172echo "${ECHO_T}yes" >&6
422107f9 3173 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
3174 echo "$as_me:$LINENO: result: no" >&5
3175echo "${ECHO_T}no" >&6
422107f9 3176 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
3177 echo "$as_me:$LINENO: result: system version" >&5
3178echo "${ECHO_T}system version" >&6
4f14bcd8 3179 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
3180 echo "$as_me:$LINENO: result: builtin version" >&5
3181echo "${ECHO_T}builtin version" >&6
422107f9 3182 else
e6cc62c6
VS
3183 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3184echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3185 { (exit 1); exit 1; }; }
10f2d63a 3186 fi
10f2d63a 3187
e6cc62c6
VS
3188
3189 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3190echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 3191 no_cache=0
e6cc62c6
VS
3192
3193# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
3194if test "${with_odbc+set}" = set; then
3195 withval="$with_odbc"
e6cc62c6 3196
10f2d63a
VZ
3197 if test "$withval" = yes; then
3198 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 3199 elif test "$withval" = no; then
10f2d63a 3200 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
3201 elif test "$withval" = sys; then
3202 ac_cv_use_odbc='wxUSE_ODBC=sys'
3203 elif test "$withval" = builtin; then
3204 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3205 else
e6cc62c6
VS
3206 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3207echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3208 { (exit 1); exit 1; }; }
10f2d63a 3209 fi
e6cc62c6 3210
10f2d63a 3211else
e6cc62c6 3212
10f2d63a
VZ
3213 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3214 if test "x$LINE" != x ; then
3215 eval "DEFAULT_$LINE"
3216 else
3217 no_cache=1
3218 fi
3219
3220 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3221
e6cc62c6 3222fi;
10f2d63a
VZ
3223
3224 eval "$ac_cv_use_odbc"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3230 echo "$as_me:$LINENO: result: yes" >&5
3231echo "${ECHO_T}yes" >&6
8647bec6 3232 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3233 echo "$as_me:$LINENO: result: no" >&5
3234echo "${ECHO_T}no" >&6
8647bec6 3235 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3236 echo "$as_me:$LINENO: result: system version" >&5
3237echo "${ECHO_T}system version" >&6
8647bec6 3238 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3239 echo "$as_me:$LINENO: result: builtin version" >&5
3240echo "${ECHO_T}builtin version" >&6
8647bec6 3241 else
e6cc62c6
VS
3242 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3243echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3244 { (exit 1); exit 1; }; }
10f2d63a 3245 fi
e6cc62c6 3246
52127426 3247
672abd7a
VS
3248 echo "$as_me:$LINENO: checking for --with-expat" >&5
3249echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3250 no_cache=0
3251
3252# Check whether --with-expat or --without-expat was given.
3253if test "${with_expat+set}" = set; then
3254 withval="$with_expat"
3255
3256 if test "$withval" = yes; then
3257 ac_cv_use_expat='wxUSE_EXPAT=yes'
3258 elif test "$withval" = no; then
3259 ac_cv_use_expat='wxUSE_EXPAT=no'
3260 elif test "$withval" = sys; then
3261 ac_cv_use_expat='wxUSE_EXPAT=sys'
3262 elif test "$withval" = builtin; then
3263 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3264 else
3265 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3266echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3267 { (exit 1); exit 1; }; }
3268 fi
3269
3270else
3271
3272 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3273 if test "x$LINE" != x ; then
3274 eval "DEFAULT_$LINE"
3275 else
3276 no_cache=1
3277 fi
3278
3279 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3280
3281fi;
3282
3283 eval "$ac_cv_use_expat"
3284 if test "$no_cache" != 1; then
3285 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3286 fi
3287
3288 if test "$wxUSE_EXPAT" = yes; then
3289 echo "$as_me:$LINENO: result: yes" >&5
3290echo "${ECHO_T}yes" >&6
3291 elif test "$wxUSE_EXPAT" = no; then
3292 echo "$as_me:$LINENO: result: no" >&5
3293echo "${ECHO_T}no" >&6
3294 elif test "$wxUSE_EXPAT" = sys; then
3295 echo "$as_me:$LINENO: result: system version" >&5
3296echo "${ECHO_T}system version" >&6
3297 elif test "$wxUSE_EXPAT" = builtin; then
3298 echo "$as_me:$LINENO: result: builtin version" >&5
3299echo "${ECHO_T}builtin version" >&6
3300 else
3301 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3302echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3303 { (exit 1); exit 1; }; }
3304 fi
3305
3306
8284b0c5
MB
3307
3308
5005acfe 3309 enablestring=
e6cc62c6
VS
3310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3311echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3312 no_cache=0
3313 # Check whether --enable-shared or --disable-shared was given.
3314if test "${enable_shared+set}" = set; then
3315 enableval="$enable_shared"
e6cc62c6 3316
10f2d63a
VZ
3317 if test "$enableval" = yes; then
3318 ac_cv_use_shared='wxUSE_SHARED=yes'
3319 else
3320 ac_cv_use_shared='wxUSE_SHARED=no'
3321 fi
e6cc62c6 3322
10f2d63a 3323else
e6cc62c6 3324
10f2d63a
VZ
3325 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3326 if test "x$LINE" != x ; then
3327 eval "DEFAULT_$LINE"
3328 else
3329 no_cache=1
3330 fi
3331
3332 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3333
e6cc62c6 3334fi;
10f2d63a
VZ
3335
3336 eval "$ac_cv_use_shared"
3337 if test "$no_cache" != 1; then
3338 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3339 fi
3340
3341 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3342 echo "$as_me:$LINENO: result: yes" >&5
3343echo "${ECHO_T}yes" >&6
10f2d63a 3344 else
e6cc62c6
VS
3345 echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
10f2d63a 3347 fi
e6cc62c6 3348
10f2d63a 3349
5005acfe 3350 enablestring=
e6cc62c6
VS
3351 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3352echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3353 no_cache=0
3354 # Check whether --enable-optimise or --disable-optimise was given.
3355if test "${enable_optimise+set}" = set; then
3356 enableval="$enable_optimise"
e6cc62c6 3357
10f2d63a
VZ
3358 if test "$enableval" = yes; then
3359 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3360 else
3361 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3362 fi
e6cc62c6 3363
10f2d63a 3364else
e6cc62c6 3365
10f2d63a
VZ
3366 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3367 if test "x$LINE" != x ; then
3368 eval "DEFAULT_$LINE"
3369 else
3370 no_cache=1
3371 fi
3372
3373 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3374
e6cc62c6 3375fi;
10f2d63a
VZ
3376
3377 eval "$ac_cv_use_optimise"
3378 if test "$no_cache" != 1; then
3379 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3380 fi
3381
3382 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3383 echo "$as_me:$LINENO: result: yes" >&5
3384echo "${ECHO_T}yes" >&6
10f2d63a 3385 else
e6cc62c6
VS
3386 echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
10f2d63a 3388 fi
e6cc62c6 3389
10f2d63a 3390
5005acfe 3391 enablestring=
e6cc62c6
VS
3392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3393echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3394 no_cache=0
3395 # Check whether --enable-debug or --disable-debug was given.
3396if test "${enable_debug+set}" = set; then
3397 enableval="$enable_debug"
e6cc62c6 3398
10f2d63a
VZ
3399 if test "$enableval" = yes; then
3400 ac_cv_use_debug='wxUSE_DEBUG=yes'
3401 else
3402 ac_cv_use_debug='wxUSE_DEBUG=no'
3403 fi
e6cc62c6 3404
10f2d63a 3405else
e6cc62c6 3406
10f2d63a
VZ
3407 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3415
e6cc62c6 3416fi;
10f2d63a
VZ
3417
3418 eval "$ac_cv_use_debug"
3419 if test "$no_cache" != 1; then
3420 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3421 fi
3422
3423 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3424 echo "$as_me:$LINENO: result: yes" >&5
3425echo "${ECHO_T}yes" >&6
10f2d63a 3426 else
e6cc62c6
VS
3427 echo "$as_me:$LINENO: result: no" >&5
3428echo "${ECHO_T}no" >&6
10f2d63a 3429 fi
e6cc62c6 3430
52127426 3431
df5168c4
MB
3432 enablestring=
3433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3434echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3435 no_cache=0
3436 # Check whether --enable-stl or --disable-stl was given.
3437if test "${enable_stl+set}" = set; then
3438 enableval="$enable_stl"
3439
3440 if test "$enableval" = yes; then
3441 ac_cv_use_stl='wxUSE_STL=yes'
3442 else
3443 ac_cv_use_stl='wxUSE_STL=no'
3444 fi
3445
3446else
3447
3448 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3456
3457fi;
3458
3459 eval "$ac_cv_use_stl"
3460 if test "$no_cache" != 1; then
3461 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3462 fi
3463
3464 if test "$wxUSE_STL" = yes; then
3465 echo "$as_me:$LINENO: result: yes" >&5
3466echo "${ECHO_T}yes" >&6
3467 else
3468 echo "$as_me:$LINENO: result: no" >&5
3469echo "${ECHO_T}no" >&6
3470 fi
3471
3472
10f2d63a
VZ
3473if test "$wxUSE_DEBUG" = "yes"; then
3474 DEFAULT_wxUSE_DEBUG_FLAG=yes
3475 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3476 BUILD=debug
10f2d63a
VZ
3477elif test "$wxUSE_DEBUG" = "no"; then
3478 DEFAULT_wxUSE_DEBUG_FLAG=no
3479 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3480 BUILD=release
10f2d63a
VZ
3481fi
3482
8284b0c5 3483
5005acfe 3484 enablestring=
e6cc62c6
VS
3485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3486echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3487 no_cache=0
3488 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3489if test "${enable_debug_flag+set}" = set; then
3490 enableval="$enable_debug_flag"
e6cc62c6 3491
10f2d63a
VZ
3492 if test "$enableval" = yes; then
3493 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3494 else
3495 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3496 fi
e6cc62c6 3497
10f2d63a 3498else
e6cc62c6 3499
10f2d63a
VZ
3500 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3501 if test "x$LINE" != x ; then
3502 eval "DEFAULT_$LINE"
3503 else
3504 no_cache=1
3505 fi
3506
3507 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3508
e6cc62c6 3509fi;
10f2d63a
VZ
3510
3511 eval "$ac_cv_use_debug_flag"
3512 if test "$no_cache" != 1; then
3513 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3514 fi
3515
3516 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3517 echo "$as_me:$LINENO: result: yes" >&5
3518echo "${ECHO_T}yes" >&6
10f2d63a 3519 else
e6cc62c6
VS
3520 echo "$as_me:$LINENO: result: no" >&5
3521echo "${ECHO_T}no" >&6
10f2d63a 3522 fi
e6cc62c6 3523
10f2d63a 3524
5005acfe 3525 enablestring=
e6cc62c6
VS
3526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3527echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3528 no_cache=0
3529 # Check whether --enable-debug_info or --disable-debug_info was given.
3530if test "${enable_debug_info+set}" = set; then
3531 enableval="$enable_debug_info"
e6cc62c6 3532
10f2d63a
VZ
3533 if test "$enableval" = yes; then
3534 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3535 else
3536 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3537 fi
e6cc62c6 3538
10f2d63a 3539else
e6cc62c6 3540
10f2d63a
VZ
3541 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3542 if test "x$LINE" != x ; then
3543 eval "DEFAULT_$LINE"
3544 else
3545 no_cache=1
3546 fi
3547
3548 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3549
e6cc62c6 3550fi;
10f2d63a
VZ
3551
3552 eval "$ac_cv_use_debug_info"
3553 if test "$no_cache" != 1; then
3554 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3555 fi
3556
3557 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3558 echo "$as_me:$LINENO: result: yes" >&5
3559echo "${ECHO_T}yes" >&6
10f2d63a 3560 else
e6cc62c6
VS
3561 echo "$as_me:$LINENO: result: no" >&5
3562echo "${ECHO_T}no" >&6
10f2d63a 3563 fi
e6cc62c6 3564
10f2d63a 3565
5005acfe 3566 enablestring=
e6cc62c6
VS
3567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3568echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3569 no_cache=0
3570 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3571if test "${enable_debug_gdb+set}" = set; then
3572 enableval="$enable_debug_gdb"
e6cc62c6 3573
10f2d63a
VZ
3574 if test "$enableval" = yes; then
3575 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3576 else
3577 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3578 fi
e6cc62c6 3579
10f2d63a 3580else
e6cc62c6 3581
10f2d63a
VZ
3582 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3583 if test "x$LINE" != x ; then
3584 eval "DEFAULT_$LINE"
3585 else
3586 no_cache=1
3587 fi
3588
3589 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3590
e6cc62c6 3591fi;
10f2d63a
VZ
3592
3593 eval "$ac_cv_use_debug_gdb"
3594 if test "$no_cache" != 1; then
3595 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3596 fi
3597
3598 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3599 echo "$as_me:$LINENO: result: yes" >&5
3600echo "${ECHO_T}yes" >&6
10f2d63a 3601 else
e6cc62c6
VS
3602 echo "$as_me:$LINENO: result: no" >&5
3603echo "${ECHO_T}no" >&6
10f2d63a 3604 fi
e6cc62c6 3605
10f2d63a 3606
5005acfe 3607 enablestring=
e6cc62c6
VS
3608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3609echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3610 no_cache=0
3611 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3612if test "${enable_debug_cntxt+set}" = set; then
3613 enableval="$enable_debug_cntxt"
e6cc62c6 3614
10f2d63a
VZ
3615 if test "$enableval" = yes; then
3616 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3617 else
3618 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3619 fi
e6cc62c6 3620
10f2d63a 3621else
e6cc62c6 3622
10f2d63a
VZ
3623 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3624 if test "x$LINE" != x ; then
3625 eval "DEFAULT_$LINE"
3626 else
3627 no_cache=1
3628 fi
3629
3630 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3631
e6cc62c6 3632fi;
10f2d63a
VZ
3633
3634 eval "$ac_cv_use_debug_cntxt"
3635 if test "$no_cache" != 1; then
3636 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3637 fi
3638
3639 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3640 echo "$as_me:$LINENO: result: yes" >&5
3641echo "${ECHO_T}yes" >&6
10f2d63a 3642 else
e6cc62c6
VS
3643 echo "$as_me:$LINENO: result: no" >&5
3644echo "${ECHO_T}no" >&6
10f2d63a 3645 fi
e6cc62c6 3646
10f2d63a 3647
5005acfe 3648 enablestring=
e6cc62c6
VS
3649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3650echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3651 no_cache=0
3652 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3653if test "${enable_mem_tracing+set}" = set; then
3654 enableval="$enable_mem_tracing"
e6cc62c6 3655
10f2d63a
VZ
3656 if test "$enableval" = yes; then
3657 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3658 else
3659 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3660 fi
e6cc62c6 3661
10f2d63a 3662else
e6cc62c6 3663
10f2d63a
VZ
3664 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3665 if test "x$LINE" != x ; then
3666 eval "DEFAULT_$LINE"
3667 else
3668 no_cache=1
3669 fi
3670
3671 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3672
e6cc62c6 3673fi;
10f2d63a
VZ
3674
3675 eval "$ac_cv_use_mem_tracing"
3676 if test "$no_cache" != 1; then
3677 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3678 fi
3679
3680 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3681 echo "$as_me:$LINENO: result: yes" >&5
3682echo "${ECHO_T}yes" >&6
10f2d63a 3683 else
e6cc62c6
VS
3684 echo "$as_me:$LINENO: result: no" >&5
3685echo "${ECHO_T}no" >&6
10f2d63a 3686 fi
e6cc62c6 3687
10f2d63a 3688
5005acfe 3689 enablestring=
e6cc62c6
VS
3690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3691echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3692 no_cache=0
3693 # Check whether --enable-profile or --disable-profile was given.
3694if test "${enable_profile+set}" = set; then
3695 enableval="$enable_profile"
e6cc62c6 3696
10f2d63a
VZ
3697 if test "$enableval" = yes; then
3698 ac_cv_use_profile='wxUSE_PROFILE=yes'
3699 else
3700 ac_cv_use_profile='wxUSE_PROFILE=no'
3701 fi
e6cc62c6 3702
10f2d63a 3703else
e6cc62c6 3704
10f2d63a
VZ
3705 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3706 if test "x$LINE" != x ; then
3707 eval "DEFAULT_$LINE"
3708 else
3709 no_cache=1
3710 fi
3711
3712 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3713
e6cc62c6 3714fi;
10f2d63a
VZ
3715
3716 eval "$ac_cv_use_profile"
3717 if test "$no_cache" != 1; then
3718 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3719 fi
3720
3721 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3722 echo "$as_me:$LINENO: result: yes" >&5
3723echo "${ECHO_T}yes" >&6
10f2d63a 3724 else
e6cc62c6
VS
3725 echo "$as_me:$LINENO: result: no" >&5
3726echo "${ECHO_T}no" >&6
10f2d63a 3727 fi
e6cc62c6 3728
10f2d63a 3729
5005acfe 3730 enablestring=
e6cc62c6
VS
3731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3732echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3733 no_cache=0
3734 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3735if test "${enable_no_rtti+set}" = set; then
3736 enableval="$enable_no_rtti"
e6cc62c6 3737
10f2d63a
VZ
3738 if test "$enableval" = yes; then
3739 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3740 else
3741 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3742 fi
e6cc62c6 3743
10f2d63a 3744else
e6cc62c6 3745
10f2d63a
VZ
3746 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3747 if test "x$LINE" != x ; then
3748 eval "DEFAULT_$LINE"
3749 else
3750 no_cache=1
3751 fi
3752
3753 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3754
e6cc62c6 3755fi;
10f2d63a
VZ
3756
3757 eval "$ac_cv_use_no_rtti"
3758 if test "$no_cache" != 1; then
3759 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3760 fi
3761
3762 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3763 echo "$as_me:$LINENO: result: yes" >&5
3764echo "${ECHO_T}yes" >&6
10f2d63a 3765 else
e6cc62c6
VS
3766 echo "$as_me:$LINENO: result: no" >&5
3767echo "${ECHO_T}no" >&6
10f2d63a 3768 fi
e6cc62c6 3769
10f2d63a 3770
5005acfe 3771 enablestring=
e6cc62c6
VS
3772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3773echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3774 no_cache=0
3775 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3776if test "${enable_no_exceptions+set}" = set; then
3777 enableval="$enable_no_exceptions"
e6cc62c6 3778
10f2d63a
VZ
3779 if test "$enableval" = yes; then
3780 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3781 else
3782 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3783 fi
e6cc62c6 3784
10f2d63a 3785else
e6cc62c6 3786
10f2d63a
VZ
3787 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3788 if test "x$LINE" != x ; then
3789 eval "DEFAULT_$LINE"
3790 else
3791 no_cache=1
3792 fi
3793
3794 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3795
e6cc62c6 3796fi;
10f2d63a
VZ
3797
3798 eval "$ac_cv_use_no_exceptions"
3799 if test "$no_cache" != 1; then
3800 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3801 fi
3802
3803 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3804 echo "$as_me:$LINENO: result: yes" >&5
3805echo "${ECHO_T}yes" >&6
10f2d63a 3806 else
e6cc62c6
VS
3807 echo "$as_me:$LINENO: result: no" >&5
3808echo "${ECHO_T}no" >&6
10f2d63a 3809 fi
e6cc62c6 3810
10f2d63a 3811
5005acfe 3812 enablestring=
e6cc62c6
VS
3813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3814echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3815 no_cache=0
3816 # Check whether --enable-permissive or --disable-permissive was given.
3817if test "${enable_permissive+set}" = set; then
3818 enableval="$enable_permissive"
e6cc62c6 3819
10f2d63a
VZ
3820 if test "$enableval" = yes; then
3821 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3822 else
3823 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3824 fi
e6cc62c6 3825
10f2d63a 3826else
e6cc62c6 3827
10f2d63a
VZ
3828 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3829 if test "x$LINE" != x ; then
3830 eval "DEFAULT_$LINE"
3831 else
3832 no_cache=1
3833 fi
3834
3835 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3836
e6cc62c6 3837fi;
10f2d63a
VZ
3838
3839 eval "$ac_cv_use_permissive"
3840 if test "$no_cache" != 1; then
3841 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3842 fi
3843
3844 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3845 echo "$as_me:$LINENO: result: yes" >&5
3846echo "${ECHO_T}yes" >&6
10f2d63a 3847 else
e6cc62c6
VS
3848 echo "$as_me:$LINENO: result: no" >&5
3849echo "${ECHO_T}no" >&6
10f2d63a 3850 fi
e6cc62c6 3851
10f2d63a 3852
5005acfe 3853 enablestring=
e6cc62c6
VS
3854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3855echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3856 no_cache=0
3857 # Check whether --enable-no_deps or --disable-no_deps was given.
3858if test "${enable_no_deps+set}" = set; then
3859 enableval="$enable_no_deps"
e6cc62c6 3860
10f2d63a
VZ
3861 if test "$enableval" = yes; then
3862 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3863 else
3864 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3865 fi
e6cc62c6 3866
10f2d63a 3867else
e6cc62c6 3868
10f2d63a
VZ
3869 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3870 if test "x$LINE" != x ; then
3871 eval "DEFAULT_$LINE"
3872 else
3873 no_cache=1
3874 fi
3875
3876 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3877
e6cc62c6 3878fi;
10f2d63a
VZ
3879
3880 eval "$ac_cv_use_no_deps"
3881 if test "$no_cache" != 1; then
3882 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3883 fi
3884
3885 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3886 echo "$as_me:$LINENO: result: yes" >&5
3887echo "${ECHO_T}yes" >&6
10f2d63a 3888 else
e6cc62c6
VS
3889 echo "$as_me:$LINENO: result: no" >&5
3890echo "${ECHO_T}no" >&6
10f2d63a 3891 fi
e6cc62c6 3892
52127426 3893
8284b0c5 3894
65d8ef1e 3895 enablestring=
e6cc62c6
VS
3896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3897echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3898 no_cache=0
3899 # Check whether --enable-compat22 or --disable-compat22 was given.
3900if test "${enable_compat22+set}" = set; then
3901 enableval="$enable_compat22"
e6cc62c6 3902
54276ccf
VZ
3903 if test "$enableval" = yes; then
3904 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3905 else
3906 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3907 fi
e6cc62c6 3908
54276ccf 3909else
e6cc62c6 3910
54276ccf
VZ
3911 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3912 if test "x$LINE" != x ; then
3913 eval "DEFAULT_$LINE"
3914 else
3915 no_cache=1
3916 fi
3917
3918 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3919
e6cc62c6 3920fi;
54276ccf
VZ
3921
3922 eval "$ac_cv_use_compat22"
3923 if test "$no_cache" != 1; then
3924 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3925 fi
3926
3927 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3928 echo "$as_me:$LINENO: result: yes" >&5
3929echo "${ECHO_T}yes" >&6
54276ccf 3930 else
e6cc62c6
VS
3931 echo "$as_me:$LINENO: result: no" >&5
3932echo "${ECHO_T}no" >&6
54276ccf 3933 fi
e6cc62c6 3934
54276ccf 3935
65d8ef1e 3936 enablestring=disable
e6cc62c6
VS
3937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3938echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3939 no_cache=0
3940 # Check whether --enable-compat24 or --disable-compat24 was given.
3941if test "${enable_compat24+set}" = set; then
3942 enableval="$enable_compat24"
e6cc62c6 3943
65d8ef1e
VS
3944 if test "$enableval" = yes; then
3945 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3946 else
3947 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3948 fi
e6cc62c6 3949
65d8ef1e 3950else
e6cc62c6 3951
65d8ef1e
VS
3952 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3953 if test "x$LINE" != x ; then
3954 eval "DEFAULT_$LINE"
3955 else
3956 no_cache=1
3957 fi
3958
3959 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3960
e6cc62c6 3961fi;
65d8ef1e
VS
3962
3963 eval "$ac_cv_use_compat24"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3969 echo "$as_me:$LINENO: result: yes" >&5
3970echo "${ECHO_T}yes" >&6
65d8ef1e 3971 else
e6cc62c6
VS
3972 echo "$as_me:$LINENO: result: no" >&5
3973echo "${ECHO_T}no" >&6
65d8ef1e 3974 fi
e6cc62c6 3975
65d8ef1e 3976
3bd8fb5f
RD
3977# Check whether --enable-rpath or --disable-rpath was given.
3978if test "${enable_rpath+set}" = set; then
3979 enableval="$enable_rpath"
3980 wxRPATH_DIR="$enableval"
e6cc62c6 3981fi;
3bd8fb5f
RD
3982
3983if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3984 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3985fi
3986
8284b0c5
MB
3987
3988
3989
5005acfe 3990 enablestring=
e6cc62c6
VS
3991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3992echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3993 no_cache=0
3994 # Check whether --enable-intl or --disable-intl was given.
3995if test "${enable_intl+set}" = set; then
3996 enableval="$enable_intl"
e6cc62c6 3997
10f2d63a
VZ
3998 if test "$enableval" = yes; then
3999 ac_cv_use_intl='wxUSE_INTL=yes'
4000 else
4001 ac_cv_use_intl='wxUSE_INTL=no'
4002 fi
e6cc62c6 4003
10f2d63a 4004else
e6cc62c6 4005
10f2d63a
VZ
4006 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4007 if test "x$LINE" != x ; then
4008 eval "DEFAULT_$LINE"
4009 else
4010 no_cache=1
4011 fi
4012
4013 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 4014
e6cc62c6 4015fi;
10f2d63a
VZ
4016
4017 eval "$ac_cv_use_intl"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
4023 echo "$as_me:$LINENO: result: yes" >&5
4024echo "${ECHO_T}yes" >&6
10f2d63a 4025 else
e6cc62c6
VS
4026 echo "$as_me:$LINENO: result: no" >&5
4027echo "${ECHO_T}no" >&6
10f2d63a 4028 fi
e6cc62c6 4029
10f2d63a 4030
5005acfe 4031 enablestring=
e6cc62c6
VS
4032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4033echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
4034 no_cache=0
4035 # Check whether --enable-config or --disable-config was given.
4036if test "${enable_config+set}" = set; then
4037 enableval="$enable_config"
e6cc62c6 4038
10f2d63a
VZ
4039 if test "$enableval" = yes; then
4040 ac_cv_use_config='wxUSE_CONFIG=yes'
4041 else
4042 ac_cv_use_config='wxUSE_CONFIG=no'
4043 fi
e6cc62c6 4044
10f2d63a 4045else
e6cc62c6 4046
10f2d63a
VZ
4047 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 4055
e6cc62c6 4056fi;
10f2d63a
VZ
4057
4058 eval "$ac_cv_use_config"
4059 if test "$no_cache" != 1; then
4060 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4061 fi
4062
4063 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
4064 echo "$as_me:$LINENO: result: yes" >&5
4065echo "${ECHO_T}yes" >&6
10f2d63a 4066 else
e6cc62c6
VS
4067 echo "$as_me:$LINENO: result: no" >&5
4068echo "${ECHO_T}no" >&6
10f2d63a 4069 fi
e6cc62c6 4070
52127426 4071
8284b0c5 4072
5005acfe 4073 enablestring=
e6cc62c6
VS
4074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4075echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
4076 no_cache=0
4077 # Check whether --enable-protocols or --disable-protocols was given.
4078if test "${enable_protocols+set}" = set; then
4079 enableval="$enable_protocols"
e6cc62c6 4080
a1622950
VZ
4081 if test "$enableval" = yes; then
4082 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4083 else
4084 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4085 fi
e6cc62c6 4086
a1622950 4087else
e6cc62c6 4088
a1622950
VZ
4089 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4090 if test "x$LINE" != x ; then
4091 eval "DEFAULT_$LINE"
4092 else
4093 no_cache=1
4094 fi
4095
4096 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 4097
e6cc62c6 4098fi;
a1622950
VZ
4099
4100 eval "$ac_cv_use_protocols"
4101 if test "$no_cache" != 1; then
4102 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4103 fi
4104
4105 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
4106 echo "$as_me:$LINENO: result: yes" >&5
4107echo "${ECHO_T}yes" >&6
a1622950 4108 else
e6cc62c6
VS
4109 echo "$as_me:$LINENO: result: no" >&5
4110echo "${ECHO_T}no" >&6
a1622950 4111 fi
e6cc62c6 4112
a1622950 4113
5005acfe 4114 enablestring=
e6cc62c6
VS
4115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4116echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
4117 no_cache=0
4118 # Check whether --enable-ftp or --disable-ftp was given.
4119if test "${enable_ftp+set}" = set; then
4120 enableval="$enable_ftp"
e6cc62c6 4121
a1622950
VZ
4122 if test "$enableval" = yes; then
4123 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4124 else
4125 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4126 fi
e6cc62c6 4127
a1622950 4128else
e6cc62c6 4129
a1622950
VZ
4130 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4131 if test "x$LINE" != x ; then
4132 eval "DEFAULT_$LINE"
4133 else
4134 no_cache=1
4135 fi
4136
4137 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 4138
e6cc62c6 4139fi;
a1622950
VZ
4140
4141 eval "$ac_cv_use_ftp"
4142 if test "$no_cache" != 1; then
4143 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4144 fi
4145
4146 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
4147 echo "$as_me:$LINENO: result: yes" >&5
4148echo "${ECHO_T}yes" >&6
a1622950 4149 else
e6cc62c6
VS
4150 echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
a1622950 4152 fi
e6cc62c6 4153
a1622950 4154
5005acfe 4155 enablestring=
e6cc62c6
VS
4156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4157echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
4158 no_cache=0
4159 # Check whether --enable-http or --disable-http was given.
4160if test "${enable_http+set}" = set; then
4161 enableval="$enable_http"
e6cc62c6 4162
a1622950
VZ
4163 if test "$enableval" = yes; then
4164 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4165 else
4166 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4167 fi
e6cc62c6 4168
a1622950 4169else
e6cc62c6 4170
a1622950
VZ
4171 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4172 if test "x$LINE" != x ; then
4173 eval "DEFAULT_$LINE"
4174 else
4175 no_cache=1
4176 fi
4177
4178 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 4179
e6cc62c6 4180fi;
a1622950
VZ
4181
4182 eval "$ac_cv_use_http"
4183 if test "$no_cache" != 1; then
4184 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4185 fi
4186
4187 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4188 echo "$as_me:$LINENO: result: yes" >&5
4189echo "${ECHO_T}yes" >&6
a1622950 4190 else
e6cc62c6
VS
4191 echo "$as_me:$LINENO: result: no" >&5
4192echo "${ECHO_T}no" >&6
a1622950 4193 fi
e6cc62c6 4194
a1622950 4195
5005acfe 4196 enablestring=
e6cc62c6
VS
4197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4198echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4199 no_cache=0
4200 # Check whether --enable-fileproto or --disable-fileproto was given.
4201if test "${enable_fileproto+set}" = set; then
4202 enableval="$enable_fileproto"
e6cc62c6 4203
a1622950
VZ
4204 if test "$enableval" = yes; then
4205 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4206 else
4207 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4208 fi
e6cc62c6 4209
a1622950 4210else
e6cc62c6 4211
a1622950
VZ
4212 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4213 if test "x$LINE" != x ; then
4214 eval "DEFAULT_$LINE"
4215 else
4216 no_cache=1
4217 fi
4218
4219 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4220
e6cc62c6 4221fi;
a1622950
VZ
4222
4223 eval "$ac_cv_use_fileproto"
4224 if test "$no_cache" != 1; then
4225 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4226 fi
4227
4228 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4229 echo "$as_me:$LINENO: result: yes" >&5
4230echo "${ECHO_T}yes" >&6
a1622950 4231 else
e6cc62c6
VS
4232 echo "$as_me:$LINENO: result: no" >&5
4233echo "${ECHO_T}no" >&6
a1622950 4234 fi
e6cc62c6 4235
a1622950 4236
5005acfe 4237 enablestring=
e6cc62c6
VS
4238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4239echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4240 no_cache=0
4241 # Check whether --enable-sockets or --disable-sockets was given.
4242if test "${enable_sockets+set}" = set; then
4243 enableval="$enable_sockets"
e6cc62c6 4244
10f2d63a
VZ
4245 if test "$enableval" = yes; then
4246 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4247 else
4248 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4249 fi
e6cc62c6 4250
10f2d63a 4251else
e6cc62c6 4252
10f2d63a
VZ
4253 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4254 if test "x$LINE" != x ; then
4255 eval "DEFAULT_$LINE"
4256 else
4257 no_cache=1
4258 fi
4259
4260 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4261
e6cc62c6 4262fi;
10f2d63a
VZ
4263
4264 eval "$ac_cv_use_sockets"
4265 if test "$no_cache" != 1; then
4266 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4267 fi
4268
4269 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4270 echo "$as_me:$LINENO: result: yes" >&5
4271echo "${ECHO_T}yes" >&6
10f2d63a 4272 else
e6cc62c6
VS
4273 echo "$as_me:$LINENO: result: no" >&5
4274echo "${ECHO_T}no" >&6
10f2d63a 4275 fi
e6cc62c6 4276
8284b0c5 4277
5005acfe 4278 enablestring=
e6cc62c6
VS
4279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4280echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4281 no_cache=0
4282 # Check whether --enable-ole or --disable-ole was given.
4283if test "${enable_ole+set}" = set; then
4284 enableval="$enable_ole"
e6cc62c6 4285
3bce6687
JS
4286 if test "$enableval" = yes; then
4287 ac_cv_use_ole='wxUSE_OLE=yes'
4288 else
4289 ac_cv_use_ole='wxUSE_OLE=no'
4290 fi
e6cc62c6 4291
3bce6687 4292else
e6cc62c6 4293
3bce6687
JS
4294 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4295 if test "x$LINE" != x ; then
4296 eval "DEFAULT_$LINE"
4297 else
4298 no_cache=1
4299 fi
4300
4301 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4302
e6cc62c6 4303fi;
3bce6687
JS
4304
4305 eval "$ac_cv_use_ole"
4306 if test "$no_cache" != 1; then
4307 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4308 fi
4309
4310 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4311 echo "$as_me:$LINENO: result: yes" >&5
4312echo "${ECHO_T}yes" >&6
3bce6687 4313 else
e6cc62c6
VS
4314 echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6
3bce6687 4316 fi
e6cc62c6 4317
3bce6687 4318
5005acfe 4319 enablestring=
e6cc62c6
VS
4320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4321echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4322 no_cache=0
4323 # Check whether --enable-dataobj or --disable-dataobj was given.
4324if test "${enable_dataobj+set}" = set; then
4325 enableval="$enable_dataobj"
e6cc62c6 4326
3bce6687
JS
4327 if test "$enableval" = yes; then
4328 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4329 else
4330 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4331 fi
e6cc62c6 4332
3bce6687 4333else
e6cc62c6 4334
3bce6687
JS
4335 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4336 if test "x$LINE" != x ; then
4337 eval "DEFAULT_$LINE"
4338 else
4339 no_cache=1
4340 fi
4341
4342 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4343
e6cc62c6 4344fi;
3bce6687
JS
4345
4346 eval "$ac_cv_use_dataobj"
4347 if test "$no_cache" != 1; then
4348 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4349 fi
4350
4351 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4352 echo "$as_me:$LINENO: result: yes" >&5
4353echo "${ECHO_T}yes" >&6
3bce6687 4354 else
e6cc62c6
VS
4355 echo "$as_me:$LINENO: result: no" >&5
4356echo "${ECHO_T}no" >&6
3bce6687 4357 fi
e6cc62c6 4358
3bce6687 4359
52127426 4360
5005acfe 4361 enablestring=
e6cc62c6
VS
4362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4363echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4364 no_cache=0
eb4efbdc
VZ
4365 # Check whether --enable-ipc or --disable-ipc was given.
4366if test "${enable_ipc+set}" = set; then
4367 enableval="$enable_ipc"
e6cc62c6 4368
10f2d63a 4369 if test "$enableval" = yes; then
eb4efbdc 4370 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4371 else
eb4efbdc 4372 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4373 fi
e6cc62c6 4374
10f2d63a 4375else
e6cc62c6 4376
eb4efbdc 4377 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4378 if test "x$LINE" != x ; then
4379 eval "DEFAULT_$LINE"
4380 else
4381 no_cache=1
4382 fi
4383
eb4efbdc 4384 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4385
e6cc62c6 4386fi;
10f2d63a 4387
eb4efbdc 4388 eval "$ac_cv_use_ipc"
10f2d63a 4389 if test "$no_cache" != 1; then
eb4efbdc 4390 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4391 fi
4392
eb4efbdc 4393 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4394 echo "$as_me:$LINENO: result: yes" >&5
4395echo "${ECHO_T}yes" >&6
10f2d63a 4396 else
e6cc62c6
VS
4397 echo "$as_me:$LINENO: result: no" >&5
4398echo "${ECHO_T}no" >&6
10f2d63a 4399 fi
e6cc62c6 4400
52127426 4401
8284b0c5 4402
5005acfe 4403 enablestring=
e46d2a18
VS
4404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4405echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a 4406 no_cache=0
e46d2a18
VS
4407 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4408if test "${enable_apple_ieee+set}" = set; then
4409 enableval="$enable_apple_ieee"
e6cc62c6 4410
10f2d63a 4411 if test "$enableval" = yes; then
e46d2a18 4412 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
10f2d63a 4413 else
e46d2a18 4414 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
10f2d63a 4415 fi
e6cc62c6 4416
10f2d63a 4417else
e6cc62c6 4418
e46d2a18 4419 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
10f2d63a
VZ
4420 if test "x$LINE" != x ; then
4421 eval "DEFAULT_$LINE"
4422 else
4423 no_cache=1
4424 fi
4425
e46d2a18 4426 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4427
e6cc62c6 4428fi;
10f2d63a 4429
e46d2a18 4430 eval "$ac_cv_use_apple_ieee"
10f2d63a 4431 if test "$no_cache" != 1; then
e46d2a18 4432 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4433 fi
4434
e46d2a18 4435 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4436 echo "$as_me:$LINENO: result: yes" >&5
4437echo "${ECHO_T}yes" >&6
10f2d63a 4438 else
e6cc62c6
VS
4439 echo "$as_me:$LINENO: result: no" >&5
4440echo "${ECHO_T}no" >&6
10f2d63a 4441 fi
e6cc62c6 4442
10f2d63a 4443
5005acfe 4444 enablestring=
e46d2a18
VS
4445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4446echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
10f2d63a 4447 no_cache=0
e46d2a18
VS
4448 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4449if test "${enable_catch_segvs+set}" = set; then
4450 enableval="$enable_catch_segvs"
e6cc62c6 4451
10f2d63a 4452 if test "$enableval" = yes; then
e46d2a18 4453 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
10f2d63a 4454 else
e46d2a18 4455 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
10f2d63a 4456 fi
e6cc62c6 4457
10f2d63a 4458else
e6cc62c6 4459
e46d2a18 4460 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
10f2d63a
VZ
4461 if test "x$LINE" != x ; then
4462 eval "DEFAULT_$LINE"
4463 else
4464 no_cache=1
4465 fi
4466
e46d2a18 4467 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
10f2d63a 4468
e6cc62c6 4469fi;
10f2d63a 4470
e46d2a18 4471 eval "$ac_cv_use_catch_segvs"
10f2d63a 4472 if test "$no_cache" != 1; then
e46d2a18 4473 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4474 fi
4475
e46d2a18 4476 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
4477 echo "$as_me:$LINENO: result: yes" >&5
4478echo "${ECHO_T}yes" >&6
10f2d63a 4479 else
e6cc62c6
VS
4480 echo "$as_me:$LINENO: result: no" >&5
4481echo "${ECHO_T}no" >&6
10f2d63a 4482 fi
e6cc62c6 4483
10f2d63a 4484
5005acfe 4485 enablestring=
e46d2a18
VS
4486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4487echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
10f2d63a 4488 no_cache=0
e46d2a18
VS
4489 # Check whether --enable-cmdline or --disable-cmdline was given.
4490if test "${enable_cmdline+set}" = set; then
4491 enableval="$enable_cmdline"
e6cc62c6 4492
10f2d63a 4493 if test "$enableval" = yes; then
e46d2a18 4494 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
10f2d63a 4495 else
e46d2a18 4496 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
10f2d63a 4497 fi
e6cc62c6 4498
10f2d63a 4499else
e6cc62c6 4500
e46d2a18 4501 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
10f2d63a
VZ
4502 if test "x$LINE" != x ; then
4503 eval "DEFAULT_$LINE"
4504 else
4505 no_cache=1
4506 fi
4507
e46d2a18 4508 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
10f2d63a 4509
e6cc62c6 4510fi;
10f2d63a 4511
e46d2a18 4512 eval "$ac_cv_use_cmdline"
10f2d63a 4513 if test "$no_cache" != 1; then
e46d2a18 4514 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4515 fi
4516
e46d2a18 4517 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4518 echo "$as_me:$LINENO: result: yes" >&5
4519echo "${ECHO_T}yes" >&6
10f2d63a 4520 else
e6cc62c6
VS
4521 echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6
10f2d63a 4523 fi
e6cc62c6 4524
10f2d63a 4525
5005acfe 4526 enablestring=
e46d2a18
VS
4527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4528echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
10f2d63a 4529 no_cache=0
e46d2a18
VS
4530 # Check whether --enable-datetime or --disable-datetime was given.
4531if test "${enable_datetime+set}" = set; then
4532 enableval="$enable_datetime"
e6cc62c6 4533
10f2d63a 4534 if test "$enableval" = yes; then
e46d2a18 4535 ac_cv_use_datetime='wxUSE_DATETIME=yes'
10f2d63a 4536 else
e46d2a18 4537 ac_cv_use_datetime='wxUSE_DATETIME=no'
10f2d63a 4538 fi
e6cc62c6 4539
10f2d63a 4540else
e6cc62c6 4541
e46d2a18 4542 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
10f2d63a
VZ
4543 if test "x$LINE" != x ; then
4544 eval "DEFAULT_$LINE"
4545 else
4546 no_cache=1
4547 fi
4548
e46d2a18 4549 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
10f2d63a 4550
e6cc62c6 4551fi;
10f2d63a 4552
e46d2a18 4553 eval "$ac_cv_use_datetime"
10f2d63a 4554 if test "$no_cache" != 1; then
e46d2a18 4555 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4556 fi
4557
e46d2a18 4558 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4559 echo "$as_me:$LINENO: result: yes" >&5
4560echo "${ECHO_T}yes" >&6
10f2d63a 4561 else
e6cc62c6
VS
4562 echo "$as_me:$LINENO: result: no" >&5
4563echo "${ECHO_T}no" >&6
10f2d63a 4564 fi
e6cc62c6 4565
10f2d63a 4566
5005acfe 4567 enablestring=
e46d2a18
VS
4568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4569echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4570 no_cache=0
e46d2a18
VS
4571 # Check whether --enable-dialupman or --disable-dialupman was given.
4572if test "${enable_dialupman+set}" = set; then
4573 enableval="$enable_dialupman"
e6cc62c6 4574
10f2d63a 4575 if test "$enableval" = yes; then
e46d2a18 4576 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4577 else
e46d2a18 4578 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4579 fi
e6cc62c6 4580
10f2d63a 4581else
e6cc62c6 4582
e46d2a18 4583 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4584 if test "x$LINE" != x ; then
4585 eval "DEFAULT_$LINE"
4586 else
4587 no_cache=1
4588 fi
4589
e46d2a18 4590 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4591
e6cc62c6 4592fi;
10f2d63a 4593
e46d2a18 4594 eval "$ac_cv_use_dialupman"
10f2d63a 4595 if test "$no_cache" != 1; then
e46d2a18 4596 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4597 fi
4598
e46d2a18 4599 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4600 echo "$as_me:$LINENO: result: yes" >&5
4601echo "${ECHO_T}yes" >&6
10f2d63a 4602 else
e6cc62c6
VS
4603 echo "$as_me:$LINENO: result: no" >&5
4604echo "${ECHO_T}no" >&6
10f2d63a 4605 fi
e6cc62c6 4606
10f2d63a 4607
5005acfe 4608 enablestring=
e6cc62c6
VS
4609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4610echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4611 no_cache=0
4612 # Check whether --enable-dynlib or --disable-dynlib was given.
4613if test "${enable_dynlib+set}" = set; then
4614 enableval="$enable_dynlib"
e6cc62c6 4615
10f2d63a
VZ
4616 if test "$enableval" = yes; then
4617 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4618 else
4619 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4620 fi
e6cc62c6 4621
10f2d63a 4622else
e6cc62c6 4623
10f2d63a
VZ
4624 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4625 if test "x$LINE" != x ; then
4626 eval "DEFAULT_$LINE"
4627 else
4628 no_cache=1
4629 fi
4630
4631 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4632
e6cc62c6 4633fi;
10f2d63a
VZ
4634
4635 eval "$ac_cv_use_dynlib"
4636 if test "$no_cache" != 1; then
4637 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4638 fi
4639
4640 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4641 echo "$as_me:$LINENO: result: yes" >&5
4642echo "${ECHO_T}yes" >&6
10f2d63a 4643 else
e6cc62c6
VS
4644 echo "$as_me:$LINENO: result: no" >&5
4645echo "${ECHO_T}no" >&6
10f2d63a 4646 fi
e6cc62c6 4647
10f2d63a 4648
5005acfe 4649 enablestring=
e6cc62c6
VS
4650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4651echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4652 no_cache=0
4653 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4654if test "${enable_dynamicloader+set}" = set; then
4655 enableval="$enable_dynamicloader"
e6cc62c6 4656
0b9ab0bd
RL
4657 if test "$enableval" = yes; then
4658 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4659 else
4660 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4661 fi
e6cc62c6 4662
0b9ab0bd 4663else
e6cc62c6 4664
0b9ab0bd
RL
4665 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4666 if test "x$LINE" != x ; then
4667 eval "DEFAULT_$LINE"
4668 else
4669 no_cache=1
4670 fi
4671
4672 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4673
e6cc62c6 4674fi;
0b9ab0bd
RL
4675
4676 eval "$ac_cv_use_dynamicloader"
4677 if test "$no_cache" != 1; then
4678 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4679 fi
4680
4681 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4682 echo "$as_me:$LINENO: result: yes" >&5
4683echo "${ECHO_T}yes" >&6
0b9ab0bd 4684 else
e6cc62c6
VS
4685 echo "$as_me:$LINENO: result: no" >&5
4686echo "${ECHO_T}no" >&6
0b9ab0bd 4687 fi
e6cc62c6 4688
0b9ab0bd 4689
5005acfe 4690 enablestring=
e46d2a18
VS
4691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4692echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
10f2d63a 4693 no_cache=0
e46d2a18
VS
4694 # Check whether --enable-exceptions or --disable-exceptions was given.
4695if test "${enable_exceptions+set}" = set; then
4696 enableval="$enable_exceptions"
e6cc62c6 4697
10f2d63a 4698 if test "$enableval" = yes; then
e46d2a18 4699 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
10f2d63a 4700 else
e46d2a18 4701 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
10f2d63a 4702 fi
e6cc62c6 4703
10f2d63a 4704else
e6cc62c6 4705
e46d2a18 4706 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
4707 if test "x$LINE" != x ; then
4708 eval "DEFAULT_$LINE"
4709 else
4710 no_cache=1
4711 fi
4712
e46d2a18 4713 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
10f2d63a 4714
e6cc62c6 4715fi;
10f2d63a 4716
e46d2a18 4717 eval "$ac_cv_use_exceptions"
10f2d63a 4718 if test "$no_cache" != 1; then
e46d2a18 4719 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4720 fi
4721
e46d2a18 4722 if test "$wxUSE_EXCEPTIONS" = yes; then
e6cc62c6
VS
4723 echo "$as_me:$LINENO: result: yes" >&5
4724echo "${ECHO_T}yes" >&6
10f2d63a 4725 else
e6cc62c6
VS
4726 echo "$as_me:$LINENO: result: no" >&5
4727echo "${ECHO_T}no" >&6
10f2d63a 4728 fi
e6cc62c6 4729
10f2d63a 4730
5005acfe 4731 enablestring=
e46d2a18
VS
4732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4733echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
e8f65ba6 4734 no_cache=0
e46d2a18
VS
4735 # Check whether --enable-ffile or --disable-ffile was given.
4736if test "${enable_ffile+set}" = set; then
4737 enableval="$enable_ffile"
e6cc62c6 4738
e8f65ba6 4739 if test "$enableval" = yes; then
e46d2a18 4740 ac_cv_use_ffile='wxUSE_FFILE=yes'
e8f65ba6 4741 else
e46d2a18 4742 ac_cv_use_ffile='wxUSE_FFILE=no'
e8f65ba6 4743 fi
e6cc62c6 4744
e8f65ba6 4745else
e6cc62c6 4746
e46d2a18 4747 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
e8f65ba6
RR
4748 if test "x$LINE" != x ; then
4749 eval "DEFAULT_$LINE"
4750 else
4751 no_cache=1
4752 fi
4753
e46d2a18 4754 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
e8f65ba6 4755
e6cc62c6 4756fi;
e8f65ba6 4757
e46d2a18 4758 eval "$ac_cv_use_ffile"
e8f65ba6 4759 if test "$no_cache" != 1; then
e46d2a18 4760 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
e8f65ba6
RR
4761 fi
4762
e46d2a18 4763 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4764 echo "$as_me:$LINENO: result: yes" >&5
4765echo "${ECHO_T}yes" >&6
e8f65ba6 4766 else
e6cc62c6
VS
4767 echo "$as_me:$LINENO: result: no" >&5
4768echo "${ECHO_T}no" >&6
e8f65ba6 4769 fi
e6cc62c6 4770
e8f65ba6 4771
5005acfe 4772 enablestring=
e46d2a18
VS
4773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4774echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a 4775 no_cache=0
e46d2a18
VS
4776 # Check whether --enable-file or --disable-file was given.
4777if test "${enable_file+set}" = set; then
4778 enableval="$enable_file"
e6cc62c6 4779
10f2d63a 4780 if test "$enableval" = yes; then
e46d2a18 4781 ac_cv_use_file='wxUSE_FILE=yes'
10f2d63a 4782 else
e46d2a18 4783 ac_cv_use_file='wxUSE_FILE=no'
10f2d63a 4784 fi
e6cc62c6 4785
10f2d63a 4786else
e6cc62c6 4787
e46d2a18 4788 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4789 if test "x$LINE" != x ; then
4790 eval "DEFAULT_$LINE"
4791 else
4792 no_cache=1
4793 fi
4794
e46d2a18 4795 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4796
e6cc62c6 4797fi;
10f2d63a 4798
e46d2a18 4799 eval "$ac_cv_use_file"
10f2d63a 4800 if test "$no_cache" != 1; then
e46d2a18 4801 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4802 fi
4803
e46d2a18 4804 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4805 echo "$as_me:$LINENO: result: yes" >&5
4806echo "${ECHO_T}yes" >&6
10f2d63a 4807 else
e6cc62c6
VS
4808 echo "$as_me:$LINENO: result: no" >&5
4809echo "${ECHO_T}no" >&6
10f2d63a 4810 fi
e6cc62c6 4811
10f2d63a 4812
5005acfe 4813 enablestring=
e46d2a18
VS
4814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4815echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
10f2d63a 4816 no_cache=0
e46d2a18
VS
4817 # Check whether --enable-filesystem or --disable-filesystem was given.
4818if test "${enable_filesystem+set}" = set; then
4819 enableval="$enable_filesystem"
e6cc62c6 4820
10f2d63a 4821 if test "$enableval" = yes; then
e46d2a18 4822 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
10f2d63a 4823 else
e46d2a18 4824 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
10f2d63a 4825 fi
e6cc62c6 4826
10f2d63a 4827else
e6cc62c6 4828
e46d2a18 4829 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
10f2d63a
VZ
4830 if test "x$LINE" != x ; then
4831 eval "DEFAULT_$LINE"
4832 else
4833 no_cache=1
4834 fi
4835
e46d2a18 4836 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
10f2d63a 4837
e6cc62c6 4838fi;
10f2d63a 4839
e46d2a18 4840 eval "$ac_cv_use_filesystem"
10f2d63a 4841 if test "$no_cache" != 1; then
e46d2a18 4842 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4843 fi
4844
e46d2a18 4845 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
4846 echo "$as_me:$LINENO: result: yes" >&5
4847echo "${ECHO_T}yes" >&6
10f2d63a 4848 else
e6cc62c6
VS
4849 echo "$as_me:$LINENO: result: no" >&5
4850echo "${ECHO_T}no" >&6
10f2d63a 4851 fi
e6cc62c6 4852
10f2d63a 4853
5005acfe 4854 enablestring=
e46d2a18
VS
4855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4856echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4857 no_cache=0
e46d2a18
VS
4858 # Check whether --enable-fontmap or --disable-fontmap was given.
4859if test "${enable_fontmap+set}" = set; then
4860 enableval="$enable_fontmap"
e6cc62c6 4861
10f2d63a 4862 if test "$enableval" = yes; then
e46d2a18 4863 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4864 else
e46d2a18 4865 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4866 fi
e6cc62c6 4867
10f2d63a 4868else
e6cc62c6 4869
e46d2a18 4870 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4871 if test "x$LINE" != x ; then
4872 eval "DEFAULT_$LINE"
4873 else
4874 no_cache=1
4875 fi
4876
e46d2a18 4877 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4878
e6cc62c6 4879fi;
10f2d63a 4880
e46d2a18 4881 eval "$ac_cv_use_fontmap"
10f2d63a 4882 if test "$no_cache" != 1; then
e46d2a18 4883 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4884 fi
4885
e46d2a18 4886 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4887 echo "$as_me:$LINENO: result: yes" >&5
4888echo "${ECHO_T}yes" >&6
10f2d63a 4889 else
e6cc62c6
VS
4890 echo "$as_me:$LINENO: result: no" >&5
4891echo "${ECHO_T}no" >&6
10f2d63a 4892 fi
e6cc62c6 4893
10f2d63a 4894
5005acfe 4895 enablestring=
e46d2a18
VS
4896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4897echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a 4898 no_cache=0
e46d2a18
VS
4899 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4900if test "${enable_fs_inet+set}" = set; then
4901 enableval="$enable_fs_inet"
e6cc62c6 4902
10f2d63a 4903 if test "$enableval" = yes; then
e46d2a18 4904 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
10f2d63a 4905 else
e46d2a18 4906 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
10f2d63a 4907 fi
e6cc62c6 4908
10f2d63a 4909else
e6cc62c6 4910
e46d2a18 4911 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
10f2d63a
VZ
4912 if test "x$LINE" != x ; then
4913 eval "DEFAULT_$LINE"
4914 else
4915 no_cache=1
4916 fi
4917
e46d2a18 4918 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4919
e6cc62c6 4920fi;
10f2d63a 4921
e46d2a18 4922 eval "$ac_cv_use_fs_inet"
10f2d63a 4923 if test "$no_cache" != 1; then
e46d2a18 4924 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4925 fi
4926
e46d2a18 4927 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
4928 echo "$as_me:$LINENO: result: yes" >&5
4929echo "${ECHO_T}yes" >&6
10f2d63a 4930 else
e6cc62c6
VS
4931 echo "$as_me:$LINENO: result: no" >&5
4932echo "${ECHO_T}no" >&6
10f2d63a 4933 fi
e6cc62c6 4934
10f2d63a 4935
5005acfe 4936 enablestring=
e46d2a18
VS
4937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4938echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a3a584a7 4939 no_cache=0
e46d2a18
VS
4940 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4941if test "${enable_fs_zip+set}" = set; then
4942 enableval="$enable_fs_zip"
e6cc62c6 4943
a3a584a7 4944 if test "$enableval" = yes; then
e46d2a18 4945 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a3a584a7 4946 else
e46d2a18 4947 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a3a584a7 4948 fi
e6cc62c6 4949
a3a584a7 4950else
e6cc62c6 4951
e46d2a18 4952 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
a3a584a7
VZ
4953 if test "x$LINE" != x ; then
4954 eval "DEFAULT_$LINE"
4955 else
4956 no_cache=1
4957 fi
4958
e46d2a18 4959 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a3a584a7 4960
e6cc62c6 4961fi;
a3a584a7 4962
e46d2a18 4963 eval "$ac_cv_use_fs_zip"
a3a584a7 4964 if test "$no_cache" != 1; then
e46d2a18 4965 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
a3a584a7
VZ
4966 fi
4967
e46d2a18 4968 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
4969 echo "$as_me:$LINENO: result: yes" >&5
4970echo "${ECHO_T}yes" >&6
a3a584a7 4971 else
e6cc62c6
VS
4972 echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6
a3a584a7 4974 fi
e6cc62c6 4975
a3a584a7 4976
5005acfe 4977 enablestring=
e46d2a18
VS
4978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4979echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
10f2d63a 4980 no_cache=0
e46d2a18
VS
4981 # Check whether --enable-geometry or --disable-geometry was given.
4982if test "${enable_geometry+set}" = set; then
4983 enableval="$enable_geometry"
e6cc62c6 4984
10f2d63a 4985 if test "$enableval" = yes; then
e46d2a18 4986 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
10f2d63a 4987 else
e46d2a18 4988 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
10f2d63a 4989 fi
e6cc62c6 4990
10f2d63a 4991else
e6cc62c6 4992
e46d2a18 4993 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
10f2d63a
VZ
4994 if test "x$LINE" != x ; then
4995 eval "DEFAULT_$LINE"
4996 else
4997 no_cache=1
4998 fi
4999
e46d2a18 5000 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
10f2d63a 5001
e6cc62c6 5002fi;
10f2d63a 5003
e46d2a18 5004 eval "$ac_cv_use_geometry"
10f2d63a 5005 if test "$no_cache" != 1; then
e46d2a18 5006 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5007 fi
5008
e46d2a18 5009 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
5010 echo "$as_me:$LINENO: result: yes" >&5
5011echo "${ECHO_T}yes" >&6
10f2d63a 5012 else
e6cc62c6
VS
5013 echo "$as_me:$LINENO: result: no" >&5
5014echo "${ECHO_T}no" >&6
10f2d63a 5015 fi
e6cc62c6 5016
10f2d63a 5017
5005acfe 5018 enablestring=
e46d2a18
VS
5019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5020echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a 5021 no_cache=0
e46d2a18
VS
5022 # Check whether --enable-log or --disable-log was given.
5023if test "${enable_log+set}" = set; then
5024 enableval="$enable_log"
e6cc62c6 5025
10f2d63a 5026 if test "$enableval" = yes; then
e46d2a18 5027 ac_cv_use_log='wxUSE_LOG=yes'
10f2d63a 5028 else
e46d2a18 5029 ac_cv_use_log='wxUSE_LOG=no'
10f2d63a 5030 fi
e6cc62c6 5031
10f2d63a 5032else
e6cc62c6 5033
e46d2a18 5034 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
10f2d63a
VZ
5035 if test "x$LINE" != x ; then
5036 eval "DEFAULT_$LINE"
5037 else
5038 no_cache=1
5039 fi
5040
e46d2a18 5041 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 5042
e6cc62c6 5043fi;
10f2d63a 5044
e46d2a18 5045 eval "$ac_cv_use_log"
10f2d63a 5046 if test "$no_cache" != 1; then
e46d2a18 5047 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5048 fi
5049
e46d2a18 5050 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
5051 echo "$as_me:$LINENO: result: yes" >&5
5052echo "${ECHO_T}yes" >&6
10f2d63a 5053 else
e6cc62c6
VS
5054 echo "$as_me:$LINENO: result: no" >&5
5055echo "${ECHO_T}no" >&6
10f2d63a 5056 fi
e6cc62c6 5057
10f2d63a 5058
5005acfe 5059 enablestring=
e46d2a18
VS
5060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5061echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a 5062 no_cache=0
e46d2a18
VS
5063 # Check whether --enable-longlong or --disable-longlong was given.
5064if test "${enable_longlong+set}" = set; then
5065 enableval="$enable_longlong"
e6cc62c6 5066
1e6feb95 5067 if test "$enableval" = yes; then
e46d2a18 5068 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
1e6feb95 5069 else
e46d2a18 5070 ac_cv_use_longlong='wxUSE_LONGLONG=no'
1e6feb95 5071 fi
e6cc62c6 5072
1e6feb95 5073else
e6cc62c6 5074
e46d2a18 5075 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
1e6feb95
VZ
5076 if test "x$LINE" != x ; then
5077 eval "DEFAULT_$LINE"
5078 else
5079 no_cache=1
5080 fi
5081
e46d2a18 5082 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
1e6feb95 5083
e6cc62c6 5084fi;
1e6feb95 5085
e46d2a18 5086 eval "$ac_cv_use_longlong"
1e6feb95 5087 if test "$no_cache" != 1; then
e46d2a18 5088 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5089 fi
5090
e46d2a18
VS
5091 if test "$wxUSE_LONGLONG" = yes; then
5092 echo "$as_me:$LINENO: result: yes" >&5
5093echo "${ECHO_T}yes" >&6
5094 else
5095 echo "$as_me:$LINENO: result: no" >&5
5096echo "${ECHO_T}no" >&6
5097 fi
5098
5099
5100 enablestring=
5101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5102echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5103 no_cache=0
5104 # Check whether --enable-mimetype or --disable-mimetype was given.
5105if test "${enable_mimetype+set}" = set; then
5106 enableval="$enable_mimetype"
5107
5108 if test "$enableval" = yes; then
5109 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5110 else
5111 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5112 fi
5113
5114else
5115
5116 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5117 if test "x$LINE" != x ; then
5118 eval "DEFAULT_$LINE"
5119 else
5120 no_cache=1
5121 fi
5122
5123 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5124
5125fi;
5126
5127 eval "$ac_cv_use_mimetype"
5128 if test "$no_cache" != 1; then
5129 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5130 fi
5131
5132 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5133 echo "$as_me:$LINENO: result: yes" >&5
5134echo "${ECHO_T}yes" >&6
1e6feb95 5135 else
e6cc62c6
VS
5136 echo "$as_me:$LINENO: result: no" >&5
5137echo "${ECHO_T}no" >&6
1e6feb95 5138 fi
e6cc62c6 5139
1e6feb95 5140
5005acfe 5141 enablestring=
e6cc62c6
VS
5142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5143echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5144 no_cache=0
5145 # Check whether --enable-mslu or --disable-mslu was given.
5146if test "${enable_mslu+set}" = set; then
5147 enableval="$enable_mslu"
e6cc62c6 5148
a72a4bfa
VS
5149 if test "$enableval" = yes; then
5150 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5151 else
5152 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5153 fi
e6cc62c6 5154
a72a4bfa 5155else
e6cc62c6 5156
a72a4bfa
VS
5157 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5158 if test "x$LINE" != x ; then
5159 eval "DEFAULT_$LINE"
5160 else
5161 no_cache=1
5162 fi
5163
5164 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5165
e6cc62c6 5166fi;
a72a4bfa
VS
5167
5168 eval "$ac_cv_use_mslu"
5169 if test "$no_cache" != 1; then
5170 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5171 fi
5172
5173 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5174 echo "$as_me:$LINENO: result: yes" >&5
5175echo "${ECHO_T}yes" >&6
a72a4bfa 5176 else
e6cc62c6
VS
5177 echo "$as_me:$LINENO: result: no" >&5
5178echo "${ECHO_T}no" >&6
a72a4bfa 5179 fi
e6cc62c6 5180
a72a4bfa 5181
5005acfe 5182 enablestring=
e46d2a18
VS
5183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5184echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
1e6feb95 5185 no_cache=0
e46d2a18
VS
5186 # Check whether --enable-snglinst or --disable-snglinst was given.
5187if test "${enable_snglinst+set}" = set; then
5188 enableval="$enable_snglinst"
e6cc62c6 5189
1e6feb95 5190 if test "$enableval" = yes; then
e46d2a18 5191 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
10f2d63a 5192 else
e46d2a18 5193 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
10f2d63a 5194 fi
e6cc62c6 5195
10f2d63a 5196else
e6cc62c6 5197
e46d2a18 5198 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
10f2d63a
VZ
5199 if test "x$LINE" != x ; then
5200 eval "DEFAULT_$LINE"
5201 else
5202 no_cache=1
5203 fi
5204
e46d2a18 5205 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
10f2d63a 5206
e6cc62c6 5207fi;
10f2d63a 5208
e46d2a18 5209 eval "$ac_cv_use_snglinst"
10f2d63a 5210 if test "$no_cache" != 1; then
e46d2a18 5211 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5212 fi
5213
e46d2a18
VS
5214 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5215 echo "$as_me:$LINENO: result: yes" >&5
5216echo "${ECHO_T}yes" >&6
5217 else
5218 echo "$as_me:$LINENO: result: no" >&5
5219echo "${ECHO_T}no" >&6
5220 fi
5221
5222
5223 enablestring=
5224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5225echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5226 no_cache=0
5227 # Check whether --enable-streams or --disable-streams was given.
5228if test "${enable_streams+set}" = set; then
5229 enableval="$enable_streams"
5230
5231 if test "$enableval" = yes; then
5232 ac_cv_use_streams='wxUSE_STREAMS=yes'
5233 else
5234 ac_cv_use_streams='wxUSE_STREAMS=no'
5235 fi
5236
5237else
5238
5239 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5240 if test "x$LINE" != x ; then
5241 eval "DEFAULT_$LINE"
5242 else
5243 no_cache=1
5244 fi
5245
5246 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5247
5248fi;
5249
5250 eval "$ac_cv_use_streams"
5251 if test "$no_cache" != 1; then
5252 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5253 fi
5254
5255 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
5256 echo "$as_me:$LINENO: result: yes" >&5
5257echo "${ECHO_T}yes" >&6
10f2d63a 5258 else
e6cc62c6
VS
5259 echo "$as_me:$LINENO: result: no" >&5
5260echo "${ECHO_T}no" >&6
10f2d63a 5261 fi
e6cc62c6 5262
10f2d63a 5263
5005acfe 5264 enablestring=
e6cc62c6
VS
5265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5266echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5267 no_cache=0
5268 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5269if test "${enable_std_iostreams+set}" = set; then
5270 enableval="$enable_std_iostreams"
e6cc62c6 5271
10f2d63a
VZ
5272 if test "$enableval" = yes; then
5273 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5274 else
5275 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5276 fi
e6cc62c6 5277
10f2d63a 5278else
e6cc62c6 5279
10f2d63a
VZ
5280 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5281 if test "x$LINE" != x ; then
5282 eval "DEFAULT_$LINE"
5283 else
5284 no_cache=1
5285 fi
5286
5287 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5288
e6cc62c6 5289fi;
10f2d63a
VZ
5290
5291 eval "$ac_cv_use_std_iostreams"
5292 if test "$no_cache" != 1; then
5293 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5294 fi
5295
5296 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5297 echo "$as_me:$LINENO: result: yes" >&5
5298echo "${ECHO_T}yes" >&6
10f2d63a 5299 else
e6cc62c6
VS
5300 echo "$as_me:$LINENO: result: no" >&5
5301echo "${ECHO_T}no" >&6
10f2d63a 5302 fi
e6cc62c6 5303
10f2d63a 5304
5005acfe 5305 enablestring=
e46d2a18
VS
5306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5307echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
24528b0c 5308 no_cache=0
e46d2a18
VS
5309 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5310if test "${enable_stopwatch+set}" = set; then
5311 enableval="$enable_stopwatch"
e6cc62c6 5312
24528b0c 5313 if test "$enableval" = yes; then
e46d2a18 5314 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
24528b0c 5315 else
e46d2a18 5316 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
24528b0c 5317 fi
e6cc62c6 5318
24528b0c 5319else
e6cc62c6 5320
e46d2a18 5321 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
24528b0c
VS
5322 if test "x$LINE" != x ; then
5323 eval "DEFAULT_$LINE"
5324 else
5325 no_cache=1
5326 fi
5327
e46d2a18 5328 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
24528b0c 5329
e6cc62c6 5330fi;
24528b0c 5331
e46d2a18 5332 eval "$ac_cv_use_stopwatch"
24528b0c 5333 if test "$no_cache" != 1; then
e46d2a18 5334 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
24528b0c
VS
5335 fi
5336
e46d2a18 5337 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
5338 echo "$as_me:$LINENO: result: yes" >&5
5339echo "${ECHO_T}yes" >&6
24528b0c 5340 else
e6cc62c6
VS
5341 echo "$as_me:$LINENO: result: no" >&5
5342echo "${ECHO_T}no" >&6
24528b0c 5343 fi
e6cc62c6 5344
24528b0c 5345
5005acfe 5346 enablestring=
e46d2a18
VS
5347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5348echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
10f2d63a 5349 no_cache=0
e46d2a18
VS
5350 # Check whether --enable-system_options or --disable-system_options was given.
5351if test "${enable_system_options+set}" = set; then
5352 enableval="$enable_system_options"
e6cc62c6 5353
10f2d63a 5354 if test "$enableval" = yes; then
e46d2a18 5355 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
10f2d63a 5356 else
e46d2a18 5357 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
10f2d63a 5358 fi
e6cc62c6 5359
10f2d63a 5360else
e6cc62c6 5361
e46d2a18 5362 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
5363 if test "x$LINE" != x ; then
5364 eval "DEFAULT_$LINE"
5365 else
5366 no_cache=1
5367 fi
5368
e46d2a18 5369 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
10f2d63a 5370
e6cc62c6 5371fi;
10f2d63a 5372
e46d2a18 5373 eval "$ac_cv_use_system_options"
10f2d63a 5374 if test "$no_cache" != 1; then
e46d2a18 5375 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5376 fi
5377
e46d2a18 5378 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5379 echo "$as_me:$LINENO: result: yes" >&5
5380echo "${ECHO_T}yes" >&6
10f2d63a 5381 else
e6cc62c6
VS
5382 echo "$as_me:$LINENO: result: no" >&5
5383echo "${ECHO_T}no" >&6
10f2d63a 5384 fi
e6cc62c6 5385
10f2d63a 5386
5005acfe 5387 enablestring=
e46d2a18
VS
5388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5389echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
10f2d63a 5390 no_cache=0
e46d2a18
VS
5391 # Check whether --enable-textbuf or --disable-textbuf was given.
5392if test "${enable_textbuf+set}" = set; then
5393 enableval="$enable_textbuf"
e6cc62c6 5394
10f2d63a 5395 if test "$enableval" = yes; then
e46d2a18 5396 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
10f2d63a 5397 else
e46d2a18 5398 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
10f2d63a 5399 fi
e6cc62c6 5400
10f2d63a 5401else
e6cc62c6 5402
e46d2a18 5403 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
10f2d63a
VZ
5404 if test "x$LINE" != x ; then
5405 eval "DEFAULT_$LINE"
5406 else
5407 no_cache=1
5408 fi
5409
e46d2a18 5410 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
10f2d63a 5411
e6cc62c6 5412fi;
10f2d63a 5413
e46d2a18 5414 eval "$ac_cv_use_textbuf"
10f2d63a 5415 if test "$no_cache" != 1; then
e46d2a18 5416 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5417 fi
5418
e46d2a18 5419 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
5420 echo "$as_me:$LINENO: result: yes" >&5
5421echo "${ECHO_T}yes" >&6
10f2d63a 5422 else
e6cc62c6
VS
5423 echo "$as_me:$LINENO: result: no" >&5
5424echo "${ECHO_T}no" >&6
10f2d63a 5425 fi
e6cc62c6 5426
10f2d63a 5427
5005acfe 5428 enablestring=
e46d2a18
VS
5429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5430echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 5431 no_cache=0
e46d2a18
VS
5432 # Check whether --enable-textfile or --disable-textfile was given.
5433if test "${enable_textfile+set}" = set; then
5434 enableval="$enable_textfile"
e6cc62c6 5435
10f2d63a 5436 if test "$enableval" = yes; then
e46d2a18 5437 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 5438 else
e46d2a18 5439 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 5440 fi
e6cc62c6 5441
10f2d63a 5442else
e6cc62c6 5443
e46d2a18 5444 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
5445 if test "x$LINE" != x ; then
5446 eval "DEFAULT_$LINE"
5447 else
5448 no_cache=1
5449 fi
5450
e46d2a18 5451 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 5452
e6cc62c6 5453fi;
10f2d63a 5454
e46d2a18 5455 eval "$ac_cv_use_textfile"
10f2d63a 5456 if test "$no_cache" != 1; then
e46d2a18 5457 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5458 fi
5459
e46d2a18 5460 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
5461 echo "$as_me:$LINENO: result: yes" >&5
5462echo "${ECHO_T}yes" >&6
10f2d63a 5463 else
e6cc62c6
VS
5464 echo "$as_me:$LINENO: result: no" >&5
5465echo "${ECHO_T}no" >&6
10f2d63a 5466 fi
e6cc62c6 5467
8284b0c5 5468
5005acfe 5469 enablestring=
e46d2a18
VS
5470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5471echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
eb4efbdc 5472 no_cache=0
e46d2a18
VS
5473 # Check whether --enable-timer or --disable-timer was given.
5474if test "${enable_timer+set}" = set; then
5475 enableval="$enable_timer"
e6cc62c6 5476
eb4efbdc 5477 if test "$enableval" = yes; then
e46d2a18 5478 ac_cv_use_timer='wxUSE_TIMER=yes'
eb4efbdc 5479 else
e46d2a18 5480 ac_cv_use_timer='wxUSE_TIMER=no'
eb4efbdc 5481 fi
e6cc62c6 5482
eb4efbdc 5483else
e6cc62c6 5484
e46d2a18 5485 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
eb4efbdc
VZ
5486 if test "x$LINE" != x ; then
5487 eval "DEFAULT_$LINE"
5488 else
5489 no_cache=1
5490 fi
5491
e46d2a18 5492 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
eb4efbdc 5493
e6cc62c6 5494fi;
eb4efbdc 5495
e46d2a18 5496 eval "$ac_cv_use_timer"
eb4efbdc 5497 if test "$no_cache" != 1; then
e46d2a18 5498 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
eb4efbdc
VZ
5499 fi
5500
e46d2a18 5501 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
5502 echo "$as_me:$LINENO: result: yes" >&5
5503echo "${ECHO_T}yes" >&6
eb4efbdc 5504 else
e6cc62c6
VS
5505 echo "$as_me:$LINENO: result: no" >&5
5506echo "${ECHO_T}no" >&6
eb4efbdc 5507 fi
e6cc62c6 5508
eb4efbdc 5509
5005acfe 5510 enablestring=
e46d2a18
VS
5511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5512echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4f3c5f06 5513 no_cache=0
e46d2a18
VS
5514 # Check whether --enable-unicode or --disable-unicode was given.
5515if test "${enable_unicode+set}" = set; then
5516 enableval="$enable_unicode"
e6cc62c6 5517
4f3c5f06 5518 if test "$enableval" = yes; then
e46d2a18 5519 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4f3c5f06 5520 else
e46d2a18 5521 ac_cv_use_unicode='wxUSE_UNICODE=no'
4f3c5f06 5522 fi
e6cc62c6 5523
4f3c5f06 5524else
e6cc62c6 5525
e46d2a18 5526 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4f3c5f06
VZ
5527 if test "x$LINE" != x ; then
5528 eval "DEFAULT_$LINE"
5529 else
5530 no_cache=1
5531 fi
5532
e46d2a18 5533 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4f3c5f06 5534
e6cc62c6 5535fi;
4f3c5f06 5536
e46d2a18 5537 eval "$ac_cv_use_unicode"
4f3c5f06 5538 if test "$no_cache" != 1; then
e46d2a18 5539 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4f3c5f06
VZ
5540 fi
5541
e46d2a18 5542 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5543 echo "$as_me:$LINENO: result: yes" >&5
5544echo "${ECHO_T}yes" >&6
4f3c5f06 5545 else
e6cc62c6
VS
5546 echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
4f3c5f06 5548 fi
e6cc62c6 5549
52127426 5550
e46d2a18 5551 enablestring=
002ed9af
VS
5552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5553echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
e46d2a18 5554 no_cache=0
002ed9af
VS
5555 # Check whether --enable-sound or --disable-sound was given.
5556if test "${enable_sound+set}" = set; then
5557 enableval="$enable_sound"
e46d2a18
VS
5558
5559 if test "$enableval" = yes; then
002ed9af 5560 ac_cv_use_sound='wxUSE_SOUND=yes'
e46d2a18 5561 else
002ed9af 5562 ac_cv_use_sound='wxUSE_SOUND=no'
e46d2a18
VS
5563 fi
5564
5565else
5566
002ed9af 5567 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
e46d2a18
VS
5568 if test "x$LINE" != x ; then
5569 eval "DEFAULT_$LINE"
5570 else
5571 no_cache=1
5572 fi
5573
002ed9af 5574 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
e46d2a18
VS
5575
5576fi;
5577
002ed9af 5578 eval "$ac_cv_use_sound"
e46d2a18 5579 if test "$no_cache" != 1; then
002ed9af 5580 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
e46d2a18
VS
5581 fi
5582
002ed9af 5583 if test "$wxUSE_SOUND" = yes; then
e46d2a18
VS
5584 echo "$as_me:$LINENO: result: yes" >&5
5585echo "${ECHO_T}yes" >&6
5586 else
5587 echo "$as_me:$LINENO: result: no" >&5
5588echo "${ECHO_T}no" >&6
5589 fi
5590
8284b0c5 5591
5005acfe 5592 enablestring=
e46d2a18
VS
5593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5594echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95 5595 no_cache=0
e46d2a18
VS
5596 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5597if test "${enable_wxprintfv+set}" = set; then
5598 enableval="$enable_wxprintfv"
e6cc62c6 5599
1e6feb95 5600 if test "$enableval" = yes; then
e46d2a18 5601 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
1e6feb95 5602 else
e46d2a18 5603 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
1e6feb95 5604 fi
e6cc62c6 5605
1e6feb95 5606else
e6cc62c6 5607
e46d2a18 5608 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
1e6feb95
VZ
5609 if test "x$LINE" != x ; then
5610 eval "DEFAULT_$LINE"
5611 else
5612 no_cache=1
5613 fi
5614
e46d2a18 5615 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
1e6feb95 5616
e6cc62c6 5617fi;
1e6feb95 5618
e46d2a18 5619 eval "$ac_cv_use_wxprintfv"
1e6feb95 5620 if test "$no_cache" != 1; then
e46d2a18 5621 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5622 fi
5623
e46d2a18 5624 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5625 echo "$as_me:$LINENO: result: yes" >&5
5626echo "${ECHO_T}yes" >&6
1e6feb95 5627 else
e6cc62c6
VS
5628 echo "$as_me:$LINENO: result: no" >&5
5629echo "${ECHO_T}no" >&6
1e6feb95 5630 fi
e6cc62c6 5631
1e6feb95 5632
5005acfe 5633 enablestring=
e46d2a18
VS
5634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5635echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
3e44f09d 5636 no_cache=0
e46d2a18
VS
5637 # Check whether --enable-zipstream or --disable-zipstream was given.
5638if test "${enable_zipstream+set}" = set; then
5639 enableval="$enable_zipstream"
e6cc62c6 5640
3e44f09d 5641 if test "$enableval" = yes; then
e46d2a18 5642 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3e44f09d 5643 else
e46d2a18 5644 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3e44f09d 5645 fi
e6cc62c6 5646
3e44f09d 5647else
e6cc62c6 5648
e46d2a18 5649 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3e44f09d
VZ
5650 if test "x$LINE" != x ; then
5651 eval "DEFAULT_$LINE"
5652 else
5653 no_cache=1
5654 fi
5655
e46d2a18 5656 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3e44f09d 5657
e6cc62c6 5658fi;
3e44f09d 5659
e46d2a18 5660 eval "$ac_cv_use_zipstream"
3e44f09d 5661 if test "$no_cache" != 1; then
e46d2a18 5662 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3e44f09d
VZ
5663 fi
5664
e46d2a18 5665 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5666 echo "$as_me:$LINENO: result: yes" >&5
5667echo "${ECHO_T}yes" >&6
3e44f09d 5668 else
e6cc62c6
VS
5669 echo "$as_me:$LINENO: result: no" >&5
5670echo "${ECHO_T}no" >&6
3e44f09d 5671 fi
e6cc62c6 5672
8284b0c5 5673
7015ef3a
VZ
5674 enablestring=
5675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5676echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5677 no_cache=0
5678 # Check whether --enable-gzstream or --disable-gzstream was given.
5679if test "${enable_gzstream+set}" = set; then
5680 enableval="$enable_gzstream"
5681
5682 if test "$enableval" = yes; then
5683 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5684 else
5685 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5686 fi
5687
5688else
5689
5690 LINE=`grep "wxUSE_GZSTREAM" ${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_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5698
5699fi;
5700
5701 eval "$ac_cv_use_gzstream"
5702 if test "$no_cache" != 1; then
5703 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5704 fi
5705
5706 if test "$wxUSE_GZSTREAM" = yes; then
5707 echo "$as_me:$LINENO: result: yes" >&5
5708echo "${ECHO_T}yes" >&6
5709 else
5710 echo "$as_me:$LINENO: result: no" >&5
5711echo "${ECHO_T}no" >&6
5712 fi
5713
5714
52127426 5715
5005acfe 5716 enablestring=
e6cc62c6
VS
5717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5718echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5719 no_cache=0
5720 # Check whether --enable-url or --disable-url was given.
5721if test "${enable_url+set}" = set; then
5722 enableval="$enable_url"
e6cc62c6 5723
4cdb0ab0
VS
5724 if test "$enableval" = yes; then
5725 ac_cv_use_url='wxUSE_URL=yes'
5726 else
5727 ac_cv_use_url='wxUSE_URL=no'
5728 fi
e6cc62c6 5729
4cdb0ab0 5730else
e6cc62c6 5731
4cdb0ab0
VS
5732 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5733 if test "x$LINE" != x ; then
5734 eval "DEFAULT_$LINE"
5735 else
5736 no_cache=1
5737 fi
5738
5739 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5740
e6cc62c6 5741fi;
4cdb0ab0
VS
5742
5743 eval "$ac_cv_use_url"
5744 if test "$no_cache" != 1; then
5745 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5746 fi
5747
5748 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5749 echo "$as_me:$LINENO: result: yes" >&5
5750echo "${ECHO_T}yes" >&6
4cdb0ab0 5751 else
e6cc62c6
VS
5752 echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
4cdb0ab0 5754 fi
e6cc62c6 5755
4cdb0ab0 5756
5005acfe 5757 enablestring=
e6cc62c6
VS
5758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5759echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5760 no_cache=0
5761 # Check whether --enable-protocol or --disable-protocol was given.
5762if test "${enable_protocol+set}" = set; then
5763 enableval="$enable_protocol"
e6cc62c6 5764
4cdb0ab0
VS
5765 if test "$enableval" = yes; then
5766 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5767 else
5768 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5769 fi
e6cc62c6 5770
4cdb0ab0 5771else
e6cc62c6 5772
4cdb0ab0
VS
5773 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5774 if test "x$LINE" != x ; then
5775 eval "DEFAULT_$LINE"
5776 else
5777 no_cache=1
5778 fi
5779
5780 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5781
e6cc62c6 5782fi;
4cdb0ab0
VS
5783
5784 eval "$ac_cv_use_protocol"
5785 if test "$no_cache" != 1; then
5786 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5787 fi
5788
5789 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5790 echo "$as_me:$LINENO: result: yes" >&5
5791echo "${ECHO_T}yes" >&6
4cdb0ab0 5792 else
e6cc62c6
VS
5793 echo "$as_me:$LINENO: result: no" >&5
5794echo "${ECHO_T}no" >&6
4cdb0ab0 5795 fi
e6cc62c6 5796
4cdb0ab0 5797
5005acfe 5798 enablestring=
e6cc62c6
VS
5799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5800echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5801 no_cache=0
5802 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5803if test "${enable_protocol_http+set}" = set; then
5804 enableval="$enable_protocol_http"
e6cc62c6 5805
4cdb0ab0
VS
5806 if test "$enableval" = yes; then
5807 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5808 else
5809 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5810 fi
e6cc62c6 5811
4cdb0ab0 5812else
e6cc62c6 5813
4cdb0ab0
VS
5814 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5815 if test "x$LINE" != x ; then
5816 eval "DEFAULT_$LINE"
5817 else
5818 no_cache=1
5819 fi
5820
5821 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5822
e6cc62c6 5823fi;
4cdb0ab0
VS
5824
5825 eval "$ac_cv_use_protocol_http"
5826 if test "$no_cache" != 1; then
5827 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5828 fi
5829
5830 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5831 echo "$as_me:$LINENO: result: yes" >&5
5832echo "${ECHO_T}yes" >&6
4cdb0ab0 5833 else
e6cc62c6
VS
5834 echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6
4cdb0ab0 5836 fi
e6cc62c6 5837
4cdb0ab0 5838
5005acfe 5839 enablestring=
e6cc62c6
VS
5840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5841echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5842 no_cache=0
5843 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5844if test "${enable_protocol_ftp+set}" = set; then
5845 enableval="$enable_protocol_ftp"
e6cc62c6 5846
4cdb0ab0
VS
5847 if test "$enableval" = yes; then
5848 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5849 else
5850 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5851 fi
e6cc62c6 5852
4cdb0ab0 5853else
e6cc62c6 5854
4cdb0ab0
VS
5855 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5856 if test "x$LINE" != x ; then
5857 eval "DEFAULT_$LINE"
5858 else
5859 no_cache=1
5860 fi
5861
5862 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5863
e6cc62c6 5864fi;
4cdb0ab0
VS
5865
5866 eval "$ac_cv_use_protocol_ftp"
5867 if test "$no_cache" != 1; then
5868 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5869 fi
5870
5871 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5872 echo "$as_me:$LINENO: result: yes" >&5
5873echo "${ECHO_T}yes" >&6
4cdb0ab0 5874 else
e6cc62c6
VS
5875 echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6
4cdb0ab0 5877 fi
e6cc62c6 5878
4cdb0ab0 5879
5005acfe 5880 enablestring=
e6cc62c6
VS
5881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5882echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5883 no_cache=0
5884 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5885if test "${enable_protocol_file+set}" = set; then
5886 enableval="$enable_protocol_file"
e6cc62c6 5887
4cdb0ab0
VS
5888 if test "$enableval" = yes; then
5889 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5890 else
5891 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5892 fi
e6cc62c6 5893
4cdb0ab0 5894else
e6cc62c6 5895
4cdb0ab0
VS
5896 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5897 if test "x$LINE" != x ; then
5898 eval "DEFAULT_$LINE"
5899 else
5900 no_cache=1
5901 fi
5902
5903 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5904
e6cc62c6 5905fi;
4cdb0ab0
VS
5906
5907 eval "$ac_cv_use_protocol_file"
5908 if test "$no_cache" != 1; then
5909 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5910 fi
5911
5912 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5913 echo "$as_me:$LINENO: result: yes" >&5
5914echo "${ECHO_T}yes" >&6
4cdb0ab0 5915 else
e6cc62c6
VS
5916 echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6
4cdb0ab0 5918 fi
e6cc62c6 5919
52127426 5920
8284b0c5
MB
5921
5922
5923
5005acfe 5924 enablestring=
e6cc62c6
VS
5925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5926echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5927 no_cache=0
5928 # Check whether --enable-threads or --disable-threads was given.
5929if test "${enable_threads+set}" = set; then
5930 enableval="$enable_threads"
e6cc62c6 5931
10f2d63a
VZ
5932 if test "$enableval" = yes; then
5933 ac_cv_use_threads='wxUSE_THREADS=yes'
5934 else
5935 ac_cv_use_threads='wxUSE_THREADS=no'
5936 fi
e6cc62c6 5937
10f2d63a 5938else
e6cc62c6 5939
10f2d63a
VZ
5940 LINE=`grep "wxUSE_THREADS" ${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_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5948
e6cc62c6 5949fi;
10f2d63a
VZ
5950
5951 eval "$ac_cv_use_threads"
5952 if test "$no_cache" != 1; then
5953 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5954 fi
5955
5956 if test "$wxUSE_THREADS" = 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
b12915c1
VZ
5965if test "$wxUSE_GUI" = "yes"; then
5966
8284b0c5
MB
5967
5968
5005acfe 5969 enablestring=
e6cc62c6
VS
5970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5971echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5972 no_cache=0
5973 # Check whether --enable-docview or --disable-docview was given.
5974if test "${enable_docview+set}" = set; then
5975 enableval="$enable_docview"
e6cc62c6 5976
10f2d63a
VZ
5977 if test "$enableval" = yes; then
5978 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5979 else
5980 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5981 fi
e6cc62c6 5982
10f2d63a 5983else
e6cc62c6 5984
10f2d63a
VZ
5985 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5986 if test "x$LINE" != x ; then
5987 eval "DEFAULT_$LINE"
5988 else
5989 no_cache=1
5990 fi
5991
5992 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5993
e6cc62c6 5994fi;
10f2d63a
VZ
5995
5996 eval "$ac_cv_use_docview"
5997 if test "$no_cache" != 1; then
5998 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5999 fi
6000
6001 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
6002 echo "$as_me:$LINENO: result: yes" >&5
6003echo "${ECHO_T}yes" >&6
10f2d63a 6004 else
e6cc62c6
VS
6005 echo "$as_me:$LINENO: result: no" >&5
6006echo "${ECHO_T}no" >&6
10f2d63a 6007 fi
e6cc62c6 6008
10f2d63a 6009
5005acfe 6010 enablestring=
e6cc62c6
VS
6011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6012echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
6013 no_cache=0
6014 # Check whether --enable-help or --disable-help was given.
6015if test "${enable_help+set}" = set; then
6016 enableval="$enable_help"
e6cc62c6 6017
10f2d63a
VZ
6018 if test "$enableval" = yes; then
6019 ac_cv_use_help='wxUSE_HELP=yes'
6020 else
6021 ac_cv_use_help='wxUSE_HELP=no'
6022 fi
e6cc62c6 6023
10f2d63a 6024else
e6cc62c6 6025
10f2d63a
VZ
6026 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6027 if test "x$LINE" != x ; then
6028 eval "DEFAULT_$LINE"
6029 else
6030 no_cache=1
6031 fi
6032
6033 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 6034
e6cc62c6 6035fi;
10f2d63a
VZ
6036
6037 eval "$ac_cv_use_help"
6038 if test "$no_cache" != 1; then
6039 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6040 fi
6041
6042 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
6043 echo "$as_me:$LINENO: result: yes" >&5
6044echo "${ECHO_T}yes" >&6
10f2d63a 6045 else
e6cc62c6
VS
6046 echo "$as_me:$LINENO: result: no" >&5
6047echo "${ECHO_T}no" >&6
10f2d63a 6048 fi
e6cc62c6 6049
10f2d63a 6050
5005acfe 6051 enablestring=
e6cc62c6
VS
6052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6053echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
6054 no_cache=0
6055 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6056if test "${enable_mshtmlhelp+set}" = set; then
6057 enableval="$enable_mshtmlhelp"
e6cc62c6 6058
29fd3c0c
VS
6059 if test "$enableval" = yes; then
6060 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6061 else
6062 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6063 fi
e6cc62c6 6064
29fd3c0c 6065else
e6cc62c6 6066
29fd3c0c
VS
6067 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6068 if test "x$LINE" != x ; then
6069 eval "DEFAULT_$LINE"
6070 else
6071 no_cache=1
6072 fi
6073
6074 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 6075
e6cc62c6 6076fi;
29fd3c0c
VS
6077
6078 eval "$ac_cv_use_mshtmlhelp"
6079 if test "$no_cache" != 1; then
6080 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6081 fi
6082
6083 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
6084 echo "$as_me:$LINENO: result: yes" >&5
6085echo "${ECHO_T}yes" >&6
29fd3c0c 6086 else
e6cc62c6
VS
6087 echo "$as_me:$LINENO: result: no" >&5
6088echo "${ECHO_T}no" >&6
29fd3c0c 6089 fi
e6cc62c6 6090
29fd3c0c 6091
5005acfe 6092 enablestring=
e6cc62c6
VS
6093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6094echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
6095 no_cache=0
6096 # Check whether --enable-html or --disable-html was given.
6097if test "${enable_html+set}" = set; then
6098 enableval="$enable_html"
e6cc62c6 6099
3379ed37
VZ
6100 if test "$enableval" = yes; then
6101 ac_cv_use_html='wxUSE_HTML=yes'
6102 else
6103 ac_cv_use_html='wxUSE_HTML=no'
6104 fi
e6cc62c6 6105
3379ed37 6106else
e6cc62c6 6107
3379ed37
VZ
6108 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6109 if test "x$LINE" != x ; then
6110 eval "DEFAULT_$LINE"
6111 else
6112 no_cache=1
6113 fi
6114
6115 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 6116
e6cc62c6 6117fi;
3379ed37
VZ
6118
6119 eval "$ac_cv_use_html"
6120 if test "$no_cache" != 1; then
6121 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6122 fi
6123
6124 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
6125 echo "$as_me:$LINENO: result: yes" >&5
6126echo "${ECHO_T}yes" >&6
3379ed37 6127 else
e6cc62c6
VS
6128 echo "$as_me:$LINENO: result: no" >&5
6129echo "${ECHO_T}no" >&6
3379ed37 6130 fi
e6cc62c6 6131
3379ed37 6132
5005acfe 6133 enablestring=
e6cc62c6
VS
6134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6135echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
6136 no_cache=0
6137 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6138if test "${enable_htmlhelp+set}" = set; then
6139 enableval="$enable_htmlhelp"
e6cc62c6 6140
3379ed37
VZ
6141 if test "$enableval" = yes; then
6142 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6143 else
6144 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6145 fi
e6cc62c6 6146
3379ed37 6147else
e6cc62c6 6148
3379ed37
VZ
6149 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6150 if test "x$LINE" != x ; then
6151 eval "DEFAULT_$LINE"
6152 else
6153 no_cache=1
6154 fi
6155
6156 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 6157
e6cc62c6 6158fi;
3379ed37
VZ
6159
6160 eval "$ac_cv_use_htmlhelp"
6161 if test "$no_cache" != 1; then
6162 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6163 fi
6164
6165 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
6166 echo "$as_me:$LINENO: result: yes" >&5
6167echo "${ECHO_T}yes" >&6
3379ed37 6168 else
e6cc62c6
VS
6169 echo "$as_me:$LINENO: result: no" >&5
6170echo "${ECHO_T}no" >&6
3379ed37 6171 fi
e6cc62c6 6172
3379ed37 6173
5005acfe 6174 enablestring=
e6cc62c6
VS
6175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6176echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
6177 no_cache=0
6178 # Check whether --enable-constraints or --disable-constraints was given.
6179if test "${enable_constraints+set}" = set; then
6180 enableval="$enable_constraints"
e6cc62c6 6181
10f2d63a
VZ
6182 if test "$enableval" = yes; then
6183 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6184 else
6185 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6186 fi
e6cc62c6 6187
10f2d63a 6188else
e6cc62c6 6189
10f2d63a
VZ
6190 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6191 if test "x$LINE" != x ; then
6192 eval "DEFAULT_$LINE"
6193 else
6194 no_cache=1
6195 fi
6196
6197 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 6198
e6cc62c6 6199fi;
10f2d63a
VZ
6200
6201 eval "$ac_cv_use_constraints"
6202 if test "$no_cache" != 1; then
6203 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6204 fi
6205
6206 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
6207 echo "$as_me:$LINENO: result: yes" >&5
6208echo "${ECHO_T}yes" >&6
10f2d63a 6209 else
e6cc62c6
VS
6210 echo "$as_me:$LINENO: result: no" >&5
6211echo "${ECHO_T}no" >&6
10f2d63a 6212 fi
e6cc62c6 6213
10f2d63a 6214
5005acfe 6215 enablestring=
e6cc62c6
VS
6216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6217echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
6218 no_cache=0
6219 # Check whether --enable-printarch or --disable-printarch was given.
6220if test "${enable_printarch+set}" = set; then
6221 enableval="$enable_printarch"
e6cc62c6 6222
10f2d63a
VZ
6223 if test "$enableval" = yes; then
6224 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6225 else
6226 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6227 fi
e6cc62c6 6228
10f2d63a 6229else
e6cc62c6 6230
10f2d63a
VZ
6231 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6232 if test "x$LINE" != x ; then
6233 eval "DEFAULT_$LINE"
6234 else
6235 no_cache=1
6236 fi
6237
6238 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6239
e6cc62c6 6240fi;
10f2d63a
VZ
6241
6242 eval "$ac_cv_use_printarch"
6243 if test "$no_cache" != 1; then
6244 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6245 fi
6246
6247 if test "$wxUSE_PRINTING_ARCHITECTURE" = 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
10f2d63a 6255
5005acfe 6256 enablestring=
e6cc62c6
VS
6257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6258echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6259 no_cache=0
6260 # Check whether --enable-mdi or --disable-mdi was given.
6261if test "${enable_mdi+set}" = set; then
6262 enableval="$enable_mdi"
e6cc62c6 6263
10f2d63a
VZ
6264 if test "$enableval" = yes; then
6265 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6266 else
6267 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6268 fi
e6cc62c6 6269
10f2d63a 6270else
e6cc62c6 6271
10f2d63a
VZ
6272 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6273 if test "x$LINE" != x ; then
6274 eval "DEFAULT_$LINE"
6275 else
6276 no_cache=1
6277 fi
6278
6279 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6280
e6cc62c6 6281fi;
10f2d63a
VZ
6282
6283 eval "$ac_cv_use_mdi"
6284 if test "$no_cache" != 1; then
6285 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6286 fi
6287
6288 if test "$wxUSE_MDI_ARCHITECTURE" = 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
698dcdb6 6296
5005acfe 6297 enablestring=
e6cc62c6
VS
6298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6299echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6300 no_cache=0
6301 # Check whether --enable-loggui or --disable-loggui was given.
6302if test "${enable_loggui+set}" = set; then
6303 enableval="$enable_loggui"
e6cc62c6 6304
1e6feb95
VZ
6305 if test "$enableval" = yes; then
6306 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6307 else
6308 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6309 fi
e6cc62c6 6310
1e6feb95 6311else
e6cc62c6 6312
1e6feb95
VZ
6313 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6314 if test "x$LINE" != x ; then
6315 eval "DEFAULT_$LINE"
6316 else
6317 no_cache=1
6318 fi
6319
6320 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6321
e6cc62c6 6322fi;
1e6feb95
VZ
6323
6324 eval "$ac_cv_use_loggui"
6325 if test "$no_cache" != 1; then
6326 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6327 fi
6328
6329 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6330 echo "$as_me:$LINENO: result: yes" >&5
6331echo "${ECHO_T}yes" >&6
1e6feb95 6332 else
e6cc62c6
VS
6333 echo "$as_me:$LINENO: result: no" >&5
6334echo "${ECHO_T}no" >&6
1e6feb95 6335 fi
e6cc62c6 6336
1e6feb95 6337
5005acfe 6338 enablestring=
e6cc62c6
VS
6339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6340echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6341 no_cache=0
6342 # Check whether --enable-logwin or --disable-logwin was given.
6343if test "${enable_logwin+set}" = set; then
6344 enableval="$enable_logwin"
e6cc62c6 6345
1e6feb95
VZ
6346 if test "$enableval" = yes; then
6347 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6348 else
6349 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6350 fi
e6cc62c6 6351
1e6feb95 6352else
e6cc62c6 6353
1e6feb95
VZ
6354 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6355 if test "x$LINE" != x ; then
6356 eval "DEFAULT_$LINE"
6357 else
6358 no_cache=1
6359 fi
6360
6361 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6362
e6cc62c6 6363fi;
1e6feb95
VZ
6364
6365 eval "$ac_cv_use_logwin"
6366 if test "$no_cache" != 1; then
6367 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6368 fi
6369
6370 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6371 echo "$as_me:$LINENO: result: yes" >&5
6372echo "${ECHO_T}yes" >&6
1e6feb95 6373 else
e6cc62c6
VS
6374 echo "$as_me:$LINENO: result: no" >&5
6375echo "${ECHO_T}no" >&6
1e6feb95 6376 fi
e6cc62c6 6377
1e6feb95 6378
5005acfe 6379 enablestring=
e6cc62c6
VS
6380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6381echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6382 no_cache=0
6383 # Check whether --enable-logdialog or --disable-logdialog was given.
6384if test "${enable_logdialog+set}" = set; then
6385 enableval="$enable_logdialog"
e6cc62c6 6386
69d27ff7
MB
6387 if test "$enableval" = yes; then
6388 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6389 else
6390 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6391 fi
e6cc62c6 6392
69d27ff7 6393else
e6cc62c6 6394
69d27ff7
MB
6395 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6396 if test "x$LINE" != x ; then
6397 eval "DEFAULT_$LINE"
6398 else
6399 no_cache=1
6400 fi
6401
6402 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6403
e6cc62c6 6404fi;
69d27ff7
MB
6405
6406 eval "$ac_cv_use_logdialog"
6407 if test "$no_cache" != 1; then
6408 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6409 fi
6410
6411 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6412 echo "$as_me:$LINENO: result: yes" >&5
6413echo "${ECHO_T}yes" >&6
69d27ff7 6414 else
e6cc62c6
VS
6415 echo "$as_me:$LINENO: result: no" >&5
6416echo "${ECHO_T}no" >&6
69d27ff7 6417 fi
e6cc62c6 6418
8284b0c5 6419
52127426 6420
5005acfe 6421 enablestring=
e6cc62c6
VS
6422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6423echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6424 no_cache=0
6425 # Check whether --enable-postscript or --disable-postscript was given.
6426if test "${enable_postscript+set}" = set; then
6427 enableval="$enable_postscript"
e6cc62c6 6428
10f2d63a
VZ
6429 if test "$enableval" = yes; then
6430 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6431 else
6432 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6433 fi
e6cc62c6 6434
10f2d63a 6435else
e6cc62c6 6436
10f2d63a
VZ
6437 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6438 if test "x$LINE" != x ; then
6439 eval "DEFAULT_$LINE"
6440 else
6441 no_cache=1
6442 fi
6443
6444 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6445
e6cc62c6 6446fi;
10f2d63a
VZ
6447
6448 eval "$ac_cv_use_postscript"
6449 if test "$no_cache" != 1; then
6450 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6451 fi
6452
6453 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6454 echo "$as_me:$LINENO: result: yes" >&5
6455echo "${ECHO_T}yes" >&6
10f2d63a 6456 else
e6cc62c6
VS
6457 echo "$as_me:$LINENO: result: no" >&5
6458echo "${ECHO_T}no" >&6
10f2d63a 6459 fi
e6cc62c6 6460
8284b0c5
MB
6461
6462
52127426 6463
8284b0c5 6464
5005acfe 6465 enablestring=
e6cc62c6
VS
6466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6467echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6468 no_cache=0
3c907f20
VZ
6469 # Check whether --enable-prologio or --disable-prologio was given.
6470if test "${enable_prologio+set}" = set; then
6471 enableval="$enable_prologio"
e6cc62c6 6472
10f2d63a 6473 if test "$enableval" = yes; then
3c907f20 6474 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6475 else
3c907f20 6476 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6477 fi
e6cc62c6 6478
10f2d63a 6479else
e6cc62c6 6480
3c907f20 6481 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6482 if test "x$LINE" != x ; then
6483 eval "DEFAULT_$LINE"
6484 else
6485 no_cache=1
6486 fi
6487
3c907f20 6488 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6489
e6cc62c6 6490fi;
10f2d63a 6491
3c907f20 6492 eval "$ac_cv_use_prologio"
10f2d63a 6493 if test "$no_cache" != 1; then
3c907f20 6494 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6495 fi
6496
3c907f20 6497 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6498 echo "$as_me:$LINENO: result: yes" >&5
6499echo "${ECHO_T}yes" >&6
10f2d63a 6500 else
e6cc62c6
VS
6501 echo "$as_me:$LINENO: result: no" >&5
6502echo "${ECHO_T}no" >&6
10f2d63a 6503 fi
e6cc62c6 6504
8284b0c5 6505
5005acfe 6506 enablestring=
e6cc62c6
VS
6507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6508echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6509 no_cache=0
3c907f20
VZ
6510 # Check whether --enable-resources or --disable-resources was given.
6511if test "${enable_resources+set}" = set; then
6512 enableval="$enable_resources"
e6cc62c6 6513
10f2d63a 6514 if test "$enableval" = yes; then
3c907f20 6515 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6516 else
3c907f20 6517 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6518 fi
e6cc62c6 6519
10f2d63a 6520else
e6cc62c6 6521
3c907f20 6522 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6523 if test "x$LINE" != x ; then
6524 eval "DEFAULT_$LINE"
6525 else
6526 no_cache=1
6527 fi
6528
3c907f20 6529 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6530
e6cc62c6 6531fi;
10f2d63a 6532
3c907f20 6533 eval "$ac_cv_use_resources"
10f2d63a 6534 if test "$no_cache" != 1; then
3c907f20 6535 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6536 fi
6537
3c907f20 6538 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6539 echo "$as_me:$LINENO: result: yes" >&5
6540echo "${ECHO_T}yes" >&6
10f2d63a 6541 else
e6cc62c6
VS
6542 echo "$as_me:$LINENO: result: no" >&5
6543echo "${ECHO_T}no" >&6
10f2d63a 6544 fi
e6cc62c6 6545
8284b0c5
MB
6546
6547
52127426 6548
5005acfe 6549 enablestring=
e6cc62c6
VS
6550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6551echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6552 no_cache=0
6553 # Check whether --enable-clipboard or --disable-clipboard was given.
6554if test "${enable_clipboard+set}" = set; then
6555 enableval="$enable_clipboard"
e6cc62c6 6556
10f2d63a
VZ
6557 if test "$enableval" = yes; then
6558 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6559 else
6560 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6561 fi
e6cc62c6 6562
10f2d63a 6563else
e6cc62c6 6564
10f2d63a
VZ
6565 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6566 if test "x$LINE" != x ; then
6567 eval "DEFAULT_$LINE"
6568 else
6569 no_cache=1
6570 fi
6571
6572 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6573
e6cc62c6 6574fi;
10f2d63a
VZ
6575
6576 eval "$ac_cv_use_clipboard"
6577 if test "$no_cache" != 1; then
6578 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6579 fi
6580
6581 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6582 echo "$as_me:$LINENO: result: yes" >&5
6583echo "${ECHO_T}yes" >&6
10f2d63a 6584 else
e6cc62c6
VS
6585 echo "$as_me:$LINENO: result: no" >&5
6586echo "${ECHO_T}no" >&6
10f2d63a 6587 fi
e6cc62c6 6588
10f2d63a 6589
5005acfe 6590 enablestring=
e6cc62c6
VS
6591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6592echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6593 no_cache=0
6594 # Check whether --enable-dnd or --disable-dnd was given.
6595if test "${enable_dnd+set}" = set; then
6596 enableval="$enable_dnd"
e6cc62c6 6597
10f2d63a
VZ
6598 if test "$enableval" = yes; then
6599 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6600 else
6601 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6602 fi
e6cc62c6 6603
10f2d63a 6604else
e6cc62c6 6605
10f2d63a
VZ
6606 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6607 if test "x$LINE" != x ; then
6608 eval "DEFAULT_$LINE"
6609 else
6610 no_cache=1
6611 fi
6612
6613 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6614
e6cc62c6 6615fi;
10f2d63a
VZ
6616
6617 eval "$ac_cv_use_dnd"
6618 if test "$no_cache" != 1; then
6619 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6620 fi
6621
6622 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6623 echo "$as_me:$LINENO: result: yes" >&5
6624echo "${ECHO_T}yes" >&6
10f2d63a 6625 else
e6cc62c6
VS
6626 echo "$as_me:$LINENO: result: no" >&5
6627echo "${ECHO_T}no" >&6
10f2d63a 6628 fi
e6cc62c6 6629
10f2d63a 6630
5005acfe 6631 enablestring=
e6cc62c6
VS
6632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6633echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6634 no_cache=0
6635 # Check whether --enable-metafile or --disable-metafile was given.
6636if test "${enable_metafile+set}" = set; then
6637 enableval="$enable_metafile"
e6cc62c6 6638
b64f0a5f
RL
6639 if test "$enableval" = yes; then
6640 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6641 else
6642 ac_cv_use_metafile='wxUSE_METAFILE=no'
6643 fi
e6cc62c6 6644
b64f0a5f 6645else
e6cc62c6 6646
b64f0a5f
RL
6647 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6648 if test "x$LINE" != x ; then
6649 eval "DEFAULT_$LINE"
6650 else
6651 no_cache=1
6652 fi
6653
6654 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6655
e6cc62c6 6656fi;
b64f0a5f
RL
6657
6658 eval "$ac_cv_use_metafile"
6659 if test "$no_cache" != 1; then
6660 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6661 fi
6662
6663 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6664 echo "$as_me:$LINENO: result: yes" >&5
6665echo "${ECHO_T}yes" >&6
b64f0a5f 6666 else
e6cc62c6
VS
6667 echo "$as_me:$LINENO: result: no" >&5
6668echo "${ECHO_T}no" >&6
b64f0a5f 6669 fi
e6cc62c6 6670
52127426 6671
8284b0c5 6672
52127426 6673
8284b0c5 6674
5005acfe 6675 enablestring=
e6cc62c6
VS
6676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6677echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6678 no_cache=0
6679 # Check whether --enable-controls or --disable-controls was given.
6680if test "${enable_controls+set}" = set; then
6681 enableval="$enable_controls"
e6cc62c6 6682
10f2d63a
VZ
6683 if test "$enableval" = yes; then
6684 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6685 else
6686 ac_cv_use_controls='wxUSE_CONTROLS=no'
6687 fi
e6cc62c6 6688
10f2d63a 6689else
e6cc62c6 6690
10f2d63a
VZ
6691 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6692 if test "x$LINE" != x ; then
6693 eval "DEFAULT_$LINE"
6694 else
6695 no_cache=1
6696 fi
6697
6698 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6699
e6cc62c6 6700fi;
10f2d63a
VZ
6701
6702 eval "$ac_cv_use_controls"
6703 if test "$no_cache" != 1; then
6704 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6705 fi
6706
6707 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6708 echo "$as_me:$LINENO: result: yes" >&5
6709echo "${ECHO_T}yes" >&6
10f2d63a 6710 else
e6cc62c6
VS
6711 echo "$as_me:$LINENO: result: no" >&5
6712echo "${ECHO_T}no" >&6
10f2d63a 6713 fi
e6cc62c6 6714
10f2d63a
VZ
6715
6716if test "$wxUSE_CONTROLS" = "yes"; then
6717 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6718 DEFAULT_wxUSE_BMPBUTTON=yes
6719 DEFAULT_wxUSE_BUTTON=yes
6720 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6721 DEFAULT_wxUSE_CARET=yes
6722 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6723 DEFAULT_wxUSE_CHECKBOX=yes
6724 DEFAULT_wxUSE_CHECKLISTBOX=yes
6725 DEFAULT_wxUSE_CHOICE=yes
6726 DEFAULT_wxUSE_GAUGE=yes
6727 DEFAULT_wxUSE_GRID=yes
10f2d63a 6728 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6729 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6730 DEFAULT_wxUSE_LISTBOX=yes
6731 DEFAULT_wxUSE_LISTCTRL=yes
6732 DEFAULT_wxUSE_NOTEBOOK=yes
6733 DEFAULT_wxUSE_RADIOBOX=yes
6734 DEFAULT_wxUSE_RADIOBTN=yes
6735 DEFAULT_wxUSE_SASH=yes
6736 DEFAULT_wxUSE_SCROLLBAR=yes
6737 DEFAULT_wxUSE_SLIDER=yes
6738 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6739 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6740 DEFAULT_wxUSE_SPLITTER=yes
6741 DEFAULT_wxUSE_STATBMP=yes
6742 DEFAULT_wxUSE_STATBOX=yes
6743 DEFAULT_wxUSE_STATLINE=yes
6744 DEFAULT_wxUSE_STATUSBAR=yes
6745 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6746 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6747 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6748 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6749 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6750 DEFAULT_wxUSE_TOOLTIPS=yes
6751 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6752 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6753 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6754elif test "$wxUSE_CONTROLS" = "no"; then
6755 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6756 DEFAULT_wxUSE_BMPBUTTON=no
6757 DEFAULT_wxUSE_BUTTON=no
6758 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6759 DEFAULT_wxUSE_CARET=no
6760 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6761 DEFAULT_wxUSE_CHECKBOX=no
6762 DEFAULT_wxUSE_CHECKLISTBOX=no
6763 DEFAULT_wxUSE_CHOICE=no
6764 DEFAULT_wxUSE_GAUGE=no
6765 DEFAULT_wxUSE_GRID=no
10f2d63a 6766 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6767 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6768 DEFAULT_wxUSE_LISTBOX=no
6769 DEFAULT_wxUSE_LISTCTRL=no
6770 DEFAULT_wxUSE_NOTEBOOK=no
6771 DEFAULT_wxUSE_RADIOBOX=no
6772 DEFAULT_wxUSE_RADIOBTN=no
6773 DEFAULT_wxUSE_SASH=no
6774 DEFAULT_wxUSE_SCROLLBAR=no
6775 DEFAULT_wxUSE_SLIDER=no
6776 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6777 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6778 DEFAULT_wxUSE_SPLITTER=no
6779 DEFAULT_wxUSE_STATBMP=no
6780 DEFAULT_wxUSE_STATBOX=no
6781 DEFAULT_wxUSE_STATLINE=no
6782 DEFAULT_wxUSE_STATUSBAR=no
6783 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6784 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6785 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6786 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6787 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6788 DEFAULT_wxUSE_TOOLTIPS=no
6789 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6790 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6791 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6792fi
6793
ac0c4cc3
DE
6794## FIXME: This is a blatant hack
6795if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6796 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6797 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6798 # Generic notebook requires tab dialog
6799 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6800 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6801 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6802 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6803fi
6804
8284b0c5 6805
5005acfe 6806 enablestring=
e6cc62c6
VS
6807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6808echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6809 no_cache=0
6810 # Check whether --enable-accel or --disable-accel was given.
6811if test "${enable_accel+set}" = set; then
6812 enableval="$enable_accel"
e6cc62c6 6813
10f2d63a
VZ
6814 if test "$enableval" = yes; then
6815 ac_cv_use_accel='wxUSE_ACCEL=yes'
6816 else
6817 ac_cv_use_accel='wxUSE_ACCEL=no'
6818 fi
e6cc62c6 6819
10f2d63a 6820else
e6cc62c6 6821
10f2d63a
VZ
6822 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6823 if test "x$LINE" != x ; then
6824 eval "DEFAULT_$LINE"
6825 else
6826 no_cache=1
6827 fi
6828
6829 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6830
e6cc62c6 6831fi;
10f2d63a
VZ
6832
6833 eval "$ac_cv_use_accel"
6834 if test "$no_cache" != 1; then
6835 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6836 fi
6837
6838 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6839 echo "$as_me:$LINENO: result: yes" >&5
6840echo "${ECHO_T}yes" >&6
10f2d63a 6841 else
e6cc62c6
VS
6842 echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6
10f2d63a 6844 fi
e6cc62c6 6845
10f2d63a 6846
5005acfe 6847 enablestring=
e6cc62c6
VS
6848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6849echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6850 no_cache=0
1e6feb95
VZ
6851 # Check whether --enable-button or --disable-button was given.
6852if test "${enable_button+set}" = set; then
6853 enableval="$enable_button"
e6cc62c6 6854
10f2d63a 6855 if test "$enableval" = yes; then
1e6feb95 6856 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6857 else
1e6feb95 6858 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6859 fi
e6cc62c6 6860
10f2d63a 6861else
e6cc62c6 6862
1e6feb95 6863 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6864 if test "x$LINE" != x ; then
6865 eval "DEFAULT_$LINE"
6866 else
6867 no_cache=1
6868 fi
6869
1e6feb95 6870 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6871
e6cc62c6 6872fi;
10f2d63a 6873
1e6feb95 6874 eval "$ac_cv_use_button"
10f2d63a 6875 if test "$no_cache" != 1; then
1e6feb95 6876 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6877 fi
6878
1e6feb95 6879 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6880 echo "$as_me:$LINENO: result: yes" >&5
6881echo "${ECHO_T}yes" >&6
10f2d63a 6882 else
e6cc62c6
VS
6883 echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6
10f2d63a 6885 fi
e6cc62c6 6886
10f2d63a 6887
5005acfe 6888 enablestring=
e6cc62c6
VS
6889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6890echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6891 no_cache=0
6892 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6893if test "${enable_bmpbutton+set}" = set; then
6894 enableval="$enable_bmpbutton"
e6cc62c6 6895
10f2d63a
VZ
6896 if test "$enableval" = yes; then
6897 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6898 else
6899 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6900 fi
e6cc62c6 6901
10f2d63a 6902else
e6cc62c6 6903
10f2d63a
VZ
6904 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6912
e6cc62c6 6913fi;
10f2d63a
VZ
6914
6915 eval "$ac_cv_use_bmpbutton"
6916 if test "$no_cache" != 1; then
6917 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6918 fi
6919
6920 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6921 echo "$as_me:$LINENO: result: yes" >&5
6922echo "${ECHO_T}yes" >&6
10f2d63a 6923 else
e6cc62c6
VS
6924 echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6
10f2d63a 6926 fi
e6cc62c6 6927
10f2d63a 6928
5005acfe 6929 enablestring=
e6cc62c6
VS
6930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6931echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6932 no_cache=0
6933 # Check whether --enable-calendar or --disable-calendar was given.
6934if test "${enable_calendar+set}" = set; then
6935 enableval="$enable_calendar"
e6cc62c6 6936
1e6feb95
VZ
6937 if test "$enableval" = yes; then
6938 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6939 else
6940 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6941 fi
e6cc62c6 6942
1e6feb95 6943else
e6cc62c6 6944
1e6feb95
VZ
6945 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6946 if test "x$LINE" != x ; then
6947 eval "DEFAULT_$LINE"
6948 else
6949 no_cache=1
6950 fi
6951
6952 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6953
e6cc62c6 6954fi;
1e6feb95
VZ
6955
6956 eval "$ac_cv_use_calendar"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6962 echo "$as_me:$LINENO: result: yes" >&5
6963echo "${ECHO_T}yes" >&6
1e6feb95 6964 else
e6cc62c6
VS
6965 echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6
1e6feb95 6967 fi
e6cc62c6 6968
1e6feb95 6969
5005acfe 6970 enablestring=
e6cc62c6
VS
6971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6972echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6973 no_cache=0
6974 # Check whether --enable-caret or --disable-caret was given.
6975if test "${enable_caret+set}" = set; then
6976 enableval="$enable_caret"
e6cc62c6 6977
1e6feb95
VZ
6978 if test "$enableval" = yes; then
6979 ac_cv_use_caret='wxUSE_CARET=yes'
6980 else
6981 ac_cv_use_caret='wxUSE_CARET=no'
6982 fi
e6cc62c6 6983
1e6feb95 6984else
e6cc62c6 6985
1e6feb95
VZ
6986 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6987 if test "x$LINE" != x ; then
6988 eval "DEFAULT_$LINE"
6989 else
6990 no_cache=1
6991 fi
6992
6993 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6994
e6cc62c6 6995fi;
1e6feb95
VZ
6996
6997 eval "$ac_cv_use_caret"
6998 if test "$no_cache" != 1; then
6999 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7000 fi
7001
7002 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
7003 echo "$as_me:$LINENO: result: yes" >&5
7004echo "${ECHO_T}yes" >&6
1e6feb95 7005 else
e6cc62c6
VS
7006 echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6
1e6feb95 7008 fi
e6cc62c6 7009
1e6feb95 7010
5005acfe 7011 enablestring=
e6cc62c6
VS
7012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7013echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
7014 no_cache=0
7015 # Check whether --enable-checkbox or --disable-checkbox was given.
7016if test "${enable_checkbox+set}" = set; then
7017 enableval="$enable_checkbox"
e6cc62c6 7018
10f2d63a
VZ
7019 if test "$enableval" = yes; then
7020 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7021 else
7022 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7023 fi
e6cc62c6 7024
10f2d63a 7025else
e6cc62c6 7026
10f2d63a
VZ
7027 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7028 if test "x$LINE" != x ; then
7029 eval "DEFAULT_$LINE"
7030 else
7031 no_cache=1
7032 fi
7033
7034 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 7035
e6cc62c6 7036fi;
10f2d63a
VZ
7037
7038 eval "$ac_cv_use_checkbox"
7039 if test "$no_cache" != 1; then
7040 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7041 fi
7042
7043 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
7044 echo "$as_me:$LINENO: result: yes" >&5
7045echo "${ECHO_T}yes" >&6
10f2d63a 7046 else
e6cc62c6
VS
7047 echo "$as_me:$LINENO: result: no" >&5
7048echo "${ECHO_T}no" >&6
10f2d63a 7049 fi
e6cc62c6 7050
10f2d63a 7051
5005acfe 7052 enablestring=
e6cc62c6
VS
7053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7054echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
7055 no_cache=0
7056 # Check whether --enable-checklst or --disable-checklst was given.
7057if test "${enable_checklst+set}" = set; then
7058 enableval="$enable_checklst"
e6cc62c6 7059
10f2d63a
VZ
7060 if test "$enableval" = yes; then
7061 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7062 else
7063 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7064 fi
e6cc62c6 7065
10f2d63a 7066else
e6cc62c6 7067
10f2d63a
VZ
7068 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7069 if test "x$LINE" != x ; then
7070 eval "DEFAULT_$LINE"
7071 else
7072 no_cache=1
7073 fi
7074
7075 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 7076
e6cc62c6 7077fi;
10f2d63a
VZ
7078
7079 eval "$ac_cv_use_checklst"
7080 if test "$no_cache" != 1; then
7081 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7082 fi
7083
7084 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
7085 echo "$as_me:$LINENO: result: yes" >&5
7086echo "${ECHO_T}yes" >&6
10f2d63a 7087 else
e6cc62c6
VS
7088 echo "$as_me:$LINENO: result: no" >&5
7089echo "${ECHO_T}no" >&6
10f2d63a 7090 fi
e6cc62c6 7091
10f2d63a 7092
5005acfe 7093 enablestring=
e6cc62c6
VS
7094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7095echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
7096 no_cache=0
7097 # Check whether --enable-choice or --disable-choice was given.
7098if test "${enable_choice+set}" = set; then
7099 enableval="$enable_choice"
e6cc62c6 7100
10f2d63a
VZ
7101 if test "$enableval" = yes; then
7102 ac_cv_use_choice='wxUSE_CHOICE=yes'
7103 else
7104 ac_cv_use_choice='wxUSE_CHOICE=no'
7105 fi
e6cc62c6 7106
10f2d63a 7107else
e6cc62c6 7108
10f2d63a
VZ
7109 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7110 if test "x$LINE" != x ; then
7111 eval "DEFAULT_$LINE"
7112 else
7113 no_cache=1
7114 fi
7115
7116 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 7117
e6cc62c6 7118fi;
10f2d63a
VZ
7119
7120 eval "$ac_cv_use_choice"
7121 if test "$no_cache" != 1; then
7122 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7123 fi
7124
7125 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
7126 echo "$as_me:$LINENO: result: yes" >&5
7127echo "${ECHO_T}yes" >&6
10f2d63a 7128 else
e6cc62c6
VS
7129 echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6
10f2d63a 7131 fi
e6cc62c6 7132
10f2d63a 7133
5005acfe 7134 enablestring=
e6cc62c6
VS
7135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7136echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
7137 no_cache=0
7138 # Check whether --enable-combobox or --disable-combobox was given.
7139if test "${enable_combobox+set}" = set; then
7140 enableval="$enable_combobox"
e6cc62c6 7141
10f2d63a
VZ
7142 if test "$enableval" = yes; then
7143 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7144 else
7145 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7146 fi
e6cc62c6 7147
10f2d63a 7148else
e6cc62c6 7149
10f2d63a
VZ
7150 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7151 if test "x$LINE" != x ; then
7152 eval "DEFAULT_$LINE"
7153 else
7154 no_cache=1
7155 fi
7156
7157 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 7158
e6cc62c6 7159fi;
10f2d63a
VZ
7160
7161 eval "$ac_cv_use_combobox"
7162 if test "$no_cache" != 1; then
7163 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7164 fi
7165
7166 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
7167 echo "$as_me:$LINENO: result: yes" >&5
7168echo "${ECHO_T}yes" >&6
10f2d63a 7169 else
e6cc62c6
VS
7170 echo "$as_me:$LINENO: result: no" >&5
7171echo "${ECHO_T}no" >&6
10f2d63a 7172 fi
e6cc62c6 7173
10f2d63a 7174
da494b40 7175 enablestring=
e6cc62c6
VS
7176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7177echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
7178 no_cache=0
7179 # Check whether --enable-display or --disable-display was given.
7180if test "${enable_display+set}" = set; then
7181 enableval="$enable_display"
e6cc62c6 7182
da494b40
MB
7183 if test "$enableval" = yes; then
7184 ac_cv_use_display='wxUSE_DISPLAY=yes'
7185 else
7186 ac_cv_use_display='wxUSE_DISPLAY=no'
7187 fi
e6cc62c6 7188
da494b40 7189else
e6cc62c6 7190
da494b40
MB
7191 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7192 if test "x$LINE" != x ; then
7193 eval "DEFAULT_$LINE"
7194 else
7195 no_cache=1
7196 fi
7197
7198 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 7199
e6cc62c6 7200fi;
da494b40
MB
7201
7202 eval "$ac_cv_use_display"
7203 if test "$no_cache" != 1; then
7204 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7205 fi
7206
7207 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
7208 echo "$as_me:$LINENO: result: yes" >&5
7209echo "${ECHO_T}yes" >&6
da494b40 7210 else
e6cc62c6
VS
7211 echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6
da494b40 7213 fi
e6cc62c6 7214
da494b40 7215
5005acfe 7216 enablestring=
e6cc62c6
VS
7217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7218echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
7219 no_cache=0
7220 # Check whether --enable-gauge or --disable-gauge was given.
7221if test "${enable_gauge+set}" = set; then
7222 enableval="$enable_gauge"
e6cc62c6 7223
10f2d63a
VZ
7224 if test "$enableval" = yes; then
7225 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7226 else
7227 ac_cv_use_gauge='wxUSE_GAUGE=no'
7228 fi
e6cc62c6 7229
10f2d63a 7230else
e6cc62c6 7231
10f2d63a
VZ
7232 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7233 if test "x$LINE" != x ; then
7234 eval "DEFAULT_$LINE"
7235 else
7236 no_cache=1
7237 fi
7238
7239 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7240
e6cc62c6 7241fi;
10f2d63a
VZ
7242
7243 eval "$ac_cv_use_gauge"
7244 if test "$no_cache" != 1; then
7245 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7246 fi
7247
7248 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7249 echo "$as_me:$LINENO: result: yes" >&5
7250echo "${ECHO_T}yes" >&6
10f2d63a 7251 else
e6cc62c6
VS
7252 echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6
10f2d63a 7254 fi
e6cc62c6 7255
10f2d63a 7256
5005acfe 7257 enablestring=
e6cc62c6
VS
7258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7259echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7260 no_cache=0
7261 # Check whether --enable-grid or --disable-grid was given.
7262if test "${enable_grid+set}" = set; then
7263 enableval="$enable_grid"
e6cc62c6 7264
10f2d63a
VZ
7265 if test "$enableval" = yes; then
7266 ac_cv_use_grid='wxUSE_GRID=yes'
7267 else
7268 ac_cv_use_grid='wxUSE_GRID=no'
7269 fi
e6cc62c6 7270
10f2d63a 7271else
e6cc62c6 7272
10f2d63a
VZ
7273 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7274 if test "x$LINE" != x ; then
7275 eval "DEFAULT_$LINE"
7276 else
7277 no_cache=1
7278 fi
7279
7280 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7281
e6cc62c6 7282fi;
10f2d63a
VZ
7283
7284 eval "$ac_cv_use_grid"
7285 if test "$no_cache" != 1; then
7286 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7287 fi
7288
7289 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7290 echo "$as_me:$LINENO: result: yes" >&5
7291echo "${ECHO_T}yes" >&6
10f2d63a 7292 else
e6cc62c6
VS
7293 echo "$as_me:$LINENO: result: no" >&5
7294echo "${ECHO_T}no" >&6
10f2d63a 7295 fi
e6cc62c6 7296
10f2d63a 7297
5005acfe 7298 enablestring=
e6cc62c6
VS
7299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7300echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7301 no_cache=0
7302 # Check whether --enable-imaglist or --disable-imaglist was given.
7303if test "${enable_imaglist+set}" = set; then
7304 enableval="$enable_imaglist"
e6cc62c6 7305
10f2d63a
VZ
7306 if test "$enableval" = yes; then
7307 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7308 else
7309 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7310 fi
e6cc62c6 7311
10f2d63a 7312else
e6cc62c6 7313
10f2d63a
VZ
7314 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7315 if test "x$LINE" != x ; then
7316 eval "DEFAULT_$LINE"
7317 else
7318 no_cache=1
7319 fi
7320
7321 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7322
e6cc62c6 7323fi;
10f2d63a
VZ
7324
7325 eval "$ac_cv_use_imaglist"
7326 if test "$no_cache" != 1; then
7327 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7328 fi
7329
7330 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7331 echo "$as_me:$LINENO: result: yes" >&5
7332echo "${ECHO_T}yes" >&6
10f2d63a 7333 else
e6cc62c6
VS
7334 echo "$as_me:$LINENO: result: no" >&5
7335echo "${ECHO_T}no" >&6
10f2d63a 7336 fi
e6cc62c6 7337
10f2d63a 7338
0e012a93
VZ
7339 enablestring=
7340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7341echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7342 no_cache=0
7343 # Check whether --enable-listbook or --disable-listbook was given.
7344if test "${enable_listbook+set}" = set; then
7345 enableval="$enable_listbook"
7346
7347 if test "$enableval" = yes; then
7348 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7349 else
7350 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7351 fi
7352
7353else
7354
7355 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7356 if test "x$LINE" != x ; then
7357 eval "DEFAULT_$LINE"
7358 else
7359 no_cache=1
7360 fi
7361
7362 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7363
7364fi;
7365
7366 eval "$ac_cv_use_listbook"
7367 if test "$no_cache" != 1; then
7368 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7369 fi
7370
7371 if test "$wxUSE_LISTBOOK" = yes; then
7372 echo "$as_me:$LINENO: result: yes" >&5
7373echo "${ECHO_T}yes" >&6
7374 else
7375 echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6
7377 fi
7378
7379
5005acfe 7380 enablestring=
e6cc62c6
VS
7381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7382echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7383 no_cache=0
7384 # Check whether --enable-listbox or --disable-listbox was given.
7385if test "${enable_listbox+set}" = set; then
7386 enableval="$enable_listbox"
e6cc62c6 7387
10f2d63a
VZ
7388 if test "$enableval" = yes; then
7389 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7390 else
7391 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7392 fi
e6cc62c6 7393
10f2d63a 7394else
e6cc62c6 7395
10f2d63a
VZ
7396 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7397 if test "x$LINE" != x ; then
7398 eval "DEFAULT_$LINE"
7399 else
7400 no_cache=1
7401 fi
7402
7403 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7404
e6cc62c6 7405fi;
10f2d63a
VZ
7406
7407 eval "$ac_cv_use_listbox"
7408 if test "$no_cache" != 1; then
7409 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7410 fi
7411
7412 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7413 echo "$as_me:$LINENO: result: yes" >&5
7414echo "${ECHO_T}yes" >&6
10f2d63a 7415 else
e6cc62c6
VS
7416 echo "$as_me:$LINENO: result: no" >&5
7417echo "${ECHO_T}no" >&6
10f2d63a 7418 fi
e6cc62c6 7419
10f2d63a 7420
5005acfe 7421 enablestring=
e6cc62c6
VS
7422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7423echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7424 no_cache=0
7425 # Check whether --enable-listctrl or --disable-listctrl was given.
7426if test "${enable_listctrl+set}" = set; then
7427 enableval="$enable_listctrl"
e6cc62c6 7428
10f2d63a
VZ
7429 if test "$enableval" = yes; then
7430 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7431 else
7432 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7433 fi
e6cc62c6 7434
10f2d63a 7435else
e6cc62c6 7436
10f2d63a
VZ
7437 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7438 if test "x$LINE" != x ; then
7439 eval "DEFAULT_$LINE"
7440 else
7441 no_cache=1
7442 fi
7443
7444 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7445
e6cc62c6 7446fi;
10f2d63a
VZ
7447
7448 eval "$ac_cv_use_listctrl"
7449 if test "$no_cache" != 1; then
7450 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7451 fi
7452
7453 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7454 echo "$as_me:$LINENO: result: yes" >&5
7455echo "${ECHO_T}yes" >&6
10f2d63a 7456 else
e6cc62c6
VS
7457 echo "$as_me:$LINENO: result: no" >&5
7458echo "${ECHO_T}no" >&6
10f2d63a 7459 fi
e6cc62c6 7460
10f2d63a 7461
5005acfe 7462 enablestring=
e6cc62c6
VS
7463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7464echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7465 no_cache=0
7466 # Check whether --enable-notebook or --disable-notebook was given.
7467if test "${enable_notebook+set}" = set; then
7468 enableval="$enable_notebook"
e6cc62c6 7469
10f2d63a
VZ
7470 if test "$enableval" = yes; then
7471 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7472 else
7473 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7474 fi
e6cc62c6 7475
10f2d63a 7476else
e6cc62c6 7477
10f2d63a
VZ
7478 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7479 if test "x$LINE" != x ; then
7480 eval "DEFAULT_$LINE"
7481 else
7482 no_cache=1
7483 fi
7484
7485 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7486
e6cc62c6 7487fi;
10f2d63a
VZ
7488
7489 eval "$ac_cv_use_notebook"
7490 if test "$no_cache" != 1; then
7491 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7492 fi
7493
7494 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7495 echo "$as_me:$LINENO: result: yes" >&5
7496echo "${ECHO_T}yes" >&6
10f2d63a 7497 else
e6cc62c6
VS
7498 echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6
10f2d63a 7500 fi
e6cc62c6 7501
10f2d63a 7502
5005acfe 7503 enablestring=
e6cc62c6
VS
7504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7505echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7506 no_cache=0
7507 # Check whether --enable-radiobox or --disable-radiobox was given.
7508if test "${enable_radiobox+set}" = set; then
7509 enableval="$enable_radiobox"
e6cc62c6 7510
10f2d63a
VZ
7511 if test "$enableval" = yes; then
7512 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7513 else
7514 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7515 fi
e6cc62c6 7516
10f2d63a 7517else
e6cc62c6 7518
10f2d63a
VZ
7519 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7520 if test "x$LINE" != x ; then
7521 eval "DEFAULT_$LINE"
7522 else
7523 no_cache=1
7524 fi
7525
7526 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7527
e6cc62c6 7528fi;
10f2d63a
VZ
7529
7530 eval "$ac_cv_use_radiobox"
7531 if test "$no_cache" != 1; then
7532 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7533 fi
7534
7535 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7536 echo "$as_me:$LINENO: result: yes" >&5
7537echo "${ECHO_T}yes" >&6
10f2d63a 7538 else
e6cc62c6
VS
7539 echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6
10f2d63a 7541 fi
e6cc62c6 7542
10f2d63a 7543
5005acfe 7544 enablestring=
e6cc62c6
VS
7545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7546echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7547 no_cache=0
7548 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7549if test "${enable_radiobtn+set}" = set; then
7550 enableval="$enable_radiobtn"
e6cc62c6 7551
10f2d63a
VZ
7552 if test "$enableval" = yes; then
7553 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7554 else
7555 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7556 fi
e6cc62c6 7557
10f2d63a 7558else
e6cc62c6 7559
10f2d63a
VZ
7560 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7561 if test "x$LINE" != x ; then
7562 eval "DEFAULT_$LINE"
7563 else
7564 no_cache=1
7565 fi
7566
7567 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7568
e6cc62c6 7569fi;
10f2d63a
VZ
7570
7571 eval "$ac_cv_use_radiobtn"
7572 if test "$no_cache" != 1; then
7573 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7574 fi
7575
7576 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7577 echo "$as_me:$LINENO: result: yes" >&5
7578echo "${ECHO_T}yes" >&6
10f2d63a 7579 else
e6cc62c6
VS
7580 echo "$as_me:$LINENO: result: no" >&5
7581echo "${ECHO_T}no" >&6
10f2d63a 7582 fi
e6cc62c6 7583
10f2d63a 7584
5005acfe 7585 enablestring=
e6cc62c6
VS
7586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7587echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7588 no_cache=0
7589 # Check whether --enable-sash or --disable-sash was given.
7590if test "${enable_sash+set}" = set; then
7591 enableval="$enable_sash"
e6cc62c6 7592
10f2d63a
VZ
7593 if test "$enableval" = yes; then
7594 ac_cv_use_sash='wxUSE_SASH=yes'
7595 else
7596 ac_cv_use_sash='wxUSE_SASH=no'
7597 fi
e6cc62c6 7598
10f2d63a 7599else
e6cc62c6 7600
10f2d63a
VZ
7601 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7602 if test "x$LINE" != x ; then
7603 eval "DEFAULT_$LINE"
7604 else
7605 no_cache=1
7606 fi
7607
7608 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7609
e6cc62c6 7610fi;
10f2d63a
VZ
7611
7612 eval "$ac_cv_use_sash"
7613 if test "$no_cache" != 1; then
7614 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7615 fi
7616
7617 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7618 echo "$as_me:$LINENO: result: yes" >&5
7619echo "${ECHO_T}yes" >&6
10f2d63a 7620 else
e6cc62c6
VS
7621 echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
10f2d63a 7623 fi
e6cc62c6 7624
10f2d63a 7625
5005acfe 7626 enablestring=
e6cc62c6
VS
7627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7628echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7629 no_cache=0
7630 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7631if test "${enable_scrollbar+set}" = set; then
7632 enableval="$enable_scrollbar"
e6cc62c6 7633
10f2d63a
VZ
7634 if test "$enableval" = yes; then
7635 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7636 else
7637 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7638 fi
e6cc62c6 7639
10f2d63a 7640else
e6cc62c6 7641
10f2d63a
VZ
7642 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7643 if test "x$LINE" != x ; then
7644 eval "DEFAULT_$LINE"
7645 else
7646 no_cache=1
7647 fi
7648
7649 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7650
e6cc62c6 7651fi;
10f2d63a
VZ
7652
7653 eval "$ac_cv_use_scrollbar"
7654 if test "$no_cache" != 1; then
7655 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7656 fi
7657
7658 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7659 echo "$as_me:$LINENO: result: yes" >&5
7660echo "${ECHO_T}yes" >&6
10f2d63a 7661 else
e6cc62c6
VS
7662 echo "$as_me:$LINENO: result: no" >&5
7663echo "${ECHO_T}no" >&6
10f2d63a 7664 fi
e6cc62c6 7665
10f2d63a 7666
5005acfe 7667 enablestring=
e6cc62c6
VS
7668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7669echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7670 no_cache=0
7671 # Check whether --enable-slider or --disable-slider was given.
7672if test "${enable_slider+set}" = set; then
7673 enableval="$enable_slider"
e6cc62c6 7674
10f2d63a
VZ
7675 if test "$enableval" = yes; then
7676 ac_cv_use_slider='wxUSE_SLIDER=yes'
7677 else
7678 ac_cv_use_slider='wxUSE_SLIDER=no'
7679 fi
e6cc62c6 7680
10f2d63a 7681else
e6cc62c6 7682
10f2d63a
VZ
7683 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7684 if test "x$LINE" != x ; then
7685 eval "DEFAULT_$LINE"
7686 else
7687 no_cache=1
7688 fi
7689
7690 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7691
e6cc62c6 7692fi;
10f2d63a
VZ
7693
7694 eval "$ac_cv_use_slider"
7695 if test "$no_cache" != 1; then
7696 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7697 fi
7698
7699 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7700 echo "$as_me:$LINENO: result: yes" >&5
7701echo "${ECHO_T}yes" >&6
10f2d63a 7702 else
e6cc62c6
VS
7703 echo "$as_me:$LINENO: result: no" >&5
7704echo "${ECHO_T}no" >&6
10f2d63a 7705 fi
e6cc62c6 7706
10f2d63a 7707
5005acfe 7708 enablestring=
e6cc62c6
VS
7709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7710echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7711 no_cache=0
7712 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7713if test "${enable_spinbtn+set}" = set; then
7714 enableval="$enable_spinbtn"
e6cc62c6 7715
10f2d63a
VZ
7716 if test "$enableval" = yes; then
7717 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7718 else
7719 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7720 fi
e6cc62c6 7721
10f2d63a 7722else
e6cc62c6 7723
10f2d63a
VZ
7724 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7725 if test "x$LINE" != x ; then
7726 eval "DEFAULT_$LINE"
7727 else
7728 no_cache=1
7729 fi
7730
7731 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7732
e6cc62c6 7733fi;
10f2d63a
VZ
7734
7735 eval "$ac_cv_use_spinbtn"
7736 if test "$no_cache" != 1; then
7737 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7738 fi
7739
7740 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7741 echo "$as_me:$LINENO: result: yes" >&5
7742echo "${ECHO_T}yes" >&6
10f2d63a 7743 else
e6cc62c6
VS
7744 echo "$as_me:$LINENO: result: no" >&5
7745echo "${ECHO_T}no" >&6
10f2d63a 7746 fi
e6cc62c6 7747
10f2d63a 7748
5005acfe 7749 enablestring=
e6cc62c6
VS
7750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7751echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7752 no_cache=0
7753 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7754if test "${enable_spinctrl+set}" = set; then
7755 enableval="$enable_spinctrl"
e6cc62c6 7756
56cfaa52
RR
7757 if test "$enableval" = yes; then
7758 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7759 else
7760 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7761 fi
e6cc62c6 7762
56cfaa52 7763else
e6cc62c6 7764
56cfaa52
RR
7765 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7766 if test "x$LINE" != x ; then
7767 eval "DEFAULT_$LINE"
7768 else
7769 no_cache=1
7770 fi
7771
7772 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7773
e6cc62c6 7774fi;
56cfaa52
RR
7775
7776 eval "$ac_cv_use_spinctrl"
7777 if test "$no_cache" != 1; then
7778 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7779 fi
7780
7781 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7782 echo "$as_me:$LINENO: result: yes" >&5
7783echo "${ECHO_T}yes" >&6
56cfaa52 7784 else
e6cc62c6
VS
7785 echo "$as_me:$LINENO: result: no" >&5
7786echo "${ECHO_T}no" >&6
56cfaa52 7787 fi
e6cc62c6 7788
56cfaa52 7789
5005acfe 7790 enablestring=
e6cc62c6
VS
7791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7792echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7793 no_cache=0
7794 # Check whether --enable-splitter or --disable-splitter was given.
7795if test "${enable_splitter+set}" = set; then
7796 enableval="$enable_splitter"
e6cc62c6 7797
10f2d63a
VZ
7798 if test "$enableval" = yes; then
7799 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7800 else
7801 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7802 fi
e6cc62c6 7803
10f2d63a 7804else
e6cc62c6 7805
10f2d63a
VZ
7806 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7807 if test "x$LINE" != x ; then
7808 eval "DEFAULT_$LINE"
7809 else
7810 no_cache=1
7811 fi
7812
7813 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7814
e6cc62c6 7815fi;
10f2d63a
VZ
7816
7817 eval "$ac_cv_use_splitter"
7818 if test "$no_cache" != 1; then
7819 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7820 fi
7821
7822 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7823 echo "$as_me:$LINENO: result: yes" >&5
7824echo "${ECHO_T}yes" >&6
10f2d63a 7825 else
e6cc62c6
VS
7826 echo "$as_me:$LINENO: result: no" >&5
7827echo "${ECHO_T}no" >&6
10f2d63a 7828 fi
e6cc62c6 7829
10f2d63a 7830
5005acfe 7831 enablestring=
e6cc62c6
VS
7832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7833echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7834 no_cache=0
7835 # Check whether --enable-statbmp or --disable-statbmp was given.
7836if test "${enable_statbmp+set}" = set; then
7837 enableval="$enable_statbmp"
e6cc62c6 7838
10f2d63a
VZ
7839 if test "$enableval" = yes; then
7840 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7841 else
7842 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7843 fi
e6cc62c6 7844
10f2d63a 7845else
e6cc62c6 7846
10f2d63a
VZ
7847 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7848 if test "x$LINE" != x ; then
7849 eval "DEFAULT_$LINE"
7850 else
7851 no_cache=1
7852 fi
7853
7854 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7855
e6cc62c6 7856fi;
10f2d63a
VZ
7857
7858 eval "$ac_cv_use_statbmp"
7859 if test "$no_cache" != 1; then
7860 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7861 fi
7862
7863 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7864 echo "$as_me:$LINENO: result: yes" >&5
7865echo "${ECHO_T}yes" >&6
10f2d63a 7866 else
e6cc62c6
VS
7867 echo "$as_me:$LINENO: result: no" >&5
7868echo "${ECHO_T}no" >&6
10f2d63a 7869 fi
e6cc62c6 7870
10f2d63a 7871
5005acfe 7872 enablestring=
e6cc62c6
VS
7873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7874echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7875 no_cache=0
7876 # Check whether --enable-statbox or --disable-statbox was given.
7877if test "${enable_statbox+set}" = set; then
7878 enableval="$enable_statbox"
e6cc62c6 7879
10f2d63a
VZ
7880 if test "$enableval" = yes; then
7881 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7882 else
7883 ac_cv_use_statbox='wxUSE_STATBOX=no'
7884 fi
e6cc62c6 7885
10f2d63a 7886else
e6cc62c6 7887
10f2d63a
VZ
7888 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7889 if test "x$LINE" != x ; then
7890 eval "DEFAULT_$LINE"
7891 else
7892 no_cache=1
7893 fi
7894
7895 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7896
e6cc62c6 7897fi;
10f2d63a
VZ
7898
7899 eval "$ac_cv_use_statbox"
7900 if test "$no_cache" != 1; then
7901 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7902 fi
7903
7904 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7905 echo "$as_me:$LINENO: result: yes" >&5
7906echo "${ECHO_T}yes" >&6
10f2d63a 7907 else
e6cc62c6
VS
7908 echo "$as_me:$LINENO: result: no" >&5
7909echo "${ECHO_T}no" >&6
10f2d63a 7910 fi
e6cc62c6 7911
10f2d63a 7912
5005acfe 7913 enablestring=
e6cc62c6
VS
7914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7915echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7916 no_cache=0
7917 # Check whether --enable-statline or --disable-statline was given.
7918if test "${enable_statline+set}" = set; then
7919 enableval="$enable_statline"
e6cc62c6 7920
10f2d63a
VZ
7921 if test "$enableval" = yes; then
7922 ac_cv_use_statline='wxUSE_STATLINE=yes'
7923 else
7924 ac_cv_use_statline='wxUSE_STATLINE=no'
7925 fi
e6cc62c6 7926
10f2d63a 7927else
e6cc62c6 7928
10f2d63a
VZ
7929 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7930 if test "x$LINE" != x ; then
7931 eval "DEFAULT_$LINE"
7932 else
7933 no_cache=1
7934 fi
7935
7936 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7937
e6cc62c6 7938fi;
10f2d63a
VZ
7939
7940 eval "$ac_cv_use_statline"
7941 if test "$no_cache" != 1; then
7942 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7943 fi
7944
7945 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7946 echo "$as_me:$LINENO: result: yes" >&5
7947echo "${ECHO_T}yes" >&6
10f2d63a 7948 else
e6cc62c6
VS
7949 echo "$as_me:$LINENO: result: no" >&5
7950echo "${ECHO_T}no" >&6
10f2d63a 7951 fi
e6cc62c6 7952
10f2d63a 7953
5005acfe 7954 enablestring=
e6cc62c6
VS
7955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7956echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7957 no_cache=0
7958 # Check whether --enable-stattext or --disable-stattext was given.
7959if test "${enable_stattext+set}" = set; then
7960 enableval="$enable_stattext"
e6cc62c6 7961
1e6feb95
VZ
7962 if test "$enableval" = yes; then
7963 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7964 else
7965 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7966 fi
e6cc62c6 7967
1e6feb95 7968else
e6cc62c6 7969
1e6feb95
VZ
7970 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7971 if test "x$LINE" != x ; then
7972 eval "DEFAULT_$LINE"
7973 else
7974 no_cache=1
7975 fi
7976
7977 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7978
e6cc62c6 7979fi;
1e6feb95
VZ
7980
7981 eval "$ac_cv_use_stattext"
7982 if test "$no_cache" != 1; then
7983 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7984 fi
7985
7986 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7987 echo "$as_me:$LINENO: result: yes" >&5
7988echo "${ECHO_T}yes" >&6
1e6feb95 7989 else
e6cc62c6
VS
7990 echo "$as_me:$LINENO: result: no" >&5
7991echo "${ECHO_T}no" >&6
1e6feb95 7992 fi
e6cc62c6 7993
1e6feb95 7994
5005acfe 7995 enablestring=
e6cc62c6
VS
7996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7997echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7998 no_cache=0
7999 # Check whether --enable-statusbar or --disable-statusbar was given.
8000if test "${enable_statusbar+set}" = set; then
8001 enableval="$enable_statusbar"
e6cc62c6 8002
10f2d63a
VZ
8003 if test "$enableval" = yes; then
8004 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8005 else
8006 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8007 fi
e6cc62c6 8008
10f2d63a 8009else
e6cc62c6 8010
10f2d63a
VZ
8011 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8012 if test "x$LINE" != x ; then
8013 eval "DEFAULT_$LINE"
8014 else
8015 no_cache=1
8016 fi
8017
8018 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 8019
e6cc62c6 8020fi;
10f2d63a
VZ
8021
8022 eval "$ac_cv_use_statusbar"
8023 if test "$no_cache" != 1; then
8024 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8025 fi
8026
8027 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
8028 echo "$as_me:$LINENO: result: yes" >&5
8029echo "${ECHO_T}yes" >&6
10f2d63a 8030 else
e6cc62c6
VS
8031 echo "$as_me:$LINENO: result: no" >&5
8032echo "${ECHO_T}no" >&6
10f2d63a 8033 fi
e6cc62c6 8034
10f2d63a 8035
5005acfe 8036 enablestring=
e6cc62c6
VS
8037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8038echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
8039 no_cache=0
8040 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8041if test "${enable_tabdialog+set}" = set; then
8042 enableval="$enable_tabdialog"
e6cc62c6 8043
10f2d63a
VZ
8044 if test "$enableval" = yes; then
8045 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8046 else
8047 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8048 fi
e6cc62c6 8049
10f2d63a 8050else
e6cc62c6 8051
10f2d63a
VZ
8052 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8053 if test "x$LINE" != x ; then
8054 eval "DEFAULT_$LINE"
8055 else
8056 no_cache=1
8057 fi
8058
8059 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 8060
e6cc62c6 8061fi;
10f2d63a
VZ
8062
8063 eval "$ac_cv_use_tabdialog"
8064 if test "$no_cache" != 1; then
8065 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8066 fi
8067
8068 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
8069 echo "$as_me:$LINENO: result: yes" >&5
8070echo "${ECHO_T}yes" >&6
10f2d63a 8071 else
e6cc62c6
VS
8072 echo "$as_me:$LINENO: result: no" >&5
8073echo "${ECHO_T}no" >&6
10f2d63a 8074 fi
e6cc62c6 8075
10f2d63a 8076
5005acfe 8077 enablestring=
e6cc62c6
VS
8078 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8079echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
8080 no_cache=0
8081 # Check whether --enable-textctrl or --disable-textctrl was given.
8082if test "${enable_textctrl+set}" = set; then
8083 enableval="$enable_textctrl"
e6cc62c6 8084
1e6feb95
VZ
8085 if test "$enableval" = yes; then
8086 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8087 else
8088 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8089 fi
e6cc62c6 8090
1e6feb95 8091else
e6cc62c6 8092
1e6feb95
VZ
8093 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8094 if test "x$LINE" != x ; then
8095 eval "DEFAULT_$LINE"
8096 else
8097 no_cache=1
8098 fi
8099
8100 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 8101
e6cc62c6 8102fi;
1e6feb95
VZ
8103
8104 eval "$ac_cv_use_textctrl"
8105 if test "$no_cache" != 1; then
8106 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8107 fi
8108
8109 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
8110 echo "$as_me:$LINENO: result: yes" >&5
8111echo "${ECHO_T}yes" >&6
1e6feb95 8112 else
e6cc62c6
VS
8113 echo "$as_me:$LINENO: result: no" >&5
8114echo "${ECHO_T}no" >&6
1e6feb95 8115 fi
e6cc62c6 8116
1e6feb95 8117
5005acfe 8118 enablestring=
e6cc62c6
VS
8119 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8120echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
8121 no_cache=0
8122 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8123if test "${enable_togglebtn+set}" = set; then
8124 enableval="$enable_togglebtn"
e6cc62c6 8125
1db8dc4a
VZ
8126 if test "$enableval" = yes; then
8127 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8128 else
8129 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8130 fi
e6cc62c6 8131
1db8dc4a 8132else
e6cc62c6 8133
1db8dc4a
VZ
8134 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8135 if test "x$LINE" != x ; then
8136 eval "DEFAULT_$LINE"
8137 else
8138 no_cache=1
8139 fi
8140
8141 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 8142
e6cc62c6 8143fi;
1db8dc4a
VZ
8144
8145 eval "$ac_cv_use_togglebtn"
8146 if test "$no_cache" != 1; then
8147 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8148 fi
8149
8150 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
8151 echo "$as_me:$LINENO: result: yes" >&5
8152echo "${ECHO_T}yes" >&6
1db8dc4a 8153 else
e6cc62c6
VS
8154 echo "$as_me:$LINENO: result: no" >&5
8155echo "${ECHO_T}no" >&6
1db8dc4a 8156 fi
e6cc62c6 8157
1db8dc4a 8158
5005acfe 8159 enablestring=
e6cc62c6
VS
8160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8161echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
8162 no_cache=0
8163 # Check whether --enable-toolbar or --disable-toolbar was given.
8164if test "${enable_toolbar+set}" = set; then
8165 enableval="$enable_toolbar"
e6cc62c6 8166
10f2d63a
VZ
8167 if test "$enableval" = yes; then
8168 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8169 else
8170 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8171 fi
e6cc62c6 8172
10f2d63a 8173else
e6cc62c6 8174
10f2d63a
VZ
8175 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8176 if test "x$LINE" != x ; then
8177 eval "DEFAULT_$LINE"
8178 else
8179 no_cache=1
8180 fi
8181
8182 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 8183
e6cc62c6 8184fi;
10f2d63a
VZ
8185
8186 eval "$ac_cv_use_toolbar"
8187 if test "$no_cache" != 1; then
8188 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8189 fi
8190
8191 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
8192 echo "$as_me:$LINENO: result: yes" >&5
8193echo "${ECHO_T}yes" >&6
10f2d63a 8194 else
e6cc62c6
VS
8195 echo "$as_me:$LINENO: result: no" >&5
8196echo "${ECHO_T}no" >&6
10f2d63a 8197 fi
e6cc62c6 8198
10f2d63a 8199
5005acfe 8200 enablestring=
e6cc62c6
VS
8201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8202echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
8203 no_cache=0
8204 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8205if test "${enable_tbarnative+set}" = set; then
8206 enableval="$enable_tbarnative"
e6cc62c6 8207
360d6699
VZ
8208 if test "$enableval" = yes; then
8209 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8210 else
8211 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8212 fi
e6cc62c6 8213
360d6699 8214else
e6cc62c6 8215
360d6699
VZ
8216 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8217 if test "x$LINE" != x ; then
8218 eval "DEFAULT_$LINE"
8219 else
8220 no_cache=1
8221 fi
8222
8223 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 8224
e6cc62c6 8225fi;
360d6699
VZ
8226
8227 eval "$ac_cv_use_tbarnative"
8228 if test "$no_cache" != 1; then
8229 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8230 fi
8231
8232 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
8233 echo "$as_me:$LINENO: result: yes" >&5
8234echo "${ECHO_T}yes" >&6
360d6699 8235 else
e6cc62c6
VS
8236 echo "$as_me:$LINENO: result: no" >&5
8237echo "${ECHO_T}no" >&6
360d6699 8238 fi
e6cc62c6 8239
360d6699 8240
5005acfe 8241 enablestring=
e6cc62c6
VS
8242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8243echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
8244 no_cache=0
8245 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8246if test "${enable_tbarsmpl+set}" = set; then
8247 enableval="$enable_tbarsmpl"
e6cc62c6 8248
360d6699
VZ
8249 if test "$enableval" = yes; then
8250 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8251 else
8252 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8253 fi
e6cc62c6 8254
360d6699 8255else
e6cc62c6 8256
360d6699
VZ
8257 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8258 if test "x$LINE" != x ; then
8259 eval "DEFAULT_$LINE"
8260 else
8261 no_cache=1
8262 fi
8263
8264 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8265
e6cc62c6 8266fi;
360d6699
VZ
8267
8268 eval "$ac_cv_use_tbarsmpl"
8269 if test "$no_cache" != 1; then
8270 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8271 fi
8272
8273 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8274 echo "$as_me:$LINENO: result: yes" >&5
8275echo "${ECHO_T}yes" >&6
360d6699 8276 else
e6cc62c6
VS
8277 echo "$as_me:$LINENO: result: no" >&5
8278echo "${ECHO_T}no" >&6
360d6699 8279 fi
e6cc62c6 8280
360d6699 8281
5005acfe 8282 enablestring=
e6cc62c6
VS
8283 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8284echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8285 no_cache=0
8286 # Check whether --enable-treectrl or --disable-treectrl was given.
8287if test "${enable_treectrl+set}" = set; then
8288 enableval="$enable_treectrl"
e6cc62c6 8289
10f2d63a
VZ
8290 if test "$enableval" = yes; then
8291 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8292 else
8293 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8294 fi
e6cc62c6 8295
10f2d63a 8296else
e6cc62c6 8297
10f2d63a
VZ
8298 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8299 if test "x$LINE" != x ; then
8300 eval "DEFAULT_$LINE"
8301 else
8302 no_cache=1
8303 fi
8304
8305 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8306
e6cc62c6 8307fi;
10f2d63a 8308
1e6feb95
VZ
8309 eval "$ac_cv_use_treectrl"
8310 if test "$no_cache" != 1; then
8311 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8312 fi
8313
8314 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8315 echo "$as_me:$LINENO: result: yes" >&5
8316echo "${ECHO_T}yes" >&6
1e6feb95 8317 else
e6cc62c6
VS
8318 echo "$as_me:$LINENO: result: no" >&5
8319echo "${ECHO_T}no" >&6
1e6feb95 8320 fi
e6cc62c6 8321
1e6feb95 8322
5005acfe 8323 enablestring=
e6cc62c6
VS
8324 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8325echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8326 no_cache=0
8327 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8328if test "${enable_tipwindow+set}" = set; then
8329 enableval="$enable_tipwindow"
e6cc62c6 8330
9926e4a4
VZ
8331 if test "$enableval" = yes; then
8332 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8333 else
8334 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8335 fi
e6cc62c6 8336
9926e4a4 8337else
e6cc62c6 8338
9926e4a4
VZ
8339 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8340 if test "x$LINE" != x ; then
8341 eval "DEFAULT_$LINE"
8342 else
8343 no_cache=1
8344 fi
8345
8346 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8347
e6cc62c6 8348fi;
9926e4a4
VZ
8349
8350 eval "$ac_cv_use_tipwindow"
8351 if test "$no_cache" != 1; then
8352 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8353 fi
8354
8355 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8356 echo "$as_me:$LINENO: result: yes" >&5
8357echo "${ECHO_T}yes" >&6
9926e4a4 8358 else
e6cc62c6
VS
8359 echo "$as_me:$LINENO: result: no" >&5
8360echo "${ECHO_T}no" >&6
9926e4a4 8361 fi
e6cc62c6 8362
9926e4a4 8363
5005acfe 8364 enablestring=
e6cc62c6
VS
8365 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8366echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8367 no_cache=0
8368 # Check whether --enable-popupwin or --disable-popupwin was given.
8369if test "${enable_popupwin+set}" = set; then
8370 enableval="$enable_popupwin"
e6cc62c6 8371
9f41d601
RR
8372 if test "$enableval" = yes; then
8373 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8374 else
8375 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8376 fi
e6cc62c6 8377
9f41d601 8378else
e6cc62c6 8379
9f41d601
RR
8380 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8381 if test "x$LINE" != x ; then
8382 eval "DEFAULT_$LINE"
8383 else
8384 no_cache=1
8385 fi
8386
8387 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8388
e6cc62c6 8389fi;
9f41d601
RR
8390
8391 eval "$ac_cv_use_popupwin"
8392 if test "$no_cache" != 1; then
8393 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8394 fi
8395
8396 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8397 echo "$as_me:$LINENO: result: yes" >&5
8398echo "${ECHO_T}yes" >&6
9f41d601 8399 else
e6cc62c6
VS
8400 echo "$as_me:$LINENO: result: no" >&5
8401echo "${ECHO_T}no" >&6
9f41d601 8402 fi
e6cc62c6 8403
52127426 8404
8284b0c5
MB
8405
8406
5005acfe 8407 enablestring=
e6cc62c6
VS
8408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8409echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8410 no_cache=0
8411 # Check whether --enable-commondlg or --disable-commondlg was given.
8412if test "${enable_commondlg+set}" = set; then
8413 enableval="$enable_commondlg"
e6cc62c6 8414
1e6feb95
VZ
8415 if test "$enableval" = yes; then
8416 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8417 else
8418 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8419 fi
e6cc62c6 8420
1e6feb95 8421else
e6cc62c6 8422
1e6feb95
VZ
8423 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8424 if test "x$LINE" != x ; then
8425 eval "DEFAULT_$LINE"
8426 else
8427 no_cache=1
8428 fi
8429
8430 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8431
e6cc62c6 8432fi;
1e6feb95
VZ
8433
8434 eval "$ac_cv_use_commondlg"
8435 if test "$no_cache" != 1; then
8436 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8437 fi
8438
8439 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8440 echo "$as_me:$LINENO: result: yes" >&5
8441echo "${ECHO_T}yes" >&6
1e6feb95 8442 else
e6cc62c6
VS
8443 echo "$as_me:$LINENO: result: no" >&5
8444echo "${ECHO_T}no" >&6
1e6feb95 8445 fi
e6cc62c6 8446
1e6feb95 8447
5005acfe 8448 enablestring=
e6cc62c6
VS
8449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8450echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8451 no_cache=0
8452 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8453if test "${enable_choicedlg+set}" = set; then
8454 enableval="$enable_choicedlg"
e6cc62c6 8455
1e6feb95
VZ
8456 if test "$enableval" = yes; then
8457 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8458 else
8459 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8460 fi
e6cc62c6 8461
1e6feb95 8462else
e6cc62c6 8463
1e6feb95
VZ
8464 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8465 if test "x$LINE" != x ; then
8466 eval "DEFAULT_$LINE"
8467 else
8468 no_cache=1
8469 fi
8470
8471 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8472
e6cc62c6 8473fi;
1e6feb95
VZ
8474
8475 eval "$ac_cv_use_choicedlg"
8476 if test "$no_cache" != 1; then
8477 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8478 fi
8479
8480 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8481 echo "$as_me:$LINENO: result: yes" >&5
8482echo "${ECHO_T}yes" >&6
1e6feb95 8483 else
e6cc62c6
VS
8484 echo "$as_me:$LINENO: result: no" >&5
8485echo "${ECHO_T}no" >&6
1e6feb95 8486 fi
e6cc62c6 8487
1e6feb95 8488
5005acfe 8489 enablestring=
e6cc62c6
VS
8490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8491echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8492 no_cache=0
8493 # Check whether --enable-coldlg or --disable-coldlg was given.
8494if test "${enable_coldlg+set}" = set; then
8495 enableval="$enable_coldlg"
e6cc62c6 8496
1e6feb95
VZ
8497 if test "$enableval" = yes; then
8498 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8499 else
8500 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8501 fi
e6cc62c6 8502
1e6feb95 8503else
e6cc62c6 8504
1e6feb95
VZ
8505 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8506 if test "x$LINE" != x ; then
8507 eval "DEFAULT_$LINE"
8508 else
8509 no_cache=1
8510 fi
8511
8512 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8513
e6cc62c6 8514fi;
1e6feb95
VZ
8515
8516 eval "$ac_cv_use_coldlg"
8517 if test "$no_cache" != 1; then
8518 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8519 fi
8520
8521 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8522 echo "$as_me:$LINENO: result: yes" >&5
8523echo "${ECHO_T}yes" >&6
1e6feb95 8524 else
e6cc62c6
VS
8525 echo "$as_me:$LINENO: result: no" >&5
8526echo "${ECHO_T}no" >&6
1e6feb95 8527 fi
e6cc62c6 8528
1e6feb95 8529
5005acfe 8530 enablestring=
e6cc62c6
VS
8531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8532echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8533 no_cache=0
8534 # Check whether --enable-filedlg or --disable-filedlg was given.
8535if test "${enable_filedlg+set}" = set; then
8536 enableval="$enable_filedlg"
e6cc62c6 8537
1e6feb95
VZ
8538 if test "$enableval" = yes; then
8539 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8540 else
8541 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8542 fi
e6cc62c6 8543
1e6feb95 8544else
e6cc62c6 8545
1e6feb95
VZ
8546 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8547 if test "x$LINE" != x ; then
8548 eval "DEFAULT_$LINE"
8549 else
8550 no_cache=1
8551 fi
8552
8553 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8554
e6cc62c6 8555fi;
1e6feb95
VZ
8556
8557 eval "$ac_cv_use_filedlg"
8558 if test "$no_cache" != 1; then
8559 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8560 fi
8561
8562 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8563 echo "$as_me:$LINENO: result: yes" >&5
8564echo "${ECHO_T}yes" >&6
1e6feb95 8565 else
e6cc62c6
VS
8566 echo "$as_me:$LINENO: result: no" >&5
8567echo "${ECHO_T}no" >&6
1e6feb95 8568 fi
e6cc62c6 8569
1e6feb95 8570
5005acfe 8571 enablestring=
e6cc62c6
VS
8572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8573echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8574 no_cache=0
69d27ff7
MB
8575 # Check whether --enable-finddlg or --disable-finddlg was given.
8576if test "${enable_finddlg+set}" = set; then
8577 enableval="$enable_finddlg"
e6cc62c6 8578
8db37e06 8579 if test "$enableval" = yes; then
69d27ff7 8580 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8581 else
69d27ff7 8582 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8583 fi
e6cc62c6 8584
8db37e06 8585else
e6cc62c6 8586
8db37e06
VZ
8587 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8588 if test "x$LINE" != x ; then
8589 eval "DEFAULT_$LINE"
8590 else
8591 no_cache=1
8592 fi
8593
69d27ff7 8594 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8595
e6cc62c6 8596fi;
8db37e06 8597
69d27ff7 8598 eval "$ac_cv_use_finddlg"
8db37e06 8599 if test "$no_cache" != 1; then
69d27ff7 8600 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8601 fi
8602
8603 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8604 echo "$as_me:$LINENO: result: yes" >&5
8605echo "${ECHO_T}yes" >&6
8db37e06 8606 else
e6cc62c6
VS
8607 echo "$as_me:$LINENO: result: no" >&5
8608echo "${ECHO_T}no" >&6
8db37e06 8609 fi
e6cc62c6 8610
8db37e06 8611
5005acfe 8612 enablestring=
e6cc62c6
VS
8613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8614echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8615 no_cache=0
8616 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8617if test "${enable_fontdlg+set}" = set; then
8618 enableval="$enable_fontdlg"
e6cc62c6 8619
1e6feb95
VZ
8620 if test "$enableval" = yes; then
8621 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8622 else
8623 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8624 fi
e6cc62c6 8625
1e6feb95 8626else
e6cc62c6 8627
1e6feb95
VZ
8628 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8629 if test "x$LINE" != x ; then
8630 eval "DEFAULT_$LINE"
8631 else
8632 no_cache=1
8633 fi
8634
8635 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8636
e6cc62c6 8637fi;
1e6feb95
VZ
8638
8639 eval "$ac_cv_use_fontdlg"
8640 if test "$no_cache" != 1; then
8641 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8642 fi
8643
8644 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8645 echo "$as_me:$LINENO: result: yes" >&5
8646echo "${ECHO_T}yes" >&6
1e6feb95 8647 else
e6cc62c6
VS
8648 echo "$as_me:$LINENO: result: no" >&5
8649echo "${ECHO_T}no" >&6
1e6feb95 8650 fi
e6cc62c6 8651
1e6feb95 8652
5005acfe 8653 enablestring=
e6cc62c6
VS
8654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8655echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8656 no_cache=0
8657 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8658if test "${enable_dirdlg+set}" = set; then
8659 enableval="$enable_dirdlg"
e6cc62c6 8660
1e6feb95
VZ
8661 if test "$enableval" = yes; then
8662 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8663 else
8664 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8665 fi
e6cc62c6 8666
1e6feb95 8667else
e6cc62c6 8668
1e6feb95
VZ
8669 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8670 if test "x$LINE" != x ; then
8671 eval "DEFAULT_$LINE"
8672 else
8673 no_cache=1
8674 fi
8675
8676 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8677
e6cc62c6 8678fi;
1e6feb95
VZ
8679
8680 eval "$ac_cv_use_dirdlg"
10f2d63a 8681 if test "$no_cache" != 1; then
1e6feb95 8682 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8683 fi
8684
1e6feb95 8685 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8686 echo "$as_me:$LINENO: result: yes" >&5
8687echo "${ECHO_T}yes" >&6
10f2d63a 8688 else
e6cc62c6
VS
8689 echo "$as_me:$LINENO: result: no" >&5
8690echo "${ECHO_T}no" >&6
10f2d63a 8691 fi
e6cc62c6 8692
698dcdb6 8693
5005acfe 8694 enablestring=
e6cc62c6
VS
8695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8696echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8697 no_cache=0
1e6feb95
VZ
8698 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8699if test "${enable_msgdlg+set}" = set; then
8700 enableval="$enable_msgdlg"
e6cc62c6 8701
10f2d63a 8702 if test "$enableval" = yes; then
1e6feb95 8703 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8704 else
1e6feb95 8705 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8706 fi
e6cc62c6 8707
10f2d63a 8708else
e6cc62c6 8709
1e6feb95 8710 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8711 if test "x$LINE" != x ; then
8712 eval "DEFAULT_$LINE"
8713 else
8714 no_cache=1
8715 fi
8716
1e6feb95 8717 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8718
e6cc62c6 8719fi;
10f2d63a 8720
1e6feb95 8721 eval "$ac_cv_use_msgdlg"
10f2d63a 8722 if test "$no_cache" != 1; then
1e6feb95 8723 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8724 fi
8725
1e6feb95 8726 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8727 echo "$as_me:$LINENO: result: yes" >&5
8728echo "${ECHO_T}yes" >&6
10f2d63a 8729 else
e6cc62c6
VS
8730 echo "$as_me:$LINENO: result: no" >&5
8731echo "${ECHO_T}no" >&6
10f2d63a 8732 fi
e6cc62c6 8733
10f2d63a 8734
5005acfe 8735 enablestring=
e6cc62c6
VS
8736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8737echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8738 no_cache=0
1e6feb95
VZ
8739 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8740if test "${enable_numberdlg+set}" = set; then
8741 enableval="$enable_numberdlg"
e6cc62c6 8742
10f2d63a 8743 if test "$enableval" = yes; then
1e6feb95 8744 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8745 else
1e6feb95 8746 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8747 fi
e6cc62c6 8748
10f2d63a 8749else
e6cc62c6 8750
1e6feb95 8751 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8752 if test "x$LINE" != x ; then
8753 eval "DEFAULT_$LINE"
8754 else
8755 no_cache=1
8756 fi
8757
1e6feb95 8758 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8759
e6cc62c6 8760fi;
10f2d63a 8761
1e6feb95 8762 eval "$ac_cv_use_numberdlg"
10f2d63a 8763 if test "$no_cache" != 1; then
1e6feb95 8764 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8765 fi
8766
1e6feb95 8767 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8768 echo "$as_me:$LINENO: result: yes" >&5
8769echo "${ECHO_T}yes" >&6
10f2d63a 8770 else
e6cc62c6
VS
8771 echo "$as_me:$LINENO: result: no" >&5
8772echo "${ECHO_T}no" >&6
10f2d63a 8773 fi
e6cc62c6 8774
10f2d63a 8775
5005acfe 8776 enablestring=
e6cc62c6
VS
8777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8778echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8779 no_cache=0
8780 # Check whether --enable-splash or --disable-splash was given.
8781if test "${enable_splash+set}" = set; then
8782 enableval="$enable_splash"
e6cc62c6 8783
cbca9943
VZ
8784 if test "$enableval" = yes; then
8785 ac_cv_use_splash='wxUSE_SPLASH=yes'
8786 else
8787 ac_cv_use_splash='wxUSE_SPLASH=no'
8788 fi
e6cc62c6 8789
cbca9943 8790else
e6cc62c6 8791
cbca9943
VZ
8792 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8793 if test "x$LINE" != x ; then
8794 eval "DEFAULT_$LINE"
8795 else
8796 no_cache=1
8797 fi
8798
8799 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8800
e6cc62c6 8801fi;
cbca9943
VZ
8802
8803 eval "$ac_cv_use_splash"
8804 if test "$no_cache" != 1; then
8805 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8806 fi
8807
8808 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8809 echo "$as_me:$LINENO: result: yes" >&5
8810echo "${ECHO_T}yes" >&6
cbca9943 8811 else
e6cc62c6
VS
8812 echo "$as_me:$LINENO: result: no" >&5
8813echo "${ECHO_T}no" >&6
cbca9943 8814 fi
e6cc62c6 8815
cbca9943 8816
5005acfe 8817 enablestring=
e6cc62c6
VS
8818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8819echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8820 no_cache=0
8821 # Check whether --enable-textdlg or --disable-textdlg was given.
8822if test "${enable_textdlg+set}" = set; then
8823 enableval="$enable_textdlg"
e6cc62c6 8824
10f2d63a
VZ
8825 if test "$enableval" = yes; then
8826 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8827 else
8828 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8829 fi
e6cc62c6 8830
10f2d63a 8831else
e6cc62c6 8832
10f2d63a
VZ
8833 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8834 if test "x$LINE" != x ; then
8835 eval "DEFAULT_$LINE"
8836 else
8837 no_cache=1
8838 fi
8839
8840 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8841
e6cc62c6 8842fi;
10f2d63a
VZ
8843
8844 eval "$ac_cv_use_textdlg"
8845 if test "$no_cache" != 1; then
8846 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8847 fi
8848
8849 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8850 echo "$as_me:$LINENO: result: yes" >&5
8851echo "${ECHO_T}yes" >&6
10f2d63a 8852 else
e6cc62c6
VS
8853 echo "$as_me:$LINENO: result: no" >&5
8854echo "${ECHO_T}no" >&6
10f2d63a 8855 fi
e6cc62c6 8856
10f2d63a 8857
5005acfe 8858 enablestring=
e6cc62c6
VS
8859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8860echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8861 no_cache=0
8862 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8863if test "${enable_tipdlg+set}" = set; then
8864 enableval="$enable_tipdlg"
e6cc62c6 8865
10f2d63a
VZ
8866 if test "$enableval" = yes; then
8867 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8868 else
8869 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8870 fi
e6cc62c6 8871
10f2d63a 8872else
e6cc62c6 8873
10f2d63a
VZ
8874 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8875 if test "x$LINE" != x ; then
8876 eval "DEFAULT_$LINE"
8877 else
8878 no_cache=1
8879 fi
8880
8881 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8882
e6cc62c6 8883fi;
10f2d63a
VZ
8884
8885 eval "$ac_cv_use_tipdlg"
8886 if test "$no_cache" != 1; then
8887 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8888 fi
8889
8890 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8891 echo "$as_me:$LINENO: result: yes" >&5
8892echo "${ECHO_T}yes" >&6
10f2d63a 8893 else
e6cc62c6
VS
8894 echo "$as_me:$LINENO: result: no" >&5
8895echo "${ECHO_T}no" >&6
10f2d63a 8896 fi
e6cc62c6 8897
10f2d63a 8898
5005acfe 8899 enablestring=
e6cc62c6
VS
8900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8901echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8902 no_cache=0
8903 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8904if test "${enable_progressdlg+set}" = set; then
8905 enableval="$enable_progressdlg"
e6cc62c6 8906
10f2d63a
VZ
8907 if test "$enableval" = yes; then
8908 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8909 else
8910 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8911 fi
e6cc62c6 8912
10f2d63a 8913else
e6cc62c6 8914
10f2d63a
VZ
8915 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8916 if test "x$LINE" != x ; then
8917 eval "DEFAULT_$LINE"
8918 else
8919 no_cache=1
8920 fi
8921
8922 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8923
e6cc62c6 8924fi;
10f2d63a
VZ
8925
8926 eval "$ac_cv_use_progressdlg"
8927 if test "$no_cache" != 1; then
8928 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8929 fi
8930
8931 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8932 echo "$as_me:$LINENO: result: yes" >&5
8933echo "${ECHO_T}yes" >&6
10f2d63a 8934 else
e6cc62c6
VS
8935 echo "$as_me:$LINENO: result: no" >&5
8936echo "${ECHO_T}no" >&6
10f2d63a 8937 fi
e6cc62c6 8938
10f2d63a 8939
5005acfe 8940 enablestring=
e6cc62c6
VS
8941 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8942echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8943 no_cache=0
8944 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8945if test "${enable_wizarddlg+set}" = set; then
8946 enableval="$enable_wizarddlg"
e6cc62c6 8947
b1f5d087
VZ
8948 if test "$enableval" = yes; then
8949 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8950 else
8951 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8952 fi
e6cc62c6 8953
b1f5d087 8954else
e6cc62c6 8955
b1f5d087
VZ
8956 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8957 if test "x$LINE" != x ; then
8958 eval "DEFAULT_$LINE"
8959 else
8960 no_cache=1
8961 fi
8962
8963 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8964
e6cc62c6 8965fi;
b1f5d087
VZ
8966
8967 eval "$ac_cv_use_wizarddlg"
8968 if test "$no_cache" != 1; then
8969 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8970 fi
8971
8972 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8973 echo "$as_me:$LINENO: result: yes" >&5
8974echo "${ECHO_T}yes" >&6
b1f5d087 8975 else
e6cc62c6
VS
8976 echo "$as_me:$LINENO: result: no" >&5
8977echo "${ECHO_T}no" >&6
b1f5d087 8978 fi
e6cc62c6 8979
8284b0c5
MB
8980
8981
52127426 8982
5005acfe 8983 enablestring=
e6cc62c6
VS
8984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8985echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8986 no_cache=0
8987 # Check whether --enable-menus or --disable-menus was given.
8988if test "${enable_menus+set}" = set; then
8989 enableval="$enable_menus"
e6cc62c6 8990
1e6feb95
VZ
8991 if test "$enableval" = yes; then
8992 ac_cv_use_menus='wxUSE_MENUS=yes'
8993 else
8994 ac_cv_use_menus='wxUSE_MENUS=no'
8995 fi
e6cc62c6 8996
1e6feb95 8997else
e6cc62c6 8998
1e6feb95
VZ
8999 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9000 if test "x$LINE" != x ; then
9001 eval "DEFAULT_$LINE"
9002 else
9003 no_cache=1
9004 fi
9005
9006 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 9007
e6cc62c6 9008fi;
1e6feb95
VZ
9009
9010 eval "$ac_cv_use_menus"
9011 if test "$no_cache" != 1; then
9012 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9013 fi
9014
9015 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
9016 echo "$as_me:$LINENO: result: yes" >&5
9017echo "${ECHO_T}yes" >&6
1e6feb95 9018 else
e6cc62c6
VS
9019 echo "$as_me:$LINENO: result: no" >&5
9020echo "${ECHO_T}no" >&6
1e6feb95 9021 fi
e6cc62c6 9022
1e6feb95 9023
5005acfe 9024 enablestring=
e6cc62c6
VS
9025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9026echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
9027 no_cache=0
9028 # Check whether --enable-miniframe or --disable-miniframe was given.
9029if test "${enable_miniframe+set}" = set; then
9030 enableval="$enable_miniframe"
e6cc62c6 9031
10f2d63a
VZ
9032 if test "$enableval" = yes; then
9033 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9034 else
9035 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9036 fi
e6cc62c6 9037
10f2d63a 9038else
e6cc62c6 9039
10f2d63a
VZ
9040 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9041 if test "x$LINE" != x ; then
9042 eval "DEFAULT_$LINE"
9043 else
9044 no_cache=1
9045 fi
9046
9047 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 9048
e6cc62c6 9049fi;
10f2d63a
VZ
9050
9051 eval "$ac_cv_use_miniframe"
9052 if test "$no_cache" != 1; then
9053 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9054 fi
9055
9056 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
9057 echo "$as_me:$LINENO: result: yes" >&5
9058echo "${ECHO_T}yes" >&6
10f2d63a 9059 else
e6cc62c6
VS
9060 echo "$as_me:$LINENO: result: no" >&5
9061echo "${ECHO_T}no" >&6
10f2d63a 9062 fi
e6cc62c6 9063
10f2d63a 9064
5005acfe 9065 enablestring=
e6cc62c6
VS
9066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9067echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
9068 no_cache=0
9069 # Check whether --enable-tooltips or --disable-tooltips was given.
9070if test "${enable_tooltips+set}" = set; then
9071 enableval="$enable_tooltips"
e6cc62c6 9072
10f2d63a
VZ
9073 if test "$enableval" = yes; then
9074 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9075 else
9076 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9077 fi
e6cc62c6 9078
10f2d63a 9079else
e6cc62c6 9080
10f2d63a
VZ
9081 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9082 if test "x$LINE" != x ; then
9083 eval "DEFAULT_$LINE"
9084 else
9085 no_cache=1
9086 fi
9087
9088 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 9089
e6cc62c6 9090fi;
10f2d63a
VZ
9091
9092 eval "$ac_cv_use_tooltips"
9093 if test "$no_cache" != 1; then
9094 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9095 fi
9096
9097 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
9098 echo "$as_me:$LINENO: result: yes" >&5
9099echo "${ECHO_T}yes" >&6
10f2d63a 9100 else
e6cc62c6
VS
9101 echo "$as_me:$LINENO: result: no" >&5
9102echo "${ECHO_T}no" >&6
10f2d63a 9103 fi
e6cc62c6 9104
10f2d63a 9105
5005acfe 9106 enablestring=
e6cc62c6
VS
9107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9108echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
9109 no_cache=0
9110 # Check whether --enable-splines or --disable-splines was given.
9111if test "${enable_splines+set}" = set; then
9112 enableval="$enable_splines"
e6cc62c6 9113
10f2d63a
VZ
9114 if test "$enableval" = yes; then
9115 ac_cv_use_splines='wxUSE_SPLINES=yes'
9116 else
9117 ac_cv_use_splines='wxUSE_SPLINES=no'
9118 fi
e6cc62c6 9119
10f2d63a 9120else
e6cc62c6 9121
10f2d63a
VZ
9122 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9123 if test "x$LINE" != x ; then
9124 eval "DEFAULT_$LINE"
9125 else
9126 no_cache=1
9127 fi
9128
9129 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 9130
e6cc62c6 9131fi;
10f2d63a
VZ
9132
9133 eval "$ac_cv_use_splines"
9134 if test "$no_cache" != 1; then
9135 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9136 fi
9137
9138 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
9139 echo "$as_me:$LINENO: result: yes" >&5
9140echo "${ECHO_T}yes" >&6
10f2d63a 9141 else
e6cc62c6
VS
9142 echo "$as_me:$LINENO: result: no" >&5
9143echo "${ECHO_T}no" >&6
10f2d63a 9144 fi
e6cc62c6 9145
10f2d63a 9146
5005acfe 9147 enablestring=
e6cc62c6
VS
9148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9149echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
9150 no_cache=0
9151 # Check whether --enable-validators or --disable-validators was given.
9152if test "${enable_validators+set}" = set; then
9153 enableval="$enable_validators"
e6cc62c6 9154
10f2d63a
VZ
9155 if test "$enableval" = yes; then
9156 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9157 else
9158 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9159 fi
e6cc62c6 9160
10f2d63a 9161else
e6cc62c6 9162
10f2d63a
VZ
9163 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9164 if test "x$LINE" != x ; then
9165 eval "DEFAULT_$LINE"
9166 else
9167 no_cache=1
9168 fi
9169
9170 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 9171
e6cc62c6 9172fi;
10f2d63a
VZ
9173
9174 eval "$ac_cv_use_validators"
9175 if test "$no_cache" != 1; then
9176 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9177 fi
9178
9179 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
9180 echo "$as_me:$LINENO: result: yes" >&5
9181echo "${ECHO_T}yes" >&6
10f2d63a 9182 else
e6cc62c6
VS
9183 echo "$as_me:$LINENO: result: no" >&5
9184echo "${ECHO_T}no" >&6
10f2d63a 9185 fi
e6cc62c6 9186
10f2d63a 9187
5005acfe 9188 enablestring=
e6cc62c6
VS
9189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9190echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
9191 no_cache=0
9192 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9193if test "${enable_busyinfo+set}" = set; then
9194 enableval="$enable_busyinfo"
e6cc62c6 9195
10f2d63a
VZ
9196 if test "$enableval" = yes; then
9197 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9198 else
9199 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9200 fi
e6cc62c6 9201
10f2d63a 9202else
e6cc62c6 9203
10f2d63a
VZ
9204 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9205 if test "x$LINE" != x ; then
9206 eval "DEFAULT_$LINE"
9207 else
9208 no_cache=1
9209 fi
9210
9211 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 9212
e6cc62c6 9213fi;
10f2d63a
VZ
9214
9215 eval "$ac_cv_use_busyinfo"
9216 if test "$no_cache" != 1; then
9217 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9218 fi
9219
9220 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
9221 echo "$as_me:$LINENO: result: yes" >&5
9222echo "${ECHO_T}yes" >&6
10f2d63a 9223 else
e6cc62c6
VS
9224 echo "$as_me:$LINENO: result: no" >&5
9225echo "${ECHO_T}no" >&6
10f2d63a 9226 fi
e6cc62c6 9227
10f2d63a 9228
5005acfe 9229 enablestring=
e6cc62c6
VS
9230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9231echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
9232 no_cache=0
9233 # Check whether --enable-joystick or --disable-joystick was given.
9234if test "${enable_joystick+set}" = set; then
9235 enableval="$enable_joystick"
e6cc62c6 9236
f6bcfd97
BP
9237 if test "$enableval" = yes; then
9238 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9239 else
9240 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9241 fi
e6cc62c6 9242
f6bcfd97 9243else
e6cc62c6 9244
f6bcfd97
BP
9245 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9246 if test "x$LINE" != x ; then
9247 eval "DEFAULT_$LINE"
9248 else
9249 no_cache=1
9250 fi
9251
9252 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9253
e6cc62c6 9254fi;
f6bcfd97
BP
9255
9256 eval "$ac_cv_use_joystick"
9257 if test "$no_cache" != 1; then
9258 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9259 fi
9260
9261 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9262 echo "$as_me:$LINENO: result: yes" >&5
9263echo "${ECHO_T}yes" >&6
f6bcfd97 9264 else
e6cc62c6
VS
9265 echo "$as_me:$LINENO: result: no" >&5
9266echo "${ECHO_T}no" >&6
f6bcfd97 9267 fi
e6cc62c6 9268
698dcdb6 9269
5005acfe 9270 enablestring=
e6cc62c6
VS
9271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9272echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9273 no_cache=0
9274 # Check whether --enable-metafile or --disable-metafile was given.
9275if test "${enable_metafile+set}" = set; then
9276 enableval="$enable_metafile"
e6cc62c6 9277
1e6feb95
VZ
9278 if test "$enableval" = yes; then
9279 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9280 else
9281 ac_cv_use_metafile='wxUSE_METAFILE=no'
9282 fi
e6cc62c6 9283
1e6feb95 9284else
e6cc62c6 9285
1e6feb95
VZ
9286 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9287 if test "x$LINE" != x ; then
9288 eval "DEFAULT_$LINE"
9289 else
9290 no_cache=1
9291 fi
9292
9293 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9294
e6cc62c6 9295fi;
1e6feb95
VZ
9296
9297 eval "$ac_cv_use_metafile"
9298 if test "$no_cache" != 1; then
9299 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9300 fi
9301
9302 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9303 echo "$as_me:$LINENO: result: yes" >&5
9304echo "${ECHO_T}yes" >&6
1e6feb95 9305 else
e6cc62c6
VS
9306 echo "$as_me:$LINENO: result: no" >&5
9307echo "${ECHO_T}no" >&6
1e6feb95 9308 fi
e6cc62c6 9309
1e6feb95 9310
5005acfe 9311 enablestring=
e6cc62c6
VS
9312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9313echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9314 no_cache=0
9315 # Check whether --enable-dragimage or --disable-dragimage was given.
9316if test "${enable_dragimage+set}" = set; then
9317 enableval="$enable_dragimage"
e6cc62c6 9318
24fd6d87
VZ
9319 if test "$enableval" = yes; then
9320 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9321 else
9322 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9323 fi
e6cc62c6 9324
24fd6d87 9325else
e6cc62c6 9326
24fd6d87
VZ
9327 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9328 if test "x$LINE" != x ; then
9329 eval "DEFAULT_$LINE"
9330 else
9331 no_cache=1
9332 fi
9333
9334 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9335
e6cc62c6 9336fi;
24fd6d87
VZ
9337
9338 eval "$ac_cv_use_dragimage"
9339 if test "$no_cache" != 1; then
9340 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9341 fi
9342
9343 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9344 echo "$as_me:$LINENO: result: yes" >&5
9345echo "${ECHO_T}yes" >&6
24fd6d87 9346 else
e6cc62c6
VS
9347 echo "$as_me:$LINENO: result: no" >&5
9348echo "${ECHO_T}no" >&6
24fd6d87 9349 fi
e6cc62c6 9350
52127426 9351
7bb2947d 9352 enablestring=
e6cc62c6
VS
9353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9354echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9355 no_cache=0
9356 # Check whether --enable-accessibility or --disable-accessibility was given.
9357if test "${enable_accessibility+set}" = set; then
9358 enableval="$enable_accessibility"
e6cc62c6 9359
7bb2947d
MB
9360 if test "$enableval" = yes; then
9361 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9362 else
9363 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9364 fi
e6cc62c6 9365
7bb2947d 9366else
e6cc62c6 9367
7bb2947d
MB
9368 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9369 if test "x$LINE" != x ; then
9370 eval "DEFAULT_$LINE"
9371 else
9372 no_cache=1
9373 fi
9374
9375 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9376
e6cc62c6 9377fi;
7bb2947d
MB
9378
9379 eval "$ac_cv_use_accessibility"
9380 if test "$no_cache" != 1; then
9381 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9382 fi
9383
9384 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9385 echo "$as_me:$LINENO: result: yes" >&5
9386echo "${ECHO_T}yes" >&6
7bb2947d 9387 else
e6cc62c6
VS
9388 echo "$as_me:$LINENO: result: no" >&5
9389echo "${ECHO_T}no" >&6
7bb2947d 9390 fi
e6cc62c6 9391
7bb2947d 9392
8284b0c5
MB
9393
9394
5005acfe 9395 enablestring=
e6cc62c6
VS
9396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9397echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9398 no_cache=0
9399 # Check whether --enable-palette or --disable-palette was given.
9400if test "${enable_palette+set}" = set; then
9401 enableval="$enable_palette"
e6cc62c6 9402
edae8572
VZ
9403 if test "$enableval" = yes; then
9404 ac_cv_use_palette='wxUSE_PALETTE=yes'
9405 else
9406 ac_cv_use_palette='wxUSE_PALETTE=no'
9407 fi
e6cc62c6 9408
edae8572 9409else
e6cc62c6 9410
edae8572
VZ
9411 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9412 if test "x$LINE" != x ; then
9413 eval "DEFAULT_$LINE"
9414 else
9415 no_cache=1
9416 fi
9417
9418 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9419
e6cc62c6 9420fi;
edae8572
VZ
9421
9422 eval "$ac_cv_use_palette"
9423 if test "$no_cache" != 1; then
9424 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9425 fi
9426
9427 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9428 echo "$as_me:$LINENO: result: yes" >&5
9429echo "${ECHO_T}yes" >&6
edae8572 9430 else
e6cc62c6
VS
9431 echo "$as_me:$LINENO: result: no" >&5
9432echo "${ECHO_T}no" >&6
edae8572 9433 fi
e6cc62c6 9434
edae8572 9435
5005acfe 9436 enablestring=
e6cc62c6
VS
9437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9438echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9439 no_cache=0
9440 # Check whether --enable-image or --disable-image was given.
9441if test "${enable_image+set}" = set; then
9442 enableval="$enable_image"
e6cc62c6 9443
0046ff7c
VS
9444 if test "$enableval" = yes; then
9445 ac_cv_use_image='wxUSE_IMAGE=yes'
9446 else
9447 ac_cv_use_image='wxUSE_IMAGE=no'
9448 fi
e6cc62c6 9449
0046ff7c 9450else
e6cc62c6 9451
0046ff7c
VS
9452 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9453 if test "x$LINE" != x ; then
9454 eval "DEFAULT_$LINE"
9455 else
9456 no_cache=1
9457 fi
9458
9459 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9460
e6cc62c6 9461fi;
0046ff7c
VS
9462
9463 eval "$ac_cv_use_image"
9464 if test "$no_cache" != 1; then
9465 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9466 fi
9467
9468 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9469 echo "$as_me:$LINENO: result: yes" >&5
9470echo "${ECHO_T}yes" >&6
0046ff7c 9471 else
e6cc62c6
VS
9472 echo "$as_me:$LINENO: result: no" >&5
9473echo "${ECHO_T}no" >&6
0046ff7c 9474 fi
e6cc62c6 9475
0046ff7c 9476
5005acfe 9477 enablestring=
e6cc62c6
VS
9478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9479echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9480 no_cache=0
9481 # Check whether --enable-gif or --disable-gif was given.
9482if test "${enable_gif+set}" = set; then
9483 enableval="$enable_gif"
e6cc62c6 9484
10f2d63a
VZ
9485 if test "$enableval" = yes; then
9486 ac_cv_use_gif='wxUSE_GIF=yes'
9487 else
9488 ac_cv_use_gif='wxUSE_GIF=no'
9489 fi
e6cc62c6 9490
10f2d63a 9491else
e6cc62c6 9492
10f2d63a
VZ
9493 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9494 if test "x$LINE" != x ; then
9495 eval "DEFAULT_$LINE"
9496 else
9497 no_cache=1
9498 fi
9499
9500 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9501
e6cc62c6 9502fi;
10f2d63a
VZ
9503
9504 eval "$ac_cv_use_gif"
9505 if test "$no_cache" != 1; then
9506 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9507 fi
9508
9509 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9510 echo "$as_me:$LINENO: result: yes" >&5
9511echo "${ECHO_T}yes" >&6
10f2d63a 9512 else
e6cc62c6
VS
9513 echo "$as_me:$LINENO: result: no" >&5
9514echo "${ECHO_T}no" >&6
10f2d63a 9515 fi
e6cc62c6 9516
10f2d63a 9517
5005acfe 9518 enablestring=
e6cc62c6
VS
9519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9520echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9521 no_cache=0
9522 # Check whether --enable-pcx or --disable-pcx was given.
9523if test "${enable_pcx+set}" = set; then
9524 enableval="$enable_pcx"
e6cc62c6 9525
10f2d63a
VZ
9526 if test "$enableval" = yes; then
9527 ac_cv_use_pcx='wxUSE_PCX=yes'
9528 else
9529 ac_cv_use_pcx='wxUSE_PCX=no'
9530 fi
e6cc62c6 9531
10f2d63a 9532else
e6cc62c6 9533
10f2d63a
VZ
9534 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9535 if test "x$LINE" != x ; then
9536 eval "DEFAULT_$LINE"
9537 else
9538 no_cache=1
9539 fi
9540
9541 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9542
e6cc62c6 9543fi;
10f2d63a
VZ
9544
9545 eval "$ac_cv_use_pcx"
9546 if test "$no_cache" != 1; then
9547 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9548 fi
9549
9550 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9551 echo "$as_me:$LINENO: result: yes" >&5
9552echo "${ECHO_T}yes" >&6
10f2d63a 9553 else
e6cc62c6
VS
9554 echo "$as_me:$LINENO: result: no" >&5
9555echo "${ECHO_T}no" >&6
10f2d63a 9556 fi
e6cc62c6 9557
10f2d63a 9558
5005acfe 9559 enablestring=
e6cc62c6
VS
9560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9561echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9562 no_cache=0
9563 # Check whether --enable-iff or --disable-iff was given.
9564if test "${enable_iff+set}" = set; then
9565 enableval="$enable_iff"
e6cc62c6 9566
4b6b4dfc
RR
9567 if test "$enableval" = yes; then
9568 ac_cv_use_iff='wxUSE_IFF=yes'
9569 else
9570 ac_cv_use_iff='wxUSE_IFF=no'
9571 fi
e6cc62c6 9572
4b6b4dfc 9573else
e6cc62c6 9574
4b6b4dfc
RR
9575 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9576 if test "x$LINE" != x ; then
9577 eval "DEFAULT_$LINE"
9578 else
9579 no_cache=1
9580 fi
9581
9582 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9583
e6cc62c6 9584fi;
4b6b4dfc
RR
9585
9586 eval "$ac_cv_use_iff"
9587 if test "$no_cache" != 1; then
9588 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9589 fi
9590
9591 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9592 echo "$as_me:$LINENO: result: yes" >&5
9593echo "${ECHO_T}yes" >&6
4b6b4dfc 9594 else
e6cc62c6
VS
9595 echo "$as_me:$LINENO: result: no" >&5
9596echo "${ECHO_T}no" >&6
4b6b4dfc 9597 fi
e6cc62c6 9598
4b6b4dfc 9599
5005acfe 9600 enablestring=
e6cc62c6
VS
9601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9602echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9603 no_cache=0
9604 # Check whether --enable-pnm or --disable-pnm was given.
9605if test "${enable_pnm+set}" = set; then
9606 enableval="$enable_pnm"
e6cc62c6 9607
10f2d63a
VZ
9608 if test "$enableval" = yes; then
9609 ac_cv_use_pnm='wxUSE_PNM=yes'
9610 else
9611 ac_cv_use_pnm='wxUSE_PNM=no'
9612 fi
e6cc62c6 9613
10f2d63a 9614else
e6cc62c6 9615
10f2d63a
VZ
9616 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9617 if test "x$LINE" != x ; then
9618 eval "DEFAULT_$LINE"
9619 else
9620 no_cache=1
9621 fi
9622
9623 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9624
e6cc62c6 9625fi;
10f2d63a
VZ
9626
9627 eval "$ac_cv_use_pnm"
9628 if test "$no_cache" != 1; then
9629 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9630 fi
9631
9632 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9633 echo "$as_me:$LINENO: result: yes" >&5
9634echo "${ECHO_T}yes" >&6
10f2d63a 9635 else
e6cc62c6
VS
9636 echo "$as_me:$LINENO: result: no" >&5
9637echo "${ECHO_T}no" >&6
10f2d63a 9638 fi
e6cc62c6 9639
10f2d63a 9640
5005acfe 9641 enablestring=
e6cc62c6
VS
9642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9643echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9644 no_cache=0
69d27ff7
MB
9645 # Check whether --enable-xpm or --disable-xpm was given.
9646if test "${enable_xpm+set}" = set; then
9647 enableval="$enable_xpm"
e6cc62c6 9648
0046ff7c 9649 if test "$enableval" = yes; then
69d27ff7 9650 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9651 else
69d27ff7 9652 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9653 fi
e6cc62c6 9654
0046ff7c 9655else
e6cc62c6 9656
0046ff7c
VS
9657 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9658 if test "x$LINE" != x ; then
9659 eval "DEFAULT_$LINE"
9660 else
9661 no_cache=1
9662 fi
9663
69d27ff7 9664 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9665
e6cc62c6 9666fi;
0046ff7c 9667
69d27ff7 9668 eval "$ac_cv_use_xpm"
0046ff7c 9669 if test "$no_cache" != 1; then
69d27ff7 9670 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9671 fi
9672
9673 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9674 echo "$as_me:$LINENO: result: yes" >&5
9675echo "${ECHO_T}yes" >&6
0046ff7c 9676 else
e6cc62c6
VS
9677 echo "$as_me:$LINENO: result: no" >&5
9678echo "${ECHO_T}no" >&6
0046ff7c 9679 fi
e6cc62c6 9680
0046ff7c 9681
5005acfe 9682 enablestring=
e6cc62c6
VS
9683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9684echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9685 no_cache=0
c7206e64
VS
9686 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9687if test "${enable_ico_cur+set}" = set; then
9688 enableval="$enable_ico_cur"
e6cc62c6 9689
658974ae 9690 if test "$enableval" = yes; then
c7206e64 9691 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9692 else
c7206e64 9693 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9694 fi
e6cc62c6 9695
658974ae 9696else
e6cc62c6 9697
658974ae
VS
9698 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9699 if test "x$LINE" != x ; then
9700 eval "DEFAULT_$LINE"
9701 else
9702 no_cache=1
9703 fi
9704
c7206e64 9705 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9706
e6cc62c6 9707fi;
658974ae 9708
c7206e64 9709 eval "$ac_cv_use_ico_cur"
658974ae 9710 if test "$no_cache" != 1; then
c7206e64 9711 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9712 fi
9713
9714 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9715 echo "$as_me:$LINENO: result: yes" >&5
9716echo "${ECHO_T}yes" >&6
658974ae 9717 else
e6cc62c6
VS
9718 echo "$as_me:$LINENO: result: no" >&5
9719echo "${ECHO_T}no" >&6
658974ae 9720 fi
e6cc62c6 9721
658974ae 9722
b12915c1
VZ
9723fi
9724
029b47ad
VS
9725
9726
9727 enablestring=
9728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9729echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9730 no_cache=0
9731 # Check whether --enable-official_build or --disable-official_build was given.
9732if test "${enable_official_build+set}" = set; then
9733 enableval="$enable_official_build"
9734
9735 if test "$enableval" = yes; then
9736 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9737 else
9738 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9739 fi
9740
9741else
9742
9743 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9744 if test "x$LINE" != x ; then
9745 eval "DEFAULT_$LINE"
9746 else
9747 no_cache=1
9748 fi
9749
9750 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9751
9752fi;
9753
9754 eval "$ac_cv_use_official_build"
9755 if test "$no_cache" != 1; then
9756 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9757 fi
9758
9759 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9760 echo "$as_me:$LINENO: result: yes" >&5
9761echo "${ECHO_T}yes" >&6
9762 else
9763 echo "$as_me:$LINENO: result: no" >&5
9764echo "${ECHO_T}no" >&6
9765 fi
9766
9767# Check whether --enable-vendor or --disable-vendor was given.
9768if test "${enable_vendor+set}" = set; then
9769 enableval="$enable_vendor"
9770 VENDOR="$enableval"
9771fi;
9772if test "x$VENDOR" = "x"; then
9773 VENDOR="custom"
9774fi
9775
d558c907
VS
9776case "${host}" in
9777 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9778 PATH_IFS=';'
d558c907
VS
9779 ;;
9780 *)
9781 PATH_IFS=':'
d558c907
VS
9782 ;;
9783esac
9784
8284b0c5
MB
9785
9786
10f2d63a
VZ
9787 echo "saving argument cache $wx_arg_cache_file"
9788 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9789
8284b0c5 9790
e6cc62c6
VS
9791
9792echo "$as_me:$LINENO: checking for toolkit" >&5
9793echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9794
9795# In Wine, we need to default to MSW, not GTK or MOTIF
9796if test "$wxUSE_WINE" = "yes"; then
9797 DEFAULT_DEFAULT_wxUSE_GTK=0
9798 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9799 DEFAULT_DEFAULT_wxUSE_MSW=1
74500461 9800 wxUSE_SHARED=no
89e6bf6d 9801fi
10f2d63a
VZ
9802
9803if test "$wxUSE_GUI" = "yes"; then
9804
3a922bb4 9805 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9806 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9807echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9808 { (exit 1); exit 1; }; }
3a922bb4 9809 fi
b12915c1 9810
3a922bb4
RL
9811 if test "$TOOLKIT_GIVEN" = 1; then
9812 for toolkit in `echo $ALL_TOOLKITS`; do
9813 var=wxUSE_$toolkit
9814 eval "value=\$${var}"
9815 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9816 done
10f2d63a 9817 else
3a922bb4
RL
9818 for toolkit in `echo $ALL_TOOLKITS`; do
9819 if test "$has_toolkit_in_cache" != 1; then
9820 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9821 else
9822 var=DEFAULT_wxUSE_$toolkit
9823 fi
9824 eval "wxUSE_$toolkit=\$${var}"
9825 done
10f2d63a 9826 fi
10f2d63a 9827
ac0c4cc3
DE
9828 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9829 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9830 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9831
d558c907 9832 case "${host}" in
6fa882bd 9833 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9834 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9835 esac
10f2d63a 9836
3a922bb4
RL
9837 case "$NUM_TOOLKITS" in
9838 1)
9839 ;;
9840 0)
e6cc62c6
VS
9841 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9842echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9843 { (exit 1); exit 1; }; }
3a922bb4
RL
9844 ;;
9845 *)
e6cc62c6
VS
9846 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9847echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9848 { (exit 1); exit 1; }; }
3a922bb4 9849 esac
10f2d63a 9850
3a922bb4
RL
9851 for toolkit in `echo $ALL_TOOLKITS`; do
9852 var=wxUSE_$toolkit
9853 eval "value=\$${var}"
9854 if test "x$value" != x; then
9855 cache_var=CACHE_$toolkit
9856 eval "cache=\$${cache_var}"
9857 if test "$cache" = 1; then
9858 echo "$var=$value" >> ${wx_arg_cache_file}
9859 fi
9860 if test "$value" = 1; then
89fe663f 9861 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
e6cc62c6
VS
9862 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9863echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9864 fi
9865 fi
9866 done
10f2d63a 9867else
9de9b8f0
VZ
9868 if test "x$host_alias" != "x"; then
9869 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9870echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9871 else
9872 echo "$as_me:$LINENO: result: base only" >&5
9873echo "${ECHO_T}base only" >&6
9874 fi
10f2d63a
VZ
9875fi
9876
43d99b6d
VS
9877wants_win32=0
9878doesnt_want_win32=0
17234b26
MB
9879case "${host}" in
9880 *-*-cygwin*)
9881 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9882 wants_win32=1
9883 else
9884 doesnt_want_win32=1
17234b26
MB
9885 fi
9886 ;;
9887 *-*-mingw*)
43d99b6d 9888 wants_win32=1
17234b26
MB
9889 ;;
9890esac
9891
89e6bf6d
VZ
9892if test "$wxUSE_WINE" = "yes"; then
9893 wants_win32=1
9894 CC=winegcc
9895 CXX=wineg++
9896 RESCOMP=wrc
30f2fa6c 9897 LDFLAGS_GUI="-mwindows"
89e6bf6d
VZ
9898fi
9899
43d99b6d 9900if test "$wants_win32" = 1 ; then
17234b26
MB
9901 USE_UNIX=0
9902 USE_WIN32=1
e6cc62c6 9903 cat >>confdefs.h <<\_ACEOF
17234b26 9904#define __WIN32__ 1
e6cc62c6 9905_ACEOF
17234b26 9906
e6cc62c6 9907 cat >>confdefs.h <<\_ACEOF
17234b26 9908#define __WIN95__ 1
e6cc62c6 9909_ACEOF
17234b26 9910
e6cc62c6 9911 cat >>confdefs.h <<\_ACEOF
17234b26 9912#define __WINDOWS__ 1
e6cc62c6 9913_ACEOF
17234b26 9914
e6cc62c6 9915 cat >>confdefs.h <<\_ACEOF
17234b26 9916#define __GNUWIN32__ 1
e6cc62c6 9917_ACEOF
17234b26 9918
e6cc62c6 9919 cat >>confdefs.h <<\_ACEOF
17234b26 9920#define STRICT 1
e6cc62c6 9921_ACEOF
17234b26 9922
e6cc62c6 9923 cat >>confdefs.h <<\_ACEOF
17234b26 9924#define WINVER 0x0400
e6cc62c6 9925_ACEOF
17234b26 9926
43d99b6d
VS
9927fi
9928if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9929 USE_UNIX=1
9930 USE_WIN32=0
9931fi
9932
9933if test "$USE_UNIX" = 1 ; then
9934 wxUSE_UNIX=yes
e6cc62c6 9935 cat >>confdefs.h <<\_ACEOF
17234b26 9936#define __UNIX__ 1
e6cc62c6 9937_ACEOF
17234b26
MB
9938
9939fi
9940
8284b0c5 9941
e6cc62c6 9942cat >confcache <<\_ACEOF
10f2d63a
VZ
9943# This file is a shell script that caches the results of configure
9944# tests run on this system so they can be shared between configure
e6cc62c6
VS
9945# scripts and configure runs, see configure's option --config-cache.
9946# It is not useful on other systems. If it contains results you don't
9947# want to keep, you may remove or edit it.
10f2d63a 9948#
e6cc62c6
VS
9949# config.status only pays attention to the cache file if you give it
9950# the --recheck option to rerun configure.
10f2d63a 9951#
e6cc62c6
VS
9952# `ac_cv_env_foo' variables (set or unset) will be overridden when
9953# loading this file, other *unset* `ac_cv_foo' will be assigned the
9954# following values.
9955
9956_ACEOF
9957
10f2d63a
VZ
9958# The following way of writing the cache mishandles newlines in values,
9959# but we know of no workaround that is simple, portable, and efficient.
9960# So, don't put newlines in cache variables' values.
9961# Ultrix sh set writes to stderr and can't be redirected directly,
9962# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9963{
9964 (set) 2>&1 |
9965 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9966 *ac_space=\ *)
9967 # `set' does not quote correctly, so add quotes (double-quote
9968 # substitution turns \\\\ into \\, and sed turns \\ into \).
9969 sed -n \
789c5f4a
VZ
9970 "s/'/'\\\\''/g;
9971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
9972 ;;
9973 *)
9974 # `set' quotes correctly as required by POSIX, so do not add quotes.
9975 sed -n \
789c5f4a 9976 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
9977 ;;
9978 esac;
9979} |
9980 sed '
9981 t clear
9982 : clear
9983 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9984 t end
9985 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9986 : end' >>confcache
9987if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9988 if test -w $cache_file; then
e6cc62c6
VS
9989 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9990 cat confcache >$cache_file
10f2d63a
VZ
9991 else
9992 echo "not updating unwritable cache $cache_file"
9993 fi
9994fi
9995rm -f confcache
9996
e59890c3 9997if test "$build" != "$host" ; then
9d353d4a 9998 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9999 CC=$host_alias-gcc
10000 CXX=$host_alias-c++
10001 AR=$host_alias-ar
10002 RANLIB=$host_alias-ranlib
10003 DLLTOOL=$host_alias-dlltool
10004 RESCOMP=$host_alias-windres
10005 LD=$host_alias-ld
10006 NM=$host_alias-nm
10007 STRIP=$host_alias-strip
10008 else
e6cc62c6
VS
10009 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10010echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10011 { (exit 1); exit 1; }; }
3a922bb4 10012 fi
10f2d63a
VZ
10013fi
10014
ec603395 10015CFLAGS=${CFLAGS:=}
e6cc62c6
VS
10016ac_ext=c
10017ac_cpp='$CPP $CPPFLAGS'
10018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10020ac_compiler_gnu=$ac_cv_c_compiler_gnu
10021if test -n "$ac_tool_prefix"; then
10022 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10023set dummy ${ac_tool_prefix}gcc; ac_word=$2
10024echo "$as_me:$LINENO: checking for $ac_word" >&5
10025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10026if test "${ac_cv_prog_CC+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10028else
10029 if test -n "$CC"; then
10030 ac_cv_prog_CC="$CC" # Let the user override the test.
10031else
10032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033for as_dir in $PATH
10034do
10035 IFS=$as_save_IFS
10036 test -z "$as_dir" && as_dir=.
10037 for ac_exec_ext in '' $ac_executable_extensions; do
10038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10039 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10041 break 2
10042 fi
10043done
10044done
10045
10046fi
10047fi
10048CC=$ac_cv_prog_CC
10049if test -n "$CC"; then
10050 echo "$as_me:$LINENO: result: $CC" >&5
10051echo "${ECHO_T}$CC" >&6
10052else
10053 echo "$as_me:$LINENO: result: no" >&5
10054echo "${ECHO_T}no" >&6
10055fi
10056
10057fi
10058if test -z "$ac_cv_prog_CC"; then
10059 ac_ct_CC=$CC
10060 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 10061set dummy gcc; ac_word=$2
e6cc62c6
VS
10062echo "$as_me:$LINENO: checking for $ac_word" >&5
10063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10064if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10066else
10067 if test -n "$ac_ct_CC"; then
10068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10069else
10070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071for as_dir in $PATH
10072do
10073 IFS=$as_save_IFS
10074 test -z "$as_dir" && as_dir=.
10075 for ac_exec_ext in '' $ac_executable_extensions; do
10076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10077 ac_cv_prog_ac_ct_CC="gcc"
10078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10079 break 2
10080 fi
10081done
10082done
10083
10084fi
10085fi
10086ac_ct_CC=$ac_cv_prog_ac_ct_CC
10087if test -n "$ac_ct_CC"; then
10088 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10089echo "${ECHO_T}$ac_ct_CC" >&6
10090else
10091 echo "$as_me:$LINENO: result: no" >&5
10092echo "${ECHO_T}no" >&6
10093fi
10094
10095 CC=$ac_ct_CC
10096else
10097 CC="$ac_cv_prog_CC"
10098fi
10099
10100if test -z "$CC"; then
10101 if test -n "$ac_tool_prefix"; then
10102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10103set dummy ${ac_tool_prefix}cc; ac_word=$2
10104echo "$as_me:$LINENO: checking for $ac_word" >&5
10105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10106if test "${ac_cv_prog_CC+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
10108else
10109 if test -n "$CC"; then
10110 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 10111else
e6cc62c6
VS
10112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113for as_dir in $PATH
10114do
10115 IFS=$as_save_IFS
10116 test -z "$as_dir" && as_dir=.
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10119 ac_cv_prog_CC="${ac_tool_prefix}cc"
10120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10121 break 2
10122 fi
10123done
10124done
10125
10f2d63a 10126fi
6232543b 10127fi
e6cc62c6 10128CC=$ac_cv_prog_CC
6232543b 10129if test -n "$CC"; then
e6cc62c6
VS
10130 echo "$as_me:$LINENO: result: $CC" >&5
10131echo "${ECHO_T}$CC" >&6
10132else
10133 echo "$as_me:$LINENO: result: no" >&5
10134echo "${ECHO_T}no" >&6
10135fi
10136
10137fi
10138if test -z "$ac_cv_prog_CC"; then
10139 ac_ct_CC=$CC
10140 # Extract the first word of "cc", so it can be a program name with args.
10141set dummy cc; ac_word=$2
10142echo "$as_me:$LINENO: checking for $ac_word" >&5
10143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10144if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146else
10147 if test -n "$ac_ct_CC"; then
10148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10149else
10150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151for as_dir in $PATH
10152do
10153 IFS=$as_save_IFS
10154 test -z "$as_dir" && as_dir=.
10155 for ac_exec_ext in '' $ac_executable_extensions; do
10156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10157 ac_cv_prog_ac_ct_CC="cc"
10158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10159 break 2
10160 fi
10161done
10162done
10163
10164fi
10165fi
10166ac_ct_CC=$ac_cv_prog_ac_ct_CC
10167if test -n "$ac_ct_CC"; then
10168 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10169echo "${ECHO_T}$ac_ct_CC" >&6
10170else
10171 echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6
10173fi
10174
10175 CC=$ac_ct_CC
247f5006 10176else
e6cc62c6 10177 CC="$ac_cv_prog_CC"
247f5006
VZ
10178fi
10179
e6cc62c6 10180fi
5c6fa7d2
RR
10181if test -z "$CC"; then
10182 # Extract the first word of "cc", so it can be a program name with args.
10183set dummy cc; ac_word=$2
e6cc62c6
VS
10184echo "$as_me:$LINENO: checking for $ac_word" >&5
10185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10186if test "${ac_cv_prog_CC+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
10188else
10189 if test -n "$CC"; then
10190 ac_cv_prog_CC="$CC" # Let the user override the test.
10191else
10192 ac_prog_rejected=no
e6cc62c6
VS
10193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194for as_dir in $PATH
10195do
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10201 ac_prog_rejected=yes
10202 continue
10203 fi
10204 ac_cv_prog_CC="cc"
10205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10206 break 2
10207 fi
10208done
10209done
10210
328a083c
RR
10211if test $ac_prog_rejected = yes; then
10212 # We found a bogon in the path, so make sure we never use it.
10213 set dummy $ac_cv_prog_CC
10214 shift
e6cc62c6 10215 if test $# != 0; then
328a083c 10216 # We chose a different compiler from the bogus one.
1e487827
VS
10217 # However, it has the same basename, so the bogon will be chosen
10218 # first if we set CC to just the basename; use the full file name.
10219 shift
e6cc62c6 10220 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 10221 fi
1e487827
VS
10222fi
10223fi
10224fi
e6cc62c6 10225CC=$ac_cv_prog_CC
1e487827 10226if test -n "$CC"; then
e6cc62c6
VS
10227 echo "$as_me:$LINENO: result: $CC" >&5
10228echo "${ECHO_T}$CC" >&6
703e0a69 10229else
e6cc62c6
VS
10230 echo "$as_me:$LINENO: result: no" >&5
10231echo "${ECHO_T}no" >&6
703e0a69 10232fi
1e487827 10233
e6cc62c6
VS
10234fi
10235if test -z "$CC"; then
10236 if test -n "$ac_tool_prefix"; then
10237 for ac_prog in cl
10238 do
10239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10240set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10241echo "$as_me:$LINENO: checking for $ac_word" >&5
10242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10243if test "${ac_cv_prog_CC+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
10245else
10246 if test -n "$CC"; then
10247 ac_cv_prog_CC="$CC" # Let the user override the test.
10248else
e6cc62c6
VS
10249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10250for as_dir in $PATH
10251do
10252 IFS=$as_save_IFS
10253 test -z "$as_dir" && as_dir=.
10254 for ac_exec_ext in '' $ac_executable_extensions; do
10255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10256 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10258 break 2
10259 fi
10260done
10261done
10262
f09359cf
VS
10263fi
10264fi
e6cc62c6 10265CC=$ac_cv_prog_CC
f09359cf 10266if test -n "$CC"; then
e6cc62c6
VS
10267 echo "$as_me:$LINENO: result: $CC" >&5
10268echo "${ECHO_T}$CC" >&6
f09359cf 10269else
e6cc62c6
VS
10270 echo "$as_me:$LINENO: result: no" >&5
10271echo "${ECHO_T}no" >&6
5c6fa7d2 10272fi
1e487827 10273
e6cc62c6
VS
10274 test -n "$CC" && break
10275 done
10276fi
10277if test -z "$CC"; then
10278 ac_ct_CC=$CC
10279 for ac_prog in cl
10280do
10281 # Extract the first word of "$ac_prog", so it can be a program name with args.
10282set dummy $ac_prog; ac_word=$2
10283echo "$as_me:$LINENO: checking for $ac_word" >&5
10284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10285if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287else
10288 if test -n "$ac_ct_CC"; then
10289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10290else
10291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292for as_dir in $PATH
10293do
10294 IFS=$as_save_IFS
10295 test -z "$as_dir" && as_dir=.
10296 for ac_exec_ext in '' $ac_executable_extensions; do
10297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10298 ac_cv_prog_ac_ct_CC="$ac_prog"
10299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10300 break 2
10301 fi
10302done
10303done
f09359cf 10304
e6cc62c6
VS
10305fi
10306fi
10307ac_ct_CC=$ac_cv_prog_ac_ct_CC
10308if test -n "$ac_ct_CC"; then
10309 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10310echo "${ECHO_T}$ac_ct_CC" >&6
10311else
10312 echo "$as_me:$LINENO: result: no" >&5
10313echo "${ECHO_T}no" >&6
10314fi
f09359cf 10315
e6cc62c6
VS
10316 test -n "$ac_ct_CC" && break
10317done
247f5006 10318
e6cc62c6
VS
10319 CC=$ac_ct_CC
10320fi
10321
10322fi
10323
10324
10325test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10326See \`config.log' for more details." >&5
10327echo "$as_me: error: no acceptable C compiler found in \$PATH
10328See \`config.log' for more details." >&2;}
10329 { (exit 1); exit 1; }; }
10330
10331# Provide some information about the compiler.
10332echo "$as_me:$LINENO:" \
10333 "checking for C compiler version" >&5
10334ac_compiler=`set X $ac_compile; echo $2`
10335{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10336 (eval $ac_compiler --version </dev/null >&5) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }
10340{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10341 (eval $ac_compiler -v </dev/null >&5) 2>&5
10342 ac_status=$?
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }
10345{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10346 (eval $ac_compiler -V </dev/null >&5) 2>&5
10347 ac_status=$?
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }
10350
10351cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10352#line $LINENO "configure"
e6cc62c6
VS
10353/* confdefs.h. */
10354_ACEOF
10355cat confdefs.h >>conftest.$ac_ext
10356cat >>conftest.$ac_ext <<_ACEOF
10357/* end confdefs.h. */
10358
10359int
10360main ()
10361{
247f5006 10362
e6cc62c6
VS
10363 ;
10364 return 0;
10365}
10366_ACEOF
10367ac_clean_files_save=$ac_clean_files
10368ac_clean_files="$ac_clean_files a.out a.exe b.out"
10369# Try to create an executable without -o first, disregard a.out.
10370# It will help us diagnose broken compilers, and finding out an intuition
10371# of exeext.
789c5f4a
VZ
10372echo "$as_me:$LINENO: checking for C compiler default output" >&5
10373echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
e6cc62c6
VS
10374ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10375if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10376 (eval $ac_link_default) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; then
10380 # Find the output, starting from the most likely. This scheme is
10381# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10382# resort.
10383
10384# Be careful to initialize this variable, since it used to be cached.
10385# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10386ac_cv_exeext=
10387# b.out is created by i960 compilers.
10388for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10389do
10390 test -f "$ac_file" || continue
10391 case $ac_file in
10392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
789c5f4a 10393 ;;
e6cc62c6 10394 conftest.$ac_ext )
789c5f4a
VZ
10395 # This is the source file.
10396 ;;
e6cc62c6 10397 [ab].out )
789c5f4a
VZ
10398 # We found the default executable, but exeext='' is most
10399 # certainly right.
10400 break;;
e6cc62c6 10401 *.* )
789c5f4a
VZ
10402 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10403 # FIXME: I believe we export ac_cv_exeext for Libtool,
10404 # but it would be cool to find out if it's true. Does anybody
10405 # maintain Libtool? --akim.
10406 export ac_cv_exeext
10407 break;;
e6cc62c6 10408 * )
789c5f4a 10409 break;;
e6cc62c6
VS
10410 esac
10411done
10412else
10413 echo "$as_me: failed program was:" >&5
10414sed 's/^/| /' conftest.$ac_ext >&5
10415
10416{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10417See \`config.log' for more details." >&5
10418echo "$as_me: error: C compiler cannot create executables
10419See \`config.log' for more details." >&2;}
10420 { (exit 77); exit 77; }; }
10421fi
10422
10423ac_exeext=$ac_cv_exeext
10424echo "$as_me:$LINENO: result: $ac_file" >&5
10425echo "${ECHO_T}$ac_file" >&6
10426
10427# Check the compiler produces executables we can run. If not, either
10428# the compiler is broken, or we cross compile.
10429echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10430echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10431# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10432# If not cross compiling, check that we can run a simple program.
10433if test "$cross_compiling" != yes; then
10434 if { ac_try='./$ac_file'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; }; then
10440 cross_compiling=no
698dcdb6 10441 else
e6cc62c6
VS
10442 if test "$cross_compiling" = maybe; then
10443 cross_compiling=yes
10444 else
10445 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10446If you meant to cross compile, use \`--host'.
10447See \`config.log' for more details." >&5
10448echo "$as_me: error: cannot run C compiled programs.
10449If you meant to cross compile, use \`--host'.
10450See \`config.log' for more details." >&2;}
10451 { (exit 1); exit 1; }; }
10452 fi
698dcdb6 10453 fi
52127426 10454fi
e6cc62c6
VS
10455echo "$as_me:$LINENO: result: yes" >&5
10456echo "${ECHO_T}yes" >&6
10457
10458rm -f a.out a.exe conftest$ac_cv_exeext b.out
10459ac_clean_files=$ac_clean_files_save
10460# Check the compiler produces executables we can run. If not, either
10461# the compiler is broken, or we cross compile.
10462echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10463echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10464echo "$as_me:$LINENO: result: $cross_compiling" >&5
10465echo "${ECHO_T}$cross_compiling" >&6
10466
10467echo "$as_me:$LINENO: checking for suffix of executables" >&5
10468echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10470 (eval $ac_link) 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; then
10474 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10475# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10476# work properly (i.e., refer to `conftest.exe'), while it won't with
10477# `rm'.
10478for ac_file in conftest.exe conftest conftest.*; do
10479 test -f "$ac_file" || continue
10480 case $ac_file in
10481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10482 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
789c5f4a
VZ
10483 export ac_cv_exeext
10484 break;;
e6cc62c6
VS
10485 * ) break;;
10486 esac
10487done
5c6fa7d2 10488else
e6cc62c6
VS
10489 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10490See \`config.log' for more details." >&5
10491echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10492See \`config.log' for more details." >&2;}
10493 { (exit 1); exit 1; }; }
10494fi
10495
10496rm -f conftest$ac_cv_exeext
10497echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10498echo "${ECHO_T}$ac_cv_exeext" >&6
10499
10500rm -f conftest.$ac_ext
10501EXEEXT=$ac_cv_exeext
10502ac_exeext=$EXEEXT
10503echo "$as_me:$LINENO: checking for suffix of object files" >&5
10504echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10505if test "${ac_cv_objext+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507else
10508 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10509#line $LINENO "configure"
e6cc62c6
VS
10510/* confdefs.h. */
10511_ACEOF
10512cat confdefs.h >>conftest.$ac_ext
10513cat >>conftest.$ac_ext <<_ACEOF
10514/* end confdefs.h. */
10515
10516int
10517main ()
10518{
f09359cf 10519
e6cc62c6
VS
10520 ;
10521 return 0;
10522}
10523_ACEOF
10524rm -f conftest.o conftest.obj
10525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10526 (eval $ac_compile) 2>&5
10527 ac_status=$?
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; then
10530 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10531 case $ac_file in
10532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10533 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10534 break;;
10535 esac
10536done
a0b9e27f 10537else
e6cc62c6
VS
10538 echo "$as_me: failed program was:" >&5
10539sed 's/^/| /' conftest.$ac_ext >&5
10540
10541{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10542See \`config.log' for more details." >&5
10543echo "$as_me: error: cannot compute suffix of object files: cannot compile
10544See \`config.log' for more details." >&2;}
10545 { (exit 1); exit 1; }; }
a0b9e27f 10546fi
247f5006 10547
e6cc62c6
VS
10548rm -f conftest.$ac_cv_objext conftest.$ac_ext
10549fi
10550echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10551echo "${ECHO_T}$ac_cv_objext" >&6
10552OBJEXT=$ac_cv_objext
10553ac_objext=$OBJEXT
10554echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10555echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10556if test "${ac_cv_c_compiler_gnu+set}" = set; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10558else
e6cc62c6 10559 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10560#line $LINENO "configure"
e6cc62c6
VS
10561/* confdefs.h. */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */
10566
10567int
10568main ()
10569{
10570#ifndef __GNUC__
10571 choke me
10572#endif
10573
10574 ;
10575 return 0;
10576}
10577_ACEOF
10578rm -f conftest.$ac_objext
10579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10580 (eval $ac_compile) 2>&5
e6cc62c6
VS
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
789c5f4a 10584 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_compiler_gnu=yes
10591else
10592 echo "$as_me: failed program was:" >&5
10593sed 's/^/| /' conftest.$ac_ext >&5
10594
10595ac_compiler_gnu=no
10596fi
789c5f4a 10597rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10598ac_cv_c_compiler_gnu=$ac_compiler_gnu
10599
10600fi
10601echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10602echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10603GCC=`test $ac_compiler_gnu = yes && echo yes`
10604ac_test_CFLAGS=${CFLAGS+set}
10605ac_save_CFLAGS=$CFLAGS
10606CFLAGS="-g"
10607echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10608echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10609if test "${ac_cv_prog_cc_g+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611else
10612 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10613#line $LINENO "configure"
e6cc62c6
VS
10614/* confdefs.h. */
10615_ACEOF
10616cat confdefs.h >>conftest.$ac_ext
10617cat >>conftest.$ac_ext <<_ACEOF
10618/* end confdefs.h. */
10619
10620int
10621main ()
10622{
10623
10624 ;
10625 return 0;
10626}
10627_ACEOF
10628rm -f conftest.$ac_objext
10629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10630 (eval $ac_compile) 2>&5
e6cc62c6
VS
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } &&
789c5f4a 10634 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10f2d63a
VZ
10640 ac_cv_prog_cc_g=yes
10641else
e6cc62c6
VS
10642 echo "$as_me: failed program was:" >&5
10643sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10644
e6cc62c6 10645ac_cv_prog_cc_g=no
10f2d63a 10646fi
789c5f4a 10647rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10648fi
10649echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10650echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10651if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10652 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10653elif test $ac_cv_prog_cc_g = yes; then
10654 if test "$GCC" = yes; then
10f2d63a
VZ
10655 CFLAGS="-g -O2"
10656 else
f09359cf 10657 CFLAGS="-g"
10f2d63a 10658 fi
5c0a20c3 10659else
f09359cf
VS
10660 if test "$GCC" = yes; then
10661 CFLAGS="-O2"
10662 else
10663 CFLAGS=
10664 fi
10f2d63a 10665fi
e6cc62c6
VS
10666echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10667echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10668if test "${ac_cv_prog_cc_stdc+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10670else
10671 ac_cv_prog_cc_stdc=no
10672ac_save_CC=$CC
10673cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10674#line $LINENO "configure"
e6cc62c6
VS
10675/* confdefs.h. */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
10679/* end confdefs.h. */
10680#include <stdarg.h>
10681#include <stdio.h>
10682#include <sys/types.h>
10683#include <sys/stat.h>
10684/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10685struct buf { int x; };
10686FILE * (*rcsopen) (struct buf *, struct stat *, int);
10687static char *e (p, i)
10688 char **p;
10689 int i;
10690{
10691 return p[i];
10692}
10693static char *f (char * (*g) (char **, int), char **p, ...)
10694{
10695 char *s;
10696 va_list v;
10697 va_start (v,p);
10698 s = g (p, va_arg (v,int));
10699 va_end (v);
10700 return s;
10701}
10702int test (int i, double x);
10703struct s1 {int (*f) (int a);};
10704struct s2 {int (*f) (double a);};
10705int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10706int argc;
10707char **argv;
10708int
10709main ()
10710{
10711return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10712 ;
10713 return 0;
10714}
10715_ACEOF
10716# Don't try gcc -ansi; that turns off useful extensions and
10717# breaks some systems' header files.
10718# AIX -qlanglvl=ansi
10719# Ultrix and OSF/1 -std1
10720# HP-UX 10.20 and later -Ae
10721# HP-UX older versions -Aa -D_HPUX_SOURCE
10722# SVR4 -Xc -D__EXTENSIONS__
10723for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10724do
10725 CC="$ac_save_CC $ac_arg"
10726 rm -f conftest.$ac_objext
10727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10728 (eval $ac_compile) 2>&5
e6cc62c6
VS
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } &&
789c5f4a 10732 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_prog_cc_stdc=$ac_arg
10739break
10740else
10741 echo "$as_me: failed program was:" >&5
10742sed 's/^/| /' conftest.$ac_ext >&5
10743
10744fi
789c5f4a 10745rm -f conftest.$ac_objext
e6cc62c6
VS
10746done
10747rm -f conftest.$ac_ext conftest.$ac_objext
10748CC=$ac_save_CC
10749
10750fi
10751
10752case "x$ac_cv_prog_cc_stdc" in
10753 x|xno)
10754 echo "$as_me:$LINENO: result: none needed" >&5
10755echo "${ECHO_T}none needed" >&6 ;;
10756 *)
10757 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10758echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10759 CC="$CC $ac_cv_prog_cc_stdc" ;;
10760esac
10761
10762# Some people use a C++ compiler to compile C. Since we use `exit',
10763# in C++ we need to declare it. In case someone uses the same compiler
10764# for both compiling C and C++ we need to have the C++ compiler decide
10765# the declaration of exit, since it's the most demanding environment.
10766cat >conftest.$ac_ext <<_ACEOF
10767#ifndef __cplusplus
10768 choke me
10769#endif
10770_ACEOF
10771rm -f conftest.$ac_objext
10772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10773 (eval $ac_compile) 2>&5
e6cc62c6
VS
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
789c5f4a 10777 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 for ac_declaration in \
ecfd48ca 10784 '' \
e6cc62c6
VS
10785 'extern "C" void std::exit (int) throw (); using std::exit;' \
10786 'extern "C" void std::exit (int); using std::exit;' \
10787 'extern "C" void exit (int) throw ();' \
10788 'extern "C" void exit (int);' \
10789 'void exit (int);'
10790do
10791 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10792#line $LINENO "configure"
e6cc62c6
VS
10793/* confdefs.h. */
10794_ACEOF
10795cat confdefs.h >>conftest.$ac_ext
10796cat >>conftest.$ac_ext <<_ACEOF
10797/* end confdefs.h. */
5a60a58a 10798$ac_declaration
ecfd48ca 10799#include <stdlib.h>
e6cc62c6
VS
10800int
10801main ()
10802{
10803exit (42);
10804 ;
10805 return 0;
10806}
10807_ACEOF
10808rm -f conftest.$ac_objext
10809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10810 (eval $ac_compile) 2>&5
e6cc62c6
VS
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
789c5f4a 10814 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10817 ac_status=$?
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; }; then
10820 :
10821else
10822 echo "$as_me: failed program was:" >&5
10823sed 's/^/| /' conftest.$ac_ext >&5
10824
10825continue
10826fi
789c5f4a 10827rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 10828 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10829#line $LINENO "configure"
e6cc62c6
VS
10830/* confdefs.h. */
10831_ACEOF
10832cat confdefs.h >>conftest.$ac_ext
10833cat >>conftest.$ac_ext <<_ACEOF
10834/* end confdefs.h. */
10835$ac_declaration
10836int
10837main ()
10838{
10839exit (42);
10840 ;
10841 return 0;
10842}
10843_ACEOF
10844rm -f conftest.$ac_objext
10845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10846 (eval $ac_compile) 2>&5
e6cc62c6
VS
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } &&
789c5f4a 10850 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 break
10857else
10858 echo "$as_me: failed program was:" >&5
10859sed 's/^/| /' conftest.$ac_ext >&5
10860
10861fi
789c5f4a 10862rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10863done
10864rm -f conftest*
10865if test -n "$ac_declaration"; then
10866 echo '#ifdef __cplusplus' >>confdefs.h
10867 echo $ac_declaration >>confdefs.h
10868 echo '#endif' >>confdefs.h
10869fi
10870
10871else
10872 echo "$as_me: failed program was:" >&5
10873sed 's/^/| /' conftest.$ac_ext >&5
10874
10875fi
789c5f4a 10876rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10877ac_ext=c
10878ac_cpp='$CPP $CPPFLAGS'
10879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10881ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10882
10883
e6cc62c6
VS
10884
10885ac_ext=c
10886ac_cpp='$CPP $CPPFLAGS'
10887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10889ac_compiler_gnu=$ac_cv_c_compiler_gnu
10890echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10891echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10892# On Suns, sometimes $CPP names a directory.
10893if test -n "$CPP" && test -d "$CPP"; then
10894 CPP=
10895fi
10896if test -z "$CPP"; then
e6cc62c6
VS
10897 if test "${ac_cv_prog_CPP+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10899else
10900 # Double quotes because CPP needs to be expanded
10901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10902 do
10903 ac_preproc_ok=false
10904for ac_c_preproc_warn_flag in '' yes
10905do
10906 # Use a header file that comes with gcc, so configuring glibc
10907 # with a fresh cross-compiler works.
10908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10909 # <limits.h> exists even on freestanding compilers.
10f2d63a 10910 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10911 # not just through cpp. "Syntax error" is here to catch this case.
10912 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10913#line $LINENO "configure"
e6cc62c6
VS
10914/* confdefs.h. */
10915_ACEOF
10916cat confdefs.h >>conftest.$ac_ext
10917cat >>conftest.$ac_ext <<_ACEOF
10918/* end confdefs.h. */
10919#ifdef __STDC__
10920# include <limits.h>
10921#else
10922# include <assert.h>
10923#endif
789c5f4a 10924 Syntax error
e6cc62c6
VS
10925_ACEOF
10926if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } >/dev/null; then
10934 if test -s conftest.err; then
10935 ac_cpp_err=$ac_c_preproc_warn_flag
10936 else
10937 ac_cpp_err=
10938 fi
10f2d63a 10939else
e6cc62c6
VS
10940 ac_cpp_err=yes
10941fi
10942if test -z "$ac_cpp_err"; then
a0b9e27f 10943 :
247f5006 10944else
e6cc62c6
VS
10945 echo "$as_me: failed program was:" >&5
10946sed 's/^/| /' conftest.$ac_ext >&5
10947
10948 # Broken: fails on valid input.
10949continue
10950fi
10951rm -f conftest.err conftest.$ac_ext
10952
10953 # OK, works on sane cases. Now check whether non-existent headers
10954 # can be detected and how.
10955 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10956#line $LINENO "configure"
e6cc62c6
VS
10957/* confdefs.h. */
10958_ACEOF
10959cat confdefs.h >>conftest.$ac_ext
10960cat >>conftest.$ac_ext <<_ACEOF
10961/* end confdefs.h. */
10962#include <ac_nonexistent.h>
10963_ACEOF
10964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10966 ac_status=$?
10967 grep -v '^ *+' conftest.er1 >conftest.err
10968 rm -f conftest.er1
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } >/dev/null; then
10972 if test -s conftest.err; then
10973 ac_cpp_err=$ac_c_preproc_warn_flag
10974 else
10975 ac_cpp_err=
10976 fi
10f2d63a 10977else
e6cc62c6 10978 ac_cpp_err=yes
579d8138 10979fi
e6cc62c6
VS
10980if test -z "$ac_cpp_err"; then
10981 # Broken: success on invalid input.
10982continue
10983else
10984 echo "$as_me: failed program was:" >&5
10985sed 's/^/| /' conftest.$ac_ext >&5
10986
10987 # Passes both tests.
10988ac_preproc_ok=:
10989break
52127426 10990fi
e6cc62c6
VS
10991rm -f conftest.err conftest.$ac_ext
10992
10993done
10994# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10995rm -f conftest.err conftest.$ac_ext
10996if $ac_preproc_ok; then
10997 break
8284b0c5 10998fi
e6cc62c6
VS
10999
11000 done
11001 ac_cv_prog_CPP=$CPP
11002
11003fi
11004 CPP=$ac_cv_prog_CPP
11005else
11006 ac_cv_prog_CPP=$CPP
11007fi
11008echo "$as_me:$LINENO: result: $CPP" >&5
11009echo "${ECHO_T}$CPP" >&6
11010ac_preproc_ok=false
11011for ac_c_preproc_warn_flag in '' yes
11012do
11013 # Use a header file that comes with gcc, so configuring glibc
11014 # with a fresh cross-compiler works.
11015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11016 # <limits.h> exists even on freestanding compilers.
11017 # On the NeXT, cc -E runs the code through the compiler's parser,
11018 # not just through cpp. "Syntax error" is here to catch this case.
11019 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11020#line $LINENO "configure"
e6cc62c6
VS
11021/* confdefs.h. */
11022_ACEOF
11023cat confdefs.h >>conftest.$ac_ext
11024cat >>conftest.$ac_ext <<_ACEOF
11025/* end confdefs.h. */
11026#ifdef __STDC__
11027# include <limits.h>
11028#else
11029# include <assert.h>
11030#endif
789c5f4a 11031 Syntax error
e6cc62c6
VS
11032_ACEOF
11033if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11035 ac_status=$?
11036 grep -v '^ *+' conftest.er1 >conftest.err
11037 rm -f conftest.er1
11038 cat conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } >/dev/null; then
11041 if test -s conftest.err; then
11042 ac_cpp_err=$ac_c_preproc_warn_flag
11043 else
11044 ac_cpp_err=
11045 fi
11046else
11047 ac_cpp_err=yes
11048fi
11049if test -z "$ac_cpp_err"; then
11050 :
11051else
11052 echo "$as_me: failed program was:" >&5
11053sed 's/^/| /' conftest.$ac_ext >&5
11054
11055 # Broken: fails on valid input.
11056continue
11057fi
11058rm -f conftest.err conftest.$ac_ext
11059
11060 # OK, works on sane cases. Now check whether non-existent headers
11061 # can be detected and how.
11062 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11063#line $LINENO "configure"
e6cc62c6
VS
11064/* confdefs.h. */
11065_ACEOF
11066cat confdefs.h >>conftest.$ac_ext
11067cat >>conftest.$ac_ext <<_ACEOF
11068/* end confdefs.h. */
11069#include <ac_nonexistent.h>
11070_ACEOF
11071if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } >/dev/null; then
11079 if test -s conftest.err; then
11080 ac_cpp_err=$ac_c_preproc_warn_flag
11081 else
11082 ac_cpp_err=
11083 fi
11084else
11085 ac_cpp_err=yes
11086fi
11087if test -z "$ac_cpp_err"; then
11088 # Broken: success on invalid input.
11089continue
11090else
11091 echo "$as_me: failed program was:" >&5
11092sed 's/^/| /' conftest.$ac_ext >&5
11093
11094 # Passes both tests.
11095ac_preproc_ok=:
11096break
a0b9e27f 11097fi
e6cc62c6
VS
11098rm -f conftest.err conftest.$ac_ext
11099
11100done
11101# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11102rm -f conftest.err conftest.$ac_ext
11103if $ac_preproc_ok; then
11104 :
11105else
11106 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11107See \`config.log' for more details." >&5
11108echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11109See \`config.log' for more details." >&2;}
11110 { (exit 1); exit 1; }; }
11111fi
11112
11113ac_ext=c
11114ac_cpp='$CPP $CPPFLAGS'
11115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11117ac_compiler_gnu=$ac_cv_c_compiler_gnu
11118
11119
11120echo "$as_me:$LINENO: checking for egrep" >&5
11121echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11122if test "${ac_cv_prog_egrep+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11124else
e6cc62c6
VS
11125 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11126 then ac_cv_prog_egrep='grep -E'
11127 else ac_cv_prog_egrep='egrep'
11128 fi
10f2d63a 11129fi
e6cc62c6
VS
11130echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11131echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11132 EGREP=$ac_cv_prog_egrep
11133
10f2d63a 11134
e6cc62c6
VS
11135if test $ac_cv_c_compiler_gnu = yes; then
11136 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11137echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11138if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11140else
11141 ac_pattern="Autoconf.*'x'"
e6cc62c6 11142 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11143#line $LINENO "configure"
e6cc62c6
VS
11144/* confdefs.h. */
11145_ACEOF
11146cat confdefs.h >>conftest.$ac_ext
11147cat >>conftest.$ac_ext <<_ACEOF
11148/* end confdefs.h. */
10f2d63a
VZ
11149#include <sgtty.h>
11150Autoconf TIOCGETP
e6cc62c6 11151_ACEOF
10f2d63a 11152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11153 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11154 ac_cv_prog_gcc_traditional=yes
11155else
10f2d63a
VZ
11156 ac_cv_prog_gcc_traditional=no
11157fi
11158rm -f conftest*
11159
8284b0c5 11160
10f2d63a 11161 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6 11162 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11163#line $LINENO "configure"
e6cc62c6
VS
11164/* confdefs.h. */
11165_ACEOF
11166cat confdefs.h >>conftest.$ac_ext
11167cat >>conftest.$ac_ext <<_ACEOF
11168/* end confdefs.h. */
10f2d63a
VZ
11169#include <termio.h>
11170Autoconf TCGETA
e6cc62c6 11171_ACEOF
10f2d63a 11172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11173 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11174 ac_cv_prog_gcc_traditional=yes
11175fi
11176rm -f conftest*
11177
11178 fi
11179fi
e6cc62c6
VS
11180echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11181echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
11182 if test $ac_cv_prog_gcc_traditional = yes; then
11183 CC="$CC -traditional"
11184 fi
11185fi
11186
8284b0c5
MB
11187
11188
e6cc62c6
VS
11189
11190ac_ext=cc
1e487827 11191ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
11192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 11195
698dcdb6 11196
ec603395 11197CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
11198ac_ext=cc
11199ac_cpp='$CXXCPP $CPPFLAGS'
11200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11203if test -n "$ac_tool_prefix"; then
11204 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11205 do
11206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11207set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11208echo "$as_me:$LINENO: checking for $ac_word" >&5
11209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11210if test "${ac_cv_prog_CXX+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11212else
11213 if test -n "$CXX"; then
11214 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11215else
e6cc62c6
VS
11216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217for as_dir in $PATH
11218do
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11223 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
11226 fi
11227done
11228done
11229
10f2d63a
VZ
11230fi
11231fi
e6cc62c6 11232CXX=$ac_cv_prog_CXX
10f2d63a 11233if test -n "$CXX"; then
e6cc62c6
VS
11234 echo "$as_me:$LINENO: result: $CXX" >&5
11235echo "${ECHO_T}$CXX" >&6
10f2d63a 11236else
e6cc62c6
VS
11237 echo "$as_me:$LINENO: result: no" >&5
11238echo "${ECHO_T}no" >&6
10f2d63a
VZ
11239fi
11240
e6cc62c6
VS
11241 test -n "$CXX" && break
11242 done
11243fi
11244if test -z "$CXX"; then
11245 ac_ct_CXX=$CXX
11246 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11247do
11248 # Extract the first word of "$ac_prog", so it can be a program name with args.
11249set dummy $ac_prog; ac_word=$2
11250echo "$as_me:$LINENO: checking for $ac_word" >&5
11251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11252if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11254else
11255 if test -n "$ac_ct_CXX"; then
11256 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11257else
11258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259for as_dir in $PATH
11260do
11261 IFS=$as_save_IFS
11262 test -z "$as_dir" && as_dir=.
11263 for ac_exec_ext in '' $ac_executable_extensions; do
11264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11265 ac_cv_prog_ac_ct_CXX="$ac_prog"
11266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11267 break 2
11268 fi
11269done
10f2d63a 11270done
a0b9e27f 11271
8284b0c5 11272fi
a0b9e27f 11273fi
e6cc62c6
VS
11274ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11275if test -n "$ac_ct_CXX"; then
11276 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11277echo "${ECHO_T}$ac_ct_CXX" >&6
11278else
11279 echo "$as_me:$LINENO: result: no" >&5
11280echo "${ECHO_T}no" >&6
a0b9e27f 11281fi
10f2d63a 11282
e6cc62c6
VS
11283 test -n "$ac_ct_CXX" && break
11284done
11285test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11286
11287 CXX=$ac_ct_CXX
11288fi
11289
11290
11291# Provide some information about the compiler.
11292echo "$as_me:$LINENO:" \
11293 "checking for C++ compiler version" >&5
11294ac_compiler=`set X $ac_compile; echo $2`
11295{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11296 (eval $ac_compiler --version </dev/null >&5) 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }
11300{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11301 (eval $ac_compiler -v </dev/null >&5) 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }
11305{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11306 (eval $ac_compiler -V </dev/null >&5) 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }
11310
11311echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11312echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11313if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11315else
11316 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11317#line $LINENO "configure"
e6cc62c6
VS
11318/* confdefs.h. */
11319_ACEOF
11320cat confdefs.h >>conftest.$ac_ext
11321cat >>conftest.$ac_ext <<_ACEOF
11322/* end confdefs.h. */
11323
11324int
11325main ()
11326{
11327#ifndef __GNUC__
11328 choke me
11329#endif
10f2d63a 11330
e6cc62c6
VS
11331 ;
11332 return 0;
11333}
11334_ACEOF
11335rm -f conftest.$ac_objext
11336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 11337 (eval $ac_compile) 2>&5
e6cc62c6
VS
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
789c5f4a 11341 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
11347 ac_compiler_gnu=yes
11348else
11349 echo "$as_me: failed program was:" >&5
11350sed 's/^/| /' conftest.$ac_ext >&5
11351
11352ac_compiler_gnu=no
11353fi
789c5f4a 11354rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11355ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11356
11357fi
11358echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11359echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11360GXX=`test $ac_compiler_gnu = yes && echo yes`
11361ac_test_CXXFLAGS=${CXXFLAGS+set}
11362ac_save_CXXFLAGS=$CXXFLAGS
11363CXXFLAGS="-g"
11364echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11365echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11366if test "${ac_cv_prog_cxx_g+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368else
11369 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11370#line $LINENO "configure"
e6cc62c6
VS
11371/* confdefs.h. */
11372_ACEOF
11373cat confdefs.h >>conftest.$ac_ext
11374cat >>conftest.$ac_ext <<_ACEOF
11375/* end confdefs.h. */
11376
11377int
11378main ()
11379{
f09359cf 11380
e6cc62c6
VS
11381 ;
11382 return 0;
11383}
11384_ACEOF
11385rm -f conftest.$ac_objext
11386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 11387 (eval $ac_compile) 2>&5
e6cc62c6
VS
11388 ac_status=$?
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } &&
789c5f4a 11391 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393 (eval $ac_try) 2>&5
11394 ac_status=$?
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; }; then
10f2d63a
VZ
11397 ac_cv_prog_cxx_g=yes
11398else
e6cc62c6
VS
11399 echo "$as_me: failed program was:" >&5
11400sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11401
e6cc62c6 11402ac_cv_prog_cxx_g=no
10f2d63a 11403fi
789c5f4a 11404rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11405fi
11406echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11407echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11408if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11409 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11410elif test $ac_cv_prog_cxx_g = yes; then
11411 if test "$GXX" = yes; then
10f2d63a
VZ
11412 CXXFLAGS="-g -O2"
11413 else
f09359cf 11414 CXXFLAGS="-g"
10f2d63a 11415 fi
5c0a20c3 11416else
f09359cf
VS
11417 if test "$GXX" = yes; then
11418 CXXFLAGS="-O2"
11419 else
11420 CXXFLAGS=
11421 fi
10f2d63a 11422fi
e6cc62c6 11423for ac_declaration in \
ecfd48ca 11424 '' \
e6cc62c6
VS
11425 'extern "C" void std::exit (int) throw (); using std::exit;' \
11426 'extern "C" void std::exit (int); using std::exit;' \
11427 'extern "C" void exit (int) throw ();' \
11428 'extern "C" void exit (int);' \
11429 'void exit (int);'
11430do
11431 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11432#line $LINENO "configure"
e6cc62c6
VS
11433/* confdefs.h. */
11434_ACEOF
11435cat confdefs.h >>conftest.$ac_ext
11436cat >>conftest.$ac_ext <<_ACEOF
11437/* end confdefs.h. */
5a60a58a 11438$ac_declaration
ecfd48ca 11439#include <stdlib.h>
e6cc62c6
VS
11440int
11441main ()
11442{
11443exit (42);
11444 ;
11445 return 0;
11446}
11447_ACEOF
11448rm -f conftest.$ac_objext
11449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 11450 (eval $ac_compile) 2>&5
e6cc62c6
VS
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
789c5f4a 11454 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11457 ac_status=$?
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }; then
11460 :
11461else
11462 echo "$as_me: failed program was:" >&5
11463sed 's/^/| /' conftest.$ac_ext >&5
11464
11465continue
11466fi
789c5f4a 11467rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 11468 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11469#line $LINENO "configure"
e6cc62c6
VS
11470/* confdefs.h. */
11471_ACEOF
11472cat confdefs.h >>conftest.$ac_ext
11473cat >>conftest.$ac_ext <<_ACEOF
11474/* end confdefs.h. */
11475$ac_declaration
11476int
11477main ()
11478{
11479exit (42);
11480 ;
11481 return 0;
11482}
11483_ACEOF
11484rm -f conftest.$ac_objext
11485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 11486 (eval $ac_compile) 2>&5
e6cc62c6
VS
11487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
789c5f4a 11490 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
11496 break
11497else
11498 echo "$as_me: failed program was:" >&5
11499sed 's/^/| /' conftest.$ac_ext >&5
11500
11501fi
789c5f4a 11502rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11503done
11504rm -f conftest*
11505if test -n "$ac_declaration"; then
11506 echo '#ifdef __cplusplus' >>confdefs.h
11507 echo $ac_declaration >>confdefs.h
11508 echo '#endif' >>confdefs.h
11509fi
11510
11511ac_ext=cc
11512ac_cpp='$CXXCPP $CPPFLAGS'
11513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11516
11517
10f2d63a 11518ac_ext=c
10f2d63a 11519ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11522ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11523
11524
e6cc62c6
VS
11525if test -n "$ac_tool_prefix"; then
11526 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11527set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11528echo "$as_me:$LINENO: checking for $ac_word" >&5
11529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11530if test "${ac_cv_prog_RANLIB+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11532else
11533 if test -n "$RANLIB"; then
11534 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11535else
e6cc62c6
VS
11536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537for as_dir in $PATH
11538do
11539 IFS=$as_save_IFS
11540 test -z "$as_dir" && as_dir=.
11541 for ac_exec_ext in '' $ac_executable_extensions; do
11542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11543 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11545 break 2
11546 fi
11547done
11548done
11549
10f2d63a
VZ
11550fi
11551fi
e6cc62c6 11552RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11553if test -n "$RANLIB"; then
e6cc62c6
VS
11554 echo "$as_me:$LINENO: result: $RANLIB" >&5
11555echo "${ECHO_T}$RANLIB" >&6
11556else
11557 echo "$as_me:$LINENO: result: no" >&5
11558echo "${ECHO_T}no" >&6
11559fi
11560
11561fi
11562if test -z "$ac_cv_prog_RANLIB"; then
11563 ac_ct_RANLIB=$RANLIB
11564 # Extract the first word of "ranlib", so it can be a program name with args.
11565set dummy ranlib; ac_word=$2
11566echo "$as_me:$LINENO: checking for $ac_word" >&5
11567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11568if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11570else
e6cc62c6
VS
11571 if test -n "$ac_ct_RANLIB"; then
11572 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11573else
11574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575for as_dir in $PATH
11576do
11577 IFS=$as_save_IFS
11578 test -z "$as_dir" && as_dir=.
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11581 ac_cv_prog_ac_ct_RANLIB="ranlib"
11582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11583 break 2
11584 fi
11585done
11586done
11587
11588 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11589fi
11590fi
11591ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11592if test -n "$ac_ct_RANLIB"; then
11593 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11594echo "${ECHO_T}$ac_ct_RANLIB" >&6
11595else
11596 echo "$as_me:$LINENO: result: no" >&5
11597echo "${ECHO_T}no" >&6
11598fi
11599
11600 RANLIB=$ac_ct_RANLIB
11601else
11602 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11603fi
11604
10f2d63a
VZ
11605
11606# Extract the first word of "ar", so it can be a program name with args.
11607set dummy ar; ac_word=$2
e6cc62c6
VS
11608echo "$as_me:$LINENO: checking for $ac_word" >&5
11609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11610if test "${ac_cv_prog_AR+set}" = set; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11612else
11613 if test -n "$AR"; then
11614 ac_cv_prog_AR="$AR" # Let the user override the test.
11615else
e6cc62c6
VS
11616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617for as_dir in $PATH
11618do
11619 IFS=$as_save_IFS
11620 test -z "$as_dir" && as_dir=.
11621 for ac_exec_ext in '' $ac_executable_extensions; do
11622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11623 ac_cv_prog_AR="ar"
11624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11625 break 2
11626 fi
11627done
11628done
11629
10f2d63a
VZ
11630fi
11631fi
e6cc62c6 11632AR=$ac_cv_prog_AR
10f2d63a 11633if test -n "$AR"; then
e6cc62c6
VS
11634 echo "$as_me:$LINENO: result: $AR" >&5
11635echo "${ECHO_T}$AR" >&6
10f2d63a 11636else
e6cc62c6
VS
11637 echo "$as_me:$LINENO: result: no" >&5
11638echo "${ECHO_T}no" >&6
10f2d63a
VZ
11639fi
11640
911740e7
VS
11641if test "x$AR" = "x" ; then
11642 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11643echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11644 { (exit 1); exit 1; }; }
11645fi
8284b0c5 11646
6054113a 11647# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11648# so one script is as good as another. But avoid the broken or
11649# incompatible versions:
11650# SysV /etc/install, /usr/sbin/install
11651# SunOS /usr/etc/install
11652# IRIX /sbin/install
11653# AIX /bin/install
e6cc62c6 11654# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11655# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11656# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11657# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11658# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11659echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11660echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11661if test -z "$INSTALL"; then
e6cc62c6
VS
11662if test "${ac_cv_path_install+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664else
11665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666for as_dir in $PATH
11667do
11668 IFS=$as_save_IFS
11669 test -z "$as_dir" && as_dir=.
11670 # Account for people who put trailing slashes in PATH elements.
11671case $as_dir/ in
11672 ./ | .// | /cC/* | \
11673 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11674 /usr/ucb/* ) ;;
11675 *)
11676 # OSF1 and SCO ODT 3.0 have their own names for install.
11677 # Don't use installbsd from OSF since it installs stuff as root
11678 # by default.
11679 for ac_prog in ginstall scoinst install; do
11680 for ac_exec_ext in '' $ac_executable_extensions; do
789c5f4a
VZ
11681 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11682 if test $ac_prog = install &&
11683 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11684 # AIX install. It has an incompatible calling convention.
11685 :
11686 elif test $ac_prog = install &&
11687 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11688 # program-specific install script used by HP pwplus--don't use.
11689 :
11690 else
11691 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11692 break 3
11693 fi
11694 fi
10f2d63a 11695 done
e6cc62c6
VS
11696 done
11697 ;;
11698esac
11699done
11700
10f2d63a
VZ
11701
11702fi
11703 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11704 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11705 else
11706 # As a last resort, use the slow shell script. We don't cache a
11707 # path for INSTALL within a source directory, because that will
11708 # break other packages using the cache if that directory is
11709 # removed, or if the path is relative.
e6cc62c6 11710 INSTALL=$ac_install_sh
10f2d63a
VZ
11711 fi
11712fi
e6cc62c6
VS
11713echo "$as_me:$LINENO: result: $INSTALL" >&5
11714echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11715
11716# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11717# It thinks the first close brace ends the variable substitution.
11718test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11719
e6cc62c6 11720test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11721
10f2d63a
VZ
11722test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11723
8284b0c5 11724
1d1b75ac
VZ
11725case ${INSTALL} in
11726 /* ) # Absolute
11727 ;;
4f5a7f74
VZ
11728 ?:* ) # Drive letter, considered as absolute.
11729 ;;
3bd8fb5f 11730 *)
1d1b75ac
VZ
11731 INSTALL=`pwd`/${INSTALL} ;;
11732esac
11733
4f5a7f74
VZ
11734case ${host} in
11735 *-hp-hpux* )
11736 INSTALL_DIR="mkdir"
11737 ;;
11738
11739 *) INSTALL_DIR="$INSTALL -d"
11740 ;;
11741esac
11742
8284b0c5 11743
6054113a
GD
11744case "${host}" in
11745
b5853384 11746 powerpc-*-darwin* )
eb99ae0b
GD
11747 INSTALL_PROGRAM="cp -fp"
11748 INSTALL_DATA="cp -fp"
6054113a
GD
11749 ;;
11750 *)
11751 ;;
d6853540 11752esac
698dcdb6 11753
10f2d63a
VZ
11754# Extract the first word of "strip", so it can be a program name with args.
11755set dummy strip; ac_word=$2
e6cc62c6
VS
11756echo "$as_me:$LINENO: checking for $ac_word" >&5
11757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11758if test "${ac_cv_prog_STRIP+set}" = set; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11760else
11761 if test -n "$STRIP"; then
11762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11763else
e6cc62c6
VS
11764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11765for as_dir in $PATH
11766do
11767 IFS=$as_save_IFS
11768 test -z "$as_dir" && as_dir=.
11769 for ac_exec_ext in '' $ac_executable_extensions; do
11770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11771 ac_cv_prog_STRIP="strip"
11772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11773 break 2
11774 fi
11775done
11776done
11777
10f2d63a
VZ
11778 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11779fi
11780fi
e6cc62c6 11781STRIP=$ac_cv_prog_STRIP
10f2d63a 11782if test -n "$STRIP"; then
e6cc62c6
VS
11783 echo "$as_me:$LINENO: result: $STRIP" >&5
11784echo "${ECHO_T}$STRIP" >&6
10f2d63a 11785else
e6cc62c6
VS
11786 echo "$as_me:$LINENO: result: no" >&5
11787echo "${ECHO_T}no" >&6
10f2d63a
VZ
11788fi
11789
5c6fa7d2 11790
e6cc62c6
VS
11791echo "$as_me:$LINENO: checking if make is GNU make" >&5
11792echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11793if test "${wx_cv_prog_makeisgnu+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11795else
e6cc62c6 11796
414eab6d 11797 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11798 egrep -s GNU > /dev/null); then
414eab6d
VZ
11799 wx_cv_prog_makeisgnu="yes"
11800 else
11801 wx_cv_prog_makeisgnu="no"
11802 fi
11803
11804fi
e6cc62c6
VS
11805echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11806echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11807
11808if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11809 IF_GNU_MAKE=""
11810else
11811 IF_GNU_MAKE="#"
11812fi
11813
8284b0c5
MB
11814
11815
414eab6d 11816if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11817echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11818echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11819if test "${wx_cv_prog_makevpath+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11821else
e6cc62c6 11822
10f2d63a
VZ
11823cat - << EOF > confMake
11824check : file
11825 cp \$? \$@
11826 cp \$? final_file
11827EOF
11828
11829if test ! -d sub ; then
11830 mkdir sub
11831fi
11832echo dummy > sub/file
f6bcfd97 11833${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11834RESULT=$?
11835rm -f sub/file check final_file confMake
11836rmdir sub
11837if test "$RESULT" = 0; then
04e7a216 11838 wx_cv_prog_makevpath="yes"
10f2d63a 11839else
04e7a216
VZ
11840 wx_cv_prog_makevpath="no"
11841fi
11842
11843fi
e6cc62c6
VS
11844echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11845echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11846
11847if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11848{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11849You need a make-utility that is able to use the variable
11850VPATH correctly.
11851If your version of make does not support VPATH correctly,
11852please install GNU-make (possibly as gmake), and start
11853configure with the following command:
11854export MAKE=gmake; ./configure for sh-type shells
11855setenv MAKE gmake; ./configure for csh-type shells
11856Also please do remember to use gmake in this case every time
11857you are trying to compile.
e6cc62c6
VS
11858" >&5
11859echo "$as_me: error:
11860You need a make-utility that is able to use the variable
11861VPATH correctly.
11862If your version of make does not support VPATH correctly,
11863please install GNU-make (possibly as gmake), and start
11864configure with the following command:
11865export MAKE=gmake; ./configure for sh-type shells
11866setenv MAKE gmake; ./configure for csh-type shells
11867Also please do remember to use gmake in this case every time
11868you are trying to compile.
11869" >&2;}
11870 { (exit 1); exit 1; }; }
11871fi fi
e6cc62c6
VS
11872echo "$as_me:$LINENO: checking whether ln -s works" >&5
11873echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11874LN_S=$as_ln_s
11875if test "$LN_S" = "ln -s"; then
11876 echo "$as_me:$LINENO: result: yes" >&5
11877echo "${ECHO_T}yes" >&6
10f2d63a 11878else
e6cc62c6
VS
11879 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11880echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11881fi
5c6fa7d2 11882
247f5006 11883
2b5f62a0
VZ
11884case "${host}" in
11885 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 11886 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11887 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11888echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11889if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11891else
e6cc62c6 11892 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11893LIBS="-lcExt $LIBS"
e6cc62c6 11894cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11895#line $LINENO "configure"
e6cc62c6
VS
11896/* confdefs.h. */
11897_ACEOF
11898cat confdefs.h >>conftest.$ac_ext
11899cat >>conftest.$ac_ext <<_ACEOF
11900/* end confdefs.h. */
11901
2b5f62a0 11902/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11903#ifdef __cplusplus
11904extern "C"
11905#endif
2b5f62a0 11906/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11907 builtin and then its argument prototype would still apply. */
11908char drand48 ();
11909int
11910main ()
11911{
11912drand48 ();
11913 ;
11914 return 0;
11915}
11916_ACEOF
11917rm -f conftest.$ac_objext conftest$ac_exeext
11918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 11919 (eval $ac_link) 2>&5
e6cc62c6
VS
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } &&
789c5f4a 11923 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11926 ac_status=$?
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; }; then
11929 ac_cv_lib_cExt_drand48=yes
11930else
11931 echo "$as_me: failed program was:" >&5
11932sed 's/^/| /' conftest.$ac_ext >&5
11933
11934ac_cv_lib_cExt_drand48=no
11935fi
789c5f4a 11936rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
11937LIBS=$ac_check_lib_save_LIBS
11938fi
11939echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11940echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11941if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11942 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11943fi
11944
11945 else
11946 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11947 fi
73d617c9
MB
11948 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
11949echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
11950if test "${wx_cv_gcc3+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952else
11953
11954 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11955#line $LINENO "configure"
73d617c9
MB
11956/* confdefs.h. */
11957_ACEOF
11958cat confdefs.h >>conftest.$ac_ext
11959cat >>conftest.$ac_ext <<_ACEOF
11960/* end confdefs.h. */
3527f29c 11961
73d617c9
MB
11962int
11963main ()
11964{
11965
11966 #if (__GNUC__ < 3)
11967 #error old gcc
11968 #endif
11969
11970 ;
11971 return 0;
11972}
11973_ACEOF
11974rm -f conftest.$ac_objext
11975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 11976 (eval $ac_compile) 2>&5
73d617c9
MB
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
789c5f4a 11980 { ac_try='test -s conftest.$ac_objext'
73d617c9
MB
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986
11987 wx_cv_gcc3=yes
11988
11989else
11990 echo "$as_me: failed program was:" >&5
11991sed 's/^/| /' conftest.$ac_ext >&5
11992
11993
11994 wx_cv_gcc3=no
11995
11996
11997fi
789c5f4a 11998rm -f conftest.$ac_objext conftest.$ac_ext
73d617c9
MB
11999
12000fi
12001echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
12002echo "${ECHO_T}$wx_cv_gcc3" >&6
12003 if test "$wx_cv_gcc3" = "no"; then
12004 LIBS="$LIBS -lstdcpp"
12005 else
12006 LIBS="$LIBS -lstdcxx"
12007 fi
2b5f62a0
VZ
12008 ;;
12009esac
12010
a0b9e27f 12011
1c2d1459
VZ
12012
12013
12014ac_ext=cc
12015ac_cpp='$CXXCPP $CPPFLAGS'
12016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12019
12020
12021
12022echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12023echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12024if test "${ac_cv_string_strcasecmp+set}" = set; then
01aa5863
VS
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026else
1c2d1459
VZ
12027
12028 cat >conftest.$ac_ext <<_ACEOF
12029#line $LINENO "configure"
12030/* confdefs.h. */
12031_ACEOF
12032cat confdefs.h >>conftest.$ac_ext
12033cat >>conftest.$ac_ext <<_ACEOF
12034/* end confdefs.h. */
12035
12036 #include <string.h>
12037
12038int
12039main ()
12040{
12041
12042 strcasecmp("foo", "bar");
12043
12044 ;
12045 return 0;
12046}
12047_ACEOF
12048rm -f conftest.$ac_objext conftest$ac_exeext
12049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12050 (eval $ac_link) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } &&
12054 { ac_try='test -s conftest$ac_exeext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12057 ac_status=$?
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 ac_cv_string_strcasecmp=yes
12061else
12062 echo "$as_me: failed program was:" >&5
12063sed 's/^/| /' conftest.$ac_ext >&5
12064
12065ac_cv_string_strcasecmp=no
12066
12067fi
12068rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12069
12070fi
12071echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12072echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12073
12074if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12075 cat >>confdefs.h <<\_ACEOF
12076#define HAVE_STRCASECMP_IN_STRING_H 1
12077_ACEOF
12078
12079else
12080 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12081echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12082if test "${ac_cv_strings_strcasecmp+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12084else
12085
12086 cat >conftest.$ac_ext <<_ACEOF
12087#line $LINENO "configure"
12088/* confdefs.h. */
12089_ACEOF
12090cat confdefs.h >>conftest.$ac_ext
12091cat >>conftest.$ac_ext <<_ACEOF
12092/* end confdefs.h. */
12093
12094 #include <strings.h>
12095
12096int
12097main ()
12098{
12099
12100 strcasecmp("foo", "bar");
12101
12102 ;
12103 return 0;
12104}
12105_ACEOF
12106rm -f conftest.$ac_objext conftest$ac_exeext
12107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12108 (eval $ac_link) 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try='test -s conftest$ac_exeext'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; }; then
12118 ac_cv_strings_strcasecmp=yes
12119else
12120 echo "$as_me: failed program was:" >&5
12121sed 's/^/| /' conftest.$ac_ext >&5
12122
12123ac_cv_strings_strcasecmp=no
12124
12125fi
12126rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12127
01aa5863 12128fi
1c2d1459
VZ
12129echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12130echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12131
12132 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12133 cat >>confdefs.h <<\_ACEOF
12134#define HAVE_STRCASECMP_IN_STRINGS_H 1
12135_ACEOF
12136
01aa5863 12137 else
1c2d1459
VZ
12138 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12139echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12140 { (exit 1); exit 1; }; }
01aa5863
VS
12141 fi
12142fi
1c2d1459
VZ
12143
12144ac_ext=c
12145ac_cpp='$CPP $CPPFLAGS'
12146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12148ac_compiler_gnu=$ac_cv_c_compiler_gnu
12149
12150
01aa5863 12151echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
12152echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12153if test "${ac_cv_header_stdc+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12155else
12156 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12157#line $LINENO "configure"
e6cc62c6
VS
12158/* confdefs.h. */
12159_ACEOF
12160cat confdefs.h >>conftest.$ac_ext
12161cat >>conftest.$ac_ext <<_ACEOF
12162/* end confdefs.h. */
12163#include <stdlib.h>
12164#include <stdarg.h>
12165#include <string.h>
12166#include <float.h>
247f5006 12167
e6cc62c6
VS
12168int
12169main ()
12170{
90dd450c 12171
e6cc62c6
VS
12172 ;
12173 return 0;
12174}
12175_ACEOF
12176rm -f conftest.$ac_objext
12177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12178 (eval $ac_compile) 2>&5
e6cc62c6
VS
12179 ac_status=$?
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
789c5f4a 12182 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 ac_cv_header_stdc=yes
8284b0c5 12189else
e6cc62c6
VS
12190 echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
12192
12193ac_cv_header_stdc=no
21d1c967 12194fi
789c5f4a 12195rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12196
e6cc62c6
VS
12197if test $ac_cv_header_stdc = yes; then
12198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12199 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12200#line $LINENO "configure"
e6cc62c6
VS
12201/* confdefs.h. */
12202_ACEOF
12203cat confdefs.h >>conftest.$ac_ext
12204cat >>conftest.$ac_ext <<_ACEOF
12205/* end confdefs.h. */
12206#include <string.h>
12207
12208_ACEOF
12209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12210 $EGREP "memchr" >/dev/null 2>&1; then
12211 :
12212else
12213 ac_cv_header_stdc=no
3a922bb4 12214fi
a0b9e27f 12215rm -f conftest*
e6cc62c6 12216
90dd450c 12217fi
e6cc62c6
VS
12218
12219if test $ac_cv_header_stdc = yes; then
12220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12221 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12222#line $LINENO "configure"
e6cc62c6
VS
12223/* confdefs.h. */
12224_ACEOF
12225cat confdefs.h >>conftest.$ac_ext
12226cat >>conftest.$ac_ext <<_ACEOF
12227/* end confdefs.h. */
12228#include <stdlib.h>
12229
12230_ACEOF
12231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12232 $EGREP "free" >/dev/null 2>&1; then
12233 :
a0b9e27f 12234else
e6cc62c6 12235 ac_cv_header_stdc=no
21d1c967 12236fi
e6cc62c6 12237rm -f conftest*
247f5006
VZ
12238
12239fi
e6cc62c6
VS
12240
12241if test $ac_cv_header_stdc = yes; then
12242 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12243 if test "$cross_compiling" = yes; then
12244 :
12245else
12246 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12247#line $LINENO "configure"
e6cc62c6
VS
12248/* confdefs.h. */
12249_ACEOF
12250cat confdefs.h >>conftest.$ac_ext
12251cat >>conftest.$ac_ext <<_ACEOF
12252/* end confdefs.h. */
12253#include <ctype.h>
12254#if ((' ' & 0x0FF) == 0x020)
12255# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12256# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12257#else
12258# define ISLOWER(c) \
789c5f4a
VZ
12259 (('a' <= (c) && (c) <= 'i') \
12260 || ('j' <= (c) && (c) <= 'r') \
12261 || ('s' <= (c) && (c) <= 'z'))
e6cc62c6
VS
12262# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12263#endif
12264
12265#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12266int
12267main ()
12268{
12269 int i;
12270 for (i = 0; i < 256; i++)
12271 if (XOR (islower (i), ISLOWER (i))
789c5f4a 12272 || toupper (i) != TOUPPER (i))
e6cc62c6
VS
12273 exit(2);
12274 exit (0);
12275}
12276_ACEOF
12277rm -f conftest$ac_exeext
12278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279 (eval $ac_link) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 :
a0b9e27f 12289else
e6cc62c6
VS
12290 echo "$as_me: program exited with status $ac_status" >&5
12291echo "$as_me: failed program was:" >&5
12292sed 's/^/| /' conftest.$ac_ext >&5
12293
12294( exit $ac_status )
12295ac_cv_header_stdc=no
12296fi
789c5f4a 12297rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12298fi
12299fi
12300fi
12301echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12302echo "${ECHO_T}$ac_cv_header_stdc" >&6
12303if test $ac_cv_header_stdc = yes; then
12304
12305cat >>confdefs.h <<\_ACEOF
12306#define STDC_HEADERS 1
12307_ACEOF
12308
a0b9e27f 12309fi
e6cc62c6
VS
12310
12311# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
789c5f4a 12322 inttypes.h stdint.h unistd.h
e6cc62c6
VS
12323do
12324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12325echo "$as_me:$LINENO: checking for $ac_header" >&5
12326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12327if eval "test \"\${$as_ac_Header+set}\" = set"; then
12328 echo $ECHO_N "(cached) $ECHO_C" >&6
12329else
12330 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12331#line $LINENO "configure"
e6cc62c6
VS
12332/* confdefs.h. */
12333_ACEOF
12334cat confdefs.h >>conftest.$ac_ext
12335cat >>conftest.$ac_ext <<_ACEOF
12336/* end confdefs.h. */
12337$ac_includes_default
12338
12339#include <$ac_header>
12340_ACEOF
12341rm -f conftest.$ac_objext
12342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12343 (eval $ac_compile) 2>&5
e6cc62c6
VS
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
789c5f4a 12347 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; }; then
12353 eval "$as_ac_Header=yes"
12354else
12355 echo "$as_me: failed program was:" >&5
12356sed 's/^/| /' conftest.$ac_ext >&5
12357
12358eval "$as_ac_Header=no"
12359fi
789c5f4a 12360rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12361fi
12362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12364if test `eval echo '${'$as_ac_Header'}'` = yes; then
12365 cat >>confdefs.h <<_ACEOF
12366#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12367_ACEOF
12368
12369fi
12370
a0b9e27f 12371done
90dd450c 12372
e6cc62c6
VS
12373
12374
e6cc62c6
VS
12375for ac_header in stdlib.h
12376do
12377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12378if eval "test \"\${$as_ac_Header+set}\" = set"; then
12379 echo "$as_me:$LINENO: checking for $ac_header" >&5
12380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12381if eval "test \"\${$as_ac_Header+set}\" = set"; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383fi
12384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12386else
12387 # Is the header compilable?
12388echo "$as_me:$LINENO: checking $ac_header usability" >&5
12389echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12390cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12391#line $LINENO "configure"
e6cc62c6
VS
12392/* confdefs.h. */
12393_ACEOF
12394cat confdefs.h >>conftest.$ac_ext
12395cat >>conftest.$ac_ext <<_ACEOF
12396/* end confdefs.h. */
12397$ac_includes_default
12398#include <$ac_header>
12399_ACEOF
12400rm -f conftest.$ac_objext
12401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12402 (eval $ac_compile) 2>&5
e6cc62c6
VS
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } &&
789c5f4a 12406 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12408 (eval $ac_try) 2>&5
12409 ac_status=$?
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); }; }; then
12412 ac_header_compiler=yes
12413else
12414 echo "$as_me: failed program was:" >&5
12415sed 's/^/| /' conftest.$ac_ext >&5
12416
12417ac_header_compiler=no
12418fi
789c5f4a 12419rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12420echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12421echo "${ECHO_T}$ac_header_compiler" >&6
12422
12423# Is the header present?
12424echo "$as_me:$LINENO: checking $ac_header presence" >&5
12425echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12426cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12427#line $LINENO "configure"
e6cc62c6
VS
12428/* confdefs.h. */
12429_ACEOF
12430cat confdefs.h >>conftest.$ac_ext
12431cat >>conftest.$ac_ext <<_ACEOF
12432/* end confdefs.h. */
12433#include <$ac_header>
12434_ACEOF
12435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12437 ac_status=$?
12438 grep -v '^ *+' conftest.er1 >conftest.err
12439 rm -f conftest.er1
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } >/dev/null; then
12443 if test -s conftest.err; then
12444 ac_cpp_err=$ac_c_preproc_warn_flag
12445 else
12446 ac_cpp_err=
12447 fi
12448else
12449 ac_cpp_err=yes
12450fi
12451if test -z "$ac_cpp_err"; then
12452 ac_header_preproc=yes
12453else
12454 echo "$as_me: failed program was:" >&5
12455sed 's/^/| /' conftest.$ac_ext >&5
12456
12457 ac_header_preproc=no
12458fi
12459rm -f conftest.err conftest.$ac_ext
12460echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12461echo "${ECHO_T}$ac_header_preproc" >&6
12462
12463# So? What about this header?
789c5f4a
VZ
12464case $ac_header_compiler:$ac_header_preproc in
12465 yes:no )
e6cc62c6
VS
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12469echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12470 (
12471 cat <<\_ASBOX
12472## ------------------------------------ ##
12473## Report this to bug-autoconf@gnu.org. ##
12474## ------------------------------------ ##
12475_ASBOX
12476 ) |
12477 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12478 ;;
789c5f4a 12479 no:yes )
e6cc62c6
VS
12480 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12481echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
12482 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12483echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12485echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12486 (
12487 cat <<\_ASBOX
789c5f4a
VZ
12488## ------------------------------------ ##
12489## Report this to bug-autoconf@gnu.org. ##
12490## ------------------------------------ ##
e6cc62c6
VS
12491_ASBOX
12492 ) |
12493 sed "s/^/$as_me: WARNING: /" >&2
12494 ;;
12495esac
12496echo "$as_me:$LINENO: checking for $ac_header" >&5
12497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12498if eval "test \"\${$as_ac_Header+set}\" = set"; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12500else
789c5f4a 12501 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
12502fi
12503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12505
21d1c967 12506fi
e6cc62c6
VS
12507if test `eval echo '${'$as_ac_Header'}'` = yes; then
12508 cat >>confdefs.h <<_ACEOF
12509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12510_ACEOF
12511
12512fi
12513
21d1c967 12514done
4f14bcd8 12515
5c6fa7d2 12516
e6cc62c6 12517for ac_header in malloc.h
21d1c967 12518do
e6cc62c6
VS
12519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12520if eval "test \"\${$as_ac_Header+set}\" = set"; then
12521 echo "$as_me:$LINENO: checking for $ac_header" >&5
12522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12523if eval "test \"\${$as_ac_Header+set}\" = set"; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525fi
12526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12528else
12529 # Is the header compilable?
12530echo "$as_me:$LINENO: checking $ac_header usability" >&5
12531echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12532cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12533#line $LINENO "configure"
e6cc62c6
VS
12534/* confdefs.h. */
12535_ACEOF
12536cat confdefs.h >>conftest.$ac_ext
12537cat >>conftest.$ac_ext <<_ACEOF
12538/* end confdefs.h. */
12539$ac_includes_default
12540#include <$ac_header>
12541_ACEOF
12542rm -f conftest.$ac_objext
12543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12544 (eval $ac_compile) 2>&5
e6cc62c6
VS
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
789c5f4a 12548 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; }; then
12554 ac_header_compiler=yes
12555else
12556 echo "$as_me: failed program was:" >&5
12557sed 's/^/| /' conftest.$ac_ext >&5
12558
12559ac_header_compiler=no
12560fi
789c5f4a 12561rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12562echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12563echo "${ECHO_T}$ac_header_compiler" >&6
12564
12565# Is the header present?
12566echo "$as_me:$LINENO: checking $ac_header presence" >&5
12567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12568cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12569#line $LINENO "configure"
e6cc62c6
VS
12570/* confdefs.h. */
12571_ACEOF
12572cat confdefs.h >>conftest.$ac_ext
12573cat >>conftest.$ac_ext <<_ACEOF
12574/* end confdefs.h. */
12575#include <$ac_header>
12576_ACEOF
12577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12579 ac_status=$?
12580 grep -v '^ *+' conftest.er1 >conftest.err
12581 rm -f conftest.er1
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } >/dev/null; then
12585 if test -s conftest.err; then
12586 ac_cpp_err=$ac_c_preproc_warn_flag
12587 else
12588 ac_cpp_err=
12589 fi
12590else
12591 ac_cpp_err=yes
12592fi
12593if test -z "$ac_cpp_err"; then
12594 ac_header_preproc=yes
12595else
12596 echo "$as_me: failed program was:" >&5
12597sed 's/^/| /' conftest.$ac_ext >&5
12598
12599 ac_header_preproc=no
12600fi
12601rm -f conftest.err conftest.$ac_ext
12602echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12603echo "${ECHO_T}$ac_header_preproc" >&6
12604
12605# So? What about this header?
789c5f4a
VZ
12606case $ac_header_compiler:$ac_header_preproc in
12607 yes:no )
e6cc62c6
VS
12608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12609echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
12610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12612 (
12613 cat <<\_ASBOX
12614## ------------------------------------ ##
12615## Report this to bug-autoconf@gnu.org. ##
12616## ------------------------------------ ##
12617_ASBOX
12618 ) |
12619 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12620 ;;
789c5f4a 12621 no:yes )
e6cc62c6
VS
12622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12623echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12625echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12628 (
12629 cat <<\_ASBOX
789c5f4a
VZ
12630## ------------------------------------ ##
12631## Report this to bug-autoconf@gnu.org. ##
12632## ------------------------------------ ##
e6cc62c6
VS
12633_ASBOX
12634 ) |
12635 sed "s/^/$as_me: WARNING: /" >&2
12636 ;;
12637esac
12638echo "$as_me:$LINENO: checking for $ac_header" >&5
12639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12640if eval "test \"\${$as_ac_Header+set}\" = set"; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
789c5f4a 12643 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12644fi
e6cc62c6
VS
12645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12647
21d1c967 12648fi
e6cc62c6
VS
12649if test `eval echo '${'$as_ac_Header'}'` = yes; then
12650 cat >>confdefs.h <<_ACEOF
12651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12652_ACEOF
12653
12654fi
12655
12656done
12657
12658
12659for ac_header in unistd.h
12660do
12661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12662if eval "test \"\${$as_ac_Header+set}\" = set"; then
12663 echo "$as_me:$LINENO: checking for $ac_header" >&5
12664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12665if eval "test \"\${$as_ac_Header+set}\" = set"; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12667fi
12668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12670else
12671 # Is the header compilable?
12672echo "$as_me:$LINENO: checking $ac_header usability" >&5
12673echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12674cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12675#line $LINENO "configure"
e6cc62c6
VS
12676/* confdefs.h. */
12677_ACEOF
12678cat confdefs.h >>conftest.$ac_ext
12679cat >>conftest.$ac_ext <<_ACEOF
12680/* end confdefs.h. */
12681$ac_includes_default
12682#include <$ac_header>
12683_ACEOF
12684rm -f conftest.$ac_objext
12685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12686 (eval $ac_compile) 2>&5
e6cc62c6
VS
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } &&
789c5f4a 12690 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692 (eval $ac_try) 2>&5
12693 ac_status=$?
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12696 ac_header_compiler=yes
12697else
12698 echo "$as_me: failed program was:" >&5
12699sed 's/^/| /' conftest.$ac_ext >&5
12700
12701ac_header_compiler=no
12702fi
789c5f4a 12703rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12704echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12705echo "${ECHO_T}$ac_header_compiler" >&6
12706
12707# Is the header present?
12708echo "$as_me:$LINENO: checking $ac_header presence" >&5
12709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12710cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12711#line $LINENO "configure"
e6cc62c6
VS
12712/* confdefs.h. */
12713_ACEOF
12714cat confdefs.h >>conftest.$ac_ext
12715cat >>conftest.$ac_ext <<_ACEOF
12716/* end confdefs.h. */
12717#include <$ac_header>
12718_ACEOF
12719if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12721 ac_status=$?
12722 grep -v '^ *+' conftest.er1 >conftest.err
12723 rm -f conftest.er1
12724 cat conftest.err >&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); } >/dev/null; then
12727 if test -s conftest.err; then
12728 ac_cpp_err=$ac_c_preproc_warn_flag
12729 else
12730 ac_cpp_err=
12731 fi
a0b9e27f 12732else
e6cc62c6
VS
12733 ac_cpp_err=yes
12734fi
12735if test -z "$ac_cpp_err"; then
12736 ac_header_preproc=yes
12737else
12738 echo "$as_me: failed program was:" >&5
12739sed 's/^/| /' conftest.$ac_ext >&5
12740
12741 ac_header_preproc=no
12742fi
12743rm -f conftest.err conftest.$ac_ext
12744echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12745echo "${ECHO_T}$ac_header_preproc" >&6
12746
12747# So? What about this header?
789c5f4a
VZ
12748case $ac_header_compiler:$ac_header_preproc in
12749 yes:no )
e6cc62c6
VS
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12751echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12754 (
12755 cat <<\_ASBOX
12756## ------------------------------------ ##
12757## Report this to bug-autoconf@gnu.org. ##
12758## ------------------------------------ ##
12759_ASBOX
12760 ) |
12761 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12762 ;;
789c5f4a 12763 no:yes )
e6cc62c6
VS
12764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12765echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
12766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12767echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12769echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12770 (
12771 cat <<\_ASBOX
789c5f4a
VZ
12772## ------------------------------------ ##
12773## Report this to bug-autoconf@gnu.org. ##
12774## ------------------------------------ ##
e6cc62c6
VS
12775_ASBOX
12776 ) |
12777 sed "s/^/$as_me: WARNING: /" >&2
12778 ;;
12779esac
12780echo "$as_me:$LINENO: checking for $ac_header" >&5
12781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12782if eval "test \"\${$as_ac_Header+set}\" = set"; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12784else
789c5f4a 12785 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
12786fi
12787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12789
12790fi
12791if test `eval echo '${'$as_ac_Header'}'` = yes; then
12792 cat >>confdefs.h <<_ACEOF
12793#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12794_ACEOF
12795
d4158b5d 12796fi
e6cc62c6 12797
21d1c967 12798done
f6bcfd97 12799
e6cc62c6
VS
12800
12801for ac_header in wchar.h
12802do
12803as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12804if eval "test \"\${$as_ac_Header+set}\" = set"; then
12805 echo "$as_me:$LINENO: checking for $ac_header" >&5
12806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12807if eval "test \"\${$as_ac_Header+set}\" = set"; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809fi
12810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12811echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12812else
12813 # Is the header compilable?
12814echo "$as_me:$LINENO: checking $ac_header usability" >&5
12815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12816cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12817#line $LINENO "configure"
e6cc62c6
VS
12818/* confdefs.h. */
12819_ACEOF
12820cat confdefs.h >>conftest.$ac_ext
12821cat >>conftest.$ac_ext <<_ACEOF
12822/* end confdefs.h. */
12823$ac_includes_default
12824#include <$ac_header>
12825_ACEOF
12826rm -f conftest.$ac_objext
12827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12828 (eval $ac_compile) 2>&5
e6cc62c6
VS
12829 ac_status=$?
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } &&
789c5f4a 12832 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; }; then
12838 ac_header_compiler=yes
12839else
12840 echo "$as_me: failed program was:" >&5
12841sed 's/^/| /' conftest.$ac_ext >&5
12842
12843ac_header_compiler=no
12844fi
789c5f4a 12845rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12846echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12847echo "${ECHO_T}$ac_header_compiler" >&6
12848
12849# Is the header present?
12850echo "$as_me:$LINENO: checking $ac_header presence" >&5
12851echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12852cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12853#line $LINENO "configure"
e6cc62c6
VS
12854/* confdefs.h. */
12855_ACEOF
12856cat confdefs.h >>conftest.$ac_ext
12857cat >>conftest.$ac_ext <<_ACEOF
12858/* end confdefs.h. */
12859#include <$ac_header>
12860_ACEOF
12861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12863 ac_status=$?
12864 grep -v '^ *+' conftest.er1 >conftest.err
12865 rm -f conftest.er1
12866 cat conftest.err >&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } >/dev/null; then
12869 if test -s conftest.err; then
12870 ac_cpp_err=$ac_c_preproc_warn_flag
12871 else
12872 ac_cpp_err=
12873 fi
12874else
12875 ac_cpp_err=yes
12876fi
12877if test -z "$ac_cpp_err"; then
12878 ac_header_preproc=yes
12879else
12880 echo "$as_me: failed program was:" >&5
12881sed 's/^/| /' conftest.$ac_ext >&5
12882
12883 ac_header_preproc=no
12884fi
12885rm -f conftest.err conftest.$ac_ext
12886echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12887echo "${ECHO_T}$ac_header_preproc" >&6
12888
12889# So? What about this header?
789c5f4a
VZ
12890case $ac_header_compiler:$ac_header_preproc in
12891 yes:no )
e6cc62c6
VS
12892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12893echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
12894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12895echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12896 (
12897 cat <<\_ASBOX
12898## ------------------------------------ ##
12899## Report this to bug-autoconf@gnu.org. ##
12900## ------------------------------------ ##
12901_ASBOX
12902 ) |
12903 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12904 ;;
789c5f4a 12905 no:yes )
e6cc62c6
VS
12906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12907echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
12908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12909echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12911echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12912 (
12913 cat <<\_ASBOX
789c5f4a
VZ
12914## ------------------------------------ ##
12915## Report this to bug-autoconf@gnu.org. ##
12916## ------------------------------------ ##
e6cc62c6
VS
12917_ASBOX
12918 ) |
12919 sed "s/^/$as_me: WARNING: /" >&2
12920 ;;
12921esac
12922echo "$as_me:$LINENO: checking for $ac_header" >&5
12923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12924if eval "test \"\${$as_ac_Header+set}\" = set"; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12926else
789c5f4a 12927 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
12928fi
12929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12931
90dd450c 12932fi
e6cc62c6
VS
12933if test `eval echo '${'$as_ac_Header'}'` = yes; then
12934 cat >>confdefs.h <<_ACEOF
12935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12936_ACEOF
12937
12938fi
12939
12940done
90dd450c 12941
e6cc62c6
VS
12942
12943if test "$ac_cv_header_wchar_h" != "yes"; then
12944
12945for ac_header in wcstr.h
21d1c967 12946do
e6cc62c6
VS
12947as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12948if eval "test \"\${$as_ac_Header+set}\" = set"; then
12949 echo "$as_me:$LINENO: checking for $ac_header" >&5
12950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12951if eval "test \"\${$as_ac_Header+set}\" = set"; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
12953fi
12954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12956else
12957 # Is the header compilable?
12958echo "$as_me:$LINENO: checking $ac_header usability" >&5
12959echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12960cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12961#line $LINENO "configure"
e6cc62c6
VS
12962/* confdefs.h. */
12963_ACEOF
12964cat confdefs.h >>conftest.$ac_ext
12965cat >>conftest.$ac_ext <<_ACEOF
12966/* end confdefs.h. */
12967$ac_includes_default
12968#include <$ac_header>
12969_ACEOF
12970rm -f conftest.$ac_objext
12971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12972 (eval $ac_compile) 2>&5
e6cc62c6
VS
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } &&
789c5f4a 12976 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12979 ac_status=$?
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; }; then
12982 ac_header_compiler=yes
12983else
12984 echo "$as_me: failed program was:" >&5
12985sed 's/^/| /' conftest.$ac_ext >&5
12986
12987ac_header_compiler=no
12988fi
789c5f4a 12989rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12990echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12991echo "${ECHO_T}$ac_header_compiler" >&6
12992
12993# Is the header present?
12994echo "$as_me:$LINENO: checking $ac_header presence" >&5
12995echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12996cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12997#line $LINENO "configure"
e6cc62c6
VS
12998/* confdefs.h. */
12999_ACEOF
13000cat confdefs.h >>conftest.$ac_ext
13001cat >>conftest.$ac_ext <<_ACEOF
13002/* end confdefs.h. */
13003#include <$ac_header>
13004_ACEOF
13005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13007 ac_status=$?
13008 grep -v '^ *+' conftest.er1 >conftest.err
13009 rm -f conftest.er1
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } >/dev/null; then
13013 if test -s conftest.err; then
13014 ac_cpp_err=$ac_c_preproc_warn_flag
13015 else
13016 ac_cpp_err=
13017 fi
13018else
13019 ac_cpp_err=yes
13020fi
13021if test -z "$ac_cpp_err"; then
13022 ac_header_preproc=yes
13023else
13024 echo "$as_me: failed program was:" >&5
13025sed 's/^/| /' conftest.$ac_ext >&5
13026
13027 ac_header_preproc=no
13028fi
13029rm -f conftest.err conftest.$ac_ext
13030echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13031echo "${ECHO_T}$ac_header_preproc" >&6
13032
13033# So? What about this header?
789c5f4a
VZ
13034case $ac_header_compiler:$ac_header_preproc in
13035 yes:no )
e6cc62c6
VS
13036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13037echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
13038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13039echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13040 (
13041 cat <<\_ASBOX
13042## ------------------------------------ ##
13043## Report this to bug-autoconf@gnu.org. ##
13044## ------------------------------------ ##
13045_ASBOX
13046 ) |
13047 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 13048 ;;
789c5f4a 13049 no:yes )
e6cc62c6
VS
13050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
13054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13055echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13056 (
13057 cat <<\_ASBOX
789c5f4a
VZ
13058## ------------------------------------ ##
13059## Report this to bug-autoconf@gnu.org. ##
13060## ------------------------------------ ##
e6cc62c6
VS
13061_ASBOX
13062 ) |
13063 sed "s/^/$as_me: WARNING: /" >&2
13064 ;;
13065esac
13066echo "$as_me:$LINENO: checking for $ac_header" >&5
13067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13068if eval "test \"\${$as_ac_Header+set}\" = set"; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070else
789c5f4a 13071 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13072fi
e6cc62c6
VS
13073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13075
4f14bcd8 13076fi
e6cc62c6
VS
13077if test `eval echo '${'$as_ac_Header'}'` = yes; then
13078 cat >>confdefs.h <<_ACEOF
13079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13080_ACEOF
13081
13082fi
13083
13084done
13085
13086fi
13087
13088
13089for ac_header in fnmatch.h
13090do
13091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13092if eval "test \"\${$as_ac_Header+set}\" = set"; then
13093 echo "$as_me:$LINENO: checking for $ac_header" >&5
13094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13095if eval "test \"\${$as_ac_Header+set}\" = set"; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13097fi
13098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13099echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13100else
13101 # Is the header compilable?
13102echo "$as_me:$LINENO: checking $ac_header usability" >&5
13103echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13104cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13105#line $LINENO "configure"
e6cc62c6
VS
13106/* confdefs.h. */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h. */
13111$ac_includes_default
13112#include <$ac_header>
13113_ACEOF
13114rm -f conftest.$ac_objext
13115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13116 (eval $ac_compile) 2>&5
e6cc62c6
VS
13117 ac_status=$?
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
789c5f4a 13120 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13123 ac_status=$?
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 ac_header_compiler=yes
13127else
13128 echo "$as_me: failed program was:" >&5
13129sed 's/^/| /' conftest.$ac_ext >&5
13130
13131ac_header_compiler=no
13132fi
789c5f4a 13133rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13134echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13135echo "${ECHO_T}$ac_header_compiler" >&6
13136
13137# Is the header present?
13138echo "$as_me:$LINENO: checking $ac_header presence" >&5
13139echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13140cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13141#line $LINENO "configure"
e6cc62c6
VS
13142/* confdefs.h. */
13143_ACEOF
13144cat confdefs.h >>conftest.$ac_ext
13145cat >>conftest.$ac_ext <<_ACEOF
13146/* end confdefs.h. */
13147#include <$ac_header>
13148_ACEOF
13149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } >/dev/null; then
13157 if test -s conftest.err; then
13158 ac_cpp_err=$ac_c_preproc_warn_flag
13159 else
13160 ac_cpp_err=
13161 fi
13162else
13163 ac_cpp_err=yes
13164fi
13165if test -z "$ac_cpp_err"; then
13166 ac_header_preproc=yes
13167else
13168 echo "$as_me: failed program was:" >&5
13169sed 's/^/| /' conftest.$ac_ext >&5
13170
13171 ac_header_preproc=no
13172fi
13173rm -f conftest.err conftest.$ac_ext
13174echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13175echo "${ECHO_T}$ac_header_preproc" >&6
13176
13177# So? What about this header?
789c5f4a
VZ
13178case $ac_header_compiler:$ac_header_preproc in
13179 yes:no )
e6cc62c6
VS
13180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13181echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
13182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13184 (
13185 cat <<\_ASBOX
13186## ------------------------------------ ##
13187## Report this to bug-autoconf@gnu.org. ##
13188## ------------------------------------ ##
13189_ASBOX
13190 ) |
13191 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 13192 ;;
789c5f4a 13193 no:yes )
e6cc62c6
VS
13194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13195echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
13196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13197echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
13198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13200 (
13201 cat <<\_ASBOX
789c5f4a
VZ
13202## ------------------------------------ ##
13203## Report this to bug-autoconf@gnu.org. ##
13204## ------------------------------------ ##
e6cc62c6
VS
13205_ASBOX
13206 ) |
13207 sed "s/^/$as_me: WARNING: /" >&2
13208 ;;
13209esac
13210echo "$as_me:$LINENO: checking for $ac_header" >&5
13211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13212if eval "test \"\${$as_ac_Header+set}\" = set"; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13214else
789c5f4a 13215 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
13216fi
13217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13219
21d1c967 13220fi
e6cc62c6
VS
13221if test `eval echo '${'$as_ac_Header'}'` = yes; then
13222 cat >>confdefs.h <<_ACEOF
13223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13224_ACEOF
13225
13226fi
13227
21d1c967 13228done
90dd450c 13229
5c6fa7d2 13230
a0b9e27f 13231if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13232
13233for ac_func in fnmatch
21d1c967 13234do
e6cc62c6
VS
13235as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13236echo "$as_me:$LINENO: checking for $ac_func" >&5
13237echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13238if eval "test \"\${$as_ac_var+set}\" = set"; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13240else
13241 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13242#line $LINENO "configure"
e6cc62c6
VS
13243/* confdefs.h. */
13244_ACEOF
13245cat confdefs.h >>conftest.$ac_ext
13246cat >>conftest.$ac_ext <<_ACEOF
13247/* end confdefs.h. */
a0b9e27f 13248/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13249 which can conflict with char $ac_func (); below.
13250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13251 <limits.h> exists even on freestanding compilers. */
13252#ifdef __STDC__
13253# include <limits.h>
13254#else
13255# include <assert.h>
13256#endif
a0b9e27f 13257/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13258#ifdef __cplusplus
13259extern "C"
13260{
13261#endif
a0b9e27f 13262/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13263 builtin and then its argument prototype would still apply. */
13264char $ac_func ();
a0b9e27f
MB
13265/* The GNU C library defines this for functions which it implements
13266 to always fail with ENOSYS. Some functions are actually named
13267 something starting with __ and the normal name is an alias. */
13268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13269choke me
13270#else
e6cc62c6
VS
13271char (*f) () = $ac_func;
13272#endif
13273#ifdef __cplusplus
13274}
a0b9e27f
MB
13275#endif
13276
e6cc62c6
VS
13277int
13278main ()
13279{
13280return f != $ac_func;
13281 ;
13282 return 0;
13283}
13284_ACEOF
13285rm -f conftest.$ac_objext conftest$ac_exeext
13286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 13287 (eval $ac_link) 2>&5
e6cc62c6
VS
13288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } &&
789c5f4a 13291 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
13292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293 (eval $ac_try) 2>&5
13294 ac_status=$?
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; }; then
13297 eval "$as_ac_var=yes"
13298else
13299 echo "$as_me: failed program was:" >&5
13300sed 's/^/| /' conftest.$ac_ext >&5
13301
13302eval "$as_ac_var=no"
13303fi
789c5f4a 13304rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
13305fi
13306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13307echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13308if test `eval echo '${'$as_ac_var'}'` = yes; then
13309 cat >>confdefs.h <<_ACEOF
13310#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13311_ACEOF
32832908 13312
21d1c967
GD
13313fi
13314done
90dd450c 13315
a0b9e27f 13316fi
90dd450c 13317
e6cc62c6
VS
13318
13319for ac_header in langinfo.h
21d1c967 13320do
e6cc62c6
VS
13321as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13322if eval "test \"\${$as_ac_Header+set}\" = set"; then
13323 echo "$as_me:$LINENO: checking for $ac_header" >&5
13324echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13325if eval "test \"\${$as_ac_Header+set}\" = set"; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13327fi
13328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13329echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13330else
13331 # Is the header compilable?
13332echo "$as_me:$LINENO: checking $ac_header usability" >&5
13333echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13334cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13335#line $LINENO "configure"
e6cc62c6
VS
13336/* confdefs.h. */
13337_ACEOF
13338cat confdefs.h >>conftest.$ac_ext
13339cat >>conftest.$ac_ext <<_ACEOF
13340/* end confdefs.h. */
13341$ac_includes_default
13342#include <$ac_header>
13343_ACEOF
13344rm -f conftest.$ac_objext
13345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13346 (eval $ac_compile) 2>&5
e6cc62c6
VS
13347 ac_status=$?
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } &&
789c5f4a 13350 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; }; then
13356 ac_header_compiler=yes
13357else
13358 echo "$as_me: failed program was:" >&5
13359sed 's/^/| /' conftest.$ac_ext >&5
13360
13361ac_header_compiler=no
13362fi
789c5f4a 13363rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13364echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13365echo "${ECHO_T}$ac_header_compiler" >&6
13366
13367# Is the header present?
13368echo "$as_me:$LINENO: checking $ac_header presence" >&5
13369echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13370cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13371#line $LINENO "configure"
e6cc62c6
VS
13372/* confdefs.h. */
13373_ACEOF
13374cat confdefs.h >>conftest.$ac_ext
13375cat >>conftest.$ac_ext <<_ACEOF
13376/* end confdefs.h. */
13377#include <$ac_header>
13378_ACEOF
13379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } >/dev/null; then
13387 if test -s conftest.err; then
13388 ac_cpp_err=$ac_c_preproc_warn_flag
13389 else
13390 ac_cpp_err=
13391 fi
13392else
13393 ac_cpp_err=yes
13394fi
13395if test -z "$ac_cpp_err"; then
13396 ac_header_preproc=yes
13397else
13398 echo "$as_me: failed program was:" >&5
13399sed 's/^/| /' conftest.$ac_ext >&5
13400
13401 ac_header_preproc=no
13402fi
13403rm -f conftest.err conftest.$ac_ext
13404echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13405echo "${ECHO_T}$ac_header_preproc" >&6
13406
13407# So? What about this header?
789c5f4a
VZ
13408case $ac_header_compiler:$ac_header_preproc in
13409 yes:no )
e6cc62c6
VS
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13411echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
13412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13413echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13414 (
13415 cat <<\_ASBOX
13416## ------------------------------------ ##
13417## Report this to bug-autoconf@gnu.org. ##
13418## ------------------------------------ ##
13419_ASBOX
13420 ) |
13421 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 13422 ;;
789c5f4a 13423 no:yes )
e6cc62c6
VS
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13425echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13427echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
13428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13429echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13430 (
13431 cat <<\_ASBOX
789c5f4a
VZ
13432## ------------------------------------ ##
13433## Report this to bug-autoconf@gnu.org. ##
13434## ------------------------------------ ##
e6cc62c6
VS
13435_ASBOX
13436 ) |
13437 sed "s/^/$as_me: WARNING: /" >&2
13438 ;;
13439esac
13440echo "$as_me:$LINENO: checking for $ac_header" >&5
13441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13442if eval "test \"\${$as_ac_Header+set}\" = set"; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13444else
789c5f4a 13445 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13446fi
e6cc62c6
VS
13447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13448echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13449
4f14bcd8 13450fi
e6cc62c6
VS
13451if test `eval echo '${'$as_ac_Header'}'` = yes; then
13452 cat >>confdefs.h <<_ACEOF
13453#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13454_ACEOF
13455
21d1c967 13456fi
e6cc62c6 13457
21d1c967 13458done
3a922bb4 13459
8284b0c5 13460
4f5a7f74
VZ
13461case "${host}" in
13462 *-pc-os2_emx | *-pc-os2-emx )
13463 if test $ac_cv_header_langinfo_h = "yes"; then
13464 LIBS="$LIBS -lintl"
13465 fi
13466 ;;
13467esac
1542ea39 13468
a0b9e27f 13469if test "$wxUSE_GUI" = "yes"; then
73d617c9 13470 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13471
eb69fda5 13472for ac_header in X11/Xlib.h
21d1c967 13473do
e6cc62c6
VS
13474as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13475if eval "test \"\${$as_ac_Header+set}\" = set"; then
13476 echo "$as_me:$LINENO: checking for $ac_header" >&5
13477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13478if eval "test \"\${$as_ac_Header+set}\" = set"; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13480fi
13481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13482echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13483else
13484 # Is the header compilable?
13485echo "$as_me:$LINENO: checking $ac_header usability" >&5
13486echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13487cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13488#line $LINENO "configure"
e6cc62c6
VS
13489/* confdefs.h. */
13490_ACEOF
13491cat confdefs.h >>conftest.$ac_ext
13492cat >>conftest.$ac_ext <<_ACEOF
13493/* end confdefs.h. */
13494$ac_includes_default
13495#include <$ac_header>
13496_ACEOF
13497rm -f conftest.$ac_objext
13498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13499 (eval $ac_compile) 2>&5
e6cc62c6
VS
13500 ac_status=$?
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
789c5f4a 13503 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_header_compiler=yes
13510else
13511 echo "$as_me: failed program was:" >&5
13512sed 's/^/| /' conftest.$ac_ext >&5
13513
13514ac_header_compiler=no
13515fi
789c5f4a 13516rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13517echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13518echo "${ECHO_T}$ac_header_compiler" >&6
13519
13520# Is the header present?
13521echo "$as_me:$LINENO: checking $ac_header presence" >&5
13522echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13523cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13524#line $LINENO "configure"
e6cc62c6
VS
13525/* confdefs.h. */
13526_ACEOF
13527cat confdefs.h >>conftest.$ac_ext
13528cat >>conftest.$ac_ext <<_ACEOF
13529/* end confdefs.h. */
13530#include <$ac_header>
13531_ACEOF
13532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13534 ac_status=$?
13535 grep -v '^ *+' conftest.er1 >conftest.err
13536 rm -f conftest.er1
13537 cat conftest.err >&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } >/dev/null; then
13540 if test -s conftest.err; then
13541 ac_cpp_err=$ac_c_preproc_warn_flag
13542 else
13543 ac_cpp_err=
13544 fi
13545else
13546 ac_cpp_err=yes
13547fi
13548if test -z "$ac_cpp_err"; then
13549 ac_header_preproc=yes
13550else
13551 echo "$as_me: failed program was:" >&5
13552sed 's/^/| /' conftest.$ac_ext >&5
13553
13554 ac_header_preproc=no
13555fi
13556rm -f conftest.err conftest.$ac_ext
13557echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13558echo "${ECHO_T}$ac_header_preproc" >&6
13559
13560# So? What about this header?
789c5f4a
VZ
13561case $ac_header_compiler:$ac_header_preproc in
13562 yes:no )
e6cc62c6
VS
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13564echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13566echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13567 (
13568 cat <<\_ASBOX
13569## ------------------------------------ ##
13570## Report this to bug-autoconf@gnu.org. ##
13571## ------------------------------------ ##
13572_ASBOX
13573 ) |
13574 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 13575 ;;
789c5f4a 13576 no:yes )
e6cc62c6
VS
13577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13578echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
13579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13580echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
13581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13582echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13583 (
13584 cat <<\_ASBOX
789c5f4a
VZ
13585## ------------------------------------ ##
13586## Report this to bug-autoconf@gnu.org. ##
13587## ------------------------------------ ##
e6cc62c6
VS
13588_ASBOX
13589 ) |
13590 sed "s/^/$as_me: WARNING: /" >&2
13591 ;;
13592esac
13593echo "$as_me:$LINENO: checking for $ac_header" >&5
13594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13595if eval "test \"\${$as_ac_Header+set}\" = set"; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13597else
789c5f4a 13598 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13599fi
e6cc62c6
VS
13600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13602
90dd450c 13603fi
e6cc62c6
VS
13604if test `eval echo '${'$as_ac_Header'}'` = yes; then
13605 cat >>confdefs.h <<_ACEOF
13606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13607_ACEOF
13608
247f5006 13609fi
e6cc62c6 13610
eb69fda5
VS
13611done
13612
13613
13614for ac_header in X11/XKBlib.h
13615do
13616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13617echo "$as_me:$LINENO: checking for $ac_header" >&5
13618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13619if eval "test \"\${$as_ac_Header+set}\" = set"; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13621else
13622 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13623#line $LINENO "configure"
eb69fda5
VS
13624/* confdefs.h. */
13625_ACEOF
13626cat confdefs.h >>conftest.$ac_ext
13627cat >>conftest.$ac_ext <<_ACEOF
13628/* end confdefs.h. */
13629
13630 #if HAVE_X11_XLIB_H
13631 #include <X11/Xlib.h>
13632 #endif
13633
13634
13635#include <$ac_header>
13636_ACEOF
13637rm -f conftest.$ac_objext
13638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13639 (eval $ac_compile) 2>&5
eb69fda5
VS
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } &&
789c5f4a 13643 { ac_try='test -s conftest.$ac_objext'
eb69fda5
VS
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13649 eval "$as_ac_Header=yes"
13650else
13651 echo "$as_me: failed program was:" >&5
13652sed 's/^/| /' conftest.$ac_ext >&5
13653
13654eval "$as_ac_Header=no"
13655fi
789c5f4a 13656rm -f conftest.$ac_objext conftest.$ac_ext
eb69fda5
VS
13657fi
13658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13659echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13660if test `eval echo '${'$as_ac_Header'}'` = yes; then
13661 cat >>confdefs.h <<_ACEOF
13662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13663_ACEOF
13664
13665fi
13666
247f5006
VZ
13667done
13668
a0b9e27f
MB
13669 fi
13670fi
247f5006 13671
247f5006 13672
e6cc62c6
VS
13673echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13674echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13675if test "${ac_cv_c_const+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13677else
13678 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13679#line $LINENO "configure"
e6cc62c6
VS
13680/* confdefs.h. */
13681_ACEOF
13682cat confdefs.h >>conftest.$ac_ext
13683cat >>conftest.$ac_ext <<_ACEOF
13684/* end confdefs.h. */
13685
13686int
13687main ()
13688{
13689/* FIXME: Include the comments suggested by Paul. */
13690#ifndef __cplusplus
13691 /* Ultrix mips cc rejects this. */
13692 typedef int charset[2];
13693 const charset x;
13694 /* SunOS 4.1.1 cc rejects this. */
13695 char const *const *ccp;
13696 char **p;
13697 /* NEC SVR4.0.2 mips cc rejects this. */
13698 struct point {int x, y;};
13699 static struct point const zero = {0,0};
13700 /* AIX XL C 1.02.0.0 rejects this.
13701 It does not let you subtract one const X* pointer from another in
13702 an arm of an if-expression whose if-part is not a constant
13703 expression */
13704 const char *g = "string";
13705 ccp = &g + (g ? g-g : 0);
13706 /* HPUX 7.0 cc rejects these. */
13707 ++ccp;
13708 p = (char**) ccp;
13709 ccp = (char const *const *) p;
13710 { /* SCO 3.2v4 cc rejects this. */
13711 char *t;
13712 char const *s = 0 ? (char *) 0 : (char const *) 0;
13713
13714 *t++ = 0;
13715 }
13716 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13717 int x[] = {25, 17};
13718 const int *foo = &x[0];
13719 ++foo;
13720 }
13721 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13722 typedef const int *iptr;
13723 iptr p = 0;
13724 ++p;
13725 }
13726 { /* AIX XL C 1.02.0.0 rejects this saying
13727 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13728 struct s { int j; const int *ap[3]; };
13729 struct s *b; b->j = 5;
13730 }
13731 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13732 const int foo = 10;
13733 }
13734#endif
13735
13736 ;
13737 return 0;
13738}
13739_ACEOF
13740rm -f conftest.$ac_objext
13741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13742 (eval $ac_compile) 2>&5
e6cc62c6
VS
13743 ac_status=$?
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); } &&
789c5f4a 13746 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); }; }; then
a0b9e27f 13752 ac_cv_c_const=yes
247f5006 13753else
e6cc62c6
VS
13754 echo "$as_me: failed program was:" >&5
13755sed 's/^/| /' conftest.$ac_ext >&5
13756
13757ac_cv_c_const=no
247f5006 13758fi
789c5f4a 13759rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13760fi
e6cc62c6
VS
13761echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13762echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13763if test $ac_cv_c_const = no; then
e6cc62c6
VS
13764
13765cat >>confdefs.h <<\_ACEOF
13766#define const
13767_ACEOF
10f2d63a 13768
90dd450c 13769fi
81809c07 13770
e6cc62c6
VS
13771echo "$as_me:$LINENO: checking for inline" >&5
13772echo $ECHO_N "checking for inline... $ECHO_C" >&6
13773if test "${ac_cv_c_inline+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13775else
a0b9e27f
MB
13776 ac_cv_c_inline=no
13777for ac_kw in inline __inline__ __inline; do
e6cc62c6 13778 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13779#line $LINENO "configure"
e6cc62c6
VS
13780/* confdefs.h. */
13781_ACEOF
13782cat confdefs.h >>conftest.$ac_ext
13783cat >>conftest.$ac_ext <<_ACEOF
13784/* end confdefs.h. */
13785#ifndef __cplusplus
13786typedef int foo_t;
13787static $ac_kw foo_t static_foo () {return 0; }
13788$ac_kw foo_t foo () {return 0; }
13789#endif
a0b9e27f 13790
e6cc62c6
VS
13791_ACEOF
13792rm -f conftest.$ac_objext
13793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13794 (eval $ac_compile) 2>&5
e6cc62c6
VS
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
789c5f4a 13798 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
a0b9e27f 13804 ac_cv_c_inline=$ac_kw; break
247f5006 13805else
e6cc62c6
VS
13806 echo "$as_me: failed program was:" >&5
13807sed 's/^/| /' conftest.$ac_ext >&5
13808
247f5006 13809fi
789c5f4a 13810rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13811done
247f5006
VZ
13812
13813fi
e6cc62c6
VS
13814echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13815echo "${ECHO_T}$ac_cv_c_inline" >&6
13816case $ac_cv_c_inline in
a0b9e27f 13817 inline | yes) ;;
789c5f4a
VZ
13818 no)
13819cat >>confdefs.h <<\_ACEOF
13820#define inline
09d3439c 13821_ACEOF
789c5f4a
VZ
13822 ;;
13823 *) cat >>confdefs.h <<_ACEOF
13824#define inline $ac_cv_c_inline
13825_ACEOF
13826 ;;
a0b9e27f 13827esac
247f5006 13828
247f5006 13829
e6cc62c6
VS
13830echo "$as_me:$LINENO: checking for char" >&5
13831echo $ECHO_N "checking for char... $ECHO_C" >&6
13832if test "${ac_cv_type_char+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13834else
13835 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13836#line $LINENO "configure"
e6cc62c6
VS
13837/* confdefs.h. */
13838_ACEOF
13839cat confdefs.h >>conftest.$ac_ext
13840cat >>conftest.$ac_ext <<_ACEOF
13841/* end confdefs.h. */
13842$ac_includes_default
13843int
13844main ()
13845{
13846if ((char *) 0)
13847 return 0;
13848if (sizeof (char))
13849 return 0;
13850 ;
13851 return 0;
13852}
13853_ACEOF
13854rm -f conftest.$ac_objext
13855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13856 (eval $ac_compile) 2>&5
e6cc62c6
VS
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
789c5f4a 13860 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866 ac_cv_type_char=yes
13867else
13868 echo "$as_me: failed program was:" >&5
13869sed 's/^/| /' conftest.$ac_ext >&5
13870
13871ac_cv_type_char=no
13872fi
789c5f4a 13873rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13874fi
13875echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13876echo "${ECHO_T}$ac_cv_type_char" >&6
13877
13878echo "$as_me:$LINENO: checking size of char" >&5
13879echo $ECHO_N "checking size of char... $ECHO_C" >&6
13880if test "${ac_cv_sizeof_char+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13882else
13883 if test "$ac_cv_type_char" = yes; then
13884 # The cast to unsigned long works around a bug in the HP C Compiler
13885 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13886 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13887 # This bug is HP SR number 8606223364.
a0b9e27f 13888 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13889 # Depending upon the size, compute the lo and hi bounds.
13890cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13891#line $LINENO "configure"
e6cc62c6
VS
13892/* confdefs.h. */
13893_ACEOF
13894cat confdefs.h >>conftest.$ac_ext
13895cat >>conftest.$ac_ext <<_ACEOF
13896/* end confdefs.h. */
13897$ac_includes_default
13898int
13899main ()
13900{
13901static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13902test_array [0] = 0
13903
13904 ;
13905 return 0;
13906}
13907_ACEOF
13908rm -f conftest.$ac_objext
13909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13910 (eval $ac_compile) 2>&5
e6cc62c6
VS
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
789c5f4a 13914 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; }; then
13920 ac_lo=0 ac_mid=0
13921 while :; do
13922 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13923#line $LINENO "configure"
e6cc62c6
VS
13924/* confdefs.h. */
13925_ACEOF
13926cat confdefs.h >>conftest.$ac_ext
13927cat >>conftest.$ac_ext <<_ACEOF
13928/* end confdefs.h. */
13929$ac_includes_default
13930int
13931main ()
13932{
13933static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13934test_array [0] = 0
13935
13936 ;
13937 return 0;
13938}
13939_ACEOF
13940rm -f conftest.$ac_objext
13941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13942 (eval $ac_compile) 2>&5
e6cc62c6
VS
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
789c5f4a 13946 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13952 ac_hi=$ac_mid; break
13953else
13954 echo "$as_me: failed program was:" >&5
13955sed 's/^/| /' conftest.$ac_ext >&5
13956
13957ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
13958 if test $ac_lo -le $ac_mid; then
13959 ac_lo= ac_hi=
13960 break
13961 fi
13962 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 13963fi
789c5f4a 13964rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 13965 done
a0b9e27f 13966else
e6cc62c6
VS
13967 echo "$as_me: failed program was:" >&5
13968sed 's/^/| /' conftest.$ac_ext >&5
13969
13970cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13971#line $LINENO "configure"
e6cc62c6
VS
13972/* confdefs.h. */
13973_ACEOF
13974cat confdefs.h >>conftest.$ac_ext
13975cat >>conftest.$ac_ext <<_ACEOF
13976/* end confdefs.h. */
13977$ac_includes_default
13978int
13979main ()
13980{
13981static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13982test_array [0] = 0
13983
13984 ;
13985 return 0;
13986}
13987_ACEOF
13988rm -f conftest.$ac_objext
13989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13990 (eval $ac_compile) 2>&5
e6cc62c6
VS
13991 ac_status=$?
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } &&
789c5f4a 13994 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996 (eval $ac_try) 2>&5
13997 ac_status=$?
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14000 ac_hi=-1 ac_mid=-1
14001 while :; do
14002 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14003#line $LINENO "configure"
e6cc62c6
VS
14004/* confdefs.h. */
14005_ACEOF
14006cat confdefs.h >>conftest.$ac_ext
14007cat >>conftest.$ac_ext <<_ACEOF
14008/* end confdefs.h. */
14009$ac_includes_default
14010int
14011main ()
14012{
14013static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14014test_array [0] = 0
14015
14016 ;
14017 return 0;
14018}
14019_ACEOF
14020rm -f conftest.$ac_objext
14021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14022 (eval $ac_compile) 2>&5
e6cc62c6
VS
14023 ac_status=$?
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } &&
789c5f4a 14026 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028 (eval $ac_try) 2>&5
14029 ac_status=$?
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; }; then
14032 ac_lo=$ac_mid; break
14033else
14034 echo "$as_me: failed program was:" >&5
14035sed 's/^/| /' conftest.$ac_ext >&5
14036
14037ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
14038 if test $ac_mid -le $ac_hi; then
14039 ac_lo= ac_hi=
14040 break
14041 fi
14042 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14043fi
789c5f4a 14044rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14045 done
14046else
14047 echo "$as_me: failed program was:" >&5
14048sed 's/^/| /' conftest.$ac_ext >&5
14049
14050ac_lo= ac_hi=
14051fi
789c5f4a 14052rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14053fi
789c5f4a 14054rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14055# Binary search between lo and hi bounds.
14056while test "x$ac_lo" != "x$ac_hi"; do
14057 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14058 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14059#line $LINENO "configure"
e6cc62c6
VS
14060/* confdefs.h. */
14061_ACEOF
14062cat confdefs.h >>conftest.$ac_ext
14063cat >>conftest.$ac_ext <<_ACEOF
14064/* end confdefs.h. */
14065$ac_includes_default
14066int
14067main ()
14068{
14069static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14070test_array [0] = 0
14071
14072 ;
14073 return 0;
14074}
14075_ACEOF
14076rm -f conftest.$ac_objext
14077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14078 (eval $ac_compile) 2>&5
e6cc62c6
VS
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } &&
789c5f4a 14082 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; }; then
14088 ac_hi=$ac_mid
14089else
14090 echo "$as_me: failed program was:" >&5
14091sed 's/^/| /' conftest.$ac_ext >&5
14092
14093ac_lo=`expr '(' $ac_mid ')' + 1`
14094fi
789c5f4a 14095rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14096done
14097case $ac_lo in
14098?*) ac_cv_sizeof_char=$ac_lo;;
14099'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14100See \`config.log' for more details." >&5
14101echo "$as_me: error: cannot compute sizeof (char), 77
14102See \`config.log' for more details." >&2;}
14103 { (exit 1); exit 1; }; } ;;
14104esac
14105else
14106 if test "$cross_compiling" = yes; then
14107 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14108See \`config.log' for more details." >&5
14109echo "$as_me: error: cannot run test program while cross compiling
14110See \`config.log' for more details." >&2;}
14111 { (exit 1); exit 1; }; }
14112else
14113 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14114#line $LINENO "configure"
e6cc62c6
VS
14115/* confdefs.h. */
14116_ACEOF
14117cat confdefs.h >>conftest.$ac_ext
14118cat >>conftest.$ac_ext <<_ACEOF
14119/* end confdefs.h. */
14120$ac_includes_default
14121long longval () { return (long) (sizeof (char)); }
14122unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14123#include <stdio.h>
e6cc62c6
VS
14124#include <stdlib.h>
14125int
14126main ()
247f5006 14127{
e6cc62c6
VS
14128
14129 FILE *f = fopen ("conftest.val", "w");
14130 if (! f)
14131 exit (1);
14132 if (((long) (sizeof (char))) < 0)
14133 {
14134 long i = longval ();
14135 if (i != ((long) (sizeof (char))))
14136 exit (1);
14137 fprintf (f, "%ld\n", i);
14138 }
14139 else
14140 {
14141 unsigned long i = ulongval ();
14142 if (i != ((long) (sizeof (char))))
14143 exit (1);
14144 fprintf (f, "%lu\n", i);
14145 }
14146 exit (ferror (f) || fclose (f) != 0);
14147
14148 ;
14149 return 0;
52127426 14150}
e6cc62c6
VS
14151_ACEOF
14152rm -f conftest$ac_exeext
14153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14154 (eval $ac_link) 2>&5
14155 ac_status=$?
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159 (eval $ac_try) 2>&5
14160 ac_status=$?
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); }; }; then
14163 ac_cv_sizeof_char=`cat conftest.val`
14164else
14165 echo "$as_me: program exited with status $ac_status" >&5
14166echo "$as_me: failed program was:" >&5
14167sed 's/^/| /' conftest.$ac_ext >&5
14168
14169( exit $ac_status )
14170{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14171See \`config.log' for more details." >&5
14172echo "$as_me: error: cannot compute sizeof (char), 77
14173See \`config.log' for more details." >&2;}
14174 { (exit 1); exit 1; }; }
14175fi
789c5f4a 14176rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14177fi
14178fi
14179rm -f conftest.val
247f5006 14180else
a0b9e27f 14181 ac_cv_sizeof_char=0
247f5006 14182fi
247f5006 14183fi
e6cc62c6
VS
14184echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14185echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14186cat >>confdefs.h <<_ACEOF
14187#define SIZEOF_CHAR $ac_cv_sizeof_char
14188_ACEOF
14189
14190
14191echo "$as_me:$LINENO: checking for short" >&5
14192echo $ECHO_N "checking for short... $ECHO_C" >&6
14193if test "${ac_cv_type_short+set}" = set; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14195else
14196 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14197#line $LINENO "configure"
e6cc62c6
VS
14198/* confdefs.h. */
14199_ACEOF
14200cat confdefs.h >>conftest.$ac_ext
14201cat >>conftest.$ac_ext <<_ACEOF
14202/* end confdefs.h. */
14203$ac_includes_default
14204int
14205main ()
14206{
14207if ((short *) 0)
14208 return 0;
14209if (sizeof (short))
14210 return 0;
14211 ;
14212 return 0;
14213}
14214_ACEOF
14215rm -f conftest.$ac_objext
14216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14217 (eval $ac_compile) 2>&5
e6cc62c6
VS
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
789c5f4a 14221 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223 (eval $ac_try) 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); }; }; then
14227 ac_cv_type_short=yes
14228else
14229 echo "$as_me: failed program was:" >&5
14230sed 's/^/| /' conftest.$ac_ext >&5
14231
14232ac_cv_type_short=no
14233fi
789c5f4a 14234rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14235fi
14236echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14237echo "${ECHO_T}$ac_cv_type_short" >&6
14238
14239echo "$as_me:$LINENO: checking size of short" >&5
14240echo $ECHO_N "checking size of short... $ECHO_C" >&6
14241if test "${ac_cv_sizeof_short+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14243else
14244 if test "$ac_cv_type_short" = yes; then
14245 # The cast to unsigned long works around a bug in the HP C Compiler
14246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14248 # This bug is HP SR number 8606223364.
14249 if test "$cross_compiling" = yes; then
14250 # Depending upon the size, compute the lo and hi bounds.
14251cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14252#line $LINENO "configure"
e6cc62c6
VS
14253/* confdefs.h. */
14254_ACEOF
14255cat confdefs.h >>conftest.$ac_ext
14256cat >>conftest.$ac_ext <<_ACEOF
14257/* end confdefs.h. */
14258$ac_includes_default
14259int
14260main ()
14261{
14262static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14263test_array [0] = 0
247f5006 14264
e6cc62c6
VS
14265 ;
14266 return 0;
14267}
14268_ACEOF
14269rm -f conftest.$ac_objext
14270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14271 (eval $ac_compile) 2>&5
e6cc62c6
VS
14272 ac_status=$?
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
789c5f4a 14275 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 ac_lo=0 ac_mid=0
14282 while :; do
14283 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14284#line $LINENO "configure"
e6cc62c6
VS
14285/* confdefs.h. */
14286_ACEOF
14287cat confdefs.h >>conftest.$ac_ext
14288cat >>conftest.$ac_ext <<_ACEOF
14289/* end confdefs.h. */
14290$ac_includes_default
14291int
14292main ()
14293{
14294static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14295test_array [0] = 0
14296
14297 ;
14298 return 0;
14299}
14300_ACEOF
14301rm -f conftest.$ac_objext
14302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14303 (eval $ac_compile) 2>&5
e6cc62c6
VS
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
789c5f4a 14307 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14310 ac_status=$?
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14313 ac_hi=$ac_mid; break
14314else
14315 echo "$as_me: failed program was:" >&5
14316sed 's/^/| /' conftest.$ac_ext >&5
14317
14318ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
14319 if test $ac_lo -le $ac_mid; then
14320 ac_lo= ac_hi=
14321 break
14322 fi
14323 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14324fi
789c5f4a 14325rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14326 done
14327else
14328 echo "$as_me: failed program was:" >&5
14329sed 's/^/| /' conftest.$ac_ext >&5
14330
14331cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14332#line $LINENO "configure"
e6cc62c6
VS
14333/* confdefs.h. */
14334_ACEOF
14335cat confdefs.h >>conftest.$ac_ext
14336cat >>conftest.$ac_ext <<_ACEOF
14337/* end confdefs.h. */
14338$ac_includes_default
14339int
14340main ()
14341{
14342static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14343test_array [0] = 0
247f5006 14344
e6cc62c6
VS
14345 ;
14346 return 0;
14347}
14348_ACEOF
14349rm -f conftest.$ac_objext
14350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14351 (eval $ac_compile) 2>&5
e6cc62c6
VS
14352 ac_status=$?
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } &&
789c5f4a 14355 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14358 ac_status=$?
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 ac_hi=-1 ac_mid=-1
14362 while :; do
14363 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14364#line $LINENO "configure"
e6cc62c6
VS
14365/* confdefs.h. */
14366_ACEOF
14367cat confdefs.h >>conftest.$ac_ext
14368cat >>conftest.$ac_ext <<_ACEOF
14369/* end confdefs.h. */
14370$ac_includes_default
14371int
14372main ()
14373{
14374static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14375test_array [0] = 0
247f5006 14376
e6cc62c6
VS
14377 ;
14378 return 0;
14379}
14380_ACEOF
14381rm -f conftest.$ac_objext
14382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14383 (eval $ac_compile) 2>&5
e6cc62c6
VS
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } &&
789c5f4a 14387 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14393 ac_lo=$ac_mid; break
14394else
14395 echo "$as_me: failed program was:" >&5
14396sed 's/^/| /' conftest.$ac_ext >&5
14397
14398ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
14399 if test $ac_mid -le $ac_hi; then
14400 ac_lo= ac_hi=
14401 break
14402 fi
14403 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14404fi
789c5f4a 14405rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14406 done
247f5006 14407else
e6cc62c6
VS
14408 echo "$as_me: failed program was:" >&5
14409sed 's/^/| /' conftest.$ac_ext >&5
14410
14411ac_lo= ac_hi=
14412fi
789c5f4a 14413rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14414fi
789c5f4a 14415rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14416# Binary search between lo and hi bounds.
14417while test "x$ac_lo" != "x$ac_hi"; do
14418 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14419 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14420#line $LINENO "configure"
e6cc62c6
VS
14421/* confdefs.h. */
14422_ACEOF
14423cat confdefs.h >>conftest.$ac_ext
14424cat >>conftest.$ac_ext <<_ACEOF
14425/* end confdefs.h. */
14426$ac_includes_default
14427int
14428main ()
14429{
14430static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14431test_array [0] = 0
14432
14433 ;
14434 return 0;
14435}
14436_ACEOF
14437rm -f conftest.$ac_objext
14438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14439 (eval $ac_compile) 2>&5
e6cc62c6
VS
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } &&
789c5f4a 14443 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14449 ac_hi=$ac_mid
14450else
14451 echo "$as_me: failed program was:" >&5
14452sed 's/^/| /' conftest.$ac_ext >&5
14453
14454ac_lo=`expr '(' $ac_mid ')' + 1`
14455fi
789c5f4a 14456rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14457done
14458case $ac_lo in
14459?*) ac_cv_sizeof_short=$ac_lo;;
14460'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14461See \`config.log' for more details." >&5
14462echo "$as_me: error: cannot compute sizeof (short), 77
14463See \`config.log' for more details." >&2;}
14464 { (exit 1); exit 1; }; } ;;
14465esac
247f5006 14466else
e6cc62c6
VS
14467 if test "$cross_compiling" = yes; then
14468 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14469See \`config.log' for more details." >&5
14470echo "$as_me: error: cannot run test program while cross compiling
14471See \`config.log' for more details." >&2;}
14472 { (exit 1); exit 1; }; }
14473else
14474 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14475#line $LINENO "configure"
e6cc62c6
VS
14476/* confdefs.h. */
14477_ACEOF
14478cat confdefs.h >>conftest.$ac_ext
14479cat >>conftest.$ac_ext <<_ACEOF
14480/* end confdefs.h. */
14481$ac_includes_default
14482long longval () { return (long) (sizeof (short)); }
14483unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14484#include <stdio.h>
e6cc62c6
VS
14485#include <stdlib.h>
14486int
14487main ()
a0b9e27f 14488{
e6cc62c6
VS
14489
14490 FILE *f = fopen ("conftest.val", "w");
14491 if (! f)
14492 exit (1);
14493 if (((long) (sizeof (short))) < 0)
14494 {
14495 long i = longval ();
14496 if (i != ((long) (sizeof (short))))
14497 exit (1);
14498 fprintf (f, "%ld\n", i);
14499 }
14500 else
14501 {
14502 unsigned long i = ulongval ();
14503 if (i != ((long) (sizeof (short))))
14504 exit (1);
14505 fprintf (f, "%lu\n", i);
14506 }
14507 exit (ferror (f) || fclose (f) != 0);
14508
14509 ;
14510 return 0;
a0b9e27f 14511}
e6cc62c6
VS
14512_ACEOF
14513rm -f conftest$ac_exeext
14514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14515 (eval $ac_link) 2>&5
14516 ac_status=$?
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; }; then
14524 ac_cv_sizeof_short=`cat conftest.val`
14525else
14526 echo "$as_me: program exited with status $ac_status" >&5
14527echo "$as_me: failed program was:" >&5
14528sed 's/^/| /' conftest.$ac_ext >&5
14529
14530( exit $ac_status )
14531{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14532See \`config.log' for more details." >&5
14533echo "$as_me: error: cannot compute sizeof (short), 77
14534See \`config.log' for more details." >&2;}
14535 { (exit 1); exit 1; }; }
14536fi
789c5f4a 14537rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14538fi
14539fi
14540rm -f conftest.val
247f5006 14541else
a0b9e27f 14542 ac_cv_sizeof_short=0
247f5006 14543fi
247f5006 14544fi
e6cc62c6
VS
14545echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14546echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14547cat >>confdefs.h <<_ACEOF
14548#define SIZEOF_SHORT $ac_cv_sizeof_short
14549_ACEOF
14550
14551
14552echo "$as_me:$LINENO: checking for void *" >&5
14553echo $ECHO_N "checking for void *... $ECHO_C" >&6
14554if test "${ac_cv_type_void_p+set}" = set; then
14555 echo $ECHO_N "(cached) $ECHO_C" >&6
14556else
14557 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14558#line $LINENO "configure"
e6cc62c6
VS
14559/* confdefs.h. */
14560_ACEOF
14561cat confdefs.h >>conftest.$ac_ext
14562cat >>conftest.$ac_ext <<_ACEOF
14563/* end confdefs.h. */
14564$ac_includes_default
14565int
14566main ()
14567{
14568if ((void * *) 0)
14569 return 0;
14570if (sizeof (void *))
14571 return 0;
14572 ;
14573 return 0;
14574}
14575_ACEOF
14576rm -f conftest.$ac_objext
14577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14578 (eval $ac_compile) 2>&5
e6cc62c6
VS
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } &&
789c5f4a 14582 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14588 ac_cv_type_void_p=yes
14589else
14590 echo "$as_me: failed program was:" >&5
14591sed 's/^/| /' conftest.$ac_ext >&5
14592
14593ac_cv_type_void_p=no
14594fi
789c5f4a 14595rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14596fi
14597echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14598echo "${ECHO_T}$ac_cv_type_void_p" >&6
14599
14600echo "$as_me:$LINENO: checking size of void *" >&5
14601echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14602if test "${ac_cv_sizeof_void_p+set}" = set; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14604else
14605 if test "$ac_cv_type_void_p" = yes; then
14606 # The cast to unsigned long works around a bug in the HP C Compiler
14607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14609 # This bug is HP SR number 8606223364.
14610 if test "$cross_compiling" = yes; then
14611 # Depending upon the size, compute the lo and hi bounds.
14612cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14613#line $LINENO "configure"
e6cc62c6
VS
14614/* confdefs.h. */
14615_ACEOF
14616cat confdefs.h >>conftest.$ac_ext
14617cat >>conftest.$ac_ext <<_ACEOF
14618/* end confdefs.h. */
14619$ac_includes_default
14620int
14621main ()
14622{
14623static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14624test_array [0] = 0
14625
14626 ;
14627 return 0;
14628}
14629_ACEOF
14630rm -f conftest.$ac_objext
14631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14632 (eval $ac_compile) 2>&5
e6cc62c6
VS
14633 ac_status=$?
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } &&
789c5f4a 14636 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14639 ac_status=$?
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; }; then
14642 ac_lo=0 ac_mid=0
14643 while :; do
14644 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14645#line $LINENO "configure"
e6cc62c6
VS
14646/* confdefs.h. */
14647_ACEOF
14648cat confdefs.h >>conftest.$ac_ext
14649cat >>conftest.$ac_ext <<_ACEOF
14650/* end confdefs.h. */
14651$ac_includes_default
14652int
14653main ()
14654{
14655static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14656test_array [0] = 0
247f5006 14657
e6cc62c6
VS
14658 ;
14659 return 0;
14660}
14661_ACEOF
14662rm -f conftest.$ac_objext
14663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14664 (eval $ac_compile) 2>&5
e6cc62c6
VS
14665 ac_status=$?
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } &&
789c5f4a 14668 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14674 ac_hi=$ac_mid; break
14675else
14676 echo "$as_me: failed program was:" >&5
14677sed 's/^/| /' conftest.$ac_ext >&5
14678
14679ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
14680 if test $ac_lo -le $ac_mid; then
14681 ac_lo= ac_hi=
14682 break
14683 fi
14684 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14685fi
789c5f4a 14686rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14687 done
14688else
14689 echo "$as_me: failed program was:" >&5
14690sed 's/^/| /' conftest.$ac_ext >&5
14691
14692cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14693#line $LINENO "configure"
e6cc62c6
VS
14694/* confdefs.h. */
14695_ACEOF
14696cat confdefs.h >>conftest.$ac_ext
14697cat >>conftest.$ac_ext <<_ACEOF
14698/* end confdefs.h. */
14699$ac_includes_default
14700int
14701main ()
14702{
14703static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14704test_array [0] = 0
247f5006 14705
e6cc62c6
VS
14706 ;
14707 return 0;
14708}
14709_ACEOF
14710rm -f conftest.$ac_objext
14711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14712 (eval $ac_compile) 2>&5
e6cc62c6
VS
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } &&
789c5f4a 14716 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 ac_hi=-1 ac_mid=-1
14723 while :; do
14724 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14725#line $LINENO "configure"
e6cc62c6
VS
14726/* confdefs.h. */
14727_ACEOF
14728cat confdefs.h >>conftest.$ac_ext
14729cat >>conftest.$ac_ext <<_ACEOF
14730/* end confdefs.h. */
14731$ac_includes_default
14732int
14733main ()
14734{
14735static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14736test_array [0] = 0
247f5006 14737
e6cc62c6
VS
14738 ;
14739 return 0;
14740}
14741_ACEOF
14742rm -f conftest.$ac_objext
14743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14744 (eval $ac_compile) 2>&5
e6cc62c6
VS
14745 ac_status=$?
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } &&
789c5f4a 14748 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750 (eval $ac_try) 2>&5
14751 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; }; then
14754 ac_lo=$ac_mid; break
14755else
14756 echo "$as_me: failed program was:" >&5
14757sed 's/^/| /' conftest.$ac_ext >&5
14758
14759ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
14760 if test $ac_mid -le $ac_hi; then
14761 ac_lo= ac_hi=
14762 break
14763 fi
14764 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14765fi
789c5f4a 14766rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14767 done
a0b9e27f 14768else
e6cc62c6
VS
14769 echo "$as_me: failed program was:" >&5
14770sed 's/^/| /' conftest.$ac_ext >&5
14771
14772ac_lo= ac_hi=
14773fi
789c5f4a 14774rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14775fi
789c5f4a 14776rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14777# Binary search between lo and hi bounds.
14778while test "x$ac_lo" != "x$ac_hi"; do
14779 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14780 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14781#line $LINENO "configure"
e6cc62c6
VS
14782/* confdefs.h. */
14783_ACEOF
14784cat confdefs.h >>conftest.$ac_ext
14785cat >>conftest.$ac_ext <<_ACEOF
14786/* end confdefs.h. */
14787$ac_includes_default
14788int
14789main ()
14790{
14791static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14792test_array [0] = 0
14793
14794 ;
14795 return 0;
14796}
14797_ACEOF
14798rm -f conftest.$ac_objext
14799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14800 (eval $ac_compile) 2>&5
e6cc62c6
VS
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
789c5f4a 14804 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 ac_hi=$ac_mid
14811else
14812 echo "$as_me: failed program was:" >&5
14813sed 's/^/| /' conftest.$ac_ext >&5
14814
14815ac_lo=`expr '(' $ac_mid ')' + 1`
14816fi
789c5f4a 14817rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14818done
14819case $ac_lo in
14820?*) ac_cv_sizeof_void_p=$ac_lo;;
14821'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14822See \`config.log' for more details." >&5
14823echo "$as_me: error: cannot compute sizeof (void *), 77
14824See \`config.log' for more details." >&2;}
14825 { (exit 1); exit 1; }; } ;;
14826esac
247f5006 14827else
e6cc62c6
VS
14828 if test "$cross_compiling" = yes; then
14829 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14830See \`config.log' for more details." >&5
14831echo "$as_me: error: cannot run test program while cross compiling
14832See \`config.log' for more details." >&2;}
14833 { (exit 1); exit 1; }; }
14834else
14835 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14836#line $LINENO "configure"
e6cc62c6
VS
14837/* confdefs.h. */
14838_ACEOF
14839cat confdefs.h >>conftest.$ac_ext
14840cat >>conftest.$ac_ext <<_ACEOF
14841/* end confdefs.h. */
14842$ac_includes_default
14843long longval () { return (long) (sizeof (void *)); }
14844unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14845#include <stdio.h>
e6cc62c6
VS
14846#include <stdlib.h>
14847int
14848main ()
247f5006 14849{
e6cc62c6
VS
14850
14851 FILE *f = fopen ("conftest.val", "w");
14852 if (! f)
14853 exit (1);
14854 if (((long) (sizeof (void *))) < 0)
14855 {
14856 long i = longval ();
14857 if (i != ((long) (sizeof (void *))))
14858 exit (1);
14859 fprintf (f, "%ld\n", i);
14860 }
14861 else
14862 {
14863 unsigned long i = ulongval ();
14864 if (i != ((long) (sizeof (void *))))
14865 exit (1);
14866 fprintf (f, "%lu\n", i);
14867 }
14868 exit (ferror (f) || fclose (f) != 0);
14869
14870 ;
14871 return 0;
5c6fa7d2 14872}
e6cc62c6
VS
14873_ACEOF
14874rm -f conftest$ac_exeext
14875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14876 (eval $ac_link) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14885 ac_cv_sizeof_void_p=`cat conftest.val`
14886else
14887 echo "$as_me: program exited with status $ac_status" >&5
14888echo "$as_me: failed program was:" >&5
14889sed 's/^/| /' conftest.$ac_ext >&5
14890
14891( exit $ac_status )
14892{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14893See \`config.log' for more details." >&5
14894echo "$as_me: error: cannot compute sizeof (void *), 77
14895See \`config.log' for more details." >&2;}
14896 { (exit 1); exit 1; }; }
14897fi
789c5f4a 14898rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14899fi
14900fi
14901rm -f conftest.val
a0b9e27f 14902else
a0b9e27f
MB
14903 ac_cv_sizeof_void_p=0
14904fi
a0b9e27f 14905fi
e6cc62c6
VS
14906echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14907echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14908cat >>confdefs.h <<_ACEOF
14909#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14910_ACEOF
14911
14912
14913echo "$as_me:$LINENO: checking for int" >&5
14914echo $ECHO_N "checking for int... $ECHO_C" >&6
14915if test "${ac_cv_type_int+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14917else
14918 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14919#line $LINENO "configure"
e6cc62c6
VS
14920/* confdefs.h. */
14921_ACEOF
14922cat confdefs.h >>conftest.$ac_ext
14923cat >>conftest.$ac_ext <<_ACEOF
14924/* end confdefs.h. */
14925$ac_includes_default
14926int
14927main ()
14928{
14929if ((int *) 0)
14930 return 0;
14931if (sizeof (int))
14932 return 0;
14933 ;
14934 return 0;
14935}
14936_ACEOF
14937rm -f conftest.$ac_objext
14938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14939 (eval $ac_compile) 2>&5
e6cc62c6
VS
14940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } &&
789c5f4a 14943 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14946 ac_status=$?
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; }; then
14949 ac_cv_type_int=yes
14950else
14951 echo "$as_me: failed program was:" >&5
14952sed 's/^/| /' conftest.$ac_ext >&5
14953
14954ac_cv_type_int=no
14955fi
789c5f4a 14956rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14957fi
14958echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14959echo "${ECHO_T}$ac_cv_type_int" >&6
14960
14961echo "$as_me:$LINENO: checking size of int" >&5
14962echo $ECHO_N "checking size of int... $ECHO_C" >&6
14963if test "${ac_cv_sizeof_int+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14965else
14966 if test "$ac_cv_type_int" = yes; then
14967 # The cast to unsigned long works around a bug in the HP C Compiler
14968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14970 # This bug is HP SR number 8606223364.
14971 if test "$cross_compiling" = yes; then
14972 # Depending upon the size, compute the lo and hi bounds.
14973cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14974#line $LINENO "configure"
e6cc62c6
VS
14975/* confdefs.h. */
14976_ACEOF
14977cat confdefs.h >>conftest.$ac_ext
14978cat >>conftest.$ac_ext <<_ACEOF
14979/* end confdefs.h. */
14980$ac_includes_default
14981int
14982main ()
14983{
14984static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14985test_array [0] = 0
8284b0c5 14986
e6cc62c6
VS
14987 ;
14988 return 0;
14989}
14990_ACEOF
14991rm -f conftest.$ac_objext
14992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14993 (eval $ac_compile) 2>&5
e6cc62c6
VS
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
789c5f4a 14997 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15000 ac_status=$?
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }; then
15003 ac_lo=0 ac_mid=0
15004 while :; do
15005 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15006#line $LINENO "configure"
e6cc62c6
VS
15007/* confdefs.h. */
15008_ACEOF
15009cat confdefs.h >>conftest.$ac_ext
15010cat >>conftest.$ac_ext <<_ACEOF
15011/* end confdefs.h. */
15012$ac_includes_default
15013int
15014main ()
15015{
15016static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15017test_array [0] = 0
15018
15019 ;
15020 return 0;
15021}
15022_ACEOF
15023rm -f conftest.$ac_objext
15024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15025 (eval $ac_compile) 2>&5
e6cc62c6
VS
15026 ac_status=$?
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
789c5f4a 15029 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; }; then
15035 ac_hi=$ac_mid; break
15036else
15037 echo "$as_me: failed program was:" >&5
15038sed 's/^/| /' conftest.$ac_ext >&5
15039
15040ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
15041 if test $ac_lo -le $ac_mid; then
15042 ac_lo= ac_hi=
15043 break
15044 fi
15045 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15046fi
789c5f4a 15047rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15048 done
15049else
15050 echo "$as_me: failed program was:" >&5
15051sed 's/^/| /' conftest.$ac_ext >&5
15052
15053cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15054#line $LINENO "configure"
e6cc62c6
VS
15055/* confdefs.h. */
15056_ACEOF
15057cat confdefs.h >>conftest.$ac_ext
15058cat >>conftest.$ac_ext <<_ACEOF
15059/* end confdefs.h. */
15060$ac_includes_default
15061int
15062main ()
15063{
15064static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15065test_array [0] = 0
247f5006 15066
e6cc62c6
VS
15067 ;
15068 return 0;
15069}
15070_ACEOF
15071rm -f conftest.$ac_objext
15072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15073 (eval $ac_compile) 2>&5
e6cc62c6
VS
15074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } &&
789c5f4a 15077 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15080 ac_status=$?
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; }; then
15083 ac_hi=-1 ac_mid=-1
15084 while :; do
15085 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15086#line $LINENO "configure"
e6cc62c6
VS
15087/* confdefs.h. */
15088_ACEOF
15089cat confdefs.h >>conftest.$ac_ext
15090cat >>conftest.$ac_ext <<_ACEOF
15091/* end confdefs.h. */
15092$ac_includes_default
15093int
15094main ()
15095{
15096static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15097test_array [0] = 0
247f5006 15098
e6cc62c6
VS
15099 ;
15100 return 0;
15101}
15102_ACEOF
15103rm -f conftest.$ac_objext
15104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15105 (eval $ac_compile) 2>&5
e6cc62c6
VS
15106 ac_status=$?
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } &&
789c5f4a 15109 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15112 ac_status=$?
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; }; then
15115 ac_lo=$ac_mid; break
15116else
15117 echo "$as_me: failed program was:" >&5
15118sed 's/^/| /' conftest.$ac_ext >&5
15119
15120ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
15121 if test $ac_mid -le $ac_hi; then
15122 ac_lo= ac_hi=
15123 break
15124 fi
15125 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15126fi
789c5f4a 15127rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15128 done
247f5006 15129else
e6cc62c6
VS
15130 echo "$as_me: failed program was:" >&5
15131sed 's/^/| /' conftest.$ac_ext >&5
15132
15133ac_lo= ac_hi=
15134fi
789c5f4a 15135rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15136fi
789c5f4a 15137rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15138# Binary search between lo and hi bounds.
15139while test "x$ac_lo" != "x$ac_hi"; do
15140 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15141 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15142#line $LINENO "configure"
e6cc62c6
VS
15143/* confdefs.h. */
15144_ACEOF
15145cat confdefs.h >>conftest.$ac_ext
15146cat >>conftest.$ac_ext <<_ACEOF
15147/* end confdefs.h. */
15148$ac_includes_default
15149int
15150main ()
15151{
15152static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15153test_array [0] = 0
15154
15155 ;
15156 return 0;
15157}
15158_ACEOF
15159rm -f conftest.$ac_objext
15160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15161 (eval $ac_compile) 2>&5
e6cc62c6
VS
15162 ac_status=$?
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } &&
789c5f4a 15165 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_hi=$ac_mid
15172else
15173 echo "$as_me: failed program was:" >&5
15174sed 's/^/| /' conftest.$ac_ext >&5
15175
15176ac_lo=`expr '(' $ac_mid ')' + 1`
15177fi
789c5f4a 15178rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15179done
15180case $ac_lo in
15181?*) ac_cv_sizeof_int=$ac_lo;;
15182'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15183See \`config.log' for more details." >&5
15184echo "$as_me: error: cannot compute sizeof (int), 77
15185See \`config.log' for more details." >&2;}
15186 { (exit 1); exit 1; }; } ;;
15187esac
a0b9e27f 15188else
e6cc62c6
VS
15189 if test "$cross_compiling" = yes; then
15190 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15191See \`config.log' for more details." >&5
15192echo "$as_me: error: cannot run test program while cross compiling
15193See \`config.log' for more details." >&2;}
15194 { (exit 1); exit 1; }; }
15195else
15196 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15197#line $LINENO "configure"
e6cc62c6
VS
15198/* confdefs.h. */
15199_ACEOF
15200cat confdefs.h >>conftest.$ac_ext
15201cat >>conftest.$ac_ext <<_ACEOF
15202/* end confdefs.h. */
15203$ac_includes_default
15204long longval () { return (long) (sizeof (int)); }
15205unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15206#include <stdio.h>
e6cc62c6
VS
15207#include <stdlib.h>
15208int
15209main ()
247f5006 15210{
e6cc62c6
VS
15211
15212 FILE *f = fopen ("conftest.val", "w");
15213 if (! f)
15214 exit (1);
15215 if (((long) (sizeof (int))) < 0)
15216 {
15217 long i = longval ();
15218 if (i != ((long) (sizeof (int))))
15219 exit (1);
15220 fprintf (f, "%ld\n", i);
15221 }
15222 else
15223 {
15224 unsigned long i = ulongval ();
15225 if (i != ((long) (sizeof (int))))
15226 exit (1);
15227 fprintf (f, "%lu\n", i);
15228 }
15229 exit (ferror (f) || fclose (f) != 0);
15230
15231 ;
15232 return 0;
247f5006 15233}
e6cc62c6
VS
15234_ACEOF
15235rm -f conftest$ac_exeext
15236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15237 (eval $ac_link) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 ac_cv_sizeof_int=`cat conftest.val`
15247else
15248 echo "$as_me: program exited with status $ac_status" >&5
15249echo "$as_me: failed program was:" >&5
15250sed 's/^/| /' conftest.$ac_ext >&5
15251
15252( exit $ac_status )
15253{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15254See \`config.log' for more details." >&5
15255echo "$as_me: error: cannot compute sizeof (int), 77
15256See \`config.log' for more details." >&2;}
15257 { (exit 1); exit 1; }; }
15258fi
789c5f4a 15259rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15260fi
15261fi
15262rm -f conftest.val
6f72b082 15263else
a0b9e27f 15264 ac_cv_sizeof_int=0
21d1c967 15265fi
698dcdb6 15266fi
e6cc62c6
VS
15267echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15268echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15269cat >>confdefs.h <<_ACEOF
15270#define SIZEOF_INT $ac_cv_sizeof_int
15271_ACEOF
15272
15273
15274echo "$as_me:$LINENO: checking for long" >&5
15275echo $ECHO_N "checking for long... $ECHO_C" >&6
15276if test "${ac_cv_type_long+set}" = set; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15278else
15279 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15280#line $LINENO "configure"
e6cc62c6
VS
15281/* confdefs.h. */
15282_ACEOF
15283cat confdefs.h >>conftest.$ac_ext
15284cat >>conftest.$ac_ext <<_ACEOF
15285/* end confdefs.h. */
15286$ac_includes_default
15287int
15288main ()
15289{
15290if ((long *) 0)
15291 return 0;
15292if (sizeof (long))
15293 return 0;
15294 ;
15295 return 0;
15296}
15297_ACEOF
15298rm -f conftest.$ac_objext
15299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15300 (eval $ac_compile) 2>&5
e6cc62c6
VS
15301 ac_status=$?
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
789c5f4a 15304 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15306 (eval $ac_try) 2>&5
15307 ac_status=$?
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); }; }; then
15310 ac_cv_type_long=yes
15311else
15312 echo "$as_me: failed program was:" >&5
15313sed 's/^/| /' conftest.$ac_ext >&5
15314
15315ac_cv_type_long=no
15316fi
789c5f4a 15317rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15318fi
15319echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15320echo "${ECHO_T}$ac_cv_type_long" >&6
15321
15322echo "$as_me:$LINENO: checking size of long" >&5
15323echo $ECHO_N "checking size of long... $ECHO_C" >&6
15324if test "${ac_cv_sizeof_long+set}" = set; then
15325 echo $ECHO_N "(cached) $ECHO_C" >&6
15326else
15327 if test "$ac_cv_type_long" = yes; then
15328 # The cast to unsigned long works around a bug in the HP C Compiler
15329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15331 # This bug is HP SR number 8606223364.
15332 if test "$cross_compiling" = yes; then
15333 # Depending upon the size, compute the lo and hi bounds.
15334cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15335#line $LINENO "configure"
e6cc62c6
VS
15336/* confdefs.h. */
15337_ACEOF
15338cat confdefs.h >>conftest.$ac_ext
15339cat >>conftest.$ac_ext <<_ACEOF
15340/* end confdefs.h. */
15341$ac_includes_default
15342int
15343main ()
15344{
15345static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15346test_array [0] = 0
15347
15348 ;
15349 return 0;
15350}
15351_ACEOF
15352rm -f conftest.$ac_objext
15353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15354 (eval $ac_compile) 2>&5
e6cc62c6
VS
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); } &&
789c5f4a 15358 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15361 ac_status=$?
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; }; then
15364 ac_lo=0 ac_mid=0
15365 while :; do
15366 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15367#line $LINENO "configure"
e6cc62c6
VS
15368/* confdefs.h. */
15369_ACEOF
15370cat confdefs.h >>conftest.$ac_ext
15371cat >>conftest.$ac_ext <<_ACEOF
15372/* end confdefs.h. */
15373$ac_includes_default
15374int
15375main ()
15376{
15377static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15378test_array [0] = 0
4f14bcd8 15379
e6cc62c6
VS
15380 ;
15381 return 0;
15382}
15383_ACEOF
15384rm -f conftest.$ac_objext
15385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15386 (eval $ac_compile) 2>&5
e6cc62c6
VS
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
789c5f4a 15390 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
15396 ac_hi=$ac_mid; break
15397else
15398 echo "$as_me: failed program was:" >&5
15399sed 's/^/| /' conftest.$ac_ext >&5
15400
15401ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
15402 if test $ac_lo -le $ac_mid; then
15403 ac_lo= ac_hi=
15404 break
15405 fi
15406 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15407fi
789c5f4a 15408rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15409 done
15410else
15411 echo "$as_me: failed program was:" >&5
15412sed 's/^/| /' conftest.$ac_ext >&5
15413
15414cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15415#line $LINENO "configure"
e6cc62c6
VS
15416/* confdefs.h. */
15417_ACEOF
15418cat confdefs.h >>conftest.$ac_ext
15419cat >>conftest.$ac_ext <<_ACEOF
15420/* end confdefs.h. */
15421$ac_includes_default
15422int
15423main ()
15424{
15425static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15426test_array [0] = 0
4f14bcd8 15427
e6cc62c6
VS
15428 ;
15429 return 0;
15430}
15431_ACEOF
15432rm -f conftest.$ac_objext
15433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15434 (eval $ac_compile) 2>&5
e6cc62c6
VS
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
789c5f4a 15438 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15444 ac_hi=-1 ac_mid=-1
15445 while :; do
15446 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15447#line $LINENO "configure"
e6cc62c6
VS
15448/* confdefs.h. */
15449_ACEOF
15450cat confdefs.h >>conftest.$ac_ext
15451cat >>conftest.$ac_ext <<_ACEOF
15452/* end confdefs.h. */
15453$ac_includes_default
15454int
15455main ()
15456{
15457static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15458test_array [0] = 0
5c6fa7d2 15459
e6cc62c6
VS
15460 ;
15461 return 0;
15462}
15463_ACEOF
15464rm -f conftest.$ac_objext
15465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15466 (eval $ac_compile) 2>&5
e6cc62c6
VS
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } &&
789c5f4a 15470 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_lo=$ac_mid; break
15477else
15478 echo "$as_me: failed program was:" >&5
15479sed 's/^/| /' conftest.$ac_ext >&5
15480
15481ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
15482 if test $ac_mid -le $ac_hi; then
15483 ac_lo= ac_hi=
15484 break
15485 fi
15486 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15487fi
789c5f4a 15488rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15489 done
247f5006 15490else
e6cc62c6
VS
15491 echo "$as_me: failed program was:" >&5
15492sed 's/^/| /' conftest.$ac_ext >&5
15493
15494ac_lo= ac_hi=
15495fi
789c5f4a 15496rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15497fi
789c5f4a 15498rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15499# Binary search between lo and hi bounds.
15500while test "x$ac_lo" != "x$ac_hi"; do
15501 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15502 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15503#line $LINENO "configure"
e6cc62c6
VS
15504/* confdefs.h. */
15505_ACEOF
15506cat confdefs.h >>conftest.$ac_ext
15507cat >>conftest.$ac_ext <<_ACEOF
15508/* end confdefs.h. */
15509$ac_includes_default
15510int
15511main ()
15512{
15513static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15514test_array [0] = 0
15515
15516 ;
15517 return 0;
15518}
15519_ACEOF
15520rm -f conftest.$ac_objext
15521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15522 (eval $ac_compile) 2>&5
e6cc62c6
VS
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } &&
789c5f4a 15526 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15532 ac_hi=$ac_mid
15533else
15534 echo "$as_me: failed program was:" >&5
15535sed 's/^/| /' conftest.$ac_ext >&5
15536
15537ac_lo=`expr '(' $ac_mid ')' + 1`
15538fi
789c5f4a 15539rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15540done
15541case $ac_lo in
15542?*) ac_cv_sizeof_long=$ac_lo;;
15543'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15544See \`config.log' for more details." >&5
15545echo "$as_me: error: cannot compute sizeof (long), 77
15546See \`config.log' for more details." >&2;}
15547 { (exit 1); exit 1; }; } ;;
15548esac
247f5006 15549else
e6cc62c6
VS
15550 if test "$cross_compiling" = yes; then
15551 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15552See \`config.log' for more details." >&5
15553echo "$as_me: error: cannot run test program while cross compiling
15554See \`config.log' for more details." >&2;}
15555 { (exit 1); exit 1; }; }
15556else
15557 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15558#line $LINENO "configure"
e6cc62c6
VS
15559/* confdefs.h. */
15560_ACEOF
15561cat confdefs.h >>conftest.$ac_ext
15562cat >>conftest.$ac_ext <<_ACEOF
15563/* end confdefs.h. */
15564$ac_includes_default
15565long longval () { return (long) (sizeof (long)); }
15566unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15567#include <stdio.h>
e6cc62c6
VS
15568#include <stdlib.h>
15569int
15570main ()
247f5006 15571{
e6cc62c6
VS
15572
15573 FILE *f = fopen ("conftest.val", "w");
15574 if (! f)
15575 exit (1);
15576 if (((long) (sizeof (long))) < 0)
15577 {
15578 long i = longval ();
15579 if (i != ((long) (sizeof (long))))
15580 exit (1);
15581 fprintf (f, "%ld\n", i);
15582 }
15583 else
15584 {
15585 unsigned long i = ulongval ();
15586 if (i != ((long) (sizeof (long))))
15587 exit (1);
15588 fprintf (f, "%lu\n", i);
15589 }
15590 exit (ferror (f) || fclose (f) != 0);
15591
15592 ;
15593 return 0;
247f5006 15594}
e6cc62c6
VS
15595_ACEOF
15596rm -f conftest$ac_exeext
15597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15598 (eval $ac_link) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15604 ac_status=$?
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15607 ac_cv_sizeof_long=`cat conftest.val`
15608else
15609 echo "$as_me: program exited with status $ac_status" >&5
15610echo "$as_me: failed program was:" >&5
15611sed 's/^/| /' conftest.$ac_ext >&5
15612
15613( exit $ac_status )
15614{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15615See \`config.log' for more details." >&5
15616echo "$as_me: error: cannot compute sizeof (long), 77
15617See \`config.log' for more details." >&2;}
15618 { (exit 1); exit 1; }; }
15619fi
789c5f4a 15620rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15621fi
15622fi
15623rm -f conftest.val
247f5006 15624else
a0b9e27f 15625 ac_cv_sizeof_long=0
247f5006 15626fi
247f5006 15627fi
e6cc62c6
VS
15628echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15629echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15630cat >>confdefs.h <<_ACEOF
a0b9e27f 15631#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15632_ACEOF
247f5006 15633
a0b9e27f 15634
ecfd48ca
VZ
15635echo "$as_me:$LINENO: checking for size_t" >&5
15636echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15637if test "${ac_cv_type_size_t+set}" = set; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15639else
15640 cat >conftest.$ac_ext <<_ACEOF
15641#line $LINENO "configure"
15642/* confdefs.h. */
15643_ACEOF
15644cat confdefs.h >>conftest.$ac_ext
15645cat >>conftest.$ac_ext <<_ACEOF
15646/* end confdefs.h. */
15647$ac_includes_default
15648int
15649main ()
15650{
15651if ((size_t *) 0)
15652 return 0;
15653if (sizeof (size_t))
15654 return 0;
15655 ;
15656 return 0;
15657}
15658_ACEOF
15659rm -f conftest.$ac_objext
15660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15661 (eval $ac_compile) 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -s conftest.$ac_objext'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15668 ac_status=$?
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
15671 ac_cv_type_size_t=yes
15672else
15673 echo "$as_me: failed program was:" >&5
15674sed 's/^/| /' conftest.$ac_ext >&5
15675
15676ac_cv_type_size_t=no
15677fi
15678rm -f conftest.$ac_objext conftest.$ac_ext
15679fi
15680echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15681echo "${ECHO_T}$ac_cv_type_size_t" >&6
15682
15683echo "$as_me:$LINENO: checking size of size_t" >&5
15684echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
15685if test "${ac_cv_sizeof_size_t+set}" = set; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15687else
15688 if test "$ac_cv_type_size_t" = yes; then
15689 # The cast to unsigned long works around a bug in the HP C Compiler
15690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15692 # This bug is HP SR number 8606223364.
15693 if test "$cross_compiling" = yes; then
15694 # Depending upon the size, compute the lo and hi bounds.
15695cat >conftest.$ac_ext <<_ACEOF
15696#line $LINENO "configure"
15697/* confdefs.h. */
15698_ACEOF
15699cat confdefs.h >>conftest.$ac_ext
15700cat >>conftest.$ac_ext <<_ACEOF
15701/* end confdefs.h. */
15702$ac_includes_default
15703int
15704main ()
15705{
15706static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
15707test_array [0] = 0
15708
15709 ;
15710 return 0;
15711}
15712_ACEOF
15713rm -f conftest.$ac_objext
15714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15715 (eval $ac_compile) 2>&5
15716 ac_status=$?
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } &&
15719 { ac_try='test -s conftest.$ac_objext'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15722 ac_status=$?
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; }; then
15725 ac_lo=0 ac_mid=0
15726 while :; do
15727 cat >conftest.$ac_ext <<_ACEOF
15728#line $LINENO "configure"
15729/* confdefs.h. */
15730_ACEOF
15731cat confdefs.h >>conftest.$ac_ext
15732cat >>conftest.$ac_ext <<_ACEOF
15733/* end confdefs.h. */
15734$ac_includes_default
15735int
15736main ()
15737{
15738static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
15739test_array [0] = 0
15740
15741 ;
15742 return 0;
15743}
15744_ACEOF
15745rm -f conftest.$ac_objext
15746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15747 (eval $ac_compile) 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
15751 { ac_try='test -s conftest.$ac_objext'
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; }; then
15757 ac_hi=$ac_mid; break
15758else
15759 echo "$as_me: failed program was:" >&5
15760sed 's/^/| /' conftest.$ac_ext >&5
15761
15762ac_lo=`expr $ac_mid + 1`
15763 if test $ac_lo -le $ac_mid; then
15764 ac_lo= ac_hi=
15765 break
15766 fi
15767 ac_mid=`expr 2 '*' $ac_mid + 1`
15768fi
15769rm -f conftest.$ac_objext conftest.$ac_ext
15770 done
15771else
15772 echo "$as_me: failed program was:" >&5
15773sed 's/^/| /' conftest.$ac_ext >&5
15774
15775cat >conftest.$ac_ext <<_ACEOF
15776#line $LINENO "configure"
15777/* confdefs.h. */
15778_ACEOF
15779cat confdefs.h >>conftest.$ac_ext
15780cat >>conftest.$ac_ext <<_ACEOF
15781/* end confdefs.h. */
15782$ac_includes_default
15783int
15784main ()
15785{
15786static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
15787test_array [0] = 0
15788
15789 ;
15790 return 0;
15791}
15792_ACEOF
15793rm -f conftest.$ac_objext
15794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15795 (eval $ac_compile) 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } &&
15799 { ac_try='test -s conftest.$ac_objext'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; }; then
15805 ac_hi=-1 ac_mid=-1
15806 while :; do
15807 cat >conftest.$ac_ext <<_ACEOF
15808#line $LINENO "configure"
15809/* confdefs.h. */
15810_ACEOF
15811cat confdefs.h >>conftest.$ac_ext
15812cat >>conftest.$ac_ext <<_ACEOF
15813/* end confdefs.h. */
15814$ac_includes_default
15815int
15816main ()
15817{
15818static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
15819test_array [0] = 0
15820
15821 ;
15822 return 0;
15823}
15824_ACEOF
15825rm -f conftest.$ac_objext
15826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15827 (eval $ac_compile) 2>&5
15828 ac_status=$?
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } &&
15831 { ac_try='test -s conftest.$ac_objext'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15837 ac_lo=$ac_mid; break
15838else
15839 echo "$as_me: failed program was:" >&5
15840sed 's/^/| /' conftest.$ac_ext >&5
15841
15842ac_hi=`expr '(' $ac_mid ')' - 1`
15843 if test $ac_mid -le $ac_hi; then
15844 ac_lo= ac_hi=
15845 break
15846 fi
15847 ac_mid=`expr 2 '*' $ac_mid`
15848fi
15849rm -f conftest.$ac_objext conftest.$ac_ext
15850 done
15851else
15852 echo "$as_me: failed program was:" >&5
15853sed 's/^/| /' conftest.$ac_ext >&5
15854
15855ac_lo= ac_hi=
15856fi
15857rm -f conftest.$ac_objext conftest.$ac_ext
15858fi
15859rm -f conftest.$ac_objext conftest.$ac_ext
15860# Binary search between lo and hi bounds.
15861while test "x$ac_lo" != "x$ac_hi"; do
15862 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15863 cat >conftest.$ac_ext <<_ACEOF
15864#line $LINENO "configure"
15865/* confdefs.h. */
15866_ACEOF
15867cat confdefs.h >>conftest.$ac_ext
15868cat >>conftest.$ac_ext <<_ACEOF
15869/* end confdefs.h. */
15870$ac_includes_default
15871int
15872main ()
15873{
15874static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
15875test_array [0] = 0
15876
15877 ;
15878 return 0;
15879}
15880_ACEOF
15881rm -f conftest.$ac_objext
15882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883 (eval $ac_compile) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } &&
15887 { ac_try='test -s conftest.$ac_objext'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15893 ac_hi=$ac_mid
15894else
15895 echo "$as_me: failed program was:" >&5
15896sed 's/^/| /' conftest.$ac_ext >&5
15897
15898ac_lo=`expr '(' $ac_mid ')' + 1`
15899fi
15900rm -f conftest.$ac_objext conftest.$ac_ext
15901done
15902case $ac_lo in
15903?*) ac_cv_sizeof_size_t=$ac_lo;;
15904'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
15905See \`config.log' for more details." >&5
15906echo "$as_me: error: cannot compute sizeof (size_t), 77
15907See \`config.log' for more details." >&2;}
15908 { (exit 1); exit 1; }; } ;;
15909esac
15910else
15911 if test "$cross_compiling" = yes; then
15912 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15913See \`config.log' for more details." >&5
15914echo "$as_me: error: cannot run test program while cross compiling
15915See \`config.log' for more details." >&2;}
15916 { (exit 1); exit 1; }; }
15917else
15918 cat >conftest.$ac_ext <<_ACEOF
15919#line $LINENO "configure"
15920/* confdefs.h. */
15921_ACEOF
15922cat confdefs.h >>conftest.$ac_ext
15923cat >>conftest.$ac_ext <<_ACEOF
15924/* end confdefs.h. */
15925$ac_includes_default
15926long longval () { return (long) (sizeof (size_t)); }
15927unsigned long ulongval () { return (long) (sizeof (size_t)); }
15928#include <stdio.h>
15929#include <stdlib.h>
15930int
15931main ()
15932{
15933
15934 FILE *f = fopen ("conftest.val", "w");
15935 if (! f)
15936 exit (1);
15937 if (((long) (sizeof (size_t))) < 0)
15938 {
15939 long i = longval ();
15940 if (i != ((long) (sizeof (size_t))))
15941 exit (1);
15942 fprintf (f, "%ld\n", i);
15943 }
15944 else
15945 {
15946 unsigned long i = ulongval ();
15947 if (i != ((long) (sizeof (size_t))))
15948 exit (1);
15949 fprintf (f, "%lu\n", i);
15950 }
15951 exit (ferror (f) || fclose (f) != 0);
15952
15953 ;
15954 return 0;
15955}
15956_ACEOF
15957rm -f conftest$ac_exeext
15958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15959 (eval $ac_link) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 ac_cv_sizeof_size_t=`cat conftest.val`
15969else
15970 echo "$as_me: program exited with status $ac_status" >&5
15971echo "$as_me: failed program was:" >&5
15972sed 's/^/| /' conftest.$ac_ext >&5
15973
15974( exit $ac_status )
15975{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
15976See \`config.log' for more details." >&5
15977echo "$as_me: error: cannot compute sizeof (size_t), 77
15978See \`config.log' for more details." >&2;}
15979 { (exit 1); exit 1; }; }
15980fi
15981rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15982fi
15983fi
15984rm -f conftest.val
15985else
15986 ac_cv_sizeof_size_t=0
15987fi
15988fi
15989echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
15990echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
15991cat >>confdefs.h <<_ACEOF
15992#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15993_ACEOF
15994
15995
a0b9e27f
MB
15996
15997case "${host}" in
15998 arm-*-linux* )
e6cc62c6
VS
15999 echo "$as_me:$LINENO: checking for long long" >&5
16000echo $ECHO_N "checking for long long... $ECHO_C" >&6
16001if test "${ac_cv_type_long_long+set}" = set; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16003else
16004 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16005#line $LINENO "configure"
e6cc62c6
VS
16006/* confdefs.h. */
16007_ACEOF
16008cat confdefs.h >>conftest.$ac_ext
16009cat >>conftest.$ac_ext <<_ACEOF
16010/* end confdefs.h. */
16011$ac_includes_default
16012int
16013main ()
16014{
16015if ((long long *) 0)
16016 return 0;
16017if (sizeof (long long))
16018 return 0;
16019 ;
16020 return 0;
16021}
16022_ACEOF
16023rm -f conftest.$ac_objext
16024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16025 (eval $ac_compile) 2>&5
e6cc62c6
VS
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
789c5f4a 16029 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031 (eval $ac_try) 2>&5
16032 ac_status=$?
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 ac_cv_type_long_long=yes
16036else
16037 echo "$as_me: failed program was:" >&5
16038sed 's/^/| /' conftest.$ac_ext >&5
16039
16040ac_cv_type_long_long=no
16041fi
789c5f4a 16042rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16043fi
16044echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16045echo "${ECHO_T}$ac_cv_type_long_long" >&6
16046
16047echo "$as_me:$LINENO: checking size of long long" >&5
16048echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16049if test "${ac_cv_sizeof_long_long+set}" = set; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16051else
16052 if test "$ac_cv_type_long_long" = yes; then
16053 # The cast to unsigned long works around a bug in the HP C Compiler
16054 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16055 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16056 # This bug is HP SR number 8606223364.
a0b9e27f 16057 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16058 # Depending upon the size, compute the lo and hi bounds.
16059cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16060#line $LINENO "configure"
e6cc62c6
VS
16061/* confdefs.h. */
16062_ACEOF
16063cat confdefs.h >>conftest.$ac_ext
16064cat >>conftest.$ac_ext <<_ACEOF
16065/* end confdefs.h. */
16066$ac_includes_default
16067int
16068main ()
16069{
16070static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16071test_array [0] = 0
16072
16073 ;
16074 return 0;
16075}
16076_ACEOF
16077rm -f conftest.$ac_objext
16078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16079 (eval $ac_compile) 2>&5
e6cc62c6
VS
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } &&
789c5f4a 16083 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_lo=0 ac_mid=0
16090 while :; do
16091 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16092#line $LINENO "configure"
e6cc62c6
VS
16093/* confdefs.h. */
16094_ACEOF
16095cat confdefs.h >>conftest.$ac_ext
16096cat >>conftest.$ac_ext <<_ACEOF
16097/* end confdefs.h. */
16098$ac_includes_default
16099int
16100main ()
16101{
16102static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16103test_array [0] = 0
16104
16105 ;
16106 return 0;
16107}
16108_ACEOF
16109rm -f conftest.$ac_objext
16110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16111 (eval $ac_compile) 2>&5
e6cc62c6
VS
16112 ac_status=$?
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
789c5f4a 16115 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; }; then
16121 ac_hi=$ac_mid; break
16122else
16123 echo "$as_me: failed program was:" >&5
16124sed 's/^/| /' conftest.$ac_ext >&5
16125
16126ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
16127 if test $ac_lo -le $ac_mid; then
16128 ac_lo= ac_hi=
16129 break
16130 fi
16131 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 16132fi
789c5f4a 16133rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16134 done
16135else
16136 echo "$as_me: failed program was:" >&5
16137sed 's/^/| /' conftest.$ac_ext >&5
16138
16139cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16140#line $LINENO "configure"
e6cc62c6
VS
16141/* confdefs.h. */
16142_ACEOF
16143cat confdefs.h >>conftest.$ac_ext
16144cat >>conftest.$ac_ext <<_ACEOF
16145/* end confdefs.h. */
16146$ac_includes_default
16147int
16148main ()
16149{
16150static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16151test_array [0] = 0
16152
16153 ;
16154 return 0;
16155}
16156_ACEOF
16157rm -f conftest.$ac_objext
16158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16159 (eval $ac_compile) 2>&5
e6cc62c6
VS
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } &&
789c5f4a 16163 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165 (eval $ac_try) 2>&5
16166 ac_status=$?
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; }; then
16169 ac_hi=-1 ac_mid=-1
16170 while :; do
16171 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16172#line $LINENO "configure"
e6cc62c6
VS
16173/* confdefs.h. */
16174_ACEOF
16175cat confdefs.h >>conftest.$ac_ext
16176cat >>conftest.$ac_ext <<_ACEOF
16177/* end confdefs.h. */
16178$ac_includes_default
16179int
16180main ()
16181{
16182static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16183test_array [0] = 0
16184
16185 ;
16186 return 0;
16187}
16188_ACEOF
16189rm -f conftest.$ac_objext
16190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16191 (eval $ac_compile) 2>&5
e6cc62c6
VS
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
789c5f4a 16195 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_lo=$ac_mid; break
16202else
16203 echo "$as_me: failed program was:" >&5
16204sed 's/^/| /' conftest.$ac_ext >&5
16205
16206ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
16207 if test $ac_mid -le $ac_hi; then
16208 ac_lo= ac_hi=
16209 break
16210 fi
16211 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16212fi
789c5f4a 16213rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16214 done
16215else
16216 echo "$as_me: failed program was:" >&5
16217sed 's/^/| /' conftest.$ac_ext >&5
16218
16219ac_lo= ac_hi=
16220fi
789c5f4a 16221rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16222fi
789c5f4a 16223rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16224# Binary search between lo and hi bounds.
16225while test "x$ac_lo" != "x$ac_hi"; do
16226 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16227 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16228#line $LINENO "configure"
e6cc62c6
VS
16229/* confdefs.h. */
16230_ACEOF
16231cat confdefs.h >>conftest.$ac_ext
16232cat >>conftest.$ac_ext <<_ACEOF
16233/* end confdefs.h. */
16234$ac_includes_default
16235int
16236main ()
16237{
16238static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16239test_array [0] = 0
16240
16241 ;
16242 return 0;
16243}
16244_ACEOF
16245rm -f conftest.$ac_objext
16246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16247 (eval $ac_compile) 2>&5
e6cc62c6
VS
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } &&
789c5f4a 16251 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257 ac_hi=$ac_mid
16258else
16259 echo "$as_me: failed program was:" >&5
16260sed 's/^/| /' conftest.$ac_ext >&5
16261
16262ac_lo=`expr '(' $ac_mid ')' + 1`
16263fi
789c5f4a 16264rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16265done
16266case $ac_lo in
16267?*) ac_cv_sizeof_long_long=$ac_lo;;
16268'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16269See \`config.log' for more details." >&5
16270echo "$as_me: error: cannot compute sizeof (long long), 77
16271See \`config.log' for more details." >&2;}
16272 { (exit 1); exit 1; }; } ;;
16273esac
a0b9e27f 16274else
e6cc62c6
VS
16275 if test "$cross_compiling" = yes; then
16276 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16277See \`config.log' for more details." >&5
16278echo "$as_me: error: cannot run test program while cross compiling
16279See \`config.log' for more details." >&2;}
16280 { (exit 1); exit 1; }; }
16281else
16282 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16283#line $LINENO "configure"
e6cc62c6
VS
16284/* confdefs.h. */
16285_ACEOF
16286cat confdefs.h >>conftest.$ac_ext
16287cat >>conftest.$ac_ext <<_ACEOF
16288/* end confdefs.h. */
16289$ac_includes_default
16290long longval () { return (long) (sizeof (long long)); }
16291unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 16292#include <stdio.h>
e6cc62c6
VS
16293#include <stdlib.h>
16294int
16295main ()
247f5006 16296{
e6cc62c6
VS
16297
16298 FILE *f = fopen ("conftest.val", "w");
16299 if (! f)
16300 exit (1);
16301 if (((long) (sizeof (long long))) < 0)
16302 {
16303 long i = longval ();
16304 if (i != ((long) (sizeof (long long))))
16305 exit (1);
16306 fprintf (f, "%ld\n", i);
16307 }
16308 else
16309 {
16310 unsigned long i = ulongval ();
16311 if (i != ((long) (sizeof (long long))))
16312 exit (1);
16313 fprintf (f, "%lu\n", i);
16314 }
16315 exit (ferror (f) || fclose (f) != 0);
16316
16317 ;
16318 return 0;
247f5006 16319}
e6cc62c6
VS
16320_ACEOF
16321rm -f conftest$ac_exeext
16322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16323 (eval $ac_link) 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328 (eval $ac_try) 2>&5
16329 ac_status=$?
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; }; then
16332 ac_cv_sizeof_long_long=`cat conftest.val`
16333else
16334 echo "$as_me: program exited with status $ac_status" >&5
16335echo "$as_me: failed program was:" >&5
16336sed 's/^/| /' conftest.$ac_ext >&5
16337
16338( exit $ac_status )
16339{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16340See \`config.log' for more details." >&5
16341echo "$as_me: error: cannot compute sizeof (long long), 77
16342See \`config.log' for more details." >&2;}
16343 { (exit 1); exit 1; }; }
16344fi
789c5f4a 16345rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16346fi
16347fi
16348rm -f conftest.val
7b4a847f 16349else
a0b9e27f 16350 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
16351fi
16352fi
e6cc62c6
VS
16353echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16354echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16355cat >>confdefs.h <<_ACEOF
16356#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16357_ACEOF
16358
16359
16360 ;;
16361 *-hp-hpux* )
16362 echo "$as_me:$LINENO: checking for long long" >&5
16363echo $ECHO_N "checking for long long... $ECHO_C" >&6
16364if test "${ac_cv_type_long_long+set}" = set; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16366else
16367 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16368#line $LINENO "configure"
e6cc62c6
VS
16369/* confdefs.h. */
16370_ACEOF
16371cat confdefs.h >>conftest.$ac_ext
16372cat >>conftest.$ac_ext <<_ACEOF
16373/* end confdefs.h. */
16374$ac_includes_default
16375int
16376main ()
16377{
16378if ((long long *) 0)
16379 return 0;
16380if (sizeof (long long))
16381 return 0;
16382 ;
16383 return 0;
16384}
16385_ACEOF
16386rm -f conftest.$ac_objext
16387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16388 (eval $ac_compile) 2>&5
e6cc62c6
VS
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
789c5f4a 16392 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16395 ac_status=$?
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
16398 ac_cv_type_long_long=yes
16399else
16400 echo "$as_me: failed program was:" >&5
16401sed 's/^/| /' conftest.$ac_ext >&5
16402
16403ac_cv_type_long_long=no
16404fi
789c5f4a 16405rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16406fi
16407echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16408echo "${ECHO_T}$ac_cv_type_long_long" >&6
16409
16410echo "$as_me:$LINENO: checking size of long long" >&5
16411echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16412if test "${ac_cv_sizeof_long_long+set}" = set; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16414else
16415 if test "$ac_cv_type_long_long" = yes; then
16416 # The cast to unsigned long works around a bug in the HP C Compiler
16417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16419 # This bug is HP SR number 8606223364.
16420 if test "$cross_compiling" = yes; then
16421 # Depending upon the size, compute the lo and hi bounds.
16422cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16423#line $LINENO "configure"
e6cc62c6
VS
16424/* confdefs.h. */
16425_ACEOF
16426cat confdefs.h >>conftest.$ac_ext
16427cat >>conftest.$ac_ext <<_ACEOF
16428/* end confdefs.h. */
16429$ac_includes_default
16430int
16431main ()
16432{
16433static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16434test_array [0] = 0
16435
16436 ;
16437 return 0;
16438}
16439_ACEOF
16440rm -f conftest.$ac_objext
16441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16442 (eval $ac_compile) 2>&5
e6cc62c6
VS
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
789c5f4a 16446 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; }; then
16452 ac_lo=0 ac_mid=0
16453 while :; do
16454 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16455#line $LINENO "configure"
e6cc62c6
VS
16456/* confdefs.h. */
16457_ACEOF
16458cat confdefs.h >>conftest.$ac_ext
16459cat >>conftest.$ac_ext <<_ACEOF
16460/* end confdefs.h. */
16461$ac_includes_default
16462int
16463main ()
16464{
16465static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16466test_array [0] = 0
8284b0c5 16467
e6cc62c6
VS
16468 ;
16469 return 0;
16470}
16471_ACEOF
16472rm -f conftest.$ac_objext
16473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16474 (eval $ac_compile) 2>&5
e6cc62c6
VS
16475 ac_status=$?
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } &&
789c5f4a 16478 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16481 ac_status=$?
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; }; then
16484 ac_hi=$ac_mid; break
16485else
16486 echo "$as_me: failed program was:" >&5
16487sed 's/^/| /' conftest.$ac_ext >&5
16488
16489ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
16490 if test $ac_lo -le $ac_mid; then
16491 ac_lo= ac_hi=
16492 break
16493 fi
16494 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 16495fi
789c5f4a 16496rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16497 done
16498else
16499 echo "$as_me: failed program was:" >&5
16500sed 's/^/| /' conftest.$ac_ext >&5
16501
16502cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16503#line $LINENO "configure"
e6cc62c6
VS
16504/* confdefs.h. */
16505_ACEOF
16506cat confdefs.h >>conftest.$ac_ext
16507cat >>conftest.$ac_ext <<_ACEOF
16508/* end confdefs.h. */
16509$ac_includes_default
16510int
16511main ()
16512{
16513static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16514test_array [0] = 0
a0b9e27f 16515
e6cc62c6
VS
16516 ;
16517 return 0;
16518}
16519_ACEOF
16520rm -f conftest.$ac_objext
16521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16522 (eval $ac_compile) 2>&5
e6cc62c6
VS
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
789c5f4a 16526 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16529 ac_status=$?
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 ac_hi=-1 ac_mid=-1
16533 while :; do
16534 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16535#line $LINENO "configure"
e6cc62c6
VS
16536/* confdefs.h. */
16537_ACEOF
16538cat confdefs.h >>conftest.$ac_ext
16539cat >>conftest.$ac_ext <<_ACEOF
16540/* end confdefs.h. */
16541$ac_includes_default
16542int
16543main ()
16544{
16545static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16546test_array [0] = 0
a0b9e27f 16547
e6cc62c6
VS
16548 ;
16549 return 0;
16550}
16551_ACEOF
16552rm -f conftest.$ac_objext
16553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16554 (eval $ac_compile) 2>&5
e6cc62c6
VS
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } &&
789c5f4a 16558 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 ac_lo=$ac_mid; break
16565else
16566 echo "$as_me: failed program was:" >&5
16567sed 's/^/| /' conftest.$ac_ext >&5
16568
16569ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
16570 if test $ac_mid -le $ac_hi; then
16571 ac_lo= ac_hi=
16572 break
16573 fi
16574 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16575fi
789c5f4a 16576rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16577 done
8284b0c5 16578else
e6cc62c6
VS
16579 echo "$as_me: failed program was:" >&5
16580sed 's/^/| /' conftest.$ac_ext >&5
16581
16582ac_lo= ac_hi=
16583fi
789c5f4a 16584rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16585fi
789c5f4a 16586rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16587# Binary search between lo and hi bounds.
16588while test "x$ac_lo" != "x$ac_hi"; do
16589 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16590 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16591#line $LINENO "configure"
e6cc62c6
VS
16592/* confdefs.h. */
16593_ACEOF
16594cat confdefs.h >>conftest.$ac_ext
16595cat >>conftest.$ac_ext <<_ACEOF
16596/* end confdefs.h. */
16597$ac_includes_default
16598int
16599main ()
16600{
16601static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16602test_array [0] = 0
16603
16604 ;
16605 return 0;
16606}
16607_ACEOF
16608rm -f conftest.$ac_objext
16609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16610 (eval $ac_compile) 2>&5
e6cc62c6
VS
16611 ac_status=$?
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } &&
789c5f4a 16614 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; }; then
16620 ac_hi=$ac_mid
16621else
16622 echo "$as_me: failed program was:" >&5
16623sed 's/^/| /' conftest.$ac_ext >&5
16624
16625ac_lo=`expr '(' $ac_mid ')' + 1`
16626fi
789c5f4a 16627rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16628done
16629case $ac_lo in
16630?*) ac_cv_sizeof_long_long=$ac_lo;;
16631'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16632See \`config.log' for more details." >&5
16633echo "$as_me: error: cannot compute sizeof (long long), 77
16634See \`config.log' for more details." >&2;}
16635 { (exit 1); exit 1; }; } ;;
16636esac
8284b0c5 16637else
e6cc62c6
VS
16638 if test "$cross_compiling" = yes; then
16639 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16640See \`config.log' for more details." >&5
16641echo "$as_me: error: cannot run test program while cross compiling
16642See \`config.log' for more details." >&2;}
16643 { (exit 1); exit 1; }; }
16644else
16645 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16646#line $LINENO "configure"
e6cc62c6
VS
16647/* confdefs.h. */
16648_ACEOF
16649cat confdefs.h >>conftest.$ac_ext
16650cat >>conftest.$ac_ext <<_ACEOF
16651/* end confdefs.h. */
16652$ac_includes_default
16653long longval () { return (long) (sizeof (long long)); }
16654unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16655#include <stdio.h>
e6cc62c6
VS
16656#include <stdlib.h>
16657int
16658main ()
8284b0c5 16659{
e6cc62c6
VS
16660
16661 FILE *f = fopen ("conftest.val", "w");
16662 if (! f)
16663 exit (1);
16664 if (((long) (sizeof (long long))) < 0)
16665 {
16666 long i = longval ();
16667 if (i != ((long) (sizeof (long long))))
16668 exit (1);
16669 fprintf (f, "%ld\n", i);
16670 }
16671 else
16672 {
16673 unsigned long i = ulongval ();
16674 if (i != ((long) (sizeof (long long))))
16675 exit (1);
16676 fprintf (f, "%lu\n", i);
16677 }
16678 exit (ferror (f) || fclose (f) != 0);
16679
16680 ;
16681 return 0;
8284b0c5 16682}
e6cc62c6
VS
16683_ACEOF
16684rm -f conftest$ac_exeext
16685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16686 (eval $ac_link) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 ac_cv_sizeof_long_long=`cat conftest.val`
16696else
16697 echo "$as_me: program exited with status $ac_status" >&5
16698echo "$as_me: failed program was:" >&5
16699sed 's/^/| /' conftest.$ac_ext >&5
16700
16701( exit $ac_status )
16702{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16703See \`config.log' for more details." >&5
16704echo "$as_me: error: cannot compute sizeof (long long), 77
16705See \`config.log' for more details." >&2;}
16706 { (exit 1); exit 1; }; }
16707fi
789c5f4a 16708rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16709fi
16710fi
16711rm -f conftest.val
5c6fa7d2
RR
16712else
16713 ac_cv_sizeof_long_long=0
52127426 16714fi
4f57cf11 16715fi
e6cc62c6
VS
16716echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16717echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16718cat >>confdefs.h <<_ACEOF
4f57cf11 16719#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16720_ACEOF
4f57cf11
GD
16721
16722
16723 if test "$ac_cv_sizeof_long_long" != "0"; then
16724 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16725 fi
16726 ;;
16727 * )
e6cc62c6
VS
16728 echo "$as_me:$LINENO: checking for long long" >&5
16729echo $ECHO_N "checking for long long... $ECHO_C" >&6
16730if test "${ac_cv_type_long_long+set}" = set; then
16731 echo $ECHO_N "(cached) $ECHO_C" >&6
16732else
16733 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16734#line $LINENO "configure"
e6cc62c6
VS
16735/* confdefs.h. */
16736_ACEOF
16737cat confdefs.h >>conftest.$ac_ext
16738cat >>conftest.$ac_ext <<_ACEOF
16739/* end confdefs.h. */
16740$ac_includes_default
16741int
16742main ()
16743{
16744if ((long long *) 0)
16745 return 0;
16746if (sizeof (long long))
16747 return 0;
16748 ;
16749 return 0;
16750}
16751_ACEOF
16752rm -f conftest.$ac_objext
16753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16754 (eval $ac_compile) 2>&5
e6cc62c6
VS
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
789c5f4a 16758 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_cv_type_long_long=yes
16765else
16766 echo "$as_me: failed program was:" >&5
16767sed 's/^/| /' conftest.$ac_ext >&5
16768
16769ac_cv_type_long_long=no
16770fi
789c5f4a 16771rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16772fi
16773echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16774echo "${ECHO_T}$ac_cv_type_long_long" >&6
16775
16776echo "$as_me:$LINENO: checking size of long long" >&5
16777echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16778if test "${ac_cv_sizeof_long_long+set}" = set; then
16779 echo $ECHO_N "(cached) $ECHO_C" >&6
16780else
16781 if test "$ac_cv_type_long_long" = yes; then
16782 # The cast to unsigned long works around a bug in the HP C Compiler
16783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16785 # This bug is HP SR number 8606223364.
4f57cf11 16786 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16787 # Depending upon the size, compute the lo and hi bounds.
16788cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16789#line $LINENO "configure"
e6cc62c6
VS
16790/* confdefs.h. */
16791_ACEOF
16792cat confdefs.h >>conftest.$ac_ext
16793cat >>conftest.$ac_ext <<_ACEOF
16794/* end confdefs.h. */
16795$ac_includes_default
16796int
16797main ()
16798{
16799static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16800test_array [0] = 0
16801
16802 ;
16803 return 0;
16804}
16805_ACEOF
16806rm -f conftest.$ac_objext
16807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16808 (eval $ac_compile) 2>&5
e6cc62c6
VS
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
789c5f4a 16812 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 ac_lo=0 ac_mid=0
16819 while :; do
16820 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16821#line $LINENO "configure"
e6cc62c6
VS
16822/* confdefs.h. */
16823_ACEOF
16824cat confdefs.h >>conftest.$ac_ext
16825cat >>conftest.$ac_ext <<_ACEOF
16826/* end confdefs.h. */
16827$ac_includes_default
16828int
16829main ()
16830{
16831static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16832test_array [0] = 0
16833
16834 ;
16835 return 0;
16836}
16837_ACEOF
16838rm -f conftest.$ac_objext
16839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16840 (eval $ac_compile) 2>&5
e6cc62c6
VS
16841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
789c5f4a 16844 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846 (eval $ac_try) 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; }; then
16850 ac_hi=$ac_mid; break
16851else
16852 echo "$as_me: failed program was:" >&5
16853sed 's/^/| /' conftest.$ac_ext >&5
16854
16855ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
16856 if test $ac_lo -le $ac_mid; then
16857 ac_lo= ac_hi=
16858 break
16859 fi
16860 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 16861fi
789c5f4a 16862rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16863 done
16864else
16865 echo "$as_me: failed program was:" >&5
16866sed 's/^/| /' conftest.$ac_ext >&5
16867
16868cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16869#line $LINENO "configure"
e6cc62c6
VS
16870/* confdefs.h. */
16871_ACEOF
16872cat confdefs.h >>conftest.$ac_ext
16873cat >>conftest.$ac_ext <<_ACEOF
16874/* end confdefs.h. */
16875$ac_includes_default
16876int
16877main ()
16878{
16879static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16880test_array [0] = 0
16881
16882 ;
16883 return 0;
16884}
16885_ACEOF
16886rm -f conftest.$ac_objext
16887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16888 (eval $ac_compile) 2>&5
e6cc62c6
VS
16889 ac_status=$?
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } &&
789c5f4a 16892 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; }; then
16898 ac_hi=-1 ac_mid=-1
16899 while :; do
16900 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16901#line $LINENO "configure"
e6cc62c6
VS
16902/* confdefs.h. */
16903_ACEOF
16904cat confdefs.h >>conftest.$ac_ext
16905cat >>conftest.$ac_ext <<_ACEOF
16906/* end confdefs.h. */
16907$ac_includes_default
16908int
16909main ()
16910{
16911static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16912test_array [0] = 0
16913
16914 ;
16915 return 0;
16916}
16917_ACEOF
16918rm -f conftest.$ac_objext
16919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16920 (eval $ac_compile) 2>&5
e6cc62c6
VS
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } &&
789c5f4a 16924 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16930 ac_lo=$ac_mid; break
16931else
16932 echo "$as_me: failed program was:" >&5
16933sed 's/^/| /' conftest.$ac_ext >&5
16934
16935ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
16936 if test $ac_mid -le $ac_hi; then
16937 ac_lo= ac_hi=
16938 break
16939 fi
16940 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16941fi
789c5f4a 16942rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16943 done
4f57cf11 16944else
e6cc62c6
VS
16945 echo "$as_me: failed program was:" >&5
16946sed 's/^/| /' conftest.$ac_ext >&5
16947
16948ac_lo= ac_hi=
16949fi
789c5f4a 16950rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16951fi
789c5f4a 16952rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16953# Binary search between lo and hi bounds.
16954while test "x$ac_lo" != "x$ac_hi"; do
16955 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16956 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16957#line $LINENO "configure"
e6cc62c6
VS
16958/* confdefs.h. */
16959_ACEOF
16960cat confdefs.h >>conftest.$ac_ext
16961cat >>conftest.$ac_ext <<_ACEOF
16962/* end confdefs.h. */
16963$ac_includes_default
16964int
16965main ()
16966{
16967static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16968test_array [0] = 0
16969
16970 ;
16971 return 0;
16972}
16973_ACEOF
16974rm -f conftest.$ac_objext
16975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16976 (eval $ac_compile) 2>&5
e6cc62c6
VS
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } &&
789c5f4a 16980 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16986 ac_hi=$ac_mid
16987else
16988 echo "$as_me: failed program was:" >&5
16989sed 's/^/| /' conftest.$ac_ext >&5
16990
16991ac_lo=`expr '(' $ac_mid ')' + 1`
16992fi
789c5f4a 16993rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16994done
16995case $ac_lo in
16996?*) ac_cv_sizeof_long_long=$ac_lo;;
16997'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16998See \`config.log' for more details." >&5
16999echo "$as_me: error: cannot compute sizeof (long long), 77
17000See \`config.log' for more details." >&2;}
17001 { (exit 1); exit 1; }; } ;;
17002esac
17003else
17004 if test "$cross_compiling" = yes; then
17005 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17006See \`config.log' for more details." >&5
17007echo "$as_me: error: cannot run test program while cross compiling
17008See \`config.log' for more details." >&2;}
17009 { (exit 1); exit 1; }; }
17010else
17011 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17012#line $LINENO "configure"
e6cc62c6
VS
17013/* confdefs.h. */
17014_ACEOF
17015cat confdefs.h >>conftest.$ac_ext
17016cat >>conftest.$ac_ext <<_ACEOF
17017/* end confdefs.h. */
17018$ac_includes_default
17019long longval () { return (long) (sizeof (long long)); }
17020unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 17021#include <stdio.h>
e6cc62c6
VS
17022#include <stdlib.h>
17023int
17024main ()
4f57cf11 17025{
e6cc62c6
VS
17026
17027 FILE *f = fopen ("conftest.val", "w");
17028 if (! f)
17029 exit (1);
17030 if (((long) (sizeof (long long))) < 0)
17031 {
17032 long i = longval ();
17033 if (i != ((long) (sizeof (long long))))
17034 exit (1);
17035 fprintf (f, "%ld\n", i);
17036 }
17037 else
17038 {
17039 unsigned long i = ulongval ();
17040 if (i != ((long) (sizeof (long long))))
17041 exit (1);
17042 fprintf (f, "%lu\n", i);
17043 }
17044 exit (ferror (f) || fclose (f) != 0);
17045
17046 ;
17047 return 0;
4f57cf11 17048}
e6cc62c6
VS
17049_ACEOF
17050rm -f conftest$ac_exeext
17051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052 (eval $ac_link) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 ac_cv_sizeof_long_long=`cat conftest.val`
17062else
17063 echo "$as_me: program exited with status $ac_status" >&5
17064echo "$as_me: failed program was:" >&5
17065sed 's/^/| /' conftest.$ac_ext >&5
17066
17067( exit $ac_status )
17068{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17069See \`config.log' for more details." >&5
17070echo "$as_me: error: cannot compute sizeof (long long), 77
17071See \`config.log' for more details." >&2;}
17072 { (exit 1); exit 1; }; }
17073fi
789c5f4a 17074rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17075fi
17076fi
17077rm -f conftest.val
4f57cf11 17078else
4f57cf11
GD
17079 ac_cv_sizeof_long_long=0
17080fi
7b4a847f 17081fi
e6cc62c6
VS
17082echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17083echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17084cat >>confdefs.h <<_ACEOF
21d1c967 17085#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 17086_ACEOF
9e691f46 17087
8284b0c5 17088
21d1c967
GD
17089esac
17090
e6cc62c6
VS
17091echo "$as_me:$LINENO: checking size of wchar_t" >&5
17092echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17093if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17095else
e6cc62c6 17096
21d1c967 17097 if test "$cross_compiling" = yes; then
e6cc62c6 17098
2b5f62a0
VZ
17099 case "${host}" in
17100 *-pc-msdosdjgpp )
17101 wx_cv_sizeof_wchar_t=0
17102 ;;
17103 * )
17104 wx_cv_sizeof_wchar_t=4
17105 ;;
17106 esac
e6cc62c6
VS
17107
17108
6f72b082 17109else
e6cc62c6 17110 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17111#line $LINENO "configure"
e6cc62c6
VS
17112/* confdefs.h. */
17113_ACEOF
17114cat confdefs.h >>conftest.$ac_ext
17115cat >>conftest.$ac_ext <<_ACEOF
17116/* end confdefs.h. */
21d1c967 17117
2b5f62a0
VZ
17118 /* DJGPP only has fake wchar_t: */
17119 #ifdef __DJGPP__
17120 # error "fake wchar_t"
17121 #endif
21d1c967
GD
17122 #ifdef HAVE_WCHAR_H
17123 # ifdef __CYGWIN__
17124 # include <stddef.h>
17125 # endif
17126 # include <wchar.h>
17127 #endif
17128 #ifdef HAVE_STDLIB_H
17129 # include <stdlib.h>
17130 #endif
17131 #include <stdio.h>
17132 int main()
17133 {
17134 FILE *f=fopen("conftestval", "w");
17135 if (!f) exit(1);
17136 fprintf(f, "%i", sizeof(wchar_t));
17137 exit(0);
17138 }
e6cc62c6
VS
17139
17140_ACEOF
17141rm -f conftest$ac_exeext
17142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17143 (eval $ac_link) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
21d1c967 17152 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 17153else
e6cc62c6
VS
17154 echo "$as_me: program exited with status $ac_status" >&5
17155echo "$as_me: failed program was:" >&5
17156sed 's/^/| /' conftest.$ac_ext >&5
17157
17158( exit $ac_status )
17159wx_cv_sizeof_wchar_t=0
6f72b082 17160fi
789c5f4a 17161rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 17162fi
6f72b082 17163
3f345b47 17164fi
e6cc62c6
VS
17165echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17166echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 17167
e6cc62c6 17168cat >>confdefs.h <<_ACEOF
21d1c967 17169#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 17170_ACEOF
90dd450c 17171
8284b0c5 17172
21d1c967
GD
17173# Check whether --enable-largefile or --disable-largefile was given.
17174if test "${enable_largefile+set}" = set; then
17175 enableval="$enable_largefile"
3f345b47 17176
e6cc62c6 17177fi;
21d1c967
GD
17178if test "$enable_largefile" != no; then
17179 wx_largefile=no
e6cc62c6
VS
17180
17181 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17182echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17183if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17184 echo $ECHO_N "(cached) $ECHO_C" >&6
17185else
17186
17187 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17188#line $LINENO "configure"
e6cc62c6
VS
17189/* confdefs.h. */
17190_ACEOF
17191cat confdefs.h >>conftest.$ac_ext
17192cat >>conftest.$ac_ext <<_ACEOF
17193/* end confdefs.h. */
21d1c967
GD
17194#define _FILE_OFFSET_BITS 64
17195 #include <sys/types.h>
e6cc62c6
VS
17196int
17197main ()
17198{
21d1c967
GD
17199typedef struct {
17200 unsigned int field: sizeof(off_t) == 8;
17201} wxlf;
17202
e6cc62c6
VS
17203 ;
17204 return 0;
17205}
17206_ACEOF
17207rm -f conftest.$ac_objext
17208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17209 (eval $ac_compile) 2>&5
e6cc62c6
VS
17210 ac_status=$?
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } &&
789c5f4a 17213 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; }; then
21d1c967 17219 ac_cv_sys_file_offset_bits=64
f6bcfd97 17220else
e6cc62c6
VS
17221 echo "$as_me: failed program was:" >&5
17222sed 's/^/| /' conftest.$ac_ext >&5
17223
17224ac_cv_sys_file_offset_bits=no
247f5006 17225fi
789c5f4a 17226rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17227
a0b9e27f 17228
e6cc62c6
VS
17229fi
17230echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17231echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
17232
17233 if test "$ac_cv_sys_file_offset_bits" != no; then
17234 wx_largefile=yes
e6cc62c6 17235 cat >>confdefs.h <<_ACEOF
21d1c967 17236#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 17237_ACEOF
21d1c967
GD
17238
17239 fi
17240
17241 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
17242
17243 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17244echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17245if test "${ac_cv_sys_large_files+set}" = set; then
17246 echo $ECHO_N "(cached) $ECHO_C" >&6
17247else
17248
17249 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17250#line $LINENO "configure"
e6cc62c6
VS
17251/* confdefs.h. */
17252_ACEOF
17253cat confdefs.h >>conftest.$ac_ext
17254cat >>conftest.$ac_ext <<_ACEOF
17255/* end confdefs.h. */
21d1c967
GD
17256#define _LARGE_FILES 1
17257 #include <sys/types.h>
e6cc62c6
VS
17258int
17259main ()
17260{
21d1c967
GD
17261typedef struct {
17262 unsigned int field: sizeof(off_t) == 8;
17263} wxlf;
17264
e6cc62c6
VS
17265 ;
17266 return 0;
17267}
17268_ACEOF
17269rm -f conftest.$ac_objext
17270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17271 (eval $ac_compile) 2>&5
e6cc62c6
VS
17272 ac_status=$?
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
789c5f4a 17275 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
21d1c967 17281 ac_cv_sys_large_files=1
f6bcfd97 17282else
e6cc62c6
VS
17283 echo "$as_me: failed program was:" >&5
17284sed 's/^/| /' conftest.$ac_ext >&5
17285
17286ac_cv_sys_large_files=no
247f5006 17287fi
789c5f4a 17288rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17289
e6cc62c6
VS
17290
17291fi
17292echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17293echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 17294
21d1c967
GD
17295 if test "$ac_cv_sys_large_files" != no; then
17296 wx_largefile=yes
e6cc62c6 17297 cat >>confdefs.h <<_ACEOF
21d1c967 17298#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 17299_ACEOF
90dd450c 17300
90dd450c
VZ
17301 fi
17302
90dd450c 17303 fi
90dd450c 17304
e6cc62c6
VS
17305 echo "$as_me:$LINENO: checking if large file support is available" >&5
17306echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 17307 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 17308 cat >>confdefs.h <<\_ACEOF
21d1c967 17309#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 17310_ACEOF
90dd450c 17311
90dd450c 17312 fi
e6cc62c6
VS
17313 echo "$as_me:$LINENO: result: $wx_largefile" >&5
17314echo "${ECHO_T}$wx_largefile" >&6
21d1c967 17315fi
90dd450c 17316
8284b0c5 17317
f02444d0 17318if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
17319 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
17320 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 17321 else
e26c13cf 17322 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 17323 fi
e26c13cf 17324 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
17325fi
17326
e6cc62c6
VS
17327echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17328echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17329if test "${ac_cv_c_bigendian+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 17331else
21d1c967
GD
17332 ac_cv_c_bigendian=unknown
17333# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6 17334cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17335#line $LINENO "configure"
e6cc62c6
VS
17336/* confdefs.h. */
17337_ACEOF
17338cat confdefs.h >>conftest.$ac_ext
17339cat >>conftest.$ac_ext <<_ACEOF
17340/* end confdefs.h. */
21d1c967
GD
17341#include <sys/types.h>
17342#include <sys/param.h>
e6cc62c6
VS
17343int
17344main ()
17345{
21d1c967
GD
17346
17347#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17348 bogus endian macros
17349#endif
e6cc62c6
VS
17350 ;
17351 return 0;
17352}
17353_ACEOF
17354rm -f conftest.$ac_objext
17355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17356 (eval $ac_compile) 2>&5
e6cc62c6
VS
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } &&
789c5f4a 17360 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362 (eval $ac_try) 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; }; then
21d1c967 17366 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6 17367cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17368#line $LINENO "configure"
e6cc62c6
VS
17369/* confdefs.h. */
17370_ACEOF
17371cat confdefs.h >>conftest.$ac_ext
17372cat >>conftest.$ac_ext <<_ACEOF
17373/* end confdefs.h. */
21d1c967
GD
17374#include <sys/types.h>
17375#include <sys/param.h>
e6cc62c6
VS
17376int
17377main ()
17378{
21d1c967
GD
17379
17380#if BYTE_ORDER != BIG_ENDIAN
17381 not big endian
17382#endif
e6cc62c6
VS
17383 ;
17384 return 0;
17385}
17386_ACEOF
17387rm -f conftest.$ac_objext
17388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17389 (eval $ac_compile) 2>&5
e6cc62c6
VS
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } &&
789c5f4a 17393 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
21d1c967 17399 ac_cv_c_bigendian=yes
3f345b47 17400else
e6cc62c6
VS
17401 echo "$as_me: failed program was:" >&5
17402sed 's/^/| /' conftest.$ac_ext >&5
17403
17404ac_cv_c_bigendian=no
3f345b47 17405fi
789c5f4a 17406rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 17407else
e6cc62c6
VS
17408 echo "$as_me: failed program was:" >&5
17409sed 's/^/| /' conftest.$ac_ext >&5
17410
3f345b47 17411fi
789c5f4a 17412rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17413if test $ac_cv_c_bigendian = unknown; then
17414if test "$cross_compiling" = yes; then
17415 ac_cv_c_bigendian=unknown
10f2d63a 17416else
e6cc62c6 17417 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17418#line $LINENO "configure"
e6cc62c6
VS
17419/* confdefs.h. */
17420_ACEOF
17421cat confdefs.h >>conftest.$ac_ext
17422cat >>conftest.$ac_ext <<_ACEOF
17423/* end confdefs.h. */
21d1c967
GD
17424main () {
17425 /* Are we little or big endian? From Harbison&Steele. */
17426 union
17427 {
17428 long l;
17429 char c[sizeof (long)];
17430 } u;
17431 u.l = 1;
17432 exit (u.c[sizeof (long) - 1] == 1);
17433}
e6cc62c6
VS
17434_ACEOF
17435rm -f conftest$ac_exeext
17436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17437 (eval $ac_link) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
21d1c967 17446 ac_cv_c_bigendian=no
3f345b47 17447else
e6cc62c6
VS
17448 echo "$as_me: program exited with status $ac_status" >&5
17449echo "$as_me: failed program was:" >&5
17450sed 's/^/| /' conftest.$ac_ext >&5
17451
17452( exit $ac_status )
17453ac_cv_c_bigendian=yes
247f5006 17454fi
789c5f4a 17455rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 17456fi
3f345b47 17457fi
8168de4c 17458fi
e6cc62c6
VS
17459echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17460echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 17461if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
17462 { 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
17463echo "$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
17464fi
17465if test $ac_cv_c_bigendian = yes; then
e6cc62c6 17466 cat >>confdefs.h <<\_ACEOF
247f5006 17467#define WORDS_BIGENDIAN 1
e6cc62c6 17468_ACEOF
247f5006
VZ
17469
17470fi
17471
17472
e6cc62c6
VS
17473ac_ext=cc
17474ac_cpp='$CXXCPP $CPPFLAGS'
17475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17478echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17479echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 17480if test -z "$CXXCPP"; then
e6cc62c6
VS
17481 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17483else
17484 # Double quotes because CXXCPP needs to be expanded
17485 for CXXCPP in "$CXX -E" "/lib/cpp"
17486 do
17487 ac_preproc_ok=false
17488for ac_cxx_preproc_warn_flag in '' yes
17489do
17490 # Use a header file that comes with gcc, so configuring glibc
17491 # with a fresh cross-compiler works.
17492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17493 # <limits.h> exists even on freestanding compilers.
17494 # On the NeXT, cc -E runs the code through the compiler's parser,
17495 # not just through cpp. "Syntax error" is here to catch this case.
17496 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17497#line $LINENO "configure"
e6cc62c6
VS
17498/* confdefs.h. */
17499_ACEOF
17500cat confdefs.h >>conftest.$ac_ext
17501cat >>conftest.$ac_ext <<_ACEOF
17502/* end confdefs.h. */
17503#ifdef __STDC__
17504# include <limits.h>
17505#else
17506# include <assert.h>
17507#endif
789c5f4a 17508 Syntax error
e6cc62c6
VS
17509_ACEOF
17510if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17512 ac_status=$?
17513 grep -v '^ *+' conftest.er1 >conftest.err
17514 rm -f conftest.er1
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } >/dev/null; then
17518 if test -s conftest.err; then
17519 ac_cpp_err=$ac_cxx_preproc_warn_flag
17520 else
17521 ac_cpp_err=
17522 fi
247f5006 17523else
e6cc62c6
VS
17524 ac_cpp_err=yes
17525fi
17526if test -z "$ac_cpp_err"; then
17527 :
17528else
17529 echo "$as_me: failed program was:" >&5
17530sed 's/^/| /' conftest.$ac_ext >&5
17531
17532 # Broken: fails on valid input.
17533continue
17534fi
17535rm -f conftest.err conftest.$ac_ext
17536
17537 # OK, works on sane cases. Now check whether non-existent headers
17538 # can be detected and how.
17539 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17540#line $LINENO "configure"
e6cc62c6
VS
17541/* confdefs.h. */
17542_ACEOF
17543cat confdefs.h >>conftest.$ac_ext
17544cat >>conftest.$ac_ext <<_ACEOF
17545/* end confdefs.h. */
17546#include <ac_nonexistent.h>
17547_ACEOF
17548if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17550 ac_status=$?
17551 grep -v '^ *+' conftest.er1 >conftest.err
17552 rm -f conftest.er1
17553 cat conftest.err >&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } >/dev/null; then
17556 if test -s conftest.err; then
17557 ac_cpp_err=$ac_cxx_preproc_warn_flag
17558 else
17559 ac_cpp_err=
17560 fi
17561else
17562 ac_cpp_err=yes
17563fi
17564if test -z "$ac_cpp_err"; then
17565 # Broken: success on invalid input.
17566continue
17567else
17568 echo "$as_me: failed program was:" >&5
17569sed 's/^/| /' conftest.$ac_ext >&5
17570
17571 # Passes both tests.
17572ac_preproc_ok=:
17573break
17574fi
17575rm -f conftest.err conftest.$ac_ext
17576
17577done
17578# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17579rm -f conftest.err conftest.$ac_ext
17580if $ac_preproc_ok; then
17581 break
17582fi
17583
17584 done
17585 ac_cv_prog_CXXCPP=$CXXCPP
17586
17587fi
17588 CXXCPP=$ac_cv_prog_CXXCPP
17589else
17590 ac_cv_prog_CXXCPP=$CXXCPP
17591fi
17592echo "$as_me:$LINENO: result: $CXXCPP" >&5
17593echo "${ECHO_T}$CXXCPP" >&6
17594ac_preproc_ok=false
17595for ac_cxx_preproc_warn_flag in '' yes
17596do
17597 # Use a header file that comes with gcc, so configuring glibc
17598 # with a fresh cross-compiler works.
17599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17600 # <limits.h> exists even on freestanding compilers.
17601 # On the NeXT, cc -E runs the code through the compiler's parser,
17602 # not just through cpp. "Syntax error" is here to catch this case.
17603 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17604#line $LINENO "configure"
e6cc62c6
VS
17605/* confdefs.h. */
17606_ACEOF
17607cat confdefs.h >>conftest.$ac_ext
17608cat >>conftest.$ac_ext <<_ACEOF
17609/* end confdefs.h. */
17610#ifdef __STDC__
17611# include <limits.h>
17612#else
17613# include <assert.h>
17614#endif
789c5f4a 17615 Syntax error
e6cc62c6
VS
17616_ACEOF
17617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17619 ac_status=$?
17620 grep -v '^ *+' conftest.er1 >conftest.err
17621 rm -f conftest.er1
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } >/dev/null; then
17625 if test -s conftest.err; then
17626 ac_cpp_err=$ac_cxx_preproc_warn_flag
17627 else
17628 ac_cpp_err=
17629 fi
17630else
17631 ac_cpp_err=yes
17632fi
17633if test -z "$ac_cpp_err"; then
21d1c967 17634 :
698dcdb6 17635else
e6cc62c6
VS
17636 echo "$as_me: failed program was:" >&5
17637sed 's/^/| /' conftest.$ac_ext >&5
17638
17639 # Broken: fails on valid input.
17640continue
17641fi
17642rm -f conftest.err conftest.$ac_ext
17643
17644 # OK, works on sane cases. Now check whether non-existent headers
17645 # can be detected and how.
17646 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17647#line $LINENO "configure"
e6cc62c6
VS
17648/* confdefs.h. */
17649_ACEOF
17650cat confdefs.h >>conftest.$ac_ext
17651cat >>conftest.$ac_ext <<_ACEOF
17652/* end confdefs.h. */
17653#include <ac_nonexistent.h>
17654_ACEOF
17655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17657 ac_status=$?
17658 grep -v '^ *+' conftest.er1 >conftest.err
17659 rm -f conftest.er1
17660 cat conftest.err >&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } >/dev/null; then
17663 if test -s conftest.err; then
17664 ac_cpp_err=$ac_cxx_preproc_warn_flag
17665 else
17666 ac_cpp_err=
17667 fi
17668else
17669 ac_cpp_err=yes
247f5006 17670fi
e6cc62c6
VS
17671if test -z "$ac_cpp_err"; then
17672 # Broken: success on invalid input.
17673continue
17674else
17675 echo "$as_me: failed program was:" >&5
17676sed 's/^/| /' conftest.$ac_ext >&5
17677
17678 # Passes both tests.
17679ac_preproc_ok=:
17680break
328a083c 17681fi
e6cc62c6
VS
17682rm -f conftest.err conftest.$ac_ext
17683
17684done
17685# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17686rm -f conftest.err conftest.$ac_ext
17687if $ac_preproc_ok; then
17688 :
17689else
17690 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17691See \`config.log' for more details." >&5
17692echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17693See \`config.log' for more details." >&2;}
17694 { (exit 1); exit 1; }; }
90dd450c 17695fi
e6cc62c6
VS
17696
17697ac_ext=cc
17698ac_cpp='$CXXCPP $CPPFLAGS'
17699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17702
1e6feb95 17703
1725144d 17704
21d1c967 17705 if test "$cross_compiling" = "yes"; then
e6cc62c6 17706 cat >>confdefs.h <<\_ACEOF
21d1c967 17707#define wxUSE_IOSTREAMH 1
e6cc62c6 17708_ACEOF
ab9b9eab 17709
21d1c967 17710 else
e6cc62c6
VS
17711
17712
17713 ac_ext=cc
5c6fa7d2 17714ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17718
52127426 17719
247f5006 17720
e6cc62c6 17721for ac_header in iostream
21d1c967 17722do
e6cc62c6
VS
17723as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17724if eval "test \"\${$as_ac_Header+set}\" = set"; then
17725 echo "$as_me:$LINENO: checking for $ac_header" >&5
17726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17727if eval "test \"\${$as_ac_Header+set}\" = set"; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17729fi
17730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17732else
17733 # Is the header compilable?
17734echo "$as_me:$LINENO: checking $ac_header usability" >&5
17735echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17736cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17737#line $LINENO "configure"
e6cc62c6
VS
17738/* confdefs.h. */
17739_ACEOF
17740cat confdefs.h >>conftest.$ac_ext
17741cat >>conftest.$ac_ext <<_ACEOF
17742/* end confdefs.h. */
17743$ac_includes_default
17744#include <$ac_header>
17745_ACEOF
17746rm -f conftest.$ac_objext
17747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17748 (eval $ac_compile) 2>&5
e6cc62c6
VS
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } &&
789c5f4a 17752 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 ac_header_compiler=yes
17759else
17760 echo "$as_me: failed program was:" >&5
17761sed 's/^/| /' conftest.$ac_ext >&5
17762
17763ac_header_compiler=no
17764fi
789c5f4a 17765rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17766echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17767echo "${ECHO_T}$ac_header_compiler" >&6
17768
17769# Is the header present?
17770echo "$as_me:$LINENO: checking $ac_header presence" >&5
17771echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17772cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17773#line $LINENO "configure"
e6cc62c6
VS
17774/* confdefs.h. */
17775_ACEOF
17776cat confdefs.h >>conftest.$ac_ext
17777cat >>conftest.$ac_ext <<_ACEOF
17778/* end confdefs.h. */
17779#include <$ac_header>
17780_ACEOF
17781if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17783 ac_status=$?
17784 grep -v '^ *+' conftest.er1 >conftest.err
17785 rm -f conftest.er1
17786 cat conftest.err >&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } >/dev/null; then
17789 if test -s conftest.err; then
17790 ac_cpp_err=$ac_cxx_preproc_warn_flag
17791 else
17792 ac_cpp_err=
17793 fi
17794else
17795 ac_cpp_err=yes
17796fi
17797if test -z "$ac_cpp_err"; then
17798 ac_header_preproc=yes
17799else
17800 echo "$as_me: failed program was:" >&5
17801sed 's/^/| /' conftest.$ac_ext >&5
17802
17803 ac_header_preproc=no
17804fi
17805rm -f conftest.err conftest.$ac_ext
17806echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17807echo "${ECHO_T}$ac_header_preproc" >&6
17808
17809# So? What about this header?
789c5f4a
VZ
17810case $ac_header_compiler:$ac_header_preproc in
17811 yes:no )
e6cc62c6
VS
17812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17813echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
17814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17816 (
17817 cat <<\_ASBOX
17818## ------------------------------------ ##
17819## Report this to bug-autoconf@gnu.org. ##
17820## ------------------------------------ ##
17821_ASBOX
17822 ) |
17823 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 17824 ;;
789c5f4a 17825 no:yes )
e6cc62c6
VS
17826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17827echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
17828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17829echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
17830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17831echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17832 (
17833 cat <<\_ASBOX
789c5f4a
VZ
17834## ------------------------------------ ##
17835## Report this to bug-autoconf@gnu.org. ##
17836## ------------------------------------ ##
e6cc62c6
VS
17837_ASBOX
17838 ) |
17839 sed "s/^/$as_me: WARNING: /" >&2
17840 ;;
17841esac
17842echo "$as_me:$LINENO: checking for $ac_header" >&5
17843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17844if eval "test \"\${$as_ac_Header+set}\" = set"; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17846else
789c5f4a 17847 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17848fi
e6cc62c6
VS
17849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17851
90dd450c 17852fi
e6cc62c6
VS
17853if test `eval echo '${'$as_ac_Header'}'` = yes; then
17854 cat >>confdefs.h <<_ACEOF
17855#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17856_ACEOF
17857
90dd450c 17858fi
e6cc62c6 17859
21d1c967 17860done
10f2d63a 17861
8284b0c5 17862
21d1c967
GD
17863 if test "$ac_cv_header_iostream" = "yes" ; then
17864 :
17865 else
e6cc62c6 17866 cat >>confdefs.h <<\_ACEOF
21d1c967 17867#define wxUSE_IOSTREAMH 1
e6cc62c6 17868_ACEOF
788deba1 17869
90dd450c 17870 fi
ab9b9eab 17871
21d1c967 17872 ac_ext=c
21d1c967 17873ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17876ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17877
21d1c967 17878 fi
ab9b9eab 17879
52127426 17880
8284b0c5 17881
e6cc62c6
VS
17882 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17883echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17884if test "${wx_cv_cpp_bool+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17886else
e6cc62c6
VS
17887
17888
17889
17890 ac_ext=cc
5c6fa7d2 17891ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17895
8284b0c5 17896
e6cc62c6 17897 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17898#line $LINENO "configure"
e6cc62c6
VS
17899/* confdefs.h. */
17900_ACEOF
17901cat confdefs.h >>conftest.$ac_ext
17902cat >>conftest.$ac_ext <<_ACEOF
17903/* end confdefs.h. */
21d1c967 17904
e6cc62c6
VS
17905
17906int
17907main ()
17908{
21d1c967
GD
17909
17910 bool b = true;
17911
17912 return 0;
e6cc62c6
VS
17913
17914 ;
17915 return 0;
17916}
17917_ACEOF
17918rm -f conftest.$ac_objext
17919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17920 (eval $ac_compile) 2>&5
e6cc62c6
VS
17921 ac_status=$?
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } &&
789c5f4a 17924 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17930
21d1c967 17931 wx_cv_cpp_bool=yes
e6cc62c6 17932
698dcdb6 17933else
e6cc62c6
VS
17934 echo "$as_me: failed program was:" >&5
17935sed 's/^/| /' conftest.$ac_ext >&5
17936
17937
21d1c967 17938 wx_cv_cpp_bool=no
e6cc62c6
VS
17939
17940
698dcdb6 17941fi
789c5f4a 17942rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17943
17944 ac_ext=c
21d1c967 17945ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17948ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17949
a0b9e27f 17950
e6cc62c6
VS
17951fi
17952echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17953echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17954
17955 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17956 cat >>confdefs.h <<\_ACEOF
21d1c967 17957#define HAVE_BOOL 1
e6cc62c6 17958_ACEOF
ab9b9eab 17959
21d1c967
GD
17960 fi
17961
52127426 17962
8284b0c5 17963
e6cc62c6
VS
17964 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17965echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17966if test "${wx_cv_explicit+set}" = set; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17968else
e6cc62c6
VS
17969
17970
17971
17972 ac_ext=cc
5c6fa7d2 17973ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 17977
8284b0c5 17978
e6cc62c6 17979 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17980#line $LINENO "configure"
e6cc62c6
VS
17981/* confdefs.h. */
17982_ACEOF
17983cat confdefs.h >>conftest.$ac_ext
17984cat >>conftest.$ac_ext <<_ACEOF
17985/* end confdefs.h. */
986ecc86
VZ
17986
17987 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
17988
17989int
17990main ()
17991{
986ecc86
VZ
17992
17993 return 0;
e6cc62c6
VS
17994
17995 ;
17996 return 0;
17997}
17998_ACEOF
17999rm -f conftest.$ac_objext
18000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18001 (eval $ac_compile) 2>&5
e6cc62c6
VS
18002 ac_status=$?
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } &&
789c5f4a 18005 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011
18012 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18013#line $LINENO "configure"
e6cc62c6
VS
18014/* confdefs.h. */
18015_ACEOF
18016cat confdefs.h >>conftest.$ac_ext
18017cat >>conftest.$ac_ext <<_ACEOF
18018/* end confdefs.h. */
986ecc86
VZ
18019
18020 class Foo { public: explicit Foo(int) {} };
18021 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
18022
18023int
18024main ()
18025{
986ecc86
VZ
18026
18027 TakeFoo(17);
18028 return 0;
e6cc62c6
VS
18029
18030 ;
18031 return 0;
18032}
18033_ACEOF
18034rm -f conftest.$ac_objext
18035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18036 (eval $ac_compile) 2>&5
e6cc62c6
VS
18037 ac_status=$?
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } &&
789c5f4a 18040 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18043 ac_status=$?
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; }; then
986ecc86
VZ
18046 wx_cv_explicit=no
18047else
e6cc62c6
VS
18048 echo "$as_me: failed program was:" >&5
18049sed 's/^/| /' conftest.$ac_ext >&5
18050
18051wx_cv_explicit=yes
18052
986ecc86 18053fi
789c5f4a 18054rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 18055
986ecc86 18056else
e6cc62c6
VS
18057 echo "$as_me: failed program was:" >&5
18058sed 's/^/| /' conftest.$ac_ext >&5
18059
18060wx_cv_explicit=no
18061
986ecc86 18062fi
789c5f4a 18063rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
18064
18065 ac_ext=c
986ecc86 18066ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18069ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18070
a0b9e27f 18071
e6cc62c6
VS
18072fi
18073echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18074echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
18075
18076 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 18077 cat >>confdefs.h <<\_ACEOF
986ecc86 18078#define HAVE_EXPLICIT 1
e6cc62c6 18079_ACEOF
986ecc86
VZ
18080
18081 fi
18082
8284b0c5 18083
e6cc62c6
VS
18084echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18085echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18086if test "${ac_cv_cxx_const_cast+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 18088else
521196a2 18089
521196a2 18090
e6cc62c6
VS
18091 ac_ext=cc
18092ac_cpp='$CXXCPP $CPPFLAGS'
18093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18096
18097 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18098#line $LINENO "configure"
e6cc62c6
VS
18099/* confdefs.h. */
18100_ACEOF
18101cat confdefs.h >>conftest.$ac_ext
18102cat >>conftest.$ac_ext <<_ACEOF
18103/* end confdefs.h. */
18104
18105int
18106main ()
18107{
521196a2 18108int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
18109 ;
18110 return 0;
18111}
18112_ACEOF
18113rm -f conftest.$ac_objext
18114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18115 (eval $ac_compile) 2>&5
e6cc62c6
VS
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
789c5f4a 18119 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
521196a2
MB
18125 ac_cv_cxx_const_cast=yes
18126else
e6cc62c6
VS
18127 echo "$as_me: failed program was:" >&5
18128sed 's/^/| /' conftest.$ac_ext >&5
18129
18130ac_cv_cxx_const_cast=no
521196a2 18131fi
789c5f4a 18132rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 18133 ac_ext=c
521196a2 18134ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18137ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
18138
18139
18140fi
e6cc62c6
VS
18141echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
18142echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 18143if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
18144
18145cat >>confdefs.h <<\_ACEOF
18146#define HAVE_CONST_CAST
18147_ACEOF
521196a2
MB
18148
18149fi
18150
ecfd48ca
VZ
18151echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
18152echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
18153if test "${ac_cv_cxx_static_cast+set}" = set; then
18154 echo $ECHO_N "(cached) $ECHO_C" >&6
18155else
18156
18157
18158 ac_ext=cc
18159ac_cpp='$CXXCPP $CPPFLAGS'
18160ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18161ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18162ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18163
18164 cat >conftest.$ac_ext <<_ACEOF
18165#line $LINENO "configure"
18166/* confdefs.h. */
18167_ACEOF
18168cat confdefs.h >>conftest.$ac_ext
18169cat >>conftest.$ac_ext <<_ACEOF
18170/* end confdefs.h. */
18171#include <typeinfo>
18172class Base { public : Base () {} virtual void f () = 0; };
18173class Derived : public Base { public : Derived () {} virtual void f () {} };
18174int g (Derived&) { return 0; }
18175int
18176main ()
18177{
18178
18179Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
18180 ;
18181 return 0;
18182}
18183_ACEOF
18184rm -f conftest.$ac_objext
18185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18186 (eval $ac_compile) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } &&
18190 { ac_try='test -s conftest.$ac_objext'
18191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192 (eval $ac_try) 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18196 ac_cv_cxx_static_cast=yes
18197else
18198 echo "$as_me: failed program was:" >&5
18199sed 's/^/| /' conftest.$ac_ext >&5
18200
18201ac_cv_cxx_static_cast=no
18202fi
18203rm -f conftest.$ac_objext conftest.$ac_ext
18204 ac_ext=c
18205ac_cpp='$CPP $CPPFLAGS'
18206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18208ac_compiler_gnu=$ac_cv_c_compiler_gnu
18209
18210
18211fi
18212echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
18213echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
18214if test "$ac_cv_cxx_static_cast" = yes; then
18215
18216cat >>confdefs.h <<\_ACEOF
18217#define HAVE_STATIC_CAST
18218_ACEOF
18219
18220fi
18221
521196a2 18222
e87b7833
MB
18223if test "$wxUSE_STL" = "yes"; then
18224 ac_ext=cc
18225ac_cpp='$CXXCPP $CPPFLAGS'
18226ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18227ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18228ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18229
18230
18231 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
18232echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
18233 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18234#line $LINENO "configure"
e87b7833
MB
18235/* confdefs.h. */
18236_ACEOF
18237cat confdefs.h >>conftest.$ac_ext
18238cat >>conftest.$ac_ext <<_ACEOF
18239/* end confdefs.h. */
18240#include <string>
18241 #include <functional>
18242 #include <algorithm>
18243 #include <vector>
18244 #include <list>
18245int
18246main ()
18247{
18248std::vector<int> moo;
18249 std::list<int> foo;
18250 std::vector<int>::iterator it =
18251 std::find_if(moo.begin(), moo.end(),
18252 std::bind2nd(std::less<int>(), 3));
18253 ;
18254 return 0;
18255}
18256_ACEOF
18257rm -f conftest.$ac_objext
18258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18259 (eval $ac_compile) 2>&5
e87b7833
MB
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } &&
789c5f4a 18263 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265 (eval $ac_try) 2>&5
18266 ac_status=$?
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; }; then
18269 echo "$as_me:$LINENO: result: yes" >&5
18270echo "${ECHO_T}yes" >&6
18271else
18272 echo "$as_me: failed program was:" >&5
18273sed 's/^/| /' conftest.$ac_ext >&5
18274
18275echo "$as_me:$LINENO: result: no" >&5
18276echo "${ECHO_T}no" >&6
18277 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
18278echo "$as_me: error: Basic STL functionality missing" >&2;}
18279 { (exit 1); exit 1; }; }
18280fi
789c5f4a 18281rm -f conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18282
18283 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
18284echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
18285 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18286#line $LINENO "configure"
e87b7833
MB
18287/* confdefs.h. */
18288_ACEOF
18289cat confdefs.h >>conftest.$ac_ext
18290cat >>conftest.$ac_ext <<_ACEOF
18291/* end confdefs.h. */
18292#include <string>
18293int
18294main ()
18295{
18296std::wstring foo;
18297 ;
18298 return 0;
18299}
18300_ACEOF
18301rm -f conftest.$ac_objext
18302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18303 (eval $ac_compile) 2>&5
e87b7833
MB
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } &&
789c5f4a 18307 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309 (eval $ac_try) 2>&5
18310 ac_status=$?
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
18313 echo "$as_me:$LINENO: result: yes" >&5
18314echo "${ECHO_T}yes" >&6
18315 cat >>confdefs.h <<\_ACEOF
18316#define HAVE_STD_WSTRING 1
18317_ACEOF
18318
18319else
18320 echo "$as_me: failed program was:" >&5
18321sed 's/^/| /' conftest.$ac_ext >&5
18322
18323echo "$as_me:$LINENO: result: no" >&5
18324echo "${ECHO_T}no" >&6
18325fi
789c5f4a 18326rm -f conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18327
18328 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
18329echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
18330 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18331#line $LINENO "configure"
e87b7833
MB
18332/* confdefs.h. */
18333_ACEOF
18334cat confdefs.h >>conftest.$ac_ext
18335cat >>conftest.$ac_ext <<_ACEOF
18336/* end confdefs.h. */
18337#include <string>
18338int
18339main ()
18340{
18341std::string foo, bar;
18342 foo.compare(bar);
18343 foo.compare(1, 1, bar);
18344 foo.compare(1, 1, bar, 1, 1);
18345 foo.compare("");
18346 foo.compare(1, 1, "");
18347 foo.compare(1, 1, "", 2);
18348 ;
18349 return 0;
18350}
18351_ACEOF
18352rm -f conftest.$ac_objext
18353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18354 (eval $ac_compile) 2>&5
e87b7833
MB
18355 ac_status=$?
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } &&
789c5f4a 18358 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18360 (eval $ac_try) 2>&5
18361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
18364 echo "$as_me:$LINENO: result: yes" >&5
18365echo "${ECHO_T}yes" >&6
18366 cat >>confdefs.h <<\_ACEOF
18367#define HAVE_STD_STRING_COMPARE 1
18368_ACEOF
18369
18370else
18371 echo "$as_me: failed program was:" >&5
18372sed 's/^/| /' conftest.$ac_ext >&5
18373
18374echo "$as_me:$LINENO: result: no" >&5
18375echo "${ECHO_T}no" >&6
18376fi
789c5f4a 18377rm -f conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18378
18379 ac_ext=c
18380ac_cpp='$CPP $CPPFLAGS'
18381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18383ac_compiler_gnu=$ac_cv_c_compiler_gnu
18384
18385fi
18386
8284b0c5 18387
21d1c967
GD
18388SEARCH_INCLUDE="\
18389 /usr/local/include \
18390 \
21d1c967 18391 /usr/Motif-2.1/include \
789c5f4a 18392 /usr/Motif-1.2/include \
21d1c967
GD
18393 /usr/include/Motif1.2 \
18394 /opt/xpm/include/X11 \
18395 /opt/GBxpm/include/ \
18396 /opt/GBxpm/X11/include/ \
18397 \
21d1c967
GD
18398 /usr/dt/include \
18399 /usr/openwin/include \
18400 \
18401 /usr/include/Xm \
18402 \
18403 /usr/X11R6/include \
18404 /usr/X11R6.4/include \
18405 /usr/X11R5/include \
18406 /usr/X11R4/include \
18407 \
18408 /usr/include/X11R6 \
18409 /usr/include/X11R5 \
18410 /usr/include/X11R4 \
18411 \
18412 /usr/local/X11R6/include \
18413 /usr/local/X11R5/include \
18414 /usr/local/X11R4/include \
18415 \
18416 /usr/local/include/X11R6 \
18417 /usr/local/include/X11R5 \
18418 /usr/local/include/X11R4 \
18419 \
18420 /usr/X11/include \
18421 /usr/include/X11 \
18422 /usr/local/X11/include \
18423 /usr/local/include/X11 \
18424 \
18425 /usr/X386/include \
18426 /usr/x386/include \
18427 /usr/XFree86/include/X11 \
18428 \
18429 X:/XFree86/include \
18430 X:/XFree86/include/X11 \
18431 \
18432 /usr/include/gtk \
18433 /usr/local/include/gtk \
18434 /usr/include/glib \
18435 /usr/local/include/glib \
18436 \
18437 /usr/include/qt \
18438 /usr/local/include/qt \
18439 \
18440 /usr/include/windows \
18441 /usr/include/wine \
18442 /usr/local/include/wine \
18443 \
18444 /usr/unsupported/include \
18445 /usr/athena/include \
18446 /usr/local/x11r5/include \
18447 /usr/lpp/Xamples/include \
18448 \
2b5f62a0 18449 /usr/openwin/share/include"
21d1c967 18450
b62e750d 18451SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
21d1c967 18452
8284b0c5 18453
e6cc62c6 18454cat >confcache <<\_ACEOF
21d1c967
GD
18455# This file is a shell script that caches the results of configure
18456# tests run on this system so they can be shared between configure
e6cc62c6
VS
18457# scripts and configure runs, see configure's option --config-cache.
18458# It is not useful on other systems. If it contains results you don't
18459# want to keep, you may remove or edit it.
21d1c967 18460#
e6cc62c6
VS
18461# config.status only pays attention to the cache file if you give it
18462# the --recheck option to rerun configure.
21d1c967 18463#
e6cc62c6
VS
18464# `ac_cv_env_foo' variables (set or unset) will be overridden when
18465# loading this file, other *unset* `ac_cv_foo' will be assigned the
18466# following values.
18467
18468_ACEOF
18469
21d1c967
GD
18470# The following way of writing the cache mishandles newlines in values,
18471# but we know of no workaround that is simple, portable, and efficient.
18472# So, don't put newlines in cache variables' values.
18473# Ultrix sh set writes to stderr and can't be redirected directly,
18474# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
18475{
18476 (set) 2>&1 |
18477 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18478 *ac_space=\ *)
18479 # `set' does not quote correctly, so add quotes (double-quote
18480 # substitution turns \\\\ into \\, and sed turns \\ into \).
18481 sed -n \
789c5f4a
VZ
18482 "s/'/'\\\\''/g;
18483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
18484 ;;
18485 *)
18486 # `set' quotes correctly as required by POSIX, so do not add quotes.
18487 sed -n \
789c5f4a 18488 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
18489 ;;
18490 esac;
18491} |
18492 sed '
18493 t clear
18494 : clear
18495 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18496 t end
18497 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18498 : end' >>confcache
18499if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 18500 if test -w $cache_file; then
e6cc62c6
VS
18501 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18502 cat confcache >$cache_file
21d1c967
GD
18503 else
18504 echo "not updating unwritable cache $cache_file"
18505 fi
ab9b9eab 18506fi
21d1c967 18507rm -f confcache
ab9b9eab 18508
fe0895cf 18509if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
18510 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18511echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18512if test "${wx_cv_lib_glibc21+set}" = set; then
18513 echo $ECHO_N "(cached) $ECHO_C" >&6
18514else
18515
18516 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18517#line $LINENO "configure"
e6cc62c6
VS
18518/* confdefs.h. */
18519_ACEOF
18520cat confdefs.h >>conftest.$ac_ext
18521cat >>conftest.$ac_ext <<_ACEOF
18522/* end confdefs.h. */
21d1c967 18523#include <features.h>
e6cc62c6
VS
18524int
18525main ()
18526{
ab9b9eab 18527
21d1c967
GD
18528 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18529 #error not glibc2.1
18530 #endif
e6cc62c6
VS
18531
18532 ;
18533 return 0;
18534}
18535_ACEOF
18536rm -f conftest.$ac_objext
18537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18538 (eval $ac_compile) 2>&5
e6cc62c6
VS
18539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
789c5f4a 18542 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18545 ac_status=$?
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; }; then
18548
21d1c967 18549 wx_cv_lib_glibc21=yes
e6cc62c6 18550
698dcdb6 18551else
e6cc62c6
VS
18552 echo "$as_me: failed program was:" >&5
18553sed 's/^/| /' conftest.$ac_ext >&5
18554
18555
21d1c967 18556 wx_cv_lib_glibc21=no
e6cc62c6
VS
18557
18558
247f5006 18559fi
789c5f4a 18560rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18561
e6cc62c6
VS
18562fi
18563echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18564echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 18565 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 18566 cat >>confdefs.h <<\_ACEOF
21d1c967 18567#define wxHAVE_GLIBC2 1
e6cc62c6 18568_ACEOF
1e487827 18569
90dd450c 18570 fi
ab9b9eab
VZ
18571fi
18572
5c0a20c3
VZ
18573if test "x$wx_cv_lib_glibc21" = "xyes"; then
18574 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 18575 cat >>confdefs.h <<\_ACEOF
5c0a20c3 18576#define _GNU_SOURCE 1
e6cc62c6 18577_ACEOF
5c0a20c3
VZ
18578
18579 fi
18580fi
18581
8284b0c5
MB
18582
18583
21d1c967 18584if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 18585 cat >>confdefs.h <<\_ACEOF
21d1c967 18586#define wxUSE_REGEX 1
e6cc62c6 18587_ACEOF
698dcdb6 18588
8284b0c5 18589
30f2fa6c
VS
18590 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
18591 { echo "$as_me:$LINENO: WARNING: Unicode build requires built-in regex library, will use it instead" >&5
18592echo "$as_me: WARNING: Unicode build requires built-in regex library, will use it instead" >&2;}
18593 wxUSE_REGEX=builtin
18594 fi
18595
21d1c967 18596 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
18597 if test "${ac_cv_header_regex_h+set}" = set; then
18598 echo "$as_me:$LINENO: checking for regex.h" >&5
18599echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18600if test "${ac_cv_header_regex_h+set}" = set; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18602fi
18603echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18604echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18605else
18606 # Is the header compilable?
18607echo "$as_me:$LINENO: checking regex.h usability" >&5
18608echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18609cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18610#line $LINENO "configure"
e6cc62c6
VS
18611/* confdefs.h. */
18612_ACEOF
18613cat confdefs.h >>conftest.$ac_ext
18614cat >>conftest.$ac_ext <<_ACEOF
18615/* end confdefs.h. */
18616$ac_includes_default
247f5006 18617#include <regex.h>
e6cc62c6
VS
18618_ACEOF
18619rm -f conftest.$ac_objext
18620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18621 (eval $ac_compile) 2>&5
e6cc62c6
VS
18622 ac_status=$?
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } &&
789c5f4a 18625 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_header_compiler=yes
18632else
18633 echo "$as_me: failed program was:" >&5
18634sed 's/^/| /' conftest.$ac_ext >&5
18635
18636ac_header_compiler=no
18637fi
789c5f4a 18638rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18639echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18640echo "${ECHO_T}$ac_header_compiler" >&6
18641
18642# Is the header present?
18643echo "$as_me:$LINENO: checking regex.h presence" >&5
18644echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18645cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18646#line $LINENO "configure"
e6cc62c6
VS
18647/* confdefs.h. */
18648_ACEOF
18649cat confdefs.h >>conftest.$ac_ext
18650cat >>conftest.$ac_ext <<_ACEOF
18651/* end confdefs.h. */
18652#include <regex.h>
18653_ACEOF
18654if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18656 ac_status=$?
18657 grep -v '^ *+' conftest.er1 >conftest.err
18658 rm -f conftest.er1
18659 cat conftest.err >&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } >/dev/null; then
18662 if test -s conftest.err; then
18663 ac_cpp_err=$ac_c_preproc_warn_flag
18664 else
18665 ac_cpp_err=
18666 fi
18667else
18668 ac_cpp_err=yes
18669fi
18670if test -z "$ac_cpp_err"; then
18671 ac_header_preproc=yes
18672else
18673 echo "$as_me: failed program was:" >&5
18674sed 's/^/| /' conftest.$ac_ext >&5
18675
18676 ac_header_preproc=no
18677fi
18678rm -f conftest.err conftest.$ac_ext
18679echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18680echo "${ECHO_T}$ac_header_preproc" >&6
18681
18682# So? What about this header?
789c5f4a
VZ
18683case $ac_header_compiler:$ac_header_preproc in
18684 yes:no )
e6cc62c6
VS
18685 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18686echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
18687 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18688echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18689 (
18690 cat <<\_ASBOX
18691## ------------------------------------ ##
18692## Report this to bug-autoconf@gnu.org. ##
18693## ------------------------------------ ##
18694_ASBOX
18695 ) |
18696 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 18697 ;;
789c5f4a 18698 no:yes )
e6cc62c6
VS
18699 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18700echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
18701 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18702echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
18703 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18704echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18705 (
18706 cat <<\_ASBOX
789c5f4a
VZ
18707## ------------------------------------ ##
18708## Report this to bug-autoconf@gnu.org. ##
18709## ------------------------------------ ##
e6cc62c6
VS
18710_ASBOX
18711 ) |
18712 sed "s/^/$as_me: WARNING: /" >&2
18713 ;;
18714esac
18715echo "$as_me:$LINENO: checking for regex.h" >&5
18716echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18717if test "${ac_cv_header_regex_h+set}" = set; then
18718 echo $ECHO_N "(cached) $ECHO_C" >&6
18719else
18720 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 18721fi
e6cc62c6
VS
18722echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18723echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18724
698dcdb6 18725fi
e6cc62c6
VS
18726if test $ac_cv_header_regex_h = yes; then
18727
18728for ac_func in regcomp
21d1c967 18729do
e6cc62c6
VS
18730as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18731echo "$as_me:$LINENO: checking for $ac_func" >&5
18732echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18733if eval "test \"\${$as_ac_var+set}\" = set"; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18735else
18736 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18737#line $LINENO "configure"
e6cc62c6
VS
18738/* confdefs.h. */
18739_ACEOF
18740cat confdefs.h >>conftest.$ac_ext
18741cat >>conftest.$ac_ext <<_ACEOF
18742/* end confdefs.h. */
a0b9e27f 18743/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18744 which can conflict with char $ac_func (); below.
18745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18746 <limits.h> exists even on freestanding compilers. */
18747#ifdef __STDC__
18748# include <limits.h>
18749#else
18750# include <assert.h>
18751#endif
21d1c967 18752/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18753#ifdef __cplusplus
18754extern "C"
18755{
18756#endif
21d1c967 18757/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18758 builtin and then its argument prototype would still apply. */
18759char $ac_func ();
21d1c967
GD
18760/* The GNU C library defines this for functions which it implements
18761 to always fail with ENOSYS. Some functions are actually named
18762 something starting with __ and the normal name is an alias. */
18763#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18764choke me
18765#else
e6cc62c6
VS
18766char (*f) () = $ac_func;
18767#endif
18768#ifdef __cplusplus
18769}
21d1c967 18770#endif
90dd450c 18771
e6cc62c6
VS
18772int
18773main ()
18774{
18775return f != $ac_func;
18776 ;
18777 return 0;
18778}
18779_ACEOF
18780rm -f conftest.$ac_objext conftest$ac_exeext
18781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 18782 (eval $ac_link) 2>&5
e6cc62c6
VS
18783 ac_status=$?
18784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785 (exit $ac_status); } &&
789c5f4a 18786 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
18787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18788 (eval $ac_try) 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; }; then
18792 eval "$as_ac_var=yes"
18793else
18794 echo "$as_me: failed program was:" >&5
18795sed 's/^/| /' conftest.$ac_ext >&5
18796
18797eval "$as_ac_var=no"
18798fi
789c5f4a 18799rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
18800fi
18801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18802echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18803if test `eval echo '${'$as_ac_var'}'` = yes; then
18804 cat >>confdefs.h <<_ACEOF
18805#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18806_ACEOF
5c6fa7d2 18807
698dcdb6 18808fi
21d1c967
GD
18809done
18810
ab9b9eab
VZ
18811fi
18812
8284b0c5 18813
e6cc62c6 18814
21d1c967
GD
18815 if test "x$ac_cv_func_regcomp" != "xyes"; then
18816 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18817 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18818echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18819 { (exit 1); exit 1; }; }
21d1c967 18820 else
e6cc62c6
VS
18821 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18822echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18823 wxUSE_REGEX=builtin
18824 fi
18825 else
18826 wxUSE_REGEX=sys
18827 fi
ab9b9eab 18828 fi
21d1c967 18829fi
90dd450c 18830
8284b0c5 18831
21d1c967
GD
18832ZLIB_LINK=
18833if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18834 cat >>confdefs.h <<\_ACEOF
21d1c967 18835#define wxUSE_ZLIB 1
e6cc62c6 18836_ACEOF
21d1c967 18837
8284b0c5 18838
21d1c967 18839 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18840 if test "$USE_DARWIN" = 1; then
18841 system_zlib_h_ok="yes"
18842 else
e6cc62c6
VS
18843 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18844echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18845if test "${ac_cv_header_zlib_h+set}" = set; then
18846 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18847else
18848 if test "$cross_compiling" = yes; then
89e6bf6d 18849 unset ac_cv_header_zlib_h
e6cc62c6 18850
d643b80e 18851else
e6cc62c6 18852 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18853#line $LINENO "configure"
e6cc62c6
VS
18854/* confdefs.h. */
18855_ACEOF
18856cat confdefs.h >>conftest.$ac_ext
18857cat >>conftest.$ac_ext <<_ACEOF
18858/* end confdefs.h. */
18859
ef33c576 18860 #include <zlib.h>
d775acfa 18861 #include <stdio.h>
d643b80e 18862
d775acfa
VZ
18863 int main()
18864 {
18865 FILE *f=fopen("conftestval", "w");
18866 if (!f) exit(1);
18867 fprintf(f, "%s",
18868 ZLIB_VERSION[0] == '1' &&
18869 (ZLIB_VERSION[2] > '1' ||
18870 (ZLIB_VERSION[2] == '1' &&
18871 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18872 exit(0);
18873 }
e6cc62c6
VS
18874
18875_ACEOF
18876rm -f conftest$ac_exeext
18877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18878 (eval $ac_link) 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; }; then
d643b80e
VZ
18887 ac_cv_header_zlib_h=`cat conftestval`
18888else
e6cc62c6
VS
18889 echo "$as_me: program exited with status $ac_status" >&5
18890echo "$as_me: failed program was:" >&5
18891sed 's/^/| /' conftest.$ac_ext >&5
18892
18893( exit $ac_status )
18894ac_cv_header_zlib_h=no
d643b80e 18895fi
789c5f4a 18896rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18897fi
18898
d643b80e 18899fi
e6cc62c6
VS
18900echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18901echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18902 if test "${ac_cv_header_zlib_h+set}" = set; then
18903 echo "$as_me:$LINENO: checking for zlib.h" >&5
18904echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18905if test "${ac_cv_header_zlib_h+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18907fi
18908echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18909echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18910else
e6cc62c6
VS
18911 # Is the header compilable?
18912echo "$as_me:$LINENO: checking zlib.h usability" >&5
18913echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18914cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18915#line $LINENO "configure"
e6cc62c6
VS
18916/* confdefs.h. */
18917_ACEOF
18918cat confdefs.h >>conftest.$ac_ext
18919cat >>conftest.$ac_ext <<_ACEOF
18920/* end confdefs.h. */
18921$ac_includes_default
89e6bf6d 18922#include <zlib.h>
e6cc62c6
VS
18923_ACEOF
18924rm -f conftest.$ac_objext
18925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18926 (eval $ac_compile) 2>&5
e6cc62c6
VS
18927 ac_status=$?
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); } &&
789c5f4a 18930 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18933 ac_status=$?
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ac_header_compiler=yes
18937else
18938 echo "$as_me: failed program was:" >&5
18939sed 's/^/| /' conftest.$ac_ext >&5
18940
18941ac_header_compiler=no
18942fi
789c5f4a 18943rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18944echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18945echo "${ECHO_T}$ac_header_compiler" >&6
18946
18947# Is the header present?
18948echo "$as_me:$LINENO: checking zlib.h presence" >&5
18949echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18950cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18951#line $LINENO "configure"
e6cc62c6
VS
18952/* confdefs.h. */
18953_ACEOF
18954cat confdefs.h >>conftest.$ac_ext
18955cat >>conftest.$ac_ext <<_ACEOF
18956/* end confdefs.h. */
18957#include <zlib.h>
18958_ACEOF
18959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18961 ac_status=$?
18962 grep -v '^ *+' conftest.er1 >conftest.err
18963 rm -f conftest.er1
18964 cat conftest.err >&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } >/dev/null; then
18967 if test -s conftest.err; then
18968 ac_cpp_err=$ac_c_preproc_warn_flag
18969 else
18970 ac_cpp_err=
18971 fi
18972else
18973 ac_cpp_err=yes
18974fi
18975if test -z "$ac_cpp_err"; then
18976 ac_header_preproc=yes
18977else
18978 echo "$as_me: failed program was:" >&5
18979sed 's/^/| /' conftest.$ac_ext >&5
18980
18981 ac_header_preproc=no
18982fi
18983rm -f conftest.err conftest.$ac_ext
18984echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18985echo "${ECHO_T}$ac_header_preproc" >&6
18986
18987# So? What about this header?
789c5f4a
VZ
18988case $ac_header_compiler:$ac_header_preproc in
18989 yes:no )
e6cc62c6
VS
18990 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18991echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
18992 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18993echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18994 (
18995 cat <<\_ASBOX
18996## ------------------------------------ ##
18997## Report this to bug-autoconf@gnu.org. ##
18998## ------------------------------------ ##
18999_ASBOX
19000 ) |
19001 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 19002 ;;
789c5f4a 19003 no:yes )
e6cc62c6
VS
19004 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19005echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
19006 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19007echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
19008 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19009echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19010 (
19011 cat <<\_ASBOX
789c5f4a
VZ
19012## ------------------------------------ ##
19013## Report this to bug-autoconf@gnu.org. ##
19014## ------------------------------------ ##
e6cc62c6
VS
19015_ASBOX
19016 ) |
19017 sed "s/^/$as_me: WARNING: /" >&2
19018 ;;
19019esac
19020echo "$as_me:$LINENO: checking for zlib.h" >&5
19021echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19022if test "${ac_cv_header_zlib_h+set}" = set; then
19023 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19024else
e6cc62c6
VS
19025 ac_cv_header_zlib_h=$ac_header_preproc
19026fi
19027echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19028echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19029
89e6bf6d
VZ
19030fi
19031
d643b80e 19032
e6cc62c6 19033
d775acfa
VZ
19034 system_zlib_h_ok=$ac_cv_header_zlib_h
19035 fi
19036
19037 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
19038 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19039echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19040if test "${ac_cv_lib_z_deflate+set}" = set; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19042else
e6cc62c6 19043 ac_check_lib_save_LIBS=$LIBS
21d1c967 19044LIBS="-lz $LIBS"
e6cc62c6 19045cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19046#line $LINENO "configure"
e6cc62c6
VS
19047/* confdefs.h. */
19048_ACEOF
19049cat confdefs.h >>conftest.$ac_ext
19050cat >>conftest.$ac_ext <<_ACEOF
19051/* end confdefs.h. */
19052
21d1c967 19053/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19054#ifdef __cplusplus
19055extern "C"
19056#endif
21d1c967 19057/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19058 builtin and then its argument prototype would still apply. */
19059char deflate ();
19060int
19061main ()
19062{
19063deflate ();
19064 ;
19065 return 0;
19066}
19067_ACEOF
19068rm -f conftest.$ac_objext conftest$ac_exeext
19069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 19070 (eval $ac_link) 2>&5
e6cc62c6
VS
19071 ac_status=$?
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } &&
789c5f4a 19074 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19076 (eval $ac_try) 2>&5
19077 ac_status=$?
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; }; then
19080 ac_cv_lib_z_deflate=yes
19081else
19082 echo "$as_me: failed program was:" >&5
19083sed 's/^/| /' conftest.$ac_ext >&5
19084
19085ac_cv_lib_z_deflate=no
19086fi
789c5f4a 19087rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19088LIBS=$ac_check_lib_save_LIBS
19089fi
19090echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19091echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19092if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 19093 ZLIB_LINK=" -lz"
a0b9e27f 19094fi
698dcdb6 19095
d643b80e 19096 fi
247f5006 19097
21d1c967
GD
19098 if test "x$ZLIB_LINK" = "x" ; then
19099 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
19100 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
19101echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
19102 { (exit 1); exit 1; }; }
21d1c967 19103 else
e6cc62c6
VS
19104 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
19105echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
19106 wxUSE_ZLIB=builtin
19107 fi
19108 else
19109 wxUSE_ZLIB=sys
19110 fi
19111 fi
ab9b9eab
VZ
19112fi
19113
8284b0c5 19114
21d1c967
GD
19115PNG_LINK=
19116if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 19117 cat >>confdefs.h <<\_ACEOF
21d1c967 19118#define wxUSE_LIBPNG 1
e6cc62c6 19119_ACEOF
90dd450c 19120
8284b0c5 19121
21d1c967 19122 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
19123 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
19124echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
19125 wxUSE_LIBPNG=sys
19126 fi
90dd450c 19127
21d1c967 19128 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
19129 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
19130echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
19131 wxUSE_LIBPNG=builtin
19132 fi
19133
19134 if test "$wxUSE_MGL" != 1 ; then
19135 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
19136 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
19137echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
19138if test "${ac_cv_header_png_h+set}" = set; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
19140else
19141 if test "$cross_compiling" = yes; then
89e6bf6d 19142 unset ac_cv_header_png_h
e6cc62c6 19143
5d3f766d 19144else
e6cc62c6 19145 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19146#line $LINENO "configure"
e6cc62c6
VS
19147/* confdefs.h. */
19148_ACEOF
19149cat confdefs.h >>conftest.$ac_ext
19150cat >>conftest.$ac_ext <<_ACEOF
19151/* end confdefs.h. */
19152
ef33c576 19153 #include <png.h>
5d3f766d
VZ
19154 #include <stdio.h>
19155
19156 int main()
19157 {
19158 FILE *f=fopen("conftestval", "w");
19159 if (!f) exit(1);
19160 fprintf(f, "%s",
19161 PNG_LIBPNG_VER > 90 ? "yes" : "no");
19162 exit(0);
19163 }
e6cc62c6
VS
19164
19165_ACEOF
19166rm -f conftest$ac_exeext
19167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19168 (eval $ac_link) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173 (eval $ac_try) 2>&5
19174 ac_status=$?
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; }; then
5d3f766d
VZ
19177 ac_cv_header_png_h=`cat conftestval`
19178else
e6cc62c6
VS
19179 echo "$as_me: program exited with status $ac_status" >&5
19180echo "$as_me: failed program was:" >&5
19181sed 's/^/| /' conftest.$ac_ext >&5
19182
19183( exit $ac_status )
19184ac_cv_header_png_h=no
5d3f766d 19185fi
789c5f4a 19186rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
19187fi
19188
5d3f766d 19189fi
e6cc62c6
VS
19190echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19191echo "${ECHO_T}$ac_cv_header_png_h" >&6
19192 if test "${ac_cv_header_png_h+set}" = set; then
19193 echo "$as_me:$LINENO: checking for png.h" >&5
19194echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19195if test "${ac_cv_header_png_h+set}" = set; then
19196 echo $ECHO_N "(cached) $ECHO_C" >&6
19197fi
19198echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19199echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 19200else
e6cc62c6
VS
19201 # Is the header compilable?
19202echo "$as_me:$LINENO: checking png.h usability" >&5
19203echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19204cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19205#line $LINENO "configure"
e6cc62c6
VS
19206/* confdefs.h. */
19207_ACEOF
19208cat confdefs.h >>conftest.$ac_ext
19209cat >>conftest.$ac_ext <<_ACEOF
19210/* end confdefs.h. */
19211$ac_includes_default
89e6bf6d 19212#include <png.h>
e6cc62c6
VS
19213_ACEOF
19214rm -f conftest.$ac_objext
19215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 19216 (eval $ac_compile) 2>&5
e6cc62c6
VS
19217 ac_status=$?
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); } &&
789c5f4a 19220 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
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 ac_header_compiler=yes
19227else
19228 echo "$as_me: failed program was:" >&5
19229sed 's/^/| /' conftest.$ac_ext >&5
19230
19231ac_header_compiler=no
19232fi
789c5f4a 19233rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19234echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19235echo "${ECHO_T}$ac_header_compiler" >&6
19236
19237# Is the header present?
19238echo "$as_me:$LINENO: checking png.h presence" >&5
19239echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19240cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19241#line $LINENO "configure"
e6cc62c6
VS
19242/* confdefs.h. */
19243_ACEOF
19244cat confdefs.h >>conftest.$ac_ext
19245cat >>conftest.$ac_ext <<_ACEOF
19246/* end confdefs.h. */
19247#include <png.h>
19248_ACEOF
19249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19251 ac_status=$?
19252 grep -v '^ *+' conftest.er1 >conftest.err
19253 rm -f conftest.er1
19254 cat conftest.err >&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } >/dev/null; then
19257 if test -s conftest.err; then
19258 ac_cpp_err=$ac_c_preproc_warn_flag
19259 else
19260 ac_cpp_err=
19261 fi
19262else
19263 ac_cpp_err=yes
19264fi
19265if test -z "$ac_cpp_err"; then
19266 ac_header_preproc=yes
19267else
19268 echo "$as_me: failed program was:" >&5
19269sed 's/^/| /' conftest.$ac_ext >&5
19270
19271 ac_header_preproc=no
19272fi
19273rm -f conftest.err conftest.$ac_ext
19274echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19275echo "${ECHO_T}$ac_header_preproc" >&6
19276
19277# So? What about this header?
789c5f4a
VZ
19278case $ac_header_compiler:$ac_header_preproc in
19279 yes:no )
e6cc62c6
VS
19280 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19281echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
19282 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19283echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19284 (
19285 cat <<\_ASBOX
19286## ------------------------------------ ##
19287## Report this to bug-autoconf@gnu.org. ##
19288## ------------------------------------ ##
19289_ASBOX
19290 ) |
19291 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 19292 ;;
789c5f4a 19293 no:yes )
e6cc62c6
VS
19294 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19295echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
19296 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19297echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
19298 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19299echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19300 (
19301 cat <<\_ASBOX
789c5f4a
VZ
19302## ------------------------------------ ##
19303## Report this to bug-autoconf@gnu.org. ##
19304## ------------------------------------ ##
e6cc62c6
VS
19305_ASBOX
19306 ) |
19307 sed "s/^/$as_me: WARNING: /" >&2
19308 ;;
19309esac
19310echo "$as_me:$LINENO: checking for png.h" >&5
19311echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19312if test "${ac_cv_header_png_h+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19314else
e6cc62c6
VS
19315 ac_cv_header_png_h=$ac_header_preproc
19316fi
19317echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19318echo "${ECHO_T}$ac_cv_header_png_h" >&6
19319
89e6bf6d
VZ
19320fi
19321
5d3f766d 19322
e6cc62c6 19323
5d3f766d 19324 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
19325 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
19326echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
19327if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
19328 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19329else
e6cc62c6 19330 ac_check_lib_save_LIBS=$LIBS
21d1c967 19331LIBS="-lpng -lz -lm $LIBS"
e6cc62c6 19332cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19333#line $LINENO "configure"
e6cc62c6
VS
19334/* confdefs.h. */
19335_ACEOF
19336cat confdefs.h >>conftest.$ac_ext
19337cat >>conftest.$ac_ext <<_ACEOF
19338/* end confdefs.h. */
19339
21d1c967 19340/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19341#ifdef __cplusplus
19342extern "C"
19343#endif
21d1c967 19344/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19345 builtin and then its argument prototype would still apply. */
19346char png_check_sig ();
19347int
19348main ()
19349{
19350png_check_sig ();
19351 ;
19352 return 0;
19353}
19354_ACEOF
19355rm -f conftest.$ac_objext conftest$ac_exeext
19356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 19357 (eval $ac_link) 2>&5
e6cc62c6
VS
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
789c5f4a 19361 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 ac_cv_lib_png_png_check_sig=yes
19368else
19369 echo "$as_me: failed program was:" >&5
19370sed 's/^/| /' conftest.$ac_ext >&5
19371
19372ac_cv_lib_png_png_check_sig=no
19373fi
789c5f4a 19374rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19375LIBS=$ac_check_lib_save_LIBS
19376fi
19377echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
19378echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
19379if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 19380 PNG_LINK=" -lpng"
a0b9e27f 19381fi
90dd450c 19382
5d3f766d 19383 fi
247f5006 19384
21d1c967
GD
19385 if test "x$PNG_LINK" = "x" ; then
19386 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
19387 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
19388echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
19389 { (exit 1); exit 1; }; }
21d1c967 19390 else
e6cc62c6
VS
19391 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
19392echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
19393 wxUSE_LIBPNG=builtin
19394 fi
19395 else
2b5f62a0 19396 wxUSE_LIBPNG=sys
21d1c967
GD
19397 fi
19398 fi
19399 fi
90dd450c 19400
21d1c967 19401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
19402fi
19403
8284b0c5 19404
21d1c967
GD
19405JPEG_LINK=
19406if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 19407 cat >>confdefs.h <<\_ACEOF
21d1c967 19408#define wxUSE_LIBJPEG 1
e6cc62c6 19409_ACEOF
90dd450c 19410
8284b0c5 19411
21d1c967 19412 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
19413 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
19414echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
19415 wxUSE_LIBJPEG=sys
19416 fi
90dd450c 19417
21d1c967
GD
19418 if test "$wxUSE_MGL" != 1 ; then
19419 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
19420 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19421echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
19422 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19424else
19425 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19426#line $LINENO "configure"
e6cc62c6
VS
19427/* confdefs.h. */
19428_ACEOF
19429cat confdefs.h >>conftest.$ac_ext
19430cat >>conftest.$ac_ext <<_ACEOF
19431/* end confdefs.h. */
90dd450c 19432
21d1c967
GD
19433 #undef HAVE_STDLIB_H
19434 #include <stdio.h>
19435 #include <jpeglib.h>
90dd450c 19436
e6cc62c6
VS
19437int
19438main ()
19439{
19440
19441
19442 ;
19443 return 0;
19444}
19445_ACEOF
19446rm -f conftest.$ac_objext
19447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 19448 (eval $ac_compile) 2>&5
e6cc62c6
VS
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); } &&
789c5f4a 19452 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
21d1c967 19458 ac_cv_header_jpeglib_h=yes
90dd450c 19459else
e6cc62c6
VS
19460 echo "$as_me: failed program was:" >&5
19461sed 's/^/| /' conftest.$ac_ext >&5
19462
19463ac_cv_header_jpeglib_h=no
19464
90dd450c 19465fi
789c5f4a 19466rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 19467
90dd450c
VZ
19468fi
19469
e6cc62c6
VS
19470 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19471echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 19472
21d1c967 19473 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
19474 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
19475echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
19476if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
19477 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19478else
e6cc62c6 19479 ac_check_lib_save_LIBS=$LIBS
21d1c967 19480LIBS="-ljpeg $LIBS"
e6cc62c6 19481cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19482#line $LINENO "configure"
e6cc62c6
VS
19483/* confdefs.h. */
19484_ACEOF
19485cat confdefs.h >>conftest.$ac_ext
19486cat >>conftest.$ac_ext <<_ACEOF
19487/* end confdefs.h. */
19488
21d1c967 19489/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19490#ifdef __cplusplus
19491extern "C"
19492#endif
21d1c967 19493/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19494 builtin and then its argument prototype would still apply. */
19495char jpeg_read_header ();
19496int
19497main ()
19498{
19499jpeg_read_header ();
19500 ;
19501 return 0;
19502}
19503_ACEOF
19504rm -f conftest.$ac_objext conftest$ac_exeext
19505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 19506 (eval $ac_link) 2>&5
e6cc62c6
VS
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } &&
789c5f4a 19510 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
19516 ac_cv_lib_jpeg_jpeg_read_header=yes
19517else
19518 echo "$as_me: failed program was:" >&5
19519sed 's/^/| /' conftest.$ac_ext >&5
19520
19521ac_cv_lib_jpeg_jpeg_read_header=no
19522fi
789c5f4a 19523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19524LIBS=$ac_check_lib_save_LIBS
19525fi
19526echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19527echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19528if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 19529 JPEG_LINK=" -ljpeg"
90dd450c
VZ
19530fi
19531
21d1c967 19532 fi
90dd450c 19533
21d1c967
GD
19534 if test "x$JPEG_LINK" = "x" ; then
19535 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
19536 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19537echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19538 { (exit 1); exit 1; }; }
21d1c967 19539 else
e6cc62c6
VS
19540 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19541echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
19542 wxUSE_LIBJPEG=builtin
19543 fi
19544 else
19545 wxUSE_LIBJPEG=sys
19546 fi
19547 fi
19548 fi
21d1c967 19549fi
90dd450c 19550
8284b0c5 19551
21d1c967 19552TIFF_LINK=
2b5f62a0 19553TIFF_PREREQ_LINKS=-lm
21d1c967 19554if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 19555 cat >>confdefs.h <<\_ACEOF
21d1c967 19556#define wxUSE_LIBTIFF 1
e6cc62c6 19557_ACEOF
21d1c967 19558
8284b0c5 19559
21d1c967 19560 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
19561 if test "$wxUSE_LIBJPEG" = "sys"; then
19562 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19563 fi
19564 if test "$wxUSE_ZLIB" = "sys"; then
19565 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19566 fi
e6cc62c6
VS
19567 if test "${ac_cv_header_tiffio_h+set}" = set; then
19568 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19569echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19570if test "${ac_cv_header_tiffio_h+set}" = set; then
19571 echo $ECHO_N "(cached) $ECHO_C" >&6
19572fi
19573echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19574echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19575else
19576 # Is the header compilable?
19577echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19578echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19579cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19580#line $LINENO "configure"
e6cc62c6
VS
19581/* confdefs.h. */
19582_ACEOF
19583cat confdefs.h >>conftest.$ac_ext
19584cat >>conftest.$ac_ext <<_ACEOF
19585/* end confdefs.h. */
19586$ac_includes_default
247f5006 19587#include <tiffio.h>
e6cc62c6
VS
19588_ACEOF
19589rm -f conftest.$ac_objext
19590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 19591 (eval $ac_compile) 2>&5
e6cc62c6
VS
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } &&
789c5f4a 19595 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597 (eval $ac_try) 2>&5
19598 ac_status=$?
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; }; then
19601 ac_header_compiler=yes
19602else
19603 echo "$as_me: failed program was:" >&5
19604sed 's/^/| /' conftest.$ac_ext >&5
19605
19606ac_header_compiler=no
19607fi
789c5f4a 19608rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19609echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19610echo "${ECHO_T}$ac_header_compiler" >&6
19611
19612# Is the header present?
19613echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19614echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19615cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19616#line $LINENO "configure"
e6cc62c6
VS
19617/* confdefs.h. */
19618_ACEOF
19619cat confdefs.h >>conftest.$ac_ext
19620cat >>conftest.$ac_ext <<_ACEOF
19621/* end confdefs.h. */
19622#include <tiffio.h>
19623_ACEOF
19624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19626 ac_status=$?
19627 grep -v '^ *+' conftest.er1 >conftest.err
19628 rm -f conftest.er1
19629 cat conftest.err >&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } >/dev/null; then
19632 if test -s conftest.err; then
19633 ac_cpp_err=$ac_c_preproc_warn_flag
19634 else
19635 ac_cpp_err=
19636 fi
19637else
19638 ac_cpp_err=yes
19639fi
19640if test -z "$ac_cpp_err"; then
19641 ac_header_preproc=yes
19642else
19643 echo "$as_me: failed program was:" >&5
19644sed 's/^/| /' conftest.$ac_ext >&5
19645
19646 ac_header_preproc=no
19647fi
19648rm -f conftest.err conftest.$ac_ext
19649echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19650echo "${ECHO_T}$ac_header_preproc" >&6
19651
19652# So? What about this header?
789c5f4a
VZ
19653case $ac_header_compiler:$ac_header_preproc in
19654 yes:no )
e6cc62c6
VS
19655 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19656echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
19657 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19658echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19659 (
19660 cat <<\_ASBOX
19661## ------------------------------------ ##
19662## Report this to bug-autoconf@gnu.org. ##
19663## ------------------------------------ ##
19664_ASBOX
19665 ) |
19666 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 19667 ;;
789c5f4a 19668 no:yes )
e6cc62c6
VS
19669 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19670echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
19671 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19672echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
19673 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19674echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19675 (
19676 cat <<\_ASBOX
789c5f4a
VZ
19677## ------------------------------------ ##
19678## Report this to bug-autoconf@gnu.org. ##
19679## ------------------------------------ ##
e6cc62c6
VS
19680_ASBOX
19681 ) |
19682 sed "s/^/$as_me: WARNING: /" >&2
19683 ;;
19684esac
19685echo "$as_me:$LINENO: checking for tiffio.h" >&5
19686echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19687if test "${ac_cv_header_tiffio_h+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19689else
19690 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 19691fi
e6cc62c6
VS
19692echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19693echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19694
21d1c967 19695fi
e6cc62c6 19696if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
19697
19698 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
19699echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19700if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19701 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19702else
e6cc62c6 19703 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 19704LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6 19705cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19706#line $LINENO "configure"
e6cc62c6
VS
19707/* confdefs.h. */
19708_ACEOF
19709cat confdefs.h >>conftest.$ac_ext
19710cat >>conftest.$ac_ext <<_ACEOF
19711/* end confdefs.h. */
19712
ab9b9eab 19713/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19714#ifdef __cplusplus
19715extern "C"
19716#endif
ab9b9eab 19717/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19718 builtin and then its argument prototype would still apply. */
19719char TIFFError ();
19720int
19721main ()
19722{
19723TIFFError ();
19724 ;
19725 return 0;
19726}
19727_ACEOF
19728rm -f conftest.$ac_objext conftest$ac_exeext
19729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 19730 (eval $ac_link) 2>&5
e6cc62c6
VS
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); } &&
789c5f4a 19734 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19737 ac_status=$?
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; }; then
19740 ac_cv_lib_tiff_TIFFError=yes
19741else
19742 echo "$as_me: failed program was:" >&5
19743sed 's/^/| /' conftest.$ac_ext >&5
19744
19745ac_cv_lib_tiff_TIFFError=no
19746fi
789c5f4a 19747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19748LIBS=$ac_check_lib_save_LIBS
19749fi
19750echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19751echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19752if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19753 TIFF_LINK=" -ltiff"
a0b9e27f 19754fi
cd6d6d5b 19755
e6cc62c6 19756
0e012a93 19757
a0b9e27f 19758fi
8284b0c5 19759
247f5006 19760
e6cc62c6 19761
21d1c967
GD
19762 if test "x$TIFF_LINK" = "x" ; then
19763 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19764 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19765echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19766 { (exit 1); exit 1; }; }
90dd450c 19767 else
e6cc62c6
VS
19768 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19769echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19770 wxUSE_LIBTIFF=builtin
d8356fa3 19771 fi
d8356fa3 19772 else
21d1c967 19773 wxUSE_LIBTIFF=sys
d8356fa3 19774 fi
21d1c967 19775 fi
21d1c967 19776fi
10f2d63a 19777
8284b0c5 19778
672abd7a 19779if test "$wxUSE_EXPAT" != "no"; then
e06468e8 19780 wxUSE_XML=yes
672abd7a
VS
19781 cat >>confdefs.h <<\_ACEOF
19782#define wxUSE_EXPAT 1
19783_ACEOF
19784
19785 cat >>confdefs.h <<\_ACEOF
19786#define wxUSE_XML 1
19787_ACEOF
19788
19789
19790 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19791 if test "${ac_cv_header_expat_h+set}" = set; then
19792 echo "$as_me:$LINENO: checking for expat.h" >&5
19793echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19794if test "${ac_cv_header_expat_h+set}" = set; then
19795 echo $ECHO_N "(cached) $ECHO_C" >&6
19796fi
19797echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19798echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19799else
19800 # Is the header compilable?
19801echo "$as_me:$LINENO: checking expat.h usability" >&5
19802echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19803cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19804#line $LINENO "configure"
672abd7a
VS
19805/* confdefs.h. */
19806_ACEOF
19807cat confdefs.h >>conftest.$ac_ext
19808cat >>conftest.$ac_ext <<_ACEOF
19809/* end confdefs.h. */
19810$ac_includes_default
19811#include <expat.h>
19812_ACEOF
19813rm -f conftest.$ac_objext
19814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 19815 (eval $ac_compile) 2>&5
672abd7a
VS
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
789c5f4a 19819 { ac_try='test -s conftest.$ac_objext'
672abd7a
VS
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 ac_header_compiler=yes
19826else
19827 echo "$as_me: failed program was:" >&5
19828sed 's/^/| /' conftest.$ac_ext >&5
19829
19830ac_header_compiler=no
19831fi
789c5f4a 19832rm -f conftest.$ac_objext conftest.$ac_ext
672abd7a
VS
19833echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19834echo "${ECHO_T}$ac_header_compiler" >&6
19835
19836# Is the header present?
19837echo "$as_me:$LINENO: checking expat.h presence" >&5
19838echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19839cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19840#line $LINENO "configure"
672abd7a
VS
19841/* confdefs.h. */
19842_ACEOF
19843cat confdefs.h >>conftest.$ac_ext
19844cat >>conftest.$ac_ext <<_ACEOF
19845/* end confdefs.h. */
19846#include <expat.h>
19847_ACEOF
19848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19850 ac_status=$?
19851 grep -v '^ *+' conftest.er1 >conftest.err
19852 rm -f conftest.er1
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } >/dev/null; then
19856 if test -s conftest.err; then
19857 ac_cpp_err=$ac_c_preproc_warn_flag
19858 else
19859 ac_cpp_err=
19860 fi
19861else
19862 ac_cpp_err=yes
19863fi
19864if test -z "$ac_cpp_err"; then
19865 ac_header_preproc=yes
19866else
19867 echo "$as_me: failed program was:" >&5
19868sed 's/^/| /' conftest.$ac_ext >&5
19869
19870 ac_header_preproc=no
19871fi
19872rm -f conftest.err conftest.$ac_ext
19873echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19874echo "${ECHO_T}$ac_header_preproc" >&6
19875
19876# So? What about this header?
789c5f4a
VZ
19877case $ac_header_compiler:$ac_header_preproc in
19878 yes:no )
672abd7a
VS
19879 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19880echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
19881 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19882echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19883 (
19884 cat <<\_ASBOX
19885## ------------------------------------ ##
19886## Report this to bug-autoconf@gnu.org. ##
19887## ------------------------------------ ##
19888_ASBOX
19889 ) |
19890 sed "s/^/$as_me: WARNING: /" >&2
672abd7a 19891 ;;
789c5f4a 19892 no:yes )
672abd7a
VS
19893 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19894echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
19895 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19896echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
672abd7a
VS
19897 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19898echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19899 (
19900 cat <<\_ASBOX
789c5f4a
VZ
19901## ------------------------------------ ##
19902## Report this to bug-autoconf@gnu.org. ##
19903## ------------------------------------ ##
672abd7a
VS
19904_ASBOX
19905 ) |
19906 sed "s/^/$as_me: WARNING: /" >&2
19907 ;;
19908esac
19909echo "$as_me:$LINENO: checking for expat.h" >&5
19910echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19911if test "${ac_cv_header_expat_h+set}" = set; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19913else
19914 ac_cv_header_expat_h=$ac_header_preproc
19915fi
19916echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19917echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19918
19919fi
5f0b6dff
VS
19920if test $ac_cv_header_expat_h = yes; then
19921 found_expat_h=1
19922fi
19923
19924
19925 if test "x$found_expat_h" = "x1"; then
19926 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19927echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19928if test "${wx_cv_expat_is_not_broken+set}" = set; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19930else
19931
19932
672abd7a 19933
5f0b6dff
VS
19934 ac_ext=cc
19935ac_cpp='$CXXCPP $CPPFLAGS'
19936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19939
19940 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19941#line $LINENO "configure"
5f0b6dff
VS
19942/* confdefs.h. */
19943_ACEOF
19944cat confdefs.h >>conftest.$ac_ext
19945cat >>conftest.$ac_ext <<_ACEOF
19946/* end confdefs.h. */
19947#include <expat.h>
19948int
19949main ()
19950{
672abd7a 19951
5f0b6dff
VS
19952 ;
19953 return 0;
19954}
19955_ACEOF
19956rm -f conftest.$ac_objext
19957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 19958 (eval $ac_compile) 2>&5
5f0b6dff
VS
19959 ac_status=$?
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } &&
789c5f4a 19962 { ac_try='test -s conftest.$ac_objext'
5f0b6dff
VS
19963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964 (eval $ac_try) 2>&5
19965 ac_status=$?
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; }; then
19968 wx_cv_expat_is_not_broken=yes
19969else
19970 echo "$as_me: failed program was:" >&5
19971sed 's/^/| /' conftest.$ac_ext >&5
19972
19973wx_cv_expat_is_not_broken=no
19974
19975fi
789c5f4a 19976rm -f conftest.$ac_objext conftest.$ac_ext
5f0b6dff
VS
19977 ac_ext=c
19978ac_cpp='$CPP $CPPFLAGS'
19979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19981ac_compiler_gnu=$ac_cv_c_compiler_gnu
19982
19983
19984
19985fi
19986echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19987echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19988 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19989 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
19990echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19991if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19993else
19994 ac_check_lib_save_LIBS=$LIBS
19995LIBS="-lexpat $LIBS"
19996cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19997#line $LINENO "configure"
672abd7a
VS
19998/* confdefs.h. */
19999_ACEOF
20000cat confdefs.h >>conftest.$ac_ext
20001cat >>conftest.$ac_ext <<_ACEOF
20002/* end confdefs.h. */
20003
20004/* Override any gcc2 internal prototype to avoid an error. */
20005#ifdef __cplusplus
20006extern "C"
20007#endif
20008/* We use char because int might match the return type of a gcc2
20009 builtin and then its argument prototype would still apply. */
20010char XML_ParserCreate ();
20011int
20012main ()
20013{
20014XML_ParserCreate ();
20015 ;
20016 return 0;
20017}
20018_ACEOF
20019rm -f conftest.$ac_objext conftest$ac_exeext
20020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 20021 (eval $ac_link) 2>&5
672abd7a
VS
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); } &&
789c5f4a 20025 { ac_try='test -s conftest$ac_exeext'
672abd7a
VS
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20031 ac_cv_lib_expat_XML_ParserCreate=yes
20032else
20033 echo "$as_me: failed program was:" >&5
20034sed 's/^/| /' conftest.$ac_ext >&5
20035
20036ac_cv_lib_expat_XML_ParserCreate=no
20037fi
789c5f4a 20038rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
672abd7a
VS
20039LIBS=$ac_check_lib_save_LIBS
20040fi
20041echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
20042echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
20043if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
20044 EXPAT_LINK=" -lexpat"
20045fi
20046
5f0b6dff 20047 fi
672abd7a
VS
20048 fi
20049 if test "x$EXPAT_LINK" = "x" ; then
20050 if test "$wxUSE_EXPAT" = "sys" ; then
20051 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
20052echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
20053 { (exit 1); exit 1; }; }
20054 else
20055 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
20056echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
20057 wxUSE_EXPAT=builtin
20058 fi
20059 else
20060 wxUSE_EXPAT=sys
20061 fi
20062 fi
20063 if test "$wxUSE_EXPAT" = "builtin" ; then
20064
20065
20066subdirs="$subdirs src/expat"
20067
20068 fi
20069fi
20070
20071
20072
3527f29c
VS
20073if test "$wxUSE_LIBMSPACK" != "no"; then
20074
20075 if test "${ac_cv_header_mspack_h+set}" = set; then
20076 echo "$as_me:$LINENO: checking for mspack.h" >&5
20077echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20078if test "${ac_cv_header_mspack_h+set}" = set; then
20079 echo $ECHO_N "(cached) $ECHO_C" >&6
20080fi
20081echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20082echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20083else
20084 # Is the header compilable?
20085echo "$as_me:$LINENO: checking mspack.h usability" >&5
20086echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
20087cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20088#line $LINENO "configure"
3527f29c
VS
20089/* confdefs.h. */
20090_ACEOF
20091cat confdefs.h >>conftest.$ac_ext
20092cat >>conftest.$ac_ext <<_ACEOF
20093/* end confdefs.h. */
20094$ac_includes_default
20095#include <mspack.h>
20096_ACEOF
20097rm -f conftest.$ac_objext
20098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 20099 (eval $ac_compile) 2>&5
3527f29c
VS
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } &&
789c5f4a 20103 { ac_try='test -s conftest.$ac_objext'
3527f29c
VS
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 ac_header_compiler=yes
20110else
20111 echo "$as_me: failed program was:" >&5
20112sed 's/^/| /' conftest.$ac_ext >&5
20113
20114ac_header_compiler=no
20115fi
789c5f4a 20116rm -f conftest.$ac_objext conftest.$ac_ext
3527f29c
VS
20117echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20118echo "${ECHO_T}$ac_header_compiler" >&6
20119
20120# Is the header present?
20121echo "$as_me:$LINENO: checking mspack.h presence" >&5
20122echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
20123cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20124#line $LINENO "configure"
3527f29c
VS
20125/* confdefs.h. */
20126_ACEOF
20127cat confdefs.h >>conftest.$ac_ext
20128cat >>conftest.$ac_ext <<_ACEOF
20129/* end confdefs.h. */
20130#include <mspack.h>
20131_ACEOF
20132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20134 ac_status=$?
20135 grep -v '^ *+' conftest.er1 >conftest.err
20136 rm -f conftest.er1
20137 cat conftest.err >&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } >/dev/null; then
20140 if test -s conftest.err; then
20141 ac_cpp_err=$ac_c_preproc_warn_flag
20142 else
20143 ac_cpp_err=
20144 fi
20145else
20146 ac_cpp_err=yes
20147fi
20148if test -z "$ac_cpp_err"; then
20149 ac_header_preproc=yes
20150else
20151 echo "$as_me: failed program was:" >&5
20152sed 's/^/| /' conftest.$ac_ext >&5
20153
20154 ac_header_preproc=no
20155fi
20156rm -f conftest.err conftest.$ac_ext
20157echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20158echo "${ECHO_T}$ac_header_preproc" >&6
20159
20160# So? What about this header?
789c5f4a
VZ
20161case $ac_header_compiler:$ac_header_preproc in
20162 yes:no )
3527f29c
VS
20163 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
20164echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
20165 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20166echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
20167 (
20168 cat <<\_ASBOX
20169## ------------------------------------ ##
20170## Report this to bug-autoconf@gnu.org. ##
20171## ------------------------------------ ##
20172_ASBOX
20173 ) |
20174 sed "s/^/$as_me: WARNING: /" >&2
3527f29c 20175 ;;
789c5f4a 20176 no:yes )
3527f29c
VS
20177 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
20178echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
20179 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
20180echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
3527f29c
VS
20181 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20182echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
20183 (
20184 cat <<\_ASBOX
789c5f4a
VZ
20185## ------------------------------------ ##
20186## Report this to bug-autoconf@gnu.org. ##
20187## ------------------------------------ ##
3527f29c
VS
20188_ASBOX
20189 ) |
20190 sed "s/^/$as_me: WARNING: /" >&2
20191 ;;
20192esac
20193echo "$as_me:$LINENO: checking for mspack.h" >&5
20194echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20195if test "${ac_cv_header_mspack_h+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20197else
20198 ac_cv_header_mspack_h=$ac_header_preproc
20199fi
20200echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20201echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20202
20203fi
20204if test $ac_cv_header_mspack_h = yes; then
20205 found_mspack_h=1
20206fi
20207
20208
20209 if test "x$found_mspack_h" = "x1"; then
20210 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
20211echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
20212if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20214else
20215 ac_check_lib_save_LIBS=$LIBS
20216LIBS="-lmspack $LIBS"
20217cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20218#line $LINENO "configure"
3527f29c
VS
20219/* confdefs.h. */
20220_ACEOF
20221cat confdefs.h >>conftest.$ac_ext
20222cat >>conftest.$ac_ext <<_ACEOF
20223/* end confdefs.h. */
20224
20225/* Override any gcc2 internal prototype to avoid an error. */
20226#ifdef __cplusplus
20227extern "C"
20228#endif
20229/* We use char because int might match the return type of a gcc2
20230 builtin and then its argument prototype would still apply. */
20231char mspack_create_chm_decompressor ();
20232int
20233main ()
20234{
20235mspack_create_chm_decompressor ();
20236 ;
20237 return 0;
20238}
20239_ACEOF
20240rm -f conftest.$ac_objext conftest$ac_exeext
20241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 20242 (eval $ac_link) 2>&5
3527f29c
VS
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); } &&
789c5f4a 20246 { ac_try='test -s conftest$ac_exeext'
3527f29c
VS
20247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248 (eval $ac_try) 2>&5
20249 ac_status=$?
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; }; then
20252 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
20253else
20254 echo "$as_me: failed program was:" >&5
20255sed 's/^/| /' conftest.$ac_ext >&5
20256
20257ac_cv_lib_mspack_mspack_create_chm_decompressor=no
20258fi
789c5f4a 20259rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3527f29c
VS
20260LIBS=$ac_check_lib_save_LIBS
20261fi
20262echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
20263echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
20264if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
20265 MSPACK_LINK=" -lmspack"
20266fi
20267
20268 fi
20269 if test "x$MSPACK_LINK" = "x" ; then
20270 wxUSE_LIBMSPACK=no
20271 else
20272 cat >>confdefs.h <<\_ACEOF
20273#define wxUSE_LIBMSPACK 1
20274_ACEOF
20275
20276 fi
20277fi
20278
20279
20280
21d1c967 20281AFMINSTALL=
2b5f62a0 20282WIN32INSTALL=
90dd450c 20283
21d1c967
GD
20284TOOLKIT=
20285TOOLKIT_INCLUDE=
20286WIDGET_SET=
20287
20288if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
20289
20290for ac_header in w32api.h
21d1c967 20291do
e6cc62c6
VS
20292as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20293if eval "test \"\${$as_ac_Header+set}\" = set"; then
20294 echo "$as_me:$LINENO: checking for $ac_header" >&5
20295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20296if eval "test \"\${$as_ac_Header+set}\" = set"; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20298fi
20299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20301else
20302 # Is the header compilable?
20303echo "$as_me:$LINENO: checking $ac_header usability" >&5
20304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20305cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20306#line $LINENO "configure"
e6cc62c6
VS
20307/* confdefs.h. */
20308_ACEOF
20309cat confdefs.h >>conftest.$ac_ext
20310cat >>conftest.$ac_ext <<_ACEOF
20311/* end confdefs.h. */
20312$ac_includes_default
20313#include <$ac_header>
20314_ACEOF
20315rm -f conftest.$ac_objext
20316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 20317 (eval $ac_compile) 2>&5
e6cc62c6
VS
20318 ac_status=$?
20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); } &&
789c5f4a 20321 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20323 (eval $ac_try) 2>&5
20324 ac_status=$?
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; }; then
20327 ac_header_compiler=yes
20328else
20329 echo "$as_me: failed program was:" >&5
20330sed 's/^/| /' conftest.$ac_ext >&5
20331
20332ac_header_compiler=no
20333fi
789c5f4a 20334rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20335echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20336echo "${ECHO_T}$ac_header_compiler" >&6
20337
20338# Is the header present?
20339echo "$as_me:$LINENO: checking $ac_header presence" >&5
20340echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20341cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20342#line $LINENO "configure"
e6cc62c6
VS
20343/* confdefs.h. */
20344_ACEOF
20345cat confdefs.h >>conftest.$ac_ext
20346cat >>conftest.$ac_ext <<_ACEOF
20347/* end confdefs.h. */
20348#include <$ac_header>
20349_ACEOF
20350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20352 ac_status=$?
20353 grep -v '^ *+' conftest.er1 >conftest.err
20354 rm -f conftest.er1
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } >/dev/null; then
20358 if test -s conftest.err; then
20359 ac_cpp_err=$ac_c_preproc_warn_flag
20360 else
20361 ac_cpp_err=
20362 fi
20363else
20364 ac_cpp_err=yes
20365fi
20366if test -z "$ac_cpp_err"; then
20367 ac_header_preproc=yes
20368else
20369 echo "$as_me: failed program was:" >&5
20370sed 's/^/| /' conftest.$ac_ext >&5
20371
20372 ac_header_preproc=no
20373fi
20374rm -f conftest.err conftest.$ac_ext
20375echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20376echo "${ECHO_T}$ac_header_preproc" >&6
20377
20378# So? What about this header?
789c5f4a
VZ
20379case $ac_header_compiler:$ac_header_preproc in
20380 yes:no )
e6cc62c6
VS
20381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20382echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
20383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20384echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20385 (
20386 cat <<\_ASBOX
20387## ------------------------------------ ##
20388## Report this to bug-autoconf@gnu.org. ##
20389## ------------------------------------ ##
20390_ASBOX
20391 ) |
20392 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 20393 ;;
789c5f4a 20394 no:yes )
e6cc62c6
VS
20395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20396echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
20397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20398echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
20399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20400echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20401 (
20402 cat <<\_ASBOX
789c5f4a
VZ
20403## ------------------------------------ ##
20404## Report this to bug-autoconf@gnu.org. ##
20405## ------------------------------------ ##
e6cc62c6
VS
20406_ASBOX
20407 ) |
20408 sed "s/^/$as_me: WARNING: /" >&2
20409 ;;
20410esac
20411echo "$as_me:$LINENO: checking for $ac_header" >&5
20412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20413if eval "test \"\${$as_ac_Header+set}\" = set"; then
20414 echo $ECHO_N "(cached) $ECHO_C" >&6
20415else
789c5f4a 20416 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 20417fi
e6cc62c6
VS
20418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20419echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20420
21d1c967 20421fi
e6cc62c6
VS
20422if test `eval echo '${'$as_ac_Header'}'` = yes; then
20423 cat >>confdefs.h <<_ACEOF
20424#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20425_ACEOF
20426
21d1c967 20427fi
e6cc62c6 20428
21d1c967 20429done
f79bd02d 20430
e6cc62c6
VS
20431 if test "${ac_cv_header_windows_h+set}" = set; then
20432 echo "$as_me:$LINENO: checking for windows.h" >&5
20433echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20434if test "${ac_cv_header_windows_h+set}" = set; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20436fi
20437echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20438echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20439else
20440 # Is the header compilable?
20441echo "$as_me:$LINENO: checking windows.h usability" >&5
20442echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
20443cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20444#line $LINENO "configure"
e6cc62c6
VS
20445/* confdefs.h. */
20446_ACEOF
20447cat confdefs.h >>conftest.$ac_ext
20448cat >>conftest.$ac_ext <<_ACEOF
20449/* end confdefs.h. */
20450$ac_includes_default
247f5006 20451#include <windows.h>
e6cc62c6
VS
20452_ACEOF
20453rm -f conftest.$ac_objext
20454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 20455 (eval $ac_compile) 2>&5
e6cc62c6
VS
20456 ac_status=$?
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } &&
789c5f4a 20459 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20462 ac_status=$?
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; }; then
20465 ac_header_compiler=yes
20466else
20467 echo "$as_me: failed program was:" >&5
20468sed 's/^/| /' conftest.$ac_ext >&5
20469
20470ac_header_compiler=no
20471fi
789c5f4a 20472rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20473echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20474echo "${ECHO_T}$ac_header_compiler" >&6
20475
20476# Is the header present?
20477echo "$as_me:$LINENO: checking windows.h presence" >&5
20478echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
20479cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20480#line $LINENO "configure"
e6cc62c6
VS
20481/* confdefs.h. */
20482_ACEOF
20483cat confdefs.h >>conftest.$ac_ext
20484cat >>conftest.$ac_ext <<_ACEOF
20485/* end confdefs.h. */
20486#include <windows.h>
20487_ACEOF
20488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20490 ac_status=$?
20491 grep -v '^ *+' conftest.er1 >conftest.err
20492 rm -f conftest.er1
20493 cat conftest.err >&5
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } >/dev/null; then
20496 if test -s conftest.err; then
20497 ac_cpp_err=$ac_c_preproc_warn_flag
20498 else
20499 ac_cpp_err=
20500 fi
20501else
20502 ac_cpp_err=yes
20503fi
20504if test -z "$ac_cpp_err"; then
20505 ac_header_preproc=yes
20506else
20507 echo "$as_me: failed program was:" >&5
20508sed 's/^/| /' conftest.$ac_ext >&5
20509
20510 ac_header_preproc=no
20511fi
20512rm -f conftest.err conftest.$ac_ext
20513echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20514echo "${ECHO_T}$ac_header_preproc" >&6
20515
20516# So? What about this header?
789c5f4a
VZ
20517case $ac_header_compiler:$ac_header_preproc in
20518 yes:no )
e6cc62c6
VS
20519 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
20520echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
20521 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20522echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
20523 (
20524 cat <<\_ASBOX
20525## ------------------------------------ ##
20526## Report this to bug-autoconf@gnu.org. ##
20527## ------------------------------------ ##
20528_ASBOX
20529 ) |
20530 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 20531 ;;
789c5f4a 20532 no:yes )
e6cc62c6
VS
20533 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
20534echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
20535 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
20536echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
20537 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20538echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
20539 (
20540 cat <<\_ASBOX
789c5f4a
VZ
20541## ------------------------------------ ##
20542## Report this to bug-autoconf@gnu.org. ##
20543## ------------------------------------ ##
e6cc62c6
VS
20544_ASBOX
20545 ) |
20546 sed "s/^/$as_me: WARNING: /" >&2
20547 ;;
20548esac
20549echo "$as_me:$LINENO: checking for windows.h" >&5
20550echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20551if test "${ac_cv_header_windows_h+set}" = set; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20553else
20554 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 20555fi
e6cc62c6
VS
20556echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20557echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20558
90dd450c 20559fi
e6cc62c6 20560if test $ac_cv_header_windows_h = yes; then
21d1c967 20561 :
90dd450c 20562else
21d1c967 20563
e6cc62c6
VS
20564 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
20565echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
20566 { (exit 1); exit 1; }; }
20567
5c6fa7d2 20568fi
7b4a847f 20569
5c6fa7d2 20570
e6cc62c6 20571
b3dfbbc9 20572 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 20573
7bb2947d
MB
20574 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
20575 LIBS="$LIBS -loleacc"
20576 fi
20577
21d1c967
GD
20578 case "${host}" in
20579 *-*-cygwin* )
b3dfbbc9 20580 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 20581 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 20582 esac
f79bd02d 20583
8647bec6
RG
20584 if test "$wxUSE_ODBC" = "sys" ; then
20585 wxUSE_ODBC = "yes"
21d1c967 20586 fi
8647bec6
RG
20587 if test "$wxUSE_ODBC" = "yes" ; then
20588 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 20589 cat >>confdefs.h <<\_ACEOF
8647bec6 20590#define wxUSE_ODBC 1
e6cc62c6 20591_ACEOF
f79bd02d 20592
8647bec6 20593 fi
e6cc62c6 20594
21d1c967
GD
20595 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
20596 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
20597
20598 WIN32INSTALL=win32install
f79bd02d 20599fi
f79bd02d 20600
21d1c967
GD
20601if test "$wxUSE_GUI" = "yes"; then
20602 USE_GUI=1
f79bd02d 20603
21d1c967 20604 GUI_TK_LIBRARY=
f79bd02d 20605
21d1c967
GD
20606 WXGTK12=
20607 WXGTK127=
20608 WXGTK20=
f79bd02d 20609
21d1c967
GD
20610 if test "$wxUSE_MSW" = 1 ; then
20611 TOOLKIT=MSW
20612 GUIDIST=MSW_DIST
ffef10f6
VS
20613
20614 case "${host}" in
20615 *-*-mingw32* )
20616 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
20617 esac
f79bd02d
JS
20618 fi
20619
21d1c967 20620 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
20621 echo "$as_me:$LINENO: checking for GTK+ version" >&5
20622echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
20623
20624 gtk_version_cached=1
e6cc62c6
VS
20625 if test "${wx_cv_lib_gtk+set}" = set; then
20626 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 20627else
e6cc62c6 20628
21d1c967 20629 gtk_version_cached=0
e6cc62c6
VS
20630 echo "$as_me:$LINENO: result: " >&5
20631echo "${ECHO_T}" >&6
f79bd02d 20632
21d1c967
GD
20633 GTK_MODULES=
20634 if test "$wxUSE_THREADS" = "yes"; then
20635 GTK_MODULES=gthread
20636 fi
f79bd02d 20637
2b5f62a0 20638 wx_cv_lib_gtk=
21d1c967
GD
20639 if test "x$wxUSE_GTK2" = "xyes"; then
20640 # Check whether --enable-gtktest or --disable-gtktest was given.
20641if test "${enable_gtktest+set}" = set; then
20642 enableval="$enable_gtktest"
e6cc62c6 20643
f79bd02d 20644else
21d1c967 20645 enable_gtktest=yes
e6cc62c6 20646fi;
f79bd02d 20647
21d1c967
GD
20648 pkg_config_args=gtk+-2.0
20649 for module in . $GTK_MODULES
20650 do
20651 case "$module" in
e6cc62c6 20652 gthread)
21d1c967
GD
20653 pkg_config_args="$pkg_config_args gthread-2.0"
20654 ;;
20655 esac
20656 done
20657
20658 no_gtk=""
f79bd02d 20659
21d1c967
GD
20660 # Extract the first word of "pkg-config", so it can be a program name with args.
20661set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20662echo "$as_me:$LINENO: checking for $ac_word" >&5
20663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20664if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20665 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20666else
e6cc62c6
VS
20667 case $PKG_CONFIG in
20668 [\\/]* | ?:[\\/]*)
21d1c967
GD
20669 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20670 ;;
21d1c967 20671 *)
e6cc62c6
VS
20672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20673for as_dir in $PATH
20674do
20675 IFS=$as_save_IFS
20676 test -z "$as_dir" && as_dir=.
20677 for ac_exec_ext in '' $ac_executable_extensions; do
20678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20679 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20681 break 2
20682 fi
20683done
20684done
20685
21d1c967
GD
20686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20687 ;;
20688esac
f79bd02d 20689fi
e6cc62c6
VS
20690PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20691
21d1c967 20692if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20693 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20694echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 20695else
e6cc62c6
VS
20696 echo "$as_me:$LINENO: result: no" >&5
20697echo "${ECHO_T}no" >&6
f79bd02d
JS
20698fi
20699
8284b0c5 20700
21d1c967
GD
20701 if test x$PKG_CONFIG != xno ; then
20702 if pkg-config --atleast-pkgconfig-version 0.7 ; then
20703 :
20704 else
20705 echo *** pkg-config too old; version 0.7 or better required.
20706 no_gtk=yes
20707 PKG_CONFIG=no
20708 fi
20709 else
20710 no_gtk=yes
20711 fi
f79bd02d 20712
21d1c967 20713 min_gtk_version=2.0.0
e6cc62c6
VS
20714 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20715echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 20716
21d1c967
GD
20717 if test x$PKG_CONFIG != xno ; then
20718 ## don't try to run the test against uninstalled libtool libs
20719 if $PKG_CONFIG --uninstalled $pkg_config_args; then
20720 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20721 enable_gtktest=no
20722 fi
f79bd02d 20723
21d1c967
GD
20724 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20725 :
20726 else
20727 no_gtk=yes
20728 fi
20729 fi
f79bd02d 20730
21d1c967
GD
20731 if test x"$no_gtk" = x ; then
20732 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20733 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20734 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20735 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20736 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20737 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20738 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20739 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20740 if test "x$enable_gtktest" = "xyes" ; then
20741 ac_save_CFLAGS="$CFLAGS"
20742 ac_save_LIBS="$LIBS"
20743 CFLAGS="$CFLAGS $GTK_CFLAGS"
20744 LIBS="$GTK_LIBS $LIBS"
20745 rm -f conf.gtktest
20746 if test "$cross_compiling" = yes; then
20747 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20748else
e6cc62c6 20749 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20750#line $LINENO "configure"
e6cc62c6
VS
20751/* confdefs.h. */
20752_ACEOF
20753cat confdefs.h >>conftest.$ac_ext
20754cat >>conftest.$ac_ext <<_ACEOF
20755/* end confdefs.h. */
f79bd02d 20756
21d1c967
GD
20757#include <gtk/gtk.h>
20758#include <stdio.h>
20759#include <stdlib.h>
f79bd02d 20760
e6cc62c6 20761int
21d1c967
GD
20762main ()
20763{
20764 int major, minor, micro;
20765 char *tmp_version;
f79bd02d 20766
21d1c967 20767 system ("touch conf.gtktest");
f79bd02d 20768
21d1c967
GD
20769 /* HP/UX 9 (%@#!) writes to sscanf strings */
20770 tmp_version = g_strdup("$min_gtk_version");
20771 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20772 printf("%s, bad version string\n", "$min_gtk_version");
20773 exit(1);
20774 }
f79bd02d 20775
21d1c967
GD
20776 if ((gtk_major_version != $gtk_config_major_version) ||
20777 (gtk_minor_version != $gtk_config_minor_version) ||
20778 (gtk_micro_version != $gtk_config_micro_version))
20779 {
e6cc62c6 20780 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20781 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20782 gtk_major_version, gtk_minor_version, gtk_micro_version);
20783 printf ("*** was found! If pkg-config was correct, then it is best\n");
20784 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20785 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20786 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20787 printf("*** required on your system.\n");
20788 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20789 printf("*** to point to the correct configuration files\n");
e6cc62c6 20790 }
21d1c967
GD
20791 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20792 (gtk_minor_version != GTK_MINOR_VERSION) ||
20793 (gtk_micro_version != GTK_MICRO_VERSION))
20794 {
20795 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20796 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20797 printf("*** library (version %d.%d.%d)\n",
20798 gtk_major_version, gtk_minor_version, gtk_micro_version);
20799 }
20800 else
20801 {
20802 if ((gtk_major_version > major) ||
20803 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20804 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20805 {
20806 return 0;
20807 }
20808 else
20809 {
20810 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20811 gtk_major_version, gtk_minor_version, gtk_micro_version);
20812 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20813 major, minor, micro);
20814 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20815 printf("***\n");
20816 printf("*** If you have already installed a sufficiently new version, this error\n");
20817 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20818 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20819 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20820 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20821 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20822 printf("*** so that the correct libraries are found at run-time))\n");
20823 }
20824 }
20825 return 1;
20826}
f79bd02d 20827
e6cc62c6
VS
20828_ACEOF
20829rm -f conftest$ac_exeext
20830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20831 (eval $ac_link) 2>&5
20832 ac_status=$?
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20836 (eval $ac_try) 2>&5
20837 ac_status=$?
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; }; then
21d1c967 20840 :
f79bd02d 20841else
e6cc62c6
VS
20842 echo "$as_me: program exited with status $ac_status" >&5
20843echo "$as_me: failed program was:" >&5
20844sed 's/^/| /' conftest.$ac_ext >&5
20845
20846( exit $ac_status )
20847no_gtk=yes
f79bd02d 20848fi
789c5f4a 20849rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 20850fi
21d1c967
GD
20851 CFLAGS="$ac_save_CFLAGS"
20852 LIBS="$ac_save_LIBS"
20853 fi
20854 fi
20855 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20856 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20857echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20858 wx_cv_lib_gtk=2.0
21d1c967 20859 else
e6cc62c6
VS
20860 echo "$as_me:$LINENO: result: no" >&5
20861echo "${ECHO_T}no" >&6
21d1c967
GD
20862 if test "$PKG_CONFIG" = "no" ; then
20863 echo "*** A new enough version of pkg-config was not found."
20864 echo "*** See http://pkgconfig.sourceforge.net"
20865 else
20866 if test -f conf.gtktest ; then
20867 :
20868 else
20869 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
20870 ac_save_CFLAGS="$CFLAGS"
20871 ac_save_LIBS="$LIBS"
21d1c967
GD
20872 CFLAGS="$CFLAGS $GTK_CFLAGS"
20873 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 20874 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20875#line $LINENO "configure"
e6cc62c6
VS
20876/* confdefs.h. */
20877_ACEOF
20878cat confdefs.h >>conftest.$ac_ext
20879cat >>conftest.$ac_ext <<_ACEOF
20880/* end confdefs.h. */
21d1c967
GD
20881
20882#include <gtk/gtk.h>
20883#include <stdio.h>
f79bd02d 20884
e6cc62c6
VS
20885int
20886main ()
20887{
20888 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20889 ;
20890 return 0;
20891}
20892_ACEOF
20893rm -f conftest.$ac_objext conftest$ac_exeext
20894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 20895 (eval $ac_link) 2>&5
e6cc62c6
VS
20896 ac_status=$?
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } &&
789c5f4a 20899 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901 (eval $ac_try) 2>&5
20902 ac_status=$?
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; }; then
21d1c967
GD
20905 echo "*** The test program compiled, but did not run. This usually means"
20906 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20907 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20908 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20909 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20910 echo "*** is required on your system"
20911 echo "***"
20912 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 20913 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 20914else
e6cc62c6
VS
20915 echo "$as_me: failed program was:" >&5
20916sed 's/^/| /' conftest.$ac_ext >&5
20917
20918 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 20919 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 20920fi
789c5f4a 20921rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20922 CFLAGS="$ac_save_CFLAGS"
20923 LIBS="$ac_save_LIBS"
20924 fi
20925 fi
20926 GTK_CFLAGS=""
20927 GTK_LIBS=""
20928 :
20929 fi
e6cc62c6
VS
20930
20931
21d1c967 20932 rm -f conf.gtktest
f79bd02d 20933
2b5f62a0 20934 else
e6cc62c6
VS
20935
20936# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20937if test "${with_gtk_prefix+set}" = set; then
20938 withval="$with_gtk_prefix"
20939 gtk_config_prefix="$withval"
20940else
20941 gtk_config_prefix=""
e6cc62c6 20942fi;
f79bd02d 20943
21d1c967
GD
20944# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20945if test "${with_gtk_exec_prefix+set}" = set; then
20946 withval="$with_gtk_exec_prefix"
20947 gtk_config_exec_prefix="$withval"
20948else
20949 gtk_config_exec_prefix=""
e6cc62c6 20950fi;
21d1c967
GD
20951# Check whether --enable-gtktest or --disable-gtktest was given.
20952if test "${enable_gtktest+set}" = set; then
20953 enableval="$enable_gtktest"
e6cc62c6 20954
21d1c967
GD
20955else
20956 enable_gtktest=yes
e6cc62c6 20957fi;
21d1c967
GD
20958
20959 for module in . $GTK_MODULES
20960 do
20961 case "$module" in
e6cc62c6 20962 gthread)
21d1c967
GD
20963 gtk_config_args="$gtk_config_args gthread"
20964 ;;
20965 esac
20966 done
20967
20968 if test x$gtk_config_exec_prefix != x ; then
20969 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20970 if test x${GTK_CONFIG+set} != xset ; then
20971 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20972 fi
20973 fi
20974 if test x$gtk_config_prefix != x ; then
20975 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20976 if test x${GTK_CONFIG+set} != xset ; then
20977 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20978 fi
20979 fi
20980
20981 # Extract the first word of "gtk-config", so it can be a program name with args.
20982set dummy gtk-config; ac_word=$2
e6cc62c6
VS
20983echo "$as_me:$LINENO: checking for $ac_word" >&5
20984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20985if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20986 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20987else
e6cc62c6
VS
20988 case $GTK_CONFIG in
20989 [\\/]* | ?:[\\/]*)
21d1c967
GD
20990 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20991 ;;
21d1c967 20992 *)
e6cc62c6
VS
20993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20994for as_dir in $PATH
20995do
20996 IFS=$as_save_IFS
20997 test -z "$as_dir" && as_dir=.
20998 for ac_exec_ext in '' $ac_executable_extensions; do
20999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21000 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21002 break 2
21003 fi
21004done
21005done
21006
21d1c967
GD
21007 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21008 ;;
21009esac
21010fi
e6cc62c6
VS
21011GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21012
21d1c967 21013if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
21014 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21015echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 21016else
e6cc62c6
VS
21017 echo "$as_me:$LINENO: result: no" >&5
21018echo "${ECHO_T}no" >&6
21d1c967
GD
21019fi
21020
21021 min_gtk_version=1.2.7
e6cc62c6
VS
21022 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21023echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
21024 no_gtk=""
21025 if test "$GTK_CONFIG" = "no" ; then
21026 no_gtk=yes
21027 else
21028 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21029 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21030 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21031 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21032 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21033 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21034 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21035 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21036 if test "x$enable_gtktest" = "xyes" ; then
21037 ac_save_CFLAGS="$CFLAGS"
21038 ac_save_LIBS="$LIBS"
21039 CFLAGS="$CFLAGS $GTK_CFLAGS"
21040 LIBS="$GTK_LIBS $LIBS"
21041 rm -f conf.gtktest
21042 if test "$cross_compiling" = yes; then
21043 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 21044else
e6cc62c6 21045 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21046#line $LINENO "configure"
e6cc62c6
VS
21047/* confdefs.h. */
21048_ACEOF
21049cat confdefs.h >>conftest.$ac_ext
21050cat >>conftest.$ac_ext <<_ACEOF
21051/* end confdefs.h. */
f79bd02d 21052
21d1c967
GD
21053#include <gtk/gtk.h>
21054#include <stdio.h>
21055#include <stdlib.h>
f79bd02d 21056
e6cc62c6 21057int
21d1c967
GD
21058main ()
21059{
21060 int major, minor, micro;
21061 char *tmp_version;
21062
21063 system ("touch conf.gtktest");
21064
21065 /* HP/UX 9 (%@#!) writes to sscanf strings */
21066 tmp_version = g_strdup("$min_gtk_version");
21067 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21068 printf("%s, bad version string\n", "$min_gtk_version");
21069 exit(1);
21070 }
90dd450c 21071
21d1c967
GD
21072 if ((gtk_major_version != $gtk_config_major_version) ||
21073 (gtk_minor_version != $gtk_config_minor_version) ||
21074 (gtk_micro_version != $gtk_config_micro_version))
21075 {
e6cc62c6 21076 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21077 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21078 gtk_major_version, gtk_minor_version, gtk_micro_version);
21079 printf ("*** was found! If gtk-config was correct, then it is best\n");
21080 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21081 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21082 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21083 printf("*** required on your system.\n");
21084 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21085 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21086 printf("*** before re-running configure\n");
e6cc62c6 21087 }
21d1c967
GD
21088#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21089 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21090 (gtk_minor_version != GTK_MINOR_VERSION) ||
21091 (gtk_micro_version != GTK_MICRO_VERSION))
21092 {
21093 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21094 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21095 printf("*** library (version %d.%d.%d)\n",
21096 gtk_major_version, gtk_minor_version, gtk_micro_version);
21097 }
21098#endif /* defined (GTK_MAJOR_VERSION) ... */
21099 else
21100 {
21101 if ((gtk_major_version > major) ||
21102 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21103 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21104 {
21105 return 0;
21106 }
21107 else
21108 {
21109 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21110 gtk_major_version, gtk_minor_version, gtk_micro_version);
21111 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21112 major, minor, micro);
21113 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21114 printf("***\n");
21115 printf("*** If you have already installed a sufficiently new version, this error\n");
21116 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21117 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21118 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21119 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21120 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21121 printf("*** so that the correct libraries are found at run-time))\n");
21122 }
21123 }
21124 return 1;
21125}
21126
e6cc62c6
VS
21127_ACEOF
21128rm -f conftest$ac_exeext
21129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21130 (eval $ac_link) 2>&5
21131 ac_status=$?
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21135 (eval $ac_try) 2>&5
21136 ac_status=$?
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); }; }; then
21d1c967
GD
21139 :
21140else
e6cc62c6
VS
21141 echo "$as_me: program exited with status $ac_status" >&5
21142echo "$as_me: failed program was:" >&5
21143sed 's/^/| /' conftest.$ac_ext >&5
21144
21145( exit $ac_status )
21146no_gtk=yes
21d1c967 21147fi
789c5f4a 21148rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 21149fi
21d1c967
GD
21150 CFLAGS="$ac_save_CFLAGS"
21151 LIBS="$ac_save_LIBS"
21152 fi
21153 fi
21154 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21155 echo "$as_me:$LINENO: result: yes" >&5
21156echo "${ECHO_T}yes" >&6
21157 wx_cv_lib_gtk=1.2.7
21d1c967 21158 else
e6cc62c6
VS
21159 echo "$as_me:$LINENO: result: no" >&5
21160echo "${ECHO_T}no" >&6
21d1c967
GD
21161 if test "$GTK_CONFIG" = "no" ; then
21162 echo "*** The gtk-config script installed by GTK could not be found"
21163 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21164 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21165 echo "*** full path to gtk-config."
21166 else
21167 if test -f conf.gtktest ; then
21168 :
21169 else
21170 echo "*** Could not run GTK test program, checking why..."
21171 CFLAGS="$CFLAGS $GTK_CFLAGS"
21172 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21173 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21174#line $LINENO "configure"
e6cc62c6
VS
21175/* confdefs.h. */
21176_ACEOF
21177cat confdefs.h >>conftest.$ac_ext
21178cat >>conftest.$ac_ext <<_ACEOF
21179/* end confdefs.h. */
21d1c967
GD
21180
21181#include <gtk/gtk.h>
21182#include <stdio.h>
21183
e6cc62c6
VS
21184int
21185main ()
21186{
21187 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21188 ;
21189 return 0;
21190}
21191_ACEOF
21192rm -f conftest.$ac_objext conftest$ac_exeext
21193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 21194 (eval $ac_link) 2>&5
e6cc62c6
VS
21195 ac_status=$?
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } &&
789c5f4a 21198 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200 (eval $ac_try) 2>&5
21201 ac_status=$?
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); }; }; then
21d1c967
GD
21204 echo "*** The test program compiled, but did not run. This usually means"
21205 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21206 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21207 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21208 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21209 echo "*** is required on your system"
21210 echo "***"
21211 echo "*** If you have an old version installed, it is best to remove it, although"
21212 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21213 echo "***"
21214 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21215 echo "*** came with the system with the command"
21216 echo "***"
e6cc62c6 21217 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 21218else
e6cc62c6
VS
21219 echo "$as_me: failed program was:" >&5
21220sed 's/^/| /' conftest.$ac_ext >&5
21221
21222 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
21223 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21224 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 21225 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 21226fi
789c5f4a 21227rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21228 CFLAGS="$ac_save_CFLAGS"
21229 LIBS="$ac_save_LIBS"
21230 fi
21231 fi
21232 GTK_CFLAGS=""
21233 GTK_LIBS=""
21234 :
21235 fi
e6cc62c6
VS
21236
21237
21d1c967
GD
21238 rm -f conf.gtktest
21239
21d1c967 21240
2b5f62a0 21241 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
21242
21243# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
21244if test "${with_gtk_prefix+set}" = set; then
21245 withval="$with_gtk_prefix"
21246 gtk_config_prefix="$withval"
21247else
21248 gtk_config_prefix=""
e6cc62c6 21249fi;
f79bd02d 21250
21d1c967
GD
21251# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21252if test "${with_gtk_exec_prefix+set}" = set; then
21253 withval="$with_gtk_exec_prefix"
21254 gtk_config_exec_prefix="$withval"
21255else
21256 gtk_config_exec_prefix=""
e6cc62c6 21257fi;
21d1c967
GD
21258# Check whether --enable-gtktest or --disable-gtktest was given.
21259if test "${enable_gtktest+set}" = set; then
21260 enableval="$enable_gtktest"
e6cc62c6 21261
90dd450c 21262else
21d1c967 21263 enable_gtktest=yes
e6cc62c6 21264fi;
21d1c967
GD
21265
21266 for module in . $GTK_MODULES
21267 do
21268 case "$module" in
e6cc62c6 21269 gthread)
21d1c967
GD
21270 gtk_config_args="$gtk_config_args gthread"
21271 ;;
21272 esac
21273 done
21274
21275 if test x$gtk_config_exec_prefix != x ; then
21276 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21277 if test x${GTK_CONFIG+set} != xset ; then
21278 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21279 fi
21280 fi
21281 if test x$gtk_config_prefix != x ; then
21282 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21283 if test x${GTK_CONFIG+set} != xset ; then
21284 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21285 fi
21286 fi
21287
21288 # Extract the first word of "gtk-config", so it can be a program name with args.
21289set dummy gtk-config; ac_word=$2
e6cc62c6
VS
21290echo "$as_me:$LINENO: checking for $ac_word" >&5
21291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21292if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21293 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21294else
e6cc62c6
VS
21295 case $GTK_CONFIG in
21296 [\\/]* | ?:[\\/]*)
21d1c967
GD
21297 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21298 ;;
21d1c967 21299 *)
e6cc62c6
VS
21300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21301for as_dir in $PATH
21302do
21303 IFS=$as_save_IFS
21304 test -z "$as_dir" && as_dir=.
21305 for ac_exec_ext in '' $ac_executable_extensions; do
21306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21307 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21309 break 2
21310 fi
21311done
21312done
21313
21d1c967
GD
21314 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21315 ;;
21316esac
21317fi
e6cc62c6
VS
21318GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21319
21d1c967 21320if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
21321 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21322echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 21323else
e6cc62c6
VS
21324 echo "$as_me:$LINENO: result: no" >&5
21325echo "${ECHO_T}no" >&6
21d1c967
GD
21326fi
21327
21328 min_gtk_version=1.2.3
e6cc62c6
VS
21329 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21330echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
21331 no_gtk=""
21332 if test "$GTK_CONFIG" = "no" ; then
21333 no_gtk=yes
21334 else
21335 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21336 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21337 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21338 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21339 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21340 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21341 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21342 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21343 if test "x$enable_gtktest" = "xyes" ; then
21344 ac_save_CFLAGS="$CFLAGS"
21345 ac_save_LIBS="$LIBS"
21346 CFLAGS="$CFLAGS $GTK_CFLAGS"
21347 LIBS="$GTK_LIBS $LIBS"
21348 rm -f conf.gtktest
21349 if test "$cross_compiling" = yes; then
21350 echo $ac_n "cross compiling; assumed OK... $ac_c"
21351else
e6cc62c6 21352 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21353#line $LINENO "configure"
e6cc62c6
VS
21354/* confdefs.h. */
21355_ACEOF
21356cat confdefs.h >>conftest.$ac_ext
21357cat >>conftest.$ac_ext <<_ACEOF
21358/* end confdefs.h. */
21d1c967
GD
21359
21360#include <gtk/gtk.h>
21361#include <stdio.h>
21362#include <stdlib.h>
21363
e6cc62c6 21364int
21d1c967
GD
21365main ()
21366{
21367 int major, minor, micro;
21368 char *tmp_version;
21369
21370 system ("touch conf.gtktest");
21371
21372 /* HP/UX 9 (%@#!) writes to sscanf strings */
21373 tmp_version = g_strdup("$min_gtk_version");
21374 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21375 printf("%s, bad version string\n", "$min_gtk_version");
21376 exit(1);
21377 }
21378
21379 if ((gtk_major_version != $gtk_config_major_version) ||
21380 (gtk_minor_version != $gtk_config_minor_version) ||
21381 (gtk_micro_version != $gtk_config_micro_version))
21382 {
e6cc62c6 21383 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21384 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21385 gtk_major_version, gtk_minor_version, gtk_micro_version);
21386 printf ("*** was found! If gtk-config was correct, then it is best\n");
21387 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21388 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21389 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21390 printf("*** required on your system.\n");
21391 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21392 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21393 printf("*** before re-running configure\n");
e6cc62c6 21394 }
21d1c967
GD
21395#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21396 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21397 (gtk_minor_version != GTK_MINOR_VERSION) ||
21398 (gtk_micro_version != GTK_MICRO_VERSION))
21399 {
21400 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21401 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21402 printf("*** library (version %d.%d.%d)\n",
21403 gtk_major_version, gtk_minor_version, gtk_micro_version);
21404 }
21405#endif /* defined (GTK_MAJOR_VERSION) ... */
21406 else
21407 {
21408 if ((gtk_major_version > major) ||
21409 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21410 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21411 {
21412 return 0;
21413 }
21414 else
21415 {
21416 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21417 gtk_major_version, gtk_minor_version, gtk_micro_version);
21418 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21419 major, minor, micro);
21420 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21421 printf("***\n");
21422 printf("*** If you have already installed a sufficiently new version, this error\n");
21423 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21424 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21425 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21426 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21427 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21428 printf("*** so that the correct libraries are found at run-time))\n");
21429 }
21430 }
21431 return 1;
21432}
21433
e6cc62c6
VS
21434_ACEOF
21435rm -f conftest$ac_exeext
21436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21437 (eval $ac_link) 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21442 (eval $ac_try) 2>&5
21443 ac_status=$?
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); }; }; then
21d1c967
GD
21446 :
21447else
e6cc62c6
VS
21448 echo "$as_me: program exited with status $ac_status" >&5
21449echo "$as_me: failed program was:" >&5
21450sed 's/^/| /' conftest.$ac_ext >&5
21451
21452( exit $ac_status )
21453no_gtk=yes
21d1c967 21454fi
789c5f4a 21455rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 21456fi
21d1c967
GD
21457 CFLAGS="$ac_save_CFLAGS"
21458 LIBS="$ac_save_LIBS"
21459 fi
21460 fi
21461 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21462 echo "$as_me:$LINENO: result: yes" >&5
21463echo "${ECHO_T}yes" >&6
21464 wx_cv_lib_gtk=1.2.3
21d1c967 21465 else
e6cc62c6
VS
21466 echo "$as_me:$LINENO: result: no" >&5
21467echo "${ECHO_T}no" >&6
21d1c967
GD
21468 if test "$GTK_CONFIG" = "no" ; then
21469 echo "*** The gtk-config script installed by GTK could not be found"
21470 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21471 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21472 echo "*** full path to gtk-config."
21473 else
21474 if test -f conf.gtktest ; then
21475 :
21476 else
21477 echo "*** Could not run GTK test program, checking why..."
21478 CFLAGS="$CFLAGS $GTK_CFLAGS"
21479 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21480 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21481#line $LINENO "configure"
e6cc62c6
VS
21482/* confdefs.h. */
21483_ACEOF
21484cat confdefs.h >>conftest.$ac_ext
21485cat >>conftest.$ac_ext <<_ACEOF
21486/* end confdefs.h. */
21d1c967
GD
21487
21488#include <gtk/gtk.h>
21489#include <stdio.h>
f79bd02d 21490
e6cc62c6
VS
21491int
21492main ()
21493{
21494 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21495 ;
21496 return 0;
21497}
21498_ACEOF
21499rm -f conftest.$ac_objext conftest$ac_exeext
21500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 21501 (eval $ac_link) 2>&5
e6cc62c6
VS
21502 ac_status=$?
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } &&
789c5f4a 21505 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21508 ac_status=$?
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; }; then
21d1c967
GD
21511 echo "*** The test program compiled, but did not run. This usually means"
21512 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21513 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21514 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21515 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21516 echo "*** is required on your system"
21517 echo "***"
21518 echo "*** If you have an old version installed, it is best to remove it, although"
21519 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21520 echo "***"
21521 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21522 echo "*** came with the system with the command"
21523 echo "***"
e6cc62c6 21524 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 21525else
e6cc62c6
VS
21526 echo "$as_me: failed program was:" >&5
21527sed 's/^/| /' conftest.$ac_ext >&5
21528
21529 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
21530 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21531 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 21532 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 21533fi
789c5f4a 21534rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21535 CFLAGS="$ac_save_CFLAGS"
21536 LIBS="$ac_save_LIBS"
21537 fi
21538 fi
21539 GTK_CFLAGS=""
21540 GTK_LIBS=""
21541 :
21542 fi
e6cc62c6
VS
21543
21544
21d1c967 21545 rm -f conf.gtktest
f79bd02d 21546
2b5f62a0 21547 fi
21d1c967
GD
21548 fi
21549
21550 if test -z "$wx_cv_lib_gtk"; then
21551 wx_cv_lib_gtk=none
21552 else
21553 wx_cv_cflags_gtk=$GTK_CFLAGS
21554 wx_cv_libs_gtk=$GTK_LIBS
21555 fi
e6cc62c6
VS
21556
21557
5c6fa7d2 21558fi
52127426 21559
8284b0c5 21560
21d1c967 21561 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
21562 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
21563echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
21564 fi
21565
21566 case "$wx_cv_lib_gtk" in
21567 2.0) WXGTK20=1
2b5f62a0 21568 TOOLKIT_VERSION=2
21d1c967
GD
21569 ;;
21570 1.2.7) WXGTK127=1
21571 WXGTK12=1
21572 ;;
21573 1.2.3) WXGTK12=1
21574 ;;
e6cc62c6
VS
21575 *) { { echo "$as_me:$LINENO: error:
21576Please check that gtk-config is in path, the directory
21577where GTK+ libraries are installed (returned by
21578'gtk-config --libs' command) is in LD_LIBRARY_PATH or
21579equivalent variable and GTK+ is version 1.2.3 or above.
21580 " >&5
21581echo "$as_me: error:
247f5006
VZ
21582Please check that gtk-config is in path, the directory
21583where GTK+ libraries are installed (returned by
21584'gtk-config --libs' command) is in LD_LIBRARY_PATH or
21585equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
21586 " >&2;}
21587 { (exit 1); exit 1; }; }
21d1c967
GD
21588 ;;
21589 esac
21590
b13cd66e
VZ
21591 if test "$WXGTK20" = 1; then
21592 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 21593
f09359cf
VS
21594 succeeded=no
21595
21596 if test -z "$PKG_CONFIG"; then
21597 # Extract the first word of "pkg-config", so it can be a program name with args.
21598set dummy pkg-config; ac_word=$2
e6cc62c6
VS
21599echo "$as_me:$LINENO: checking for $ac_word" >&5
21600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21601if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21602 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 21603else
e6cc62c6
VS
21604 case $PKG_CONFIG in
21605 [\\/]* | ?:[\\/]*)
f09359cf
VS
21606 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21607 ;;
f09359cf 21608 *)
e6cc62c6
VS
21609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21610for as_dir in $PATH
21611do
21612 IFS=$as_save_IFS
21613 test -z "$as_dir" && as_dir=.
21614 for ac_exec_ext in '' $ac_executable_extensions; do
21615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21616 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21618 break 2
21619 fi
21620done
21621done
21622
f09359cf
VS
21623 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21624 ;;
21625esac
21626fi
e6cc62c6
VS
21627PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21628
f09359cf 21629if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
21630 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21631echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 21632else
e6cc62c6
VS
21633 echo "$as_me:$LINENO: result: no" >&5
21634echo "${ECHO_T}no" >&6
f09359cf
VS
21635fi
21636
21637 fi
21638
21639 if test "$PKG_CONFIG" = "no" ; then
21640 echo "*** The pkg-config script could not be found. Make sure it is"
21641 echo "*** in your path, or set the PKG_CONFIG environment variable"
21642 echo "*** to the full path to pkg-config."
21643 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21644 else
21645 PKG_CONFIG_MIN_VERSION=0.9.0
21646 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
21647 echo "$as_me:$LINENO: checking for pangoft2" >&5
21648echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
21649
21650 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
21651 echo "$as_me:$LINENO: result: yes" >&5
21652echo "${ECHO_T}yes" >&6
f09359cf
VS
21653 succeeded=yes
21654
e6cc62c6
VS
21655 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
21656echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 21657 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
21658 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
21659echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 21660
e6cc62c6
VS
21661 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
21662echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 21663 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
21664 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
21665echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
21666 else
21667 PANGOFT2_CFLAGS=""
21668 PANGOFT2_LIBS=""
e6cc62c6 21669 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
21670 ## do set a variable so people can do so.
21671 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 21672
f09359cf
VS
21673 fi
21674
e6cc62c6
VS
21675
21676
f09359cf
VS
21677 else
21678 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21679 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21680 fi
21681 fi
21682
21683 if test $succeeded = yes; then
e6cc62c6 21684
b13cd66e 21685 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 21686 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 21687
f09359cf 21688 else
e6cc62c6
VS
21689
21690 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
21691echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 21692 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
21693
21694
f09359cf
VS
21695 fi
21696
b13cd66e 21697 fi
2b5f62a0
VZ
21698 else
21699 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
21700 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
21701echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
21702 wxUSE_UNICODE=no
21703 fi
21704 fi
21705
21706 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
21707
21708for ac_func in poll
2b5f62a0 21709do
e6cc62c6
VS
21710as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21711echo "$as_me:$LINENO: checking for $ac_func" >&5
21712echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21713if eval "test \"\${$as_ac_var+set}\" = set"; then
21714 echo $ECHO_N "(cached) $ECHO_C" >&6
21715else
21716 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21717#line $LINENO "configure"
e6cc62c6
VS
21718/* confdefs.h. */
21719_ACEOF
21720cat confdefs.h >>conftest.$ac_ext
21721cat >>conftest.$ac_ext <<_ACEOF
21722/* end confdefs.h. */
2b5f62a0 21723/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21724 which can conflict with char $ac_func (); below.
21725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21726 <limits.h> exists even on freestanding compilers. */
21727#ifdef __STDC__
21728# include <limits.h>
21729#else
21730# include <assert.h>
21731#endif
2b5f62a0 21732/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21733#ifdef __cplusplus
21734extern "C"
21735{
21736#endif
2b5f62a0 21737/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21738 builtin and then its argument prototype would still apply. */
21739char $ac_func ();
2b5f62a0
VZ
21740/* The GNU C library defines this for functions which it implements
21741 to always fail with ENOSYS. Some functions are actually named
21742 something starting with __ and the normal name is an alias. */
21743#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21744choke me
21745#else
e6cc62c6
VS
21746char (*f) () = $ac_func;
21747#endif
21748#ifdef __cplusplus
21749}
2b5f62a0
VZ
21750#endif
21751
e6cc62c6
VS
21752int
21753main ()
21754{
21755return f != $ac_func;
21756 ;
21757 return 0;
21758}
21759_ACEOF
21760rm -f conftest.$ac_objext conftest$ac_exeext
21761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 21762 (eval $ac_link) 2>&5
e6cc62c6
VS
21763 ac_status=$?
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } &&
789c5f4a 21766 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768 (eval $ac_try) 2>&5
21769 ac_status=$?
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; }; then
21772 eval "$as_ac_var=yes"
21773else
21774 echo "$as_me: failed program was:" >&5
21775sed 's/^/| /' conftest.$ac_ext >&5
21776
21777eval "$as_ac_var=no"
21778fi
789c5f4a 21779rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
21780fi
21781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21782echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21783if test `eval echo '${'$as_ac_var'}'` = yes; then
21784 cat >>confdefs.h <<_ACEOF
21785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21786_ACEOF
2b5f62a0 21787
2b5f62a0
VZ
21788fi
21789done
21790
f09359cf
VS
21791 fi
21792
21d1c967 21793 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 21794 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
21795
21796 AFMINSTALL=afminstall
21797 TOOLKIT=GTK
21798 GUIDIST=GTK_DIST
21799
e6cc62c6
VS
21800 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21801echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21802if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21803 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21804else
e6cc62c6 21805 ac_check_lib_save_LIBS=$LIBS
21d1c967 21806LIBS="-lgdk $LIBS"
e6cc62c6 21807cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21808#line $LINENO "configure"
e6cc62c6
VS
21809/* confdefs.h. */
21810_ACEOF
21811cat confdefs.h >>conftest.$ac_ext
21812cat >>conftest.$ac_ext <<_ACEOF
21813/* end confdefs.h. */
21814
5c6fa7d2 21815/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21816#ifdef __cplusplus
21817extern "C"
21818#endif
5c6fa7d2 21819/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21820 builtin and then its argument prototype would still apply. */
21821char gdk_im_open ();
21822int
21823main ()
21824{
21825gdk_im_open ();
21826 ;
21827 return 0;
21828}
21829_ACEOF
21830rm -f conftest.$ac_objext conftest$ac_exeext
21831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 21832 (eval $ac_link) 2>&5
e6cc62c6
VS
21833 ac_status=$?
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); } &&
789c5f4a 21836 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838 (eval $ac_try) 2>&5
21839 ac_status=$?
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); }; }; then
21842 ac_cv_lib_gdk_gdk_im_open=yes
21843else
21844 echo "$as_me: failed program was:" >&5
21845sed 's/^/| /' conftest.$ac_ext >&5
21846
21847ac_cv_lib_gdk_gdk_im_open=no
21848fi
789c5f4a 21849rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
21850LIBS=$ac_check_lib_save_LIBS
21851fi
21852echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21853echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21854if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21855 cat >>confdefs.h <<\_ACEOF
21d1c967 21856#define HAVE_XIM 1
e6cc62c6 21857_ACEOF
21d1c967 21858
90dd450c 21859fi
1e6feb95 21860
21d1c967 21861 fi
1e6feb95 21862
21d1c967 21863 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
21864 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21865echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 21866 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
21867 echo "$as_me:$LINENO: result: not found" >&5
21868echo "${ECHO_T}not found" >&6
21869 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21870echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21871 { (exit 1); exit 1; }; }
21d1c967 21872 else
e6cc62c6
VS
21873 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21874echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
21875 fi
21876
e6cc62c6
VS
21877 echo "$as_me:$LINENO: checking for libmgl location" >&5
21878echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 21879 case "${host}" in
21d1c967 21880 *-*-linux* )
e46d2a18
VS
21881 if test "x$wxUSE_SHARED" = xyes ; then
21882 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 21883 else
e46d2a18 21884 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 21885 fi
21d1c967
GD
21886 ;;
21887 *-pc-msdosdjgpp )
63a76696 21888 mgl_os_candidates="dos32/dj2"
21d1c967
GD
21889 ;;
21890 *)
e6cc62c6
VS
21891 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21892echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21893 { (exit 1); exit 1; }; }
21d1c967 21894 esac
1e6feb95 21895
21d1c967 21896 mgl_lib_type=""
63a76696
VS
21897 mgl_os=""
21898
21899 for mgl_os_i in $mgl_os_candidates ; do
21900 if test "x$mgl_os" = x ; then
21901 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21902 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21903 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21904 mgl_lib_type=debug
21905 mgl_os=$mgl_os_i
21906 fi
21907 fi
21908 if test "x$mgl_lib_type" = x ; then
21909 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21910 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21911 mgl_lib_type=release
21912 mgl_os=$mgl_os_i
21913 fi
21914 fi
21d1c967 21915 fi
63a76696 21916 done
2224580a 21917
63a76696 21918 if test "x$mgl_os" = x ; then
e6cc62c6
VS
21919 echo "$as_me:$LINENO: result: not found" >&5
21920echo "${ECHO_T}not found" >&6
21921 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21922echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21923 { (exit 1); exit 1; }; }
63a76696 21924 fi
e6cc62c6
VS
21925 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21926echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 21927
1d1b75ac
VZ
21928 wxUSE_UNIVERSAL="yes"
21929
21d1c967
GD
21930 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21931 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21932
90dd450c 21933 AFMINSTALL=afminstall
21d1c967
GD
21934 TOOLKIT=MGL
21935 GUIDIST=MGL_DIST
21936 fi
dad6c0ea 21937
21d1c967 21938 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
21939 echo "$as_me:$LINENO: checking for MicroWindows" >&5
21940echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 21941 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
21942 echo "$as_me:$LINENO: result: not found" >&5
21943echo "${ECHO_T}not found" >&6
21944 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21945echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21946 { (exit 1); exit 1; }; }
21d1c967 21947 else
e6cc62c6
VS
21948 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21949echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 21950 fi
f6bcfd97 21951
21d1c967 21952 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
21953 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21954echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 21955 else
e6cc62c6
VS
21956 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21957echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21958 { (exit 1); exit 1; }; }
90dd450c 21959 fi
0b2effe9 21960
21d1c967
GD
21961 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21962 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21963
1d1b75ac
VZ
21964 wxUSE_UNIVERSAL="yes"
21965
21d1c967
GD
21966 AFMINSTALL=afminstall
21967 TOOLKIT=MICROWIN
21968 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21969
21970 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21971 fi
f6bcfd97 21972
21d1c967 21973 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21974 echo "$as_me:$LINENO: checking for X" >&5
21975echo $ECHO_N "checking for X... $ECHO_C" >&6
21976
d8356fa3 21977
21d1c967
GD
21978# Check whether --with-x or --without-x was given.
21979if test "${with_x+set}" = set; then
21980 withval="$with_x"
2224580a 21981
e6cc62c6 21982fi;
21d1c967
GD
21983# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21984if test "x$with_x" = xno; then
21985 # The user explicitly disabled X.
21986 have_x=disabled
21987else
21988 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21989 # Both variables are already set.
21990 have_x=yes
21991 else
e6cc62c6
VS
21992 if test "${ac_cv_have_x+set}" = set; then
21993 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
21994else
21995 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
21996ac_x_includes=no ac_x_libraries=no
21997rm -fr conftest.dir
21998if mkdir conftest.dir; then
21999 cd conftest.dir
21d1c967 22000 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 22001 cat >Imakefile <<'_ACEOF'
21d1c967
GD
22002acfindx:
22003 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 22004_ACEOF
21d1c967
GD
22005 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22006 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22007 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22008 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22009 for ac_extension in a so sl; do
22010 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
789c5f4a
VZ
22011 test -f $ac_im_libdir/libX11.$ac_extension; then
22012 ac_im_usrlibdir=$ac_im_libdir; break
21d1c967
GD
22013 fi
22014 done
22015 # Screen out bogus values from the imake configuration. They are
22016 # bogus both because they are the default anyway, and because
22017 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 22018 case $ac_im_incroot in
21d1c967 22019 /usr/include) ;;
e6cc62c6 22020 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 22021 esac
e6cc62c6 22022 case $ac_im_usrlibdir in
21d1c967 22023 /usr/lib | /lib) ;;
e6cc62c6 22024 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
22025 esac
22026 fi
22027 cd ..
e6cc62c6 22028 rm -fr conftest.dir
21d1c967 22029fi
10f2d63a 22030
e6cc62c6
VS
22031# Standard set of common directories for X headers.
22032# Check X11 before X11Rn because it is often a symlink to the current release.
22033ac_x_header_dirs='
22034/usr/X11/include
22035/usr/X11R6/include
22036/usr/X11R5/include
22037/usr/X11R4/include
22038
22039/usr/include/X11
22040/usr/include/X11R6
22041/usr/include/X11R5
22042/usr/include/X11R4
22043
22044/usr/local/X11/include
22045/usr/local/X11R6/include
22046/usr/local/X11R5/include
22047/usr/local/X11R4/include
22048
22049/usr/local/include/X11
22050/usr/local/include/X11R6
22051/usr/local/include/X11R5
22052/usr/local/include/X11R4
22053
22054/usr/X386/include
22055/usr/x386/include
22056/usr/XFree86/include/X11
22057
22058/usr/include
22059/usr/local/include
22060/usr/unsupported/include
22061/usr/athena/include
22062/usr/local/x11r5/include
22063/usr/lpp/Xamples/include
22064
22065/usr/openwin/include
22066/usr/openwin/share/include'
22067
22068if test "$ac_x_includes" = no; then
22069 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 22070 # First, try using that file with no special directory specified.
e6cc62c6 22071 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22072#line $LINENO "configure"
e6cc62c6
VS
22073/* confdefs.h. */
22074_ACEOF
22075cat confdefs.h >>conftest.$ac_ext
22076cat >>conftest.$ac_ext <<_ACEOF
22077/* end confdefs.h. */
22078#include <X11/Intrinsic.h>
22079_ACEOF
22080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22082 ac_status=$?
22083 grep -v '^ *+' conftest.er1 >conftest.err
22084 rm -f conftest.er1
22085 cat conftest.err >&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } >/dev/null; then
22088 if test -s conftest.err; then
22089 ac_cpp_err=$ac_c_preproc_warn_flag
22090 else
22091 ac_cpp_err=
22092 fi
22093else
22094 ac_cpp_err=yes
22095fi
22096if test -z "$ac_cpp_err"; then
21d1c967
GD
22097 # We can compile using X headers with no special include directory.
22098ac_x_includes=
90dd450c 22099else
e6cc62c6
VS
22100 echo "$as_me: failed program was:" >&5
22101sed 's/^/| /' conftest.$ac_ext >&5
22102
22103 for ac_dir in $ac_x_header_dirs; do
22104 if test -r "$ac_dir/X11/Intrinsic.h"; then
22105 ac_x_includes=$ac_dir
22106 break
22107 fi
22108done
3a922bb4 22109fi
e6cc62c6
VS
22110rm -f conftest.err conftest.$ac_ext
22111fi # $ac_x_includes = no
10f2d63a 22112
e6cc62c6 22113if test "$ac_x_libraries" = no; then
21d1c967 22114 # Check for the libraries.
21d1c967
GD
22115 # See if we find them without any special options.
22116 # Don't add to $LIBS permanently.
e6cc62c6
VS
22117 ac_save_LIBS=$LIBS
22118 LIBS="-lXt $LIBS"
22119 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22120#line $LINENO "configure"
e6cc62c6
VS
22121/* confdefs.h. */
22122_ACEOF
22123cat confdefs.h >>conftest.$ac_ext
22124cat >>conftest.$ac_ext <<_ACEOF
22125/* end confdefs.h. */
22126#include <X11/Intrinsic.h>
22127int
22128main ()
22129{
22130XtMalloc (0)
22131 ;
22132 return 0;
22133}
22134_ACEOF
22135rm -f conftest.$ac_objext conftest$ac_exeext
22136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22137 (eval $ac_link) 2>&5
e6cc62c6
VS
22138 ac_status=$?
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } &&
789c5f4a 22141 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143 (eval $ac_try) 2>&5
22144 ac_status=$?
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); }; }; then
22147 LIBS=$ac_save_LIBS
21d1c967
GD
22148# We can link X programs with no special library path.
22149ac_x_libraries=
3a922bb4 22150else
e6cc62c6
VS
22151 echo "$as_me: failed program was:" >&5
22152sed 's/^/| /' conftest.$ac_ext >&5
22153
22154LIBS=$ac_save_LIBS
22155for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 22156do
e6cc62c6 22157 # Don't even attempt the hair of trying to link an X program!
21d1c967 22158 for ac_extension in a so sl; do
e6cc62c6 22159 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
22160 ac_x_libraries=$ac_dir
22161 break 2
22162 fi
22163 done
22164done
3a922bb4 22165fi
789c5f4a 22166rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6 22167fi # $ac_x_libraries = no
90dd450c 22168
e6cc62c6 22169if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
22170 # Didn't find X anywhere. Cache the known absence of X.
22171 ac_cv_have_x="have_x=no"
22172else
22173 # Record where we found X for the cache.
22174 ac_cv_have_x="have_x=yes \
789c5f4a 22175 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 22176fi
21d1c967 22177fi
e6cc62c6 22178
21d1c967
GD
22179 fi
22180 eval "$ac_cv_have_x"
22181fi # $with_x != no
90dd450c 22182
21d1c967 22183if test "$have_x" != yes; then
e6cc62c6
VS
22184 echo "$as_me:$LINENO: result: $have_x" >&5
22185echo "${ECHO_T}$have_x" >&6
21d1c967
GD
22186 no_x=yes
22187else
22188 # If each of the values was on the command line, it overrides each guess.
22189 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22190 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22191 # Update the cache value to reflect the command line values.
22192 ac_cv_have_x="have_x=yes \
22193 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
22194 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22195echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 22196fi
90dd450c 22197
21d1c967 22198if test "$no_x" = yes; then
90dd450c 22199 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22200
22201cat >>confdefs.h <<\_ACEOF
90dd450c 22202#define X_DISPLAY_MISSING 1
e6cc62c6 22203_ACEOF
90dd450c
VZ
22204
22205 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22206else
22207 if test -n "$x_includes"; then
22208 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 22209 fi
3a922bb4 22210
90dd450c
VZ
22211 # It would also be nice to do this for all -L options, not just this one.
22212 if test -n "$x_libraries"; then
22213 X_LIBS="$X_LIBS -L$x_libraries"
22214 # For Solaris; some versions of Sun CC require a space after -R and
22215 # others require no space. Words are not sufficient . . . .
e6cc62c6 22216 case `(uname -sr) 2>/dev/null` in
90dd450c 22217 "SunOS 5"*)
e6cc62c6
VS
22218 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22219echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22220 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22221 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22222#line $LINENO "configure"
e6cc62c6
VS
22223/* confdefs.h. */
22224_ACEOF
22225cat confdefs.h >>conftest.$ac_ext
22226cat >>conftest.$ac_ext <<_ACEOF
22227/* end confdefs.h. */
22228
22229int
22230main ()
22231{
90dd450c 22232
e6cc62c6
VS
22233 ;
22234 return 0;
22235}
22236_ACEOF
22237rm -f conftest.$ac_objext conftest$ac_exeext
22238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22239 (eval $ac_link) 2>&5
e6cc62c6
VS
22240 ac_status=$?
22241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } &&
789c5f4a 22243 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245 (eval $ac_try) 2>&5
22246 ac_status=$?
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); }; }; then
90dd450c 22249 ac_R_nospace=yes
3a922bb4 22250else
e6cc62c6
VS
22251 echo "$as_me: failed program was:" >&5
22252sed 's/^/| /' conftest.$ac_ext >&5
22253
22254ac_R_nospace=no
3a922bb4 22255fi
789c5f4a 22256rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 22257 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22258 echo "$as_me:$LINENO: result: no" >&5
22259echo "${ECHO_T}no" >&6
90dd450c
VZ
22260 X_LIBS="$X_LIBS -R$x_libraries"
22261 else
22262 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 22263 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22264#line $LINENO "configure"
e6cc62c6
VS
22265/* confdefs.h. */
22266_ACEOF
22267cat confdefs.h >>conftest.$ac_ext
22268cat >>conftest.$ac_ext <<_ACEOF
22269/* end confdefs.h. */
22270
22271int
22272main ()
22273{
6f754473 22274
e6cc62c6
VS
22275 ;
22276 return 0;
22277}
22278_ACEOF
22279rm -f conftest.$ac_objext conftest$ac_exeext
22280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22281 (eval $ac_link) 2>&5
e6cc62c6
VS
22282 ac_status=$?
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } &&
789c5f4a 22285 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287 (eval $ac_try) 2>&5
22288 ac_status=$?
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; }; then
90dd450c
VZ
22291 ac_R_space=yes
22292else
e6cc62c6
VS
22293 echo "$as_me: failed program was:" >&5
22294sed 's/^/| /' conftest.$ac_ext >&5
22295
22296ac_R_space=no
90dd450c 22297fi
789c5f4a 22298rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 22299 if test $ac_R_space = yes; then
e6cc62c6
VS
22300 echo "$as_me:$LINENO: result: yes" >&5
22301echo "${ECHO_T}yes" >&6
90dd450c
VZ
22302 X_LIBS="$X_LIBS -R $x_libraries"
22303 else
e6cc62c6
VS
22304 echo "$as_me:$LINENO: result: neither works" >&5
22305echo "${ECHO_T}neither works" >&6
90dd450c
VZ
22306 fi
22307 fi
e6cc62c6 22308 LIBS=$ac_xsave_LIBS
90dd450c
VZ
22309 esac
22310 fi
22311
22312 # Check for system-dependent libraries X programs must link with.
22313 # Do this before checking for the system-independent R6 libraries
22314 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 22315
90dd450c
VZ
22316 if test "$ISC" = yes; then
22317 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22318 else
e6cc62c6
VS
22319 # Martyn Johnson says this is needed for Ultrix, if the X
22320 # libraries were built with DECnet support. And Karl Berry says
90dd450c 22321 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22322 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22323 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22324#line $LINENO "configure"
e6cc62c6
VS
22325/* confdefs.h. */
22326_ACEOF
22327cat confdefs.h >>conftest.$ac_ext
22328cat >>conftest.$ac_ext <<_ACEOF
22329/* end confdefs.h. */
22330
247f5006 22331/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22332#ifdef __cplusplus
22333extern "C"
22334#endif
247f5006 22335/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22336 builtin and then its argument prototype would still apply. */
22337char XOpenDisplay ();
22338int
22339main ()
22340{
22341XOpenDisplay ();
22342 ;
22343 return 0;
22344}
22345_ACEOF
22346rm -f conftest.$ac_objext conftest$ac_exeext
22347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22348 (eval $ac_link) 2>&5
e6cc62c6
VS
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); } &&
789c5f4a 22352 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22354 (eval $ac_try) 2>&5
22355 ac_status=$?
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); }; }; then
22358 :
22359else
22360 echo "$as_me: failed program was:" >&5
22361sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 22362
e6cc62c6
VS
22363echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22364echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22365if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22366 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22367else
e6cc62c6
VS
22368 ac_check_lib_save_LIBS=$LIBS
22369LIBS="-ldnet $LIBS"
22370cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22371#line $LINENO "configure"
e6cc62c6
VS
22372/* confdefs.h. */
22373_ACEOF
22374cat confdefs.h >>conftest.$ac_ext
22375cat >>conftest.$ac_ext <<_ACEOF
22376/* end confdefs.h. */
a0b9e27f 22377
e6cc62c6
VS
22378/* Override any gcc2 internal prototype to avoid an error. */
22379#ifdef __cplusplus
22380extern "C"
22381#endif
22382/* We use char because int might match the return type of a gcc2
22383 builtin and then its argument prototype would still apply. */
22384char dnet_ntoa ();
22385int
22386main ()
22387{
22388dnet_ntoa ();
22389 ;
22390 return 0;
22391}
22392_ACEOF
22393rm -f conftest.$ac_objext conftest$ac_exeext
22394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22395 (eval $ac_link) 2>&5
e6cc62c6
VS
22396 ac_status=$?
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); } &&
789c5f4a 22399 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401 (eval $ac_try) 2>&5
22402 ac_status=$?
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); }; }; then
22405 ac_cv_lib_dnet_dnet_ntoa=yes
22406else
22407 echo "$as_me: failed program was:" >&5
22408sed 's/^/| /' conftest.$ac_ext >&5
22409
22410ac_cv_lib_dnet_dnet_ntoa=no
22411fi
789c5f4a 22412rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22413LIBS=$ac_check_lib_save_LIBS
22414fi
22415echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22416echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22417if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 22418 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
22419fi
22420
90dd450c 22421 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
22422 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22423echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22424if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22425 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22426else
e6cc62c6 22427 ac_check_lib_save_LIBS=$LIBS
90dd450c 22428LIBS="-ldnet_stub $LIBS"
e6cc62c6 22429cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22430#line $LINENO "configure"
e6cc62c6
VS
22431/* confdefs.h. */
22432_ACEOF
22433cat confdefs.h >>conftest.$ac_ext
22434cat >>conftest.$ac_ext <<_ACEOF
22435/* end confdefs.h. */
22436
90dd450c 22437/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22438#ifdef __cplusplus
22439extern "C"
22440#endif
90dd450c 22441/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22442 builtin and then its argument prototype would still apply. */
22443char dnet_ntoa ();
22444int
22445main ()
22446{
22447dnet_ntoa ();
22448 ;
22449 return 0;
22450}
22451_ACEOF
22452rm -f conftest.$ac_objext conftest$ac_exeext
22453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22454 (eval $ac_link) 2>&5
e6cc62c6
VS
22455 ac_status=$?
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } &&
789c5f4a 22458 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22461 ac_status=$?
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; }; then
22464 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22465else
22466 echo "$as_me: failed program was:" >&5
22467sed 's/^/| /' conftest.$ac_ext >&5
22468
22469ac_cv_lib_dnet_stub_dnet_ntoa=no
22470fi
789c5f4a 22471rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22472LIBS=$ac_check_lib_save_LIBS
22473fi
22474echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22475echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22476if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 22477 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
22478fi
22479
90dd450c 22480 fi
e6cc62c6 22481fi
789c5f4a 22482rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6 22483 LIBS="$ac_xsave_LIBS"
978f1259 22484
90dd450c
VZ
22485 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22486 # to get the SysV transport functions.
e6cc62c6 22487 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
22488 # needs -lnsl.
22489 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
22490 # on Irix 5.2, according to T.E. Dickey.
22491 # The functions gethostbyname, getservbyname, and inet_addr are
22492 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22493 echo "$as_me:$LINENO: checking for gethostbyname" >&5
22494echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
22495if test "${ac_cv_func_gethostbyname+set}" = set; then
22496 echo $ECHO_N "(cached) $ECHO_C" >&6
22497else
22498 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22499#line $LINENO "configure"
e6cc62c6
VS
22500/* confdefs.h. */
22501_ACEOF
22502cat confdefs.h >>conftest.$ac_ext
22503cat >>conftest.$ac_ext <<_ACEOF
22504/* end confdefs.h. */
90dd450c 22505/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22506 which can conflict with char gethostbyname (); below.
22507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22508 <limits.h> exists even on freestanding compilers. */
22509#ifdef __STDC__
22510# include <limits.h>
22511#else
22512# include <assert.h>
22513#endif
90dd450c 22514/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22515#ifdef __cplusplus
22516extern "C"
22517{
22518#endif
90dd450c 22519/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22520 builtin and then its argument prototype would still apply. */
22521char gethostbyname ();
90dd450c
VZ
22522/* The GNU C library defines this for functions which it implements
22523 to always fail with ENOSYS. Some functions are actually named
22524 something starting with __ and the normal name is an alias. */
22525#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22526choke me
22527#else
e6cc62c6
VS
22528char (*f) () = gethostbyname;
22529#endif
22530#ifdef __cplusplus
22531}
90dd450c 22532#endif
978f1259 22533
e6cc62c6
VS
22534int
22535main ()
22536{
22537return f != gethostbyname;
22538 ;
22539 return 0;
22540}
22541_ACEOF
22542rm -f conftest.$ac_objext conftest$ac_exeext
22543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22544 (eval $ac_link) 2>&5
e6cc62c6
VS
22545 ac_status=$?
22546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); } &&
789c5f4a 22548 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22550 (eval $ac_try) 2>&5
22551 ac_status=$?
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); }; }; then
22554 ac_cv_func_gethostbyname=yes
22555else
22556 echo "$as_me: failed program was:" >&5
22557sed 's/^/| /' conftest.$ac_ext >&5
22558
22559ac_cv_func_gethostbyname=no
22560fi
789c5f4a 22561rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22562fi
22563echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22564echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 22565
90dd450c 22566 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
22567 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22568echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22569if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22570 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22571else
e6cc62c6 22572 ac_check_lib_save_LIBS=$LIBS
90dd450c 22573LIBS="-lnsl $LIBS"
e6cc62c6 22574cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22575#line $LINENO "configure"
e6cc62c6
VS
22576/* confdefs.h. */
22577_ACEOF
22578cat confdefs.h >>conftest.$ac_ext
22579cat >>conftest.$ac_ext <<_ACEOF
22580/* end confdefs.h. */
22581
90dd450c 22582/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22583#ifdef __cplusplus
22584extern "C"
22585#endif
90dd450c 22586/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22587 builtin and then its argument prototype would still apply. */
22588char gethostbyname ();
22589int
22590main ()
22591{
22592gethostbyname ();
22593 ;
22594 return 0;
22595}
22596_ACEOF
22597rm -f conftest.$ac_objext conftest$ac_exeext
22598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22599 (eval $ac_link) 2>&5
e6cc62c6
VS
22600 ac_status=$?
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } &&
789c5f4a 22603 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22605 (eval $ac_try) 2>&5
22606 ac_status=$?
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); }; }; then
22609 ac_cv_lib_nsl_gethostbyname=yes
22610else
22611 echo "$as_me: failed program was:" >&5
22612sed 's/^/| /' conftest.$ac_ext >&5
22613
22614ac_cv_lib_nsl_gethostbyname=no
22615fi
789c5f4a 22616rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22617LIBS=$ac_check_lib_save_LIBS
22618fi
22619echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22620echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22621if test $ac_cv_lib_nsl_gethostbyname = yes; then
22622 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 22623fi
247f5006 22624
e6cc62c6 22625 if test $ac_cv_lib_nsl_gethostbyname = no; then
789c5f4a 22626 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
22627echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22628if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22629 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22630else
e6cc62c6
VS
22631 ac_check_lib_save_LIBS=$LIBS
22632LIBS="-lbsd $LIBS"
22633cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22634#line $LINENO "configure"
e6cc62c6
VS
22635/* confdefs.h. */
22636_ACEOF
22637cat confdefs.h >>conftest.$ac_ext
22638cat >>conftest.$ac_ext <<_ACEOF
22639/* end confdefs.h. */
22640
22641/* Override any gcc2 internal prototype to avoid an error. */
22642#ifdef __cplusplus
22643extern "C"
22644#endif
22645/* We use char because int might match the return type of a gcc2
22646 builtin and then its argument prototype would still apply. */
22647char gethostbyname ();
22648int
22649main ()
22650{
22651gethostbyname ();
22652 ;
22653 return 0;
22654}
22655_ACEOF
22656rm -f conftest.$ac_objext conftest$ac_exeext
22657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22658 (eval $ac_link) 2>&5
e6cc62c6
VS
22659 ac_status=$?
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); } &&
789c5f4a 22662 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664 (eval $ac_try) 2>&5
22665 ac_status=$?
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); }; }; then
22668 ac_cv_lib_bsd_gethostbyname=yes
22669else
22670 echo "$as_me: failed program was:" >&5
22671sed 's/^/| /' conftest.$ac_ext >&5
22672
22673ac_cv_lib_bsd_gethostbyname=no
22674fi
789c5f4a 22675rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22676LIBS=$ac_check_lib_save_LIBS
22677fi
22678echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22679echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
22680if test $ac_cv_lib_bsd_gethostbyname = yes; then
22681 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 22682fi
b12915c1 22683
e6cc62c6 22684 fi
90dd450c
VZ
22685 fi
22686
22687 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22688 # socket/setsockopt and other routines are undefined under SCO ODT
22689 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
22690 # on later versions), says Simon Leinen: it contains gethostby*
22691 # variants that don't use the name server (or something). -lsocket
22692 # must be given before -lnsl if both are needed. We assume that
22693 # if connect needs -lnsl, so does gethostbyname.
22694 echo "$as_me:$LINENO: checking for connect" >&5
22695echo $ECHO_N "checking for connect... $ECHO_C" >&6
22696if test "${ac_cv_func_connect+set}" = set; then
22697 echo $ECHO_N "(cached) $ECHO_C" >&6
22698else
22699 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22700#line $LINENO "configure"
e6cc62c6
VS
22701/* confdefs.h. */
22702_ACEOF
22703cat confdefs.h >>conftest.$ac_ext
22704cat >>conftest.$ac_ext <<_ACEOF
22705/* end confdefs.h. */
90dd450c 22706/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22707 which can conflict with char connect (); below.
22708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22709 <limits.h> exists even on freestanding compilers. */
22710#ifdef __STDC__
22711# include <limits.h>
22712#else
22713# include <assert.h>
22714#endif
90dd450c 22715/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22716#ifdef __cplusplus
22717extern "C"
22718{
22719#endif
90dd450c 22720/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22721 builtin and then its argument prototype would still apply. */
22722char connect ();
90dd450c
VZ
22723/* The GNU C library defines this for functions which it implements
22724 to always fail with ENOSYS. Some functions are actually named
22725 something starting with __ and the normal name is an alias. */
22726#if defined (__stub_connect) || defined (__stub___connect)
22727choke me
22728#else
e6cc62c6
VS
22729char (*f) () = connect;
22730#endif
22731#ifdef __cplusplus
22732}
90dd450c
VZ
22733#endif
22734
e6cc62c6
VS
22735int
22736main ()
22737{
22738return f != connect;
22739 ;
22740 return 0;
22741}
22742_ACEOF
22743rm -f conftest.$ac_objext conftest$ac_exeext
22744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22745 (eval $ac_link) 2>&5
e6cc62c6
VS
22746 ac_status=$?
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } &&
789c5f4a 22749 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22751 (eval $ac_try) 2>&5
22752 ac_status=$?
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); }; }; then
22755 ac_cv_func_connect=yes
22756else
22757 echo "$as_me: failed program was:" >&5
22758sed 's/^/| /' conftest.$ac_ext >&5
22759
22760ac_cv_func_connect=no
22761fi
789c5f4a 22762rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22763fi
22764echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22765echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 22766
90dd450c 22767 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
22768 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22769echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22770if test "${ac_cv_lib_socket_connect+set}" = set; then
22771 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22772else
e6cc62c6 22773 ac_check_lib_save_LIBS=$LIBS
90dd450c 22774LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 22775cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22776#line $LINENO "configure"
e6cc62c6
VS
22777/* confdefs.h. */
22778_ACEOF
22779cat confdefs.h >>conftest.$ac_ext
22780cat >>conftest.$ac_ext <<_ACEOF
22781/* end confdefs.h. */
22782
90dd450c 22783/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22784#ifdef __cplusplus
22785extern "C"
22786#endif
90dd450c 22787/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22788 builtin and then its argument prototype would still apply. */
22789char connect ();
22790int
22791main ()
22792{
22793connect ();
22794 ;
22795 return 0;
22796}
22797_ACEOF
22798rm -f conftest.$ac_objext conftest$ac_exeext
22799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22800 (eval $ac_link) 2>&5
e6cc62c6
VS
22801 ac_status=$?
22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803 (exit $ac_status); } &&
789c5f4a 22804 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22806 (eval $ac_try) 2>&5
22807 ac_status=$?
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); }; }; then
22810 ac_cv_lib_socket_connect=yes
22811else
22812 echo "$as_me: failed program was:" >&5
22813sed 's/^/| /' conftest.$ac_ext >&5
22814
22815ac_cv_lib_socket_connect=no
22816fi
789c5f4a 22817rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22818LIBS=$ac_check_lib_save_LIBS
22819fi
22820echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22821echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22822if test $ac_cv_lib_socket_connect = yes; then
90dd450c 22823 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 22824fi
77e13408 22825
90dd450c 22826 fi
25d0687a 22827
e6cc62c6
VS
22828 # Guillermo Gomez says -lposix is necessary on A/UX.
22829 echo "$as_me:$LINENO: checking for remove" >&5
22830echo $ECHO_N "checking for remove... $ECHO_C" >&6
22831if test "${ac_cv_func_remove+set}" = set; then
22832 echo $ECHO_N "(cached) $ECHO_C" >&6
22833else
22834 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22835#line $LINENO "configure"
e6cc62c6
VS
22836/* confdefs.h. */
22837_ACEOF
22838cat confdefs.h >>conftest.$ac_ext
22839cat >>conftest.$ac_ext <<_ACEOF
22840/* end confdefs.h. */
90dd450c 22841/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22842 which can conflict with char remove (); below.
22843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22844 <limits.h> exists even on freestanding compilers. */
22845#ifdef __STDC__
22846# include <limits.h>
22847#else
22848# include <assert.h>
22849#endif
90dd450c 22850/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22851#ifdef __cplusplus
22852extern "C"
22853{
22854#endif
90dd450c 22855/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22856 builtin and then its argument prototype would still apply. */
22857char remove ();
90dd450c
VZ
22858/* The GNU C library defines this for functions which it implements
22859 to always fail with ENOSYS. Some functions are actually named
22860 something starting with __ and the normal name is an alias. */
22861#if defined (__stub_remove) || defined (__stub___remove)
22862choke me
22863#else
e6cc62c6
VS
22864char (*f) () = remove;
22865#endif
22866#ifdef __cplusplus
22867}
90dd450c 22868#endif
55e80573 22869
e6cc62c6
VS
22870int
22871main ()
22872{
22873return f != remove;
22874 ;
22875 return 0;
22876}
22877_ACEOF
22878rm -f conftest.$ac_objext conftest$ac_exeext
22879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22880 (eval $ac_link) 2>&5
e6cc62c6
VS
22881 ac_status=$?
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); } &&
789c5f4a 22884 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22886 (eval $ac_try) 2>&5
22887 ac_status=$?
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); }; }; then
22890 ac_cv_func_remove=yes
22891else
22892 echo "$as_me: failed program was:" >&5
22893sed 's/^/| /' conftest.$ac_ext >&5
22894
22895ac_cv_func_remove=no
22896fi
789c5f4a 22897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22898fi
22899echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22900echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 22901
90dd450c 22902 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
22903 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22904echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22905if test "${ac_cv_lib_posix_remove+set}" = set; then
22906 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22907else
e6cc62c6 22908 ac_check_lib_save_LIBS=$LIBS
90dd450c 22909LIBS="-lposix $LIBS"
e6cc62c6 22910cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22911#line $LINENO "configure"
e6cc62c6
VS
22912/* confdefs.h. */
22913_ACEOF
22914cat confdefs.h >>conftest.$ac_ext
22915cat >>conftest.$ac_ext <<_ACEOF
22916/* end confdefs.h. */
22917
90dd450c 22918/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22919#ifdef __cplusplus
22920extern "C"
22921#endif
90dd450c 22922/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22923 builtin and then its argument prototype would still apply. */
22924char remove ();
22925int
22926main ()
22927{
22928remove ();
22929 ;
22930 return 0;
22931}
22932_ACEOF
22933rm -f conftest.$ac_objext conftest$ac_exeext
22934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22935 (eval $ac_link) 2>&5
e6cc62c6
VS
22936 ac_status=$?
22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); } &&
789c5f4a 22939 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941 (eval $ac_try) 2>&5
22942 ac_status=$?
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; }; then
22945 ac_cv_lib_posix_remove=yes
22946else
22947 echo "$as_me: failed program was:" >&5
22948sed 's/^/| /' conftest.$ac_ext >&5
22949
22950ac_cv_lib_posix_remove=no
22951fi
789c5f4a 22952rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22953LIBS=$ac_check_lib_save_LIBS
22954fi
22955echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22956echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22957if test $ac_cv_lib_posix_remove = yes; then
90dd450c 22958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 22959fi
f6bcfd97 22960
6fa882bd
RR
22961 fi
22962
90dd450c 22963 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
22964 echo "$as_me:$LINENO: checking for shmat" >&5
22965echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22966if test "${ac_cv_func_shmat+set}" = set; then
22967 echo $ECHO_N "(cached) $ECHO_C" >&6
22968else
22969 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22970#line $LINENO "configure"
e6cc62c6
VS
22971/* confdefs.h. */
22972_ACEOF
22973cat confdefs.h >>conftest.$ac_ext
22974cat >>conftest.$ac_ext <<_ACEOF
22975/* end confdefs.h. */
90dd450c 22976/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22977 which can conflict with char shmat (); below.
22978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22979 <limits.h> exists even on freestanding compilers. */
22980#ifdef __STDC__
22981# include <limits.h>
22982#else
22983# include <assert.h>
22984#endif
90dd450c 22985/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22986#ifdef __cplusplus
22987extern "C"
22988{
22989#endif
90dd450c 22990/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22991 builtin and then its argument prototype would still apply. */
22992char shmat ();
90dd450c
VZ
22993/* The GNU C library defines this for functions which it implements
22994 to always fail with ENOSYS. Some functions are actually named
22995 something starting with __ and the normal name is an alias. */
22996#if defined (__stub_shmat) || defined (__stub___shmat)
22997choke me
22998#else
e6cc62c6
VS
22999char (*f) () = shmat;
23000#endif
23001#ifdef __cplusplus
23002}
90dd450c 23003#endif
10f2d63a 23004
e6cc62c6
VS
23005int
23006main ()
23007{
23008return f != shmat;
23009 ;
23010 return 0;
23011}
23012_ACEOF
23013rm -f conftest.$ac_objext conftest$ac_exeext
23014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23015 (eval $ac_link) 2>&5
e6cc62c6
VS
23016 ac_status=$?
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); } &&
789c5f4a 23019 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021 (eval $ac_try) 2>&5
23022 ac_status=$?
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; }; then
23025 ac_cv_func_shmat=yes
23026else
23027 echo "$as_me: failed program was:" >&5
23028sed 's/^/| /' conftest.$ac_ext >&5
23029
23030ac_cv_func_shmat=no
23031fi
789c5f4a 23032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23033fi
23034echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23035echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 23036
90dd450c 23037 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23038 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23039echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23040if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23041 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 23042else
e6cc62c6 23043 ac_check_lib_save_LIBS=$LIBS
90dd450c 23044LIBS="-lipc $LIBS"
e6cc62c6 23045cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23046#line $LINENO "configure"
e6cc62c6
VS
23047/* confdefs.h. */
23048_ACEOF
23049cat confdefs.h >>conftest.$ac_ext
23050cat >>conftest.$ac_ext <<_ACEOF
23051/* end confdefs.h. */
23052
8284b0c5 23053/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23054#ifdef __cplusplus
23055extern "C"
23056#endif
90dd450c 23057/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23058 builtin and then its argument prototype would still apply. */
23059char shmat ();
23060int
23061main ()
23062{
23063shmat ();
23064 ;
23065 return 0;
23066}
23067_ACEOF
23068rm -f conftest.$ac_objext conftest$ac_exeext
23069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23070 (eval $ac_link) 2>&5
e6cc62c6
VS
23071 ac_status=$?
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); } &&
789c5f4a 23074 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076 (eval $ac_try) 2>&5
23077 ac_status=$?
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; }; then
23080 ac_cv_lib_ipc_shmat=yes
23081else
23082 echo "$as_me: failed program was:" >&5
23083sed 's/^/| /' conftest.$ac_ext >&5
23084
23085ac_cv_lib_ipc_shmat=no
23086fi
789c5f4a 23087rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23088LIBS=$ac_check_lib_save_LIBS
23089fi
23090echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23091echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23092if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 23093 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
23094fi
23095
d558c907 23096 fi
90dd450c 23097 fi
3a922bb4 23098
90dd450c 23099 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23100 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
23101 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23102 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23103 # check for ICE first), but we must link in the order -lSM -lICE or
23104 # we get undefined symbols. So assume we have SM if we have ICE.
23105 # These have to be linked with before -lX11, unlike the other
23106 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23107 # John Interrante, Karl Berry
23108 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23109echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23110if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23112else
23113 ac_check_lib_save_LIBS=$LIBS
f09359cf 23114LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 23115cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23116#line $LINENO "configure"
e6cc62c6
VS
23117/* confdefs.h. */
23118_ACEOF
23119cat confdefs.h >>conftest.$ac_ext
23120cat >>conftest.$ac_ext <<_ACEOF
23121/* end confdefs.h. */
23122
90dd450c 23123/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23124#ifdef __cplusplus
23125extern "C"
23126#endif
90dd450c 23127/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23128 builtin and then its argument prototype would still apply. */
23129char IceConnectionNumber ();
23130int
23131main ()
23132{
23133IceConnectionNumber ();
23134 ;
23135 return 0;
23136}
23137_ACEOF
23138rm -f conftest.$ac_objext conftest$ac_exeext
23139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23140 (eval $ac_link) 2>&5
e6cc62c6
VS
23141 ac_status=$?
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } &&
789c5f4a 23144 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23146 (eval $ac_try) 2>&5
23147 ac_status=$?
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); }; }; then
23150 ac_cv_lib_ICE_IceConnectionNumber=yes
23151else
23152 echo "$as_me: failed program was:" >&5
23153sed 's/^/| /' conftest.$ac_ext >&5
23154
23155ac_cv_lib_ICE_IceConnectionNumber=no
23156fi
789c5f4a 23157rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23158LIBS=$ac_check_lib_save_LIBS
23159fi
23160echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23161echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23162if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 23163 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 23164fi
10f2d63a 23165
e6cc62c6 23166 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
23167
23168fi
23169
8284b0c5 23170
90dd450c 23171 if test "$no_x" = "yes"; then
e6cc62c6
VS
23172 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23173echo "$as_me: error: X11 not found" >&2;}
23174 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
23175 fi
23176
23177 GUI_TK_LIBRARY="$X_LIBS"
23178 TOOLKIT_INCLUDE="$X_CFLAGS"
23179 AFMINSTALL=afminstall
23180 COMPILED_X_PROGRAM=0
23181
21d1c967 23182 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
23183 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
23184echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 23185 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
23186 echo "$as_me:$LINENO: result: not found" >&5
23187echo "${ECHO_T}not found" >&6
23188 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
23189echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
23190 { (exit 1); exit 1; }; }
90dd450c 23191 else
e6cc62c6
VS
23192 echo "$as_me:$LINENO: result: $MICROWIN" >&5
23193echo "${ECHO_T}$MICROWIN" >&6
23194 cat >>confdefs.h <<\_ACEOF
21d1c967 23195#define wxUSE_NANOX 1
e6cc62c6 23196_ACEOF
21d1c967 23197
90dd450c
VZ
23198 fi
23199 fi
23200
2b5f62a0 23201 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 23202
2b5f62a0 23203 succeeded=no
90dd450c 23204
2b5f62a0
VZ
23205 if test -z "$PKG_CONFIG"; then
23206 # Extract the first word of "pkg-config", so it can be a program name with args.
23207set dummy pkg-config; ac_word=$2
e6cc62c6
VS
23208echo "$as_me:$LINENO: checking for $ac_word" >&5
23209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23210if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23211 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23212else
e6cc62c6
VS
23213 case $PKG_CONFIG in
23214 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
23215 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23216 ;;
2b5f62a0 23217 *)
e6cc62c6
VS
23218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23219for as_dir in $PATH
23220do
23221 IFS=$as_save_IFS
23222 test -z "$as_dir" && as_dir=.
23223 for ac_exec_ext in '' $ac_executable_extensions; do
23224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23225 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23227 break 2
23228 fi
23229done
23230done
23231
2b5f62a0
VZ
23232 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23233 ;;
23234esac
23235fi
e6cc62c6
VS
23236PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23237
2b5f62a0 23238if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
23239 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23240echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 23241else
e6cc62c6
VS
23242 echo "$as_me:$LINENO: result: no" >&5
23243echo "${ECHO_T}no" >&6
2b5f62a0
VZ
23244fi
23245
23246 fi
23247
23248 if test "$PKG_CONFIG" = "no" ; then
23249 echo "*** The pkg-config script could not be found. Make sure it is"
23250 echo "*** in your path, or set the PKG_CONFIG environment variable"
23251 echo "*** to the full path to pkg-config."
23252 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23253 else
23254 PKG_CONFIG_MIN_VERSION=0.9.0
23255 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
23256 echo "$as_me:$LINENO: checking for pangox" >&5
23257echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
23258
23259 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
23260 echo "$as_me:$LINENO: result: yes" >&5
23261echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
23262 succeeded=yes
23263
e6cc62c6
VS
23264 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
23265echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 23266 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
23267 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
23268echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 23269
e6cc62c6
VS
23270 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
23271echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 23272 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
23273 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
23274echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
23275 else
23276 PANGOX_CFLAGS=""
23277 PANGOX_LIBS=""
e6cc62c6 23278 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
23279 ## do set a variable so people can do so.
23280 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 23281
2b5f62a0
VZ
23282 fi
23283
e6cc62c6
VS
23284
23285
2b5f62a0
VZ
23286 else
23287 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23288 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23289 fi
23290 fi
23291
23292 if test $succeeded = yes; then
e6cc62c6 23293
2b5f62a0 23294 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 23295 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 23296
2b5f62a0 23297 else
e6cc62c6
VS
23298
23299 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
23300echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
23301 { (exit 1); exit 1; }; }
23302
23303
2b5f62a0
VZ
23304 fi
23305
e6cc62c6 23306
2b5f62a0
VZ
23307 succeeded=no
23308
23309 if test -z "$PKG_CONFIG"; then
23310 # Extract the first word of "pkg-config", so it can be a program name with args.
23311set dummy pkg-config; ac_word=$2
e6cc62c6
VS
23312echo "$as_me:$LINENO: checking for $ac_word" >&5
23313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23314if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23315 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 23316else
e6cc62c6
VS
23317 case $PKG_CONFIG in
23318 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
23319 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23320 ;;
2b5f62a0 23321 *)
e6cc62c6
VS
23322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23323for as_dir in $PATH
23324do
23325 IFS=$as_save_IFS
23326 test -z "$as_dir" && as_dir=.
23327 for ac_exec_ext in '' $ac_executable_extensions; do
23328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23329 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23331 break 2
23332 fi
23333done
23334done
23335
2b5f62a0
VZ
23336 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23337 ;;
23338esac
23339fi
e6cc62c6
VS
23340PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23341
2b5f62a0 23342if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
23343 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23344echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 23345else
e6cc62c6
VS
23346 echo "$as_me:$LINENO: result: no" >&5
23347echo "${ECHO_T}no" >&6
2b5f62a0
VZ
23348fi
23349
23350 fi
23351
23352 if test "$PKG_CONFIG" = "no" ; then
23353 echo "*** The pkg-config script could not be found. Make sure it is"
23354 echo "*** in your path, or set the PKG_CONFIG environment variable"
23355 echo "*** to the full path to pkg-config."
23356 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23357 else
23358 PKG_CONFIG_MIN_VERSION=0.9.0
23359 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
23360 echo "$as_me:$LINENO: checking for pangoft2" >&5
23361echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
23362
23363 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
23364 echo "$as_me:$LINENO: result: yes" >&5
23365echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
23366 succeeded=yes
23367
e6cc62c6
VS
23368 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23369echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 23370 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
23371 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23372echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 23373
e6cc62c6
VS
23374 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23375echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 23376 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
23377 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23378echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
23379 else
23380 PANGOFT2_CFLAGS=""
23381 PANGOFT2_LIBS=""
e6cc62c6 23382 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
23383 ## do set a variable so people can do so.
23384 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 23385
2b5f62a0
VZ
23386 fi
23387
e6cc62c6
VS
23388
23389
2b5f62a0
VZ
23390 else
23391 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23392 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23393 fi
23394 fi
23395
23396 if test $succeeded = yes; then
e6cc62c6 23397
2b5f62a0 23398 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 23399 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 23400
2b5f62a0 23401 else
e6cc62c6
VS
23402
23403 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23404echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 23405 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
23406
23407
2b5f62a0
VZ
23408 fi
23409
e6cc62c6 23410
2b5f62a0
VZ
23411 succeeded=no
23412
23413 if test -z "$PKG_CONFIG"; then
23414 # Extract the first word of "pkg-config", so it can be a program name with args.
23415set dummy pkg-config; ac_word=$2
e6cc62c6
VS
23416echo "$as_me:$LINENO: checking for $ac_word" >&5
23417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23418if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23419 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 23420else
e6cc62c6
VS
23421 case $PKG_CONFIG in
23422 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
23423 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23424 ;;
2b5f62a0 23425 *)
e6cc62c6
VS
23426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23427for as_dir in $PATH
23428do
23429 IFS=$as_save_IFS
23430 test -z "$as_dir" && as_dir=.
23431 for ac_exec_ext in '' $ac_executable_extensions; do
23432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23433 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23435 break 2
23436 fi
23437done
23438done
23439
2b5f62a0
VZ
23440 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23441 ;;
23442esac
23443fi
e6cc62c6
VS
23444PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23445
2b5f62a0 23446if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
23447 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23448echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 23449else
e6cc62c6
VS
23450 echo "$as_me:$LINENO: result: no" >&5
23451echo "${ECHO_T}no" >&6
2b5f62a0
VZ
23452fi
23453
23454 fi
23455
23456 if test "$PKG_CONFIG" = "no" ; then
23457 echo "*** The pkg-config script could not be found. Make sure it is"
23458 echo "*** in your path, or set the PKG_CONFIG environment variable"
23459 echo "*** to the full path to pkg-config."
23460 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23461 else
23462 PKG_CONFIG_MIN_VERSION=0.9.0
23463 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
23464 echo "$as_me:$LINENO: checking for pangoxft" >&5
23465echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
23466
23467 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
23468 echo "$as_me:$LINENO: result: yes" >&5
23469echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
23470 succeeded=yes
23471
e6cc62c6
VS
23472 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
23473echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 23474 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
23475 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
23476echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 23477
e6cc62c6
VS
23478 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
23479echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 23480 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
23481 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
23482echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
23483 else
23484 PANGOXFT_CFLAGS=""
23485 PANGOXFT_LIBS=""
e6cc62c6 23486 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
23487 ## do set a variable so people can do so.
23488 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 23489
2b5f62a0
VZ
23490 fi
23491
e6cc62c6
VS
23492
23493
2b5f62a0
VZ
23494 else
23495 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23496 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23497 fi
23498 fi
23499
23500 if test $succeeded = yes; then
e6cc62c6 23501
2b5f62a0 23502 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 23503 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 23504
2b5f62a0 23505 else
e6cc62c6
VS
23506
23507 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
23508echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
23509
23510
2b5f62a0
VZ
23511 fi
23512
23513 fi
23514
23515 wxUSE_UNIVERSAL="yes"
23516
23517 if test "$wxUSE_NANOX" = "yes"; then
23518 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 23519 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
23520 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
23521 else
93a543aa 23522 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
2b5f62a0
VZ
23523 fi
23524
23525 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
23526 TOOLKIT=X11
23527 GUIDIST=X11_DIST
23528 fi
23529
21d1c967
GD
23530 if test "$wxUSE_MOTIF" = 1; then
23531 if test "$no_x" = yes; then
23532 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
23533
23534cat >>confdefs.h <<\_ACEOF
21d1c967 23535#define X_DISPLAY_MISSING 1
e6cc62c6 23536_ACEOF
21d1c967
GD
23537
23538 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23539else
23540 if test -n "$x_includes"; then
23541 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
23542 fi
23543
21d1c967
GD
23544 # It would also be nice to do this for all -L options, not just this one.
23545 if test -n "$x_libraries"; then
23546 X_LIBS="$X_LIBS -L$x_libraries"
23547 # For Solaris; some versions of Sun CC require a space after -R and
23548 # others require no space. Words are not sufficient . . . .
e6cc62c6 23549 case `(uname -sr) 2>/dev/null` in
21d1c967 23550 "SunOS 5"*)
e6cc62c6
VS
23551 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23552echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23553 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23554 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23555#line $LINENO "configure"
e6cc62c6
VS
23556/* confdefs.h. */
23557_ACEOF
23558cat confdefs.h >>conftest.$ac_ext
23559cat >>conftest.$ac_ext <<_ACEOF
23560/* end confdefs.h. */
23561
23562int
23563main ()
23564{
21d1c967 23565
e6cc62c6
VS
23566 ;
23567 return 0;
23568}
23569_ACEOF
23570rm -f conftest.$ac_objext conftest$ac_exeext
23571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23572 (eval $ac_link) 2>&5
e6cc62c6
VS
23573 ac_status=$?
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); } &&
789c5f4a 23576 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23578 (eval $ac_try) 2>&5
23579 ac_status=$?
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); }; }; then
21d1c967 23582 ac_R_nospace=yes
698dcdb6 23583else
e6cc62c6
VS
23584 echo "$as_me: failed program was:" >&5
23585sed 's/^/| /' conftest.$ac_ext >&5
23586
23587ac_R_nospace=no
10f2d63a 23588fi
789c5f4a 23589rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23590 if test $ac_R_nospace = yes; then
e6cc62c6
VS
23591 echo "$as_me:$LINENO: result: no" >&5
23592echo "${ECHO_T}no" >&6
21d1c967
GD
23593 X_LIBS="$X_LIBS -R$x_libraries"
23594 else
23595 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 23596 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23597#line $LINENO "configure"
e6cc62c6
VS
23598/* confdefs.h. */
23599_ACEOF
23600cat confdefs.h >>conftest.$ac_ext
23601cat >>conftest.$ac_ext <<_ACEOF
23602/* end confdefs.h. */
23603
23604int
23605main ()
23606{
f0c87536 23607
e6cc62c6
VS
23608 ;
23609 return 0;
23610}
23611_ACEOF
23612rm -f conftest.$ac_objext conftest$ac_exeext
23613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23614 (eval $ac_link) 2>&5
e6cc62c6
VS
23615 ac_status=$?
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); } &&
789c5f4a 23618 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23620 (eval $ac_try) 2>&5
23621 ac_status=$?
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); }; }; then
21d1c967
GD
23624 ac_R_space=yes
23625else
e6cc62c6
VS
23626 echo "$as_me: failed program was:" >&5
23627sed 's/^/| /' conftest.$ac_ext >&5
23628
23629ac_R_space=no
21d1c967 23630fi
789c5f4a 23631rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23632 if test $ac_R_space = yes; then
e6cc62c6
VS
23633 echo "$as_me:$LINENO: result: yes" >&5
23634echo "${ECHO_T}yes" >&6
21d1c967
GD
23635 X_LIBS="$X_LIBS -R $x_libraries"
23636 else
e6cc62c6
VS
23637 echo "$as_me:$LINENO: result: neither works" >&5
23638echo "${ECHO_T}neither works" >&6
21d1c967
GD
23639 fi
23640 fi
e6cc62c6 23641 LIBS=$ac_xsave_LIBS
21d1c967
GD
23642 esac
23643 fi
90dd450c 23644
21d1c967
GD
23645 # Check for system-dependent libraries X programs must link with.
23646 # Do this before checking for the system-independent R6 libraries
23647 # (-lICE), since we may need -lsocket or whatever for X linking.
23648
23649 if test "$ISC" = yes; then
23650 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23651 else
e6cc62c6
VS
23652 # Martyn Johnson says this is needed for Ultrix, if the X
23653 # libraries were built with DECnet support. And Karl Berry says
21d1c967 23654 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
23655 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23656 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23657#line $LINENO "configure"
e6cc62c6
VS
23658/* confdefs.h. */
23659_ACEOF
23660cat confdefs.h >>conftest.$ac_ext
23661cat >>conftest.$ac_ext <<_ACEOF
23662/* end confdefs.h. */
23663
247f5006 23664/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23665#ifdef __cplusplus
23666extern "C"
23667#endif
247f5006 23668/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23669 builtin and then its argument prototype would still apply. */
23670char XOpenDisplay ();
23671int
23672main ()
23673{
23674XOpenDisplay ();
23675 ;
23676 return 0;
23677}
23678_ACEOF
23679rm -f conftest.$ac_objext conftest$ac_exeext
23680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23681 (eval $ac_link) 2>&5
e6cc62c6
VS
23682 ac_status=$?
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); } &&
789c5f4a 23685 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23687 (eval $ac_try) 2>&5
23688 ac_status=$?
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); }; }; then
23691 :
23692else
23693 echo "$as_me: failed program was:" >&5
23694sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23695
e6cc62c6
VS
23696echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23697echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23698if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23699 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23700else
e6cc62c6
VS
23701 ac_check_lib_save_LIBS=$LIBS
23702LIBS="-ldnet $LIBS"
23703cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23704#line $LINENO "configure"
e6cc62c6
VS
23705/* confdefs.h. */
23706_ACEOF
23707cat confdefs.h >>conftest.$ac_ext
23708cat >>conftest.$ac_ext <<_ACEOF
23709/* end confdefs.h. */
a0b9e27f 23710
e6cc62c6
VS
23711/* Override any gcc2 internal prototype to avoid an error. */
23712#ifdef __cplusplus
23713extern "C"
23714#endif
23715/* We use char because int might match the return type of a gcc2
23716 builtin and then its argument prototype would still apply. */
23717char dnet_ntoa ();
23718int
23719main ()
23720{
23721dnet_ntoa ();
23722 ;
23723 return 0;
23724}
23725_ACEOF
23726rm -f conftest.$ac_objext conftest$ac_exeext
23727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23728 (eval $ac_link) 2>&5
e6cc62c6
VS
23729 ac_status=$?
23730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); } &&
789c5f4a 23732 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23734 (eval $ac_try) 2>&5
23735 ac_status=$?
23736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737 (exit $ac_status); }; }; then
23738 ac_cv_lib_dnet_dnet_ntoa=yes
23739else
23740 echo "$as_me: failed program was:" >&5
23741sed 's/^/| /' conftest.$ac_ext >&5
23742
23743ac_cv_lib_dnet_dnet_ntoa=no
23744fi
789c5f4a 23745rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23746LIBS=$ac_check_lib_save_LIBS
23747fi
23748echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23749echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23750if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 23751 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 23752fi
0fb0dd83 23753
21d1c967 23754 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23755 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23756echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23757if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23758 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23759else
e6cc62c6 23760 ac_check_lib_save_LIBS=$LIBS
21d1c967 23761LIBS="-ldnet_stub $LIBS"
e6cc62c6 23762cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23763#line $LINENO "configure"
e6cc62c6
VS
23764/* confdefs.h. */
23765_ACEOF
23766cat confdefs.h >>conftest.$ac_ext
23767cat >>conftest.$ac_ext <<_ACEOF
23768/* end confdefs.h. */
23769
21d1c967 23770/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23771#ifdef __cplusplus
23772extern "C"
23773#endif
21d1c967 23774/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23775 builtin and then its argument prototype would still apply. */
23776char dnet_ntoa ();
23777int
23778main ()
23779{
23780dnet_ntoa ();
23781 ;
23782 return 0;
23783}
23784_ACEOF
23785rm -f conftest.$ac_objext conftest$ac_exeext
23786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23787 (eval $ac_link) 2>&5
e6cc62c6
VS
23788 ac_status=$?
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); } &&
789c5f4a 23791 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23793 (eval $ac_try) 2>&5
23794 ac_status=$?
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); }; }; then
23797 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23798else
23799 echo "$as_me: failed program was:" >&5
23800sed 's/^/| /' conftest.$ac_ext >&5
23801
23802ac_cv_lib_dnet_stub_dnet_ntoa=no
23803fi
789c5f4a 23804rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23805LIBS=$ac_check_lib_save_LIBS
23806fi
23807echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23808echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23809if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 23810 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23811fi
23812
21d1c967 23813 fi
e6cc62c6 23814fi
789c5f4a 23815rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23816 LIBS="$ac_xsave_LIBS"
90dd450c 23817
21d1c967
GD
23818 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23819 # to get the SysV transport functions.
e6cc62c6 23820 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23821 # needs -lnsl.
23822 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23823 # on Irix 5.2, according to T.E. Dickey.
23824 # The functions gethostbyname, getservbyname, and inet_addr are
23825 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23826 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23827echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23828if test "${ac_cv_func_gethostbyname+set}" = set; then
23829 echo $ECHO_N "(cached) $ECHO_C" >&6
23830else
23831 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23832#line $LINENO "configure"
e6cc62c6
VS
23833/* confdefs.h. */
23834_ACEOF
23835cat confdefs.h >>conftest.$ac_ext
23836cat >>conftest.$ac_ext <<_ACEOF
23837/* end confdefs.h. */
21d1c967 23838/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23839 which can conflict with char gethostbyname (); below.
23840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23841 <limits.h> exists even on freestanding compilers. */
23842#ifdef __STDC__
23843# include <limits.h>
23844#else
23845# include <assert.h>
23846#endif
21d1c967 23847/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23848#ifdef __cplusplus
23849extern "C"
23850{
23851#endif
21d1c967 23852/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23853 builtin and then its argument prototype would still apply. */
23854char gethostbyname ();
21d1c967
GD
23855/* The GNU C library defines this for functions which it implements
23856 to always fail with ENOSYS. Some functions are actually named
23857 something starting with __ and the normal name is an alias. */
23858#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23859choke me
23860#else
e6cc62c6
VS
23861char (*f) () = gethostbyname;
23862#endif
23863#ifdef __cplusplus
23864}
21d1c967 23865#endif
90dd450c 23866
e6cc62c6
VS
23867int
23868main ()
23869{
23870return f != gethostbyname;
23871 ;
23872 return 0;
23873}
23874_ACEOF
23875rm -f conftest.$ac_objext conftest$ac_exeext
23876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23877 (eval $ac_link) 2>&5
e6cc62c6
VS
23878 ac_status=$?
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); } &&
789c5f4a 23881 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23883 (eval $ac_try) 2>&5
23884 ac_status=$?
23885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886 (exit $ac_status); }; }; then
23887 ac_cv_func_gethostbyname=yes
23888else
23889 echo "$as_me: failed program was:" >&5
23890sed 's/^/| /' conftest.$ac_ext >&5
23891
23892ac_cv_func_gethostbyname=no
23893fi
789c5f4a 23894rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23895fi
23896echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23897echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23898
21d1c967 23899 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23900 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23901echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23902if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23903 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23904else
e6cc62c6 23905 ac_check_lib_save_LIBS=$LIBS
21d1c967 23906LIBS="-lnsl $LIBS"
e6cc62c6 23907cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23908#line $LINENO "configure"
e6cc62c6
VS
23909/* confdefs.h. */
23910_ACEOF
23911cat confdefs.h >>conftest.$ac_ext
23912cat >>conftest.$ac_ext <<_ACEOF
23913/* end confdefs.h. */
23914
21d1c967 23915/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23916#ifdef __cplusplus
23917extern "C"
23918#endif
21d1c967 23919/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23920 builtin and then its argument prototype would still apply. */
23921char gethostbyname ();
23922int
23923main ()
23924{
23925gethostbyname ();
23926 ;
23927 return 0;
23928}
23929_ACEOF
23930rm -f conftest.$ac_objext conftest$ac_exeext
23931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23932 (eval $ac_link) 2>&5
e6cc62c6
VS
23933 ac_status=$?
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); } &&
789c5f4a 23936 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23938 (eval $ac_try) 2>&5
23939 ac_status=$?
23940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941 (exit $ac_status); }; }; then
23942 ac_cv_lib_nsl_gethostbyname=yes
23943else
23944 echo "$as_me: failed program was:" >&5
23945sed 's/^/| /' conftest.$ac_ext >&5
23946
23947ac_cv_lib_nsl_gethostbyname=no
23948fi
789c5f4a 23949rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23950LIBS=$ac_check_lib_save_LIBS
23951fi
23952echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23953echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23954if test $ac_cv_lib_nsl_gethostbyname = yes; then
23955 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23956fi
247f5006 23957
e6cc62c6 23958 if test $ac_cv_lib_nsl_gethostbyname = no; then
789c5f4a 23959 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
23960echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23961if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23962 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23963else
e6cc62c6
VS
23964 ac_check_lib_save_LIBS=$LIBS
23965LIBS="-lbsd $LIBS"
23966cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23967#line $LINENO "configure"
e6cc62c6
VS
23968/* confdefs.h. */
23969_ACEOF
23970cat confdefs.h >>conftest.$ac_ext
23971cat >>conftest.$ac_ext <<_ACEOF
23972/* end confdefs.h. */
23973
23974/* Override any gcc2 internal prototype to avoid an error. */
23975#ifdef __cplusplus
23976extern "C"
23977#endif
23978/* We use char because int might match the return type of a gcc2
23979 builtin and then its argument prototype would still apply. */
23980char gethostbyname ();
23981int
23982main ()
23983{
23984gethostbyname ();
23985 ;
23986 return 0;
23987}
23988_ACEOF
23989rm -f conftest.$ac_objext conftest$ac_exeext
23990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23991 (eval $ac_link) 2>&5
e6cc62c6
VS
23992 ac_status=$?
23993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994 (exit $ac_status); } &&
789c5f4a 23995 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23997 (eval $ac_try) 2>&5
23998 ac_status=$?
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); }; }; then
24001 ac_cv_lib_bsd_gethostbyname=yes
24002else
24003 echo "$as_me: failed program was:" >&5
24004sed 's/^/| /' conftest.$ac_ext >&5
24005
24006ac_cv_lib_bsd_gethostbyname=no
24007fi
789c5f4a 24008rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24009LIBS=$ac_check_lib_save_LIBS
24010fi
24011echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24012echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24013if test $ac_cv_lib_bsd_gethostbyname = yes; then
24014 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 24015fi
90dd450c 24016
e6cc62c6 24017 fi
90dd450c
VZ
24018 fi
24019
21d1c967
GD
24020 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24021 # socket/setsockopt and other routines are undefined under SCO ODT
24022 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
24023 # on later versions), says Simon Leinen: it contains gethostby*
24024 # variants that don't use the name server (or something). -lsocket
24025 # must be given before -lnsl if both are needed. We assume that
24026 # if connect needs -lnsl, so does gethostbyname.
24027 echo "$as_me:$LINENO: checking for connect" >&5
24028echo $ECHO_N "checking for connect... $ECHO_C" >&6
24029if test "${ac_cv_func_connect+set}" = set; then
24030 echo $ECHO_N "(cached) $ECHO_C" >&6
24031else
24032 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24033#line $LINENO "configure"
e6cc62c6
VS
24034/* confdefs.h. */
24035_ACEOF
24036cat confdefs.h >>conftest.$ac_ext
24037cat >>conftest.$ac_ext <<_ACEOF
24038/* end confdefs.h. */
21d1c967 24039/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24040 which can conflict with char connect (); below.
24041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24042 <limits.h> exists even on freestanding compilers. */
24043#ifdef __STDC__
24044# include <limits.h>
24045#else
24046# include <assert.h>
24047#endif
21d1c967 24048/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24049#ifdef __cplusplus
24050extern "C"
24051{
24052#endif
21d1c967 24053/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24054 builtin and then its argument prototype would still apply. */
24055char connect ();
21d1c967
GD
24056/* The GNU C library defines this for functions which it implements
24057 to always fail with ENOSYS. Some functions are actually named
24058 something starting with __ and the normal name is an alias. */
24059#if defined (__stub_connect) || defined (__stub___connect)
24060choke me
24061#else
e6cc62c6
VS
24062char (*f) () = connect;
24063#endif
24064#ifdef __cplusplus
24065}
21d1c967 24066#endif
90dd450c 24067
e6cc62c6
VS
24068int
24069main ()
24070{
24071return f != connect;
24072 ;
24073 return 0;
24074}
24075_ACEOF
24076rm -f conftest.$ac_objext conftest$ac_exeext
24077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24078 (eval $ac_link) 2>&5
e6cc62c6
VS
24079 ac_status=$?
24080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); } &&
789c5f4a 24082 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24084 (eval $ac_try) 2>&5
24085 ac_status=$?
24086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); }; }; then
24088 ac_cv_func_connect=yes
24089else
24090 echo "$as_me: failed program was:" >&5
24091sed 's/^/| /' conftest.$ac_ext >&5
24092
24093ac_cv_func_connect=no
24094fi
789c5f4a 24095rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24096fi
24097echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24098echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 24099
21d1c967 24100 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
24101 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24102echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24103if test "${ac_cv_lib_socket_connect+set}" = set; then
24104 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 24105else
e6cc62c6 24106 ac_check_lib_save_LIBS=$LIBS
21d1c967 24107LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 24108cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24109#line $LINENO "configure"
e6cc62c6
VS
24110/* confdefs.h. */
24111_ACEOF
24112cat confdefs.h >>conftest.$ac_ext
24113cat >>conftest.$ac_ext <<_ACEOF
24114/* end confdefs.h. */
24115
21d1c967 24116/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24117#ifdef __cplusplus
24118extern "C"
24119#endif
21d1c967 24120/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24121 builtin and then its argument prototype would still apply. */
24122char connect ();
24123int
24124main ()
24125{
24126connect ();
24127 ;
24128 return 0;
24129}
24130_ACEOF
24131rm -f conftest.$ac_objext conftest$ac_exeext
24132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24133 (eval $ac_link) 2>&5
e6cc62c6
VS
24134 ac_status=$?
24135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136 (exit $ac_status); } &&
789c5f4a 24137 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24139 (eval $ac_try) 2>&5
24140 ac_status=$?
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); }; }; then
24143 ac_cv_lib_socket_connect=yes
24144else
24145 echo "$as_me: failed program was:" >&5
24146sed 's/^/| /' conftest.$ac_ext >&5
24147
24148ac_cv_lib_socket_connect=no
24149fi
789c5f4a 24150rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24151LIBS=$ac_check_lib_save_LIBS
24152fi
24153echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24154echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24155if test $ac_cv_lib_socket_connect = yes; then
21d1c967 24156 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 24157fi
90dd450c 24158
21d1c967 24159 fi
90dd450c 24160
e6cc62c6
VS
24161 # Guillermo Gomez says -lposix is necessary on A/UX.
24162 echo "$as_me:$LINENO: checking for remove" >&5
24163echo $ECHO_N "checking for remove... $ECHO_C" >&6
24164if test "${ac_cv_func_remove+set}" = set; then
24165 echo $ECHO_N "(cached) $ECHO_C" >&6
24166else
24167 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24168#line $LINENO "configure"
e6cc62c6
VS
24169/* confdefs.h. */
24170_ACEOF
24171cat confdefs.h >>conftest.$ac_ext
24172cat >>conftest.$ac_ext <<_ACEOF
24173/* end confdefs.h. */
21d1c967 24174/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24175 which can conflict with char remove (); below.
24176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24177 <limits.h> exists even on freestanding compilers. */
24178#ifdef __STDC__
24179# include <limits.h>
24180#else
24181# include <assert.h>
24182#endif
21d1c967 24183/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24184#ifdef __cplusplus
24185extern "C"
24186{
24187#endif
21d1c967 24188/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24189 builtin and then its argument prototype would still apply. */
24190char remove ();
21d1c967
GD
24191/* The GNU C library defines this for functions which it implements
24192 to always fail with ENOSYS. Some functions are actually named
24193 something starting with __ and the normal name is an alias. */
24194#if defined (__stub_remove) || defined (__stub___remove)
24195choke me
24196#else
e6cc62c6
VS
24197char (*f) () = remove;
24198#endif
24199#ifdef __cplusplus
24200}
21d1c967 24201#endif
90dd450c 24202
e6cc62c6
VS
24203int
24204main ()
24205{
24206return f != remove;
24207 ;
24208 return 0;
24209}
24210_ACEOF
24211rm -f conftest.$ac_objext conftest$ac_exeext
24212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24213 (eval $ac_link) 2>&5
e6cc62c6
VS
24214 ac_status=$?
24215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216 (exit $ac_status); } &&
789c5f4a 24217 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24219 (eval $ac_try) 2>&5
24220 ac_status=$?
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); }; }; then
24223 ac_cv_func_remove=yes
24224else
24225 echo "$as_me: failed program was:" >&5
24226sed 's/^/| /' conftest.$ac_ext >&5
24227
24228ac_cv_func_remove=no
24229fi
789c5f4a 24230rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24231fi
24232echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24233echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 24234
21d1c967 24235 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
24236 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24237echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24238if test "${ac_cv_lib_posix_remove+set}" = set; then
24239 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 24240else
e6cc62c6 24241 ac_check_lib_save_LIBS=$LIBS
21d1c967 24242LIBS="-lposix $LIBS"
e6cc62c6 24243cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24244#line $LINENO "configure"
e6cc62c6
VS
24245/* confdefs.h. */
24246_ACEOF
24247cat confdefs.h >>conftest.$ac_ext
24248cat >>conftest.$ac_ext <<_ACEOF
24249/* end confdefs.h. */
24250
21d1c967 24251/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24252#ifdef __cplusplus
24253extern "C"
24254#endif
21d1c967 24255/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24256 builtin and then its argument prototype would still apply. */
24257char remove ();
24258int
24259main ()
24260{
24261remove ();
24262 ;
24263 return 0;
24264}
24265_ACEOF
24266rm -f conftest.$ac_objext conftest$ac_exeext
24267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24268 (eval $ac_link) 2>&5
e6cc62c6
VS
24269 ac_status=$?
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); } &&
789c5f4a 24272 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24274 (eval $ac_try) 2>&5
24275 ac_status=$?
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); }; }; then
24278 ac_cv_lib_posix_remove=yes
24279else
24280 echo "$as_me: failed program was:" >&5
24281sed 's/^/| /' conftest.$ac_ext >&5
24282
24283ac_cv_lib_posix_remove=no
24284fi
789c5f4a 24285rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24286LIBS=$ac_check_lib_save_LIBS
24287fi
24288echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24289echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24290if test $ac_cv_lib_posix_remove = yes; then
21d1c967 24291 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 24292fi
19bc6aad 24293
90dd450c 24294 fi
19bc6aad 24295
21d1c967 24296 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
24297 echo "$as_me:$LINENO: checking for shmat" >&5
24298echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24299if test "${ac_cv_func_shmat+set}" = set; then
24300 echo $ECHO_N "(cached) $ECHO_C" >&6
24301else
24302 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24303#line $LINENO "configure"
e6cc62c6
VS
24304/* confdefs.h. */
24305_ACEOF
24306cat confdefs.h >>conftest.$ac_ext
24307cat >>conftest.$ac_ext <<_ACEOF
24308/* end confdefs.h. */
21d1c967 24309/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24310 which can conflict with char shmat (); below.
24311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24312 <limits.h> exists even on freestanding compilers. */
24313#ifdef __STDC__
24314# include <limits.h>
24315#else
24316# include <assert.h>
24317#endif
21d1c967 24318/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24319#ifdef __cplusplus
24320extern "C"
24321{
24322#endif
21d1c967 24323/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24324 builtin and then its argument prototype would still apply. */
24325char shmat ();
21d1c967
GD
24326/* The GNU C library defines this for functions which it implements
24327 to always fail with ENOSYS. Some functions are actually named
24328 something starting with __ and the normal name is an alias. */
24329#if defined (__stub_shmat) || defined (__stub___shmat)
24330choke me
24331#else
e6cc62c6
VS
24332char (*f) () = shmat;
24333#endif
24334#ifdef __cplusplus
24335}
21d1c967 24336#endif
90dd450c 24337
e6cc62c6
VS
24338int
24339main ()
24340{
24341return f != shmat;
24342 ;
24343 return 0;
24344}
24345_ACEOF
24346rm -f conftest.$ac_objext conftest$ac_exeext
24347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24348 (eval $ac_link) 2>&5
e6cc62c6
VS
24349 ac_status=$?
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } &&
789c5f4a 24352 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354 (eval $ac_try) 2>&5
24355 ac_status=$?
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); }; }; then
24358 ac_cv_func_shmat=yes
24359else
24360 echo "$as_me: failed program was:" >&5
24361sed 's/^/| /' conftest.$ac_ext >&5
24362
24363ac_cv_func_shmat=no
24364fi
789c5f4a 24365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24366fi
24367echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24368echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 24369
21d1c967 24370 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
24371 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24372echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24373if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24374 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 24375else
e6cc62c6 24376 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 24377LIBS="-lipc $LIBS"
e6cc62c6 24378cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24379#line $LINENO "configure"
e6cc62c6
VS
24380/* confdefs.h. */
24381_ACEOF
24382cat confdefs.h >>conftest.$ac_ext
24383cat >>conftest.$ac_ext <<_ACEOF
24384/* end confdefs.h. */
24385
5c6fa7d2 24386/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24387#ifdef __cplusplus
24388extern "C"
24389#endif
5c6fa7d2 24390/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24391 builtin and then its argument prototype would still apply. */
24392char shmat ();
24393int
24394main ()
24395{
24396shmat ();
24397 ;
24398 return 0;
24399}
24400_ACEOF
24401rm -f conftest.$ac_objext conftest$ac_exeext
24402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24403 (eval $ac_link) 2>&5
e6cc62c6
VS
24404 ac_status=$?
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); } &&
789c5f4a 24407 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24409 (eval $ac_try) 2>&5
24410 ac_status=$?
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); }; }; then
24413 ac_cv_lib_ipc_shmat=yes
24414else
24415 echo "$as_me: failed program was:" >&5
24416sed 's/^/| /' conftest.$ac_ext >&5
24417
24418ac_cv_lib_ipc_shmat=no
24419fi
789c5f4a 24420rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24421LIBS=$ac_check_lib_save_LIBS
24422fi
24423echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24424echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24425if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 24426 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 24427fi
90dd450c 24428
90dd450c 24429 fi
21d1c967 24430 fi
10f2d63a 24431
21d1c967 24432 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 24433 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
24434 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24435 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24436 # check for ICE first), but we must link in the order -lSM -lICE or
24437 # we get undefined symbols. So assume we have SM if we have ICE.
24438 # These have to be linked with before -lX11, unlike the other
24439 # libraries we check for below, so use a different variable.
e6cc62c6
VS
24440 # John Interrante, Karl Berry
24441 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24442echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24443if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24444 echo $ECHO_N "(cached) $ECHO_C" >&6
24445else
24446 ac_check_lib_save_LIBS=$LIBS
f09359cf 24447LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 24448cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24449#line $LINENO "configure"
e6cc62c6
VS
24450/* confdefs.h. */
24451_ACEOF
24452cat confdefs.h >>conftest.$ac_ext
24453cat >>conftest.$ac_ext <<_ACEOF
24454/* end confdefs.h. */
24455
21d1c967 24456/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24457#ifdef __cplusplus
24458extern "C"
24459#endif
21d1c967 24460/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24461 builtin and then its argument prototype would still apply. */
24462char IceConnectionNumber ();
24463int
24464main ()
24465{
24466IceConnectionNumber ();
24467 ;
24468 return 0;
24469}
24470_ACEOF
24471rm -f conftest.$ac_objext conftest$ac_exeext
24472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24473 (eval $ac_link) 2>&5
e6cc62c6
VS
24474 ac_status=$?
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); } &&
789c5f4a 24477 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24480 ac_status=$?
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; }; then
24483 ac_cv_lib_ICE_IceConnectionNumber=yes
24484else
24485 echo "$as_me: failed program was:" >&5
24486sed 's/^/| /' conftest.$ac_ext >&5
24487
24488ac_cv_lib_ICE_IceConnectionNumber=no
24489fi
789c5f4a 24490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24491LIBS=$ac_check_lib_save_LIBS
24492fi
24493echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24494echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24495if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 24496 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 24497fi
21d1c967 24498
e6cc62c6 24499 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 24500
10f2d63a
VZ
24501fi
24502
8284b0c5 24503
21d1c967 24504 if test "$no_x" = "yes"; then
e6cc62c6
VS
24505 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24506echo "$as_me: error: X11 not found" >&2;}
24507 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
24508 fi
24509
2b5f62a0
VZ
24510 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
24511 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
24512 AFMINSTALL=afminstall
24513 COMPILED_X_PROGRAM=0
24514
e6cc62c6
VS
24515 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
24516echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
24517
21d1c967 24518ac_find_includes=
2b5f62a0 24519for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
24520 do
24521 if test -f "$ac_dir/Xm/Xm.h"; then
24522 ac_find_includes=$ac_dir
24523 break
24524 fi
24525 done
24526
24527 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
24528 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24529echo "${ECHO_T}found in $ac_find_includes" >&6
24530
2b5f62a0 24531 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
24532 ac_path_to_include=""
24533 else
2b5f62a0
VZ
24534 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
24535 result=$?
24536 if test $result = 0; then
24537 ac_path_to_include=""
24538 else
24539 ac_path_to_include=" -I$ac_find_includes"
24540 fi
dd0e4a90
VZ
24541 fi
24542
24543 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 24544 else
e6cc62c6 24545 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24546#line $LINENO "configure"
e6cc62c6
VS
24547/* confdefs.h. */
24548_ACEOF
24549cat confdefs.h >>conftest.$ac_ext
24550cat >>conftest.$ac_ext <<_ACEOF
24551/* end confdefs.h. */
21d1c967
GD
24552
24553 #include <Xm/Xm.h>
e6cc62c6
VS
24554
24555int
24556main ()
24557{
21d1c967
GD
24558
24559 int version;
24560 version = xmUseVersion;
e6cc62c6
VS
24561
24562 ;
24563 return 0;
24564}
24565_ACEOF
24566rm -f conftest.$ac_objext
24567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 24568 (eval $ac_compile) 2>&5
e6cc62c6
VS
24569 ac_status=$?
24570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 (exit $ac_status); } &&
789c5f4a 24572 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
24573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24574 (eval $ac_try) 2>&5
24575 ac_status=$?
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); }; }; then
24578
24579 echo "$as_me:$LINENO: result: found in default search path" >&5
24580echo "${ECHO_T}found in default search path" >&6
21d1c967 24581 COMPILED_X_PROGRAM=1
e6cc62c6 24582
10f2d63a 24583else
e6cc62c6
VS
24584 echo "$as_me: failed program was:" >&5
24585sed 's/^/| /' conftest.$ac_ext >&5
24586
24587
24588 echo "$as_me:$LINENO: result: no" >&5
24589echo "${ECHO_T}no" >&6
24590 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
24591echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
24592 { (exit 1); exit 1; }; }
24593
24594
10f2d63a 24595fi
789c5f4a 24596rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 24597 fi
10f2d63a 24598
21d1c967 24599 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
24600 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
24601echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
24602
21d1c967 24603ac_find_libraries=
2b5f62a0 24604for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24605 do
24606 for ac_extension in a so sl dylib; do
24607 if test -f "$ac_dir/libXm.$ac_extension"; then
24608 ac_find_libraries=$ac_dir
24609 break 2
24610 fi
24611 done
24612 done
24613
24614 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
24615 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24616echo "${ECHO_T}found at $ac_find_libraries" >&6
24617
21d1c967 24618
21d1c967
GD
24619 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24620 result=$?
24621 if test $result = 0; then
24622 ac_path_to_link=""
24623 else
24624 ac_path_to_link=" -L$ac_find_libraries"
24625 fi
24626
21d1c967 24627 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 24628 else
dd0e4a90
VZ
24629 save_CFLAGS=$CFLAGS
24630 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24631
e6cc62c6 24632 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24633#line $LINENO "configure"
e6cc62c6
VS
24634/* confdefs.h. */
24635_ACEOF
24636cat confdefs.h >>conftest.$ac_ext
24637cat >>conftest.$ac_ext <<_ACEOF
24638/* end confdefs.h. */
21d1c967
GD
24639
24640 #include <Xm/Xm.h>
e6cc62c6
VS
24641
24642int
24643main ()
24644{
21d1c967
GD
24645
24646 int version;
24647 version = xmUseVersion;
e6cc62c6
VS
24648
24649 ;
24650 return 0;
24651}
24652_ACEOF
24653rm -f conftest.$ac_objext
24654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 24655 (eval $ac_compile) 2>&5
e6cc62c6
VS
24656 ac_status=$?
24657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658 (exit $ac_status); } &&
789c5f4a 24659 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
24660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24661 (eval $ac_try) 2>&5
24662 ac_status=$?
24663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664 (exit $ac_status); }; }; then
24665
24666 echo "$as_me:$LINENO: result: found in default search path" >&5
24667echo "${ECHO_T}found in default search path" >&6
21d1c967 24668 COMPILED_X_PROGRAM=1
e6cc62c6 24669
d836ee96 24670else
e6cc62c6
VS
24671 echo "$as_me: failed program was:" >&5
24672sed 's/^/| /' conftest.$ac_ext >&5
24673
24674
24675 echo "$as_me:$LINENO: result: no" >&5
24676echo "${ECHO_T}no" >&6
24677 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24678echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24679 { (exit 1); exit 1; }; }
24680
24681
d836ee96 24682fi
789c5f4a 24683rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24684
24685 CFLAGS=$save_CFLAGS
21d1c967
GD
24686 fi
24687 fi
24688
e6cc62c6
VS
24689 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24690echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
24691 libp_link=""
24692 libsm_ice_link=""
24693 libs_found=0
24694 for libp in "" " -lXp"; do
24695 if test "$libs_found" = "0"; then
7015ef3a 24696 for libsm_ice in "" " -lSM -lICE"; do
e26c13cf 24697 if test "$libs_found" = "0"; then
6a30f1c8 24698 save_LIBS="$LIBS"
93a543aa 24699 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
24700 save_CFLAGS=$CFLAGS
24701 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24702
e6cc62c6 24703 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24704#line $LINENO "configure"
e6cc62c6
VS
24705/* confdefs.h. */
24706_ACEOF
24707cat confdefs.h >>conftest.$ac_ext
24708cat >>conftest.$ac_ext <<_ACEOF
24709/* end confdefs.h. */
17234b26 24710
6a30f1c8
MB
24711 #include <Xm/Xm.h>
24712 #include <Xm/List.h>
e6cc62c6
VS
24713
24714int
24715main ()
24716{
6a30f1c8
MB
24717
24718 XmString string = NULL;
24719 Widget w = NULL;
24720 int position = 0;
24721 XmListAddItem(w, string, position);
e6cc62c6
VS
24722
24723 ;
24724 return 0;
24725}
24726_ACEOF
24727rm -f conftest.$ac_objext conftest$ac_exeext
24728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24729 (eval $ac_link) 2>&5
e6cc62c6
VS
24730 ac_status=$?
24731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); } &&
789c5f4a 24733 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735 (eval $ac_try) 2>&5
24736 ac_status=$?
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; }; then
24739
6a30f1c8
MB
24740 libp_link="$libp"
24741 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24742 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24743echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24744 libs_found=1
e6cc62c6 24745
6a30f1c8 24746else
e6cc62c6
VS
24747 echo "$as_me: failed program was:" >&5
24748sed 's/^/| /' conftest.$ac_ext >&5
24749
24750
24751
6a30f1c8 24752fi
789c5f4a 24753rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24754
6a30f1c8 24755 LIBS="$save_LIBS"
dd0e4a90 24756 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24757 fi
24758 done
24759 fi
24760 done
24761
24762 if test "$libs_found" = "0"; then
e6cc62c6
VS
24763 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24764echo "${ECHO_T}can't find the right libraries" >&6
24765 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24766echo "$as_me: error: can't link a simple motif program" >&2;}
24767 { (exit 1); exit 1; }; }
6a30f1c8
MB
24768 fi
24769
da494b40
MB
24770 save_CFLAGS=$CFLAGS
24771 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24772 echo "$as_me:$LINENO: checking for Motif 2" >&5
24773echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24774 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24775#line $LINENO "configure"
e6cc62c6
VS
24776/* confdefs.h. */
24777_ACEOF
24778cat confdefs.h >>conftest.$ac_ext
24779cat >>conftest.$ac_ext <<_ACEOF
24780/* end confdefs.h. */
da494b40
MB
24781
24782 #include <Xm/Xm.h>
e6cc62c6
VS
24783
24784int
24785main ()
24786{
da494b40
MB
24787
24788 #if XmVersion < 2000
24789 #error "Not Motif 2"
24790 #endif
e6cc62c6
VS
24791
24792 ;
24793 return 0;
24794}
24795_ACEOF
24796rm -f conftest.$ac_objext
24797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 24798 (eval $ac_compile) 2>&5
e6cc62c6
VS
24799 ac_status=$?
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); } &&
789c5f4a 24802 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
24803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24804 (eval $ac_try) 2>&5
24805 ac_status=$?
24806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807 (exit $ac_status); }; }; then
24808
24809 cat >>confdefs.h <<\_ACEOF
da494b40 24810#define __WXMOTIF20__ 1
e6cc62c6
VS
24811_ACEOF
24812
24813 echo "$as_me:$LINENO: result: found" >&5
24814echo "${ECHO_T}found" >&6
da494b40 24815
da494b40 24816else
e6cc62c6
VS
24817 echo "$as_me: failed program was:" >&5
24818sed 's/^/| /' conftest.$ac_ext >&5
24819
24820
24821 cat >>confdefs.h <<\_ACEOF
da494b40 24822#define __WXMOTIF20__ 0
e6cc62c6
VS
24823_ACEOF
24824
24825 echo "$as_me:$LINENO: result: not found" >&5
24826echo "${ECHO_T}not found" >&6
da494b40 24827
da494b40 24828fi
789c5f4a 24829rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24830 CFLAGS=$save_CFLAGS
24831
93a543aa 24832 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24833 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24834 TOOLKIT=MOTIF
24835 GUIDIST=MOTIF_DIST
f7f78039
MB
24836 fi
24837
89fe663f
VZ
24838 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
24839 if test "$wxUSE_LIBXPM" = "sys"; then
24840 echo "$as_me:$LINENO: checking for Xpm library" >&5
24841echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24842
24843ac_find_libraries=
24844for ac_dir in $SEARCH_LIB /usr/lib;
24845 do
24846 for ac_extension in a so sl dylib; do
24847 if test -f "$ac_dir/libXpm.$ac_extension"; then
24848 ac_find_libraries=$ac_dir
24849 break 2
24850 fi
24851 done
24852 done
24853
24854 if test "$ac_find_libraries" != "" ; then
24855
24856 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24857 result=$?
24858 if test $result = 0; then
24859 ac_path_to_link=""
24860 else
24861 ac_path_to_link=" -L$ac_find_libraries"
24862 fi
24863
24864 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
24865 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24866echo "${ECHO_T}found at $ac_find_libraries" >&6
24867
24868 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
24869echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
24870if test "${wx_cv_x11_xpm_h+set}" = set; then
24871 echo $ECHO_N "(cached) $ECHO_C" >&6
24872else
24873
24874 save_CFLAGS=$CFLAGS
24875 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24876
24877 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24878#line $LINENO "configure"
89fe663f
VZ
24879/* confdefs.h. */
24880_ACEOF
24881cat confdefs.h >>conftest.$ac_ext
24882cat >>conftest.$ac_ext <<_ACEOF
24883/* end confdefs.h. */
24884
24885 #include <X11/xpm.h>
24886
24887int
24888main ()
24889{
24890
24891 int version;
24892 version = XpmLibraryVersion();
24893
24894 ;
24895 return 0;
24896}
24897_ACEOF
24898rm -f conftest.$ac_objext
24899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 24900 (eval $ac_compile) 2>&5
89fe663f
VZ
24901 ac_status=$?
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); } &&
789c5f4a 24904 { ac_try='test -s conftest.$ac_objext'
89fe663f
VZ
24905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24906 (eval $ac_try) 2>&5
24907 ac_status=$?
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); }; }; then
24910 wx_cv_x11_xpm_h=yes
24911else
24912 echo "$as_me: failed program was:" >&5
24913sed 's/^/| /' conftest.$ac_ext >&5
24914
24915wx_cv_x11_xpm_h=no
24916
24917fi
789c5f4a 24918rm -f conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
24919
24920 CFLAGS=$save_CFLAGS
24921
24922
24923fi
24924echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
24925echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
24926
24927 if test $wx_cv_x11_xpm_h = "yes"; then
93a543aa 24928 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
89fe663f
VZ
24929 cat >>confdefs.h <<\_ACEOF
24930#define wxHAVE_LIB_XPM 1
24931_ACEOF
24932
24933 else
24934 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
24935echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
24936 fi
24937 fi
24938
24939 fi
f7f78039 24940
89fe663f
VZ
24941 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
24942echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
24943if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
24944 echo $ECHO_N "(cached) $ECHO_C" >&6
24945else
24946 ac_check_lib_save_LIBS=$LIBS
24947LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
24948cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24949#line $LINENO "configure"
89fe663f
VZ
24950/* confdefs.h. */
24951_ACEOF
24952cat confdefs.h >>conftest.$ac_ext
24953cat >>conftest.$ac_ext <<_ACEOF
24954/* end confdefs.h. */
24955
24956/* Override any gcc2 internal prototype to avoid an error. */
24957#ifdef __cplusplus
24958extern "C"
24959#endif
24960/* We use char because int might match the return type of a gcc2
24961 builtin and then its argument prototype would still apply. */
24962char XShapeQueryExtension ();
24963int
24964main ()
24965{
24966XShapeQueryExtension ();
24967 ;
24968 return 0;
24969}
24970_ACEOF
24971rm -f conftest.$ac_objext conftest$ac_exeext
24972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24973 (eval $ac_link) 2>&5
89fe663f
VZ
24974 ac_status=$?
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); } &&
789c5f4a 24977 { ac_try='test -s conftest$ac_exeext'
89fe663f
VZ
24978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24979 (eval $ac_try) 2>&5
24980 ac_status=$?
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); }; }; then
24983 ac_cv_lib_Xext_XShapeQueryExtension=yes
24984else
24985 echo "$as_me: failed program was:" >&5
24986sed 's/^/| /' conftest.$ac_ext >&5
24987
24988ac_cv_lib_Xext_XShapeQueryExtension=no
24989fi
789c5f4a 24990rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
89fe663f
VZ
24991LIBS=$ac_check_lib_save_LIBS
24992fi
24993echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
24994echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
24995if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
24996
24997 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
24998 wxHAVE_XEXT_LIB=1
24999
25000fi
25001
25002
25003 if test "$wxHAVE_XEXT_LIB" = 1; then
25004 save_CFLAGS="$CFLAGS"
25005 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25006
25007 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
e6cc62c6 25008echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
89fe663f 25009 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25010#line $LINENO "configure"
e6cc62c6
VS
25011/* confdefs.h. */
25012_ACEOF
25013cat confdefs.h >>conftest.$ac_ext
25014cat >>conftest.$ac_ext <<_ACEOF
25015/* end confdefs.h. */
25016
89fe663f
VZ
25017 #include <X11/Xlib.h>
25018 #include <X11/extensions/shape.h>
e6cc62c6
VS
25019
25020int
25021main ()
25022{
f7f78039 25023
89fe663f
VZ
25024 int dummy1, dummy2;
25025 XShapeQueryExtension((Display*)NULL,
25026 (int*)NULL, (int*)NULL);
e6cc62c6
VS
25027
25028 ;
25029 return 0;
25030}
25031_ACEOF
25032rm -f conftest.$ac_objext
25033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 25034 (eval $ac_compile) 2>&5
e6cc62c6
VS
25035 ac_status=$?
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); } &&
789c5f4a 25038 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25040 (eval $ac_try) 2>&5
25041 ac_status=$?
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); }; }; then
25044
89fe663f 25045 cat >>confdefs.h <<\_ACEOF
f7f78039 25046#define HAVE_XSHAPE 1
e6cc62c6
VS
25047_ACEOF
25048
89fe663f 25049 echo "$as_me:$LINENO: result: found" >&5
e6cc62c6 25050echo "${ECHO_T}found" >&6
f7f78039 25051
f7f78039 25052else
e6cc62c6
VS
25053 echo "$as_me: failed program was:" >&5
25054sed 's/^/| /' conftest.$ac_ext >&5
25055
25056
89fe663f 25057 echo "$as_me:$LINENO: result: not found" >&5
e6cc62c6
VS
25058echo "${ECHO_T}not found" >&6
25059
f7f78039 25060fi
789c5f4a 25061rm -f conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
25062 CFLAGS="$save_CFLAGS"
25063
25064 fi
21d1c967
GD
25065 fi
25066
25067 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
25068 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
25069echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
25070 if test "$GCC" = yes; then
25071 echo "$as_me:$LINENO: result: gcc" >&5
25072echo "${ECHO_T}gcc" >&6
25073 CPPFLAGS_PASCAL="-fpascal-strings"
25074 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
25075 echo "$as_me:$LINENO: result: xlc" >&5
25076echo "${ECHO_T}xlc" >&6
25077 CPPFLAGS_PASCAL="-qmacpstr"
25078 else
25079 echo "$as_me:$LINENO: result: none" >&5
25080echo "${ECHO_T}none" >&6
25081 fi
25082
25083 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 25084
0c98a14e 25085 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
25086 TOOLKIT=MAC
25087 GUIDIST=MACX_DIST
cf615ebb 25088 WXBASEPORT="_carbon"
21d1c967
GD
25089 fi
25090
ac0c4cc3
DE
25091 if test "$wxUSE_COCOA" = 1; then
25092 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
25093 TOOLKIT=COCOA
25094 GUIDIST=COCOA_DIST
25095 fi
25096
21d1c967
GD
25097 if test "$wxUSE_PM" = 1; then
25098 TOOLKIT=PM
25099 GUIDIST=GTK_DIST
25100 fi
25101
25102 if test "$TOOLKIT" = "PM" ; then
25103 TOOLKIT_DIR="os2"
25104 else
25105 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
25106 fi
25107
25108 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
25109
25110 if test "$wxUSE_UNIVERSAL" = "yes"; then
25111 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
25112
25113 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
25114 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
25115
25116 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
25117 if test "$wxUSE_X11" = 1; then
25118 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
25119 else
25120 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
25121 fi
25122 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
25123 WIDGET_SET=univ
25124 else
25125 ALL_OBJECTS="\$(GUIOBJS)"
25126 ALL_SOURCES="\$(ALL_SOURCES)"
25127 ALL_HEADERS="\$(ALL_HEADERS)"
25128 fi
25129
25130 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
25131
25132 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
25133 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
25134 fi
25135
25136 if test "$wxUSE_HTML" = "yes"; then
25137 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
25138 fi
25139
25140 if test "$wxUSE_LIBJPEG" = "builtin" ; then
25141 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
25142 fi
25143 if test "$wxUSE_LIBTIFF" = "builtin" ; then
25144 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
25145 fi
25146 if test "$wxUSE_LIBPNG" = "builtin" ; then
25147 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
25148 fi
25149
25150 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
25151 DISTDIR="wx\$(TOOLKIT)"
90dd450c 25152else
21d1c967
GD
25153 USE_GUI=0
25154
25155 TOOLKIT_DIR="base"
25156
25157 if test "$USE_WIN32" = 1 ; then
25158 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
25159 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
25160
25161 TOOLKIT="MSW"
25162 else
25163 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
25164 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
25165 fi
25166
25167 ALL_SOURCES="\$(ALL_SOURCES)"
25168 ALL_HEADERS="\$(ALL_HEADERS)"
25169
25170 PORT_FILES="\${top_srcdir}/src/files.lst"
25171
25172 GUIDIST="BASE_DIST"
25173 DISTDIR="wxBase"
d836ee96
VZ
25174fi
25175
8284b0c5 25176
8647bec6
RG
25177
25178
25179IODBC_C_SRC=""
25180
25181
25182if test "$TOOLKIT" != "MSW" ; then
25183
bb41dcbe 25184 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 25185
bb41dcbe 25186 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
25187 echo "$as_me:$LINENO: checking for sql.h" >&5
25188echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25189if test "${ac_cv_header_sql_h+set}" = set; then
25190 echo $ECHO_N "(cached) $ECHO_C" >&6
25191fi
25192echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25193echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25194else
25195 # Is the header compilable?
25196echo "$as_me:$LINENO: checking sql.h usability" >&5
25197echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
25198cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25199#line $LINENO "configure"
e6cc62c6
VS
25200/* confdefs.h. */
25201_ACEOF
25202cat confdefs.h >>conftest.$ac_ext
25203cat >>conftest.$ac_ext <<_ACEOF
25204/* end confdefs.h. */
25205$ac_includes_default
8647bec6 25206#include <sql.h>
e6cc62c6
VS
25207_ACEOF
25208rm -f conftest.$ac_objext
25209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 25210 (eval $ac_compile) 2>&5
e6cc62c6
VS
25211 ac_status=$?
25212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213 (exit $ac_status); } &&
789c5f4a 25214 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216 (eval $ac_try) 2>&5
25217 ac_status=$?
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); }; }; then
25220 ac_header_compiler=yes
25221else
25222 echo "$as_me: failed program was:" >&5
25223sed 's/^/| /' conftest.$ac_ext >&5
25224
25225ac_header_compiler=no
25226fi
789c5f4a 25227rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
25228echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25229echo "${ECHO_T}$ac_header_compiler" >&6
25230
25231# Is the header present?
25232echo "$as_me:$LINENO: checking sql.h presence" >&5
25233echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
25234cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25235#line $LINENO "configure"
e6cc62c6
VS
25236/* confdefs.h. */
25237_ACEOF
25238cat confdefs.h >>conftest.$ac_ext
25239cat >>conftest.$ac_ext <<_ACEOF
25240/* end confdefs.h. */
25241#include <sql.h>
25242_ACEOF
25243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25245 ac_status=$?
25246 grep -v '^ *+' conftest.er1 >conftest.err
25247 rm -f conftest.er1
25248 cat conftest.err >&5
25249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250 (exit $ac_status); } >/dev/null; then
25251 if test -s conftest.err; then
25252 ac_cpp_err=$ac_c_preproc_warn_flag
25253 else
25254 ac_cpp_err=
25255 fi
25256else
25257 ac_cpp_err=yes
25258fi
25259if test -z "$ac_cpp_err"; then
25260 ac_header_preproc=yes
25261else
25262 echo "$as_me: failed program was:" >&5
25263sed 's/^/| /' conftest.$ac_ext >&5
25264
25265 ac_header_preproc=no
25266fi
25267rm -f conftest.err conftest.$ac_ext
25268echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25269echo "${ECHO_T}$ac_header_preproc" >&6
25270
25271# So? What about this header?
789c5f4a
VZ
25272case $ac_header_compiler:$ac_header_preproc in
25273 yes:no )
e6cc62c6
VS
25274 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
25275echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
25276 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
25277echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
25278 (
25279 cat <<\_ASBOX
25280## ------------------------------------ ##
25281## Report this to bug-autoconf@gnu.org. ##
25282## ------------------------------------ ##
25283_ASBOX
25284 ) |
25285 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 25286 ;;
789c5f4a 25287 no:yes )
e6cc62c6
VS
25288 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
25289echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
25290 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
25291echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
25292 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
25293echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
25294 (
25295 cat <<\_ASBOX
789c5f4a
VZ
25296## ------------------------------------ ##
25297## Report this to bug-autoconf@gnu.org. ##
25298## ------------------------------------ ##
e6cc62c6
VS
25299_ASBOX
25300 ) |
25301 sed "s/^/$as_me: WARNING: /" >&2
25302 ;;
25303esac
25304echo "$as_me:$LINENO: checking for sql.h" >&5
25305echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25306if test "${ac_cv_header_sql_h+set}" = set; then
25307 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 25308else
e6cc62c6
VS
25309 ac_cv_header_sql_h=$ac_header_preproc
25310fi
25311echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25312echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25313
bb41dcbe
VS
25314fi
25315if test $ac_cv_header_sql_h = yes; then
25316 found_sql_h=1
8647bec6
RG
25317fi
25318
e6cc62c6 25319
bb41dcbe 25320 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
25321 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
25322echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
25323if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 25324 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 25325else
bb41dcbe 25326 ac_check_lib_save_LIBS=$LIBS
e46d2a18 25327LIBS="-liodbc $LIBS"
e6cc62c6 25328cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25329#line $LINENO "configure"
e6cc62c6
VS
25330/* confdefs.h. */
25331_ACEOF
25332cat confdefs.h >>conftest.$ac_ext
25333cat >>conftest.$ac_ext <<_ACEOF
25334/* end confdefs.h. */
25335
8647bec6 25336/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25337#ifdef __cplusplus
25338extern "C"
25339#endif
8647bec6 25340/* We use char because int might match the return type of a gcc2
e6cc62c6 25341 builtin and then its argument prototype would still apply. */
e46d2a18 25342char SQLAllocEnv ();
e6cc62c6
VS
25343int
25344main ()
25345{
e46d2a18 25346SQLAllocEnv ();
e6cc62c6
VS
25347 ;
25348 return 0;
25349}
25350_ACEOF
25351rm -f conftest.$ac_objext conftest$ac_exeext
25352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 25353 (eval $ac_link) 2>&5
e6cc62c6
VS
25354 ac_status=$?
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); } &&
789c5f4a 25357 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; }; then
e46d2a18 25363 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 25364else
e6cc62c6
VS
25365 echo "$as_me: failed program was:" >&5
25366sed 's/^/| /' conftest.$ac_ext >&5
25367
e46d2a18 25368ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 25369fi
789c5f4a 25370rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
25371LIBS=$ac_check_lib_save_LIBS
25372fi
e46d2a18
VS
25373echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
25374echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
25375if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
25376 ODBC_LINK=" -liodbc"
25377else
25378
e46d2a18
VS
25379 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
25380echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
25381if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
25382 echo $ECHO_N "(cached) $ECHO_C" >&6
25383else
25384 ac_check_lib_save_LIBS=$LIBS
e46d2a18 25385LIBS="-lunixodbc $LIBS"
bb41dcbe 25386cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25387#line $LINENO "configure"
e6cc62c6
VS
25388/* confdefs.h. */
25389_ACEOF
25390cat confdefs.h >>conftest.$ac_ext
25391cat >>conftest.$ac_ext <<_ACEOF
25392/* end confdefs.h. */
25393
8647bec6 25394/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25395#ifdef __cplusplus
25396extern "C"
25397#endif
8647bec6 25398/* We use char because int might match the return type of a gcc2
e6cc62c6 25399 builtin and then its argument prototype would still apply. */
e46d2a18 25400char SQLAllocEnv ();
e6cc62c6
VS
25401int
25402main ()
25403{
e46d2a18 25404SQLAllocEnv ();
e6cc62c6
VS
25405 ;
25406 return 0;
25407}
25408_ACEOF
25409rm -f conftest.$ac_objext conftest$ac_exeext
25410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 25411 (eval $ac_link) 2>&5
e6cc62c6
VS
25412 ac_status=$?
25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); } &&
789c5f4a 25415 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25417 (eval $ac_try) 2>&5
25418 ac_status=$?
25419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420 (exit $ac_status); }; }; then
e46d2a18 25421 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 25422else
e6cc62c6
VS
25423 echo "$as_me: failed program was:" >&5
25424sed 's/^/| /' conftest.$ac_ext >&5
25425
e46d2a18 25426ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 25427fi
789c5f4a 25428rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe 25429LIBS=$ac_check_lib_save_LIBS
e6cc62c6 25430fi
e46d2a18
VS
25431echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
25432echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
25433if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
25434 ODBC_LINK=" -lunixodbc"
25435else
25436
e46d2a18
VS
25437 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
25438echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
25439if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
25440 echo $ECHO_N "(cached) $ECHO_C" >&6
25441else
25442 ac_check_lib_save_LIBS=$LIBS
e46d2a18 25443LIBS="-lodbc $LIBS"
bb41dcbe 25444cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25445#line $LINENO "configure"
bb41dcbe
VS
25446/* confdefs.h. */
25447_ACEOF
25448cat confdefs.h >>conftest.$ac_ext
25449cat >>conftest.$ac_ext <<_ACEOF
25450/* end confdefs.h. */
e6cc62c6 25451
bb41dcbe
VS
25452/* Override any gcc2 internal prototype to avoid an error. */
25453#ifdef __cplusplus
25454extern "C"
25455#endif
25456/* We use char because int might match the return type of a gcc2
25457 builtin and then its argument prototype would still apply. */
e46d2a18 25458char SQLAllocEnv ();
bb41dcbe
VS
25459int
25460main ()
25461{
e46d2a18 25462SQLAllocEnv ();
bb41dcbe
VS
25463 ;
25464 return 0;
25465}
25466_ACEOF
25467rm -f conftest.$ac_objext conftest$ac_exeext
25468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 25469 (eval $ac_link) 2>&5
bb41dcbe
VS
25470 ac_status=$?
25471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 (exit $ac_status); } &&
789c5f4a 25473 { ac_try='test -s conftest$ac_exeext'
bb41dcbe
VS
25474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475 (eval $ac_try) 2>&5
25476 ac_status=$?
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); }; }; then
e46d2a18 25479 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 25480else
bb41dcbe
VS
25481 echo "$as_me: failed program was:" >&5
25482sed 's/^/| /' conftest.$ac_ext >&5
25483
e46d2a18 25484ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe 25485fi
789c5f4a 25486rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
25487LIBS=$ac_check_lib_save_LIBS
25488fi
e46d2a18
VS
25489echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
25490echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
25491if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
25492 ODBC_LINK=" -lodbc"
25493fi
25494
25495
25496fi
e6cc62c6 25497
e6cc62c6 25498
8647bec6 25499fi
e6cc62c6 25500
fd3d7534 25501 fi
bb41dcbe
VS
25502 if test "x$ODBC_LINK" = "x" ; then
25503 if test "$wxUSE_ODBC" = "sys" ; then
25504 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
25505echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
25506 { (exit 1); exit 1; }; }
25507 else
25508 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
25509echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
25510 wxUSE_ODBC=builtin
25511 fi
25512 else
25513 wxUSE_ODBC=sys
8647bec6 25514 fi
8647bec6 25515 fi
bb41dcbe
VS
25516 if test "$wxUSE_ODBC" != "no" ; then
25517 cat >>confdefs.h <<\_ACEOF
25518#define wxUSE_ODBC 1
25519_ACEOF
e6cc62c6 25520
0bdb08e7
VS
25521 if test "$wxUSE_ODBC" = "builtin" ; then
25522 cat >>confdefs.h <<\_ACEOF
25523#define wxUSE_BUILTIN_IODBC 1
25524_ACEOF
25525
25526 fi
bb41dcbe
VS
25527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
25528
25529 WXODBCFLAG="-D_IODBC_"
25530 fi
6232543b 25531fi
21d1c967
GD
25532
25533if test "$wxUSE_REGEX" = "builtin" ; then
25534 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 25535fi
21d1c967
GD
25536if test "$wxUSE_ZLIB" = "builtin" ; then
25537 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
25538fi
25539
74500461
VS
25540if test "$wxUSE_DISPLAY" = "yes"; then
25541 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
25542 echo "$as_me:$LINENO: checking for Xinerama" >&5
25543echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
25544
25545ac_find_libraries=
25546for ac_dir in $SEARCH_LIB /usr/lib;
25547 do
25548 for ac_extension in a so sl dylib; do
25549 if test -f "$ac_dir/libXinerama.$ac_extension"; then
25550 ac_find_libraries=$ac_dir
25551 break 2
25552 fi
25553 done
25554 done
25555
25556 if test "$ac_find_libraries" != "" ; then
25557
25558 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25559 result=$?
25560 if test $result = 0; then
25561 ac_path_to_link=""
25562 else
25563 ac_path_to_link=" -L$ac_find_libraries"
25564 fi
25565
25566 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25567 LDFLAGS="$LDFLAGS $ac_path_to_link"
25568 fi
25569 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
25570 echo "$as_me:$LINENO: result: yes" >&5
25571echo "${ECHO_T}yes" >&6
505c8ccd
VS
25572
25573 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
25574echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
25575
25576ac_find_libraries=
25577for ac_dir in $SEARCH_LIB /usr/lib;
25578 do
25579 for ac_extension in a so sl dylib; do
25580 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
25581 ac_find_libraries=$ac_dir
25582 break 2
25583 fi
25584 done
25585 done
25586
25587 if test "$ac_find_libraries" != "" ; then
25588 echo "$as_me:$LINENO: result: yes" >&5
25589echo "${ECHO_T}yes" >&6
25590
25591for ac_header in X11/extensions/xf86vmode.h
25592do
25593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25594echo "$as_me:$LINENO: checking for $ac_header" >&5
25595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25596if eval "test \"\${$as_ac_Header+set}\" = set"; then
25597 echo $ECHO_N "(cached) $ECHO_C" >&6
25598else
25599 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25600#line $LINENO "configure"
505c8ccd
VS
25601/* confdefs.h. */
25602_ACEOF
25603cat confdefs.h >>conftest.$ac_ext
25604cat >>conftest.$ac_ext <<_ACEOF
25605/* end confdefs.h. */
25606
25607 #if HAVE_X11_XLIB_H
25608 #include <X11/Xlib.h>
25609 #endif
25610
25611
25612#include <$ac_header>
25613_ACEOF
25614rm -f conftest.$ac_objext
25615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 25616 (eval $ac_compile) 2>&5
505c8ccd 25617 ac_status=$?
505c8ccd
VS
25618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619 (exit $ac_status); } &&
789c5f4a 25620 { ac_try='test -s conftest.$ac_objext'
505c8ccd
VS
25621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622 (eval $ac_try) 2>&5
25623 ac_status=$?
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); }; }; then
25626 eval "$as_ac_Header=yes"
25627else
25628 echo "$as_me: failed program was:" >&5
25629sed 's/^/| /' conftest.$ac_ext >&5
25630
25631eval "$as_ac_Header=no"
25632fi
789c5f4a 25633rm -f conftest.$ac_objext conftest.$ac_ext
505c8ccd
VS
25634fi
25635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25637if test `eval echo '${'$as_ac_Header'}'` = yes; then
25638 cat >>confdefs.h <<_ACEOF
25639#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25640_ACEOF
25641
25642 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
25643
25644fi
25645
25646done
25647
25648 else
25649 echo "$as_me:$LINENO: result: no" >&5
25650echo "${ECHO_T}no" >&6
25651 fi
25652
74500461
VS
25653 else
25654 echo "$as_me:$LINENO: result: no" >&5
25655echo "${ECHO_T}no" >&6
25656 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
25657echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
25658 wxUSE_DISPLAY="no"
25659 fi
25660 fi
25661fi
25662
8284b0c5 25663
4d264332 25664USE_OPENGL=0
21d1c967 25665if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 25666 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
25667 OPENGL_LIBS="-framework OpenGL -framework AGL"
25668 elif test "$wxUSE_MSW" = 1; then
25669 OPENGL_LIBS="-lopengl32 -lglu32"
25670 else
01aa5863
VS
25671
25672
25673ac_find_includes=
25674for ac_dir in $SEARCH_INCLUDE /usr/include;
25675 do
25676 if test -f "$ac_dir/GL/gl.h"; then
25677 ac_find_includes=$ac_dir
25678 break
25679 fi
25680 done
25681
25682 if test "$ac_find_includes" != "" ; then
25683 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25684echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
25685
25686 if test "x$ac_find_includes" = "x/usr/include"; then
25687 ac_path_to_include=""
25688 else
25689 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
25690 result=$?
25691 if test $result = 0; then
25692 ac_path_to_include=""
25693 else
25694 ac_path_to_include=" -I$ac_find_includes"
25695 fi
25696 fi
25697
25698 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
25699 fi
25700
e6cc62c6
VS
25701 if test "${ac_cv_header_GL_gl_h+set}" = set; then
25702 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25703echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25704if test "${ac_cv_header_GL_gl_h+set}" = set; then
25705 echo $ECHO_N "(cached) $ECHO_C" >&6
25706fi
25707echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25708echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25709else
25710 # Is the header compilable?
25711echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
25712echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
25713cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25714#line $LINENO "configure"
e6cc62c6
VS
25715/* confdefs.h. */
25716_ACEOF
25717cat confdefs.h >>conftest.$ac_ext
25718cat >>conftest.$ac_ext <<_ACEOF
25719/* end confdefs.h. */
25720$ac_includes_default
21d1c967 25721#include <GL/gl.h>
e6cc62c6
VS
25722_ACEOF
25723rm -f conftest.$ac_objext
25724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 25725 (eval $ac_compile) 2>&5
e6cc62c6
VS
25726 ac_status=$?
25727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728 (exit $ac_status); } &&
789c5f4a 25729 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25731 (eval $ac_try) 2>&5
25732 ac_status=$?
25733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734 (exit $ac_status); }; }; then
25735 ac_header_compiler=yes
25736else
25737 echo "$as_me: failed program was:" >&5
25738sed 's/^/| /' conftest.$ac_ext >&5
25739
25740ac_header_compiler=no
25741fi
789c5f4a 25742rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
25743echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25744echo "${ECHO_T}$ac_header_compiler" >&6
25745
25746# Is the header present?
25747echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
25748echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
25749cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25750#line $LINENO "configure"
e6cc62c6
VS
25751/* confdefs.h. */
25752_ACEOF
25753cat confdefs.h >>conftest.$ac_ext
25754cat >>conftest.$ac_ext <<_ACEOF
25755/* end confdefs.h. */
25756#include <GL/gl.h>
25757_ACEOF
25758if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25760 ac_status=$?
25761 grep -v '^ *+' conftest.er1 >conftest.err
25762 rm -f conftest.er1
25763 cat conftest.err >&5
25764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); } >/dev/null; then
25766 if test -s conftest.err; then
25767 ac_cpp_err=$ac_c_preproc_warn_flag
25768 else
25769 ac_cpp_err=
25770 fi
25771else
25772 ac_cpp_err=yes
25773fi
25774if test -z "$ac_cpp_err"; then
25775 ac_header_preproc=yes
25776else
25777 echo "$as_me: failed program was:" >&5
25778sed 's/^/| /' conftest.$ac_ext >&5
25779
25780 ac_header_preproc=no
25781fi
25782rm -f conftest.err conftest.$ac_ext
25783echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25784echo "${ECHO_T}$ac_header_preproc" >&6
25785
25786# So? What about this header?
789c5f4a
VZ
25787case $ac_header_compiler:$ac_header_preproc in
25788 yes:no )
e6cc62c6
VS
25789 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25790echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
25791 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25792echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25793 (
25794 cat <<\_ASBOX
25795## ------------------------------------ ##
25796## Report this to bug-autoconf@gnu.org. ##
25797## ------------------------------------ ##
25798_ASBOX
25799 ) |
25800 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 25801 ;;
789c5f4a 25802 no:yes )
e6cc62c6
VS
25803 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
25804echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
25805 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
25806echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
25807 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25808echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25809 (
25810 cat <<\_ASBOX
789c5f4a
VZ
25811## ------------------------------------ ##
25812## Report this to bug-autoconf@gnu.org. ##
25813## ------------------------------------ ##
e6cc62c6
VS
25814_ASBOX
25815 ) |
25816 sed "s/^/$as_me: WARNING: /" >&2
25817 ;;
25818esac
25819echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25820echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25821if test "${ac_cv_header_GL_gl_h+set}" = set; then
25822 echo $ECHO_N "(cached) $ECHO_C" >&6
25823else
25824 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 25825fi
e6cc62c6
VS
25826echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25827echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25828
698dcdb6 25829fi
e6cc62c6
VS
25830if test $ac_cv_header_GL_gl_h = yes; then
25831
89e3b3e4
VZ
25832 found_gl=0
25833
e6cc62c6
VS
25834 echo "$as_me:$LINENO: checking for -lGL" >&5
25835echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
25836
21d1c967 25837ac_find_libraries=
2b5f62a0 25838for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25839 do
25840 for ac_extension in a so sl dylib; do
25841 if test -f "$ac_dir/libGL.$ac_extension"; then
25842 ac_find_libraries=$ac_dir
25843 break 2
25844 fi
25845 done
25846 done
25847
25848 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25849
21d1c967
GD
25850 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25851 result=$?
25852 if test $result = 0; then
25853 ac_path_to_link=""
25854 else
25855 ac_path_to_link=" -L$ac_find_libraries"
25856 fi
25857
89e3b3e4
VZ
25858 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25859 LDFLAGS_GL="$ac_path_to_link"
21d1c967 25860 fi
89e3b3e4 25861
e6cc62c6 25862
89e3b3e4
VZ
25863ac_find_libraries=
25864for ac_dir in $SEARCH_LIB /usr/lib;
25865 do
25866 for ac_extension in a so sl dylib; do
25867 if test -f "$ac_dir/libGLU.$ac_extension"; then
25868 ac_find_libraries=$ac_dir
25869 break 2
25870 fi
25871 done
25872 done
25873
25874 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25875
89e3b3e4
VZ
25876 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25877 result=$?
25878 if test $result = 0; then
25879 ac_path_to_link=""
25880 else
25881 ac_path_to_link=" -L$ac_find_libraries"
25882 fi
25883
25884 if test "$ac_path_to_link" != " -L/usr/lib" -a \
25885 "$ac_path_to_link" != "$LDFLAGS_GL"; then
25886 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25887 fi
25888
25889 found_gl=1
25890 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
25891 echo "$as_me:$LINENO: result: yes" >&5
25892echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
25893 fi
25894 fi
25895
bb41dcbe 25896 if test "$found_gl" != 1; then
e6cc62c6
VS
25897 echo "$as_me:$LINENO: result: no" >&5
25898echo "${ECHO_T}no" >&6
25899 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
25900echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
25901
21d1c967 25902ac_find_libraries=
2b5f62a0 25903for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25904 do
25905 for ac_extension in a so sl dylib; do
25906 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
25907 ac_find_libraries=$ac_dir
25908 break 2
25909 fi
25910 done
25911 done
25912
25913 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25914
21d1c967
GD
25915 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25916 result=$?
25917 if test $result = 0; then
25918 ac_path_to_link=""
25919 else
25920 ac_path_to_link=" -L$ac_find_libraries"
25921 fi
25922
25923 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
25924 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
25925 echo "$as_me:$LINENO: result: yes" >&5
25926echo "${ECHO_T}yes" >&6
21d1c967 25927 else
e6cc62c6
VS
25928 echo "$as_me:$LINENO: result: no" >&5
25929echo "${ECHO_T}no" >&6
21d1c967
GD
25930 fi
25931 fi
e6cc62c6 25932
5c6fa7d2 25933fi
52127426 25934
8284b0c5 25935
e6cc62c6 25936
21d1c967 25937 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
25938 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
25939echo "$as_me: error: OpenGL libraries not available" >&2;}
25940 { (exit 1); exit 1; }; }
21d1c967
GD
25941 fi
25942 fi
90dd450c 25943
21d1c967 25944 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 25945 USE_OPENGL=1
e6cc62c6 25946 cat >>confdefs.h <<\_ACEOF
21d1c967 25947#define wxUSE_OPENGL 1
e6cc62c6 25948_ACEOF
21d1c967 25949
e6cc62c6 25950 cat >>confdefs.h <<\_ACEOF
21d1c967 25951#define wxUSE_GLCANVAS 1
e6cc62c6 25952_ACEOF
21d1c967 25953
520755bb 25954 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 25955 fi
10f2d63a 25956fi
21d1c967
GD
25957
25958if test -z "$TOOLKIT_VPATH" ; then
25959 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 25960fi
21d1c967
GD
25961
25962if test -n "$TOOLKIT" ; then
25963 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25964fi
25965
fe0895cf 25966UNICODE=0
21d1c967
GD
25967lib_unicode_suffix=
25968if test "$wxUSE_UNICODE" = "yes"; then
25969 lib_unicode_suffix=u
fe0895cf 25970 UNICODE=1
90dd450c 25971fi
698dcdb6 25972
21d1c967 25973lib_debug_suffix=
6c67131a 25974DEBUG_FLAG=0
21d1c967
GD
25975if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25976 lib_debug_suffix=d
6c67131a
VS
25977 DEBUG_FLAG=1
25978fi
25979
25980DEBUG_INFO=0
25981if test "$wxUSE_DEBUG_INFO" = "yes"; then
25982 DEBUG_INFO=1
21d1c967 25983fi
698dcdb6 25984
1cbb95a2 25985WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
25986
25987TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25988TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
25989
25990if test "$cross_compiling" = "yes"; then
25991 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25992 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 25993 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
25994fi
25995
25996WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25997WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
25998WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
25999WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
26000
26001WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
26002WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
26003
26004WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
26005WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
26006WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
26007WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26008
26009case "${host}" in
26010 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
26011 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
26012 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
26013 ;;
26014
26015 *-*-darwin* )
e6cc62c6 26016
05159a27
GD
26017 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
26018 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
26019
26020 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
26021 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
26022 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
26023 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26024
09d3439c
VZ
26025 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
26026 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
f346733b 26027 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
26028 fi
26029 ;;
26030esac
26031
26032WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
26033WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
26034
26035WXCONFIG_LIBS="-l${WX_LIBRARY}"
26036WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
26037
26038if test "$wxUSE_OPENGL" = "yes"; then
26039 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
26040 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
26041fi
26042
8284b0c5
MB
26043
26044
21d1c967
GD
26045if test "$wxUSE_SHARED" = "yes"; then
26046 case "${host}" in
26047 *-pc-os2_emx | *-pc-os2-emx | \
26048 *-pc-msdosdjgpp )
26049 wxUSE_SHARED=no
e6cc62c6
VS
26050 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
26051echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
26052 ;;
26053 esac
26054fi
26055
fe0895cf 26056SHARED=0
2b5f62a0 26057if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 26058 SHARED=1
2b5f62a0 26059
e6cc62c6 26060
2b5f62a0
VZ
26061 found_versioning=no
26062
e6cc62c6 26063
2b5f62a0 26064 if test $found_versioning = no ; then
e6cc62c6
VS
26065 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
26066echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
26067if test "${wx_cv_version_script+set}" = set; then
26068 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 26069else
e6cc62c6 26070
2b5f62a0
VZ
26071 echo "VER_1 { *; };" >conftest.sym
26072 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 26073
2b5f62a0
VZ
26074 if { ac_try='
26075 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
26076 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
26077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26078 (eval $ac_try) 2>&5
26079 ac_status=$?
26080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); }; } ; then
2b5f62a0
VZ
26082 if test -s conftest.stderr ; then
26083 wx_cv_version_script=no
26084 else
26085 wx_cv_version_script=yes
26086 fi
26087 else
26088 wx_cv_version_script=no
26089 fi
26090 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 26091
e6cc62c6
VS
26092fi
26093echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
26094echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 26095 if test $wx_cv_version_script = yes ; then
e6cc62c6 26096 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
26097 fi
26098 fi
21d1c967 26099
21d1c967 26100
21d1c967 26101 case "${host}" in
fe0895cf 26102 *-*-linux* | *-*-gnu* )
e6cc62c6 26103 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 26104 ;;
21d1c967
GD
26105
26106 *-*-solaris2* )
26107 if test "$GCC" = yes ; then
26108 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
26109
26110 saveLdflags="$LDFLAGS"
26111 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
26112 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
26113echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
26114 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26115#line $LINENO "configure"
e6cc62c6
VS
26116/* confdefs.h. */
26117_ACEOF
26118cat confdefs.h >>conftest.$ac_ext
26119cat >>conftest.$ac_ext <<_ACEOF
26120/* end confdefs.h. */
26121
26122int
26123main ()
26124{
fe0895cf 26125
e6cc62c6
VS
26126 ;
26127 return 0;
26128}
26129_ACEOF
26130rm -f conftest.$ac_objext conftest$ac_exeext
26131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 26132 (eval $ac_link) 2>&5
e6cc62c6
VS
26133 ac_status=$?
26134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135 (exit $ac_status); } &&
789c5f4a 26136 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26138 (eval $ac_try) 2>&5
26139 ac_status=$?
26140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141 (exit $ac_status); }; }; then
26142
26143 echo "$as_me:$LINENO: result: yes" >&5
26144echo "${ECHO_T}yes" >&6
26145 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
26146
26147else
26148 echo "$as_me: failed program was:" >&5
26149sed 's/^/| /' conftest.$ac_ext >&5
26150
26151
26152 echo "$as_me:$LINENO: result: no" >&5
26153echo "${ECHO_T}no" >&6
26154 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
26155echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 26156 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6 26157 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26158#line $LINENO "configure"
e6cc62c6
VS
26159/* confdefs.h. */
26160_ACEOF
26161cat confdefs.h >>conftest.$ac_ext
26162cat >>conftest.$ac_ext <<_ACEOF
26163/* end confdefs.h. */
26164
26165int
26166main ()
26167{
26168
26169 ;
26170 return 0;
26171}
26172_ACEOF
26173rm -f conftest.$ac_objext conftest$ac_exeext
26174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 26175 (eval $ac_link) 2>&5
e6cc62c6
VS
26176 ac_status=$?
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); } &&
789c5f4a 26179 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181 (eval $ac_try) 2>&5
26182 ac_status=$?
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); }; }; then
26185
26186 echo "$as_me:$LINENO: result: yes" >&5
26187echo "${ECHO_T}yes" >&6
26188 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
26189else
26190 echo "$as_me: failed program was:" >&5
26191sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 26192
fe0895cf 26193
e6cc62c6
VS
26194 echo "$as_me:$LINENO: result: no" >&5
26195echo "${ECHO_T}no" >&6
26196
fe0895cf 26197fi
789c5f4a 26198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26199
26200fi
789c5f4a 26201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 26202 LDFLAGS="$saveLdflags"
21d1c967
GD
26203 else
26204 SHARED_LD="${CXX} -G -o"
26205 PIC_FLAG="-KPIC"
e6cc62c6 26206 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
26207 fi
26208 ;;
0f1bc9c2
VS
26209
26210 powerpc-*-darwin* )
ef0add05
VS
26211 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
26212 cat <<EOF >change-install-names
26213#!/bin/sh
26214libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
26215inst_cmd="install_name_tool "
26216for i in \${libnames} ; do
26217 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
26218done
26219\${inst_cmd} \${3}
26220EOF
26221 chmod +x change-install-names
0f1bc9c2
VS
26222 ;;
26223
21d1c967
GD
26224 esac
26225
26226 if test "x$WX_TARGET_LIBRARY" = "x"; then
26227 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
26228 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
26229 fi
26230
26231 WX_TARGET_LIBRARY_TYPE="so"
26232 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 26233fi
10f2d63a 26234
21d1c967
GD
26235if test "$wxUSE_SHARED" = "no"; then
26236
26237 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
26238 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
26239 fi
26240
ac0c4cc3 26241 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
26242 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
26243 fi
26244
26245 if test "$wxUSE_OPENGL" = "yes"; then
26246 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
26247 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
26248 else
26249 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
26250 fi
26251
26252 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
26253 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
26254
26255 WX_TARGET_LIBRARY_TYPE="a"
26256 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
26257
26258 STATIC_FLAG="yes"
26259else
26260 STATIC_FLAG="no"
90dd450c 26261fi
1e487827 26262
09d3439c 26263if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
e6cc62c6 26264 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
26265 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
26266 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
09d3439c 26267
21d1c967
GD
26268 # Extract the first word of "Rez", so it can be a program name with args.
26269set dummy Rez; ac_word=$2
e6cc62c6
VS
26270echo "$as_me:$LINENO: checking for $ac_word" >&5
26271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26272if test "${ac_cv_prog_RESCOMP+set}" = set; then
26273 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 26274else
21d1c967
GD
26275 if test -n "$RESCOMP"; then
26276 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 26277else
e6cc62c6
VS
26278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26279for as_dir in $PATH
26280do
26281 IFS=$as_save_IFS
26282 test -z "$as_dir" && as_dir=.
26283 for ac_exec_ext in '' $ac_executable_extensions; do
26284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26285 ac_cv_prog_RESCOMP="Rez"
26286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26287 break 2
26288 fi
26289done
26290done
26291
21d1c967 26292 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 26293fi
b93d0d08 26294fi
e6cc62c6 26295RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 26296if test -n "$RESCOMP"; then
e6cc62c6
VS
26297 echo "$as_me:$LINENO: result: $RESCOMP" >&5
26298echo "${ECHO_T}$RESCOMP" >&6
90dd450c 26299else
e6cc62c6
VS
26300 echo "$as_me:$LINENO: result: no" >&5
26301echo "${ECHO_T}no" >&6
90dd450c 26302fi
b93d0d08 26303
21d1c967
GD
26304 # Extract the first word of "DeRez", so it can be a program name with args.
26305set dummy DeRez; ac_word=$2
e6cc62c6
VS
26306echo "$as_me:$LINENO: checking for $ac_word" >&5
26307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26308if test "${ac_cv_prog_DEREZ+set}" = set; then
26309 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 26310else
21d1c967
GD
26311 if test -n "$DEREZ"; then
26312 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 26313else
e6cc62c6
VS
26314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26315for as_dir in $PATH
26316do
26317 IFS=$as_save_IFS
26318 test -z "$as_dir" && as_dir=.
26319 for ac_exec_ext in '' $ac_executable_extensions; do
26320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26321 ac_cv_prog_DEREZ="DeRez"
26322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26323 break 2
26324 fi
26325done
26326done
26327
21d1c967 26328 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 26329fi
90dd450c 26330fi
e6cc62c6 26331DEREZ=$ac_cv_prog_DEREZ
21d1c967 26332if test -n "$DEREZ"; then
e6cc62c6
VS
26333 echo "$as_me:$LINENO: result: $DEREZ" >&5
26334echo "${ECHO_T}$DEREZ" >&6
90dd450c 26335else
e6cc62c6
VS
26336 echo "$as_me:$LINENO: result: no" >&5
26337echo "${ECHO_T}no" >&6
3a922bb4 26338fi
698dcdb6 26339
36825681
GD
26340 # Extract the first word of "SetFile", so it can be a program name with args.
26341set dummy SetFile; ac_word=$2
e6cc62c6
VS
26342echo "$as_me:$LINENO: checking for $ac_word" >&5
26343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26344if test "${ac_cv_prog_SETFILE+set}" = set; then
26345 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
26346else
26347 if test -n "$SETFILE"; then
26348 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
26349else
e6cc62c6
VS
26350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26351for as_dir in $PATH
26352do
26353 IFS=$as_save_IFS
26354 test -z "$as_dir" && as_dir=.
26355 for ac_exec_ext in '' $ac_executable_extensions; do
26356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26357 ac_cv_prog_SETFILE="SetFile"
26358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26359 break 2
26360 fi
26361done
26362done
26363
36825681
GD
26364 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
26365fi
26366fi
e6cc62c6 26367SETFILE=$ac_cv_prog_SETFILE
36825681 26368if test -n "$SETFILE"; then
e6cc62c6
VS
26369 echo "$as_me:$LINENO: result: $SETFILE" >&5
26370echo "${ECHO_T}$SETFILE" >&6
36825681 26371else
e6cc62c6
VS
26372 echo "$as_me:$LINENO: result: no" >&5
26373echo "${ECHO_T}no" >&6
36825681
GD
26374fi
26375
e6cc62c6 26376
09d3439c 26377 MACSETFILE="\$(SETFILE)"
64440d77 26378
09d3439c
VZ
26379 if test "$wxUSE_MAC" = 1; then
26380 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
e6cc62c6 26381
09d3439c
VZ
26382 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
26383 else
26384 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
26385 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
26386 fi
64440d77 26387else
09d3439c
VZ
26388 MACSETFILE="@#"
26389 MACRESWXCONFIG="#"
64440d77 26390
09d3439c 26391 if test "$wxUSE_PM" = 1; then
36825681 26392 MACRESCOMP="emxbind -ep"
09d3439c
VZ
26393 else
26394 MACRESCOMP="@#"
90dd450c 26395 fi
4f14bcd8 26396fi
10f2d63a 26397
8284b0c5 26398
f93ca9fd 26399
e6cc62c6
VS
26400echo "$as_me:$LINENO: checking for mode_t" >&5
26401echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
26402if test "${ac_cv_type_mode_t+set}" = set; then
26403 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 26404else
e6cc62c6 26405 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26406#line $LINENO "configure"
e6cc62c6
VS
26407/* confdefs.h. */
26408_ACEOF
26409cat confdefs.h >>conftest.$ac_ext
26410cat >>conftest.$ac_ext <<_ACEOF
26411/* end confdefs.h. */
26412$ac_includes_default
26413int
26414main ()
26415{
26416if ((mode_t *) 0)
26417 return 0;
26418if (sizeof (mode_t))
26419 return 0;
26420 ;
26421 return 0;
26422}
26423_ACEOF
26424rm -f conftest.$ac_objext
26425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26426 (eval $ac_compile) 2>&5
e6cc62c6
VS
26427 ac_status=$?
26428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429 (exit $ac_status); } &&
789c5f4a 26430 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26432 (eval $ac_try) 2>&5
26433 ac_status=$?
26434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26435 (exit $ac_status); }; }; then
26436 ac_cv_type_mode_t=yes
a0b9e27f 26437else
e6cc62c6
VS
26438 echo "$as_me: failed program was:" >&5
26439sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 26440
e6cc62c6 26441ac_cv_type_mode_t=no
a0b9e27f 26442fi
789c5f4a 26443rm -f conftest.$ac_objext conftest.$ac_ext
52127426 26444fi
e6cc62c6
VS
26445echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
26446echo "${ECHO_T}$ac_cv_type_mode_t" >&6
26447if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
26448 :
26449else
a0b9e27f 26450
e6cc62c6
VS
26451cat >>confdefs.h <<_ACEOF
26452#define mode_t int
26453_ACEOF
8284b0c5
MB
26454
26455fi
26456
e6cc62c6
VS
26457echo "$as_me:$LINENO: checking for off_t" >&5
26458echo $ECHO_N "checking for off_t... $ECHO_C" >&6
26459if test "${ac_cv_type_off_t+set}" = set; then
26460 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26461else
e6cc62c6 26462 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26463#line $LINENO "configure"
e6cc62c6
VS
26464/* confdefs.h. */
26465_ACEOF
26466cat confdefs.h >>conftest.$ac_ext
26467cat >>conftest.$ac_ext <<_ACEOF
26468/* end confdefs.h. */
26469$ac_includes_default
26470int
26471main ()
26472{
26473if ((off_t *) 0)
26474 return 0;
26475if (sizeof (off_t))
26476 return 0;
26477 ;
26478 return 0;
26479}
26480_ACEOF
26481rm -f conftest.$ac_objext
26482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26483 (eval $ac_compile) 2>&5
e6cc62c6
VS
26484 ac_status=$?
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); } &&
789c5f4a 26487 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26490 ac_status=$?
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
26493 ac_cv_type_off_t=yes
5c6fa7d2 26494else
e6cc62c6
VS
26495 echo "$as_me: failed program was:" >&5
26496sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 26497
e6cc62c6 26498ac_cv_type_off_t=no
8284b0c5 26499fi
789c5f4a 26500rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 26501fi
e6cc62c6
VS
26502echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
26503echo "${ECHO_T}$ac_cv_type_off_t" >&6
26504if test $ac_cv_type_off_t = yes; then
26505 :
247f5006
VZ
26506else
26507
e6cc62c6 26508cat >>confdefs.h <<_ACEOF
90dd450c 26509#define off_t long
e6cc62c6 26510_ACEOF
10f2d63a 26511
90dd450c 26512fi
10f2d63a 26513
e6cc62c6
VS
26514echo "$as_me:$LINENO: checking for pid_t" >&5
26515echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26516if test "${ac_cv_type_pid_t+set}" = set; then
26517 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 26518else
e6cc62c6 26519 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26520#line $LINENO "configure"
e6cc62c6
VS
26521/* confdefs.h. */
26522_ACEOF
26523cat confdefs.h >>conftest.$ac_ext
26524cat >>conftest.$ac_ext <<_ACEOF
26525/* end confdefs.h. */
26526$ac_includes_default
26527int
26528main ()
26529{
26530if ((pid_t *) 0)
26531 return 0;
26532if (sizeof (pid_t))
26533 return 0;
26534 ;
26535 return 0;
26536}
26537_ACEOF
26538rm -f conftest.$ac_objext
26539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26540 (eval $ac_compile) 2>&5
e6cc62c6
VS
26541 ac_status=$?
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); } &&
789c5f4a 26544 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26546 (eval $ac_try) 2>&5
26547 ac_status=$?
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); }; }; then
90dd450c 26550 ac_cv_type_pid_t=yes
698dcdb6 26551else
e6cc62c6
VS
26552 echo "$as_me: failed program was:" >&5
26553sed 's/^/| /' conftest.$ac_ext >&5
247f5006 26554
e6cc62c6
VS
26555ac_cv_type_pid_t=no
26556fi
789c5f4a 26557rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26558fi
e6cc62c6
VS
26559echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26560echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26561if test $ac_cv_type_pid_t = yes; then
26562 :
26563else
26564
26565cat >>confdefs.h <<_ACEOF
90dd450c 26566#define pid_t int
e6cc62c6 26567_ACEOF
10f2d63a 26568
7b4a847f
RR
26569fi
26570
e6cc62c6
VS
26571echo "$as_me:$LINENO: checking for size_t" >&5
26572echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26573if test "${ac_cv_type_size_t+set}" = set; then
26574 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 26575else
e6cc62c6 26576 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26577#line $LINENO "configure"
e6cc62c6
VS
26578/* confdefs.h. */
26579_ACEOF
26580cat confdefs.h >>conftest.$ac_ext
26581cat >>conftest.$ac_ext <<_ACEOF
26582/* end confdefs.h. */
26583$ac_includes_default
26584int
26585main ()
26586{
26587if ((size_t *) 0)
26588 return 0;
26589if (sizeof (size_t))
26590 return 0;
26591 ;
26592 return 0;
26593}
26594_ACEOF
26595rm -f conftest.$ac_objext
26596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26597 (eval $ac_compile) 2>&5
e6cc62c6
VS
26598 ac_status=$?
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); } &&
789c5f4a 26601 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26603 (eval $ac_try) 2>&5
26604 ac_status=$?
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); }; }; then
90dd450c 26607 ac_cv_type_size_t=yes
18dbb1f6 26608else
e6cc62c6
VS
26609 echo "$as_me: failed program was:" >&5
26610sed 's/^/| /' conftest.$ac_ext >&5
247f5006 26611
e6cc62c6 26612ac_cv_type_size_t=no
a0b9e27f 26613fi
789c5f4a 26614rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26615fi
26616echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26617echo "${ECHO_T}$ac_cv_type_size_t" >&6
26618if test $ac_cv_type_size_t = yes; then
26619 :
26620else
26621
26622cat >>confdefs.h <<_ACEOF
90dd450c 26623#define size_t unsigned
e6cc62c6 26624_ACEOF
90dd450c
VZ
26625
26626fi
26627
e6cc62c6
VS
26628echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26629echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
26630if test "${ac_cv_type_uid_t+set}" = set; then
26631 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 26632else
e6cc62c6 26633 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26634#line $LINENO "configure"
e6cc62c6
VS
26635/* confdefs.h. */
26636_ACEOF
26637cat confdefs.h >>conftest.$ac_ext
26638cat >>conftest.$ac_ext <<_ACEOF
26639/* end confdefs.h. */
90dd450c 26640#include <sys/types.h>
e6cc62c6
VS
26641
26642_ACEOF
90dd450c 26643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 26644 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 26645 ac_cv_type_uid_t=yes
b3e8d00a 26646else
90dd450c 26647 ac_cv_type_uid_t=no
b3e8d00a 26648fi
90dd450c 26649rm -f conftest*
b3e8d00a 26650
4f14bcd8 26651fi
e6cc62c6
VS
26652echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26653echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 26654if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
26655
26656cat >>confdefs.h <<\_ACEOF
90dd450c 26657#define uid_t int
e6cc62c6 26658_ACEOF
247f5006 26659
e6cc62c6
VS
26660
26661cat >>confdefs.h <<\_ACEOF
90dd450c 26662#define gid_t int
e6cc62c6 26663_ACEOF
4f14bcd8 26664
b3e8d00a 26665fi
b3e8d00a 26666
8284b0c5
MB
26667
26668
e6cc62c6
VS
26669
26670ac_ext=cc
4f14bcd8 26671ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26672ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26673ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26674ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26675
26676echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
26677echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
26678if test "${wx_cv_size_t_is_uint+set}" = set; then
26679 echo $ECHO_N "(cached) $ECHO_C" >&6
26680else
26681
26682 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26683#line $LINENO "configure"
e6cc62c6
VS
26684/* confdefs.h. */
26685_ACEOF
26686cat confdefs.h >>conftest.$ac_ext
26687cat >>conftest.$ac_ext <<_ACEOF
26688/* end confdefs.h. */
90dd450c 26689#include <stddef.h>
e6cc62c6
VS
26690int
26691main ()
26692{
90dd450c
VZ
26693
26694 return 0; }
26695
26696 struct Foo { void foo(size_t); void foo(unsigned int); };
26697
26698 int bar() {
e6cc62c6
VS
26699
26700 ;
26701 return 0;
26702}
26703_ACEOF
26704rm -f conftest.$ac_objext
26705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26706 (eval $ac_compile) 2>&5
e6cc62c6
VS
26707 ac_status=$?
26708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709 (exit $ac_status); } &&
789c5f4a 26710 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26712 (eval $ac_try) 2>&5
26713 ac_status=$?
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); }; }; then
90dd450c 26716 wx_cv_size_t_is_uint=no
698dcdb6 26717else
e6cc62c6
VS
26718 echo "$as_me: failed program was:" >&5
26719sed 's/^/| /' conftest.$ac_ext >&5
26720
26721wx_cv_size_t_is_uint=yes
8284b0c5 26722
247f5006 26723fi
789c5f4a 26724rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 26725
a0b9e27f 26726
e6cc62c6
VS
26727fi
26728echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
26729echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 26730
90dd450c 26731if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 26732 cat >>confdefs.h <<\_ACEOF
90dd450c 26733#define wxSIZE_T_IS_UINT 1
e6cc62c6 26734_ACEOF
698dcdb6 26735
90dd450c 26736else
e6cc62c6
VS
26737 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
26738echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
26739if test "${wx_cv_size_t_is_ulong+set}" = set; then
26740 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26741else
e6cc62c6 26742 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26743#line $LINENO "configure"
e6cc62c6
VS
26744/* confdefs.h. */
26745_ACEOF
26746cat confdefs.h >>conftest.$ac_ext
26747cat >>conftest.$ac_ext <<_ACEOF
26748/* end confdefs.h. */
90dd450c 26749#include <stddef.h>
e6cc62c6
VS
26750int
26751main ()
26752{
90dd450c
VZ
26753
26754 return 0; }
26755
26756 struct Foo { void foo(size_t); void foo(unsigned long); };
26757
26758 int bar() {
e6cc62c6
VS
26759
26760 ;
26761 return 0;
26762}
26763_ACEOF
26764rm -f conftest.$ac_objext
26765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26766 (eval $ac_compile) 2>&5
e6cc62c6
VS
26767 ac_status=$?
26768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); } &&
789c5f4a 26770 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26772 (eval $ac_try) 2>&5
26773 ac_status=$?
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); }; }; then
90dd450c 26776 wx_cv_size_t_is_ulong=no
698dcdb6 26777else
e6cc62c6
VS
26778 echo "$as_me: failed program was:" >&5
26779sed 's/^/| /' conftest.$ac_ext >&5
26780
26781wx_cv_size_t_is_ulong=yes
26782
247f5006 26783fi
789c5f4a 26784rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26785
e6cc62c6
VS
26786fi
26787echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26788echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 26789
90dd450c 26790 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 26791 cat >>confdefs.h <<\_ACEOF
90dd450c 26792#define wxSIZE_T_IS_ULONG 1
e6cc62c6 26793_ACEOF
4f14bcd8
GD
26794
26795 fi
90dd450c 26796fi
1e487827 26797
90dd450c 26798ac_ext=c
4f14bcd8 26799ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26802ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 26803
5c6fa7d2 26804
8284b0c5 26805
e6cc62c6
VS
26806echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26807echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26808if test "${wx_cv_struct_pw_gecos+set}" = set; then
26809 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26810else
e6cc62c6
VS
26811
26812 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26813#line $LINENO "configure"
e6cc62c6
VS
26814/* confdefs.h. */
26815_ACEOF
26816cat confdefs.h >>conftest.$ac_ext
26817cat >>conftest.$ac_ext <<_ACEOF
26818/* end confdefs.h. */
90dd450c 26819#include <pwd.h>
e6cc62c6
VS
26820int
26821main ()
26822{
f6bcfd97 26823
90dd450c
VZ
26824 char *p;
26825 struct passwd *pw;
26826 p = pw->pw_gecos;
e6cc62c6
VS
26827
26828 ;
26829 return 0;
26830}
26831_ACEOF
26832rm -f conftest.$ac_objext
26833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26834 (eval $ac_compile) 2>&5
e6cc62c6
VS
26835 ac_status=$?
26836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837 (exit $ac_status); } &&
789c5f4a 26838 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26840 (eval $ac_try) 2>&5
26841 ac_status=$?
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); }; }; then
26844
90dd450c 26845 wx_cv_struct_pw_gecos=yes
e6cc62c6 26846
10f2d63a 26847else
e6cc62c6
VS
26848 echo "$as_me: failed program was:" >&5
26849sed 's/^/| /' conftest.$ac_ext >&5
26850
26851
90dd450c 26852 wx_cv_struct_pw_gecos=no
e6cc62c6 26853
247f5006
VZ
26854
26855fi
789c5f4a 26856rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26857
e6cc62c6
VS
26858
26859fi
26860echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26861echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 26862
90dd450c 26863if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 26864 cat >>confdefs.h <<\_ACEOF
90dd450c 26865#define HAVE_PW_GECOS 1
e6cc62c6 26866_ACEOF
c521c494 26867
90dd450c 26868fi
4f14bcd8 26869
8284b0c5 26870
d29b553b 26871if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 26872 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26873#define wxUSE_WCHAR_T 1
e6cc62c6 26874_ACEOF
d74f4b5a 26875
8284b0c5 26876
d74f4b5a
VZ
26877 WCSLEN_FOUND=0
26878 WCHAR_LINK=
e6cc62c6
VS
26879
26880for ac_func in wcslen
7a30264c 26881do
e6cc62c6
VS
26882as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26883echo "$as_me:$LINENO: checking for $ac_func" >&5
26884echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26885if eval "test \"\${$as_ac_var+set}\" = set"; then
26886 echo $ECHO_N "(cached) $ECHO_C" >&6
26887else
26888 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26889#line $LINENO "configure"
e6cc62c6
VS
26890/* confdefs.h. */
26891_ACEOF
26892cat confdefs.h >>conftest.$ac_ext
26893cat >>conftest.$ac_ext <<_ACEOF
26894/* end confdefs.h. */
7a30264c 26895/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26896 which can conflict with char $ac_func (); below.
26897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26898 <limits.h> exists even on freestanding compilers. */
26899#ifdef __STDC__
26900# include <limits.h>
26901#else
26902# include <assert.h>
26903#endif
4f14bcd8 26904/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26905#ifdef __cplusplus
26906extern "C"
26907{
26908#endif
4f14bcd8 26909/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26910 builtin and then its argument prototype would still apply. */
26911char $ac_func ();
7a30264c
VZ
26912/* The GNU C library defines this for functions which it implements
26913 to always fail with ENOSYS. Some functions are actually named
26914 something starting with __ and the normal name is an alias. */
26915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26916choke me
26917#else
e6cc62c6
VS
26918char (*f) () = $ac_func;
26919#endif
26920#ifdef __cplusplus
26921}
7a30264c
VZ
26922#endif
26923
e6cc62c6
VS
26924int
26925main ()
26926{
26927return f != $ac_func;
26928 ;
26929 return 0;
26930}
26931_ACEOF
26932rm -f conftest.$ac_objext conftest$ac_exeext
26933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 26934 (eval $ac_link) 2>&5
e6cc62c6
VS
26935 ac_status=$?
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); } &&
789c5f4a 26938 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940 (eval $ac_try) 2>&5
26941 ac_status=$?
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; }; then
26944 eval "$as_ac_var=yes"
26945else
26946 echo "$as_me: failed program was:" >&5
26947sed 's/^/| /' conftest.$ac_ext >&5
26948
26949eval "$as_ac_var=no"
26950fi
789c5f4a 26951rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26952fi
26953echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26954echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26955if test `eval echo '${'$as_ac_var'}'` = yes; then
26956 cat >>confdefs.h <<_ACEOF
26957#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26958_ACEOF
d74f4b5a 26959 WCSLEN_FOUND=1
7a30264c
VZ
26960fi
26961done
9d8deca0 26962
8284b0c5 26963
d74f4b5a 26964 if test "$WCSLEN_FOUND" = 0; then
7a30264c 26965 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
26966 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26967echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26968if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26969 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 26970else
e6cc62c6 26971 ac_check_lib_save_LIBS=$LIBS
7a30264c 26972LIBS="-lmsvcrt $LIBS"
e6cc62c6 26973cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26974#line $LINENO "configure"
e6cc62c6
VS
26975/* confdefs.h. */
26976_ACEOF
26977cat confdefs.h >>conftest.$ac_ext
26978cat >>conftest.$ac_ext <<_ACEOF
26979/* end confdefs.h. */
26980
4f14bcd8 26981/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26982#ifdef __cplusplus
26983extern "C"
26984#endif
4f14bcd8 26985/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26986 builtin and then its argument prototype would still apply. */
26987char wcslen ();
26988int
26989main ()
26990{
26991wcslen ();
26992 ;
26993 return 0;
26994}
26995_ACEOF
26996rm -f conftest.$ac_objext conftest$ac_exeext
26997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 26998 (eval $ac_link) 2>&5
e6cc62c6
VS
26999 ac_status=$?
27000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001 (exit $ac_status); } &&
789c5f4a 27002 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27004 (eval $ac_try) 2>&5
27005 ac_status=$?
27006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007 (exit $ac_status); }; }; then
27008 ac_cv_lib_msvcrt_wcslen=yes
27009else
27010 echo "$as_me: failed program was:" >&5
27011sed 's/^/| /' conftest.$ac_ext >&5
27012
27013ac_cv_lib_msvcrt_wcslen=no
27014fi
789c5f4a 27015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27016LIBS=$ac_check_lib_save_LIBS
27017fi
27018echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
27019echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
27020if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 27021 WCHAR_OK=1
d29b553b 27022fi
698dcdb6 27023
7a30264c 27024 else
e6cc62c6
VS
27025 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
27026echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
27027if test "${ac_cv_lib_w_wcslen+set}" = set; then
27028 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 27029else
e6cc62c6 27030 ac_check_lib_save_LIBS=$LIBS
7a30264c 27031LIBS="-lw $LIBS"
e6cc62c6 27032cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27033#line $LINENO "configure"
e6cc62c6
VS
27034/* confdefs.h. */
27035_ACEOF
27036cat confdefs.h >>conftest.$ac_ext
27037cat >>conftest.$ac_ext <<_ACEOF
27038/* end confdefs.h. */
27039
4f14bcd8 27040/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27041#ifdef __cplusplus
27042extern "C"
27043#endif
4f14bcd8 27044/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27045 builtin and then its argument prototype would still apply. */
27046char wcslen ();
27047int
27048main ()
27049{
27050wcslen ();
27051 ;
27052 return 0;
27053}
27054_ACEOF
27055rm -f conftest.$ac_objext conftest$ac_exeext
27056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27057 (eval $ac_link) 2>&5
e6cc62c6
VS
27058 ac_status=$?
27059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); } &&
789c5f4a 27061 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27063 (eval $ac_try) 2>&5
27064 ac_status=$?
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); }; }; then
27067 ac_cv_lib_w_wcslen=yes
27068else
27069 echo "$as_me: failed program was:" >&5
27070sed 's/^/| /' conftest.$ac_ext >&5
27071
27072ac_cv_lib_w_wcslen=no
27073fi
789c5f4a 27074rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27075LIBS=$ac_check_lib_save_LIBS
27076fi
27077echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
27078echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
27079if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 27080
7a30264c 27081 WCHAR_LINK=" -lw"
d74f4b5a 27082 WCSLEN_FOUND=1
e6cc62c6 27083
4f14bcd8 27084fi
10f2d63a 27085
7a30264c 27086 fi
d29b553b 27087 fi
95c8801c 27088
d74f4b5a 27089 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 27090 cat >>confdefs.h <<\_ACEOF
d74f4b5a 27091#define HAVE_WCSLEN 1
e6cc62c6 27092_ACEOF
10f2d63a 27093
d74f4b5a 27094 fi
52127426 27095
e6cc62c6
VS
27096
27097for ac_func in wcsrtombs
eb4efbdc 27098do
e6cc62c6
VS
27099as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27100echo "$as_me:$LINENO: checking for $ac_func" >&5
27101echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27102if eval "test \"\${$as_ac_var+set}\" = set"; then
27103 echo $ECHO_N "(cached) $ECHO_C" >&6
27104else
27105 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27106#line $LINENO "configure"
e6cc62c6
VS
27107/* confdefs.h. */
27108_ACEOF
27109cat confdefs.h >>conftest.$ac_ext
27110cat >>conftest.$ac_ext <<_ACEOF
27111/* end confdefs.h. */
eb4efbdc 27112/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27113 which can conflict with char $ac_func (); below.
27114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27115 <limits.h> exists even on freestanding compilers. */
27116#ifdef __STDC__
27117# include <limits.h>
27118#else
27119# include <assert.h>
27120#endif
eb4efbdc 27121/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27122#ifdef __cplusplus
27123extern "C"
27124{
27125#endif
4f14bcd8 27126/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27127 builtin and then its argument prototype would still apply. */
27128char $ac_func ();
10f2d63a
VZ
27129/* The GNU C library defines this for functions which it implements
27130 to always fail with ENOSYS. Some functions are actually named
27131 something starting with __ and the normal name is an alias. */
247f5006 27132#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
27133choke me
27134#else
e6cc62c6
VS
27135char (*f) () = $ac_func;
27136#endif
27137#ifdef __cplusplus
27138}
10f2d63a
VZ
27139#endif
27140
e6cc62c6
VS
27141int
27142main ()
27143{
27144return f != $ac_func;
27145 ;
27146 return 0;
27147}
27148_ACEOF
27149rm -f conftest.$ac_objext conftest$ac_exeext
27150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27151 (eval $ac_link) 2>&5
e6cc62c6
VS
27152 ac_status=$?
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); } &&
789c5f4a 27155 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
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
27161 eval "$as_ac_var=yes"
27162else
27163 echo "$as_me: failed program was:" >&5
27164sed 's/^/| /' conftest.$ac_ext >&5
27165
27166eval "$as_ac_var=no"
27167fi
789c5f4a 27168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27169fi
27170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27172if test `eval echo '${'$as_ac_var'}'` = yes; then
27173 cat >>confdefs.h <<_ACEOF
27174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27175_ACEOF
270a909e 27176
4f14bcd8 27177fi
247f5006 27178done
1e487827 27179
af15babd 27180else
e6cc62c6
VS
27181 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
27182echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 27183fi
52127426 27184
8284b0c5 27185
e6cc62c6
VS
27186
27187ac_ext=cc
247f5006 27188ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27192
af15babd 27193
247f5006
VZ
27194
27195for ac_func in vsnprintf
27196do
e6cc62c6
VS
27197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27198echo "$as_me:$LINENO: checking for $ac_func" >&5
27199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27200if eval "test \"\${$as_ac_var+set}\" = set"; then
27201 echo $ECHO_N "(cached) $ECHO_C" >&6
27202else
27203 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27204#line $LINENO "configure"
e6cc62c6
VS
27205/* confdefs.h. */
27206_ACEOF
27207cat confdefs.h >>conftest.$ac_ext
27208cat >>conftest.$ac_ext <<_ACEOF
27209/* end confdefs.h. */
247f5006 27210/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27211 which can conflict with char $ac_func (); below.
27212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27213 <limits.h> exists even on freestanding compilers. */
27214#ifdef __STDC__
27215# include <limits.h>
27216#else
27217# include <assert.h>
27218#endif
247f5006
VZ
27219/* Override any gcc2 internal prototype to avoid an error. */
27220#ifdef __cplusplus
27221extern "C"
e6cc62c6 27222{
247f5006
VZ
27223#endif
27224/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27225 builtin and then its argument prototype would still apply. */
27226char $ac_func ();
247f5006
VZ
27227/* The GNU C library defines this for functions which it implements
27228 to always fail with ENOSYS. Some functions are actually named
27229 something starting with __ and the normal name is an alias. */
27230#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27231choke me
27232#else
e6cc62c6
VS
27233char (*f) () = $ac_func;
27234#endif
27235#ifdef __cplusplus
27236}
247f5006 27237#endif
af15babd 27238
e6cc62c6
VS
27239int
27240main ()
27241{
27242return f != $ac_func;
27243 ;
27244 return 0;
27245}
27246_ACEOF
27247rm -f conftest.$ac_objext conftest$ac_exeext
27248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27249 (eval $ac_link) 2>&5
e6cc62c6
VS
27250 ac_status=$?
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); } &&
789c5f4a 27253 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27255 (eval $ac_try) 2>&5
27256 ac_status=$?
27257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258 (exit $ac_status); }; }; then
27259 eval "$as_ac_var=yes"
27260else
27261 echo "$as_me: failed program was:" >&5
27262sed 's/^/| /' conftest.$ac_ext >&5
27263
27264eval "$as_ac_var=no"
27265fi
789c5f4a 27266rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27267fi
27268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27269echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27270if test `eval echo '${'$as_ac_var'}'` = yes; then
27271 cat >>confdefs.h <<_ACEOF
27272#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27273_ACEOF
52127426 27274
5c6fa7d2 27275fi
247f5006 27276done
8284b0c5 27277
4f14bcd8 27278
8d90d2f2 27279if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
27280 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
27281echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
27282if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
27283 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 27284else
e6cc62c6
VS
27285
27286 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27287#line $LINENO "configure"
e6cc62c6
VS
27288/* confdefs.h. */
27289_ACEOF
27290cat confdefs.h >>conftest.$ac_ext
27291cat >>conftest.$ac_ext <<_ACEOF
27292/* end confdefs.h. */
8d90d2f2
VZ
27293
27294 #include <stdio.h>
27295 #include <stdarg.h>
e6cc62c6
VS
27296
27297int
27298main ()
27299{
8d90d2f2
VZ
27300
27301 char *buf;
27302 va_list ap;
27303 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
27304
27305 ;
27306 return 0;
27307}
27308_ACEOF
27309rm -f conftest.$ac_objext
27310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 27311 (eval $ac_compile) 2>&5
e6cc62c6
VS
27312 ac_status=$?
27313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27314 (exit $ac_status); } &&
789c5f4a 27315 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27317 (eval $ac_try) 2>&5
27318 ac_status=$?
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); }; }; then
8d90d2f2
VZ
27321 wx_cv_func_vsnprintf_decl=yes
27322else
e6cc62c6
VS
27323 echo "$as_me: failed program was:" >&5
27324sed 's/^/| /' conftest.$ac_ext >&5
27325
27326wx_cv_func_vsnprintf_decl=no
27327
8d90d2f2 27328fi
789c5f4a 27329rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 27330
8d90d2f2 27331
e6cc62c6
VS
27332fi
27333echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
27334echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
27335
27336 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 27337 cat >>confdefs.h <<\_ACEOF
8d90d2f2 27338#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 27339_ACEOF
8d90d2f2
VZ
27340
27341 fi
27342fi
27343
247f5006 27344if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
27345
27346
27347
27348for ac_func in fputwc wprintf vswprintf
d74f4b5a 27349do
e6cc62c6
VS
27350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27351echo "$as_me:$LINENO: checking for $ac_func" >&5
27352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27353if eval "test \"\${$as_ac_var+set}\" = set"; then
27354 echo $ECHO_N "(cached) $ECHO_C" >&6
27355else
27356 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27357#line $LINENO "configure"
e6cc62c6
VS
27358/* confdefs.h. */
27359_ACEOF
27360cat confdefs.h >>conftest.$ac_ext
27361cat >>conftest.$ac_ext <<_ACEOF
27362/* end confdefs.h. */
d74f4b5a 27363/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27364 which can conflict with char $ac_func (); below.
27365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27366 <limits.h> exists even on freestanding compilers. */
27367#ifdef __STDC__
27368# include <limits.h>
27369#else
27370# include <assert.h>
27371#endif
d74f4b5a 27372/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
27373#ifdef __cplusplus
27374extern "C"
e6cc62c6 27375{
247f5006 27376#endif
d74f4b5a 27377/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27378 builtin and then its argument prototype would still apply. */
27379char $ac_func ();
d74f4b5a
VZ
27380/* The GNU C library defines this for functions which it implements
27381 to always fail with ENOSYS. Some functions are actually named
27382 something starting with __ and the normal name is an alias. */
27383#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27384choke me
27385#else
e6cc62c6
VS
27386char (*f) () = $ac_func;
27387#endif
27388#ifdef __cplusplus
27389}
d74f4b5a
VZ
27390#endif
27391
e6cc62c6
VS
27392int
27393main ()
27394{
27395return f != $ac_func;
27396 ;
27397 return 0;
27398}
27399_ACEOF
27400rm -f conftest.$ac_objext conftest$ac_exeext
27401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27402 (eval $ac_link) 2>&5
e6cc62c6
VS
27403 ac_status=$?
27404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405 (exit $ac_status); } &&
789c5f4a 27406 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27408 (eval $ac_try) 2>&5
27409 ac_status=$?
27410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411 (exit $ac_status); }; }; then
27412 eval "$as_ac_var=yes"
27413else
27414 echo "$as_me: failed program was:" >&5
27415sed 's/^/| /' conftest.$ac_ext >&5
27416
27417eval "$as_ac_var=no"
27418fi
789c5f4a 27419rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27420fi
27421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27422echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27423if test `eval echo '${'$as_ac_var'}'` = yes; then
27424 cat >>confdefs.h <<_ACEOF
27425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27426_ACEOF
d74f4b5a 27427
d74f4b5a
VZ
27428fi
27429done
27430
8d90d2f2 27431
e6cc62c6
VS
27432 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
27433echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
27434 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27435#line $LINENO "configure"
e6cc62c6
VS
27436/* confdefs.h. */
27437_ACEOF
27438cat confdefs.h >>conftest.$ac_ext
27439cat >>conftest.$ac_ext <<_ACEOF
27440/* end confdefs.h. */
79668cae 27441#include <wchar.h>
e6cc62c6
VS
27442int
27443main ()
27444{
79668cae 27445&_vsnwprintf;
e6cc62c6
VS
27446 ;
27447 return 0;
27448}
27449_ACEOF
27450rm -f conftest.$ac_objext
27451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 27452 (eval $ac_compile) 2>&5
e6cc62c6
VS
27453 ac_status=$?
27454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); } &&
789c5f4a 27456 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27458 (eval $ac_try) 2>&5
27459 ac_status=$?
27460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461 (exit $ac_status); }; }; then
27462 echo "$as_me:$LINENO: result: yes" >&5
27463echo "${ECHO_T}yes" >&6
27464 cat >>confdefs.h <<\_ACEOF
79668cae 27465#define HAVE__VSNWPRINTF 1
e6cc62c6 27466_ACEOF
79668cae
MB
27467
27468else
e6cc62c6
VS
27469 echo "$as_me: failed program was:" >&5
27470sed 's/^/| /' conftest.$ac_ext >&5
27471
27472echo "$as_me:$LINENO: result: no" >&5
27473echo "${ECHO_T}no" >&6
79668cae 27474fi
789c5f4a 27475rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
27476fi
27477
247f5006
VZ
27478ac_ext=c
27479ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27482ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
27483
27484
27485
27486
4f14bcd8 27487if test "$TOOLKIT" != "MSW"; then
af15babd 27488
8284b0c5
MB
27489
27490
e6cc62c6
VS
27491
27492ac_ext=cc
4f14bcd8 27493ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 27497
52127426 27498
e6cc62c6
VS
27499
27500
27501# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
27502if test "${with_libiconv_prefix+set}" = set; then
27503 withval="$with_libiconv_prefix"
e6cc62c6 27504
b040e242
VS
27505 for dir in `echo "$withval" | tr : ' '`; do
27506 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
27507 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
27508 done
b040e242 27509
e6cc62c6 27510fi;
b040e242 27511
e6cc62c6
VS
27512 echo "$as_me:$LINENO: checking for iconv" >&5
27513echo $ECHO_N "checking for iconv... $ECHO_C" >&6
27514if test "${am_cv_func_iconv+set}" = set; then
27515 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27516else
e6cc62c6 27517
b040e242
VS
27518 am_cv_func_iconv="no, consider installing GNU libiconv"
27519 am_cv_lib_iconv=no
e6cc62c6 27520 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27521#line $LINENO "configure"
e6cc62c6
VS
27522/* confdefs.h. */
27523_ACEOF
27524cat confdefs.h >>conftest.$ac_ext
27525cat >>conftest.$ac_ext <<_ACEOF
27526/* end confdefs.h. */
b040e242 27527#include <stdlib.h>
4f14bcd8 27528#include <iconv.h>
e6cc62c6
VS
27529int
27530main ()
27531{
b040e242
VS
27532iconv_t cd = iconv_open("","");
27533 iconv(cd,NULL,NULL,NULL,NULL);
27534 iconv_close(cd);
e6cc62c6
VS
27535 ;
27536 return 0;
27537}
27538_ACEOF
27539rm -f conftest.$ac_objext conftest$ac_exeext
27540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27541 (eval $ac_link) 2>&5
e6cc62c6
VS
27542 ac_status=$?
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); } &&
789c5f4a 27545 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27547 (eval $ac_try) 2>&5
27548 ac_status=$?
27549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550 (exit $ac_status); }; }; then
b040e242 27551 am_cv_func_iconv=yes
af15babd 27552else
e6cc62c6
VS
27553 echo "$as_me: failed program was:" >&5
27554sed 's/^/| /' conftest.$ac_ext >&5
27555
b040e242 27556fi
789c5f4a 27557rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
27558 if test "$am_cv_func_iconv" != yes; then
27559 am_save_LIBS="$LIBS"
27560 LIBS="$LIBS -liconv"
e6cc62c6 27561 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27562#line $LINENO "configure"
e6cc62c6
VS
27563/* confdefs.h. */
27564_ACEOF
27565cat confdefs.h >>conftest.$ac_ext
27566cat >>conftest.$ac_ext <<_ACEOF
27567/* end confdefs.h. */
b040e242
VS
27568#include <stdlib.h>
27569#include <iconv.h>
e6cc62c6
VS
27570int
27571main ()
27572{
b040e242
VS
27573iconv_t cd = iconv_open("","");
27574 iconv(cd,NULL,NULL,NULL,NULL);
27575 iconv_close(cd);
e6cc62c6
VS
27576 ;
27577 return 0;
27578}
27579_ACEOF
27580rm -f conftest.$ac_objext conftest$ac_exeext
27581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27582 (eval $ac_link) 2>&5
e6cc62c6
VS
27583 ac_status=$?
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); } &&
789c5f4a 27586 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27588 (eval $ac_try) 2>&5
27589 ac_status=$?
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); }; }; then
b040e242
VS
27592 am_cv_lib_iconv=yes
27593 am_cv_func_iconv=yes
27594else
e6cc62c6
VS
27595 echo "$as_me: failed program was:" >&5
27596sed 's/^/| /' conftest.$ac_ext >&5
27597
af15babd 27598fi
789c5f4a 27599rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
27600 LIBS="$am_save_LIBS"
27601 fi
247f5006 27602
e6cc62c6
VS
27603fi
27604echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
27605echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 27606 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
27607
27608cat >>confdefs.h <<\_ACEOF
b040e242 27609#define HAVE_ICONV 1
e6cc62c6 27610_ACEOF
b040e242 27611
e6cc62c6
VS
27612 echo "$as_me:$LINENO: checking if iconv needs const" >&5
27613echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
27614if test "${wx_cv_func_iconv_const+set}" = set; then
27615 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 27616else
e6cc62c6 27617 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27618#line $LINENO "configure"
e6cc62c6
VS
27619/* confdefs.h. */
27620_ACEOF
27621cat confdefs.h >>conftest.$ac_ext
27622cat >>conftest.$ac_ext <<_ACEOF
27623/* end confdefs.h. */
b040e242
VS
27624
27625#include <stdlib.h>
27626#include <iconv.h>
27627extern
27628#ifdef __cplusplus
27629"C"
27630#endif
27631#if defined(__STDC__) || defined(__cplusplus)
27632size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27633#else
27634size_t iconv();
27635#endif
af15babd 27636
e6cc62c6
VS
27637int
27638main ()
27639{
27640
27641 ;
27642 return 0;
27643}
27644_ACEOF
27645rm -f conftest.$ac_objext
27646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 27647 (eval $ac_compile) 2>&5
e6cc62c6
VS
27648 ac_status=$?
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); } &&
789c5f4a 27651 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653 (eval $ac_try) 2>&5
27654 ac_status=$?
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); }; }; then
b7043674 27657 wx_cv_func_iconv_const="no"
b040e242 27658else
e6cc62c6
VS
27659 echo "$as_me: failed program was:" >&5
27660sed 's/^/| /' conftest.$ac_ext >&5
27661
27662wx_cv_func_iconv_const="yes"
27663
247f5006 27664fi
789c5f4a 27665rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27666
e6cc62c6
VS
27667fi
27668echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
27669echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
27670
27671 iconv_const=
1c405bb5 27672 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
27673 iconv_const="const"
27674 fi
27675
e6cc62c6
VS
27676
27677cat >>confdefs.h <<_ACEOF
f09359cf 27678#define ICONV_CONST $iconv_const
e6cc62c6 27679_ACEOF
b040e242
VS
27680
27681 fi
27682 LIBICONV=
27683 if test "$am_cv_lib_iconv" = yes; then
27684 LIBICONV="-liconv"
27685 fi
e6cc62c6 27686
b040e242
VS
27687
27688LIBS="$LIBICONV $LIBS"
4f14bcd8 27689ac_ext=c
4f14bcd8 27690ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27693ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 27694
5c6fa7d2 27695
8284b0c5 27696if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
27697
27698for ac_func in sigaction
af15babd 27699do
e6cc62c6
VS
27700as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27701echo "$as_me:$LINENO: checking for $ac_func" >&5
27702echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27703if eval "test \"\${$as_ac_var+set}\" = set"; then
27704 echo $ECHO_N "(cached) $ECHO_C" >&6
27705else
27706 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27707#line $LINENO "configure"
e6cc62c6
VS
27708/* confdefs.h. */
27709_ACEOF
27710cat confdefs.h >>conftest.$ac_ext
27711cat >>conftest.$ac_ext <<_ACEOF
27712/* end confdefs.h. */
af15babd 27713/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27714 which can conflict with char $ac_func (); below.
27715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27716 <limits.h> exists even on freestanding compilers. */
27717#ifdef __STDC__
27718# include <limits.h>
27719#else
27720# include <assert.h>
27721#endif
af15babd 27722/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27723#ifdef __cplusplus
27724extern "C"
27725{
27726#endif
af15babd 27727/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27728 builtin and then its argument prototype would still apply. */
27729char $ac_func ();
af15babd
VZ
27730/* The GNU C library defines this for functions which it implements
27731 to always fail with ENOSYS. Some functions are actually named
27732 something starting with __ and the normal name is an alias. */
27733#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27734choke me
27735#else
e6cc62c6
VS
27736char (*f) () = $ac_func;
27737#endif
27738#ifdef __cplusplus
27739}
af15babd
VZ
27740#endif
27741
e6cc62c6
VS
27742int
27743main ()
27744{
27745return f != $ac_func;
27746 ;
27747 return 0;
27748}
27749_ACEOF
27750rm -f conftest.$ac_objext conftest$ac_exeext
27751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27752 (eval $ac_link) 2>&5
e6cc62c6
VS
27753 ac_status=$?
27754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755 (exit $ac_status); } &&
789c5f4a 27756 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27758 (eval $ac_try) 2>&5
27759 ac_status=$?
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); }; }; then
27762 eval "$as_ac_var=yes"
27763else
27764 echo "$as_me: failed program was:" >&5
27765sed 's/^/| /' conftest.$ac_ext >&5
27766
27767eval "$as_ac_var=no"
27768fi
789c5f4a 27769rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27770fi
27771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27772echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27773if test `eval echo '${'$as_ac_var'}'` = yes; then
27774 cat >>confdefs.h <<_ACEOF
27775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27776_ACEOF
7b4a847f 27777
4f14bcd8
GD
27778fi
27779done
27780
8284b0c5 27781
4f14bcd8 27782 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
27783 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27784echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
27785 wxUSE_ON_FATAL_EXCEPTION=no
27786 fi
27787
27788 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
27789
27790
27791 ac_ext=cc
5c6fa7d2 27792ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 27796
5c6fa7d2 27797
e6cc62c6
VS
27798 echo "$as_me:$LINENO: checking for sa_handler type" >&5
27799echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27800if test "${wx_cv_type_sa_handler+set}" = set; then
27801 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27802else
e6cc62c6
VS
27803
27804 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27805#line $LINENO "configure"
e6cc62c6
VS
27806/* confdefs.h. */
27807_ACEOF
27808cat confdefs.h >>conftest.$ac_ext
27809cat >>conftest.$ac_ext <<_ACEOF
27810/* end confdefs.h. */
4f14bcd8 27811#include <signal.h>
e6cc62c6
VS
27812int
27813main ()
27814{
4f14bcd8
GD
27815
27816 extern void testSigHandler(int);
27817
27818 struct sigaction sa;
27819 sa.sa_handler = testSigHandler;
e6cc62c6
VS
27820
27821 ;
27822 return 0;
27823}
27824_ACEOF
27825rm -f conftest.$ac_objext
27826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 27827 (eval $ac_compile) 2>&5
e6cc62c6
VS
27828 ac_status=$?
27829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27830 (exit $ac_status); } &&
789c5f4a 27831 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27833 (eval $ac_try) 2>&5
27834 ac_status=$?
27835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836 (exit $ac_status); }; }; then
27837
4f14bcd8 27838 wx_cv_type_sa_handler=int
e6cc62c6 27839
af15babd 27840else
e6cc62c6
VS
27841 echo "$as_me: failed program was:" >&5
27842sed 's/^/| /' conftest.$ac_ext >&5
27843
27844
4f14bcd8 27845 wx_cv_type_sa_handler=void
e6cc62c6 27846
247f5006 27847fi
789c5f4a 27848rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27849
e6cc62c6
VS
27850fi
27851echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27852echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
27853
27854 ac_ext=c
4f14bcd8 27855ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27858ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 27859
8284b0c5 27860
e6cc62c6 27861 cat >>confdefs.h <<_ACEOF
4f14bcd8 27862#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 27863_ACEOF
af15babd 27864
4f14bcd8
GD
27865 fi
27866fi
af15babd 27867
e6cc62c6
VS
27868
27869
a1d22ad7 27870for ac_func in mkstemp mktemp
af15babd 27871do
e6cc62c6
VS
27872as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27873echo "$as_me:$LINENO: checking for $ac_func" >&5
27874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27875if eval "test \"\${$as_ac_var+set}\" = set"; then
27876 echo $ECHO_N "(cached) $ECHO_C" >&6
27877else
27878 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27879#line $LINENO "configure"
e6cc62c6
VS
27880/* confdefs.h. */
27881_ACEOF
27882cat confdefs.h >>conftest.$ac_ext
27883cat >>conftest.$ac_ext <<_ACEOF
27884/* end confdefs.h. */
af15babd 27885/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27886 which can conflict with char $ac_func (); below.
27887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27888 <limits.h> exists even on freestanding compilers. */
27889#ifdef __STDC__
27890# include <limits.h>
27891#else
27892# include <assert.h>
27893#endif
af15babd 27894/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27895#ifdef __cplusplus
27896extern "C"
27897{
27898#endif
af15babd 27899/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27900 builtin and then its argument prototype would still apply. */
27901char $ac_func ();
af15babd
VZ
27902/* The GNU C library defines this for functions which it implements
27903 to always fail with ENOSYS. Some functions are actually named
27904 something starting with __ and the normal name is an alias. */
27905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27906choke me
27907#else
e6cc62c6
VS
27908char (*f) () = $ac_func;
27909#endif
27910#ifdef __cplusplus
27911}
af15babd
VZ
27912#endif
27913
e6cc62c6
VS
27914int
27915main ()
27916{
27917return f != $ac_func;
27918 ;
27919 return 0;
27920}
27921_ACEOF
27922rm -f conftest.$ac_objext conftest$ac_exeext
27923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27924 (eval $ac_link) 2>&5
e6cc62c6
VS
27925 ac_status=$?
27926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27927 (exit $ac_status); } &&
789c5f4a 27928 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27930 (eval $ac_try) 2>&5
27931 ac_status=$?
27932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933 (exit $ac_status); }; }; then
27934 eval "$as_ac_var=yes"
27935else
27936 echo "$as_me: failed program was:" >&5
27937sed 's/^/| /' conftest.$ac_ext >&5
27938
27939eval "$as_ac_var=no"
27940fi
789c5f4a 27941rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27942fi
27943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27944echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27945if test `eval echo '${'$as_ac_var'}'` = yes; then
27946 cat >>confdefs.h <<_ACEOF
27947#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27948_ACEOF
ade35f11 27949 break
ade35f11
VZ
27950fi
27951done
27952
8284b0c5 27953
e6cc62c6
VS
27954echo "$as_me:$LINENO: checking for statfs" >&5
27955echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27956if test "${wx_cv_func_statfs+set}" = set; then
27957 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27958else
e6cc62c6 27959 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27960#line $LINENO "configure"
e6cc62c6
VS
27961/* confdefs.h. */
27962_ACEOF
27963cat confdefs.h >>conftest.$ac_ext
27964cat >>conftest.$ac_ext <<_ACEOF
27965/* end confdefs.h. */
4f14bcd8
GD
27966
27967 #if defined(__BSD__)
27968 #include <sys/param.h>
27969 #include <sys/mount.h>
27970 #else
27971 #include <sys/vfs.h>
27972 #endif
e6cc62c6
VS
27973
27974int
27975main ()
27976{
4f14bcd8
GD
27977
27978 long l;
27979 struct statfs fs;
27980 statfs("/", &fs);
27981 l = fs.f_bsize;
27982 l += fs.f_blocks;
27983 l += fs.f_bavail;
e6cc62c6
VS
27984
27985 ;
27986 return 0;
27987}
27988_ACEOF
27989rm -f conftest.$ac_objext
27990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 27991 (eval $ac_compile) 2>&5
e6cc62c6
VS
27992 ac_status=$?
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); } &&
789c5f4a 27995 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27997 (eval $ac_try) 2>&5
27998 ac_status=$?
27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); }; }; then
28001
4f14bcd8 28002 wx_cv_func_statfs=yes
e6cc62c6 28003
4f14bcd8 28004else
e6cc62c6
VS
28005 echo "$as_me: failed program was:" >&5
28006sed 's/^/| /' conftest.$ac_ext >&5
28007
28008
4f14bcd8 28009 wx_cv_func_statfs=no
e6cc62c6 28010
8284b0c5 28011
247f5006 28012fi
789c5f4a 28013rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28014
e6cc62c6
VS
28015fi
28016echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
28017echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
28018
28019if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 28020 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 28021 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28022#define HAVE_STATFS 1
e6cc62c6 28023_ACEOF
4f14bcd8
GD
28024
28025else
e6cc62c6
VS
28026 echo "$as_me:$LINENO: checking for statvfs" >&5
28027echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
28028if test "${wx_cv_func_statvfs+set}" = set; then
28029 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 28030else
e6cc62c6 28031 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28032#line $LINENO "configure"
e6cc62c6
VS
28033/* confdefs.h. */
28034_ACEOF
28035cat confdefs.h >>conftest.$ac_ext
28036cat >>conftest.$ac_ext <<_ACEOF
28037/* end confdefs.h. */
af15babd 28038
54ab82b3
VZ
28039 #include <stddef.h>
28040 #include <sys/statvfs.h>
e6cc62c6
VS
28041
28042int
28043main ()
28044{
af15babd 28045
54ab82b3 28046 statvfs("/", NULL);
e6cc62c6
VS
28047
28048 ;
28049 return 0;
28050}
28051_ACEOF
28052rm -f conftest.$ac_objext
28053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 28054 (eval $ac_compile) 2>&5
e6cc62c6
VS
28055 ac_status=$?
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); } &&
789c5f4a 28058 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060 (eval $ac_try) 2>&5
28061 ac_status=$?
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; }; then
54ab82b3 28064 wx_cv_func_statvfs=yes
af15babd 28065else
e6cc62c6
VS
28066 echo "$as_me: failed program was:" >&5
28067sed 's/^/| /' conftest.$ac_ext >&5
28068
28069wx_cv_func_statvfs=no
28070
247f5006 28071fi
789c5f4a 28072rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28073
e6cc62c6
VS
28074fi
28075echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
28076echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 28077
4f14bcd8 28078 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
28079
28080
28081 ac_ext=cc
54ab82b3 28082ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
28086
28087
e6cc62c6
VS
28088 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
28089echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
28090if test "${wx_cv_type_statvfs_t+set}" = set; then
28091 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 28092else
e6cc62c6 28093 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28094#line $LINENO "configure"
e6cc62c6
VS
28095/* confdefs.h. */
28096_ACEOF
28097cat confdefs.h >>conftest.$ac_ext
28098cat >>conftest.$ac_ext <<_ACEOF
28099/* end confdefs.h. */
54ab82b3
VZ
28100
28101 #include <sys/statvfs.h>
e6cc62c6
VS
28102
28103int
28104main ()
28105{
54ab82b3
VZ
28106
28107 long l;
28108 statvfs_t fs;
28109 statvfs("/", &fs);
28110 l = fs.f_bsize;
28111 l += fs.f_blocks;
28112 l += fs.f_bavail;
e6cc62c6
VS
28113
28114 ;
28115 return 0;
28116}
28117_ACEOF
28118rm -f conftest.$ac_objext
28119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 28120 (eval $ac_compile) 2>&5
e6cc62c6
VS
28121 ac_status=$?
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); } &&
789c5f4a 28124 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126 (eval $ac_try) 2>&5
28127 ac_status=$?
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); }; }; then
54ab82b3
VZ
28130 wx_cv_type_statvfs_t=statvfs_t
28131else
e6cc62c6
VS
28132 echo "$as_me: failed program was:" >&5
28133sed 's/^/| /' conftest.$ac_ext >&5
28134
28135
28136 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28137#line $LINENO "configure"
e6cc62c6
VS
28138/* confdefs.h. */
28139_ACEOF
28140cat confdefs.h >>conftest.$ac_ext
28141cat >>conftest.$ac_ext <<_ACEOF
28142/* end confdefs.h. */
54ab82b3
VZ
28143
28144 #include <sys/statvfs.h>
e6cc62c6
VS
28145
28146int
28147main ()
28148{
54ab82b3
VZ
28149
28150 long l;
65d8ef1e 28151 struct statvfs fs;
54ab82b3
VZ
28152 statvfs("/", &fs);
28153 l = fs.f_bsize;
28154 l += fs.f_blocks;
28155 l += fs.f_bavail;
e6cc62c6
VS
28156
28157 ;
28158 return 0;
28159}
28160_ACEOF
28161rm -f conftest.$ac_objext
28162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 28163 (eval $ac_compile) 2>&5
e6cc62c6
VS
28164 ac_status=$?
28165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166 (exit $ac_status); } &&
789c5f4a 28167 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28169 (eval $ac_try) 2>&5
28170 ac_status=$?
28171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172 (exit $ac_status); }; }; then
54ab82b3
VZ
28173 wx_cv_type_statvfs_t="struct statvfs"
28174else
e6cc62c6
VS
28175 echo "$as_me: failed program was:" >&5
28176sed 's/^/| /' conftest.$ac_ext >&5
28177
28178wx_cv_type_statvfs_t="unknown"
28179
54ab82b3 28180fi
789c5f4a 28181rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
28182
28183
54ab82b3 28184fi
789c5f4a 28185rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 28186
e6cc62c6
VS
28187fi
28188echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
28189echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
28190
28191 ac_ext=c
54ab82b3 28192ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28195ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
28196
28197
28198 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 28199 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28200#define HAVE_STATVFS 1
e6cc62c6 28201_ACEOF
af15babd 28202
54ab82b3 28203 fi
4f14bcd8 28204 else
54ab82b3 28205 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
28206 fi
28207fi
af15babd 28208
54ab82b3 28209if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 28210 cat >>confdefs.h <<_ACEOF
54ab82b3 28211#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 28212_ACEOF
54ab82b3
VZ
28213
28214else
e6cc62c6
VS
28215 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
28216echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
28217fi
28218
4f14bcd8 28219if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
28220
28221
28222for ac_func in fcntl flock
af15babd 28223do
e6cc62c6
VS
28224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28225echo "$as_me:$LINENO: checking for $ac_func" >&5
28226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28227if eval "test \"\${$as_ac_var+set}\" = set"; then
28228 echo $ECHO_N "(cached) $ECHO_C" >&6
28229else
28230 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28231#line $LINENO "configure"
e6cc62c6
VS
28232/* confdefs.h. */
28233_ACEOF
28234cat confdefs.h >>conftest.$ac_ext
28235cat >>conftest.$ac_ext <<_ACEOF
28236/* end confdefs.h. */
af15babd 28237/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28238 which can conflict with char $ac_func (); below.
28239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28240 <limits.h> exists even on freestanding compilers. */
28241#ifdef __STDC__
28242# include <limits.h>
28243#else
28244# include <assert.h>
28245#endif
af15babd 28246/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28247#ifdef __cplusplus
28248extern "C"
28249{
28250#endif
af15babd 28251/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28252 builtin and then its argument prototype would still apply. */
28253char $ac_func ();
af15babd
VZ
28254/* The GNU C library defines this for functions which it implements
28255 to always fail with ENOSYS. Some functions are actually named
28256 something starting with __ and the normal name is an alias. */
28257#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28258choke me
28259#else
e6cc62c6
VS
28260char (*f) () = $ac_func;
28261#endif
28262#ifdef __cplusplus
28263}
af15babd
VZ
28264#endif
28265
e6cc62c6
VS
28266int
28267main ()
28268{
28269return f != $ac_func;
28270 ;
28271 return 0;
28272}
28273_ACEOF
28274rm -f conftest.$ac_objext conftest$ac_exeext
28275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28276 (eval $ac_link) 2>&5
e6cc62c6
VS
28277 ac_status=$?
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); } &&
789c5f4a 28280 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28282 (eval $ac_try) 2>&5
28283 ac_status=$?
28284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285 (exit $ac_status); }; }; then
28286 eval "$as_ac_var=yes"
28287else
28288 echo "$as_me: failed program was:" >&5
28289sed 's/^/| /' conftest.$ac_ext >&5
28290
28291eval "$as_ac_var=no"
28292fi
789c5f4a 28293rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28294fi
28295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28296echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28297if test `eval echo '${'$as_ac_var'}'` = yes; then
28298 cat >>confdefs.h <<_ACEOF
28299#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28300_ACEOF
4f14bcd8 28301 break
af15babd
VZ
28302fi
28303done
28304
8284b0c5 28305
4f14bcd8 28306 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
28307 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
28308echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
28309 wxUSE_SNGLINST_CHECKER=no
28310 fi
28311fi
af15babd 28312
e6cc62c6 28313
4f14bcd8 28314for ac_func in timegm
af15babd 28315do
e6cc62c6
VS
28316as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28317echo "$as_me:$LINENO: checking for $ac_func" >&5
28318echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28319if eval "test \"\${$as_ac_var+set}\" = set"; then
28320 echo $ECHO_N "(cached) $ECHO_C" >&6
28321else
28322 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28323#line $LINENO "configure"
e6cc62c6
VS
28324/* confdefs.h. */
28325_ACEOF
28326cat confdefs.h >>conftest.$ac_ext
28327cat >>conftest.$ac_ext <<_ACEOF
28328/* end confdefs.h. */
af15babd 28329/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28330 which can conflict with char $ac_func (); below.
28331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28332 <limits.h> exists even on freestanding compilers. */
28333#ifdef __STDC__
28334# include <limits.h>
28335#else
28336# include <assert.h>
28337#endif
af15babd 28338/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28339#ifdef __cplusplus
28340extern "C"
28341{
28342#endif
af15babd 28343/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28344 builtin and then its argument prototype would still apply. */
28345char $ac_func ();
af15babd
VZ
28346/* The GNU C library defines this for functions which it implements
28347 to always fail with ENOSYS. Some functions are actually named
28348 something starting with __ and the normal name is an alias. */
247f5006
VZ
28349#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28350choke me
28351#else
e6cc62c6
VS
28352char (*f) () = $ac_func;
28353#endif
28354#ifdef __cplusplus
28355}
247f5006
VZ
28356#endif
28357
e6cc62c6
VS
28358int
28359main ()
28360{
28361return f != $ac_func;
28362 ;
28363 return 0;
28364}
28365_ACEOF
28366rm -f conftest.$ac_objext conftest$ac_exeext
28367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28368 (eval $ac_link) 2>&5
e6cc62c6
VS
28369 ac_status=$?
28370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371 (exit $ac_status); } &&
789c5f4a 28372 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28374 (eval $ac_try) 2>&5
28375 ac_status=$?
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); }; }; then
28378 eval "$as_ac_var=yes"
28379else
28380 echo "$as_me: failed program was:" >&5
28381sed 's/^/| /' conftest.$ac_ext >&5
28382
28383eval "$as_ac_var=no"
28384fi
789c5f4a 28385rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28386fi
28387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28388echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28389if test `eval echo '${'$as_ac_var'}'` = yes; then
28390 cat >>confdefs.h <<_ACEOF
28391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28392_ACEOF
703e0a69 28393
af15babd
VZ
28394fi
28395done
28396
8284b0c5 28397
e6cc62c6
VS
28398
28399
4f14bcd8 28400for ac_func in putenv setenv
10f2d63a 28401do
e6cc62c6
VS
28402as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28403echo "$as_me:$LINENO: checking for $ac_func" >&5
28404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28405if eval "test \"\${$as_ac_var+set}\" = set"; then
28406 echo $ECHO_N "(cached) $ECHO_C" >&6
28407else
28408 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28409#line $LINENO "configure"
e6cc62c6
VS
28410/* confdefs.h. */
28411_ACEOF
28412cat confdefs.h >>conftest.$ac_ext
28413cat >>conftest.$ac_ext <<_ACEOF
28414/* end confdefs.h. */
af15babd 28415/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28416 which can conflict with char $ac_func (); below.
28417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28418 <limits.h> exists even on freestanding compilers. */
28419#ifdef __STDC__
28420# include <limits.h>
28421#else
28422# include <assert.h>
28423#endif
af15babd 28424/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28425#ifdef __cplusplus
28426extern "C"
28427{
28428#endif
af15babd 28429/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28430 builtin and then its argument prototype would still apply. */
28431char $ac_func ();
af15babd
VZ
28432/* The GNU C library defines this for functions which it implements
28433 to always fail with ENOSYS. Some functions are actually named
28434 something starting with __ and the normal name is an alias. */
28435#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28436choke me
28437#else
e6cc62c6
VS
28438char (*f) () = $ac_func;
28439#endif
28440#ifdef __cplusplus
28441}
af15babd
VZ
28442#endif
28443
e6cc62c6
VS
28444int
28445main ()
28446{
28447return f != $ac_func;
28448 ;
28449 return 0;
28450}
28451_ACEOF
28452rm -f conftest.$ac_objext conftest$ac_exeext
28453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28454 (eval $ac_link) 2>&5
e6cc62c6
VS
28455 ac_status=$?
28456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28457 (exit $ac_status); } &&
789c5f4a 28458 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28460 (eval $ac_try) 2>&5
28461 ac_status=$?
28462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463 (exit $ac_status); }; }; then
28464 eval "$as_ac_var=yes"
28465else
28466 echo "$as_me: failed program was:" >&5
28467sed 's/^/| /' conftest.$ac_ext >&5
28468
28469eval "$as_ac_var=no"
28470fi
789c5f4a 28471rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28472fi
28473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28474echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28475if test `eval echo '${'$as_ac_var'}'` = yes; then
28476 cat >>confdefs.h <<_ACEOF
28477#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28478_ACEOF
4f14bcd8 28479 break
af15babd 28480fi
af15babd
VZ
28481done
28482
8284b0c5 28483
4f14bcd8
GD
28484HAVE_SOME_SLEEP_FUNC=0
28485if test "$USE_BEOS" = 1; then
e6cc62c6 28486 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28487#define HAVE_SLEEP 1
e6cc62c6 28488_ACEOF
af15babd 28489
4f14bcd8 28490 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
28491fi
28492
4f14bcd8 28493if test "$USE_DARWIN" = 1; then
e6cc62c6 28494 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28495#define HAVE_USLEEP 1
e6cc62c6 28496_ACEOF
10f2d63a 28497
4f14bcd8 28498 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
28499fi
28500
4f14bcd8
GD
28501if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
28502 POSIX4_LINK=
e6cc62c6
VS
28503
28504for ac_func in nanosleep
4f14bcd8 28505do
e6cc62c6
VS
28506as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28507echo "$as_me:$LINENO: checking for $ac_func" >&5
28508echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28509if eval "test \"\${$as_ac_var+set}\" = set"; then
28510 echo $ECHO_N "(cached) $ECHO_C" >&6
28511else
28512 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28513#line $LINENO "configure"
e6cc62c6
VS
28514/* confdefs.h. */
28515_ACEOF
28516cat confdefs.h >>conftest.$ac_ext
28517cat >>conftest.$ac_ext <<_ACEOF
28518/* end confdefs.h. */
4f14bcd8 28519/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28520 which can conflict with char $ac_func (); below.
28521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28522 <limits.h> exists even on freestanding compilers. */
28523#ifdef __STDC__
28524# include <limits.h>
28525#else
28526# include <assert.h>
28527#endif
10f2d63a 28528/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28529#ifdef __cplusplus
28530extern "C"
28531{
28532#endif
10f2d63a 28533/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28534 builtin and then its argument prototype would still apply. */
28535char $ac_func ();
4f14bcd8
GD
28536/* The GNU C library defines this for functions which it implements
28537 to always fail with ENOSYS. Some functions are actually named
28538 something starting with __ and the normal name is an alias. */
28539#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28540choke me
28541#else
e6cc62c6
VS
28542char (*f) () = $ac_func;
28543#endif
28544#ifdef __cplusplus
28545}
4f14bcd8
GD
28546#endif
28547
e6cc62c6
VS
28548int
28549main ()
28550{
28551return f != $ac_func;
28552 ;
28553 return 0;
28554}
28555_ACEOF
28556rm -f conftest.$ac_objext conftest$ac_exeext
28557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28558 (eval $ac_link) 2>&5
e6cc62c6
VS
28559 ac_status=$?
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); } &&
789c5f4a 28562 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28564 (eval $ac_try) 2>&5
28565 ac_status=$?
28566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); }; }; then
28568 eval "$as_ac_var=yes"
28569else
28570 echo "$as_me: failed program was:" >&5
28571sed 's/^/| /' conftest.$ac_ext >&5
28572
28573eval "$as_ac_var=no"
28574fi
789c5f4a 28575rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28576fi
28577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28578echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28579if test `eval echo '${'$as_ac_var'}'` = yes; then
28580 cat >>confdefs.h <<_ACEOF
28581#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28582_ACEOF
28583 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28584#define HAVE_NANOSLEEP 1
e6cc62c6 28585_ACEOF
4f14bcd8 28586
10f2d63a 28587else
e6cc62c6
VS
28588
28589 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
28590echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
28591if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
28592 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28593else
e6cc62c6 28594 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28595LIBS="-lposix4 $LIBS"
e6cc62c6 28596cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28597#line $LINENO "configure"
e6cc62c6
VS
28598/* confdefs.h. */
28599_ACEOF
28600cat confdefs.h >>conftest.$ac_ext
28601cat >>conftest.$ac_ext <<_ACEOF
28602/* end confdefs.h. */
28603
10f2d63a 28604/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28605#ifdef __cplusplus
28606extern "C"
28607#endif
10f2d63a 28608/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28609 builtin and then its argument prototype would still apply. */
28610char nanosleep ();
28611int
28612main ()
28613{
28614nanosleep ();
28615 ;
28616 return 0;
28617}
28618_ACEOF
28619rm -f conftest.$ac_objext conftest$ac_exeext
28620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28621 (eval $ac_link) 2>&5
e6cc62c6
VS
28622 ac_status=$?
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); } &&
789c5f4a 28625 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28627 (eval $ac_try) 2>&5
28628 ac_status=$?
28629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630 (exit $ac_status); }; }; then
28631 ac_cv_lib_posix4_nanosleep=yes
28632else
28633 echo "$as_me: failed program was:" >&5
28634sed 's/^/| /' conftest.$ac_ext >&5
28635
28636ac_cv_lib_posix4_nanosleep=no
28637fi
789c5f4a 28638rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28639LIBS=$ac_check_lib_save_LIBS
28640fi
28641echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
28642echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
28643if test $ac_cv_lib_posix4_nanosleep = yes; then
28644
28645 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28646#define HAVE_NANOSLEEP 1
e6cc62c6 28647_ACEOF
4f14bcd8 28648
3d63bc3a 28649 POSIX4_LINK=" -lposix4"
e6cc62c6 28650
10f2d63a 28651else
10f2d63a 28652
e6cc62c6
VS
28653
28654for ac_func in usleep
4f14bcd8 28655do
e6cc62c6
VS
28656as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28657echo "$as_me:$LINENO: checking for $ac_func" >&5
28658echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28659if eval "test \"\${$as_ac_var+set}\" = set"; then
28660 echo $ECHO_N "(cached) $ECHO_C" >&6
28661else
28662 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28663#line $LINENO "configure"
e6cc62c6
VS
28664/* confdefs.h. */
28665_ACEOF
28666cat confdefs.h >>conftest.$ac_ext
28667cat >>conftest.$ac_ext <<_ACEOF
28668/* end confdefs.h. */
4f14bcd8 28669/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28670 which can conflict with char $ac_func (); below.
28671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28672 <limits.h> exists even on freestanding compilers. */
28673#ifdef __STDC__
28674# include <limits.h>
28675#else
28676# include <assert.h>
28677#endif
4f14bcd8 28678/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28679#ifdef __cplusplus
28680extern "C"
28681{
28682#endif
4f14bcd8 28683/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28684 builtin and then its argument prototype would still apply. */
28685char $ac_func ();
4f14bcd8
GD
28686/* The GNU C library defines this for functions which it implements
28687 to always fail with ENOSYS. Some functions are actually named
28688 something starting with __ and the normal name is an alias. */
28689#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28690choke me
28691#else
e6cc62c6
VS
28692char (*f) () = $ac_func;
28693#endif
28694#ifdef __cplusplus
28695}
4f14bcd8
GD
28696#endif
28697
e6cc62c6
VS
28698int
28699main ()
28700{
28701return f != $ac_func;
28702 ;
28703 return 0;
28704}
28705_ACEOF
28706rm -f conftest.$ac_objext conftest$ac_exeext
28707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28708 (eval $ac_link) 2>&5
e6cc62c6
VS
28709 ac_status=$?
28710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); } &&
789c5f4a 28712 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28714 (eval $ac_try) 2>&5
28715 ac_status=$?
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); }; }; then
28718 eval "$as_ac_var=yes"
28719else
28720 echo "$as_me: failed program was:" >&5
28721sed 's/^/| /' conftest.$ac_ext >&5
28722
28723eval "$as_ac_var=no"
28724fi
789c5f4a 28725rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28726fi
28727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28728echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28729if test `eval echo '${'$as_ac_var'}'` = yes; then
28730 cat >>confdefs.h <<_ACEOF
28731#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28732_ACEOF
28733 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28734#define HAVE_USLEEP 1
e6cc62c6 28735_ACEOF
4f14bcd8 28736
698dcdb6 28737else
e6cc62c6
VS
28738 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
28739echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
28740
10f2d63a 28741fi
4f14bcd8 28742done
10f2d63a 28743
e6cc62c6
VS
28744
28745
6232543b 28746fi
10f2d63a 28747
e6cc62c6
VS
28748
28749
1e487827 28750fi
4f14bcd8 28751done
703e0a69 28752
10f2d63a
VZ
28753fi
28754
e6cc62c6
VS
28755
28756
4f14bcd8 28757for ac_func in uname gethostname
70846f0a 28758do
e6cc62c6
VS
28759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28760echo "$as_me:$LINENO: checking for $ac_func" >&5
28761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28762if eval "test \"\${$as_ac_var+set}\" = set"; then
28763 echo $ECHO_N "(cached) $ECHO_C" >&6
28764else
28765 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28766#line $LINENO "configure"
e6cc62c6
VS
28767/* confdefs.h. */
28768_ACEOF
28769cat confdefs.h >>conftest.$ac_ext
28770cat >>conftest.$ac_ext <<_ACEOF
28771/* end confdefs.h. */
70846f0a 28772/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28773 which can conflict with char $ac_func (); below.
28774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28775 <limits.h> exists even on freestanding compilers. */
28776#ifdef __STDC__
28777# include <limits.h>
28778#else
28779# include <assert.h>
28780#endif
70846f0a 28781/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28782#ifdef __cplusplus
28783extern "C"
28784{
28785#endif
70846f0a 28786/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28787 builtin and then its argument prototype would still apply. */
28788char $ac_func ();
70846f0a
VZ
28789/* The GNU C library defines this for functions which it implements
28790 to always fail with ENOSYS. Some functions are actually named
28791 something starting with __ and the normal name is an alias. */
28792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28793choke me
28794#else
e6cc62c6
VS
28795char (*f) () = $ac_func;
28796#endif
28797#ifdef __cplusplus
28798}
70846f0a
VZ
28799#endif
28800
e6cc62c6
VS
28801int
28802main ()
28803{
28804return f != $ac_func;
28805 ;
28806 return 0;
28807}
28808_ACEOF
28809rm -f conftest.$ac_objext conftest$ac_exeext
28810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28811 (eval $ac_link) 2>&5
e6cc62c6
VS
28812 ac_status=$?
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); } &&
789c5f4a 28815 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28817 (eval $ac_try) 2>&5
28818 ac_status=$?
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); }; }; then
28821 eval "$as_ac_var=yes"
28822else
28823 echo "$as_me: failed program was:" >&5
28824sed 's/^/| /' conftest.$ac_ext >&5
28825
28826eval "$as_ac_var=no"
28827fi
789c5f4a 28828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28829fi
28830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28832if test `eval echo '${'$as_ac_var'}'` = yes; then
28833 cat >>confdefs.h <<_ACEOF
28834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28835_ACEOF
4f14bcd8 28836 break
70846f0a
VZ
28837fi
28838done
28839
8284b0c5
MB
28840
28841
e6cc62c6
VS
28842
28843ac_ext=cc
4f14bcd8 28844ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28848
8284b0c5 28849
4f14bcd8
GD
28850
28851for ac_func in strtok_r
10f2d63a 28852do
e6cc62c6
VS
28853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28854echo "$as_me:$LINENO: checking for $ac_func" >&5
28855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28856if eval "test \"\${$as_ac_var+set}\" = set"; then
28857 echo $ECHO_N "(cached) $ECHO_C" >&6
28858else
28859 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28860#line $LINENO "configure"
e6cc62c6
VS
28861/* confdefs.h. */
28862_ACEOF
28863cat confdefs.h >>conftest.$ac_ext
28864cat >>conftest.$ac_ext <<_ACEOF
28865/* end confdefs.h. */
4f14bcd8 28866/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28867 which can conflict with char $ac_func (); below.
28868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28869 <limits.h> exists even on freestanding compilers. */
28870#ifdef __STDC__
28871# include <limits.h>
28872#else
28873# include <assert.h>
28874#endif
4f14bcd8
GD
28875/* Override any gcc2 internal prototype to avoid an error. */
28876#ifdef __cplusplus
28877extern "C"
e6cc62c6 28878{
4f14bcd8
GD
28879#endif
28880/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28881 builtin and then its argument prototype would still apply. */
28882char $ac_func ();
4f14bcd8
GD
28883/* The GNU C library defines this for functions which it implements
28884 to always fail with ENOSYS. Some functions are actually named
28885 something starting with __ and the normal name is an alias. */
28886#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28887choke me
28888#else
e6cc62c6
VS
28889char (*f) () = $ac_func;
28890#endif
28891#ifdef __cplusplus
28892}
4f14bcd8
GD
28893#endif
28894
e6cc62c6
VS
28895int
28896main ()
28897{
28898return f != $ac_func;
28899 ;
28900 return 0;
28901}
28902_ACEOF
28903rm -f conftest.$ac_objext conftest$ac_exeext
28904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28905 (eval $ac_link) 2>&5
e6cc62c6
VS
28906 ac_status=$?
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); } &&
789c5f4a 28909 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28911 (eval $ac_try) 2>&5
28912 ac_status=$?
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); }; }; then
28915 eval "$as_ac_var=yes"
28916else
28917 echo "$as_me: failed program was:" >&5
28918sed 's/^/| /' conftest.$ac_ext >&5
28919
28920eval "$as_ac_var=no"
28921fi
789c5f4a 28922rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28923fi
28924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28925echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28926if test `eval echo '${'$as_ac_var'}'` = yes; then
28927 cat >>confdefs.h <<_ACEOF
28928#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28929_ACEOF
4f14bcd8 28930
10f2d63a
VZ
28931fi
28932done
28933
8284b0c5 28934
4f14bcd8 28935ac_ext=c
4f14bcd8 28936ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28939ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28940
5c6fa7d2 28941
8284b0c5 28942INET_LINK=
e6cc62c6 28943
4f14bcd8
GD
28944for ac_func in inet_addr
28945do
e6cc62c6
VS
28946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28947echo "$as_me:$LINENO: checking for $ac_func" >&5
28948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28949if eval "test \"\${$as_ac_var+set}\" = set"; then
28950 echo $ECHO_N "(cached) $ECHO_C" >&6
28951else
28952 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28953#line $LINENO "configure"
e6cc62c6
VS
28954/* confdefs.h. */
28955_ACEOF
28956cat confdefs.h >>conftest.$ac_ext
28957cat >>conftest.$ac_ext <<_ACEOF
28958/* end confdefs.h. */
4f14bcd8 28959/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28960 which can conflict with char $ac_func (); below.
28961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28962 <limits.h> exists even on freestanding compilers. */
28963#ifdef __STDC__
28964# include <limits.h>
28965#else
28966# include <assert.h>
28967#endif
10f2d63a 28968/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28969#ifdef __cplusplus
28970extern "C"
28971{
28972#endif
10f2d63a 28973/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28974 builtin and then its argument prototype would still apply. */
28975char $ac_func ();
4f14bcd8
GD
28976/* The GNU C library defines this for functions which it implements
28977 to always fail with ENOSYS. Some functions are actually named
28978 something starting with __ and the normal name is an alias. */
28979#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28980choke me
28981#else
e6cc62c6
VS
28982char (*f) () = $ac_func;
28983#endif
28984#ifdef __cplusplus
28985}
4f14bcd8
GD
28986#endif
28987
e6cc62c6
VS
28988int
28989main ()
28990{
28991return f != $ac_func;
28992 ;
28993 return 0;
28994}
28995_ACEOF
28996rm -f conftest.$ac_objext conftest$ac_exeext
28997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28998 (eval $ac_link) 2>&5
e6cc62c6
VS
28999 ac_status=$?
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); } &&
789c5f4a 29002 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29004 (eval $ac_try) 2>&5
29005 ac_status=$?
29006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007 (exit $ac_status); }; }; then
29008 eval "$as_ac_var=yes"
29009else
29010 echo "$as_me: failed program was:" >&5
29011sed 's/^/| /' conftest.$ac_ext >&5
29012
29013eval "$as_ac_var=no"
29014fi
789c5f4a 29015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29016fi
29017echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29018echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29019if test `eval echo '${'$as_ac_var'}'` = yes; then
29020 cat >>confdefs.h <<_ACEOF
29021#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29022_ACEOF
29023 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29024#define HAVE_INET_ADDR 1
e6cc62c6 29025_ACEOF
10f2d63a
VZ
29026
29027else
e6cc62c6
VS
29028
29029 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
29030echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
29031if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
29032 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 29033else
e6cc62c6 29034 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29035LIBS="-lnsl $LIBS"
e6cc62c6 29036cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29037#line $LINENO "configure"
e6cc62c6
VS
29038/* confdefs.h. */
29039_ACEOF
29040cat confdefs.h >>conftest.$ac_ext
29041cat >>conftest.$ac_ext <<_ACEOF
29042/* end confdefs.h. */
29043
10f2d63a 29044/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29045#ifdef __cplusplus
29046extern "C"
29047#endif
10f2d63a 29048/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29049 builtin and then its argument prototype would still apply. */
29050char inet_addr ();
29051int
29052main ()
29053{
29054inet_addr ();
29055 ;
29056 return 0;
29057}
29058_ACEOF
29059rm -f conftest.$ac_objext conftest$ac_exeext
29060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29061 (eval $ac_link) 2>&5
e6cc62c6
VS
29062 ac_status=$?
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); } &&
789c5f4a 29065 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29067 (eval $ac_try) 2>&5
29068 ac_status=$?
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); }; }; then
29071 ac_cv_lib_nsl_inet_addr=yes
29072else
29073 echo "$as_me: failed program was:" >&5
29074sed 's/^/| /' conftest.$ac_ext >&5
29075
29076ac_cv_lib_nsl_inet_addr=no
29077fi
789c5f4a 29078rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29079LIBS=$ac_check_lib_save_LIBS
29080fi
29081echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
29082echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
29083if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 29084 INET_LINK="nsl"
10f2d63a 29085else
0e012a93
VZ
29086
29087 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
29088echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
29089if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
29090 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 29091else
e6cc62c6 29092 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29093LIBS="-lresolv $LIBS"
e6cc62c6 29094cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29095#line $LINENO "configure"
e6cc62c6
VS
29096/* confdefs.h. */
29097_ACEOF
29098cat confdefs.h >>conftest.$ac_ext
29099cat >>conftest.$ac_ext <<_ACEOF
29100/* end confdefs.h. */
29101
5c6fa7d2 29102/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29103#ifdef __cplusplus
29104extern "C"
29105#endif
5c6fa7d2 29106/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29107 builtin and then its argument prototype would still apply. */
29108char inet_addr ();
29109int
29110main ()
29111{
29112inet_addr ();
29113 ;
29114 return 0;
29115}
29116_ACEOF
29117rm -f conftest.$ac_objext conftest$ac_exeext
29118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29119 (eval $ac_link) 2>&5
e6cc62c6
VS
29120 ac_status=$?
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); } &&
789c5f4a 29123 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29125 (eval $ac_try) 2>&5
29126 ac_status=$?
29127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128 (exit $ac_status); }; }; then
29129 ac_cv_lib_resolv_inet_addr=yes
29130else
29131 echo "$as_me: failed program was:" >&5
29132sed 's/^/| /' conftest.$ac_ext >&5
29133
29134ac_cv_lib_resolv_inet_addr=no
29135fi
789c5f4a 29136rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29137LIBS=$ac_check_lib_save_LIBS
29138fi
29139echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
29140echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
29141if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 29142 INET_LINK="resolv"
698dcdb6 29143else
0e012a93
VZ
29144
29145 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
29146echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
29147if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
29148 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 29149else
e6cc62c6 29150 ac_check_lib_save_LIBS=$LIBS
3c011993 29151LIBS="-lsocket $LIBS"
e6cc62c6 29152cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29153#line $LINENO "configure"
e6cc62c6
VS
29154/* confdefs.h. */
29155_ACEOF
29156cat confdefs.h >>conftest.$ac_ext
29157cat >>conftest.$ac_ext <<_ACEOF
29158/* end confdefs.h. */
29159
3c011993 29160/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29161#ifdef __cplusplus
29162extern "C"
29163#endif
3c011993 29164/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29165 builtin and then its argument prototype would still apply. */
29166char inet_addr ();
29167int
29168main ()
29169{
29170inet_addr ();
29171 ;
29172 return 0;
29173}
29174_ACEOF
29175rm -f conftest.$ac_objext conftest$ac_exeext
29176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29177 (eval $ac_link) 2>&5
e6cc62c6
VS
29178 ac_status=$?
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); } &&
789c5f4a 29181 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29183 (eval $ac_try) 2>&5
29184 ac_status=$?
29185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186 (exit $ac_status); }; }; then
29187 ac_cv_lib_socket_inet_addr=yes
29188else
29189 echo "$as_me: failed program was:" >&5
29190sed 's/^/| /' conftest.$ac_ext >&5
29191
29192ac_cv_lib_socket_inet_addr=no
29193fi
789c5f4a 29194rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29195LIBS=$ac_check_lib_save_LIBS
29196fi
29197echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
29198echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
29199if test $ac_cv_lib_socket_inet_addr = yes; then
29200 INET_LINK="socket"
4f14bcd8 29201
8284b0c5 29202fi
e6cc62c6 29203
698dcdb6 29204
0e012a93 29205
7b4a847f 29206fi
e6cc62c6
VS
29207
29208
0e012a93 29209
a0b9e27f 29210fi
579d8138 29211
e6cc62c6
VS
29212
29213
5c6fa7d2 29214fi
e6cc62c6
VS
29215done
29216
29217
29218
29219for ac_func in inet_aton
29220do
29221as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29222echo "$as_me:$LINENO: checking for $ac_func" >&5
29223echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29224if eval "test \"\${$as_ac_var+set}\" = set"; then
29225 echo $ECHO_N "(cached) $ECHO_C" >&6
29226else
29227 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29228#line $LINENO "configure"
e6cc62c6
VS
29229/* confdefs.h. */
29230_ACEOF
29231cat confdefs.h >>conftest.$ac_ext
29232cat >>conftest.$ac_ext <<_ACEOF
29233/* end confdefs.h. */
29234/* System header to define __stub macros and hopefully few prototypes,
29235 which can conflict with char $ac_func (); below.
29236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29237 <limits.h> exists even on freestanding compilers. */
29238#ifdef __STDC__
29239# include <limits.h>
29240#else
29241# include <assert.h>
29242#endif
29243/* Override any gcc2 internal prototype to avoid an error. */
29244#ifdef __cplusplus
29245extern "C"
29246{
29247#endif
29248/* We use char because int might match the return type of a gcc2
29249 builtin and then its argument prototype would still apply. */
29250char $ac_func ();
29251/* The GNU C library defines this for functions which it implements
29252 to always fail with ENOSYS. Some functions are actually named
29253 something starting with __ and the normal name is an alias. */
29254#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29255choke me
29256#else
29257char (*f) () = $ac_func;
29258#endif
29259#ifdef __cplusplus
29260}
29261#endif
29262
29263int
29264main ()
29265{
29266return f != $ac_func;
29267 ;
29268 return 0;
29269}
29270_ACEOF
29271rm -f conftest.$ac_objext conftest$ac_exeext
29272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29273 (eval $ac_link) 2>&5
e6cc62c6
VS
29274 ac_status=$?
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); } &&
789c5f4a 29277 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29279 (eval $ac_try) 2>&5
29280 ac_status=$?
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); }; }; then
29283 eval "$as_ac_var=yes"
29284else
29285 echo "$as_me: failed program was:" >&5
29286sed 's/^/| /' conftest.$ac_ext >&5
29287
29288eval "$as_ac_var=no"
29289fi
789c5f4a 29290rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29291fi
29292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29293echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29294if test `eval echo '${'$as_ac_var'}'` = yes; then
29295 cat >>confdefs.h <<_ACEOF
29296#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29297_ACEOF
29298 cat >>confdefs.h <<\_ACEOF
29299#define HAVE_INET_ATON 1
29300_ACEOF
29301
29302else
29303
29304 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
29305echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
29306echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
29307if eval "test \"\${$as_ac_Lib+set}\" = set"; then
29308 echo $ECHO_N "(cached) $ECHO_C" >&6
29309else
29310 ac_check_lib_save_LIBS=$LIBS
29311LIBS="-l$INET_LINK $LIBS"
29312cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29313#line $LINENO "configure"
e6cc62c6
VS
29314/* confdefs.h. */
29315_ACEOF
29316cat confdefs.h >>conftest.$ac_ext
29317cat >>conftest.$ac_ext <<_ACEOF
29318/* end confdefs.h. */
29319
29320/* Override any gcc2 internal prototype to avoid an error. */
29321#ifdef __cplusplus
29322extern "C"
29323#endif
29324/* We use char because int might match the return type of a gcc2
29325 builtin and then its argument prototype would still apply. */
29326char inet_aton ();
29327int
29328main ()
29329{
29330inet_aton ();
29331 ;
29332 return 0;
29333}
29334_ACEOF
29335rm -f conftest.$ac_objext conftest$ac_exeext
29336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29337 (eval $ac_link) 2>&5
e6cc62c6
VS
29338 ac_status=$?
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); } &&
789c5f4a 29341 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29343 (eval $ac_try) 2>&5
29344 ac_status=$?
29345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346 (exit $ac_status); }; }; then
29347 eval "$as_ac_Lib=yes"
29348else
29349 echo "$as_me: failed program was:" >&5
29350sed 's/^/| /' conftest.$ac_ext >&5
29351
29352eval "$as_ac_Lib=no"
29353fi
789c5f4a 29354rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29355LIBS=$ac_check_lib_save_LIBS
29356fi
29357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
29358echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
29359if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29360 cat >>confdefs.h <<\_ACEOF
29361#define HAVE_INET_ATON 1
29362_ACEOF
52127426 29363
a0b9e27f 29364fi
247f5006 29365
8284b0c5 29366
698dcdb6 29367fi
4f14bcd8
GD
29368done
29369
8284b0c5 29370
e6cc62c6
VS
29371if test "x$INET_LINK" != "x"; then
29372 cat >>confdefs.h <<\_ACEOF
29373#define HAVE_INET_ADDR 1
29374_ACEOF
29375
29376 INET_LINK=" -l$INET_LINK"
29377fi
29378
29379fi
a0b9e27f 29380
a0b9e27f 29381
4f14bcd8 29382
edd891e2
VS
29383EXTRALIBS_ESD=
29384echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
29385echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
29386if test "${ac_cv_lib_esd_esd_close+set}" = set; then
29387 echo $ECHO_N "(cached) $ECHO_C" >&6
29388else
29389 ac_check_lib_save_LIBS=$LIBS
29390LIBS="-lesd $LIBS"
29391cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29392#line $LINENO "configure"
edd891e2
VS
29393/* confdefs.h. */
29394_ACEOF
29395cat confdefs.h >>conftest.$ac_ext
29396cat >>conftest.$ac_ext <<_ACEOF
29397/* end confdefs.h. */
29398
29399/* Override any gcc2 internal prototype to avoid an error. */
29400#ifdef __cplusplus
29401extern "C"
29402#endif
29403/* We use char because int might match the return type of a gcc2
29404 builtin and then its argument prototype would still apply. */
29405char esd_close ();
29406int
29407main ()
29408{
29409esd_close ();
29410 ;
29411 return 0;
29412}
29413_ACEOF
29414rm -f conftest.$ac_objext conftest$ac_exeext
29415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29416 (eval $ac_link) 2>&5
edd891e2
VS
29417 ac_status=$?
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); } &&
789c5f4a 29420 { ac_try='test -s conftest$ac_exeext'
edd891e2
VS
29421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29422 (eval $ac_try) 2>&5
29423 ac_status=$?
29424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425 (exit $ac_status); }; }; then
29426 ac_cv_lib_esd_esd_close=yes
29427else
29428 echo "$as_me: failed program was:" >&5
29429sed 's/^/| /' conftest.$ac_ext >&5
29430
29431ac_cv_lib_esd_esd_close=no
29432fi
789c5f4a 29433rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
edd891e2
VS
29434LIBS=$ac_check_lib_save_LIBS
29435fi
29436echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
29437echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
29438if test $ac_cv_lib_esd_esd_close = yes; then
29439
29440
29441for ac_header in esd.h
29442do
29443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29444if eval "test \"\${$as_ac_Header+set}\" = set"; then
29445 echo "$as_me:$LINENO: checking for $ac_header" >&5
29446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29447if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
29448 echo $ECHO_N "(cached) $ECHO_C" >&6
29449fi
edd891e2
VS
29450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
29452else
29453 # Is the header compilable?
edd891e2
VS
29454echo "$as_me:$LINENO: checking $ac_header usability" >&5
29455echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 29456cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29457#line $LINENO "configure"
e6cc62c6
VS
29458/* confdefs.h. */
29459_ACEOF
29460cat confdefs.h >>conftest.$ac_ext
29461cat >>conftest.$ac_ext <<_ACEOF
29462/* end confdefs.h. */
29463$ac_includes_default
edd891e2 29464#include <$ac_header>
e6cc62c6
VS
29465_ACEOF
29466rm -f conftest.$ac_objext
29467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 29468 (eval $ac_compile) 2>&5
e6cc62c6
VS
29469 ac_status=$?
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); } &&
789c5f4a 29472 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29474 (eval $ac_try) 2>&5
29475 ac_status=$?
29476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477 (exit $ac_status); }; }; then
29478 ac_header_compiler=yes
29479else
29480 echo "$as_me: failed program was:" >&5
29481sed 's/^/| /' conftest.$ac_ext >&5
29482
29483ac_header_compiler=no
29484fi
789c5f4a 29485rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
29486echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29487echo "${ECHO_T}$ac_header_compiler" >&6
29488
29489# Is the header present?
edd891e2
VS
29490echo "$as_me:$LINENO: checking $ac_header presence" >&5
29491echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6 29492cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29493#line $LINENO "configure"
e6cc62c6
VS
29494/* confdefs.h. */
29495_ACEOF
29496cat confdefs.h >>conftest.$ac_ext
29497cat >>conftest.$ac_ext <<_ACEOF
29498/* end confdefs.h. */
edd891e2 29499#include <$ac_header>
e6cc62c6
VS
29500_ACEOF
29501if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29503 ac_status=$?
29504 grep -v '^ *+' conftest.er1 >conftest.err
29505 rm -f conftest.er1
29506 cat conftest.err >&5
29507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508 (exit $ac_status); } >/dev/null; then
29509 if test -s conftest.err; then
29510 ac_cpp_err=$ac_c_preproc_warn_flag
29511 else
29512 ac_cpp_err=
29513 fi
a0b9e27f 29514else
e6cc62c6
VS
29515 ac_cpp_err=yes
29516fi
29517if test -z "$ac_cpp_err"; then
29518 ac_header_preproc=yes
29519else
29520 echo "$as_me: failed program was:" >&5
29521sed 's/^/| /' conftest.$ac_ext >&5
29522
29523 ac_header_preproc=no
29524fi
29525rm -f conftest.err conftest.$ac_ext
29526echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29527echo "${ECHO_T}$ac_header_preproc" >&6
29528
29529# So? What about this header?
789c5f4a
VZ
29530case $ac_header_compiler:$ac_header_preproc in
29531 yes:no )
edd891e2
VS
29532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29533echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
29534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29535echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29536 (
29537 cat <<\_ASBOX
29538## ------------------------------------ ##
29539## Report this to bug-autoconf@gnu.org. ##
29540## ------------------------------------ ##
29541_ASBOX
29542 ) |
29543 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 29544 ;;
789c5f4a 29545 no:yes )
edd891e2
VS
29546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
29548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29549echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
edd891e2
VS
29550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29551echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
29552 (
29553 cat <<\_ASBOX
789c5f4a
VZ
29554## ------------------------------------ ##
29555## Report this to bug-autoconf@gnu.org. ##
29556## ------------------------------------ ##
e6cc62c6
VS
29557_ASBOX
29558 ) |
29559 sed "s/^/$as_me: WARNING: /" >&2
29560 ;;
29561esac
edd891e2
VS
29562echo "$as_me:$LINENO: checking for $ac_header" >&5
29563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29564if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
29565 echo $ECHO_N "(cached) $ECHO_C" >&6
29566else
789c5f4a 29567 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 29568fi
edd891e2
VS
29569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 29571
e6cc62c6 29572fi
edd891e2
VS
29573if test `eval echo '${'$as_ac_Header'}'` = yes; then
29574 cat >>confdefs.h <<_ACEOF
29575#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 29576_ACEOF
e6cc62c6 29577
edd891e2 29578 EXTRALIBS_ESD="-lesd"
4f14bcd8 29579
a0b9e27f 29580fi
247f5006 29581
edd891e2 29582done
8284b0c5 29583
4f14bcd8 29584
6232543b 29585fi
10f2d63a 29586
703e0a69 29587
8284b0c5 29588
d19d1899
MB
29589echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
29590echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
29591cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29592#line $LINENO "configure"
d19d1899
MB
29593/* confdefs.h. */
29594_ACEOF
29595cat confdefs.h >>conftest.$ac_ext
29596cat >>conftest.$ac_ext <<_ACEOF
29597/* end confdefs.h. */
29598#ifdef __linux__
29599 #include <linux/cdrom.h>
29600 #else
29601 /* For Solaris */
29602 #include <sys/cdio.h>
29603 #endif
29604
29605int
29606main ()
29607{
29608struct cdrom_tocentry entry, old_entry;
29609 ;
29610 return 0;
29611}
29612_ACEOF
29613rm -f conftest.$ac_objext
29614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 29615 (eval $ac_compile) 2>&5
d19d1899
MB
29616 ac_status=$?
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); } &&
789c5f4a 29619 { ac_try='test -s conftest.$ac_objext'
d19d1899
MB
29620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621 (eval $ac_try) 2>&5
29622 ac_status=$?
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
29625 echo "$as_me:$LINENO: result: yes" >&5
29626echo "${ECHO_T}yes" >&6
29627 cat >>confdefs.h <<\_ACEOF
29628#define HAVE_KNOWN_CDROM_INTERFACE 1
29629_ACEOF
29630
29631else
29632 echo "$as_me: failed program was:" >&5
29633sed 's/^/| /' conftest.$ac_ext >&5
29634
29635echo "$as_me:$LINENO: result: no" >&5
29636echo "${ECHO_T}no" >&6
29637fi
789c5f4a 29638rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
29639
29640
29641cat >confcache <<\_ACEOF
4f14bcd8
GD
29642# This file is a shell script that caches the results of configure
29643# tests run on this system so they can be shared between configure
e6cc62c6
VS
29644# scripts and configure runs, see configure's option --config-cache.
29645# It is not useful on other systems. If it contains results you don't
29646# want to keep, you may remove or edit it.
4f14bcd8 29647#
e6cc62c6
VS
29648# config.status only pays attention to the cache file if you give it
29649# the --recheck option to rerun configure.
4f14bcd8 29650#
e6cc62c6
VS
29651# `ac_cv_env_foo' variables (set or unset) will be overridden when
29652# loading this file, other *unset* `ac_cv_foo' will be assigned the
29653# following values.
29654
29655_ACEOF
29656
4f14bcd8
GD
29657# The following way of writing the cache mishandles newlines in values,
29658# but we know of no workaround that is simple, portable, and efficient.
29659# So, don't put newlines in cache variables' values.
29660# Ultrix sh set writes to stderr and can't be redirected directly,
29661# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
29662{
29663 (set) 2>&1 |
29664 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29665 *ac_space=\ *)
29666 # `set' does not quote correctly, so add quotes (double-quote
29667 # substitution turns \\\\ into \\, and sed turns \\ into \).
29668 sed -n \
789c5f4a
VZ
29669 "s/'/'\\\\''/g;
29670 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
29671 ;;
29672 *)
29673 # `set' quotes correctly as required by POSIX, so do not add quotes.
29674 sed -n \
789c5f4a 29675 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
29676 ;;
29677 esac;
29678} |
29679 sed '
29680 t clear
29681 : clear
29682 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29683 t end
29684 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29685 : end' >>confcache
29686if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 29687 if test -w $cache_file; then
e6cc62c6
VS
29688 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29689 cat confcache >$cache_file
f6bcfd97 29690 else
4f14bcd8 29691 echo "not updating unwritable cache $cache_file"
f6bcfd97 29692 fi
4f14bcd8
GD
29693fi
29694rm -f confcache
f6bcfd97 29695
8284b0c5 29696
009fead0 29697CPP_MT_FLAG=
73d617c9 29698if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 29699
e6cc62c6 29700
7274f1c7 29701 THREADS_LINK=
009fead0 29702 THREADS_CFLAGS=
7274f1c7
RL
29703
29704 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 29705 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
29706 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
29707echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
29708 wxUSE_THREADS="no"
29709 fi
4f14bcd8 29710 fi
4f14bcd8 29711
7274f1c7 29712 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29713
29714
009fead0
VZ
29715 THREAD_OPTS="-pthread"
29716 case "${host}" in
29717 *-*-solaris2* | *-*-sunos4* )
29718 if test "x$GCC" = "xyes"; then
126be6b4 29719 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
29720 else
29721 THREAD_OPTS="-mt $THREAD_OPTS"
29722 fi
29723 ;;
29724 *-*-freebsd*)
29725 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
29726 ;;
17234b26
MB
29727 *-*-darwin* | *-*-cygwin* )
29728 THREAD_OPTS=""
4101db81 29729 ;;
8f4a9a10 29730 *-*-aix*)
009fead0
VZ
29731 THREAD_OPTS="pthreads"
29732 ;;
4f5a7f74
VZ
29733 *-hp-hpux* )
29734 if test "x$GCC" != "xyes"; then
29735 THREAD_OPTS=""
29736 fi
89e3b3e4
VZ
29737 ;;
29738
29739 *-*-irix* )
29740 if test "x$GCC" = "xyes"; then
29741 THREAD_OPTS=""
29742 fi
29743 ;;
29744
29745 *-*-*UnixWare*)
29746 if test "x$GCC" != "xyes"; then
29747 THREAD_OPTS="-Ethread"
29748 fi
29749 ;;
009fead0 29750 esac
4f14bcd8 29751
02a1dfba 29752 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 29753
009fead0
VZ
29754 THREADS_OK=no
29755 for flag in $THREAD_OPTS; do
29756 case $flag in
29757 none)
e6cc62c6
VS
29758 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29759echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 29760 ;;
698dcdb6 29761
009fead0 29762 -*)
e6cc62c6
VS
29763 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29764echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
29765 THREADS_CFLAGS="$flag"
29766 ;;
698dcdb6 29767
009fead0 29768 *)
e6cc62c6
VS
29769 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29770echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
29771 THREADS_LINK="-l$flag"
29772 ;;
29773 esac
10f2d63a 29774
009fead0
VZ
29775 save_LIBS="$LIBS"
29776 save_CFLAGS="$CFLAGS"
29777 LIBS="$THREADS_LINK $LIBS"
04727afd 29778 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 29779
e6cc62c6 29780 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29781#line $LINENO "configure"
e6cc62c6
VS
29782/* confdefs.h. */
29783_ACEOF
29784cat confdefs.h >>conftest.$ac_ext
29785cat >>conftest.$ac_ext <<_ACEOF
29786/* end confdefs.h. */
009fead0 29787#include <pthread.h>
e6cc62c6
VS
29788int
29789main ()
29790{
009fead0 29791pthread_create(0,0,0,0);
e6cc62c6
VS
29792 ;
29793 return 0;
29794}
29795_ACEOF
29796rm -f conftest.$ac_objext conftest$ac_exeext
29797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29798 (eval $ac_link) 2>&5
e6cc62c6
VS
29799 ac_status=$?
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); } &&
789c5f4a 29802 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29804 (eval $ac_try) 2>&5
29805 ac_status=$?
29806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807 (exit $ac_status); }; }; then
009fead0 29808 THREADS_OK=yes
10f2d63a 29809else
e6cc62c6
VS
29810 echo "$as_me: failed program was:" >&5
29811sed 's/^/| /' conftest.$ac_ext >&5
29812
6232543b 29813fi
789c5f4a 29814rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 29815
009fead0
VZ
29816 LIBS="$save_LIBS"
29817 CFLAGS="$save_CFLAGS"
d9b9876f 29818
e6cc62c6
VS
29819 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29820echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
29821 if test "x$THREADS_OK" = "xyes"; then
29822 break;
29823 fi
d9b9876f 29824
009fead0
VZ
29825 THREADS_LINK=""
29826 THREADS_CFLAGS=""
29827 done
4f14bcd8 29828
009fead0
VZ
29829 if test "x$THREADS_OK" != "xyes"; then
29830 wxUSE_THREADS=no
e6cc62c6
VS
29831 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29832echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 29833 else
db82f09e
VZ
29834 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29835 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 29836
e6cc62c6
VS
29837 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29838echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
29839 flag=no
29840 case "${host}" in
2b5f62a0
VZ
29841 *-aix*)
29842 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29843 flag="-D_THREAD_SAFE"
29844 ;;
29845 *-freebsd*)
009fead0
VZ
29846 flag="-D_THREAD_SAFE"
29847 ;;
06313569
GD
29848 *-hp-hpux* )
29849 flag="-D_REENTRANT"
4f5a7f74
VZ
29850 if test "x$GCC" != "xyes"; then
29851 flag="$flag -D_RWSTD_MULTI_THREAD"
29852 fi
06313569 29853 ;;
009fead0
VZ
29854 *solaris* | alpha*-osf*)
29855 flag="-D_REENTRANT"
29856 ;;
29857 esac
e6cc62c6
VS
29858 echo "$as_me:$LINENO: result: ${flag}" >&5
29859echo "${ECHO_T}${flag}" >&6
009fead0 29860 if test "x$flag" != xno; then
04727afd 29861 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
29862 fi
29863
009fead0 29864 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 29865 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
29866 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29867 fi
29868 fi
4f14bcd8 29869 fi
4f14bcd8 29870
7274f1c7 29871 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29872
29873for ac_func in thr_setconcurrency
4f14bcd8 29874do
e6cc62c6
VS
29875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29876echo "$as_me:$LINENO: checking for $ac_func" >&5
29877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29878if eval "test \"\${$as_ac_var+set}\" = set"; then
29879 echo $ECHO_N "(cached) $ECHO_C" >&6
29880else
29881 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29882#line $LINENO "configure"
e6cc62c6
VS
29883/* confdefs.h. */
29884_ACEOF
29885cat confdefs.h >>conftest.$ac_ext
29886cat >>conftest.$ac_ext <<_ACEOF
29887/* end confdefs.h. */
4f14bcd8 29888/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29889 which can conflict with char $ac_func (); below.
29890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29891 <limits.h> exists even on freestanding compilers. */
29892#ifdef __STDC__
29893# include <limits.h>
29894#else
29895# include <assert.h>
29896#endif
4f14bcd8 29897/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29898#ifdef __cplusplus
29899extern "C"
29900{
29901#endif
4f14bcd8 29902/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29903 builtin and then its argument prototype would still apply. */
29904char $ac_func ();
4f14bcd8
GD
29905/* The GNU C library defines this for functions which it implements
29906 to always fail with ENOSYS. Some functions are actually named
29907 something starting with __ and the normal name is an alias. */
29908#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29909choke me
29910#else
e6cc62c6
VS
29911char (*f) () = $ac_func;
29912#endif
29913#ifdef __cplusplus
29914}
4f14bcd8
GD
29915#endif
29916
e6cc62c6
VS
29917int
29918main ()
29919{
29920return f != $ac_func;
29921 ;
29922 return 0;
29923}
29924_ACEOF
29925rm -f conftest.$ac_objext conftest$ac_exeext
29926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29927 (eval $ac_link) 2>&5
e6cc62c6
VS
29928 ac_status=$?
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); } &&
789c5f4a 29931 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29933 (eval $ac_try) 2>&5
29934 ac_status=$?
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); }; }; then
29937 eval "$as_ac_var=yes"
29938else
29939 echo "$as_me: failed program was:" >&5
29940sed 's/^/| /' conftest.$ac_ext >&5
29941
29942eval "$as_ac_var=no"
29943fi
789c5f4a 29944rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29945fi
29946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29947echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29948if test `eval echo '${'$as_ac_var'}'` = yes; then
29949 cat >>confdefs.h <<_ACEOF
29950#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29951_ACEOF
698dcdb6 29952
10f2d63a 29953fi
4f14bcd8 29954done
10f2d63a 29955
8284b0c5 29956
e6cc62c6
VS
29957
29958for ac_header in sched.h
4f14bcd8 29959do
e6cc62c6
VS
29960as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29961if eval "test \"\${$as_ac_Header+set}\" = set"; then
29962 echo "$as_me:$LINENO: checking for $ac_header" >&5
29963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29964if eval "test \"\${$as_ac_Header+set}\" = set"; then
29965 echo $ECHO_N "(cached) $ECHO_C" >&6
29966fi
29967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29968echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29969else
29970 # Is the header compilable?
29971echo "$as_me:$LINENO: checking $ac_header usability" >&5
29972echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29973cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29974#line $LINENO "configure"
e6cc62c6
VS
29975/* confdefs.h. */
29976_ACEOF
29977cat confdefs.h >>conftest.$ac_ext
29978cat >>conftest.$ac_ext <<_ACEOF
29979/* end confdefs.h. */
29980$ac_includes_default
29981#include <$ac_header>
29982_ACEOF
29983rm -f conftest.$ac_objext
29984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 29985 (eval $ac_compile) 2>&5
e6cc62c6
VS
29986 ac_status=$?
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); } &&
789c5f4a 29989 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29991 (eval $ac_try) 2>&5
29992 ac_status=$?
29993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29994 (exit $ac_status); }; }; then
29995 ac_header_compiler=yes
29996else
29997 echo "$as_me: failed program was:" >&5
29998sed 's/^/| /' conftest.$ac_ext >&5
29999
30000ac_header_compiler=no
30001fi
789c5f4a 30002rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
30003echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30004echo "${ECHO_T}$ac_header_compiler" >&6
30005
30006# Is the header present?
30007echo "$as_me:$LINENO: checking $ac_header presence" >&5
30008echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30009cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30010#line $LINENO "configure"
e6cc62c6
VS
30011/* confdefs.h. */
30012_ACEOF
30013cat confdefs.h >>conftest.$ac_ext
30014cat >>conftest.$ac_ext <<_ACEOF
30015/* end confdefs.h. */
30016#include <$ac_header>
30017_ACEOF
30018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30020 ac_status=$?
30021 grep -v '^ *+' conftest.er1 >conftest.err
30022 rm -f conftest.er1
30023 cat conftest.err >&5
30024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); } >/dev/null; then
30026 if test -s conftest.err; then
30027 ac_cpp_err=$ac_c_preproc_warn_flag
30028 else
30029 ac_cpp_err=
30030 fi
30031else
30032 ac_cpp_err=yes
30033fi
30034if test -z "$ac_cpp_err"; then
30035 ac_header_preproc=yes
30036else
30037 echo "$as_me: failed program was:" >&5
30038sed 's/^/| /' conftest.$ac_ext >&5
30039
30040 ac_header_preproc=no
30041fi
30042rm -f conftest.err conftest.$ac_ext
30043echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30044echo "${ECHO_T}$ac_header_preproc" >&6
30045
30046# So? What about this header?
789c5f4a
VZ
30047case $ac_header_compiler:$ac_header_preproc in
30048 yes:no )
e6cc62c6
VS
30049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30050echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
30051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30052echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30053 (
30054 cat <<\_ASBOX
30055## ------------------------------------ ##
30056## Report this to bug-autoconf@gnu.org. ##
30057## ------------------------------------ ##
30058_ASBOX
30059 ) |
30060 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 30061 ;;
789c5f4a 30062 no:yes )
e6cc62c6
VS
30063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30064echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
30065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30066echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
30067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30068echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30069 (
30070 cat <<\_ASBOX
789c5f4a
VZ
30071## ------------------------------------ ##
30072## Report this to bug-autoconf@gnu.org. ##
30073## ------------------------------------ ##
e6cc62c6
VS
30074_ASBOX
30075 ) |
30076 sed "s/^/$as_me: WARNING: /" >&2
30077 ;;
30078esac
30079echo "$as_me:$LINENO: checking for $ac_header" >&5
30080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30081if eval "test \"\${$as_ac_Header+set}\" = set"; then
30082 echo $ECHO_N "(cached) $ECHO_C" >&6
30083else
789c5f4a 30084 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 30085fi
e6cc62c6
VS
30086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30088
10f2d63a 30089fi
e6cc62c6
VS
30090if test `eval echo '${'$as_ac_Header'}'` = yes; then
30091 cat >>confdefs.h <<_ACEOF
30092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30093_ACEOF
30094
f6bcfd97 30095fi
e6cc62c6 30096
4f14bcd8 30097done
f6bcfd97 30098
009fead0 30099 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
30100 echo "$as_me:$LINENO: checking for sched_yield" >&5
30101echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
30102if test "${ac_cv_func_sched_yield+set}" = set; then
30103 echo $ECHO_N "(cached) $ECHO_C" >&6
30104else
30105 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30106#line $LINENO "configure"
e6cc62c6
VS
30107/* confdefs.h. */
30108_ACEOF
30109cat confdefs.h >>conftest.$ac_ext
30110cat >>conftest.$ac_ext <<_ACEOF
30111/* end confdefs.h. */
009fead0 30112/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30113 which can conflict with char sched_yield (); below.
30114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30115 <limits.h> exists even on freestanding compilers. */
30116#ifdef __STDC__
30117# include <limits.h>
30118#else
30119# include <assert.h>
30120#endif
4f14bcd8 30121/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30122#ifdef __cplusplus
30123extern "C"
30124{
30125#endif
4f14bcd8 30126/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30127 builtin and then its argument prototype would still apply. */
30128char sched_yield ();
009fead0
VZ
30129/* The GNU C library defines this for functions which it implements
30130 to always fail with ENOSYS. Some functions are actually named
30131 something starting with __ and the normal name is an alias. */
30132#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
30133choke me
30134#else
e6cc62c6
VS
30135char (*f) () = sched_yield;
30136#endif
30137#ifdef __cplusplus
30138}
009fead0
VZ
30139#endif
30140
e6cc62c6
VS
30141int
30142main ()
30143{
30144return f != sched_yield;
30145 ;
30146 return 0;
30147}
30148_ACEOF
30149rm -f conftest.$ac_objext conftest$ac_exeext
30150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30151 (eval $ac_link) 2>&5
e6cc62c6
VS
30152 ac_status=$?
30153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30154 (exit $ac_status); } &&
789c5f4a 30155 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30157 (eval $ac_try) 2>&5
30158 ac_status=$?
30159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160 (exit $ac_status); }; }; then
30161 ac_cv_func_sched_yield=yes
30162else
30163 echo "$as_me: failed program was:" >&5
30164sed 's/^/| /' conftest.$ac_ext >&5
30165
30166ac_cv_func_sched_yield=no
30167fi
789c5f4a 30168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30169fi
30170echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
30171echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
30172if test $ac_cv_func_sched_yield = yes; then
30173 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30174#define HAVE_SCHED_YIELD 1
e6cc62c6 30175_ACEOF
10f2d63a 30176
4f14bcd8 30177else
009fead0 30178
e6cc62c6
VS
30179 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
30180echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
30181if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
30182 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 30183else
e6cc62c6 30184 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30185LIBS="-lposix4 $LIBS"
e6cc62c6 30186cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30187#line $LINENO "configure"
e6cc62c6
VS
30188/* confdefs.h. */
30189_ACEOF
30190cat confdefs.h >>conftest.$ac_ext
30191cat >>conftest.$ac_ext <<_ACEOF
30192/* end confdefs.h. */
30193
4f14bcd8 30194/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30195#ifdef __cplusplus
30196extern "C"
30197#endif
4f14bcd8 30198/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30199 builtin and then its argument prototype would still apply. */
30200char sched_yield ();
30201int
30202main ()
30203{
30204sched_yield ();
30205 ;
30206 return 0;
30207}
30208_ACEOF
30209rm -f conftest.$ac_objext conftest$ac_exeext
30210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30211 (eval $ac_link) 2>&5
e6cc62c6
VS
30212 ac_status=$?
30213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214 (exit $ac_status); } &&
789c5f4a 30215 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30217 (eval $ac_try) 2>&5
30218 ac_status=$?
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); }; }; then
30221 ac_cv_lib_posix4_sched_yield=yes
30222else
30223 echo "$as_me: failed program was:" >&5
30224sed 's/^/| /' conftest.$ac_ext >&5
30225
30226ac_cv_lib_posix4_sched_yield=no
30227fi
789c5f4a 30228rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30229LIBS=$ac_check_lib_save_LIBS
30230fi
30231echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
30232echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
30233if test $ac_cv_lib_posix4_sched_yield = yes; then
30234 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30235#define HAVE_SCHED_YIELD 1
e6cc62c6 30236_ACEOF
3d63bc3a 30237 POSIX4_LINK=" -lposix4"
4f14bcd8 30238else
e6cc62c6
VS
30239 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
30240echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
30241
54276ccf
VZ
30242fi
30243
e6cc62c6
VS
30244
30245
4f14bcd8 30246fi
698dcdb6 30247
009fead0 30248 fi
10f2d63a 30249
7274f1c7 30250 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
30251 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
30252echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
30253if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
30254 echo $ECHO_N "(cached) $ECHO_C" >&6
30255else
30256 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30257#line $LINENO "configure"
e6cc62c6
VS
30258/* confdefs.h. */
30259_ACEOF
30260cat confdefs.h >>conftest.$ac_ext
30261cat >>conftest.$ac_ext <<_ACEOF
30262/* end confdefs.h. */
009fead0 30263/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30264 which can conflict with char pthread_attr_getschedpolicy (); below.
30265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30266 <limits.h> exists even on freestanding compilers. */
30267#ifdef __STDC__
30268# include <limits.h>
30269#else
30270# include <assert.h>
30271#endif
4f14bcd8 30272/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30273#ifdef __cplusplus
30274extern "C"
30275{
30276#endif
4f14bcd8 30277/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30278 builtin and then its argument prototype would still apply. */
30279char pthread_attr_getschedpolicy ();
009fead0
VZ
30280/* The GNU C library defines this for functions which it implements
30281 to always fail with ENOSYS. Some functions are actually named
30282 something starting with __ and the normal name is an alias. */
30283#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
30284choke me
30285#else
e6cc62c6
VS
30286char (*f) () = pthread_attr_getschedpolicy;
30287#endif
30288#ifdef __cplusplus
30289}
009fead0
VZ
30290#endif
30291
e6cc62c6
VS
30292int
30293main ()
30294{
30295return f != pthread_attr_getschedpolicy;
30296 ;
30297 return 0;
30298}
30299_ACEOF
30300rm -f conftest.$ac_objext conftest$ac_exeext
30301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30302 (eval $ac_link) 2>&5
e6cc62c6
VS
30303 ac_status=$?
30304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30305 (exit $ac_status); } &&
789c5f4a 30306 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30308 (eval $ac_try) 2>&5
30309 ac_status=$?
30310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30311 (exit $ac_status); }; }; then
30312 ac_cv_func_pthread_attr_getschedpolicy=yes
30313else
30314 echo "$as_me: failed program was:" >&5
30315sed 's/^/| /' conftest.$ac_ext >&5
30316
30317ac_cv_func_pthread_attr_getschedpolicy=no
30318fi
789c5f4a 30319rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30320fi
30321echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
30322echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
30323if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
30324 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
30325echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
30326if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
30327 echo $ECHO_N "(cached) $ECHO_C" >&6
30328else
30329 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30330#line $LINENO "configure"
e6cc62c6
VS
30331/* confdefs.h. */
30332_ACEOF
30333cat confdefs.h >>conftest.$ac_ext
30334cat >>conftest.$ac_ext <<_ACEOF
30335/* end confdefs.h. */
a0b9e27f 30336/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30337 which can conflict with char pthread_attr_setschedparam (); below.
30338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30339 <limits.h> exists even on freestanding compilers. */
30340#ifdef __STDC__
30341# include <limits.h>
30342#else
30343# include <assert.h>
30344#endif
422107f9 30345/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30346#ifdef __cplusplus
30347extern "C"
30348{
30349#endif
422107f9 30350/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30351 builtin and then its argument prototype would still apply. */
30352char pthread_attr_setschedparam ();
009fead0
VZ
30353/* The GNU C library defines this for functions which it implements
30354 to always fail with ENOSYS. Some functions are actually named
30355 something starting with __ and the normal name is an alias. */
30356#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
30357choke me
30358#else
e6cc62c6
VS
30359char (*f) () = pthread_attr_setschedparam;
30360#endif
30361#ifdef __cplusplus
30362}
009fead0
VZ
30363#endif
30364
e6cc62c6
VS
30365int
30366main ()
30367{
30368return f != pthread_attr_setschedparam;
30369 ;
30370 return 0;
30371}
30372_ACEOF
30373rm -f conftest.$ac_objext conftest$ac_exeext
30374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30375 (eval $ac_link) 2>&5
e6cc62c6
VS
30376 ac_status=$?
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); } &&
789c5f4a 30379 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30381 (eval $ac_try) 2>&5
30382 ac_status=$?
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); }; }; then
30385 ac_cv_func_pthread_attr_setschedparam=yes
30386else
30387 echo "$as_me: failed program was:" >&5
30388sed 's/^/| /' conftest.$ac_ext >&5
30389
30390ac_cv_func_pthread_attr_setschedparam=no
30391fi
789c5f4a 30392rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30393fi
30394echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
30395echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
30396if test $ac_cv_func_pthread_attr_setschedparam = yes; then
30397 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
30398echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
30399if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
30400 echo $ECHO_N "(cached) $ECHO_C" >&6
30401else
30402 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30403#line $LINENO "configure"
e6cc62c6
VS
30404/* confdefs.h. */
30405_ACEOF
30406cat confdefs.h >>conftest.$ac_ext
30407cat >>conftest.$ac_ext <<_ACEOF
30408/* end confdefs.h. */
ef33c576 30409/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30410 which can conflict with char sched_get_priority_max (); below.
30411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30412 <limits.h> exists even on freestanding compilers. */
30413#ifdef __STDC__
30414# include <limits.h>
30415#else
30416# include <assert.h>
30417#endif
4f14bcd8 30418/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30419#ifdef __cplusplus
30420extern "C"
30421{
30422#endif
4f14bcd8 30423/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30424 builtin and then its argument prototype would still apply. */
30425char sched_get_priority_max ();
009fead0
VZ
30426/* The GNU C library defines this for functions which it implements
30427 to always fail with ENOSYS. Some functions are actually named
30428 something starting with __ and the normal name is an alias. */
30429#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
30430choke me
30431#else
e6cc62c6
VS
30432char (*f) () = sched_get_priority_max;
30433#endif
30434#ifdef __cplusplus
30435}
009fead0
VZ
30436#endif
30437
e6cc62c6
VS
30438int
30439main ()
30440{
30441return f != sched_get_priority_max;
30442 ;
30443 return 0;
30444}
30445_ACEOF
30446rm -f conftest.$ac_objext conftest$ac_exeext
30447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30448 (eval $ac_link) 2>&5
e6cc62c6
VS
30449 ac_status=$?
30450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); } &&
789c5f4a 30452 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30454 (eval $ac_try) 2>&5
30455 ac_status=$?
30456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457 (exit $ac_status); }; }; then
30458 ac_cv_func_sched_get_priority_max=yes
30459else
30460 echo "$as_me: failed program was:" >&5
30461sed 's/^/| /' conftest.$ac_ext >&5
30462
30463ac_cv_func_sched_get_priority_max=no
30464fi
789c5f4a 30465rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30466fi
30467echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
30468echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
30469if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
30470 HAVE_PRIOR_FUNCS=1
30471else
e6cc62c6
VS
30472 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
30473echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
30474if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
30475 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 30476else
e6cc62c6 30477 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30478LIBS="-lposix4 $LIBS"
e6cc62c6 30479cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30480#line $LINENO "configure"
e6cc62c6
VS
30481/* confdefs.h. */
30482_ACEOF
30483cat confdefs.h >>conftest.$ac_ext
30484cat >>conftest.$ac_ext <<_ACEOF
30485/* end confdefs.h. */
30486
422107f9 30487/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30488#ifdef __cplusplus
30489extern "C"
30490#endif
422107f9 30491/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30492 builtin and then its argument prototype would still apply. */
30493char sched_get_priority_max ();
30494int
30495main ()
30496{
30497sched_get_priority_max ();
30498 ;
30499 return 0;
30500}
30501_ACEOF
30502rm -f conftest.$ac_objext conftest$ac_exeext
30503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30504 (eval $ac_link) 2>&5
e6cc62c6
VS
30505 ac_status=$?
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); } &&
789c5f4a 30508 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30510 (eval $ac_try) 2>&5
30511 ac_status=$?
30512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30513 (exit $ac_status); }; }; then
30514 ac_cv_lib_posix4_sched_get_priority_max=yes
30515else
30516 echo "$as_me: failed program was:" >&5
30517sed 's/^/| /' conftest.$ac_ext >&5
30518
30519ac_cv_lib_posix4_sched_get_priority_max=no
30520fi
789c5f4a 30521rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30522LIBS=$ac_check_lib_save_LIBS
30523fi
30524echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
30525echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
30526if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 30527
7274f1c7
RL
30528 HAVE_PRIOR_FUNCS=1
30529 POSIX4_LINK=" -lposix4"
e6cc62c6 30530
4f14bcd8 30531fi
463abc64 30532
e6cc62c6 30533
328a083c 30534fi
463abc64 30535
e6cc62c6 30536
7b4a847f 30537fi
579d8138 30538
e6cc62c6 30539
5c6fa7d2 30540fi
52127426 30541
8284b0c5 30542
7274f1c7 30543 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 30544 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30545#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 30546_ACEOF
463abc64 30547
7274f1c7 30548 else
e6cc62c6
VS
30549 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
30550echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 30551 fi
463abc64 30552
e6cc62c6
VS
30553 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
30554echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
30555if test "${ac_cv_func_pthread_cancel+set}" = set; then
30556 echo $ECHO_N "(cached) $ECHO_C" >&6
30557else
30558 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30559#line $LINENO "configure"
e6cc62c6
VS
30560/* confdefs.h. */
30561_ACEOF
30562cat confdefs.h >>conftest.$ac_ext
30563cat >>conftest.$ac_ext <<_ACEOF
30564/* end confdefs.h. */
009fead0 30565/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30566 which can conflict with char pthread_cancel (); below.
30567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30568 <limits.h> exists even on freestanding compilers. */
30569#ifdef __STDC__
30570# include <limits.h>
30571#else
30572# include <assert.h>
30573#endif
422107f9 30574/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30575#ifdef __cplusplus
30576extern "C"
30577{
30578#endif
422107f9 30579/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30580 builtin and then its argument prototype would still apply. */
30581char pthread_cancel ();
009fead0
VZ
30582/* The GNU C library defines this for functions which it implements
30583 to always fail with ENOSYS. Some functions are actually named
30584 something starting with __ and the normal name is an alias. */
30585#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
30586choke me
30587#else
e6cc62c6
VS
30588char (*f) () = pthread_cancel;
30589#endif
30590#ifdef __cplusplus
30591}
009fead0
VZ
30592#endif
30593
e6cc62c6
VS
30594int
30595main ()
30596{
30597return f != pthread_cancel;
30598 ;
30599 return 0;
30600}
30601_ACEOF
30602rm -f conftest.$ac_objext conftest$ac_exeext
30603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30604 (eval $ac_link) 2>&5
e6cc62c6
VS
30605 ac_status=$?
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); } &&
789c5f4a 30608 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30610 (eval $ac_try) 2>&5
30611 ac_status=$?
30612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613 (exit $ac_status); }; }; then
30614 ac_cv_func_pthread_cancel=yes
30615else
30616 echo "$as_me: failed program was:" >&5
30617sed 's/^/| /' conftest.$ac_ext >&5
30618
30619ac_cv_func_pthread_cancel=no
30620fi
789c5f4a 30621rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30622fi
30623echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
30624echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
30625if test $ac_cv_func_pthread_cancel = yes; then
30626 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30627#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 30628_ACEOF
4f14bcd8 30629
698dcdb6 30630else
e6cc62c6
VS
30631 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
30632echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
30633fi
30634
5c6fa7d2 30635
4f14bcd8 30636
e6cc62c6
VS
30637
30638 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
30639echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
30640if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
30641 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 30642else
e6cc62c6
VS
30643
30644 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30645#line $LINENO "configure"
e6cc62c6
VS
30646/* confdefs.h. */
30647_ACEOF
30648cat confdefs.h >>conftest.$ac_ext
30649cat >>conftest.$ac_ext <<_ACEOF
30650/* end confdefs.h. */
4f14bcd8 30651#include <pthread.h>
e6cc62c6
VS
30652int
30653main ()
30654{
4f14bcd8 30655
7274f1c7
RL
30656 pthread_mutexattr_t attr;
30657 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
30658
30659 ;
30660 return 0;
30661}
30662_ACEOF
30663rm -f conftest.$ac_objext
30664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 30665 (eval $ac_compile) 2>&5
e6cc62c6
VS
30666 ac_status=$?
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); } &&
789c5f4a 30669 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30671 (eval $ac_try) 2>&5
30672 ac_status=$?
30673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30674 (exit $ac_status); }; }; then
30675
7274f1c7 30676 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 30677
3fed1840 30678else
e6cc62c6
VS
30679 echo "$as_me: failed program was:" >&5
30680sed 's/^/| /' conftest.$ac_ext >&5
30681
30682
7274f1c7 30683 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
30684
30685
247f5006 30686fi
789c5f4a 30687rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30688
e6cc62c6
VS
30689fi
30690echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
30691echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 30692
7274f1c7 30693 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 30694 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30695#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 30696_ACEOF
4f14bcd8 30697
7274f1c7 30698 else
e6cc62c6
VS
30699 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
30700echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
30701if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
30702 echo $ECHO_N "(cached) $ECHO_C" >&6
30703else
30704
30705 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30706#line $LINENO "configure"
e6cc62c6
VS
30707/* confdefs.h. */
30708_ACEOF
30709cat confdefs.h >>conftest.$ac_ext
30710cat >>conftest.$ac_ext <<_ACEOF
30711/* end confdefs.h. */
4f14bcd8 30712#include <pthread.h>
e6cc62c6
VS
30713int
30714main ()
30715{
4f14bcd8 30716
7274f1c7 30717 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
30718
30719 ;
30720 return 0;
30721}
30722_ACEOF
30723rm -f conftest.$ac_objext
30724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 30725 (eval $ac_compile) 2>&5
e6cc62c6
VS
30726 ac_status=$?
30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728 (exit $ac_status); } &&
789c5f4a 30729 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30731 (eval $ac_try) 2>&5
30732 ac_status=$?
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); }; }; then
30735
7274f1c7 30736 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 30737
698dcdb6 30738else
e6cc62c6
VS
30739 echo "$as_me: failed program was:" >&5
30740sed 's/^/| /' conftest.$ac_ext >&5
30741
30742
7274f1c7 30743 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
30744
30745
247f5006 30746fi
789c5f4a 30747rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30748
e6cc62c6
VS
30749fi
30750echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
30751echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 30752 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 30753 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30754#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 30755_ACEOF
3fed1840 30756
7274f1c7 30757 else
e6cc62c6
VS
30758 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30759echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
30760 fi
30761 fi
7274f1c7 30762 fi
3fed1840 30763
a0b9e27f
MB
30764else
30765 if test "$wxUSE_THREADS" = "yes" ; then
30766 case "${host}" in
30767 *-*-mingw32* )
e6cc62c6
VS
30768 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30769echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30770if test "${wx_cv_cflags_mthread+set}" = set; then
30771 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 30772else
e6cc62c6 30773
ca8e52b3
VZ
30774 CFLAGS_OLD="$CFLAGS"
30775 CFLAGS="$CFLAGS -mthreads"
e6cc62c6 30776 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30777#line $LINENO "configure"
e6cc62c6
VS
30778/* confdefs.h. */
30779_ACEOF
30780cat confdefs.h >>conftest.$ac_ext
30781cat >>conftest.$ac_ext <<_ACEOF
30782/* end confdefs.h. */
30783
30784int
30785main ()
30786{
ca8e52b3 30787
e6cc62c6
VS
30788 ;
30789 return 0;
30790}
30791_ACEOF
30792rm -f conftest.$ac_objext
30793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 30794 (eval $ac_compile) 2>&5
e6cc62c6
VS
30795 ac_status=$?
30796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797 (exit $ac_status); } &&
789c5f4a 30798 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30800 (eval $ac_try) 2>&5
30801 ac_status=$?
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); }; }; then
ca8e52b3
VZ
30804 wx_cv_cflags_mthread=yes
30805else
e6cc62c6
VS
30806 echo "$as_me: failed program was:" >&5
30807sed 's/^/| /' conftest.$ac_ext >&5
30808
30809wx_cv_cflags_mthread=no
30810
ca8e52b3 30811fi
789c5f4a 30812rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 30813
ca8e52b3 30814
e6cc62c6
VS
30815fi
30816echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30817echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
30818
30819 if test "$wx_cv_cflags_mthread" = "yes"; then
30820 CXXFLAGS="$CXXFLAGS -mthreads"
30821 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30822 LDFLAGS="$LDFLAGS -mthreads"
30823 else
30824 CFLAGS="$CFLAGS_OLD"
30825 fi
a0b9e27f 30826 ;;
73d617c9
MB
30827 *-pc-os2*emx )
30828 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
30829 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
30830 LDFLAGS="$LDFLAGS -Zmt"
30831 ;;
a0b9e27f
MB
30832 esac
30833 fi
4f14bcd8
GD
30834fi
30835
30836if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 30837 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30838#define wxUSE_THREADS 1
e6cc62c6 30839_ACEOF
7b6058cd 30840
8284b0c5 30841
4f14bcd8 30842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 30843else
4f14bcd8 30844 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
30845 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30846echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
30847 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30848 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
30849 echo "$as_me:$LINENO: result: yes" >&5
30850echo "${ECHO_T}yes" >&6
4f14bcd8 30851 else
e6cc62c6
VS
30852 echo "$as_me:$LINENO: result: no" >&5
30853echo "${ECHO_T}no" >&6
4f14bcd8
GD
30854 fi
30855 fi
30856fi
30857
30858if test "$WXGTK20" = 1 ; then
e6cc62c6 30859 cat >>confdefs.h <<_ACEOF
4f14bcd8 30860#define __WXGTK20__ $WXGTK20
e6cc62c6 30861_ACEOF
4f14bcd8
GD
30862
30863 WXGTK12=1
10f2d63a 30864fi
4f14bcd8
GD
30865
30866if test "$WXGTK12" = 1 ; then
e6cc62c6 30867 cat >>confdefs.h <<_ACEOF
4f14bcd8 30868#define __WXGTK12__ $WXGTK12
e6cc62c6 30869_ACEOF
4f14bcd8 30870
10f2d63a 30871fi
698dcdb6 30872
4f14bcd8 30873if test "$WXGTK127" = 1 ; then
e6cc62c6 30874 cat >>confdefs.h <<_ACEOF
4f14bcd8 30875#define __WXGTK127__ $WXGTK127
e6cc62c6 30876_ACEOF
4f14bcd8 30877
698dcdb6 30878fi
10f2d63a 30879
4f14bcd8
GD
30880WXDEBUG=
30881
30882if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30883 WXDEBUG="-g"
30884 wxUSE_OPTIMISE=no
698dcdb6 30885fi
4f14bcd8
GD
30886
30887if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30888 wxUSE_DEBUG_INFO=yes
30889 WXDEBUG="-ggdb"
10f2d63a
VZ
30890fi
30891
4f14bcd8 30892if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 30893 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30894#define WXDEBUG 1
e6cc62c6 30895_ACEOF
4f14bcd8
GD
30896
30897 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 30898else
4f14bcd8
GD
30899 if test "$wxUSE_GTK" = 1 ; then
30900 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30901 fi
30902fi
30903
30904if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 30905 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30906#define wxUSE_MEMORY_TRACING 1
e6cc62c6 30907_ACEOF
4f14bcd8 30908
e6cc62c6 30909 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30910#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 30911_ACEOF
4f14bcd8 30912
e6cc62c6 30913 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30914#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 30915_ACEOF
4f14bcd8
GD
30916
30917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30918fi
30919
30920if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 30921 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
30922fi
30923
30924PROFILE=
30925if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 30926 PROFILE=" -pg"
10f2d63a
VZ
30927fi
30928
009fead0
VZ
30929CODE_GEN_FLAGS=
30930CODE_GEN_FLAGS_CXX=
88e30f2b 30931if test "$GCC" = "yes" ; then
4f14bcd8
GD
30932 if test "$wxUSE_NO_RTTI" = "yes" ; then
30933 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 30934 fi
4f14bcd8
GD
30935 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30936 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30937 fi
30938 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30939 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30940 fi
1d1b75ac 30941
2b5f62a0 30942 case "${host}" in
1d1b75ac
VZ
30943 powerpc*-*-aix* )
30944 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30945 ;;
2b5f62a0
VZ
30946 *-hppa* )
30947 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30948 ;;
1d1b75ac 30949 esac
4f14bcd8
GD
30950fi
30951
af7b5345 30952OPTIMISE=
4f14bcd8 30953if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
30954 if test "$GCC" = yes ; then
30955 OPTIMISE="-O0"
30956 fi
4f14bcd8
GD
30957else
30958 if test "$GCC" = yes ; then
30959 OPTIMISE="-O2"
af7b5345
VZ
30960
30961 case "${host}" in
4f14bcd8
GD
30962 i586-*-*|i686-*-* )
30963 OPTIMISE="${OPTIMISE} "
30964 ;;
30965 esac
30966 else
30967 OPTIMISE="-O"
30968 fi
30969fi
30970
8d90d2f2 30971
65d8ef1e 30972if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30973 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30974#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30975_ACEOF
4f14bcd8 30976
8d90d2f2
VZ
30977
30978 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
30979fi
30980
65d8ef1e 30981if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 30982 cat >>confdefs.h <<\_ACEOF
65d8ef1e 30983#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 30984_ACEOF
65d8ef1e
VS
30985
30986fi
30987
8284b0c5 30988
10f2d63a 30989if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 30990 cat >>confdefs.h <<\_ACEOF
10f2d63a 30991#define wxUSE_GUI 1
e6cc62c6 30992_ACEOF
10f2d63a 30993
8284b0c5 30994
10f2d63a 30995 else
e6cc62c6 30996 cat >>confdefs.h <<\_ACEOF
10f2d63a 30997#define wxUSE_NOGUI 1
e6cc62c6 30998_ACEOF
10f2d63a
VZ
30999
31000fi
31001
8284b0c5 31002
10f2d63a 31003if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 31004 cat >>confdefs.h <<\_ACEOF
10f2d63a 31005#define wxUSE_UNIX 1
e6cc62c6 31006_ACEOF
10f2d63a
VZ
31007
31008fi
31009
8284b0c5 31010
f93ca9fd 31011if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
5c6fa7d2 31012
f93ca9fd
VS
31013 HAVE_DL_FUNCS=0
31014 HAVE_SHL_FUNCS=0
31015 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31016 if test "$USE_DARWIN" = 1; then
31017 HAVE_DL_FUNCS=1
31018 else
e6cc62c6 31019
f93ca9fd 31020for ac_func in dlopen
83307f33 31021do
e6cc62c6
VS
31022as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31023echo "$as_me:$LINENO: checking for $ac_func" >&5
31024echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31025if eval "test \"\${$as_ac_var+set}\" = set"; then
31026 echo $ECHO_N "(cached) $ECHO_C" >&6
31027else
31028 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31029#line $LINENO "configure"
e6cc62c6
VS
31030/* confdefs.h. */
31031_ACEOF
31032cat confdefs.h >>conftest.$ac_ext
31033cat >>conftest.$ac_ext <<_ACEOF
31034/* end confdefs.h. */
83307f33 31035/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31036 which can conflict with char $ac_func (); below.
31037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31038 <limits.h> exists even on freestanding compilers. */
31039#ifdef __STDC__
31040# include <limits.h>
31041#else
31042# include <assert.h>
31043#endif
83307f33 31044/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31045#ifdef __cplusplus
31046extern "C"
31047{
31048#endif
83307f33 31049/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31050 builtin and then its argument prototype would still apply. */
31051char $ac_func ();
83307f33
VZ
31052/* The GNU C library defines this for functions which it implements
31053 to always fail with ENOSYS. Some functions are actually named
31054 something starting with __ and the normal name is an alias. */
31055#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31056choke me
31057#else
e6cc62c6
VS
31058char (*f) () = $ac_func;
31059#endif
31060#ifdef __cplusplus
31061}
83307f33
VZ
31062#endif
31063
e6cc62c6
VS
31064int
31065main ()
31066{
31067return f != $ac_func;
31068 ;
31069 return 0;
31070}
31071_ACEOF
31072rm -f conftest.$ac_objext conftest$ac_exeext
31073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31074 (eval $ac_link) 2>&5
e6cc62c6
VS
31075 ac_status=$?
31076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31077 (exit $ac_status); } &&
789c5f4a 31078 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31080 (eval $ac_try) 2>&5
31081 ac_status=$?
31082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31083 (exit $ac_status); }; }; then
31084 eval "$as_ac_var=yes"
31085else
31086 echo "$as_me: failed program was:" >&5
31087sed 's/^/| /' conftest.$ac_ext >&5
31088
31089eval "$as_ac_var=no"
31090fi
789c5f4a 31091rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31092fi
31093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31094echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31095if test `eval echo '${'$as_ac_var'}'` = yes; then
31096 cat >>confdefs.h <<_ACEOF
31097#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31098_ACEOF
83307f33 31099
f93ca9fd
VS
31100 cat >>confdefs.h <<\_ACEOF
31101#define HAVE_DLOPEN 1
e6cc62c6 31102_ACEOF
e6cc62c6 31103
f93ca9fd 31104 HAVE_DL_FUNCS=1
e6cc62c6 31105
360d6699 31106else
e6cc62c6 31107
f93ca9fd
VS
31108 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31109echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31110if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31111 echo $ECHO_N "(cached) $ECHO_C" >&6
5357c8e8 31112else
f93ca9fd
VS
31113 ac_check_lib_save_LIBS=$LIBS
31114LIBS="-ldl $LIBS"
31115cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31116#line $LINENO "configure"
e6cc62c6
VS
31117/* confdefs.h. */
31118_ACEOF
31119cat confdefs.h >>conftest.$ac_ext
31120cat >>conftest.$ac_ext <<_ACEOF
31121/* end confdefs.h. */
5357c8e8 31122
f93ca9fd
VS
31123/* Override any gcc2 internal prototype to avoid an error. */
31124#ifdef __cplusplus
31125extern "C"
31126#endif
31127/* We use char because int might match the return type of a gcc2
31128 builtin and then its argument prototype would still apply. */
31129char dlopen ();
e6cc62c6
VS
31130int
31131main ()
31132{
f93ca9fd 31133dlopen ();
e6cc62c6
VS
31134 ;
31135 return 0;
31136}
31137_ACEOF
f93ca9fd
VS
31138rm -f conftest.$ac_objext conftest$ac_exeext
31139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31140 (eval $ac_link) 2>&5
e6cc62c6
VS
31141 ac_status=$?
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); } &&
789c5f4a 31144 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31146 (eval $ac_try) 2>&5
31147 ac_status=$?
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); }; }; then
f93ca9fd 31150 ac_cv_lib_dl_dlopen=yes
360d6699 31151else
e6cc62c6
VS
31152 echo "$as_me: failed program was:" >&5
31153sed 's/^/| /' conftest.$ac_ext >&5
31154
f93ca9fd 31155ac_cv_lib_dl_dlopen=no
247f5006 31156fi
789c5f4a 31157rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd 31158LIBS=$ac_check_lib_save_LIBS
e6cc62c6 31159fi
f93ca9fd
VS
31160echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31161echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31162if test $ac_cv_lib_dl_dlopen = yes; then
698dcdb6 31163
f93ca9fd
VS
31164 cat >>confdefs.h <<\_ACEOF
31165#define HAVE_DLOPEN 1
e6cc62c6 31166_ACEOF
360d6699 31167
f93ca9fd
VS
31168 HAVE_DL_FUNCS=1
31169 DL_LINK=" -ldl$DL_LINK"
698dcdb6 31170
f93ca9fd 31171else
e6cc62c6 31172
f93ca9fd
VS
31173
31174for ac_func in shl_load
afc31813 31175do
e6cc62c6
VS
31176as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31177echo "$as_me:$LINENO: checking for $ac_func" >&5
31178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31179if eval "test \"\${$as_ac_var+set}\" = set"; then
31180 echo $ECHO_N "(cached) $ECHO_C" >&6
31181else
31182 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31183#line $LINENO "configure"
e6cc62c6
VS
31184/* confdefs.h. */
31185_ACEOF
31186cat confdefs.h >>conftest.$ac_ext
31187cat >>conftest.$ac_ext <<_ACEOF
31188/* end confdefs.h. */
afc31813 31189/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31190 which can conflict with char $ac_func (); below.
31191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31192 <limits.h> exists even on freestanding compilers. */
31193#ifdef __STDC__
31194# include <limits.h>
31195#else
31196# include <assert.h>
31197#endif
afc31813 31198/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31199#ifdef __cplusplus
31200extern "C"
31201{
31202#endif
afc31813 31203/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31204 builtin and then its argument prototype would still apply. */
31205char $ac_func ();
afc31813
VZ
31206/* The GNU C library defines this for functions which it implements
31207 to always fail with ENOSYS. Some functions are actually named
31208 something starting with __ and the normal name is an alias. */
31209#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31210choke me
31211#else
e6cc62c6
VS
31212char (*f) () = $ac_func;
31213#endif
31214#ifdef __cplusplus
31215}
afc31813
VZ
31216#endif
31217
e6cc62c6
VS
31218int
31219main ()
31220{
31221return f != $ac_func;
31222 ;
31223 return 0;
31224}
31225_ACEOF
31226rm -f conftest.$ac_objext conftest$ac_exeext
31227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31228 (eval $ac_link) 2>&5
e6cc62c6
VS
31229 ac_status=$?
31230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31231 (exit $ac_status); } &&
789c5f4a 31232 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31234 (eval $ac_try) 2>&5
31235 ac_status=$?
31236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237 (exit $ac_status); }; }; then
31238 eval "$as_ac_var=yes"
31239else
31240 echo "$as_me: failed program was:" >&5
31241sed 's/^/| /' conftest.$ac_ext >&5
31242
31243eval "$as_ac_var=no"
31244fi
789c5f4a 31245rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31246fi
31247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31248echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31249if test `eval echo '${'$as_ac_var'}'` = yes; then
31250 cat >>confdefs.h <<_ACEOF
31251#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31252_ACEOF
afc31813 31253
f93ca9fd
VS
31254 cat >>confdefs.h <<\_ACEOF
31255#define HAVE_SHL_LOAD 1
31256_ACEOF
afc31813 31257
f93ca9fd 31258 HAVE_SHL_FUNCS=1
5c6fa7d2 31259
a0b9e27f 31260else
e6cc62c6 31261
f93ca9fd
VS
31262 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31263echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31264if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31265 echo $ECHO_N "(cached) $ECHO_C" >&6
31266else
31267 ac_check_lib_save_LIBS=$LIBS
31268LIBS="-lshl_load $LIBS"
31269cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31270#line $LINENO "configure"
e6cc62c6
VS
31271/* confdefs.h. */
31272_ACEOF
31273cat confdefs.h >>conftest.$ac_ext
31274cat >>conftest.$ac_ext <<_ACEOF
31275/* end confdefs.h. */
0470b1e6 31276
f93ca9fd
VS
31277/* Override any gcc2 internal prototype to avoid an error. */
31278#ifdef __cplusplus
31279extern "C"
31280#endif
31281/* We use char because int might match the return type of a gcc2
31282 builtin and then its argument prototype would still apply. */
31283char dld ();
e6cc62c6
VS
31284int
31285main ()
31286{
f93ca9fd 31287dld ();
e6cc62c6
VS
31288 ;
31289 return 0;
31290}
31291_ACEOF
f93ca9fd
VS
31292rm -f conftest.$ac_objext conftest$ac_exeext
31293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31294 (eval $ac_link) 2>&5
e6cc62c6
VS
31295 ac_status=$?
31296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297 (exit $ac_status); } &&
789c5f4a 31298 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31300 (eval $ac_try) 2>&5
31301 ac_status=$?
31302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303 (exit $ac_status); }; }; then
f93ca9fd 31304 ac_cv_lib_shl_load_dld=yes
0470b1e6 31305else
e6cc62c6
VS
31306 echo "$as_me: failed program was:" >&5
31307sed 's/^/| /' conftest.$ac_ext >&5
31308
f93ca9fd
VS
31309ac_cv_lib_shl_load_dld=no
31310fi
789c5f4a 31311rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
31312LIBS=$ac_check_lib_save_LIBS
31313fi
31314echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31315echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31316if test $ac_cv_lib_shl_load_dld = yes; then
31317
31318 HAVE_SHL_FUNCS=1
31319 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 31320
247f5006 31321fi
f93ca9fd 31322
a0b9e27f 31323
e6cc62c6 31324fi
f93ca9fd 31325done
6232543b 31326
0470b1e6 31327
f93ca9fd
VS
31328fi
31329
3fcdd07b 31330
f93ca9fd
VS
31331fi
31332done
e6cc62c6
VS
31333
31334
f93ca9fd
VS
31335 if test "$HAVE_DL_FUNCS" = 1; then
31336
31337for ac_func in dlerror
3fcdd07b 31338do
e6cc62c6
VS
31339as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31340echo "$as_me:$LINENO: checking for $ac_func" >&5
31341echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31342if eval "test \"\${$as_ac_var+set}\" = set"; then
31343 echo $ECHO_N "(cached) $ECHO_C" >&6
31344else
31345 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31346#line $LINENO "configure"
e6cc62c6
VS
31347/* confdefs.h. */
31348_ACEOF
31349cat confdefs.h >>conftest.$ac_ext
31350cat >>conftest.$ac_ext <<_ACEOF
31351/* end confdefs.h. */
3fcdd07b 31352/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31353 which can conflict with char $ac_func (); below.
31354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31355 <limits.h> exists even on freestanding compilers. */
31356#ifdef __STDC__
31357# include <limits.h>
31358#else
31359# include <assert.h>
31360#endif
3fcdd07b 31361/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31362#ifdef __cplusplus
31363extern "C"
31364{
31365#endif
3fcdd07b 31366/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31367 builtin and then its argument prototype would still apply. */
31368char $ac_func ();
3fcdd07b
VZ
31369/* The GNU C library defines this for functions which it implements
31370 to always fail with ENOSYS. Some functions are actually named
31371 something starting with __ and the normal name is an alias. */
31372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31373choke me
31374#else
e6cc62c6
VS
31375char (*f) () = $ac_func;
31376#endif
31377#ifdef __cplusplus
31378}
3fcdd07b
VZ
31379#endif
31380
e6cc62c6
VS
31381int
31382main ()
31383{
31384return f != $ac_func;
31385 ;
31386 return 0;
31387}
31388_ACEOF
31389rm -f conftest.$ac_objext conftest$ac_exeext
31390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31391 (eval $ac_link) 2>&5
e6cc62c6
VS
31392 ac_status=$?
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); } &&
789c5f4a 31395 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31397 (eval $ac_try) 2>&5
31398 ac_status=$?
31399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31400 (exit $ac_status); }; }; then
31401 eval "$as_ac_var=yes"
31402else
31403 echo "$as_me: failed program was:" >&5
31404sed 's/^/| /' conftest.$ac_ext >&5
31405
31406eval "$as_ac_var=no"
31407fi
789c5f4a 31408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31409fi
31410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31411echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31412if test `eval echo '${'$as_ac_var'}'` = yes; then
31413 cat >>confdefs.h <<_ACEOF
31414#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31415_ACEOF
f93ca9fd
VS
31416 cat >>confdefs.h <<\_ACEOF
31417#define HAVE_DLERROR 1
31418_ACEOF
3fcdd07b 31419
f93ca9fd 31420else
698dcdb6 31421
f93ca9fd
VS
31422 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31423echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31424if test "${ac_cv_lib_dl_dlerror+set}" = set; then
e6cc62c6
VS
31425 echo $ECHO_N "(cached) $ECHO_C" >&6
31426else
f93ca9fd
VS
31427 ac_check_lib_save_LIBS=$LIBS
31428LIBS="-ldl $LIBS"
31429cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31430#line $LINENO "configure"
e6cc62c6
VS
31431/* confdefs.h. */
31432_ACEOF
31433cat confdefs.h >>conftest.$ac_ext
31434cat >>conftest.$ac_ext <<_ACEOF
31435/* end confdefs.h. */
afc31813 31436
f93ca9fd
VS
31437/* Override any gcc2 internal prototype to avoid an error. */
31438#ifdef __cplusplus
31439extern "C"
31440#endif
31441/* We use char because int might match the return type of a gcc2
31442 builtin and then its argument prototype would still apply. */
31443char dlerror ();
e6cc62c6
VS
31444int
31445main ()
31446{
f93ca9fd 31447dlerror ();
e6cc62c6
VS
31448 ;
31449 return 0;
31450}
31451_ACEOF
f93ca9fd
VS
31452rm -f conftest.$ac_objext conftest$ac_exeext
31453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31454 (eval $ac_link) 2>&5
e6cc62c6
VS
31455 ac_status=$?
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); } &&
789c5f4a 31458 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31460 (eval $ac_try) 2>&5
31461 ac_status=$?
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); }; }; then
f93ca9fd 31464 ac_cv_lib_dl_dlerror=yes
10f2d63a 31465else
e6cc62c6
VS
31466 echo "$as_me: failed program was:" >&5
31467sed 's/^/| /' conftest.$ac_ext >&5
31468
f93ca9fd
VS
31469ac_cv_lib_dl_dlerror=no
31470fi
789c5f4a 31471rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
31472LIBS=$ac_check_lib_save_LIBS
31473fi
31474echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31475echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31476if test $ac_cv_lib_dl_dlerror = yes; then
31477 cat >>confdefs.h <<\_ACEOF
31478#define HAVE_DLERROR 1
31479_ACEOF
31480
31481fi
31482
31483
31484
31485fi
31486done
31487
31488 fi
31489 fi
31490
31491 if test "$HAVE_DL_FUNCS" = 0; then
31492 if test "$HAVE_SHL_FUNCS" = 0; then
31493 if test "$USE_UNIX" = 1; then
31494 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31495echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
31496 wxUSE_DYNAMIC_LOADER=no
31497 wxUSE_DYNLIB_CLASS=no
31498 else
31499 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31500echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
31501 fi
31502 fi
31503 fi
31504 fi
31505fi
31506
31507if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
31508 cat >>confdefs.h <<\_ACEOF
31509#define wxUSE_DYNAMIC_LOADER 1
31510_ACEOF
31511
31512fi
31513if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31514 cat >>confdefs.h <<\_ACEOF
31515#define wxUSE_DYNLIB_CLASS 1
31516_ACEOF
31517
31518fi
31519
31520
31521
31522if test "$wxUSE_PLUGINS" = "yes" ; then
31523 if test "$wxUSE_SHARED" = "no" ; then
31524 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
31525echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
31526 wxUSE_PLUGINS=no
31527 fi
31528 if test "$wxUSE_MONOLITHIC" = "yes" ; then
31529 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
31530echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
31531 wxUSE_PLUGINS=no
31532 fi
31533 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
31534 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
31535echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
31536 wxUSE_PLUGINS=no
31537 fi
31538 if test "$wxUSE_PLUGINS" = "yes" ; then
31539 cat >>confdefs.h <<\_ACEOF
31540#define wxUSE_PLUGINS 1
31541_ACEOF
31542
31543 fi
31544fi
31545
31546
31547if test "$wxUSE_STL" = "yes"; then
31548 cat >>confdefs.h <<\_ACEOF
31549#define wxUSE_STL 1
31550_ACEOF
31551
31552fi
31553
31554if test "$wxUSE_APPLE_IEEE" = "yes"; then
31555 cat >>confdefs.h <<\_ACEOF
31556#define wxUSE_APPLE_IEEE 1
31557_ACEOF
31558
31559fi
31560
31561if test "$wxUSE_TIMER" = "yes"; then
31562 cat >>confdefs.h <<\_ACEOF
31563#define wxUSE_TIMER 1
31564_ACEOF
31565
31566fi
31567
31568WITH_PLUGIN_SDL=0
002ed9af 31569if test "$wxUSE_SOUND" = "yes"; then
f93ca9fd
VS
31570 if test "$USE_UNIX" = "1" ; then
31571
31572for ac_header in sys/soundcard.h
31573do
31574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31575if eval "test \"\${$as_ac_Header+set}\" = set"; then
31576 echo "$as_me:$LINENO: checking for $ac_header" >&5
31577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31578if eval "test \"\${$as_ac_Header+set}\" = set"; then
31579 echo $ECHO_N "(cached) $ECHO_C" >&6
31580fi
31581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31583else
31584 # Is the header compilable?
31585echo "$as_me:$LINENO: checking $ac_header usability" >&5
31586echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 31587cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31588#line $LINENO "configure"
e6cc62c6
VS
31589/* confdefs.h. */
31590_ACEOF
31591cat confdefs.h >>conftest.$ac_ext
31592cat >>conftest.$ac_ext <<_ACEOF
31593/* end confdefs.h. */
f93ca9fd
VS
31594$ac_includes_default
31595#include <$ac_header>
e6cc62c6
VS
31596_ACEOF
31597rm -f conftest.$ac_objext
31598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 31599 (eval $ac_compile) 2>&5
e6cc62c6
VS
31600 ac_status=$?
31601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602 (exit $ac_status); } &&
789c5f4a 31603 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31605 (eval $ac_try) 2>&5
31606 ac_status=$?
31607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608 (exit $ac_status); }; }; then
f93ca9fd 31609 ac_header_compiler=yes
10f2d63a 31610else
e6cc62c6
VS
31611 echo "$as_me: failed program was:" >&5
31612sed 's/^/| /' conftest.$ac_ext >&5
31613
f93ca9fd 31614ac_header_compiler=no
10f2d63a 31615fi
789c5f4a 31616rm -f conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
31617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31618echo "${ECHO_T}$ac_header_compiler" >&6
b089607b 31619
f93ca9fd
VS
31620# Is the header present?
31621echo "$as_me:$LINENO: checking $ac_header presence" >&5
31622echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31623cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31624#line $LINENO "configure"
e6cc62c6
VS
31625/* confdefs.h. */
31626_ACEOF
31627cat confdefs.h >>conftest.$ac_ext
31628cat >>conftest.$ac_ext <<_ACEOF
31629/* end confdefs.h. */
f93ca9fd 31630#include <$ac_header>
e6cc62c6 31631_ACEOF
f93ca9fd
VS
31632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
e6cc62c6 31634 ac_status=$?
f95e4495
VS
31635 grep -v '^ *+' conftest.er1 >conftest.err
31636 rm -f conftest.er1
31637 cat conftest.err >&5
e6cc62c6 31638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd
VS
31639 (exit $ac_status); } >/dev/null; then
31640 if test -s conftest.err; then
31641 ac_cpp_err=$ac_c_preproc_warn_flag
f93ca9fd
VS
31642 else
31643 ac_cpp_err=
31644 fi
31645else
31646 ac_cpp_err=yes
31647fi
31648if test -z "$ac_cpp_err"; then
31649 ac_header_preproc=yes
31650else
31651 echo "$as_me: failed program was:" >&5
31652sed 's/^/| /' conftest.$ac_ext >&5
31653
31654 ac_header_preproc=no
31655fi
31656rm -f conftest.err conftest.$ac_ext
31657echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31658echo "${ECHO_T}$ac_header_preproc" >&6
31659
31660# So? What about this header?
789c5f4a
VZ
31661case $ac_header_compiler:$ac_header_preproc in
31662 yes:no )
f93ca9fd
VS
31663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
31665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31666echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31667 (
31668 cat <<\_ASBOX
31669## ------------------------------------ ##
31670## Report this to bug-autoconf@gnu.org. ##
31671## ------------------------------------ ##
31672_ASBOX
31673 ) |
31674 sed "s/^/$as_me: WARNING: /" >&2
f93ca9fd 31675 ;;
789c5f4a 31676 no:yes )
f93ca9fd
VS
31677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31678echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
31679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31680echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
f93ca9fd
VS
31681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31682echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f93ca9fd
VS
31683 (
31684 cat <<\_ASBOX
789c5f4a
VZ
31685## ------------------------------------ ##
31686## Report this to bug-autoconf@gnu.org. ##
31687## ------------------------------------ ##
f93ca9fd
VS
31688_ASBOX
31689 ) |
31690 sed "s/^/$as_me: WARNING: /" >&2
31691 ;;
31692esac
31693echo "$as_me:$LINENO: checking for $ac_header" >&5
31694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31695if eval "test \"\${$as_ac_Header+set}\" = set"; then
31696 echo $ECHO_N "(cached) $ECHO_C" >&6
31697else
789c5f4a 31698 eval "$as_ac_Header=$ac_header_preproc"
f93ca9fd
VS
31699fi
31700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31702
31703fi
31704if test `eval echo '${'$as_ac_Header'}'` = yes; then
31705 cat >>confdefs.h <<_ACEOF
31706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31707_ACEOF
31708
31709fi
31710
31711done
31712
31713
31714 if test "$wxUSE_LIBSDL" != "no"; then
31715
31716# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
31717if test "${with_sdl_prefix+set}" = set; then
31718 withval="$with_sdl_prefix"
31719 sdl_prefix="$withval"
31720else
31721 sdl_prefix=""
31722fi;
31723
31724# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
31725if test "${with_sdl_exec_prefix+set}" = set; then
31726 withval="$with_sdl_exec_prefix"
31727 sdl_exec_prefix="$withval"
31728else
31729 sdl_exec_prefix=""
31730fi;
31731# Check whether --enable-sdltest or --disable-sdltest was given.
31732if test "${enable_sdltest+set}" = set; then
31733 enableval="$enable_sdltest"
31734
31735else
31736 enable_sdltest=yes
31737fi;
31738
31739 if test x$sdl_exec_prefix != x ; then
31740 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
31741 if test x${SDL_CONFIG+set} != xset ; then
31742 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
31743 fi
31744 fi
31745 if test x$sdl_prefix != x ; then
31746 sdl_args="$sdl_args --prefix=$sdl_prefix"
31747 if test x${SDL_CONFIG+set} != xset ; then
31748 SDL_CONFIG=$sdl_prefix/bin/sdl-config
31749 fi
31750 fi
31751
31752
31753 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
31754 # Extract the first word of "sdl-config", so it can be a program name with args.
31755set dummy sdl-config; ac_word=$2
31756echo "$as_me:$LINENO: checking for $ac_word" >&5
31757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31758if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
31759 echo $ECHO_N "(cached) $ECHO_C" >&6
31760else
31761 case $SDL_CONFIG in
31762 [\\/]* | ?:[\\/]*)
31763 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
31764 ;;
31765 *)
31766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31767for as_dir in $PATH
31768do
31769 IFS=$as_save_IFS
31770 test -z "$as_dir" && as_dir=.
31771 for ac_exec_ext in '' $ac_executable_extensions; do
31772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31773 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31775 break 2
31776 fi
31777done
31778done
31779
31780 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
31781 ;;
31782esac
31783fi
31784SDL_CONFIG=$ac_cv_path_SDL_CONFIG
31785
31786if test -n "$SDL_CONFIG"; then
31787 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
31788echo "${ECHO_T}$SDL_CONFIG" >&6
31789else
31790 echo "$as_me:$LINENO: result: no" >&5
31791echo "${ECHO_T}no" >&6
31792fi
31793
31794 min_sdl_version=1.2.0
31795 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
31796echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
31797 no_sdl=""
31798 if test "$SDL_CONFIG" = "no" ; then
31799 no_sdl=yes
31800 else
31801 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
31802 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
31803
31804 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
31805 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31806 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
31807 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31808 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
31809 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31810 if test "x$enable_sdltest" = "xyes" ; then
31811 ac_save_CFLAGS="$CFLAGS"
31812 ac_save_LIBS="$LIBS"
31813 CFLAGS="$CFLAGS $SDL_CFLAGS"
31814 LIBS="$LIBS $SDL_LIBS"
31815 rm -f conf.sdltest
31816 if test "$cross_compiling" = yes; then
31817 echo $ac_n "cross compiling; assumed OK... $ac_c"
31818else
31819 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31820#line $LINENO "configure"
f93ca9fd
VS
31821/* confdefs.h. */
31822_ACEOF
31823cat confdefs.h >>conftest.$ac_ext
31824cat >>conftest.$ac_ext <<_ACEOF
31825/* end confdefs.h. */
31826
31827#include <stdio.h>
31828#include <stdlib.h>
31829#include <string.h>
31830#include "SDL.h"
31831
31832char*
31833my_strdup (char *str)
31834{
31835 char *new_str;
31836
31837 if (str)
31838 {
31839 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
31840 strcpy (new_str, str);
31841 }
31842 else
31843 new_str = NULL;
31844
31845 return new_str;
31846}
31847
31848int main (int argc, char *argv[])
31849{
31850 int major, minor, micro;
31851 char *tmp_version;
31852
31853 /* This hangs on some systems (?)
31854 system ("touch conf.sdltest");
31855 */
31856 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
31857
31858 /* HP/UX 9 (%@#!) writes to sscanf strings */
31859 tmp_version = my_strdup("$min_sdl_version");
31860 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31861 printf("%s, bad version string\n", "$min_sdl_version");
31862 exit(1);
31863 }
31864
31865 if (($sdl_major_version > major) ||
31866 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
31867 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
31868 {
31869 return 0;
31870 }
31871 else
31872 {
31873 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
31874 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
31875 printf("*** best to upgrade to the required version.\n");
31876 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
31877 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
31878 printf("*** config.cache before re-running configure\n");
31879 return 1;
31880 }
31881}
31882
31883
31884_ACEOF
31885rm -f conftest$ac_exeext
31886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31887 (eval $ac_link) 2>&5
f95e4495
VS
31888 ac_status=$?
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd 31890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
e6cc62c6
VS
31891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31892 (eval $ac_try) 2>&5
31893 ac_status=$?
31894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31895 (exit $ac_status); }; }; then
f93ca9fd 31896 :
e6cc62c6 31897else
f93ca9fd
VS
31898 echo "$as_me: program exited with status $ac_status" >&5
31899echo "$as_me: failed program was:" >&5
e6cc62c6
VS
31900sed 's/^/| /' conftest.$ac_ext >&5
31901
f93ca9fd
VS
31902( exit $ac_status )
31903no_sdl=yes
e6cc62c6 31904fi
789c5f4a 31905rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6 31906fi
f93ca9fd
VS
31907 CFLAGS="$ac_save_CFLAGS"
31908 LIBS="$ac_save_LIBS"
31909 fi
31910 fi
31911 if test "x$no_sdl" = x ; then
31912 echo "$as_me:$LINENO: result: yes" >&5
31913echo "${ECHO_T}yes" >&6
0e012a93 31914
f93ca9fd
VS
31915 EXTRALIBS_SDL="$SDL_LIBS"
31916 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
31917 cat >>confdefs.h <<\_ACEOF
31918#define wxUSE_LIBSDL 1
31919_ACEOF
31920
31921
31922 else
31923 echo "$as_me:$LINENO: result: no" >&5
31924echo "${ECHO_T}no" >&6
31925 if test "$SDL_CONFIG" = "no" ; then
31926 echo "*** The sdl-config script installed by SDL could not be found"
31927 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
31928 echo "*** your path, or set the SDL_CONFIG environment variable to the"
31929 echo "*** full path to sdl-config."
31930 else
31931 if test -f conf.sdltest ; then
31932 :
31933 else
31934 echo "*** Could not run SDL test program, checking why..."
31935 CFLAGS="$CFLAGS $SDL_CFLAGS"
31936 LIBS="$LIBS $SDL_LIBS"
31937 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31938#line $LINENO "configure"
e6cc62c6
VS
31939/* confdefs.h. */
31940_ACEOF
31941cat confdefs.h >>conftest.$ac_ext
31942cat >>conftest.$ac_ext <<_ACEOF
31943/* end confdefs.h. */
31944
f93ca9fd
VS
31945#include <stdio.h>
31946#include "SDL.h"
31947
31948int main(int argc, char *argv[])
31949{ return 0; }
31950#undef main
31951#define main K_and_R_C_main
31952
e6cc62c6
VS
31953int
31954main ()
31955{
f93ca9fd 31956 return 0;
e6cc62c6
VS
31957 ;
31958 return 0;
31959}
31960_ACEOF
31961rm -f conftest.$ac_objext conftest$ac_exeext
31962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31963 (eval $ac_link) 2>&5
e6cc62c6
VS
31964 ac_status=$?
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); } &&
789c5f4a 31967 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31969 (eval $ac_try) 2>&5
31970 ac_status=$?
31971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972 (exit $ac_status); }; }; then
f93ca9fd
VS
31973 echo "*** The test program compiled, but did not run. This usually means"
31974 echo "*** that the run-time linker is not finding SDL or finding the wrong"
31975 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
31976 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31977 echo "*** to the installed location Also, make sure you have run ldconfig if that"
31978 echo "*** is required on your system"
31979 echo "***"
31980 echo "*** If you have an old version installed, it is best to remove it, although"
31981 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
e6cc62c6
VS
31982else
31983 echo "$as_me: failed program was:" >&5
31984sed 's/^/| /' conftest.$ac_ext >&5
31985
f93ca9fd
VS
31986 echo "*** The test program failed to compile or link. See the file config.log for the"
31987 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
31988 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
31989 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
e6cc62c6 31990fi
789c5f4a 31991rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
31992 CFLAGS="$ac_save_CFLAGS"
31993 LIBS="$ac_save_LIBS"
31994 fi
31995 fi
31996 SDL_CFLAGS=""
31997 SDL_LIBS=""
31998 wxUSE_LIBSDL="no"
31999 fi
32000
32001
32002 rm -f conf.sdltest
32003
32004 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
32005 WITH_PLUGIN_SDL=1
32006 fi
32007 fi
32008 fi
32009
32010 cat >>confdefs.h <<\_ACEOF
002ed9af 32011#define wxUSE_SOUND 1
f93ca9fd
VS
32012_ACEOF
32013
32014 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
e6cc62c6 32015fi
afc31813 32016
f93ca9fd
VS
32017if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
32018 cat >>confdefs.h <<\_ACEOF
32019#define wxUSE_CMDLINE_PARSER 1
32020_ACEOF
32021
32022fi
e6cc62c6 32023
f93ca9fd
VS
32024if test "$wxUSE_STOPWATCH" = "yes"; then
32025 cat >>confdefs.h <<\_ACEOF
32026#define wxUSE_STOPWATCH 1
32027_ACEOF
e6cc62c6 32028
6232543b 32029fi
b089607b 32030
f93ca9fd
VS
32031if test "$wxUSE_DATETIME" = "yes"; then
32032 cat >>confdefs.h <<\_ACEOF
32033#define wxUSE_DATETIME 1
32034_ACEOF
e6cc62c6 32035
f93ca9fd
VS
32036fi
32037
32038if test "$wxUSE_FILE" = "yes"; then
32039 cat >>confdefs.h <<\_ACEOF
32040#define wxUSE_FILE 1
32041_ACEOF
0e012a93 32042
1e487827 32043fi
afc31813 32044
f93ca9fd
VS
32045if test "$wxUSE_FFILE" = "yes"; then
32046 cat >>confdefs.h <<\_ACEOF
32047#define wxUSE_FFILE 1
32048_ACEOF
32049
32050fi
32051
32052if test "$wxUSE_FILESYSTEM" = "yes"; then
32053 cat >>confdefs.h <<\_ACEOF
32054#define wxUSE_FILESYSTEM 1
32055_ACEOF
32056
32057fi
32058
32059if test "$wxUSE_FS_ZIP" = "yes"; then
32060 cat >>confdefs.h <<\_ACEOF
32061#define wxUSE_FS_ZIP 1
32062_ACEOF
32063
32064fi
32065
32066if test "$wxUSE_ZIPSTREAM" = "yes"; then
32067 cat >>confdefs.h <<\_ACEOF
32068#define wxUSE_ZIPSTREAM 1
32069_ACEOF
32070
32071fi
32072
32073if test "$wxUSE_GZSTREAM" = "yes"; then
32074 cat >>confdefs.h <<\_ACEOF
32075#define wxUSE_GZSTREAM 1
32076_ACEOF
32077
32078fi
32079
32080if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32081 cat >>confdefs.h <<\_ACEOF
32082#define wxUSE_ON_FATAL_EXCEPTION 1
32083_ACEOF
32084
32085fi
32086
32087if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32088 cat >>confdefs.h <<\_ACEOF
32089#define wxUSE_SNGLINST_CHECKER 1
32090_ACEOF
32091
32092fi
32093
32094if test "$wxUSE_BUSYINFO" = "yes"; then
32095 cat >>confdefs.h <<\_ACEOF
32096#define wxUSE_BUSYINFO 1
32097_ACEOF
32098
32099fi
32100
32101if test "$wxUSE_STD_IOSTREAM" = "yes"; then
32102 cat >>confdefs.h <<\_ACEOF
32103#define wxUSE_STD_IOSTREAM 1
32104_ACEOF
32105
32106fi
32107
32108if test "$wxUSE_TEXTBUFFER" = "yes"; then
32109 cat >>confdefs.h <<\_ACEOF
32110#define wxUSE_TEXTBUFFER 1
32111_ACEOF
32112
32113fi
32114
32115if test "$wxUSE_TEXTFILE" = "yes"; then
32116 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
32117 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
32118echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
32119 else
32120 cat >>confdefs.h <<\_ACEOF
32121#define wxUSE_TEXTFILE 1
32122_ACEOF
32123
32124 fi
32125fi
32126
32127if test "$wxUSE_CONFIG" = "yes" ; then
32128 if test "$wxUSE_TEXTFILE" != "yes"; then
32129 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
32130echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
32131 else
32132 cat >>confdefs.h <<\_ACEOF
32133#define wxUSE_CONFIG 1
32134_ACEOF
32135
32136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
32137 fi
32138fi
32139
32140if test "$wxUSE_INTL" = "yes" ; then
32141 if test "$wxUSE_FILE" != "yes"; then
32142 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
32143echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
32144 else
32145 cat >>confdefs.h <<\_ACEOF
32146#define wxUSE_INTL 1
32147_ACEOF
32148
32149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
32150 GUIDIST="$GUIDIST INTL_DIST"
32151 fi
32152fi
32153
32154if test "$wxUSE_LOG" = "yes"; then
32155 cat >>confdefs.h <<\_ACEOF
32156#define wxUSE_LOG 1
32157_ACEOF
32158
32159
32160 if test "$wxUSE_LOGGUI" = "yes"; then
32161 cat >>confdefs.h <<\_ACEOF
32162#define wxUSE_LOGGUI 1
32163_ACEOF
32164
32165 fi
32166
32167 if test "$wxUSE_LOGWINDOW" = "yes"; then
32168 cat >>confdefs.h <<\_ACEOF
32169#define wxUSE_LOGWINDOW 1
32170_ACEOF
32171
32172 fi
32173
32174 if test "$wxUSE_LOGDIALOG" = "yes"; then
32175 cat >>confdefs.h <<\_ACEOF
32176#define wxUSE_LOG_DIALOG 1
32177_ACEOF
32178
3a922bb4 32179 fi
0feee163 32180fi
51a9faba 32181
f93ca9fd
VS
32182if test "$wxUSE_LONGLONG" = "yes"; then
32183 cat >>confdefs.h <<\_ACEOF
32184#define wxUSE_LONGLONG 1
32185_ACEOF
e6cc62c6 32186
f93ca9fd
VS
32187fi
32188
32189if test "$wxUSE_GEOMETRY" = "yes"; then
32190 cat >>confdefs.h <<\_ACEOF
32191#define wxUSE_GEOMETRY 1
e6cc62c6 32192_ACEOF
51a9faba 32193
f93ca9fd 32194fi
e6cc62c6 32195
f93ca9fd
VS
32196if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
32197 cat >>confdefs.h <<\_ACEOF
32198#define wxUSE_DIALUP_MANAGER 1
32199_ACEOF
51a9faba 32200
f93ca9fd
VS
32201 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
32202fi
e6cc62c6 32203
f93ca9fd
VS
32204if test "$wxUSE_STREAMS" = "yes" ; then
32205 cat >>confdefs.h <<\_ACEOF
32206#define wxUSE_STREAMS 1
e6cc62c6 32207_ACEOF
e6cc62c6 32208
f93ca9fd 32209fi
e6cc62c6 32210
9711d31e 32211
f93ca9fd
VS
32212if test "$wxUSE_DATETIME" = "yes"; then
32213
32214for ac_func in strptime
32215do
32216as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32217echo "$as_me:$LINENO: checking for $ac_func" >&5
32218echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32219if eval "test \"\${$as_ac_var+set}\" = set"; then
32220 echo $ECHO_N "(cached) $ECHO_C" >&6
32221else
32222 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32223#line $LINENO "configure"
e6cc62c6
VS
32224/* confdefs.h. */
32225_ACEOF
32226cat confdefs.h >>conftest.$ac_ext
32227cat >>conftest.$ac_ext <<_ACEOF
32228/* end confdefs.h. */
f93ca9fd
VS
32229/* System header to define __stub macros and hopefully few prototypes,
32230 which can conflict with char $ac_func (); below.
32231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32232 <limits.h> exists even on freestanding compilers. */
f93ca9fd
VS
32233#ifdef __STDC__
32234# include <limits.h>
32235#else
32236# include <assert.h>
32237#endif
f93ca9fd
VS
32238/* Override any gcc2 internal prototype to avoid an error. */
32239#ifdef __cplusplus
32240extern "C"
32241{
32242#endif
32243/* We use char because int might match the return type of a gcc2
32244 builtin and then its argument prototype would still apply. */
32245char $ac_func ();
32246/* The GNU C library defines this for functions which it implements
32247 to always fail with ENOSYS. Some functions are actually named
32248 something starting with __ and the normal name is an alias. */
32249#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32250choke me
32251#else
32252char (*f) () = $ac_func;
32253#endif
32254#ifdef __cplusplus
32255}
32256#endif
e6cc62c6
VS
32257
32258int
32259main ()
32260{
f93ca9fd 32261return f != $ac_func;
e6cc62c6
VS
32262 ;
32263 return 0;
32264}
32265_ACEOF
f93ca9fd
VS
32266rm -f conftest.$ac_objext conftest$ac_exeext
32267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 32268 (eval $ac_link) 2>&5
e6cc62c6
VS
32269 ac_status=$?
32270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271 (exit $ac_status); } &&
789c5f4a 32272 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32274 (eval $ac_try) 2>&5
32275 ac_status=$?
32276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32277 (exit $ac_status); }; }; then
f93ca9fd 32278 eval "$as_ac_var=yes"
afc31813 32279else
e6cc62c6
VS
32280 echo "$as_me: failed program was:" >&5
32281sed 's/^/| /' conftest.$ac_ext >&5
32282
f93ca9fd
VS
32283eval "$as_ac_var=no"
32284fi
789c5f4a 32285rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
32286fi
32287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32288echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32289if test `eval echo '${'$as_ac_var'}'` = yes; then
32290 cat >>confdefs.h <<_ACEOF
32291#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32292_ACEOF
32293
32294fi
32295done
32296
32297
32298 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
32299echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
32300if test "${wx_cv_var_timezone+set}" = set; then
32301 echo $ECHO_N "(cached) $ECHO_C" >&6
32302else
32303
32304 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32305#line $LINENO "configure"
e6cc62c6
VS
32306/* confdefs.h. */
32307_ACEOF
32308cat confdefs.h >>conftest.$ac_ext
32309cat >>conftest.$ac_ext <<_ACEOF
32310/* end confdefs.h. */
51a9faba 32311
f93ca9fd 32312 #include <time.h>
e6cc62c6
VS
32313
32314int
32315main ()
32316{
51a9faba 32317
f93ca9fd
VS
32318 int tz;
32319 tz = timezone;
e6cc62c6
VS
32320
32321 ;
32322 return 0;
32323}
32324_ACEOF
32325rm -f conftest.$ac_objext
32326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32327 (eval $ac_compile) 2>&5
e6cc62c6
VS
32328 ac_status=$?
32329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32330 (exit $ac_status); } &&
789c5f4a 32331 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
32332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32333 (eval $ac_try) 2>&5
32334 ac_status=$?
32335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32336 (exit $ac_status); }; }; then
8284b0c5 32337
f93ca9fd 32338 wx_cv_var_timezone=timezone
dc3d889d 32339
f93ca9fd
VS
32340else
32341 echo "$as_me: failed program was:" >&5
32342sed 's/^/| /' conftest.$ac_ext >&5
156b2523 32343
e6cc62c6 32344
f93ca9fd 32345 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32346#line $LINENO "configure"
e6cc62c6
VS
32347/* confdefs.h. */
32348_ACEOF
32349cat confdefs.h >>conftest.$ac_ext
32350cat >>conftest.$ac_ext <<_ACEOF
32351/* end confdefs.h. */
f93ca9fd
VS
32352
32353 #include <time.h>
32354
32355int
32356main ()
32357{
32358
32359 int tz;
32360 tz = _timezone;
32361
32362 ;
32363 return 0;
32364}
e6cc62c6
VS
32365_ACEOF
32366rm -f conftest.$ac_objext
32367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32368 (eval $ac_compile) 2>&5
e6cc62c6
VS
32369 ac_status=$?
32370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371 (exit $ac_status); } &&
789c5f4a 32372 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32374 (eval $ac_try) 2>&5
32375 ac_status=$?
32376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377 (exit $ac_status); }; }; then
f93ca9fd
VS
32378
32379 wx_cv_var_timezone=_timezone
32380
e6cc62c6
VS
32381else
32382 echo "$as_me: failed program was:" >&5
32383sed 's/^/| /' conftest.$ac_ext >&5
32384
e6cc62c6 32385
f93ca9fd 32386 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32387#line $LINENO "configure"
e6cc62c6
VS
32388/* confdefs.h. */
32389_ACEOF
32390cat confdefs.h >>conftest.$ac_ext
32391cat >>conftest.$ac_ext <<_ACEOF
32392/* end confdefs.h. */
f93ca9fd
VS
32393
32394 #include <time.h>
32395
32396int
32397main ()
32398{
32399
32400 int tz;
32401 tz = __timezone;
32402
32403 ;
32404 return 0;
32405}
e6cc62c6 32406_ACEOF
f93ca9fd
VS
32407rm -f conftest.$ac_objext
32408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32409 (eval $ac_compile) 2>&5
e6cc62c6 32410 ac_status=$?
e6cc62c6 32411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd 32412 (exit $ac_status); } &&
789c5f4a 32413 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
32414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32415 (eval $ac_try) 2>&5
32416 ac_status=$?
32417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418 (exit $ac_status); }; }; then
32419
32420 wx_cv_var_timezone=__timezone
32421
e6cc62c6
VS
32422else
32423 echo "$as_me: failed program was:" >&5
32424sed 's/^/| /' conftest.$ac_ext >&5
32425
e6cc62c6 32426
f93ca9fd
VS
32427 if test "$USE_DOS" = 0 ; then
32428 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
32429echo "$as_me: WARNING: no timezone variable" >&2;}
32430 fi
32431
e6cc62c6 32432
10f2d63a 32433fi
789c5f4a 32434rm -f conftest.$ac_objext conftest.$ac_ext
f93ca9fd 32435
e6cc62c6 32436
247f5006 32437fi
789c5f4a 32438rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 32439
10f2d63a 32440
f93ca9fd 32441fi
789c5f4a 32442rm -f conftest.$ac_objext conftest.$ac_ext
b089607b 32443
10f2d63a 32444
dc3d889d 32445fi
f93ca9fd
VS
32446echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
32447echo "${ECHO_T}$wx_cv_var_timezone" >&6
dc3d889d 32448
f93ca9fd
VS
32449 if test "x$wx_cv_var_timezone" != x ; then
32450 cat >>confdefs.h <<_ACEOF
32451#define WX_TIMEZONE $wx_cv_var_timezone
32452_ACEOF
8284b0c5 32453
f93ca9fd 32454 fi
b089607b 32455
e6cc62c6 32456
f93ca9fd 32457for ac_func in localtime
10f2d63a 32458do
e6cc62c6
VS
32459as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32460echo "$as_me:$LINENO: checking for $ac_func" >&5
32461echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32462if eval "test \"\${$as_ac_var+set}\" = set"; then
32463 echo $ECHO_N "(cached) $ECHO_C" >&6
32464else
32465 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32466#line $LINENO "configure"
e6cc62c6
VS
32467/* confdefs.h. */
32468_ACEOF
32469cat confdefs.h >>conftest.$ac_ext
32470cat >>conftest.$ac_ext <<_ACEOF
32471/* end confdefs.h. */
10f2d63a 32472/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32473 which can conflict with char $ac_func (); below.
32474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32475 <limits.h> exists even on freestanding compilers. */
32476#ifdef __STDC__
32477# include <limits.h>
32478#else
32479# include <assert.h>
32480#endif
10f2d63a 32481/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32482#ifdef __cplusplus
32483extern "C"
32484{
32485#endif
10f2d63a 32486/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32487 builtin and then its argument prototype would still apply. */
32488char $ac_func ();
10f2d63a
VZ
32489/* The GNU C library defines this for functions which it implements
32490 to always fail with ENOSYS. Some functions are actually named
32491 something starting with __ and the normal name is an alias. */
32492#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32493choke me
32494#else
e6cc62c6
VS
32495char (*f) () = $ac_func;
32496#endif
32497#ifdef __cplusplus
32498}
10f2d63a
VZ
32499#endif
32500
e6cc62c6
VS
32501int
32502main ()
32503{
32504return f != $ac_func;
32505 ;
32506 return 0;
32507}
32508_ACEOF
32509rm -f conftest.$ac_objext conftest$ac_exeext
32510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 32511 (eval $ac_link) 2>&5
e6cc62c6
VS
32512 ac_status=$?
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); } &&
789c5f4a 32515 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32517 (eval $ac_try) 2>&5
32518 ac_status=$?
32519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); }; }; then
32521 eval "$as_ac_var=yes"
32522else
32523 echo "$as_me: failed program was:" >&5
32524sed 's/^/| /' conftest.$ac_ext >&5
32525
32526eval "$as_ac_var=no"
32527fi
789c5f4a 32528rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32529fi
32530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32531echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32532if test `eval echo '${'$as_ac_var'}'` = yes; then
32533 cat >>confdefs.h <<_ACEOF
32534#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32535_ACEOF
32536
f93ca9fd
VS
32537fi
32538done
e6cc62c6 32539
e6cc62c6 32540
f93ca9fd
VS
32541 if test "$ac_cv_func_localtime" = "yes"; then
32542 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
32543echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
32544if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
e6cc62c6 32545 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 32546else
f93ca9fd
VS
32547
32548 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32549#line $LINENO "configure"
e6cc62c6
VS
32550/* confdefs.h. */
32551_ACEOF
32552cat confdefs.h >>conftest.$ac_ext
32553cat >>conftest.$ac_ext <<_ACEOF
32554/* end confdefs.h. */
32555
f93ca9fd
VS
32556 #include <time.h>
32557
e6cc62c6
VS
32558int
32559main ()
32560{
f93ca9fd
VS
32561
32562 struct tm tm;
32563 tm.tm_gmtoff++;
32564
e6cc62c6
VS
32565 ;
32566 return 0;
32567}
32568_ACEOF
f93ca9fd
VS
32569rm -f conftest.$ac_objext
32570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32571 (eval $ac_compile) 2>&5
e6cc62c6
VS
32572 ac_status=$?
32573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32574 (exit $ac_status); } &&
789c5f4a 32575 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32577 (eval $ac_try) 2>&5
32578 ac_status=$?
32579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32580 (exit $ac_status); }; }; then
f93ca9fd
VS
32581
32582 wx_cv_struct_tm_has_gmtoff=yes
32583
e6cc62c6
VS
32584else
32585 echo "$as_me: failed program was:" >&5
32586sed 's/^/| /' conftest.$ac_ext >&5
32587
f93ca9fd
VS
32588wx_cv_struct_tm_has_gmtoff=no
32589
e6cc62c6 32590fi
789c5f4a 32591rm -f conftest.$ac_objext conftest.$ac_ext
f93ca9fd 32592
e6cc62c6 32593fi
f93ca9fd
VS
32594echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
32595echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
32596 fi
e6cc62c6 32597
f93ca9fd
VS
32598 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
32599 cat >>confdefs.h <<\_ACEOF
32600#define WX_GMTOFF_IN_TM 1
e6cc62c6 32601_ACEOF
10f2d63a 32602
f93ca9fd 32603 fi
e6cc62c6 32604
10f2d63a 32605
e6cc62c6 32606
f93ca9fd 32607for ac_func in gettimeofday ftime
10f2d63a 32608do
e6cc62c6
VS
32609as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32610echo "$as_me:$LINENO: checking for $ac_func" >&5
32611echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32612if eval "test \"\${$as_ac_var+set}\" = set"; then
32613 echo $ECHO_N "(cached) $ECHO_C" >&6
32614else
32615 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32616#line $LINENO "configure"
e6cc62c6
VS
32617/* confdefs.h. */
32618_ACEOF
32619cat confdefs.h >>conftest.$ac_ext
32620cat >>conftest.$ac_ext <<_ACEOF
32621/* end confdefs.h. */
10f2d63a 32622/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32623 which can conflict with char $ac_func (); below.
32624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32625 <limits.h> exists even on freestanding compilers. */
32626#ifdef __STDC__
32627# include <limits.h>
32628#else
32629# include <assert.h>
32630#endif
10f2d63a 32631/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32632#ifdef __cplusplus
32633extern "C"
32634{
32635#endif
10f2d63a 32636/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32637 builtin and then its argument prototype would still apply. */
32638char $ac_func ();
10f2d63a
VZ
32639/* The GNU C library defines this for functions which it implements
32640 to always fail with ENOSYS. Some functions are actually named
32641 something starting with __ and the normal name is an alias. */
32642#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32643choke me
32644#else
e6cc62c6
VS
32645char (*f) () = $ac_func;
32646#endif
32647#ifdef __cplusplus
32648}
10f2d63a
VZ
32649#endif
32650
e6cc62c6
VS
32651int
32652main ()
32653{
32654return f != $ac_func;
32655 ;
32656 return 0;
32657}
32658_ACEOF
32659rm -f conftest.$ac_objext conftest$ac_exeext
32660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 32661 (eval $ac_link) 2>&5
e6cc62c6
VS
32662 ac_status=$?
32663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664 (exit $ac_status); } &&
789c5f4a 32665 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32667 (eval $ac_try) 2>&5
32668 ac_status=$?
32669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32670 (exit $ac_status); }; }; then
32671 eval "$as_ac_var=yes"
32672else
32673 echo "$as_me: failed program was:" >&5
32674sed 's/^/| /' conftest.$ac_ext >&5
32675
32676eval "$as_ac_var=no"
32677fi
789c5f4a 32678rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32679fi
32680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32681echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32682if test `eval echo '${'$as_ac_var'}'` = yes; then
32683 cat >>confdefs.h <<_ACEOF
32684#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32685_ACEOF
f93ca9fd
VS
32686 break
32687fi
32688done
e6cc62c6 32689
f93ca9fd
VS
32690
32691 if test "$ac_cv_func_gettimeofday" = "yes"; then
32692 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
32693echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
32694if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
32695 echo $ECHO_N "(cached) $ECHO_C" >&6
32696else
32697
32698
32699
32700 ac_ext=cc
32701ac_cpp='$CXXCPP $CPPFLAGS'
32702ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32703ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32704ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32705
32706
32707 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32708#line $LINENO "configure"
f93ca9fd 32709/* confdefs.h. */
e6cc62c6 32710_ACEOF
f93ca9fd
VS
32711cat confdefs.h >>conftest.$ac_ext
32712cat >>conftest.$ac_ext <<_ACEOF
32713/* end confdefs.h. */
10f2d63a 32714
f93ca9fd
VS
32715 #include <sys/time.h>
32716 #include <unistd.h>
e6cc62c6 32717
f93ca9fd
VS
32718int
32719main ()
32720{
e6cc62c6 32721
f93ca9fd
VS
32722 struct timeval tv;
32723 gettimeofday(&tv, NULL);
32724
32725 ;
32726 return 0;
32727}
32728_ACEOF
32729rm -f conftest.$ac_objext
32730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32731 (eval $ac_compile) 2>&5
f93ca9fd 32732 ac_status=$?
f93ca9fd
VS
32733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734 (exit $ac_status); } &&
789c5f4a 32735 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
32736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32737 (eval $ac_try) 2>&5
32738 ac_status=$?
32739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740 (exit $ac_status); }; }; then
32741 wx_cv_func_gettimeofday_has_2_args=yes
f6bcfd97 32742else
f93ca9fd
VS
32743 echo "$as_me: failed program was:" >&5
32744sed 's/^/| /' conftest.$ac_ext >&5
32745
e6cc62c6 32746cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32747#line $LINENO "configure"
e6cc62c6
VS
32748/* confdefs.h. */
32749_ACEOF
32750cat confdefs.h >>conftest.$ac_ext
32751cat >>conftest.$ac_ext <<_ACEOF
32752/* end confdefs.h. */
32753
f93ca9fd
VS
32754 #include <sys/time.h>
32755 #include <unistd.h>
32756
e6cc62c6
VS
32757int
32758main ()
32759{
f93ca9fd
VS
32760
32761 struct timeval tv;
32762 gettimeofday(&tv);
32763
e6cc62c6
VS
32764 ;
32765 return 0;
32766}
32767_ACEOF
f93ca9fd
VS
32768rm -f conftest.$ac_objext
32769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32770 (eval $ac_compile) 2>&5
e6cc62c6
VS
32771 ac_status=$?
32772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773 (exit $ac_status); } &&
789c5f4a 32774 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32776 (eval $ac_try) 2>&5
32777 ac_status=$?
32778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779 (exit $ac_status); }; }; then
f93ca9fd 32780 wx_cv_func_gettimeofday_has_2_args=no
e6cc62c6
VS
32781else
32782 echo "$as_me: failed program was:" >&5
32783sed 's/^/| /' conftest.$ac_ext >&5
32784
f6bcfd97 32785
f93ca9fd
VS
32786 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
32787echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
32788 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6 32789
f6bcfd97 32790
f93ca9fd 32791fi
789c5f4a 32792rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 32793
10f2d63a 32794fi
789c5f4a 32795rm -f conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
32796 ac_ext=c
32797ac_cpp='$CPP $CPPFLAGS'
32798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32800ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 32801
e6cc62c6 32802
10f2d63a 32803fi
f93ca9fd
VS
32804echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
32805echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
32806
32807 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
32808 cat >>confdefs.h <<\_ACEOF
32809#define WX_GETTIMEOFDAY_NO_TZ 1
32810_ACEOF
10f2d63a 32811
f93ca9fd
VS
32812 fi
32813 fi
e6cc62c6 32814
f93ca9fd 32815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
10f2d63a 32816fi
10f2d63a 32817
5c6fa7d2 32818
f93ca9fd
VS
32819if test "$wxUSE_SOCKETS" = "yes"; then
32820 if test "$wxUSE_MGL" = "1"; then
32821 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
32822echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
32823 wxUSE_SOCKETS="no"
32824 fi
32825fi
e6cc62c6 32826
f93ca9fd
VS
32827if test "$wxUSE_SOCKETS" = "yes"; then
32828 if test "$TOOLKIT" != "MSW"; then
32829 echo "$as_me:$LINENO: checking for socket" >&5
32830echo $ECHO_N "checking for socket... $ECHO_C" >&6
32831if test "${ac_cv_func_socket+set}" = set; then
e6cc62c6
VS
32832 echo $ECHO_N "(cached) $ECHO_C" >&6
32833else
32834 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32835#line $LINENO "configure"
e6cc62c6
VS
32836/* confdefs.h. */
32837_ACEOF
32838cat confdefs.h >>conftest.$ac_ext
32839cat >>conftest.$ac_ext <<_ACEOF
32840/* end confdefs.h. */
f6bcfd97 32841/* System header to define __stub macros and hopefully few prototypes,
f93ca9fd 32842 which can conflict with char socket (); below.
e6cc62c6
VS
32843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32844 <limits.h> exists even on freestanding compilers. */
32845#ifdef __STDC__
32846# include <limits.h>
32847#else
32848# include <assert.h>
32849#endif
f6bcfd97 32850/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32851#ifdef __cplusplus
32852extern "C"
32853{
32854#endif
f6bcfd97 32855/* We use char because int might match the return type of a gcc2
e6cc62c6 32856 builtin and then its argument prototype would still apply. */
f93ca9fd 32857char socket ();
f6bcfd97
BP
32858/* The GNU C library defines this for functions which it implements
32859 to always fail with ENOSYS. Some functions are actually named
32860 something starting with __ and the normal name is an alias. */
f93ca9fd 32861#if defined (__stub_socket) || defined (__stub___socket)
f6bcfd97
BP
32862choke me
32863#else
f93ca9fd 32864char (*f) () = socket;
e6cc62c6
VS
32865#endif
32866#ifdef __cplusplus
32867}
f6bcfd97
BP
32868#endif
32869
e6cc62c6
VS
32870int
32871main ()
32872{
f93ca9fd
VS
32873return f != socket;
32874 ;
32875 return 0;
32876}
32877_ACEOF
32878rm -f conftest.$ac_objext conftest$ac_exeext
32879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 32880 (eval $ac_link) 2>&5
f93ca9fd 32881 ac_status=$?
f93ca9fd
VS
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); } &&
789c5f4a 32884 { ac_try='test -s conftest$ac_exeext'
f93ca9fd
VS
32885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32886 (eval $ac_try) 2>&5
32887 ac_status=$?
32888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32889 (exit $ac_status); }; }; then
32890 ac_cv_func_socket=yes
32891else
32892 echo "$as_me: failed program was:" >&5
32893sed 's/^/| /' conftest.$ac_ext >&5
32894
32895ac_cv_func_socket=no
32896fi
789c5f4a 32897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
32898fi
32899echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
32900echo "${ECHO_T}$ac_cv_func_socket" >&6
32901if test $ac_cv_func_socket = yes; then
32902 :
32903else
32904
32905 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
32906echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
32907if test "${ac_cv_lib_socket_socket+set}" = set; then
32908 echo $ECHO_N "(cached) $ECHO_C" >&6
32909else
32910 ac_check_lib_save_LIBS=$LIBS
32911LIBS="-lsocket $LIBS"
32912cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32913#line $LINENO "configure"
f93ca9fd
VS
32914/* confdefs.h. */
32915_ACEOF
32916cat confdefs.h >>conftest.$ac_ext
32917cat >>conftest.$ac_ext <<_ACEOF
32918/* end confdefs.h. */
32919
32920/* Override any gcc2 internal prototype to avoid an error. */
32921#ifdef __cplusplus
32922extern "C"
32923#endif
32924/* We use char because int might match the return type of a gcc2
32925 builtin and then its argument prototype would still apply. */
32926char socket ();
32927int
32928main ()
32929{
32930socket ();
e6cc62c6
VS
32931 ;
32932 return 0;
32933}
32934_ACEOF
32935rm -f conftest.$ac_objext conftest$ac_exeext
32936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 32937 (eval $ac_link) 2>&5
e6cc62c6
VS
32938 ac_status=$?
32939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940 (exit $ac_status); } &&
789c5f4a 32941 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32943 (eval $ac_try) 2>&5
32944 ac_status=$?
32945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); }; }; then
f93ca9fd 32947 ac_cv_lib_socket_socket=yes
e6cc62c6
VS
32948else
32949 echo "$as_me: failed program was:" >&5
32950sed 's/^/| /' conftest.$ac_ext >&5
32951
f93ca9fd 32952ac_cv_lib_socket_socket=no
e6cc62c6 32953fi
789c5f4a 32954rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd 32955LIBS=$ac_check_lib_save_LIBS
e6cc62c6 32956fi
f93ca9fd
VS
32957echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
32958echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
32959if test $ac_cv_lib_socket_socket = yes; then
32960 if test "$INET_LINK" != " -lsocket"; then
32961 INET_LINK="$INET_LINK -lsocket"
32962 fi
32963else
32964
32965 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
32966echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
32967 wxUSE_SOCKETS=no
32968
32969
32970fi
32971
32972
32973
32974fi
32975
32976 fi
32977fi
32978
32979if test "$wxUSE_SOCKETS" = "yes" ; then
32980 if test "$TOOLKIT" != "MSW"; then
32981 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
32982echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
32983if test "${wx_cv_type_getsockname3+set}" = set; then
32984 echo $ECHO_N "(cached) $ECHO_C" >&6
32985else
32986
32987 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32988#line $LINENO "configure"
f93ca9fd 32989/* confdefs.h. */
e6cc62c6 32990_ACEOF
f93ca9fd
VS
32991cat confdefs.h >>conftest.$ac_ext
32992cat >>conftest.$ac_ext <<_ACEOF
32993/* end confdefs.h. */
32994
32995 #include <sys/types.h>
32996 #include <sys/socket.h>
f6bcfd97 32997
f93ca9fd
VS
32998int
32999main ()
33000{
33001
33002 socklen_t len;
33003 getsockname(0, 0, &len);
33004
33005 ;
33006 return 0;
33007}
33008_ACEOF
33009rm -f conftest.$ac_objext
33010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 33011 (eval $ac_compile) 2>&5
f93ca9fd 33012 ac_status=$?
f93ca9fd
VS
33013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014 (exit $ac_status); } &&
789c5f4a 33015 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
33016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33017 (eval $ac_try) 2>&5
33018 ac_status=$?
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); }; }; then
33021 wx_cv_type_getsockname3=socklen_t
f6bcfd97 33022else
f93ca9fd
VS
33023 echo "$as_me: failed program was:" >&5
33024sed 's/^/| /' conftest.$ac_ext >&5
0e012a93 33025
f93ca9fd
VS
33026
33027 CFLAGS_OLD="$CFLAGS"
33028 if test "$GCC" = yes ; then
33029 CFLAGS="$CFLAGS -Werror"
33030 fi
33031
33032 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33033#line $LINENO "configure"
f93ca9fd
VS
33034/* confdefs.h. */
33035_ACEOF
33036cat confdefs.h >>conftest.$ac_ext
33037cat >>conftest.$ac_ext <<_ACEOF
33038/* end confdefs.h. */
33039
33040 #include <sys/types.h>
33041 #include <sys/socket.h>
33042
33043int
33044main ()
33045{
33046
33047 size_t len;
33048 getsockname(0, 0, &len);
33049
33050 ;
33051 return 0;
33052}
33053_ACEOF
33054rm -f conftest.$ac_objext
33055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 33056 (eval $ac_compile) 2>&5
f93ca9fd 33057 ac_status=$?
f93ca9fd
VS
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); } &&
789c5f4a 33060 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
33061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33062 (eval $ac_try) 2>&5
33063 ac_status=$?
33064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065 (exit $ac_status); }; }; then
33066 wx_cv_type_getsockname3=size_t
f6bcfd97 33067else
f93ca9fd
VS
33068 echo "$as_me: failed program was:" >&5
33069sed 's/^/| /' conftest.$ac_ext >&5
33070
e6cc62c6 33071cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33072#line $LINENO "configure"
e6cc62c6
VS
33073/* confdefs.h. */
33074_ACEOF
33075cat confdefs.h >>conftest.$ac_ext
33076cat >>conftest.$ac_ext <<_ACEOF
33077/* end confdefs.h. */
33078
f93ca9fd
VS
33079 #include <sys/types.h>
33080 #include <sys/socket.h>
33081
e6cc62c6
VS
33082int
33083main ()
33084{
f93ca9fd
VS
33085
33086 int len;
33087 getsockname(0, 0, &len);
33088
e6cc62c6
VS
33089 ;
33090 return 0;
33091}
33092_ACEOF
f93ca9fd
VS
33093rm -f conftest.$ac_objext
33094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 33095 (eval $ac_compile) 2>&5
e6cc62c6
VS
33096 ac_status=$?
33097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33098 (exit $ac_status); } &&
789c5f4a 33099 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33101 (eval $ac_try) 2>&5
33102 ac_status=$?
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); }; }; then
f93ca9fd 33105 wx_cv_type_getsockname3=int
e6cc62c6
VS
33106else
33107 echo "$as_me: failed program was:" >&5
33108sed 's/^/| /' conftest.$ac_ext >&5
33109
f93ca9fd
VS
33110wx_cv_type_getsockname3=unknown
33111
e6cc62c6 33112fi
789c5f4a 33113rm -f conftest.$ac_objext conftest.$ac_ext
f6bcfd97 33114
f6bcfd97 33115fi
789c5f4a 33116rm -f conftest.$ac_objext conftest.$ac_ext
f6bcfd97 33117
f93ca9fd 33118 CFLAGS="$CFLAGS_OLD"
0e012a93
VZ
33119
33120
f6bcfd97 33121fi
789c5f4a 33122rm -f conftest.$ac_objext conftest.$ac_ext
f6bcfd97 33123
f93ca9fd
VS
33124fi
33125echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
33126echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
33127
33128 if test "$wx_cv_type_getsockname3" = "unknown"; then
33129 wxUSE_SOCKETS=no
33130 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
33131echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
33132 else
33133 cat >>confdefs.h <<_ACEOF
33134#define SOCKLEN_T $wx_cv_type_getsockname3
33135_ACEOF
f6bcfd97 33136
10f2d63a
VZ
33137 fi
33138 fi
33139fi
33140
f93ca9fd 33141if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 33142 cat >>confdefs.h <<\_ACEOF
f93ca9fd 33143#define wxUSE_SOCKETS 1
e6cc62c6 33144_ACEOF
0b9ab0bd 33145
f93ca9fd 33146 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
1948bb32 33147fi
f93ca9fd
VS
33148
33149if test "$wxUSE_PROTOCOL" = "yes"; then
33150 if test "$wxUSE_SOCKETS" != "yes"; then
33151 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
33152echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
33153 wxUSE_PROTOCOL=no
33154 fi
33155fi
33156
33157if test "$wxUSE_PROTOCOL" = "yes"; then
e6cc62c6 33158 cat >>confdefs.h <<\_ACEOF
f93ca9fd 33159#define wxUSE_PROTOCOL 1
e6cc62c6 33160_ACEOF
10f2d63a 33161
f93ca9fd
VS
33162
33163 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
33164 cat >>confdefs.h <<\_ACEOF
33165#define wxUSE_PROTOCOL_HTTP 1
33166_ACEOF
33167
33168 fi
33169 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
33170 cat >>confdefs.h <<\_ACEOF
33171#define wxUSE_PROTOCOL_FTP 1
33172_ACEOF
33173
33174 fi
33175 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
33176 cat >>confdefs.h <<\_ACEOF
33177#define wxUSE_PROTOCOL_FILE 1
33178_ACEOF
33179
33180 fi
33181else
33182 if test "$wxUSE_FS_INET" = "yes"; then
33183 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
33184echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
33185 wxUSE_FS_INET="no"
33186 fi
10f2d63a
VZ
33187fi
33188
f93ca9fd
VS
33189if test "$wxUSE_URL" = "yes"; then
33190 if test "$wxUSE_PROTOCOL" != "yes"; then
33191 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
33192echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
33193 wxUSE_URL=no
33194 fi
33195 if test "$wxUSE_URL" = "yes"; then
33196 cat >>confdefs.h <<\_ACEOF
33197#define wxUSE_URL 1
33198_ACEOF
33199
33200 fi
33201fi
33202
33203if test "$wxUSE_FS_INET" = "yes"; then
33204 cat >>confdefs.h <<\_ACEOF
33205#define wxUSE_FS_INET 1
33206_ACEOF
33207
33208fi
33209
33210
33211if test "$wxUSE_GUI" = "yes"; then
33212
33213 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
33214 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
33215echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
33216 wxUSE_JOYSTICK=no
33217 fi
33218
33219 if test "$TOOLKIT" != "MSW"; then
33220 if test "$wxUSE_JOYSTICK" = "yes"; then
33221
33222for ac_header in linux/joystick.h
33223do
33224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33225if eval "test \"\${$as_ac_Header+set}\" = set"; then
33226 echo "$as_me:$LINENO: checking for $ac_header" >&5
33227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33228if eval "test \"\${$as_ac_Header+set}\" = set"; then
33229 echo $ECHO_N "(cached) $ECHO_C" >&6
33230fi
33231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33233else
33234 # Is the header compilable?
33235echo "$as_me:$LINENO: checking $ac_header usability" >&5
33236echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33237cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33238#line $LINENO "configure"
f93ca9fd
VS
33239/* confdefs.h. */
33240_ACEOF
33241cat confdefs.h >>conftest.$ac_ext
33242cat >>conftest.$ac_ext <<_ACEOF
33243/* end confdefs.h. */
33244$ac_includes_default
33245#include <$ac_header>
33246_ACEOF
33247rm -f conftest.$ac_objext
33248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 33249 (eval $ac_compile) 2>&5
f93ca9fd 33250 ac_status=$?
f93ca9fd
VS
33251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33252 (exit $ac_status); } &&
789c5f4a 33253 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
33254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33255 (eval $ac_try) 2>&5
33256 ac_status=$?
33257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33258 (exit $ac_status); }; }; then
33259 ac_header_compiler=yes
33260else
33261 echo "$as_me: failed program was:" >&5
33262sed 's/^/| /' conftest.$ac_ext >&5
33263
33264ac_header_compiler=no
33265fi
789c5f4a 33266rm -f conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
33267echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33268echo "${ECHO_T}$ac_header_compiler" >&6
33269
33270# Is the header present?
33271echo "$as_me:$LINENO: checking $ac_header presence" >&5
33272echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33273cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33274#line $LINENO "configure"
f93ca9fd
VS
33275/* confdefs.h. */
33276_ACEOF
33277cat confdefs.h >>conftest.$ac_ext
33278cat >>conftest.$ac_ext <<_ACEOF
33279/* end confdefs.h. */
33280#include <$ac_header>
33281_ACEOF
33282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33284 ac_status=$?
33285 grep -v '^ *+' conftest.er1 >conftest.err
33286 rm -f conftest.er1
33287 cat conftest.err >&5
33288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289 (exit $ac_status); } >/dev/null; then
33290 if test -s conftest.err; then
33291 ac_cpp_err=$ac_c_preproc_warn_flag
f93ca9fd
VS
33292 else
33293 ac_cpp_err=
33294 fi
33295else
33296 ac_cpp_err=yes
33297fi
33298if test -z "$ac_cpp_err"; then
33299 ac_header_preproc=yes
33300else
33301 echo "$as_me: failed program was:" >&5
33302sed 's/^/| /' conftest.$ac_ext >&5
33303
33304 ac_header_preproc=no
33305fi
33306rm -f conftest.err conftest.$ac_ext
33307echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33308echo "${ECHO_T}$ac_header_preproc" >&6
33309
33310# So? What about this header?
789c5f4a
VZ
33311case $ac_header_compiler:$ac_header_preproc in
33312 yes:no )
f93ca9fd
VS
33313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33314echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
33315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33316echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33317 (
33318 cat <<\_ASBOX
33319## ------------------------------------ ##
33320## Report this to bug-autoconf@gnu.org. ##
33321## ------------------------------------ ##
33322_ASBOX
33323 ) |
33324 sed "s/^/$as_me: WARNING: /" >&2
f93ca9fd 33325 ;;
789c5f4a 33326 no:yes )
f93ca9fd
VS
33327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33328echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
33329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33330echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
f93ca9fd
VS
33331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33332echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f93ca9fd
VS
33333 (
33334 cat <<\_ASBOX
789c5f4a
VZ
33335## ------------------------------------ ##
33336## Report this to bug-autoconf@gnu.org. ##
33337## ------------------------------------ ##
f93ca9fd
VS
33338_ASBOX
33339 ) |
33340 sed "s/^/$as_me: WARNING: /" >&2
33341 ;;
33342esac
33343echo "$as_me:$LINENO: checking for $ac_header" >&5
33344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33345if eval "test \"\${$as_ac_Header+set}\" = set"; then
33346 echo $ECHO_N "(cached) $ECHO_C" >&6
33347else
789c5f4a 33348 eval "$as_ac_Header=$ac_header_preproc"
f93ca9fd
VS
33349fi
33350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33352
33353fi
33354if test `eval echo '${'$as_ac_Header'}'` = yes; then
33355 cat >>confdefs.h <<_ACEOF
33356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33357_ACEOF
33358
33359fi
33360
33361done
33362
33363 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
33364 wxUSE_JOYSTICK=no
33365 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
33366echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
33367 fi
33368 fi
33369 fi
33370
33371 if test "$wxUSE_JOYSTICK" = "yes"; then
33372 cat >>confdefs.h <<\_ACEOF
33373#define wxUSE_JOYSTICK 1
33374_ACEOF
33375
33376 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
33377 fi
33378fi
33379
33380
33381
8284b0c5 33382
1e6feb95 33383if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 33384 cat >>confdefs.h <<\_ACEOF
1e6feb95 33385#define wxUSE_FONTMAP 1
e6cc62c6 33386_ACEOF
1e6feb95
VZ
33387
33388fi
33389
10f2d63a 33390if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 33391 cat >>confdefs.h <<\_ACEOF
10f2d63a 33392#define wxUSE_UNICODE 1
e6cc62c6 33393_ACEOF
10f2d63a 33394
8284b0c5 33395
eb854003 33396 if test "$USE_WIN32" != 1; then
bbc3925a
VS
33397 wxUSE_UNICODE_MSLU=no
33398 fi
a72a4bfa 33399
eb854003 33400 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
33401 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
33402echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
33403if test "${ac_cv_lib_unicows_main+set}" = set; then
33404 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 33405else
e6cc62c6 33406 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 33407LIBS="-lunicows $LIBS"
e6cc62c6 33408cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33409#line $LINENO "configure"
e6cc62c6
VS
33410/* confdefs.h. */
33411_ACEOF
33412cat confdefs.h >>conftest.$ac_ext
33413cat >>conftest.$ac_ext <<_ACEOF
33414/* end confdefs.h. */
a72a4bfa 33415
8284b0c5 33416
e6cc62c6
VS
33417int
33418main ()
33419{
33420main ();
33421 ;
33422 return 0;
33423}
33424_ACEOF
33425rm -f conftest.$ac_objext conftest$ac_exeext
33426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 33427 (eval $ac_link) 2>&5
e6cc62c6
VS
33428 ac_status=$?
33429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430 (exit $ac_status); } &&
789c5f4a 33431 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33433 (eval $ac_try) 2>&5
33434 ac_status=$?
33435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436 (exit $ac_status); }; }; then
33437 ac_cv_lib_unicows_main=yes
33438else
33439 echo "$as_me: failed program was:" >&5
33440sed 's/^/| /' conftest.$ac_ext >&5
33441
33442ac_cv_lib_unicows_main=no
33443fi
789c5f4a 33444rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33445LIBS=$ac_check_lib_save_LIBS
33446fi
33447echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
33448echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
33449if test $ac_cv_lib_unicows_main = yes; then
33450
33451 cat >>confdefs.h <<\_ACEOF
a72a4bfa 33452#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
33453_ACEOF
33454
a72a4bfa 33455
a72a4bfa 33456else
a72a4bfa 33457
e6cc62c6
VS
33458 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
33459 Applications will only run on Windows NT/2000/XP!" >&5
33460echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
33461 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 33462 wxUSE_UNICODE_MSLU=no
e6cc62c6 33463
a72a4bfa
VS
33464fi
33465
33466 fi
10f2d63a
VZ
33467fi
33468
10f2d63a 33469if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 33470 cat >>confdefs.h <<\_ACEOF
10f2d63a 33471#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 33472_ACEOF
10f2d63a
VZ
33473
33474fi
33475
8284b0c5 33476
10f2d63a 33477if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 33478 cat >>confdefs.h <<\_ACEOF
10f2d63a 33479#define wxUSE_POSTSCRIPT 1
e6cc62c6 33480_ACEOF
10f2d63a
VZ
33481
33482fi
33483
e6cc62c6 33484cat >>confdefs.h <<\_ACEOF
10f2d63a 33485#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 33486_ACEOF
10f2d63a 33487
8284b0c5 33488
e6cc62c6 33489cat >>confdefs.h <<\_ACEOF
10f2d63a 33490#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 33491_ACEOF
10f2d63a 33492
8284b0c5
MB
33493
33494
10f2d63a 33495if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 33496 cat >>confdefs.h <<\_ACEOF
10f2d63a 33497#define wxUSE_CONSTRAINTS 1
e6cc62c6 33498_ACEOF
10f2d63a
VZ
33499
33500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
33501fi
33502
3879ecda 33503if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 33504 cat >>confdefs.h <<\_ACEOF
10f2d63a 33505#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 33506_ACEOF
10f2d63a 33507
1772d20c 33508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
33509fi
33510
33511if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 33512 cat >>confdefs.h <<\_ACEOF
10f2d63a 33513#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 33514_ACEOF
10f2d63a
VZ
33515
33516 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
33517 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
33518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
33519 fi
33520fi
33521
33522if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 33523 cat >>confdefs.h <<\_ACEOF
10f2d63a 33524#define wxUSE_HELP 1
e6cc62c6 33525_ACEOF
10f2d63a
VZ
33526
33527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 33528
77e13408 33529 if test "$wxUSE_MSW" = 1; then
031d8228 33530 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 33531 cat >>confdefs.h <<\_ACEOF
29fd3c0c 33532#define wxUSE_MS_HTML_HELP 1
e6cc62c6 33533_ACEOF
29fd3c0c 33534
3e44f09d 33535 fi
3379ed37 33536 fi
031d8228
VS
33537
33538 if test "$wxUSE_WXHTML_HELP" = "yes"; then
33539 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 33540 cat >>confdefs.h <<\_ACEOF
031d8228 33541#define wxUSE_WXHTML_HELP 1
e6cc62c6 33542_ACEOF
031d8228
VS
33543
33544 else
e6cc62c6
VS
33545 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
33546echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
33547 wxUSE_WXHTML_HELP=no
33548 fi
33549 fi
10f2d63a
VZ
33550fi
33551
33552if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
33553 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33554 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
33555echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 33556 else
e6cc62c6 33557 cat >>confdefs.h <<\_ACEOF
10f2d63a 33558#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 33559_ACEOF
10f2d63a
VZ
33560
33561 fi
33562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
33563fi
33564
e6cc62c6
VS
33565if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
33566 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
33567echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
33568 { (exit 1); exit 1; }; }
33569fi
33570
33571
f95e4495 33572if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
e6cc62c6
VS
33573 -o "$wxUSE_CLIPBOARD" = "yes" \
33574 -o "$wxUSE_OLE" = "yes" \
33575 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
33576
33577for ac_header in ole2.h
33578do
33579as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33580if eval "test \"\${$as_ac_Header+set}\" = set"; then
33581 echo "$as_me:$LINENO: checking for $ac_header" >&5
33582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33583if eval "test \"\${$as_ac_Header+set}\" = set"; then
33584 echo $ECHO_N "(cached) $ECHO_C" >&6
33585fi
33586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33588else
33589 # Is the header compilable?
33590echo "$as_me:$LINENO: checking $ac_header usability" >&5
33591echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33592cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33593#line $LINENO "configure"
e6cc62c6
VS
33594/* confdefs.h. */
33595_ACEOF
33596cat confdefs.h >>conftest.$ac_ext
33597cat >>conftest.$ac_ext <<_ACEOF
33598/* end confdefs.h. */
33599$ac_includes_default
33600#include <$ac_header>
33601_ACEOF
33602rm -f conftest.$ac_objext
33603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 33604 (eval $ac_compile) 2>&5
e6cc62c6
VS
33605 ac_status=$?
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); } &&
789c5f4a 33608 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33610 (eval $ac_try) 2>&5
33611 ac_status=$?
33612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33613 (exit $ac_status); }; }; then
33614 ac_header_compiler=yes
33615else
33616 echo "$as_me: failed program was:" >&5
33617sed 's/^/| /' conftest.$ac_ext >&5
33618
33619ac_header_compiler=no
33620fi
789c5f4a 33621rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
33622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33623echo "${ECHO_T}$ac_header_compiler" >&6
33624
33625# Is the header present?
33626echo "$as_me:$LINENO: checking $ac_header presence" >&5
33627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33628cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33629#line $LINENO "configure"
e6cc62c6
VS
33630/* confdefs.h. */
33631_ACEOF
33632cat confdefs.h >>conftest.$ac_ext
33633cat >>conftest.$ac_ext <<_ACEOF
33634/* end confdefs.h. */
33635#include <$ac_header>
33636_ACEOF
33637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33639 ac_status=$?
33640 grep -v '^ *+' conftest.er1 >conftest.err
33641 rm -f conftest.er1
33642 cat conftest.err >&5
33643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33644 (exit $ac_status); } >/dev/null; then
33645 if test -s conftest.err; then
33646 ac_cpp_err=$ac_c_preproc_warn_flag
33647 else
33648 ac_cpp_err=
33649 fi
33650else
33651 ac_cpp_err=yes
33652fi
33653if test -z "$ac_cpp_err"; then
33654 ac_header_preproc=yes
33655else
33656 echo "$as_me: failed program was:" >&5
33657sed 's/^/| /' conftest.$ac_ext >&5
33658
33659 ac_header_preproc=no
33660fi
33661rm -f conftest.err conftest.$ac_ext
33662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33663echo "${ECHO_T}$ac_header_preproc" >&6
33664
33665# So? What about this header?
789c5f4a
VZ
33666case $ac_header_compiler:$ac_header_preproc in
33667 yes:no )
e6cc62c6
VS
33668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
33670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33671echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33672 (
33673 cat <<\_ASBOX
33674## ------------------------------------ ##
33675## Report this to bug-autoconf@gnu.org. ##
33676## ------------------------------------ ##
33677_ASBOX
33678 ) |
33679 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 33680 ;;
789c5f4a 33681 no:yes )
e6cc62c6
VS
33682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33683echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
33684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33685echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
33686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33688 (
33689 cat <<\_ASBOX
789c5f4a
VZ
33690## ------------------------------------ ##
33691## Report this to bug-autoconf@gnu.org. ##
33692## ------------------------------------ ##
e6cc62c6
VS
33693_ASBOX
33694 ) |
33695 sed "s/^/$as_me: WARNING: /" >&2
33696 ;;
33697esac
33698echo "$as_me:$LINENO: checking for $ac_header" >&5
33699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33700if eval "test \"\${$as_ac_Header+set}\" = set"; then
33701 echo $ECHO_N "(cached) $ECHO_C" >&6
33702else
789c5f4a 33703 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
33704fi
33705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33707
10f2d63a 33708fi
e6cc62c6
VS
33709if test `eval echo '${'$as_ac_Header'}'` = yes; then
33710 cat >>confdefs.h <<_ACEOF
33711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33712_ACEOF
10f2d63a 33713
10f2d63a 33714fi
e6cc62c6 33715
10f2d63a
VZ
33716done
33717
8284b0c5 33718
2b9bdf71
VZ
33719 if test "$ac_cv_header_ole2_h" = "yes" ; then
33720 if test "$GCC" = yes ; then
8284b0c5
MB
33721
33722
e6cc62c6
VS
33723 ac_ext=cc
33724ac_cpp='$CXXCPP $CPPFLAGS'
33725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33728
33729
33730 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
33731echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
33732 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33733#line $LINENO "configure"
e6cc62c6
VS
33734/* confdefs.h. */
33735_ACEOF
33736cat confdefs.h >>conftest.$ac_ext
33737cat >>conftest.$ac_ext <<_ACEOF
33738/* end confdefs.h. */
8284b0c5
MB
33739#include <windows.h>
33740 #include <ole2.h>
e6cc62c6
VS
33741int
33742main ()
33743{
8284b0c5 33744
e6cc62c6
VS
33745 ;
33746 return 0;
33747}
33748_ACEOF
33749rm -f conftest.$ac_objext
33750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 33751 (eval $ac_compile) 2>&5
e6cc62c6
VS
33752 ac_status=$?
33753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754 (exit $ac_status); } &&
789c5f4a 33755 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33757 (eval $ac_try) 2>&5
33758 ac_status=$?
33759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33760 (exit $ac_status); }; }; then
33761 echo "$as_me:$LINENO: result: no" >&5
33762echo "${ECHO_T}no" >&6
33763else
33764 echo "$as_me: failed program was:" >&5
33765sed 's/^/| /' conftest.$ac_ext >&5
33766
33767echo "$as_me:$LINENO: result: yes" >&5
33768echo "${ECHO_T}yes" >&6
8284b0c5
MB
33769 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
33770fi
789c5f4a 33771rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 33772 ac_ext=c
8284b0c5 33773ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
33774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33776ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 33777
2b9bdf71 33778 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 33779 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
f95e4495
VS
33780 if test "$wxUSE_OLE" = "yes" ; then
33781 cat >>confdefs.h <<\_ACEOF
4f11a343 33782#define wxUSE_OLE 1
e6cc62c6 33783_ACEOF
4f11a343 33784
f95e4495 33785 fi
2b9bdf71
VZ
33786 fi
33787
f95e4495
VS
33788 if test "$wxUSE_DATAOBJ" = "yes" ; then
33789 cat >>confdefs.h <<\_ACEOF
2b9bdf71 33790#define wxUSE_DATAOBJ 1
e6cc62c6 33791_ACEOF
2b9bdf71 33792
f95e4495 33793 fi
2b9bdf71 33794 else
e6cc62c6
VS
33795 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
33796echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
33797
33798 wxUSE_CLIPBOARD=no
33799 wxUSE_DRAG_AND_DROP=no
33800 wxUSE_DATAOBJ=no
3bce6687
JS
33801 wxUSE_OLE=no
33802 fi
33803
33804 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 33805 cat >>confdefs.h <<\_ACEOF
3bce6687 33806#define wxUSE_METAFILE 1
e6cc62c6 33807_ACEOF
3bce6687
JS
33808
33809
e6cc62c6 33810 cat >>confdefs.h <<\_ACEOF
3bce6687 33811#define wxUSE_ENH_METAFILE 1
e6cc62c6 33812_ACEOF
3bce6687
JS
33813
33814 fi
33815fi
33816
2b9bdf71
VZ
33817if test "$wxUSE_IPC" = "yes"; then
33818 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
33819 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
33820echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
33821 fi
33822
e6cc62c6 33823 cat >>confdefs.h <<\_ACEOF
2b9bdf71 33824#define wxUSE_IPC 1
e6cc62c6 33825_ACEOF
2b9bdf71
VZ
33826
33827fi
33828
33829if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 33830 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
33831 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
33832echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
33833 wxUSE_CLIPBOARD=no
33834 fi
33835
33836 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 33837 cat >>confdefs.h <<\_ACEOF
2b9bdf71 33838#define wxUSE_CLIPBOARD 1
e6cc62c6 33839_ACEOF
2b9bdf71 33840
8284b0c5 33841
e6cc62c6 33842 cat >>confdefs.h <<\_ACEOF
673f4220 33843#define wxUSE_DATAOBJ 1
e6cc62c6 33844_ACEOF
673f4220 33845
6c657b52 33846 fi
2b9bdf71
VZ
33847fi
33848
33849if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
33850 if test "$wxUSE_GTK" = 1; then
33851 if test "$WXGTK12" != 1; then
e6cc62c6
VS
33852 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
33853echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
33854 wxUSE_DRAG_AND_DROP=no
33855 fi
33856 fi
33857
2b9bdf71 33858 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33859 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
33860echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
33861 wxUSE_DRAG_AND_DROP=no
33862 fi
33863
f79bd02d 33864 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
33865 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
33866echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
33867 wxUSE_DRAG_AND_DROP=no
33868 fi
33869
6c657b52 33870 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
33871 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
33872echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
33873 wxUSE_DRAG_AND_DROP=no
33874 fi
33875
10f2d63a 33876 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 33877 cat >>confdefs.h <<\_ACEOF
10f2d63a 33878#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 33879_ACEOF
10f2d63a
VZ
33880
33881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
33882 fi
33883
33884fi
33885
33886if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 33887 cat >>confdefs.h <<\_ACEOF
10f2d63a 33888#define wxUSE_SPLINES 1
e6cc62c6 33889_ACEOF
10f2d63a
VZ
33890
33891fi
33892
8284b0c5 33893
1e6feb95
VZ
33894USES_CONTROLS=0
33895if test "$wxUSE_CONTROLS" = "yes"; then
33896 USES_CONTROLS=1
33897fi
33898
10f2d63a 33899if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 33900 cat >>confdefs.h <<\_ACEOF
10f2d63a 33901#define wxUSE_ACCEL 1
e6cc62c6 33902_ACEOF
10f2d63a 33903
1e6feb95
VZ
33904 USES_CONTROLS=1
33905fi
33906
33907if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 33908 cat >>confdefs.h <<\_ACEOF
1e6feb95 33909#define wxUSE_BUTTON 1
e6cc62c6 33910_ACEOF
1e6feb95
VZ
33911
33912 USES_CONTROLS=1
33913fi
33914
33915if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 33916 cat >>confdefs.h <<\_ACEOF
1e6feb95 33917#define wxUSE_BMPBUTTON 1
e6cc62c6 33918_ACEOF
1e6feb95
VZ
33919
33920 USES_CONTROLS=1
33921fi
33922
33923if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 33924 cat >>confdefs.h <<\_ACEOF
1e6feb95 33925#define wxUSE_CALENDARCTRL 1
e6cc62c6 33926_ACEOF
1e6feb95
VZ
33927
33928 USES_CONTROLS=1
33929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
33930fi
33931
33932if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 33933 cat >>confdefs.h <<\_ACEOF
10f2d63a 33934#define wxUSE_CARET 1
e6cc62c6 33935_ACEOF
10f2d63a 33936
1e6feb95 33937 USES_CONTROLS=1
10f2d63a
VZ
33938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
33939fi
33940
33941if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 33942 cat >>confdefs.h <<\_ACEOF
10f2d63a 33943#define wxUSE_COMBOBOX 1
e6cc62c6 33944_ACEOF
10f2d63a 33945
1e6feb95 33946 USES_CONTROLS=1
10f2d63a
VZ
33947fi
33948
33949if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 33950 cat >>confdefs.h <<\_ACEOF
10f2d63a 33951#define wxUSE_CHOICE 1
e6cc62c6 33952_ACEOF
10f2d63a 33953
1e6feb95 33954 USES_CONTROLS=1
10f2d63a
VZ
33955fi
33956
33957if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 33958 cat >>confdefs.h <<\_ACEOF
10f2d63a 33959#define wxUSE_CHECKBOX 1
e6cc62c6 33960_ACEOF
10f2d63a 33961
1e6feb95 33962 USES_CONTROLS=1
10f2d63a
VZ
33963fi
33964
33965if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 33966 cat >>confdefs.h <<\_ACEOF
10f2d63a 33967#define wxUSE_CHECKLISTBOX 1
e6cc62c6 33968_ACEOF
10f2d63a 33969
1e6feb95 33970 USES_CONTROLS=1
10f2d63a
VZ
33971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
33972fi
33973
da494b40 33974if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 33975 cat >>confdefs.h <<\_ACEOF
da494b40 33976#define wxUSE_DISPLAY 1
e6cc62c6 33977_ACEOF
da494b40
MB
33978
33979 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
33980fi
33981
10f2d63a 33982if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 33983 cat >>confdefs.h <<\_ACEOF
10f2d63a 33984#define wxUSE_GAUGE 1
e6cc62c6 33985_ACEOF
10f2d63a 33986
1e6feb95 33987 USES_CONTROLS=1
10f2d63a
VZ
33988fi
33989
d6a55c4b 33990if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 33991 cat >>confdefs.h <<\_ACEOF
d6a55c4b 33992#define wxUSE_GRID 1
e6cc62c6 33993_ACEOF
10f2d63a 33994
1e6feb95 33995 USES_CONTROLS=1
d6a55c4b 33996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
33997fi
33998
33999if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 34000 cat >>confdefs.h <<\_ACEOF
10f2d63a 34001#define wxUSE_IMAGLIST 1
e6cc62c6 34002_ACEOF
10f2d63a
VZ
34003
34004fi
34005
0e012a93
VZ
34006if test "$wxUSE_LISTBOOK" = "yes"; then
34007 cat >>confdefs.h <<\_ACEOF
34008#define wxUSE_LISTBOOK 1
34009_ACEOF
34010
34011 USES_CONTROLS=1
34012fi
34013
10f2d63a 34014if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 34015 cat >>confdefs.h <<\_ACEOF
10f2d63a 34016#define wxUSE_LISTBOX 1
e6cc62c6 34017_ACEOF
10f2d63a 34018
1e6feb95 34019 USES_CONTROLS=1
10f2d63a
VZ
34020fi
34021
34022if test "$wxUSE_LISTCTRL" = "yes"; then
34023 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 34024 cat >>confdefs.h <<\_ACEOF
10f2d63a 34025#define wxUSE_LISTCTRL 1
e6cc62c6 34026_ACEOF
10f2d63a 34027
1e6feb95 34028 USES_CONTROLS=1
10f2d63a
VZ
34029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
34030 else
e6cc62c6
VS
34031 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
34032echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
34033 fi
34034fi
34035
34036if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 34037 cat >>confdefs.h <<\_ACEOF
10f2d63a 34038#define wxUSE_NOTEBOOK 1
e6cc62c6 34039_ACEOF
10f2d63a 34040
1e6feb95 34041 USES_CONTROLS=1
10f2d63a
VZ
34042 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
34043fi
34044
24176f2c 34045
10f2d63a 34046if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 34047 cat >>confdefs.h <<\_ACEOF
10f2d63a 34048#define wxUSE_RADIOBOX 1
e6cc62c6 34049_ACEOF
10f2d63a 34050
1e6feb95 34051 USES_CONTROLS=1
10f2d63a
VZ
34052fi
34053
34054if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 34055 cat >>confdefs.h <<\_ACEOF
10f2d63a 34056#define wxUSE_RADIOBTN 1
e6cc62c6 34057_ACEOF
10f2d63a 34058
1e6feb95 34059 USES_CONTROLS=1
10f2d63a
VZ
34060fi
34061
34062if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 34063 cat >>confdefs.h <<\_ACEOF
10f2d63a 34064#define wxUSE_SASH 1
e6cc62c6 34065_ACEOF
10f2d63a
VZ
34066
34067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
34068fi
34069
34070if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 34071 cat >>confdefs.h <<\_ACEOF
10f2d63a 34072#define wxUSE_SCROLLBAR 1
e6cc62c6 34073_ACEOF
10f2d63a 34074
1e6feb95 34075 USES_CONTROLS=1
741a9306 34076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
34077fi
34078
34079if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 34080 cat >>confdefs.h <<\_ACEOF
10f2d63a 34081#define wxUSE_SLIDER 1
e6cc62c6 34082_ACEOF
10f2d63a 34083
1e6feb95 34084 USES_CONTROLS=1
10f2d63a
VZ
34085fi
34086
34087if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 34088 cat >>confdefs.h <<\_ACEOF
10f2d63a 34089#define wxUSE_SPINBTN 1
e6cc62c6 34090_ACEOF
10f2d63a 34091
1e6feb95 34092 USES_CONTROLS=1
10f2d63a
VZ
34093fi
34094
56cfaa52 34095if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 34096 cat >>confdefs.h <<\_ACEOF
56cfaa52 34097#define wxUSE_SPINCTRL 1
e6cc62c6 34098_ACEOF
56cfaa52 34099
1e6feb95 34100 USES_CONTROLS=1
56cfaa52
RR
34101fi
34102
10f2d63a 34103if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 34104 cat >>confdefs.h <<\_ACEOF
10f2d63a 34105#define wxUSE_SPLITTER 1
e6cc62c6 34106_ACEOF
10f2d63a
VZ
34107
34108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
34109fi
34110
34111if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 34112 cat >>confdefs.h <<\_ACEOF
10f2d63a 34113#define wxUSE_STATBMP 1
e6cc62c6 34114_ACEOF
10f2d63a 34115
1e6feb95 34116 USES_CONTROLS=1
10f2d63a
VZ
34117fi
34118
34119if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 34120 cat >>confdefs.h <<\_ACEOF
10f2d63a 34121#define wxUSE_STATBOX 1
e6cc62c6 34122_ACEOF
10f2d63a 34123
1e6feb95
VZ
34124 USES_CONTROLS=1
34125fi
34126
34127if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 34128 cat >>confdefs.h <<\_ACEOF
1e6feb95 34129#define wxUSE_STATTEXT 1
e6cc62c6 34130_ACEOF
1e6feb95
VZ
34131
34132 USES_CONTROLS=1
10f2d63a
VZ
34133fi
34134
34135if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 34136 cat >>confdefs.h <<\_ACEOF
10f2d63a 34137#define wxUSE_STATLINE 1
e6cc62c6 34138_ACEOF
10f2d63a 34139
89e6bf6d 34140 USES_CONTROLS=1
10f2d63a
VZ
34141fi
34142
34143if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 34144 cat >>confdefs.h <<\_ACEOF
10f2d63a 34145#define wxUSE_STATUSBAR 1
e6cc62c6 34146_ACEOF
10f2d63a 34147
1e6feb95 34148 USES_CONTROLS=1
698dcdb6 34149
2286341c 34150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
34151fi
34152
34153if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 34154 cat >>confdefs.h <<\_ACEOF
10f2d63a 34155#define wxUSE_TAB_DIALOG 1
e6cc62c6 34156_ACEOF
10f2d63a
VZ
34157
34158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
34159fi
34160
1e6feb95 34161if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 34162 cat >>confdefs.h <<\_ACEOF
1e6feb95 34163#define wxUSE_TEXTCTRL 1
e6cc62c6 34164_ACEOF
1e6feb95
VZ
34165
34166 USES_CONTROLS=1
34167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
34168fi
34169
1db8dc4a 34170if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 34171 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
34172 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
34173echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
34174 wxUSE_TOGGLEBTN=no
34175 fi
34176 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
34177 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
34178echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
34179 wxUSE_TOGGLEBTN=no
34180 fi
34181
34182 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 34183 cat >>confdefs.h <<\_ACEOF
1db8dc4a 34184#define wxUSE_TOGGLEBTN 1
e6cc62c6 34185_ACEOF
1db8dc4a 34186
1e6feb95 34187 USES_CONTROLS=1
a45d7ab7 34188 fi
1db8dc4a
VZ
34189fi
34190
360d6699 34191if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 34192 cat >>confdefs.h <<\_ACEOF
360d6699 34193#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 34194_ACEOF
360d6699
VZ
34195
34196 wxUSE_TOOLBAR="yes"
1e6feb95 34197 USES_CONTROLS=1
360d6699
VZ
34198fi
34199
10f2d63a 34200if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 34201 cat >>confdefs.h <<\_ACEOF
10f2d63a 34202#define wxUSE_TOOLBAR 1
e6cc62c6 34203_ACEOF
10f2d63a 34204
1e6feb95 34205 USES_CONTROLS=1
698dcdb6 34206
360d6699
VZ
34207 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
34208 wxUSE_TOOLBAR_NATIVE="yes"
34209 fi
34210
1e6feb95 34211 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 34212 cat >>confdefs.h <<\_ACEOF
360d6699 34213#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 34214_ACEOF
360d6699 34215
1e6feb95
VZ
34216 USES_CONTROLS=1
34217 fi
34218
34219 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
34220fi
34221
10f2d63a
VZ
34222if test "$wxUSE_TOOLTIPS" = "yes"; then
34223 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
34224 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
34225echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 34226 else
89e6bf6d 34227 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
34228 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
34229echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 34230 else
e6cc62c6 34231 cat >>confdefs.h <<\_ACEOF
10f2d63a 34232#define wxUSE_TOOLTIPS 1
e6cc62c6 34233_ACEOF
10f2d63a
VZ
34234
34235 fi
34236 fi
34237fi
34238
34239if test "$wxUSE_TREECTRL" = "yes"; then
34240 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 34241 cat >>confdefs.h <<\_ACEOF
10f2d63a 34242#define wxUSE_TREECTRL 1
e6cc62c6 34243_ACEOF
10f2d63a 34244
1e6feb95 34245 USES_CONTROLS=1
10f2d63a
VZ
34246 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
34247 else
e6cc62c6
VS
34248 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
34249echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
34250 fi
34251fi
34252
9f41d601 34253if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 34254 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
34255 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
34256echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 34257 else
833a51f6
MB
34258 if test "$wxUSE_PM" = 1; then
34259 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
e6cc62c6 34260echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
833a51f6
MB
34261 else
34262 cat >>confdefs.h <<\_ACEOF
9f41d601 34263#define wxUSE_POPUPWIN 1
e6cc62c6 34264_ACEOF
9f41d601 34265
8284b0c5 34266
833a51f6 34267 USES_CONTROLS=1
485cf710 34268 fi
6abe4b65 34269 fi
9f41d601
RR
34270fi
34271
dd964dcc 34272if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 34273 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
34274 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
34275echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 34276 else
e6cc62c6 34277 cat >>confdefs.h <<\_ACEOF
dd964dcc 34278#define wxUSE_TIPWINDOW 1
e6cc62c6 34279_ACEOF
dd964dcc 34280
3c011993 34281 fi
dd964dcc
VZ
34282fi
34283
1e6feb95 34284if test "$USES_CONTROLS" = 1; then
e6cc62c6 34285 cat >>confdefs.h <<\_ACEOF
1e6feb95 34286#define wxUSE_CONTROLS 1
e6cc62c6 34287_ACEOF
10f2d63a 34288
10f2d63a
VZ
34289fi
34290
8284b0c5 34291
e46d2a18
VS
34292if test "$wxUSE_ACCESSIBILITY" = "yes"; then
34293 cat >>confdefs.h <<\_ACEOF
34294#define wxUSE_ACCESSIBILITY 1
34295_ACEOF
34296
34297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
34298fi
1e6feb95 34299
24fd6d87 34300if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 34301 cat >>confdefs.h <<\_ACEOF
24fd6d87 34302#define wxUSE_DRAGIMAGE 1
e6cc62c6 34303_ACEOF
24fd6d87
VZ
34304
34305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
34306fi
34307
e46d2a18 34308if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 34309 cat >>confdefs.h <<\_ACEOF
e46d2a18 34310#define wxUSE_EXCEPTIONS 1
e6cc62c6 34311_ACEOF
7bb2947d 34312
e46d2a18
VS
34313fi
34314
34315USE_HTML=0
34316if test "$wxUSE_HTML" = "yes"; then
34317 cat >>confdefs.h <<\_ACEOF
34318#define wxUSE_HTML 1
34319_ACEOF
34320
34321 USE_HTML=1
34322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
34323fi
34324
1e6feb95 34325if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 34326 cat >>confdefs.h <<\_ACEOF
1e6feb95 34327#define wxUSE_MENUS 1
e6cc62c6 34328_ACEOF
10f2d63a 34329
1e6feb95 34330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
34331fi
34332
1e6feb95 34333if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 34334 cat >>confdefs.h <<\_ACEOF
1e6feb95 34335#define wxUSE_METAFILE 1
e6cc62c6 34336_ACEOF
10f2d63a 34337
10f2d63a
VZ
34338fi
34339
1e6feb95 34340if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 34341 cat >>confdefs.h <<\_ACEOF
1e6feb95 34342#define wxUSE_MIMETYPE 1
e6cc62c6 34343_ACEOF
10f2d63a 34344
10f2d63a
VZ
34345fi
34346
34347if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 34348 cat >>confdefs.h <<\_ACEOF
10f2d63a 34349#define wxUSE_MINIFRAME 1
e6cc62c6 34350_ACEOF
10f2d63a
VZ
34351
34352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
34353fi
34354
e46d2a18 34355if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 34356 cat >>confdefs.h <<\_ACEOF
e46d2a18 34357#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 34358_ACEOF
10f2d63a 34359
e46d2a18
VS
34360 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
34361 "$TOOLKIT" = "MOTIF"; then
34362 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
34363 fi
10f2d63a
VZ
34364fi
34365
e46d2a18 34366
10f2d63a 34367if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 34368 cat >>confdefs.h <<\_ACEOF
1e487827 34369#define wxUSE_VALIDATORS 1
e6cc62c6 34370_ACEOF
703e0a69 34371
698dcdb6
VZ
34372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
34373fi
34374
edae8572 34375if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 34376 cat >>confdefs.h <<\_ACEOF
edae8572 34377#define wxUSE_PALETTE 1
e6cc62c6 34378_ACEOF
edae8572
VZ
34379
34380fi
34381
e46d2a18
VS
34382if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
34383 LIBS=" -lunicows $LIBS"
34384fi
34385
34386
698dcdb6 34387if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 34388 cat >>confdefs.h <<\_ACEOF
698dcdb6 34389#define wxUSE_IMAGE 1
e6cc62c6 34390_ACEOF
698dcdb6 34391
698dcdb6 34392
e46d2a18
VS
34393 if test "$wxUSE_GIF" = "yes" ; then
34394 cat >>confdefs.h <<\_ACEOF
698dcdb6 34395#define wxUSE_GIF 1
e6cc62c6 34396_ACEOF
698dcdb6 34397
e46d2a18 34398 fi
698dcdb6 34399
e46d2a18
VS
34400 if test "$wxUSE_PCX" = "yes" ; then
34401 cat >>confdefs.h <<\_ACEOF
698dcdb6 34402#define wxUSE_PCX 1
e6cc62c6 34403_ACEOF
698dcdb6 34404
e46d2a18 34405 fi
698dcdb6 34406
e46d2a18
VS
34407 if test "$wxUSE_IFF" = "yes" ; then
34408 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 34409#define wxUSE_IFF 1
e6cc62c6 34410_ACEOF
4b6b4dfc 34411
e46d2a18 34412 fi
4b6b4dfc 34413
e46d2a18
VS
34414 if test "$wxUSE_PNM" = "yes" ; then
34415 cat >>confdefs.h <<\_ACEOF
698dcdb6 34416#define wxUSE_PNM 1
e6cc62c6 34417_ACEOF
698dcdb6 34418
e46d2a18 34419 fi
698dcdb6 34420
e46d2a18
VS
34421 if test "$wxUSE_XPM" = "yes" ; then
34422 cat >>confdefs.h <<\_ACEOF
698dcdb6 34423#define wxUSE_XPM 1
e6cc62c6 34424_ACEOF
698dcdb6 34425
e46d2a18 34426 fi
698dcdb6 34427
e46d2a18
VS
34428 if test "$wxUSE_ICO_CUR" = "yes" ; then
34429 cat >>confdefs.h <<\_ACEOF
658974ae 34430#define wxUSE_ICO_CUR 1
e6cc62c6 34431_ACEOF
658974ae 34432
e46d2a18 34433 fi
a72a4bfa
VS
34434fi
34435
8284b0c5 34436
1e6feb95 34437if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 34438 cat >>confdefs.h <<\_ACEOF
1e6feb95 34439#define wxUSE_CHOICEDLG 1
e6cc62c6 34440_ACEOF
1e6feb95
VZ
34441
34442fi
34443
34444if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 34445 cat >>confdefs.h <<\_ACEOF
1e6feb95 34446#define wxUSE_COLOURDLG 1
e6cc62c6 34447_ACEOF
1e6feb95
VZ
34448
34449fi
34450
34451if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 34452 cat >>confdefs.h <<\_ACEOF
1e6feb95 34453#define wxUSE_FILEDLG 1
e6cc62c6 34454_ACEOF
1e6feb95
VZ
34455
34456fi
34457
8db37e06 34458if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 34459 cat >>confdefs.h <<\_ACEOF
8db37e06 34460#define wxUSE_FINDREPLDLG 1
e6cc62c6 34461_ACEOF
8db37e06
VZ
34462
34463fi
34464
1e6feb95 34465if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 34466 cat >>confdefs.h <<\_ACEOF
1e6feb95 34467#define wxUSE_FONTDLG 1
e6cc62c6 34468_ACEOF
1e6feb95
VZ
34469
34470fi
34471
34472if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 34473 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
34474 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
34475echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 34476 else
e6cc62c6 34477 cat >>confdefs.h <<\_ACEOF
1e6feb95 34478#define wxUSE_DIRDLG 1
e6cc62c6 34479_ACEOF
1e6feb95 34480
1e6feb95
VZ
34481 fi
34482fi
34483
34484if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 34485 cat >>confdefs.h <<\_ACEOF
1e6feb95 34486#define wxUSE_MSGDLG 1
e6cc62c6 34487_ACEOF
1e6feb95
VZ
34488
34489fi
34490
34491if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 34492 cat >>confdefs.h <<\_ACEOF
1e6feb95 34493#define wxUSE_NUMBERDLG 1
e6cc62c6 34494_ACEOF
1e6feb95
VZ
34495
34496fi
34497
34498if test "$wxUSE_PROGRESSDLG" = "yes"; then
34499 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
34500 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
34501echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 34502 else
e6cc62c6 34503 cat >>confdefs.h <<\_ACEOF
1e6feb95 34504#define wxUSE_PROGRESSDLG 1
e6cc62c6 34505_ACEOF
1e6feb95
VZ
34506
34507 fi
34508fi
34509
cbca9943 34510if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 34511 cat >>confdefs.h <<\_ACEOF
cbca9943 34512#define wxUSE_SPLASH 1
e6cc62c6 34513_ACEOF
cbca9943
VZ
34514
34515fi
34516
1e6feb95
VZ
34517if test "$wxUSE_STARTUP_TIPS" = "yes"; then
34518 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
34519 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
34520echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 34521 else
e6cc62c6 34522 cat >>confdefs.h <<\_ACEOF
1e6feb95 34523#define wxUSE_STARTUP_TIPS 1
e6cc62c6 34524_ACEOF
1e6feb95 34525
7b4a847f
RR
34526 fi
34527fi
579d8138 34528
8284b0c5 34529if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 34530 cat >>confdefs.h <<\_ACEOF
8284b0c5 34531#define wxUSE_TEXTDLG 1
e6cc62c6 34532_ACEOF
8284b0c5
MB
34533
34534fi
34535
34536if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 34537 cat >>confdefs.h <<\_ACEOF
8284b0c5 34538#define wxUSE_WIZARDDLG 1
e6cc62c6 34539_ACEOF
8284b0c5
MB
34540
34541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
34542fi
34543
34544
34545if test "$cross_compiling" = "yes"; then
34546 OSINFO="\"$host\""
34547else
34548 OSINFO=`uname -s -r -m`
34549 OSINFO="\"$OSINFO\""
34550fi
34551
e6cc62c6 34552cat >>confdefs.h <<_ACEOF
8284b0c5 34553#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 34554_ACEOF
8284b0c5
MB
34555
34556
34557
34558if test "x$prefix" != "xNONE"; then
34559 wxPREFIX=$prefix
34560else
34561 wxPREFIX=$ac_default_prefix
34562fi
34563
e6cc62c6 34564cat >>confdefs.h <<_ACEOF
8284b0c5 34565#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 34566_ACEOF
8284b0c5
MB
34567
34568
e6cc62c6 34569top_builddir_wxconfig=`pwd`
52c71b80 34570
8284b0c5
MB
34571
34572
edd891e2
VS
34573CORE_BASE_LIBS="net base"
34574CORE_GUI_LIBS="adv core"
34575
34576if test "$wxUSE_XML" = "yes" ; then
34577 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
34578fi
45293562
VS
34579if test "$wxUSE_ODBC" != "no" ; then
34580 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
34581 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
34582fi
34583if test "$wxUSE_HTML" = "yes" ; then
34584 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
34585fi
34586
57e7d4ac
VS
34587if test "$wxUSE_GUI" != "yes"; then
34588 CORE_GUI_LIBS=""
34589fi
34590
edd891e2
VS
34591
34592
34593
34594
34595
34596
8284b0c5
MB
34597
34598if test "$wxUSE_MAC" = 1 ; then
34599 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
34600fi
ac0c4cc3
DE
34601if test "$wxUSE_COCOA" = 1 ; then
34602 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
34603fi
8284b0c5
MB
34604
34605
2b5f62a0
VZ
34606LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
34607
34608have_cos=0
34609have_floor=0
e6cc62c6 34610
2b5f62a0
VZ
34611for ac_func in cos
34612do
e6cc62c6
VS
34613as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34614echo "$as_me:$LINENO: checking for $ac_func" >&5
34615echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34616if eval "test \"\${$as_ac_var+set}\" = set"; then
34617 echo $ECHO_N "(cached) $ECHO_C" >&6
34618else
34619 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 34620#line $LINENO "configure"
e6cc62c6
VS
34621/* confdefs.h. */
34622_ACEOF
34623cat confdefs.h >>conftest.$ac_ext
34624cat >>conftest.$ac_ext <<_ACEOF
34625/* end confdefs.h. */
2b5f62a0 34626/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34627 which can conflict with char $ac_func (); below.
34628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34629 <limits.h> exists even on freestanding compilers. */
34630#ifdef __STDC__
34631# include <limits.h>
34632#else
34633# include <assert.h>
34634#endif
2b5f62a0 34635/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34636#ifdef __cplusplus
34637extern "C"
34638{
34639#endif
2b5f62a0 34640/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34641 builtin and then its argument prototype would still apply. */
34642char $ac_func ();
2b5f62a0
VZ
34643/* The GNU C library defines this for functions which it implements
34644 to always fail with ENOSYS. Some functions are actually named
34645 something starting with __ and the normal name is an alias. */
34646#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34647choke me
34648#else
e6cc62c6
VS
34649char (*f) () = $ac_func;
34650#endif
34651#ifdef __cplusplus
34652}
2b5f62a0
VZ
34653#endif
34654
e6cc62c6
VS
34655int
34656main ()
34657{
34658return f != $ac_func;
34659 ;
34660 return 0;
34661}
34662_ACEOF
34663rm -f conftest.$ac_objext conftest$ac_exeext
34664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 34665 (eval $ac_link) 2>&5
e6cc62c6
VS
34666 ac_status=$?
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); } &&
789c5f4a 34669 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34671 (eval $ac_try) 2>&5
34672 ac_status=$?
34673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674 (exit $ac_status); }; }; then
34675 eval "$as_ac_var=yes"
34676else
34677 echo "$as_me: failed program was:" >&5
34678sed 's/^/| /' conftest.$ac_ext >&5
34679
34680eval "$as_ac_var=no"
34681fi
789c5f4a 34682rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34683fi
34684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34685echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34686if test `eval echo '${'$as_ac_var'}'` = yes; then
34687 cat >>confdefs.h <<_ACEOF
34688#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34689_ACEOF
2b5f62a0 34690 have_cos=1
2b5f62a0
VZ
34691fi
34692done
34693
e6cc62c6 34694
2b5f62a0
VZ
34695for ac_func in floor
34696do
e6cc62c6
VS
34697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34698echo "$as_me:$LINENO: checking for $ac_func" >&5
34699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34700if eval "test \"\${$as_ac_var+set}\" = set"; then
34701 echo $ECHO_N "(cached) $ECHO_C" >&6
34702else
34703 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 34704#line $LINENO "configure"
e6cc62c6
VS
34705/* confdefs.h. */
34706_ACEOF
34707cat confdefs.h >>conftest.$ac_ext
34708cat >>conftest.$ac_ext <<_ACEOF
34709/* end confdefs.h. */
2b5f62a0 34710/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34711 which can conflict with char $ac_func (); below.
34712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34713 <limits.h> exists even on freestanding compilers. */
34714#ifdef __STDC__
34715# include <limits.h>
34716#else
34717# include <assert.h>
34718#endif
2b5f62a0 34719/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34720#ifdef __cplusplus
34721extern "C"
34722{
34723#endif
2b5f62a0 34724/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34725 builtin and then its argument prototype would still apply. */
34726char $ac_func ();
2b5f62a0
VZ
34727/* The GNU C library defines this for functions which it implements
34728 to always fail with ENOSYS. Some functions are actually named
34729 something starting with __ and the normal name is an alias. */
34730#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34731choke me
34732#else
e6cc62c6
VS
34733char (*f) () = $ac_func;
34734#endif
34735#ifdef __cplusplus
34736}
2b5f62a0
VZ
34737#endif
34738
e6cc62c6
VS
34739int
34740main ()
34741{
34742return f != $ac_func;
34743 ;
34744 return 0;
34745}
34746_ACEOF
34747rm -f conftest.$ac_objext conftest$ac_exeext
34748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 34749 (eval $ac_link) 2>&5
e6cc62c6
VS
34750 ac_status=$?
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); } &&
789c5f4a 34753 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34755 (eval $ac_try) 2>&5
34756 ac_status=$?
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); }; }; then
34759 eval "$as_ac_var=yes"
34760else
34761 echo "$as_me: failed program was:" >&5
34762sed 's/^/| /' conftest.$ac_ext >&5
34763
34764eval "$as_ac_var=no"
34765fi
789c5f4a 34766rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34767fi
34768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34769echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34770if test `eval echo '${'$as_ac_var'}'` = yes; then
34771 cat >>confdefs.h <<_ACEOF
34772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34773_ACEOF
2b5f62a0 34774 have_floor=1
2b5f62a0
VZ
34775fi
34776done
34777
e6cc62c6
VS
34778echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
34779echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 34780if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
34781 echo "$as_me:$LINENO: result: yes" >&5
34782echo "${ECHO_T}yes" >&6
2b5f62a0 34783else
e6cc62c6
VS
34784 echo "$as_me:$LINENO: result: no" >&5
34785echo "${ECHO_T}no" >&6
2b5f62a0
VZ
34786 LIBS="$LIBS -lm"
34787 # use different functions to avoid configure caching
34788 have_sin=0
34789 have_ceil=0
e6cc62c6
VS
34790
34791for ac_func in sin
2b5f62a0 34792do
e6cc62c6
VS
34793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34794echo "$as_me:$LINENO: checking for $ac_func" >&5
34795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34796if eval "test \"\${$as_ac_var+set}\" = set"; then
34797 echo $ECHO_N "(cached) $ECHO_C" >&6
34798else
34799 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 34800#line $LINENO "configure"
e6cc62c6
VS
34801/* confdefs.h. */
34802_ACEOF
34803cat confdefs.h >>conftest.$ac_ext
34804cat >>conftest.$ac_ext <<_ACEOF
34805/* end confdefs.h. */
2b5f62a0 34806/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34807 which can conflict with char $ac_func (); below.
34808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34809 <limits.h> exists even on freestanding compilers. */
34810#ifdef __STDC__
34811# include <limits.h>
34812#else
34813# include <assert.h>
34814#endif
2b5f62a0 34815/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34816#ifdef __cplusplus
34817extern "C"
34818{
34819#endif
2b5f62a0 34820/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34821 builtin and then its argument prototype would still apply. */
34822char $ac_func ();
2b5f62a0
VZ
34823/* The GNU C library defines this for functions which it implements
34824 to always fail with ENOSYS. Some functions are actually named
34825 something starting with __ and the normal name is an alias. */
34826#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34827choke me
34828#else
e6cc62c6
VS
34829char (*f) () = $ac_func;
34830#endif
34831#ifdef __cplusplus
34832}
2b5f62a0
VZ
34833#endif
34834
e6cc62c6
VS
34835int
34836main ()
34837{
34838return f != $ac_func;
34839 ;
34840 return 0;
34841}
34842_ACEOF
34843rm -f conftest.$ac_objext conftest$ac_exeext
34844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 34845 (eval $ac_link) 2>&5
e6cc62c6
VS
34846 ac_status=$?
34847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848 (exit $ac_status); } &&
789c5f4a 34849 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34851 (eval $ac_try) 2>&5
34852 ac_status=$?
34853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34854 (exit $ac_status); }; }; then
34855 eval "$as_ac_var=yes"
34856else
34857 echo "$as_me: failed program was:" >&5
34858sed 's/^/| /' conftest.$ac_ext >&5
34859
34860eval "$as_ac_var=no"
34861fi
789c5f4a 34862rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34863fi
34864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34865echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34866if test `eval echo '${'$as_ac_var'}'` = yes; then
34867 cat >>confdefs.h <<_ACEOF
34868#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34869_ACEOF
2b5f62a0 34870 have_sin=1
2b5f62a0
VZ
34871fi
34872done
34873
e6cc62c6
VS
34874
34875for ac_func in ceil
2b5f62a0 34876do
e6cc62c6
VS
34877as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34878echo "$as_me:$LINENO: checking for $ac_func" >&5
34879echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34880if eval "test \"\${$as_ac_var+set}\" = set"; then
34881 echo $ECHO_N "(cached) $ECHO_C" >&6
34882else
34883 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 34884#line $LINENO "configure"
e6cc62c6
VS
34885/* confdefs.h. */
34886_ACEOF
34887cat confdefs.h >>conftest.$ac_ext
34888cat >>conftest.$ac_ext <<_ACEOF
34889/* end confdefs.h. */
2b5f62a0 34890/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34891 which can conflict with char $ac_func (); below.
34892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34893 <limits.h> exists even on freestanding compilers. */
34894#ifdef __STDC__
34895# include <limits.h>
34896#else
34897# include <assert.h>
34898#endif
2b5f62a0 34899/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34900#ifdef __cplusplus
34901extern "C"
34902{
34903#endif
2b5f62a0 34904/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34905 builtin and then its argument prototype would still apply. */
34906char $ac_func ();
2b5f62a0
VZ
34907/* The GNU C library defines this for functions which it implements
34908 to always fail with ENOSYS. Some functions are actually named
34909 something starting with __ and the normal name is an alias. */
34910#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34911choke me
34912#else
e6cc62c6
VS
34913char (*f) () = $ac_func;
34914#endif
34915#ifdef __cplusplus
34916}
2b5f62a0
VZ
34917#endif
34918
e6cc62c6
VS
34919int
34920main ()
34921{
34922return f != $ac_func;
34923 ;
34924 return 0;
34925}
34926_ACEOF
34927rm -f conftest.$ac_objext conftest$ac_exeext
34928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 34929 (eval $ac_link) 2>&5
e6cc62c6
VS
34930 ac_status=$?
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); } &&
789c5f4a 34933 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34935 (eval $ac_try) 2>&5
34936 ac_status=$?
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); }; }; then
34939 eval "$as_ac_var=yes"
34940else
34941 echo "$as_me: failed program was:" >&5
34942sed 's/^/| /' conftest.$ac_ext >&5
34943
34944eval "$as_ac_var=no"
34945fi
789c5f4a 34946rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34947fi
34948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34949echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34950if test `eval echo '${'$as_ac_var'}'` = yes; then
34951 cat >>confdefs.h <<_ACEOF
34952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34953_ACEOF
2b5f62a0 34954 have_ceil=1
2b5f62a0
VZ
34955fi
34956done
34957
e6cc62c6
VS
34958 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
34959echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 34960 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
34961 echo "$as_me:$LINENO: result: yes" >&5
34962echo "${ECHO_T}yes" >&6
2b5f62a0 34963 else
e6cc62c6
VS
34964 echo "$as_me:$LINENO: result: no" >&5
34965echo "${ECHO_T}no" >&6
2b5f62a0
VZ
34966 # not sure we should warn the user, crash, etc.
34967 fi
34968fi
8284b0c5
MB
34969
34970if test "$wxUSE_GUI" = "yes"; then
34971
e6cc62c6 34972
8284b0c5
MB
34973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
34974 drawing dynamic erase event exec font image \
1dd02ac0 34975 minimal propsize rotate shaped widgets render"
b625909c
VS
34976
34977 if test "$wxUSE_MONOLITHIC" != "yes"; then
34978 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
34979 fi
8284b0c5
MB
34980else
34981 SAMPLES_SUBDIRS="console"
34982fi
34983
34984
e6cc62c6 34985INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
eea650d8 34986-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
8284b0c5 34987
fddeb06b
VS
34988if test "$GXX" = yes ; then
34989 CXXWARNINGS="-Wall"
34990 fi
34991
34992EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
34993
95318f7d 34994CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
34995CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
34996CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
34997
34998
fddeb06b 34999LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 35000EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 35001EXTRALIBS_XML="$EXPAT_LINK"
3527f29c 35002EXTRALIBS_HTML="$MSPACK_LINK"
bb41dcbe 35003EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
35004if test "$wxUSE_GUI" = "yes"; then
35005 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
35006fi
34b08d2c
VS
35007if test "$wxUSE_OPENGL" = "yes"; then
35008 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
35009fi
fddeb06b
VS
35010
35011LDFLAGS="$LDFLAGS $PROFILE"
35012
8284b0c5
MB
35013if test "$wxUSE_GTK" = 1; then
35014 WXCONFIG_INCLUDE=
35015else
35016 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
35017fi
35018
67c13b6c
VS
35019WXCONFIG_EXTRALIBS="$LIBS"
35020
35021if test "$wxUSE_REGEX" = "builtin" ; then
35022 wxconfig_3rdparty="$wxconfig_3rdparty regex"
35023fi
35024if test "$wxUSE_EXPAT" = "builtin" ; then
35025 wxconfig_3rdparty="$wxconfig_3rdparty expat"
35026fi
35027if test "$wxUSE_ODBC" = "builtin" ; then
35028 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
35029fi
35030if test "$wxUSE_LIBTIFF" = "builtin" ; then
35031 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
35032fi
35033if test "$wxUSE_LIBJPEG" = "builtin" ; then
35034 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
35035fi
35036if test "$wxUSE_LIBPNG" = "builtin" ; then
35037 wxconfig_3rdparty="$wxconfig_3rdparty png"
35038fi
35039if test "$wxUSE_ZLIB" = "builtin" ; then
35040 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
35041fi
bb41dcbe
VS
35042if test "$wxUSE_ODBC" = "builtin" ; then
35043 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
35044fi
67c13b6c
VS
35045
35046for i in $wxconfig_3rdparty ; do
35047 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
35048done
35049
35050
fe0895cf
VS
35051if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
35052 WXUNIV=1
35053else
35054 WXUNIV=0
8284b0c5
MB
35055fi
35056
8284b0c5
MB
35057
35058
35059
35060
35061
35062
35063
672abd7a 35064
9747f85d
VS
35065if test $wxUSE_MONOLITHIC = "yes" ; then
35066 MONOLITHIC=1
35067else
35068 MONOLITHIC=0
35069fi
8284b0c5 35070
f93ca9fd
VS
35071if test $wxUSE_PLUGINS = "yes" ; then
35072 USE_PLUGINS=1
35073else
35074 USE_PLUGINS=0
35075fi
35076
bb41dcbe
VS
35077if test $wxUSE_ODBC != "no" ; then
35078 USE_ODBC=1
35079else
35080 USE_ODBC=0
35081fi
35082
029b47ad
VS
35083if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
35084 OFFICIAL_BUILD=1
35085else
35086 OFFICIAL_BUILD=0
35087fi
35088
8ee2dd05
VS
35089
35090
35091
8284b0c5
MB
35092
35093
35094
35095
35096
35097
c74dc163 35098
34b08d2c 35099
672abd7a 35100
cf615ebb 35101
6c67131a
VS
35102
35103
bb41dcbe 35104
f93ca9fd
VS
35105
35106
35107
3527f29c 35108
89fe663f 35109TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
8284b0c5
MB
35110
35111
35112
35113
35114
ea66c762 35115
0f1bc9c2 35116
f95e4495
VS
35117 if test "x$BAKEFILE_HOST" = "x"; then
35118 BAKEFILE_HOST="${host}"
35119 fi
35120
fe0895cf 35121 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
35122
35123 if test -n "$ac_tool_prefix"; then
35124 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
35125set dummy ${ac_tool_prefix}ranlib; ac_word=$2
35126echo "$as_me:$LINENO: checking for $ac_word" >&5
35127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35128if test "${ac_cv_prog_RANLIB+set}" = set; then
35129 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 35130else
fe0895cf
VS
35131 if test -n "$RANLIB"; then
35132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 35133else
e6cc62c6
VS
35134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35135for as_dir in $PATH
35136do
35137 IFS=$as_save_IFS
35138 test -z "$as_dir" && as_dir=.
35139 for ac_exec_ext in '' $ac_executable_extensions; do
35140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35141 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
35142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35143 break 2
35144 fi
35145done
35146done
35147
10f2d63a 35148fi
10f2d63a 35149fi
e6cc62c6 35150RANLIB=$ac_cv_prog_RANLIB
fe0895cf 35151if test -n "$RANLIB"; then
e6cc62c6
VS
35152 echo "$as_me:$LINENO: result: $RANLIB" >&5
35153echo "${ECHO_T}$RANLIB" >&6
35154else
35155 echo "$as_me:$LINENO: result: no" >&5
35156echo "${ECHO_T}no" >&6
35157fi
35158
35159fi
35160if test -z "$ac_cv_prog_RANLIB"; then
35161 ac_ct_RANLIB=$RANLIB
35162 # Extract the first word of "ranlib", so it can be a program name with args.
35163set dummy ranlib; ac_word=$2
35164echo "$as_me:$LINENO: checking for $ac_word" >&5
35165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35166if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
35167 echo $ECHO_N "(cached) $ECHO_C" >&6
35168else
35169 if test -n "$ac_ct_RANLIB"; then
35170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
35171else
35172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35173for as_dir in $PATH
35174do
35175 IFS=$as_save_IFS
35176 test -z "$as_dir" && as_dir=.
35177 for ac_exec_ext in '' $ac_executable_extensions; do
35178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35179 ac_cv_prog_ac_ct_RANLIB="ranlib"
35180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35181 break 2
35182 fi
35183done
35184done
35185
35186 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
35187fi
35188fi
35189ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
35190if test -n "$ac_ct_RANLIB"; then
35191 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
35192echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 35193else
e6cc62c6
VS
35194 echo "$as_me:$LINENO: result: no" >&5
35195echo "${ECHO_T}no" >&6
35196fi
35197
35198 RANLIB=$ac_ct_RANLIB
35199else
35200 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 35201fi
665bbe97 35202
fe0895cf
VS
35203 # Find a good install program. We prefer a C program (faster),
35204# so one script is as good as another. But avoid the broken or
35205# incompatible versions:
35206# SysV /etc/install, /usr/sbin/install
35207# SunOS /usr/etc/install
35208# IRIX /sbin/install
35209# AIX /bin/install
e6cc62c6 35210# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
35211# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
35212# AFS /usr/afsws/bin/install, which mishandles nonexistent args
35213# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
35214# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
35215echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
35216echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 35217if test -z "$INSTALL"; then
e6cc62c6
VS
35218if test "${ac_cv_path_install+set}" = set; then
35219 echo $ECHO_N "(cached) $ECHO_C" >&6
35220else
35221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35222for as_dir in $PATH
35223do
35224 IFS=$as_save_IFS
35225 test -z "$as_dir" && as_dir=.
35226 # Account for people who put trailing slashes in PATH elements.
35227case $as_dir/ in
35228 ./ | .// | /cC/* | \
35229 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
35230 /usr/ucb/* ) ;;
35231 *)
35232 # OSF1 and SCO ODT 3.0 have their own names for install.
35233 # Don't use installbsd from OSF since it installs stuff as root
35234 # by default.
35235 for ac_prog in ginstall scoinst install; do
35236 for ac_exec_ext in '' $ac_executable_extensions; do
789c5f4a
VZ
35237 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
35238 if test $ac_prog = install &&
35239 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
35240 # AIX install. It has an incompatible calling convention.
35241 :
35242 elif test $ac_prog = install &&
35243 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
35244 # program-specific install script used by HP pwplus--don't use.
35245 :
35246 else
35247 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
35248 break 3
35249 fi
35250 fi
fe0895cf 35251 done
e6cc62c6
VS
35252 done
35253 ;;
35254esac
35255done
35256
fe0895cf
VS
35257
35258fi
35259 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 35260 INSTALL=$ac_cv_path_install
fe0895cf
VS
35261 else
35262 # As a last resort, use the slow shell script. We don't cache a
35263 # path for INSTALL within a source directory, because that will
35264 # break other packages using the cache if that directory is
35265 # removed, or if the path is relative.
e6cc62c6 35266 INSTALL=$ac_install_sh
fe0895cf
VS
35267 fi
35268fi
e6cc62c6
VS
35269echo "$as_me:$LINENO: result: $INSTALL" >&5
35270echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
35271
35272# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
35273# It thinks the first close brace ends the variable substitution.
35274test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
35275
e6cc62c6 35276test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
35277
35278test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
35279
e6cc62c6
VS
35280 echo "$as_me:$LINENO: checking whether ln -s works" >&5
35281echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
35282LN_S=$as_ln_s
35283if test "$LN_S" = "ln -s"; then
35284 echo "$as_me:$LINENO: result: yes" >&5
35285echo "${ECHO_T}yes" >&6
fe0895cf 35286else
e6cc62c6
VS
35287 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
35288echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
35289fi
35290
35291
e6cc62c6
VS
35292 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35293echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
789c5f4a 35294set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
e6cc62c6
VS
35295if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35296 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 35297else
e6cc62c6 35298 cat >conftest.make <<\_ACEOF
fe0895cf 35299all:
e6cc62c6
VS
35300 @echo 'ac_maketemp="$(MAKE)"'
35301_ACEOF
fe0895cf 35302# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 35303eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
35304if test -n "$ac_maketemp"; then
35305 eval ac_cv_prog_make_${ac_make}_set=yes
35306else
35307 eval ac_cv_prog_make_${ac_make}_set=no
35308fi
e6cc62c6 35309rm -f conftest.make
fe0895cf
VS
35310fi
35311if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
35312 echo "$as_me:$LINENO: result: yes" >&5
35313echo "${ECHO_T}yes" >&6
fe0895cf
VS
35314 SET_MAKE=
35315else
e6cc62c6
VS
35316 echo "$as_me:$LINENO: result: no" >&5
35317echo "${ECHO_T}no" >&6
fe0895cf
VS
35318 SET_MAKE="MAKE=${MAKE-make}"
35319fi
35320
e6cc62c6
VS
35321
35322
874d12cf
VS
35323 if test -n "$ac_tool_prefix"; then
35324 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
35325set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
35326echo "$as_me:$LINENO: checking for $ac_word" >&5
35327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35328if test "${ac_cv_prog_AR+set}" = set; then
35329 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35330else
35331 if test -n "$AR"; then
35332 ac_cv_prog_AR="$AR" # Let the user override the test.
35333else
e6cc62c6
VS
35334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35335for as_dir in $PATH
35336do
35337 IFS=$as_save_IFS
35338 test -z "$as_dir" && as_dir=.
35339 for ac_exec_ext in '' $ac_executable_extensions; do
35340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 35341 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
35342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35343 break 2
35344 fi
35345done
35346done
35347
fe0895cf
VS
35348fi
35349fi
e6cc62c6 35350AR=$ac_cv_prog_AR
fe0895cf 35351if test -n "$AR"; then
e6cc62c6
VS
35352 echo "$as_me:$LINENO: result: $AR" >&5
35353echo "${ECHO_T}$AR" >&6
fe0895cf 35354else
e6cc62c6
VS
35355 echo "$as_me:$LINENO: result: no" >&5
35356echo "${ECHO_T}no" >&6
fe0895cf
VS
35357fi
35358
874d12cf
VS
35359fi
35360if test -z "$ac_cv_prog_AR"; then
35361 ac_ct_AR=$AR
35362 # Extract the first word of "ar", so it can be a program name with args.
35363set dummy ar; ac_word=$2
35364echo "$as_me:$LINENO: checking for $ac_word" >&5
35365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35366if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
35367 echo $ECHO_N "(cached) $ECHO_C" >&6
35368else
35369 if test -n "$ac_ct_AR"; then
35370 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
35371else
35372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35373for as_dir in $PATH
35374do
35375 IFS=$as_save_IFS
35376 test -z "$as_dir" && as_dir=.
35377 for ac_exec_ext in '' $ac_executable_extensions; do
35378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35379 ac_cv_prog_ac_ct_AR="ar"
35380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35381 break 2
35382 fi
35383done
35384done
35385
35386 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
35387fi
35388fi
35389ac_ct_AR=$ac_cv_prog_ac_ct_AR
35390if test -n "$ac_ct_AR"; then
35391 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
35392echo "${ECHO_T}$ac_ct_AR" >&6
35393else
35394 echo "$as_me:$LINENO: result: no" >&5
35395echo "${ECHO_T}no" >&6
35396fi
35397
35398 AR=$ac_ct_AR
35399else
35400 AR="$ac_cv_prog_AR"
35401fi
35402
35403 if test -n "$ac_tool_prefix"; then
35404 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
35405set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
35406echo "$as_me:$LINENO: checking for $ac_word" >&5
35407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35408if test "${ac_cv_prog_STRIP+set}" = set; then
35409 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35410else
35411 if test -n "$STRIP"; then
35412 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
35413else
e6cc62c6
VS
35414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35415for as_dir in $PATH
35416do
35417 IFS=$as_save_IFS
35418 test -z "$as_dir" && as_dir=.
35419 for ac_exec_ext in '' $ac_executable_extensions; do
35420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 35421 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
35422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35423 break 2
35424 fi
35425done
35426done
35427
fe0895cf
VS
35428fi
35429fi
e6cc62c6 35430STRIP=$ac_cv_prog_STRIP
fe0895cf 35431if test -n "$STRIP"; then
e6cc62c6
VS
35432 echo "$as_me:$LINENO: result: $STRIP" >&5
35433echo "${ECHO_T}$STRIP" >&6
fe0895cf 35434else
e6cc62c6
VS
35435 echo "$as_me:$LINENO: result: no" >&5
35436echo "${ECHO_T}no" >&6
fe0895cf
VS
35437fi
35438
874d12cf
VS
35439fi
35440if test -z "$ac_cv_prog_STRIP"; then
35441 ac_ct_STRIP=$STRIP
35442 # Extract the first word of "strip", so it can be a program name with args.
35443set dummy strip; ac_word=$2
35444echo "$as_me:$LINENO: checking for $ac_word" >&5
35445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35446if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
35447 echo $ECHO_N "(cached) $ECHO_C" >&6
35448else
35449 if test -n "$ac_ct_STRIP"; then
35450 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
35451else
35452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35453for as_dir in $PATH
35454do
35455 IFS=$as_save_IFS
35456 test -z "$as_dir" && as_dir=.
35457 for ac_exec_ext in '' $ac_executable_extensions; do
35458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35459 ac_cv_prog_ac_ct_STRIP="strip"
35460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35461 break 2
35462 fi
35463done
35464done
35465
35466 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
35467fi
35468fi
35469ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
35470if test -n "$ac_ct_STRIP"; then
35471 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
35472echo "${ECHO_T}$ac_ct_STRIP" >&6
35473else
35474 echo "$as_me:$LINENO: result: no" >&5
35475echo "${ECHO_T}no" >&6
35476fi
35477
35478 STRIP=$ac_ct_STRIP
35479else
35480 STRIP="$ac_cv_prog_STRIP"
35481fi
35482
35483 if test -n "$ac_tool_prefix"; then
35484 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
35485set dummy ${ac_tool_prefix}nm; ac_word=$2
35486echo "$as_me:$LINENO: checking for $ac_word" >&5
35487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35488if test "${ac_cv_prog_NM+set}" = set; then
35489 echo $ECHO_N "(cached) $ECHO_C" >&6
35490else
35491 if test -n "$NM"; then
35492 ac_cv_prog_NM="$NM" # Let the user override the test.
35493else
35494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35495for as_dir in $PATH
35496do
35497 IFS=$as_save_IFS
35498 test -z "$as_dir" && as_dir=.
35499 for ac_exec_ext in '' $ac_executable_extensions; do
35500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35501 ac_cv_prog_NM="${ac_tool_prefix}nm"
35502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35503 break 2
35504 fi
35505done
35506done
35507
35508fi
35509fi
35510NM=$ac_cv_prog_NM
35511if test -n "$NM"; then
35512 echo "$as_me:$LINENO: result: $NM" >&5
35513echo "${ECHO_T}$NM" >&6
35514else
35515 echo "$as_me:$LINENO: result: no" >&5
35516echo "${ECHO_T}no" >&6
35517fi
35518
35519fi
35520if test -z "$ac_cv_prog_NM"; then
35521 ac_ct_NM=$NM
35522 # Extract the first word of "nm", so it can be a program name with args.
35523set dummy nm; ac_word=$2
35524echo "$as_me:$LINENO: checking for $ac_word" >&5
35525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35526if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
35527 echo $ECHO_N "(cached) $ECHO_C" >&6
35528else
35529 if test -n "$ac_ct_NM"; then
35530 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
35531else
35532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35533for as_dir in $PATH
35534do
35535 IFS=$as_save_IFS
35536 test -z "$as_dir" && as_dir=.
35537 for ac_exec_ext in '' $ac_executable_extensions; do
35538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35539 ac_cv_prog_ac_ct_NM="nm"
35540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35541 break 2
35542 fi
35543done
35544done
35545
35546 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
35547fi
35548fi
35549ac_ct_NM=$ac_cv_prog_ac_ct_NM
35550if test -n "$ac_ct_NM"; then
35551 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
35552echo "${ECHO_T}$ac_ct_NM" >&6
35553else
35554 echo "$as_me:$LINENO: result: no" >&5
35555echo "${ECHO_T}no" >&6
35556fi
35557
35558 NM=$ac_ct_NM
35559else
35560 NM="$ac_cv_prog_NM"
35561fi
35562
fe0895cf 35563
f95e4495 35564 case ${BAKEFILE_HOST} in
fe0895cf
VS
35565 *-hp-hpux* )
35566 INSTALL_DIR="mkdir"
35567 ;;
35568 *) INSTALL_DIR="$INSTALL -d"
35569 ;;
35570 esac
e6cc62c6 35571
fe0895cf 35572
6b9d41a5 35573 LDFLAGS_GUI=
f95e4495 35574 case ${BAKEFILE_HOST} in
6b9d41a5
VS
35575 *-*-cygwin* | *-*-mingw32* )
35576 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
35577 esac
35578
35579
fe0895cf 35580 fi
e6cc62c6
VS
35581
35582 echo "$as_me:$LINENO: checking if make is GNU make" >&5
35583echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 35584if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 35585 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 35586else
e6cc62c6 35587
fe0895cf
VS
35588 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
35589 egrep -s GNU > /dev/null); then
35590 bakefile_cv_prog_makeisgnu="yes"
35591 else
35592 bakefile_cv_prog_makeisgnu="no"
35593 fi
fe0895cf 35594
e6cc62c6 35595fi
49b0a3aa
VS
35596echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
35597echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
35598
35599 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
35600 IF_GNU_MAKE=""
35601 else
35602 IF_GNU_MAKE="#"
35603 fi
fe0895cf 35604
e6cc62c6
VS
35605
35606
fe0895cf
VS
35607 PLATFORM_UNIX=0
35608 PLATFORM_WIN32=0
35609 PLATFORM_MSDOS=0
35610 PLATFORM_MAC=0
35611 PLATFORM_MACOSX=0
96c1699d 35612 PLATFORM_OS2=0
e6cc62c6 35613
f95e4495
VS
35614 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
35615 case "${BAKEFILE_HOST}" in
35616 *-*-cygwin* | *-*-mingw32* )
35617 PLATFORM_WIN32=1
35618 ;;
35619 *-pc-msdosdjgpp )
35620 PLATFORM_MSDOS=1
35621 ;;
35622 *-pc-os2_emx | *-pc-os2-emx )
35623 PLATFORM_OS2=1
35624 ;;
35625 powerpc-*-darwin* )
35626 PLATFORM_MAC=1
35627 PLATFORM_MACOSX=1
35628 ;;
35629 * )
35630 PLATFORM_UNIX=1
35631 ;;
35632 esac
35633 else
35634 case "$BAKEFILE_FORCE_PLATFORM" in
35635 win32 )
35636 PLATFORM_WIN32=1
35637 ;;
35638 msdos )
35639 PLATFORM_MSDOS=1
35640 ;;
35641 os2 )
35642 PLATFORM_OS2=1
35643 ;;
35644 darwin )
35645 PLATFORM_MAC=1
35646 PLATFORM_MACOSX=1
35647 ;;
35648 unix )
35649 PLATFORM_UNIX=1
35650 ;;
35651 * )
35652 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
35653echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
35654 { (exit 1); exit 1; }; }
35655 ;;
35656 esac
35657 fi
fe0895cf 35658
fe0895cf 35659
e6cc62c6
VS
35660
35661
35662
35663
35664
35665
96c1699d 35666
fe0895cf 35667 SO_SUFFIX="so"
131f235d 35668 SO_SUFFIX_MODULE="so"
fe0895cf 35669 EXEEXT=""
4b1f6360 35670 LIBPREFIX=lib
fe0895cf 35671 DLLPREFIX=lib
131f235d 35672 DLLPREFIX_MODULE=
e6cc62c6 35673
f95e4495 35674 case "${BAKEFILE_HOST}" in
fe0895cf
VS
35675 *-hp-hpux* )
35676 SO_SUFFIX="sl"
131f235d 35677 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
35678 ;;
35679 *-*-aix* )
35680 SO_SUFFIX="a"
131f235d 35681 SO_SUFFIX_MODULE="a"
fe0895cf
VS
35682 ;;
35683 *-*-cygwin* | *-*-mingw32* )
35684 SO_SUFFIX="dll"
131f235d 35685 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
35686 EXEEXT=".exe"
35687 DLLPREFIX=""
35688 ;;
4b1f6360
VS
35689 *-pc-msdosdjgpp )
35690 EXEEXT=".exe"
35691 DLLPREFIX=""
35692 ;;
35693 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
35694 EXEEXT=".exe"
35695 DLLPREFIX=""
4b1f6360 35696 LIBPREFIX=""
fe0895cf
VS
35697 ;;
35698 powerpc-*-darwin* )
35699 SO_SUFFIX="dylib"
131f235d 35700 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
35701 ;;
35702 esac
35703
fe0895cf 35704
e6cc62c6
VS
35705
35706
35707
35708
131f235d
VS
35709
35710
4b1f6360 35711
fe0895cf
VS
35712 SHARED_LD_CC="\$(CC) -shared -o"
35713 SHARED_LD_CXX="\$(CXX) -shared -o"
35714
35715 if test "x$GCC" = "xyes"; then
35716 PIC_FLAG="-fPIC"
35717 fi
35718
f95e4495 35719 case "${BAKEFILE_HOST}" in
fe0895cf
VS
35720 *-hp-hpux* )
35721 if test "x$GCC" = "xyes"; then
35722 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
35723 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
35724 else
35725 LDFLAGS="$LDFLAGS -L/usr/lib"
35726
35727 SHARED_LD_CC="${CC} -b -o"
35728 SHARED_LD_CXX="${CXX} -b -o"
35729 PIC_FLAG="+Z"
35730 fi
35731 ;;
35732
35733 *-*-linux* )
35734 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
35735 echo "$as_me:$LINENO: checking for Intel compiler" >&5
35736echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
35737if test "${bakefile_cv_prog_icc+set}" = set; then
35738 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 35739else
fe0895cf 35740
e6cc62c6 35741 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 35742#line $LINENO "configure"
e6cc62c6
VS
35743/* confdefs.h. */
35744_ACEOF
35745cat confdefs.h >>conftest.$ac_ext
35746cat >>conftest.$ac_ext <<_ACEOF
35747/* end confdefs.h. */
35748
35749int
35750main ()
35751{
fe0895cf
VS
35752
35753 #ifndef __INTEL_COMPILER
35754 #error Not icc
35755 #endif
e6cc62c6
VS
35756
35757 ;
35758 return 0;
35759}
35760_ACEOF
35761rm -f conftest.$ac_objext
35762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 35763 (eval $ac_compile) 2>&5
e6cc62c6
VS
35764 ac_status=$?
35765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35766 (exit $ac_status); } &&
789c5f4a 35767 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35769 (eval $ac_try) 2>&5
35770 ac_status=$?
35771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35772 (exit $ac_status); }; }; then
fe0895cf
VS
35773 bakefile_cv_prog_icc=yes
35774else
e6cc62c6
VS
35775 echo "$as_me: failed program was:" >&5
35776sed 's/^/| /' conftest.$ac_ext >&5
35777
35778bakefile_cv_prog_icc=no
35779
fe0895cf 35780fi
789c5f4a 35781rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 35782
e6cc62c6
VS
35783fi
35784echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
35785echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
35786 if test "$bakefile_cv_prog_icc" = "yes"; then
35787 PIC_FLAG="-KPIC"
35788 fi
35789 fi
35790 ;;
35791
35792 *-*-solaris2* )
35793 if test "x$GCC" != xyes ; then
35794 SHARED_LD_CC="${CC} -G -o"
35795 SHARED_LD_CXX="${CXX} -G -o"
35796 PIC_FLAG="-KPIC"
35797 fi
35798 ;;
35799
35800 *-*-darwin* )
35801 CFLAGS="$CFLAGS -fno-common"
35802 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
35803
35804
2a879853 35805 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
35806echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
35807if test "${wx_cv_gcc31+set}" = set; then
35808 echo $ECHO_N "(cached) $ECHO_C" >&6
35809else
35810
2a879853 35811 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 35812#line $LINENO "configure"
43948499
RD
35813/* confdefs.h. */
35814_ACEOF
35815cat confdefs.h >>conftest.$ac_ext
35816cat >>conftest.$ac_ext <<_ACEOF
35817/* end confdefs.h. */
35818
35819int
35820main ()
35821{
35822
2a879853
VS
35823 #if (__GNUC__ < 3) || \
35824 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
35825 #error old gcc
35826 #endif
43948499
RD
35827
35828 ;
35829 return 0;
35830}
35831_ACEOF
35832rm -f conftest.$ac_objext
35833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 35834 (eval $ac_compile) 2>&5
43948499
RD
35835 ac_status=$?
35836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35837 (exit $ac_status); } &&
789c5f4a 35838 { ac_try='test -s conftest.$ac_objext'
43948499
RD
35839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35840 (eval $ac_try) 2>&5
35841 ac_status=$?
35842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35843 (exit $ac_status); }; }; then
35844
2a879853 35845 wx_cv_gcc31=yes
43948499
RD
35846
35847else
35848 echo "$as_me: failed program was:" >&5
35849sed 's/^/| /' conftest.$ac_ext >&5
35850
35851
2a879853 35852 wx_cv_gcc31=no
43948499
RD
35853
35854
35855fi
789c5f4a 35856rm -f conftest.$ac_objext conftest.$ac_ext
43948499
RD
35857
35858fi
35859echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
35860echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 35861 if test "$wx_cv_gcc31" = "no"; then
43948499 35862 cat <<EOF >shared-ld-sh
fe0895cf
VS
35863#!/bin/sh
35864#-----------------------------------------------------------------------------
35865#-- Name: distrib/mac/shared-ld-sh
35866#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
35867#-- Author: Gilles Depeyrot
35868#-- Copyright: (c) 2002 Gilles Depeyrot
35869#-- Licence: any use permitted
35870#-----------------------------------------------------------------------------
35871
35872verbose=0
35873args=""
35874objects=""
131f235d 35875linking_flag="-dynamiclib"
fe0895cf
VS
35876
35877while test \${#} -gt 0; do
35878 case \${1} in
35879
35880 -v)
35881 verbose=1
35882 ;;
35883
35884 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
35885 # collect these options and values
35886 args="\${args} \${1} \${2}"
35887 shift
35888 ;;
35889
74500461 35890 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
fe0895cf
VS
35891 # collect these options
35892 args="\${args} \${1}"
35893 ;;
35894
131f235d
VS
35895 -dynamiclib|-bundle)
35896 linking_flag="\${1}"
fe0895cf
VS
35897 ;;
35898
35899 -*)
35900 echo "shared-ld: unhandled option '\${1}'"
35901 exit 1
35902 ;;
35903
4d264332 35904 *.o | *.a | *.dylib)
fe0895cf
VS
35905 # collect object files
35906 objects="\${objects} \${1}"
35907 ;;
35908
35909 *)
35910 echo "shared-ld: unhandled argument '\${1}'"
35911 exit 1
35912 ;;
35913
35914 esac
35915 shift
35916done
35917
35918#
35919# Link one module containing all the others
35920#
35921if test \${verbose} = 1; then
35922 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
35923fi
35924c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
35925status=\$?
35926if test \${status} != 0; then
35927 exit \${status}
35928fi
35929
35930#
35931# Link the shared library from the single module created
35932#
35933if test \${verbose} = 1; then
2a879853 35934 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 35935fi
131f235d 35936c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
35937status=\$?
35938if test \${status} != 0; then
35939 exit \${status}
35940fi
35941
35942#
35943# Remove intermediate module
35944#
35945rm -f master.\$\$.o
35946
35947exit 0
35948EOF
43948499 35949 chmod +x shared-ld-sh
fe0895cf 35950
7f523214
VS
35951 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
35952 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
2a879853
VS
35953 SHARED_LD_CXX="$SHARED_LD_CC"
35954 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
35955 else
7f523214
VS
35956 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
35957 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
35958 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
35959 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
2a879853
VS
35960 fi
35961
fe0895cf 35962 PIC_FLAG="-dynamic -fPIC"
2a879853 35963 ;;
fe0895cf
VS
35964
35965 *-*-aix* )
35966 if test "x$GCC" != "xyes"; then
35967 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
35968set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
35969echo "$as_me:$LINENO: checking for $ac_word" >&5
35970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35971if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
35972 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35973else
35974 if test -n "$AIX_CXX_LD"; then
35975 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
35976else
e6cc62c6
VS
35977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35978for as_dir in $PATH
35979do
35980 IFS=$as_save_IFS
35981 test -z "$as_dir" && as_dir=.
35982 for ac_exec_ext in '' $ac_executable_extensions; do
35983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35984 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
35985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35986 break 2
35987 fi
35988done
35989done
35990
fe0895cf
VS
35991 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
35992fi
35993fi
e6cc62c6 35994AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 35995if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
35996 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
35997echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 35998else
e6cc62c6
VS
35999 echo "$as_me:$LINENO: result: no" >&5
36000echo "${ECHO_T}no" >&6
fe0895cf
VS
36001fi
36002
36003 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
36004 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
36005 fi
36006 ;;
36007
36008 *-*-beos* )
36009 SHARED_LD_CC="${LD} -shared -o"
36010 SHARED_LD_CXX="${LD} -shared -o"
36011 ;;
36012
36013 *-*-irix* )
36014 if test "x$GCC" != "xyes"; then
36015 PIC_FLAG="-KPIC"
36016 fi
36017 ;;
e6cc62c6 36018
fe0895cf
VS
36019 *-*-cygwin* | *-*-mingw32* )
36020 PIC_FLAG=""
36021 ;;
e6cc62c6 36022
fe0895cf
VS
36023 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
36024 *-*-sunos4* | \
36025 *-*-osf* | \
36026 *-*-dgux5* | \
4b1f6360 36027 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
36028 *-*-sysv5* )
36029 ;;
36030
36031 *)
f95e4495
VS
36032 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
36033echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
e6cc62c6 36034 { (exit 1); exit 1; }; }
fe0895cf
VS
36035 esac
36036
131f235d
VS
36037 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
36038 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
36039 fi
36040 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 36041 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
36042 fi
36043
36044
36045
fe0895cf 36046
e6cc62c6
VS
36047
36048
36049
36050
fe0895cf
VS
36051 USE_SOVERSION=0
36052 USE_SOVERLINUX=0
36053 USE_SOVERSOLARIS=0
36054 USE_SOSYMLINKS=0
36055 USE_MACVERSION=0
36056 SONAME_FLAG=
36057
f95e4495 36058 case "${BAKEFILE_HOST}" in
fe0895cf
VS
36059 *-*-linux* )
36060 SONAME_FLAG="-Wl,-soname,"
36061 USE_SOVERSION=1
36062 USE_SOVERLINUX=1
36063 USE_SOSYMLINKS=1
36064 ;;
36065
36066 *-*-solaris2* )
36067 SONAME_FLAG="-h "
36068 USE_SOVERSION=1
36069 USE_SOVERSOLARIS=1
36070 USE_SOSYMLINKS=1
36071 ;;
36072
36073 *-*-darwin* )
36074 USE_MACVERSION=1
36075 USE_SOVERSION=1
36076 USE_SOSYMLINKS=1
e6cc62c6 36077 ;;
fe0895cf
VS
36078 esac
36079
fe0895cf 36080
e6cc62c6
VS
36081
36082
36083
36084
36085
36086
36087
49b0a3aa
VS
36088 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
36089echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
36090 DEPS_TRACKING=0
36091
fe0895cf 36092 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
36093 DEPSMODE=gcc
36094 DEPS_TRACKING=1
f95e4495 36095 case "${BAKEFILE_HOST}" in
3e5c3c83
VS
36096 powerpc-*-darwin* )
36097 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
36098 ;;
36099 * )
36100 DEPSFLAG_GCC="-MMD"
36101 ;;
36102 esac
49b0a3aa
VS
36103 echo "$as_me:$LINENO: result: gcc" >&5
36104echo "${ECHO_T}gcc" >&6
36105 else
36106 echo "$as_me:$LINENO: result: none" >&5
36107echo "${ECHO_T}none" >&6
36108 fi
36109
36110 if test $DEPS_TRACKING = 1 ; then
36111 cat <<EOF >bk-deps
36112#!/bin/sh
36113
45842500
VS
36114# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
36115# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
36116#
36117# Permission is given to use this file in any way.
36118
36119DEPSMODE=$DEPSMODE
36120DEPSDIR=.deps
3e5c3c83 36121DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
36122
36123mkdir -p \$DEPSDIR
36124
36125if test \$DEPSMODE = gcc ; then
3e5c3c83 36126 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
36127 status=\${?}
36128 if test \${status} != 0 ; then
36129 exit \${status}
36130 fi
36131 # move created file to the location we want it in:
36132 while test \${#} -gt 0; do
36133 case "\${1}" in
36134 -o )
36135 shift
36136 objfile=\${1}
36137 ;;
36138 -* )
36139 ;;
36140 * )
36141 srcfile=\${1}
36142 ;;
36143 esac
36144 shift
36145 done
36146 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
36147 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
36148 if test -f \$depfile ; then
36149 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
36150 rm -f \$depfile
36151 else
36152 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
36153 if test -f \$depfile ; then
9d0be83a 36154 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
36155 rm -f \$depfile
36156 fi
36157 fi
49b0a3aa
VS
36158 exit 0
36159else
36160 \${*}
36161 exit \${?}
36162fi
36163EOF
36164 chmod +x bk-deps
fe0895cf 36165 fi
fe0895cf 36166
e6cc62c6
VS
36167
36168
36169
fe0895cf
VS
36170 RESCOMP=
36171 SETFILE=
36172
f95e4495 36173 case ${BAKEFILE_HOST} in
fe0895cf
VS
36174 *-*-cygwin* | *-*-mingw32* )
36175 if test "$build" != "$host" ; then
36176 RESCOMP=$host_alias-windres
36177 else
36178 # Extract the first word of "windres", so it can be a program name with args.
36179set dummy windres; ac_word=$2
e6cc62c6
VS
36180echo "$as_me:$LINENO: checking for $ac_word" >&5
36181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36182if test "${ac_cv_prog_RESCOMP+set}" = set; then
36183 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
36184else
36185 if test -n "$RESCOMP"; then
36186 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
36187else
e6cc62c6
VS
36188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36189for as_dir in $PATH
36190do
36191 IFS=$as_save_IFS
36192 test -z "$as_dir" && as_dir=.
36193 for ac_exec_ext in '' $ac_executable_extensions; do
36194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36195 ac_cv_prog_RESCOMP="windres"
36196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36197 break 2
36198 fi
36199done
36200done
36201
fe0895cf
VS
36202 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
36203fi
36204fi
e6cc62c6 36205RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 36206if test -n "$RESCOMP"; then
e6cc62c6
VS
36207 echo "$as_me:$LINENO: result: $RESCOMP" >&5
36208echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 36209else
e6cc62c6
VS
36210 echo "$as_me:$LINENO: result: no" >&5
36211echo "${ECHO_T}no" >&6
fe0895cf
VS
36212fi
36213
36214 fi
36215 ;;
e6cc62c6 36216
fe0895cf
VS
36217 *-*-darwin* )
36218 # Extract the first word of "Rez", so it can be a program name with args.
36219set dummy Rez; ac_word=$2
e6cc62c6
VS
36220echo "$as_me:$LINENO: checking for $ac_word" >&5
36221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36222if test "${ac_cv_prog_RESCOMP+set}" = set; then
36223 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
36224else
36225 if test -n "$RESCOMP"; then
36226 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
36227else
e6cc62c6
VS
36228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36229for as_dir in $PATH
36230do
36231 IFS=$as_save_IFS
36232 test -z "$as_dir" && as_dir=.
36233 for ac_exec_ext in '' $ac_executable_extensions; do
36234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36235 ac_cv_prog_RESCOMP="Rez"
36236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36237 break 2
36238 fi
36239done
36240done
36241
fe0895cf
VS
36242 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
36243fi
36244fi
e6cc62c6 36245RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 36246if test -n "$RESCOMP"; then
e6cc62c6
VS
36247 echo "$as_me:$LINENO: result: $RESCOMP" >&5
36248echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 36249else
e6cc62c6
VS
36250 echo "$as_me:$LINENO: result: no" >&5
36251echo "${ECHO_T}no" >&6
fe0895cf
VS
36252fi
36253
36254 # Extract the first word of "SetFile", so it can be a program name with args.
36255set dummy SetFile; ac_word=$2
e6cc62c6
VS
36256echo "$as_me:$LINENO: checking for $ac_word" >&5
36257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36258if test "${ac_cv_prog_SETFILE+set}" = set; then
36259 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
36260else
36261 if test -n "$SETFILE"; then
36262 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
36263else
e6cc62c6
VS
36264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36265for as_dir in $PATH
36266do
36267 IFS=$as_save_IFS
36268 test -z "$as_dir" && as_dir=.
36269 for ac_exec_ext in '' $ac_executable_extensions; do
36270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36271 ac_cv_prog_SETFILE="SetFile"
36272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36273 break 2
36274 fi
36275done
36276done
36277
fe0895cf
VS
36278 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
36279fi
36280fi
e6cc62c6 36281SETFILE=$ac_cv_prog_SETFILE
fe0895cf 36282if test -n "$SETFILE"; then
e6cc62c6
VS
36283 echo "$as_me:$LINENO: result: $SETFILE" >&5
36284echo "${ECHO_T}$SETFILE" >&6
fe0895cf 36285else
e6cc62c6
VS
36286 echo "$as_me:$LINENO: result: no" >&5
36287echo "${ECHO_T}no" >&6
fe0895cf
VS
36288fi
36289
36290 ;;
36291 esac
36292
fe0895cf
VS
36293
36294
e6cc62c6
VS
36295
36296
36297
36298
45842500 36299
ecfd48ca
VZ
36300
36301
45842500
VS
36302 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
36303if test "${enable_precomp_headers+set}" = set; then
36304 enableval="$enable_precomp_headers"
36305 bk_use_pch="$enableval"
36306fi;
36307
36308 GCC_PCH=0
36309
36310 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
36311 if test "x$GCC" = "xyes"; then
36312 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
36313echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
36314 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 36315#line $LINENO "configure"
45842500
VS
36316/* confdefs.h. */
36317_ACEOF
36318cat confdefs.h >>conftest.$ac_ext
36319cat >>conftest.$ac_ext <<_ACEOF
36320/* end confdefs.h. */
36321
36322int
36323main ()
36324{
36325
8bcf2d20
VS
36326 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
36327 #error "no pch support"
36328 #endif
36329 #if (__GNUC__ < 3)
36330 #error "no pch support"
36331 #endif
36332 #if (__GNUC__ == 3) && \
36333 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
36334 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
36335 #error "no pch support"
45842500
VS
36336 #endif
36337
36338 ;
36339 return 0;
36340}
36341_ACEOF
36342rm -f conftest.$ac_objext
36343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 36344 (eval $ac_compile) 2>&5
45842500
VS
36345 ac_status=$?
36346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36347 (exit $ac_status); } &&
789c5f4a 36348 { ac_try='test -s conftest.$ac_objext'
45842500
VS
36349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36350 (eval $ac_try) 2>&5
36351 ac_status=$?
36352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36353 (exit $ac_status); }; }; then
36354
36355 echo "$as_me:$LINENO: result: yes" >&5
36356echo "${ECHO_T}yes" >&6
36357 CPPFLAGS="-fpch-deps $CPPFLAGS"
36358 GCC_PCH=1
36359
36360else
36361 echo "$as_me: failed program was:" >&5
36362sed 's/^/| /' conftest.$ac_ext >&5
36363
36364
36365 echo "$as_me:$LINENO: result: no" >&5
36366echo "${ECHO_T}no" >&6
36367
36368fi
789c5f4a 36369rm -f conftest.$ac_objext conftest.$ac_ext
45842500
VS
36370 if test $GCC_PCH = 1 ; then
36371 cat <<EOF >bk-make-pch
36372#!/bin/sh
36373
36374# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
36375# script. It is used to generated precompiled headers.
36376#
36377# Permission is given to use this file in any way.
36378
36379outfile="\${1}"
36380header="\${2}"
36381shift
36382shift
36383
36384compiler=
36385headerfile=
36386while test \${#} -gt 0; do
36387 case "\${1}" in
36388 -I* )
36389 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
36390 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
36391 headerfile="\${incdir}/\${header}"
36392 fi
36393 ;;
36394 esac
36395 compiler="\${compiler} \${1}"
36396 shift
36397done
36398
36399if test "x\${headerfile}" = "x" ; then
36400 echo "error: can't find header \${header} in include paths" >2
36401else
36402 if test -f \${outfile} ; then
36403 rm -f \${outfile}
36404 else
36405 mkdir -p \`dirname \${outfile}\`
36406 fi
36407 depsfile=".deps/\`basename \${outfile}\`.d"
36408 mkdir -p .deps
36409 # can do this because gcc is >= 3.4:
36410 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
36411 exit \${?}
36412fi
36413EOF
36414 chmod +x bk-make-pch
36415 fi
36416 fi
36417 fi
36418
36419
36420
36421
36422
d78c94f2 36423 COND_BUILD_DEBUG="#"
6f628073 36424 if test "x$BUILD" = "xdebug" ; then
d78c94f2 36425 COND_BUILD_DEBUG=""
6f628073
VS
36426 fi
36427
6c67131a
VS
36428 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
36429 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
36430 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
36431 fi
36432
36433 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
36434 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
36435 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
36436 fi
36437
f93ca9fd
VS
36438 COND_BUILD_DEBUG_UNICODE_0="#"
36439 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
36440 COND_BUILD_DEBUG_UNICODE_0=""
36441 fi
36442
36443 COND_BUILD_DEBUG_UNICODE_1="#"
36444 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
36445 COND_BUILD_DEBUG_UNICODE_1=""
36446 fi
36447
d78c94f2 36448 COND_BUILD_RELEASE="#"
6f628073 36449 if test "x$BUILD" = "xrelease" ; then
d78c94f2 36450 COND_BUILD_RELEASE=""
6b9d41a5
VS
36451 fi
36452
6c67131a
VS
36453 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
36454 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
36455 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
36456 fi
36457
f93ca9fd
VS
36458 COND_BUILD_RELEASE_UNICODE_0="#"
36459 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
36460 COND_BUILD_RELEASE_UNICODE_0=""
36461 fi
36462
36463 COND_BUILD_RELEASE_UNICODE_1="#"
36464 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
36465 COND_BUILD_RELEASE_UNICODE_1=""
36466 fi
36467
6c67131a
VS
36468 COND_DEBUG_FLAG_1="#"
36469 if test "x$DEBUG_FLAG" = "x1" ; then
36470 COND_DEBUG_FLAG_1=""
36471 fi
36472
36473 COND_DEBUG_INFO_0="#"
36474 if test "x$DEBUG_INFO" = "x0" ; then
36475 COND_DEBUG_INFO_0=""
36476 fi
36477
36478 COND_DEBUG_INFO_1="#"
36479 if test "x$DEBUG_INFO" = "x1" ; then
36480 COND_DEBUG_INFO_1=""
36481 fi
36482
f95cd8fa
VS
36483 COND_DEPS_TRACKING_0="#"
36484 if test "x$DEPS_TRACKING" = "x0" ; then
36485 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
36486 fi
36487
8ee2dd05
VS
36488 COND_DEPS_TRACKING_1="#"
36489 if test "x$DEPS_TRACKING" = "x1" ; then
36490 COND_DEPS_TRACKING_1=""
36491 fi
36492
45842500
VS
36493 COND_GCC_PCH_1="#"
36494 if test "x$GCC_PCH" = "x1" ; then
36495 COND_GCC_PCH_1=""
36496 fi
36497
6f628073
VS
36498 COND_MONOLITHIC_0="#"
36499 if test "x$MONOLITHIC" = "x0" ; then
36500 COND_MONOLITHIC_0=""
6b9d41a5
VS
36501 fi
36502
6f628073
VS
36503 COND_MONOLITHIC_0_SHARED_0="#"
36504 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
36505 COND_MONOLITHIC_0_SHARED_0=""
36506 fi
36507
36508 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
36509 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
36510 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 36511 fi
e6cc62c6 36512
8772a1a7
VS
36513 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
36514 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
36515 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
36516 fi
36517
250700e4
RD
36518 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
36519 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
36520 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
36521 fi
36522
eb69fda5
VS
36523 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
36524 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
36525 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
36526 fi
36527
8ee2dd05
VS
36528 COND_MONOLITHIC_0_SHARED_1="#"
36529 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
36530 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 36531 fi
e6cc62c6 36532
6f628073
VS
36533 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
36534 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
36535 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
36536 fi
36537
8772a1a7
VS
36538 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
36539 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
36540 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
36541 fi
36542
250700e4
RD
36543 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
36544 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
36545 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
36546 fi
36547
eb69fda5
VS
36548 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
36549 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
36550 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
36551 fi
36552
f95e4495
VS
36553 COND_MONOLITHIC_0_USE_ODBC_1="#"
36554 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
36555 COND_MONOLITHIC_0_USE_ODBC_1=""
36556 fi
36557
3af038c0
VS
36558 COND_MONOLITHIC_1="#"
36559 if test "x$MONOLITHIC" = "x1" ; then
36560 COND_MONOLITHIC_1=""
36561 fi
36562
6f628073
VS
36563 COND_MONOLITHIC_1_SHARED_0="#"
36564 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
36565 COND_MONOLITHIC_1_SHARED_0=""
36566 fi
36567
36568 COND_MONOLITHIC_1_SHARED_1="#"
36569 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
36570 COND_MONOLITHIC_1_SHARED_1=""
36571 fi
36572
3af038c0
VS
36573 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
36574 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
36575 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
36576 fi
36577
36578 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
36579 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
36580 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
36581 fi
36582
6f628073
VS
36583 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
36584 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
36585 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
36586 fi
36587
3af038c0
VS
36588 COND_PLATFORM_MACOSX_1="#"
36589 if test "x$PLATFORM_MACOSX" = "x1" ; then
36590 COND_PLATFORM_MACOSX_1=""
36591 fi
36592
250700e4
RD
36593 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
36594 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
36595 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
36596 fi
36597
36598 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
36599 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
36600 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
36601 fi
36602
36603 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
36604 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
36605 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
36606 fi
36607
3527f29c
VS
36608 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
36609 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
36610 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
36611 fi
36612
8ee2dd05
VS
36613 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
36614 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
36615 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
36616 fi
36617
45842500
VS
36618 COND_PLATFORM_MAC_1="#"
36619 if test "x$PLATFORM_MAC" = "x1" ; then
36620 COND_PLATFORM_MAC_1=""
36621 fi
36622
3d8c1de0
VS
36623 COND_PLATFORM_OS2_1="#"
36624 if test "x$PLATFORM_OS2" = "x1" ; then
36625 COND_PLATFORM_OS2_1=""
36626 fi
36627
8772a1a7
VS
36628 COND_PLATFORM_UNIX_0="#"
36629 if test "x$PLATFORM_UNIX" = "x0" ; then
36630 COND_PLATFORM_UNIX_0=""
36631 fi
36632
3af038c0
VS
36633 COND_PLATFORM_UNIX_1="#"
36634 if test "x$PLATFORM_UNIX" = "x1" ; then
36635 COND_PLATFORM_UNIX_1=""
36636 fi
36637
3527f29c
VS
36638 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
36639 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
36640 COND_PLATFORM_UNIX_1_USE_GUI_1=""
36641 fi
36642
f93ca9fd
VS
36643 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
36644 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
36645 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
36646 fi
36647
3af038c0
VS
36648 COND_PLATFORM_WIN32_0="#"
36649 if test "x$PLATFORM_WIN32" = "x0" ; then
36650 COND_PLATFORM_WIN32_0=""
36651 fi
36652
36653 COND_PLATFORM_WIN32_1="#"
36654 if test "x$PLATFORM_WIN32" = "x1" ; then
36655 COND_PLATFORM_WIN32_1=""
36656 fi
36657
45842500
VS
36658 COND_SHARED_0="#"
36659 if test "x$SHARED" = "x0" ; then
36660 COND_SHARED_0=""
36661 fi
36662
250700e4
RD
36663 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
36664 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
36665 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
36666 fi
36667
52a5a009
VS
36668 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
36669 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
36670 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
36671 fi
36672
36673 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
36674 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
36675 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
36676 fi
36677
36678 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
36679 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
36680 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
36681 fi
36682
36683 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
36684 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
36685 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
36686 fi
36687
36688 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
36689 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
36690 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
36691 fi
36692
36693 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
36694 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
36695 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
36696 fi
36697
36698 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
36699 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
36700 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
36701 fi
36702
45842500
VS
36703 COND_SHARED_1="#"
36704 if test "x$SHARED" = "x1" ; then
36705 COND_SHARED_1=""
36706 fi
36707
250700e4
RD
36708 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
36709 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
36710 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
36711 fi
36712
6f628073
VS
36713 COND_TOOLKIT_COCOA="#"
36714 if test "x$TOOLKIT" = "xCOCOA" ; then
36715 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
36716 fi
36717
6f628073
VS
36718 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
36719 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36720 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
36721 fi
36722
6f628073
VS
36723 COND_TOOLKIT_GTK="#"
36724 if test "x$TOOLKIT" = "xGTK" ; then
36725 COND_TOOLKIT_GTK=""
f95cd8fa
VS
36726 fi
36727
6f628073
VS
36728 COND_TOOLKIT_GTK_USE_GUI_1="#"
36729 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
36730 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
36731 fi
36732
6f628073
VS
36733 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
36734 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36735 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
36736 fi
36737
3af038c0
VS
36738 COND_TOOLKIT_MAC="#"
36739 if test "x$TOOLKIT" = "xMAC" ; then
36740 COND_TOOLKIT_MAC=""
36741 fi
36742
8772a1a7
VS
36743 COND_TOOLKIT_MAC_USE_GUI_1="#"
36744 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
36745 COND_TOOLKIT_MAC_USE_GUI_1=""
36746 fi
36747
6f628073
VS
36748 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
36749 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36750 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
36751 fi
36752
6f628073
VS
36753 COND_TOOLKIT_MGL="#"
36754 if test "x$TOOLKIT" = "xMGL" ; then
36755 COND_TOOLKIT_MGL=""
8ee2dd05
VS
36756 fi
36757
6f628073
VS
36758 COND_TOOLKIT_MGL_USE_GUI_1="#"
36759 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
36760 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
36761 fi
36762
6f628073
VS
36763 COND_TOOLKIT_MOTIF="#"
36764 if test "x$TOOLKIT" = "xMOTIF" ; then
36765 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
36766 fi
36767
6f628073
VS
36768 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
36769 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
36770 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 36771 fi
e6cc62c6 36772
6f628073
VS
36773 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
36774 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36775 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
36776 fi
36777
6f628073
VS
36778 COND_TOOLKIT_MSW="#"
36779 if test "x$TOOLKIT" = "xMSW" ; then
36780 COND_TOOLKIT_MSW=""
8ee2dd05
VS
36781 fi
36782
6f628073
VS
36783 COND_TOOLKIT_MSW_USE_GUI_1="#"
36784 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
36785 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 36786 fi
e6cc62c6 36787
6f628073
VS
36788 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
36789 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36790 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 36791 fi
e6cc62c6 36792
96c1699d
VS
36793 COND_TOOLKIT_PM="#"
36794 if test "x$TOOLKIT" = "xPM" ; then
36795 COND_TOOLKIT_PM=""
36796 fi
36797
36798 COND_TOOLKIT_PM_USE_GUI_1="#"
36799 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
36800 COND_TOOLKIT_PM_USE_GUI_1=""
36801 fi
36802
36803 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
36804 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36805 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
36806 fi
36807
6f628073
VS
36808 COND_TOOLKIT_X11="#"
36809 if test "x$TOOLKIT" = "xX11" ; then
36810 COND_TOOLKIT_X11=""
9747f85d
VS
36811 fi
36812
6f628073
VS
36813 COND_TOOLKIT_X11_USE_GUI_1="#"
36814 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
36815 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
36816 fi
36817
3af038c0
VS
36818 COND_UNICODE_1="#"
36819 if test "x$UNICODE" = "x1" ; then
36820 COND_UNICODE_1=""
36821 fi
36822
7015ef3a
VZ
36823 COND_USE_EXCEPTIONS_0="#"
36824 if test "x$USE_EXCEPTIONS" = "x0" ; then
36825 COND_USE_EXCEPTIONS_0=""
36826 fi
36827
36828 COND_USE_EXCEPTIONS_1="#"
36829 if test "x$USE_EXCEPTIONS" = "x1" ; then
36830 COND_USE_EXCEPTIONS_1=""
36831 fi
36832
3af038c0
VS
36833 COND_USE_GUI_0="#"
36834 if test "x$USE_GUI" = "x0" ; then
36835 COND_USE_GUI_0=""
36836 fi
36837
36838 COND_USE_GUI_1="#"
36839 if test "x$USE_GUI" = "x1" ; then
36840 COND_USE_GUI_1=""
36841 fi
36842
e6cc62c6 36843 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
36844 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36845 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 36846 fi
e6cc62c6
VS
36847
36848 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
36849 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
36850 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
36851 fi
36852
66a96744
VS
36853 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
36854 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
36855 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
36856 fi
36857
36858 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
36859 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
36860 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
36861 fi
36862
36863 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
36864 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
36865 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
36866 fi
36867
57e7d4ac
VS
36868 COND_USE_ODBC_1="#"
36869 if test "x$USE_ODBC" = "x1" ; then
36870 COND_USE_ODBC_1=""
36871 fi
36872
f93ca9fd
VS
36873 COND_USE_PLUGINS_0="#"
36874 if test "x$USE_PLUGINS" = "x0" ; then
36875 COND_USE_PLUGINS_0=""
36876 fi
36877
6f628073
VS
36878 COND_USE_SOSYMLINKS_1="#"
36879 if test "x$USE_SOSYMLINKS" = "x1" ; then
36880 COND_USE_SOSYMLINKS_1=""
b625909c
VS
36881 fi
36882
6f628073
VS
36883 COND_USE_SOVERLINUX_1="#"
36884 if test "x$USE_SOVERLINUX" = "x1" ; then
36885 COND_USE_SOVERLINUX_1=""
b625909c
VS
36886 fi
36887
6f628073
VS
36888 COND_USE_SOVERSION_0="#"
36889 if test "x$USE_SOVERSION" = "x0" ; then
36890 COND_USE_SOVERSION_0=""
fddeb06b 36891 fi
fe0895cf 36892
6f628073
VS
36893 COND_USE_SOVERSOLARIS_1="#"
36894 if test "x$USE_SOVERSOLARIS" = "x1" ; then
36895 COND_USE_SOVERSOLARIS_1=""
fddeb06b 36896 fi
fe0895cf 36897
f93ca9fd
VS
36898 COND_WITH_PLUGIN_SDL_1="#"
36899 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
36900 COND_WITH_PLUGIN_SDL_1=""
36901 fi
36902
36903 COND_WITH_SDL_1="#"
36904 if test "x$WITH_SDL" = "x1" ; then
36905 COND_WITH_SDL_1=""
36906 fi
36907
3af038c0
VS
36908 COND_WXUNIV_1="#"
36909 if test "x$WXUNIV" = "x1" ; then
36910 COND_WXUNIV_1=""
36911 fi
36912
66a96744
VS
36913 COND_WXUSE_EXPAT_BUILTIN="#"
36914 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
36915 COND_WXUSE_EXPAT_BUILTIN=""
36916 fi
36917
02980527
VS
36918 COND_WXUSE_LIBJPEG_BUILTIN="#"
36919 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
36920 COND_WXUSE_LIBJPEG_BUILTIN=""
36921 fi
36922
36923 COND_WXUSE_LIBPNG_BUILTIN="#"
36924 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
36925 COND_WXUSE_LIBPNG_BUILTIN=""
36926 fi
36927
36928 COND_WXUSE_LIBTIFF_BUILTIN="#"
36929 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
36930 COND_WXUSE_LIBTIFF_BUILTIN=""
36931 fi
36932
36933 COND_WXUSE_ODBC_BUILTIN="#"
36934 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
36935 COND_WXUSE_ODBC_BUILTIN=""
36936 fi
36937
36938 COND_WXUSE_REGEX_BUILTIN="#"
36939 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
36940 COND_WXUSE_REGEX_BUILTIN=""
36941 fi
36942
36943 COND_WXUSE_ZLIB_BUILTIN="#"
36944 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
36945 COND_WXUSE_ZLIB_BUILTIN=""
36946 fi
36947
1772d20c 36948
fe0895cf 36949
fe0895cf 36950
fe0895cf 36951
45842500 36952if test $GCC_PCH = 1 ; then
130711ba 36953 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
45842500
VS
36954 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
36955else
36956 case "${host}" in
36957 powerpc-*-darwin* )
130711ba
VS
36958 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
36959 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
45842500 36960 ;;
45842500
VS
36961 esac
36962fi
fe0895cf
VS
36963
36964
fddeb06b 36965SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
36966
36967
36968
36969
36970
36971
36972
36973
36974
36975
36976
36977
36978
36979
36980
36981
36982
36983
36984
36985
36986
36987
36988
36989
36990
36991
36992
36993
36994
36995
36996
36997
36998
36999
37000
37001
37002
37003
37004
37005
37006
37007
37008
37009
37010
37011
37012
37013
37014
37015
37016
37017
37018
37019
37020
37021
37022
37023
37024
37025
37026
37027
37028
37029
37030
37031
37032
37033
37034
37035
37036
37037
37038
37039
37040
37041
37042
37043
37044
37045
37046
37047
37048
37049
37050
37051
37052
37053
37054
37055
37056
37057
37058
37059
fe0895cf 37060
f0290fca
VS
37061
37062
e6cc62c6
VS
37063
37064
37065echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37066echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
789c5f4a 37067set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
e6cc62c6
VS
37068if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37069 echo $ECHO_N "(cached) $ECHO_C" >&6
37070else
37071 cat >conftest.make <<\_ACEOF
37072all:
37073 @echo 'ac_maketemp="$(MAKE)"'
37074_ACEOF
37075# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
37076eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
37077if test -n "$ac_maketemp"; then
37078 eval ac_cv_prog_make_${ac_make}_set=yes
37079else
37080 eval ac_cv_prog_make_${ac_make}_set=no
37081fi
37082rm -f conftest.make
37083fi
37084if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
37085 echo "$as_me:$LINENO: result: yes" >&5
37086echo "${ECHO_T}yes" >&6
37087 SET_MAKE=
37088else
37089 echo "$as_me:$LINENO: result: no" >&5
37090echo "${ECHO_T}no" >&6
37091 SET_MAKE="MAKE=${MAKE-make}"
37092fi
37093
37094
37095if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
37096 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
37097fi
37098
37099 ac_config_headers="$ac_config_headers setup.h"
37100
37101
81345eef 37102 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
37103
37104
37105 ac_config_commands="$ac_config_commands default"
37106
37107
9de9b8f0 37108
6c3e36af
VZ
37109if test "$wxUSE_GUI" = "yes"; then
37110 SUBDIRS="samples demos utils contrib"
37111else SUBDIRS="samples utils"
37112fi
e6cc62c6 37113
166263e6 37114for subdir in `echo $SUBDIRS`; do
9747f85d 37115 if test -d ${srcdir}/${subdir} ; then
6c3e36af 37116 if test "$wxUSE_GUI" = "yes"; then
166263e6 37117 if test ${subdir} = "samples"; then
8772a1a7
VS
37118 makefiles="samples/Makefile.in $makefiles"
37119 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
37120 if test -d $srcdir/samples/$sample; then
37121 makefiles="samples/$sample/Makefile.in $makefiles"
37122 fi
37123 done
37124 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
37125 fi
6c3e36af 37126 else if test ${subdir} = "samples"; then
8772a1a7 37127 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af 37128 else makefiles="utils/HelpGen/Makefile.in \
2bf8cafb
VS
37129 utils/HelpGen/src/Makefile.in \
37130 utils/tex2rtf/Makefile.in \
37131 utils/tex2rtf/src/Makefile.in"
6c3e36af
VZ
37132 fi
37133 fi
37134
9747f85d
VS
37135 for mkin in $makefiles ; do
37136 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
37137 ac_config_files="$ac_config_files $mk"
e6cc62c6 37138
9747f85d
VS
37139 done
37140 fi
37141done
e6cc62c6 37142
9de9b8f0 37143
e6cc62c6
VS
37144cat >confcache <<\_ACEOF
37145# This file is a shell script that caches the results of configure
37146# tests run on this system so they can be shared between configure
37147# scripts and configure runs, see configure's option --config-cache.
37148# It is not useful on other systems. If it contains results you don't
37149# want to keep, you may remove or edit it.
37150#
37151# config.status only pays attention to the cache file if you give it
37152# the --recheck option to rerun configure.
37153#
37154# `ac_cv_env_foo' variables (set or unset) will be overridden when
37155# loading this file, other *unset* `ac_cv_foo' will be assigned the
37156# following values.
37157
37158_ACEOF
37159
37160# The following way of writing the cache mishandles newlines in values,
37161# but we know of no workaround that is simple, portable, and efficient.
37162# So, don't put newlines in cache variables' values.
37163# Ultrix sh set writes to stderr and can't be redirected directly,
37164# and sets the high bit in the cache file unless we assign to the vars.
37165{
37166 (set) 2>&1 |
37167 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37168 *ac_space=\ *)
37169 # `set' does not quote correctly, so add quotes (double-quote
37170 # substitution turns \\\\ into \\, and sed turns \\ into \).
37171 sed -n \
789c5f4a
VZ
37172 "s/'/'\\\\''/g;
37173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
37174 ;;
37175 *)
37176 # `set' quotes correctly as required by POSIX, so do not add quotes.
37177 sed -n \
789c5f4a 37178 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
37179 ;;
37180 esac;
37181} |
37182 sed '
37183 t clear
37184 : clear
37185 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37186 t end
37187 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37188 : end' >>confcache
37189if diff $cache_file confcache >/dev/null 2>&1; then :; else
37190 if test -w $cache_file; then
37191 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37192 cat confcache >$cache_file
37193 else
37194 echo "not updating unwritable cache $cache_file"
37195 fi
37196fi
37197rm -f confcache
37198
37199test "x$prefix" = xNONE && prefix=$ac_default_prefix
37200# Let make expand exec_prefix.
37201test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37202
37203# VPATH may cause trouble with some makes, so we remove $(srcdir),
37204# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
37205# trailing colons and then remove the whole line if VPATH becomes empty
37206# (actually we leave an empty line to preserve line numbers).
37207if test "x$srcdir" = x.; then
789c5f4a 37208 ac_vpsub='/^[ ]*VPATH[ ]*=/{
e6cc62c6
VS
37209s/:*\$(srcdir):*/:/;
37210s/:*\${srcdir}:*/:/;
37211s/:*@srcdir@:*/:/;
789c5f4a 37212s/^\([^=]*=[ ]*\):*/\1/;
e6cc62c6 37213s/:*$//;
789c5f4a 37214s/^[^=]*=[ ]*$//;
e6cc62c6
VS
37215}'
37216fi
37217
37218DEFS=-DHAVE_CONFIG_H
37219
37220ac_libobjs=
37221ac_ltlibobjs=
37222for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37223 # 1. Remove the extension, and $U if already installed.
37224 ac_i=`echo "$ac_i" |
789c5f4a 37225 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
e6cc62c6
VS
37226 # 2. Add them.
37227 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
37228 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
37229done
37230LIBOBJS=$ac_libobjs
37231
37232LTLIBOBJS=$ac_ltlibobjs
37233
37234
37235
37236: ${CONFIG_STATUS=./config.status}
37237ac_clean_files_save=$ac_clean_files
37238ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37239{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
37240echo "$as_me: creating $CONFIG_STATUS" >&6;}
37241cat >$CONFIG_STATUS <<_ACEOF
37242#! $SHELL
37243# Generated by $as_me.
37244# Run this file to recreate the current configuration.
37245# Compiler output produced by configure, useful for debugging
37246# configure, is in config.log if it exists.
37247
37248debug=false
37249ac_cs_recheck=false
37250ac_cs_silent=false
37251SHELL=\${CONFIG_SHELL-$SHELL}
37252_ACEOF
37253
37254cat >>$CONFIG_STATUS <<\_ACEOF
37255## --------------------- ##
37256## M4sh Initialization. ##
37257## --------------------- ##
37258
37259# Be Bourne compatible
37260if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
37261 emulate sh
37262 NULLCMD=:
37263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
37264 # is contrary to our usage. Disable this feature.
37265 alias -g '${1+"$@"}'='"$@"'
37266elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
37267 set -o posix
37268fi
37269
37270# Support unset when possible.
789c5f4a 37271if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
e6cc62c6
VS
37272 as_unset=unset
37273else
37274 as_unset=false
37275fi
37276
37277
37278# Work around bugs in pre-3.0 UWIN ksh.
37279$as_unset ENV MAIL MAILPATH
37280PS1='$ '
37281PS2='> '
37282PS4='+ '
37283
37284# NLS nuisances.
37285for as_var in \
37286 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
37287 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
37288 LC_TELEPHONE LC_TIME
37289do
789c5f4a 37290 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
37291 eval $as_var=C; export $as_var
37292 else
37293 $as_unset $as_var
37294 fi
37295done
37296
37297# Required to use basename.
37298if expr a : '\(a\)' >/dev/null 2>&1; then
37299 as_expr=expr
37300else
37301 as_expr=false
37302fi
37303
37304if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
37305 as_basename=basename
37306else
37307 as_basename=false
37308fi
37309
37310
37311# Name of the executable.
37312as_me=`$as_basename "$0" ||
37313$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37314 X"$0" : 'X\(//\)$' \| \
37315 X"$0" : 'X\(/\)$' \| \
37316 . : '\(.\)' 2>/dev/null ||
37317echo X/"$0" |
37318 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
37319 /^X\/\(\/\/\)$/{ s//\1/; q; }
37320 /^X\/\(\/\).*/{ s//\1/; q; }
37321 s/.*/./; q'`
37322
37323
37324# PATH needs CR, and LINENO needs CR and PATH.
37325# Avoid depending upon Character Ranges.
37326as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37327as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37328as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37329as_cr_digits='0123456789'
37330as_cr_alnum=$as_cr_Letters$as_cr_digits
37331
37332# The user is always right.
37333if test "${PATH_SEPARATOR+set}" != set; then
37334 echo "#! /bin/sh" >conf$$.sh
37335 echo "exit 0" >>conf$$.sh
37336 chmod +x conf$$.sh
37337 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37338 PATH_SEPARATOR=';'
37339 else
37340 PATH_SEPARATOR=:
37341 fi
37342 rm -f conf$$.sh
37343fi
37344
37345
37346 as_lineno_1=$LINENO
37347 as_lineno_2=$LINENO
37348 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37349 test "x$as_lineno_1" != "x$as_lineno_2" &&
37350 test "x$as_lineno_3" = "x$as_lineno_2" || {
37351 # Find who we are. Look in the path if we contain no path at all
37352 # relative or not.
37353 case $0 in
37354 *[\\/]* ) as_myself=$0 ;;
37355 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37356for as_dir in $PATH
37357do
37358 IFS=$as_save_IFS
37359 test -z "$as_dir" && as_dir=.
37360 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37361done
37362
37363 ;;
37364 esac
37365 # We did not find ourselves, most probably we were run as `sh COMMAND'
37366 # in which case we are not to be found in the path.
37367 if test "x$as_myself" = x; then
37368 as_myself=$0
37369 fi
37370 if test ! -f "$as_myself"; then
37371 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
37372echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
37373 { (exit 1); exit 1; }; }
37374 fi
37375 case $CONFIG_SHELL in
37376 '')
37377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37378for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
37379do
37380 IFS=$as_save_IFS
37381 test -z "$as_dir" && as_dir=.
37382 for as_base in sh bash ksh sh5; do
37383 case $as_dir in
37384 /*)
37385 if ("$as_dir/$as_base" -c '
37386 as_lineno_1=$LINENO
37387 as_lineno_2=$LINENO
37388 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37389 test "x$as_lineno_1" != "x$as_lineno_2" &&
37390 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
37391 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
37392 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
37393 CONFIG_SHELL=$as_dir/$as_base
37394 export CONFIG_SHELL
37395 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
37396 fi;;
37397 esac
37398 done
37399done
37400;;
37401 esac
37402
37403 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
37404 # uniformly replaced by the line number. The first 'sed' inserts a
37405 # line-number line before each line; the second 'sed' does the real
37406 # work. The second script uses 'N' to pair each line-number line
37407 # with the numbered line, and appends trailing '-' during
37408 # substitution so that $LINENO is not a special case at line end.
37409 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
37410 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
37411 sed '=' <$as_myself |
37412 sed '
37413 N
37414 s,$,-,
37415 : loop
37416 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
37417 t loop
37418 s,-$,,
37419 s,^['$as_cr_digits']*\n,,
37420 ' >$as_me.lineno &&
37421 chmod +x $as_me.lineno ||
37422 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
37423echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
37424 { (exit 1); exit 1; }; }
37425
37426 # Don't try to exec as it changes $[0], causing all sort of problems
37427 # (the dirname of $[0] is not the place where we might find the
37428 # original and so on. Autoconf is especially sensible to this).
37429 . ./$as_me.lineno
37430 # Exit status is that of the last command.
37431 exit
37432}
37433
37434
37435case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
37436 *c*,-n*) ECHO_N= ECHO_C='
37437' ECHO_T=' ' ;;
37438 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
37439 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
37440esac
37441
37442if expr a : '\(a\)' >/dev/null 2>&1; then
37443 as_expr=expr
37444else
37445 as_expr=false
37446fi
37447
37448rm -f conf$$ conf$$.exe conf$$.file
37449echo >conf$$.file
37450if ln -s conf$$.file conf$$ 2>/dev/null; then
37451 # We could just check for DJGPP; but this test a) works b) is more generic
37452 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
37453 if test -f conf$$.exe; then
37454 # Don't use ln at all; we don't have any links
37455 as_ln_s='cp -p'
37456 else
37457 as_ln_s='ln -s'
37458 fi
37459elif ln conf$$.file conf$$ 2>/dev/null; then
37460 as_ln_s=ln
37461else
37462 as_ln_s='cp -p'
37463fi
37464rm -f conf$$ conf$$.exe conf$$.file
37465
37466if mkdir -p . 2>/dev/null; then
37467 as_mkdir_p=:
37468else
37469 as_mkdir_p=false
37470fi
37471
37472as_executable_p="test -f"
37473
37474# Sed expression to map a string onto a valid CPP name.
789c5f4a 37475as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
e6cc62c6
VS
37476
37477# Sed expression to map a string onto a valid variable name.
789c5f4a 37478as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
e6cc62c6
VS
37479
37480
37481# IFS
37482# We need space, tab and new line, in precisely that order.
37483as_nl='
37484'
37485IFS=" $as_nl"
37486
37487# CDPATH.
37488$as_unset CDPATH
37489
37490exec 6>&1
37491
37492# Open the log real soon, to keep \$[0] and so on meaningful, and to
37493# report actual input values of CONFIG_FILES etc. instead of their
37494# values after options handling. Logging --version etc. is OK.
37495exec 5>>config.log
37496{
37497 echo
37498 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37499## Running $as_me. ##
37500_ASBOX
37501} >&5
37502cat >&5 <<_CSEOF
37503
e46d2a18 37504This file was extended by wxWindows $as_me 2.5.1, which was
789c5f4a 37505generated by GNU Autoconf 2.57. Invocation command line was
e6cc62c6
VS
37506
37507 CONFIG_FILES = $CONFIG_FILES
37508 CONFIG_HEADERS = $CONFIG_HEADERS
37509 CONFIG_LINKS = $CONFIG_LINKS
37510 CONFIG_COMMANDS = $CONFIG_COMMANDS
37511 $ $0 $@
37512
37513_CSEOF
37514echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
37515echo >&5
37516_ACEOF
37517
37518# Files that config.status was made for.
37519if test -n "$ac_config_files"; then
37520 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
37521fi
37522
37523if test -n "$ac_config_headers"; then
37524 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
37525fi
37526
37527if test -n "$ac_config_links"; then
37528 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
37529fi
37530
37531if test -n "$ac_config_commands"; then
37532 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
37533fi
37534
37535cat >>$CONFIG_STATUS <<\_ACEOF
37536
37537ac_cs_usage="\
37538\`$as_me' instantiates files from templates according to the
37539current configuration.
37540
37541Usage: $0 [OPTIONS] [FILE]...
37542
37543 -h, --help print this help, then exit
37544 -V, --version print version number, then exit
37545 -q, --quiet do not print progress messages
37546 -d, --debug don't remove temporary files
37547 --recheck update $as_me by reconfiguring in the same conditions
37548 --file=FILE[:TEMPLATE]
789c5f4a 37549 instantiate the configuration file FILE
e6cc62c6 37550 --header=FILE[:TEMPLATE]
789c5f4a 37551 instantiate the configuration header FILE
e6cc62c6
VS
37552
37553Configuration files:
37554$config_files
37555
37556Configuration headers:
37557$config_headers
37558
37559Configuration commands:
37560$config_commands
37561
37562Report bugs to <bug-autoconf@gnu.org>."
37563_ACEOF
37564
37565cat >>$CONFIG_STATUS <<_ACEOF
37566ac_cs_version="\\
e46d2a18 37567wxWindows config.status 2.5.1
789c5f4a 37568configured by $0, generated by GNU Autoconf 2.57,
e6cc62c6
VS
37569 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
37570
789c5f4a
VZ
37571Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
37572Free Software Foundation, Inc.
e6cc62c6
VS
37573This config.status script is free software; the Free Software Foundation
37574gives unlimited permission to copy, distribute and modify it."
37575srcdir=$srcdir
37576INSTALL="$INSTALL"
37577_ACEOF
37578
37579cat >>$CONFIG_STATUS <<\_ACEOF
37580# If no file are specified by the user, then we need to provide default
37581# value. By we need to know if files were specified by the user.
37582ac_need_defaults=:
37583while test $# != 0
37584do
37585 case $1 in
37586 --*=*)
37587 ac_option=`expr "x$1" : 'x\([^=]*\)='`
37588 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
37589 ac_shift=:
37590 ;;
37591 -*)
37592 ac_option=$1
37593 ac_optarg=$2
37594 ac_shift=shift
37595 ;;
37596 *) # This is not an option, so the user has probably given explicit
37597 # arguments.
37598 ac_option=$1
37599 ac_need_defaults=false;;
37600 esac
37601
37602 case $ac_option in
37603 # Handling of the options.
37604_ACEOF
37605cat >>$CONFIG_STATUS <<\_ACEOF
37606 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37607 ac_cs_recheck=: ;;
37608 --version | --vers* | -V )
37609 echo "$ac_cs_version"; exit 0 ;;
37610 --he | --h)
37611 # Conflict between --help and --header
37612 { { echo "$as_me:$LINENO: error: ambiguous option: $1
37613Try \`$0 --help' for more information." >&5
37614echo "$as_me: error: ambiguous option: $1
37615Try \`$0 --help' for more information." >&2;}
37616 { (exit 1); exit 1; }; };;
37617 --help | --hel | -h )
37618 echo "$ac_cs_usage"; exit 0 ;;
37619 --debug | --d* | -d )
37620 debug=: ;;
37621 --file | --fil | --fi | --f )
37622 $ac_shift
37623 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
37624 ac_need_defaults=false;;
37625 --header | --heade | --head | --hea )
37626 $ac_shift
37627 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
37628 ac_need_defaults=false;;
37629 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37630 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37631 ac_cs_silent=: ;;
37632
37633 # This is an error.
37634 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
37635Try \`$0 --help' for more information." >&5
37636echo "$as_me: error: unrecognized option: $1
37637Try \`$0 --help' for more information." >&2;}
37638 { (exit 1); exit 1; }; } ;;
37639
37640 *) ac_config_targets="$ac_config_targets $1" ;;
37641
37642 esac
37643 shift
37644done
37645
37646ac_configure_extra_args=
37647
37648if $ac_cs_silent; then
37649 exec 6>/dev/null
37650 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
37651fi
37652
e6cc62c6
VS
37653_ACEOF
37654cat >>$CONFIG_STATUS <<_ACEOF
37655if \$ac_cs_recheck; then
37656 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
37657 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
37658fi
37659
e6cc62c6 37660_ACEOF
fe0895cf 37661
e6cc62c6 37662cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 37663#
e6cc62c6 37664# INIT-COMMANDS section.
10f2d63a 37665#
10f2d63a 37666
a0b9e27f 37667
e6cc62c6
VS
37668 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
37669 LN_S="${LN_S}"
10f2d63a 37670
10f2d63a 37671
10f2d63a 37672
e6cc62c6 37673_ACEOF
8284b0c5 37674
52127426 37675
247f5006 37676
e6cc62c6
VS
37677cat >>$CONFIG_STATUS <<\_ACEOF
37678for ac_config_target in $ac_config_targets
247f5006 37679do
e6cc62c6
VS
37680 case "$ac_config_target" in
37681 # Handling of arguments.
81345eef
VZ
37682 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
37683 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
37684 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 37685 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
37686 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37687 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
37688 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
37689echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
37690 { (exit 1); exit 1; }; };;
247f5006
VZ
37691 esac
37692done
37693
e6cc62c6
VS
37694# If the user did not use the arguments to specify the items to instantiate,
37695# then the envvar interface is used. Set only those that are not.
37696# We use the long form for the default assignment because of an extremely
37697# bizarre bug on SunOS 4.1.3.
37698if $ac_need_defaults; then
37699 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37700 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37701 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37702fi
37703
37704# Have a temporary directory for convenience. Make it in the build tree
37705# simply because there is no reason to put it here, and in addition,
37706# creating and moving files from /tmp can sometimes cause problems.
37707# Create a temporary directory, and hook for its removal unless debugging.
37708$debug ||
37709{
37710 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
37711 trap '{ (exit 1); exit 1; }' 1 2 13 15
37712}
247f5006 37713
e6cc62c6 37714# Create a (secure) tmp directory for tmp files.
247f5006 37715
e6cc62c6
VS
37716{
37717 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
37718 test -n "$tmp" && test -d "$tmp"
37719} ||
37720{
37721 tmp=./confstat$$-$RANDOM
37722 (umask 077 && mkdir $tmp)
37723} ||
37724{
37725 echo "$me: cannot create a temporary directory in ." >&2
37726 { (exit 1); exit 1; }
37727}
37728
37729_ACEOF
37730
37731cat >>$CONFIG_STATUS <<_ACEOF
37732
37733#
37734# CONFIG_FILES section.
37735#
247f5006 37736
e6cc62c6
VS
37737# No need to generate the scripts if there are no CONFIG_FILES.
37738# This happens for instance when ./config.status config.h
37739if test -n "\$CONFIG_FILES"; then
37740 # Protect against being on the right side of a sed subst in config.status.
37741 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
37742 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
37743s,@SHELL@,$SHELL,;t t
37744s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
37745s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
37746s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
37747s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
37748s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
37749s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
37750s,@exec_prefix@,$exec_prefix,;t t
37751s,@prefix@,$prefix,;t t
37752s,@program_transform_name@,$program_transform_name,;t t
37753s,@bindir@,$bindir,;t t
37754s,@sbindir@,$sbindir,;t t
37755s,@libexecdir@,$libexecdir,;t t
37756s,@datadir@,$datadir,;t t
37757s,@sysconfdir@,$sysconfdir,;t t
37758s,@sharedstatedir@,$sharedstatedir,;t t
37759s,@localstatedir@,$localstatedir,;t t
37760s,@libdir@,$libdir,;t t
37761s,@includedir@,$includedir,;t t
37762s,@oldincludedir@,$oldincludedir,;t t
37763s,@infodir@,$infodir,;t t
37764s,@mandir@,$mandir,;t t
37765s,@build_alias@,$build_alias,;t t
37766s,@host_alias@,$host_alias,;t t
37767s,@target_alias@,$target_alias,;t t
37768s,@DEFS@,$DEFS,;t t
37769s,@ECHO_C@,$ECHO_C,;t t
37770s,@ECHO_N@,$ECHO_N,;t t
37771s,@ECHO_T@,$ECHO_T,;t t
37772s,@LIBS@,$LIBS,;t t
37773s,@build@,$build,;t t
37774s,@build_cpu@,$build_cpu,;t t
37775s,@build_vendor@,$build_vendor,;t t
37776s,@build_os@,$build_os,;t t
37777s,@host@,$host,;t t
37778s,@host_cpu@,$host_cpu,;t t
37779s,@host_vendor@,$host_vendor,;t t
37780s,@host_os@,$host_os,;t t
37781s,@target@,$target,;t t
37782s,@target_cpu@,$target_cpu,;t t
37783s,@target_vendor@,$target_vendor,;t t
37784s,@target_os@,$target_os,;t t
37785s,@CC@,$CC,;t t
37786s,@CFLAGS@,$CFLAGS,;t t
37787s,@LDFLAGS@,$LDFLAGS,;t t
37788s,@CPPFLAGS@,$CPPFLAGS,;t t
37789s,@ac_ct_CC@,$ac_ct_CC,;t t
37790s,@EXEEXT@,$EXEEXT,;t t
37791s,@OBJEXT@,$OBJEXT,;t t
37792s,@CPP@,$CPP,;t t
37793s,@EGREP@,$EGREP,;t t
37794s,@CXX@,$CXX,;t t
37795s,@CXXFLAGS@,$CXXFLAGS,;t t
37796s,@ac_ct_CXX@,$ac_ct_CXX,;t t
37797s,@RANLIB@,$RANLIB,;t t
37798s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
37799s,@AR@,$AR,;t t
37800s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
37801s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
37802s,@INSTALL_DATA@,$INSTALL_DATA,;t t
37803s,@STRIP@,$STRIP,;t t
37804s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
37805s,@LN_S@,$LN_S,;t t
37806s,@CXXCPP@,$CXXCPP,;t t
672abd7a 37807s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
37808s,@PKG_CONFIG@,$PKG_CONFIG,;t t
37809s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
37810s,@GTK_LIBS@,$GTK_LIBS,;t t
37811s,@GTK_CONFIG@,$GTK_CONFIG,;t t
37812s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
37813s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
37814s,@X_CFLAGS@,$X_CFLAGS,;t t
37815s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
37816s,@X_LIBS@,$X_LIBS,;t t
37817s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
37818s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
37819s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
37820s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
37821s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
37822s,@RESCOMP@,$RESCOMP,;t t
37823s,@DEREZ@,$DEREZ,;t t
37824s,@SETFILE@,$SETFILE,;t t
37825s,@LIBICONV@,$LIBICONV,;t t
edd891e2 37826s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
f93ca9fd
VS
37827s,@SDL_CONFIG@,$SDL_CONFIG,;t t
37828s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
37829s,@SDL_LIBS@,$SDL_LIBS,;t t
edd891e2
VS
37830s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
37831s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
37832s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
37833s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 37834s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
37835s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
37836s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
37837s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
37838s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
37839s,@VENDOR@,$VENDOR,;t t
37840s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
37841s,@WXUNIV@,$WXUNIV,;t t
37842s,@MONOLITHIC@,$MONOLITHIC,;t t
f93ca9fd 37843s,@USE_PLUGINS@,$USE_PLUGINS,;t t
e6cc62c6 37844s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 37845s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
3527f29c 37846s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
bb41dcbe 37847s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 37848s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 37849s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
f93ca9fd
VS
37850s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
37851s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
e6cc62c6
VS
37852s,@UNICODE@,$UNICODE,;t t
37853s,@BUILD@,$BUILD,;t t
6c67131a
VS
37854s,@DEBUG_INFO@,$DEBUG_INFO,;t t
37855s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
37856s,@SHARED@,$SHARED,;t t
37857s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
37858s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
37859s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 37860s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 37861s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
37862s,@SET_MAKE@,$SET_MAKE,;t t
37863s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
37864s,@ac_ct_AR@,$ac_ct_AR,;t t
37865s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
37866s,@NM@,$NM,;t t
37867s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 37868s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 37869s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
37870s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
37871s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
37872s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
37873s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
37874s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 37875s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 37876s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 37877s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 37878s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 37879s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 37880s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 37881s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
37882s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
37883s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
37884s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
37885s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
37886s,@PIC_FLAG@,$PIC_FLAG,;t t
37887s,@USE_SOVERSION@,$USE_SOVERSION,;t t
37888s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
37889s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
37890s,@USE_MACVERSION@,$USE_MACVERSION,;t t
37891s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
37892s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 37893s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 37894s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 37895s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
37896s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
37897s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
f93ca9fd
VS
37898s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
37899s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
d78c94f2 37900s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a 37901s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
f93ca9fd
VS
37902s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
37903s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
6c67131a
VS
37904s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
37905s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
37906s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 37907s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 37908s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 37909s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 37910s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
37911s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
37912s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 37913s,@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 37914s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 37915s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 37916s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 37917s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 37918s,@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 37919s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 37920s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
f95e4495 37921s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
3af038c0 37922s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
37923s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
37924s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
37925s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
37926s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 37927s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 37928s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
37929s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
37930s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
37931s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
3527f29c 37932s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
8ee2dd05 37933s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 37934s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 37935s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 37936s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0 37937s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
3527f29c 37938s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
f93ca9fd 37939s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
3af038c0
VS
37940s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
37941s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 37942s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 37943s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
37944s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
37945s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
37946s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
37947s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
37948s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
37949s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
37950s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 37951s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 37952s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
37953s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
37954s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
37955s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
37956s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 37957s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 37958s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 37959s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
37960s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
37961s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
37962s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
37963s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
37964s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
37965s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 37966s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
37967s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
37968s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
37969s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
37970s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
37971s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
37972s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
37973s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0 37974s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
7015ef3a
VZ
37975s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
37976s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
3af038c0
VS
37977s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
37978s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
37979s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
37980s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
37981s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
37982s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
37983s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
57e7d4ac 37984s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
f93ca9fd 37985s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
6f628073
VS
37986s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
37987s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
37988s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
37989s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
f93ca9fd
VS
37990s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
37991s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
3af038c0 37992s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 37993s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
37994s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
37995s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
37996s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
37997s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
37998s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
37999s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
38000s,@PATH_IFS@,$PATH_IFS,;t t
38001s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
38002s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
38003s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
38004s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
38005s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
38006s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
38007s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
38008s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
38009s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
38010s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
38011s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
38012s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
38013s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
38014s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
38015s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
38016s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
38017s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
38018s,@WX_ALL@,$WX_ALL,;t t
38019s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
38020s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
38021s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
38022s,@STATIC_FLAG@,$STATIC_FLAG,;t t
38023s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
38024s,@USE_GUI@,$USE_GUI,;t t
38025s,@AFMINSTALL@,$AFMINSTALL,;t t
38026s,@WIN32INSTALL@,$WIN32INSTALL,;t t
38027s,@TOOLKIT@,$TOOLKIT,;t t
38028s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
38029s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
38030s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
38031s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
38032s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
38033s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
38034s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 38035s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
38036s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
38037s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
38038s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
38039s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
38040s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
38041s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 38042s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 38043s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
38044s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
38045s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
38046s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
38047s,@ALL_HEADERS@,$ALL_HEADERS,;t t
38048s,@ALL_SOURCES@,$ALL_SOURCES,;t t
38049s,@GUIDIST@,$GUIDIST,;t t
38050s,@PORT_FILES@,$PORT_FILES,;t t
38051s,@DISTDIR@,$DISTDIR,;t t
38052s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
38053s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
38054s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
38055s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
38056s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
38057s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
38058s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
38059s,@RESFLAGS@,$RESFLAGS,;t t
38060s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
38061s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
38062s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
e6cc62c6
VS
38063s,@LIBWXMACRES@,$LIBWXMACRES,;t t
38064s,@MACRESCOMP@,$MACRESCOMP,;t t
38065s,@MACSETFILE@,$MACSETFILE,;t t
38066s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
38067s,@GCC@,$GCC,;t t
38068s,@DLLTOOL@,$DLLTOOL,;t t
38069s,@AS@,$AS,;t t
e6cc62c6
VS
38070s,@LD@,$LD,;t t
38071s,@MAKEINFO@,$MAKEINFO,;t t
38072s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
38073s,@LIBOBJS@,$LIBOBJS,;t t
38074s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
38075CEOF
38076
e6cc62c6
VS
38077_ACEOF
38078
38079 cat >>$CONFIG_STATUS <<\_ACEOF
38080 # Split the substitutions into bite-sized pieces for seds with
38081 # small command number limits, like on Digital OSF/1 and HP-UX.
38082 ac_max_sed_lines=48
38083 ac_sed_frag=1 # Number of current file.
38084 ac_beg=1 # First line for current file.
38085 ac_end=$ac_max_sed_lines # Line after last line for current file.
38086 ac_more_lines=:
38087 ac_sed_cmds=
38088 while $ac_more_lines; do
38089 if test $ac_beg -gt 1; then
38090 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 38091 else
e6cc62c6
VS
38092 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
38093 fi
38094 if test ! -s $tmp/subs.frag; then
38095 ac_more_lines=false
38096 else
38097 # The purpose of the label and of the branching condition is to
38098 # speed up the sed processing (if there are no `@' at all, there
38099 # is no need to browse any of the substitutions).
38100 # These are the two extra sed commands mentioned above.
38101 (echo ':t
38102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
38103 if test -z "$ac_sed_cmds"; then
789c5f4a 38104 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6 38105 else
789c5f4a 38106 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6
VS
38107 fi
38108 ac_sed_frag=`expr $ac_sed_frag + 1`
38109 ac_beg=$ac_end
38110 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 38111 fi
e6cc62c6
VS
38112 done
38113 if test -z "$ac_sed_cmds"; then
38114 ac_sed_cmds=cat
10f2d63a 38115 fi
e6cc62c6 38116fi # test -n "$CONFIG_FILES"
10f2d63a 38117
e6cc62c6
VS
38118_ACEOF
38119cat >>$CONFIG_STATUS <<\_ACEOF
38120for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 38121 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
38122 case $ac_file in
38123 - | *:- | *:-:* ) # input from stdin
789c5f4a
VZ
38124 cat >$tmp/stdin
38125 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38126 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 38127 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
789c5f4a 38128 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 38129 * ) ac_file_in=$ac_file.in ;;
10f2d63a 38130 esac
247f5006 38131
e6cc62c6
VS
38132 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
38133 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38134$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
38135 X"$ac_file" : 'X\(//\)[^/]' \| \
38136 X"$ac_file" : 'X\(//\)$' \| \
38137 X"$ac_file" : 'X\(/\)' \| \
38138 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
38139echo X"$ac_file" |
38140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38141 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38142 /^X\(\/\/\)$/{ s//\1/; q; }
38143 /^X\(\/\).*/{ s//\1/; q; }
38144 s/.*/./; q'`
38145 { if $as_mkdir_p; then
38146 mkdir -p "$ac_dir"
a0b9e27f 38147 else
e6cc62c6
VS
38148 as_dir="$ac_dir"
38149 as_dirs=
38150 while test ! -d "$as_dir"; do
38151 as_dirs="$as_dir $as_dirs"
38152 as_dir=`(dirname "$as_dir") 2>/dev/null ||
38153$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
38154 X"$as_dir" : 'X\(//\)[^/]' \| \
38155 X"$as_dir" : 'X\(//\)$' \| \
38156 X"$as_dir" : 'X\(/\)' \| \
38157 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
38158echo X"$as_dir" |
38159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38161 /^X\(\/\/\)$/{ s//\1/; q; }
38162 /^X\(\/\).*/{ s//\1/; q; }
38163 s/.*/./; q'`
38164 done
38165 test ! -n "$as_dirs" || mkdir $as_dirs
38166 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38167echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38168 { (exit 1); exit 1; }; }; }
38169
38170 ac_builddir=.
38171
38172if test "$ac_dir" != .; then
38173 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38174 # A "../" for each directory in $ac_dir_suffix.
38175 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38176else
38177 ac_dir_suffix= ac_top_builddir=
38178fi
247f5006 38179
e6cc62c6
VS
38180case $srcdir in
38181 .) # No --srcdir option. We are building in place.
38182 ac_srcdir=.
38183 if test -z "$ac_top_builddir"; then
38184 ac_top_srcdir=.
38185 else
38186 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38187 fi ;;
38188 [\\/]* | ?:[\\/]* ) # Absolute path.
38189 ac_srcdir=$srcdir$ac_dir_suffix;
38190 ac_top_srcdir=$srcdir ;;
247f5006 38191 *) # Relative path.
e6cc62c6
VS
38192 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38193 ac_top_srcdir=$ac_top_builddir$srcdir ;;
38194esac
789c5f4a
VZ
38195# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38196# absolute.
38197ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
38198ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38199ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38200ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 38201
247f5006 38202
e6cc62c6
VS
38203 case $INSTALL in
38204 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38205 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 38206 esac
247f5006 38207
e6cc62c6
VS
38208 if test x"$ac_file" != x-; then
38209 { echo "$as_me:$LINENO: creating $ac_file" >&5
38210echo "$as_me: creating $ac_file" >&6;}
38211 rm -f "$ac_file"
38212 fi
38213 # Let's still pretend it is `configure' which instantiates (i.e., don't
38214 # use $as_me), people would be surprised to read:
38215 # /* config.h. Generated by config.status. */
38216 if test x"$ac_file" = x-; then
38217 configure_input=
38218 else
38219 configure_input="$ac_file. "
38220 fi
38221 configure_input=$configure_input"Generated from `echo $ac_file_in |
789c5f4a 38222 sed 's,.*/,,'` by configure."
e6cc62c6
VS
38223
38224 # First look for the input files in the build tree, otherwise in the
38225 # src tree.
38226 ac_file_inputs=`IFS=:
38227 for f in $ac_file_in; do
38228 case $f in
38229 -) echo $tmp/stdin ;;
38230 [\\/$]*)
789c5f4a
VZ
38231 # Absolute (can't be DOS-style, as IFS=:)
38232 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
38233echo "$as_me: error: cannot find input file: $f" >&2;}
38234 { (exit 1); exit 1; }; }
789c5f4a 38235 echo $f;;
e6cc62c6 38236 *) # Relative
789c5f4a
VZ
38237 if test -f "$f"; then
38238 # Build tree
38239 echo $f
38240 elif test -f "$srcdir/$f"; then
38241 # Source tree
38242 echo $srcdir/$f
38243 else
38244 # /dev/null tree
38245 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
38246echo "$as_me: error: cannot find input file: $f" >&2;}
38247 { (exit 1); exit 1; }; }
789c5f4a 38248 fi;;
e6cc62c6
VS
38249 esac
38250 done` || { (exit 1); exit 1; }
38251_ACEOF
38252cat >>$CONFIG_STATUS <<_ACEOF
38253 sed "$ac_vpsub
38254$extrasub
38255_ACEOF
38256cat >>$CONFIG_STATUS <<\_ACEOF
38257:t
38258/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38259s,@configure_input@,$configure_input,;t t
38260s,@srcdir@,$ac_srcdir,;t t
38261s,@abs_srcdir@,$ac_abs_srcdir,;t t
38262s,@top_srcdir@,$ac_top_srcdir,;t t
38263s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
38264s,@builddir@,$ac_builddir,;t t
38265s,@abs_builddir@,$ac_abs_builddir,;t t
38266s,@top_builddir@,$ac_top_builddir,;t t
38267s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
38268s,@INSTALL@,$ac_INSTALL,;t t
38269" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
38270 rm -f $tmp/stdin
38271 if test x"$ac_file" != x-; then
38272 mv $tmp/out $ac_file
38273 else
38274 cat $tmp/out
38275 rm -f $tmp/out
38276 fi
38277
38278done
38279_ACEOF
38280cat >>$CONFIG_STATUS <<\_ACEOF
38281
38282#
38283# CONFIG_HEADER section.
38284#
10f2d63a
VZ
38285
38286# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
38287# NAME is the cpp macro being defined and VALUE is the value it is being given.
38288#
38289# ac_d sets the value in "#define NAME VALUE" lines.
789c5f4a
VZ
38290ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
38291ac_dB='[ ].*$,\1#\2'
e6cc62c6
VS
38292ac_dC=' '
38293ac_dD=',;t'
38294# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
789c5f4a 38295ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
e6cc62c6 38296ac_uB='$,\1#\2define\3'
10f2d63a 38297ac_uC=' '
e6cc62c6
VS
38298ac_uD=',;t'
38299
38300for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 38301 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
38302 case $ac_file in
38303 - | *:- | *:-:* ) # input from stdin
789c5f4a
VZ
38304 cat >$tmp/stdin
38305 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38306 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 38307 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
789c5f4a 38308 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 38309 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
38310 esac
38311
e6cc62c6
VS
38312 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
38313echo "$as_me: creating $ac_file" >&6;}
38314
38315 # First look for the input files in the build tree, otherwise in the
38316 # src tree.
38317 ac_file_inputs=`IFS=:
38318 for f in $ac_file_in; do
38319 case $f in
38320 -) echo $tmp/stdin ;;
38321 [\\/$]*)
789c5f4a
VZ
38322 # Absolute (can't be DOS-style, as IFS=:)
38323 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
38324echo "$as_me: error: cannot find input file: $f" >&2;}
38325 { (exit 1); exit 1; }; }
789c5f4a 38326 echo $f;;
e6cc62c6 38327 *) # Relative
789c5f4a
VZ
38328 if test -f "$f"; then
38329 # Build tree
38330 echo $f
38331 elif test -f "$srcdir/$f"; then
38332 # Source tree
38333 echo $srcdir/$f
38334 else
38335 # /dev/null tree
38336 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
38337echo "$as_me: error: cannot find input file: $f" >&2;}
38338 { (exit 1); exit 1; }; }
789c5f4a 38339 fi;;
e6cc62c6
VS
38340 esac
38341 done` || { (exit 1); exit 1; }
38342 # Remove the trailing spaces.
789c5f4a 38343 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
e6cc62c6
VS
38344
38345_ACEOF
38346
38347# Transform confdefs.h into two sed scripts, `conftest.defines' and
38348# `conftest.undefs', that substitutes the proper values into
38349# config.h.in to produce config.h. The first handles `#define'
38350# templates, and the second `#undef' templates.
38351# And first: Protect against being on the right side of a sed subst in
38352# config.status. Protect against being in an unquoted here document
38353# in config.status.
38354rm -f conftest.defines conftest.undefs
38355# Using a here document instead of a string reduces the quoting nightmare.
38356# Putting comments in sed scripts is not portable.
38357#
38358# `end' is used to avoid that the second main sed command (meant for
38359# 0-ary CPP macros) applies to n-ary macro definitions.
38360# See the Autoconf documentation for `clear'.
38361cat >confdef2sed.sed <<\_ACEOF
38362s/[\\&,]/\\&/g
38363s,[\\$`],\\&,g
38364t clear
38365: clear
789c5f4a 38366s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
e6cc62c6 38367t end
789c5f4a 38368s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
e6cc62c6
VS
38369: end
38370_ACEOF
38371# If some macros were called several times there might be several times
38372# the same #defines, which is useless. Nevertheless, we may not want to
38373# sort them, since we want the *last* AC-DEFINE to be honored.
38374uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
38375sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
38376rm -f confdef2sed.sed
10f2d63a
VZ
38377
38378# This sed command replaces #undef with comments. This is necessary, for
38379# example, in the case of _POSIX_SOURCE, which is predefined and required
38380# on some systems where configure will not decide to define it.
e6cc62c6 38381cat >>conftest.undefs <<\_ACEOF
789c5f4a 38382s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
e6cc62c6
VS
38383_ACEOF
38384
38385# Break up conftest.defines because some shells have a limit on the size
38386# of here documents, and old seds have small limits too (100 cmds).
38387echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
789c5f4a 38388echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
e6cc62c6
VS
38389echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
38390echo ' :' >>$CONFIG_STATUS
38391rm -f conftest.tail
38392while grep . conftest.defines >/dev/null
38393do
38394 # Write a limited-size here document to $tmp/defines.sed.
38395 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
38396 # Speed up: don't consider the non `#define' lines.
789c5f4a 38397 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
e6cc62c6
VS
38398 # Work around the forget-to-reset-the-flag bug.
38399 echo 't clr' >>$CONFIG_STATUS
38400 echo ': clr' >>$CONFIG_STATUS
38401 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
38402 echo 'CEOF
38403 sed -f $tmp/defines.sed $tmp/in >$tmp/out
38404 rm -f $tmp/in
38405 mv $tmp/out $tmp/in
38406' >>$CONFIG_STATUS
38407 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
38408 rm -f conftest.defines
38409 mv conftest.tail conftest.defines
38410done
38411rm -f conftest.defines
38412echo ' fi # grep' >>$CONFIG_STATUS
38413echo >>$CONFIG_STATUS
10f2d63a 38414
e6cc62c6
VS
38415# Break up conftest.undefs because some shells have a limit on the size
38416# of here documents, and old seds have small limits too (100 cmds).
38417echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 38418rm -f conftest.tail
e6cc62c6 38419while grep . conftest.undefs >/dev/null
10f2d63a 38420do
e6cc62c6
VS
38421 # Write a limited-size here document to $tmp/undefs.sed.
38422 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
38423 # Speed up: don't consider the non `#undef'
789c5f4a 38424 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
e6cc62c6
VS
38425 # Work around the forget-to-reset-the-flag bug.
38426 echo 't clr' >>$CONFIG_STATUS
38427 echo ': clr' >>$CONFIG_STATUS
38428 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 38429 echo 'CEOF
e6cc62c6
VS
38430 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
38431 rm -f $tmp/in
38432 mv $tmp/out $tmp/in
38433' >>$CONFIG_STATUS
38434 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
38435 rm -f conftest.undefs
38436 mv conftest.tail conftest.undefs
10f2d63a 38437done
e6cc62c6
VS
38438rm -f conftest.undefs
38439
38440cat >>$CONFIG_STATUS <<\_ACEOF
38441 # Let's still pretend it is `configure' which instantiates (i.e., don't
38442 # use $as_me), people would be surprised to read:
38443 # /* config.h. Generated by config.status. */
38444 if test x"$ac_file" = x-; then
38445 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 38446 else
e6cc62c6 38447 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 38448 fi
e6cc62c6
VS
38449 cat $tmp/in >>$tmp/config.h
38450 rm -f $tmp/in
38451 if test x"$ac_file" != x-; then
38452 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
38453 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
38454echo "$as_me: $ac_file is unchanged" >&6;}
38455 else
38456 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38457$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
38458 X"$ac_file" : 'X\(//\)[^/]' \| \
38459 X"$ac_file" : 'X\(//\)$' \| \
38460 X"$ac_file" : 'X\(/\)' \| \
38461 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
38462echo X"$ac_file" |
38463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38465 /^X\(\/\/\)$/{ s//\1/; q; }
38466 /^X\(\/\).*/{ s//\1/; q; }
38467 s/.*/./; q'`
38468 { if $as_mkdir_p; then
38469 mkdir -p "$ac_dir"
38470 else
38471 as_dir="$ac_dir"
38472 as_dirs=
38473 while test ! -d "$as_dir"; do
38474 as_dirs="$as_dir $as_dirs"
38475 as_dir=`(dirname "$as_dir") 2>/dev/null ||
38476$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
38477 X"$as_dir" : 'X\(//\)[^/]' \| \
38478 X"$as_dir" : 'X\(//\)$' \| \
38479 X"$as_dir" : 'X\(/\)' \| \
38480 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
38481echo X"$as_dir" |
38482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38483 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38484 /^X\(\/\/\)$/{ s//\1/; q; }
38485 /^X\(\/\).*/{ s//\1/; q; }
38486 s/.*/./; q'`
38487 done
38488 test ! -n "$as_dirs" || mkdir $as_dirs
38489 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38490echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38491 { (exit 1); exit 1; }; }; }
a0b9e27f 38492
e6cc62c6
VS
38493 rm -f $ac_file
38494 mv $tmp/config.h $ac_file
38495 fi
38496 else
38497 cat $tmp/config.h
38498 rm -f $tmp/config.h
38499 fi
38500done
38501_ACEOF
38502cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 38503
e6cc62c6
VS
38504#
38505# CONFIG_COMMANDS section.
38506#
38507for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
38508 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
38509 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
38510 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
38511$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
38512 X"$ac_dest" : 'X\(//\)[^/]' \| \
38513 X"$ac_dest" : 'X\(//\)$' \| \
38514 X"$ac_dest" : 'X\(/\)' \| \
38515 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
38516echo X"$ac_dest" |
38517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38519 /^X\(\/\/\)$/{ s//\1/; q; }
38520 /^X\(\/\).*/{ s//\1/; q; }
38521 s/.*/./; q'`
38522 ac_builddir=.
38523
38524if test "$ac_dir" != .; then
38525 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38526 # A "../" for each directory in $ac_dir_suffix.
38527 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38528else
38529 ac_dir_suffix= ac_top_builddir=
38530fi
38531
38532case $srcdir in
38533 .) # No --srcdir option. We are building in place.
38534 ac_srcdir=.
38535 if test -z "$ac_top_builddir"; then
38536 ac_top_srcdir=.
38537 else
38538 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38539 fi ;;
38540 [\\/]* | ?:[\\/]* ) # Absolute path.
38541 ac_srcdir=$srcdir$ac_dir_suffix;
38542 ac_top_srcdir=$srcdir ;;
38543 *) # Relative path.
38544 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38545 ac_top_srcdir=$ac_top_builddir$srcdir ;;
38546esac
789c5f4a
VZ
38547# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38548# absolute.
38549ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
38550ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38551ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38552ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
e6cc62c6
VS
38553
38554
38555 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
38556echo "$as_me: executing $ac_dest commands" >&6;}
38557 case $ac_dest in
38558 default )
652d930d 38559 if test ! -h wx-config; then
991a5759 38560 chmod +x wx-config
3a922bb4
RL
38561 mv wx-config wx${TOOLCHAIN_NAME}-config
38562 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 38563 fi
665bbe97 38564
00cf1208
RR
38565 if test ! -d lib; then
38566 mkdir lib
38567 fi
38568 if test ! -d lib/wx; then
38569 mkdir lib/wx
38570 fi
38571 if test ! -d lib/wx/include; then
38572 mkdir lib/wx/include
38573 fi
3a922bb4
RL
38574 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
38575 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 38576 fi
3a922bb4
RL
38577 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
38578 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
38579 fi
38580 if test -f setup.h; then
3a922bb4 38581 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 38582 fi
e6cc62c6
VS
38583 ;;
38584 esac
38585done
38586_ACEOF
2224580a 38587
e6cc62c6 38588cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 38589
e6cc62c6
VS
38590{ (exit 0); exit 0; }
38591_ACEOF
38592chmod +x $CONFIG_STATUS
38593ac_clean_files=$ac_clean_files_save
38594
38595
38596# configure is writing to config.log, and then calls config.status.
38597# config.status does its own redirection, appending to config.log.
38598# Unfortunately, on DOS this fails, as config.log is still kept open
38599# by configure, so config.status won't be able to write to it; its
38600# output is simply discarded. So we exec the FD to /dev/null,
38601# effectively closing config.log, so it can be properly (re)opened and
38602# appended to by config.status. When coming back to configure, we
38603# need to make the FD available again.
38604if test "$no_create" != yes; then
38605 ac_cs_success=:
38606 ac_config_status_args=
38607 test "$silent" = yes &&
38608 ac_config_status_args="$ac_config_status_args --quiet"
38609 exec 5>/dev/null
38610 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38611 exec 5>>config.log
38612 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38613 # would make configure fail if this is the last instruction.
38614 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
38615fi
38616
672abd7a
VS
38617#
38618# CONFIG_SUBDIRS section.
38619#
38620if test "$no_recursion" != yes; then
38621
38622 # Remove --cache-file and --srcdir arguments so they do not pile up.
38623 ac_sub_configure_args=
38624 ac_prev=
38625 for ac_arg in $ac_configure_args; do
38626 if test -n "$ac_prev"; then
38627 ac_prev=
38628 continue
38629 fi
38630 case $ac_arg in
38631 -cache-file | --cache-file | --cache-fil | --cache-fi \
38632 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
38633 ac_prev=cache_file ;;
38634 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
38635 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
38636 | --c=*)
38637 ;;
38638 --config-cache | -C)
38639 ;;
38640 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
38641 ac_prev=srcdir ;;
38642 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
38643 ;;
38644 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
38645 ac_prev=prefix ;;
38646 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
38647 ;;
38648 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
38649 esac
38650 done
38651
38652 # Always prepend --prefix to ensure using the same prefix
38653 # in subdir configurations.
38654 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
38655
38656 ac_popdir=`pwd`
38657 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
38658
38659 # Do not complain, so a configure script can configure whichever
38660 # parts of a large source tree are present.
38661 test -d $srcdir/$ac_dir || continue
38662
38663 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
38664echo "$as_me: configuring in $ac_dir" >&6;}
38665 { if $as_mkdir_p; then
38666 mkdir -p "$ac_dir"
38667 else
38668 as_dir="$ac_dir"
38669 as_dirs=
38670 while test ! -d "$as_dir"; do
38671 as_dirs="$as_dir $as_dirs"
38672 as_dir=`(dirname "$as_dir") 2>/dev/null ||
38673$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
38674 X"$as_dir" : 'X\(//\)[^/]' \| \
38675 X"$as_dir" : 'X\(//\)$' \| \
38676 X"$as_dir" : 'X\(/\)' \| \
38677 . : '\(.\)' 2>/dev/null ||
672abd7a
VS
38678echo X"$as_dir" |
38679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38681 /^X\(\/\/\)$/{ s//\1/; q; }
38682 /^X\(\/\).*/{ s//\1/; q; }
38683 s/.*/./; q'`
38684 done
38685 test ! -n "$as_dirs" || mkdir $as_dirs
38686 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38687echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38688 { (exit 1); exit 1; }; }; }
38689
38690 ac_builddir=.
38691
38692if test "$ac_dir" != .; then
38693 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38694 # A "../" for each directory in $ac_dir_suffix.
38695 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38696else
38697 ac_dir_suffix= ac_top_builddir=
38698fi
38699
38700case $srcdir in
38701 .) # No --srcdir option. We are building in place.
38702 ac_srcdir=.
38703 if test -z "$ac_top_builddir"; then
38704 ac_top_srcdir=.
38705 else
38706 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38707 fi ;;
38708 [\\/]* | ?:[\\/]* ) # Absolute path.
38709 ac_srcdir=$srcdir$ac_dir_suffix;
38710 ac_top_srcdir=$srcdir ;;
38711 *) # Relative path.
38712 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38713 ac_top_srcdir=$ac_top_builddir$srcdir ;;
38714esac
789c5f4a
VZ
38715# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38716# absolute.
38717ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
38718ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38719ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38720ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
672abd7a
VS
38721
38722
38723 cd $ac_dir
38724
38725 # Check for guested configure; otherwise get Cygnus style configure.
38726 if test -f $ac_srcdir/configure.gnu; then
38727 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
38728 elif test -f $ac_srcdir/configure; then
38729 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
38730 elif test -f $ac_srcdir/configure.in; then
38731 ac_sub_configure=$ac_configure
38732 else
38733 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
38734echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
38735 ac_sub_configure=
38736 fi
38737
38738 # The recursion is here.
38739 if test -n "$ac_sub_configure"; then
38740 # Make the cache file name correct relative to the subdirectory.
38741 case $cache_file in
38742 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
38743 *) # Relative path.
789c5f4a 38744 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
672abd7a
VS
38745 esac
38746
38747 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
38748echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
38749 # The eval makes quoting arguments work.
38750 eval $ac_sub_configure $ac_sub_configure_args \
789c5f4a
VZ
38751 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
38752 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
672abd7a
VS
38753echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
38754 { (exit 1); exit 1; }; }
38755 fi
38756
38757 cd $ac_popdir
38758 done
38759fi
38760
8284b0c5 38761
2b5f62a0
VZ
38762echo
38763echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
38764echo ""
89fe663f 38765echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
9747f85d 38766echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
38767
38768echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
38769echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
38770echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
38771
0c98a14e 38772echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
38773echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
38774echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 38775
2b5f62a0
VZ
38776echo " Which libraries should wxWindows use?"
38777echo " jpeg ${wxUSE_LIBJPEG-none}"
38778echo " png ${wxUSE_LIBPNG-none}"
38779echo " regex ${wxUSE_REGEX}"
38780echo " tiff ${wxUSE_LIBTIFF-none}"
89fe663f
VZ
38781if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
38782echo " xpm ${wxUSE_LIBXPM-none}"
38783fi
2b5f62a0 38784echo " zlib ${wxUSE_ZLIB}"
fd3d7534 38785echo " odbc ${wxUSE_ODBC}"
5f0b6dff 38786echo " expat ${wxUSE_EXPAT}"
3527f29c 38787echo " libmspack ${wxUSE_LIBMSPACK}"
f93ca9fd 38788echo " sdl ${wxUSE_LIBSDL}"
2b5f62a0
VZ
38789
38790echo ""
38791