]> git.saurik.com Git - wxWidgets.git/blame - configure
position is always unsigned in InsetPage(), no need to compare it with 0
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
eb730a0c 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.6.2.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
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
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
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'`
79
80
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
88
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
101
102
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
119
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
158
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}
188
189
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
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
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
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
eb730a0c
JS
273PACKAGE_VERSION='2.6.2'
274PACKAGE_STRING='wxWidgets 2.6.2'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
8c80d384 316ac_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 ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP RESCOMP ac_ct_RESCOMP DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN 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_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_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_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_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_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_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_USE_XRC_1 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_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 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_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_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_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 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 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
eb730a0c 797\`configure' configures wxWidgets 2.6.2 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
eb730a0c 863 short | recursive ) echo "Configuration of wxWidgets 2.6.2:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
962 --enable-postscript use wxPostscriptDC device context (default for gtk+)
963 --enable-prologio not available; see contrib
964 --enable-resources not available; see contrib
965 --enable-clipboard use wxClipboard class
966 --enable-dnd use Drag'n'Drop classes
967 --enable-metafile use win32 metafiles
968 --enable-controls use all usual controls
969 --enable-accel use accelerators
970 --enable-button use wxButton class
971 --enable-bmpbutton use wxBitmapButton class
972 --enable-calendar use wxCalendarCtrl class
973 --enable-caret use wxCaret class
974 --enable-checkbox use wxCheckBox class
975 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
976 --enable-choice use wxChoice class
92bbdbcd 977 --enable-choicebook use wxChoicebook class
a848cd7e 978 --enable-combobox use wxComboBox class
da98e9be 979 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
980 --enable-display use wxDisplay class
981 --enable-gauge use wxGauge class
982 --enable-grid use wxGrid class
983 --enable-imaglist use wxImageList class
984 --enable-listbook use wxListbook class
985 --enable-listbox use wxListBox class
986 --enable-listctrl use wxListCtrl class
987 --enable-notebook use wxNotebook class
988 --enable-radiobox use wxRadioBox class
989 --enable-radiobtn use wxRadioButton class
990 --enable-sash use wxSashWindow class
991 --enable-scrollbar use wxScrollBar class and scrollable windows
992 --enable-slider use wxSlider class
993 --enable-spinbtn use wxSpinButton class
994 --enable-spinctrl use wxSpinCtrl class
995 --enable-splitter use wxSplitterWindow class
996 --enable-statbmp use wxStaticBitmap class
997 --enable-statbox use wxStaticBox class
998 --enable-statline use wxStaticLine class
999 --enable-stattext use wxStaticText class
1000 --enable-statusbar use wxStatusBar class
1001 --enable-tabdialog use wxTabControl class
1002 --enable-textctrl use wxTextCtrl class
1003 --enable-togglebtn use wxToggleButton class
1004 --enable-toolbar use wxToolBar class
1005 --enable-tbarnative use native wxToolBar class
1006 --enable-tbarsmpl use wxToolBarSimple class
1007 --enable-treectrl use wxTreeCtrl class
1008 --enable-tipwindow use wxTipWindow class
1009 --enable-popupwin use wxPopUpWindow class
1010 --enable-commondlg use all common dialogs
1011 --enable-choicedlg use wxChoiceDialog
1012 --enable-coldlg use wxColourDialog
1013 --enable-filedlg use wxFileDialog
1014 --enable-finddlg use wxFindReplaceDialog
1015 --enable-fontdlg use wxFontDialog
1016 --enable-dirdlg use wxDirDialog
1017 --enable-msgdlg use wxMessageDialog
1018 --enable-numberdlg use wxNumberEntryDialog
1019 --enable-splash use wxSplashScreen
1020 --enable-textdlg use wxTextDialog
1021 --enable-tipdlg use startup tips
1022 --enable-progressdlg use wxProgressDialog
1023 --enable-wizarddlg use wxWizard
1024 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1025 --enable-miniframe use wxMiniFrame class
1026 --enable-tooltips use wxToolTip class
1027 --enable-splines use spline drawing code
fbe2ca43 1028 --enable-mousewheel use mousewheel
a848cd7e
SC
1029 --enable-validators use wxValidator and derived classes
1030 --enable-busyinfo use wxBusyInfo
4cb1d3da 1031 --enable-joystick use wxJoystick
38b4a946 1032 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1033 --enable-dragimage use wxDragImage
1034 --enable-accessibility enable accessibility support
38b4a946 1035 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1036 --enable-palette use wxPalette class
1037 --enable-image use wxImage class
1038 --enable-gif use gif images (GIF file format)
1039 --enable-pcx use pcx images (PCX file format)
1040 --enable-iff use iff images (IFF file format)
1041 --enable-pnm use pnm images (PNM file format)
1042 --enable-xpm use xpm images (XPM file format)
1043 --enable-icocur use Windows ICO and CUR formats
77ffb593 1044 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1045 --enable-vendor=VENDOR vendor name (win32 DLL only)
1046 --disable-largefile omit support for large files
1047 --disable-gtktest do not try to compile and run a test GTK+ program
1048 --disable-gtktest Do not try to compile and run a test GTK program
1049 --disable-sdltest Do not try to compile and run a test SDL program
1050 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1051 --disable-precomp-headers
1052 don't use precompiled headers even if compiler can
a848cd7e
SC
1053
1054Optional Packages:
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f34ca037 1057 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1058 --with-motif use Motif/Lesstif
1059 --with-mac use Mac OS X
1060 --with-cocoa use Cocoa
1061 --with-wine use Wine
1062 --with-msw use MS-Windows
1063 --with-pm use OS/2 Presentation Manager
1064 --with-mgl use SciTech MGL
1065 --with-microwin use MicroWindows
1066 --with-x11 use X11
1067 --with-libpng use libpng (PNG image format)
1068 --with-libjpeg use libjpeg (JPEG file format)
1069 --with-libtiff use libtiff (TIFF file format)
1070 --with-libxpm use libxpm (XPM file format)
1071 --with-libmspack use libmspack (CHM help files loading)
1072 --with-sdl use SDL for audio on Unix
d51253e8 1073 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1074 --with-opengl use OpenGL (or Mesa)
1075 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1076 --with-regex enable support for wxRegEx class
1077 --with-zlib use zlib for LZW compression
1078 --with-odbc use the IODBC and wxODBC classes
1079 --with-expat enable XML support using expat parser
ceec2216 1080 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1081 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1082 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1083 --with-x use the X Window System
1084 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1085 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1086 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1087 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1088 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1089
1090Some influential environment variables:
dcc1b6ad
VS
1091 CC C compiler command
1092 CFLAGS C compiler flags
1093 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1094 nonstandard directory <lib dir>
1095 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1096 headers in a nonstandard directory <include dir>
1097 CPP C preprocessor
1098 CXX C++ compiler command
1099 CXXFLAGS C++ compiler flags
1100 CXXCPP C++ preprocessor
a848cd7e
SC
1101
1102Use these variables to override the choices made by `configure' or to help
1103it to find libraries and programs with nonstandard names/locations.
1104
77ffb593 1105Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1106_ACEOF
1107fi
1108
1109if test "$ac_init_help" = "recursive"; then
1110 # If there are subdirs, report their specific --help.
1111 ac_popdir=`pwd`
1112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113 test -d $ac_dir || continue
1114 ac_builddir=.
1115
1116if test "$ac_dir" != .; then
1117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1118 # A "../" for each directory in $ac_dir_suffix.
1119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1120else
1121 ac_dir_suffix= ac_top_builddir=
1122fi
1123
1124case $srcdir in
1125 .) # No --srcdir option. We are building in place.
1126 ac_srcdir=.
1127 if test -z "$ac_top_builddir"; then
1128 ac_top_srcdir=.
1129 else
1130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1131 fi ;;
1132 [\\/]* | ?:[\\/]* ) # Absolute path.
1133 ac_srcdir=$srcdir$ac_dir_suffix;
1134 ac_top_srcdir=$srcdir ;;
1135 *) # Relative path.
1136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1138esac
ac1cb8d3
VS
1139
1140# Do not use `cd foo && pwd` to compute absolute paths, because
1141# the directories may not exist.
1142case `pwd` in
1143.) ac_abs_builddir="$ac_dir";;
1144*)
1145 case "$ac_dir" in
1146 .) ac_abs_builddir=`pwd`;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1149 esac;;
1150esac
1151case $ac_abs_builddir in
1152.) ac_abs_top_builddir=${ac_top_builddir}.;;
1153*)
1154 case ${ac_top_builddir}. in
1155 .) ac_abs_top_builddir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1158 esac;;
1159esac
1160case $ac_abs_builddir in
1161.) ac_abs_srcdir=$ac_srcdir;;
1162*)
1163 case $ac_srcdir in
1164 .) ac_abs_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1167 esac;;
1168esac
1169case $ac_abs_builddir in
1170.) ac_abs_top_srcdir=$ac_top_srcdir;;
1171*)
1172 case $ac_top_srcdir in
1173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1176 esac;;
1177esac
a848cd7e
SC
1178
1179 cd $ac_dir
1180 # Check for guested configure; otherwise get Cygnus style configure.
1181 if test -f $ac_srcdir/configure.gnu; then
1182 echo
1183 $SHELL $ac_srcdir/configure.gnu --help=recursive
1184 elif test -f $ac_srcdir/configure; then
1185 echo
1186 $SHELL $ac_srcdir/configure --help=recursive
1187 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1188 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1189 echo
1190 $ac_configure --help
1191 else
1192 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1193 fi
6ebeb4c7 1194 cd "$ac_popdir"
a848cd7e
SC
1195 done
1196fi
1197
1198test -n "$ac_init_help" && exit 0
1199if $ac_init_version; then
1200 cat <<\_ACEOF
eb730a0c 1201wxWidgets configure 2.6.2
ac1cb8d3 1202generated by GNU Autoconf 2.59
a848cd7e 1203
ac1cb8d3 1204Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1205This configure script is free software; the Free Software Foundation
1206gives unlimited permission to copy, distribute and modify it.
1207_ACEOF
1208 exit 0
1209fi
1210exec 5>config.log
1211cat >&5 <<_ACEOF
1212This file contains any messages produced by compilers while
1213running configure, to aid debugging if configure makes a mistake.
1214
eb730a0c 1215It was created by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 1216generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1217
1218 $ $0 $@
1219
1220_ACEOF
1221{
1222cat <<_ASUNAME
1223## --------- ##
1224## Platform. ##
1225## --------- ##
1226
1227hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1228uname -m = `(uname -m) 2>/dev/null || echo unknown`
1229uname -r = `(uname -r) 2>/dev/null || echo unknown`
1230uname -s = `(uname -s) 2>/dev/null || echo unknown`
1231uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232
1233/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1234/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1235
1236/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1237/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1238/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1239hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1240/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1241/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1242/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1243
1244_ASUNAME
1245
1246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247for as_dir in $PATH
1248do
1249 IFS=$as_save_IFS
1250 test -z "$as_dir" && as_dir=.
1251 echo "PATH: $as_dir"
1252done
1253
1254} >&5
1255
1256cat >&5 <<_ACEOF
1257
1258
1259## ----------- ##
1260## Core tests. ##
1261## ----------- ##
1262
1263_ACEOF
1264
1265
1266# Keep a trace of the command line.
1267# Strip out --no-create and --no-recursion so they do not pile up.
1268# Strip out --silent because we don't want to record it for future runs.
1269# Also quote any args containing shell meta-characters.
1270# Make two passes to allow for proper duplicate-argument suppression.
1271ac_configure_args=
1272ac_configure_args0=
1273ac_configure_args1=
1274ac_sep=
1275ac_must_keep_next=false
1276for ac_pass in 1 2
1277do
1278 for ac_arg
1279 do
1280 case $ac_arg in
1281 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283 | -silent | --silent | --silen | --sile | --sil)
1284 continue ;;
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 esac
1288 case $ac_pass in
1289 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290 2)
1291 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1292 if test $ac_must_keep_next = true; then
ac1cb8d3 1293 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1294 else
ac1cb8d3
VS
1295 case $ac_arg in
1296 *=* | --config-cache | -C | -disable-* | --disable-* \
1297 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1298 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1299 | -with-* | --with-* | -without-* | --without-* | --x)
1300 case "$ac_configure_args0 " in
1301 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1302 esac
1303 ;;
1304 -* ) ac_must_keep_next=true ;;
1305 esac
a848cd7e
SC
1306 fi
1307 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1308 # Get rid of the leading space.
1309 ac_sep=" "
1310 ;;
1311 esac
1312 done
1313done
1314$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1315$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316
1317# When interrupted or exit'd, cleanup temporary files, and complete
1318# config.log. We remove comments because anyway the quotes in there
1319# would cause problems or look ugly.
1320# WARNING: Be sure not to use single quotes in there, as some shells,
1321# such as our DU 5.0 friend, will then `close' the trap.
1322trap 'exit_status=$?
1323 # Save into config.log some information that might help in debugging.
1324 {
1325 echo
1326
1327 cat <<\_ASBOX
1328## ---------------- ##
1329## Cache variables. ##
1330## ---------------- ##
1331_ASBOX
1332 echo
1333 # The following way of writing the cache mishandles newlines in values,
1334{
1335 (set) 2>&1 |
1336 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1337 *ac_space=\ *)
1338 sed -n \
ac1cb8d3
VS
1339 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1341 ;;
1342 *)
1343 sed -n \
ac1cb8d3 1344 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1345 ;;
1346 esac;
1347}
1348 echo
1349
1350 cat <<\_ASBOX
1351## ----------------- ##
1352## Output variables. ##
1353## ----------------- ##
1354_ASBOX
1355 echo
1356 for ac_var in $ac_subst_vars
1357 do
1358 eval ac_val=$`echo $ac_var`
1359 echo "$ac_var='"'"'$ac_val'"'"'"
1360 done | sort
1361 echo
1362
1363 if test -n "$ac_subst_files"; then
1364 cat <<\_ASBOX
1365## ------------- ##
1366## Output files. ##
1367## ------------- ##
1368_ASBOX
1369 echo
1370 for ac_var in $ac_subst_files
1371 do
1372 eval ac_val=$`echo $ac_var`
ac1cb8d3 1373 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1374 done | sort
1375 echo
1376 fi
1377
1378 if test -s confdefs.h; then
1379 cat <<\_ASBOX
1380## ----------- ##
1381## confdefs.h. ##
1382## ----------- ##
1383_ASBOX
1384 echo
1385 sed "/^$/d" confdefs.h | sort
1386 echo
1387 fi
1388 test "$ac_signal" != 0 &&
1389 echo "$as_me: caught signal $ac_signal"
1390 echo "$as_me: exit $exit_status"
1391 } >&5
ac1cb8d3 1392 rm -f core *.core &&
a848cd7e
SC
1393 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1394 exit $exit_status
1395 ' 0
1396for ac_signal in 1 2 13 15; do
1397 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1398done
1399ac_signal=0
1400
1401# confdefs.h avoids OS command line length limits that DEFS can exceed.
1402rm -rf conftest* confdefs.h
1403# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1404echo >confdefs.h
1405
1406# Predefined preprocessor variables.
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_NAME "$PACKAGE_NAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_VERSION "$PACKAGE_VERSION"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_STRING "$PACKAGE_STRING"
1425_ACEOF
1426
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1430_ACEOF
1431
1432
1433# Let the site file select an alternate cache file if it wants to.
1434# Prefer explicitly selected file to automatically selected ones.
1435if test -z "$CONFIG_SITE"; then
1436 if test "x$prefix" != xNONE; then
1437 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438 else
1439 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1440 fi
1441fi
1442for ac_site_file in $CONFIG_SITE; do
1443 if test -r "$ac_site_file"; then
1444 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1445echo "$as_me: loading site script $ac_site_file" >&6;}
1446 sed 's/^/| /' "$ac_site_file" >&5
1447 . "$ac_site_file"
1448 fi
1449done
1450
1451if test -r "$cache_file"; then
1452 # Some versions of bash will fail to source /dev/null (special
1453 # files actually), so we avoid doing that.
1454 if test -f "$cache_file"; then
1455 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1456echo "$as_me: loading cache $cache_file" >&6;}
1457 case $cache_file in
1458 [\\/]* | ?:[\\/]* ) . $cache_file;;
1459 *) . ./$cache_file;;
1460 esac
1461 fi
1462else
1463 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1464echo "$as_me: creating cache $cache_file" >&6;}
1465 >$cache_file
1466fi
1467
1468# Check that the precious variables saved in the cache have kept the same
1469# value.
1470ac_cache_corrupted=false
1471for ac_var in `(set) 2>&1 |
ac1cb8d3 1472 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1473 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1474 eval ac_new_set=\$ac_env_${ac_var}_set
1475 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1476 eval ac_new_val="\$ac_env_${ac_var}_value"
1477 case $ac_old_set,$ac_new_set in
1478 set,)
1479 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1480echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1481 ac_cache_corrupted=: ;;
1482 ,set)
1483 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1484echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1485 ac_cache_corrupted=: ;;
1486 ,);;
1487 *)
1488 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1489 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1490echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1491 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1492echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1493 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1494echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1495 ac_cache_corrupted=:
a848cd7e
SC
1496 fi;;
1497 esac
1498 # Pass precious variables to config.status.
1499 if test "$ac_new_set" = set; then
1500 case $ac_new_val in
1501 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1502 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1503 *) ac_arg=$ac_var=$ac_new_val ;;
1504 esac
1505 case " $ac_configure_args " in
1506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1507 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1508 esac
1509 fi
1510done
1511if $ac_cache_corrupted; then
1512 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1513echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1514 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1515echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1516 { (exit 1); exit 1; }; }
1517fi
1518
1519ac_ext=c
1520ac_cpp='$CPP $CPPFLAGS'
1521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554ac_aux_dir=
1555for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1556 if test -f $ac_dir/install-sh; then
1557 ac_aux_dir=$ac_dir
1558 ac_install_sh="$ac_aux_dir/install-sh -c"
1559 break
1560 elif test -f $ac_dir/install.sh; then
1561 ac_aux_dir=$ac_dir
1562 ac_install_sh="$ac_aux_dir/install.sh -c"
1563 break
1564 elif test -f $ac_dir/shtool; then
1565 ac_aux_dir=$ac_dir
1566 ac_install_sh="$ac_aux_dir/shtool install -c"
1567 break
1568 fi
1569done
1570if test -z "$ac_aux_dir"; then
1571 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1572echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1573 { (exit 1); exit 1; }; }
1574fi
1575ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1576ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1577ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578
1579# Make sure we can run config.sub.
1580$ac_config_sub sun4 >/dev/null 2>&1 ||
1581 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1582echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585echo "$as_me:$LINENO: checking build system type" >&5
1586echo $ECHO_N "checking build system type... $ECHO_C" >&6
1587if test "${ac_cv_build+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 ac_cv_build_alias=$build_alias
1591test -z "$ac_cv_build_alias" &&
1592 ac_cv_build_alias=`$ac_config_guess`
1593test -z "$ac_cv_build_alias" &&
1594 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1595echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1596 { (exit 1); exit 1; }; }
1597ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1598 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1599echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1600 { (exit 1); exit 1; }; }
1601
1602fi
1603echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1604echo "${ECHO_T}$ac_cv_build" >&6
1605build=$ac_cv_build
1606build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611echo "$as_me:$LINENO: checking host system type" >&5
1612echo $ECHO_N "checking host system type... $ECHO_C" >&6
1613if test "${ac_cv_host+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
1616 ac_cv_host_alias=$host_alias
1617test -z "$ac_cv_host_alias" &&
1618 ac_cv_host_alias=$ac_cv_build_alias
1619ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1620 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1621echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1622 { (exit 1); exit 1; }; }
1623
1624fi
1625echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1626echo "${ECHO_T}$ac_cv_host" >&6
1627host=$ac_cv_host
1628host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631
1632
1633echo "$as_me:$LINENO: checking target system type" >&5
1634echo $ECHO_N "checking target system type... $ECHO_C" >&6
1635if test "${ac_cv_target+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 ac_cv_target_alias=$target_alias
1639test "x$ac_cv_target_alias" = "x" &&
1640 ac_cv_target_alias=$ac_cv_host_alias
1641ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1642 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1643echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1644 { (exit 1); exit 1; }; }
1645
1646fi
1647echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1648echo "${ECHO_T}$ac_cv_target" >&6
1649target=$ac_cv_target
1650target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
1654
1655# The aliases save the names the user supplied, while $host etc.
1656# will get canonicalized.
1657test -n "$target_alias" &&
1658 test "$program_prefix$program_suffix$program_transform_name" = \
1659 NONENONEs,x,x, &&
1660 program_prefix=${target_alias}-
1661
1662
1663
ceec2216 1664wx_major_version_number=2
e0d84535 1665wx_minor_version_number=6
eb730a0c 1666wx_release_number=2
063c96c1 1667wx_subrelease_number=1
a848cd7e 1668
ceec2216
RL
1669WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1670WX_VERSION=$WX_RELEASE.$wx_release_number
1671WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1672
ceec2216 1673WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1674
a848cd7e
SC
1675
1676
1677
1678USE_UNIX=1
1679USE_OS2=0
1680USE_WIN32=0
1681USE_DOS=0
1682USE_BEOS=0
1683USE_MAC=0
1684
1685USE_AIX=
1686USE_BSD= USE_DARWIN= USE_FREEBSD=
1687USE_GNU= USE_HPUX=
1688USE_LINUX=
1689USE_NETBSD=
1690USE_OPENBSD=
1691USE_OSF= USE_SGI=
1692USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1693USE_ULTRIX=
1694USE_UNIXWARE=
1695
1696USE_ALPHA=
1697
1698NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1699
1700ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1701
1702DEFAULT_wxUSE_COCOA=0
1703DEFAULT_wxUSE_GTK=0
1704DEFAULT_wxUSE_MAC=0
1705DEFAULT_wxUSE_MGL=0
1706DEFAULT_wxUSE_MICROWIN=0
1707DEFAULT_wxUSE_MOTIF=0
1708DEFAULT_wxUSE_MSW=0
1709DEFAULT_wxUSE_PM=0
1710DEFAULT_wxUSE_X11=0
1711
1712DEFAULT_DEFAULT_wxUSE_COCOA=0
1713DEFAULT_DEFAULT_wxUSE_GTK=0
1714DEFAULT_DEFAULT_wxUSE_MAC=0
1715DEFAULT_DEFAULT_wxUSE_MGL=0
1716DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1717DEFAULT_DEFAULT_wxUSE_MOTIF=0
1718DEFAULT_DEFAULT_wxUSE_MSW=0
1719DEFAULT_DEFAULT_wxUSE_PM=0
1720DEFAULT_DEFAULT_wxUSE_X11=0
1721
1722PROGRAM_EXT=
1723SO_SUFFIX=so
1724SAMPLES_RPATH_FLAG=
1725SAMPLES_RPATH_POSTLINK=
1726
a03b8b04
RD
1727DEFAULT_STD_FLAG=yes
1728
a848cd7e
SC
1729case "${host}" in
1730 *-hp-hpux* )
1731 USE_HPUX=1
1732 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1733 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1734 SO_SUFFIX=sl
1735 cat >>confdefs.h <<\_ACEOF
1736#define __HPUX__ 1
1737_ACEOF
1738
1739 ;;
1740 *-*-linux* )
1741 USE_LINUX=1
1742 cat >>confdefs.h <<\_ACEOF
1743#define __LINUX__ 1
1744_ACEOF
1745
1746 TMP=`uname -m`
1747 if test "x$TMP" = "xalpha"; then
1748 USE_ALPHA=1
1749 cat >>confdefs.h <<\_ACEOF
1750#define __ALPHA__ 1
1751_ACEOF
1752
1753 fi
1754 DEFAULT_DEFAULT_wxUSE_GTK=1
1755 ;;
1756 *-*-gnu* | *-*-k*bsd*-gnu )
1757 USE_GNU=1
1758 TMP=`uname -m`
1759 if test "x$TMP" = "xalpha"; then
1760 USE_ALPHA=1
1761 cat >>confdefs.h <<\_ACEOF
1762#define __ALPHA__ 1
1763_ACEOF
1764
1765 fi
1766 DEFAULT_DEFAULT_wxUSE_GTK=1
1767 ;;
1768 *-*-irix5* | *-*-irix6* )
1769 USE_SGI=1
1770 USE_SVR4=1
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SGI__ 1
1773_ACEOF
1774
1775 cat >>confdefs.h <<\_ACEOF
1776#define __SVR4__ 1
1777_ACEOF
1778
1779 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1780 ;;
1781 *-*-solaris2* )
1782 USE_SUN=1
1783 USE_SOLARIS=1
1784 USE_SVR4=1
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SUN__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SOLARIS__ 1
1791_ACEOF
1792
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SVR4__ 1
1795_ACEOF
1796
1797 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1798 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1799 ;;
1800 *-*-sunos4* )
1801 USE_SUN=1
1802 USE_SUNOS=1
1803 USE_BSD=1
1804 cat >>confdefs.h <<\_ACEOF
1805#define __SUN__ 1
1806_ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809#define __SUNOS__ 1
1810_ACEOF
1811
1812 cat >>confdefs.h <<\_ACEOF
1813#define __BSD__ 1
1814_ACEOF
1815
1816 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1817 ;;
1818 *-*-freebsd*)
1819 USE_BSD=1
1820 USE_FREEBSD=1
1821 cat >>confdefs.h <<\_ACEOF
1822#define __FREEBSD__ 1
1823_ACEOF
1824
1825 cat >>confdefs.h <<\_ACEOF
1826#define __BSD__ 1
1827_ACEOF
1828
1829 DEFAULT_DEFAULT_wxUSE_GTK=1
1830 ;;
1831 *-*-openbsd*)
1832 USE_BSD=1
1833 USE_OPENBSD=1
1834 cat >>confdefs.h <<\_ACEOF
1835#define __OPENBSD__ 1
1836_ACEOF
1837
1838 cat >>confdefs.h <<\_ACEOF
1839#define __BSD__ 1
1840_ACEOF
1841
1842 DEFAULT_DEFAULT_wxUSE_GTK=1
1843 ;;
1844 *-*-netbsd*)
1845 USE_BSD=1
1846 USE_NETBSD=1
1847 cat >>confdefs.h <<\_ACEOF
1848#define __NETBSD__ 1
1849_ACEOF
1850
1851 cat >>confdefs.h <<\_ACEOF
1852#define __BSD__ 1
1853_ACEOF
1854
1855 DEFAULT_DEFAULT_wxUSE_GTK=1
1856 ;;
1857 *-*-osf* )
1858 USE_ALPHA=1
1859 USE_OSF=1
1860 cat >>confdefs.h <<\_ACEOF
1861#define __ALPHA__ 1
1862_ACEOF
1863
1864 cat >>confdefs.h <<\_ACEOF
1865#define __OSF__ 1
1866_ACEOF
1867
1868 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1869 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1870 ;;
1871 *-*-dgux5* )
1872 USE_ALPHA=1
1873 USE_SVR4=1
1874 cat >>confdefs.h <<\_ACEOF
1875#define __ALPHA__ 1
1876_ACEOF
1877
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SVR4__ 1
1880_ACEOF
1881
1882 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1883 ;;
1884 *-*-sysv5* )
1885 USE_SYSV=1
1886 USE_SVR4=1
1887 cat >>confdefs.h <<\_ACEOF
1888#define __SYSV__ 1
1889_ACEOF
1890
1891 cat >>confdefs.h <<\_ACEOF
1892#define __SVR4__ 1
1893_ACEOF
1894
1895 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1896 ;;
1897 *-*-aix* )
1898 USE_AIX=1
1899 USE_SYSV=1
1900 USE_SVR4=1
1901 SO_SUFFIX=a
1902 cat >>confdefs.h <<\_ACEOF
1903#define __AIX__ 1
1904_ACEOF
1905
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SYSV__ 1
1908_ACEOF
1909
1910 cat >>confdefs.h <<\_ACEOF
1911#define __SVR4__ 1
1912_ACEOF
1913
1914 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1915 ;;
1916
1917 *-*-*UnixWare*)
1918 USE_SYSV=1
1919 USE_SVR4=1
1920 USE_UNIXWARE=1
1921 cat >>confdefs.h <<\_ACEOF
1922#define __UNIXWARE__ 1
1923_ACEOF
1924
1925 ;;
1926
1927 *-*-cygwin* | *-*-mingw32* )
1928 SO_SUFFIX=dll
1929 PROGRAM_EXT=".exe"
a848cd7e 1930 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1931 DEFAULT_STD_FLAG=no
a848cd7e
SC
1932 ;;
1933
1934 *-pc-msdosdjgpp )
1935 USE_UNIX=0
1936 USE_DOS=1
1937 cat >>confdefs.h <<\_ACEOF
1938#define __DOS__ 1
1939_ACEOF
1940
1941 PROGRAM_EXT=".exe"
1942 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1943 ;;
1944
1945 *-pc-os2_emx | *-pc-os2-emx )
1946 cat >>confdefs.h <<\_ACEOF
1947#define __EMX__ 1
1948_ACEOF
1949
1950 USE_OS2=1
1951 cat >>confdefs.h <<\_ACEOF
1952#define __OS2__ 1
1953_ACEOF
1954
1955 PROGRAM_EXT=".exe"
1956 DEFAULT_DEFAULT_wxUSE_PM=1
1957 CXX=gcc
1958 LDFLAGS="$LDFLAGS -Zcrtdll"
1959 ac_executable_extensions=".exe"
1960 export ac_executable_extensions
1961 ac_save_IFS="$IFS"
1962 IFS='\\'
1963 ac_TEMP_PATH=
1964 for ac_dir in $PATH; do
1965 IFS=$ac_save_IFS
1966 if test -z "$ac_TEMP_PATH"; then
1967 ac_TEMP_PATH="$ac_dir"
1968 else
1969 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1970 fi
1971 done
1972 export PATH="$ac_TEMP_PATH"
1973 unset ac_TEMP_PATH
a03b8b04 1974 DEFAULT_STD_FLAG=no
a848cd7e
SC
1975 ;;
1976
cfda0ea8 1977 *-*-darwin* )
a848cd7e
SC
1978 USE_BSD=1
1979 USE_DARWIN=1
1980 SO_SUFFIX=dylib
1981 cat >>confdefs.h <<\_ACEOF
1982#define __BSD__ 1
1983_ACEOF
1984
1985 cat >>confdefs.h <<\_ACEOF
1986#define __DARWIN__ 1
a848cd7e
SC
1987_ACEOF
1988
1989 cat >>confdefs.h <<\_ACEOF
1990#define TARGET_CARBON 1
1991_ACEOF
1992
1993 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1994 DEFAULT_STD_FLAG=no
a848cd7e 1995 ;;
1e9e8aba
DE
1996 powerpc-apple-macos* )
1997 USE_UNIX=0
1998 ac_cv_c_bigendian=yes
1999 SO_SUFFIX=shlib
2000 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2001 DEFAULT_STD_FLAG=no
1e9e8aba 2002 ;;
a848cd7e
SC
2003
2004 *-*-beos* )
2005 USE_BEOS=1
2006 cat >>confdefs.h <<\_ACEOF
2007#define __BEOS__ 1
2008_ACEOF
2009
2010 ;;
2011
2012 *)
2013 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2014echo "$as_me: error: unknown system type ${host}." >&2;}
2015 { (exit 1); exit 1; }; }
2016esac
2017
2018
2019
2020
2021 wx_arg_cache_file="configarg.cache"
2022 echo "loading argument cache $wx_arg_cache_file"
2023 rm -f ${wx_arg_cache_file}.tmp
2024 touch ${wx_arg_cache_file}.tmp
2025 touch ${wx_arg_cache_file}
2026
2027
2028DEBUG_CONFIGURE=0
2029if test $DEBUG_CONFIGURE = 1; then
2030 DEFAULT_wxUSE_UNIVERSAL=no
2031 DEFAULT_wxUSE_STL=no
2032
2033 DEFAULT_wxUSE_NANOX=no
2034
2035 DEFAULT_wxUSE_THREADS=yes
2036
2037 DEFAULT_wxUSE_SHARED=yes
2038 DEFAULT_wxUSE_OPTIMISE=no
2039 DEFAULT_wxUSE_PROFILE=no
2040 DEFAULT_wxUSE_NO_DEPS=no
2041 DEFAULT_wxUSE_NO_RTTI=no
2042 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2043 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2044 DEFAULT_wxUSE_PERMISSIVE=no
2045 DEFAULT_wxUSE_DEBUG_FLAG=yes
2046 DEFAULT_wxUSE_DEBUG_INFO=yes
2047 DEFAULT_wxUSE_DEBUG_GDB=yes
2048 DEFAULT_wxUSE_MEM_TRACING=no
2049 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2050 DEFAULT_wxUSE_DMALLOC=no
2051 DEFAULT_wxUSE_APPLE_IEEE=no
2052
2053 DEFAULT_wxUSE_EXCEPTIONS=no
2054 DEFAULT_wxUSE_LOG=yes
2055 DEFAULT_wxUSE_LOGWINDOW=no
2056 DEFAULT_wxUSE_LOGGUI=no
2057 DEFAULT_wxUSE_LOGDIALOG=no
2058
2059 DEFAULT_wxUSE_GUI=yes
2060 DEFAULT_wxUSE_CONTROLS=no
2061
2062 DEFAULT_wxUSE_REGEX=no
2063 DEFAULT_wxUSE_XML=no
2064 DEFAULT_wxUSE_EXPAT=no
2065 DEFAULT_wxUSE_ZLIB=no
2066 DEFAULT_wxUSE_LIBPNG=no
2067 DEFAULT_wxUSE_LIBJPEG=no
2068 DEFAULT_wxUSE_LIBTIFF=no
2069 DEFAULT_wxUSE_LIBXPM=no
2070 DEFAULT_wxUSE_LIBMSPACK=no
2071 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2072 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2073 DEFAULT_wxUSE_ODBC=no
2074 DEFAULT_wxUSE_OPENGL=no
2075
2076 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2077 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2078 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2079 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2080 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2081 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2082 DEFAULT_wxUSE_CMDLINE_PARSER=no
2083 DEFAULT_wxUSE_DATETIME=no
2084 DEFAULT_wxUSE_TIMER=no
2085 DEFAULT_wxUSE_STOPWATCH=no
2086 DEFAULT_wxUSE_FILE=no
2087 DEFAULT_wxUSE_FFILE=no
07158944 2088 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2089 DEFAULT_wxUSE_TEXTBUFFER=no
2090 DEFAULT_wxUSE_TEXTFILE=no
2091 DEFAULT_wxUSE_SOUND=no
3b57de8b 2092 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2093 DEFAULT_wxUSE_INTL=no
2094 DEFAULT_wxUSE_CONFIG=no
2095 DEFAULT_wxUSE_FONTMAP=no
2096 DEFAULT_wxUSE_STREAMS=no
2097 DEFAULT_wxUSE_SOCKETS=no
2098 DEFAULT_wxUSE_OLE=no
2099 DEFAULT_wxUSE_DATAOBJ=no
2100 DEFAULT_wxUSE_DIALUP_MANAGER=no
2101 DEFAULT_wxUSE_JOYSTICK=no
2102 DEFAULT_wxUSE_DYNLIB_CLASS=no
2103 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2104 DEFAULT_wxUSE_LONGLONG=no
2105 DEFAULT_wxUSE_GEOMETRY=no
2106
2107 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2108 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2109 DEFAULT_wxUSE_POSTSCRIPT=no
2110
2111 DEFAULT_wxUSE_CLIPBOARD=no
2112 DEFAULT_wxUSE_TOOLTIPS=no
2113 DEFAULT_wxUSE_DRAG_AND_DROP=no
2114 DEFAULT_wxUSE_DRAGIMAGE=no
2115 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2116 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2117
8a7b1113 2118 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2119 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2120 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2121 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2122
2123 DEFAULT_wxUSE_RESOURCES=no
2124 DEFAULT_wxUSE_CONSTRAINTS=no
2125 DEFAULT_wxUSE_IPC=no
2126 DEFAULT_wxUSE_HELP=no
2127 DEFAULT_wxUSE_MS_HTML_HELP=no
2128 DEFAULT_wxUSE_WXHTML_HELP=no
2129 DEFAULT_wxUSE_TREELAYOUT=no
2130 DEFAULT_wxUSE_METAFILE=no
2131 DEFAULT_wxUSE_MIMETYPE=no
2132 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2133 DEFAULT_wxUSE_PROTOCOL=no
2134 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2135 DEFAULT_wxUSE_PROTOCOL_FTP=no
2136 DEFAULT_wxUSE_PROTOCOL_FILE=no
2137 DEFAULT_wxUSE_URL=no
2138
2139 DEFAULT_wxUSE_COMMONDLGS=no
2140 DEFAULT_wxUSE_CHOICEDLG=no
2141 DEFAULT_wxUSE_COLOURDLG=no
2142 DEFAULT_wxUSE_DIRDLG=no
2143 DEFAULT_wxUSE_FILEDLG=no
2144 DEFAULT_wxUSE_FINDREPLDLG=no
2145 DEFAULT_wxUSE_FONTDLG=no
2146 DEFAULT_wxUSE_MSGDLG=no
2147 DEFAULT_wxUSE_NUMBERDLG=no
2148 DEFAULT_wxUSE_TEXTDLG=no
2149 DEFAULT_wxUSE_SPLASH=no
2150 DEFAULT_wxUSE_STARTUP_TIPS=no
2151 DEFAULT_wxUSE_PROGRESSDLG=no
2152 DEFAULT_wxUSE_WIZARDDLG=no
2153
2154 DEFAULT_wxUSE_MENUS=no
2155 DEFAULT_wxUSE_MINIFRAME=no
2156 DEFAULT_wxUSE_HTML=no
9a8f0513 2157 DEFAULT_wxUSE_XRC=no
646b6ec1 2158 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2159 DEFAULT_wxUSE_FILESYSTEM=no
2160 DEFAULT_wxUSE_FS_INET=no
2161 DEFAULT_wxUSE_FS_ZIP=no
2162 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2163 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2164 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2165 DEFAULT_wxUSE_VALIDATORS=no
2166
2167 DEFAULT_wxUSE_ACCEL=no
2168 DEFAULT_wxUSE_BUTTON=no
2169 DEFAULT_wxUSE_BMPBUTTON=no
2170 DEFAULT_wxUSE_CALCTRL=no
2171 DEFAULT_wxUSE_CARET=no
2172 DEFAULT_wxUSE_CHECKBOX=no
2173 DEFAULT_wxUSE_CHECKLST=no
2174 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2175 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2176 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2177 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2178 DEFAULT_wxUSE_DISPLAY=no
2179 DEFAULT_wxUSE_GAUGE=no
2180 DEFAULT_wxUSE_GRID=no
2181 DEFAULT_wxUSE_IMAGLIST=no
2182 DEFAULT_wxUSE_LISTBOOK=no
2183 DEFAULT_wxUSE_LISTBOX=no
2184 DEFAULT_wxUSE_LISTCTRL=no
2185 DEFAULT_wxUSE_NOTEBOOK=no
2186 DEFAULT_wxUSE_RADIOBOX=no
2187 DEFAULT_wxUSE_RADIOBTN=no
2188 DEFAULT_wxUSE_SASH=no
2189 DEFAULT_wxUSE_SCROLLBAR=no
2190 DEFAULT_wxUSE_SLIDER=no
2191 DEFAULT_wxUSE_SPINBTN=no
2192 DEFAULT_wxUSE_SPINCTRL=no
2193 DEFAULT_wxUSE_SPLITTER=no
2194 DEFAULT_wxUSE_STATBMP=no
2195 DEFAULT_wxUSE_STATBOX=no
2196 DEFAULT_wxUSE_STATLINE=no
2197 DEFAULT_wxUSE_STATTEXT=no
2198 DEFAULT_wxUSE_STATUSBAR=yes
2199 DEFAULT_wxUSE_TABDIALOG=no
2200 DEFAULT_wxUSE_TEXTCTRL=no
2201 DEFAULT_wxUSE_TOGGLEBTN=no
2202 DEFAULT_wxUSE_TOOLBAR=no
2203 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2204 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2205 DEFAULT_wxUSE_TREECTRL=no
2206 DEFAULT_wxUSE_POPUPWIN=no
2207 DEFAULT_wxUSE_TIPWINDOW=no
2208
2209 DEFAULT_wxUSE_UNICODE=no
2210 DEFAULT_wxUSE_UNICODE_MSLU=no
2211 DEFAULT_wxUSE_WCSRTOMBS=no
2212
2213 DEFAULT_wxUSE_PALETTE=no
2214 DEFAULT_wxUSE_IMAGE=no
2215 DEFAULT_wxUSE_GIF=no
2216 DEFAULT_wxUSE_PCX=no
2217 DEFAULT_wxUSE_PNM=no
2218 DEFAULT_wxUSE_IFF=no
2219 DEFAULT_wxUSE_XPM=no
2220 DEFAULT_wxUSE_ICO_CUR=no
2221 DEFAULT_wxUSE_ACCESSIBILITY=no
2222
2223 DEFAULT_wxUSE_MONOLITHIC=no
2224 DEFAULT_wxUSE_PLUGINS=no
2225 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2226else
2227 DEFAULT_wxUSE_UNIVERSAL=no
2228 DEFAULT_wxUSE_STL=no
2229
2230 DEFAULT_wxUSE_NANOX=no
2231
2232 DEFAULT_wxUSE_THREADS=yes
2233
2234 DEFAULT_wxUSE_SHARED=yes
2235 DEFAULT_wxUSE_OPTIMISE=yes
2236 DEFAULT_wxUSE_PROFILE=no
2237 DEFAULT_wxUSE_NO_DEPS=no
2238 DEFAULT_wxUSE_NO_RTTI=no
2239 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2240 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2241 DEFAULT_wxUSE_PERMISSIVE=no
2242 DEFAULT_wxUSE_DEBUG_FLAG=no
2243 DEFAULT_wxUSE_DEBUG_INFO=no
2244 DEFAULT_wxUSE_DEBUG_GDB=no
2245 DEFAULT_wxUSE_MEM_TRACING=no
2246 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2247 DEFAULT_wxUSE_DMALLOC=no
2248 DEFAULT_wxUSE_APPLE_IEEE=yes
2249
2250 DEFAULT_wxUSE_EXCEPTIONS=yes
2251 DEFAULT_wxUSE_LOG=yes
2252 DEFAULT_wxUSE_LOGWINDOW=yes
2253 DEFAULT_wxUSE_LOGGUI=yes
2254 DEFAULT_wxUSE_LOGDIALOG=yes
2255
2256 DEFAULT_wxUSE_GUI=yes
2257
2258 DEFAULT_wxUSE_REGEX=yes
2259 DEFAULT_wxUSE_XML=yes
2260 DEFAULT_wxUSE_EXPAT=yes
2261 DEFAULT_wxUSE_ZLIB=yes
2262 DEFAULT_wxUSE_LIBPNG=yes
2263 DEFAULT_wxUSE_LIBJPEG=yes
2264 DEFAULT_wxUSE_LIBTIFF=yes
2265 DEFAULT_wxUSE_LIBXPM=yes
2266 DEFAULT_wxUSE_LIBMSPACK=yes
2267 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2268 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2269 DEFAULT_wxUSE_ODBC=no
52cb607e 2270 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2271
2272 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2273 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2274 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2275 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2276 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2277 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2278 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2279 DEFAULT_wxUSE_DATETIME=yes
2280 DEFAULT_wxUSE_TIMER=yes
2281 DEFAULT_wxUSE_STOPWATCH=yes
2282 DEFAULT_wxUSE_FILE=yes
2283 DEFAULT_wxUSE_FFILE=yes
07158944 2284 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2285 DEFAULT_wxUSE_TEXTBUFFER=yes
2286 DEFAULT_wxUSE_TEXTFILE=yes
2287 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2288 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2289 DEFAULT_wxUSE_INTL=yes
2290 DEFAULT_wxUSE_CONFIG=yes
2291 DEFAULT_wxUSE_FONTMAP=yes
2292 DEFAULT_wxUSE_STREAMS=yes
2293 DEFAULT_wxUSE_SOCKETS=yes
2294 DEFAULT_wxUSE_OLE=yes
2295 DEFAULT_wxUSE_DATAOBJ=yes
2296 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2297 DEFAULT_wxUSE_JOYSTICK=yes
2298 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2299 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2300 DEFAULT_wxUSE_LONGLONG=yes
2301 DEFAULT_wxUSE_GEOMETRY=yes
2302
2303 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2304 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2305 DEFAULT_wxUSE_POSTSCRIPT=yes
2306
2307 DEFAULT_wxUSE_CLIPBOARD=yes
2308 DEFAULT_wxUSE_TOOLTIPS=yes
2309 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2310 DEFAULT_wxUSE_DRAGIMAGE=yes
2311 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2312 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2313
8a7b1113 2314 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2315 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2316 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2317 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2318
2319 DEFAULT_wxUSE_RESOURCES=no
2320 DEFAULT_wxUSE_CONSTRAINTS=yes
2321 DEFAULT_wxUSE_IPC=yes
2322 DEFAULT_wxUSE_HELP=yes
2323 DEFAULT_wxUSE_MS_HTML_HELP=yes
2324 DEFAULT_wxUSE_WXHTML_HELP=yes
2325 DEFAULT_wxUSE_TREELAYOUT=yes
2326 DEFAULT_wxUSE_METAFILE=yes
2327 DEFAULT_wxUSE_MIMETYPE=yes
2328 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2329 DEFAULT_wxUSE_PROTOCOL=yes
2330 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2331 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2332 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2333 DEFAULT_wxUSE_URL=yes
2334
2335 DEFAULT_wxUSE_COMMONDLGS=yes
2336 DEFAULT_wxUSE_CHOICEDLG=yes
2337 DEFAULT_wxUSE_COLOURDLG=yes
2338 DEFAULT_wxUSE_DIRDLG=yes
2339 DEFAULT_wxUSE_FILEDLG=yes
2340 DEFAULT_wxUSE_FINDREPLDLG=yes
2341 DEFAULT_wxUSE_FONTDLG=yes
2342 DEFAULT_wxUSE_MSGDLG=yes
2343 DEFAULT_wxUSE_NUMBERDLG=yes
2344 DEFAULT_wxUSE_TEXTDLG=yes
2345 DEFAULT_wxUSE_SPLASH=yes
2346 DEFAULT_wxUSE_STARTUP_TIPS=yes
2347 DEFAULT_wxUSE_PROGRESSDLG=yes
2348 DEFAULT_wxUSE_WIZARDDLG=yes
2349
2350 DEFAULT_wxUSE_MENUS=yes
2351 DEFAULT_wxUSE_MINIFRAME=yes
2352 DEFAULT_wxUSE_HTML=yes
9a8f0513 2353 DEFAULT_wxUSE_XRC=yes
646b6ec1 2354 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2355 DEFAULT_wxUSE_FILESYSTEM=yes
2356 DEFAULT_wxUSE_FS_INET=yes
2357 DEFAULT_wxUSE_FS_ZIP=yes
2358 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2359 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2360 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2361 DEFAULT_wxUSE_VALIDATORS=yes
2362
2363 DEFAULT_wxUSE_ACCEL=yes
2364 DEFAULT_wxUSE_BUTTON=yes
2365 DEFAULT_wxUSE_BMPBUTTON=yes
2366 DEFAULT_wxUSE_CALCTRL=yes
2367 DEFAULT_wxUSE_CARET=yes
2368 DEFAULT_wxUSE_CHECKBOX=yes
2369 DEFAULT_wxUSE_CHECKLST=yes
2370 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2371 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2372 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2373 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2374 DEFAULT_wxUSE_DISPLAY=yes
2375 DEFAULT_wxUSE_GAUGE=yes
2376 DEFAULT_wxUSE_GRID=yes
2377 DEFAULT_wxUSE_IMAGLIST=yes
2378 DEFAULT_wxUSE_LISTBOOK=yes
2379 DEFAULT_wxUSE_LISTBOX=yes
2380 DEFAULT_wxUSE_LISTCTRL=yes
2381 DEFAULT_wxUSE_NOTEBOOK=yes
2382 DEFAULT_wxUSE_RADIOBOX=yes
2383 DEFAULT_wxUSE_RADIOBTN=yes
2384 DEFAULT_wxUSE_SASH=yes
2385 DEFAULT_wxUSE_SCROLLBAR=yes
2386 DEFAULT_wxUSE_SLIDER=yes
2387 DEFAULT_wxUSE_SPINBTN=yes
2388 DEFAULT_wxUSE_SPINCTRL=yes
2389 DEFAULT_wxUSE_SPLITTER=yes
2390 DEFAULT_wxUSE_STATBMP=yes
2391 DEFAULT_wxUSE_STATBOX=yes
2392 DEFAULT_wxUSE_STATLINE=yes
2393 DEFAULT_wxUSE_STATTEXT=yes
2394 DEFAULT_wxUSE_STATUSBAR=yes
2395 DEFAULT_wxUSE_TABDIALOG=no
2396 DEFAULT_wxUSE_TEXTCTRL=yes
2397 DEFAULT_wxUSE_TOGGLEBTN=yes
2398 DEFAULT_wxUSE_TOOLBAR=yes
2399 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2400 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2401 DEFAULT_wxUSE_TREECTRL=yes
2402 DEFAULT_wxUSE_POPUPWIN=yes
2403 DEFAULT_wxUSE_TIPWINDOW=yes
2404
78de529b 2405 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2406 DEFAULT_wxUSE_UNICODE_MSLU=yes
2407 DEFAULT_wxUSE_WCSRTOMBS=no
2408
2409 DEFAULT_wxUSE_PALETTE=yes
2410 DEFAULT_wxUSE_IMAGE=yes
2411 DEFAULT_wxUSE_GIF=yes
2412 DEFAULT_wxUSE_PCX=yes
2413 DEFAULT_wxUSE_IFF=no
2414 DEFAULT_wxUSE_PNM=yes
2415 DEFAULT_wxUSE_XPM=yes
2416 DEFAULT_wxUSE_ICO_CUR=yes
2417 DEFAULT_wxUSE_ACCESSIBILITY=no
2418
2419 DEFAULT_wxUSE_MONOLITHIC=no
2420 DEFAULT_wxUSE_PLUGINS=no
2421 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2422
f34ca037 2423 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2424fi
2425
2426
2427
f34ca037 2428
a848cd7e
SC
2429for toolkit in `echo $ALL_TOOLKITS`; do
2430 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2431 if test "x$LINE" != "x" ; then
2432 has_toolkit_in_cache=1
2433 eval "DEFAULT_$LINE"
2434 eval "CACHE_$toolkit=1"
f34ca037
MW
2435
2436 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2437 if test "x$LINE" != "x" ; then
2438 eval "DEFAULT_$LINE"
2439 fi
a848cd7e
SC
2440 fi
2441done
2442
2443
2444
2445 enablestring=
2446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2447echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2448 no_cache=0
2449 # Check whether --enable-gui or --disable-gui was given.
2450if test "${enable_gui+set}" = set; then
2451 enableval="$enable_gui"
2452
2453 if test "$enableval" = yes; then
2454 ac_cv_use_gui='wxUSE_GUI=yes'
2455 else
2456 ac_cv_use_gui='wxUSE_GUI=no'
2457 fi
2458
2459else
2460
2461 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2462 if test "x$LINE" != x ; then
2463 eval "DEFAULT_$LINE"
2464 else
2465 no_cache=1
2466 fi
2467
2468 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2469
2470fi;
2471
2472 eval "$ac_cv_use_gui"
2473 if test "$no_cache" != 1; then
2474 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2475 fi
2476
2477 if test "$wxUSE_GUI" = yes; then
2478 echo "$as_me:$LINENO: result: yes" >&5
2479echo "${ECHO_T}yes" >&6
2480 else
2481 echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6
2483 fi
2484
2485
2486 enablestring=
2487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2488echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2489 no_cache=0
2490 # Check whether --enable-monolithic or --disable-monolithic was given.
2491if test "${enable_monolithic+set}" = set; then
2492 enableval="$enable_monolithic"
2493
2494 if test "$enableval" = yes; then
2495 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2496 else
2497 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2498 fi
2499
2500else
2501
2502 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2503 if test "x$LINE" != x ; then
2504 eval "DEFAULT_$LINE"
2505 else
2506 no_cache=1
2507 fi
2508
2509 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2510
2511fi;
2512
2513 eval "$ac_cv_use_monolithic"
2514 if test "$no_cache" != 1; then
2515 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2516 fi
2517
2518 if test "$wxUSE_MONOLITHIC" = yes; then
2519 echo "$as_me:$LINENO: result: yes" >&5
2520echo "${ECHO_T}yes" >&6
2521 else
2522 echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6
2524 fi
2525
2526
2527 enablestring=
2528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2529echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2530 no_cache=0
2531 # Check whether --enable-plugins or --disable-plugins was given.
2532if test "${enable_plugins+set}" = set; then
2533 enableval="$enable_plugins"
2534
2535 if test "$enableval" = yes; then
2536 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2537 else
2538 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2539 fi
2540
2541else
2542
2543 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2551
2552fi;
2553
2554 eval "$ac_cv_use_plugins"
2555 if test "$no_cache" != 1; then
2556 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2557 fi
2558
2559 if test "$wxUSE_PLUGINS" = yes; then
2560 echo "$as_me:$LINENO: result: yes" >&5
2561echo "${ECHO_T}yes" >&6
2562 else
2563 echo "$as_me:$LINENO: result: no" >&5
2564echo "${ECHO_T}no" >&6
2565 fi
2566
2567
2568if test "$wxUSE_GUI" = "yes"; then
2569
2570
2571 enablestring=
2572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2573echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2574 no_cache=0
2575 # Check whether --enable-universal or --disable-universal was given.
2576if test "${enable_universal+set}" = set; then
2577 enableval="$enable_universal"
2578
2579 if test "$enableval" = yes; then
2580 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2581 else
2582 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2583 fi
2584
2585else
2586
2587 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2588 if test "x$LINE" != x ; then
2589 eval "DEFAULT_$LINE"
2590 else
2591 no_cache=1
2592 fi
2593
2594 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2595
2596fi;
2597
2598 eval "$ac_cv_use_universal"
2599 if test "$no_cache" != 1; then
2600 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2601 fi
2602
2603 if test "$wxUSE_UNIVERSAL" = yes; then
2604 echo "$as_me:$LINENO: result: yes" >&5
2605echo "${ECHO_T}yes" >&6
2606 else
2607 echo "$as_me:$LINENO: result: no" >&5
2608echo "${ECHO_T}no" >&6
2609 fi
2610
2611
2612# Check whether --with-gtk or --without-gtk was given.
2613if test "${with_gtk+set}" = set; then
2614 withval="$with_gtk"
2615 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2616fi;
2617
2618# Check whether --with-motif or --without-motif was given.
2619if test "${with_motif+set}" = set; then
2620 withval="$with_motif"
2621 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2622fi;
2623
2624# Check whether --with-mac or --without-mac was given.
2625if test "${with_mac+set}" = set; then
2626 withval="$with_mac"
c228d3a4 2627 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2628fi;
2629
2630# Check whether --with-cocoa or --without-cocoa was given.
2631if test "${with_cocoa+set}" = set; then
2632 withval="$with_cocoa"
c228d3a4 2633 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2634fi;
2635
2636# Check whether --with-wine or --without-wine was given.
2637if test "${with_wine+set}" = set; then
2638 withval="$with_wine"
2639 wxUSE_WINE="$withval" CACHE_WINE=1
2640fi;
2641
2642# Check whether --with-msw or --without-msw was given.
2643if test "${with_msw+set}" = set; then
2644 withval="$with_msw"
2645 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2646fi;
2647
2648# Check whether --with-pm or --without-pm was given.
2649if test "${with_pm+set}" = set; then
2650 withval="$with_pm"
2651 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654# Check whether --with-mgl or --without-mgl was given.
2655if test "${with_mgl+set}" = set; then
2656 withval="$with_mgl"
2657 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2658fi;
2659
2660# Check whether --with-microwin or --without-microwin was given.
2661if test "${with_microwin+set}" = set; then
2662 withval="$with_microwin"
2663 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2664fi;
2665
2666# Check whether --with-x11 or --without-x11 was given.
2667if test "${with_x11+set}" = set; then
2668 withval="$with_x11"
2669 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2670fi;
2671
2672 enablestring=
2673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2674echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2675 no_cache=0
2676 # Check whether --enable-nanox or --disable-nanox was given.
2677if test "${enable_nanox+set}" = set; then
2678 enableval="$enable_nanox"
2679
2680 if test "$enableval" = yes; then
2681 ac_cv_use_nanox='wxUSE_NANOX=yes'
2682 else
2683 ac_cv_use_nanox='wxUSE_NANOX=no'
2684 fi
2685
2686else
2687
2688 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2689 if test "x$LINE" != x ; then
2690 eval "DEFAULT_$LINE"
2691 else
2692 no_cache=1
2693 fi
2694
2695 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2696
2697fi;
2698
2699 eval "$ac_cv_use_nanox"
2700 if test "$no_cache" != 1; then
2701 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2702 fi
2703
2704 if test "$wxUSE_NANOX" = yes; then
2705 echo "$as_me:$LINENO: result: yes" >&5
2706echo "${ECHO_T}yes" >&6
2707 else
2708 echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6
2710 fi
2711
2712
f34ca037
MW
2713# Check whether --enable-gtk2 or --disable-gtk2 was given.
2714if test "${enable_gtk2+set}" = set; then
2715 enableval="$enable_gtk2"
2716 wxUSE_GTK2="$enableval"
2717fi;
a848cd7e 2718
a848cd7e
SC
2719 enablestring=
2720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2721echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2722 no_cache=0
2723 # Check whether --enable-gpe or --disable-gpe was given.
2724if test "${enable_gpe+set}" = set; then
2725 enableval="$enable_gpe"
2726
2727 if test "$enableval" = yes; then
2728 ac_cv_use_gpe='wxUSE_GPE=yes'
2729 else
2730 ac_cv_use_gpe='wxUSE_GPE=no'
2731 fi
2732
2733else
2734
2735 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2736 if test "x$LINE" != x ; then
2737 eval "DEFAULT_$LINE"
2738 else
2739 no_cache=1
2740 fi
2741
2742 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2743
2744fi;
2745
2746 eval "$ac_cv_use_gpe"
2747 if test "$no_cache" != 1; then
2748 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2749 fi
2750
2751 if test "$wxUSE_GPE" = yes; then
2752 echo "$as_me:$LINENO: result: yes" >&5
2753echo "${ECHO_T}yes" >&6
2754 else
2755 echo "$as_me:$LINENO: result: no" >&5
2756echo "${ECHO_T}no" >&6
2757 fi
2758
2759
2760
2761 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2762echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2763 no_cache=0
2764
2765# Check whether --with-libpng or --without-libpng was given.
2766if test "${with_libpng+set}" = set; then
2767 withval="$with_libpng"
2768
2769 if test "$withval" = yes; then
2770 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2771 elif test "$withval" = no; then
2772 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2773 elif test "$withval" = sys; then
2774 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2775 elif test "$withval" = builtin; then
2776 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2777 else
2778 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2779echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2780 { (exit 1); exit 1; }; }
2781 fi
2782
2783else
2784
2785 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2786 if test "x$LINE" != x ; then
2787 eval "DEFAULT_$LINE"
2788 else
2789 no_cache=1
2790 fi
2791
2792 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2793
2794fi;
2795
2796 eval "$ac_cv_use_libpng"
2797 if test "$no_cache" != 1; then
2798 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2799 fi
2800
2801 if test "$wxUSE_LIBPNG" = yes; then
2802 echo "$as_me:$LINENO: result: yes" >&5
2803echo "${ECHO_T}yes" >&6
2804 elif test "$wxUSE_LIBPNG" = no; then
2805 echo "$as_me:$LINENO: result: no" >&5
2806echo "${ECHO_T}no" >&6
2807 elif test "$wxUSE_LIBPNG" = sys; then
2808 echo "$as_me:$LINENO: result: system version" >&5
2809echo "${ECHO_T}system version" >&6
2810 elif test "$wxUSE_LIBPNG" = builtin; then
2811 echo "$as_me:$LINENO: result: builtin version" >&5
2812echo "${ECHO_T}builtin version" >&6
2813 else
2814 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2815echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2816 { (exit 1); exit 1; }; }
2817 fi
2818
2819
2820 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2821echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2822 no_cache=0
2823
2824# Check whether --with-libjpeg or --without-libjpeg was given.
2825if test "${with_libjpeg+set}" = set; then
2826 withval="$with_libjpeg"
2827
2828 if test "$withval" = yes; then
2829 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2830 elif test "$withval" = no; then
2831 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2832 elif test "$withval" = sys; then
2833 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2834 elif test "$withval" = builtin; then
2835 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2836 else
2837 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2838echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2839 { (exit 1); exit 1; }; }
2840 fi
2841
2842else
2843
2844 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2845 if test "x$LINE" != x ; then
2846 eval "DEFAULT_$LINE"
2847 else
2848 no_cache=1
2849 fi
2850
2851 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2852
2853fi;
2854
2855 eval "$ac_cv_use_libjpeg"
2856 if test "$no_cache" != 1; then
2857 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2858 fi
2859
2860 if test "$wxUSE_LIBJPEG" = yes; then
2861 echo "$as_me:$LINENO: result: yes" >&5
2862echo "${ECHO_T}yes" >&6
2863 elif test "$wxUSE_LIBJPEG" = no; then
2864 echo "$as_me:$LINENO: result: no" >&5
2865echo "${ECHO_T}no" >&6
2866 elif test "$wxUSE_LIBJPEG" = sys; then
2867 echo "$as_me:$LINENO: result: system version" >&5
2868echo "${ECHO_T}system version" >&6
2869 elif test "$wxUSE_LIBJPEG" = builtin; then
2870 echo "$as_me:$LINENO: result: builtin version" >&5
2871echo "${ECHO_T}builtin version" >&6
2872 else
2873 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2874echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2875 { (exit 1); exit 1; }; }
2876 fi
2877
2878
2879 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2880echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2881 no_cache=0
2882
2883# Check whether --with-libtiff or --without-libtiff was given.
2884if test "${with_libtiff+set}" = set; then
2885 withval="$with_libtiff"
2886
2887 if test "$withval" = yes; then
2888 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2889 elif test "$withval" = no; then
2890 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2891 elif test "$withval" = sys; then
2892 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2893 elif test "$withval" = builtin; then
2894 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2895 else
2896 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2897echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2898 { (exit 1); exit 1; }; }
2899 fi
2900
2901else
2902
2903 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2904 if test "x$LINE" != x ; then
2905 eval "DEFAULT_$LINE"
2906 else
2907 no_cache=1
2908 fi
2909
2910 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2911
2912fi;
2913
2914 eval "$ac_cv_use_libtiff"
2915 if test "$no_cache" != 1; then
2916 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2917 fi
2918
2919 if test "$wxUSE_LIBTIFF" = yes; then
2920 echo "$as_me:$LINENO: result: yes" >&5
2921echo "${ECHO_T}yes" >&6
2922 elif test "$wxUSE_LIBTIFF" = no; then
2923 echo "$as_me:$LINENO: result: no" >&5
2924echo "${ECHO_T}no" >&6
2925 elif test "$wxUSE_LIBTIFF" = sys; then
2926 echo "$as_me:$LINENO: result: system version" >&5
2927echo "${ECHO_T}system version" >&6
2928 elif test "$wxUSE_LIBTIFF" = builtin; then
2929 echo "$as_me:$LINENO: result: builtin version" >&5
2930echo "${ECHO_T}builtin version" >&6
2931 else
2932 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2933echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2934 { (exit 1); exit 1; }; }
2935 fi
2936
2937
2938 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2939echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2940 no_cache=0
2941
2942# Check whether --with-libxpm or --without-libxpm was given.
2943if test "${with_libxpm+set}" = set; then
2944 withval="$with_libxpm"
2945
2946 if test "$withval" = yes; then
2947 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2948 elif test "$withval" = no; then
2949 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2950 elif test "$withval" = sys; then
2951 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2952 elif test "$withval" = builtin; then
2953 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2954 else
2955 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2956echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2957 { (exit 1); exit 1; }; }
2958 fi
2959
2960else
2961
2962 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2963 if test "x$LINE" != x ; then
2964 eval "DEFAULT_$LINE"
2965 else
2966 no_cache=1
2967 fi
2968
2969 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2970
2971fi;
2972
2973 eval "$ac_cv_use_libxpm"
2974 if test "$no_cache" != 1; then
2975 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2976 fi
2977
2978 if test "$wxUSE_LIBXPM" = yes; then
2979 echo "$as_me:$LINENO: result: yes" >&5
2980echo "${ECHO_T}yes" >&6
2981 elif test "$wxUSE_LIBXPM" = no; then
2982 echo "$as_me:$LINENO: result: no" >&5
2983echo "${ECHO_T}no" >&6
2984 elif test "$wxUSE_LIBXPM" = sys; then
2985 echo "$as_me:$LINENO: result: system version" >&5
2986echo "${ECHO_T}system version" >&6
2987 elif test "$wxUSE_LIBXPM" = builtin; then
2988 echo "$as_me:$LINENO: result: builtin version" >&5
2989echo "${ECHO_T}builtin version" >&6
2990 else
2991 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2992echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2993 { (exit 1); exit 1; }; }
2994 fi
2995
2996
2997 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2998echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2999 no_cache=0
3000
3001# Check whether --with-libmspack or --without-libmspack was given.
3002if test "${with_libmspack+set}" = set; then
3003 withval="$with_libmspack"
3004
3005 if test "$withval" = yes; then
3006 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3007 else
3008 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3009 fi
3010
3011else
3012
3013 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3014 if test "x$LINE" != x ; then
3015 eval "DEFAULT_$LINE"
3016 else
3017 no_cache=1
3018 fi
3019
3020 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3021
3022fi;
3023
3024 eval "$ac_cv_use_libmspack"
3025 if test "$no_cache" != 1; then
3026 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3027 fi
3028
3029 if test "$wxUSE_LIBMSPACK" = yes; then
3030 echo "$as_me:$LINENO: result: yes" >&5
3031echo "${ECHO_T}yes" >&6
3032 else
3033 echo "$as_me:$LINENO: result: no" >&5
3034echo "${ECHO_T}no" >&6
3035 fi
3036
3037
3038 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3039echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3040 no_cache=0
3041
3042# Check whether --with-sdl or --without-sdl was given.
3043if test "${with_sdl+set}" = set; then
3044 withval="$with_sdl"
3045
3046 if test "$withval" = yes; then
3047 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3048 else
3049 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3050 fi
3051
3052else
3053
3054 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3055 if test "x$LINE" != x ; then
3056 eval "DEFAULT_$LINE"
3057 else
3058 no_cache=1
3059 fi
3060
3061 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3062
3063fi;
3064
3065 eval "$ac_cv_use_sdl"
3066 if test "$no_cache" != 1; then
3067 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3068 fi
3069
3070 if test "$wxUSE_LIBSDL" = yes; then
3071 echo "$as_me:$LINENO: result: yes" >&5
3072echo "${ECHO_T}yes" >&6
3073 else
3074 echo "$as_me:$LINENO: result: no" >&5
3075echo "${ECHO_T}no" >&6
3076 fi
3077
3078
d1c38808
VZ
3079 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3080echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3081 no_cache=0
3082
3083# Check whether --with-gnomeprint or --without-gnomeprint was given.
3084if test "${with_gnomeprint+set}" = set; then
3085 withval="$with_gnomeprint"
3086
3087 if test "$withval" = yes; then
3088 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3089 else
3090 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3091 fi
3092
3093else
3094
3095 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${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_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3103
3104fi;
3105
3106 eval "$ac_cv_use_gnomeprint"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3112 echo "$as_me:$LINENO: result: yes" >&5
3113echo "${ECHO_T}yes" >&6
3114 else
3115 echo "$as_me:$LINENO: result: no" >&5
3116echo "${ECHO_T}no" >&6
3117 fi
3118
3119
a848cd7e
SC
3120 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3121echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3122 no_cache=0
3123
3124# Check whether --with-opengl or --without-opengl was given.
3125if test "${with_opengl+set}" = set; then
3126 withval="$with_opengl"
3127
3128 if test "$withval" = yes; then
3129 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3130 else
3131 ac_cv_use_opengl='wxUSE_OPENGL=no'
3132 fi
3133
3134else
3135
3136 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3137 if test "x$LINE" != x ; then
3138 eval "DEFAULT_$LINE"
3139 else
3140 no_cache=1
3141 fi
3142
3143 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3144
3145fi;
3146
3147 eval "$ac_cv_use_opengl"
3148 if test "$no_cache" != 1; then
3149 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3150 fi
3151
3152 if test "$wxUSE_OPENGL" = yes; then
3153 echo "$as_me:$LINENO: result: yes" >&5
3154echo "${ECHO_T}yes" >&6
3155 else
3156 echo "$as_me:$LINENO: result: no" >&5
3157echo "${ECHO_T}no" >&6
3158 fi
3159
3160
3161fi
3162
3163
3164 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3165echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3166 no_cache=0
3167
3168# Check whether --with-dmalloc or --without-dmalloc was given.
3169if test "${with_dmalloc+set}" = set; then
3170 withval="$with_dmalloc"
3171
3172 if test "$withval" = yes; then
3173 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3174 else
3175 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3176 fi
3177
3178else
3179
3180 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3181 if test "x$LINE" != x ; then
3182 eval "DEFAULT_$LINE"
3183 else
3184 no_cache=1
3185 fi
3186
3187 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3188
3189fi;
3190
3191 eval "$ac_cv_use_dmalloc"
3192 if test "$no_cache" != 1; then
3193 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3194 fi
3195
3196 if test "$wxUSE_DMALLOC" = yes; then
3197 echo "$as_me:$LINENO: result: yes" >&5
3198echo "${ECHO_T}yes" >&6
3199 else
3200 echo "$as_me:$LINENO: result: no" >&5
3201echo "${ECHO_T}no" >&6
3202 fi
3203
3204
3205 echo "$as_me:$LINENO: checking for --with-regex" >&5
3206echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3207 no_cache=0
3208
3209# Check whether --with-regex or --without-regex was given.
3210if test "${with_regex+set}" = set; then
3211 withval="$with_regex"
3212
3213 if test "$withval" = yes; then
3214 ac_cv_use_regex='wxUSE_REGEX=yes'
3215 elif test "$withval" = no; then
3216 ac_cv_use_regex='wxUSE_REGEX=no'
3217 elif test "$withval" = sys; then
3218 ac_cv_use_regex='wxUSE_REGEX=sys'
3219 elif test "$withval" = builtin; then
3220 ac_cv_use_regex='wxUSE_REGEX=builtin'
3221 else
3222 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3223echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3224 { (exit 1); exit 1; }; }
3225 fi
3226
3227else
3228
3229 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
3236 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3237
3238fi;
3239
3240 eval "$ac_cv_use_regex"
3241 if test "$no_cache" != 1; then
3242 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3243 fi
3244
3245 if test "$wxUSE_REGEX" = yes; then
3246 echo "$as_me:$LINENO: result: yes" >&5
3247echo "${ECHO_T}yes" >&6
3248 elif test "$wxUSE_REGEX" = no; then
3249 echo "$as_me:$LINENO: result: no" >&5
3250echo "${ECHO_T}no" >&6
3251 elif test "$wxUSE_REGEX" = sys; then
3252 echo "$as_me:$LINENO: result: system version" >&5
3253echo "${ECHO_T}system version" >&6
3254 elif test "$wxUSE_REGEX" = builtin; then
3255 echo "$as_me:$LINENO: result: builtin version" >&5
3256echo "${ECHO_T}builtin version" >&6
3257 else
3258 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3259echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3260 { (exit 1); exit 1; }; }
3261 fi
3262
3263
3264 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3265echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3266 no_cache=0
3267
3268# Check whether --with-zlib or --without-zlib was given.
3269if test "${with_zlib+set}" = set; then
3270 withval="$with_zlib"
3271
3272 if test "$withval" = yes; then
3273 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3274 elif test "$withval" = no; then
3275 ac_cv_use_zlib='wxUSE_ZLIB=no'
3276 elif test "$withval" = sys; then
3277 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3278 elif test "$withval" = builtin; then
3279 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3280 else
3281 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3282echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3283 { (exit 1); exit 1; }; }
3284 fi
3285
3286else
3287
3288 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3289 if test "x$LINE" != x ; then
3290 eval "DEFAULT_$LINE"
3291 else
3292 no_cache=1
3293 fi
3294
3295 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3296
3297fi;
3298
3299 eval "$ac_cv_use_zlib"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_ZLIB" = yes; then
3305 echo "$as_me:$LINENO: result: yes" >&5
3306echo "${ECHO_T}yes" >&6
3307 elif test "$wxUSE_ZLIB" = no; then
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310 elif test "$wxUSE_ZLIB" = sys; then
3311 echo "$as_me:$LINENO: result: system version" >&5
3312echo "${ECHO_T}system version" >&6
3313 elif test "$wxUSE_ZLIB" = builtin; then
3314 echo "$as_me:$LINENO: result: builtin version" >&5
3315echo "${ECHO_T}builtin version" >&6
3316 else
3317 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3318echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3319 { (exit 1); exit 1; }; }
3320 fi
3321
3322
3323 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3324echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3325 no_cache=0
3326
3327# Check whether --with-odbc or --without-odbc was given.
3328if test "${with_odbc+set}" = set; then
3329 withval="$with_odbc"
3330
3331 if test "$withval" = yes; then
3332 ac_cv_use_odbc='wxUSE_ODBC=yes'
3333 elif test "$withval" = no; then
3334 ac_cv_use_odbc='wxUSE_ODBC=no'
3335 elif test "$withval" = sys; then
3336 ac_cv_use_odbc='wxUSE_ODBC=sys'
3337 elif test "$withval" = builtin; then
3338 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3339 else
3340 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3341echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3342 { (exit 1); exit 1; }; }
3343 fi
3344
3345else
3346
3347 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3348 if test "x$LINE" != x ; then
3349 eval "DEFAULT_$LINE"
3350 else
3351 no_cache=1
3352 fi
3353
3354 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3355
3356fi;
3357
3358 eval "$ac_cv_use_odbc"
3359 if test "$no_cache" != 1; then
3360 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3361 fi
3362
3363 if test "$wxUSE_ODBC" = yes; then
3364 echo "$as_me:$LINENO: result: yes" >&5
3365echo "${ECHO_T}yes" >&6
3366 elif test "$wxUSE_ODBC" = no; then
3367 echo "$as_me:$LINENO: result: no" >&5
3368echo "${ECHO_T}no" >&6
3369 elif test "$wxUSE_ODBC" = sys; then
3370 echo "$as_me:$LINENO: result: system version" >&5
3371echo "${ECHO_T}system version" >&6
3372 elif test "$wxUSE_ODBC" = builtin; then
3373 echo "$as_me:$LINENO: result: builtin version" >&5
3374echo "${ECHO_T}builtin version" >&6
3375 else
3376 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3377echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3378 { (exit 1); exit 1; }; }
3379 fi
3380
3381
3382 echo "$as_me:$LINENO: checking for --with-expat" >&5
3383echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3384 no_cache=0
3385
3386# Check whether --with-expat or --without-expat was given.
3387if test "${with_expat+set}" = set; then
3388 withval="$with_expat"
3389
3390 if test "$withval" = yes; then
3391 ac_cv_use_expat='wxUSE_EXPAT=yes'
3392 elif test "$withval" = no; then
3393 ac_cv_use_expat='wxUSE_EXPAT=no'
3394 elif test "$withval" = sys; then
3395 ac_cv_use_expat='wxUSE_EXPAT=sys'
3396 elif test "$withval" = builtin; then
3397 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3398 else
3399 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3400echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3401 { (exit 1); exit 1; }; }
3402 fi
3403
3404else
3405
3406 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3407 if test "x$LINE" != x ; then
3408 eval "DEFAULT_$LINE"
3409 else
3410 no_cache=1
3411 fi
3412
3413 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3414
3415fi;
3416
3417 eval "$ac_cv_use_expat"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_EXPAT" = yes; then
3423 echo "$as_me:$LINENO: result: yes" >&5
3424echo "${ECHO_T}yes" >&6
3425 elif test "$wxUSE_EXPAT" = no; then
3426 echo "$as_me:$LINENO: result: no" >&5
3427echo "${ECHO_T}no" >&6
3428 elif test "$wxUSE_EXPAT" = sys; then
3429 echo "$as_me:$LINENO: result: system version" >&5
3430echo "${ECHO_T}system version" >&6
3431 elif test "$wxUSE_EXPAT" = builtin; then
3432 echo "$as_me:$LINENO: result: builtin version" >&5
3433echo "${ECHO_T}builtin version" >&6
3434 else
3435 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3436echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3437 { (exit 1); exit 1; }; }
3438 fi
3439
3440
3441
3442
3443 enablestring=
3444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3445echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3446 no_cache=0
3447 # Check whether --enable-shared or --disable-shared was given.
3448if test "${enable_shared+set}" = set; then
3449 enableval="$enable_shared"
3450
3451 if test "$enableval" = yes; then
3452 ac_cv_use_shared='wxUSE_SHARED=yes'
3453 else
3454 ac_cv_use_shared='wxUSE_SHARED=no'
3455 fi
3456
3457else
3458
3459 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3460 if test "x$LINE" != x ; then
3461 eval "DEFAULT_$LINE"
3462 else
3463 no_cache=1
3464 fi
3465
3466 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3467
3468fi;
3469
3470 eval "$ac_cv_use_shared"
3471 if test "$no_cache" != 1; then
3472 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3473 fi
3474
3475 if test "$wxUSE_SHARED" = yes; then
3476 echo "$as_me:$LINENO: result: yes" >&5
3477echo "${ECHO_T}yes" >&6
3478 else
3479 echo "$as_me:$LINENO: result: no" >&5
3480echo "${ECHO_T}no" >&6
3481 fi
3482
3483
3484 enablestring=
3485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3486echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3487 no_cache=0
3488 # Check whether --enable-optimise or --disable-optimise was given.
3489if test "${enable_optimise+set}" = set; then
3490 enableval="$enable_optimise"
3491
3492 if test "$enableval" = yes; then
3493 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3494 else
3495 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3496 fi
3497
3498else
3499
3500 LINE=`grep "wxUSE_OPTIMISE" ${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_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3508
3509fi;
3510
3511 eval "$ac_cv_use_optimise"
3512 if test "$no_cache" != 1; then
3513 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3514 fi
3515
3516 if test "$wxUSE_OPTIMISE" = yes; then
3517 echo "$as_me:$LINENO: result: yes" >&5
3518echo "${ECHO_T}yes" >&6
3519 else
3520 echo "$as_me:$LINENO: result: no" >&5
3521echo "${ECHO_T}no" >&6
3522 fi
3523
3524
3525 enablestring=
3526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3527echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3528 no_cache=0
3529 # Check whether --enable-debug or --disable-debug was given.
3530if test "${enable_debug+set}" = set; then
3531 enableval="$enable_debug"
3532
3533 if test "$enableval" = yes; then
3534 ac_cv_use_debug='wxUSE_DEBUG=yes'
3535 else
3536 ac_cv_use_debug='wxUSE_DEBUG=no'
3537 fi
3538
3539else
3540
3541 LINE=`grep "wxUSE_DEBUG" ${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='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3549
3550fi;
3551
3552 eval "$ac_cv_use_debug"
3553 if test "$no_cache" != 1; then
3554 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3555 fi
3556
3557 if test "$wxUSE_DEBUG" = yes; then
3558 echo "$as_me:$LINENO: result: yes" >&5
3559echo "${ECHO_T}yes" >&6
3560 else
3561 echo "$as_me:$LINENO: result: no" >&5
3562echo "${ECHO_T}no" >&6
3563 fi
3564
3565
3566 enablestring=
3567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3568echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3569 no_cache=0
3570 # Check whether --enable-stl or --disable-stl was given.
3571if test "${enable_stl+set}" = set; then
3572 enableval="$enable_stl"
3573
3574 if test "$enableval" = yes; then
3575 ac_cv_use_stl='wxUSE_STL=yes'
3576 else
3577 ac_cv_use_stl='wxUSE_STL=no'
3578 fi
3579
3580else
3581
3582 LINE=`grep "wxUSE_STL" ${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_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3590
3591fi;
3592
3593 eval "$ac_cv_use_stl"
3594 if test "$no_cache" != 1; then
3595 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3596 fi
3597
3598 if test "$wxUSE_STL" = yes; then
3599 echo "$as_me:$LINENO: result: yes" >&5
3600echo "${ECHO_T}yes" >&6
3601 else
3602 echo "$as_me:$LINENO: result: no" >&5
3603echo "${ECHO_T}no" >&6
3604 fi
3605
3606if test "$USE_OS2" = "1"; then
69120ee4 3607 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3608
3609 enablestring=
3610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3611echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3612 no_cache=0
3613 # Check whether --enable-omf or --disable-omf was given.
3614if test "${enable_omf+set}" = set; then
3615 enableval="$enable_omf"
3616
3617 if test "$enableval" = yes; then
3618 ac_cv_use_omf='wxUSE_OMF=yes'
3619 else
3620 ac_cv_use_omf='wxUSE_OMF=no'
3621 fi
3622
3623else
3624
3625 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3626 if test "x$LINE" != x ; then
3627 eval "DEFAULT_$LINE"
3628 else
3629 no_cache=1
3630 fi
3631
3632 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3633
3634fi;
3635
3636 eval "$ac_cv_use_omf"
3637 if test "$no_cache" != 1; then
3638 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3639 fi
3640
3641 if test "$wxUSE_OMF" = yes; then
3642 echo "$as_me:$LINENO: result: yes" >&5
3643echo "${ECHO_T}yes" >&6
3644 else
3645 echo "$as_me:$LINENO: result: no" >&5
3646echo "${ECHO_T}no" >&6
3647 fi
3648
3649fi
3650
3651if test "$wxUSE_DEBUG" = "yes"; then
3652 DEFAULT_wxUSE_DEBUG_FLAG=yes
3653 DEFAULT_wxUSE_DEBUG_INFO=yes
3654 BUILD=debug
3655elif test "$wxUSE_DEBUG" = "no"; then
3656 DEFAULT_wxUSE_DEBUG_FLAG=no
3657 DEFAULT_wxUSE_DEBUG_INFO=no
3658 BUILD=release
3659fi
3660
3661
3662 enablestring=
3663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3664echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3665 no_cache=0
3666 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3667if test "${enable_debug_flag+set}" = set; then
3668 enableval="$enable_debug_flag"
3669
3670 if test "$enableval" = yes; then
3671 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3672 else
3673 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3674 fi
3675
3676else
3677
3678 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3679 if test "x$LINE" != x ; then
3680 eval "DEFAULT_$LINE"
3681 else
3682 no_cache=1
3683 fi
3684
3685 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3686
3687fi;
3688
3689 eval "$ac_cv_use_debug_flag"
3690 if test "$no_cache" != 1; then
3691 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3692 fi
3693
3694 if test "$wxUSE_DEBUG_FLAG" = yes; then
3695 echo "$as_me:$LINENO: result: yes" >&5
3696echo "${ECHO_T}yes" >&6
3697 else
3698 echo "$as_me:$LINENO: result: no" >&5
3699echo "${ECHO_T}no" >&6
3700 fi
3701
3702
3703 enablestring=
3704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3705echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3706 no_cache=0
3707 # Check whether --enable-debug_info or --disable-debug_info was given.
3708if test "${enable_debug_info+set}" = set; then
3709 enableval="$enable_debug_info"
3710
3711 if test "$enableval" = yes; then
3712 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3713 else
3714 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3715 fi
3716
3717else
3718
3719 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
3726 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3727
3728fi;
3729
3730 eval "$ac_cv_use_debug_info"
3731 if test "$no_cache" != 1; then
3732 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3733 fi
3734
3735 if test "$wxUSE_DEBUG_INFO" = yes; then
3736 echo "$as_me:$LINENO: result: yes" >&5
3737echo "${ECHO_T}yes" >&6
3738 else
3739 echo "$as_me:$LINENO: result: no" >&5
3740echo "${ECHO_T}no" >&6
3741 fi
3742
3743
3744 enablestring=
3745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3746echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3747 no_cache=0
3748 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3749if test "${enable_debug_gdb+set}" = set; then
3750 enableval="$enable_debug_gdb"
3751
3752 if test "$enableval" = yes; then
3753 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3754 else
3755 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3756 fi
3757
3758else
3759
3760 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3768
3769fi;
3770
3771 eval "$ac_cv_use_debug_gdb"
3772 if test "$no_cache" != 1; then
3773 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3774 fi
3775
3776 if test "$wxUSE_DEBUG_GDB" = yes; then
3777 echo "$as_me:$LINENO: result: yes" >&5
3778echo "${ECHO_T}yes" >&6
3779 else
3780 echo "$as_me:$LINENO: result: no" >&5
3781echo "${ECHO_T}no" >&6
3782 fi
3783
3784
3785 enablestring=
3786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3787echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3788 no_cache=0
3789 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3790if test "${enable_debug_cntxt+set}" = set; then
3791 enableval="$enable_debug_cntxt"
3792
3793 if test "$enableval" = yes; then
3794 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3795 else
3796 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3797 fi
3798
3799else
3800
3801 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3802 if test "x$LINE" != x ; then
3803 eval "DEFAULT_$LINE"
3804 else
3805 no_cache=1
3806 fi
3807
3808 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3809
3810fi;
3811
3812 eval "$ac_cv_use_debug_cntxt"
3813 if test "$no_cache" != 1; then
3814 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3815 fi
3816
3817 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3818 echo "$as_me:$LINENO: result: yes" >&5
3819echo "${ECHO_T}yes" >&6
3820 else
3821 echo "$as_me:$LINENO: result: no" >&5
3822echo "${ECHO_T}no" >&6
3823 fi
3824
3825
3826 enablestring=
3827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3828echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3829 no_cache=0
3830 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3831if test "${enable_mem_tracing+set}" = set; then
3832 enableval="$enable_mem_tracing"
3833
3834 if test "$enableval" = yes; then
3835 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3836 else
3837 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3838 fi
3839
3840else
3841
3842 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3843 if test "x$LINE" != x ; then
3844 eval "DEFAULT_$LINE"
3845 else
3846 no_cache=1
3847 fi
3848
3849 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3850
3851fi;
3852
3853 eval "$ac_cv_use_mem_tracing"
3854 if test "$no_cache" != 1; then
3855 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3856 fi
3857
3858 if test "$wxUSE_MEM_TRACING" = yes; then
3859 echo "$as_me:$LINENO: result: yes" >&5
3860echo "${ECHO_T}yes" >&6
3861 else
3862 echo "$as_me:$LINENO: result: no" >&5
3863echo "${ECHO_T}no" >&6
3864 fi
3865
3866
3867 enablestring=
3868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3869echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3870 no_cache=0
3871 # Check whether --enable-profile or --disable-profile was given.
3872if test "${enable_profile+set}" = set; then
3873 enableval="$enable_profile"
3874
3875 if test "$enableval" = yes; then
3876 ac_cv_use_profile='wxUSE_PROFILE=yes'
3877 else
3878 ac_cv_use_profile='wxUSE_PROFILE=no'
3879 fi
3880
3881else
3882
3883 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3884 if test "x$LINE" != x ; then
3885 eval "DEFAULT_$LINE"
3886 else
3887 no_cache=1
3888 fi
3889
3890 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3891
3892fi;
3893
3894 eval "$ac_cv_use_profile"
3895 if test "$no_cache" != 1; then
3896 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3897 fi
3898
3899 if test "$wxUSE_PROFILE" = yes; then
3900 echo "$as_me:$LINENO: result: yes" >&5
3901echo "${ECHO_T}yes" >&6
3902 else
3903 echo "$as_me:$LINENO: result: no" >&5
3904echo "${ECHO_T}no" >&6
3905 fi
3906
3907
3908 enablestring=
3909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3910echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3911 no_cache=0
3912 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3913if test "${enable_no_rtti+set}" = set; then
3914 enableval="$enable_no_rtti"
3915
3916 if test "$enableval" = yes; then
3917 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3918 else
3919 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3920 fi
3921
3922else
3923
3924 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3925 if test "x$LINE" != x ; then
3926 eval "DEFAULT_$LINE"
3927 else
3928 no_cache=1
3929 fi
3930
3931 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3932
3933fi;
3934
3935 eval "$ac_cv_use_no_rtti"
3936 if test "$no_cache" != 1; then
3937 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3938 fi
3939
3940 if test "$wxUSE_NO_RTTI" = yes; then
3941 echo "$as_me:$LINENO: result: yes" >&5
3942echo "${ECHO_T}yes" >&6
3943 else
3944 echo "$as_me:$LINENO: result: no" >&5
3945echo "${ECHO_T}no" >&6
3946 fi
3947
3948
3949 enablestring=
3950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3951echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3952 no_cache=0
3953 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3954if test "${enable_no_exceptions+set}" = set; then
3955 enableval="$enable_no_exceptions"
3956
3957 if test "$enableval" = yes; then
3958 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3959 else
3960 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3961 fi
3962
3963else
3964
3965 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3966 if test "x$LINE" != x ; then
3967 eval "DEFAULT_$LINE"
3968 else
3969 no_cache=1
3970 fi
3971
3972 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3973
3974fi;
3975
3976 eval "$ac_cv_use_no_exceptions"
3977 if test "$no_cache" != 1; then
3978 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3979 fi
3980
3981 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3982 echo "$as_me:$LINENO: result: yes" >&5
3983echo "${ECHO_T}yes" >&6
3984 else
3985 echo "$as_me:$LINENO: result: no" >&5
3986echo "${ECHO_T}no" >&6
3987 fi
3988
3989
3990 enablestring=
3991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3992echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3993 no_cache=0
3994 # Check whether --enable-permissive or --disable-permissive was given.
3995if test "${enable_permissive+set}" = set; then
3996 enableval="$enable_permissive"
3997
3998 if test "$enableval" = yes; then
3999 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4000 else
4001 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4002 fi
4003
4004else
4005
4006 LINE=`grep "wxUSE_PERMISSIVE" ${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_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4014
4015fi;
4016
4017 eval "$ac_cv_use_permissive"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_PERMISSIVE" = yes; then
4023 echo "$as_me:$LINENO: result: yes" >&5
4024echo "${ECHO_T}yes" >&6
4025 else
4026 echo "$as_me:$LINENO: result: no" >&5
4027echo "${ECHO_T}no" >&6
4028 fi
4029
4030
4031 enablestring=
4032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4033echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4034 no_cache=0
4035 # Check whether --enable-no_deps or --disable-no_deps was given.
4036if test "${enable_no_deps+set}" = set; then
4037 enableval="$enable_no_deps"
4038
4039 if test "$enableval" = yes; then
4040 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4041 else
4042 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4043 fi
4044
4045else
4046
4047 LINE=`grep "wxUSE_NO_DEPS" ${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_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4055
4056fi;
4057
4058 eval "$ac_cv_use_no_deps"
4059 if test "$no_cache" != 1; then
4060 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4061 fi
4062
4063 if test "$wxUSE_NO_DEPS" = yes; then
4064 echo "$as_me:$LINENO: result: yes" >&5
4065echo "${ECHO_T}yes" >&6
4066 else
4067 echo "$as_me:$LINENO: result: no" >&5
4068echo "${ECHO_T}no" >&6
4069 fi
4070
4071
4072
4073 enablestring=
4074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4075echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4076 no_cache=0
4077 # Check whether --enable-compat22 or --disable-compat22 was given.
4078if test "${enable_compat22+set}" = set; then
4079 enableval="$enable_compat22"
4080
4081 if test "$enableval" = yes; then
4082 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4083 else
4084 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4085 fi
4086
4087else
4088
4089 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${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_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4097
4098fi;
4099
4100 eval "$ac_cv_use_compat22"
4101 if test "$no_cache" != 1; then
4102 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4103 fi
4104
4105 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4106 echo "$as_me:$LINENO: result: yes" >&5
4107echo "${ECHO_T}yes" >&6
4108 else
4109 echo "$as_me:$LINENO: result: no" >&5
4110echo "${ECHO_T}no" >&6
4111 fi
4112
4113
4114 enablestring=disable
4115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4116echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4117 no_cache=0
4118 # Check whether --enable-compat24 or --disable-compat24 was given.
4119if test "${enable_compat24+set}" = set; then
4120 enableval="$enable_compat24"
4121
4122 if test "$enableval" = yes; then
4123 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4124 else
4125 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4126 fi
4127
4128else
4129
4130 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${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_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4138
4139fi;
4140
4141 eval "$ac_cv_use_compat24"
4142 if test "$no_cache" != 1; then
4143 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4144 fi
4145
4146 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4147 echo "$as_me:$LINENO: result: yes" >&5
4148echo "${ECHO_T}yes" >&6
4149 else
4150 echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
4152 fi
4153
4154
ffa0583f
RL
4155
4156 enablestring=
4157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4158echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4159 no_cache=0
4160 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4161if test "${enable_rpath+set}" = set; then
4162 enableval="$enable_rpath"
ffa0583f
RL
4163
4164 if test "$enableval" = yes; then
4165 ac_cv_use_rpath='wxUSE_RPATH=yes'
4166 else
4167 ac_cv_use_rpath='wxUSE_RPATH=no'
4168 fi
4169
4170else
4171
4172 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4173 if test "x$LINE" != x ; then
4174 eval "DEFAULT_$LINE"
4175 else
4176 no_cache=1
4177 fi
4178
4179 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4180
a848cd7e
SC
4181fi;
4182
ffa0583f
RL
4183 eval "$ac_cv_use_rpath"
4184 if test "$no_cache" != 1; then
4185 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4186 fi
4187
4188 if test "$wxUSE_RPATH" = yes; then
4189 echo "$as_me:$LINENO: result: yes" >&5
4190echo "${ECHO_T}yes" >&6
4191 else
4192 echo "$as_me:$LINENO: result: no" >&5
4193echo "${ECHO_T}no" >&6
4194 fi
4195
a848cd7e
SC
4196
4197
4198
4199
4200 enablestring=
4201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4202echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4203 no_cache=0
4204 # Check whether --enable-intl or --disable-intl was given.
4205if test "${enable_intl+set}" = set; then
4206 enableval="$enable_intl"
4207
4208 if test "$enableval" = yes; then
4209 ac_cv_use_intl='wxUSE_INTL=yes'
4210 else
4211 ac_cv_use_intl='wxUSE_INTL=no'
4212 fi
4213
4214else
4215
4216 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4217 if test "x$LINE" != x ; then
4218 eval "DEFAULT_$LINE"
4219 else
4220 no_cache=1
4221 fi
4222
4223 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4224
4225fi;
4226
4227 eval "$ac_cv_use_intl"
4228 if test "$no_cache" != 1; then
4229 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4230 fi
4231
4232 if test "$wxUSE_INTL" = yes; then
4233 echo "$as_me:$LINENO: result: yes" >&5
4234echo "${ECHO_T}yes" >&6
4235 else
4236 echo "$as_me:$LINENO: result: no" >&5
4237echo "${ECHO_T}no" >&6
4238 fi
4239
4240
4241 enablestring=
4242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4243echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4244 no_cache=0
4245 # Check whether --enable-config or --disable-config was given.
4246if test "${enable_config+set}" = set; then
4247 enableval="$enable_config"
4248
4249 if test "$enableval" = yes; then
4250 ac_cv_use_config='wxUSE_CONFIG=yes'
4251 else
4252 ac_cv_use_config='wxUSE_CONFIG=no'
4253 fi
4254
4255else
4256
4257 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4258 if test "x$LINE" != x ; then
4259 eval "DEFAULT_$LINE"
4260 else
4261 no_cache=1
4262 fi
4263
4264 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4265
4266fi;
4267
4268 eval "$ac_cv_use_config"
4269 if test "$no_cache" != 1; then
4270 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4271 fi
4272
4273 if test "$wxUSE_CONFIG" = yes; then
4274 echo "$as_me:$LINENO: result: yes" >&5
4275echo "${ECHO_T}yes" >&6
4276 else
4277 echo "$as_me:$LINENO: result: no" >&5
4278echo "${ECHO_T}no" >&6
4279 fi
4280
4281
4282
4283 enablestring=
4284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4285echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4286 no_cache=0
4287 # Check whether --enable-protocols or --disable-protocols was given.
4288if test "${enable_protocols+set}" = set; then
4289 enableval="$enable_protocols"
4290
4291 if test "$enableval" = yes; then
4292 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4293 else
4294 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4295 fi
4296
4297else
4298
4299 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4300 if test "x$LINE" != x ; then
4301 eval "DEFAULT_$LINE"
4302 else
4303 no_cache=1
4304 fi
4305
4306 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4307
4308fi;
4309
4310 eval "$ac_cv_use_protocols"
4311 if test "$no_cache" != 1; then
4312 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4313 fi
4314
4315 if test "$wxUSE_PROTOCOL" = yes; then
4316 echo "$as_me:$LINENO: result: yes" >&5
4317echo "${ECHO_T}yes" >&6
4318 else
4319 echo "$as_me:$LINENO: result: no" >&5
4320echo "${ECHO_T}no" >&6
4321 fi
4322
4323
4324 enablestring=
4325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4326echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4327 no_cache=0
4328 # Check whether --enable-ftp or --disable-ftp was given.
4329if test "${enable_ftp+set}" = set; then
4330 enableval="$enable_ftp"
4331
4332 if test "$enableval" = yes; then
4333 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4334 else
4335 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4336 fi
4337
4338else
4339
4340 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4341 if test "x$LINE" != x ; then
4342 eval "DEFAULT_$LINE"
4343 else
4344 no_cache=1
4345 fi
4346
4347 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4348
4349fi;
4350
4351 eval "$ac_cv_use_ftp"
4352 if test "$no_cache" != 1; then
4353 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4354 fi
4355
4356 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4357 echo "$as_me:$LINENO: result: yes" >&5
4358echo "${ECHO_T}yes" >&6
4359 else
4360 echo "$as_me:$LINENO: result: no" >&5
4361echo "${ECHO_T}no" >&6
4362 fi
4363
4364
4365 enablestring=
4366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4367echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4368 no_cache=0
4369 # Check whether --enable-http or --disable-http was given.
4370if test "${enable_http+set}" = set; then
4371 enableval="$enable_http"
4372
4373 if test "$enableval" = yes; then
4374 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4375 else
4376 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4377 fi
4378
4379else
4380
4381 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4382 if test "x$LINE" != x ; then
4383 eval "DEFAULT_$LINE"
4384 else
4385 no_cache=1
4386 fi
4387
4388 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4389
4390fi;
4391
4392 eval "$ac_cv_use_http"
4393 if test "$no_cache" != 1; then
4394 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4395 fi
4396
4397 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4398 echo "$as_me:$LINENO: result: yes" >&5
4399echo "${ECHO_T}yes" >&6
4400 else
4401 echo "$as_me:$LINENO: result: no" >&5
4402echo "${ECHO_T}no" >&6
4403 fi
4404
4405
4406 enablestring=
4407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4408echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4409 no_cache=0
4410 # Check whether --enable-fileproto or --disable-fileproto was given.
4411if test "${enable_fileproto+set}" = set; then
4412 enableval="$enable_fileproto"
4413
4414 if test "$enableval" = yes; then
4415 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4416 else
4417 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4418 fi
4419
4420else
4421
4422 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4423 if test "x$LINE" != x ; then
4424 eval "DEFAULT_$LINE"
4425 else
4426 no_cache=1
4427 fi
4428
4429 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4430
4431fi;
4432
4433 eval "$ac_cv_use_fileproto"
4434 if test "$no_cache" != 1; then
4435 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4436 fi
4437
4438 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4439 echo "$as_me:$LINENO: result: yes" >&5
4440echo "${ECHO_T}yes" >&6
4441 else
4442 echo "$as_me:$LINENO: result: no" >&5
4443echo "${ECHO_T}no" >&6
4444 fi
4445
4446
4447 enablestring=
4448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4449echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4450 no_cache=0
4451 # Check whether --enable-sockets or --disable-sockets was given.
4452if test "${enable_sockets+set}" = set; then
4453 enableval="$enable_sockets"
4454
4455 if test "$enableval" = yes; then
4456 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4457 else
4458 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4459 fi
4460
4461else
4462
4463 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4464 if test "x$LINE" != x ; then
4465 eval "DEFAULT_$LINE"
4466 else
4467 no_cache=1
4468 fi
4469
4470 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4471
4472fi;
4473
4474 eval "$ac_cv_use_sockets"
4475 if test "$no_cache" != 1; then
4476 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4477 fi
4478
4479 if test "$wxUSE_SOCKETS" = yes; then
4480 echo "$as_me:$LINENO: result: yes" >&5
4481echo "${ECHO_T}yes" >&6
4482 else
4483 echo "$as_me:$LINENO: result: no" >&5
4484echo "${ECHO_T}no" >&6
4485 fi
4486
4487
4488 enablestring=
4489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4490echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4491 no_cache=0
4492 # Check whether --enable-ole or --disable-ole was given.
4493if test "${enable_ole+set}" = set; then
4494 enableval="$enable_ole"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_ole='wxUSE_OLE=yes'
4498 else
4499 ac_cv_use_ole='wxUSE_OLE=no'
4500 fi
4501
4502else
4503
4504 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4512
4513fi;
4514
4515 eval "$ac_cv_use_ole"
4516 if test "$no_cache" != 1; then
4517 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4518 fi
4519
4520 if test "$wxUSE_OLE" = yes; then
4521 echo "$as_me:$LINENO: result: yes" >&5
4522echo "${ECHO_T}yes" >&6
4523 else
4524 echo "$as_me:$LINENO: result: no" >&5
4525echo "${ECHO_T}no" >&6
4526 fi
4527
4528
4529 enablestring=
4530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4531echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4532 no_cache=0
4533 # Check whether --enable-dataobj or --disable-dataobj was given.
4534if test "${enable_dataobj+set}" = set; then
4535 enableval="$enable_dataobj"
4536
4537 if test "$enableval" = yes; then
4538 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4539 else
4540 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4541 fi
4542
4543else
4544
4545 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4546 if test "x$LINE" != x ; then
4547 eval "DEFAULT_$LINE"
4548 else
4549 no_cache=1
4550 fi
4551
4552 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4553
4554fi;
4555
4556 eval "$ac_cv_use_dataobj"
4557 if test "$no_cache" != 1; then
4558 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4559 fi
4560
4561 if test "$wxUSE_DATAOBJ" = yes; then
4562 echo "$as_me:$LINENO: result: yes" >&5
4563echo "${ECHO_T}yes" >&6
4564 else
4565 echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6
4567 fi
4568
4569
4570
4571 enablestring=
4572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4573echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4574 no_cache=0
4575 # Check whether --enable-ipc or --disable-ipc was given.
4576if test "${enable_ipc+set}" = set; then
4577 enableval="$enable_ipc"
4578
4579 if test "$enableval" = yes; then
4580 ac_cv_use_ipc='wxUSE_IPC=yes'
4581 else
4582 ac_cv_use_ipc='wxUSE_IPC=no'
4583 fi
4584
4585else
4586
4587 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4588 if test "x$LINE" != x ; then
4589 eval "DEFAULT_$LINE"
4590 else
4591 no_cache=1
4592 fi
4593
4594 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4595
4596fi;
4597
4598 eval "$ac_cv_use_ipc"
4599 if test "$no_cache" != 1; then
4600 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4601 fi
4602
4603 if test "$wxUSE_IPC" = yes; then
4604 echo "$as_me:$LINENO: result: yes" >&5
4605echo "${ECHO_T}yes" >&6
4606 else
4607 echo "$as_me:$LINENO: result: no" >&5
4608echo "${ECHO_T}no" >&6
4609 fi
4610
4611
4612
4613 enablestring=
4614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4615echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4616 no_cache=0
4617 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4618if test "${enable_apple_ieee+set}" = set; then
4619 enableval="$enable_apple_ieee"
4620
4621 if test "$enableval" = yes; then
4622 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4623 else
4624 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4625 fi
4626
4627else
4628
4629 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4630 if test "x$LINE" != x ; then
4631 eval "DEFAULT_$LINE"
4632 else
4633 no_cache=1
4634 fi
4635
4636 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4637
4638fi;
4639
4640 eval "$ac_cv_use_apple_ieee"
4641 if test "$no_cache" != 1; then
4642 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4643 fi
4644
4645 if test "$wxUSE_APPLE_IEEE" = yes; then
4646 echo "$as_me:$LINENO: result: yes" >&5
4647echo "${ECHO_T}yes" >&6
4648 else
4649 echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6
4651 fi
4652
4653
81f90336
MW
4654 enablestring=
4655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4656echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4657 no_cache=0
4658 # Check whether --enable-arcstream or --disable-arcstream was given.
4659if test "${enable_arcstream+set}" = set; then
4660 enableval="$enable_arcstream"
4661
4662 if test "$enableval" = yes; then
9e8e867f 4663 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4664 else
9e8e867f 4665 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4666 fi
4667
4668else
4669
9e8e867f 4670 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4671 if test "x$LINE" != x ; then
4672 eval "DEFAULT_$LINE"
4673 else
4674 no_cache=1
4675 fi
4676
9e8e867f 4677 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4678
4679fi;
4680
4681 eval "$ac_cv_use_arcstream"
4682 if test "$no_cache" != 1; then
4683 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4684 fi
4685
9e8e867f 4686 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4687 echo "$as_me:$LINENO: result: yes" >&5
4688echo "${ECHO_T}yes" >&6
4689 else
4690 echo "$as_me:$LINENO: result: no" >&5
4691echo "${ECHO_T}no" >&6
4692 fi
4693
4694
a848cd7e 4695 enablestring=
36b6448c
VZ
4696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4697echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4698 no_cache=0
36b6448c
VZ
4699 # Check whether --enable-backtrace or --disable-backtrace was given.
4700if test "${enable_backtrace+set}" = set; then
4701 enableval="$enable_backtrace"
a848cd7e
SC
4702
4703 if test "$enableval" = yes; then
36b6448c 4704 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4705 else
36b6448c 4706 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4707 fi
4708
4709else
4710
36b6448c 4711 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4712 if test "x$LINE" != x ; then
4713 eval "DEFAULT_$LINE"
4714 else
4715 no_cache=1
4716 fi
4717
36b6448c 4718 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4719
4720fi;
4721
36b6448c 4722 eval "$ac_cv_use_backtrace"
a848cd7e 4723 if test "$no_cache" != 1; then
36b6448c 4724 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4725 fi
4726
36b6448c 4727 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4728 echo "$as_me:$LINENO: result: yes" >&5
4729echo "${ECHO_T}yes" >&6
4730 else
4731 echo "$as_me:$LINENO: result: no" >&5
4732echo "${ECHO_T}no" >&6
4733 fi
4734
4735
eaff0f0d 4736 enablestring=
36b6448c
VZ
4737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4738echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4739 no_cache=0
36b6448c
VZ
4740 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4741if test "${enable_catch_segvs+set}" = set; then
4742 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4743
4744 if test "$enableval" = yes; then
36b6448c 4745 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4746 else
36b6448c 4747 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4748 fi
4749
4750else
4751
36b6448c 4752 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4753 if test "x$LINE" != x ; then
4754 eval "DEFAULT_$LINE"
4755 else
4756 no_cache=1
4757 fi
4758
36b6448c 4759 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4760
4761fi;
4762
36b6448c 4763 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4764 if test "$no_cache" != 1; then
36b6448c 4765 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4766 fi
4767
36b6448c 4768 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4769 echo "$as_me:$LINENO: result: yes" >&5
4770echo "${ECHO_T}yes" >&6
4771 else
4772 echo "$as_me:$LINENO: result: no" >&5
4773echo "${ECHO_T}no" >&6
4774 fi
4775
4776
a848cd7e
SC
4777 enablestring=
4778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4779echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4780 no_cache=0
4781 # Check whether --enable-cmdline or --disable-cmdline was given.
4782if test "${enable_cmdline+set}" = set; then
4783 enableval="$enable_cmdline"
4784
4785 if test "$enableval" = yes; then
4786 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4787 else
4788 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4789 fi
4790
4791else
4792
4793 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4794 if test "x$LINE" != x ; then
4795 eval "DEFAULT_$LINE"
4796 else
4797 no_cache=1
4798 fi
4799
4800 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4801
4802fi;
4803
4804 eval "$ac_cv_use_cmdline"
4805 if test "$no_cache" != 1; then
4806 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4807 fi
4808
4809 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4810 echo "$as_me:$LINENO: result: yes" >&5
4811echo "${ECHO_T}yes" >&6
4812 else
4813 echo "$as_me:$LINENO: result: no" >&5
4814echo "${ECHO_T}no" >&6
4815 fi
4816
4817
4818 enablestring=
4819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4820echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4821 no_cache=0
4822 # Check whether --enable-datetime or --disable-datetime was given.
4823if test "${enable_datetime+set}" = set; then
4824 enableval="$enable_datetime"
4825
4826 if test "$enableval" = yes; then
4827 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4828 else
4829 ac_cv_use_datetime='wxUSE_DATETIME=no'
4830 fi
4831
4832else
4833
4834 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4842
4843fi;
4844
4845 eval "$ac_cv_use_datetime"
4846 if test "$no_cache" != 1; then
4847 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4848 fi
4849
4850 if test "$wxUSE_DATETIME" = yes; then
4851 echo "$as_me:$LINENO: result: yes" >&5
4852echo "${ECHO_T}yes" >&6
4853 else
4854 echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6
4856 fi
4857
4858
36b6448c
VZ
4859 enablestring=
4860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4861echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4862 no_cache=0
4863 # Check whether --enable-debugreport or --disable-debugreport was given.
4864if test "${enable_debugreport+set}" = set; then
4865 enableval="$enable_debugreport"
4866
4867 if test "$enableval" = yes; then
4868 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4869 else
4870 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4871 fi
4872
4873else
4874
4875 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4876 if test "x$LINE" != x ; then
4877 eval "DEFAULT_$LINE"
4878 else
4879 no_cache=1
4880 fi
4881
4882 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4883
4884fi;
4885
4886 eval "$ac_cv_use_debugreport"
4887 if test "$no_cache" != 1; then
4888 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4889 fi
4890
4891 if test "$wxUSE_DEBUGREPORT" = yes; then
4892 echo "$as_me:$LINENO: result: yes" >&5
4893echo "${ECHO_T}yes" >&6
4894 else
4895 echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
4897 fi
4898
4899
a848cd7e
SC
4900 enablestring=
4901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4902echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4903 no_cache=0
4904 # Check whether --enable-dialupman or --disable-dialupman was given.
4905if test "${enable_dialupman+set}" = set; then
4906 enableval="$enable_dialupman"
4907
4908 if test "$enableval" = yes; then
4909 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4910 else
4911 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4912 fi
4913
4914else
4915
4916 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4917 if test "x$LINE" != x ; then
4918 eval "DEFAULT_$LINE"
4919 else
4920 no_cache=1
4921 fi
4922
4923 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4924
4925fi;
4926
4927 eval "$ac_cv_use_dialupman"
4928 if test "$no_cache" != 1; then
4929 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4930 fi
4931
4932 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4933 echo "$as_me:$LINENO: result: yes" >&5
4934echo "${ECHO_T}yes" >&6
4935 else
4936 echo "$as_me:$LINENO: result: no" >&5
4937echo "${ECHO_T}no" >&6
4938 fi
4939
4940
4941 enablestring=
4942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4943echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4944 no_cache=0
4945 # Check whether --enable-dynlib or --disable-dynlib was given.
4946if test "${enable_dynlib+set}" = set; then
4947 enableval="$enable_dynlib"
4948
4949 if test "$enableval" = yes; then
4950 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4951 else
4952 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4953 fi
4954
4955else
4956
4957 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4958 if test "x$LINE" != x ; then
4959 eval "DEFAULT_$LINE"
4960 else
4961 no_cache=1
4962 fi
4963
4964 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4965
4966fi;
4967
4968 eval "$ac_cv_use_dynlib"
4969 if test "$no_cache" != 1; then
4970 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4971 fi
4972
4973 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4974 echo "$as_me:$LINENO: result: yes" >&5
4975echo "${ECHO_T}yes" >&6
4976 else
4977 echo "$as_me:$LINENO: result: no" >&5
4978echo "${ECHO_T}no" >&6
4979 fi
4980
4981
4982 enablestring=
4983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4984echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4985 no_cache=0
4986 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4987if test "${enable_dynamicloader+set}" = set; then
4988 enableval="$enable_dynamicloader"
4989
4990 if test "$enableval" = yes; then
4991 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4992 else
4993 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4994 fi
4995
4996else
4997
4998 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4999 if test "x$LINE" != x ; then
5000 eval "DEFAULT_$LINE"
5001 else
5002 no_cache=1
5003 fi
5004
5005 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5006
5007fi;
5008
5009 eval "$ac_cv_use_dynamicloader"
5010 if test "$no_cache" != 1; then
5011 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5012 fi
5013
5014 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5015 echo "$as_me:$LINENO: result: yes" >&5
5016echo "${ECHO_T}yes" >&6
5017 else
5018 echo "$as_me:$LINENO: result: no" >&5
5019echo "${ECHO_T}no" >&6
5020 fi
5021
5022
5023 enablestring=
5024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5025echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5026 no_cache=0
5027 # Check whether --enable-exceptions or --disable-exceptions was given.
5028if test "${enable_exceptions+set}" = set; then
5029 enableval="$enable_exceptions"
5030
5031 if test "$enableval" = yes; then
5032 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5033 else
5034 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5035 fi
5036
5037else
5038
5039 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5040 if test "x$LINE" != x ; then
5041 eval "DEFAULT_$LINE"
5042 else
5043 no_cache=1
5044 fi
5045
5046 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5047
5048fi;
5049
5050 eval "$ac_cv_use_exceptions"
5051 if test "$no_cache" != 1; then
5052 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5053 fi
5054
5055 if test "$wxUSE_EXCEPTIONS" = yes; then
5056 echo "$as_me:$LINENO: result: yes" >&5
5057echo "${ECHO_T}yes" >&6
5058 else
5059 echo "$as_me:$LINENO: result: no" >&5
5060echo "${ECHO_T}no" >&6
5061 fi
5062
5063
5064 enablestring=
5065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5066echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5067 no_cache=0
5068 # Check whether --enable-ffile or --disable-ffile was given.
5069if test "${enable_ffile+set}" = set; then
5070 enableval="$enable_ffile"
5071
5072 if test "$enableval" = yes; then
5073 ac_cv_use_ffile='wxUSE_FFILE=yes'
5074 else
5075 ac_cv_use_ffile='wxUSE_FFILE=no'
5076 fi
5077
5078else
5079
5080 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5081 if test "x$LINE" != x ; then
5082 eval "DEFAULT_$LINE"
5083 else
5084 no_cache=1
5085 fi
5086
5087 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5088
5089fi;
5090
5091 eval "$ac_cv_use_ffile"
5092 if test "$no_cache" != 1; then
5093 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5094 fi
5095
5096 if test "$wxUSE_FFILE" = yes; then
5097 echo "$as_me:$LINENO: result: yes" >&5
5098echo "${ECHO_T}yes" >&6
5099 else
5100 echo "$as_me:$LINENO: result: no" >&5
5101echo "${ECHO_T}no" >&6
5102 fi
5103
5104
5105 enablestring=
5106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5107echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5108 no_cache=0
5109 # Check whether --enable-file or --disable-file was given.
5110if test "${enable_file+set}" = set; then
5111 enableval="$enable_file"
5112
5113 if test "$enableval" = yes; then
5114 ac_cv_use_file='wxUSE_FILE=yes'
5115 else
5116 ac_cv_use_file='wxUSE_FILE=no'
5117 fi
5118
5119else
5120
5121 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5122 if test "x$LINE" != x ; then
5123 eval "DEFAULT_$LINE"
5124 else
5125 no_cache=1
5126 fi
5127
5128 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5129
5130fi;
5131
5132 eval "$ac_cv_use_file"
5133 if test "$no_cache" != 1; then
5134 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5135 fi
5136
5137 if test "$wxUSE_FILE" = yes; then
5138 echo "$as_me:$LINENO: result: yes" >&5
5139echo "${ECHO_T}yes" >&6
5140 else
5141 echo "$as_me:$LINENO: result: no" >&5
5142echo "${ECHO_T}no" >&6
5143 fi
5144
5145
5146 enablestring=
5147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5148echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5149 no_cache=0
5150 # Check whether --enable-filesystem or --disable-filesystem was given.
5151if test "${enable_filesystem+set}" = set; then
5152 enableval="$enable_filesystem"
5153
5154 if test "$enableval" = yes; then
5155 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5156 else
5157 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5158 fi
5159
5160else
5161
5162 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5163 if test "x$LINE" != x ; then
5164 eval "DEFAULT_$LINE"
5165 else
5166 no_cache=1
5167 fi
5168
5169 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5170
5171fi;
5172
5173 eval "$ac_cv_use_filesystem"
5174 if test "$no_cache" != 1; then
5175 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5176 fi
5177
5178 if test "$wxUSE_FILESYSTEM" = yes; then
5179 echo "$as_me:$LINENO: result: yes" >&5
5180echo "${ECHO_T}yes" >&6
5181 else
5182 echo "$as_me:$LINENO: result: no" >&5
5183echo "${ECHO_T}no" >&6
5184 fi
5185
5186
5187 enablestring=
5188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5189echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5190 no_cache=0
5191 # Check whether --enable-fontmap or --disable-fontmap was given.
5192if test "${enable_fontmap+set}" = set; then
5193 enableval="$enable_fontmap"
5194
5195 if test "$enableval" = yes; then
5196 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5197 else
5198 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5199 fi
5200
5201else
5202
5203 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5204 if test "x$LINE" != x ; then
5205 eval "DEFAULT_$LINE"
5206 else
5207 no_cache=1
5208 fi
5209
5210 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5211
5212fi;
5213
5214 eval "$ac_cv_use_fontmap"
5215 if test "$no_cache" != 1; then
5216 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5217 fi
5218
5219 if test "$wxUSE_FONTMAP" = yes; then
5220 echo "$as_me:$LINENO: result: yes" >&5
5221echo "${ECHO_T}yes" >&6
5222 else
5223 echo "$as_me:$LINENO: result: no" >&5
5224echo "${ECHO_T}no" >&6
5225 fi
5226
5227
5228 enablestring=
5229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5230echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5231 no_cache=0
5232 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5233if test "${enable_fs_inet+set}" = set; then
5234 enableval="$enable_fs_inet"
5235
5236 if test "$enableval" = yes; then
5237 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5238 else
5239 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5240 fi
5241
5242else
5243
5244 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5245 if test "x$LINE" != x ; then
5246 eval "DEFAULT_$LINE"
5247 else
5248 no_cache=1
5249 fi
5250
5251 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5252
5253fi;
5254
5255 eval "$ac_cv_use_fs_inet"
5256 if test "$no_cache" != 1; then
5257 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5258 fi
5259
5260 if test "$wxUSE_FS_INET" = yes; then
5261 echo "$as_me:$LINENO: result: yes" >&5
5262echo "${ECHO_T}yes" >&6
5263 else
5264 echo "$as_me:$LINENO: result: no" >&5
5265echo "${ECHO_T}no" >&6
5266 fi
5267
5268
5269 enablestring=
5270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5271echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5272 no_cache=0
5273 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5274if test "${enable_fs_zip+set}" = set; then
5275 enableval="$enable_fs_zip"
5276
5277 if test "$enableval" = yes; then
5278 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5279 else
5280 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5281 fi
5282
5283else
5284
5285 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5286 if test "x$LINE" != x ; then
5287 eval "DEFAULT_$LINE"
5288 else
5289 no_cache=1
5290 fi
5291
5292 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5293
5294fi;
5295
5296 eval "$ac_cv_use_fs_zip"
5297 if test "$no_cache" != 1; then
5298 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5299 fi
5300
5301 if test "$wxUSE_FS_ZIP" = yes; then
5302 echo "$as_me:$LINENO: result: yes" >&5
5303echo "${ECHO_T}yes" >&6
5304 else
5305 echo "$as_me:$LINENO: result: no" >&5
5306echo "${ECHO_T}no" >&6
5307 fi
5308
5309
5310 enablestring=
5311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5312echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5313 no_cache=0
5314 # Check whether --enable-geometry or --disable-geometry was given.
5315if test "${enable_geometry+set}" = set; then
5316 enableval="$enable_geometry"
5317
5318 if test "$enableval" = yes; then
5319 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5320 else
5321 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5322 fi
5323
5324else
5325
5326 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5334
5335fi;
5336
5337 eval "$ac_cv_use_geometry"
5338 if test "$no_cache" != 1; then
5339 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5340 fi
5341
5342 if test "$wxUSE_GEOMETRY" = yes; then
5343 echo "$as_me:$LINENO: result: yes" >&5
5344echo "${ECHO_T}yes" >&6
5345 else
5346 echo "$as_me:$LINENO: result: no" >&5
5347echo "${ECHO_T}no" >&6
5348 fi
5349
5350
5351 enablestring=
5352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5353echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5354 no_cache=0
5355 # Check whether --enable-log or --disable-log was given.
5356if test "${enable_log+set}" = set; then
5357 enableval="$enable_log"
5358
5359 if test "$enableval" = yes; then
5360 ac_cv_use_log='wxUSE_LOG=yes'
5361 else
5362 ac_cv_use_log='wxUSE_LOG=no'
5363 fi
5364
5365else
5366
5367 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5368 if test "x$LINE" != x ; then
5369 eval "DEFAULT_$LINE"
5370 else
5371 no_cache=1
5372 fi
5373
5374 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5375
5376fi;
5377
5378 eval "$ac_cv_use_log"
5379 if test "$no_cache" != 1; then
5380 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5381 fi
5382
5383 if test "$wxUSE_LOG" = yes; then
5384 echo "$as_me:$LINENO: result: yes" >&5
5385echo "${ECHO_T}yes" >&6
5386 else
5387 echo "$as_me:$LINENO: result: no" >&5
5388echo "${ECHO_T}no" >&6
5389 fi
5390
5391
5392 enablestring=
5393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5394echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5395 no_cache=0
5396 # Check whether --enable-longlong or --disable-longlong was given.
5397if test "${enable_longlong+set}" = set; then
5398 enableval="$enable_longlong"
5399
5400 if test "$enableval" = yes; then
5401 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5402 else
5403 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5404 fi
5405
5406else
5407
5408 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5409 if test "x$LINE" != x ; then
5410 eval "DEFAULT_$LINE"
5411 else
5412 no_cache=1
5413 fi
5414
5415 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5416
5417fi;
5418
5419 eval "$ac_cv_use_longlong"
5420 if test "$no_cache" != 1; then
5421 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5422 fi
5423
5424 if test "$wxUSE_LONGLONG" = yes; then
5425 echo "$as_me:$LINENO: result: yes" >&5
5426echo "${ECHO_T}yes" >&6
5427 else
5428 echo "$as_me:$LINENO: result: no" >&5
5429echo "${ECHO_T}no" >&6
5430 fi
5431
5432
5433 enablestring=
5434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5435echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5436 no_cache=0
5437 # Check whether --enable-mimetype or --disable-mimetype was given.
5438if test "${enable_mimetype+set}" = set; then
5439 enableval="$enable_mimetype"
5440
5441 if test "$enableval" = yes; then
5442 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5443 else
5444 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5445 fi
5446
5447else
5448
5449 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5450 if test "x$LINE" != x ; then
5451 eval "DEFAULT_$LINE"
5452 else
5453 no_cache=1
5454 fi
5455
5456 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5457
5458fi;
5459
5460 eval "$ac_cv_use_mimetype"
5461 if test "$no_cache" != 1; then
5462 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5463 fi
5464
5465 if test "$wxUSE_MIMETYPE" = yes; then
5466 echo "$as_me:$LINENO: result: yes" >&5
5467echo "${ECHO_T}yes" >&6
5468 else
5469 echo "$as_me:$LINENO: result: no" >&5
5470echo "${ECHO_T}no" >&6
5471 fi
5472
5473
5474 enablestring=
5475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5476echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5477 no_cache=0
5478 # Check whether --enable-mslu or --disable-mslu was given.
5479if test "${enable_mslu+set}" = set; then
5480 enableval="$enable_mslu"
5481
5482 if test "$enableval" = yes; then
5483 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5484 else
5485 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5486 fi
5487
5488else
5489
5490 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5491 if test "x$LINE" != x ; then
5492 eval "DEFAULT_$LINE"
5493 else
5494 no_cache=1
5495 fi
5496
5497 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5498
5499fi;
5500
5501 eval "$ac_cv_use_mslu"
5502 if test "$no_cache" != 1; then
5503 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5504 fi
5505
5506 if test "$wxUSE_UNICODE_MSLU" = yes; then
5507 echo "$as_me:$LINENO: result: yes" >&5
5508echo "${ECHO_T}yes" >&6
5509 else
5510 echo "$as_me:$LINENO: result: no" >&5
5511echo "${ECHO_T}no" >&6
5512 fi
5513
5514
5515 enablestring=
5516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5517echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5518 no_cache=0
5519 # Check whether --enable-snglinst or --disable-snglinst was given.
5520if test "${enable_snglinst+set}" = set; then
5521 enableval="$enable_snglinst"
5522
5523 if test "$enableval" = yes; then
5524 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5525 else
5526 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5527 fi
5528
5529else
5530
5531 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5532 if test "x$LINE" != x ; then
5533 eval "DEFAULT_$LINE"
5534 else
5535 no_cache=1
5536 fi
5537
5538 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5539
5540fi;
5541
5542 eval "$ac_cv_use_snglinst"
5543 if test "$no_cache" != 1; then
5544 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5545 fi
5546
5547 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5548 echo "$as_me:$LINENO: result: yes" >&5
5549echo "${ECHO_T}yes" >&6
5550 else
5551 echo "$as_me:$LINENO: result: no" >&5
5552echo "${ECHO_T}no" >&6
5553 fi
5554
5555
5556 enablestring=
07158944
VZ
5557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5558echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5559 no_cache=0
07158944
VZ
5560 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5561if test "${enable_std_iostreams+set}" = set; then
5562 enableval="$enable_std_iostreams"
a848cd7e
SC
5563
5564 if test "$enableval" = yes; then
07158944 5565 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5566 else
07158944 5567 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5568 fi
5569
5570else
5571
07158944 5572 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5573 if test "x$LINE" != x ; then
5574 eval "DEFAULT_$LINE"
5575 else
5576 no_cache=1
5577 fi
5578
07158944 5579 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5580
5581fi;
5582
07158944 5583 eval "$ac_cv_use_std_iostreams"
a848cd7e 5584 if test "$no_cache" != 1; then
07158944 5585 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5586 fi
5587
07158944 5588 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5589 echo "$as_me:$LINENO: result: yes" >&5
5590echo "${ECHO_T}yes" >&6
5591 else
5592 echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594 fi
5595
5596
59746b65
MW
5597 enablestring=
5598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5599echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5600 no_cache=0
5601 # Check whether --enable-std_string or --disable-std_string was given.
5602if test "${enable_std_string+set}" = set; then
5603 enableval="$enable_std_string"
5604
5605 if test "$enableval" = yes; then
5606 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5607 else
5608 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5609 fi
5610
5611else
5612
5613 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5614 if test "x$LINE" != x ; then
5615 eval "DEFAULT_$LINE"
5616 else
5617 no_cache=1
5618 fi
5619
5620 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5621
5622fi;
5623
5624 eval "$ac_cv_use_std_string"
5625 if test "$no_cache" != 1; then
5626 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5627 fi
5628
5629 if test "$wxUSE_STD_STRING" = yes; then
5630 echo "$as_me:$LINENO: result: yes" >&5
5631echo "${ECHO_T}yes" >&6
5632 else
5633 echo "$as_me:$LINENO: result: no" >&5
5634echo "${ECHO_T}no" >&6
5635 fi
5636
5637
a848cd7e 5638 enablestring=
07158944
VZ
5639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5640echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5641 no_cache=0
07158944
VZ
5642 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5643if test "${enable_stdpaths+set}" = set; then
5644 enableval="$enable_stdpaths"
a848cd7e
SC
5645
5646 if test "$enableval" = yes; then
07158944 5647 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5648 else
07158944 5649 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5650 fi
5651
5652else
5653
07158944 5654 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5655 if test "x$LINE" != x ; then
5656 eval "DEFAULT_$LINE"
5657 else
5658 no_cache=1
5659 fi
5660
07158944 5661 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5662
5663fi;
5664
07158944 5665 eval "$ac_cv_use_stdpaths"
a848cd7e 5666 if test "$no_cache" != 1; then
07158944 5667 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5668 fi
5669
07158944 5670 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5671 echo "$as_me:$LINENO: result: yes" >&5
5672echo "${ECHO_T}yes" >&6
5673 else
5674 echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6
5676 fi
5677
5678
5679 enablestring=
5680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5681echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5682 no_cache=0
5683 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5684if test "${enable_stopwatch+set}" = set; then
5685 enableval="$enable_stopwatch"
5686
5687 if test "$enableval" = yes; then
5688 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5689 else
5690 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5691 fi
5692
5693else
5694
5695 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5696 if test "x$LINE" != x ; then
5697 eval "DEFAULT_$LINE"
5698 else
5699 no_cache=1
5700 fi
5701
5702 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5703
5704fi;
5705
5706 eval "$ac_cv_use_stopwatch"
5707 if test "$no_cache" != 1; then
5708 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5709 fi
5710
5711 if test "$wxUSE_STOPWATCH" = yes; then
5712 echo "$as_me:$LINENO: result: yes" >&5
5713echo "${ECHO_T}yes" >&6
5714 else
5715 echo "$as_me:$LINENO: result: no" >&5
5716echo "${ECHO_T}no" >&6
5717 fi
5718
5719
07158944
VZ
5720 enablestring=
5721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5722echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5723 no_cache=0
5724 # Check whether --enable-streams or --disable-streams was given.
5725if test "${enable_streams+set}" = set; then
5726 enableval="$enable_streams"
5727
5728 if test "$enableval" = yes; then
5729 ac_cv_use_streams='wxUSE_STREAMS=yes'
5730 else
5731 ac_cv_use_streams='wxUSE_STREAMS=no'
5732 fi
5733
5734else
5735
5736 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5737 if test "x$LINE" != x ; then
5738 eval "DEFAULT_$LINE"
5739 else
5740 no_cache=1
5741 fi
5742
5743 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5744
5745fi;
5746
5747 eval "$ac_cv_use_streams"
5748 if test "$no_cache" != 1; then
5749 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5750 fi
5751
5752 if test "$wxUSE_STREAMS" = yes; then
5753 echo "$as_me:$LINENO: result: yes" >&5
5754echo "${ECHO_T}yes" >&6
5755 else
5756 echo "$as_me:$LINENO: result: no" >&5
5757echo "${ECHO_T}no" >&6
5758 fi
5759
5760
a848cd7e
SC
5761 enablestring=
5762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5763echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5764 no_cache=0
5765 # Check whether --enable-system_options or --disable-system_options was given.
5766if test "${enable_system_options+set}" = set; then
5767 enableval="$enable_system_options"
5768
5769 if test "$enableval" = yes; then
5770 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5771 else
5772 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5773 fi
5774
5775else
5776
5777 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5778 if test "x$LINE" != x ; then
5779 eval "DEFAULT_$LINE"
5780 else
5781 no_cache=1
5782 fi
5783
5784 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5785
5786fi;
5787
5788 eval "$ac_cv_use_system_options"
5789 if test "$no_cache" != 1; then
5790 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5791 fi
5792
5793 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5794 echo "$as_me:$LINENO: result: yes" >&5
5795echo "${ECHO_T}yes" >&6
5796 else
5797 echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6
5799 fi
5800
5801
5802 enablestring=
5803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5804echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5805 no_cache=0
5806 # Check whether --enable-textbuf or --disable-textbuf was given.
5807if test "${enable_textbuf+set}" = set; then
5808 enableval="$enable_textbuf"
5809
5810 if test "$enableval" = yes; then
5811 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5812 else
5813 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5814 fi
5815
5816else
5817
5818 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5819 if test "x$LINE" != x ; then
5820 eval "DEFAULT_$LINE"
5821 else
5822 no_cache=1
5823 fi
5824
5825 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5826
5827fi;
5828
5829 eval "$ac_cv_use_textbuf"
5830 if test "$no_cache" != 1; then
5831 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5832 fi
5833
5834 if test "$wxUSE_TEXTBUFFER" = yes; then
5835 echo "$as_me:$LINENO: result: yes" >&5
5836echo "${ECHO_T}yes" >&6
5837 else
5838 echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6
5840 fi
5841
5842
5843 enablestring=
5844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5845echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5846 no_cache=0
5847 # Check whether --enable-textfile or --disable-textfile was given.
5848if test "${enable_textfile+set}" = set; then
5849 enableval="$enable_textfile"
5850
5851 if test "$enableval" = yes; then
5852 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5853 else
5854 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5855 fi
5856
5857else
5858
5859 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5860 if test "x$LINE" != x ; then
5861 eval "DEFAULT_$LINE"
5862 else
5863 no_cache=1
5864 fi
5865
5866 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5867
5868fi;
5869
5870 eval "$ac_cv_use_textfile"
5871 if test "$no_cache" != 1; then
5872 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5873 fi
5874
5875 if test "$wxUSE_TEXTFILE" = yes; then
5876 echo "$as_me:$LINENO: result: yes" >&5
5877echo "${ECHO_T}yes" >&6
5878 else
5879 echo "$as_me:$LINENO: result: no" >&5
5880echo "${ECHO_T}no" >&6
5881 fi
5882
5883
5884 enablestring=
5885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5886echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5887 no_cache=0
5888 # Check whether --enable-timer or --disable-timer was given.
5889if test "${enable_timer+set}" = set; then
5890 enableval="$enable_timer"
5891
5892 if test "$enableval" = yes; then
5893 ac_cv_use_timer='wxUSE_TIMER=yes'
5894 else
5895 ac_cv_use_timer='wxUSE_TIMER=no'
5896 fi
5897
5898else
5899
5900 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5901 if test "x$LINE" != x ; then
5902 eval "DEFAULT_$LINE"
5903 else
5904 no_cache=1
5905 fi
5906
5907 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5908
5909fi;
5910
5911 eval "$ac_cv_use_timer"
5912 if test "$no_cache" != 1; then
5913 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5914 fi
5915
5916 if test "$wxUSE_TIMER" = yes; then
5917 echo "$as_me:$LINENO: result: yes" >&5
5918echo "${ECHO_T}yes" >&6
5919 else
5920 echo "$as_me:$LINENO: result: no" >&5
5921echo "${ECHO_T}no" >&6
5922 fi
5923
5924
5925 enablestring=
5926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5927echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5928 no_cache=0
5929 # Check whether --enable-unicode or --disable-unicode was given.
5930if test "${enable_unicode+set}" = set; then
5931 enableval="$enable_unicode"
5932
5933 if test "$enableval" = yes; then
5934 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5935 else
5936 ac_cv_use_unicode='wxUSE_UNICODE=no'
5937 fi
5938
5939else
5940
5941 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5942 if test "x$LINE" != x ; then
5943 eval "DEFAULT_$LINE"
5944 else
5945 no_cache=1
5946 fi
5947
5948 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5949
5950fi;
5951
5952 eval "$ac_cv_use_unicode"
5953 if test "$no_cache" != 1; then
5954 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5955 fi
5956
5957 if test "$wxUSE_UNICODE" = yes; then
5958 echo "$as_me:$LINENO: result: yes" >&5
5959echo "${ECHO_T}yes" >&6
5960 else
5961 echo "$as_me:$LINENO: result: no" >&5
5962echo "${ECHO_T}no" >&6
5963 fi
5964
5965
5966 enablestring=
5967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5968echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5969 no_cache=0
5970 # Check whether --enable-sound or --disable-sound was given.
5971if test "${enable_sound+set}" = set; then
5972 enableval="$enable_sound"
5973
5974 if test "$enableval" = yes; then
5975 ac_cv_use_sound='wxUSE_SOUND=yes'
5976 else
5977 ac_cv_use_sound='wxUSE_SOUND=no'
5978 fi
5979
5980else
5981
5982 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5983 if test "x$LINE" != x ; then
5984 eval "DEFAULT_$LINE"
5985 else
5986 no_cache=1
5987 fi
5988
5989 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5990
5991fi;
5992
5993 eval "$ac_cv_use_sound"
5994 if test "$no_cache" != 1; then
5995 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5996 fi
5997
5998 if test "$wxUSE_SOUND" = yes; then
5999 echo "$as_me:$LINENO: result: yes" >&5
6000echo "${ECHO_T}yes" >&6
6001 else
6002 echo "$as_me:$LINENO: result: no" >&5
6003echo "${ECHO_T}no" >&6
6004 fi
6005
6006
3b57de8b
RL
6007 enablestring=
6008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6009echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6010 no_cache=0
6011 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6012if test "${enable_mediactrl+set}" = set; then
6013 enableval="$enable_mediactrl"
6014
6015 if test "$enableval" = yes; then
6016 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6017 else
6018 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6019 fi
6020
6021else
6022
6023 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6024 if test "x$LINE" != x ; then
6025 eval "DEFAULT_$LINE"
6026 else
6027 no_cache=1
6028 fi
6029
6030 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6031
6032fi;
6033
6034 eval "$ac_cv_use_mediactrl"
6035 if test "$no_cache" != 1; then
6036 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6037 fi
6038
6039 if test "$wxUSE_MEDIACTRL" = yes; then
6040 echo "$as_me:$LINENO: result: yes" >&5
6041echo "${ECHO_T}yes" >&6
6042 else
6043 echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6
6045 fi
6046
6047
a848cd7e
SC
6048 enablestring=
6049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6050echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6051 no_cache=0
6052 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6053if test "${enable_wxprintfv+set}" = set; then
6054 enableval="$enable_wxprintfv"
6055
6056 if test "$enableval" = yes; then
6057 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6058 else
6059 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6060 fi
6061
6062else
6063
6064 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6065 if test "x$LINE" != x ; then
6066 eval "DEFAULT_$LINE"
6067 else
6068 no_cache=1
6069 fi
6070
6071 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6072
6073fi;
6074
6075 eval "$ac_cv_use_wxprintfv"
6076 if test "$no_cache" != 1; then
6077 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6078 fi
6079
6080 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6081 echo "$as_me:$LINENO: result: yes" >&5
6082echo "${ECHO_T}yes" >&6
6083 else
6084 echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6
6086 fi
6087
6088
6089 enablestring=
6090 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6091echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6092 no_cache=0
6093 # Check whether --enable-zipstream or --disable-zipstream was given.
6094if test "${enable_zipstream+set}" = set; then
6095 enableval="$enable_zipstream"
6096
6097 if test "$enableval" = yes; then
6098 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6099 else
6100 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6101 fi
6102
6103else
6104
6105 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6106 if test "x$LINE" != x ; then
6107 eval "DEFAULT_$LINE"
6108 else
6109 no_cache=1
6110 fi
6111
6112 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6113
6114fi;
6115
6116 eval "$ac_cv_use_zipstream"
6117 if test "$no_cache" != 1; then
6118 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6119 fi
6120
6121 if test "$wxUSE_ZIPSTREAM" = yes; then
6122 echo "$as_me:$LINENO: result: yes" >&5
6123echo "${ECHO_T}yes" >&6
6124 else
6125 echo "$as_me:$LINENO: result: no" >&5
6126echo "${ECHO_T}no" >&6
6127 fi
6128
6129
a848cd7e
SC
6130
6131 enablestring=
6132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6133echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6134 no_cache=0
6135 # Check whether --enable-url or --disable-url was given.
6136if test "${enable_url+set}" = set; then
6137 enableval="$enable_url"
6138
6139 if test "$enableval" = yes; then
6140 ac_cv_use_url='wxUSE_URL=yes'
6141 else
6142 ac_cv_use_url='wxUSE_URL=no'
6143 fi
6144
6145else
6146
6147 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6148 if test "x$LINE" != x ; then
6149 eval "DEFAULT_$LINE"
6150 else
6151 no_cache=1
6152 fi
6153
6154 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6155
6156fi;
6157
6158 eval "$ac_cv_use_url"
6159 if test "$no_cache" != 1; then
6160 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6161 fi
6162
6163 if test "$wxUSE_URL" = yes; then
6164 echo "$as_me:$LINENO: result: yes" >&5
6165echo "${ECHO_T}yes" >&6
6166 else
6167 echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6
6169 fi
6170
6171
6172 enablestring=
6173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6174echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6175 no_cache=0
6176 # Check whether --enable-protocol or --disable-protocol was given.
6177if test "${enable_protocol+set}" = set; then
6178 enableval="$enable_protocol"
6179
6180 if test "$enableval" = yes; then
6181 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6182 else
6183 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6184 fi
6185
6186else
6187
6188 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6189 if test "x$LINE" != x ; then
6190 eval "DEFAULT_$LINE"
6191 else
6192 no_cache=1
6193 fi
6194
6195 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6196
6197fi;
6198
6199 eval "$ac_cv_use_protocol"
6200 if test "$no_cache" != 1; then
6201 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6202 fi
6203
6204 if test "$wxUSE_PROTOCOL" = yes; then
6205 echo "$as_me:$LINENO: result: yes" >&5
6206echo "${ECHO_T}yes" >&6
6207 else
6208 echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6
6210 fi
6211
6212
6213 enablestring=
6214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6215echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6216 no_cache=0
6217 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6218if test "${enable_protocol_http+set}" = set; then
6219 enableval="$enable_protocol_http"
6220
6221 if test "$enableval" = yes; then
6222 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6223 else
6224 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6225 fi
6226
6227else
6228
6229 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6230 if test "x$LINE" != x ; then
6231 eval "DEFAULT_$LINE"
6232 else
6233 no_cache=1
6234 fi
6235
6236 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6237
6238fi;
6239
6240 eval "$ac_cv_use_protocol_http"
6241 if test "$no_cache" != 1; then
6242 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6243 fi
6244
6245 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6246 echo "$as_me:$LINENO: result: yes" >&5
6247echo "${ECHO_T}yes" >&6
6248 else
6249 echo "$as_me:$LINENO: result: no" >&5
6250echo "${ECHO_T}no" >&6
6251 fi
6252
6253
6254 enablestring=
6255 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6256echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6257 no_cache=0
6258 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6259if test "${enable_protocol_ftp+set}" = set; then
6260 enableval="$enable_protocol_ftp"
6261
6262 if test "$enableval" = yes; then
6263 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6264 else
6265 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6266 fi
6267
6268else
6269
6270 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6271 if test "x$LINE" != x ; then
6272 eval "DEFAULT_$LINE"
6273 else
6274 no_cache=1
6275 fi
6276
6277 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6278
6279fi;
6280
6281 eval "$ac_cv_use_protocol_ftp"
6282 if test "$no_cache" != 1; then
6283 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6284 fi
6285
6286 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6287 echo "$as_me:$LINENO: result: yes" >&5
6288echo "${ECHO_T}yes" >&6
6289 else
6290 echo "$as_me:$LINENO: result: no" >&5
6291echo "${ECHO_T}no" >&6
6292 fi
6293
6294
6295 enablestring=
6296 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6297echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6298 no_cache=0
6299 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6300if test "${enable_protocol_file+set}" = set; then
6301 enableval="$enable_protocol_file"
6302
6303 if test "$enableval" = yes; then
6304 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6305 else
6306 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6307 fi
6308
6309else
6310
6311 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6312 if test "x$LINE" != x ; then
6313 eval "DEFAULT_$LINE"
6314 else
6315 no_cache=1
6316 fi
6317
6318 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6319
6320fi;
6321
6322 eval "$ac_cv_use_protocol_file"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6328 echo "$as_me:$LINENO: result: yes" >&5
6329echo "${ECHO_T}yes" >&6
6330 else
6331 echo "$as_me:$LINENO: result: no" >&5
6332echo "${ECHO_T}no" >&6
6333 fi
6334
6335
6336
6337
6338
6339 enablestring=
6340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6341echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6342 no_cache=0
6343 # Check whether --enable-threads or --disable-threads was given.
6344if test "${enable_threads+set}" = set; then
6345 enableval="$enable_threads"
6346
6347 if test "$enableval" = yes; then
6348 ac_cv_use_threads='wxUSE_THREADS=yes'
6349 else
6350 ac_cv_use_threads='wxUSE_THREADS=no'
6351 fi
6352
6353else
6354
6355 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6356 if test "x$LINE" != x ; then
6357 eval "DEFAULT_$LINE"
6358 else
6359 no_cache=1
6360 fi
6361
6362 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6363
6364fi;
6365
6366 eval "$ac_cv_use_threads"
6367 if test "$no_cache" != 1; then
6368 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6369 fi
6370
6371 if test "$wxUSE_THREADS" = yes; then
6372 echo "$as_me:$LINENO: result: yes" >&5
6373echo "${ECHO_T}yes" >&6
6374 else
6375 echo "$as_me:$LINENO: result: no" >&5
6376echo "${ECHO_T}no" >&6
6377 fi
6378
6379
6380if test "$wxUSE_GUI" = "yes"; then
6381
6382
6383
6384 enablestring=
6385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6386echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6387 no_cache=0
6388 # Check whether --enable-docview or --disable-docview was given.
6389if test "${enable_docview+set}" = set; then
6390 enableval="$enable_docview"
6391
6392 if test "$enableval" = yes; then
6393 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6394 else
6395 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6396 fi
6397
6398else
6399
6400 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6401 if test "x$LINE" != x ; then
6402 eval "DEFAULT_$LINE"
6403 else
6404 no_cache=1
6405 fi
6406
6407 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6408
6409fi;
6410
6411 eval "$ac_cv_use_docview"
6412 if test "$no_cache" != 1; then
6413 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6414 fi
6415
6416 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6417 echo "$as_me:$LINENO: result: yes" >&5
6418echo "${ECHO_T}yes" >&6
6419 else
6420 echo "$as_me:$LINENO: result: no" >&5
6421echo "${ECHO_T}no" >&6
6422 fi
6423
6424
6425 enablestring=
6426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6427echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6428 no_cache=0
6429 # Check whether --enable-help or --disable-help was given.
6430if test "${enable_help+set}" = set; then
6431 enableval="$enable_help"
6432
6433 if test "$enableval" = yes; then
6434 ac_cv_use_help='wxUSE_HELP=yes'
6435 else
6436 ac_cv_use_help='wxUSE_HELP=no'
6437 fi
6438
6439else
6440
6441 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6442 if test "x$LINE" != x ; then
6443 eval "DEFAULT_$LINE"
6444 else
6445 no_cache=1
6446 fi
6447
6448 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6449
6450fi;
6451
6452 eval "$ac_cv_use_help"
6453 if test "$no_cache" != 1; then
6454 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6455 fi
6456
6457 if test "$wxUSE_HELP" = yes; then
6458 echo "$as_me:$LINENO: result: yes" >&5
6459echo "${ECHO_T}yes" >&6
6460 else
6461 echo "$as_me:$LINENO: result: no" >&5
6462echo "${ECHO_T}no" >&6
6463 fi
6464
6465
6466 enablestring=
6467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6468echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6469 no_cache=0
6470 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6471if test "${enable_mshtmlhelp+set}" = set; then
6472 enableval="$enable_mshtmlhelp"
6473
6474 if test "$enableval" = yes; then
6475 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6476 else
6477 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6478 fi
6479
6480else
6481
6482 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6483 if test "x$LINE" != x ; then
6484 eval "DEFAULT_$LINE"
6485 else
6486 no_cache=1
6487 fi
6488
6489 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6490
6491fi;
6492
6493 eval "$ac_cv_use_mshtmlhelp"
6494 if test "$no_cache" != 1; then
6495 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6496 fi
6497
6498 if test "$wxUSE_MS_HTML_HELP" = yes; then
6499 echo "$as_me:$LINENO: result: yes" >&5
6500echo "${ECHO_T}yes" >&6
6501 else
6502 echo "$as_me:$LINENO: result: no" >&5
6503echo "${ECHO_T}no" >&6
6504 fi
6505
6506
6507 enablestring=
6508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6509echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6510 no_cache=0
6511 # Check whether --enable-html or --disable-html was given.
6512if test "${enable_html+set}" = set; then
6513 enableval="$enable_html"
6514
6515 if test "$enableval" = yes; then
6516 ac_cv_use_html='wxUSE_HTML=yes'
6517 else
6518 ac_cv_use_html='wxUSE_HTML=no'
6519 fi
6520
6521else
6522
6523 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6524 if test "x$LINE" != x ; then
6525 eval "DEFAULT_$LINE"
6526 else
6527 no_cache=1
6528 fi
6529
6530 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6531
6532fi;
6533
6534 eval "$ac_cv_use_html"
6535 if test "$no_cache" != 1; then
6536 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6537 fi
6538
6539 if test "$wxUSE_HTML" = yes; then
6540 echo "$as_me:$LINENO: result: yes" >&5
6541echo "${ECHO_T}yes" >&6
6542 else
6543 echo "$as_me:$LINENO: result: no" >&5
6544echo "${ECHO_T}no" >&6
6545 fi
6546
6547
6548 enablestring=
6549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6550echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6551 no_cache=0
6552 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6553if test "${enable_htmlhelp+set}" = set; then
6554 enableval="$enable_htmlhelp"
6555
6556 if test "$enableval" = yes; then
6557 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6558 else
6559 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6560 fi
6561
6562else
6563
6564 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6565 if test "x$LINE" != x ; then
6566 eval "DEFAULT_$LINE"
6567 else
6568 no_cache=1
6569 fi
6570
6571 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6572
6573fi;
6574
6575 eval "$ac_cv_use_htmlhelp"
6576 if test "$no_cache" != 1; then
6577 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6578 fi
6579
6580 if test "$wxUSE_WXHTML_HELP" = yes; then
6581 echo "$as_me:$LINENO: result: yes" >&5
6582echo "${ECHO_T}yes" >&6
6583 else
6584 echo "$as_me:$LINENO: result: no" >&5
6585echo "${ECHO_T}no" >&6
6586 fi
6587
6588
9a8f0513
VS
6589 enablestring=
6590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6591echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6592 no_cache=0
6593 # Check whether --enable-xrc or --disable-xrc was given.
6594if test "${enable_xrc+set}" = set; then
6595 enableval="$enable_xrc"
6596
6597 if test "$enableval" = yes; then
6598 ac_cv_use_xrc='wxUSE_XRC=yes'
6599 else
6600 ac_cv_use_xrc='wxUSE_XRC=no'
6601 fi
6602
6603else
6604
6605 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6606 if test "x$LINE" != x ; then
6607 eval "DEFAULT_$LINE"
6608 else
6609 no_cache=1
6610 fi
6611
6612 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6613
6614fi;
6615
6616 eval "$ac_cv_use_xrc"
6617 if test "$no_cache" != 1; then
6618 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6619 fi
6620
6621 if test "$wxUSE_XRC" = yes; then
6622 echo "$as_me:$LINENO: result: yes" >&5
6623echo "${ECHO_T}yes" >&6
6624 else
6625 echo "$as_me:$LINENO: result: no" >&5
6626echo "${ECHO_T}no" >&6
6627 fi
6628
6629
a848cd7e
SC
6630 enablestring=
6631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6632echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6633 no_cache=0
6634 # Check whether --enable-constraints or --disable-constraints was given.
6635if test "${enable_constraints+set}" = set; then
6636 enableval="$enable_constraints"
6637
6638 if test "$enableval" = yes; then
6639 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6640 else
6641 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6642 fi
6643
6644else
6645
6646 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6647 if test "x$LINE" != x ; then
6648 eval "DEFAULT_$LINE"
6649 else
6650 no_cache=1
6651 fi
6652
6653 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6654
6655fi;
6656
6657 eval "$ac_cv_use_constraints"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_CONSTRAINTS" = yes; then
6663 echo "$as_me:$LINENO: result: yes" >&5
6664echo "${ECHO_T}yes" >&6
6665 else
6666 echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
6668 fi
6669
6670
6671 enablestring=
6672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6673echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6674 no_cache=0
6675 # Check whether --enable-printarch or --disable-printarch was given.
6676if test "${enable_printarch+set}" = set; then
6677 enableval="$enable_printarch"
6678
6679 if test "$enableval" = yes; then
6680 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6681 else
6682 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6683 fi
6684
6685else
6686
6687 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6688 if test "x$LINE" != x ; then
6689 eval "DEFAULT_$LINE"
6690 else
6691 no_cache=1
6692 fi
6693
6694 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6695
6696fi;
6697
6698 eval "$ac_cv_use_printarch"
6699 if test "$no_cache" != 1; then
6700 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6701 fi
6702
6703 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6704 echo "$as_me:$LINENO: result: yes" >&5
6705echo "${ECHO_T}yes" >&6
6706 else
6707 echo "$as_me:$LINENO: result: no" >&5
6708echo "${ECHO_T}no" >&6
6709 fi
6710
6711
6712 enablestring=
6713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6714echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6715 no_cache=0
6716 # Check whether --enable-mdi or --disable-mdi was given.
6717if test "${enable_mdi+set}" = set; then
6718 enableval="$enable_mdi"
6719
6720 if test "$enableval" = yes; then
8a7b1113 6721 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6722 else
8a7b1113 6723 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6724 fi
6725
6726else
6727
8a7b1113 6728 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6729 if test "x$LINE" != x ; then
6730 eval "DEFAULT_$LINE"
6731 else
6732 no_cache=1
6733 fi
6734
8a7b1113 6735 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6736
6737fi;
6738
6739 eval "$ac_cv_use_mdi"
6740 if test "$no_cache" != 1; then
6741 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6742 fi
6743
8a7b1113
VZ
6744 if test "$wxUSE_MDI" = yes; then
6745 echo "$as_me:$LINENO: result: yes" >&5
6746echo "${ECHO_T}yes" >&6
6747 else
6748 echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6
6750 fi
6751
6752
6753 enablestring=
6754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6755echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6756 no_cache=0
6757 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6758if test "${enable_mdidoc+set}" = set; then
6759 enableval="$enable_mdidoc"
6760
6761 if test "$enableval" = yes; then
6762 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6763 else
6764 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6765 fi
6766
6767else
6768
6769 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6770 if test "x$LINE" != x ; then
6771 eval "DEFAULT_$LINE"
6772 else
6773 no_cache=1
6774 fi
6775
6776 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6777
6778fi;
6779
6780 eval "$ac_cv_use_mdidoc"
6781 if test "$no_cache" != 1; then
6782 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6783 fi
6784
a848cd7e
SC
6785 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6786 echo "$as_me:$LINENO: result: yes" >&5
6787echo "${ECHO_T}yes" >&6
6788 else
6789 echo "$as_me:$LINENO: result: no" >&5
6790echo "${ECHO_T}no" >&6
6791 fi
6792
6793
6794 enablestring=
6795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6796echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6797 no_cache=0
6798 # Check whether --enable-loggui or --disable-loggui was given.
6799if test "${enable_loggui+set}" = set; then
6800 enableval="$enable_loggui"
6801
6802 if test "$enableval" = yes; then
6803 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6804 else
6805 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6806 fi
6807
6808else
6809
6810 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6811 if test "x$LINE" != x ; then
6812 eval "DEFAULT_$LINE"
6813 else
6814 no_cache=1
6815 fi
6816
6817 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6818
6819fi;
6820
6821 eval "$ac_cv_use_loggui"
6822 if test "$no_cache" != 1; then
6823 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6824 fi
6825
6826 if test "$wxUSE_LOGGUI" = yes; then
6827 echo "$as_me:$LINENO: result: yes" >&5
6828echo "${ECHO_T}yes" >&6
6829 else
6830 echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6
6832 fi
6833
6834
6835 enablestring=
6836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6837echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6838 no_cache=0
6839 # Check whether --enable-logwin or --disable-logwin was given.
6840if test "${enable_logwin+set}" = set; then
6841 enableval="$enable_logwin"
6842
6843 if test "$enableval" = yes; then
6844 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6845 else
6846 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6847 fi
6848
6849else
6850
6851 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6852 if test "x$LINE" != x ; then
6853 eval "DEFAULT_$LINE"
6854 else
6855 no_cache=1
6856 fi
6857
6858 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6859
6860fi;
6861
6862 eval "$ac_cv_use_logwin"
6863 if test "$no_cache" != 1; then
6864 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6865 fi
6866
6867 if test "$wxUSE_LOGWINDOW" = yes; then
6868 echo "$as_me:$LINENO: result: yes" >&5
6869echo "${ECHO_T}yes" >&6
6870 else
6871 echo "$as_me:$LINENO: result: no" >&5
6872echo "${ECHO_T}no" >&6
6873 fi
6874
6875
6876 enablestring=
6877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6878echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6879 no_cache=0
6880 # Check whether --enable-logdialog or --disable-logdialog was given.
6881if test "${enable_logdialog+set}" = set; then
6882 enableval="$enable_logdialog"
6883
6884 if test "$enableval" = yes; then
6885 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6886 else
6887 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6888 fi
6889
6890else
6891
6892 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6893 if test "x$LINE" != x ; then
6894 eval "DEFAULT_$LINE"
6895 else
6896 no_cache=1
6897 fi
6898
6899 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6900
6901fi;
6902
6903 eval "$ac_cv_use_logdialog"
6904 if test "$no_cache" != 1; then
6905 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6906 fi
6907
6908 if test "$wxUSE_LOGDIALOG" = yes; then
6909 echo "$as_me:$LINENO: result: yes" >&5
6910echo "${ECHO_T}yes" >&6
6911 else
6912 echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6
6914 fi
6915
6916
646b6ec1
VS
6917 enablestring=
6918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6919echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6920 no_cache=0
6921 # Check whether --enable-webkit or --disable-webkit was given.
6922if test "${enable_webkit+set}" = set; then
6923 enableval="$enable_webkit"
6924
6925 if test "$enableval" = yes; then
6926 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6927 else
6928 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6929 fi
6930
6931else
6932
6933 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6934 if test "x$LINE" != x ; then
6935 eval "DEFAULT_$LINE"
6936 else
6937 no_cache=1
6938 fi
6939
6940 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6941
6942fi;
6943
6944 eval "$ac_cv_use_webkit"
6945 if test "$no_cache" != 1; then
6946 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6947 fi
6948
6949 if test "$wxUSE_WEBKIT" = yes; then
6950 echo "$as_me:$LINENO: result: yes" >&5
6951echo "${ECHO_T}yes" >&6
6952 else
6953 echo "$as_me:$LINENO: result: no" >&5
6954echo "${ECHO_T}no" >&6
6955 fi
6956
6957
a848cd7e
SC
6958
6959 enablestring=
6960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6961echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6962 no_cache=0
6963 # Check whether --enable-postscript or --disable-postscript was given.
6964if test "${enable_postscript+set}" = set; then
6965 enableval="$enable_postscript"
6966
6967 if test "$enableval" = yes; then
6968 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6969 else
6970 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6971 fi
6972
6973else
6974
6975 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6976 if test "x$LINE" != x ; then
6977 eval "DEFAULT_$LINE"
6978 else
6979 no_cache=1
6980 fi
6981
6982 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6983
6984fi;
6985
6986 eval "$ac_cv_use_postscript"
6987 if test "$no_cache" != 1; then
6988 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6989 fi
6990
6991 if test "$wxUSE_POSTSCRIPT" = yes; then
6992 echo "$as_me:$LINENO: result: yes" >&5
6993echo "${ECHO_T}yes" >&6
6994 else
6995 echo "$as_me:$LINENO: result: no" >&5
6996echo "${ECHO_T}no" >&6
6997 fi
6998
6999
7000
7001
7002
7003 enablestring=
7004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7005echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7006 no_cache=0
7007 # Check whether --enable-prologio or --disable-prologio was given.
7008if test "${enable_prologio+set}" = set; then
7009 enableval="$enable_prologio"
7010
7011 if test "$enableval" = yes; then
7012 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7013 else
7014 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7015 fi
7016
7017else
7018
7019 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7020 if test "x$LINE" != x ; then
7021 eval "DEFAULT_$LINE"
7022 else
7023 no_cache=1
7024 fi
7025
7026 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7027
7028fi;
7029
7030 eval "$ac_cv_use_prologio"
7031 if test "$no_cache" != 1; then
7032 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7033 fi
7034
7035 if test "$wxUSE_PROLOGIO" = yes; then
7036 echo "$as_me:$LINENO: result: yes" >&5
7037echo "${ECHO_T}yes" >&6
7038 else
7039 echo "$as_me:$LINENO: result: no" >&5
7040echo "${ECHO_T}no" >&6
7041 fi
7042
7043
7044 enablestring=
7045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7046echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7047 no_cache=0
7048 # Check whether --enable-resources or --disable-resources was given.
7049if test "${enable_resources+set}" = set; then
7050 enableval="$enable_resources"
7051
7052 if test "$enableval" = yes; then
7053 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7054 else
7055 ac_cv_use_resources='wxUSE_RESOURCES=no'
7056 fi
7057
7058else
7059
7060 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7061 if test "x$LINE" != x ; then
7062 eval "DEFAULT_$LINE"
7063 else
7064 no_cache=1
7065 fi
7066
7067 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7068
7069fi;
7070
7071 eval "$ac_cv_use_resources"
7072 if test "$no_cache" != 1; then
7073 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7074 fi
7075
7076 if test "$wxUSE_RESOURCES" = yes; then
7077 echo "$as_me:$LINENO: result: yes" >&5
7078echo "${ECHO_T}yes" >&6
7079 else
7080 echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6
7082 fi
7083
7084
7085
7086
7087 enablestring=
7088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7089echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7090 no_cache=0
7091 # Check whether --enable-clipboard or --disable-clipboard was given.
7092if test "${enable_clipboard+set}" = set; then
7093 enableval="$enable_clipboard"
7094
7095 if test "$enableval" = yes; then
7096 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7097 else
7098 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7099 fi
7100
7101else
7102
7103 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7104 if test "x$LINE" != x ; then
7105 eval "DEFAULT_$LINE"
7106 else
7107 no_cache=1
7108 fi
7109
7110 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7111
7112fi;
7113
7114 eval "$ac_cv_use_clipboard"
7115 if test "$no_cache" != 1; then
7116 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7117 fi
7118
7119 if test "$wxUSE_CLIPBOARD" = yes; then
7120 echo "$as_me:$LINENO: result: yes" >&5
7121echo "${ECHO_T}yes" >&6
7122 else
7123 echo "$as_me:$LINENO: result: no" >&5
7124echo "${ECHO_T}no" >&6
7125 fi
7126
7127
7128 enablestring=
7129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7130echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7131 no_cache=0
7132 # Check whether --enable-dnd or --disable-dnd was given.
7133if test "${enable_dnd+set}" = set; then
7134 enableval="$enable_dnd"
7135
7136 if test "$enableval" = yes; then
7137 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7138 else
7139 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7140 fi
7141
7142else
7143
7144 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7145 if test "x$LINE" != x ; then
7146 eval "DEFAULT_$LINE"
7147 else
7148 no_cache=1
7149 fi
7150
7151 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7152
7153fi;
7154
7155 eval "$ac_cv_use_dnd"
7156 if test "$no_cache" != 1; then
7157 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7158 fi
7159
7160 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7161 echo "$as_me:$LINENO: result: yes" >&5
7162echo "${ECHO_T}yes" >&6
7163 else
7164 echo "$as_me:$LINENO: result: no" >&5
7165echo "${ECHO_T}no" >&6
7166 fi
7167
7168
7169 enablestring=
7170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7171echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7172 no_cache=0
7173 # Check whether --enable-metafile or --disable-metafile was given.
7174if test "${enable_metafile+set}" = set; then
7175 enableval="$enable_metafile"
7176
7177 if test "$enableval" = yes; then
7178 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7179 else
7180 ac_cv_use_metafile='wxUSE_METAFILE=no'
7181 fi
7182
7183else
7184
7185 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7186 if test "x$LINE" != x ; then
7187 eval "DEFAULT_$LINE"
7188 else
7189 no_cache=1
7190 fi
7191
7192 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7193
7194fi;
7195
7196 eval "$ac_cv_use_metafile"
7197 if test "$no_cache" != 1; then
7198 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7199 fi
7200
7201 if test "$wxUSE_METAFILE" = yes; then
7202 echo "$as_me:$LINENO: result: yes" >&5
7203echo "${ECHO_T}yes" >&6
7204 else
7205 echo "$as_me:$LINENO: result: no" >&5
7206echo "${ECHO_T}no" >&6
7207 fi
7208
7209
7210
7211
7212
7213 enablestring=
7214 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7215echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7216 no_cache=0
7217 # Check whether --enable-controls or --disable-controls was given.
7218if test "${enable_controls+set}" = set; then
7219 enableval="$enable_controls"
7220
7221 if test "$enableval" = yes; then
7222 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7223 else
7224 ac_cv_use_controls='wxUSE_CONTROLS=no'
7225 fi
7226
7227else
7228
7229 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7230 if test "x$LINE" != x ; then
7231 eval "DEFAULT_$LINE"
7232 else
7233 no_cache=1
7234 fi
7235
7236 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7237
7238fi;
7239
7240 eval "$ac_cv_use_controls"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_CONTROLS" = yes; then
7246 echo "$as_me:$LINENO: result: yes" >&5
7247echo "${ECHO_T}yes" >&6
7248 else
7249 echo "$as_me:$LINENO: result: no" >&5
7250echo "${ECHO_T}no" >&6
7251 fi
7252
7253
7254if test "$wxUSE_CONTROLS" = "yes"; then
7255 DEFAULT_wxUSE_ACCEL=yes
7256 DEFAULT_wxUSE_BMPBUTTON=yes
7257 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7258 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7259 DEFAULT_wxUSE_CARET=yes
7260 DEFAULT_wxUSE_COMBOBOX=yes
7261 DEFAULT_wxUSE_CHECKBOX=yes
7262 DEFAULT_wxUSE_CHECKLISTBOX=yes
7263 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7264 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7265 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7266 DEFAULT_wxUSE_GAUGE=yes
7267 DEFAULT_wxUSE_GRID=yes
7268 DEFAULT_wxUSE_IMAGLIST=yes
7269 DEFAULT_wxUSE_LISTBOOK=yes
7270 DEFAULT_wxUSE_LISTBOX=yes
7271 DEFAULT_wxUSE_LISTCTRL=yes
7272 DEFAULT_wxUSE_NOTEBOOK=yes
7273 DEFAULT_wxUSE_RADIOBOX=yes
7274 DEFAULT_wxUSE_RADIOBTN=yes
7275 DEFAULT_wxUSE_SASH=yes
7276 DEFAULT_wxUSE_SCROLLBAR=yes
7277 DEFAULT_wxUSE_SLIDER=yes
7278 DEFAULT_wxUSE_SPINBTN=yes
7279 DEFAULT_wxUSE_SPINCTRL=yes
7280 DEFAULT_wxUSE_SPLITTER=yes
7281 DEFAULT_wxUSE_STATBMP=yes
7282 DEFAULT_wxUSE_STATBOX=yes
7283 DEFAULT_wxUSE_STATLINE=yes
7284 DEFAULT_wxUSE_STATUSBAR=yes
7285 DEFAULT_wxUSE_TAB_DIALOG=yes
7286 DEFAULT_wxUSE_TOGGLEBTN=yes
7287 DEFAULT_wxUSE_TOOLBAR=yes
7288 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7289 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7290 DEFAULT_wxUSE_TOOLTIPS=yes
7291 DEFAULT_wxUSE_TREECTRL=yes
7292 DEFAULT_wxUSE_POPUPWIN=yes
7293 DEFAULT_wxUSE_TIPWINDOW=yes
7294elif test "$wxUSE_CONTROLS" = "no"; then
7295 DEFAULT_wxUSE_ACCEL=no
7296 DEFAULT_wxUSE_BMPBUTTON=no
7297 DEFAULT_wxUSE_BUTTON=no
7298 DEFAULT_wxUSE_CALCTRL=no
7299 DEFAULT_wxUSE_CARET=no
7300 DEFAULT_wxUSE_COMBOBOX=no
7301 DEFAULT_wxUSE_CHECKBOX=no
7302 DEFAULT_wxUSE_CHECKLISTBOX=no
7303 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7304 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7305 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7306 DEFAULT_wxUSE_GAUGE=no
7307 DEFAULT_wxUSE_GRID=no
7308 DEFAULT_wxUSE_IMAGLIST=no
7309 DEFAULT_wxUSE_LISTBOOK=no
7310 DEFAULT_wxUSE_LISTBOX=no
7311 DEFAULT_wxUSE_LISTCTRL=no
7312 DEFAULT_wxUSE_NOTEBOOK=no
7313 DEFAULT_wxUSE_RADIOBOX=no
7314 DEFAULT_wxUSE_RADIOBTN=no
7315 DEFAULT_wxUSE_SASH=no
7316 DEFAULT_wxUSE_SCROLLBAR=no
7317 DEFAULT_wxUSE_SLIDER=no
7318 DEFAULT_wxUSE_SPINBTN=no
7319 DEFAULT_wxUSE_SPINCTRL=no
7320 DEFAULT_wxUSE_SPLITTER=no
7321 DEFAULT_wxUSE_STATBMP=no
7322 DEFAULT_wxUSE_STATBOX=no
7323 DEFAULT_wxUSE_STATLINE=no
7324 DEFAULT_wxUSE_STATUSBAR=no
7325 DEFAULT_wxUSE_TAB_DIALOG=no
7326 DEFAULT_wxUSE_TOGGLEBTN=no
7327 DEFAULT_wxUSE_TOOLBAR=no
7328 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7329 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7330 DEFAULT_wxUSE_TOOLTIPS=no
7331 DEFAULT_wxUSE_TREECTRL=no
7332 DEFAULT_wxUSE_POPUPWIN=no
7333 DEFAULT_wxUSE_TIPWINDOW=no
7334fi
7335
a848cd7e
SC
7336
7337 enablestring=
7338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7339echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7340 no_cache=0
7341 # Check whether --enable-accel or --disable-accel was given.
7342if test "${enable_accel+set}" = set; then
7343 enableval="$enable_accel"
7344
7345 if test "$enableval" = yes; then
7346 ac_cv_use_accel='wxUSE_ACCEL=yes'
7347 else
7348 ac_cv_use_accel='wxUSE_ACCEL=no'
7349 fi
7350
7351else
7352
7353 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7354 if test "x$LINE" != x ; then
7355 eval "DEFAULT_$LINE"
7356 else
7357 no_cache=1
7358 fi
7359
7360 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7361
7362fi;
7363
7364 eval "$ac_cv_use_accel"
7365 if test "$no_cache" != 1; then
7366 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7367 fi
7368
7369 if test "$wxUSE_ACCEL" = yes; then
7370 echo "$as_me:$LINENO: result: yes" >&5
7371echo "${ECHO_T}yes" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6
7375 fi
7376
7377
7378 enablestring=
7379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7380echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7381 no_cache=0
7382 # Check whether --enable-button or --disable-button was given.
7383if test "${enable_button+set}" = set; then
7384 enableval="$enable_button"
7385
7386 if test "$enableval" = yes; then
7387 ac_cv_use_button='wxUSE_BUTTON=yes'
7388 else
7389 ac_cv_use_button='wxUSE_BUTTON=no'
7390 fi
7391
7392else
7393
7394 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7395 if test "x$LINE" != x ; then
7396 eval "DEFAULT_$LINE"
7397 else
7398 no_cache=1
7399 fi
7400
7401 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7402
7403fi;
7404
7405 eval "$ac_cv_use_button"
7406 if test "$no_cache" != 1; then
7407 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7408 fi
7409
7410 if test "$wxUSE_BUTTON" = yes; then
7411 echo "$as_me:$LINENO: result: yes" >&5
7412echo "${ECHO_T}yes" >&6
7413 else
7414 echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6
7416 fi
7417
7418
7419 enablestring=
7420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7421echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7422 no_cache=0
7423 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7424if test "${enable_bmpbutton+set}" = set; then
7425 enableval="$enable_bmpbutton"
7426
7427 if test "$enableval" = yes; then
7428 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7429 else
7430 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7431 fi
7432
7433else
7434
7435 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7436 if test "x$LINE" != x ; then
7437 eval "DEFAULT_$LINE"
7438 else
7439 no_cache=1
7440 fi
7441
7442 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7443
7444fi;
7445
7446 eval "$ac_cv_use_bmpbutton"
7447 if test "$no_cache" != 1; then
7448 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7449 fi
7450
7451 if test "$wxUSE_BMPBUTTON" = yes; then
7452 echo "$as_me:$LINENO: result: yes" >&5
7453echo "${ECHO_T}yes" >&6
7454 else
7455 echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6
7457 fi
7458
7459
7460 enablestring=
7461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7462echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7463 no_cache=0
7464 # Check whether --enable-calendar or --disable-calendar was given.
7465if test "${enable_calendar+set}" = set; then
7466 enableval="$enable_calendar"
7467
7468 if test "$enableval" = yes; then
7469 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7470 else
7471 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7472 fi
7473
7474else
7475
7476 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7477 if test "x$LINE" != x ; then
7478 eval "DEFAULT_$LINE"
7479 else
7480 no_cache=1
7481 fi
7482
7483 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7484
7485fi;
7486
7487 eval "$ac_cv_use_calendar"
7488 if test "$no_cache" != 1; then
7489 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7490 fi
7491
7492 if test "$wxUSE_CALCTRL" = yes; then
7493 echo "$as_me:$LINENO: result: yes" >&5
7494echo "${ECHO_T}yes" >&6
7495 else
7496 echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6
7498 fi
7499
7500
7501 enablestring=
7502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7503echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7504 no_cache=0
7505 # Check whether --enable-caret or --disable-caret was given.
7506if test "${enable_caret+set}" = set; then
7507 enableval="$enable_caret"
7508
7509 if test "$enableval" = yes; then
7510 ac_cv_use_caret='wxUSE_CARET=yes'
7511 else
7512 ac_cv_use_caret='wxUSE_CARET=no'
7513 fi
7514
7515else
7516
7517 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7518 if test "x$LINE" != x ; then
7519 eval "DEFAULT_$LINE"
7520 else
7521 no_cache=1
7522 fi
7523
7524 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7525
7526fi;
7527
7528 eval "$ac_cv_use_caret"
7529 if test "$no_cache" != 1; then
7530 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7531 fi
7532
7533 if test "$wxUSE_CARET" = yes; then
7534 echo "$as_me:$LINENO: result: yes" >&5
7535echo "${ECHO_T}yes" >&6
7536 else
7537 echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6
7539 fi
7540
7541
7542 enablestring=
7543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7544echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7545 no_cache=0
7546 # Check whether --enable-checkbox or --disable-checkbox was given.
7547if test "${enable_checkbox+set}" = set; then
7548 enableval="$enable_checkbox"
7549
7550 if test "$enableval" = yes; then
7551 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7552 else
7553 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7554 fi
7555
7556else
7557
7558 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7559 if test "x$LINE" != x ; then
7560 eval "DEFAULT_$LINE"
7561 else
7562 no_cache=1
7563 fi
7564
7565 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7566
7567fi;
7568
7569 eval "$ac_cv_use_checkbox"
7570 if test "$no_cache" != 1; then
7571 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7572 fi
7573
7574 if test "$wxUSE_CHECKBOX" = yes; then
7575 echo "$as_me:$LINENO: result: yes" >&5
7576echo "${ECHO_T}yes" >&6
7577 else
7578 echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6
7580 fi
7581
7582
7583 enablestring=
7584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7585echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7586 no_cache=0
7587 # Check whether --enable-checklst or --disable-checklst was given.
7588if test "${enable_checklst+set}" = set; then
7589 enableval="$enable_checklst"
7590
7591 if test "$enableval" = yes; then
7592 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7593 else
7594 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7595 fi
7596
7597else
7598
7599 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7600 if test "x$LINE" != x ; then
7601 eval "DEFAULT_$LINE"
7602 else
7603 no_cache=1
7604 fi
7605
7606 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7607
7608fi;
7609
7610 eval "$ac_cv_use_checklst"
7611 if test "$no_cache" != 1; then
7612 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7613 fi
7614
7615 if test "$wxUSE_CHECKLST" = yes; then
7616 echo "$as_me:$LINENO: result: yes" >&5
7617echo "${ECHO_T}yes" >&6
7618 else
7619 echo "$as_me:$LINENO: result: no" >&5
7620echo "${ECHO_T}no" >&6
7621 fi
7622
7623
7624 enablestring=
7625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7626echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7627 no_cache=0
7628 # Check whether --enable-choice or --disable-choice was given.
7629if test "${enable_choice+set}" = set; then
7630 enableval="$enable_choice"
7631
7632 if test "$enableval" = yes; then
7633 ac_cv_use_choice='wxUSE_CHOICE=yes'
7634 else
7635 ac_cv_use_choice='wxUSE_CHOICE=no'
7636 fi
7637
7638else
7639
7640 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7641 if test "x$LINE" != x ; then
7642 eval "DEFAULT_$LINE"
7643 else
7644 no_cache=1
7645 fi
7646
7647 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7648
7649fi;
7650
7651 eval "$ac_cv_use_choice"
7652 if test "$no_cache" != 1; then
7653 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7654 fi
7655
7656 if test "$wxUSE_CHOICE" = yes; then
7657 echo "$as_me:$LINENO: result: yes" >&5
7658echo "${ECHO_T}yes" >&6
7659 else
7660 echo "$as_me:$LINENO: result: no" >&5
7661echo "${ECHO_T}no" >&6
7662 fi
7663
7664
92bbdbcd
WS
7665 enablestring=
7666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7667echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7668 no_cache=0
7669 # Check whether --enable-choicebook or --disable-choicebook was given.
7670if test "${enable_choicebook+set}" = set; then
7671 enableval="$enable_choicebook"
7672
7673 if test "$enableval" = yes; then
7674 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7675 else
7676 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7677 fi
7678
7679else
7680
7681 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7689
7690fi;
7691
7692 eval "$ac_cv_use_choicebook"
7693 if test "$no_cache" != 1; then
7694 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7695 fi
7696
7697 if test "$wxUSE_CHOICEBOOK" = yes; then
7698 echo "$as_me:$LINENO: result: yes" >&5
7699echo "${ECHO_T}yes" >&6
7700 else
7701 echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6
7703 fi
7704
7705
a848cd7e
SC
7706 enablestring=
7707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7708echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7709 no_cache=0
7710 # Check whether --enable-combobox or --disable-combobox was given.
7711if test "${enable_combobox+set}" = set; then
7712 enableval="$enable_combobox"
7713
7714 if test "$enableval" = yes; then
7715 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7716 else
7717 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7718 fi
7719
7720else
7721
7722 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7723 if test "x$LINE" != x ; then
7724 eval "DEFAULT_$LINE"
7725 else
7726 no_cache=1
7727 fi
7728
7729 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7730
7731fi;
7732
7733 eval "$ac_cv_use_combobox"
7734 if test "$no_cache" != 1; then
7735 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7736 fi
7737
7738 if test "$wxUSE_COMBOBOX" = yes; then
7739 echo "$as_me:$LINENO: result: yes" >&5
7740echo "${ECHO_T}yes" >&6
7741 else
7742 echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
7744 fi
7745
7746
da98e9be
VZ
7747 enablestring=
7748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7749echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7750 no_cache=0
7751 # Check whether --enable-datepick or --disable-datepick was given.
7752if test "${enable_datepick+set}" = set; then
7753 enableval="$enable_datepick"
7754
7755 if test "$enableval" = yes; then
7756 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7757 else
7758 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7759 fi
7760
7761else
7762
7763 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7771
7772fi;
7773
7774 eval "$ac_cv_use_datepick"
7775 if test "$no_cache" != 1; then
7776 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7777 fi
7778
7779 if test "$wxUSE_DATEPICKCTRL" = yes; then
7780 echo "$as_me:$LINENO: result: yes" >&5
7781echo "${ECHO_T}yes" >&6
7782 else
7783 echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
7785 fi
7786
7787
a848cd7e
SC
7788 enablestring=
7789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7790echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7791 no_cache=0
7792 # Check whether --enable-display or --disable-display was given.
7793if test "${enable_display+set}" = set; then
7794 enableval="$enable_display"
7795
7796 if test "$enableval" = yes; then
7797 ac_cv_use_display='wxUSE_DISPLAY=yes'
7798 else
7799 ac_cv_use_display='wxUSE_DISPLAY=no'
7800 fi
7801
7802else
7803
7804 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7805 if test "x$LINE" != x ; then
7806 eval "DEFAULT_$LINE"
7807 else
7808 no_cache=1
7809 fi
7810
7811 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7812
7813fi;
7814
7815 eval "$ac_cv_use_display"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_DISPLAY" = yes; then
7821 echo "$as_me:$LINENO: result: yes" >&5
7822echo "${ECHO_T}yes" >&6
7823 else
7824 echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
7826 fi
7827
7828
7829 enablestring=
7830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7831echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7832 no_cache=0
7833 # Check whether --enable-gauge or --disable-gauge was given.
7834if test "${enable_gauge+set}" = set; then
7835 enableval="$enable_gauge"
7836
7837 if test "$enableval" = yes; then
7838 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7839 else
7840 ac_cv_use_gauge='wxUSE_GAUGE=no'
7841 fi
7842
7843else
7844
7845 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7846 if test "x$LINE" != x ; then
7847 eval "DEFAULT_$LINE"
7848 else
7849 no_cache=1
7850 fi
7851
7852 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7853
7854fi;
7855
7856 eval "$ac_cv_use_gauge"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_GAUGE" = yes; then
7862 echo "$as_me:$LINENO: result: yes" >&5
7863echo "${ECHO_T}yes" >&6
7864 else
7865 echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6
7867 fi
7868
7869
7870 enablestring=
7871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7872echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7873 no_cache=0
7874 # Check whether --enable-grid or --disable-grid was given.
7875if test "${enable_grid+set}" = set; then
7876 enableval="$enable_grid"
7877
7878 if test "$enableval" = yes; then
7879 ac_cv_use_grid='wxUSE_GRID=yes'
7880 else
7881 ac_cv_use_grid='wxUSE_GRID=no'
7882 fi
7883
7884else
7885
7886 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7887 if test "x$LINE" != x ; then
7888 eval "DEFAULT_$LINE"
7889 else
7890 no_cache=1
7891 fi
7892
7893 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7894
7895fi;
7896
7897 eval "$ac_cv_use_grid"
7898 if test "$no_cache" != 1; then
7899 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7900 fi
7901
7902 if test "$wxUSE_GRID" = yes; then
7903 echo "$as_me:$LINENO: result: yes" >&5
7904echo "${ECHO_T}yes" >&6
7905 else
7906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
7908 fi
7909
7910
7911 enablestring=
7912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7913echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7914 no_cache=0
7915 # Check whether --enable-imaglist or --disable-imaglist was given.
7916if test "${enable_imaglist+set}" = set; then
7917 enableval="$enable_imaglist"
7918
7919 if test "$enableval" = yes; then
7920 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7921 else
7922 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7923 fi
7924
7925else
7926
7927 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7928 if test "x$LINE" != x ; then
7929 eval "DEFAULT_$LINE"
7930 else
7931 no_cache=1
7932 fi
7933
7934 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7935
7936fi;
7937
7938 eval "$ac_cv_use_imaglist"
7939 if test "$no_cache" != 1; then
7940 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7941 fi
7942
7943 if test "$wxUSE_IMAGLIST" = yes; then
7944 echo "$as_me:$LINENO: result: yes" >&5
7945echo "${ECHO_T}yes" >&6
7946 else
7947 echo "$as_me:$LINENO: result: no" >&5
7948echo "${ECHO_T}no" >&6
7949 fi
7950
7951
7952 enablestring=
7953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7954echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7955 no_cache=0
7956 # Check whether --enable-listbook or --disable-listbook was given.
7957if test "${enable_listbook+set}" = set; then
7958 enableval="$enable_listbook"
7959
7960 if test "$enableval" = yes; then
7961 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7962 else
7963 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7964 fi
7965
7966else
7967
7968 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7969 if test "x$LINE" != x ; then
7970 eval "DEFAULT_$LINE"
7971 else
7972 no_cache=1
7973 fi
7974
7975 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7976
7977fi;
7978
7979 eval "$ac_cv_use_listbook"
7980 if test "$no_cache" != 1; then
7981 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7982 fi
7983
7984 if test "$wxUSE_LISTBOOK" = yes; then
7985 echo "$as_me:$LINENO: result: yes" >&5
7986echo "${ECHO_T}yes" >&6
7987 else
7988 echo "$as_me:$LINENO: result: no" >&5
7989echo "${ECHO_T}no" >&6
7990 fi
7991
7992
7993 enablestring=
7994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7995echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7996 no_cache=0
7997 # Check whether --enable-listbox or --disable-listbox was given.
7998if test "${enable_listbox+set}" = set; then
7999 enableval="$enable_listbox"
8000
8001 if test "$enableval" = yes; then
8002 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8003 else
8004 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8005 fi
8006
8007else
8008
8009 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8010 if test "x$LINE" != x ; then
8011 eval "DEFAULT_$LINE"
8012 else
8013 no_cache=1
8014 fi
8015
8016 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8017
8018fi;
8019
8020 eval "$ac_cv_use_listbox"
8021 if test "$no_cache" != 1; then
8022 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8023 fi
8024
8025 if test "$wxUSE_LISTBOX" = yes; then
8026 echo "$as_me:$LINENO: result: yes" >&5
8027echo "${ECHO_T}yes" >&6
8028 else
8029 echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6
8031 fi
8032
8033
8034 enablestring=
8035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8036echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8037 no_cache=0
8038 # Check whether --enable-listctrl or --disable-listctrl was given.
8039if test "${enable_listctrl+set}" = set; then
8040 enableval="$enable_listctrl"
8041
8042 if test "$enableval" = yes; then
8043 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8044 else
8045 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8046 fi
8047
8048else
8049
8050 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8051 if test "x$LINE" != x ; then
8052 eval "DEFAULT_$LINE"
8053 else
8054 no_cache=1
8055 fi
8056
8057 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8058
8059fi;
8060
8061 eval "$ac_cv_use_listctrl"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_LISTCTRL" = yes; then
8067 echo "$as_me:$LINENO: result: yes" >&5
8068echo "${ECHO_T}yes" >&6
8069 else
8070 echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
8072 fi
8073
8074
8075 enablestring=
8076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8077echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8078 no_cache=0
8079 # Check whether --enable-notebook or --disable-notebook was given.
8080if test "${enable_notebook+set}" = set; then
8081 enableval="$enable_notebook"
8082
8083 if test "$enableval" = yes; then
8084 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8085 else
8086 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8087 fi
8088
8089else
8090
8091 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8092 if test "x$LINE" != x ; then
8093 eval "DEFAULT_$LINE"
8094 else
8095 no_cache=1
8096 fi
8097
8098 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8099
8100fi;
8101
8102 eval "$ac_cv_use_notebook"
8103 if test "$no_cache" != 1; then
8104 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8105 fi
8106
8107 if test "$wxUSE_NOTEBOOK" = yes; then
8108 echo "$as_me:$LINENO: result: yes" >&5
8109echo "${ECHO_T}yes" >&6
8110 else
8111 echo "$as_me:$LINENO: result: no" >&5
8112echo "${ECHO_T}no" >&6
8113 fi
8114
8115
8116 enablestring=
8117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8118echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8119 no_cache=0
8120 # Check whether --enable-radiobox or --disable-radiobox was given.
8121if test "${enable_radiobox+set}" = set; then
8122 enableval="$enable_radiobox"
8123
8124 if test "$enableval" = yes; then
8125 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8126 else
8127 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8128 fi
8129
8130else
8131
8132 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8133 if test "x$LINE" != x ; then
8134 eval "DEFAULT_$LINE"
8135 else
8136 no_cache=1
8137 fi
8138
8139 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8140
8141fi;
8142
8143 eval "$ac_cv_use_radiobox"
8144 if test "$no_cache" != 1; then
8145 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8146 fi
8147
8148 if test "$wxUSE_RADIOBOX" = yes; then
8149 echo "$as_me:$LINENO: result: yes" >&5
8150echo "${ECHO_T}yes" >&6
8151 else
8152 echo "$as_me:$LINENO: result: no" >&5
8153echo "${ECHO_T}no" >&6
8154 fi
8155
8156
8157 enablestring=
8158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8159echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8160 no_cache=0
8161 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8162if test "${enable_radiobtn+set}" = set; then
8163 enableval="$enable_radiobtn"
8164
8165 if test "$enableval" = yes; then
8166 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8167 else
8168 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8169 fi
8170
8171else
8172
8173 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8174 if test "x$LINE" != x ; then
8175 eval "DEFAULT_$LINE"
8176 else
8177 no_cache=1
8178 fi
8179
8180 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8181
8182fi;
8183
8184 eval "$ac_cv_use_radiobtn"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_RADIOBTN" = yes; then
8190 echo "$as_me:$LINENO: result: yes" >&5
8191echo "${ECHO_T}yes" >&6
8192 else
8193 echo "$as_me:$LINENO: result: no" >&5
8194echo "${ECHO_T}no" >&6
8195 fi
8196
8197
8198 enablestring=
8199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8200echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8201 no_cache=0
8202 # Check whether --enable-sash or --disable-sash was given.
8203if test "${enable_sash+set}" = set; then
8204 enableval="$enable_sash"
8205
8206 if test "$enableval" = yes; then
8207 ac_cv_use_sash='wxUSE_SASH=yes'
8208 else
8209 ac_cv_use_sash='wxUSE_SASH=no'
8210 fi
8211
8212else
8213
8214 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8215 if test "x$LINE" != x ; then
8216 eval "DEFAULT_$LINE"
8217 else
8218 no_cache=1
8219 fi
8220
8221 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8222
8223fi;
8224
8225 eval "$ac_cv_use_sash"
8226 if test "$no_cache" != 1; then
8227 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8228 fi
8229
8230 if test "$wxUSE_SASH" = yes; then
8231 echo "$as_me:$LINENO: result: yes" >&5
8232echo "${ECHO_T}yes" >&6
8233 else
8234 echo "$as_me:$LINENO: result: no" >&5
8235echo "${ECHO_T}no" >&6
8236 fi
8237
8238
8239 enablestring=
8240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8241echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8242 no_cache=0
8243 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8244if test "${enable_scrollbar+set}" = set; then
8245 enableval="$enable_scrollbar"
8246
8247 if test "$enableval" = yes; then
8248 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8249 else
8250 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8251 fi
8252
8253else
8254
8255 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8256 if test "x$LINE" != x ; then
8257 eval "DEFAULT_$LINE"
8258 else
8259 no_cache=1
8260 fi
8261
8262 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8263
8264fi;
8265
8266 eval "$ac_cv_use_scrollbar"
8267 if test "$no_cache" != 1; then
8268 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8269 fi
8270
8271 if test "$wxUSE_SCROLLBAR" = yes; then
8272 echo "$as_me:$LINENO: result: yes" >&5
8273echo "${ECHO_T}yes" >&6
8274 else
8275 echo "$as_me:$LINENO: result: no" >&5
8276echo "${ECHO_T}no" >&6
8277 fi
8278
8279
8280 enablestring=
8281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8282echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8283 no_cache=0
8284 # Check whether --enable-slider or --disable-slider was given.
8285if test "${enable_slider+set}" = set; then
8286 enableval="$enable_slider"
8287
8288 if test "$enableval" = yes; then
8289 ac_cv_use_slider='wxUSE_SLIDER=yes'
8290 else
8291 ac_cv_use_slider='wxUSE_SLIDER=no'
8292 fi
8293
8294else
8295
8296 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8297 if test "x$LINE" != x ; then
8298 eval "DEFAULT_$LINE"
8299 else
8300 no_cache=1
8301 fi
8302
8303 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8304
8305fi;
8306
8307 eval "$ac_cv_use_slider"
8308 if test "$no_cache" != 1; then
8309 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8310 fi
8311
8312 if test "$wxUSE_SLIDER" = yes; then
8313 echo "$as_me:$LINENO: result: yes" >&5
8314echo "${ECHO_T}yes" >&6
8315 else
8316 echo "$as_me:$LINENO: result: no" >&5
8317echo "${ECHO_T}no" >&6
8318 fi
8319
8320
8321 enablestring=
8322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8323echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8324 no_cache=0
8325 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8326if test "${enable_spinbtn+set}" = set; then
8327 enableval="$enable_spinbtn"
8328
8329 if test "$enableval" = yes; then
8330 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8331 else
8332 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8333 fi
8334
8335else
8336
8337 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8338 if test "x$LINE" != x ; then
8339 eval "DEFAULT_$LINE"
8340 else
8341 no_cache=1
8342 fi
8343
8344 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8345
8346fi;
8347
8348 eval "$ac_cv_use_spinbtn"
8349 if test "$no_cache" != 1; then
8350 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8351 fi
8352
8353 if test "$wxUSE_SPINBTN" = yes; then
8354 echo "$as_me:$LINENO: result: yes" >&5
8355echo "${ECHO_T}yes" >&6
8356 else
8357 echo "$as_me:$LINENO: result: no" >&5
8358echo "${ECHO_T}no" >&6
8359 fi
8360
8361
8362 enablestring=
8363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8364echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8365 no_cache=0
8366 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8367if test "${enable_spinctrl+set}" = set; then
8368 enableval="$enable_spinctrl"
8369
8370 if test "$enableval" = yes; then
8371 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8372 else
8373 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8374 fi
8375
8376else
8377
8378 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8379 if test "x$LINE" != x ; then
8380 eval "DEFAULT_$LINE"
8381 else
8382 no_cache=1
8383 fi
8384
8385 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8386
8387fi;
8388
8389 eval "$ac_cv_use_spinctrl"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_SPINCTRL" = yes; then
8395 echo "$as_me:$LINENO: result: yes" >&5
8396echo "${ECHO_T}yes" >&6
8397 else
8398 echo "$as_me:$LINENO: result: no" >&5
8399echo "${ECHO_T}no" >&6
8400 fi
8401
8402
8403 enablestring=
8404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8405echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8406 no_cache=0
8407 # Check whether --enable-splitter or --disable-splitter was given.
8408if test "${enable_splitter+set}" = set; then
8409 enableval="$enable_splitter"
8410
8411 if test "$enableval" = yes; then
8412 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8413 else
8414 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8415 fi
8416
8417else
8418
8419 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8420 if test "x$LINE" != x ; then
8421 eval "DEFAULT_$LINE"
8422 else
8423 no_cache=1
8424 fi
8425
8426 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8427
8428fi;
8429
8430 eval "$ac_cv_use_splitter"
8431 if test "$no_cache" != 1; then
8432 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8433 fi
8434
8435 if test "$wxUSE_SPLITTER" = yes; then
8436 echo "$as_me:$LINENO: result: yes" >&5
8437echo "${ECHO_T}yes" >&6
8438 else
8439 echo "$as_me:$LINENO: result: no" >&5
8440echo "${ECHO_T}no" >&6
8441 fi
8442
8443
8444 enablestring=
8445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8446echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8447 no_cache=0
8448 # Check whether --enable-statbmp or --disable-statbmp was given.
8449if test "${enable_statbmp+set}" = set; then
8450 enableval="$enable_statbmp"
8451
8452 if test "$enableval" = yes; then
8453 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8454 else
8455 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8456 fi
8457
8458else
8459
8460 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8461 if test "x$LINE" != x ; then
8462 eval "DEFAULT_$LINE"
8463 else
8464 no_cache=1
8465 fi
8466
8467 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8468
8469fi;
8470
8471 eval "$ac_cv_use_statbmp"
8472 if test "$no_cache" != 1; then
8473 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8474 fi
8475
8476 if test "$wxUSE_STATBMP" = yes; then
8477 echo "$as_me:$LINENO: result: yes" >&5
8478echo "${ECHO_T}yes" >&6
8479 else
8480 echo "$as_me:$LINENO: result: no" >&5
8481echo "${ECHO_T}no" >&6
8482 fi
8483
8484
8485 enablestring=
8486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8487echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8488 no_cache=0
8489 # Check whether --enable-statbox or --disable-statbox was given.
8490if test "${enable_statbox+set}" = set; then
8491 enableval="$enable_statbox"
8492
8493 if test "$enableval" = yes; then
8494 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8495 else
8496 ac_cv_use_statbox='wxUSE_STATBOX=no'
8497 fi
8498
8499else
8500
8501 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8502 if test "x$LINE" != x ; then
8503 eval "DEFAULT_$LINE"
8504 else
8505 no_cache=1
8506 fi
8507
8508 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8509
8510fi;
8511
8512 eval "$ac_cv_use_statbox"
8513 if test "$no_cache" != 1; then
8514 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8515 fi
8516
8517 if test "$wxUSE_STATBOX" = yes; then
8518 echo "$as_me:$LINENO: result: yes" >&5
8519echo "${ECHO_T}yes" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522echo "${ECHO_T}no" >&6
8523 fi
8524
8525
8526 enablestring=
8527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8528echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8529 no_cache=0
8530 # Check whether --enable-statline or --disable-statline was given.
8531if test "${enable_statline+set}" = set; then
8532 enableval="$enable_statline"
8533
8534 if test "$enableval" = yes; then
8535 ac_cv_use_statline='wxUSE_STATLINE=yes'
8536 else
8537 ac_cv_use_statline='wxUSE_STATLINE=no'
8538 fi
8539
8540else
8541
8542 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8543 if test "x$LINE" != x ; then
8544 eval "DEFAULT_$LINE"
8545 else
8546 no_cache=1
8547 fi
8548
8549 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8550
8551fi;
8552
8553 eval "$ac_cv_use_statline"
8554 if test "$no_cache" != 1; then
8555 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8556 fi
8557
8558 if test "$wxUSE_STATLINE" = yes; then
8559 echo "$as_me:$LINENO: result: yes" >&5
8560echo "${ECHO_T}yes" >&6
8561 else
8562 echo "$as_me:$LINENO: result: no" >&5
8563echo "${ECHO_T}no" >&6
8564 fi
8565
8566
8567 enablestring=
8568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8569echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8570 no_cache=0
8571 # Check whether --enable-stattext or --disable-stattext was given.
8572if test "${enable_stattext+set}" = set; then
8573 enableval="$enable_stattext"
8574
8575 if test "$enableval" = yes; then
8576 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8577 else
8578 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8579 fi
8580
8581else
8582
8583 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8584 if test "x$LINE" != x ; then
8585 eval "DEFAULT_$LINE"
8586 else
8587 no_cache=1
8588 fi
8589
8590 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8591
8592fi;
8593
8594 eval "$ac_cv_use_stattext"
8595 if test "$no_cache" != 1; then
8596 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8597 fi
8598
8599 if test "$wxUSE_STATTEXT" = yes; then
8600 echo "$as_me:$LINENO: result: yes" >&5
8601echo "${ECHO_T}yes" >&6
8602 else
8603 echo "$as_me:$LINENO: result: no" >&5
8604echo "${ECHO_T}no" >&6
8605 fi
8606
8607
8608 enablestring=
8609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8610echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8611 no_cache=0
8612 # Check whether --enable-statusbar or --disable-statusbar was given.
8613if test "${enable_statusbar+set}" = set; then
8614 enableval="$enable_statusbar"
8615
8616 if test "$enableval" = yes; then
8617 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8618 else
8619 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8620 fi
8621
8622else
8623
8624 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8625 if test "x$LINE" != x ; then
8626 eval "DEFAULT_$LINE"
8627 else
8628 no_cache=1
8629 fi
8630
8631 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8632
8633fi;
8634
8635 eval "$ac_cv_use_statusbar"
8636 if test "$no_cache" != 1; then
8637 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8638 fi
8639
8640 if test "$wxUSE_STATUSBAR" = yes; then
8641 echo "$as_me:$LINENO: result: yes" >&5
8642echo "${ECHO_T}yes" >&6
8643 else
8644 echo "$as_me:$LINENO: result: no" >&5
8645echo "${ECHO_T}no" >&6
8646 fi
8647
8648
8649 enablestring=
8650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8651echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8652 no_cache=0
8653 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8654if test "${enable_tabdialog+set}" = set; then
8655 enableval="$enable_tabdialog"
8656
8657 if test "$enableval" = yes; then
8658 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8659 else
8660 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8661 fi
8662
8663else
8664
8665 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8666 if test "x$LINE" != x ; then
8667 eval "DEFAULT_$LINE"
8668 else
8669 no_cache=1
8670 fi
8671
8672 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8673
8674fi;
8675
8676 eval "$ac_cv_use_tabdialog"
8677 if test "$no_cache" != 1; then
8678 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8679 fi
8680
8681 if test "$wxUSE_TABDIALOG" = yes; then
8682 echo "$as_me:$LINENO: result: yes" >&5
8683echo "${ECHO_T}yes" >&6
8684 else
8685 echo "$as_me:$LINENO: result: no" >&5
8686echo "${ECHO_T}no" >&6
8687 fi
8688
8689
8690 enablestring=
8691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8692echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8693 no_cache=0
8694 # Check whether --enable-textctrl or --disable-textctrl was given.
8695if test "${enable_textctrl+set}" = set; then
8696 enableval="$enable_textctrl"
8697
8698 if test "$enableval" = yes; then
8699 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8700 else
8701 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8702 fi
8703
8704else
8705
8706 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8707 if test "x$LINE" != x ; then
8708 eval "DEFAULT_$LINE"
8709 else
8710 no_cache=1
8711 fi
8712
8713 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8714
8715fi;
8716
8717 eval "$ac_cv_use_textctrl"
8718 if test "$no_cache" != 1; then
8719 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8720 fi
8721
8722 if test "$wxUSE_TEXTCTRL" = yes; then
8723 echo "$as_me:$LINENO: result: yes" >&5
8724echo "${ECHO_T}yes" >&6
8725 else
8726 echo "$as_me:$LINENO: result: no" >&5
8727echo "${ECHO_T}no" >&6
8728 fi
8729
8730
8731 enablestring=
8732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8733echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8734 no_cache=0
8735 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8736if test "${enable_togglebtn+set}" = set; then
8737 enableval="$enable_togglebtn"
8738
8739 if test "$enableval" = yes; then
8740 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8741 else
8742 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8743 fi
8744
8745else
8746
8747 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8748 if test "x$LINE" != x ; then
8749 eval "DEFAULT_$LINE"
8750 else
8751 no_cache=1
8752 fi
8753
8754 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8755
8756fi;
8757
8758 eval "$ac_cv_use_togglebtn"
8759 if test "$no_cache" != 1; then
8760 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8761 fi
8762
8763 if test "$wxUSE_TOGGLEBTN" = yes; then
8764 echo "$as_me:$LINENO: result: yes" >&5
8765echo "${ECHO_T}yes" >&6
8766 else
8767 echo "$as_me:$LINENO: result: no" >&5
8768echo "${ECHO_T}no" >&6
8769 fi
8770
8771
8772 enablestring=
8773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8774echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8775 no_cache=0
8776 # Check whether --enable-toolbar or --disable-toolbar was given.
8777if test "${enable_toolbar+set}" = set; then
8778 enableval="$enable_toolbar"
8779
8780 if test "$enableval" = yes; then
8781 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8782 else
8783 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8784 fi
8785
8786else
8787
8788 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8789 if test "x$LINE" != x ; then
8790 eval "DEFAULT_$LINE"
8791 else
8792 no_cache=1
8793 fi
8794
8795 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8796
8797fi;
8798
8799 eval "$ac_cv_use_toolbar"
8800 if test "$no_cache" != 1; then
8801 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8802 fi
8803
8804 if test "$wxUSE_TOOLBAR" = yes; then
8805 echo "$as_me:$LINENO: result: yes" >&5
8806echo "${ECHO_T}yes" >&6
8807 else
8808 echo "$as_me:$LINENO: result: no" >&5
8809echo "${ECHO_T}no" >&6
8810 fi
8811
8812
8813 enablestring=
8814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8815echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8816 no_cache=0
8817 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8818if test "${enable_tbarnative+set}" = set; then
8819 enableval="$enable_tbarnative"
8820
8821 if test "$enableval" = yes; then
8822 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8823 else
8824 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8825 fi
8826
8827else
8828
8829 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8830 if test "x$LINE" != x ; then
8831 eval "DEFAULT_$LINE"
8832 else
8833 no_cache=1
8834 fi
8835
8836 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8837
8838fi;
8839
8840 eval "$ac_cv_use_tbarnative"
8841 if test "$no_cache" != 1; then
8842 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8843 fi
8844
8845 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8846 echo "$as_me:$LINENO: result: yes" >&5
8847echo "${ECHO_T}yes" >&6
8848 else
8849 echo "$as_me:$LINENO: result: no" >&5
8850echo "${ECHO_T}no" >&6
8851 fi
8852
8853
8854 enablestring=
8855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8856echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8857 no_cache=0
8858 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8859if test "${enable_tbarsmpl+set}" = set; then
8860 enableval="$enable_tbarsmpl"
8861
8862 if test "$enableval" = yes; then
8863 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8864 else
8865 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8866 fi
8867
8868else
8869
8870 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8871 if test "x$LINE" != x ; then
8872 eval "DEFAULT_$LINE"
8873 else
8874 no_cache=1
8875 fi
8876
8877 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8878
8879fi;
8880
8881 eval "$ac_cv_use_tbarsmpl"
8882 if test "$no_cache" != 1; then
8883 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8884 fi
8885
8886 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8887 echo "$as_me:$LINENO: result: yes" >&5
8888echo "${ECHO_T}yes" >&6
8889 else
8890 echo "$as_me:$LINENO: result: no" >&5
8891echo "${ECHO_T}no" >&6
8892 fi
8893
8894
8895 enablestring=
8896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8897echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8898 no_cache=0
8899 # Check whether --enable-treectrl or --disable-treectrl was given.
8900if test "${enable_treectrl+set}" = set; then
8901 enableval="$enable_treectrl"
8902
8903 if test "$enableval" = yes; then
8904 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8905 else
8906 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8907 fi
8908
8909else
8910
8911 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8912 if test "x$LINE" != x ; then
8913 eval "DEFAULT_$LINE"
8914 else
8915 no_cache=1
8916 fi
8917
8918 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8919
8920fi;
8921
8922 eval "$ac_cv_use_treectrl"
8923 if test "$no_cache" != 1; then
8924 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8925 fi
8926
8927 if test "$wxUSE_TREECTRL" = yes; then
8928 echo "$as_me:$LINENO: result: yes" >&5
8929echo "${ECHO_T}yes" >&6
8930 else
8931 echo "$as_me:$LINENO: result: no" >&5
8932echo "${ECHO_T}no" >&6
8933 fi
8934
8935
8936 enablestring=
8937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8938echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8939 no_cache=0
8940 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8941if test "${enable_tipwindow+set}" = set; then
8942 enableval="$enable_tipwindow"
8943
8944 if test "$enableval" = yes; then
8945 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8946 else
8947 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8948 fi
8949
8950else
8951
8952 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8953 if test "x$LINE" != x ; then
8954 eval "DEFAULT_$LINE"
8955 else
8956 no_cache=1
8957 fi
8958
8959 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8960
8961fi;
8962
8963 eval "$ac_cv_use_tipwindow"
8964 if test "$no_cache" != 1; then
8965 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8966 fi
8967
8968 if test "$wxUSE_TIPWINDOW" = yes; then
8969 echo "$as_me:$LINENO: result: yes" >&5
8970echo "${ECHO_T}yes" >&6
8971 else
8972 echo "$as_me:$LINENO: result: no" >&5
8973echo "${ECHO_T}no" >&6
8974 fi
8975
8976
8977 enablestring=
8978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8979echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8980 no_cache=0
8981 # Check whether --enable-popupwin or --disable-popupwin was given.
8982if test "${enable_popupwin+set}" = set; then
8983 enableval="$enable_popupwin"
8984
8985 if test "$enableval" = yes; then
8986 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8987 else
8988 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8989 fi
8990
8991else
8992
8993 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8994 if test "x$LINE" != x ; then
8995 eval "DEFAULT_$LINE"
8996 else
8997 no_cache=1
8998 fi
8999
9000 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9001
9002fi;
9003
9004 eval "$ac_cv_use_popupwin"
9005 if test "$no_cache" != 1; then
9006 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9007 fi
9008
9009 if test "$wxUSE_POPUPWIN" = yes; then
9010 echo "$as_me:$LINENO: result: yes" >&5
9011echo "${ECHO_T}yes" >&6
9012 else
9013 echo "$as_me:$LINENO: result: no" >&5
9014echo "${ECHO_T}no" >&6
9015 fi
9016
9017
9018
9019
9020 enablestring=
9021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9022echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9023 no_cache=0
9024 # Check whether --enable-commondlg or --disable-commondlg was given.
9025if test "${enable_commondlg+set}" = set; then
9026 enableval="$enable_commondlg"
9027
9028 if test "$enableval" = yes; then
9029 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9030 else
9031 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9032 fi
9033
9034else
9035
9036 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9037 if test "x$LINE" != x ; then
9038 eval "DEFAULT_$LINE"
9039 else
9040 no_cache=1
9041 fi
9042
9043 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9044
9045fi;
9046
9047 eval "$ac_cv_use_commondlg"
9048 if test "$no_cache" != 1; then
9049 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9050 fi
9051
9052 if test "$wxUSE_COMMONDLGS" = yes; then
9053 echo "$as_me:$LINENO: result: yes" >&5
9054echo "${ECHO_T}yes" >&6
9055 else
9056 echo "$as_me:$LINENO: result: no" >&5
9057echo "${ECHO_T}no" >&6
9058 fi
9059
9060
9061 enablestring=
9062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9063echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9064 no_cache=0
9065 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9066if test "${enable_choicedlg+set}" = set; then
9067 enableval="$enable_choicedlg"
9068
9069 if test "$enableval" = yes; then
9070 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9071 else
9072 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9073 fi
9074
9075else
9076
9077 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9078 if test "x$LINE" != x ; then
9079 eval "DEFAULT_$LINE"
9080 else
9081 no_cache=1
9082 fi
9083
9084 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9085
9086fi;
9087
9088 eval "$ac_cv_use_choicedlg"
9089 if test "$no_cache" != 1; then
9090 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9091 fi
9092
9093 if test "$wxUSE_CHOICEDLG" = yes; then
9094 echo "$as_me:$LINENO: result: yes" >&5
9095echo "${ECHO_T}yes" >&6
9096 else
9097 echo "$as_me:$LINENO: result: no" >&5
9098echo "${ECHO_T}no" >&6
9099 fi
9100
9101
9102 enablestring=
9103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9104echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9105 no_cache=0
9106 # Check whether --enable-coldlg or --disable-coldlg was given.
9107if test "${enable_coldlg+set}" = set; then
9108 enableval="$enable_coldlg"
9109
9110 if test "$enableval" = yes; then
9111 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9112 else
9113 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9114 fi
9115
9116else
9117
9118 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9119 if test "x$LINE" != x ; then
9120 eval "DEFAULT_$LINE"
9121 else
9122 no_cache=1
9123 fi
9124
9125 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9126
9127fi;
9128
9129 eval "$ac_cv_use_coldlg"
9130 if test "$no_cache" != 1; then
9131 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9132 fi
9133
9134 if test "$wxUSE_COLOURDLG" = yes; then
9135 echo "$as_me:$LINENO: result: yes" >&5
9136echo "${ECHO_T}yes" >&6
9137 else
9138 echo "$as_me:$LINENO: result: no" >&5
9139echo "${ECHO_T}no" >&6
9140 fi
9141
9142
9143 enablestring=
9144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9145echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9146 no_cache=0
9147 # Check whether --enable-filedlg or --disable-filedlg was given.
9148if test "${enable_filedlg+set}" = set; then
9149 enableval="$enable_filedlg"
9150
9151 if test "$enableval" = yes; then
9152 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9153 else
9154 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9155 fi
9156
9157else
9158
9159 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9160 if test "x$LINE" != x ; then
9161 eval "DEFAULT_$LINE"
9162 else
9163 no_cache=1
9164 fi
9165
9166 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9167
9168fi;
9169
9170 eval "$ac_cv_use_filedlg"
9171 if test "$no_cache" != 1; then
9172 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9173 fi
9174
9175 if test "$wxUSE_FILEDLG" = yes; then
9176 echo "$as_me:$LINENO: result: yes" >&5
9177echo "${ECHO_T}yes" >&6
9178 else
9179 echo "$as_me:$LINENO: result: no" >&5
9180echo "${ECHO_T}no" >&6
9181 fi
9182
9183
9184 enablestring=
9185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9186echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9187 no_cache=0
9188 # Check whether --enable-finddlg or --disable-finddlg was given.
9189if test "${enable_finddlg+set}" = set; then
9190 enableval="$enable_finddlg"
9191
9192 if test "$enableval" = yes; then
9193 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9194 else
9195 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9196 fi
9197
9198else
9199
9200 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9201 if test "x$LINE" != x ; then
9202 eval "DEFAULT_$LINE"
9203 else
9204 no_cache=1
9205 fi
9206
9207 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9208
9209fi;
9210
9211 eval "$ac_cv_use_finddlg"
9212 if test "$no_cache" != 1; then
9213 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9214 fi
9215
9216 if test "$wxUSE_FINDREPLDLG" = yes; then
9217 echo "$as_me:$LINENO: result: yes" >&5
9218echo "${ECHO_T}yes" >&6
9219 else
9220 echo "$as_me:$LINENO: result: no" >&5
9221echo "${ECHO_T}no" >&6
9222 fi
9223
9224
9225 enablestring=
9226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9227echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9228 no_cache=0
9229 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9230if test "${enable_fontdlg+set}" = set; then
9231 enableval="$enable_fontdlg"
9232
9233 if test "$enableval" = yes; then
9234 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9235 else
9236 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9237 fi
9238
9239else
9240
9241 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9242 if test "x$LINE" != x ; then
9243 eval "DEFAULT_$LINE"
9244 else
9245 no_cache=1
9246 fi
9247
9248 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9249
9250fi;
9251
9252 eval "$ac_cv_use_fontdlg"
9253 if test "$no_cache" != 1; then
9254 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9255 fi
9256
9257 if test "$wxUSE_FONTDLG" = yes; then
9258 echo "$as_me:$LINENO: result: yes" >&5
9259echo "${ECHO_T}yes" >&6
9260 else
9261 echo "$as_me:$LINENO: result: no" >&5
9262echo "${ECHO_T}no" >&6
9263 fi
9264
9265
9266 enablestring=
9267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9268echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9269 no_cache=0
9270 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9271if test "${enable_dirdlg+set}" = set; then
9272 enableval="$enable_dirdlg"
9273
9274 if test "$enableval" = yes; then
9275 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9276 else
9277 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9278 fi
9279
9280else
9281
9282 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9283 if test "x$LINE" != x ; then
9284 eval "DEFAULT_$LINE"
9285 else
9286 no_cache=1
9287 fi
9288
9289 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9290
9291fi;
9292
9293 eval "$ac_cv_use_dirdlg"
9294 if test "$no_cache" != 1; then
9295 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9296 fi
9297
9298 if test "$wxUSE_DIRDLG" = yes; then
9299 echo "$as_me:$LINENO: result: yes" >&5
9300echo "${ECHO_T}yes" >&6
9301 else
9302 echo "$as_me:$LINENO: result: no" >&5
9303echo "${ECHO_T}no" >&6
9304 fi
9305
9306
9307 enablestring=
9308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9309echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9310 no_cache=0
9311 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9312if test "${enable_msgdlg+set}" = set; then
9313 enableval="$enable_msgdlg"
9314
9315 if test "$enableval" = yes; then
9316 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9317 else
9318 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9319 fi
9320
9321else
9322
9323 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9324 if test "x$LINE" != x ; then
9325 eval "DEFAULT_$LINE"
9326 else
9327 no_cache=1
9328 fi
9329
9330 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9331
9332fi;
9333
9334 eval "$ac_cv_use_msgdlg"
9335 if test "$no_cache" != 1; then
9336 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9337 fi
9338
9339 if test "$wxUSE_MSGDLG" = yes; then
9340 echo "$as_me:$LINENO: result: yes" >&5
9341echo "${ECHO_T}yes" >&6
9342 else
9343 echo "$as_me:$LINENO: result: no" >&5
9344echo "${ECHO_T}no" >&6
9345 fi
9346
9347
9348 enablestring=
9349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9350echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9351 no_cache=0
9352 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9353if test "${enable_numberdlg+set}" = set; then
9354 enableval="$enable_numberdlg"
9355
9356 if test "$enableval" = yes; then
9357 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9358 else
9359 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9360 fi
9361
9362else
9363
9364 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9365 if test "x$LINE" != x ; then
9366 eval "DEFAULT_$LINE"
9367 else
9368 no_cache=1
9369 fi
9370
9371 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9372
9373fi;
9374
9375 eval "$ac_cv_use_numberdlg"
9376 if test "$no_cache" != 1; then
9377 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9378 fi
9379
9380 if test "$wxUSE_NUMBERDLG" = yes; then
9381 echo "$as_me:$LINENO: result: yes" >&5
9382echo "${ECHO_T}yes" >&6
9383 else
9384 echo "$as_me:$LINENO: result: no" >&5
9385echo "${ECHO_T}no" >&6
9386 fi
9387
9388
9389 enablestring=
9390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9391echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9392 no_cache=0
9393 # Check whether --enable-splash or --disable-splash was given.
9394if test "${enable_splash+set}" = set; then
9395 enableval="$enable_splash"
9396
9397 if test "$enableval" = yes; then
9398 ac_cv_use_splash='wxUSE_SPLASH=yes'
9399 else
9400 ac_cv_use_splash='wxUSE_SPLASH=no'
9401 fi
9402
9403else
9404
9405 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9406 if test "x$LINE" != x ; then
9407 eval "DEFAULT_$LINE"
9408 else
9409 no_cache=1
9410 fi
9411
9412 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9413
9414fi;
9415
9416 eval "$ac_cv_use_splash"
9417 if test "$no_cache" != 1; then
9418 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9419 fi
9420
9421 if test "$wxUSE_SPLASH" = yes; then
9422 echo "$as_me:$LINENO: result: yes" >&5
9423echo "${ECHO_T}yes" >&6
9424 else
9425 echo "$as_me:$LINENO: result: no" >&5
9426echo "${ECHO_T}no" >&6
9427 fi
9428
9429
9430 enablestring=
9431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9432echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9433 no_cache=0
9434 # Check whether --enable-textdlg or --disable-textdlg was given.
9435if test "${enable_textdlg+set}" = set; then
9436 enableval="$enable_textdlg"
9437
9438 if test "$enableval" = yes; then
9439 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9440 else
9441 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9442 fi
9443
9444else
9445
9446 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9447 if test "x$LINE" != x ; then
9448 eval "DEFAULT_$LINE"
9449 else
9450 no_cache=1
9451 fi
9452
9453 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9454
9455fi;
9456
9457 eval "$ac_cv_use_textdlg"
9458 if test "$no_cache" != 1; then
9459 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9460 fi
9461
9462 if test "$wxUSE_TEXTDLG" = yes; then
9463 echo "$as_me:$LINENO: result: yes" >&5
9464echo "${ECHO_T}yes" >&6
9465 else
9466 echo "$as_me:$LINENO: result: no" >&5
9467echo "${ECHO_T}no" >&6
9468 fi
9469
9470
9471 enablestring=
9472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9473echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9474 no_cache=0
9475 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9476if test "${enable_tipdlg+set}" = set; then
9477 enableval="$enable_tipdlg"
9478
9479 if test "$enableval" = yes; then
9480 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9481 else
9482 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9483 fi
9484
9485else
9486
9487 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9488 if test "x$LINE" != x ; then
9489 eval "DEFAULT_$LINE"
9490 else
9491 no_cache=1
9492 fi
9493
9494 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9495
9496fi;
9497
9498 eval "$ac_cv_use_tipdlg"
9499 if test "$no_cache" != 1; then
9500 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9501 fi
9502
9503 if test "$wxUSE_STARTUP_TIPS" = yes; then
9504 echo "$as_me:$LINENO: result: yes" >&5
9505echo "${ECHO_T}yes" >&6
9506 else
9507 echo "$as_me:$LINENO: result: no" >&5
9508echo "${ECHO_T}no" >&6
9509 fi
9510
9511
9512 enablestring=
9513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9514echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9515 no_cache=0
9516 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9517if test "${enable_progressdlg+set}" = set; then
9518 enableval="$enable_progressdlg"
9519
9520 if test "$enableval" = yes; then
9521 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9522 else
9523 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9524 fi
9525
9526else
9527
9528 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9529 if test "x$LINE" != x ; then
9530 eval "DEFAULT_$LINE"
9531 else
9532 no_cache=1
9533 fi
9534
9535 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9536
9537fi;
9538
9539 eval "$ac_cv_use_progressdlg"
9540 if test "$no_cache" != 1; then
9541 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9542 fi
9543
9544 if test "$wxUSE_PROGRESSDLG" = yes; then
9545 echo "$as_me:$LINENO: result: yes" >&5
9546echo "${ECHO_T}yes" >&6
9547 else
9548 echo "$as_me:$LINENO: result: no" >&5
9549echo "${ECHO_T}no" >&6
9550 fi
9551
9552
9553 enablestring=
9554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9555echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9556 no_cache=0
9557 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9558if test "${enable_wizarddlg+set}" = set; then
9559 enableval="$enable_wizarddlg"
9560
9561 if test "$enableval" = yes; then
9562 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9563 else
9564 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9565 fi
9566
9567else
9568
9569 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9570 if test "x$LINE" != x ; then
9571 eval "DEFAULT_$LINE"
9572 else
9573 no_cache=1
9574 fi
9575
9576 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9577
9578fi;
9579
9580 eval "$ac_cv_use_wizarddlg"
9581 if test "$no_cache" != 1; then
9582 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9583 fi
9584
9585 if test "$wxUSE_WIZARDDLG" = yes; then
9586 echo "$as_me:$LINENO: result: yes" >&5
9587echo "${ECHO_T}yes" >&6
9588 else
9589 echo "$as_me:$LINENO: result: no" >&5
9590echo "${ECHO_T}no" >&6
9591 fi
9592
9593
9594
9595
9596 enablestring=
9597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9598echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9599 no_cache=0
9600 # Check whether --enable-menus or --disable-menus was given.
9601if test "${enable_menus+set}" = set; then
9602 enableval="$enable_menus"
9603
9604 if test "$enableval" = yes; then
9605 ac_cv_use_menus='wxUSE_MENUS=yes'
9606 else
9607 ac_cv_use_menus='wxUSE_MENUS=no'
9608 fi
9609
9610else
9611
9612 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9613 if test "x$LINE" != x ; then
9614 eval "DEFAULT_$LINE"
9615 else
9616 no_cache=1
9617 fi
9618
9619 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9620
9621fi;
9622
9623 eval "$ac_cv_use_menus"
9624 if test "$no_cache" != 1; then
9625 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9626 fi
9627
9628 if test "$wxUSE_MENUS" = yes; then
9629 echo "$as_me:$LINENO: result: yes" >&5
9630echo "${ECHO_T}yes" >&6
9631 else
9632 echo "$as_me:$LINENO: result: no" >&5
9633echo "${ECHO_T}no" >&6
9634 fi
9635
9636
9637 enablestring=
9638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9639echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9640 no_cache=0
9641 # Check whether --enable-miniframe or --disable-miniframe was given.
9642if test "${enable_miniframe+set}" = set; then
9643 enableval="$enable_miniframe"
9644
9645 if test "$enableval" = yes; then
9646 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9647 else
9648 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9649 fi
9650
9651else
9652
9653 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9654 if test "x$LINE" != x ; then
9655 eval "DEFAULT_$LINE"
9656 else
9657 no_cache=1
9658 fi
9659
9660 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9661
9662fi;
9663
9664 eval "$ac_cv_use_miniframe"
9665 if test "$no_cache" != 1; then
9666 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9667 fi
9668
9669 if test "$wxUSE_MINIFRAME" = yes; then
9670 echo "$as_me:$LINENO: result: yes" >&5
9671echo "${ECHO_T}yes" >&6
9672 else
9673 echo "$as_me:$LINENO: result: no" >&5
9674echo "${ECHO_T}no" >&6
9675 fi
9676
9677
9678 enablestring=
9679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9680echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9681 no_cache=0
9682 # Check whether --enable-tooltips or --disable-tooltips was given.
9683if test "${enable_tooltips+set}" = set; then
9684 enableval="$enable_tooltips"
9685
9686 if test "$enableval" = yes; then
9687 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9688 else
9689 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9690 fi
9691
9692else
9693
9694 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9695 if test "x$LINE" != x ; then
9696 eval "DEFAULT_$LINE"
9697 else
9698 no_cache=1
9699 fi
9700
9701 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9702
9703fi;
9704
9705 eval "$ac_cv_use_tooltips"
9706 if test "$no_cache" != 1; then
9707 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9708 fi
9709
9710 if test "$wxUSE_TOOLTIPS" = yes; then
9711 echo "$as_me:$LINENO: result: yes" >&5
9712echo "${ECHO_T}yes" >&6
9713 else
9714 echo "$as_me:$LINENO: result: no" >&5
9715echo "${ECHO_T}no" >&6
9716 fi
9717
9718
9719 enablestring=
9720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9721echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9722 no_cache=0
9723 # Check whether --enable-splines or --disable-splines was given.
9724if test "${enable_splines+set}" = set; then
9725 enableval="$enable_splines"
9726
9727 if test "$enableval" = yes; then
9728 ac_cv_use_splines='wxUSE_SPLINES=yes'
9729 else
9730 ac_cv_use_splines='wxUSE_SPLINES=no'
9731 fi
9732
9733else
9734
9735 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9736 if test "x$LINE" != x ; then
9737 eval "DEFAULT_$LINE"
9738 else
9739 no_cache=1
9740 fi
9741
9742 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9743
9744fi;
9745
9746 eval "$ac_cv_use_splines"
9747 if test "$no_cache" != 1; then
9748 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9749 fi
9750
9751 if test "$wxUSE_SPLINES" = yes; then
9752 echo "$as_me:$LINENO: result: yes" >&5
9753echo "${ECHO_T}yes" >&6
9754 else
9755 echo "$as_me:$LINENO: result: no" >&5
9756echo "${ECHO_T}no" >&6
9757 fi
9758
9759
fbe2ca43
SN
9760 enablestring=
9761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9762echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9763 no_cache=0
9764 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9765if test "${enable_mousewheel+set}" = set; then
9766 enableval="$enable_mousewheel"
9767
9768 if test "$enableval" = yes; then
9769 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9770 else
9771 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9772 fi
9773
9774else
9775
9776 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9777 if test "x$LINE" != x ; then
9778 eval "DEFAULT_$LINE"
9779 else
9780 no_cache=1
9781 fi
9782
9783 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9784
9785fi;
9786
9787 eval "$ac_cv_use_mousewheel"
9788 if test "$no_cache" != 1; then
9789 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9790 fi
9791
9792 if test "$wxUSE_MOUSEWHEEL" = yes; then
9793 echo "$as_me:$LINENO: result: yes" >&5
9794echo "${ECHO_T}yes" >&6
9795 else
9796 echo "$as_me:$LINENO: result: no" >&5
9797echo "${ECHO_T}no" >&6
9798 fi
9799
9800
a848cd7e
SC
9801 enablestring=
9802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9803echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9804 no_cache=0
9805 # Check whether --enable-validators or --disable-validators was given.
9806if test "${enable_validators+set}" = set; then
9807 enableval="$enable_validators"
9808
9809 if test "$enableval" = yes; then
9810 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9811 else
9812 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9813 fi
9814
9815else
9816
9817 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9818 if test "x$LINE" != x ; then
9819 eval "DEFAULT_$LINE"
9820 else
9821 no_cache=1
9822 fi
9823
9824 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9825
9826fi;
9827
9828 eval "$ac_cv_use_validators"
9829 if test "$no_cache" != 1; then
9830 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9831 fi
9832
9833 if test "$wxUSE_VALIDATORS" = yes; then
9834 echo "$as_me:$LINENO: result: yes" >&5
9835echo "${ECHO_T}yes" >&6
9836 else
9837 echo "$as_me:$LINENO: result: no" >&5
9838echo "${ECHO_T}no" >&6
9839 fi
9840
9841
9842 enablestring=
9843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9844echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9845 no_cache=0
9846 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9847if test "${enable_busyinfo+set}" = set; then
9848 enableval="$enable_busyinfo"
9849
9850 if test "$enableval" = yes; then
9851 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9852 else
9853 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9854 fi
9855
9856else
9857
9858 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9859 if test "x$LINE" != x ; then
9860 eval "DEFAULT_$LINE"
9861 else
9862 no_cache=1
9863 fi
9864
9865 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9866
9867fi;
9868
9869 eval "$ac_cv_use_busyinfo"
9870 if test "$no_cache" != 1; then
9871 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9872 fi
9873
9874 if test "$wxUSE_BUSYINFO" = yes; then
9875 echo "$as_me:$LINENO: result: yes" >&5
9876echo "${ECHO_T}yes" >&6
9877 else
9878 echo "$as_me:$LINENO: result: no" >&5
9879echo "${ECHO_T}no" >&6
9880 fi
9881
9882
9883 enablestring=
9884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9885echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9886 no_cache=0
9887 # Check whether --enable-joystick or --disable-joystick was given.
9888if test "${enable_joystick+set}" = set; then
9889 enableval="$enable_joystick"
9890
9891 if test "$enableval" = yes; then
9892 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9893 else
9894 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9895 fi
9896
9897else
9898
9899 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9900 if test "x$LINE" != x ; then
9901 eval "DEFAULT_$LINE"
9902 else
9903 no_cache=1
9904 fi
9905
9906 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9907
9908fi;
9909
9910 eval "$ac_cv_use_joystick"
9911 if test "$no_cache" != 1; then
9912 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9913 fi
9914
9915 if test "$wxUSE_JOYSTICK" = yes; then
9916 echo "$as_me:$LINENO: result: yes" >&5
9917echo "${ECHO_T}yes" >&6
9918 else
9919 echo "$as_me:$LINENO: result: no" >&5
9920echo "${ECHO_T}no" >&6
9921 fi
9922
9923
9924 enablestring=
9925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9926echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9927 no_cache=0
9928 # Check whether --enable-metafile or --disable-metafile was given.
9929if test "${enable_metafile+set}" = set; then
9930 enableval="$enable_metafile"
9931
9932 if test "$enableval" = yes; then
9933 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9934 else
9935 ac_cv_use_metafile='wxUSE_METAFILE=no'
9936 fi
9937
9938else
9939
9940 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9941 if test "x$LINE" != x ; then
9942 eval "DEFAULT_$LINE"
9943 else
9944 no_cache=1
9945 fi
9946
9947 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9948
9949fi;
9950
9951 eval "$ac_cv_use_metafile"
9952 if test "$no_cache" != 1; then
9953 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9954 fi
9955
9956 if test "$wxUSE_METAFILE" = yes; then
9957 echo "$as_me:$LINENO: result: yes" >&5
9958echo "${ECHO_T}yes" >&6
9959 else
9960 echo "$as_me:$LINENO: result: no" >&5
9961echo "${ECHO_T}no" >&6
9962 fi
9963
9964
9965 enablestring=
9966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9967echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9968 no_cache=0
9969 # Check whether --enable-dragimage or --disable-dragimage was given.
9970if test "${enable_dragimage+set}" = set; then
9971 enableval="$enable_dragimage"
9972
9973 if test "$enableval" = yes; then
9974 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9975 else
9976 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9977 fi
9978
9979else
9980
9981 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9982 if test "x$LINE" != x ; then
9983 eval "DEFAULT_$LINE"
9984 else
9985 no_cache=1
9986 fi
9987
9988 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9989
9990fi;
9991
9992 eval "$ac_cv_use_dragimage"
9993 if test "$no_cache" != 1; then
9994 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9995 fi
9996
9997 if test "$wxUSE_DRAGIMAGE" = yes; then
9998 echo "$as_me:$LINENO: result: yes" >&5
9999echo "${ECHO_T}yes" >&6
10000 else
10001 echo "$as_me:$LINENO: result: no" >&5
10002echo "${ECHO_T}no" >&6
10003 fi
10004
10005
10006 enablestring=
10007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10008echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10009 no_cache=0
10010 # Check whether --enable-accessibility or --disable-accessibility was given.
10011if test "${enable_accessibility+set}" = set; then
10012 enableval="$enable_accessibility"
10013
10014 if test "$enableval" = yes; then
10015 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10016 else
10017 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10018 fi
10019
10020else
10021
10022 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10023 if test "x$LINE" != x ; then
10024 eval "DEFAULT_$LINE"
10025 else
10026 no_cache=1
10027 fi
10028
10029 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10030
10031fi;
10032
10033 eval "$ac_cv_use_accessibility"
10034 if test "$no_cache" != 1; then
10035 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10036 fi
10037
10038 if test "$wxUSE_ACCESSIBILITY" = yes; then
10039 echo "$as_me:$LINENO: result: yes" >&5
10040echo "${ECHO_T}yes" >&6
10041 else
10042 echo "$as_me:$LINENO: result: no" >&5
10043echo "${ECHO_T}no" >&6
10044 fi
10045
10046
38b4a946
VZ
10047if test "$wxUSE_MSW" = "1"; then
10048
10049 enablestring=
10050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10051echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10052 no_cache=0
10053 # Check whether --enable-dccache or --disable-dccache was given.
10054if test "${enable_dccache+set}" = set; then
10055 enableval="$enable_dccache"
10056
10057 if test "$enableval" = yes; then
10058 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10059 else
10060 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10061 fi
10062
10063else
10064
10065 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10066 if test "x$LINE" != x ; then
10067 eval "DEFAULT_$LINE"
10068 else
10069 no_cache=1
10070 fi
10071
10072 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10073
10074fi;
10075
10076 eval "$ac_cv_use_dccache"
10077 if test "$no_cache" != 1; then
10078 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10079 fi
10080
10081 if test "$wxUSE_DC_CACHEING" = yes; then
10082 echo "$as_me:$LINENO: result: yes" >&5
10083echo "${ECHO_T}yes" >&6
10084 else
10085 echo "$as_me:$LINENO: result: no" >&5
10086echo "${ECHO_T}no" >&6
10087 fi
10088
10089fi
10090
a848cd7e
SC
10091
10092
10093 enablestring=
10094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10095echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10096 no_cache=0
10097 # Check whether --enable-palette or --disable-palette was given.
10098if test "${enable_palette+set}" = set; then
10099 enableval="$enable_palette"
10100
10101 if test "$enableval" = yes; then
10102 ac_cv_use_palette='wxUSE_PALETTE=yes'
10103 else
10104 ac_cv_use_palette='wxUSE_PALETTE=no'
10105 fi
10106
10107else
10108
10109 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10110 if test "x$LINE" != x ; then
10111 eval "DEFAULT_$LINE"
10112 else
10113 no_cache=1
10114 fi
10115
10116 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10117
10118fi;
10119
10120 eval "$ac_cv_use_palette"
10121 if test "$no_cache" != 1; then
10122 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10123 fi
10124
10125 if test "$wxUSE_PALETTE" = yes; then
10126 echo "$as_me:$LINENO: result: yes" >&5
10127echo "${ECHO_T}yes" >&6
10128 else
10129 echo "$as_me:$LINENO: result: no" >&5
10130echo "${ECHO_T}no" >&6
10131 fi
10132
10133
10134 enablestring=
10135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10136echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10137 no_cache=0
10138 # Check whether --enable-image or --disable-image was given.
10139if test "${enable_image+set}" = set; then
10140 enableval="$enable_image"
10141
10142 if test "$enableval" = yes; then
10143 ac_cv_use_image='wxUSE_IMAGE=yes'
10144 else
10145 ac_cv_use_image='wxUSE_IMAGE=no'
10146 fi
10147
10148else
10149
10150 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10151 if test "x$LINE" != x ; then
10152 eval "DEFAULT_$LINE"
10153 else
10154 no_cache=1
10155 fi
10156
10157 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10158
10159fi;
10160
10161 eval "$ac_cv_use_image"
10162 if test "$no_cache" != 1; then
10163 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10164 fi
10165
10166 if test "$wxUSE_IMAGE" = yes; then
10167 echo "$as_me:$LINENO: result: yes" >&5
10168echo "${ECHO_T}yes" >&6
10169 else
10170 echo "$as_me:$LINENO: result: no" >&5
10171echo "${ECHO_T}no" >&6
10172 fi
10173
10174
10175 enablestring=
10176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10177echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10178 no_cache=0
10179 # Check whether --enable-gif or --disable-gif was given.
10180if test "${enable_gif+set}" = set; then
10181 enableval="$enable_gif"
10182
10183 if test "$enableval" = yes; then
10184 ac_cv_use_gif='wxUSE_GIF=yes'
10185 else
10186 ac_cv_use_gif='wxUSE_GIF=no'
10187 fi
10188
10189else
10190
10191 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10192 if test "x$LINE" != x ; then
10193 eval "DEFAULT_$LINE"
10194 else
10195 no_cache=1
10196 fi
10197
10198 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10199
10200fi;
10201
10202 eval "$ac_cv_use_gif"
10203 if test "$no_cache" != 1; then
10204 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10205 fi
10206
10207 if test "$wxUSE_GIF" = yes; then
10208 echo "$as_me:$LINENO: result: yes" >&5
10209echo "${ECHO_T}yes" >&6
10210 else
10211 echo "$as_me:$LINENO: result: no" >&5
10212echo "${ECHO_T}no" >&6
10213 fi
10214
10215
10216 enablestring=
10217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10218echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10219 no_cache=0
10220 # Check whether --enable-pcx or --disable-pcx was given.
10221if test "${enable_pcx+set}" = set; then
10222 enableval="$enable_pcx"
10223
10224 if test "$enableval" = yes; then
10225 ac_cv_use_pcx='wxUSE_PCX=yes'
10226 else
10227 ac_cv_use_pcx='wxUSE_PCX=no'
10228 fi
10229
10230else
10231
10232 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10233 if test "x$LINE" != x ; then
10234 eval "DEFAULT_$LINE"
10235 else
10236 no_cache=1
10237 fi
10238
10239 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10240
10241fi;
10242
10243 eval "$ac_cv_use_pcx"
10244 if test "$no_cache" != 1; then
10245 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10246 fi
10247
10248 if test "$wxUSE_PCX" = yes; then
10249 echo "$as_me:$LINENO: result: yes" >&5
10250echo "${ECHO_T}yes" >&6
10251 else
10252 echo "$as_me:$LINENO: result: no" >&5
10253echo "${ECHO_T}no" >&6
10254 fi
10255
10256
10257 enablestring=
10258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10259echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10260 no_cache=0
10261 # Check whether --enable-iff or --disable-iff was given.
10262if test "${enable_iff+set}" = set; then
10263 enableval="$enable_iff"
10264
10265 if test "$enableval" = yes; then
10266 ac_cv_use_iff='wxUSE_IFF=yes'
10267 else
10268 ac_cv_use_iff='wxUSE_IFF=no'
10269 fi
10270
10271else
10272
10273 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10274 if test "x$LINE" != x ; then
10275 eval "DEFAULT_$LINE"
10276 else
10277 no_cache=1
10278 fi
10279
10280 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10281
10282fi;
10283
10284 eval "$ac_cv_use_iff"
10285 if test "$no_cache" != 1; then
10286 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10287 fi
10288
10289 if test "$wxUSE_IFF" = yes; then
10290 echo "$as_me:$LINENO: result: yes" >&5
10291echo "${ECHO_T}yes" >&6
10292 else
10293 echo "$as_me:$LINENO: result: no" >&5
10294echo "${ECHO_T}no" >&6
10295 fi
10296
10297
10298 enablestring=
10299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10300echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10301 no_cache=0
10302 # Check whether --enable-pnm or --disable-pnm was given.
10303if test "${enable_pnm+set}" = set; then
10304 enableval="$enable_pnm"
10305
10306 if test "$enableval" = yes; then
10307 ac_cv_use_pnm='wxUSE_PNM=yes'
10308 else
10309 ac_cv_use_pnm='wxUSE_PNM=no'
10310 fi
10311
10312else
10313
10314 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10315 if test "x$LINE" != x ; then
10316 eval "DEFAULT_$LINE"
10317 else
10318 no_cache=1
10319 fi
10320
10321 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10322
10323fi;
10324
10325 eval "$ac_cv_use_pnm"
10326 if test "$no_cache" != 1; then
10327 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10328 fi
10329
10330 if test "$wxUSE_PNM" = yes; then
10331 echo "$as_me:$LINENO: result: yes" >&5
10332echo "${ECHO_T}yes" >&6
10333 else
10334 echo "$as_me:$LINENO: result: no" >&5
10335echo "${ECHO_T}no" >&6
10336 fi
10337
10338
10339 enablestring=
10340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10341echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10342 no_cache=0
10343 # Check whether --enable-xpm or --disable-xpm was given.
10344if test "${enable_xpm+set}" = set; then
10345 enableval="$enable_xpm"
10346
10347 if test "$enableval" = yes; then
10348 ac_cv_use_xpm='wxUSE_XPM=yes'
10349 else
10350 ac_cv_use_xpm='wxUSE_XPM=no'
10351 fi
10352
10353else
10354
10355 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10356 if test "x$LINE" != x ; then
10357 eval "DEFAULT_$LINE"
10358 else
10359 no_cache=1
10360 fi
10361
10362 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10363
10364fi;
10365
10366 eval "$ac_cv_use_xpm"
10367 if test "$no_cache" != 1; then
10368 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10369 fi
10370
10371 if test "$wxUSE_XPM" = yes; then
10372 echo "$as_me:$LINENO: result: yes" >&5
10373echo "${ECHO_T}yes" >&6
10374 else
10375 echo "$as_me:$LINENO: result: no" >&5
10376echo "${ECHO_T}no" >&6
10377 fi
10378
10379
10380 enablestring=
10381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10382echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10383 no_cache=0
10384 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10385if test "${enable_ico_cur+set}" = set; then
10386 enableval="$enable_ico_cur"
10387
10388 if test "$enableval" = yes; then
10389 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10390 else
10391 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10392 fi
10393
10394else
10395
10396 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10397 if test "x$LINE" != x ; then
10398 eval "DEFAULT_$LINE"
10399 else
10400 no_cache=1
10401 fi
10402
10403 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10404
10405fi;
10406
10407 eval "$ac_cv_use_ico_cur"
10408 if test "$no_cache" != 1; then
10409 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10410 fi
10411
10412 if test "$wxUSE_ICO_CUR" = yes; then
10413 echo "$as_me:$LINENO: result: yes" >&5
10414echo "${ECHO_T}yes" >&6
10415 else
10416 echo "$as_me:$LINENO: result: no" >&5
10417echo "${ECHO_T}no" >&6
10418 fi
10419
10420
10421fi
10422
10423
10424
ceec2216
RL
10425# Check whether --with-flavour or --without-flavour was given.
10426if test "${with_flavour+set}" = set; then
10427 withval="$with_flavour"
10428 WX_FLAVOUR="$withval"
10429fi;
10430
10431
10432
a848cd7e
SC
10433 enablestring=
10434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10435echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10436 no_cache=0
10437 # Check whether --enable-official_build or --disable-official_build was given.
10438if test "${enable_official_build+set}" = set; then
10439 enableval="$enable_official_build"
10440
10441 if test "$enableval" = yes; then
10442 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10443 else
10444 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10445 fi
10446
10447else
10448
10449 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10450 if test "x$LINE" != x ; then
10451 eval "DEFAULT_$LINE"
10452 else
10453 no_cache=1
10454 fi
10455
10456 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10457
10458fi;
10459
10460 eval "$ac_cv_use_official_build"
10461 if test "$no_cache" != 1; then
10462 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10463 fi
10464
10465 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10466 echo "$as_me:$LINENO: result: yes" >&5
10467echo "${ECHO_T}yes" >&6
10468 else
10469 echo "$as_me:$LINENO: result: no" >&5
10470echo "${ECHO_T}no" >&6
10471 fi
10472
10473# Check whether --enable-vendor or --disable-vendor was given.
10474if test "${enable_vendor+set}" = set; then
10475 enableval="$enable_vendor"
10476 VENDOR="$enableval"
10477fi;
10478if test "x$VENDOR" = "x"; then
10479 VENDOR="custom"
10480fi
10481
a848cd7e
SC
10482
10483
10484
10485 echo "saving argument cache $wx_arg_cache_file"
10486 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10487
10488
10489
10490echo "$as_me:$LINENO: checking for toolkit" >&5
10491echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10492
10493# In Wine, we need to default to MSW, not GTK or MOTIF
10494if test "$wxUSE_WINE" = "yes"; then
10495 DEFAULT_DEFAULT_wxUSE_GTK=0
10496 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10497 DEFAULT_DEFAULT_wxUSE_MSW=1
10498 wxUSE_SHARED=no
10499fi
10500
f597b41c 10501
a848cd7e
SC
10502if test "$wxUSE_GUI" = "yes"; then
10503
10504 if test "$USE_BEOS" = 1; then
10505 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10506echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10507 { (exit 1); exit 1; }; }
10508 fi
10509
10510 if test "$TOOLKIT_GIVEN" = 1; then
10511 for toolkit in `echo $ALL_TOOLKITS`; do
10512 var=wxUSE_$toolkit
10513 eval "value=\$${var}"
f34ca037
MW
10514 if test "x$value" = "xno"; then
10515 eval "$var=0"
10516 elif test "x$value" != "x"; then
10517 eval "$var=1"
10518 fi
10519
10520 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10521 eval "wx${toolkit}_VERSION=$value"
10522 fi
a848cd7e
SC
10523 done
10524 else
10525 for toolkit in `echo $ALL_TOOLKITS`; do
10526 if test "$has_toolkit_in_cache" != 1; then
10527 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10528 else
10529 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10530
10531 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10532 if test "x$version" != "x"; then
10533 eval "wx${toolkit}_VERSION=$version"
10534 fi
a848cd7e
SC
10535 fi
10536 eval "wxUSE_$toolkit=\$${var}"
10537 done
10538 fi
10539
10540 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10541 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10542 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10543
10544 case "${host}" in
10545 *-pc-os2_emx | *-pc-os2-emx )
10546 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10547 esac
10548
10549 case "$NUM_TOOLKITS" in
10550 1)
10551 ;;
10552 0)
10553 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10554echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10555 { (exit 1); exit 1; }; }
10556 ;;
10557 *)
10558 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10559echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10560 { (exit 1); exit 1; }; }
10561 esac
10562
f34ca037
MW
10563 # to be removed when --disable-gtk2 isn't needed
10564 if test "x$wxUSE_GTK2" = "xyes"; then
10565 wxGTK_VERSION=2
10566 elif test "x$wxUSE_GTK2" = "xno"; then
10567 wxGTK_VERSION=1
10568 fi
10569
a848cd7e
SC
10570 for toolkit in `echo $ALL_TOOLKITS`; do
10571 var=wxUSE_$toolkit
10572 eval "value=\$${var}"
10573 if test "x$value" != x; then
10574 cache_var=CACHE_$toolkit
10575 eval "cache=\$${cache_var}"
10576 if test "$cache" = 1; then
10577 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10578 eval "version=\$wx${toolkit}_VERSION"
10579 if test "x$version" != "x"; then
10580 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10581 fi
a848cd7e
SC
10582 fi
10583 if test "$value" = 1; then
10584 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10585 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10586echo "${ECHO_T}$toolkit_echo" >&6
10587 fi
10588 fi
10589 done
10590else
10591 if test "x$host_alias" != "x"; then
10592 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10593echo "${ECHO_T}base ($host_alias hosted) only" >&6
10594 else
10595 echo "$as_me:$LINENO: result: base only" >&5
10596echo "${ECHO_T}base only" >&6
10597 fi
10598fi
10599
10600wants_win32=0
10601doesnt_want_win32=0
10602case "${host}" in
10603 *-*-cygwin*)
10604 if test "$wxUSE_MSW" = 1 ; then
10605 wants_win32=1
7275146d 10606 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10607 else
10608 doesnt_want_win32=1
10609 fi
10610 ;;
10611 *-*-mingw*)
10612 wants_win32=1
10613 ;;
10614esac
10615
10616if test "$wxUSE_WINE" = "yes"; then
10617 wants_win32=1
10618 CC=winegcc
10619 CXX=wineg++
a848cd7e
SC
10620 LDFLAGS_GUI="-mwindows"
10621fi
10622
10623if test "$wants_win32" = 1 ; then
10624 USE_UNIX=0
10625 USE_WIN32=1
10626 cat >>confdefs.h <<\_ACEOF
10627#define __WIN32__ 1
10628_ACEOF
10629
10630 cat >>confdefs.h <<\_ACEOF
10631#define __WIN95__ 1
10632_ACEOF
10633
10634 cat >>confdefs.h <<\_ACEOF
10635#define __WINDOWS__ 1
10636_ACEOF
10637
10638 cat >>confdefs.h <<\_ACEOF
10639#define __GNUWIN32__ 1
10640_ACEOF
10641
10642 cat >>confdefs.h <<\_ACEOF
10643#define STRICT 1
10644_ACEOF
10645
10646 cat >>confdefs.h <<\_ACEOF
10647#define WINVER 0x0400
10648_ACEOF
10649
10650fi
10651if test "$doesnt_want_win32" = 1 ; then
10652 USE_UNIX=1
10653 USE_WIN32=0
10654fi
10655
10656if test "$USE_UNIX" = 1 ; then
10657 wxUSE_UNIX=yes
10658 cat >>confdefs.h <<\_ACEOF
10659#define __UNIX__ 1
10660_ACEOF
10661
10662fi
10663
10664
10665cat >confcache <<\_ACEOF
10666# This file is a shell script that caches the results of configure
10667# tests run on this system so they can be shared between configure
10668# scripts and configure runs, see configure's option --config-cache.
10669# It is not useful on other systems. If it contains results you don't
10670# want to keep, you may remove or edit it.
10671#
10672# config.status only pays attention to the cache file if you give it
10673# the --recheck option to rerun configure.
10674#
10675# `ac_cv_env_foo' variables (set or unset) will be overridden when
10676# loading this file, other *unset* `ac_cv_foo' will be assigned the
10677# following values.
10678
10679_ACEOF
10680
10681# The following way of writing the cache mishandles newlines in values,
10682# but we know of no workaround that is simple, portable, and efficient.
10683# So, don't put newlines in cache variables' values.
10684# Ultrix sh set writes to stderr and can't be redirected directly,
10685# and sets the high bit in the cache file unless we assign to the vars.
10686{
10687 (set) 2>&1 |
10688 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10689 *ac_space=\ *)
10690 # `set' does not quote correctly, so add quotes (double-quote
10691 # substitution turns \\\\ into \\, and sed turns \\ into \).
10692 sed -n \
ac1cb8d3
VS
10693 "s/'/'\\\\''/g;
10694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10695 ;;
10696 *)
10697 # `set' quotes correctly as required by POSIX, so do not add quotes.
10698 sed -n \
ac1cb8d3 10699 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10700 ;;
10701 esac;
10702} |
10703 sed '
10704 t clear
10705 : clear
10706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10707 t end
10708 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10709 : end' >>confcache
10710if diff $cache_file confcache >/dev/null 2>&1; then :; else
10711 if test -w $cache_file; then
10712 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10713 cat confcache >$cache_file
10714 else
10715 echo "not updating unwritable cache $cache_file"
10716 fi
10717fi
10718rm -f confcache
10719
a848cd7e 10720CFLAGS=${CFLAGS:=}
6dcfc289
DE
10721
10722
10723 ac_ext=c
a848cd7e
SC
10724ac_cpp='$CPP $CPPFLAGS'
10725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10727ac_compiler_gnu=$ac_cv_c_compiler_gnu
10728if test -n "$ac_tool_prefix"; then
10729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10730set dummy ${ac_tool_prefix}gcc; ac_word=$2
10731echo "$as_me:$LINENO: checking for $ac_word" >&5
10732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10733if test "${ac_cv_prog_CC+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735else
10736 if test -n "$CC"; then
10737 ac_cv_prog_CC="$CC" # Let the user override the test.
10738else
10739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740for as_dir in $PATH
10741do
10742 IFS=$as_save_IFS
10743 test -z "$as_dir" && as_dir=.
10744 for ac_exec_ext in '' $ac_executable_extensions; do
10745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10746 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10748 break 2
10749 fi
10750done
10751done
10752
10753fi
10754fi
10755CC=$ac_cv_prog_CC
10756if test -n "$CC"; then
10757 echo "$as_me:$LINENO: result: $CC" >&5
10758echo "${ECHO_T}$CC" >&6
10759else
10760 echo "$as_me:$LINENO: result: no" >&5
10761echo "${ECHO_T}no" >&6
10762fi
10763
10764fi
10765if test -z "$ac_cv_prog_CC"; then
10766 ac_ct_CC=$CC
10767 # Extract the first word of "gcc", so it can be a program name with args.
10768set dummy gcc; ac_word=$2
10769echo "$as_me:$LINENO: checking for $ac_word" >&5
10770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10771if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10773else
10774 if test -n "$ac_ct_CC"; then
10775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10776else
10777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778for as_dir in $PATH
10779do
10780 IFS=$as_save_IFS
10781 test -z "$as_dir" && as_dir=.
10782 for ac_exec_ext in '' $ac_executable_extensions; do
10783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10784 ac_cv_prog_ac_ct_CC="gcc"
10785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10786 break 2
10787 fi
10788done
10789done
10790
10791fi
10792fi
10793ac_ct_CC=$ac_cv_prog_ac_ct_CC
10794if test -n "$ac_ct_CC"; then
10795 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10796echo "${ECHO_T}$ac_ct_CC" >&6
10797else
10798 echo "$as_me:$LINENO: result: no" >&5
10799echo "${ECHO_T}no" >&6
10800fi
10801
10802 CC=$ac_ct_CC
10803else
10804 CC="$ac_cv_prog_CC"
10805fi
10806
10807if test -z "$CC"; then
10808 if test -n "$ac_tool_prefix"; then
10809 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10810set dummy ${ac_tool_prefix}cc; ac_word=$2
10811echo "$as_me:$LINENO: checking for $ac_word" >&5
10812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10813if test "${ac_cv_prog_CC+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815else
10816 if test -n "$CC"; then
10817 ac_cv_prog_CC="$CC" # Let the user override the test.
10818else
10819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10820for as_dir in $PATH
10821do
10822 IFS=$as_save_IFS
10823 test -z "$as_dir" && as_dir=.
10824 for ac_exec_ext in '' $ac_executable_extensions; do
10825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10826 ac_cv_prog_CC="${ac_tool_prefix}cc"
10827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10828 break 2
10829 fi
10830done
10831done
10832
10833fi
10834fi
10835CC=$ac_cv_prog_CC
10836if test -n "$CC"; then
10837 echo "$as_me:$LINENO: result: $CC" >&5
10838echo "${ECHO_T}$CC" >&6
10839else
10840 echo "$as_me:$LINENO: result: no" >&5
10841echo "${ECHO_T}no" >&6
10842fi
10843
10844fi
10845if test -z "$ac_cv_prog_CC"; then
10846 ac_ct_CC=$CC
10847 # Extract the first word of "cc", so it can be a program name with args.
10848set dummy cc; ac_word=$2
10849echo "$as_me:$LINENO: checking for $ac_word" >&5
10850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10851if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853else
10854 if test -n "$ac_ct_CC"; then
10855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10856else
10857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10858for as_dir in $PATH
10859do
10860 IFS=$as_save_IFS
10861 test -z "$as_dir" && as_dir=.
10862 for ac_exec_ext in '' $ac_executable_extensions; do
10863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10864 ac_cv_prog_ac_ct_CC="cc"
10865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10866 break 2
10867 fi
10868done
10869done
10870
10871fi
10872fi
10873ac_ct_CC=$ac_cv_prog_ac_ct_CC
10874if test -n "$ac_ct_CC"; then
10875 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10876echo "${ECHO_T}$ac_ct_CC" >&6
10877else
10878 echo "$as_me:$LINENO: result: no" >&5
10879echo "${ECHO_T}no" >&6
10880fi
10881
10882 CC=$ac_ct_CC
10883else
10884 CC="$ac_cv_prog_CC"
10885fi
10886
10887fi
10888if test -z "$CC"; then
10889 # Extract the first word of "cc", so it can be a program name with args.
10890set dummy cc; ac_word=$2
10891echo "$as_me:$LINENO: checking for $ac_word" >&5
10892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10893if test "${ac_cv_prog_CC+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10895else
10896 if test -n "$CC"; then
10897 ac_cv_prog_CC="$CC" # Let the user override the test.
10898else
10899 ac_prog_rejected=no
10900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901for as_dir in $PATH
10902do
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10908 ac_prog_rejected=yes
10909 continue
10910 fi
10911 ac_cv_prog_CC="cc"
10912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10913 break 2
10914 fi
10915done
10916done
10917
10918if test $ac_prog_rejected = yes; then
10919 # We found a bogon in the path, so make sure we never use it.
10920 set dummy $ac_cv_prog_CC
10921 shift
10922 if test $# != 0; then
10923 # We chose a different compiler from the bogus one.
10924 # However, it has the same basename, so the bogon will be chosen
10925 # first if we set CC to just the basename; use the full file name.
10926 shift
10927 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10928 fi
10929fi
10930fi
10931fi
10932CC=$ac_cv_prog_CC
10933if test -n "$CC"; then
10934 echo "$as_me:$LINENO: result: $CC" >&5
10935echo "${ECHO_T}$CC" >&6
10936else
10937 echo "$as_me:$LINENO: result: no" >&5
10938echo "${ECHO_T}no" >&6
10939fi
10940
10941fi
10942if test -z "$CC"; then
10943 if test -n "$ac_tool_prefix"; then
10944 for ac_prog in cl
10945 do
10946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10947set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10948echo "$as_me:$LINENO: checking for $ac_word" >&5
10949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10950if test "${ac_cv_prog_CC+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10952else
10953 if test -n "$CC"; then
10954 ac_cv_prog_CC="$CC" # Let the user override the test.
10955else
10956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10957for as_dir in $PATH
10958do
10959 IFS=$as_save_IFS
10960 test -z "$as_dir" && as_dir=.
10961 for ac_exec_ext in '' $ac_executable_extensions; do
10962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10965 break 2
10966 fi
10967done
10968done
10969
10970fi
10971fi
10972CC=$ac_cv_prog_CC
10973if test -n "$CC"; then
10974 echo "$as_me:$LINENO: result: $CC" >&5
10975echo "${ECHO_T}$CC" >&6
10976else
10977 echo "$as_me:$LINENO: result: no" >&5
10978echo "${ECHO_T}no" >&6
10979fi
10980
10981 test -n "$CC" && break
10982 done
10983fi
10984if test -z "$CC"; then
10985 ac_ct_CC=$CC
10986 for ac_prog in cl
10987do
10988 # Extract the first word of "$ac_prog", so it can be a program name with args.
10989set dummy $ac_prog; ac_word=$2
10990echo "$as_me:$LINENO: checking for $ac_word" >&5
10991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10992if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994else
10995 if test -n "$ac_ct_CC"; then
10996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10997else
10998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999for as_dir in $PATH
11000do
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11005 ac_cv_prog_ac_ct_CC="$ac_prog"
11006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 break 2
11008 fi
11009done
11010done
11011
11012fi
11013fi
11014ac_ct_CC=$ac_cv_prog_ac_ct_CC
11015if test -n "$ac_ct_CC"; then
11016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11017echo "${ECHO_T}$ac_ct_CC" >&6
11018else
11019 echo "$as_me:$LINENO: result: no" >&5
11020echo "${ECHO_T}no" >&6
11021fi
11022
11023 test -n "$ac_ct_CC" && break
11024done
11025
11026 CC=$ac_ct_CC
11027fi
11028
11029fi
11030
11031
11032test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11033See \`config.log' for more details." >&5
11034echo "$as_me: error: no acceptable C compiler found in \$PATH
11035See \`config.log' for more details." >&2;}
11036 { (exit 1); exit 1; }; }
11037
11038# Provide some information about the compiler.
11039echo "$as_me:$LINENO:" \
11040 "checking for C compiler version" >&5
11041ac_compiler=`set X $ac_compile; echo $2`
11042{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11043 (eval $ac_compiler --version </dev/null >&5) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }
11047{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11048 (eval $ac_compiler -v </dev/null >&5) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }
11052{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11053 (eval $ac_compiler -V </dev/null >&5) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }
11057
11058cat >conftest.$ac_ext <<_ACEOF
11059/* confdefs.h. */
11060_ACEOF
11061cat confdefs.h >>conftest.$ac_ext
11062cat >>conftest.$ac_ext <<_ACEOF
11063/* end confdefs.h. */
11064
11065int
11066main ()
11067{
11068
11069 ;
11070 return 0;
11071}
11072_ACEOF
11073ac_clean_files_save=$ac_clean_files
11074ac_clean_files="$ac_clean_files a.out a.exe b.out"
11075# Try to create an executable without -o first, disregard a.out.
11076# It will help us diagnose broken compilers, and finding out an intuition
11077# of exeext.
ac1cb8d3
VS
11078echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11079echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11080ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11081if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11082 (eval $ac_link_default) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; then
11086 # Find the output, starting from the most likely. This scheme is
11087# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11088# resort.
11089
11090# Be careful to initialize this variable, since it used to be cached.
11091# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11092ac_cv_exeext=
11093# b.out is created by i960 compilers.
11094for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11095do
11096 test -f "$ac_file" || continue
11097 case $ac_file in
11098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11099 ;;
a848cd7e 11100 conftest.$ac_ext )
ac1cb8d3
VS
11101 # This is the source file.
11102 ;;
a848cd7e 11103 [ab].out )
ac1cb8d3
VS
11104 # We found the default executable, but exeext='' is most
11105 # certainly right.
11106 break;;
a848cd7e 11107 *.* )
ac1cb8d3
VS
11108 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11109 # FIXME: I believe we export ac_cv_exeext for Libtool,
11110 # but it would be cool to find out if it's true. Does anybody
11111 # maintain Libtool? --akim.
11112 export ac_cv_exeext
11113 break;;
a848cd7e 11114 * )
ac1cb8d3 11115 break;;
a848cd7e
SC
11116 esac
11117done
11118else
11119 echo "$as_me: failed program was:" >&5
11120sed 's/^/| /' conftest.$ac_ext >&5
11121
11122{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11123See \`config.log' for more details." >&5
11124echo "$as_me: error: C compiler cannot create executables
11125See \`config.log' for more details." >&2;}
11126 { (exit 77); exit 77; }; }
11127fi
11128
11129ac_exeext=$ac_cv_exeext
11130echo "$as_me:$LINENO: result: $ac_file" >&5
11131echo "${ECHO_T}$ac_file" >&6
11132
11133# Check the compiler produces executables we can run. If not, either
11134# the compiler is broken, or we cross compile.
11135echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11136echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11137# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11138# If not cross compiling, check that we can run a simple program.
11139if test "$cross_compiling" != yes; then
11140 if { ac_try='./$ac_file'
11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11143 ac_status=$?
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; }; then
11146 cross_compiling=no
11147 else
11148 if test "$cross_compiling" = maybe; then
11149 cross_compiling=yes
11150 else
11151 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11152If you meant to cross compile, use \`--host'.
11153See \`config.log' for more details." >&5
11154echo "$as_me: error: cannot run C compiled programs.
11155If you meant to cross compile, use \`--host'.
11156See \`config.log' for more details." >&2;}
11157 { (exit 1); exit 1; }; }
11158 fi
11159 fi
11160fi
11161echo "$as_me:$LINENO: result: yes" >&5
11162echo "${ECHO_T}yes" >&6
11163
11164rm -f a.out a.exe conftest$ac_cv_exeext b.out
11165ac_clean_files=$ac_clean_files_save
11166# Check the compiler produces executables we can run. If not, either
11167# the compiler is broken, or we cross compile.
11168echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11169echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11170echo "$as_me:$LINENO: result: $cross_compiling" >&5
11171echo "${ECHO_T}$cross_compiling" >&6
11172
11173echo "$as_me:$LINENO: checking for suffix of executables" >&5
11174echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11176 (eval $ac_link) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; then
11180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11181# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11182# work properly (i.e., refer to `conftest.exe'), while it won't with
11183# `rm'.
11184for ac_file in conftest.exe conftest conftest.*; do
11185 test -f "$ac_file" || continue
11186 case $ac_file in
11187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11188 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11189 export ac_cv_exeext
11190 break;;
a848cd7e
SC
11191 * ) break;;
11192 esac
11193done
11194else
11195 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11196See \`config.log' for more details." >&5
11197echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11198See \`config.log' for more details." >&2;}
11199 { (exit 1); exit 1; }; }
11200fi
11201
11202rm -f conftest$ac_cv_exeext
11203echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11204echo "${ECHO_T}$ac_cv_exeext" >&6
11205
11206rm -f conftest.$ac_ext
11207EXEEXT=$ac_cv_exeext
11208ac_exeext=$EXEEXT
11209echo "$as_me:$LINENO: checking for suffix of object files" >&5
11210echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11211if test "${ac_cv_objext+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213else
11214 cat >conftest.$ac_ext <<_ACEOF
11215/* confdefs.h. */
11216_ACEOF
11217cat confdefs.h >>conftest.$ac_ext
11218cat >>conftest.$ac_ext <<_ACEOF
11219/* end confdefs.h. */
11220
11221int
11222main ()
11223{
11224
11225 ;
11226 return 0;
11227}
11228_ACEOF
11229rm -f conftest.o conftest.obj
11230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11231 (eval $ac_compile) 2>&5
11232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; then
11235 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11236 case $ac_file in
11237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11238 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11239 break;;
11240 esac
11241done
11242else
11243 echo "$as_me: failed program was:" >&5
11244sed 's/^/| /' conftest.$ac_ext >&5
11245
11246{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11247See \`config.log' for more details." >&5
11248echo "$as_me: error: cannot compute suffix of object files: cannot compile
11249See \`config.log' for more details." >&2;}
11250 { (exit 1); exit 1; }; }
11251fi
11252
11253rm -f conftest.$ac_cv_objext conftest.$ac_ext
11254fi
11255echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11256echo "${ECHO_T}$ac_cv_objext" >&6
11257OBJEXT=$ac_cv_objext
11258ac_objext=$OBJEXT
11259echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11260echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11261if test "${ac_cv_c_compiler_gnu+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11263else
11264 cat >conftest.$ac_ext <<_ACEOF
11265/* confdefs.h. */
11266_ACEOF
11267cat confdefs.h >>conftest.$ac_ext
11268cat >>conftest.$ac_ext <<_ACEOF
11269/* end confdefs.h. */
11270
11271int
11272main ()
11273{
11274#ifndef __GNUC__
11275 choke me
11276#endif
11277
11278 ;
11279 return 0;
11280}
11281_ACEOF
11282rm -f conftest.$ac_objext
11283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11284 (eval $ac_compile) 2>conftest.er1
a848cd7e 11285 ac_status=$?
ac1cb8d3
VS
11286 grep -v '^ *+' conftest.er1 >conftest.err
11287 rm -f conftest.er1
11288 cat conftest.err >&5
a848cd7e
SC
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
6ebeb4c7 11291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293 (eval $ac_try) 2>&5
11294 ac_status=$?
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; } &&
11297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }; then
11303 ac_compiler_gnu=yes
11304else
11305 echo "$as_me: failed program was:" >&5
11306sed 's/^/| /' conftest.$ac_ext >&5
11307
11308ac_compiler_gnu=no
11309fi
ac1cb8d3 11310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11311ac_cv_c_compiler_gnu=$ac_compiler_gnu
11312
11313fi
11314echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11315echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11316GCC=`test $ac_compiler_gnu = yes && echo yes`
11317ac_test_CFLAGS=${CFLAGS+set}
11318ac_save_CFLAGS=$CFLAGS
9122d155 11319CFLAGS="-g"
a848cd7e
SC
11320echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11321echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11322if test "${ac_cv_prog_cc_g+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324else
11325 cat >conftest.$ac_ext <<_ACEOF
11326/* confdefs.h. */
11327_ACEOF
11328cat confdefs.h >>conftest.$ac_ext
11329cat >>conftest.$ac_ext <<_ACEOF
11330/* end confdefs.h. */
11331
11332int
11333main ()
11334{
11335
11336 ;
11337 return 0;
11338}
11339_ACEOF
11340rm -f conftest.$ac_objext
11341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11342 (eval $ac_compile) 2>conftest.er1
a848cd7e 11343 ac_status=$?
ac1cb8d3
VS
11344 grep -v '^ *+' conftest.er1 >conftest.err
11345 rm -f conftest.er1
11346 cat conftest.err >&5
a848cd7e
SC
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } &&
6ebeb4c7 11349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; } &&
11355 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; }; then
11361 ac_cv_prog_cc_g=yes
11362else
11363 echo "$as_me: failed program was:" >&5
11364sed 's/^/| /' conftest.$ac_ext >&5
11365
11366ac_cv_prog_cc_g=no
11367fi
ac1cb8d3 11368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11369fi
11370echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11371echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11372if test "$ac_test_CFLAGS" = set; then
11373 CFLAGS=$ac_save_CFLAGS
11374elif test $ac_cv_prog_cc_g = yes; then
11375 if test "$GCC" = yes; then
11376 CFLAGS="-g -O2"
11377 else
11378 CFLAGS="-g"
11379 fi
11380else
11381 if test "$GCC" = yes; then
11382 CFLAGS="-O2"
11383 else
11384 CFLAGS=
11385 fi
11386fi
11387echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11388echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11389if test "${ac_cv_prog_cc_stdc+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11391else
11392 ac_cv_prog_cc_stdc=no
11393ac_save_CC=$CC
11394cat >conftest.$ac_ext <<_ACEOF
11395/* confdefs.h. */
11396_ACEOF
11397cat confdefs.h >>conftest.$ac_ext
11398cat >>conftest.$ac_ext <<_ACEOF
11399/* end confdefs.h. */
11400#include <stdarg.h>
11401#include <stdio.h>
11402#include <sys/types.h>
11403#include <sys/stat.h>
11404/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11405struct buf { int x; };
11406FILE * (*rcsopen) (struct buf *, struct stat *, int);
11407static char *e (p, i)
11408 char **p;
11409 int i;
11410{
11411 return p[i];
11412}
11413static char *f (char * (*g) (char **, int), char **p, ...)
11414{
11415 char *s;
11416 va_list v;
11417 va_start (v,p);
11418 s = g (p, va_arg (v,int));
11419 va_end (v);
11420 return s;
11421}
ac1cb8d3
VS
11422
11423/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11424 function prototypes and stuff, but not '\xHH' hex character constants.
11425 These don't provoke an error unfortunately, instead are silently treated
11426 as 'x'. The following induces an error, until -std1 is added to get
11427 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11428 array size at least. It's necessary to write '\x00'==0 to get something
11429 that's true only with -std1. */
11430int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11431
a848cd7e
SC
11432int test (int i, double x);
11433struct s1 {int (*f) (int a);};
11434struct s2 {int (*f) (double a);};
11435int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11436int argc;
11437char **argv;
11438int
11439main ()
11440{
11441return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11442 ;
11443 return 0;
11444}
11445_ACEOF
11446# Don't try gcc -ansi; that turns off useful extensions and
11447# breaks some systems' header files.
11448# AIX -qlanglvl=ansi
11449# Ultrix and OSF/1 -std1
11450# HP-UX 10.20 and later -Ae
11451# HP-UX older versions -Aa -D_HPUX_SOURCE
11452# SVR4 -Xc -D__EXTENSIONS__
11453for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11454do
11455 CC="$ac_save_CC $ac_arg"
11456 rm -f conftest.$ac_objext
11457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11458 (eval $ac_compile) 2>conftest.er1
a848cd7e 11459 ac_status=$?
ac1cb8d3
VS
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
a848cd7e
SC
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
6ebeb4c7 11465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; } &&
11471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 ac_cv_prog_cc_stdc=$ac_arg
11478break
11479else
11480 echo "$as_me: failed program was:" >&5
11481sed 's/^/| /' conftest.$ac_ext >&5
11482
11483fi
ac1cb8d3 11484rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11485done
11486rm -f conftest.$ac_ext conftest.$ac_objext
11487CC=$ac_save_CC
11488
11489fi
11490
11491case "x$ac_cv_prog_cc_stdc" in
11492 x|xno)
11493 echo "$as_me:$LINENO: result: none needed" >&5
11494echo "${ECHO_T}none needed" >&6 ;;
11495 *)
11496 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11497echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11498 CC="$CC $ac_cv_prog_cc_stdc" ;;
11499esac
11500
11501# Some people use a C++ compiler to compile C. Since we use `exit',
11502# in C++ we need to declare it. In case someone uses the same compiler
11503# for both compiling C and C++ we need to have the C++ compiler decide
11504# the declaration of exit, since it's the most demanding environment.
11505cat >conftest.$ac_ext <<_ACEOF
11506#ifndef __cplusplus
11507 choke me
11508#endif
11509_ACEOF
11510rm -f conftest.$ac_objext
11511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11512 (eval $ac_compile) 2>conftest.er1
a848cd7e 11513 ac_status=$?
ac1cb8d3
VS
11514 grep -v '^ *+' conftest.er1 >conftest.err
11515 rm -f conftest.er1
11516 cat conftest.err >&5
a848cd7e
SC
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
6ebeb4c7 11519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 for ac_declaration in \
ac1cb8d3 11532 '' \
a848cd7e
SC
11533 'extern "C" void std::exit (int) throw (); using std::exit;' \
11534 'extern "C" void std::exit (int); using std::exit;' \
11535 'extern "C" void exit (int) throw ();' \
11536 'extern "C" void exit (int);' \
11537 'void exit (int);'
11538do
11539 cat >conftest.$ac_ext <<_ACEOF
11540/* confdefs.h. */
11541_ACEOF
11542cat confdefs.h >>conftest.$ac_ext
11543cat >>conftest.$ac_ext <<_ACEOF
11544/* end confdefs.h. */
de59c161 11545$ac_declaration
ac1cb8d3 11546#include <stdlib.h>
a848cd7e
SC
11547int
11548main ()
11549{
11550exit (42);
11551 ;
11552 return 0;
11553}
11554_ACEOF
11555rm -f conftest.$ac_objext
11556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11557 (eval $ac_compile) 2>conftest.er1
a848cd7e 11558 ac_status=$?
ac1cb8d3
VS
11559 grep -v '^ *+' conftest.er1 >conftest.err
11560 rm -f conftest.er1
11561 cat conftest.err >&5
a848cd7e
SC
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
6ebeb4c7 11564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 :
11577else
11578 echo "$as_me: failed program was:" >&5
11579sed 's/^/| /' conftest.$ac_ext >&5
11580
11581continue
11582fi
ac1cb8d3 11583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11584 cat >conftest.$ac_ext <<_ACEOF
11585/* confdefs.h. */
11586_ACEOF
11587cat confdefs.h >>conftest.$ac_ext
11588cat >>conftest.$ac_ext <<_ACEOF
11589/* end confdefs.h. */
11590$ac_declaration
11591int
11592main ()
11593{
11594exit (42);
11595 ;
11596 return 0;
11597}
11598_ACEOF
11599rm -f conftest.$ac_objext
11600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11601 (eval $ac_compile) 2>conftest.er1
a848cd7e 11602 ac_status=$?
ac1cb8d3
VS
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
a848cd7e
SC
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } &&
6ebeb4c7 11608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11611 ac_status=$?
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; } &&
11614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 break
11621else
11622 echo "$as_me: failed program was:" >&5
11623sed 's/^/| /' conftest.$ac_ext >&5
11624
11625fi
ac1cb8d3 11626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11627done
11628rm -f conftest*
11629if test -n "$ac_declaration"; then
11630 echo '#ifdef __cplusplus' >>confdefs.h
11631 echo $ac_declaration >>confdefs.h
11632 echo '#endif' >>confdefs.h
11633fi
11634
11635else
11636 echo "$as_me: failed program was:" >&5
11637sed 's/^/| /' conftest.$ac_ext >&5
11638
11639fi
ac1cb8d3 11640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11641ac_ext=c
11642ac_cpp='$CPP $CPPFLAGS'
11643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11645ac_compiler_gnu=$ac_cv_c_compiler_gnu
11646
ab0ad5f1
VZ
11647
11648
11649 ac_ext=c
11650ac_cpp='$CPP $CPPFLAGS'
11651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11653ac_compiler_gnu=$ac_cv_c_compiler_gnu
11654
11655 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11656echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11657if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659else
11660 cat >conftest.$ac_ext <<_ACEOF
11661/* confdefs.h. */
11662_ACEOF
11663cat confdefs.h >>conftest.$ac_ext
11664cat >>conftest.$ac_ext <<_ACEOF
11665/* end confdefs.h. */
11666
11667int
11668main ()
11669{
11670
11671 #ifndef __INTEL_COMPILER
11672 choke me
11673 #endif
11674
11675 ;
11676 return 0;
11677}
11678_ACEOF
11679rm -f conftest.$ac_objext
11680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11681 (eval $ac_compile) 2>conftest.er1
11682 ac_status=$?
11683 grep -v '^ *+' conftest.er1 >conftest.err
11684 rm -f conftest.er1
11685 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } &&
11688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; } &&
11694 { ac_try='test -s conftest.$ac_objext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11697 ac_status=$?
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 bakefile_cv_c_compiler___INTEL_COMPILER=yes
11701else
11702 echo "$as_me: failed program was:" >&5
11703sed 's/^/| /' conftest.$ac_ext >&5
11704
11705bakefile_cv_c_compiler___INTEL_COMPILER=no
11706
11707fi
11708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11709
11710
11711fi
11712echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11713echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
11714 ac_ext=c
11715ac_cpp='$CPP $CPPFLAGS'
11716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11718ac_compiler_gnu=$ac_cv_c_compiler_gnu
11719
11720 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
11721 :; INTELCC=yes
11722 else
11723 :;
11724 fi
11725
11726
11727 if test "x$GCC" != "xyes"; then
11728 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11729echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11730if test "${wx_cv_c_exto+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11732else
11733 cat >conftest.$ac_ext <<_ACEOF
11734/* confdefs.h. */
11735_ACEOF
11736cat confdefs.h >>conftest.$ac_ext
11737cat >>conftest.$ac_ext <<_ACEOF
11738/* end confdefs.h. */
11739
11740int
11741main ()
11742{
11743
11744 ;
11745 return 0;
11746}
11747_ACEOF
11748rm -f conftest.$ac_objext conftest.$ac_ext.o
11749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11750 (eval $ac_compile) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; then
11754 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11755 case $ac_file in
11756 conftest.$ac_ext.o)
11757 wx_cv_c_exto="-ext o"
11758 ;;
11759 *)
11760 ;;
11761 esac
11762done
11763else
11764 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11765See \`config.log' for more details." >&5
11766echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11767See \`config.log' for more details." >&2;}
11768 { (exit 1); exit 1; }; }
11769
11770fi
11771
11772rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11773
11774fi
11775echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11776echo "${ECHO_T}$wx_cv_c_exto" >&6
11777if test "x$wx_cv_c_exto" '!=' "x"; then
11778 if test "c" = "c"; then
11779 CFLAGS="$wx_cv_c_exto $CFLAGS"
11780 fi
11781 if test "c" = "cxx"; then
11782 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11783 fi
11784fi
11785
ab0ad5f1
VZ
11786 if test "x$wx_cv_c_exto" '!=' "x"; then
11787 unset ac_cv_prog_cc_g
11788 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11789ac_save_CFLAGS=$CFLAGS
9122d155 11790CFLAGS="-g"
480ccd21
DE
11791echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11792echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11793if test "${ac_cv_prog_cc_g+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795else
11796 cat >conftest.$ac_ext <<_ACEOF
11797/* confdefs.h. */
11798_ACEOF
11799cat confdefs.h >>conftest.$ac_ext
11800cat >>conftest.$ac_ext <<_ACEOF
11801/* end confdefs.h. */
11802
11803int
11804main ()
11805{
11806
11807 ;
11808 return 0;
11809}
11810_ACEOF
11811rm -f conftest.$ac_objext
11812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11813 (eval $ac_compile) 2>conftest.er1
11814 ac_status=$?
11815 grep -v '^ *+' conftest.er1 >conftest.err
11816 rm -f conftest.er1
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
6ebeb4c7 11820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; } &&
11826 { ac_try='test -s conftest.$ac_objext'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 ac_cv_prog_cc_g=yes
11833else
11834 echo "$as_me: failed program was:" >&5
11835sed 's/^/| /' conftest.$ac_ext >&5
11836
11837ac_cv_prog_cc_g=no
11838fi
11839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11840fi
11841echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11842echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11843if test "$ac_test_CFLAGS" = set; then
11844 CFLAGS=$ac_save_CFLAGS
11845elif test $ac_cv_prog_cc_g = yes; then
11846 if test "$GCC" = yes; then
11847 CFLAGS="-g -O2"
11848 else
11849 CFLAGS="-g"
11850 fi
11851else
11852 if test "$GCC" = yes; then
11853 CFLAGS="-O2"
11854 else
11855 CFLAGS=
11856 fi
11857fi
ab0ad5f1
VZ
11858 fi
11859 ac_ext=c
95986553
DE
11860ac_cpp='$CPP $CPPFLAGS'
11861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11863ac_compiler_gnu=$ac_cv_c_compiler_gnu
11864
11865echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11866echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11867if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11869else
11870 cat >conftest.$ac_ext <<_ACEOF
11871/* confdefs.h. */
11872_ACEOF
11873cat confdefs.h >>conftest.$ac_ext
11874cat >>conftest.$ac_ext <<_ACEOF
11875/* end confdefs.h. */
11876
11877int
11878main ()
11879{
11880#ifndef __MWERKS__
11881 choke me
11882#endif
11883
11884 ;
11885 return 0;
11886}
11887_ACEOF
11888rm -f conftest.$ac_objext
11889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11890 (eval $ac_compile) 2>conftest.er1
11891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
6ebeb4c7 11897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try='test -s conftest.$ac_objext'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 bakefile_compiler_mwerks=yes
11910else
11911 echo "$as_me: failed program was:" >&5
11912sed 's/^/| /' conftest.$ac_ext >&5
11913
11914bakefile_compiler_mwerks=no
11915fi
11916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11917 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11918
11919fi
11920echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11921echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11922
0e6fa1d9 11923MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11924ac_ext=c
11925ac_cpp='$CPP $CPPFLAGS'
11926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11928ac_compiler_gnu=$ac_cv_c_compiler_gnu
11929
11930
ab0ad5f1 11931 ac_ext=c
9273ffba
DE
11932ac_cpp='$CPP $CPPFLAGS'
11933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11935ac_compiler_gnu=$ac_cv_c_compiler_gnu
11936
11937echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11938echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11939if test "${wx_cv_c_compiler_xlc+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11941else
11942 cat >conftest.$ac_ext <<_ACEOF
11943/* confdefs.h. */
11944_ACEOF
11945cat confdefs.h >>conftest.$ac_ext
11946cat >>conftest.$ac_ext <<_ACEOF
11947/* end confdefs.h. */
11948
11949int
11950main ()
11951{
11952#ifndef __xlC__
11953 choke me
11954#endif
11955
11956 ;
11957 return 0;
11958}
11959_ACEOF
11960rm -f conftest.$ac_objext
11961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11962 (eval $ac_compile) 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
6ebeb4c7 11969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try='test -s conftest.$ac_objext'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 wx_compiler_xlc=yes
11982else
11983 echo "$as_me: failed program was:" >&5
11984sed 's/^/| /' conftest.$ac_ext >&5
11985
11986wx_compiler_xlc=no
11987fi
11988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11989 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11990
11991fi
11992echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11993echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11994
0e6fa1d9 11995XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11996ac_ext=c
11997ac_cpp='$CPP $CPPFLAGS'
11998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12000ac_compiler_gnu=$ac_cv_c_compiler_gnu
12001
12002
a848cd7e 12003
6dcfc289 12004
0ad5d837
VZ
12005 ac_ext=c
12006ac_cpp='$CPP $CPPFLAGS'
12007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12009ac_compiler_gnu=$ac_cv_c_compiler_gnu
12010
12011 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12012echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12013if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12015else
12016 cat >conftest.$ac_ext <<_ACEOF
12017/* confdefs.h. */
12018_ACEOF
12019cat confdefs.h >>conftest.$ac_ext
12020cat >>conftest.$ac_ext <<_ACEOF
12021/* end confdefs.h. */
12022
12023int
12024main ()
12025{
12026
12027 #ifndef _SGI_COMPILER_VERSION
12028 choke me
12029 #endif
12030
12031 ;
12032 return 0;
12033}
12034_ACEOF
12035rm -f conftest.$ac_objext
12036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>conftest.er1
12038 ac_status=$?
12039 grep -v '^ *+' conftest.er1 >conftest.err
12040 rm -f conftest.er1
12041 cat conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); } &&
12044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; } &&
12050 { ac_try='test -s conftest.$ac_objext'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12057else
12058 echo "$as_me: failed program was:" >&5
12059sed 's/^/| /' conftest.$ac_ext >&5
12060
12061bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12062
12063fi
12064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12065
12066
12067fi
12068echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12069echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12070 ac_ext=c
12071ac_cpp='$CPP $CPPFLAGS'
12072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12074ac_compiler_gnu=$ac_cv_c_compiler_gnu
12075
12076 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12077 :; SGICC=yes
12078 else
12079 :;
12080 fi
12081
12082
12083
12084
a9e5b1f0
MW
12085 ac_ext=c
12086ac_cpp='$CPP $CPPFLAGS'
12087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12089ac_compiler_gnu=$ac_cv_c_compiler_gnu
12090
12091 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12092echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12093if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12095else
12096 cat >conftest.$ac_ext <<_ACEOF
12097/* confdefs.h. */
12098_ACEOF
12099cat confdefs.h >>conftest.$ac_ext
12100cat >>conftest.$ac_ext <<_ACEOF
12101/* end confdefs.h. */
12102
12103int
12104main ()
12105{
12106
12107 #ifndef __SUNPRO_C
12108 choke me
12109 #endif
12110
12111 ;
12112 return 0;
12113}
12114_ACEOF
12115rm -f conftest.$ac_objext
12116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117 (eval $ac_compile) 2>conftest.er1
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
6ebeb4c7 12124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; } &&
12130 { ac_try='test -s conftest.$ac_objext'
12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 bakefile_cv_c_compiler___SUNPRO_C=yes
12137else
12138 echo "$as_me: failed program was:" >&5
12139sed 's/^/| /' conftest.$ac_ext >&5
12140
12141bakefile_cv_c_compiler___SUNPRO_C=no
12142
12143fi
12144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12145
12146
12147fi
12148echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12149echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12150 ac_ext=c
12151ac_cpp='$CPP $CPPFLAGS'
12152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12154ac_compiler_gnu=$ac_cv_c_compiler_gnu
12155
12156 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12157 :; SUNCC=yes
12158 else
12159 :;
12160 fi
12161
12162
ab0ad5f1 12163 fi
a9e5b1f0
MW
12164
12165
a848cd7e
SC
12166ac_ext=c
12167ac_cpp='$CPP $CPPFLAGS'
12168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12170ac_compiler_gnu=$ac_cv_c_compiler_gnu
12171echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12172echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12173# On Suns, sometimes $CPP names a directory.
12174if test -n "$CPP" && test -d "$CPP"; then
12175 CPP=
12176fi
12177if test -z "$CPP"; then
12178 if test "${ac_cv_prog_CPP+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180else
12181 # Double quotes because CPP needs to be expanded
12182 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12183 do
12184 ac_preproc_ok=false
12185for ac_c_preproc_warn_flag in '' yes
12186do
12187 # Use a header file that comes with gcc, so configuring glibc
12188 # with a fresh cross-compiler works.
12189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12190 # <limits.h> exists even on freestanding compilers.
12191 # On the NeXT, cc -E runs the code through the compiler's parser,
12192 # not just through cpp. "Syntax error" is here to catch this case.
12193 cat >conftest.$ac_ext <<_ACEOF
12194/* confdefs.h. */
12195_ACEOF
12196cat confdefs.h >>conftest.$ac_ext
12197cat >>conftest.$ac_ext <<_ACEOF
12198/* end confdefs.h. */
12199#ifdef __STDC__
12200# include <limits.h>
12201#else
12202# include <assert.h>
12203#endif
ac1cb8d3 12204 Syntax error
a848cd7e
SC
12205_ACEOF
12206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } >/dev/null; then
12214 if test -s conftest.err; then
12215 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12217 else
12218 ac_cpp_err=
12219 fi
12220else
12221 ac_cpp_err=yes
12222fi
12223if test -z "$ac_cpp_err"; then
12224 :
12225else
12226 echo "$as_me: failed program was:" >&5
12227sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 # Broken: fails on valid input.
12230continue
12231fi
12232rm -f conftest.err conftest.$ac_ext
12233
12234 # OK, works on sane cases. Now check whether non-existent headers
12235 # can be detected and how.
12236 cat >conftest.$ac_ext <<_ACEOF
12237/* confdefs.h. */
12238_ACEOF
12239cat confdefs.h >>conftest.$ac_ext
12240cat >>conftest.$ac_ext <<_ACEOF
12241/* end confdefs.h. */
12242#include <ac_nonexistent.h>
12243_ACEOF
12244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12246 ac_status=$?
12247 grep -v '^ *+' conftest.er1 >conftest.err
12248 rm -f conftest.er1
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } >/dev/null; then
12252 if test -s conftest.err; then
12253 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12255 else
12256 ac_cpp_err=
12257 fi
12258else
12259 ac_cpp_err=yes
12260fi
12261if test -z "$ac_cpp_err"; then
12262 # Broken: success on invalid input.
12263continue
12264else
12265 echo "$as_me: failed program was:" >&5
12266sed 's/^/| /' conftest.$ac_ext >&5
12267
12268 # Passes both tests.
12269ac_preproc_ok=:
12270break
12271fi
12272rm -f conftest.err conftest.$ac_ext
12273
12274done
12275# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12276rm -f conftest.err conftest.$ac_ext
12277if $ac_preproc_ok; then
12278 break
12279fi
12280
12281 done
12282 ac_cv_prog_CPP=$CPP
12283
12284fi
12285 CPP=$ac_cv_prog_CPP
12286else
12287 ac_cv_prog_CPP=$CPP
12288fi
12289echo "$as_me:$LINENO: result: $CPP" >&5
12290echo "${ECHO_T}$CPP" >&6
12291ac_preproc_ok=false
12292for ac_c_preproc_warn_flag in '' yes
12293do
12294 # Use a header file that comes with gcc, so configuring glibc
12295 # with a fresh cross-compiler works.
12296 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12297 # <limits.h> exists even on freestanding compilers.
12298 # On the NeXT, cc -E runs the code through the compiler's parser,
12299 # not just through cpp. "Syntax error" is here to catch this case.
12300 cat >conftest.$ac_ext <<_ACEOF
12301/* confdefs.h. */
12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
12306#ifdef __STDC__
12307# include <limits.h>
12308#else
12309# include <assert.h>
12310#endif
ac1cb8d3 12311 Syntax error
a848cd7e
SC
12312_ACEOF
12313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12315 ac_status=$?
12316 grep -v '^ *+' conftest.er1 >conftest.err
12317 rm -f conftest.er1
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } >/dev/null; then
12321 if test -s conftest.err; then
12322 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12324 else
12325 ac_cpp_err=
12326 fi
12327else
12328 ac_cpp_err=yes
12329fi
12330if test -z "$ac_cpp_err"; then
12331 :
12332else
12333 echo "$as_me: failed program was:" >&5
12334sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 # Broken: fails on valid input.
12337continue
12338fi
12339rm -f conftest.err conftest.$ac_ext
12340
12341 # OK, works on sane cases. Now check whether non-existent headers
12342 # can be detected and how.
12343 cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h. */
12349#include <ac_nonexistent.h>
12350_ACEOF
12351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12353 ac_status=$?
12354 grep -v '^ *+' conftest.er1 >conftest.err
12355 rm -f conftest.er1
12356 cat conftest.err >&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } >/dev/null; then
12359 if test -s conftest.err; then
12360 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12362 else
12363 ac_cpp_err=
12364 fi
12365else
12366 ac_cpp_err=yes
12367fi
12368if test -z "$ac_cpp_err"; then
12369 # Broken: success on invalid input.
12370continue
12371else
12372 echo "$as_me: failed program was:" >&5
12373sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 # Passes both tests.
12376ac_preproc_ok=:
12377break
12378fi
12379rm -f conftest.err conftest.$ac_ext
12380
12381done
12382# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12383rm -f conftest.err conftest.$ac_ext
12384if $ac_preproc_ok; then
12385 :
12386else
12387 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12388See \`config.log' for more details." >&5
12389echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12390See \`config.log' for more details." >&2;}
12391 { (exit 1); exit 1; }; }
12392fi
12393
12394ac_ext=c
12395ac_cpp='$CPP $CPPFLAGS'
12396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12398ac_compiler_gnu=$ac_cv_c_compiler_gnu
12399
12400
12401echo "$as_me:$LINENO: checking for egrep" >&5
12402echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12403if test "${ac_cv_prog_egrep+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12405else
12406 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12407 then ac_cv_prog_egrep='grep -E'
12408 else ac_cv_prog_egrep='egrep'
12409 fi
12410fi
12411echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12412echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12413 EGREP=$ac_cv_prog_egrep
12414
12415
12416if test $ac_cv_c_compiler_gnu = yes; then
12417 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12418echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12419if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12421else
12422 ac_pattern="Autoconf.*'x'"
12423 cat >conftest.$ac_ext <<_ACEOF
12424/* confdefs.h. */
12425_ACEOF
12426cat confdefs.h >>conftest.$ac_ext
12427cat >>conftest.$ac_ext <<_ACEOF
12428/* end confdefs.h. */
12429#include <sgtty.h>
12430Autoconf TIOCGETP
12431_ACEOF
12432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12433 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12434 ac_cv_prog_gcc_traditional=yes
12435else
12436 ac_cv_prog_gcc_traditional=no
12437fi
12438rm -f conftest*
12439
12440
12441 if test $ac_cv_prog_gcc_traditional = no; then
12442 cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
12448#include <termio.h>
12449Autoconf TCGETA
12450_ACEOF
12451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12452 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12453 ac_cv_prog_gcc_traditional=yes
12454fi
12455rm -f conftest*
12456
12457 fi
12458fi
12459echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12460echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12461 if test $ac_cv_prog_gcc_traditional = yes; then
12462 CC="$CC -traditional"
12463 fi
12464fi
12465
12466
12467
12468
12469ac_ext=cc
12470ac_cpp='$CXXCPP $CPPFLAGS'
12471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12474
12475
12476CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12477
12478
12479 ac_ext=cc
a848cd7e
SC
12480ac_cpp='$CXXCPP $CPPFLAGS'
12481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12484if test -n "$ac_tool_prefix"; then
12485 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12486 do
12487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12488set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12489echo "$as_me:$LINENO: checking for $ac_word" >&5
12490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12491if test "${ac_cv_prog_CXX+set}" = set; then
12492 echo $ECHO_N "(cached) $ECHO_C" >&6
12493else
12494 if test -n "$CXX"; then
12495 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12496else
12497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12498for as_dir in $PATH
12499do
12500 IFS=$as_save_IFS
12501 test -z "$as_dir" && as_dir=.
12502 for ac_exec_ext in '' $ac_executable_extensions; do
12503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12504 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12506 break 2
12507 fi
12508done
12509done
12510
12511fi
12512fi
12513CXX=$ac_cv_prog_CXX
12514if test -n "$CXX"; then
12515 echo "$as_me:$LINENO: result: $CXX" >&5
12516echo "${ECHO_T}$CXX" >&6
12517else
12518 echo "$as_me:$LINENO: result: no" >&5
12519echo "${ECHO_T}no" >&6
12520fi
12521
12522 test -n "$CXX" && break
12523 done
12524fi
12525if test -z "$CXX"; then
12526 ac_ct_CXX=$CXX
12527 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12528do
12529 # Extract the first word of "$ac_prog", so it can be a program name with args.
12530set dummy $ac_prog; ac_word=$2
12531echo "$as_me:$LINENO: checking for $ac_word" >&5
12532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12533if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535else
12536 if test -n "$ac_ct_CXX"; then
12537 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12538else
12539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12540for as_dir in $PATH
12541do
12542 IFS=$as_save_IFS
12543 test -z "$as_dir" && as_dir=.
12544 for ac_exec_ext in '' $ac_executable_extensions; do
12545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12546 ac_cv_prog_ac_ct_CXX="$ac_prog"
12547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12548 break 2
12549 fi
12550done
12551done
12552
12553fi
12554fi
12555ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12556if test -n "$ac_ct_CXX"; then
12557 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12558echo "${ECHO_T}$ac_ct_CXX" >&6
12559else
12560 echo "$as_me:$LINENO: result: no" >&5
12561echo "${ECHO_T}no" >&6
12562fi
12563
12564 test -n "$ac_ct_CXX" && break
12565done
12566test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12567
12568 CXX=$ac_ct_CXX
12569fi
12570
12571
12572# Provide some information about the compiler.
12573echo "$as_me:$LINENO:" \
12574 "checking for C++ compiler version" >&5
12575ac_compiler=`set X $ac_compile; echo $2`
12576{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12577 (eval $ac_compiler --version </dev/null >&5) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }
12581{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12582 (eval $ac_compiler -v </dev/null >&5) 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }
12586{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12587 (eval $ac_compiler -V </dev/null >&5) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }
12591
12592echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12593echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12594if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596else
12597 cat >conftest.$ac_ext <<_ACEOF
12598/* confdefs.h. */
12599_ACEOF
12600cat confdefs.h >>conftest.$ac_ext
12601cat >>conftest.$ac_ext <<_ACEOF
12602/* end confdefs.h. */
12603
12604int
12605main ()
12606{
12607#ifndef __GNUC__
12608 choke me
12609#endif
12610
12611 ;
12612 return 0;
12613}
12614_ACEOF
12615rm -f conftest.$ac_objext
12616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12617 (eval $ac_compile) 2>conftest.er1
a848cd7e 12618 ac_status=$?
ac1cb8d3
VS
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
a848cd7e
SC
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
6ebeb4c7 12624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12627 ac_status=$?
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; } &&
12630 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12632 (eval $ac_try) 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; }; then
12636 ac_compiler_gnu=yes
12637else
12638 echo "$as_me: failed program was:" >&5
12639sed 's/^/| /' conftest.$ac_ext >&5
12640
12641ac_compiler_gnu=no
12642fi
ac1cb8d3 12643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12644ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12645
12646fi
12647echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12648echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12649GXX=`test $ac_compiler_gnu = yes && echo yes`
12650ac_test_CXXFLAGS=${CXXFLAGS+set}
12651ac_save_CXXFLAGS=$CXXFLAGS
12652CXXFLAGS="-g"
12653echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12654echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12655if test "${ac_cv_prog_cxx_g+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12657else
12658 cat >conftest.$ac_ext <<_ACEOF
12659/* confdefs.h. */
12660_ACEOF
12661cat confdefs.h >>conftest.$ac_ext
12662cat >>conftest.$ac_ext <<_ACEOF
12663/* end confdefs.h. */
12664
12665int
12666main ()
12667{
12668
12669 ;
12670 return 0;
12671}
12672_ACEOF
12673rm -f conftest.$ac_objext
12674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12675 (eval $ac_compile) 2>conftest.er1
a848cd7e 12676 ac_status=$?
ac1cb8d3
VS
12677 grep -v '^ *+' conftest.er1 >conftest.err
12678 rm -f conftest.er1
12679 cat conftest.err >&5
a848cd7e
SC
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } &&
6ebeb4c7 12682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12685 ac_status=$?
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; } &&
12688 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; }; then
12694 ac_cv_prog_cxx_g=yes
12695else
12696 echo "$as_me: failed program was:" >&5
12697sed 's/^/| /' conftest.$ac_ext >&5
12698
12699ac_cv_prog_cxx_g=no
12700fi
ac1cb8d3 12701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12702fi
12703echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12704echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12705if test "$ac_test_CXXFLAGS" = set; then
12706 CXXFLAGS=$ac_save_CXXFLAGS
12707elif test $ac_cv_prog_cxx_g = yes; then
12708 if test "$GXX" = yes; then
9122d155 12709 CXXFLAGS="-g -O2"
a848cd7e 12710 else
9122d155 12711 CXXFLAGS="-g"
a848cd7e
SC
12712 fi
12713else
12714 if test "$GXX" = yes; then
12715 CXXFLAGS="-O2"
12716 else
12717 CXXFLAGS=
12718 fi
12719fi
12720for ac_declaration in \
ac1cb8d3 12721 '' \
a848cd7e
SC
12722 'extern "C" void std::exit (int) throw (); using std::exit;' \
12723 'extern "C" void std::exit (int); using std::exit;' \
12724 'extern "C" void exit (int) throw ();' \
12725 'extern "C" void exit (int);' \
12726 'void exit (int);'
12727do
12728 cat >conftest.$ac_ext <<_ACEOF
12729/* confdefs.h. */
12730_ACEOF
12731cat confdefs.h >>conftest.$ac_ext
12732cat >>conftest.$ac_ext <<_ACEOF
12733/* end confdefs.h. */
de59c161 12734$ac_declaration
ac1cb8d3 12735#include <stdlib.h>
a848cd7e
SC
12736int
12737main ()
12738{
12739exit (42);
12740 ;
12741 return 0;
12742}
12743_ACEOF
12744rm -f conftest.$ac_objext
12745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12746 (eval $ac_compile) 2>conftest.er1
a848cd7e 12747 ac_status=$?
ac1cb8d3
VS
12748 grep -v '^ *+' conftest.er1 >conftest.err
12749 rm -f conftest.er1
12750 cat conftest.err >&5
a848cd7e
SC
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
6ebeb4c7 12753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; } &&
12759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12765 :
12766else
12767 echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
12770continue
12771fi
ac1cb8d3 12772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12773 cat >conftest.$ac_ext <<_ACEOF
12774/* confdefs.h. */
12775_ACEOF
12776cat confdefs.h >>conftest.$ac_ext
12777cat >>conftest.$ac_ext <<_ACEOF
12778/* end confdefs.h. */
12779$ac_declaration
12780int
12781main ()
12782{
12783exit (42);
12784 ;
12785 return 0;
12786}
12787_ACEOF
12788rm -f conftest.$ac_objext
12789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12790 (eval $ac_compile) 2>conftest.er1
a848cd7e 12791 ac_status=$?
ac1cb8d3
VS
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
a848cd7e
SC
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } &&
6ebeb4c7 12797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; } &&
12803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 break
12810else
12811 echo "$as_me: failed program was:" >&5
12812sed 's/^/| /' conftest.$ac_ext >&5
12813
12814fi
ac1cb8d3 12815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12816done
12817rm -f conftest*
12818if test -n "$ac_declaration"; then
12819 echo '#ifdef __cplusplus' >>confdefs.h
12820 echo $ac_declaration >>confdefs.h
12821 echo '#endif' >>confdefs.h
12822fi
12823
12824ac_ext=cc
12825ac_cpp='$CXXCPP $CPPFLAGS'
12826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12829
ab0ad5f1
VZ
12830
12831
12832 ac_ext=cc
12833ac_cpp='$CXXCPP $CPPFLAGS'
12834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12837
12838 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
12839echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
12840if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12842else
12843 cat >conftest.$ac_ext <<_ACEOF
12844/* confdefs.h. */
12845_ACEOF
12846cat confdefs.h >>conftest.$ac_ext
12847cat >>conftest.$ac_ext <<_ACEOF
12848/* end confdefs.h. */
12849
12850int
12851main ()
12852{
12853
12854 #ifndef __INTEL_COMPILER
12855 choke me
12856 #endif
12857
12858 ;
12859 return 0;
12860}
12861_ACEOF
12862rm -f conftest.$ac_objext
12863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12864 (eval $ac_compile) 2>conftest.er1
12865 ac_status=$?
12866 grep -v '^ *+' conftest.er1 >conftest.err
12867 rm -f conftest.er1
12868 cat conftest.err >&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } &&
12871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; } &&
12877 { ac_try='test -s conftest.$ac_objext'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12883 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
12884else
12885 echo "$as_me: failed program was:" >&5
12886sed 's/^/| /' conftest.$ac_ext >&5
12887
12888bakefile_cv_cxx_compiler___INTEL_COMPILER=no
12889
12890fi
12891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12892
12893
12894fi
12895echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
12896echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
12897 ac_ext=cc
12898ac_cpp='$CXXCPP $CPPFLAGS'
12899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12902
12903 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
12904 :; INTELCXX=yes
12905 else
12906 :;
12907 fi
12908
12909
12910 if test "x$GXX" != "xyes"; then
12911 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12912echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12913if test "${wx_cv_cxx_exto+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12915else
12916 cat >conftest.$ac_ext <<_ACEOF
12917/* confdefs.h. */
12918_ACEOF
12919cat confdefs.h >>conftest.$ac_ext
12920cat >>conftest.$ac_ext <<_ACEOF
12921/* end confdefs.h. */
12922
12923int
12924main ()
12925{
12926
12927 ;
12928 return 0;
12929}
12930_ACEOF
12931rm -f conftest.$ac_objext conftest.$ac_ext.o
12932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12933 (eval $ac_compile) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; then
12937 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12938 case $ac_file in
12939 conftest.$ac_ext.o)
12940 wx_cv_cxx_exto="-ext o"
12941 ;;
12942 *)
12943 ;;
12944 esac
12945done
12946else
12947 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12948See \`config.log' for more details." >&5
12949echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12950See \`config.log' for more details." >&2;}
12951 { (exit 1); exit 1; }; }
12952
12953fi
12954
12955rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12956
12957fi
12958echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12959echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12960if test "x$wx_cv_cxx_exto" '!=' "x"; then
12961 if test "cxx" = "c"; then
12962 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12963 fi
12964 if test "cxx" = "cxx"; then
12965 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12966 fi
12967fi
12968
ab0ad5f1
VZ
12969 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12970 unset ac_cv_prog_cxx_g
12971 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12972ac_save_CXXFLAGS=$CXXFLAGS
12973CXXFLAGS="-g"
12974echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12975echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12976if test "${ac_cv_prog_cxx_g+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12978else
12979 cat >conftest.$ac_ext <<_ACEOF
12980/* confdefs.h. */
12981_ACEOF
12982cat confdefs.h >>conftest.$ac_ext
12983cat >>conftest.$ac_ext <<_ACEOF
12984/* end confdefs.h. */
12985
12986int
12987main ()
12988{
12989
12990 ;
12991 return 0;
12992}
12993_ACEOF
12994rm -f conftest.$ac_objext
12995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12996 (eval $ac_compile) 2>conftest.er1
12997 ac_status=$?
12998 grep -v '^ *+' conftest.er1 >conftest.err
12999 rm -f conftest.er1
13000 cat conftest.err >&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } &&
6ebeb4c7 13003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; } &&
13009 { ac_try='test -s conftest.$ac_objext'
13010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 (eval $ac_try) 2>&5
13012 ac_status=$?
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; }; then
13015 ac_cv_prog_cxx_g=yes
13016else
13017 echo "$as_me: failed program was:" >&5
13018sed 's/^/| /' conftest.$ac_ext >&5
13019
13020ac_cv_prog_cxx_g=no
13021fi
13022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13023fi
13024echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13025echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13026if test "$ac_test_CXXFLAGS" = set; then
13027 CXXFLAGS=$ac_save_CXXFLAGS
13028elif test $ac_cv_prog_cxx_g = yes; then
13029 if test "$GXX" = yes; then
9122d155 13030 CXXFLAGS="-g -O2"
480ccd21 13031 else
9122d155 13032 CXXFLAGS="-g"
480ccd21
DE
13033 fi
13034else
13035 if test "$GXX" = yes; then
13036 CXXFLAGS="-O2"
13037 else
13038 CXXFLAGS=
13039 fi
13040fi
ab0ad5f1
VZ
13041 fi
13042 ac_ext=cc
95986553
DE
13043ac_cpp='$CXXCPP $CPPFLAGS'
13044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13047
13048echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13049echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13050if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13052else
13053 cat >conftest.$ac_ext <<_ACEOF
13054/* confdefs.h. */
13055_ACEOF
13056cat confdefs.h >>conftest.$ac_ext
13057cat >>conftest.$ac_ext <<_ACEOF
13058/* end confdefs.h. */
13059
13060int
13061main ()
13062{
13063#ifndef __MWERKS__
13064 choke me
13065#endif
13066
13067 ;
13068 return 0;
13069}
13070_ACEOF
13071rm -f conftest.$ac_objext
13072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13073 (eval $ac_compile) 2>conftest.er1
13074 ac_status=$?
13075 grep -v '^ *+' conftest.er1 >conftest.err
13076 rm -f conftest.er1
13077 cat conftest.err >&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } &&
6ebeb4c7 13080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13083 ac_status=$?
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; } &&
13086 { ac_try='test -s conftest.$ac_objext'
13087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088 (eval $ac_try) 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; }; then
13092 bakefile_compiler_mwerks=yes
13093else
13094 echo "$as_me: failed program was:" >&5
13095sed 's/^/| /' conftest.$ac_ext >&5
13096
13097bakefile_compiler_mwerks=no
13098fi
13099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13100 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13101
13102fi
13103echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13104echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13105
0e6fa1d9 13106MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13107ac_ext=cc
13108ac_cpp='$CXXCPP $CPPFLAGS'
13109ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13110ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13111ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13112
13113
ab0ad5f1 13114 ac_ext=cc
9273ffba
DE
13115ac_cpp='$CXXCPP $CPPFLAGS'
13116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13119
13120echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13121echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
13122if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13124else
13125 cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131
13132int
13133main ()
13134{
13135#ifndef __xlC__
13136 choke me
13137#endif
13138
13139 ;
13140 return 0;
13141}
13142_ACEOF
13143rm -f conftest.$ac_objext
13144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145 (eval $ac_compile) 2>conftest.er1
13146 ac_status=$?
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
6ebeb4c7 13152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; } &&
13158 { ac_try='test -s conftest.$ac_objext'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; }; then
13164 wx_compiler_xlc=yes
13165else
13166 echo "$as_me: failed program was:" >&5
13167sed 's/^/| /' conftest.$ac_ext >&5
13168
13169wx_compiler_xlc=no
13170fi
13171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13172 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
13173
13174fi
13175echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
13176echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
13177
0e6fa1d9 13178XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13179ac_ext=cc
13180ac_cpp='$CXXCPP $CPPFLAGS'
13181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13184
13185
95986553 13186
6dcfc289 13187
0ad5d837
VZ
13188 ac_ext=cc
13189ac_cpp='$CXXCPP $CPPFLAGS'
13190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13193
13194 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13195echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13196if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13198else
13199 cat >conftest.$ac_ext <<_ACEOF
13200/* confdefs.h. */
13201_ACEOF
13202cat confdefs.h >>conftest.$ac_ext
13203cat >>conftest.$ac_ext <<_ACEOF
13204/* end confdefs.h. */
13205
13206int
13207main ()
13208{
13209
13210 #ifndef _SGI_COMPILER_VERSION
13211 choke me
13212 #endif
13213
13214 ;
13215 return 0;
13216}
13217_ACEOF
13218rm -f conftest.$ac_objext
13219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13220 (eval $ac_compile) 2>conftest.er1
13221 ac_status=$?
13222 grep -v '^ *+' conftest.er1 >conftest.err
13223 rm -f conftest.er1
13224 cat conftest.err >&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } &&
13227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try='test -s conftest.$ac_objext'
13234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13240else
13241 echo "$as_me: failed program was:" >&5
13242sed 's/^/| /' conftest.$ac_ext >&5
13243
13244bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13245
13246fi
13247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13248
13249
13250fi
13251echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13252echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13253 ac_ext=cc
13254ac_cpp='$CXXCPP $CPPFLAGS'
13255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13258
13259 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13260 :; SGICXX=yes
13261 else
13262 :;
13263 fi
13264
13265
13266
13267
a9e5b1f0
MW
13268 ac_ext=cc
13269ac_cpp='$CXXCPP $CPPFLAGS'
13270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13273
13274 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
13275echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
13276if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13278else
13279 cat >conftest.$ac_ext <<_ACEOF
13280/* confdefs.h. */
13281_ACEOF
13282cat confdefs.h >>conftest.$ac_ext
13283cat >>conftest.$ac_ext <<_ACEOF
13284/* end confdefs.h. */
13285
13286int
13287main ()
13288{
13289
13290 #ifndef __SUNPRO_CC
13291 choke me
13292 #endif
13293
13294 ;
13295 return 0;
13296}
13297_ACEOF
13298rm -f conftest.$ac_objext
13299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13300 (eval $ac_compile) 2>conftest.er1
13301 ac_status=$?
13302 grep -v '^ *+' conftest.er1 >conftest.err
13303 rm -f conftest.er1
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } &&
6ebeb4c7 13307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest.$ac_objext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324bakefile_cv_cxx_compiler___SUNPRO_CC=no
13325
13326fi
13327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13328
13329
13330fi
13331echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13332echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13333 ac_ext=cc
13334ac_cpp='$CXXCPP $CPPFLAGS'
13335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13338
13339 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13340 :; SUNCXX=yes
13341 else
13342 :;
13343 fi
13344
13345
ab0ad5f1 13346 fi
a9e5b1f0
MW
13347
13348
a848cd7e
SC
13349ac_ext=c
13350ac_cpp='$CPP $CPPFLAGS'
13351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13353ac_compiler_gnu=$ac_cv_c_compiler_gnu
13354
13355
a848cd7e
SC
13356if test -n "$ac_tool_prefix"; then
13357 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13358set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13359echo "$as_me:$LINENO: checking for $ac_word" >&5
13360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13361if test "${ac_cv_prog_RANLIB+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13363else
13364 if test -n "$RANLIB"; then
13365 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13366else
13367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13368for as_dir in $PATH
13369do
13370 IFS=$as_save_IFS
13371 test -z "$as_dir" && as_dir=.
13372 for ac_exec_ext in '' $ac_executable_extensions; do
13373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13374 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13376 break 2
13377 fi
13378done
13379done
13380
13381fi
13382fi
13383RANLIB=$ac_cv_prog_RANLIB
13384if test -n "$RANLIB"; then
13385 echo "$as_me:$LINENO: result: $RANLIB" >&5
13386echo "${ECHO_T}$RANLIB" >&6
13387else
13388 echo "$as_me:$LINENO: result: no" >&5
13389echo "${ECHO_T}no" >&6
13390fi
13391
13392fi
13393if test -z "$ac_cv_prog_RANLIB"; then
13394 ac_ct_RANLIB=$RANLIB
13395 # Extract the first word of "ranlib", so it can be a program name with args.
13396set dummy ranlib; ac_word=$2
13397echo "$as_me:$LINENO: checking for $ac_word" >&5
13398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13399if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13401else
13402 if test -n "$ac_ct_RANLIB"; then
13403 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13404else
13405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13406for as_dir in $PATH
13407do
13408 IFS=$as_save_IFS
13409 test -z "$as_dir" && as_dir=.
13410 for ac_exec_ext in '' $ac_executable_extensions; do
13411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13412 ac_cv_prog_ac_ct_RANLIB="ranlib"
13413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13414 break 2
13415 fi
13416done
13417done
13418
13419 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13420fi
13421fi
13422ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13423if test -n "$ac_ct_RANLIB"; then
13424 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13425echo "${ECHO_T}$ac_ct_RANLIB" >&6
13426else
13427 echo "$as_me:$LINENO: result: no" >&5
13428echo "${ECHO_T}no" >&6
13429fi
13430
13431 RANLIB=$ac_ct_RANLIB
13432else
13433 RANLIB="$ac_cv_prog_RANLIB"
13434fi
13435
13436
8c80d384
DE
13437if test -n "$ac_tool_prefix"; then
13438 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13439set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
13440echo "$as_me:$LINENO: checking for $ac_word" >&5
13441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13442if test "${ac_cv_prog_AR+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13444else
13445 if test -n "$AR"; then
13446 ac_cv_prog_AR="$AR" # Let the user override the test.
13447else
13448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449for as_dir in $PATH
13450do
13451 IFS=$as_save_IFS
13452 test -z "$as_dir" && as_dir=.
13453 for ac_exec_ext in '' $ac_executable_extensions; do
13454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 13455 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
13456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13457 break 2
13458 fi
13459done
13460done
13461
13462fi
13463fi
13464AR=$ac_cv_prog_AR
13465if test -n "$AR"; then
13466 echo "$as_me:$LINENO: result: $AR" >&5
13467echo "${ECHO_T}$AR" >&6
13468else
13469 echo "$as_me:$LINENO: result: no" >&5
13470echo "${ECHO_T}no" >&6
13471fi
13472
8c80d384
DE
13473fi
13474if test -z "$ac_cv_prog_AR"; then
13475 ac_ct_AR=$AR
13476 # Extract the first word of "ar", so it can be a program name with args.
13477set dummy ar; ac_word=$2
13478echo "$as_me:$LINENO: checking for $ac_word" >&5
13479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13480if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482else
13483 if test -n "$ac_ct_AR"; then
13484 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13485else
13486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13487for as_dir in $PATH
13488do
13489 IFS=$as_save_IFS
13490 test -z "$as_dir" && as_dir=.
13491 for ac_exec_ext in '' $ac_executable_extensions; do
13492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13493 ac_cv_prog_ac_ct_AR="ar"
13494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13495 break 2
13496 fi
13497done
13498done
13499
13500fi
13501fi
13502ac_ct_AR=$ac_cv_prog_ac_ct_AR
13503if test -n "$ac_ct_AR"; then
13504 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13505echo "${ECHO_T}$ac_ct_AR" >&6
13506else
13507 echo "$as_me:$LINENO: result: no" >&5
13508echo "${ECHO_T}no" >&6
13509fi
13510
13511 AR=$ac_ct_AR
13512else
13513 AR="$ac_cv_prog_AR"
13514fi
13515
a848cd7e 13516if test "x$AR" = "x" ; then
77ffb593
JS
13517 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13518echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13519 { (exit 1); exit 1; }; }
13520fi
13521
13522# Find a good install program. We prefer a C program (faster),
13523# so one script is as good as another. But avoid the broken or
13524# incompatible versions:
13525# SysV /etc/install, /usr/sbin/install
13526# SunOS /usr/etc/install
13527# IRIX /sbin/install
13528# AIX /bin/install
13529# AmigaOS /C/install, which installs bootblocks on floppy discs
13530# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13531# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13532# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13533# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13534# ./install, which can be erroneously created by make from ./install.sh.
13535echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13536echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13537if test -z "$INSTALL"; then
13538if test "${ac_cv_path_install+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13540else
13541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13542for as_dir in $PATH
13543do
13544 IFS=$as_save_IFS
13545 test -z "$as_dir" && as_dir=.
13546 # Account for people who put trailing slashes in PATH elements.
13547case $as_dir/ in
13548 ./ | .// | /cC/* | \
13549 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13550 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13551 /usr/ucb/* ) ;;
13552 *)
13553 # OSF1 and SCO ODT 3.0 have their own names for install.
13554 # Don't use installbsd from OSF since it installs stuff as root
13555 # by default.
13556 for ac_prog in ginstall scoinst install; do
13557 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13558 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13559 if test $ac_prog = install &&
13560 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13561 # AIX install. It has an incompatible calling convention.
13562 :
13563 elif test $ac_prog = install &&
13564 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13565 # program-specific install script used by HP pwplus--don't use.
13566 :
13567 else
13568 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13569 break 3
13570 fi
13571 fi
a848cd7e
SC
13572 done
13573 done
13574 ;;
13575esac
13576done
13577
13578
13579fi
13580 if test "${ac_cv_path_install+set}" = set; then
13581 INSTALL=$ac_cv_path_install
13582 else
13583 # As a last resort, use the slow shell script. We don't cache a
13584 # path for INSTALL within a source directory, because that will
13585 # break other packages using the cache if that directory is
13586 # removed, or if the path is relative.
13587 INSTALL=$ac_install_sh
13588 fi
13589fi
13590echo "$as_me:$LINENO: result: $INSTALL" >&5
13591echo "${ECHO_T}$INSTALL" >&6
13592
13593# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13594# It thinks the first close brace ends the variable substitution.
13595test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13596
13597test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13598
13599test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13600
13601
13602case ${INSTALL} in
13603 /* ) # Absolute
13604 ;;
13605 ?:* ) # Drive letter, considered as absolute.
13606 ;;
13607 *)
13608 INSTALL=`pwd`/${INSTALL} ;;
13609esac
13610
a848cd7e
SC
13611
13612case "${host}" in
13613
cfda0ea8 13614 *-*-darwin* )
a848cd7e
SC
13615 INSTALL_PROGRAM="cp -fp"
13616 INSTALL_DATA="cp -fp"
13617 ;;
13618 *)
13619 ;;
13620esac
13621
8c80d384
DE
13622if test -n "$ac_tool_prefix"; then
13623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13624set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
13625echo "$as_me:$LINENO: checking for $ac_word" >&5
13626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13627if test "${ac_cv_prog_STRIP+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13629else
13630 if test -n "$STRIP"; then
13631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13632else
13633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13634for as_dir in $PATH
13635do
13636 IFS=$as_save_IFS
13637 test -z "$as_dir" && as_dir=.
13638 for ac_exec_ext in '' $ac_executable_extensions; do
13639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 13640 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
13641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13642 break 2
13643 fi
13644done
13645done
13646
a848cd7e
SC
13647fi
13648fi
13649STRIP=$ac_cv_prog_STRIP
13650if test -n "$STRIP"; then
13651 echo "$as_me:$LINENO: result: $STRIP" >&5
13652echo "${ECHO_T}$STRIP" >&6
13653else
13654 echo "$as_me:$LINENO: result: no" >&5
13655echo "${ECHO_T}no" >&6
13656fi
13657
8c80d384
DE
13658fi
13659if test -z "$ac_cv_prog_STRIP"; then
13660 ac_ct_STRIP=$STRIP
13661 # Extract the first word of "strip", so it can be a program name with args.
13662set dummy strip; ac_word=$2
13663echo "$as_me:$LINENO: checking for $ac_word" >&5
13664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13665if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13667else
13668 if test -n "$ac_ct_STRIP"; then
13669 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13670else
13671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13672for as_dir in $PATH
13673do
13674 IFS=$as_save_IFS
13675 test -z "$as_dir" && as_dir=.
13676 for ac_exec_ext in '' $ac_executable_extensions; do
13677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13678 ac_cv_prog_ac_ct_STRIP="strip"
13679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13680 break 2
13681 fi
13682done
13683done
13684
13685 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
13686fi
13687fi
13688ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13689if test -n "$ac_ct_STRIP"; then
13690 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13691echo "${ECHO_T}$ac_ct_STRIP" >&6
13692else
13693 echo "$as_me:$LINENO: result: no" >&5
13694echo "${ECHO_T}no" >&6
13695fi
13696
13697 STRIP=$ac_ct_STRIP
13698else
13699 STRIP="$ac_cv_prog_STRIP"
13700fi
13701
13702
13703if test "$wxUSE_WINE" = "yes"; then
13704 if test -n "$ac_tool_prefix"; then
13705 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
13706set dummy ${ac_tool_prefix}wrc; ac_word=$2
13707echo "$as_me:$LINENO: checking for $ac_word" >&5
13708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13709if test "${ac_cv_prog_RESCOMP+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13711else
13712 if test -n "$RESCOMP"; then
13713 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13714else
13715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13716for as_dir in $PATH
13717do
13718 IFS=$as_save_IFS
13719 test -z "$as_dir" && as_dir=.
13720 for ac_exec_ext in '' $ac_executable_extensions; do
13721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13722 ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc"
13723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13724 break 2
13725 fi
13726done
13727done
13728
13729fi
13730fi
13731RESCOMP=$ac_cv_prog_RESCOMP
13732if test -n "$RESCOMP"; then
13733 echo "$as_me:$LINENO: result: $RESCOMP" >&5
13734echo "${ECHO_T}$RESCOMP" >&6
13735else
13736 echo "$as_me:$LINENO: result: no" >&5
13737echo "${ECHO_T}no" >&6
13738fi
13739
13740fi
13741if test -z "$ac_cv_prog_RESCOMP"; then
13742 ac_ct_RESCOMP=$RESCOMP
13743 # Extract the first word of "wrc", so it can be a program name with args.
13744set dummy wrc; ac_word=$2
13745echo "$as_me:$LINENO: checking for $ac_word" >&5
13746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13747if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13749else
13750 if test -n "$ac_ct_RESCOMP"; then
13751 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
13752else
13753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754for as_dir in $PATH
13755do
13756 IFS=$as_save_IFS
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
13759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13760 ac_cv_prog_ac_ct_RESCOMP="wrc"
13761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13762 break 2
13763 fi
13764done
13765done
13766
13767fi
13768fi
13769ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
13770if test -n "$ac_ct_RESCOMP"; then
13771 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
13772echo "${ECHO_T}$ac_ct_RESCOMP" >&6
13773else
13774 echo "$as_me:$LINENO: result: no" >&5
13775echo "${ECHO_T}no" >&6
13776fi
13777
13778 RESCOMP=$ac_ct_RESCOMP
13779else
13780 RESCOMP="$ac_cv_prog_RESCOMP"
13781fi
13782
13783else
13784 case "${host}" in
13785 *-*-cygwin* | *-*-mingw32* )
13786 if test -n "$ac_tool_prefix"; then
13787 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13788set dummy ${ac_tool_prefix}windres; ac_word=$2
13789echo "$as_me:$LINENO: checking for $ac_word" >&5
13790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13791if test "${ac_cv_prog_RESCOMP+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13793else
13794 if test -n "$RESCOMP"; then
13795 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13796else
13797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798for as_dir in $PATH
13799do
13800 IFS=$as_save_IFS
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
13803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804 ac_cv_prog_RESCOMP="${ac_tool_prefix}windres"
13805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 break 2
13807 fi
13808done
13809done
13810
13811fi
13812fi
13813RESCOMP=$ac_cv_prog_RESCOMP
13814if test -n "$RESCOMP"; then
13815 echo "$as_me:$LINENO: result: $RESCOMP" >&5
13816echo "${ECHO_T}$RESCOMP" >&6
13817else
13818 echo "$as_me:$LINENO: result: no" >&5
13819echo "${ECHO_T}no" >&6
13820fi
13821
13822fi
13823if test -z "$ac_cv_prog_RESCOMP"; then
13824 ac_ct_RESCOMP=$RESCOMP
13825 # Extract the first word of "windres", so it can be a program name with args.
13826set dummy windres; ac_word=$2
13827echo "$as_me:$LINENO: checking for $ac_word" >&5
13828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13829if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831else
13832 if test -n "$ac_ct_RESCOMP"; then
13833 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
13834else
13835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13836for as_dir in $PATH
13837do
13838 IFS=$as_save_IFS
13839 test -z "$as_dir" && as_dir=.
13840 for ac_exec_ext in '' $ac_executable_extensions; do
13841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13842 ac_cv_prog_ac_ct_RESCOMP="windres"
13843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13844 break 2
13845 fi
13846done
13847done
13848
13849fi
13850fi
13851ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
13852if test -n "$ac_ct_RESCOMP"; then
13853 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
13854echo "${ECHO_T}$ac_ct_RESCOMP" >&6
13855else
13856 echo "$as_me:$LINENO: result: no" >&5
13857echo "${ECHO_T}no" >&6
13858fi
13859
13860 RESCOMP=$ac_ct_RESCOMP
13861else
13862 RESCOMP="$ac_cv_prog_RESCOMP"
13863fi
13864
13865 if test -n "$ac_tool_prefix"; then
13866 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13867set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13868echo "$as_me:$LINENO: checking for $ac_word" >&5
13869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13870if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872else
13873 if test -n "$DLLTOOL"; then
13874 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13875else
13876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13877for as_dir in $PATH
13878do
13879 IFS=$as_save_IFS
13880 test -z "$as_dir" && as_dir=.
13881 for ac_exec_ext in '' $ac_executable_extensions; do
13882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13883 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13885 break 2
13886 fi
13887done
13888done
13889
13890fi
13891fi
13892DLLTOOL=$ac_cv_prog_DLLTOOL
13893if test -n "$DLLTOOL"; then
13894 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13895echo "${ECHO_T}$DLLTOOL" >&6
13896else
13897 echo "$as_me:$LINENO: result: no" >&5
13898echo "${ECHO_T}no" >&6
13899fi
13900
13901fi
13902if test -z "$ac_cv_prog_DLLTOOL"; then
13903 ac_ct_DLLTOOL=$DLLTOOL
13904 # Extract the first word of "dlltool", so it can be a program name with args.
13905set dummy dlltool; ac_word=$2
13906echo "$as_me:$LINENO: checking for $ac_word" >&5
13907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13908if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13910else
13911 if test -n "$ac_ct_DLLTOOL"; then
13912 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13913else
13914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13915for as_dir in $PATH
13916do
13917 IFS=$as_save_IFS
13918 test -z "$as_dir" && as_dir=.
13919 for ac_exec_ext in '' $ac_executable_extensions; do
13920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13921 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13923 break 2
13924 fi
13925done
13926done
13927
13928fi
13929fi
13930ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13931if test -n "$ac_ct_DLLTOOL"; then
13932 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13933echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13934else
13935 echo "$as_me:$LINENO: result: no" >&5
13936echo "${ECHO_T}no" >&6
13937fi
13938
13939 DLLTOOL=$ac_ct_DLLTOOL
13940else
13941 DLLTOOL="$ac_cv_prog_DLLTOOL"
13942fi
13943
13944 ;;
13945 esac
13946fi
a848cd7e
SC
13947
13948echo "$as_me:$LINENO: checking if make is GNU make" >&5
13949echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13950if test "${wx_cv_prog_makeisgnu+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13952else
13953
13954 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13955 egrep -s GNU > /dev/null); then
13956 wx_cv_prog_makeisgnu="yes"
13957 else
13958 wx_cv_prog_makeisgnu="no"
13959 fi
13960
13961fi
13962echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13963echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13964
13965if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13966 IF_GNU_MAKE=""
13967else
13968 IF_GNU_MAKE="#"
13969fi
13970
13971
13972
13973if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13974echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13975echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13976if test "${wx_cv_prog_makevpath+set}" = set; then
13977 echo $ECHO_N "(cached) $ECHO_C" >&6
13978else
13979
13980cat - << EOF > confMake
13981check : file
13982 cp \$? \$@
13983 cp \$? final_file
13984EOF
13985
13986if test ! -d sub ; then
13987 mkdir sub
13988fi
13989echo dummy > sub/file
13990${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13991RESULT=$?
13992rm -f sub/file check final_file confMake
13993rmdir sub
13994if test "$RESULT" = 0; then
13995 wx_cv_prog_makevpath="yes"
13996else
13997 wx_cv_prog_makevpath="no"
13998fi
13999
14000fi
14001echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14002echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14003
14004if test "x$wx_cv_prog_makevpath" != "xyes"; then
14005{ { echo "$as_me:$LINENO: error:
14006You need a make-utility that is able to use the variable
14007VPATH correctly.
14008If your version of make does not support VPATH correctly,
14009please install GNU-make (possibly as gmake), and start
14010configure with the following command:
14011export MAKE=gmake; ./configure for sh-type shells
14012setenv MAKE gmake; ./configure for csh-type shells
14013Also please do remember to use gmake in this case every time
14014you are trying to compile.
14015" >&5
14016echo "$as_me: error:
14017You need a make-utility that is able to use the variable
14018VPATH correctly.
14019If your version of make does not support VPATH correctly,
14020please install GNU-make (possibly as gmake), and start
14021configure with the following command:
14022export MAKE=gmake; ./configure for sh-type shells
14023setenv MAKE gmake; ./configure for csh-type shells
14024Also please do remember to use gmake in this case every time
14025you are trying to compile.
14026" >&2;}
14027 { (exit 1); exit 1; }; }
14028fi fi
14029echo "$as_me:$LINENO: checking whether ln -s works" >&5
14030echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14031LN_S=$as_ln_s
14032if test "$LN_S" = "ln -s"; then
14033 echo "$as_me:$LINENO: result: yes" >&5
14034echo "${ECHO_T}yes" >&6
14035else
14036 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14037echo "${ECHO_T}no, using $LN_S" >&6
14038fi
14039
14040
14041
2113bc77 14042if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
14043 CXXFLAGS="$CXXFLAGS -qunique"
14044fi
14045
14046
4d7ec9f1
DE
14047case "${host}" in
14048 powerpc-*-darwin* )
14049 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14050echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14051 cat >conftest.$ac_ext <<_ACEOF
14052/* confdefs.h. */
14053_ACEOF
14054cat confdefs.h >>conftest.$ac_ext
14055cat >>conftest.$ac_ext <<_ACEOF
14056/* end confdefs.h. */
14057
14058int
14059main ()
14060{
14061#ifndef __POWERPC__
14062 choke me for lack of PowerPC
14063#endif
14064
14065 ;
14066 return 0;
14067}
14068_ACEOF
14069rm -f conftest.$ac_objext
14070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14071 (eval $ac_compile) 2>conftest.er1
14072 ac_status=$?
14073 grep -v '^ *+' conftest.er1 >conftest.err
14074 rm -f conftest.er1
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } &&
6ebeb4c7 14078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14080 (eval $ac_try) 2>&5
14081 ac_status=$?
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); }; } &&
14084 { ac_try='test -s conftest.$ac_objext'
14085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14087 ac_status=$?
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }; then
14090 echo "$as_me:$LINENO: result: yes" >&5
14091echo "${ECHO_T}yes" >&6
14092else
14093 echo "$as_me: failed program was:" >&5
14094sed 's/^/| /' conftest.$ac_ext >&5
14095
14096echo "$as_me:$LINENO: result: no" >&5
14097echo "${ECHO_T}no" >&6
14098 cat >>confdefs.h <<\_ACEOF
14099#define __POWERPC__ 1
14100_ACEOF
14101
14102
14103fi
14104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14105 ;;
14106esac
14107
14108case "${host}" in
14109 *-*-darwin* )
4d7ec9f1
DE
14110 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14111echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14112 cat >conftest.$ac_ext <<_ACEOF
14113/* confdefs.h. */
14114_ACEOF
14115cat confdefs.h >>conftest.$ac_ext
14116cat >>conftest.$ac_ext <<_ACEOF
14117/* end confdefs.h. */
14118#include <CoreFoundation/CFBase.h>
14119
14120int
14121main ()
14122{
14123
14124 ;
14125 return 0;
14126}
14127_ACEOF
14128rm -f conftest.$ac_objext
14129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14130 (eval $ac_compile) 2>conftest.er1
14131 ac_status=$?
14132 grep -v '^ *+' conftest.er1 >conftest.err
14133 rm -f conftest.er1
14134 cat conftest.err >&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } &&
6ebeb4c7 14137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139 (eval $ac_try) 2>&5
14140 ac_status=$?
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; } &&
14143 { ac_try='test -s conftest.$ac_objext'
14144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145 (eval $ac_try) 2>&5
14146 ac_status=$?
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; }; then
14149 echo "$as_me:$LINENO: result: yes" >&5
14150echo "${ECHO_T}yes" >&6
14151else
14152 echo "$as_me: failed program was:" >&5
14153sed 's/^/| /' conftest.$ac_ext >&5
14154
14155echo "$as_me:$LINENO: result: no" >&5
14156echo "${ECHO_T}no" >&6
14157 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14158echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14159 cat >conftest.$ac_ext <<_ACEOF
14160/* confdefs.h. */
14161_ACEOF
14162cat confdefs.h >>conftest.$ac_ext
14163cat >>conftest.$ac_ext <<_ACEOF
14164/* end confdefs.h. */
14165#define __CF_USE_FRAMEWORK_INCLUDES__
14166#include <CoreFoundation/CFBase.h>
14167
14168int
14169main ()
14170{
14171
14172 ;
14173 return 0;
14174}
14175_ACEOF
14176rm -f conftest.$ac_objext
14177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14178 (eval $ac_compile) 2>conftest.er1
14179 ac_status=$?
14180 grep -v '^ *+' conftest.er1 >conftest.err
14181 rm -f conftest.er1
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } &&
6ebeb4c7 14185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14188 ac_status=$?
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; } &&
14191 { ac_try='test -s conftest.$ac_objext'
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14194 ac_status=$?
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; }; then
14197 echo "$as_me:$LINENO: result: yes" >&5
14198echo "${ECHO_T}yes" >&6
14199 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
14200else
14201 echo "$as_me: failed program was:" >&5
14202sed 's/^/| /' conftest.$ac_ext >&5
14203
14204{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
14205See \`config.log' for more details." >&5
14206echo "$as_me: error: no. CoreFoundation not available.
14207See \`config.log' for more details." >&2;}
14208 { (exit 1); exit 1; }; }
14209
14210fi
14211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14212
14213
14214fi
14215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14216 ;;
14217esac
14218
a848cd7e
SC
14219case "${host}" in
14220 *-pc-os2_emx | *-pc-os2-emx )
14221 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
14222 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
14223echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
14224if test "${ac_cv_lib_cExt_drand48+set}" = set; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14226else
14227 ac_check_lib_save_LIBS=$LIBS
14228LIBS="-lcExt $LIBS"
14229cat >conftest.$ac_ext <<_ACEOF
14230/* confdefs.h. */
14231_ACEOF
14232cat confdefs.h >>conftest.$ac_ext
14233cat >>conftest.$ac_ext <<_ACEOF
14234/* end confdefs.h. */
14235
14236/* Override any gcc2 internal prototype to avoid an error. */
14237#ifdef __cplusplus
14238extern "C"
14239#endif
14240/* We use char because int might match the return type of a gcc2
14241 builtin and then its argument prototype would still apply. */
14242char drand48 ();
14243int
14244main ()
14245{
14246drand48 ();
14247 ;
14248 return 0;
14249}
14250_ACEOF
14251rm -f conftest.$ac_objext conftest$ac_exeext
14252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14253 (eval $ac_link) 2>conftest.er1
a848cd7e 14254 ac_status=$?
ac1cb8d3
VS
14255 grep -v '^ *+' conftest.er1 >conftest.err
14256 rm -f conftest.er1
14257 cat conftest.err >&5
a848cd7e
SC
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } &&
6ebeb4c7 14260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; } &&
14266 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14269 ac_status=$?
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14272 ac_cv_lib_cExt_drand48=yes
14273else
14274 echo "$as_me: failed program was:" >&5
14275sed 's/^/| /' conftest.$ac_ext >&5
14276
14277ac_cv_lib_cExt_drand48=no
14278fi
ac1cb8d3
VS
14279rm -f conftest.err conftest.$ac_objext \
14280 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14281LIBS=$ac_check_lib_save_LIBS
14282fi
14283echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
14284echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
14285if test $ac_cv_lib_cExt_drand48 = yes; then
14286 LIBS="$LIBS -lcExt"
14287fi
14288
14289 else
14290 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
14291 fi
69120ee4
VZ
14292 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
14293echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
14294if test "${wx_cv_gccversion+set}" = set; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14296else
14297
391a765e
VS
14298 if test "$cross_compiling" = yes; then
14299 wx_cv_gccversion="EMX2"
14300
14301else
14302 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
14303/* confdefs.h. */
14304_ACEOF
14305cat confdefs.h >>conftest.$ac_ext
14306cat >>conftest.$ac_ext <<_ACEOF
14307/* end confdefs.h. */
14308
391a765e 14309 #include <stdio.h>
a848cd7e 14310
391a765e
VS
14311 int main()
14312 {
14313 FILE *f=fopen("conftestval", "w");
14314 if (!f) exit(1);
14315 fprintf(f,
a848cd7e 14316 #if (__GNUC__ < 3)
391a765e
VS
14317 "EMX2"
14318 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
14319 "EMX3"
14320 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
14321 "Innotek5"
14322 #else
14323 "Innotek6"
a848cd7e 14324 #endif
391a765e
VS
14325 );
14326 exit(0);
14327 }
a848cd7e 14328
a848cd7e 14329_ACEOF
391a765e
VS
14330rm -f conftest$ac_exeext
14331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14332 (eval $ac_link) 2>&5
ac1cb8d3
VS
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 14335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14338 ac_status=$?
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
391a765e 14341 wx_cv_gccversion=`cat conftestval`
a848cd7e 14342else
391a765e
VS
14343 echo "$as_me: program exited with status $ac_status" >&5
14344echo "$as_me: failed program was:" >&5
a848cd7e
SC
14345sed 's/^/| /' conftest.$ac_ext >&5
14346
391a765e
VS
14347( exit $ac_status )
14348wx_cv_gccversion="EMX2"
a848cd7e 14349fi
391a765e 14350rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 14351fi
a848cd7e
SC
14352
14353fi
14354echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
14355echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 14356 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
14357 LIBS="$LIBS -lstdcpp"
14358 LDFLAGS="$LDFLAGS -Zsysv-signals"
14359 else
391a765e 14360 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 14361 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
14362 LDFLAGS="$LDFLAGS -Zsysv-signals"
14363 else
14364 LIBS="$LIBS -lstdc++"
14365 fi
14366 fi
94acd38e
DE
14367 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
14368 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
14369echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
14370 wxUSE_OMF=yes
2da0c077 14371 enable_omf=yes
a848cd7e
SC
14372 fi
14373 ;;
14374 *)
14375
14376
14377
14378 ac_ext=cc
14379ac_cpp='$CXXCPP $CPPFLAGS'
14380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14381ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14383
14384
95986553 14385 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
14386echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
14387if test "${ac_cv_string_strcasecmp+set}" = set; then
14388 echo $ECHO_N "(cached) $ECHO_C" >&6
14389else
14390
14391 cat >conftest.$ac_ext <<_ACEOF
14392/* confdefs.h. */
14393_ACEOF
14394cat confdefs.h >>conftest.$ac_ext
14395cat >>conftest.$ac_ext <<_ACEOF
14396/* end confdefs.h. */
14397
14398 #include <string.h>
14399
14400int
14401main ()
14402{
14403
14404 strcasecmp("foo", "bar");
14405
14406 ;
14407 return 0;
14408}
14409_ACEOF
14410rm -f conftest.$ac_objext conftest$ac_exeext
14411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14412 (eval $ac_link) 2>conftest.er1
a848cd7e 14413 ac_status=$?
ac1cb8d3
VS
14414 grep -v '^ *+' conftest.er1 >conftest.err
14415 rm -f conftest.er1
14416 cat conftest.err >&5
a848cd7e
SC
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
6ebeb4c7 14419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 ac_cv_string_strcasecmp=yes
14432else
14433 echo "$as_me: failed program was:" >&5
14434sed 's/^/| /' conftest.$ac_ext >&5
14435
14436ac_cv_string_strcasecmp=no
14437
14438fi
ac1cb8d3
VS
14439rm -f conftest.err conftest.$ac_objext \
14440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14441
14442fi
14443echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
14444echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
14445
14446 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
14447 cat >>confdefs.h <<\_ACEOF
14448#define HAVE_STRCASECMP_IN_STRING_H 1
14449_ACEOF
14450
14451 else
14452 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
14453echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
14454if test "${ac_cv_strings_strcasecmp+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14456else
14457
14458 cat >conftest.$ac_ext <<_ACEOF
14459/* confdefs.h. */
14460_ACEOF
14461cat confdefs.h >>conftest.$ac_ext
14462cat >>conftest.$ac_ext <<_ACEOF
14463/* end confdefs.h. */
14464
14465 #include <strings.h>
14466
14467int
14468main ()
14469{
14470
14471 strcasecmp("foo", "bar");
14472
14473 ;
14474 return 0;
14475}
14476_ACEOF
14477rm -f conftest.$ac_objext conftest$ac_exeext
14478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14479 (eval $ac_link) 2>conftest.er1
a848cd7e 14480 ac_status=$?
ac1cb8d3
VS
14481 grep -v '^ *+' conftest.er1 >conftest.err
14482 rm -f conftest.er1
14483 cat conftest.err >&5
a848cd7e
SC
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
6ebeb4c7 14486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14489 ac_status=$?
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; } &&
14492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 ac_cv_strings_strcasecmp=yes
14499else
14500 echo "$as_me: failed program was:" >&5
14501sed 's/^/| /' conftest.$ac_ext >&5
14502
14503ac_cv_strings_strcasecmp=no
14504
14505fi
ac1cb8d3
VS
14506rm -f conftest.err conftest.$ac_objext \
14507 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14508
14509fi
14510echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
14511echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
14512
0c3c69fc 14513 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
14514 cat >>confdefs.h <<\_ACEOF
14515#define HAVE_STRCASECMP_IN_STRINGS_H 1
14516_ACEOF
14517
14518 else
14519 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
14520echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
14521 { (exit 1); exit 1; }; }
14522 fi
14523 fi
14524
14525 ac_ext=c
14526ac_cpp='$CPP $CPPFLAGS'
14527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14529ac_compiler_gnu=$ac_cv_c_compiler_gnu
14530
14531 ;;
14532esac
14533
14534
14535echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14536echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14537if test "${ac_cv_header_stdc+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14539else
14540 cat >conftest.$ac_ext <<_ACEOF
14541/* confdefs.h. */
14542_ACEOF
14543cat confdefs.h >>conftest.$ac_ext
14544cat >>conftest.$ac_ext <<_ACEOF
14545/* end confdefs.h. */
14546#include <stdlib.h>
14547#include <stdarg.h>
14548#include <string.h>
14549#include <float.h>
14550
14551int
14552main ()
14553{
14554
14555 ;
14556 return 0;
14557}
14558_ACEOF
14559rm -f conftest.$ac_objext
14560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14561 (eval $ac_compile) 2>conftest.er1
a848cd7e 14562 ac_status=$?
ac1cb8d3
VS
14563 grep -v '^ *+' conftest.er1 >conftest.err
14564 rm -f conftest.er1
14565 cat conftest.err >&5
a848cd7e
SC
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } &&
6ebeb4c7 14568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14571 ac_status=$?
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; } &&
14574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14577 ac_status=$?
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); }; }; then
14580 ac_cv_header_stdc=yes
14581else
14582 echo "$as_me: failed program was:" >&5
14583sed 's/^/| /' conftest.$ac_ext >&5
14584
14585ac_cv_header_stdc=no
14586fi
ac1cb8d3 14587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14588
14589if test $ac_cv_header_stdc = yes; then
14590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14591 cat >conftest.$ac_ext <<_ACEOF
14592/* confdefs.h. */
14593_ACEOF
14594cat confdefs.h >>conftest.$ac_ext
14595cat >>conftest.$ac_ext <<_ACEOF
14596/* end confdefs.h. */
14597#include <string.h>
14598
14599_ACEOF
14600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14601 $EGREP "memchr" >/dev/null 2>&1; then
14602 :
14603else
14604 ac_cv_header_stdc=no
14605fi
14606rm -f conftest*
14607
14608fi
14609
14610if test $ac_cv_header_stdc = yes; then
14611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14612 cat >conftest.$ac_ext <<_ACEOF
14613/* confdefs.h. */
14614_ACEOF
14615cat confdefs.h >>conftest.$ac_ext
14616cat >>conftest.$ac_ext <<_ACEOF
14617/* end confdefs.h. */
14618#include <stdlib.h>
14619
14620_ACEOF
14621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14622 $EGREP "free" >/dev/null 2>&1; then
14623 :
14624else
14625 ac_cv_header_stdc=no
14626fi
14627rm -f conftest*
14628
14629fi
14630
14631if test $ac_cv_header_stdc = yes; then
14632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14633 if test "$cross_compiling" = yes; then
14634 :
14635else
14636 cat >conftest.$ac_ext <<_ACEOF
14637/* confdefs.h. */
14638_ACEOF
14639cat confdefs.h >>conftest.$ac_ext
14640cat >>conftest.$ac_ext <<_ACEOF
14641/* end confdefs.h. */
14642#include <ctype.h>
14643#if ((' ' & 0x0FF) == 0x020)
14644# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14645# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14646#else
14647# define ISLOWER(c) \
ac1cb8d3
VS
14648 (('a' <= (c) && (c) <= 'i') \
14649 || ('j' <= (c) && (c) <= 'r') \
14650 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
14651# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14652#endif
14653
14654#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14655int
14656main ()
14657{
14658 int i;
14659 for (i = 0; i < 256; i++)
14660 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 14661 || toupper (i) != TOUPPER (i))
a848cd7e
SC
14662 exit(2);
14663 exit (0);
14664}
14665_ACEOF
14666rm -f conftest$ac_exeext
14667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14668 (eval $ac_link) 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14673 (eval $ac_try) 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }; then
14677 :
14678else
14679 echo "$as_me: program exited with status $ac_status" >&5
14680echo "$as_me: failed program was:" >&5
14681sed 's/^/| /' conftest.$ac_ext >&5
14682
14683( exit $ac_status )
14684ac_cv_header_stdc=no
14685fi
ac1cb8d3 14686rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14687fi
14688fi
14689fi
14690echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14691echo "${ECHO_T}$ac_cv_header_stdc" >&6
14692if test $ac_cv_header_stdc = yes; then
14693
14694cat >>confdefs.h <<\_ACEOF
14695#define STDC_HEADERS 1
14696_ACEOF
14697
14698fi
14699
14700# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 14711 inttypes.h stdint.h unistd.h
a848cd7e
SC
14712do
14713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14714echo "$as_me:$LINENO: checking for $ac_header" >&5
14715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14716if eval "test \"\${$as_ac_Header+set}\" = set"; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14718else
14719 cat >conftest.$ac_ext <<_ACEOF
14720/* confdefs.h. */
14721_ACEOF
14722cat confdefs.h >>conftest.$ac_ext
14723cat >>conftest.$ac_ext <<_ACEOF
14724/* end confdefs.h. */
14725$ac_includes_default
14726
14727#include <$ac_header>
14728_ACEOF
14729rm -f conftest.$ac_objext
14730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14731 (eval $ac_compile) 2>conftest.er1
a848cd7e 14732 ac_status=$?
ac1cb8d3
VS
14733 grep -v '^ *+' conftest.er1 >conftest.err
14734 rm -f conftest.er1
14735 cat conftest.err >&5
a848cd7e
SC
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } &&
6ebeb4c7 14738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; } &&
14744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14747 ac_status=$?
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; }; then
14750 eval "$as_ac_Header=yes"
14751else
14752 echo "$as_me: failed program was:" >&5
14753sed 's/^/| /' conftest.$ac_ext >&5
14754
14755eval "$as_ac_Header=no"
14756fi
ac1cb8d3 14757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14758fi
14759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14760echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14761if test `eval echo '${'$as_ac_Header'}'` = yes; then
14762 cat >>confdefs.h <<_ACEOF
14763#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14764_ACEOF
14765
14766fi
14767
14768done
14769
14770
14771
14772for ac_header in stdlib.h
14773do
14774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14775if eval "test \"\${$as_ac_Header+set}\" = set"; then
14776 echo "$as_me:$LINENO: checking for $ac_header" >&5
14777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14778if eval "test \"\${$as_ac_Header+set}\" = set"; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14780fi
14781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14783else
14784 # Is the header compilable?
14785echo "$as_me:$LINENO: checking $ac_header usability" >&5
14786echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14787cat >conftest.$ac_ext <<_ACEOF
14788/* confdefs.h. */
14789_ACEOF
14790cat confdefs.h >>conftest.$ac_ext
14791cat >>conftest.$ac_ext <<_ACEOF
14792/* end confdefs.h. */
14793$ac_includes_default
14794#include <$ac_header>
14795_ACEOF
14796rm -f conftest.$ac_objext
14797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14798 (eval $ac_compile) 2>conftest.er1
a848cd7e 14799 ac_status=$?
ac1cb8d3
VS
14800 grep -v '^ *+' conftest.er1 >conftest.err
14801 rm -f conftest.er1
14802 cat conftest.err >&5
a848cd7e
SC
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } &&
6ebeb4c7 14805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14807 (eval $ac_try) 2>&5
14808 ac_status=$?
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; } &&
14811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; }; then
14817 ac_header_compiler=yes
14818else
14819 echo "$as_me: failed program was:" >&5
14820sed 's/^/| /' conftest.$ac_ext >&5
14821
14822ac_header_compiler=no
14823fi
ac1cb8d3 14824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14825echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14826echo "${ECHO_T}$ac_header_compiler" >&6
14827
14828# Is the header present?
14829echo "$as_me:$LINENO: checking $ac_header presence" >&5
14830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14831cat >conftest.$ac_ext <<_ACEOF
14832/* confdefs.h. */
14833_ACEOF
14834cat confdefs.h >>conftest.$ac_ext
14835cat >>conftest.$ac_ext <<_ACEOF
14836/* end confdefs.h. */
14837#include <$ac_header>
14838_ACEOF
14839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14841 ac_status=$?
14842 grep -v '^ *+' conftest.er1 >conftest.err
14843 rm -f conftest.er1
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } >/dev/null; then
14847 if test -s conftest.err; then
14848 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14850 else
14851 ac_cpp_err=
14852 fi
14853else
14854 ac_cpp_err=yes
14855fi
14856if test -z "$ac_cpp_err"; then
14857 ac_header_preproc=yes
14858else
14859 echo "$as_me: failed program was:" >&5
14860sed 's/^/| /' conftest.$ac_ext >&5
14861
14862 ac_header_preproc=no
14863fi
14864rm -f conftest.err conftest.$ac_ext
14865echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14866echo "${ECHO_T}$ac_header_preproc" >&6
14867
14868# So? What about this header?
ac1cb8d3
VS
14869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14870 yes:no: )
a848cd7e
SC
14871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14872echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14874echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14875 ac_header_preproc=yes
a848cd7e 14876 ;;
ac1cb8d3 14877 no:yes:* )
a848cd7e
SC
14878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14881echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14883echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14885echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14889echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14890 (
14891 cat <<\_ASBOX
ac1cb8d3
VS
14892## ----------------------------------------- ##
14893## Report this to wx-dev@lists.wxwidgets.org ##
14894## ----------------------------------------- ##
a848cd7e
SC
14895_ASBOX
14896 ) |
14897 sed "s/^/$as_me: WARNING: /" >&2
14898 ;;
14899esac
14900echo "$as_me:$LINENO: checking for $ac_header" >&5
14901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14902if eval "test \"\${$as_ac_Header+set}\" = set"; then
14903 echo $ECHO_N "(cached) $ECHO_C" >&6
14904else
ac1cb8d3 14905 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14906fi
14907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14909
14910fi
14911if test `eval echo '${'$as_ac_Header'}'` = yes; then
14912 cat >>confdefs.h <<_ACEOF
14913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14914_ACEOF
14915
14916fi
14917
14918done
14919
14920
14921for ac_header in malloc.h
14922do
14923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14924if eval "test \"\${$as_ac_Header+set}\" = set"; then
14925 echo "$as_me:$LINENO: checking for $ac_header" >&5
14926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14927if eval "test \"\${$as_ac_Header+set}\" = set"; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14929fi
14930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14932else
14933 # Is the header compilable?
14934echo "$as_me:$LINENO: checking $ac_header usability" >&5
14935echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14936cat >conftest.$ac_ext <<_ACEOF
14937/* confdefs.h. */
14938_ACEOF
14939cat confdefs.h >>conftest.$ac_ext
14940cat >>conftest.$ac_ext <<_ACEOF
14941/* end confdefs.h. */
14942$ac_includes_default
14943#include <$ac_header>
14944_ACEOF
14945rm -f conftest.$ac_objext
14946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14947 (eval $ac_compile) 2>conftest.er1
a848cd7e 14948 ac_status=$?
ac1cb8d3
VS
14949 grep -v '^ *+' conftest.er1 >conftest.err
14950 rm -f conftest.er1
14951 cat conftest.err >&5
a848cd7e
SC
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } &&
6ebeb4c7 14954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; } &&
14960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14963 ac_status=$?
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; }; then
14966 ac_header_compiler=yes
14967else
14968 echo "$as_me: failed program was:" >&5
14969sed 's/^/| /' conftest.$ac_ext >&5
14970
14971ac_header_compiler=no
14972fi
ac1cb8d3 14973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14975echo "${ECHO_T}$ac_header_compiler" >&6
14976
14977# Is the header present?
14978echo "$as_me:$LINENO: checking $ac_header presence" >&5
14979echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14980cat >conftest.$ac_ext <<_ACEOF
14981/* confdefs.h. */
14982_ACEOF
14983cat confdefs.h >>conftest.$ac_ext
14984cat >>conftest.$ac_ext <<_ACEOF
14985/* end confdefs.h. */
14986#include <$ac_header>
14987_ACEOF
14988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14990 ac_status=$?
14991 grep -v '^ *+' conftest.er1 >conftest.err
14992 rm -f conftest.er1
14993 cat conftest.err >&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } >/dev/null; then
14996 if test -s conftest.err; then
14997 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14999 else
15000 ac_cpp_err=
15001 fi
15002else
15003 ac_cpp_err=yes
15004fi
15005if test -z "$ac_cpp_err"; then
15006 ac_header_preproc=yes
15007else
15008 echo "$as_me: failed program was:" >&5
15009sed 's/^/| /' conftest.$ac_ext >&5
15010
15011 ac_header_preproc=no
15012fi
15013rm -f conftest.err conftest.$ac_ext
15014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15015echo "${ECHO_T}$ac_header_preproc" >&6
15016
15017# So? What about this header?
ac1cb8d3
VS
15018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15019 yes:no: )
a848cd7e
SC
15020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15023echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15024 ac_header_preproc=yes
a848cd7e 15025 ;;
ac1cb8d3 15026 no:yes:* )
a848cd7e
SC
15027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15028echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15030echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15032echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15034echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15038echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15039 (
15040 cat <<\_ASBOX
ac1cb8d3
VS
15041## ----------------------------------------- ##
15042## Report this to wx-dev@lists.wxwidgets.org ##
15043## ----------------------------------------- ##
a848cd7e
SC
15044_ASBOX
15045 ) |
15046 sed "s/^/$as_me: WARNING: /" >&2
15047 ;;
15048esac
15049echo "$as_me:$LINENO: checking for $ac_header" >&5
15050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15051if eval "test \"\${$as_ac_Header+set}\" = set"; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15053else
ac1cb8d3 15054 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15055fi
15056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15057echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15058
15059fi
15060if test `eval echo '${'$as_ac_Header'}'` = yes; then
15061 cat >>confdefs.h <<_ACEOF
15062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15063_ACEOF
15064
15065fi
15066
15067done
15068
15069
15070for ac_header in unistd.h
15071do
15072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15073if eval "test \"\${$as_ac_Header+set}\" = set"; then
15074 echo "$as_me:$LINENO: checking for $ac_header" >&5
15075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15076if eval "test \"\${$as_ac_Header+set}\" = set"; then
15077 echo $ECHO_N "(cached) $ECHO_C" >&6
15078fi
15079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15081else
15082 # Is the header compilable?
15083echo "$as_me:$LINENO: checking $ac_header usability" >&5
15084echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15085cat >conftest.$ac_ext <<_ACEOF
15086/* confdefs.h. */
15087_ACEOF
15088cat confdefs.h >>conftest.$ac_ext
15089cat >>conftest.$ac_ext <<_ACEOF
15090/* end confdefs.h. */
15091$ac_includes_default
15092#include <$ac_header>
15093_ACEOF
15094rm -f conftest.$ac_objext
15095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15096 (eval $ac_compile) 2>conftest.er1
a848cd7e 15097 ac_status=$?
ac1cb8d3
VS
15098 grep -v '^ *+' conftest.er1 >conftest.err
15099 rm -f conftest.er1
15100 cat conftest.err >&5
a848cd7e
SC
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } &&
6ebeb4c7 15103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15106 ac_status=$?
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; } &&
15109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_header_compiler=yes
15116else
15117 echo "$as_me: failed program was:" >&5
15118sed 's/^/| /' conftest.$ac_ext >&5
15119
15120ac_header_compiler=no
15121fi
ac1cb8d3 15122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15123echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15124echo "${ECHO_T}$ac_header_compiler" >&6
15125
15126# Is the header present?
15127echo "$as_me:$LINENO: checking $ac_header presence" >&5
15128echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15129cat >conftest.$ac_ext <<_ACEOF
15130/* confdefs.h. */
15131_ACEOF
15132cat confdefs.h >>conftest.$ac_ext
15133cat >>conftest.$ac_ext <<_ACEOF
15134/* end confdefs.h. */
15135#include <$ac_header>
15136_ACEOF
15137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15139 ac_status=$?
15140 grep -v '^ *+' conftest.er1 >conftest.err
15141 rm -f conftest.er1
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } >/dev/null; then
15145 if test -s conftest.err; then
15146 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15148 else
15149 ac_cpp_err=
15150 fi
15151else
15152 ac_cpp_err=yes
15153fi
15154if test -z "$ac_cpp_err"; then
15155 ac_header_preproc=yes
15156else
15157 echo "$as_me: failed program was:" >&5
15158sed 's/^/| /' conftest.$ac_ext >&5
15159
15160 ac_header_preproc=no
15161fi
15162rm -f conftest.err conftest.$ac_ext
15163echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15164echo "${ECHO_T}$ac_header_preproc" >&6
15165
15166# So? What about this header?
ac1cb8d3
VS
15167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15168 yes:no: )
a848cd7e
SC
15169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15173 ac_header_preproc=yes
a848cd7e 15174 ;;
ac1cb8d3 15175 no:yes:* )
a848cd7e
SC
15176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15179echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15183echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15188 (
15189 cat <<\_ASBOX
ac1cb8d3
VS
15190## ----------------------------------------- ##
15191## Report this to wx-dev@lists.wxwidgets.org ##
15192## ----------------------------------------- ##
a848cd7e
SC
15193_ASBOX
15194 ) |
15195 sed "s/^/$as_me: WARNING: /" >&2
15196 ;;
15197esac
15198echo "$as_me:$LINENO: checking for $ac_header" >&5
15199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15200if eval "test \"\${$as_ac_Header+set}\" = set"; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15202else
ac1cb8d3 15203 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15204fi
15205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15207
15208fi
15209if test `eval echo '${'$as_ac_Header'}'` = yes; then
15210 cat >>confdefs.h <<_ACEOF
15211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15212_ACEOF
15213
15214fi
15215
15216done
15217
15218
15219for ac_header in wchar.h
15220do
15221as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15222if eval "test \"\${$as_ac_Header+set}\" = set"; then
15223 echo "$as_me:$LINENO: checking for $ac_header" >&5
15224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15225if eval "test \"\${$as_ac_Header+set}\" = set"; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15227fi
15228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15230else
15231 # Is the header compilable?
15232echo "$as_me:$LINENO: checking $ac_header usability" >&5
15233echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15234cat >conftest.$ac_ext <<_ACEOF
15235/* confdefs.h. */
15236_ACEOF
15237cat confdefs.h >>conftest.$ac_ext
15238cat >>conftest.$ac_ext <<_ACEOF
15239/* end confdefs.h. */
15240$ac_includes_default
15241#include <$ac_header>
15242_ACEOF
15243rm -f conftest.$ac_objext
15244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15245 (eval $ac_compile) 2>conftest.er1
a848cd7e 15246 ac_status=$?
ac1cb8d3
VS
15247 grep -v '^ *+' conftest.er1 >conftest.err
15248 rm -f conftest.er1
15249 cat conftest.err >&5
a848cd7e
SC
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } &&
6ebeb4c7 15252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; } &&
15258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15264 ac_header_compiler=yes
15265else
15266 echo "$as_me: failed program was:" >&5
15267sed 's/^/| /' conftest.$ac_ext >&5
15268
15269ac_header_compiler=no
15270fi
ac1cb8d3 15271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15272echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15273echo "${ECHO_T}$ac_header_compiler" >&6
15274
15275# Is the header present?
15276echo "$as_me:$LINENO: checking $ac_header presence" >&5
15277echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15278cat >conftest.$ac_ext <<_ACEOF
15279/* confdefs.h. */
15280_ACEOF
15281cat confdefs.h >>conftest.$ac_ext
15282cat >>conftest.$ac_ext <<_ACEOF
15283/* end confdefs.h. */
15284#include <$ac_header>
15285_ACEOF
15286if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15288 ac_status=$?
15289 grep -v '^ *+' conftest.er1 >conftest.err
15290 rm -f conftest.er1
15291 cat conftest.err >&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } >/dev/null; then
15294 if test -s conftest.err; then
15295 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15297 else
15298 ac_cpp_err=
15299 fi
15300else
15301 ac_cpp_err=yes
15302fi
15303if test -z "$ac_cpp_err"; then
15304 ac_header_preproc=yes
15305else
15306 echo "$as_me: failed program was:" >&5
15307sed 's/^/| /' conftest.$ac_ext >&5
15308
15309 ac_header_preproc=no
15310fi
15311rm -f conftest.err conftest.$ac_ext
15312echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15313echo "${ECHO_T}$ac_header_preproc" >&6
15314
15315# So? What about this header?
ac1cb8d3
VS
15316case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15317 yes:no: )
a848cd7e
SC
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15319echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15321echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15322 ac_header_preproc=yes
a848cd7e 15323 ;;
ac1cb8d3 15324 no:yes:* )
a848cd7e
SC
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15326echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15328echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15330echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15332echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15334echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15336echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15337 (
15338 cat <<\_ASBOX
ac1cb8d3
VS
15339## ----------------------------------------- ##
15340## Report this to wx-dev@lists.wxwidgets.org ##
15341## ----------------------------------------- ##
a848cd7e
SC
15342_ASBOX
15343 ) |
15344 sed "s/^/$as_me: WARNING: /" >&2
15345 ;;
15346esac
15347echo "$as_me:$LINENO: checking for $ac_header" >&5
15348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15349if eval "test \"\${$as_ac_Header+set}\" = set"; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15351else
ac1cb8d3 15352 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15353fi
15354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15355echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15356
15357fi
15358if test `eval echo '${'$as_ac_Header'}'` = yes; then
15359 cat >>confdefs.h <<_ACEOF
15360#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15361_ACEOF
15362
15363fi
15364
15365done
15366
15367
15368if test "$ac_cv_header_wchar_h" != "yes"; then
15369
15370for ac_header in wcstr.h
15371do
15372as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15373if eval "test \"\${$as_ac_Header+set}\" = set"; then
15374 echo "$as_me:$LINENO: checking for $ac_header" >&5
15375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15376if eval "test \"\${$as_ac_Header+set}\" = set"; then
15377 echo $ECHO_N "(cached) $ECHO_C" >&6
15378fi
15379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15381else
15382 # Is the header compilable?
15383echo "$as_me:$LINENO: checking $ac_header usability" >&5
15384echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15385cat >conftest.$ac_ext <<_ACEOF
15386/* confdefs.h. */
15387_ACEOF
15388cat confdefs.h >>conftest.$ac_ext
15389cat >>conftest.$ac_ext <<_ACEOF
15390/* end confdefs.h. */
15391$ac_includes_default
15392#include <$ac_header>
15393_ACEOF
15394rm -f conftest.$ac_objext
15395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15396 (eval $ac_compile) 2>conftest.er1
a848cd7e 15397 ac_status=$?
ac1cb8d3
VS
15398 grep -v '^ *+' conftest.er1 >conftest.err
15399 rm -f conftest.er1
15400 cat conftest.err >&5
a848cd7e
SC
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } &&
6ebeb4c7 15403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; } &&
15409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411 (eval $ac_try) 2>&5
15412 ac_status=$?
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; }; then
15415 ac_header_compiler=yes
15416else
15417 echo "$as_me: failed program was:" >&5
15418sed 's/^/| /' conftest.$ac_ext >&5
15419
15420ac_header_compiler=no
15421fi
ac1cb8d3 15422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15423echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15424echo "${ECHO_T}$ac_header_compiler" >&6
15425
15426# Is the header present?
15427echo "$as_me:$LINENO: checking $ac_header presence" >&5
15428echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15429cat >conftest.$ac_ext <<_ACEOF
15430/* confdefs.h. */
15431_ACEOF
15432cat confdefs.h >>conftest.$ac_ext
15433cat >>conftest.$ac_ext <<_ACEOF
15434/* end confdefs.h. */
15435#include <$ac_header>
15436_ACEOF
15437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15439 ac_status=$?
15440 grep -v '^ *+' conftest.er1 >conftest.err
15441 rm -f conftest.er1
15442 cat conftest.err >&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } >/dev/null; then
15445 if test -s conftest.err; then
15446 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15448 else
15449 ac_cpp_err=
15450 fi
15451else
15452 ac_cpp_err=yes
15453fi
15454if test -z "$ac_cpp_err"; then
15455 ac_header_preproc=yes
15456else
15457 echo "$as_me: failed program was:" >&5
15458sed 's/^/| /' conftest.$ac_ext >&5
15459
15460 ac_header_preproc=no
15461fi
15462rm -f conftest.err conftest.$ac_ext
15463echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15464echo "${ECHO_T}$ac_header_preproc" >&6
15465
15466# So? What about this header?
ac1cb8d3
VS
15467case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15468 yes:no: )
a848cd7e
SC
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15470echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15472echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15473 ac_header_preproc=yes
a848cd7e 15474 ;;
ac1cb8d3 15475 no:yes:* )
a848cd7e
SC
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15477echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15479echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15481echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15483echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15485echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15487echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15488 (
15489 cat <<\_ASBOX
ac1cb8d3
VS
15490## ----------------------------------------- ##
15491## Report this to wx-dev@lists.wxwidgets.org ##
15492## ----------------------------------------- ##
a848cd7e
SC
15493_ASBOX
15494 ) |
15495 sed "s/^/$as_me: WARNING: /" >&2
15496 ;;
15497esac
15498echo "$as_me:$LINENO: checking for $ac_header" >&5
15499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15500if eval "test \"\${$as_ac_Header+set}\" = set"; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15502else
ac1cb8d3 15503 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15504fi
15505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15506echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15507
15508fi
15509if test `eval echo '${'$as_ac_Header'}'` = yes; then
15510 cat >>confdefs.h <<_ACEOF
15511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15512_ACEOF
15513
15514fi
15515
15516done
15517
15518fi
15519
15520
15521for ac_header in fnmatch.h
15522do
15523as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15524if eval "test \"\${$as_ac_Header+set}\" = set"; then
15525 echo "$as_me:$LINENO: checking for $ac_header" >&5
15526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15527if eval "test \"\${$as_ac_Header+set}\" = set"; then
15528 echo $ECHO_N "(cached) $ECHO_C" >&6
15529fi
15530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15532else
15533 # Is the header compilable?
15534echo "$as_me:$LINENO: checking $ac_header usability" >&5
15535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15536cat >conftest.$ac_ext <<_ACEOF
15537/* confdefs.h. */
15538_ACEOF
15539cat confdefs.h >>conftest.$ac_ext
15540cat >>conftest.$ac_ext <<_ACEOF
15541/* end confdefs.h. */
15542$ac_includes_default
15543#include <$ac_header>
15544_ACEOF
15545rm -f conftest.$ac_objext
15546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15547 (eval $ac_compile) 2>conftest.er1
a848cd7e 15548 ac_status=$?
ac1cb8d3
VS
15549 grep -v '^ *+' conftest.er1 >conftest.err
15550 rm -f conftest.er1
15551 cat conftest.err >&5
a848cd7e
SC
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
6ebeb4c7 15554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; } &&
15560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }; then
15566 ac_header_compiler=yes
15567else
15568 echo "$as_me: failed program was:" >&5
15569sed 's/^/| /' conftest.$ac_ext >&5
15570
15571ac_header_compiler=no
15572fi
ac1cb8d3 15573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15574echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15575echo "${ECHO_T}$ac_header_compiler" >&6
15576
15577# Is the header present?
15578echo "$as_me:$LINENO: checking $ac_header presence" >&5
15579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15580cat >conftest.$ac_ext <<_ACEOF
15581/* confdefs.h. */
15582_ACEOF
15583cat confdefs.h >>conftest.$ac_ext
15584cat >>conftest.$ac_ext <<_ACEOF
15585/* end confdefs.h. */
15586#include <$ac_header>
15587_ACEOF
15588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15590 ac_status=$?
15591 grep -v '^ *+' conftest.er1 >conftest.err
15592 rm -f conftest.er1
15593 cat conftest.err >&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } >/dev/null; then
15596 if test -s conftest.err; then
15597 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15599 else
15600 ac_cpp_err=
15601 fi
15602else
15603 ac_cpp_err=yes
15604fi
15605if test -z "$ac_cpp_err"; then
15606 ac_header_preproc=yes
15607else
15608 echo "$as_me: failed program was:" >&5
15609sed 's/^/| /' conftest.$ac_ext >&5
15610
15611 ac_header_preproc=no
15612fi
15613rm -f conftest.err conftest.$ac_ext
15614echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15615echo "${ECHO_T}$ac_header_preproc" >&6
15616
15617# So? What about this header?
ac1cb8d3
VS
15618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15619 yes:no: )
a848cd7e
SC
15620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15621echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15623echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15624 ac_header_preproc=yes
a848cd7e 15625 ;;
ac1cb8d3 15626 no:yes:* )
a848cd7e
SC
15627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15632echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15634echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15638echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15639 (
15640 cat <<\_ASBOX
ac1cb8d3
VS
15641## ----------------------------------------- ##
15642## Report this to wx-dev@lists.wxwidgets.org ##
15643## ----------------------------------------- ##
a848cd7e
SC
15644_ASBOX
15645 ) |
15646 sed "s/^/$as_me: WARNING: /" >&2
15647 ;;
15648esac
15649echo "$as_me:$LINENO: checking for $ac_header" >&5
15650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15651if eval "test \"\${$as_ac_Header+set}\" = set"; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
15653else
ac1cb8d3 15654 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15655fi
15656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15658
15659fi
15660if test `eval echo '${'$as_ac_Header'}'` = yes; then
15661 cat >>confdefs.h <<_ACEOF
15662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15663_ACEOF
15664
15665fi
15666
15667done
15668
15669
a848cd7e
SC
15670
15671for ac_header in langinfo.h
15672do
15673as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15674if eval "test \"\${$as_ac_Header+set}\" = set"; then
15675 echo "$as_me:$LINENO: checking for $ac_header" >&5
15676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15677if eval "test \"\${$as_ac_Header+set}\" = set"; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15679fi
15680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15682else
15683 # Is the header compilable?
15684echo "$as_me:$LINENO: checking $ac_header usability" >&5
15685echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15686cat >conftest.$ac_ext <<_ACEOF
15687/* confdefs.h. */
15688_ACEOF
15689cat confdefs.h >>conftest.$ac_ext
15690cat >>conftest.$ac_ext <<_ACEOF
15691/* end confdefs.h. */
15692$ac_includes_default
15693#include <$ac_header>
15694_ACEOF
15695rm -f conftest.$ac_objext
15696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15697 (eval $ac_compile) 2>conftest.er1
a848cd7e 15698 ac_status=$?
ac1cb8d3
VS
15699 grep -v '^ *+' conftest.er1 >conftest.err
15700 rm -f conftest.er1
15701 cat conftest.err >&5
a848cd7e
SC
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } &&
6ebeb4c7 15704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706 (eval $ac_try) 2>&5
15707 ac_status=$?
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; } &&
15710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; }; then
15716 ac_header_compiler=yes
15717else
15718 echo "$as_me: failed program was:" >&5
15719sed 's/^/| /' conftest.$ac_ext >&5
15720
15721ac_header_compiler=no
15722fi
ac1cb8d3 15723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15724echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15725echo "${ECHO_T}$ac_header_compiler" >&6
15726
15727# Is the header present?
15728echo "$as_me:$LINENO: checking $ac_header presence" >&5
15729echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15730cat >conftest.$ac_ext <<_ACEOF
15731/* confdefs.h. */
15732_ACEOF
15733cat confdefs.h >>conftest.$ac_ext
15734cat >>conftest.$ac_ext <<_ACEOF
15735/* end confdefs.h. */
15736#include <$ac_header>
15737_ACEOF
15738if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15740 ac_status=$?
15741 grep -v '^ *+' conftest.er1 >conftest.err
15742 rm -f conftest.er1
15743 cat conftest.err >&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } >/dev/null; then
15746 if test -s conftest.err; then
15747 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15749 else
15750 ac_cpp_err=
15751 fi
15752else
15753 ac_cpp_err=yes
15754fi
15755if test -z "$ac_cpp_err"; then
15756 ac_header_preproc=yes
15757else
15758 echo "$as_me: failed program was:" >&5
15759sed 's/^/| /' conftest.$ac_ext >&5
15760
15761 ac_header_preproc=no
15762fi
15763rm -f conftest.err conftest.$ac_ext
15764echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15765echo "${ECHO_T}$ac_header_preproc" >&6
15766
15767# So? What about this header?
ac1cb8d3
VS
15768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15769 yes:no: )
a848cd7e
SC
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15771echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15773echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15774 ac_header_preproc=yes
a848cd7e 15775 ;;
ac1cb8d3 15776 no:yes:* )
a848cd7e
SC
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15778echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15780echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15782echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15784echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15786echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15788echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15789 (
15790 cat <<\_ASBOX
ac1cb8d3
VS
15791## ----------------------------------------- ##
15792## Report this to wx-dev@lists.wxwidgets.org ##
15793## ----------------------------------------- ##
a848cd7e
SC
15794_ASBOX
15795 ) |
15796 sed "s/^/$as_me: WARNING: /" >&2
15797 ;;
15798esac
15799echo "$as_me:$LINENO: checking for $ac_header" >&5
15800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15801if eval "test \"\${$as_ac_Header+set}\" = set"; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15803else
ac1cb8d3 15804 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15805fi
15806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15807echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15808
15809fi
15810if test `eval echo '${'$as_ac_Header'}'` = yes; then
15811 cat >>confdefs.h <<_ACEOF
15812#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15813_ACEOF
15814
15815fi
15816
15817done
15818
15819
15820case "${host}" in
15821 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15822 if test $ac_cv_header_langinfo_h = "yes" \
15823 -a \( "$wx_cv_gccversion" = "EMX2" \
15824 -o "$wx_cv_gccversion" = "EMX3" \
15825 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15826 LIBS="$LIBS -lintl"
15827 fi
15828 ;;
15829esac
15830
a848cd7e
SC
15831
15832echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15833echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15834if test "${ac_cv_c_const+set}" = set; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15836else
15837 cat >conftest.$ac_ext <<_ACEOF
15838/* confdefs.h. */
15839_ACEOF
15840cat confdefs.h >>conftest.$ac_ext
15841cat >>conftest.$ac_ext <<_ACEOF
15842/* end confdefs.h. */
15843
15844int
15845main ()
15846{
15847/* FIXME: Include the comments suggested by Paul. */
15848#ifndef __cplusplus
15849 /* Ultrix mips cc rejects this. */
15850 typedef int charset[2];
15851 const charset x;
15852 /* SunOS 4.1.1 cc rejects this. */
15853 char const *const *ccp;
15854 char **p;
15855 /* NEC SVR4.0.2 mips cc rejects this. */
15856 struct point {int x, y;};
15857 static struct point const zero = {0,0};
15858 /* AIX XL C 1.02.0.0 rejects this.
15859 It does not let you subtract one const X* pointer from another in
15860 an arm of an if-expression whose if-part is not a constant
15861 expression */
15862 const char *g = "string";
15863 ccp = &g + (g ? g-g : 0);
15864 /* HPUX 7.0 cc rejects these. */
15865 ++ccp;
15866 p = (char**) ccp;
15867 ccp = (char const *const *) p;
15868 { /* SCO 3.2v4 cc rejects this. */
15869 char *t;
15870 char const *s = 0 ? (char *) 0 : (char const *) 0;
15871
15872 *t++ = 0;
15873 }
15874 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15875 int x[] = {25, 17};
15876 const int *foo = &x[0];
15877 ++foo;
15878 }
15879 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15880 typedef const int *iptr;
15881 iptr p = 0;
15882 ++p;
15883 }
15884 { /* AIX XL C 1.02.0.0 rejects this saying
15885 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15886 struct s { int j; const int *ap[3]; };
15887 struct s *b; b->j = 5;
15888 }
15889 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15890 const int foo = 10;
15891 }
15892#endif
15893
15894 ;
15895 return 0;
15896}
15897_ACEOF
15898rm -f conftest.$ac_objext
15899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15900 (eval $ac_compile) 2>conftest.er1
a848cd7e 15901 ac_status=$?
ac1cb8d3
VS
15902 grep -v '^ *+' conftest.er1 >conftest.err
15903 rm -f conftest.er1
15904 cat conftest.err >&5
a848cd7e
SC
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } &&
6ebeb4c7 15907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909 (eval $ac_try) 2>&5
15910 ac_status=$?
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); }; } &&
15913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 ac_cv_c_const=yes
15920else
15921 echo "$as_me: failed program was:" >&5
15922sed 's/^/| /' conftest.$ac_ext >&5
15923
15924ac_cv_c_const=no
15925fi
ac1cb8d3 15926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15927fi
15928echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15929echo "${ECHO_T}$ac_cv_c_const" >&6
15930if test $ac_cv_c_const = no; then
15931
15932cat >>confdefs.h <<\_ACEOF
15933#define const
15934_ACEOF
15935
15936fi
15937
15938echo "$as_me:$LINENO: checking for inline" >&5
15939echo $ECHO_N "checking for inline... $ECHO_C" >&6
15940if test "${ac_cv_c_inline+set}" = set; then
15941 echo $ECHO_N "(cached) $ECHO_C" >&6
15942else
15943 ac_cv_c_inline=no
15944for ac_kw in inline __inline__ __inline; do
15945 cat >conftest.$ac_ext <<_ACEOF
15946/* confdefs.h. */
15947_ACEOF
15948cat confdefs.h >>conftest.$ac_ext
15949cat >>conftest.$ac_ext <<_ACEOF
15950/* end confdefs.h. */
15951#ifndef __cplusplus
15952typedef int foo_t;
15953static $ac_kw foo_t static_foo () {return 0; }
15954$ac_kw foo_t foo () {return 0; }
15955#endif
15956
15957_ACEOF
15958rm -f conftest.$ac_objext
15959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15960 (eval $ac_compile) 2>conftest.er1
a848cd7e 15961 ac_status=$?
ac1cb8d3
VS
15962 grep -v '^ *+' conftest.er1 >conftest.err
15963 rm -f conftest.er1
15964 cat conftest.err >&5
a848cd7e
SC
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); } &&
6ebeb4c7 15967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969 (eval $ac_try) 2>&5
15970 ac_status=$?
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); }; } &&
15973 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15976 ac_status=$?
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; }; then
15979 ac_cv_c_inline=$ac_kw; break
15980else
15981 echo "$as_me: failed program was:" >&5
15982sed 's/^/| /' conftest.$ac_ext >&5
15983
15984fi
ac1cb8d3 15985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15986done
15987
15988fi
15989echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15990echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15991
15992
a848cd7e
SC
15993case $ac_cv_c_inline in
15994 inline | yes) ;;
ac1cb8d3
VS
15995 *)
15996 case $ac_cv_c_inline in
15997 no) ac_val=;;
15998 *) ac_val=$ac_cv_c_inline;;
15999 esac
16000 cat >>confdefs.h <<_ACEOF
16001#ifndef __cplusplus
16002#define inline $ac_val
16003#endif
de59c161 16004_ACEOF
ac1cb8d3 16005 ;;
a848cd7e
SC
16006esac
16007
16008
16009echo "$as_me:$LINENO: checking for char" >&5
16010echo $ECHO_N "checking for char... $ECHO_C" >&6
16011if test "${ac_cv_type_char+set}" = set; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16013else
16014 cat >conftest.$ac_ext <<_ACEOF
16015/* confdefs.h. */
16016_ACEOF
16017cat confdefs.h >>conftest.$ac_ext
16018cat >>conftest.$ac_ext <<_ACEOF
16019/* end confdefs.h. */
16020$ac_includes_default
16021int
16022main ()
16023{
16024if ((char *) 0)
16025 return 0;
16026if (sizeof (char))
16027 return 0;
16028 ;
16029 return 0;
16030}
16031_ACEOF
16032rm -f conftest.$ac_objext
16033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16034 (eval $ac_compile) 2>conftest.er1
a848cd7e 16035 ac_status=$?
ac1cb8d3
VS
16036 grep -v '^ *+' conftest.er1 >conftest.err
16037 rm -f conftest.er1
16038 cat conftest.err >&5
a848cd7e
SC
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); } &&
6ebeb4c7 16041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16044 ac_status=$?
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; } &&
16047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049 (eval $ac_try) 2>&5
16050 ac_status=$?
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); }; }; then
16053 ac_cv_type_char=yes
16054else
16055 echo "$as_me: failed program was:" >&5
16056sed 's/^/| /' conftest.$ac_ext >&5
16057
16058ac_cv_type_char=no
16059fi
ac1cb8d3 16060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16061fi
16062echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16063echo "${ECHO_T}$ac_cv_type_char" >&6
16064
16065echo "$as_me:$LINENO: checking size of char" >&5
16066echo $ECHO_N "checking size of char... $ECHO_C" >&6
16067if test "${ac_cv_sizeof_char+set}" = set; then
16068 echo $ECHO_N "(cached) $ECHO_C" >&6
16069else
16070 if test "$ac_cv_type_char" = yes; then
16071 # The cast to unsigned long works around a bug in the HP C Compiler
16072 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16073 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16074 # This bug is HP SR number 8606223364.
16075 if test "$cross_compiling" = yes; then
16076 # Depending upon the size, compute the lo and hi bounds.
16077cat >conftest.$ac_ext <<_ACEOF
16078/* confdefs.h. */
16079_ACEOF
16080cat confdefs.h >>conftest.$ac_ext
16081cat >>conftest.$ac_ext <<_ACEOF
16082/* end confdefs.h. */
16083$ac_includes_default
16084int
16085main ()
16086{
16087static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16088test_array [0] = 0
16089
16090 ;
16091 return 0;
16092}
16093_ACEOF
16094rm -f conftest.$ac_objext
16095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16096 (eval $ac_compile) 2>conftest.er1
a848cd7e 16097 ac_status=$?
ac1cb8d3
VS
16098 grep -v '^ *+' conftest.er1 >conftest.err
16099 rm -f conftest.er1
16100 cat conftest.err >&5
a848cd7e
SC
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
6ebeb4c7 16103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; } &&
16109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111 (eval $ac_try) 2>&5
16112 ac_status=$?
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; }; then
16115 ac_lo=0 ac_mid=0
16116 while :; do
16117 cat >conftest.$ac_ext <<_ACEOF
16118/* confdefs.h. */
16119_ACEOF
16120cat confdefs.h >>conftest.$ac_ext
16121cat >>conftest.$ac_ext <<_ACEOF
16122/* end confdefs.h. */
16123$ac_includes_default
16124int
16125main ()
16126{
16127static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16128test_array [0] = 0
16129
16130 ;
16131 return 0;
16132}
16133_ACEOF
16134rm -f conftest.$ac_objext
16135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16136 (eval $ac_compile) 2>conftest.er1
a848cd7e 16137 ac_status=$?
ac1cb8d3
VS
16138 grep -v '^ *+' conftest.er1 >conftest.err
16139 rm -f conftest.er1
16140 cat conftest.err >&5
a848cd7e
SC
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } &&
6ebeb4c7 16143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16146 ac_status=$?
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; } &&
16149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151 (eval $ac_try) 2>&5
16152 ac_status=$?
16153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); }; }; then
16155 ac_hi=$ac_mid; break
16156else
16157 echo "$as_me: failed program was:" >&5
16158sed 's/^/| /' conftest.$ac_ext >&5
16159
16160ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16161 if test $ac_lo -le $ac_mid; then
16162 ac_lo= ac_hi=
16163 break
16164 fi
16165 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16166fi
ac1cb8d3 16167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16168 done
16169else
16170 echo "$as_me: failed program was:" >&5
16171sed 's/^/| /' conftest.$ac_ext >&5
16172
16173cat >conftest.$ac_ext <<_ACEOF
16174/* confdefs.h. */
16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h. */
16179$ac_includes_default
16180int
16181main ()
16182{
16183static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16184test_array [0] = 0
16185
16186 ;
16187 return 0;
16188}
16189_ACEOF
16190rm -f conftest.$ac_objext
16191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16192 (eval $ac_compile) 2>conftest.er1
a848cd7e 16193 ac_status=$?
ac1cb8d3
VS
16194 grep -v '^ *+' conftest.er1 >conftest.err
16195 rm -f conftest.er1
16196 cat conftest.err >&5
a848cd7e
SC
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } &&
6ebeb4c7 16199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; } &&
16205 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16208 ac_status=$?
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16211 ac_hi=-1 ac_mid=-1
16212 while :; do
16213 cat >conftest.$ac_ext <<_ACEOF
16214/* confdefs.h. */
16215_ACEOF
16216cat confdefs.h >>conftest.$ac_ext
16217cat >>conftest.$ac_ext <<_ACEOF
16218/* end confdefs.h. */
16219$ac_includes_default
16220int
16221main ()
16222{
16223static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16224test_array [0] = 0
16225
16226 ;
16227 return 0;
16228}
16229_ACEOF
16230rm -f conftest.$ac_objext
16231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16232 (eval $ac_compile) 2>conftest.er1
a848cd7e 16233 ac_status=$?
ac1cb8d3
VS
16234 grep -v '^ *+' conftest.er1 >conftest.err
16235 rm -f conftest.er1
16236 cat conftest.err >&5
a848cd7e
SC
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } &&
6ebeb4c7 16239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16242 ac_status=$?
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; } &&
16245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; }; then
16251 ac_lo=$ac_mid; break
16252else
16253 echo "$as_me: failed program was:" >&5
16254sed 's/^/| /' conftest.$ac_ext >&5
16255
16256ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16257 if test $ac_mid -le $ac_hi; then
16258 ac_lo= ac_hi=
16259 break
16260 fi
16261 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16262fi
ac1cb8d3 16263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16264 done
16265else
16266 echo "$as_me: failed program was:" >&5
16267sed 's/^/| /' conftest.$ac_ext >&5
16268
16269ac_lo= ac_hi=
16270fi
ac1cb8d3 16271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16272fi
ac1cb8d3 16273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16274# Binary search between lo and hi bounds.
16275while test "x$ac_lo" != "x$ac_hi"; do
16276 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16277 cat >conftest.$ac_ext <<_ACEOF
16278/* confdefs.h. */
16279_ACEOF
16280cat confdefs.h >>conftest.$ac_ext
16281cat >>conftest.$ac_ext <<_ACEOF
16282/* end confdefs.h. */
16283$ac_includes_default
16284int
16285main ()
16286{
16287static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16288test_array [0] = 0
16289
16290 ;
16291 return 0;
16292}
16293_ACEOF
16294rm -f conftest.$ac_objext
16295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16296 (eval $ac_compile) 2>conftest.er1
a848cd7e 16297 ac_status=$?
ac1cb8d3
VS
16298 grep -v '^ *+' conftest.er1 >conftest.err
16299 rm -f conftest.er1
16300 cat conftest.err >&5
a848cd7e
SC
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } &&
6ebeb4c7 16303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305 (eval $ac_try) 2>&5
16306 ac_status=$?
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; } &&
16309 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311 (eval $ac_try) 2>&5
16312 ac_status=$?
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); }; }; then
16315 ac_hi=$ac_mid
16316else
16317 echo "$as_me: failed program was:" >&5
16318sed 's/^/| /' conftest.$ac_ext >&5
16319
16320ac_lo=`expr '(' $ac_mid ')' + 1`
16321fi
ac1cb8d3 16322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16323done
16324case $ac_lo in
16325?*) ac_cv_sizeof_char=$ac_lo;;
16326'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16327See \`config.log' for more details." >&5
16328echo "$as_me: error: cannot compute sizeof (char), 77
16329See \`config.log' for more details." >&2;}
16330 { (exit 1); exit 1; }; } ;;
16331esac
16332else
16333 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16334 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16335echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16336 { (exit 1); exit 1; }; }
16337else
16338 cat >conftest.$ac_ext <<_ACEOF
16339/* confdefs.h. */
16340_ACEOF
16341cat confdefs.h >>conftest.$ac_ext
16342cat >>conftest.$ac_ext <<_ACEOF
16343/* end confdefs.h. */
16344$ac_includes_default
16345long longval () { return (long) (sizeof (char)); }
16346unsigned long ulongval () { return (long) (sizeof (char)); }
16347#include <stdio.h>
16348#include <stdlib.h>
16349int
16350main ()
16351{
16352
16353 FILE *f = fopen ("conftest.val", "w");
16354 if (! f)
16355 exit (1);
16356 if (((long) (sizeof (char))) < 0)
16357 {
16358 long i = longval ();
16359 if (i != ((long) (sizeof (char))))
16360 exit (1);
16361 fprintf (f, "%ld\n", i);
16362 }
16363 else
16364 {
16365 unsigned long i = ulongval ();
16366 if (i != ((long) (sizeof (char))))
16367 exit (1);
16368 fprintf (f, "%lu\n", i);
16369 }
16370 exit (ferror (f) || fclose (f) != 0);
16371
16372 ;
16373 return 0;
16374}
16375_ACEOF
16376rm -f conftest$ac_exeext
16377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16378 (eval $ac_link) 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383 (eval $ac_try) 2>&5
16384 ac_status=$?
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); }; }; then
16387 ac_cv_sizeof_char=`cat conftest.val`
16388else
16389 echo "$as_me: program exited with status $ac_status" >&5
16390echo "$as_me: failed program was:" >&5
16391sed 's/^/| /' conftest.$ac_ext >&5
16392
16393( exit $ac_status )
16394{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16395See \`config.log' for more details." >&5
16396echo "$as_me: error: cannot compute sizeof (char), 77
16397See \`config.log' for more details." >&2;}
16398 { (exit 1); exit 1; }; }
16399fi
ac1cb8d3 16400rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16401fi
16402fi
16403rm -f conftest.val
16404else
16405 ac_cv_sizeof_char=0
16406fi
16407fi
16408echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16409echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16410cat >>confdefs.h <<_ACEOF
16411#define SIZEOF_CHAR $ac_cv_sizeof_char
16412_ACEOF
16413
16414
16415echo "$as_me:$LINENO: checking for short" >&5
16416echo $ECHO_N "checking for short... $ECHO_C" >&6
16417if test "${ac_cv_type_short+set}" = set; then
16418 echo $ECHO_N "(cached) $ECHO_C" >&6
16419else
16420 cat >conftest.$ac_ext <<_ACEOF
16421/* confdefs.h. */
16422_ACEOF
16423cat confdefs.h >>conftest.$ac_ext
16424cat >>conftest.$ac_ext <<_ACEOF
16425/* end confdefs.h. */
16426$ac_includes_default
16427int
16428main ()
16429{
16430if ((short *) 0)
16431 return 0;
16432if (sizeof (short))
16433 return 0;
16434 ;
16435 return 0;
16436}
16437_ACEOF
16438rm -f conftest.$ac_objext
16439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16440 (eval $ac_compile) 2>conftest.er1
a848cd7e 16441 ac_status=$?
ac1cb8d3
VS
16442 grep -v '^ *+' conftest.er1 >conftest.err
16443 rm -f conftest.er1
16444 cat conftest.err >&5
a848cd7e
SC
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } &&
6ebeb4c7 16447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; } &&
16453 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; }; then
16459 ac_cv_type_short=yes
16460else
16461 echo "$as_me: failed program was:" >&5
16462sed 's/^/| /' conftest.$ac_ext >&5
16463
16464ac_cv_type_short=no
16465fi
ac1cb8d3 16466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16467fi
16468echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16469echo "${ECHO_T}$ac_cv_type_short" >&6
16470
16471echo "$as_me:$LINENO: checking size of short" >&5
16472echo $ECHO_N "checking size of short... $ECHO_C" >&6
16473if test "${ac_cv_sizeof_short+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16475else
16476 if test "$ac_cv_type_short" = yes; then
16477 # The cast to unsigned long works around a bug in the HP C Compiler
16478 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16479 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16480 # This bug is HP SR number 8606223364.
16481 if test "$cross_compiling" = yes; then
16482 # Depending upon the size, compute the lo and hi bounds.
16483cat >conftest.$ac_ext <<_ACEOF
16484/* confdefs.h. */
16485_ACEOF
16486cat confdefs.h >>conftest.$ac_ext
16487cat >>conftest.$ac_ext <<_ACEOF
16488/* end confdefs.h. */
16489$ac_includes_default
16490int
16491main ()
16492{
16493static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16494test_array [0] = 0
16495
16496 ;
16497 return 0;
16498}
16499_ACEOF
16500rm -f conftest.$ac_objext
16501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16502 (eval $ac_compile) 2>conftest.er1
a848cd7e 16503 ac_status=$?
ac1cb8d3
VS
16504 grep -v '^ *+' conftest.er1 >conftest.err
16505 rm -f conftest.er1
16506 cat conftest.err >&5
a848cd7e
SC
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); } &&
6ebeb4c7 16509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16512 ac_status=$?
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; } &&
16515 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517 (eval $ac_try) 2>&5
16518 ac_status=$?
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; }; then
16521 ac_lo=0 ac_mid=0
16522 while :; do
16523 cat >conftest.$ac_ext <<_ACEOF
16524/* confdefs.h. */
16525_ACEOF
16526cat confdefs.h >>conftest.$ac_ext
16527cat >>conftest.$ac_ext <<_ACEOF
16528/* end confdefs.h. */
16529$ac_includes_default
16530int
16531main ()
16532{
16533static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16534test_array [0] = 0
16535
16536 ;
16537 return 0;
16538}
16539_ACEOF
16540rm -f conftest.$ac_objext
16541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16542 (eval $ac_compile) 2>conftest.er1
a848cd7e 16543 ac_status=$?
ac1cb8d3
VS
16544 grep -v '^ *+' conftest.er1 >conftest.err
16545 rm -f conftest.er1
16546 cat conftest.err >&5
a848cd7e
SC
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } &&
6ebeb4c7 16549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16551 (eval $ac_try) 2>&5
16552 ac_status=$?
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; } &&
16555 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557 (eval $ac_try) 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; }; then
16561 ac_hi=$ac_mid; break
16562else
16563 echo "$as_me: failed program was:" >&5
16564sed 's/^/| /' conftest.$ac_ext >&5
16565
16566ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16567 if test $ac_lo -le $ac_mid; then
16568 ac_lo= ac_hi=
16569 break
16570 fi
16571 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16572fi
ac1cb8d3 16573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16574 done
16575else
16576 echo "$as_me: failed program was:" >&5
16577sed 's/^/| /' conftest.$ac_ext >&5
16578
16579cat >conftest.$ac_ext <<_ACEOF
16580/* confdefs.h. */
16581_ACEOF
16582cat confdefs.h >>conftest.$ac_ext
16583cat >>conftest.$ac_ext <<_ACEOF
16584/* end confdefs.h. */
16585$ac_includes_default
16586int
16587main ()
16588{
16589static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16590test_array [0] = 0
16591
16592 ;
16593 return 0;
16594}
16595_ACEOF
16596rm -f conftest.$ac_objext
16597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16598 (eval $ac_compile) 2>conftest.er1
a848cd7e 16599 ac_status=$?
ac1cb8d3
VS
16600 grep -v '^ *+' conftest.er1 >conftest.err
16601 rm -f conftest.er1
16602 cat conftest.err >&5
a848cd7e
SC
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } &&
6ebeb4c7 16605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16608 ac_status=$?
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; } &&
16611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 ac_hi=-1 ac_mid=-1
16618 while :; do
16619 cat >conftest.$ac_ext <<_ACEOF
16620/* confdefs.h. */
16621_ACEOF
16622cat confdefs.h >>conftest.$ac_ext
16623cat >>conftest.$ac_ext <<_ACEOF
16624/* end confdefs.h. */
16625$ac_includes_default
16626int
16627main ()
16628{
16629static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16630test_array [0] = 0
16631
16632 ;
16633 return 0;
16634}
16635_ACEOF
16636rm -f conftest.$ac_objext
16637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16638 (eval $ac_compile) 2>conftest.er1
a848cd7e 16639 ac_status=$?
ac1cb8d3
VS
16640 grep -v '^ *+' conftest.er1 >conftest.err
16641 rm -f conftest.er1
16642 cat conftest.err >&5
a848cd7e
SC
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
6ebeb4c7 16645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647 (eval $ac_try) 2>&5
16648 ac_status=$?
16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); }; } &&
16651 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16657 ac_lo=$ac_mid; break
16658else
16659 echo "$as_me: failed program was:" >&5
16660sed 's/^/| /' conftest.$ac_ext >&5
16661
16662ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16663 if test $ac_mid -le $ac_hi; then
16664 ac_lo= ac_hi=
16665 break
16666 fi
16667 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16668fi
ac1cb8d3 16669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16670 done
16671else
16672 echo "$as_me: failed program was:" >&5
16673sed 's/^/| /' conftest.$ac_ext >&5
16674
16675ac_lo= ac_hi=
16676fi
ac1cb8d3 16677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16678fi
ac1cb8d3 16679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16680# Binary search between lo and hi bounds.
16681while test "x$ac_lo" != "x$ac_hi"; do
16682 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16683 cat >conftest.$ac_ext <<_ACEOF
16684/* confdefs.h. */
16685_ACEOF
16686cat confdefs.h >>conftest.$ac_ext
16687cat >>conftest.$ac_ext <<_ACEOF
16688/* end confdefs.h. */
16689$ac_includes_default
16690int
16691main ()
16692{
16693static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16694test_array [0] = 0
16695
16696 ;
16697 return 0;
16698}
16699_ACEOF
16700rm -f conftest.$ac_objext
16701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16702 (eval $ac_compile) 2>conftest.er1
a848cd7e 16703 ac_status=$?
ac1cb8d3
VS
16704 grep -v '^ *+' conftest.er1 >conftest.err
16705 rm -f conftest.er1
16706 cat conftest.err >&5
a848cd7e
SC
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
6ebeb4c7 16709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16718 ac_status=$?
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16721 ac_hi=$ac_mid
16722else
16723 echo "$as_me: failed program was:" >&5
16724sed 's/^/| /' conftest.$ac_ext >&5
16725
16726ac_lo=`expr '(' $ac_mid ')' + 1`
16727fi
ac1cb8d3 16728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16729done
16730case $ac_lo in
16731?*) ac_cv_sizeof_short=$ac_lo;;
16732'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16733See \`config.log' for more details." >&5
16734echo "$as_me: error: cannot compute sizeof (short), 77
16735See \`config.log' for more details." >&2;}
16736 { (exit 1); exit 1; }; } ;;
16737esac
16738else
16739 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16740 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16741echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16742 { (exit 1); exit 1; }; }
16743else
16744 cat >conftest.$ac_ext <<_ACEOF
16745/* confdefs.h. */
16746_ACEOF
16747cat confdefs.h >>conftest.$ac_ext
16748cat >>conftest.$ac_ext <<_ACEOF
16749/* end confdefs.h. */
16750$ac_includes_default
16751long longval () { return (long) (sizeof (short)); }
16752unsigned long ulongval () { return (long) (sizeof (short)); }
16753#include <stdio.h>
16754#include <stdlib.h>
16755int
16756main ()
16757{
16758
16759 FILE *f = fopen ("conftest.val", "w");
16760 if (! f)
16761 exit (1);
16762 if (((long) (sizeof (short))) < 0)
16763 {
16764 long i = longval ();
16765 if (i != ((long) (sizeof (short))))
16766 exit (1);
16767 fprintf (f, "%ld\n", i);
16768 }
16769 else
16770 {
16771 unsigned long i = ulongval ();
16772 if (i != ((long) (sizeof (short))))
16773 exit (1);
16774 fprintf (f, "%lu\n", i);
16775 }
16776 exit (ferror (f) || fclose (f) != 0);
16777
16778 ;
16779 return 0;
16780}
16781_ACEOF
16782rm -f conftest$ac_exeext
16783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16784 (eval $ac_link) 2>&5
16785 ac_status=$?
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789 (eval $ac_try) 2>&5
16790 ac_status=$?
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; }; then
16793 ac_cv_sizeof_short=`cat conftest.val`
16794else
16795 echo "$as_me: program exited with status $ac_status" >&5
16796echo "$as_me: failed program was:" >&5
16797sed 's/^/| /' conftest.$ac_ext >&5
16798
16799( exit $ac_status )
16800{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16801See \`config.log' for more details." >&5
16802echo "$as_me: error: cannot compute sizeof (short), 77
16803See \`config.log' for more details." >&2;}
16804 { (exit 1); exit 1; }; }
16805fi
ac1cb8d3 16806rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16807fi
16808fi
16809rm -f conftest.val
16810else
16811 ac_cv_sizeof_short=0
16812fi
16813fi
16814echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16815echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16816cat >>confdefs.h <<_ACEOF
16817#define SIZEOF_SHORT $ac_cv_sizeof_short
16818_ACEOF
16819
16820
16821echo "$as_me:$LINENO: checking for void *" >&5
16822echo $ECHO_N "checking for void *... $ECHO_C" >&6
16823if test "${ac_cv_type_void_p+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16825else
16826 cat >conftest.$ac_ext <<_ACEOF
16827/* confdefs.h. */
16828_ACEOF
16829cat confdefs.h >>conftest.$ac_ext
16830cat >>conftest.$ac_ext <<_ACEOF
16831/* end confdefs.h. */
16832$ac_includes_default
16833int
16834main ()
16835{
16836if ((void * *) 0)
16837 return 0;
16838if (sizeof (void *))
16839 return 0;
16840 ;
16841 return 0;
16842}
16843_ACEOF
16844rm -f conftest.$ac_objext
16845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16846 (eval $ac_compile) 2>conftest.er1
a848cd7e 16847 ac_status=$?
ac1cb8d3
VS
16848 grep -v '^ *+' conftest.er1 >conftest.err
16849 rm -f conftest.er1
16850 cat conftest.err >&5
a848cd7e
SC
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); } &&
6ebeb4c7 16853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; } &&
16859 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; }; then
16865 ac_cv_type_void_p=yes
16866else
16867 echo "$as_me: failed program was:" >&5
16868sed 's/^/| /' conftest.$ac_ext >&5
16869
16870ac_cv_type_void_p=no
16871fi
ac1cb8d3 16872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16873fi
16874echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16875echo "${ECHO_T}$ac_cv_type_void_p" >&6
16876
16877echo "$as_me:$LINENO: checking size of void *" >&5
16878echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16879if test "${ac_cv_sizeof_void_p+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16881else
16882 if test "$ac_cv_type_void_p" = yes; then
16883 # The cast to unsigned long works around a bug in the HP C Compiler
16884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16886 # This bug is HP SR number 8606223364.
16887 if test "$cross_compiling" = yes; then
16888 # Depending upon the size, compute the lo and hi bounds.
16889cat >conftest.$ac_ext <<_ACEOF
16890/* confdefs.h. */
16891_ACEOF
16892cat confdefs.h >>conftest.$ac_ext
16893cat >>conftest.$ac_ext <<_ACEOF
16894/* end confdefs.h. */
16895$ac_includes_default
16896int
16897main ()
16898{
16899static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16900test_array [0] = 0
16901
16902 ;
16903 return 0;
16904}
16905_ACEOF
16906rm -f conftest.$ac_objext
16907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16908 (eval $ac_compile) 2>conftest.er1
a848cd7e 16909 ac_status=$?
ac1cb8d3
VS
16910 grep -v '^ *+' conftest.er1 >conftest.err
16911 rm -f conftest.er1
16912 cat conftest.err >&5
a848cd7e
SC
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); } &&
6ebeb4c7 16915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917 (eval $ac_try) 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16924 ac_status=$?
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
16927 ac_lo=0 ac_mid=0
16928 while :; do
16929 cat >conftest.$ac_ext <<_ACEOF
16930/* confdefs.h. */
16931_ACEOF
16932cat confdefs.h >>conftest.$ac_ext
16933cat >>conftest.$ac_ext <<_ACEOF
16934/* end confdefs.h. */
16935$ac_includes_default
16936int
16937main ()
16938{
16939static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16940test_array [0] = 0
16941
16942 ;
16943 return 0;
16944}
16945_ACEOF
16946rm -f conftest.$ac_objext
16947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16948 (eval $ac_compile) 2>conftest.er1
a848cd7e 16949 ac_status=$?
ac1cb8d3
VS
16950 grep -v '^ *+' conftest.er1 >conftest.err
16951 rm -f conftest.er1
16952 cat conftest.err >&5
a848cd7e
SC
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } &&
6ebeb4c7 16955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16958 ac_status=$?
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; } &&
16961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16964 ac_status=$?
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; }; then
16967 ac_hi=$ac_mid; break
16968else
16969 echo "$as_me: failed program was:" >&5
16970sed 's/^/| /' conftest.$ac_ext >&5
16971
16972ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16973 if test $ac_lo -le $ac_mid; then
16974 ac_lo= ac_hi=
16975 break
16976 fi
16977 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16978fi
ac1cb8d3 16979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16980 done
16981else
16982 echo "$as_me: failed program was:" >&5
16983sed 's/^/| /' conftest.$ac_ext >&5
16984
16985cat >conftest.$ac_ext <<_ACEOF
16986/* confdefs.h. */
16987_ACEOF
16988cat confdefs.h >>conftest.$ac_ext
16989cat >>conftest.$ac_ext <<_ACEOF
16990/* end confdefs.h. */
16991$ac_includes_default
16992int
16993main ()
16994{
16995static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16996test_array [0] = 0
16997
16998 ;
16999 return 0;
17000}
17001_ACEOF
17002rm -f conftest.$ac_objext
17003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17004 (eval $ac_compile) 2>conftest.er1
a848cd7e 17005 ac_status=$?
ac1cb8d3
VS
17006 grep -v '^ *+' conftest.er1 >conftest.err
17007 rm -f conftest.er1
17008 cat conftest.err >&5
a848cd7e
SC
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); } &&
6ebeb4c7 17011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17014 ac_status=$?
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; } &&
17017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019 (eval $ac_try) 2>&5
17020 ac_status=$?
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; }; then
17023 ac_hi=-1 ac_mid=-1
17024 while :; do
17025 cat >conftest.$ac_ext <<_ACEOF
17026/* confdefs.h. */
17027_ACEOF
17028cat confdefs.h >>conftest.$ac_ext
17029cat >>conftest.$ac_ext <<_ACEOF
17030/* end confdefs.h. */
17031$ac_includes_default
17032int
17033main ()
17034{
17035static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17036test_array [0] = 0
17037
17038 ;
17039 return 0;
17040}
17041_ACEOF
17042rm -f conftest.$ac_objext
17043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17044 (eval $ac_compile) 2>conftest.er1
a848cd7e 17045 ac_status=$?
ac1cb8d3
VS
17046 grep -v '^ *+' conftest.er1 >conftest.err
17047 rm -f conftest.er1
17048 cat conftest.err >&5
a848cd7e
SC
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } &&
6ebeb4c7 17051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 ac_lo=$ac_mid; break
17064else
17065 echo "$as_me: failed program was:" >&5
17066sed 's/^/| /' conftest.$ac_ext >&5
17067
17068ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17069 if test $ac_mid -le $ac_hi; then
17070 ac_lo= ac_hi=
17071 break
17072 fi
17073 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17074fi
ac1cb8d3 17075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17076 done
17077else
17078 echo "$as_me: failed program was:" >&5
17079sed 's/^/| /' conftest.$ac_ext >&5
17080
17081ac_lo= ac_hi=
17082fi
ac1cb8d3 17083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17084fi
ac1cb8d3 17085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17086# Binary search between lo and hi bounds.
17087while test "x$ac_lo" != "x$ac_hi"; do
17088 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17089 cat >conftest.$ac_ext <<_ACEOF
17090/* confdefs.h. */
17091_ACEOF
17092cat confdefs.h >>conftest.$ac_ext
17093cat >>conftest.$ac_ext <<_ACEOF
17094/* end confdefs.h. */
17095$ac_includes_default
17096int
17097main ()
17098{
17099static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17100test_array [0] = 0
17101
17102 ;
17103 return 0;
17104}
17105_ACEOF
17106rm -f conftest.$ac_objext
17107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17108 (eval $ac_compile) 2>conftest.er1
a848cd7e 17109 ac_status=$?
ac1cb8d3
VS
17110 grep -v '^ *+' conftest.er1 >conftest.err
17111 rm -f conftest.er1
17112 cat conftest.err >&5
a848cd7e
SC
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } &&
6ebeb4c7 17115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; } &&
17121 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17124 ac_status=$?
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
17127 ac_hi=$ac_mid
17128else
17129 echo "$as_me: failed program was:" >&5
17130sed 's/^/| /' conftest.$ac_ext >&5
17131
17132ac_lo=`expr '(' $ac_mid ')' + 1`
17133fi
ac1cb8d3 17134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17135done
17136case $ac_lo in
17137?*) ac_cv_sizeof_void_p=$ac_lo;;
17138'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17139See \`config.log' for more details." >&5
17140echo "$as_me: error: cannot compute sizeof (void *), 77
17141See \`config.log' for more details." >&2;}
17142 { (exit 1); exit 1; }; } ;;
17143esac
17144else
17145 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17146 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17147echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17148 { (exit 1); exit 1; }; }
17149else
17150 cat >conftest.$ac_ext <<_ACEOF
17151/* confdefs.h. */
17152_ACEOF
17153cat confdefs.h >>conftest.$ac_ext
17154cat >>conftest.$ac_ext <<_ACEOF
17155/* end confdefs.h. */
17156$ac_includes_default
17157long longval () { return (long) (sizeof (void *)); }
17158unsigned long ulongval () { return (long) (sizeof (void *)); }
17159#include <stdio.h>
17160#include <stdlib.h>
17161int
17162main ()
17163{
17164
17165 FILE *f = fopen ("conftest.val", "w");
17166 if (! f)
17167 exit (1);
17168 if (((long) (sizeof (void *))) < 0)
17169 {
17170 long i = longval ();
17171 if (i != ((long) (sizeof (void *))))
17172 exit (1);
17173 fprintf (f, "%ld\n", i);
17174 }
17175 else
17176 {
17177 unsigned long i = ulongval ();
17178 if (i != ((long) (sizeof (void *))))
17179 exit (1);
17180 fprintf (f, "%lu\n", i);
17181 }
17182 exit (ferror (f) || fclose (f) != 0);
17183
17184 ;
17185 return 0;
17186}
17187_ACEOF
17188rm -f conftest$ac_exeext
17189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17190 (eval $ac_link) 2>&5
17191 ac_status=$?
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 ac_cv_sizeof_void_p=`cat conftest.val`
17200else
17201 echo "$as_me: program exited with status $ac_status" >&5
17202echo "$as_me: failed program was:" >&5
17203sed 's/^/| /' conftest.$ac_ext >&5
17204
17205( exit $ac_status )
17206{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17207See \`config.log' for more details." >&5
17208echo "$as_me: error: cannot compute sizeof (void *), 77
17209See \`config.log' for more details." >&2;}
17210 { (exit 1); exit 1; }; }
17211fi
ac1cb8d3 17212rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17213fi
17214fi
17215rm -f conftest.val
17216else
17217 ac_cv_sizeof_void_p=0
17218fi
17219fi
17220echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17221echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17222cat >>confdefs.h <<_ACEOF
17223#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17224_ACEOF
17225
17226
17227echo "$as_me:$LINENO: checking for int" >&5
17228echo $ECHO_N "checking for int... $ECHO_C" >&6
17229if test "${ac_cv_type_int+set}" = set; then
17230 echo $ECHO_N "(cached) $ECHO_C" >&6
17231else
17232 cat >conftest.$ac_ext <<_ACEOF
17233/* confdefs.h. */
17234_ACEOF
17235cat confdefs.h >>conftest.$ac_ext
17236cat >>conftest.$ac_ext <<_ACEOF
17237/* end confdefs.h. */
17238$ac_includes_default
17239int
17240main ()
17241{
17242if ((int *) 0)
17243 return 0;
17244if (sizeof (int))
17245 return 0;
17246 ;
17247 return 0;
17248}
17249_ACEOF
17250rm -f conftest.$ac_objext
17251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17252 (eval $ac_compile) 2>conftest.er1
a848cd7e 17253 ac_status=$?
ac1cb8d3
VS
17254 grep -v '^ *+' conftest.er1 >conftest.err
17255 rm -f conftest.er1
17256 cat conftest.err >&5
a848cd7e
SC
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); } &&
6ebeb4c7 17259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } &&
17265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 ac_cv_type_int=yes
17272else
17273 echo "$as_me: failed program was:" >&5
17274sed 's/^/| /' conftest.$ac_ext >&5
17275
17276ac_cv_type_int=no
17277fi
ac1cb8d3 17278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17279fi
17280echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17281echo "${ECHO_T}$ac_cv_type_int" >&6
17282
17283echo "$as_me:$LINENO: checking size of int" >&5
17284echo $ECHO_N "checking size of int... $ECHO_C" >&6
17285if test "${ac_cv_sizeof_int+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17287else
17288 if test "$ac_cv_type_int" = yes; then
17289 # The cast to unsigned long works around a bug in the HP C Compiler
17290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17292 # This bug is HP SR number 8606223364.
17293 if test "$cross_compiling" = yes; then
17294 # Depending upon the size, compute the lo and hi bounds.
17295cat >conftest.$ac_ext <<_ACEOF
17296/* confdefs.h. */
17297_ACEOF
17298cat confdefs.h >>conftest.$ac_ext
17299cat >>conftest.$ac_ext <<_ACEOF
17300/* end confdefs.h. */
17301$ac_includes_default
17302int
17303main ()
17304{
17305static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17306test_array [0] = 0
17307
17308 ;
17309 return 0;
17310}
17311_ACEOF
17312rm -f conftest.$ac_objext
17313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17314 (eval $ac_compile) 2>conftest.er1
a848cd7e 17315 ac_status=$?
ac1cb8d3
VS
17316 grep -v '^ *+' conftest.er1 >conftest.err
17317 rm -f conftest.er1
17318 cat conftest.err >&5
a848cd7e
SC
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
6ebeb4c7 17321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_lo=0 ac_mid=0
17334 while :; do
17335 cat >conftest.$ac_ext <<_ACEOF
17336/* confdefs.h. */
17337_ACEOF
17338cat confdefs.h >>conftest.$ac_ext
17339cat >>conftest.$ac_ext <<_ACEOF
17340/* end confdefs.h. */
17341$ac_includes_default
17342int
17343main ()
17344{
17345static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17346test_array [0] = 0
17347
17348 ;
17349 return 0;
17350}
17351_ACEOF
17352rm -f conftest.$ac_objext
17353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17354 (eval $ac_compile) 2>conftest.er1
a848cd7e 17355 ac_status=$?
ac1cb8d3
VS
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
a848cd7e
SC
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
6ebeb4c7 17361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; } &&
17367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369 (eval $ac_try) 2>&5
17370 ac_status=$?
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; }; then
17373 ac_hi=$ac_mid; break
17374else
17375 echo "$as_me: failed program was:" >&5
17376sed 's/^/| /' conftest.$ac_ext >&5
17377
17378ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17379 if test $ac_lo -le $ac_mid; then
17380 ac_lo= ac_hi=
17381 break
17382 fi
17383 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17384fi
ac1cb8d3 17385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17386 done
17387else
17388 echo "$as_me: failed program was:" >&5
17389sed 's/^/| /' conftest.$ac_ext >&5
17390
17391cat >conftest.$ac_ext <<_ACEOF
17392/* confdefs.h. */
17393_ACEOF
17394cat confdefs.h >>conftest.$ac_ext
17395cat >>conftest.$ac_ext <<_ACEOF
17396/* end confdefs.h. */
17397$ac_includes_default
17398int
17399main ()
17400{
17401static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17402test_array [0] = 0
17403
17404 ;
17405 return 0;
17406}
17407_ACEOF
17408rm -f conftest.$ac_objext
17409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17410 (eval $ac_compile) 2>conftest.er1
a848cd7e 17411 ac_status=$?
ac1cb8d3
VS
17412 grep -v '^ *+' conftest.er1 >conftest.err
17413 rm -f conftest.er1
17414 cat conftest.err >&5
a848cd7e
SC
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } &&
6ebeb4c7 17417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; } &&
17423 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; }; then
17429 ac_hi=-1 ac_mid=-1
17430 while :; do
17431 cat >conftest.$ac_ext <<_ACEOF
17432/* confdefs.h. */
17433_ACEOF
17434cat confdefs.h >>conftest.$ac_ext
17435cat >>conftest.$ac_ext <<_ACEOF
17436/* end confdefs.h. */
17437$ac_includes_default
17438int
17439main ()
17440{
17441static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17442test_array [0] = 0
17443
17444 ;
17445 return 0;
17446}
17447_ACEOF
17448rm -f conftest.$ac_objext
17449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17450 (eval $ac_compile) 2>conftest.er1
a848cd7e 17451 ac_status=$?
ac1cb8d3
VS
17452 grep -v '^ *+' conftest.er1 >conftest.err
17453 rm -f conftest.er1
17454 cat conftest.err >&5
a848cd7e
SC
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } &&
6ebeb4c7 17457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17460 ac_status=$?
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; } &&
17463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; }; then
17469 ac_lo=$ac_mid; break
17470else
17471 echo "$as_me: failed program was:" >&5
17472sed 's/^/| /' conftest.$ac_ext >&5
17473
17474ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17475 if test $ac_mid -le $ac_hi; then
17476 ac_lo= ac_hi=
17477 break
17478 fi
17479 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17480fi
ac1cb8d3 17481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17482 done
17483else
17484 echo "$as_me: failed program was:" >&5
17485sed 's/^/| /' conftest.$ac_ext >&5
17486
17487ac_lo= ac_hi=
17488fi
ac1cb8d3 17489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17490fi
ac1cb8d3 17491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17492# Binary search between lo and hi bounds.
17493while test "x$ac_lo" != "x$ac_hi"; do
17494 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17495 cat >conftest.$ac_ext <<_ACEOF
17496/* confdefs.h. */
17497_ACEOF
17498cat confdefs.h >>conftest.$ac_ext
17499cat >>conftest.$ac_ext <<_ACEOF
17500/* end confdefs.h. */
17501$ac_includes_default
17502int
17503main ()
17504{
17505static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17506test_array [0] = 0
17507
17508 ;
17509 return 0;
17510}
17511_ACEOF
17512rm -f conftest.$ac_objext
17513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17514 (eval $ac_compile) 2>conftest.er1
a848cd7e 17515 ac_status=$?
ac1cb8d3
VS
17516 grep -v '^ *+' conftest.er1 >conftest.err
17517 rm -f conftest.er1
17518 cat conftest.err >&5
a848cd7e
SC
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } &&
6ebeb4c7 17521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17523 (eval $ac_try) 2>&5
17524 ac_status=$?
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; } &&
17527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
17533 ac_hi=$ac_mid
17534else
17535 echo "$as_me: failed program was:" >&5
17536sed 's/^/| /' conftest.$ac_ext >&5
17537
17538ac_lo=`expr '(' $ac_mid ')' + 1`
17539fi
ac1cb8d3 17540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17541done
17542case $ac_lo in
17543?*) ac_cv_sizeof_int=$ac_lo;;
17544'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17545See \`config.log' for more details." >&5
17546echo "$as_me: error: cannot compute sizeof (int), 77
17547See \`config.log' for more details." >&2;}
17548 { (exit 1); exit 1; }; } ;;
17549esac
17550else
17551 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17552 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17553echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17554 { (exit 1); exit 1; }; }
17555else
17556 cat >conftest.$ac_ext <<_ACEOF
17557/* confdefs.h. */
17558_ACEOF
17559cat confdefs.h >>conftest.$ac_ext
17560cat >>conftest.$ac_ext <<_ACEOF
17561/* end confdefs.h. */
17562$ac_includes_default
17563long longval () { return (long) (sizeof (int)); }
17564unsigned long ulongval () { return (long) (sizeof (int)); }
17565#include <stdio.h>
17566#include <stdlib.h>
17567int
17568main ()
17569{
17570
17571 FILE *f = fopen ("conftest.val", "w");
17572 if (! f)
17573 exit (1);
17574 if (((long) (sizeof (int))) < 0)
17575 {
17576 long i = longval ();
17577 if (i != ((long) (sizeof (int))))
17578 exit (1);
17579 fprintf (f, "%ld\n", i);
17580 }
17581 else
17582 {
17583 unsigned long i = ulongval ();
17584 if (i != ((long) (sizeof (int))))
17585 exit (1);
17586 fprintf (f, "%lu\n", i);
17587 }
17588 exit (ferror (f) || fclose (f) != 0);
17589
17590 ;
17591 return 0;
17592}
17593_ACEOF
17594rm -f conftest$ac_exeext
17595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17596 (eval $ac_link) 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17602 ac_status=$?
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; }; then
17605 ac_cv_sizeof_int=`cat conftest.val`
17606else
17607 echo "$as_me: program exited with status $ac_status" >&5
17608echo "$as_me: failed program was:" >&5
17609sed 's/^/| /' conftest.$ac_ext >&5
17610
17611( exit $ac_status )
17612{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17613See \`config.log' for more details." >&5
17614echo "$as_me: error: cannot compute sizeof (int), 77
17615See \`config.log' for more details." >&2;}
17616 { (exit 1); exit 1; }; }
17617fi
ac1cb8d3 17618rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17619fi
17620fi
17621rm -f conftest.val
17622else
17623 ac_cv_sizeof_int=0
17624fi
17625fi
17626echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17627echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17628cat >>confdefs.h <<_ACEOF
17629#define SIZEOF_INT $ac_cv_sizeof_int
17630_ACEOF
17631
17632
17633echo "$as_me:$LINENO: checking for long" >&5
17634echo $ECHO_N "checking for long... $ECHO_C" >&6
17635if test "${ac_cv_type_long+set}" = set; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17637else
17638 cat >conftest.$ac_ext <<_ACEOF
17639/* confdefs.h. */
17640_ACEOF
17641cat confdefs.h >>conftest.$ac_ext
17642cat >>conftest.$ac_ext <<_ACEOF
17643/* end confdefs.h. */
17644$ac_includes_default
17645int
17646main ()
17647{
17648if ((long *) 0)
17649 return 0;
17650if (sizeof (long))
17651 return 0;
17652 ;
17653 return 0;
17654}
17655_ACEOF
17656rm -f conftest.$ac_objext
17657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17658 (eval $ac_compile) 2>conftest.er1
a848cd7e 17659 ac_status=$?
ac1cb8d3
VS
17660 grep -v '^ *+' conftest.er1 >conftest.err
17661 rm -f conftest.er1
17662 cat conftest.err >&5
a848cd7e
SC
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } &&
6ebeb4c7 17665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; } &&
17671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673 (eval $ac_try) 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 ac_cv_type_long=yes
17678else
17679 echo "$as_me: failed program was:" >&5
17680sed 's/^/| /' conftest.$ac_ext >&5
17681
17682ac_cv_type_long=no
17683fi
ac1cb8d3 17684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17685fi
17686echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17687echo "${ECHO_T}$ac_cv_type_long" >&6
17688
17689echo "$as_me:$LINENO: checking size of long" >&5
17690echo $ECHO_N "checking size of long... $ECHO_C" >&6
17691if test "${ac_cv_sizeof_long+set}" = set; then
17692 echo $ECHO_N "(cached) $ECHO_C" >&6
17693else
17694 if test "$ac_cv_type_long" = yes; then
17695 # The cast to unsigned long works around a bug in the HP C Compiler
17696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17698 # This bug is HP SR number 8606223364.
17699 if test "$cross_compiling" = yes; then
17700 # Depending upon the size, compute the lo and hi bounds.
17701cat >conftest.$ac_ext <<_ACEOF
17702/* confdefs.h. */
17703_ACEOF
17704cat confdefs.h >>conftest.$ac_ext
17705cat >>conftest.$ac_ext <<_ACEOF
17706/* end confdefs.h. */
17707$ac_includes_default
17708int
17709main ()
17710{
17711static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17712test_array [0] = 0
17713
17714 ;
17715 return 0;
17716}
17717_ACEOF
17718rm -f conftest.$ac_objext
17719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17720 (eval $ac_compile) 2>conftest.er1
a848cd7e 17721 ac_status=$?
ac1cb8d3
VS
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
a848cd7e
SC
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
6ebeb4c7 17727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 ac_lo=0 ac_mid=0
17740 while :; do
17741 cat >conftest.$ac_ext <<_ACEOF
17742/* confdefs.h. */
17743_ACEOF
17744cat confdefs.h >>conftest.$ac_ext
17745cat >>conftest.$ac_ext <<_ACEOF
17746/* end confdefs.h. */
17747$ac_includes_default
17748int
17749main ()
17750{
17751static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17752test_array [0] = 0
17753
17754 ;
17755 return 0;
17756}
17757_ACEOF
17758rm -f conftest.$ac_objext
17759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17760 (eval $ac_compile) 2>conftest.er1
a848cd7e 17761 ac_status=$?
ac1cb8d3
VS
17762 grep -v '^ *+' conftest.er1 >conftest.err
17763 rm -f conftest.er1
17764 cat conftest.err >&5
a848cd7e
SC
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
6ebeb4c7 17767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; } &&
17773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775 (eval $ac_try) 2>&5
17776 ac_status=$?
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; }; then
17779 ac_hi=$ac_mid; break
17780else
17781 echo "$as_me: failed program was:" >&5
17782sed 's/^/| /' conftest.$ac_ext >&5
17783
17784ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17785 if test $ac_lo -le $ac_mid; then
17786 ac_lo= ac_hi=
17787 break
17788 fi
17789 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17790fi
ac1cb8d3 17791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17792 done
17793else
17794 echo "$as_me: failed program was:" >&5
17795sed 's/^/| /' conftest.$ac_ext >&5
17796
17797cat >conftest.$ac_ext <<_ACEOF
17798/* confdefs.h. */
17799_ACEOF
17800cat confdefs.h >>conftest.$ac_ext
17801cat >>conftest.$ac_ext <<_ACEOF
17802/* end confdefs.h. */
17803$ac_includes_default
17804int
17805main ()
17806{
17807static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17808test_array [0] = 0
17809
17810 ;
17811 return 0;
17812}
17813_ACEOF
17814rm -f conftest.$ac_objext
17815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17816 (eval $ac_compile) 2>conftest.er1
a848cd7e 17817 ac_status=$?
ac1cb8d3
VS
17818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -f conftest.er1
17820 cat conftest.err >&5
a848cd7e
SC
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
6ebeb4c7 17823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_hi=-1 ac_mid=-1
17836 while :; do
17837 cat >conftest.$ac_ext <<_ACEOF
17838/* confdefs.h. */
17839_ACEOF
17840cat confdefs.h >>conftest.$ac_ext
17841cat >>conftest.$ac_ext <<_ACEOF
17842/* end confdefs.h. */
17843$ac_includes_default
17844int
17845main ()
17846{
17847static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17848test_array [0] = 0
17849
17850 ;
17851 return 0;
17852}
17853_ACEOF
17854rm -f conftest.$ac_objext
17855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17856 (eval $ac_compile) 2>conftest.er1
a848cd7e 17857 ac_status=$?
ac1cb8d3
VS
17858 grep -v '^ *+' conftest.er1 >conftest.err
17859 rm -f conftest.er1
17860 cat conftest.err >&5
a848cd7e
SC
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } &&
6ebeb4c7 17863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; } &&
17869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 ac_lo=$ac_mid; break
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17881 if test $ac_mid -le $ac_hi; then
17882 ac_lo= ac_hi=
17883 break
17884 fi
17885 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17886fi
ac1cb8d3 17887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17888 done
17889else
17890 echo "$as_me: failed program was:" >&5
17891sed 's/^/| /' conftest.$ac_ext >&5
17892
17893ac_lo= ac_hi=
17894fi
ac1cb8d3 17895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17896fi
ac1cb8d3 17897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17898# Binary search between lo and hi bounds.
17899while test "x$ac_lo" != "x$ac_hi"; do
17900 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17901 cat >conftest.$ac_ext <<_ACEOF
17902/* confdefs.h. */
17903_ACEOF
17904cat confdefs.h >>conftest.$ac_ext
17905cat >>conftest.$ac_ext <<_ACEOF
17906/* end confdefs.h. */
17907$ac_includes_default
17908int
17909main ()
17910{
17911static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17912test_array [0] = 0
17913
17914 ;
17915 return 0;
17916}
17917_ACEOF
17918rm -f conftest.$ac_objext
17919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17920 (eval $ac_compile) 2>conftest.er1
a848cd7e 17921 ac_status=$?
ac1cb8d3
VS
17922 grep -v '^ *+' conftest.er1 >conftest.err
17923 rm -f conftest.er1
17924 cat conftest.err >&5
a848cd7e
SC
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } &&
6ebeb4c7 17927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17930 ac_status=$?
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; } &&
17933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17936 ac_status=$?
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
17939 ac_hi=$ac_mid
17940else
17941 echo "$as_me: failed program was:" >&5
17942sed 's/^/| /' conftest.$ac_ext >&5
17943
17944ac_lo=`expr '(' $ac_mid ')' + 1`
17945fi
ac1cb8d3 17946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17947done
17948case $ac_lo in
17949?*) ac_cv_sizeof_long=$ac_lo;;
17950'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17951See \`config.log' for more details." >&5
17952echo "$as_me: error: cannot compute sizeof (long), 77
17953See \`config.log' for more details." >&2;}
17954 { (exit 1); exit 1; }; } ;;
17955esac
17956else
17957 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17958 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17959echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17960 { (exit 1); exit 1; }; }
17961else
17962 cat >conftest.$ac_ext <<_ACEOF
17963/* confdefs.h. */
17964_ACEOF
17965cat confdefs.h >>conftest.$ac_ext
17966cat >>conftest.$ac_ext <<_ACEOF
17967/* end confdefs.h. */
17968$ac_includes_default
17969long longval () { return (long) (sizeof (long)); }
17970unsigned long ulongval () { return (long) (sizeof (long)); }
17971#include <stdio.h>
17972#include <stdlib.h>
17973int
17974main ()
17975{
17976
17977 FILE *f = fopen ("conftest.val", "w");
17978 if (! f)
17979 exit (1);
17980 if (((long) (sizeof (long))) < 0)
17981 {
17982 long i = longval ();
17983 if (i != ((long) (sizeof (long))))
17984 exit (1);
17985 fprintf (f, "%ld\n", i);
17986 }
17987 else
17988 {
17989 unsigned long i = ulongval ();
17990 if (i != ((long) (sizeof (long))))
17991 exit (1);
17992 fprintf (f, "%lu\n", i);
17993 }
17994 exit (ferror (f) || fclose (f) != 0);
17995
17996 ;
17997 return 0;
17998}
17999_ACEOF
18000rm -f conftest$ac_exeext
18001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18002 (eval $ac_link) 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 ac_cv_sizeof_long=`cat conftest.val`
18012else
18013 echo "$as_me: program exited with status $ac_status" >&5
18014echo "$as_me: failed program was:" >&5
18015sed 's/^/| /' conftest.$ac_ext >&5
18016
18017( exit $ac_status )
18018{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18019See \`config.log' for more details." >&5
18020echo "$as_me: error: cannot compute sizeof (long), 77
18021See \`config.log' for more details." >&2;}
18022 { (exit 1); exit 1; }; }
18023fi
ac1cb8d3 18024rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18025fi
18026fi
18027rm -f conftest.val
18028else
18029 ac_cv_sizeof_long=0
18030fi
18031fi
18032echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18033echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18034cat >>confdefs.h <<_ACEOF
18035#define SIZEOF_LONG $ac_cv_sizeof_long
18036_ACEOF
18037
18038
18039echo "$as_me:$LINENO: checking for size_t" >&5
18040echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18041if test "${ac_cv_type_size_t+set}" = set; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18043else
18044 cat >conftest.$ac_ext <<_ACEOF
18045/* confdefs.h. */
18046_ACEOF
18047cat confdefs.h >>conftest.$ac_ext
18048cat >>conftest.$ac_ext <<_ACEOF
18049/* end confdefs.h. */
18050$ac_includes_default
18051int
18052main ()
18053{
18054if ((size_t *) 0)
18055 return 0;
18056if (sizeof (size_t))
18057 return 0;
18058 ;
18059 return 0;
18060}
18061_ACEOF
18062rm -f conftest.$ac_objext
18063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18064 (eval $ac_compile) 2>conftest.er1
a848cd7e 18065 ac_status=$?
ac1cb8d3
VS
18066 grep -v '^ *+' conftest.er1 >conftest.err
18067 rm -f conftest.er1
18068 cat conftest.err >&5
a848cd7e
SC
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
6ebeb4c7 18071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18074 ac_status=$?
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; } &&
18077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; }; then
18083 ac_cv_type_size_t=yes
18084else
18085 echo "$as_me: failed program was:" >&5
18086sed 's/^/| /' conftest.$ac_ext >&5
18087
18088ac_cv_type_size_t=no
18089fi
ac1cb8d3 18090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18091fi
18092echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18093echo "${ECHO_T}$ac_cv_type_size_t" >&6
18094
18095echo "$as_me:$LINENO: checking size of size_t" >&5
18096echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18097if test "${ac_cv_sizeof_size_t+set}" = set; then
18098 echo $ECHO_N "(cached) $ECHO_C" >&6
18099else
18100 if test "$ac_cv_type_size_t" = yes; then
18101 # The cast to unsigned long works around a bug in the HP C Compiler
18102 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18103 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18104 # This bug is HP SR number 8606223364.
18105 if test "$cross_compiling" = yes; then
18106 # Depending upon the size, compute the lo and hi bounds.
18107cat >conftest.$ac_ext <<_ACEOF
18108/* confdefs.h. */
18109_ACEOF
18110cat confdefs.h >>conftest.$ac_ext
18111cat >>conftest.$ac_ext <<_ACEOF
18112/* end confdefs.h. */
18113$ac_includes_default
18114int
18115main ()
18116{
18117static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18118test_array [0] = 0
18119
18120 ;
18121 return 0;
18122}
18123_ACEOF
18124rm -f conftest.$ac_objext
18125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18126 (eval $ac_compile) 2>conftest.er1
a848cd7e 18127 ac_status=$?
ac1cb8d3
VS
18128 grep -v '^ *+' conftest.er1 >conftest.err
18129 rm -f conftest.er1
18130 cat conftest.err >&5
a848cd7e
SC
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); } &&
6ebeb4c7 18133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135 (eval $ac_try) 2>&5
18136 ac_status=$?
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; } &&
18139 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18141 (eval $ac_try) 2>&5
18142 ac_status=$?
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }; }; then
18145 ac_lo=0 ac_mid=0
18146 while :; do
18147 cat >conftest.$ac_ext <<_ACEOF
18148/* confdefs.h. */
18149_ACEOF
18150cat confdefs.h >>conftest.$ac_ext
18151cat >>conftest.$ac_ext <<_ACEOF
18152/* end confdefs.h. */
18153$ac_includes_default
18154int
18155main ()
18156{
18157static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18158test_array [0] = 0
18159
18160 ;
18161 return 0;
18162}
18163_ACEOF
18164rm -f conftest.$ac_objext
18165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18166 (eval $ac_compile) 2>conftest.er1
a848cd7e 18167 ac_status=$?
ac1cb8d3
VS
18168 grep -v '^ *+' conftest.er1 >conftest.err
18169 rm -f conftest.er1
18170 cat conftest.err >&5
a848cd7e
SC
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); } &&
6ebeb4c7 18173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18175 (eval $ac_try) 2>&5
18176 ac_status=$?
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; } &&
18179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 ac_hi=$ac_mid; break
18186else
18187 echo "$as_me: failed program was:" >&5
18188sed 's/^/| /' conftest.$ac_ext >&5
18189
18190ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18191 if test $ac_lo -le $ac_mid; then
18192 ac_lo= ac_hi=
18193 break
18194 fi
18195 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18196fi
ac1cb8d3 18197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18198 done
18199else
18200 echo "$as_me: failed program was:" >&5
18201sed 's/^/| /' conftest.$ac_ext >&5
18202
18203cat >conftest.$ac_ext <<_ACEOF
18204/* confdefs.h. */
18205_ACEOF
18206cat confdefs.h >>conftest.$ac_ext
18207cat >>conftest.$ac_ext <<_ACEOF
18208/* end confdefs.h. */
18209$ac_includes_default
18210int
18211main ()
18212{
18213static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18214test_array [0] = 0
18215
18216 ;
18217 return 0;
18218}
18219_ACEOF
18220rm -f conftest.$ac_objext
18221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18222 (eval $ac_compile) 2>conftest.er1
a848cd7e 18223 ac_status=$?
ac1cb8d3
VS
18224 grep -v '^ *+' conftest.er1 >conftest.err
18225 rm -f conftest.er1
18226 cat conftest.err >&5
a848cd7e
SC
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } &&
6ebeb4c7 18229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18232 ac_status=$?
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; } &&
18235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; }; then
18241 ac_hi=-1 ac_mid=-1
18242 while :; do
18243 cat >conftest.$ac_ext <<_ACEOF
18244/* confdefs.h. */
18245_ACEOF
18246cat confdefs.h >>conftest.$ac_ext
18247cat >>conftest.$ac_ext <<_ACEOF
18248/* end confdefs.h. */
18249$ac_includes_default
18250int
18251main ()
18252{
18253static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18254test_array [0] = 0
18255
18256 ;
18257 return 0;
18258}
18259_ACEOF
18260rm -f conftest.$ac_objext
18261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18262 (eval $ac_compile) 2>conftest.er1
a848cd7e 18263 ac_status=$?
ac1cb8d3
VS
18264 grep -v '^ *+' conftest.er1 >conftest.err
18265 rm -f conftest.er1
18266 cat conftest.err >&5
a848cd7e
SC
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } &&
6ebeb4c7 18269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18272 ac_status=$?
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; } &&
18275 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 ac_lo=$ac_mid; break
18282else
18283 echo "$as_me: failed program was:" >&5
18284sed 's/^/| /' conftest.$ac_ext >&5
18285
18286ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18287 if test $ac_mid -le $ac_hi; then
18288 ac_lo= ac_hi=
18289 break
18290 fi
18291 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18292fi
ac1cb8d3 18293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18294 done
18295else
18296 echo "$as_me: failed program was:" >&5
18297sed 's/^/| /' conftest.$ac_ext >&5
18298
18299ac_lo= ac_hi=
18300fi
ac1cb8d3 18301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18302fi
ac1cb8d3 18303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18304# Binary search between lo and hi bounds.
18305while test "x$ac_lo" != "x$ac_hi"; do
18306 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18307 cat >conftest.$ac_ext <<_ACEOF
18308/* confdefs.h. */
18309_ACEOF
18310cat confdefs.h >>conftest.$ac_ext
18311cat >>conftest.$ac_ext <<_ACEOF
18312/* end confdefs.h. */
18313$ac_includes_default
18314int
18315main ()
18316{
18317static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18318test_array [0] = 0
18319
18320 ;
18321 return 0;
18322}
18323_ACEOF
18324rm -f conftest.$ac_objext
18325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18326 (eval $ac_compile) 2>conftest.er1
a848cd7e 18327 ac_status=$?
ac1cb8d3
VS
18328 grep -v '^ *+' conftest.er1 >conftest.err
18329 rm -f conftest.er1
18330 cat conftest.err >&5
a848cd7e
SC
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } &&
6ebeb4c7 18333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335 (eval $ac_try) 2>&5
18336 ac_status=$?
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); }; } &&
18339 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341 (eval $ac_try) 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 ac_hi=$ac_mid
18346else
18347 echo "$as_me: failed program was:" >&5
18348sed 's/^/| /' conftest.$ac_ext >&5
18349
18350ac_lo=`expr '(' $ac_mid ')' + 1`
18351fi
ac1cb8d3 18352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18353done
18354case $ac_lo in
18355?*) ac_cv_sizeof_size_t=$ac_lo;;
18356'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18357See \`config.log' for more details." >&5
18358echo "$as_me: error: cannot compute sizeof (size_t), 77
18359See \`config.log' for more details." >&2;}
18360 { (exit 1); exit 1; }; } ;;
18361esac
18362else
18363 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18364 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18365echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18366 { (exit 1); exit 1; }; }
18367else
18368 cat >conftest.$ac_ext <<_ACEOF
18369/* confdefs.h. */
18370_ACEOF
18371cat confdefs.h >>conftest.$ac_ext
18372cat >>conftest.$ac_ext <<_ACEOF
18373/* end confdefs.h. */
18374$ac_includes_default
18375long longval () { return (long) (sizeof (size_t)); }
18376unsigned long ulongval () { return (long) (sizeof (size_t)); }
18377#include <stdio.h>
18378#include <stdlib.h>
18379int
18380main ()
18381{
18382
18383 FILE *f = fopen ("conftest.val", "w");
18384 if (! f)
18385 exit (1);
18386 if (((long) (sizeof (size_t))) < 0)
18387 {
18388 long i = longval ();
18389 if (i != ((long) (sizeof (size_t))))
18390 exit (1);
18391 fprintf (f, "%ld\n", i);
18392 }
18393 else
18394 {
18395 unsigned long i = ulongval ();
18396 if (i != ((long) (sizeof (size_t))))
18397 exit (1);
18398 fprintf (f, "%lu\n", i);
18399 }
18400 exit (ferror (f) || fclose (f) != 0);
18401
18402 ;
18403 return 0;
18404}
18405_ACEOF
18406rm -f conftest$ac_exeext
18407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18408 (eval $ac_link) 2>&5
18409 ac_status=$?
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413 (eval $ac_try) 2>&5
18414 ac_status=$?
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); }; }; then
18417 ac_cv_sizeof_size_t=`cat conftest.val`
18418else
18419 echo "$as_me: program exited with status $ac_status" >&5
18420echo "$as_me: failed program was:" >&5
18421sed 's/^/| /' conftest.$ac_ext >&5
18422
18423( exit $ac_status )
18424{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18425See \`config.log' for more details." >&5
18426echo "$as_me: error: cannot compute sizeof (size_t), 77
18427See \`config.log' for more details." >&2;}
18428 { (exit 1); exit 1; }; }
18429fi
ac1cb8d3 18430rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18431fi
18432fi
18433rm -f conftest.val
18434else
18435 ac_cv_sizeof_size_t=0
18436fi
18437fi
18438echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18439echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18440cat >>confdefs.h <<_ACEOF
18441#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18442_ACEOF
18443
18444
18445
18446case "${host}" in
18447 arm-*-linux* )
18448 echo "$as_me:$LINENO: checking for long long" >&5
18449echo $ECHO_N "checking for long long... $ECHO_C" >&6
18450if test "${ac_cv_type_long_long+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18452else
18453 cat >conftest.$ac_ext <<_ACEOF
18454/* confdefs.h. */
18455_ACEOF
18456cat confdefs.h >>conftest.$ac_ext
18457cat >>conftest.$ac_ext <<_ACEOF
18458/* end confdefs.h. */
18459$ac_includes_default
18460int
18461main ()
18462{
18463if ((long long *) 0)
18464 return 0;
18465if (sizeof (long long))
18466 return 0;
18467 ;
18468 return 0;
18469}
18470_ACEOF
18471rm -f conftest.$ac_objext
18472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18473 (eval $ac_compile) 2>conftest.er1
a848cd7e 18474 ac_status=$?
ac1cb8d3
VS
18475 grep -v '^ *+' conftest.er1 >conftest.err
18476 rm -f conftest.er1
18477 cat conftest.err >&5
a848cd7e
SC
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); } &&
6ebeb4c7 18480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18482 (eval $ac_try) 2>&5
18483 ac_status=$?
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; } &&
18486 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18489 ac_status=$?
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; }; then
18492 ac_cv_type_long_long=yes
18493else
18494 echo "$as_me: failed program was:" >&5
18495sed 's/^/| /' conftest.$ac_ext >&5
18496
18497ac_cv_type_long_long=no
18498fi
ac1cb8d3 18499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18500fi
18501echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18502echo "${ECHO_T}$ac_cv_type_long_long" >&6
18503
18504echo "$as_me:$LINENO: checking size of long long" >&5
18505echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18506if test "${ac_cv_sizeof_long_long+set}" = set; then
18507 echo $ECHO_N "(cached) $ECHO_C" >&6
18508else
18509 if test "$ac_cv_type_long_long" = yes; then
18510 # The cast to unsigned long works around a bug in the HP C Compiler
18511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18513 # This bug is HP SR number 8606223364.
18514 if test "$cross_compiling" = yes; then
18515 # Depending upon the size, compute the lo and hi bounds.
18516cat >conftest.$ac_ext <<_ACEOF
18517/* confdefs.h. */
18518_ACEOF
18519cat confdefs.h >>conftest.$ac_ext
18520cat >>conftest.$ac_ext <<_ACEOF
18521/* end confdefs.h. */
18522$ac_includes_default
18523int
18524main ()
18525{
18526static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18527test_array [0] = 0
18528
18529 ;
18530 return 0;
18531}
18532_ACEOF
18533rm -f conftest.$ac_objext
18534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18535 (eval $ac_compile) 2>conftest.er1
a848cd7e 18536 ac_status=$?
ac1cb8d3
VS
18537 grep -v '^ *+' conftest.er1 >conftest.err
18538 rm -f conftest.er1
18539 cat conftest.err >&5
a848cd7e
SC
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
6ebeb4c7 18542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
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); }; } &&
18548 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550 (eval $ac_try) 2>&5
18551 ac_status=$?
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); }; }; then
18554 ac_lo=0 ac_mid=0
18555 while :; do
18556 cat >conftest.$ac_ext <<_ACEOF
18557/* confdefs.h. */
18558_ACEOF
18559cat confdefs.h >>conftest.$ac_ext
18560cat >>conftest.$ac_ext <<_ACEOF
18561/* end confdefs.h. */
18562$ac_includes_default
18563int
18564main ()
18565{
18566static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18567test_array [0] = 0
18568
18569 ;
18570 return 0;
18571}
18572_ACEOF
18573rm -f conftest.$ac_objext
18574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18575 (eval $ac_compile) 2>conftest.er1
a848cd7e 18576 ac_status=$?
ac1cb8d3
VS
18577 grep -v '^ *+' conftest.er1 >conftest.err
18578 rm -f conftest.er1
18579 cat conftest.err >&5
a848cd7e
SC
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); } &&
6ebeb4c7 18582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18585 ac_status=$?
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; } &&
18588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18591 ac_status=$?
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; }; then
18594 ac_hi=$ac_mid; break
18595else
18596 echo "$as_me: failed program was:" >&5
18597sed 's/^/| /' conftest.$ac_ext >&5
18598
18599ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18600 if test $ac_lo -le $ac_mid; then
18601 ac_lo= ac_hi=
18602 break
18603 fi
18604 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18605fi
ac1cb8d3 18606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18607 done
18608else
18609 echo "$as_me: failed program was:" >&5
18610sed 's/^/| /' conftest.$ac_ext >&5
18611
18612cat >conftest.$ac_ext <<_ACEOF
18613/* confdefs.h. */
18614_ACEOF
18615cat confdefs.h >>conftest.$ac_ext
18616cat >>conftest.$ac_ext <<_ACEOF
18617/* end confdefs.h. */
18618$ac_includes_default
18619int
18620main ()
18621{
18622static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18623test_array [0] = 0
18624
18625 ;
18626 return 0;
18627}
18628_ACEOF
18629rm -f conftest.$ac_objext
18630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18631 (eval $ac_compile) 2>conftest.er1
a848cd7e 18632 ac_status=$?
ac1cb8d3
VS
18633 grep -v '^ *+' conftest.er1 >conftest.err
18634 rm -f conftest.er1
18635 cat conftest.err >&5
a848cd7e
SC
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } &&
6ebeb4c7 18638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640 (eval $ac_try) 2>&5
18641 ac_status=$?
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; } &&
18644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646 (eval $ac_try) 2>&5
18647 ac_status=$?
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; }; then
18650 ac_hi=-1 ac_mid=-1
18651 while :; do
18652 cat >conftest.$ac_ext <<_ACEOF
18653/* confdefs.h. */
18654_ACEOF
18655cat confdefs.h >>conftest.$ac_ext
18656cat >>conftest.$ac_ext <<_ACEOF
18657/* end confdefs.h. */
18658$ac_includes_default
18659int
18660main ()
18661{
18662static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18663test_array [0] = 0
18664
18665 ;
18666 return 0;
18667}
18668_ACEOF
18669rm -f conftest.$ac_objext
18670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18671 (eval $ac_compile) 2>conftest.er1
a848cd7e 18672 ac_status=$?
ac1cb8d3
VS
18673 grep -v '^ *+' conftest.er1 >conftest.err
18674 rm -f conftest.er1
18675 cat conftest.err >&5
a848cd7e
SC
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
6ebeb4c7 18678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680 (eval $ac_try) 2>&5
18681 ac_status=$?
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; } &&
18684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686 (eval $ac_try) 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); }; }; then
18690 ac_lo=$ac_mid; break
18691else
18692 echo "$as_me: failed program was:" >&5
18693sed 's/^/| /' conftest.$ac_ext >&5
18694
18695ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18696 if test $ac_mid -le $ac_hi; then
18697 ac_lo= ac_hi=
18698 break
18699 fi
18700 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18701fi
ac1cb8d3 18702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18703 done
18704else
18705 echo "$as_me: failed program was:" >&5
18706sed 's/^/| /' conftest.$ac_ext >&5
18707
18708ac_lo= ac_hi=
18709fi
ac1cb8d3 18710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18711fi
ac1cb8d3 18712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18713# Binary search between lo and hi bounds.
18714while test "x$ac_lo" != "x$ac_hi"; do
18715 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18716 cat >conftest.$ac_ext <<_ACEOF
18717/* confdefs.h. */
18718_ACEOF
18719cat confdefs.h >>conftest.$ac_ext
18720cat >>conftest.$ac_ext <<_ACEOF
18721/* end confdefs.h. */
18722$ac_includes_default
18723int
18724main ()
18725{
18726static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18727test_array [0] = 0
18728
18729 ;
18730 return 0;
18731}
18732_ACEOF
18733rm -f conftest.$ac_objext
18734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18735 (eval $ac_compile) 2>conftest.er1
a848cd7e 18736 ac_status=$?
ac1cb8d3
VS
18737 grep -v '^ *+' conftest.er1 >conftest.err
18738 rm -f conftest.er1
18739 cat conftest.err >&5
a848cd7e
SC
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); } &&
6ebeb4c7 18742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744 (eval $ac_try) 2>&5
18745 ac_status=$?
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; } &&
18748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18750 (eval $ac_try) 2>&5
18751 ac_status=$?
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; }; then
18754 ac_hi=$ac_mid
18755else
18756 echo "$as_me: failed program was:" >&5
18757sed 's/^/| /' conftest.$ac_ext >&5
18758
18759ac_lo=`expr '(' $ac_mid ')' + 1`
18760fi
ac1cb8d3 18761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18762done
18763case $ac_lo in
18764?*) ac_cv_sizeof_long_long=$ac_lo;;
18765'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18766See \`config.log' for more details." >&5
18767echo "$as_me: error: cannot compute sizeof (long long), 77
18768See \`config.log' for more details." >&2;}
18769 { (exit 1); exit 1; }; } ;;
18770esac
18771else
18772 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18773 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18774echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18775 { (exit 1); exit 1; }; }
18776else
18777 cat >conftest.$ac_ext <<_ACEOF
18778/* confdefs.h. */
18779_ACEOF
18780cat confdefs.h >>conftest.$ac_ext
18781cat >>conftest.$ac_ext <<_ACEOF
18782/* end confdefs.h. */
18783$ac_includes_default
18784long longval () { return (long) (sizeof (long long)); }
18785unsigned long ulongval () { return (long) (sizeof (long long)); }
18786#include <stdio.h>
18787#include <stdlib.h>
18788int
18789main ()
18790{
18791
18792 FILE *f = fopen ("conftest.val", "w");
18793 if (! f)
18794 exit (1);
18795 if (((long) (sizeof (long long))) < 0)
18796 {
18797 long i = longval ();
18798 if (i != ((long) (sizeof (long long))))
18799 exit (1);
18800 fprintf (f, "%ld\n", i);
18801 }
18802 else
18803 {
18804 unsigned long i = ulongval ();
18805 if (i != ((long) (sizeof (long long))))
18806 exit (1);
18807 fprintf (f, "%lu\n", i);
18808 }
18809 exit (ferror (f) || fclose (f) != 0);
18810
18811 ;
18812 return 0;
18813}
18814_ACEOF
18815rm -f conftest$ac_exeext
18816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18817 (eval $ac_link) 2>&5
18818 ac_status=$?
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; }; then
18826 ac_cv_sizeof_long_long=`cat conftest.val`
18827else
18828 echo "$as_me: program exited with status $ac_status" >&5
18829echo "$as_me: failed program was:" >&5
18830sed 's/^/| /' conftest.$ac_ext >&5
18831
18832( exit $ac_status )
18833{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18834See \`config.log' for more details." >&5
18835echo "$as_me: error: cannot compute sizeof (long long), 77
18836See \`config.log' for more details." >&2;}
18837 { (exit 1); exit 1; }; }
18838fi
ac1cb8d3 18839rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18840fi
18841fi
18842rm -f conftest.val
18843else
18844 ac_cv_sizeof_long_long=0
18845fi
18846fi
18847echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18848echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18849cat >>confdefs.h <<_ACEOF
18850#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18851_ACEOF
18852
18853
18854 ;;
18855 *-hp-hpux* )
18856 echo "$as_me:$LINENO: checking for long long" >&5
18857echo $ECHO_N "checking for long long... $ECHO_C" >&6
18858if test "${ac_cv_type_long_long+set}" = set; then
18859 echo $ECHO_N "(cached) $ECHO_C" >&6
18860else
18861 cat >conftest.$ac_ext <<_ACEOF
18862/* confdefs.h. */
18863_ACEOF
18864cat confdefs.h >>conftest.$ac_ext
18865cat >>conftest.$ac_ext <<_ACEOF
18866/* end confdefs.h. */
18867$ac_includes_default
18868int
18869main ()
18870{
18871if ((long long *) 0)
18872 return 0;
18873if (sizeof (long long))
18874 return 0;
18875 ;
18876 return 0;
18877}
18878_ACEOF
18879rm -f conftest.$ac_objext
18880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18881 (eval $ac_compile) 2>conftest.er1
a848cd7e 18882 ac_status=$?
ac1cb8d3
VS
18883 grep -v '^ *+' conftest.er1 >conftest.err
18884 rm -f conftest.er1
18885 cat conftest.err >&5
a848cd7e
SC
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } &&
6ebeb4c7 18888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18891 ac_status=$?
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; } &&
18894 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18897 ac_status=$?
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; }; then
18900 ac_cv_type_long_long=yes
18901else
18902 echo "$as_me: failed program was:" >&5
18903sed 's/^/| /' conftest.$ac_ext >&5
18904
18905ac_cv_type_long_long=no
18906fi
ac1cb8d3 18907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18908fi
18909echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18910echo "${ECHO_T}$ac_cv_type_long_long" >&6
18911
18912echo "$as_me:$LINENO: checking size of long long" >&5
18913echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18914if test "${ac_cv_sizeof_long_long+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18916else
18917 if test "$ac_cv_type_long_long" = yes; then
18918 # The cast to unsigned long works around a bug in the HP C Compiler
18919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18921 # This bug is HP SR number 8606223364.
18922 if test "$cross_compiling" = yes; then
18923 # Depending upon the size, compute the lo and hi bounds.
18924cat >conftest.$ac_ext <<_ACEOF
18925/* confdefs.h. */
18926_ACEOF
18927cat confdefs.h >>conftest.$ac_ext
18928cat >>conftest.$ac_ext <<_ACEOF
18929/* end confdefs.h. */
18930$ac_includes_default
18931int
18932main ()
18933{
18934static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18935test_array [0] = 0
18936
18937 ;
18938 return 0;
18939}
18940_ACEOF
18941rm -f conftest.$ac_objext
18942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18943 (eval $ac_compile) 2>conftest.er1
a848cd7e 18944 ac_status=$?
ac1cb8d3
VS
18945 grep -v '^ *+' conftest.er1 >conftest.err
18946 rm -f conftest.er1
18947 cat conftest.err >&5
a848cd7e
SC
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } &&
6ebeb4c7 18950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); }; } &&
18956 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; }; then
18962 ac_lo=0 ac_mid=0
18963 while :; do
18964 cat >conftest.$ac_ext <<_ACEOF
18965/* confdefs.h. */
18966_ACEOF
18967cat confdefs.h >>conftest.$ac_ext
18968cat >>conftest.$ac_ext <<_ACEOF
18969/* end confdefs.h. */
18970$ac_includes_default
18971int
18972main ()
18973{
18974static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18975test_array [0] = 0
18976
18977 ;
18978 return 0;
18979}
18980_ACEOF
18981rm -f conftest.$ac_objext
18982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18983 (eval $ac_compile) 2>conftest.er1
a848cd7e 18984 ac_status=$?
ac1cb8d3
VS
18985 grep -v '^ *+' conftest.er1 >conftest.err
18986 rm -f conftest.er1
18987 cat conftest.err >&5
a848cd7e
SC
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } &&
6ebeb4c7 18990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; } &&
18996 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002 ac_hi=$ac_mid; break
19003else
19004 echo "$as_me: failed program was:" >&5
19005sed 's/^/| /' conftest.$ac_ext >&5
19006
19007ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19008 if test $ac_lo -le $ac_mid; then
19009 ac_lo= ac_hi=
19010 break
19011 fi
19012 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19013fi
ac1cb8d3 19014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19015 done
19016else
19017 echo "$as_me: failed program was:" >&5
19018sed 's/^/| /' conftest.$ac_ext >&5
19019
19020cat >conftest.$ac_ext <<_ACEOF
19021/* confdefs.h. */
19022_ACEOF
19023cat confdefs.h >>conftest.$ac_ext
19024cat >>conftest.$ac_ext <<_ACEOF
19025/* end confdefs.h. */
19026$ac_includes_default
19027int
19028main ()
19029{
19030static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19031test_array [0] = 0
19032
19033 ;
19034 return 0;
19035}
19036_ACEOF
19037rm -f conftest.$ac_objext
19038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19039 (eval $ac_compile) 2>conftest.er1
a848cd7e 19040 ac_status=$?
ac1cb8d3
VS
19041 grep -v '^ *+' conftest.er1 >conftest.err
19042 rm -f conftest.er1
19043 cat conftest.err >&5
a848cd7e
SC
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); } &&
6ebeb4c7 19046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; } &&
19052 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19055 ac_status=$?
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; }; then
19058 ac_hi=-1 ac_mid=-1
19059 while :; do
19060 cat >conftest.$ac_ext <<_ACEOF
19061/* confdefs.h. */
19062_ACEOF
19063cat confdefs.h >>conftest.$ac_ext
19064cat >>conftest.$ac_ext <<_ACEOF
19065/* end confdefs.h. */
19066$ac_includes_default
19067int
19068main ()
19069{
19070static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19071test_array [0] = 0
19072
19073 ;
19074 return 0;
19075}
19076_ACEOF
19077rm -f conftest.$ac_objext
19078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19079 (eval $ac_compile) 2>conftest.er1
a848cd7e 19080 ac_status=$?
ac1cb8d3
VS
19081 grep -v '^ *+' conftest.er1 >conftest.err
19082 rm -f conftest.er1
19083 cat conftest.err >&5
a848cd7e
SC
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } &&
6ebeb4c7 19086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088 (eval $ac_try) 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; } &&
19092 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094 (eval $ac_try) 2>&5
19095 ac_status=$?
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; }; then
19098 ac_lo=$ac_mid; break
19099else
19100 echo "$as_me: failed program was:" >&5
19101sed 's/^/| /' conftest.$ac_ext >&5
19102
19103ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19104 if test $ac_mid -le $ac_hi; then
19105 ac_lo= ac_hi=
19106 break
19107 fi
19108 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19109fi
ac1cb8d3 19110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19111 done
19112else
19113 echo "$as_me: failed program was:" >&5
19114sed 's/^/| /' conftest.$ac_ext >&5
19115
19116ac_lo= ac_hi=
19117fi
ac1cb8d3 19118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19119fi
ac1cb8d3 19120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19121# Binary search between lo and hi bounds.
19122while test "x$ac_lo" != "x$ac_hi"; do
19123 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19124 cat >conftest.$ac_ext <<_ACEOF
19125/* confdefs.h. */
19126_ACEOF
19127cat confdefs.h >>conftest.$ac_ext
19128cat >>conftest.$ac_ext <<_ACEOF
19129/* end confdefs.h. */
19130$ac_includes_default
19131int
19132main ()
19133{
19134static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19135test_array [0] = 0
19136
19137 ;
19138 return 0;
19139}
19140_ACEOF
19141rm -f conftest.$ac_objext
19142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19143 (eval $ac_compile) 2>conftest.er1
a848cd7e 19144 ac_status=$?
ac1cb8d3
VS
19145 grep -v '^ *+' conftest.er1 >conftest.err
19146 rm -f conftest.er1
19147 cat conftest.err >&5
a848cd7e
SC
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } &&
6ebeb4c7 19150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; } &&
19156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19158 (eval $ac_try) 2>&5
19159 ac_status=$?
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; }; then
19162 ac_hi=$ac_mid
19163else
19164 echo "$as_me: failed program was:" >&5
19165sed 's/^/| /' conftest.$ac_ext >&5
19166
19167ac_lo=`expr '(' $ac_mid ')' + 1`
19168fi
ac1cb8d3 19169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19170done
19171case $ac_lo in
19172?*) ac_cv_sizeof_long_long=$ac_lo;;
19173'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19174See \`config.log' for more details." >&5
19175echo "$as_me: error: cannot compute sizeof (long long), 77
19176See \`config.log' for more details." >&2;}
19177 { (exit 1); exit 1; }; } ;;
19178esac
19179else
19180 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19181 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19182echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19183 { (exit 1); exit 1; }; }
19184else
19185 cat >conftest.$ac_ext <<_ACEOF
19186/* confdefs.h. */
19187_ACEOF
19188cat confdefs.h >>conftest.$ac_ext
19189cat >>conftest.$ac_ext <<_ACEOF
19190/* end confdefs.h. */
19191$ac_includes_default
19192long longval () { return (long) (sizeof (long long)); }
19193unsigned long ulongval () { return (long) (sizeof (long long)); }
19194#include <stdio.h>
19195#include <stdlib.h>
19196int
19197main ()
19198{
19199
19200 FILE *f = fopen ("conftest.val", "w");
19201 if (! f)
19202 exit (1);
19203 if (((long) (sizeof (long long))) < 0)
19204 {
19205 long i = longval ();
19206 if (i != ((long) (sizeof (long long))))
19207 exit (1);
19208 fprintf (f, "%ld\n", i);
19209 }
19210 else
19211 {
19212 unsigned long i = ulongval ();
19213 if (i != ((long) (sizeof (long long))))
19214 exit (1);
19215 fprintf (f, "%lu\n", i);
19216 }
19217 exit (ferror (f) || fclose (f) != 0);
19218
19219 ;
19220 return 0;
19221}
19222_ACEOF
19223rm -f conftest$ac_exeext
19224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19225 (eval $ac_link) 2>&5
19226 ac_status=$?
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230 (eval $ac_try) 2>&5
19231 ac_status=$?
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; }; then
19234 ac_cv_sizeof_long_long=`cat conftest.val`
19235else
19236 echo "$as_me: program exited with status $ac_status" >&5
19237echo "$as_me: failed program was:" >&5
19238sed 's/^/| /' conftest.$ac_ext >&5
19239
19240( exit $ac_status )
19241{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19242See \`config.log' for more details." >&5
19243echo "$as_me: error: cannot compute sizeof (long long), 77
19244See \`config.log' for more details." >&2;}
19245 { (exit 1); exit 1; }; }
19246fi
ac1cb8d3 19247rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19248fi
19249fi
19250rm -f conftest.val
19251else
19252 ac_cv_sizeof_long_long=0
19253fi
19254fi
19255echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19256echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19257cat >>confdefs.h <<_ACEOF
19258#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19259_ACEOF
19260
19261
19262 if test "$ac_cv_sizeof_long_long" != "0"; then
19263 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
19264 fi
19265 ;;
19266 * )
19267 echo "$as_me:$LINENO: checking for long long" >&5
19268echo $ECHO_N "checking for long long... $ECHO_C" >&6
19269if test "${ac_cv_type_long_long+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19271else
19272 cat >conftest.$ac_ext <<_ACEOF
19273/* confdefs.h. */
19274_ACEOF
19275cat confdefs.h >>conftest.$ac_ext
19276cat >>conftest.$ac_ext <<_ACEOF
19277/* end confdefs.h. */
19278$ac_includes_default
19279int
19280main ()
19281{
19282if ((long long *) 0)
19283 return 0;
19284if (sizeof (long long))
19285 return 0;
19286 ;
19287 return 0;
19288}
19289_ACEOF
19290rm -f conftest.$ac_objext
19291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19292 (eval $ac_compile) 2>conftest.er1
a848cd7e 19293 ac_status=$?
ac1cb8d3
VS
19294 grep -v '^ *+' conftest.er1 >conftest.err
19295 rm -f conftest.er1
19296 cat conftest.err >&5
a848cd7e
SC
19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } &&
6ebeb4c7 19299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19301 (eval $ac_try) 2>&5
19302 ac_status=$?
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); }; } &&
19305 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19308 ac_status=$?
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; }; then
19311 ac_cv_type_long_long=yes
19312else
19313 echo "$as_me: failed program was:" >&5
19314sed 's/^/| /' conftest.$ac_ext >&5
19315
19316ac_cv_type_long_long=no
19317fi
ac1cb8d3 19318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19319fi
19320echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19321echo "${ECHO_T}$ac_cv_type_long_long" >&6
19322
19323echo "$as_me:$LINENO: checking size of long long" >&5
19324echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19325if test "${ac_cv_sizeof_long_long+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19327else
19328 if test "$ac_cv_type_long_long" = yes; then
19329 # The cast to unsigned long works around a bug in the HP C Compiler
19330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19332 # This bug is HP SR number 8606223364.
19333 if test "$cross_compiling" = yes; then
19334 # Depending upon the size, compute the lo and hi bounds.
19335cat >conftest.$ac_ext <<_ACEOF
19336/* confdefs.h. */
19337_ACEOF
19338cat confdefs.h >>conftest.$ac_ext
19339cat >>conftest.$ac_ext <<_ACEOF
19340/* end confdefs.h. */
19341$ac_includes_default
19342int
19343main ()
19344{
19345static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19346test_array [0] = 0
19347
19348 ;
19349 return 0;
19350}
19351_ACEOF
19352rm -f conftest.$ac_objext
19353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19354 (eval $ac_compile) 2>conftest.er1
a848cd7e 19355 ac_status=$?
ac1cb8d3
VS
19356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
a848cd7e
SC
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
6ebeb4c7 19361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
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); }; } &&
19367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; }; then
19373 ac_lo=0 ac_mid=0
19374 while :; do
19375 cat >conftest.$ac_ext <<_ACEOF
19376/* confdefs.h. */
19377_ACEOF
19378cat confdefs.h >>conftest.$ac_ext
19379cat >>conftest.$ac_ext <<_ACEOF
19380/* end confdefs.h. */
19381$ac_includes_default
19382int
19383main ()
19384{
19385static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19386test_array [0] = 0
19387
19388 ;
19389 return 0;
19390}
19391_ACEOF
19392rm -f conftest.$ac_objext
19393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19394 (eval $ac_compile) 2>conftest.er1
a848cd7e 19395 ac_status=$?
ac1cb8d3
VS
19396 grep -v '^ *+' conftest.er1 >conftest.err
19397 rm -f conftest.er1
19398 cat conftest.err >&5
a848cd7e
SC
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); } &&
6ebeb4c7 19401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19404 ac_status=$?
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; } &&
19407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409 (eval $ac_try) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; }; then
19413 ac_hi=$ac_mid; break
19414else
19415 echo "$as_me: failed program was:" >&5
19416sed 's/^/| /' conftest.$ac_ext >&5
19417
19418ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19419 if test $ac_lo -le $ac_mid; then
19420 ac_lo= ac_hi=
19421 break
19422 fi
19423 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19424fi
ac1cb8d3 19425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19426 done
19427else
19428 echo "$as_me: failed program was:" >&5
19429sed 's/^/| /' conftest.$ac_ext >&5
19430
19431cat >conftest.$ac_ext <<_ACEOF
19432/* confdefs.h. */
19433_ACEOF
19434cat confdefs.h >>conftest.$ac_ext
19435cat >>conftest.$ac_ext <<_ACEOF
19436/* end confdefs.h. */
19437$ac_includes_default
19438int
19439main ()
19440{
19441static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19442test_array [0] = 0
19443
19444 ;
19445 return 0;
19446}
19447_ACEOF
19448rm -f conftest.$ac_objext
19449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19450 (eval $ac_compile) 2>conftest.er1
a848cd7e 19451 ac_status=$?
ac1cb8d3
VS
19452 grep -v '^ *+' conftest.er1 >conftest.err
19453 rm -f conftest.er1
19454 cat conftest.err >&5
a848cd7e
SC
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); } &&
6ebeb4c7 19457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19460 ac_status=$?
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; } &&
19463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19465 (eval $ac_try) 2>&5
19466 ac_status=$?
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; }; then
19469 ac_hi=-1 ac_mid=-1
19470 while :; do
19471 cat >conftest.$ac_ext <<_ACEOF
19472/* confdefs.h. */
19473_ACEOF
19474cat confdefs.h >>conftest.$ac_ext
19475cat >>conftest.$ac_ext <<_ACEOF
19476/* end confdefs.h. */
19477$ac_includes_default
19478int
19479main ()
19480{
19481static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19482test_array [0] = 0
19483
19484 ;
19485 return 0;
19486}
19487_ACEOF
19488rm -f conftest.$ac_objext
19489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19490 (eval $ac_compile) 2>conftest.er1
a848cd7e 19491 ac_status=$?
ac1cb8d3
VS
19492 grep -v '^ *+' conftest.er1 >conftest.err
19493 rm -f conftest.er1
19494 cat conftest.err >&5
a848cd7e
SC
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } &&
6ebeb4c7 19497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499 (eval $ac_try) 2>&5
19500 ac_status=$?
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; } &&
19503 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; }; then
19509 ac_lo=$ac_mid; break
19510else
19511 echo "$as_me: failed program was:" >&5
19512sed 's/^/| /' conftest.$ac_ext >&5
19513
19514ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19515 if test $ac_mid -le $ac_hi; then
19516 ac_lo= ac_hi=
19517 break
19518 fi
19519 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19520fi
ac1cb8d3 19521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19522 done
19523else
19524 echo "$as_me: failed program was:" >&5
19525sed 's/^/| /' conftest.$ac_ext >&5
19526
19527ac_lo= ac_hi=
19528fi
ac1cb8d3 19529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19530fi
ac1cb8d3 19531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19532# Binary search between lo and hi bounds.
19533while test "x$ac_lo" != "x$ac_hi"; do
19534 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19535 cat >conftest.$ac_ext <<_ACEOF
19536/* confdefs.h. */
19537_ACEOF
19538cat confdefs.h >>conftest.$ac_ext
19539cat >>conftest.$ac_ext <<_ACEOF
19540/* end confdefs.h. */
19541$ac_includes_default
19542int
19543main ()
19544{
19545static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19546test_array [0] = 0
19547
19548 ;
19549 return 0;
19550}
19551_ACEOF
19552rm -f conftest.$ac_objext
19553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19554 (eval $ac_compile) 2>conftest.er1
a848cd7e 19555 ac_status=$?
ac1cb8d3
VS
19556 grep -v '^ *+' conftest.er1 >conftest.err
19557 rm -f conftest.er1
19558 cat conftest.err >&5
a848cd7e
SC
19559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } &&
6ebeb4c7 19561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19563 (eval $ac_try) 2>&5
19564 ac_status=$?
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); }; } &&
19567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19569 (eval $ac_try) 2>&5
19570 ac_status=$?
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); }; }; then
19573 ac_hi=$ac_mid
19574else
19575 echo "$as_me: failed program was:" >&5
19576sed 's/^/| /' conftest.$ac_ext >&5
19577
19578ac_lo=`expr '(' $ac_mid ')' + 1`
19579fi
ac1cb8d3 19580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19581done
19582case $ac_lo in
19583?*) ac_cv_sizeof_long_long=$ac_lo;;
19584'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19585See \`config.log' for more details." >&5
19586echo "$as_me: error: cannot compute sizeof (long long), 77
19587See \`config.log' for more details." >&2;}
19588 { (exit 1); exit 1; }; } ;;
19589esac
19590else
19591 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19592 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19593echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19594 { (exit 1); exit 1; }; }
19595else
19596 cat >conftest.$ac_ext <<_ACEOF
19597/* confdefs.h. */
19598_ACEOF
19599cat confdefs.h >>conftest.$ac_ext
19600cat >>conftest.$ac_ext <<_ACEOF
19601/* end confdefs.h. */
19602$ac_includes_default
19603long longval () { return (long) (sizeof (long long)); }
19604unsigned long ulongval () { return (long) (sizeof (long long)); }
19605#include <stdio.h>
19606#include <stdlib.h>
19607int
19608main ()
19609{
19610
19611 FILE *f = fopen ("conftest.val", "w");
19612 if (! f)
19613 exit (1);
19614 if (((long) (sizeof (long long))) < 0)
19615 {
19616 long i = longval ();
19617 if (i != ((long) (sizeof (long long))))
19618 exit (1);
19619 fprintf (f, "%ld\n", i);
19620 }
19621 else
19622 {
19623 unsigned long i = ulongval ();
19624 if (i != ((long) (sizeof (long long))))
19625 exit (1);
19626 fprintf (f, "%lu\n", i);
19627 }
19628 exit (ferror (f) || fclose (f) != 0);
19629
19630 ;
19631 return 0;
19632}
19633_ACEOF
19634rm -f conftest$ac_exeext
19635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19636 (eval $ac_link) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; }; then
19645 ac_cv_sizeof_long_long=`cat conftest.val`
19646else
19647 echo "$as_me: program exited with status $ac_status" >&5
19648echo "$as_me: failed program was:" >&5
19649sed 's/^/| /' conftest.$ac_ext >&5
19650
19651( exit $ac_status )
19652{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19653See \`config.log' for more details." >&5
19654echo "$as_me: error: cannot compute sizeof (long long), 77
19655See \`config.log' for more details." >&2;}
19656 { (exit 1); exit 1; }; }
19657fi
ac1cb8d3 19658rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19659fi
19660fi
19661rm -f conftest.val
19662else
19663 ac_cv_sizeof_long_long=0
19664fi
19665fi
19666echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19667echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19668cat >>confdefs.h <<_ACEOF
19669#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19670_ACEOF
19671
19672
19673esac
19674
238ecede
MW
19675echo "$as_me:$LINENO: checking for wchar_t" >&5
19676echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19677if test "${ac_cv_type_wchar_t+set}" = set; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19679else
19680 cat >conftest.$ac_ext <<_ACEOF
19681/* confdefs.h. */
19682_ACEOF
19683cat confdefs.h >>conftest.$ac_ext
19684cat >>conftest.$ac_ext <<_ACEOF
19685/* end confdefs.h. */
19686
83d8eb47
MW
19687 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19688 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19689 # error "fake wchar_t"
19690 #endif
19691 #ifdef HAVE_WCHAR_H
19692 # ifdef __CYGWIN__
19693 # include <stddef.h>
19694 # endif
19695 # include <wchar.h>
19696 #endif
19697 #ifdef HAVE_STDLIB_H
19698 # include <stdlib.h>
19699 #endif
19700 #include <stdio.h>
19701
19702
19703
19704int
19705main ()
19706{
19707if ((wchar_t *) 0)
19708 return 0;
19709if (sizeof (wchar_t))
19710 return 0;
19711 ;
19712 return 0;
19713}
19714_ACEOF
19715rm -f conftest.$ac_objext
19716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19717 (eval $ac_compile) 2>conftest.er1
19718 ac_status=$?
19719 grep -v '^ *+' conftest.er1 >conftest.err
19720 rm -f conftest.er1
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
6ebeb4c7 19724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; } &&
19730 { ac_try='test -s conftest.$ac_objext'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_cv_type_wchar_t=yes
19737else
19738 echo "$as_me: failed program was:" >&5
19739sed 's/^/| /' conftest.$ac_ext >&5
19740
19741ac_cv_type_wchar_t=no
19742fi
19743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19744fi
19745echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19746echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19747
a848cd7e
SC
19748echo "$as_me:$LINENO: checking size of wchar_t" >&5
19749echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19750if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19752else
238ecede
MW
19753 if test "$ac_cv_type_wchar_t" = yes; then
19754 # The cast to unsigned long works around a bug in the HP C Compiler
19755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19757 # This bug is HP SR number 8606223364.
19758 if test "$cross_compiling" = yes; then
19759 # Depending upon the size, compute the lo and hi bounds.
19760cat >conftest.$ac_ext <<_ACEOF
19761/* confdefs.h. */
19762_ACEOF
19763cat confdefs.h >>conftest.$ac_ext
19764cat >>conftest.$ac_ext <<_ACEOF
19765/* end confdefs.h. */
19766
83d8eb47
MW
19767 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19768 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19769 # error "fake wchar_t"
19770 #endif
19771 #ifdef HAVE_WCHAR_H
19772 # ifdef __CYGWIN__
19773 # include <stddef.h>
19774 # endif
19775 # include <wchar.h>
19776 #endif
19777 #ifdef HAVE_STDLIB_H
19778 # include <stdlib.h>
19779 #endif
19780 #include <stdio.h>
19781
19782
19783
19784int
19785main ()
19786{
19787static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19788test_array [0] = 0
19789
19790 ;
19791 return 0;
19792}
19793_ACEOF
19794rm -f conftest.$ac_objext
19795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19796 (eval $ac_compile) 2>conftest.er1
19797 ac_status=$?
19798 grep -v '^ *+' conftest.er1 >conftest.err
19799 rm -f conftest.er1
19800 cat conftest.err >&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } &&
6ebeb4c7 19803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19806 ac_status=$?
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; } &&
19809 { ac_try='test -s conftest.$ac_objext'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
19815 ac_lo=0 ac_mid=0
19816 while :; do
19817 cat >conftest.$ac_ext <<_ACEOF
19818/* confdefs.h. */
19819_ACEOF
19820cat confdefs.h >>conftest.$ac_ext
19821cat >>conftest.$ac_ext <<_ACEOF
19822/* end confdefs.h. */
19823
83d8eb47
MW
19824 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19825 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19826 # error "fake wchar_t"
19827 #endif
19828 #ifdef HAVE_WCHAR_H
19829 # ifdef __CYGWIN__
19830 # include <stddef.h>
19831 # endif
19832 # include <wchar.h>
19833 #endif
19834 #ifdef HAVE_STDLIB_H
19835 # include <stdlib.h>
19836 #endif
19837 #include <stdio.h>
19838
19839
19840
19841int
19842main ()
19843{
19844static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19845test_array [0] = 0
19846
19847 ;
19848 return 0;
19849}
19850_ACEOF
19851rm -f conftest.$ac_objext
19852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19853 (eval $ac_compile) 2>conftest.er1
19854 ac_status=$?
19855 grep -v '^ *+' conftest.er1 >conftest.err
19856 rm -f conftest.er1
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
6ebeb4c7 19860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest.$ac_objext'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19869 ac_status=$?
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 ac_hi=$ac_mid; break
19873else
19874 echo "$as_me: failed program was:" >&5
19875sed 's/^/| /' conftest.$ac_ext >&5
19876
19877ac_lo=`expr $ac_mid + 1`
19878 if test $ac_lo -le $ac_mid; then
19879 ac_lo= ac_hi=
19880 break
19881 fi
19882 ac_mid=`expr 2 '*' $ac_mid + 1`
19883fi
19884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19885 done
19886else
19887 echo "$as_me: failed program was:" >&5
19888sed 's/^/| /' conftest.$ac_ext >&5
19889
19890cat >conftest.$ac_ext <<_ACEOF
19891/* confdefs.h. */
19892_ACEOF
19893cat confdefs.h >>conftest.$ac_ext
19894cat >>conftest.$ac_ext <<_ACEOF
19895/* end confdefs.h. */
19896
83d8eb47
MW
19897 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19898 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19899 # error "fake wchar_t"
19900 #endif
19901 #ifdef HAVE_WCHAR_H
19902 # ifdef __CYGWIN__
19903 # include <stddef.h>
19904 # endif
19905 # include <wchar.h>
19906 #endif
19907 #ifdef HAVE_STDLIB_H
19908 # include <stdlib.h>
19909 #endif
19910 #include <stdio.h>
19911
19912
19913
19914int
19915main ()
19916{
19917static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19918test_array [0] = 0
19919
19920 ;
19921 return 0;
19922}
19923_ACEOF
19924rm -f conftest.$ac_objext
19925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19926 (eval $ac_compile) 2>conftest.er1
19927 ac_status=$?
19928 grep -v '^ *+' conftest.er1 >conftest.err
19929 rm -f conftest.er1
19930 cat conftest.err >&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } &&
6ebeb4c7 19933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19935 (eval $ac_try) 2>&5
19936 ac_status=$?
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); }; } &&
19939 { ac_try='test -s conftest.$ac_objext'
19940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941 (eval $ac_try) 2>&5
19942 ac_status=$?
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }; }; then
19945 ac_hi=-1 ac_mid=-1
19946 while :; do
19947 cat >conftest.$ac_ext <<_ACEOF
19948/* confdefs.h. */
19949_ACEOF
19950cat confdefs.h >>conftest.$ac_ext
19951cat >>conftest.$ac_ext <<_ACEOF
19952/* end confdefs.h. */
19953
83d8eb47
MW
19954 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19955 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19956 # error "fake wchar_t"
19957 #endif
19958 #ifdef HAVE_WCHAR_H
19959 # ifdef __CYGWIN__
19960 # include <stddef.h>
19961 # endif
19962 # include <wchar.h>
19963 #endif
19964 #ifdef HAVE_STDLIB_H
19965 # include <stdlib.h>
19966 #endif
19967 #include <stdio.h>
19968
19969
19970
19971int
19972main ()
19973{
19974static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19975test_array [0] = 0
19976
19977 ;
19978 return 0;
19979}
19980_ACEOF
19981rm -f conftest.$ac_objext
19982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19983 (eval $ac_compile) 2>conftest.er1
19984 ac_status=$?
19985 grep -v '^ *+' conftest.er1 >conftest.err
19986 rm -f conftest.er1
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); } &&
6ebeb4c7 19990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992 (eval $ac_try) 2>&5
19993 ac_status=$?
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }; } &&
19996 { ac_try='test -s conftest.$ac_objext'
19997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998 (eval $ac_try) 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); }; }; then
20002 ac_lo=$ac_mid; break
20003else
20004 echo "$as_me: failed program was:" >&5
20005sed 's/^/| /' conftest.$ac_ext >&5
20006
20007ac_hi=`expr '(' $ac_mid ')' - 1`
20008 if test $ac_mid -le $ac_hi; then
20009 ac_lo= ac_hi=
20010 break
20011 fi
20012 ac_mid=`expr 2 '*' $ac_mid`
20013fi
20014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20015 done
20016else
20017 echo "$as_me: failed program was:" >&5
20018sed 's/^/| /' conftest.$ac_ext >&5
20019
20020ac_lo= ac_hi=
20021fi
20022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20023fi
20024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20025# Binary search between lo and hi bounds.
20026while test "x$ac_lo" != "x$ac_hi"; do
20027 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20028 cat >conftest.$ac_ext <<_ACEOF
20029/* confdefs.h. */
20030_ACEOF
20031cat confdefs.h >>conftest.$ac_ext
20032cat >>conftest.$ac_ext <<_ACEOF
20033/* end confdefs.h. */
20034
83d8eb47
MW
20035 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20036 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20037 # error "fake wchar_t"
20038 #endif
20039 #ifdef HAVE_WCHAR_H
20040 # ifdef __CYGWIN__
20041 # include <stddef.h>
20042 # endif
20043 # include <wchar.h>
20044 #endif
20045 #ifdef HAVE_STDLIB_H
20046 # include <stdlib.h>
20047 #endif
20048 #include <stdio.h>
a848cd7e 20049
a848cd7e 20050
a848cd7e 20051
238ecede
MW
20052int
20053main ()
20054{
20055static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20056test_array [0] = 0
a848cd7e 20057
238ecede
MW
20058 ;
20059 return 0;
20060}
20061_ACEOF
20062rm -f conftest.$ac_objext
20063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20064 (eval $ac_compile) 2>conftest.er1
20065 ac_status=$?
20066 grep -v '^ *+' conftest.er1 >conftest.err
20067 rm -f conftest.er1
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } &&
6ebeb4c7 20071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073 (eval $ac_try) 2>&5
20074 ac_status=$?
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); }; } &&
20077 { ac_try='test -s conftest.$ac_objext'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; }; then
20083 ac_hi=$ac_mid
20084else
20085 echo "$as_me: failed program was:" >&5
20086sed 's/^/| /' conftest.$ac_ext >&5
20087
20088ac_lo=`expr '(' $ac_mid ')' + 1`
20089fi
20090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20091done
20092case $ac_lo in
20093?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20094'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20095See \`config.log' for more details." >&5
20096echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20097See \`config.log' for more details." >&2;}
20098 { (exit 1); exit 1; }; } ;;
20099esac
20100else
20101 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
20102 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20103echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 20104 { (exit 1); exit 1; }; }
a848cd7e
SC
20105else
20106 cat >conftest.$ac_ext <<_ACEOF
20107/* confdefs.h. */
20108_ACEOF
20109cat confdefs.h >>conftest.$ac_ext
20110cat >>conftest.$ac_ext <<_ACEOF
20111/* end confdefs.h. */
20112
83d8eb47
MW
20113 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20114 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20115 # error "fake wchar_t"
20116 #endif
20117 #ifdef HAVE_WCHAR_H
20118 # ifdef __CYGWIN__
20119 # include <stddef.h>
20120 # endif
20121 # include <wchar.h>
20122 #endif
20123 #ifdef HAVE_STDLIB_H
20124 # include <stdlib.h>
20125 #endif
20126 #include <stdio.h>
20127
20128
20129
20130long longval () { return (long) (sizeof (wchar_t)); }
20131unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20132#include <stdio.h>
20133#include <stdlib.h>
20134int
20135main ()
20136{
a848cd7e 20137
238ecede
MW
20138 FILE *f = fopen ("conftest.val", "w");
20139 if (! f)
20140 exit (1);
20141 if (((long) (sizeof (wchar_t))) < 0)
20142 {
20143 long i = longval ();
20144 if (i != ((long) (sizeof (wchar_t))))
20145 exit (1);
20146 fprintf (f, "%ld\n", i);
20147 }
20148 else
20149 {
20150 unsigned long i = ulongval ();
20151 if (i != ((long) (sizeof (wchar_t))))
20152 exit (1);
20153 fprintf (f, "%lu\n", i);
20154 }
20155 exit (ferror (f) || fclose (f) != 0);
20156
20157 ;
20158 return 0;
20159}
a848cd7e
SC
20160_ACEOF
20161rm -f conftest$ac_exeext
20162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20163 (eval $ac_link) 2>&5
20164 ac_status=$?
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
238ecede 20172 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
20173else
20174 echo "$as_me: program exited with status $ac_status" >&5
20175echo "$as_me: failed program was:" >&5
20176sed 's/^/| /' conftest.$ac_ext >&5
20177
20178( exit $ac_status )
238ecede
MW
20179{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20180See \`config.log' for more details." >&5
20181echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20182See \`config.log' for more details." >&2;}
20183 { (exit 1); exit 1; }; }
a848cd7e 20184fi
ac1cb8d3 20185rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 20186fi
a848cd7e 20187fi
238ecede
MW
20188rm -f conftest.val
20189else
20190 ac_cv_sizeof_wchar_t=0
20191fi
20192fi
20193echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20194echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 20195cat >>confdefs.h <<_ACEOF
238ecede 20196#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
20197_ACEOF
20198
20199
47a7e797
MW
20200if test "$ac_cv_sizeof_wchar_t" != "0"; then
20201 wxUSE_WCHAR_T=yes
20202else
20203 wxUSE_WCHAR_T=no
20204fi
238ecede 20205
ba3d13e1
VZ
20206echo "$as_me:$LINENO: checking for va_copy" >&5
20207echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20208if test "${wx_cv_func_va_copy+set}" = set; then
20209 echo $ECHO_N "(cached) $ECHO_C" >&6
20210else
20211
20212 cat >conftest.$ac_ext <<_ACEOF
20213
20214 #include <stdarg.h>
20215 void foo(char *f, ...)
20216 {
20217 va_list ap1, ap2;
20218 va_start(ap1, f);
20219 va_copy(ap2, ap1);
20220 va_end(ap2);
20221 va_end(ap1);
20222 }
5886b072
VZ
20223 int main()
20224 {
b902e639
VZ
20225 foo("hi", 17);
20226 return 0;
5886b072 20227 }
ba3d13e1
VZ
20228_ACEOF
20229rm -f conftest.$ac_objext conftest$ac_exeext
20230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20231 (eval $ac_link) 2>conftest.er1
20232 ac_status=$?
20233 grep -v '^ *+' conftest.er1 >conftest.err
20234 rm -f conftest.er1
20235 cat conftest.err >&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); } &&
6ebeb4c7 20238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; } &&
20244 { ac_try='test -s conftest$ac_exeext'
20245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20246 (eval $ac_try) 2>&5
20247 ac_status=$?
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20250 wx_cv_func_va_copy=yes
20251else
20252 echo "$as_me: failed program was:" >&5
20253sed 's/^/| /' conftest.$ac_ext >&5
20254
20255wx_cv_func_va_copy=no
20256
20257fi
20258rm -f conftest.err conftest.$ac_objext \
20259 conftest$ac_exeext conftest.$ac_ext
20260
20261
20262fi
20263echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20264echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20265
20266if test $wx_cv_func_va_copy = "yes"; then
20267 cat >>confdefs.h <<\_ACEOF
20268#define HAVE_VA_COPY 1
20269_ACEOF
20270
20271else
20272 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20273echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20274if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20276else
20277
20278 if test "$cross_compiling" = yes; then
20279 wx_cv_type_va_list_lvalue=yes
20280
20281else
20282 cat >conftest.$ac_ext <<_ACEOF
20283
20284 #include <stdarg.h>
20285 int foo(char *f, ...)
20286 {
20287 va_list ap1, ap2;
20288 va_start(ap1, f);
20289 ap2 = ap1;
20290 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20291 return 1;
20292 va_end(ap2);
20293 va_end(ap1);
20294 return 0;
20295 }
20296 int main()
20297 {
20298 return foo("hi", 17);
20299 }
20300_ACEOF
20301rm -f conftest$ac_exeext
20302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20303 (eval $ac_link) 2>&5
20304 ac_status=$?
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308 (eval $ac_try) 2>&5
20309 ac_status=$?
20310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311 (exit $ac_status); }; }; then
20312 wx_cv_type_va_list_lvalue=yes
20313else
20314 echo "$as_me: program exited with status $ac_status" >&5
20315echo "$as_me: failed program was:" >&5
20316sed 's/^/| /' conftest.$ac_ext >&5
20317
20318( exit $ac_status )
20319wx_cv_type_va_list_lvalue=no
20320fi
20321rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20322fi
20323
20324
20325fi
20326echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
20327echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
20328
20329 if test $wx_cv_type_va_list_lvalue != "yes"; then
20330 cat >>confdefs.h <<\_ACEOF
20331#define VA_LIST_IS_ARRAY 1
20332_ACEOF
20333
20334 fi
20335fi
20336
a848cd7e
SC
20337# Check whether --enable-largefile or --disable-largefile was given.
20338if test "${enable_largefile+set}" = set; then
20339 enableval="$enable_largefile"
20340
20341fi;
20342if test "$enable_largefile" != no; then
20343 wx_largefile=no
20344
20345 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20346echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20347if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20348 echo $ECHO_N "(cached) $ECHO_C" >&6
20349else
20350
20351 cat >conftest.$ac_ext <<_ACEOF
20352/* confdefs.h. */
20353_ACEOF
20354cat confdefs.h >>conftest.$ac_ext
20355cat >>conftest.$ac_ext <<_ACEOF
20356/* end confdefs.h. */
20357#define _FILE_OFFSET_BITS 64
20358 #include <sys/types.h>
20359int
20360main ()
20361{
20362typedef struct {
20363 unsigned int field: sizeof(off_t) == 8;
20364} wxlf;
20365
20366 ;
20367 return 0;
20368}
20369_ACEOF
20370rm -f conftest.$ac_objext
20371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20372 (eval $ac_compile) 2>conftest.er1
a848cd7e 20373 ac_status=$?
ac1cb8d3
VS
20374 grep -v '^ *+' conftest.er1 >conftest.err
20375 rm -f conftest.er1
20376 cat conftest.err >&5
a848cd7e
SC
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } &&
6ebeb4c7 20379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381 (eval $ac_try) 2>&5
20382 ac_status=$?
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; } &&
20385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20387 (eval $ac_try) 2>&5
20388 ac_status=$?
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); }; }; then
20391 ac_cv_sys_file_offset_bits=64
20392else
20393 echo "$as_me: failed program was:" >&5
20394sed 's/^/| /' conftest.$ac_ext >&5
20395
20396ac_cv_sys_file_offset_bits=no
20397fi
ac1cb8d3 20398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20399
20400
20401fi
20402echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20403echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20404
20405 if test "$ac_cv_sys_file_offset_bits" != no; then
20406 wx_largefile=yes
20407 cat >>confdefs.h <<_ACEOF
20408#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20409_ACEOF
20410
20411 fi
20412
20413 if test "x$wx_largefile" != "xyes"; then
20414
20415 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20416echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20417if test "${ac_cv_sys_large_files+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20419else
20420
20421 cat >conftest.$ac_ext <<_ACEOF
20422/* confdefs.h. */
20423_ACEOF
20424cat confdefs.h >>conftest.$ac_ext
20425cat >>conftest.$ac_ext <<_ACEOF
20426/* end confdefs.h. */
20427#define _LARGE_FILES 1
20428 #include <sys/types.h>
20429int
20430main ()
20431{
20432typedef struct {
20433 unsigned int field: sizeof(off_t) == 8;
20434} wxlf;
20435
20436 ;
20437 return 0;
20438}
20439_ACEOF
20440rm -f conftest.$ac_objext
20441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20442 (eval $ac_compile) 2>conftest.er1
a848cd7e 20443 ac_status=$?
ac1cb8d3
VS
20444 grep -v '^ *+' conftest.er1 >conftest.err
20445 rm -f conftest.er1
20446 cat conftest.err >&5
a848cd7e
SC
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } &&
6ebeb4c7 20449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20451 (eval $ac_try) 2>&5
20452 ac_status=$?
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; } &&
20455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457 (eval $ac_try) 2>&5
20458 ac_status=$?
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; }; then
20461 ac_cv_sys_large_files=1
20462else
20463 echo "$as_me: failed program was:" >&5
20464sed 's/^/| /' conftest.$ac_ext >&5
20465
20466ac_cv_sys_large_files=no
20467fi
ac1cb8d3 20468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20469
20470
20471fi
20472echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20473echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20474
20475 if test "$ac_cv_sys_large_files" != no; then
20476 wx_largefile=yes
20477 cat >>confdefs.h <<_ACEOF
20478#define _LARGE_FILES $ac_cv_sys_large_files
20479_ACEOF
20480
20481 fi
20482
20483 fi
20484
20485 echo "$as_me:$LINENO: checking if large file support is available" >&5
20486echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20487 if test "x$wx_largefile" = "xyes"; then
20488 cat >>confdefs.h <<\_ACEOF
20489#define HAVE_LARGEFILE_SUPPORT 1
20490_ACEOF
20491
20492 fi
20493 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20494echo "${ECHO_T}$wx_largefile" >&6
20495fi
20496
5b674b9d
DE
20497
20498if test "x$wx_largefile" = "xyes"; then
20499 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20500 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
20501
20502 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
20503 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
20504echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
20505if test "${wx_cv_STDC_EXT_required+set}" = set; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20507else
20508
20509
20510
20511 ac_ext=cc
20512ac_cpp='$CXXCPP $CPPFLAGS'
20513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20516
20517 cat >conftest.$ac_ext <<_ACEOF
20518/* confdefs.h. */
20519_ACEOF
20520cat confdefs.h >>conftest.$ac_ext
20521cat >>conftest.$ac_ext <<_ACEOF
20522/* end confdefs.h. */
20523
20524int
20525main ()
20526{
20527
20528 #ifndef __STDC_EXT__
20529 choke me
20530 #endif
20531
20532 ;
20533 return 0;
20534}
20535_ACEOF
20536rm -f conftest.$ac_objext
20537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20538 (eval $ac_compile) 2>conftest.er1
20539 ac_status=$?
20540 grep -v '^ *+' conftest.er1 >conftest.err
20541 rm -f conftest.er1
20542 cat conftest.err >&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } &&
20545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; } &&
20551 { ac_try='test -s conftest.$ac_objext'
20552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553 (eval $ac_try) 2>&5
20554 ac_status=$?
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; }; then
20557 wx_cv_STDC_EXT_required=no
20558else
20559 echo "$as_me: failed program was:" >&5
20560sed 's/^/| /' conftest.$ac_ext >&5
20561
20562wx_cv_STDC_EXT_required=yes
20563
20564fi
20565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20566 ac_ext=c
20567ac_cpp='$CPP $CPPFLAGS'
20568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20570ac_compiler_gnu=$ac_cv_c_compiler_gnu
20571
20572
20573
20574fi
20575echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
20576echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
20577 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
20578 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
20579 fi
20580 fi
5b674b9d
DE
20581 else
20582 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20583 fi
20584 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20585echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20586if test "${ac_cv_sys_largefile_source+set}" = set; then
20587 echo $ECHO_N "(cached) $ECHO_C" >&6
20588else
20589 while :; do
20590 ac_cv_sys_largefile_source=no
20591 cat >conftest.$ac_ext <<_ACEOF
20592/* confdefs.h. */
20593_ACEOF
20594cat confdefs.h >>conftest.$ac_ext
20595cat >>conftest.$ac_ext <<_ACEOF
20596/* end confdefs.h. */
20597#include <stdio.h>
20598int
20599main ()
20600{
20601return !fseeko;
20602 ;
20603 return 0;
20604}
20605_ACEOF
20606rm -f conftest.$ac_objext
20607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20608 (eval $ac_compile) 2>conftest.er1
20609 ac_status=$?
20610 grep -v '^ *+' conftest.er1 >conftest.err
20611 rm -f conftest.er1
20612 cat conftest.err >&5
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } &&
6ebeb4c7 20615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20617 (eval $ac_try) 2>&5
20618 ac_status=$?
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); }; } &&
20621 { ac_try='test -s conftest.$ac_objext'
20622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623 (eval $ac_try) 2>&5
20624 ac_status=$?
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); }; }; then
20627 break
20628else
20629 echo "$as_me: failed program was:" >&5
20630sed 's/^/| /' conftest.$ac_ext >&5
20631
20632fi
20633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20634 cat >conftest.$ac_ext <<_ACEOF
20635/* confdefs.h. */
20636_ACEOF
20637cat confdefs.h >>conftest.$ac_ext
20638cat >>conftest.$ac_ext <<_ACEOF
20639/* end confdefs.h. */
20640#define _LARGEFILE_SOURCE 1
20641#include <stdio.h>
20642int
20643main ()
20644{
20645return !fseeko;
20646 ;
20647 return 0;
20648}
20649_ACEOF
20650rm -f conftest.$ac_objext
20651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20652 (eval $ac_compile) 2>conftest.er1
20653 ac_status=$?
20654 grep -v '^ *+' conftest.er1 >conftest.err
20655 rm -f conftest.er1
20656 cat conftest.err >&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); } &&
6ebeb4c7 20659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661 (eval $ac_try) 2>&5
20662 ac_status=$?
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; } &&
20665 { ac_try='test -s conftest.$ac_objext'
20666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667 (eval $ac_try) 2>&5
20668 ac_status=$?
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
20671 ac_cv_sys_largefile_source=1; break
20672else
20673 echo "$as_me: failed program was:" >&5
20674sed 's/^/| /' conftest.$ac_ext >&5
20675
20676fi
20677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20678 break
20679done
20680fi
20681echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20682echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20683if test "$ac_cv_sys_largefile_source" != no; then
20684
20685cat >>confdefs.h <<_ACEOF
20686#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20687_ACEOF
20688
20689fi
20690rm -f conftest*
20691
20692# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20693# in glibc 2.1.3, but that breaks too many other things.
20694# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20695echo "$as_me:$LINENO: checking for fseeko" >&5
20696echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20697if test "${ac_cv_func_fseeko+set}" = set; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20699else
20700 cat >conftest.$ac_ext <<_ACEOF
20701/* confdefs.h. */
20702_ACEOF
20703cat confdefs.h >>conftest.$ac_ext
20704cat >>conftest.$ac_ext <<_ACEOF
20705/* end confdefs.h. */
20706#include <stdio.h>
20707int
20708main ()
20709{
20710return fseeko && fseeko (stdin, 0, 0);
20711 ;
20712 return 0;
20713}
20714_ACEOF
20715rm -f conftest.$ac_objext conftest$ac_exeext
20716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20717 (eval $ac_link) 2>conftest.er1
20718 ac_status=$?
20719 grep -v '^ *+' conftest.er1 >conftest.err
20720 rm -f conftest.er1
20721 cat conftest.err >&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); } &&
6ebeb4c7 20724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20727 ac_status=$?
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; } &&
20730 { ac_try='test -s conftest$ac_exeext'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20733 ac_status=$?
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; }; then
20736 ac_cv_func_fseeko=yes
20737else
20738 echo "$as_me: failed program was:" >&5
20739sed 's/^/| /' conftest.$ac_ext >&5
20740
20741ac_cv_func_fseeko=no
20742fi
20743rm -f conftest.err conftest.$ac_objext \
20744 conftest$ac_exeext conftest.$ac_ext
20745fi
20746echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20747echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20748if test $ac_cv_func_fseeko = yes; then
20749
20750cat >>confdefs.h <<\_ACEOF
20751#define HAVE_FSEEKO 1
20752_ACEOF
20753
20754fi
20755
5b674b9d
DE
20756 if test "$ac_cv_sys_largefile_source" != no; then
20757 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20758 fi
20759 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20760fi
20761
20762echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20763echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20764if test "${ac_cv_c_bigendian+set}" = set; then
20765 echo $ECHO_N "(cached) $ECHO_C" >&6
20766else
20767 ac_cv_c_bigendian=unknown
20768# See if sys/param.h defines the BYTE_ORDER macro.
20769cat >conftest.$ac_ext <<_ACEOF
20770/* confdefs.h. */
20771_ACEOF
20772cat confdefs.h >>conftest.$ac_ext
20773cat >>conftest.$ac_ext <<_ACEOF
20774/* end confdefs.h. */
20775#include <sys/types.h>
20776#include <sys/param.h>
20777int
20778main ()
20779{
20780
20781#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20782 bogus endian macros
20783#endif
20784 ;
20785 return 0;
20786}
20787_ACEOF
20788rm -f conftest.$ac_objext
20789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20790 (eval $ac_compile) 2>conftest.er1
a848cd7e 20791 ac_status=$?
ac1cb8d3
VS
20792 grep -v '^ *+' conftest.er1 >conftest.err
20793 rm -f conftest.er1
20794 cat conftest.err >&5
a848cd7e
SC
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } &&
6ebeb4c7 20797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20799 (eval $ac_try) 2>&5
20800 ac_status=$?
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; } &&
20803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805 (eval $ac_try) 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
20809 # It does; now see whether it defined to BIG_ENDIAN or not.
20810cat >conftest.$ac_ext <<_ACEOF
20811/* confdefs.h. */
20812_ACEOF
20813cat confdefs.h >>conftest.$ac_ext
20814cat >>conftest.$ac_ext <<_ACEOF
20815/* end confdefs.h. */
20816#include <sys/types.h>
20817#include <sys/param.h>
20818int
20819main ()
20820{
20821
20822#if BYTE_ORDER != BIG_ENDIAN
20823 not big endian
20824#endif
20825 ;
20826 return 0;
20827}
20828_ACEOF
20829rm -f conftest.$ac_objext
20830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20831 (eval $ac_compile) 2>conftest.er1
a848cd7e 20832 ac_status=$?
ac1cb8d3
VS
20833 grep -v '^ *+' conftest.er1 >conftest.err
20834 rm -f conftest.er1
20835 cat conftest.err >&5
a848cd7e
SC
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); } &&
6ebeb4c7 20838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840 (eval $ac_try) 2>&5
20841 ac_status=$?
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); }; } &&
20844 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; }; then
20850 ac_cv_c_bigendian=yes
20851else
20852 echo "$as_me: failed program was:" >&5
20853sed 's/^/| /' conftest.$ac_ext >&5
20854
20855ac_cv_c_bigendian=no
20856fi
ac1cb8d3 20857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20858else
20859 echo "$as_me: failed program was:" >&5
20860sed 's/^/| /' conftest.$ac_ext >&5
20861
20862fi
ac1cb8d3 20863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20864if test $ac_cv_c_bigendian = unknown; then
20865if test "$cross_compiling" = yes; then
20866 ac_cv_c_bigendian=unknown
20867else
20868 cat >conftest.$ac_ext <<_ACEOF
20869/* confdefs.h. */
20870_ACEOF
20871cat confdefs.h >>conftest.$ac_ext
20872cat >>conftest.$ac_ext <<_ACEOF
20873/* end confdefs.h. */
20874main () {
20875 /* Are we little or big endian? From Harbison&Steele. */
20876 union
20877 {
20878 long l;
20879 char c[sizeof (long)];
20880 } u;
20881 u.l = 1;
20882 exit (u.c[sizeof (long) - 1] == 1);
20883}
20884_ACEOF
20885rm -f conftest$ac_exeext
20886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20887 (eval $ac_link) 2>&5
20888 ac_status=$?
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892 (eval $ac_try) 2>&5
20893 ac_status=$?
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; }; then
20896 ac_cv_c_bigendian=no
20897else
20898 echo "$as_me: program exited with status $ac_status" >&5
20899echo "$as_me: failed program was:" >&5
20900sed 's/^/| /' conftest.$ac_ext >&5
20901
20902( exit $ac_status )
20903ac_cv_c_bigendian=yes
20904fi
ac1cb8d3 20905rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20906fi
20907fi
20908fi
20909echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20910echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20911if test $ac_cv_c_bigendian = unknown; then
20912 { 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
20913echo "$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;}
20914fi
20915if test $ac_cv_c_bigendian = yes; then
20916 cat >>confdefs.h <<\_ACEOF
20917#define WORDS_BIGENDIAN 1
20918_ACEOF
20919
20920fi
20921
20922
20923ac_ext=cc
20924ac_cpp='$CXXCPP $CPPFLAGS'
20925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20928echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20929echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20930if test -z "$CXXCPP"; then
20931 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20932 echo $ECHO_N "(cached) $ECHO_C" >&6
20933else
20934 # Double quotes because CXXCPP needs to be expanded
20935 for CXXCPP in "$CXX -E" "/lib/cpp"
20936 do
20937 ac_preproc_ok=false
20938for ac_cxx_preproc_warn_flag in '' yes
20939do
20940 # Use a header file that comes with gcc, so configuring glibc
20941 # with a fresh cross-compiler works.
20942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20943 # <limits.h> exists even on freestanding compilers.
20944 # On the NeXT, cc -E runs the code through the compiler's parser,
20945 # not just through cpp. "Syntax error" is here to catch this case.
20946 cat >conftest.$ac_ext <<_ACEOF
20947/* confdefs.h. */
20948_ACEOF
20949cat confdefs.h >>conftest.$ac_ext
20950cat >>conftest.$ac_ext <<_ACEOF
20951/* end confdefs.h. */
20952#ifdef __STDC__
20953# include <limits.h>
20954#else
20955# include <assert.h>
20956#endif
ac1cb8d3 20957 Syntax error
a848cd7e
SC
20958_ACEOF
20959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20961 ac_status=$?
20962 grep -v '^ *+' conftest.er1 >conftest.err
20963 rm -f conftest.er1
20964 cat conftest.err >&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } >/dev/null; then
20967 if test -s conftest.err; then
20968 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20969 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20970 else
20971 ac_cpp_err=
20972 fi
20973else
20974 ac_cpp_err=yes
20975fi
20976if test -z "$ac_cpp_err"; then
20977 :
20978else
20979 echo "$as_me: failed program was:" >&5
20980sed 's/^/| /' conftest.$ac_ext >&5
20981
20982 # Broken: fails on valid input.
20983continue
20984fi
20985rm -f conftest.err conftest.$ac_ext
20986
20987 # OK, works on sane cases. Now check whether non-existent headers
20988 # can be detected and how.
20989 cat >conftest.$ac_ext <<_ACEOF
20990/* confdefs.h. */
20991_ACEOF
20992cat confdefs.h >>conftest.$ac_ext
20993cat >>conftest.$ac_ext <<_ACEOF
20994/* end confdefs.h. */
20995#include <ac_nonexistent.h>
20996_ACEOF
20997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20999 ac_status=$?
21000 grep -v '^ *+' conftest.er1 >conftest.err
21001 rm -f conftest.er1
21002 cat conftest.err >&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } >/dev/null; then
21005 if test -s conftest.err; then
21006 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21007 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21008 else
21009 ac_cpp_err=
21010 fi
21011else
21012 ac_cpp_err=yes
21013fi
21014if test -z "$ac_cpp_err"; then
21015 # Broken: success on invalid input.
21016continue
21017else
21018 echo "$as_me: failed program was:" >&5
21019sed 's/^/| /' conftest.$ac_ext >&5
21020
21021 # Passes both tests.
21022ac_preproc_ok=:
21023break
21024fi
21025rm -f conftest.err conftest.$ac_ext
21026
21027done
21028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21029rm -f conftest.err conftest.$ac_ext
21030if $ac_preproc_ok; then
21031 break
21032fi
21033
21034 done
21035 ac_cv_prog_CXXCPP=$CXXCPP
21036
21037fi
21038 CXXCPP=$ac_cv_prog_CXXCPP
21039else
21040 ac_cv_prog_CXXCPP=$CXXCPP
21041fi
21042echo "$as_me:$LINENO: result: $CXXCPP" >&5
21043echo "${ECHO_T}$CXXCPP" >&6
21044ac_preproc_ok=false
21045for ac_cxx_preproc_warn_flag in '' yes
21046do
21047 # Use a header file that comes with gcc, so configuring glibc
21048 # with a fresh cross-compiler works.
21049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21050 # <limits.h> exists even on freestanding compilers.
21051 # On the NeXT, cc -E runs the code through the compiler's parser,
21052 # not just through cpp. "Syntax error" is here to catch this case.
21053 cat >conftest.$ac_ext <<_ACEOF
21054/* confdefs.h. */
21055_ACEOF
21056cat confdefs.h >>conftest.$ac_ext
21057cat >>conftest.$ac_ext <<_ACEOF
21058/* end confdefs.h. */
21059#ifdef __STDC__
21060# include <limits.h>
21061#else
21062# include <assert.h>
21063#endif
ac1cb8d3 21064 Syntax error
a848cd7e
SC
21065_ACEOF
21066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21068 ac_status=$?
21069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } >/dev/null; then
21074 if test -s conftest.err; then
21075 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21076 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21077 else
21078 ac_cpp_err=
21079 fi
21080else
21081 ac_cpp_err=yes
21082fi
21083if test -z "$ac_cpp_err"; then
21084 :
21085else
21086 echo "$as_me: failed program was:" >&5
21087sed 's/^/| /' conftest.$ac_ext >&5
21088
21089 # Broken: fails on valid input.
21090continue
21091fi
21092rm -f conftest.err conftest.$ac_ext
21093
21094 # OK, works on sane cases. Now check whether non-existent headers
21095 # can be detected and how.
21096 cat >conftest.$ac_ext <<_ACEOF
21097/* confdefs.h. */
21098_ACEOF
21099cat confdefs.h >>conftest.$ac_ext
21100cat >>conftest.$ac_ext <<_ACEOF
21101/* end confdefs.h. */
21102#include <ac_nonexistent.h>
21103_ACEOF
21104if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21106 ac_status=$?
21107 grep -v '^ *+' conftest.er1 >conftest.err
21108 rm -f conftest.er1
21109 cat conftest.err >&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); } >/dev/null; then
21112 if test -s conftest.err; then
21113 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21114 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21115 else
21116 ac_cpp_err=
21117 fi
21118else
21119 ac_cpp_err=yes
21120fi
21121if test -z "$ac_cpp_err"; then
21122 # Broken: success on invalid input.
21123continue
21124else
21125 echo "$as_me: failed program was:" >&5
21126sed 's/^/| /' conftest.$ac_ext >&5
21127
21128 # Passes both tests.
21129ac_preproc_ok=:
21130break
21131fi
21132rm -f conftest.err conftest.$ac_ext
21133
21134done
21135# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21136rm -f conftest.err conftest.$ac_ext
21137if $ac_preproc_ok; then
21138 :
21139else
21140 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21141See \`config.log' for more details." >&5
21142echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21143See \`config.log' for more details." >&2;}
21144 { (exit 1); exit 1; }; }
21145fi
21146
21147ac_ext=cc
21148ac_cpp='$CXXCPP $CPPFLAGS'
21149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21152
21153
21154
21155
21156
21157 ac_ext=cc
21158ac_cpp='$CXXCPP $CPPFLAGS'
21159ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21160ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21161ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21162
21163
21164
21165for ac_header in iostream
21166do
21167as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21168if eval "test \"\${$as_ac_Header+set}\" = set"; then
21169 echo "$as_me:$LINENO: checking for $ac_header" >&5
21170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21171if eval "test \"\${$as_ac_Header+set}\" = set"; then
21172 echo $ECHO_N "(cached) $ECHO_C" >&6
21173fi
21174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21176else
21177 # Is the header compilable?
21178echo "$as_me:$LINENO: checking $ac_header usability" >&5
21179echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21180cat >conftest.$ac_ext <<_ACEOF
21181/* confdefs.h. */
21182_ACEOF
21183cat confdefs.h >>conftest.$ac_ext
21184cat >>conftest.$ac_ext <<_ACEOF
21185/* end confdefs.h. */
21186$ac_includes_default
21187#include <$ac_header>
21188_ACEOF
21189rm -f conftest.$ac_objext
21190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21191 (eval $ac_compile) 2>conftest.er1
a848cd7e 21192 ac_status=$?
ac1cb8d3
VS
21193 grep -v '^ *+' conftest.er1 >conftest.err
21194 rm -f conftest.er1
21195 cat conftest.err >&5
a848cd7e
SC
21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197 (exit $ac_status); } &&
6ebeb4c7 21198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
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); }; } &&
21204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206 (eval $ac_try) 2>&5
21207 ac_status=$?
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then
21210 ac_header_compiler=yes
21211else
21212 echo "$as_me: failed program was:" >&5
21213sed 's/^/| /' conftest.$ac_ext >&5
21214
21215ac_header_compiler=no
21216fi
ac1cb8d3 21217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21218echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21219echo "${ECHO_T}$ac_header_compiler" >&6
21220
21221# Is the header present?
21222echo "$as_me:$LINENO: checking $ac_header presence" >&5
21223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21224cat >conftest.$ac_ext <<_ACEOF
21225/* confdefs.h. */
21226_ACEOF
21227cat confdefs.h >>conftest.$ac_ext
21228cat >>conftest.$ac_ext <<_ACEOF
21229/* end confdefs.h. */
21230#include <$ac_header>
21231_ACEOF
21232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21234 ac_status=$?
21235 grep -v '^ *+' conftest.er1 >conftest.err
21236 rm -f conftest.er1
21237 cat conftest.err >&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } >/dev/null; then
21240 if test -s conftest.err; then
21241 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21242 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21243 else
21244 ac_cpp_err=
21245 fi
21246else
21247 ac_cpp_err=yes
21248fi
21249if test -z "$ac_cpp_err"; then
21250 ac_header_preproc=yes
21251else
21252 echo "$as_me: failed program was:" >&5
21253sed 's/^/| /' conftest.$ac_ext >&5
21254
21255 ac_header_preproc=no
21256fi
21257rm -f conftest.err conftest.$ac_ext
21258echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21259echo "${ECHO_T}$ac_header_preproc" >&6
21260
21261# So? What about this header?
ac1cb8d3
VS
21262case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21263 yes:no: )
a848cd7e
SC
21264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21268 ac_header_preproc=yes
a848cd7e 21269 ;;
ac1cb8d3 21270 no:yes:* )
a848cd7e
SC
21271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21274echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21278echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21283 (
21284 cat <<\_ASBOX
ac1cb8d3
VS
21285## ----------------------------------------- ##
21286## Report this to wx-dev@lists.wxwidgets.org ##
21287## ----------------------------------------- ##
a848cd7e
SC
21288_ASBOX
21289 ) |
21290 sed "s/^/$as_me: WARNING: /" >&2
21291 ;;
21292esac
21293echo "$as_me:$LINENO: checking for $ac_header" >&5
21294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21295if eval "test \"\${$as_ac_Header+set}\" = set"; then
21296 echo $ECHO_N "(cached) $ECHO_C" >&6
21297else
ac1cb8d3 21298 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
21299fi
21300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21302
21303fi
21304if test `eval echo '${'$as_ac_Header'}'` = yes; then
21305 cat >>confdefs.h <<_ACEOF
21306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21307_ACEOF
21308
21309fi
21310
21311done
21312
21313
21314 if test "$ac_cv_header_iostream" = "yes" ; then
21315 :
21316 else
21317 cat >>confdefs.h <<\_ACEOF
21318#define wxUSE_IOSTREAMH 1
21319_ACEOF
21320
21321 fi
21322
21323 ac_ext=c
21324ac_cpp='$CPP $CPPFLAGS'
21325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21327ac_compiler_gnu=$ac_cv_c_compiler_gnu
21328
21329
21330
21331
21332 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
21333echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
21334if test "${wx_cv_cpp_bool+set}" = set; then
21335 echo $ECHO_N "(cached) $ECHO_C" >&6
21336else
21337
21338
21339
21340 ac_ext=cc
21341ac_cpp='$CXXCPP $CPPFLAGS'
21342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21345
21346
21347 cat >conftest.$ac_ext <<_ACEOF
21348/* confdefs.h. */
21349_ACEOF
21350cat confdefs.h >>conftest.$ac_ext
21351cat >>conftest.$ac_ext <<_ACEOF
21352/* end confdefs.h. */
21353
21354
21355int
21356main ()
21357{
21358
21359 bool b = true;
21360
21361 return 0;
21362
21363 ;
21364 return 0;
21365}
21366_ACEOF
21367rm -f conftest.$ac_objext
21368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21369 (eval $ac_compile) 2>conftest.er1
a848cd7e 21370 ac_status=$?
ac1cb8d3
VS
21371 grep -v '^ *+' conftest.er1 >conftest.err
21372 rm -f conftest.er1
21373 cat conftest.err >&5
a848cd7e
SC
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } &&
6ebeb4c7 21376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378 (eval $ac_try) 2>&5
21379 ac_status=$?
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; } &&
21382 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384 (eval $ac_try) 2>&5
21385 ac_status=$?
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; }; then
21388
21389 wx_cv_cpp_bool=yes
21390
21391else
21392 echo "$as_me: failed program was:" >&5
21393sed 's/^/| /' conftest.$ac_ext >&5
21394
21395
21396 wx_cv_cpp_bool=no
21397
21398
21399fi
ac1cb8d3 21400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21401
21402 ac_ext=c
21403ac_cpp='$CPP $CPPFLAGS'
21404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21406ac_compiler_gnu=$ac_cv_c_compiler_gnu
21407
21408
21409fi
21410echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
21411echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21412
21413 if test "$wx_cv_cpp_bool" = "yes"; then
21414 cat >>confdefs.h <<\_ACEOF
21415#define HAVE_BOOL 1
21416_ACEOF
21417
21418 fi
21419
21420
21421
21422 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
21423echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
21424if test "${wx_cv_explicit+set}" = set; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21426else
21427
21428
21429
21430 ac_ext=cc
21431ac_cpp='$CXXCPP $CPPFLAGS'
21432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21435
21436
21437 cat >conftest.$ac_ext <<_ACEOF
21438/* confdefs.h. */
21439_ACEOF
21440cat confdefs.h >>conftest.$ac_ext
21441cat >>conftest.$ac_ext <<_ACEOF
21442/* end confdefs.h. */
21443
21444 class Foo { public: explicit Foo(int) {} };
21445
21446int
21447main ()
21448{
21449
21450 return 0;
21451
21452 ;
21453 return 0;
21454}
21455_ACEOF
21456rm -f conftest.$ac_objext
21457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21458 (eval $ac_compile) 2>conftest.er1
a848cd7e 21459 ac_status=$?
ac1cb8d3
VS
21460 grep -v '^ *+' conftest.er1 >conftest.err
21461 rm -f conftest.er1
21462 cat conftest.err >&5
a848cd7e
SC
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); } &&
6ebeb4c7 21465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467 (eval $ac_try) 2>&5
21468 ac_status=$?
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); }; } &&
21471 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21473 (eval $ac_try) 2>&5
21474 ac_status=$?
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); }; }; then
21477
21478 cat >conftest.$ac_ext <<_ACEOF
21479/* confdefs.h. */
21480_ACEOF
21481cat confdefs.h >>conftest.$ac_ext
21482cat >>conftest.$ac_ext <<_ACEOF
21483/* end confdefs.h. */
21484
21485 class Foo { public: explicit Foo(int) {} };
21486 static void TakeFoo(const Foo& foo) { }
21487
21488int
21489main ()
21490{
21491
21492 TakeFoo(17);
21493 return 0;
21494
21495 ;
21496 return 0;
21497}
21498_ACEOF
21499rm -f conftest.$ac_objext
21500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21501 (eval $ac_compile) 2>conftest.er1
a848cd7e 21502 ac_status=$?
ac1cb8d3
VS
21503 grep -v '^ *+' conftest.er1 >conftest.err
21504 rm -f conftest.er1
21505 cat conftest.err >&5
a848cd7e
SC
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } &&
6ebeb4c7 21508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510 (eval $ac_try) 2>&5
21511 ac_status=$?
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); }; } &&
21514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516 (eval $ac_try) 2>&5
21517 ac_status=$?
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); }; }; then
21520 wx_cv_explicit=no
21521else
21522 echo "$as_me: failed program was:" >&5
21523sed 's/^/| /' conftest.$ac_ext >&5
21524
21525wx_cv_explicit=yes
21526
21527fi
ac1cb8d3 21528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21529
21530else
21531 echo "$as_me: failed program was:" >&5
21532sed 's/^/| /' conftest.$ac_ext >&5
21533
21534wx_cv_explicit=no
21535
21536fi
ac1cb8d3 21537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21538
21539 ac_ext=c
21540ac_cpp='$CPP $CPPFLAGS'
21541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21543ac_compiler_gnu=$ac_cv_c_compiler_gnu
21544
21545
21546fi
21547echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21548echo "${ECHO_T}$wx_cv_explicit" >&6
21549
21550 if test "$wx_cv_explicit" = "yes"; then
21551 cat >>confdefs.h <<\_ACEOF
21552#define HAVE_EXPLICIT 1
21553_ACEOF
21554
21555 fi
21556
21557
21558echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21559echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21560if test "${ac_cv_cxx_const_cast+set}" = set; then
21561 echo $ECHO_N "(cached) $ECHO_C" >&6
21562else
21563
21564
21565 ac_ext=cc
21566ac_cpp='$CXXCPP $CPPFLAGS'
21567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21570
21571 cat >conftest.$ac_ext <<_ACEOF
21572/* confdefs.h. */
21573_ACEOF
21574cat confdefs.h >>conftest.$ac_ext
21575cat >>conftest.$ac_ext <<_ACEOF
21576/* end confdefs.h. */
21577
21578int
21579main ()
21580{
21581int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21582 ;
21583 return 0;
21584}
21585_ACEOF
21586rm -f conftest.$ac_objext
21587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21588 (eval $ac_compile) 2>conftest.er1
a848cd7e 21589 ac_status=$?
ac1cb8d3
VS
21590 grep -v '^ *+' conftest.er1 >conftest.err
21591 rm -f conftest.er1
21592 cat conftest.err >&5
a848cd7e
SC
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } &&
6ebeb4c7 21595 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21597 (eval $ac_try) 2>&5
21598 ac_status=$?
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); }; } &&
21601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603 (eval $ac_try) 2>&5
21604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; }; then
21607 ac_cv_cxx_const_cast=yes
21608else
21609 echo "$as_me: failed program was:" >&5
21610sed 's/^/| /' conftest.$ac_ext >&5
21611
21612ac_cv_cxx_const_cast=no
21613fi
ac1cb8d3 21614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21615 ac_ext=c
21616ac_cpp='$CPP $CPPFLAGS'
21617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21619ac_compiler_gnu=$ac_cv_c_compiler_gnu
21620
21621
21622fi
21623echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21624echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21625if test "$ac_cv_cxx_const_cast" = yes; then
21626
21627cat >>confdefs.h <<\_ACEOF
21628#define HAVE_CONST_CAST
21629_ACEOF
21630
21631fi
21632
7714864e
RL
21633echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21634echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21635if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21636 echo $ECHO_N "(cached) $ECHO_C" >&6
21637else
21638
21639
21640 ac_ext=cc
21641ac_cpp='$CXXCPP $CPPFLAGS'
21642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21645
21646 cat >conftest.$ac_ext <<_ACEOF
21647/* confdefs.h. */
21648_ACEOF
21649cat confdefs.h >>conftest.$ac_ext
21650cat >>conftest.$ac_ext <<_ACEOF
21651/* end confdefs.h. */
21652#include <typeinfo>
21653class Base { public : Base () {} virtual void f () = 0;};
21654class Derived : public Base { public : Derived () {} virtual void f () {} };
21655class Unrelated { public : Unrelated () {} };
21656int g (Unrelated&) { return 0; }
21657int
21658main ()
21659{
21660
21661Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21662 ;
21663 return 0;
21664}
21665_ACEOF
21666rm -f conftest.$ac_objext
21667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21668 (eval $ac_compile) 2>conftest.er1
21669 ac_status=$?
21670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } &&
6ebeb4c7 21675 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21678 ac_status=$?
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); }; } &&
21681 { ac_try='test -s conftest.$ac_objext'
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21684 ac_status=$?
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; }; then
21687 ac_cv_cxx_reinterpret_cast=yes
21688else
21689 echo "$as_me: failed program was:" >&5
21690sed 's/^/| /' conftest.$ac_ext >&5
21691
21692ac_cv_cxx_reinterpret_cast=no
21693fi
21694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21695 ac_ext=c
21696ac_cpp='$CPP $CPPFLAGS'
21697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21699ac_compiler_gnu=$ac_cv_c_compiler_gnu
21700
21701
21702fi
21703echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21704echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21705if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21706
21707cat >>confdefs.h <<\_ACEOF
21708#define HAVE_REINTERPRET_CAST
21709_ACEOF
21710
21711fi
21712
a848cd7e
SC
21713echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21714echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21715if test "${ac_cv_cxx_static_cast+set}" = set; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21717else
21718
21719
21720 ac_ext=cc
21721ac_cpp='$CXXCPP $CPPFLAGS'
21722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21725
21726 cat >conftest.$ac_ext <<_ACEOF
21727/* confdefs.h. */
21728_ACEOF
21729cat confdefs.h >>conftest.$ac_ext
21730cat >>conftest.$ac_ext <<_ACEOF
21731/* end confdefs.h. */
21732#include <typeinfo>
21733class Base { public : Base () {} virtual void f () = 0; };
21734class Derived : public Base { public : Derived () {} virtual void f () {} };
21735int g (Derived&) { return 0; }
21736int
21737main ()
21738{
21739
21740Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21741 ;
21742 return 0;
21743}
21744_ACEOF
21745rm -f conftest.$ac_objext
21746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21747 (eval $ac_compile) 2>conftest.er1
a848cd7e 21748 ac_status=$?
ac1cb8d3
VS
21749 grep -v '^ *+' conftest.er1 >conftest.err
21750 rm -f conftest.er1
21751 cat conftest.err >&5
a848cd7e
SC
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } &&
6ebeb4c7 21754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756 (eval $ac_try) 2>&5
21757 ac_status=$?
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; } &&
21760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21762 (eval $ac_try) 2>&5
21763 ac_status=$?
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); }; }; then
21766 ac_cv_cxx_static_cast=yes
21767else
21768 echo "$as_me: failed program was:" >&5
21769sed 's/^/| /' conftest.$ac_ext >&5
21770
21771ac_cv_cxx_static_cast=no
21772fi
ac1cb8d3 21773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21774 ac_ext=c
21775ac_cpp='$CPP $CPPFLAGS'
21776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21778ac_compiler_gnu=$ac_cv_c_compiler_gnu
21779
21780
21781fi
21782echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21783echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21784if test "$ac_cv_cxx_static_cast" = yes; then
21785
21786cat >>confdefs.h <<\_ACEOF
21787#define HAVE_STATIC_CAST
21788_ACEOF
21789
21790fi
21791
21792
3c28b7cb
MW
21793if test "x$SUNCXX" = xyes; then
21794 CXXFLAGS="$CXXFLAGS -features=tmplife"
21795fi
21796
9122d155
VZ
21797if test "x$SUNCC" = xyes; then
21798 CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN"
21799fi
21800
0ad5d837
VZ
21801if test "x$SGICC" = "xyes"; then
21802 CFLAGS="$CFLAGS -woff 3970"
21803fi
21804if test "x$SGICXX" = "xyes"; then
21805 CXXFLAGS="$CXXFLAGS -woff 3970"
21806fi
21807
f56c22b4 21808if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21809 ac_ext=cc
21810ac_cpp='$CXXCPP $CPPFLAGS'
21811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21814
21815
f56c22b4
MW
21816 if test "$wxUSE_UNICODE" = "yes"; then
21817 std_string="std::wstring"
21818 char_type="wchar_t"
21819 else
21820 std_string="std::string"
21821 char_type="char"
21822 fi
21823
21824 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21825echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21826 cat >conftest.$ac_ext <<_ACEOF
21827/* confdefs.h. */
21828_ACEOF
21829cat confdefs.h >>conftest.$ac_ext
21830cat >>conftest.$ac_ext <<_ACEOF
21831/* end confdefs.h. */
21832#include <string>
a848cd7e
SC
21833int
21834main ()
21835{
f56c22b4 21836$std_string foo;
a848cd7e
SC
21837 ;
21838 return 0;
21839}
21840_ACEOF
21841rm -f conftest.$ac_objext
21842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21843 (eval $ac_compile) 2>conftest.er1
a848cd7e 21844 ac_status=$?
ac1cb8d3
VS
21845 grep -v '^ *+' conftest.er1 >conftest.err
21846 rm -f conftest.er1
21847 cat conftest.err >&5
a848cd7e
SC
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } &&
6ebeb4c7 21850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21852 (eval $ac_try) 2>&5
21853 ac_status=$?
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); }; } &&
21856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858 (eval $ac_try) 2>&5
21859 ac_status=$?
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); }; }; then
21862 echo "$as_me:$LINENO: result: yes" >&5
21863echo "${ECHO_T}yes" >&6
0a08f02a
MB
21864 cat >>confdefs.h <<\_ACEOF
21865#define HAVE_STD_WSTRING 1
21866_ACEOF
21867
a848cd7e
SC
21868else
21869 echo "$as_me: failed program was:" >&5
21870sed 's/^/| /' conftest.$ac_ext >&5
21871
21872echo "$as_me:$LINENO: result: no" >&5
21873echo "${ECHO_T}no" >&6
f56c22b4
MW
21874 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21875echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21876 cat >conftest.$ac_ext <<_ACEOF
21877/* confdefs.h. */
21878_ACEOF
21879cat confdefs.h >>conftest.$ac_ext
21880cat >>conftest.$ac_ext <<_ACEOF
21881/* end confdefs.h. */
21882
21883 #ifdef HAVE_WCHAR_H
21884 # ifdef __CYGWIN__
21885 # include <stddef.h>
21886 # endif
21887 # include <wchar.h>
21888 #endif
21889 #ifdef HAVE_STDLIB_H
21890 # include <stdlib.h>
21891 #endif
21892 #include <stdio.h>
21893 #include <string>
21894
21895int
21896main ()
21897{
f56c22b4
MW
21898std::basic_string<$char_type> foo;
21899 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21900 ;
21901 return 0;
21902}
21903_ACEOF
21904rm -f conftest.$ac_objext
21905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21906 (eval $ac_compile) 2>conftest.er1
21907 ac_status=$?
21908 grep -v '^ *+' conftest.er1 >conftest.err
21909 rm -f conftest.er1
21910 cat conftest.err >&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); } &&
6ebeb4c7 21913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
21914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21915 (eval $ac_try) 2>&5
21916 ac_status=$?
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); }; } &&
21919 { ac_try='test -s conftest.$ac_objext'
21920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21921 (eval $ac_try) 2>&5
21922 ac_status=$?
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); }; }; then
21925 echo "$as_me:$LINENO: result: yes" >&5
21926echo "${ECHO_T}yes" >&6
21927else
21928 echo "$as_me: failed program was:" >&5
21929sed 's/^/| /' conftest.$ac_ext >&5
21930
21931echo "$as_me:$LINENO: result: no" >&5
21932echo "${ECHO_T}no" >&6
f56c22b4 21933 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21934 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21935echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21936 { (exit 1); exit 1; }; }
21937 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21938 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21939echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21940 { (exit 1); exit 1; }; }
f56c22b4
MW
21941 else
21942 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21943echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21944 wxUSE_STD_STRING=no
21945 fi
21946
0a08f02a 21947
a848cd7e 21948fi
ac1cb8d3 21949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21950
0a08f02a
MB
21951fi
21952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21953
21954 ac_ext=c
21955ac_cpp='$CPP $CPPFLAGS'
21956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21958ac_compiler_gnu=$ac_cv_c_compiler_gnu
21959
21960fi
21961
21962if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21963 ac_ext=cc
21964ac_cpp='$CXXCPP $CPPFLAGS'
21965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21968
21969
21970 echo "$as_me:$LINENO: checking for std::istream" >&5
21971echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21972if test "${ac_cv_type_std__istream+set}" = set; then
21973 echo $ECHO_N "(cached) $ECHO_C" >&6
21974else
21975 cat >conftest.$ac_ext <<_ACEOF
21976/* confdefs.h. */
21977_ACEOF
21978cat confdefs.h >>conftest.$ac_ext
21979cat >>conftest.$ac_ext <<_ACEOF
21980/* end confdefs.h. */
21981#include <iostream>
21982
21983int
21984main ()
21985{
21986if ((std::istream *) 0)
21987 return 0;
21988if (sizeof (std::istream))
21989 return 0;
21990 ;
21991 return 0;
21992}
21993_ACEOF
21994rm -f conftest.$ac_objext
21995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21996 (eval $ac_compile) 2>conftest.er1
21997 ac_status=$?
21998 grep -v '^ *+' conftest.er1 >conftest.err
21999 rm -f conftest.er1
22000 cat conftest.err >&5
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); } &&
6ebeb4c7 22003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22005 (eval $ac_try) 2>&5
22006 ac_status=$?
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); }; } &&
22009 { ac_try='test -s conftest.$ac_objext'
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22012 ac_status=$?
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; }; then
22015 ac_cv_type_std__istream=yes
22016else
22017 echo "$as_me: failed program was:" >&5
22018sed 's/^/| /' conftest.$ac_ext >&5
22019
22020ac_cv_type_std__istream=no
22021fi
22022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22023fi
22024echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22025echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22026if test $ac_cv_type_std__istream = yes; then
22027
22028cat >>confdefs.h <<_ACEOF
22029#define HAVE_STD__ISTREAM 1
22030_ACEOF
22031
22032
22033else
22034 wxUSE_STD_IOSTREAM=no
22035fi
22036echo "$as_me:$LINENO: checking for std::ostream" >&5
22037echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22038if test "${ac_cv_type_std__ostream+set}" = set; then
22039 echo $ECHO_N "(cached) $ECHO_C" >&6
22040else
22041 cat >conftest.$ac_ext <<_ACEOF
22042/* confdefs.h. */
22043_ACEOF
22044cat confdefs.h >>conftest.$ac_ext
22045cat >>conftest.$ac_ext <<_ACEOF
22046/* end confdefs.h. */
22047#include <iostream>
22048
22049int
22050main ()
22051{
22052if ((std::ostream *) 0)
22053 return 0;
22054if (sizeof (std::ostream))
22055 return 0;
22056 ;
22057 return 0;
22058}
22059_ACEOF
22060rm -f conftest.$ac_objext
22061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22062 (eval $ac_compile) 2>conftest.er1
22063 ac_status=$?
22064 grep -v '^ *+' conftest.er1 >conftest.err
22065 rm -f conftest.er1
22066 cat conftest.err >&5
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } &&
6ebeb4c7 22069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22071 (eval $ac_try) 2>&5
22072 ac_status=$?
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; } &&
22075 { ac_try='test -s conftest.$ac_objext'
22076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22077 (eval $ac_try) 2>&5
22078 ac_status=$?
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); }; }; then
22081 ac_cv_type_std__ostream=yes
22082else
22083 echo "$as_me: failed program was:" >&5
22084sed 's/^/| /' conftest.$ac_ext >&5
22085
22086ac_cv_type_std__ostream=no
22087fi
22088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22089fi
22090echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22091echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22092if test $ac_cv_type_std__ostream = yes; then
22093
22094cat >>confdefs.h <<_ACEOF
22095#define HAVE_STD__OSTREAM 1
22096_ACEOF
22097
22098
22099else
22100 wxUSE_STD_IOSTREAM=no
22101fi
22102
22103
22104 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
22105 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22106 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22107echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22108 { (exit 1); exit 1; }; }
22109 else
22110 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 22111echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 22112 fi
f56c22b4
MW
22113 fi
22114
22115 ac_ext=c
22116ac_cpp='$CPP $CPPFLAGS'
22117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
22119ac_compiler_gnu=$ac_cv_c_compiler_gnu
22120
22121fi
22122
22123if test "$wxUSE_STL" = "yes"; then
22124 ac_ext=cc
22125ac_cpp='$CXXCPP $CPPFLAGS'
22126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22129
22130
22131 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
22132echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
22133 cat >conftest.$ac_ext <<_ACEOF
22134/* confdefs.h. */
22135_ACEOF
22136cat confdefs.h >>conftest.$ac_ext
22137cat >>conftest.$ac_ext <<_ACEOF
22138/* end confdefs.h. */
22139#include <string>
0a08f02a
MB
22140 #include <functional>
22141 #include <algorithm>
22142 #include <vector>
22143 #include <list>
a848cd7e
SC
22144int
22145main ()
22146{
0a08f02a
MB
22147std::vector<int> moo;
22148 std::list<int> foo;
22149 std::vector<int>::iterator it =
22150 std::find_if(moo.begin(), moo.end(),
22151 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
22152 ;
22153 return 0;
22154}
22155_ACEOF
22156rm -f conftest.$ac_objext
22157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22158 (eval $ac_compile) 2>conftest.er1
a848cd7e 22159 ac_status=$?
ac1cb8d3
VS
22160 grep -v '^ *+' conftest.er1 >conftest.err
22161 rm -f conftest.er1
22162 cat conftest.err >&5
a848cd7e
SC
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } &&
6ebeb4c7 22165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167 (eval $ac_try) 2>&5
22168 ac_status=$?
22169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); }; } &&
22171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22173 (eval $ac_try) 2>&5
22174 ac_status=$?
22175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176 (exit $ac_status); }; }; then
22177 echo "$as_me:$LINENO: result: yes" >&5
22178echo "${ECHO_T}yes" >&6
a848cd7e
SC
22179else
22180 echo "$as_me: failed program was:" >&5
22181sed 's/^/| /' conftest.$ac_ext >&5
22182
22183echo "$as_me:$LINENO: result: no" >&5
22184echo "${ECHO_T}no" >&6
0a08f02a
MB
22185 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
22186echo "$as_me: error: Basic STL functionality missing" >&2;}
22187 { (exit 1); exit 1; }; }
a848cd7e 22188fi
ac1cb8d3 22189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22190
22191 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
22192echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
22193 cat >conftest.$ac_ext <<_ACEOF
22194/* confdefs.h. */
22195_ACEOF
22196cat confdefs.h >>conftest.$ac_ext
22197cat >>conftest.$ac_ext <<_ACEOF
22198/* end confdefs.h. */
22199#include <string>
22200int
22201main ()
22202{
22203std::string foo, bar;
22204 foo.compare(bar);
22205 foo.compare(1, 1, bar);
22206 foo.compare(1, 1, bar, 1, 1);
22207 foo.compare("");
22208 foo.compare(1, 1, "");
22209 foo.compare(1, 1, "", 2);
22210 ;
22211 return 0;
22212}
22213_ACEOF
22214rm -f conftest.$ac_objext
22215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22216 (eval $ac_compile) 2>conftest.er1
a848cd7e 22217 ac_status=$?
ac1cb8d3
VS
22218 grep -v '^ *+' conftest.er1 >conftest.err
22219 rm -f conftest.er1
22220 cat conftest.err >&5
a848cd7e
SC
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); } &&
6ebeb4c7 22223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225 (eval $ac_try) 2>&5
22226 ac_status=$?
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); }; } &&
22229 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22231 (eval $ac_try) 2>&5
22232 ac_status=$?
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); }; }; then
22235 echo "$as_me:$LINENO: result: yes" >&5
22236echo "${ECHO_T}yes" >&6
22237 cat >>confdefs.h <<\_ACEOF
22238#define HAVE_STD_STRING_COMPARE 1
22239_ACEOF
22240
22241else
22242 echo "$as_me: failed program was:" >&5
22243sed 's/^/| /' conftest.$ac_ext >&5
22244
22245echo "$as_me:$LINENO: result: no" >&5
22246echo "${ECHO_T}no" >&6
22247fi
ac1cb8d3 22248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22249
22250 if test "${ac_cv_header_hash_map+set}" = set; then
22251 echo "$as_me:$LINENO: checking for hash_map" >&5
22252echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22253if test "${ac_cv_header_hash_map+set}" = set; then
22254 echo $ECHO_N "(cached) $ECHO_C" >&6
22255fi
22256echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22257echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22258else
22259 # Is the header compilable?
22260echo "$as_me:$LINENO: checking hash_map usability" >&5
22261echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
22262cat >conftest.$ac_ext <<_ACEOF
22263/* confdefs.h. */
22264_ACEOF
22265cat confdefs.h >>conftest.$ac_ext
22266cat >>conftest.$ac_ext <<_ACEOF
22267/* end confdefs.h. */
22268$ac_includes_default
22269#include <hash_map>
22270_ACEOF
22271rm -f conftest.$ac_objext
22272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22273 (eval $ac_compile) 2>conftest.er1
bdcade0a 22274 ac_status=$?
ac1cb8d3
VS
22275 grep -v '^ *+' conftest.er1 >conftest.err
22276 rm -f conftest.er1
22277 cat conftest.err >&5
bdcade0a
MB
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } &&
6ebeb4c7 22280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22282 (eval $ac_try) 2>&5
22283 ac_status=$?
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); }; } &&
22286 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22288 (eval $ac_try) 2>&5
22289 ac_status=$?
22290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); }; }; then
22292 ac_header_compiler=yes
22293else
22294 echo "$as_me: failed program was:" >&5
22295sed 's/^/| /' conftest.$ac_ext >&5
22296
22297ac_header_compiler=no
22298fi
ac1cb8d3 22299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22300echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22301echo "${ECHO_T}$ac_header_compiler" >&6
22302
22303# Is the header present?
22304echo "$as_me:$LINENO: checking hash_map presence" >&5
22305echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
22306cat >conftest.$ac_ext <<_ACEOF
22307/* confdefs.h. */
22308_ACEOF
22309cat confdefs.h >>conftest.$ac_ext
22310cat >>conftest.$ac_ext <<_ACEOF
22311/* end confdefs.h. */
22312#include <hash_map>
22313_ACEOF
22314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22316 ac_status=$?
22317 grep -v '^ *+' conftest.er1 >conftest.err
22318 rm -f conftest.er1
22319 cat conftest.err >&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); } >/dev/null; then
22322 if test -s conftest.err; then
22323 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22324 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22325 else
22326 ac_cpp_err=
22327 fi
22328else
22329 ac_cpp_err=yes
22330fi
22331if test -z "$ac_cpp_err"; then
22332 ac_header_preproc=yes
22333else
22334 echo "$as_me: failed program was:" >&5
22335sed 's/^/| /' conftest.$ac_ext >&5
22336
22337 ac_header_preproc=no
22338fi
22339rm -f conftest.err conftest.$ac_ext
22340echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22341echo "${ECHO_T}$ac_header_preproc" >&6
22342
22343# So? What about this header?
ac1cb8d3
VS
22344case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22345 yes:no: )
bdcade0a
MB
22346 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22347echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22348 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
22349echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
22350 ac_header_preproc=yes
bdcade0a 22351 ;;
ac1cb8d3 22352 no:yes:* )
bdcade0a
MB
22353 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
22354echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22355 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
22356echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
22357 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
22358echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
22359 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
22360echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22361 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
22362echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22363 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
22364echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22365 (
22366 cat <<\_ASBOX
ac1cb8d3
VS
22367## ----------------------------------------- ##
22368## Report this to wx-dev@lists.wxwidgets.org ##
22369## ----------------------------------------- ##
bdcade0a
MB
22370_ASBOX
22371 ) |
22372 sed "s/^/$as_me: WARNING: /" >&2
22373 ;;
22374esac
22375echo "$as_me:$LINENO: checking for hash_map" >&5
22376echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22377if test "${ac_cv_header_hash_map+set}" = set; then
22378 echo $ECHO_N "(cached) $ECHO_C" >&6
22379else
22380 ac_cv_header_hash_map=$ac_header_preproc
22381fi
22382echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22383echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22384
22385fi
22386if test $ac_cv_header_hash_map = yes; then
22387 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22388echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22389 cat >conftest.$ac_ext <<_ACEOF
22390/* confdefs.h. */
22391_ACEOF
22392cat confdefs.h >>conftest.$ac_ext
22393cat >>conftest.$ac_ext <<_ACEOF
22394/* end confdefs.h. */
22395#include <hash_map>
22396 #include <hash_set>
22397int
22398main ()
22399{
22400std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
22401 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
22402 ;
22403 return 0;
22404}
22405_ACEOF
22406rm -f conftest.$ac_objext
22407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22408 (eval $ac_compile) 2>conftest.er1
bdcade0a 22409 ac_status=$?
ac1cb8d3
VS
22410 grep -v '^ *+' conftest.er1 >conftest.err
22411 rm -f conftest.er1
22412 cat conftest.err >&5
bdcade0a
MB
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); } &&
6ebeb4c7 22415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22417 (eval $ac_try) 2>&5
22418 ac_status=$?
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); }; } &&
22421 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22423 (eval $ac_try) 2>&5
22424 ac_status=$?
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); }; }; then
22427 echo "$as_me:$LINENO: result: yes" >&5
22428echo "${ECHO_T}yes" >&6
22429 cat >>confdefs.h <<\_ACEOF
22430#define HAVE_HASH_MAP 1
22431_ACEOF
22432
22433 cat >>confdefs.h <<\_ACEOF
22434#define HAVE_STD_HASH_MAP 1
22435_ACEOF
22436
22437else
22438 echo "$as_me: failed program was:" >&5
22439sed 's/^/| /' conftest.$ac_ext >&5
22440
22441echo "$as_me:$LINENO: result: no" >&5
22442echo "${ECHO_T}no" >&6
22443fi
ac1cb8d3 22444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22445
22446fi
22447
22448
22449
22450 if test "${ac_cv_header_ext_hash_map+set}" = set; then
22451 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22452echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22453if test "${ac_cv_header_ext_hash_map+set}" = set; then
22454 echo $ECHO_N "(cached) $ECHO_C" >&6
22455fi
22456echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22457echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22458else
22459 # Is the header compilable?
22460echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
22461echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
22462cat >conftest.$ac_ext <<_ACEOF
22463/* confdefs.h. */
22464_ACEOF
22465cat confdefs.h >>conftest.$ac_ext
22466cat >>conftest.$ac_ext <<_ACEOF
22467/* end confdefs.h. */
22468$ac_includes_default
22469#include <ext/hash_map>
22470_ACEOF
22471rm -f conftest.$ac_objext
22472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22473 (eval $ac_compile) 2>conftest.er1
bdcade0a 22474 ac_status=$?
ac1cb8d3
VS
22475 grep -v '^ *+' conftest.er1 >conftest.err
22476 rm -f conftest.er1
22477 cat conftest.err >&5
bdcade0a
MB
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); } &&
6ebeb4c7 22480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22482 (eval $ac_try) 2>&5
22483 ac_status=$?
22484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485 (exit $ac_status); }; } &&
22486 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22488 (eval $ac_try) 2>&5
22489 ac_status=$?
22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491 (exit $ac_status); }; }; then
22492 ac_header_compiler=yes
22493else
22494 echo "$as_me: failed program was:" >&5
22495sed 's/^/| /' conftest.$ac_ext >&5
22496
22497ac_header_compiler=no
22498fi
ac1cb8d3 22499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22500echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22501echo "${ECHO_T}$ac_header_compiler" >&6
22502
22503# Is the header present?
22504echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
22505echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
22506cat >conftest.$ac_ext <<_ACEOF
22507/* confdefs.h. */
22508_ACEOF
22509cat confdefs.h >>conftest.$ac_ext
22510cat >>conftest.$ac_ext <<_ACEOF
22511/* end confdefs.h. */
22512#include <ext/hash_map>
22513_ACEOF
22514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22516 ac_status=$?
22517 grep -v '^ *+' conftest.er1 >conftest.err
22518 rm -f conftest.er1
22519 cat conftest.err >&5
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); } >/dev/null; then
22522 if test -s conftest.err; then
22523 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22524 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22525 else
22526 ac_cpp_err=
22527 fi
22528else
22529 ac_cpp_err=yes
22530fi
22531if test -z "$ac_cpp_err"; then
22532 ac_header_preproc=yes
22533else
22534 echo "$as_me: failed program was:" >&5
22535sed 's/^/| /' conftest.$ac_ext >&5
22536
22537 ac_header_preproc=no
22538fi
22539rm -f conftest.err conftest.$ac_ext
22540echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22541echo "${ECHO_T}$ac_header_preproc" >&6
22542
22543# So? What about this header?
ac1cb8d3
VS
22544case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22545 yes:no: )
bdcade0a
MB
22546 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22547echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22548 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22549echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22550 ac_header_preproc=yes
bdcade0a 22551 ;;
ac1cb8d3 22552 no:yes:* )
bdcade0a
MB
22553 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22554echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22555 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22556echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22557 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22558echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22559 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22560echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22561 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22562echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22563 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22564echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22565 (
22566 cat <<\_ASBOX
ac1cb8d3
VS
22567## ----------------------------------------- ##
22568## Report this to wx-dev@lists.wxwidgets.org ##
22569## ----------------------------------------- ##
bdcade0a
MB
22570_ASBOX
22571 ) |
22572 sed "s/^/$as_me: WARNING: /" >&2
22573 ;;
22574esac
22575echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22576echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22577if test "${ac_cv_header_ext_hash_map+set}" = set; then
22578 echo $ECHO_N "(cached) $ECHO_C" >&6
22579else
22580 ac_cv_header_ext_hash_map=$ac_header_preproc
22581fi
22582echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22583echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22584
22585fi
22586if test $ac_cv_header_ext_hash_map = yes; then
22587 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22588echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22589 cat >conftest.$ac_ext <<_ACEOF
22590/* confdefs.h. */
22591_ACEOF
22592cat confdefs.h >>conftest.$ac_ext
22593cat >>conftest.$ac_ext <<_ACEOF
22594/* end confdefs.h. */
22595#include <ext/hash_map>
22596 #include <ext/hash_set>
22597int
22598main ()
22599{
22600__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22601 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22602 ;
22603 return 0;
22604}
22605_ACEOF
22606rm -f conftest.$ac_objext
22607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22608 (eval $ac_compile) 2>conftest.er1
bdcade0a 22609 ac_status=$?
ac1cb8d3
VS
22610 grep -v '^ *+' conftest.er1 >conftest.err
22611 rm -f conftest.er1
22612 cat conftest.err >&5
bdcade0a
MB
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); } &&
6ebeb4c7 22615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22617 (eval $ac_try) 2>&5
22618 ac_status=$?
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); }; } &&
22621 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623 (eval $ac_try) 2>&5
22624 ac_status=$?
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; }; then
22627 echo "$as_me:$LINENO: result: yes" >&5
22628echo "${ECHO_T}yes" >&6
22629 cat >>confdefs.h <<\_ACEOF
22630#define HAVE_EXT_HASH_MAP 1
22631_ACEOF
22632
22633 cat >>confdefs.h <<\_ACEOF
22634#define HAVE_GNU_CXX_HASH_MAP 1
22635_ACEOF
22636
22637else
22638 echo "$as_me: failed program was:" >&5
22639sed 's/^/| /' conftest.$ac_ext >&5
22640
22641echo "$as_me:$LINENO: result: no" >&5
22642echo "${ECHO_T}no" >&6
22643fi
ac1cb8d3 22644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22645
22646fi
22647
22648
a848cd7e
SC
22649
22650 ac_ext=c
22651ac_cpp='$CPP $CPPFLAGS'
22652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22654ac_compiler_gnu=$ac_cv_c_compiler_gnu
22655
22656fi
22657
22658
22659SEARCH_INCLUDE="\
22660 /usr/local/include \
22661 \
22662 /usr/Motif-2.1/include \
22663 /usr/Motif-1.2/include \
22664 /usr/include/Motif1.2 \
a848cd7e
SC
22665 \
22666 /usr/dt/include \
22667 /usr/openwin/include \
22668 \
22669 /usr/include/Xm \
22670 \
22671 /usr/X11R6/include \
22672 /usr/X11R6.4/include \
22673 /usr/X11R5/include \
22674 /usr/X11R4/include \
22675 \
22676 /usr/include/X11R6 \
22677 /usr/include/X11R5 \
22678 /usr/include/X11R4 \
22679 \
22680 /usr/local/X11R6/include \
22681 /usr/local/X11R5/include \
22682 /usr/local/X11R4/include \
22683 \
22684 /usr/local/include/X11R6 \
22685 /usr/local/include/X11R5 \
22686 /usr/local/include/X11R4 \
22687 \
22688 /usr/X11/include \
22689 /usr/include/X11 \
22690 /usr/local/X11/include \
22691 /usr/local/include/X11 \
22692 \
a848cd7e 22693 /usr/XFree86/include/X11 \
e051b34e
MW
22694 /usr/pkg/include \
22695 \
a848cd7e
SC
22696 /usr/openwin/share/include"
22697
6f9cf1e6 22698echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 22699echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
22700
22701case "${host}" in
22702 *-*-irix6* )
22703 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
22704 echo $ECHO_N "(cached) $ECHO_C" >&6
22705else
22706
c687b303
VZ
22707 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
22708 for e in a so sl dylib dll.a; do
22709 libc="$d/libc.$e"
22710 if test -f $libc; then
22711 save_LIBS="$LIBS"
22712 LIBS="$libc"
22713 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
22714int main() { return 0; }
22715_ACEOF
22716rm -f conftest.$ac_objext conftest$ac_exeext
22717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22718 (eval $ac_link) 2>conftest.er1
22719 ac_status=$?
22720 grep -v '^ *+' conftest.er1 >conftest.err
22721 rm -f conftest.er1
22722 cat conftest.err >&5
22723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } &&
22725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22727 (eval $ac_try) 2>&5
22728 ac_status=$?
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); }; } &&
22731 { ac_try='test -s conftest$ac_exeext'
22732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733 (eval $ac_try) 2>&5
22734 ac_status=$?
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; }; then
22737 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
22738else
22739 echo "$as_me: failed program was:" >&5
22740sed 's/^/| /' conftest.$ac_ext >&5
22741
22742fi
22743rm -f conftest.err conftest.$ac_objext \
22744 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
22745 LIBS="$save_LIBS"
22746 if test "x$wx_cv_std_libpath" != "x"; then
22747 break 2
22748 fi
22749 fi
22750 done
22751 done
22752 if test "x$wx_cv_std_libpath" = "x"; then
22753 wx_cv_std_libpath="lib"
0ad5d837 22754 fi
0ad5d837
VZ
22755
22756
22757fi
6f9cf1e6
MW
22758
22759 ;;
22760
22761 *-*-solaris2* )
22762 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
22763 wx_cv_std_libpath="lib/64"
22764 else
22765 wx_cv_std_libpath="lib"
22766 fi
22767 ;;
22768
22769 *-*-linux* )
22770 if test "$ac_cv_sizeof_void_p" = 8 -a \
22771 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
22772 wx_cv_std_libpath="lib64"
22773 else
22774 wx_cv_std_libpath="lib"
22775 fi
c687b303
VZ
22776 ;;
22777
22778 *)
22779 wx_cv_std_libpath="lib";
22780 ;;
22781esac
0ad5d837 22782
6f9cf1e6
MW
22783echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
22784echo "${ECHO_T}$wx_cv_std_libpath" >&6
22785
22786SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 22787
3eca31dc
MW
22788if test "$build" != "$host" -a "$GCC" = yes; then
22789 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
22790 cross_root=`dirname $cross_root`
22791 cross_root=`dirname $cross_root`
22792
22793 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22794 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22795
22796 if test -z "$PKG_CONFIG_PATH"; then
22797 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
22798 export PKG_CONFIG_PATH
22799 fi
22800
22801 if test -z "$x_includes" -o "$x_includes" = NONE; then
22802
22803ac_find_includes=
22804for ac_dir in $SEARCH_INCLUDE /usr/include;
22805 do
22806 if test -f "$ac_dir/X11/Intrinsic.h"; then
22807 ac_find_includes=$ac_dir
22808 break
22809 fi
22810 done
22811
22812 x_includes=$ac_find_includes
22813 fi
22814 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
22815
0ad5d837
VZ
22816 ac_find_libraries=
22817 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
22818 do
22819 for ac_extension in a so sl dylib dll.a; do
22820 if test -f "$ac_dir/libXt.$ac_extension"; then
22821 ac_find_libraries=$ac_dir
22822 break 2
22823 fi
22824 done
22825 done
22826
22827 x_libraries=$ac_find_libraries
22828 fi
22829 fi
22830fi
22831
a848cd7e
SC
22832
22833cat >confcache <<\_ACEOF
22834# This file is a shell script that caches the results of configure
22835# tests run on this system so they can be shared between configure
22836# scripts and configure runs, see configure's option --config-cache.
22837# It is not useful on other systems. If it contains results you don't
22838# want to keep, you may remove or edit it.
22839#
22840# config.status only pays attention to the cache file if you give it
22841# the --recheck option to rerun configure.
22842#
22843# `ac_cv_env_foo' variables (set or unset) will be overridden when
22844# loading this file, other *unset* `ac_cv_foo' will be assigned the
22845# following values.
22846
22847_ACEOF
22848
22849# The following way of writing the cache mishandles newlines in values,
22850# but we know of no workaround that is simple, portable, and efficient.
22851# So, don't put newlines in cache variables' values.
22852# Ultrix sh set writes to stderr and can't be redirected directly,
22853# and sets the high bit in the cache file unless we assign to the vars.
22854{
22855 (set) 2>&1 |
22856 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22857 *ac_space=\ *)
22858 # `set' does not quote correctly, so add quotes (double-quote
22859 # substitution turns \\\\ into \\, and sed turns \\ into \).
22860 sed -n \
ac1cb8d3
VS
22861 "s/'/'\\\\''/g;
22862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22863 ;;
22864 *)
22865 # `set' quotes correctly as required by POSIX, so do not add quotes.
22866 sed -n \
ac1cb8d3 22867 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22868 ;;
22869 esac;
22870} |
22871 sed '
22872 t clear
22873 : clear
22874 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22875 t end
22876 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22877 : end' >>confcache
22878if diff $cache_file confcache >/dev/null 2>&1; then :; else
22879 if test -w $cache_file; then
22880 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22881 cat confcache >$cache_file
22882 else
22883 echo "not updating unwritable cache $cache_file"
22884 fi
22885fi
22886rm -f confcache
22887
22888if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22889 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22890echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22891if test "${wx_cv_lib_glibc21+set}" = set; then
22892 echo $ECHO_N "(cached) $ECHO_C" >&6
22893else
22894
22895 cat >conftest.$ac_ext <<_ACEOF
22896/* confdefs.h. */
22897_ACEOF
22898cat confdefs.h >>conftest.$ac_ext
22899cat >>conftest.$ac_ext <<_ACEOF
22900/* end confdefs.h. */
22901#include <features.h>
22902int
22903main ()
22904{
22905
22906 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 22907 not glibc 2.1
a848cd7e
SC
22908 #endif
22909
22910 ;
22911 return 0;
22912}
22913_ACEOF
22914rm -f conftest.$ac_objext
22915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22916 (eval $ac_compile) 2>conftest.er1
a848cd7e 22917 ac_status=$?
ac1cb8d3
VS
22918 grep -v '^ *+' conftest.er1 >conftest.err
22919 rm -f conftest.er1
22920 cat conftest.err >&5
a848cd7e
SC
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } &&
6ebeb4c7 22923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22926 ac_status=$?
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; } &&
22929 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931 (eval $ac_try) 2>&5
22932 ac_status=$?
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; }; then
22935
22936 wx_cv_lib_glibc21=yes
22937
22938else
22939 echo "$as_me: failed program was:" >&5
22940sed 's/^/| /' conftest.$ac_ext >&5
22941
22942
22943 wx_cv_lib_glibc21=no
22944
22945
22946fi
ac1cb8d3 22947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22948
22949fi
22950echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22951echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22952 if test "$wx_cv_lib_glibc21" = "yes"; then
22953 cat >>confdefs.h <<\_ACEOF
22954#define wxHAVE_GLIBC2 1
22955_ACEOF
22956
22957 fi
22958fi
22959
22960if test "x$wx_cv_lib_glibc21" = "xyes"; then
22961 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22962 cat >>confdefs.h <<\_ACEOF
22963#define _GNU_SOURCE 1
22964_ACEOF
22965
22966 fi
22967fi
22968
22969
22970
22971if test "$wxUSE_REGEX" != "no"; then
22972 cat >>confdefs.h <<\_ACEOF
22973#define wxUSE_REGEX 1
22974_ACEOF
22975
22976
22977 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22978 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22979echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22980 wxUSE_REGEX=builtin
22981 fi
22982
22983 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22984 if test "${ac_cv_header_regex_h+set}" = set; then
22985 echo "$as_me:$LINENO: checking for regex.h" >&5
22986echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22987if test "${ac_cv_header_regex_h+set}" = set; then
22988 echo $ECHO_N "(cached) $ECHO_C" >&6
22989fi
22990echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22991echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22992else
22993 # Is the header compilable?
22994echo "$as_me:$LINENO: checking regex.h usability" >&5
22995echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22996cat >conftest.$ac_ext <<_ACEOF
22997/* confdefs.h. */
22998_ACEOF
22999cat confdefs.h >>conftest.$ac_ext
23000cat >>conftest.$ac_ext <<_ACEOF
23001/* end confdefs.h. */
23002$ac_includes_default
23003#include <regex.h>
23004_ACEOF
23005rm -f conftest.$ac_objext
23006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23007 (eval $ac_compile) 2>conftest.er1
a848cd7e 23008 ac_status=$?
ac1cb8d3
VS
23009 grep -v '^ *+' conftest.er1 >conftest.err
23010 rm -f conftest.er1
23011 cat conftest.err >&5
a848cd7e
SC
23012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); } &&
6ebeb4c7 23014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016 (eval $ac_try) 2>&5
23017 ac_status=$?
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); }; } &&
23020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23022 (eval $ac_try) 2>&5
23023 ac_status=$?
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); }; }; then
23026 ac_header_compiler=yes
23027else
23028 echo "$as_me: failed program was:" >&5
23029sed 's/^/| /' conftest.$ac_ext >&5
23030
23031ac_header_compiler=no
23032fi
ac1cb8d3 23033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23034echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23035echo "${ECHO_T}$ac_header_compiler" >&6
23036
23037# Is the header present?
23038echo "$as_me:$LINENO: checking regex.h presence" >&5
23039echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23040cat >conftest.$ac_ext <<_ACEOF
23041/* confdefs.h. */
23042_ACEOF
23043cat confdefs.h >>conftest.$ac_ext
23044cat >>conftest.$ac_ext <<_ACEOF
23045/* end confdefs.h. */
23046#include <regex.h>
23047_ACEOF
23048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23050 ac_status=$?
23051 grep -v '^ *+' conftest.er1 >conftest.err
23052 rm -f conftest.er1
23053 cat conftest.err >&5
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); } >/dev/null; then
23056 if test -s conftest.err; then
23057 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23059 else
23060 ac_cpp_err=
23061 fi
23062else
23063 ac_cpp_err=yes
23064fi
23065if test -z "$ac_cpp_err"; then
23066 ac_header_preproc=yes
23067else
23068 echo "$as_me: failed program was:" >&5
23069sed 's/^/| /' conftest.$ac_ext >&5
23070
23071 ac_header_preproc=no
23072fi
23073rm -f conftest.err conftest.$ac_ext
23074echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23075echo "${ECHO_T}$ac_header_preproc" >&6
23076
23077# So? What about this header?
ac1cb8d3
VS
23078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23079 yes:no: )
a848cd7e
SC
23080 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23081echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23082 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23083echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23084 ac_header_preproc=yes
a848cd7e 23085 ;;
ac1cb8d3 23086 no:yes:* )
a848cd7e
SC
23087 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23088echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23089 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23090echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23091 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23092echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23093 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23094echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23095 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23096echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23097 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23098echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23099 (
23100 cat <<\_ASBOX
ac1cb8d3
VS
23101## ----------------------------------------- ##
23102## Report this to wx-dev@lists.wxwidgets.org ##
23103## ----------------------------------------- ##
a848cd7e
SC
23104_ASBOX
23105 ) |
23106 sed "s/^/$as_me: WARNING: /" >&2
23107 ;;
23108esac
23109echo "$as_me:$LINENO: checking for regex.h" >&5
23110echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23111if test "${ac_cv_header_regex_h+set}" = set; then
23112 echo $ECHO_N "(cached) $ECHO_C" >&6
23113else
23114 ac_cv_header_regex_h=$ac_header_preproc
23115fi
23116echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23117echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23118
23119fi
23120if test $ac_cv_header_regex_h = yes; then
23121
23122for ac_func in regcomp
23123do
23124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23125echo "$as_me:$LINENO: checking for $ac_func" >&5
23126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23127if eval "test \"\${$as_ac_var+set}\" = set"; then
23128 echo $ECHO_N "(cached) $ECHO_C" >&6
23129else
23130 cat >conftest.$ac_ext <<_ACEOF
23131/* confdefs.h. */
23132_ACEOF
23133cat confdefs.h >>conftest.$ac_ext
23134cat >>conftest.$ac_ext <<_ACEOF
23135/* end confdefs.h. */
ac1cb8d3
VS
23136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23138#define $ac_func innocuous_$ac_func
23139
a848cd7e
SC
23140/* System header to define __stub macros and hopefully few prototypes,
23141 which can conflict with char $ac_func (); below.
23142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23143 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23144
a848cd7e
SC
23145#ifdef __STDC__
23146# include <limits.h>
23147#else
23148# include <assert.h>
23149#endif
ac1cb8d3
VS
23150
23151#undef $ac_func
23152
a848cd7e
SC
23153/* Override any gcc2 internal prototype to avoid an error. */
23154#ifdef __cplusplus
23155extern "C"
23156{
23157#endif
23158/* We use char because int might match the return type of a gcc2
23159 builtin and then its argument prototype would still apply. */
23160char $ac_func ();
23161/* The GNU C library defines this for functions which it implements
23162 to always fail with ENOSYS. Some functions are actually named
23163 something starting with __ and the normal name is an alias. */
23164#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23165choke me
23166#else
23167char (*f) () = $ac_func;
23168#endif
23169#ifdef __cplusplus
23170}
23171#endif
23172
23173int
23174main ()
23175{
23176return f != $ac_func;
23177 ;
23178 return 0;
23179}
23180_ACEOF
23181rm -f conftest.$ac_objext conftest$ac_exeext
23182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23183 (eval $ac_link) 2>conftest.er1
a848cd7e 23184 ac_status=$?
ac1cb8d3
VS
23185 grep -v '^ *+' conftest.er1 >conftest.err
23186 rm -f conftest.er1
23187 cat conftest.err >&5
a848cd7e
SC
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); } &&
6ebeb4c7 23190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23192 (eval $ac_try) 2>&5
23193 ac_status=$?
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); }; } &&
23196 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23198 (eval $ac_try) 2>&5
23199 ac_status=$?
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); }; }; then
23202 eval "$as_ac_var=yes"
23203else
23204 echo "$as_me: failed program was:" >&5
23205sed 's/^/| /' conftest.$ac_ext >&5
23206
23207eval "$as_ac_var=no"
23208fi
ac1cb8d3
VS
23209rm -f conftest.err conftest.$ac_objext \
23210 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23211fi
23212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23213echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23214if test `eval echo '${'$as_ac_var'}'` = yes; then
23215 cat >>confdefs.h <<_ACEOF
23216#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23217_ACEOF
23218
23219fi
23220done
23221
23222fi
23223
23224
23225
23226 if test "x$ac_cv_func_regcomp" != "xyes"; then
23227 if test "$wxUSE_REGEX" = "sys" ; then
23228 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
23229echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
23230 { (exit 1); exit 1; }; }
23231 else
23232 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
23233echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
23234 wxUSE_REGEX=builtin
23235 fi
23236 else
23237 wxUSE_REGEX=sys
23238 cat >>confdefs.h <<\_ACEOF
23239#define WX_NO_REGEX_ADVANCED 1
23240_ACEOF
23241
23242 fi
23243 fi
23244fi
23245
23246
23247ZLIB_LINK=
23248if test "$wxUSE_ZLIB" != "no" ; then
23249 cat >>confdefs.h <<\_ACEOF
23250#define wxUSE_ZLIB 1
23251_ACEOF
23252
23253
23254 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
23255 if test "$USE_DARWIN" = 1; then
23256 system_zlib_h_ok="yes"
23257 else
23258 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
23259echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
23260if test "${ac_cv_header_zlib_h+set}" = set; then
23261 echo $ECHO_N "(cached) $ECHO_C" >&6
23262else
23263 if test "$cross_compiling" = yes; then
23264 unset ac_cv_header_zlib_h
23265
23266else
23267 cat >conftest.$ac_ext <<_ACEOF
23268/* confdefs.h. */
23269_ACEOF
23270cat confdefs.h >>conftest.$ac_ext
23271cat >>conftest.$ac_ext <<_ACEOF
23272/* end confdefs.h. */
23273
23274 #include <zlib.h>
23275 #include <stdio.h>
23276
23277 int main()
23278 {
23279 FILE *f=fopen("conftestval", "w");
23280 if (!f) exit(1);
23281 fprintf(f, "%s",
23282 ZLIB_VERSION[0] == '1' &&
23283 (ZLIB_VERSION[2] > '1' ||
23284 (ZLIB_VERSION[2] == '1' &&
23285 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
23286 exit(0);
23287 }
23288
23289_ACEOF
23290rm -f conftest$ac_exeext
23291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23292 (eval $ac_link) 2>&5
23293 ac_status=$?
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23297 (eval $ac_try) 2>&5
23298 ac_status=$?
23299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); }; }; then
23301 ac_cv_header_zlib_h=`cat conftestval`
23302else
23303 echo "$as_me: program exited with status $ac_status" >&5
23304echo "$as_me: failed program was:" >&5
23305sed 's/^/| /' conftest.$ac_ext >&5
23306
23307( exit $ac_status )
23308ac_cv_header_zlib_h=no
23309fi
ac1cb8d3 23310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23311fi
23312
23313fi
23314echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23315echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23316 if test "${ac_cv_header_zlib_h+set}" = set; then
23317 echo "$as_me:$LINENO: checking for zlib.h" >&5
23318echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23319if test "${ac_cv_header_zlib_h+set}" = set; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23321fi
23322echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23323echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23324else
23325 # Is the header compilable?
23326echo "$as_me:$LINENO: checking zlib.h usability" >&5
23327echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
23328cat >conftest.$ac_ext <<_ACEOF
23329/* confdefs.h. */
23330_ACEOF
23331cat confdefs.h >>conftest.$ac_ext
23332cat >>conftest.$ac_ext <<_ACEOF
23333/* end confdefs.h. */
23334$ac_includes_default
23335#include <zlib.h>
23336_ACEOF
23337rm -f conftest.$ac_objext
23338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23339 (eval $ac_compile) 2>conftest.er1
a848cd7e 23340 ac_status=$?
ac1cb8d3
VS
23341 grep -v '^ *+' conftest.er1 >conftest.err
23342 rm -f conftest.er1
23343 cat conftest.err >&5
a848cd7e
SC
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); } &&
6ebeb4c7 23346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23348 (eval $ac_try) 2>&5
23349 ac_status=$?
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); }; } &&
23352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23354 (eval $ac_try) 2>&5
23355 ac_status=$?
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); }; }; then
23358 ac_header_compiler=yes
23359else
23360 echo "$as_me: failed program was:" >&5
23361sed 's/^/| /' conftest.$ac_ext >&5
23362
23363ac_header_compiler=no
23364fi
ac1cb8d3 23365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23366echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23367echo "${ECHO_T}$ac_header_compiler" >&6
23368
23369# Is the header present?
23370echo "$as_me:$LINENO: checking zlib.h presence" >&5
23371echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
23372cat >conftest.$ac_ext <<_ACEOF
23373/* confdefs.h. */
23374_ACEOF
23375cat confdefs.h >>conftest.$ac_ext
23376cat >>conftest.$ac_ext <<_ACEOF
23377/* end confdefs.h. */
23378#include <zlib.h>
23379_ACEOF
23380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23382 ac_status=$?
23383 grep -v '^ *+' conftest.er1 >conftest.err
23384 rm -f conftest.er1
23385 cat conftest.err >&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); } >/dev/null; then
23388 if test -s conftest.err; then
23389 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23391 else
23392 ac_cpp_err=
23393 fi
23394else
23395 ac_cpp_err=yes
23396fi
23397if test -z "$ac_cpp_err"; then
23398 ac_header_preproc=yes
23399else
23400 echo "$as_me: failed program was:" >&5
23401sed 's/^/| /' conftest.$ac_ext >&5
23402
23403 ac_header_preproc=no
23404fi
23405rm -f conftest.err conftest.$ac_ext
23406echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23407echo "${ECHO_T}$ac_header_preproc" >&6
23408
23409# So? What about this header?
ac1cb8d3
VS
23410case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23411 yes:no: )
a848cd7e
SC
23412 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
23413echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23414 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
23415echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
23416 ac_header_preproc=yes
a848cd7e 23417 ;;
ac1cb8d3 23418 no:yes:* )
a848cd7e
SC
23419 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
23420echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23421 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
23422echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
23423 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
23424echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
23425 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
23426echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23427 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
23428echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23429 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
23430echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23431 (
23432 cat <<\_ASBOX
ac1cb8d3
VS
23433## ----------------------------------------- ##
23434## Report this to wx-dev@lists.wxwidgets.org ##
23435## ----------------------------------------- ##
a848cd7e
SC
23436_ASBOX
23437 ) |
23438 sed "s/^/$as_me: WARNING: /" >&2
23439 ;;
23440esac
23441echo "$as_me:$LINENO: checking for zlib.h" >&5
23442echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23443if test "${ac_cv_header_zlib_h+set}" = set; then
23444 echo $ECHO_N "(cached) $ECHO_C" >&6
23445else
23446 ac_cv_header_zlib_h=$ac_header_preproc
23447fi
23448echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23449echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23450
23451fi
23452
23453
23454
23455 system_zlib_h_ok=$ac_cv_header_zlib_h
23456 fi
23457
23458 if test "$system_zlib_h_ok" = "yes"; then
23459 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
23460echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
23461if test "${ac_cv_lib_z_deflate+set}" = set; then
23462 echo $ECHO_N "(cached) $ECHO_C" >&6
23463else
23464 ac_check_lib_save_LIBS=$LIBS
23465LIBS="-lz $LIBS"
23466cat >conftest.$ac_ext <<_ACEOF
23467/* confdefs.h. */
23468_ACEOF
23469cat confdefs.h >>conftest.$ac_ext
23470cat >>conftest.$ac_ext <<_ACEOF
23471/* end confdefs.h. */
23472
23473/* Override any gcc2 internal prototype to avoid an error. */
23474#ifdef __cplusplus
23475extern "C"
23476#endif
23477/* We use char because int might match the return type of a gcc2
23478 builtin and then its argument prototype would still apply. */
23479char deflate ();
23480int
23481main ()
23482{
23483deflate ();
23484 ;
23485 return 0;
23486}
23487_ACEOF
23488rm -f conftest.$ac_objext conftest$ac_exeext
23489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23490 (eval $ac_link) 2>conftest.er1
a848cd7e 23491 ac_status=$?
ac1cb8d3
VS
23492 grep -v '^ *+' conftest.er1 >conftest.err
23493 rm -f conftest.er1
23494 cat conftest.err >&5
a848cd7e
SC
23495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); } &&
6ebeb4c7 23497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23499 (eval $ac_try) 2>&5
23500 ac_status=$?
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); }; } &&
23503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23505 (eval $ac_try) 2>&5
23506 ac_status=$?
23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); }; }; then
23509 ac_cv_lib_z_deflate=yes
23510else
23511 echo "$as_me: failed program was:" >&5
23512sed 's/^/| /' conftest.$ac_ext >&5
23513
23514ac_cv_lib_z_deflate=no
23515fi
ac1cb8d3
VS
23516rm -f conftest.err conftest.$ac_objext \
23517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23518LIBS=$ac_check_lib_save_LIBS
23519fi
23520echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
23521echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
23522if test $ac_cv_lib_z_deflate = yes; then
23523 ZLIB_LINK=" -lz"
23524fi
23525
23526 fi
23527
23528 if test "x$ZLIB_LINK" = "x" ; then
23529 if test "$wxUSE_ZLIB" = "sys" ; then
23530 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
23531echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
23532 { (exit 1); exit 1; }; }
23533 else
23534 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
23535echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
23536 wxUSE_ZLIB=builtin
23537 fi
23538 else
23539 wxUSE_ZLIB=sys
23540 fi
23541 fi
23542fi
23543
23544
23545PNG_LINK=
23546if test "$wxUSE_LIBPNG" != "no" ; then
23547 cat >>confdefs.h <<\_ACEOF
23548#define wxUSE_LIBPNG 1
23549_ACEOF
23550
23551
23552 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
23553 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
23554echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
23555 wxUSE_LIBPNG=sys
23556 fi
23557
23558 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
23559 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
23560echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
23561 wxUSE_LIBPNG=builtin
23562 fi
23563
23564 if test "$wxUSE_MGL" != 1 ; then
23565 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
23566 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
23567echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
23568if test "${ac_cv_header_png_h+set}" = set; then
23569 echo $ECHO_N "(cached) $ECHO_C" >&6
23570else
23571 if test "$cross_compiling" = yes; then
23572 unset ac_cv_header_png_h
23573
23574else
23575 cat >conftest.$ac_ext <<_ACEOF
23576/* confdefs.h. */
23577_ACEOF
23578cat confdefs.h >>conftest.$ac_ext
23579cat >>conftest.$ac_ext <<_ACEOF
23580/* end confdefs.h. */
23581
23582 #include <png.h>
23583 #include <stdio.h>
23584
23585 int main()
23586 {
23587 FILE *f=fopen("conftestval", "w");
23588 if (!f) exit(1);
23589 fprintf(f, "%s",
23590 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23591 exit(0);
23592 }
23593
23594_ACEOF
23595rm -f conftest$ac_exeext
23596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23597 (eval $ac_link) 2>&5
23598 ac_status=$?
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23602 (eval $ac_try) 2>&5
23603 ac_status=$?
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); }; }; then
23606 ac_cv_header_png_h=`cat conftestval`
23607else
23608 echo "$as_me: program exited with status $ac_status" >&5
23609echo "$as_me: failed program was:" >&5
23610sed 's/^/| /' conftest.$ac_ext >&5
23611
23612( exit $ac_status )
23613ac_cv_header_png_h=no
23614fi
ac1cb8d3 23615rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23616fi
23617
23618fi
23619echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23620echo "${ECHO_T}$ac_cv_header_png_h" >&6
23621 if test "${ac_cv_header_png_h+set}" = set; then
23622 echo "$as_me:$LINENO: checking for png.h" >&5
23623echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23624if test "${ac_cv_header_png_h+set}" = set; then
23625 echo $ECHO_N "(cached) $ECHO_C" >&6
23626fi
23627echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23628echo "${ECHO_T}$ac_cv_header_png_h" >&6
23629else
23630 # Is the header compilable?
23631echo "$as_me:$LINENO: checking png.h usability" >&5
23632echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23633cat >conftest.$ac_ext <<_ACEOF
23634/* confdefs.h. */
23635_ACEOF
23636cat confdefs.h >>conftest.$ac_ext
23637cat >>conftest.$ac_ext <<_ACEOF
23638/* end confdefs.h. */
23639$ac_includes_default
23640#include <png.h>
23641_ACEOF
23642rm -f conftest.$ac_objext
23643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23644 (eval $ac_compile) 2>conftest.er1
a848cd7e 23645 ac_status=$?
ac1cb8d3
VS
23646 grep -v '^ *+' conftest.er1 >conftest.err
23647 rm -f conftest.er1
23648 cat conftest.err >&5
a848cd7e
SC
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); } &&
6ebeb4c7 23651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653 (eval $ac_try) 2>&5
23654 ac_status=$?
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; } &&
23657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659 (eval $ac_try) 2>&5
23660 ac_status=$?
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); }; }; then
23663 ac_header_compiler=yes
23664else
23665 echo "$as_me: failed program was:" >&5
23666sed 's/^/| /' conftest.$ac_ext >&5
23667
23668ac_header_compiler=no
23669fi
ac1cb8d3 23670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23671echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23672echo "${ECHO_T}$ac_header_compiler" >&6
23673
23674# Is the header present?
23675echo "$as_me:$LINENO: checking png.h presence" >&5
23676echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23677cat >conftest.$ac_ext <<_ACEOF
23678/* confdefs.h. */
23679_ACEOF
23680cat confdefs.h >>conftest.$ac_ext
23681cat >>conftest.$ac_ext <<_ACEOF
23682/* end confdefs.h. */
23683#include <png.h>
23684_ACEOF
23685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23687 ac_status=$?
23688 grep -v '^ *+' conftest.er1 >conftest.err
23689 rm -f conftest.er1
23690 cat conftest.err >&5
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); } >/dev/null; then
23693 if test -s conftest.err; then
23694 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23696 else
23697 ac_cpp_err=
23698 fi
23699else
23700 ac_cpp_err=yes
23701fi
23702if test -z "$ac_cpp_err"; then
23703 ac_header_preproc=yes
23704else
23705 echo "$as_me: failed program was:" >&5
23706sed 's/^/| /' conftest.$ac_ext >&5
23707
23708 ac_header_preproc=no
23709fi
23710rm -f conftest.err conftest.$ac_ext
23711echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23712echo "${ECHO_T}$ac_header_preproc" >&6
23713
23714# So? What about this header?
ac1cb8d3
VS
23715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23716 yes:no: )
a848cd7e
SC
23717 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23718echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23719 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23720echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23721 ac_header_preproc=yes
a848cd7e 23722 ;;
ac1cb8d3 23723 no:yes:* )
a848cd7e
SC
23724 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23725echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23726 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23727echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23728 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23729echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23730 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23731echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23732 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23733echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23734 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23735echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23736 (
23737 cat <<\_ASBOX
ac1cb8d3
VS
23738## ----------------------------------------- ##
23739## Report this to wx-dev@lists.wxwidgets.org ##
23740## ----------------------------------------- ##
a848cd7e
SC
23741_ASBOX
23742 ) |
23743 sed "s/^/$as_me: WARNING: /" >&2
23744 ;;
23745esac
23746echo "$as_me:$LINENO: checking for png.h" >&5
23747echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23748if test "${ac_cv_header_png_h+set}" = set; then
23749 echo $ECHO_N "(cached) $ECHO_C" >&6
23750else
23751 ac_cv_header_png_h=$ac_header_preproc
23752fi
23753echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23754echo "${ECHO_T}$ac_cv_header_png_h" >&6
23755
23756fi
23757
23758
23759
23760 if test "$ac_cv_header_png_h" = "yes"; then
23761 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23762echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23763if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23764 echo $ECHO_N "(cached) $ECHO_C" >&6
23765else
23766 ac_check_lib_save_LIBS=$LIBS
23767LIBS="-lpng -lz -lm $LIBS"
23768cat >conftest.$ac_ext <<_ACEOF
23769/* confdefs.h. */
23770_ACEOF
23771cat confdefs.h >>conftest.$ac_ext
23772cat >>conftest.$ac_ext <<_ACEOF
23773/* end confdefs.h. */
23774
23775/* Override any gcc2 internal prototype to avoid an error. */
23776#ifdef __cplusplus
23777extern "C"
23778#endif
23779/* We use char because int might match the return type of a gcc2
23780 builtin and then its argument prototype would still apply. */
23781char png_check_sig ();
23782int
23783main ()
23784{
23785png_check_sig ();
23786 ;
23787 return 0;
23788}
23789_ACEOF
23790rm -f conftest.$ac_objext conftest$ac_exeext
23791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23792 (eval $ac_link) 2>conftest.er1
a848cd7e 23793 ac_status=$?
ac1cb8d3
VS
23794 grep -v '^ *+' conftest.er1 >conftest.err
23795 rm -f conftest.er1
23796 cat conftest.err >&5
a848cd7e
SC
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); } &&
6ebeb4c7 23799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23801 (eval $ac_try) 2>&5
23802 ac_status=$?
23803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); }; } &&
23805 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23807 (eval $ac_try) 2>&5
23808 ac_status=$?
23809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23810 (exit $ac_status); }; }; then
23811 ac_cv_lib_png_png_check_sig=yes
23812else
23813 echo "$as_me: failed program was:" >&5
23814sed 's/^/| /' conftest.$ac_ext >&5
23815
23816ac_cv_lib_png_png_check_sig=no
23817fi
ac1cb8d3
VS
23818rm -f conftest.err conftest.$ac_objext \
23819 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23820LIBS=$ac_check_lib_save_LIBS
23821fi
23822echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23823echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23824if test $ac_cv_lib_png_png_check_sig = yes; then
23825 PNG_LINK=" -lpng -lz"
23826fi
23827
23828 fi
23829
23830 if test "x$PNG_LINK" = "x" ; then
23831 if test "$wxUSE_LIBPNG" = "sys" ; then
23832 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23833echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23834 { (exit 1); exit 1; }; }
23835 else
23836 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23837echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23838 wxUSE_LIBPNG=builtin
23839 fi
23840 else
23841 wxUSE_LIBPNG=sys
23842 fi
23843 fi
23844 fi
23845
23846 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23847fi
23848
23849
23850JPEG_LINK=
23851if test "$wxUSE_LIBJPEG" != "no" ; then
23852 cat >>confdefs.h <<\_ACEOF
23853#define wxUSE_LIBJPEG 1
23854_ACEOF
23855
23856
23857 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23858 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23859echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23860 wxUSE_LIBJPEG=sys
23861 fi
23862
23863 if test "$wxUSE_MGL" != 1 ; then
23864 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23865 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23866echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23867 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23868 echo $ECHO_N "(cached) $ECHO_C" >&6
23869else
23870 cat >conftest.$ac_ext <<_ACEOF
23871/* confdefs.h. */
23872_ACEOF
23873cat confdefs.h >>conftest.$ac_ext
23874cat >>conftest.$ac_ext <<_ACEOF
23875/* end confdefs.h. */
23876
23877 #undef HAVE_STDLIB_H
23878 #include <stdio.h>
23879 #include <jpeglib.h>
23880
23881int
23882main ()
23883{
23884
23885
23886 ;
23887 return 0;
23888}
23889_ACEOF
23890rm -f conftest.$ac_objext
23891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23892 (eval $ac_compile) 2>conftest.er1
a848cd7e 23893 ac_status=$?
ac1cb8d3
VS
23894 grep -v '^ *+' conftest.er1 >conftest.err
23895 rm -f conftest.er1
23896 cat conftest.err >&5
a848cd7e
SC
23897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); } &&
6ebeb4c7 23899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23901 (eval $ac_try) 2>&5
23902 ac_status=$?
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); }; } &&
23905 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23907 (eval $ac_try) 2>&5
23908 ac_status=$?
23909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910 (exit $ac_status); }; }; then
23911 ac_cv_header_jpeglib_h=yes
23912else
23913 echo "$as_me: failed program was:" >&5
23914sed 's/^/| /' conftest.$ac_ext >&5
23915
23916ac_cv_header_jpeglib_h=no
23917
23918fi
ac1cb8d3 23919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23920
23921fi
23922
23923 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23924echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23925
23926 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23927 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23928echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23929if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23931else
23932 ac_check_lib_save_LIBS=$LIBS
23933LIBS="-ljpeg $LIBS"
23934cat >conftest.$ac_ext <<_ACEOF
23935/* confdefs.h. */
23936_ACEOF
23937cat confdefs.h >>conftest.$ac_ext
23938cat >>conftest.$ac_ext <<_ACEOF
23939/* end confdefs.h. */
23940
23941/* Override any gcc2 internal prototype to avoid an error. */
23942#ifdef __cplusplus
23943extern "C"
23944#endif
23945/* We use char because int might match the return type of a gcc2
23946 builtin and then its argument prototype would still apply. */
23947char jpeg_read_header ();
23948int
23949main ()
23950{
23951jpeg_read_header ();
23952 ;
23953 return 0;
23954}
23955_ACEOF
23956rm -f conftest.$ac_objext conftest$ac_exeext
23957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23958 (eval $ac_link) 2>conftest.er1
a848cd7e 23959 ac_status=$?
ac1cb8d3
VS
23960 grep -v '^ *+' conftest.er1 >conftest.err
23961 rm -f conftest.er1
23962 cat conftest.err >&5
a848cd7e
SC
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); } &&
6ebeb4c7 23965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23967 (eval $ac_try) 2>&5
23968 ac_status=$?
23969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970 (exit $ac_status); }; } &&
23971 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23973 (eval $ac_try) 2>&5
23974 ac_status=$?
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); }; }; then
23977 ac_cv_lib_jpeg_jpeg_read_header=yes
23978else
23979 echo "$as_me: failed program was:" >&5
23980sed 's/^/| /' conftest.$ac_ext >&5
23981
23982ac_cv_lib_jpeg_jpeg_read_header=no
23983fi
ac1cb8d3
VS
23984rm -f conftest.err conftest.$ac_objext \
23985 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23986LIBS=$ac_check_lib_save_LIBS
23987fi
23988echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23989echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23990if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23991 JPEG_LINK=" -ljpeg"
23992fi
23993
23994 fi
23995
23996 if test "x$JPEG_LINK" = "x" ; then
23997 if test "$wxUSE_LIBJPEG" = "sys" ; then
23998 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23999echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24000 { (exit 1); exit 1; }; }
24001 else
24002 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24003echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24004 wxUSE_LIBJPEG=builtin
24005 fi
24006 else
24007 wxUSE_LIBJPEG=sys
24008 fi
24009 fi
24010 fi
24011fi
24012
24013
24014TIFF_LINK=
24015TIFF_PREREQ_LINKS=-lm
24016if test "$wxUSE_LIBTIFF" != "no" ; then
24017 cat >>confdefs.h <<\_ACEOF
24018#define wxUSE_LIBTIFF 1
24019_ACEOF
24020
24021
24022 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24023 if test "$wxUSE_LIBJPEG" = "sys"; then
24024 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24025 fi
24026 if test "$wxUSE_ZLIB" = "sys"; then
24027 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24028 fi
24029 if test "${ac_cv_header_tiffio_h+set}" = set; then
24030 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24031echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24032if test "${ac_cv_header_tiffio_h+set}" = set; then
24033 echo $ECHO_N "(cached) $ECHO_C" >&6
24034fi
24035echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24036echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24037else
24038 # Is the header compilable?
24039echo "$as_me:$LINENO: checking tiffio.h usability" >&5
24040echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
24041cat >conftest.$ac_ext <<_ACEOF
24042/* confdefs.h. */
24043_ACEOF
24044cat confdefs.h >>conftest.$ac_ext
24045cat >>conftest.$ac_ext <<_ACEOF
24046/* end confdefs.h. */
24047$ac_includes_default
24048#include <tiffio.h>
24049_ACEOF
24050rm -f conftest.$ac_objext
24051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24052 (eval $ac_compile) 2>conftest.er1
a848cd7e 24053 ac_status=$?
ac1cb8d3
VS
24054 grep -v '^ *+' conftest.er1 >conftest.err
24055 rm -f conftest.er1
24056 cat conftest.err >&5
a848cd7e
SC
24057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); } &&
6ebeb4c7 24059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24061 (eval $ac_try) 2>&5
24062 ac_status=$?
24063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); }; } &&
24065 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24067 (eval $ac_try) 2>&5
24068 ac_status=$?
24069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); }; }; then
24071 ac_header_compiler=yes
24072else
24073 echo "$as_me: failed program was:" >&5
24074sed 's/^/| /' conftest.$ac_ext >&5
24075
24076ac_header_compiler=no
24077fi
ac1cb8d3 24078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24079echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24080echo "${ECHO_T}$ac_header_compiler" >&6
24081
24082# Is the header present?
24083echo "$as_me:$LINENO: checking tiffio.h presence" >&5
24084echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
24085cat >conftest.$ac_ext <<_ACEOF
24086/* confdefs.h. */
24087_ACEOF
24088cat confdefs.h >>conftest.$ac_ext
24089cat >>conftest.$ac_ext <<_ACEOF
24090/* end confdefs.h. */
24091#include <tiffio.h>
24092_ACEOF
24093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24095 ac_status=$?
24096 grep -v '^ *+' conftest.er1 >conftest.err
24097 rm -f conftest.er1
24098 cat conftest.err >&5
24099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100 (exit $ac_status); } >/dev/null; then
24101 if test -s conftest.err; then
24102 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24104 else
24105 ac_cpp_err=
24106 fi
24107else
24108 ac_cpp_err=yes
24109fi
24110if test -z "$ac_cpp_err"; then
24111 ac_header_preproc=yes
24112else
24113 echo "$as_me: failed program was:" >&5
24114sed 's/^/| /' conftest.$ac_ext >&5
24115
24116 ac_header_preproc=no
24117fi
24118rm -f conftest.err conftest.$ac_ext
24119echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24120echo "${ECHO_T}$ac_header_preproc" >&6
24121
24122# So? What about this header?
ac1cb8d3
VS
24123case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24124 yes:no: )
a848cd7e
SC
24125 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24126echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24127 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
24128echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
24129 ac_header_preproc=yes
a848cd7e 24130 ;;
ac1cb8d3 24131 no:yes:* )
a848cd7e
SC
24132 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
24133echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24134 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
24135echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
24136 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
24137echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
24138 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
24139echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24140 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
24141echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24142 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
24143echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24144 (
24145 cat <<\_ASBOX
ac1cb8d3
VS
24146## ----------------------------------------- ##
24147## Report this to wx-dev@lists.wxwidgets.org ##
24148## ----------------------------------------- ##
a848cd7e
SC
24149_ASBOX
24150 ) |
24151 sed "s/^/$as_me: WARNING: /" >&2
24152 ;;
24153esac
24154echo "$as_me:$LINENO: checking for tiffio.h" >&5
24155echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24156if test "${ac_cv_header_tiffio_h+set}" = set; then
24157 echo $ECHO_N "(cached) $ECHO_C" >&6
24158else
24159 ac_cv_header_tiffio_h=$ac_header_preproc
24160fi
24161echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24162echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24163
24164fi
24165if test $ac_cv_header_tiffio_h = yes; then
24166
24167 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
24168echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
24169if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
24170 echo $ECHO_N "(cached) $ECHO_C" >&6
24171else
24172 ac_check_lib_save_LIBS=$LIBS
24173LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
24174cat >conftest.$ac_ext <<_ACEOF
24175/* confdefs.h. */
24176_ACEOF
24177cat confdefs.h >>conftest.$ac_ext
24178cat >>conftest.$ac_ext <<_ACEOF
24179/* end confdefs.h. */
24180
24181/* Override any gcc2 internal prototype to avoid an error. */
24182#ifdef __cplusplus
24183extern "C"
24184#endif
24185/* We use char because int might match the return type of a gcc2
24186 builtin and then its argument prototype would still apply. */
24187char TIFFError ();
24188int
24189main ()
24190{
24191TIFFError ();
24192 ;
24193 return 0;
24194}
24195_ACEOF
24196rm -f conftest.$ac_objext conftest$ac_exeext
24197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24198 (eval $ac_link) 2>conftest.er1
a848cd7e 24199 ac_status=$?
ac1cb8d3
VS
24200 grep -v '^ *+' conftest.er1 >conftest.err
24201 rm -f conftest.er1
24202 cat conftest.err >&5
a848cd7e
SC
24203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204 (exit $ac_status); } &&
6ebeb4c7 24205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24207 (eval $ac_try) 2>&5
24208 ac_status=$?
24209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210 (exit $ac_status); }; } &&
24211 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24213 (eval $ac_try) 2>&5
24214 ac_status=$?
24215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216 (exit $ac_status); }; }; then
24217 ac_cv_lib_tiff_TIFFError=yes
24218else
24219 echo "$as_me: failed program was:" >&5
24220sed 's/^/| /' conftest.$ac_ext >&5
24221
24222ac_cv_lib_tiff_TIFFError=no
24223fi
ac1cb8d3
VS
24224rm -f conftest.err conftest.$ac_objext \
24225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24226LIBS=$ac_check_lib_save_LIBS
24227fi
24228echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
24229echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
24230if test $ac_cv_lib_tiff_TIFFError = yes; then
24231 TIFF_LINK=" -ltiff"
24232fi
24233
24234
24235
24236fi
24237
24238
24239
24240 if test "x$TIFF_LINK" = "x" ; then
24241 if test "$wxUSE_LIBTIFF" = "sys" ; then
24242 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
24243echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
24244 { (exit 1); exit 1; }; }
24245 else
24246 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
24247echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
24248 wxUSE_LIBTIFF=builtin
24249 fi
24250 else
24251 wxUSE_LIBTIFF=sys
24252 fi
24253 fi
24254fi
24255
24256
47a7e797
MW
24257if test "$wxUSE_WCHAR_T" != "yes"; then
24258 if test "$wxUSE_EXPAT" != "no"; then
24259 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
24260echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
24261 wxUSE_EXPAT=no
24262 fi
24263 if test "$wxUSE_XML" != "no"; then
24264 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
24265echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
24266 wxUSE_XML=no
24267 fi
24268fi
24269
a848cd7e
SC
24270if test "$wxUSE_EXPAT" != "no"; then
24271 wxUSE_XML=yes
24272 cat >>confdefs.h <<\_ACEOF
24273#define wxUSE_EXPAT 1
24274_ACEOF
24275
24276 cat >>confdefs.h <<\_ACEOF
24277#define wxUSE_XML 1
24278_ACEOF
24279
24280
24281 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
24282 if test "${ac_cv_header_expat_h+set}" = set; then
24283 echo "$as_me:$LINENO: checking for expat.h" >&5
24284echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24285if test "${ac_cv_header_expat_h+set}" = set; then
24286 echo $ECHO_N "(cached) $ECHO_C" >&6
24287fi
24288echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24289echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24290else
24291 # Is the header compilable?
24292echo "$as_me:$LINENO: checking expat.h usability" >&5
24293echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
24294cat >conftest.$ac_ext <<_ACEOF
24295/* confdefs.h. */
24296_ACEOF
24297cat confdefs.h >>conftest.$ac_ext
24298cat >>conftest.$ac_ext <<_ACEOF
24299/* end confdefs.h. */
24300$ac_includes_default
24301#include <expat.h>
24302_ACEOF
24303rm -f conftest.$ac_objext
24304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24305 (eval $ac_compile) 2>conftest.er1
a848cd7e 24306 ac_status=$?
ac1cb8d3
VS
24307 grep -v '^ *+' conftest.er1 >conftest.err
24308 rm -f conftest.er1
24309 cat conftest.err >&5
a848cd7e
SC
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); } &&
6ebeb4c7 24312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24314 (eval $ac_try) 2>&5
24315 ac_status=$?
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); }; } &&
24318 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24320 (eval $ac_try) 2>&5
24321 ac_status=$?
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); }; }; then
24324 ac_header_compiler=yes
24325else
24326 echo "$as_me: failed program was:" >&5
24327sed 's/^/| /' conftest.$ac_ext >&5
24328
24329ac_header_compiler=no
24330fi
ac1cb8d3 24331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24332echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24333echo "${ECHO_T}$ac_header_compiler" >&6
24334
24335# Is the header present?
24336echo "$as_me:$LINENO: checking expat.h presence" >&5
24337echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
24338cat >conftest.$ac_ext <<_ACEOF
24339/* confdefs.h. */
24340_ACEOF
24341cat confdefs.h >>conftest.$ac_ext
24342cat >>conftest.$ac_ext <<_ACEOF
24343/* end confdefs.h. */
24344#include <expat.h>
24345_ACEOF
24346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24348 ac_status=$?
24349 grep -v '^ *+' conftest.er1 >conftest.err
24350 rm -f conftest.er1
24351 cat conftest.err >&5
24352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353 (exit $ac_status); } >/dev/null; then
24354 if test -s conftest.err; then
24355 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24357 else
24358 ac_cpp_err=
24359 fi
24360else
24361 ac_cpp_err=yes
24362fi
24363if test -z "$ac_cpp_err"; then
24364 ac_header_preproc=yes
24365else
24366 echo "$as_me: failed program was:" >&5
24367sed 's/^/| /' conftest.$ac_ext >&5
24368
24369 ac_header_preproc=no
24370fi
24371rm -f conftest.err conftest.$ac_ext
24372echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24373echo "${ECHO_T}$ac_header_preproc" >&6
24374
24375# So? What about this header?
ac1cb8d3
VS
24376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24377 yes:no: )
a848cd7e
SC
24378 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
24379echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24380 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
24381echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
24382 ac_header_preproc=yes
a848cd7e 24383 ;;
ac1cb8d3 24384 no:yes:* )
a848cd7e
SC
24385 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
24386echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24387 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
24388echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
24389 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
24390echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
24391 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
24392echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24393 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
24394echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24395 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
24396echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24397 (
24398 cat <<\_ASBOX
ac1cb8d3
VS
24399## ----------------------------------------- ##
24400## Report this to wx-dev@lists.wxwidgets.org ##
24401## ----------------------------------------- ##
a848cd7e
SC
24402_ASBOX
24403 ) |
24404 sed "s/^/$as_me: WARNING: /" >&2
24405 ;;
24406esac
24407echo "$as_me:$LINENO: checking for expat.h" >&5
24408echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24409if test "${ac_cv_header_expat_h+set}" = set; then
24410 echo $ECHO_N "(cached) $ECHO_C" >&6
24411else
24412 ac_cv_header_expat_h=$ac_header_preproc
24413fi
24414echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24415echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24416
24417fi
24418if test $ac_cv_header_expat_h = yes; then
24419 found_expat_h=1
24420fi
24421
24422
24423 if test "x$found_expat_h" = "x1"; then
24424 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
24425echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
24426if test "${wx_cv_expat_is_not_broken+set}" = set; then
24427 echo $ECHO_N "(cached) $ECHO_C" >&6
24428else
24429
24430
24431
24432 ac_ext=cc
24433ac_cpp='$CXXCPP $CPPFLAGS'
24434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24437
24438 cat >conftest.$ac_ext <<_ACEOF
24439/* confdefs.h. */
24440_ACEOF
24441cat confdefs.h >>conftest.$ac_ext
24442cat >>conftest.$ac_ext <<_ACEOF
24443/* end confdefs.h. */
24444#include <expat.h>
24445int
24446main ()
24447{
24448
24449 ;
24450 return 0;
24451}
24452_ACEOF
24453rm -f conftest.$ac_objext
24454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24455 (eval $ac_compile) 2>conftest.er1
a848cd7e 24456 ac_status=$?
ac1cb8d3
VS
24457 grep -v '^ *+' conftest.er1 >conftest.err
24458 rm -f conftest.er1
24459 cat conftest.err >&5
a848cd7e
SC
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); } &&
6ebeb4c7 24462 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24464 (eval $ac_try) 2>&5
24465 ac_status=$?
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); }; } &&
24468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24470 (eval $ac_try) 2>&5
24471 ac_status=$?
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); }; }; then
24474 wx_cv_expat_is_not_broken=yes
24475else
24476 echo "$as_me: failed program was:" >&5
24477sed 's/^/| /' conftest.$ac_ext >&5
24478
24479wx_cv_expat_is_not_broken=no
24480
24481fi
ac1cb8d3 24482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24483 ac_ext=c
24484ac_cpp='$CPP $CPPFLAGS'
24485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24487ac_compiler_gnu=$ac_cv_c_compiler_gnu
24488
24489
24490
24491fi
24492echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
24493echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
24494 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
24495 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
24496echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
24497if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
24498 echo $ECHO_N "(cached) $ECHO_C" >&6
24499else
24500 ac_check_lib_save_LIBS=$LIBS
24501LIBS="-lexpat $LIBS"
24502cat >conftest.$ac_ext <<_ACEOF
24503/* confdefs.h. */
24504_ACEOF
24505cat confdefs.h >>conftest.$ac_ext
24506cat >>conftest.$ac_ext <<_ACEOF
24507/* end confdefs.h. */
24508
24509/* Override any gcc2 internal prototype to avoid an error. */
24510#ifdef __cplusplus
24511extern "C"
24512#endif
24513/* We use char because int might match the return type of a gcc2
24514 builtin and then its argument prototype would still apply. */
24515char XML_ParserCreate ();
24516int
24517main ()
24518{
24519XML_ParserCreate ();
24520 ;
24521 return 0;
24522}
24523_ACEOF
24524rm -f conftest.$ac_objext conftest$ac_exeext
24525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24526 (eval $ac_link) 2>conftest.er1
a848cd7e 24527 ac_status=$?
ac1cb8d3
VS
24528 grep -v '^ *+' conftest.er1 >conftest.err
24529 rm -f conftest.er1
24530 cat conftest.err >&5
a848cd7e
SC
24531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532 (exit $ac_status); } &&
6ebeb4c7 24533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24535 (eval $ac_try) 2>&5
24536 ac_status=$?
24537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); }; } &&
24539 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541 (eval $ac_try) 2>&5
24542 ac_status=$?
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); }; }; then
24545 ac_cv_lib_expat_XML_ParserCreate=yes
24546else
24547 echo "$as_me: failed program was:" >&5
24548sed 's/^/| /' conftest.$ac_ext >&5
24549
24550ac_cv_lib_expat_XML_ParserCreate=no
24551fi
ac1cb8d3
VS
24552rm -f conftest.err conftest.$ac_objext \
24553 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24554LIBS=$ac_check_lib_save_LIBS
24555fi
24556echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
24557echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
24558if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
24559 EXPAT_LINK=" -lexpat"
24560fi
24561
24562 fi
24563 fi
24564 if test "x$EXPAT_LINK" = "x" ; then
24565 if test "$wxUSE_EXPAT" = "sys" ; then
24566 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
24567echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
24568 { (exit 1); exit 1; }; }
24569 else
24570 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
24571echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
24572 wxUSE_EXPAT=builtin
24573 fi
24574 else
24575 wxUSE_EXPAT=sys
24576 fi
24577 fi
24578 if test "$wxUSE_EXPAT" = "builtin" ; then
24579
24580
24581subdirs="$subdirs src/expat"
24582
24583 fi
24584fi
24585
24586
24587
24588if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24589 if test "${ac_cv_header_mspack_h+set}" = set; then
24590 echo "$as_me:$LINENO: checking for mspack.h" >&5
24591echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24592if test "${ac_cv_header_mspack_h+set}" = set; then
24593 echo $ECHO_N "(cached) $ECHO_C" >&6
24594fi
24595echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24596echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24597else
24598 # Is the header compilable?
24599echo "$as_me:$LINENO: checking mspack.h usability" >&5
24600echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24601cat >conftest.$ac_ext <<_ACEOF
24602/* confdefs.h. */
24603_ACEOF
24604cat confdefs.h >>conftest.$ac_ext
24605cat >>conftest.$ac_ext <<_ACEOF
24606/* end confdefs.h. */
24607$ac_includes_default
24608#include <mspack.h>
24609_ACEOF
24610rm -f conftest.$ac_objext
24611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24612 (eval $ac_compile) 2>conftest.er1
a848cd7e 24613 ac_status=$?
ac1cb8d3
VS
24614 grep -v '^ *+' conftest.er1 >conftest.err
24615 rm -f conftest.er1
24616 cat conftest.err >&5
a848cd7e
SC
24617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); } &&
6ebeb4c7 24619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24621 (eval $ac_try) 2>&5
24622 ac_status=$?
24623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); }; } &&
24625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24627 (eval $ac_try) 2>&5
24628 ac_status=$?
24629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630 (exit $ac_status); }; }; then
24631 ac_header_compiler=yes
24632else
24633 echo "$as_me: failed program was:" >&5
24634sed 's/^/| /' conftest.$ac_ext >&5
24635
24636ac_header_compiler=no
24637fi
ac1cb8d3 24638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24639echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24640echo "${ECHO_T}$ac_header_compiler" >&6
24641
24642# Is the header present?
24643echo "$as_me:$LINENO: checking mspack.h presence" >&5
24644echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24645cat >conftest.$ac_ext <<_ACEOF
24646/* confdefs.h. */
24647_ACEOF
24648cat confdefs.h >>conftest.$ac_ext
24649cat >>conftest.$ac_ext <<_ACEOF
24650/* end confdefs.h. */
24651#include <mspack.h>
24652_ACEOF
24653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24655 ac_status=$?
24656 grep -v '^ *+' conftest.er1 >conftest.err
24657 rm -f conftest.er1
24658 cat conftest.err >&5
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); } >/dev/null; then
24661 if test -s conftest.err; then
24662 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24664 else
24665 ac_cpp_err=
24666 fi
24667else
24668 ac_cpp_err=yes
24669fi
24670if test -z "$ac_cpp_err"; then
24671 ac_header_preproc=yes
24672else
24673 echo "$as_me: failed program was:" >&5
24674sed 's/^/| /' conftest.$ac_ext >&5
24675
24676 ac_header_preproc=no
24677fi
24678rm -f conftest.err conftest.$ac_ext
24679echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24680echo "${ECHO_T}$ac_header_preproc" >&6
24681
24682# So? What about this header?
ac1cb8d3
VS
24683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24684 yes:no: )
a848cd7e
SC
24685 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24686echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24687 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24688echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24689 ac_header_preproc=yes
a848cd7e 24690 ;;
ac1cb8d3 24691 no:yes:* )
a848cd7e
SC
24692 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24693echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24694 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24695echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24696 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24697echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24698 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24699echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24700 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24701echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24702 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24703echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24704 (
24705 cat <<\_ASBOX
ac1cb8d3
VS
24706## ----------------------------------------- ##
24707## Report this to wx-dev@lists.wxwidgets.org ##
24708## ----------------------------------------- ##
a848cd7e
SC
24709_ASBOX
24710 ) |
24711 sed "s/^/$as_me: WARNING: /" >&2
24712 ;;
24713esac
24714echo "$as_me:$LINENO: checking for mspack.h" >&5
24715echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24716if test "${ac_cv_header_mspack_h+set}" = set; then
24717 echo $ECHO_N "(cached) $ECHO_C" >&6
24718else
24719 ac_cv_header_mspack_h=$ac_header_preproc
24720fi
24721echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24722echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24723
24724fi
24725if test $ac_cv_header_mspack_h = yes; then
24726 found_mspack_h=1
24727fi
24728
24729
24730 if test "x$found_mspack_h" = "x1"; then
24731 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24732echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24733if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24734 echo $ECHO_N "(cached) $ECHO_C" >&6
24735else
24736 ac_check_lib_save_LIBS=$LIBS
24737LIBS="-lmspack $LIBS"
24738cat >conftest.$ac_ext <<_ACEOF
24739/* confdefs.h. */
24740_ACEOF
24741cat confdefs.h >>conftest.$ac_ext
24742cat >>conftest.$ac_ext <<_ACEOF
24743/* end confdefs.h. */
24744
24745/* Override any gcc2 internal prototype to avoid an error. */
24746#ifdef __cplusplus
24747extern "C"
24748#endif
24749/* We use char because int might match the return type of a gcc2
24750 builtin and then its argument prototype would still apply. */
24751char mspack_create_chm_decompressor ();
24752int
24753main ()
24754{
24755mspack_create_chm_decompressor ();
24756 ;
24757 return 0;
24758}
24759_ACEOF
24760rm -f conftest.$ac_objext conftest$ac_exeext
24761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24762 (eval $ac_link) 2>conftest.er1
a848cd7e 24763 ac_status=$?
ac1cb8d3
VS
24764 grep -v '^ *+' conftest.er1 >conftest.err
24765 rm -f conftest.er1
24766 cat conftest.err >&5
a848cd7e
SC
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); } &&
6ebeb4c7 24769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24771 (eval $ac_try) 2>&5
24772 ac_status=$?
24773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774 (exit $ac_status); }; } &&
24775 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24777 (eval $ac_try) 2>&5
24778 ac_status=$?
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); }; }; then
24781 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24782else
24783 echo "$as_me: failed program was:" >&5
24784sed 's/^/| /' conftest.$ac_ext >&5
24785
24786ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24787fi
ac1cb8d3
VS
24788rm -f conftest.err conftest.$ac_objext \
24789 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24790LIBS=$ac_check_lib_save_LIBS
24791fi
24792echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24793echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24794if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24795 MSPACK_LINK=" -lmspack"
24796fi
24797
24798 fi
24799 if test "x$MSPACK_LINK" = "x" ; then
24800 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24801 fi
24802fi
24803
24804if test "$wxUSE_LIBMSPACK" != "no"; then
24805 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24806#define wxUSE_LIBMSPACK 1
24807_ACEOF
24808
a848cd7e
SC
24809fi
24810
24811
24812
24813AFMINSTALL=
24814WIN32INSTALL=
24815
24816TOOLKIT=
24817TOOLKIT_INCLUDE=
24818WIDGET_SET=
24819
24820if test "$USE_WIN32" = 1 ; then
24821
24822for ac_header in w32api.h
24823do
24824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24825if eval "test \"\${$as_ac_Header+set}\" = set"; then
24826 echo "$as_me:$LINENO: checking for $ac_header" >&5
24827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24828if eval "test \"\${$as_ac_Header+set}\" = set"; then
24829 echo $ECHO_N "(cached) $ECHO_C" >&6
24830fi
24831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24833else
24834 # Is the header compilable?
24835echo "$as_me:$LINENO: checking $ac_header usability" >&5
24836echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24837cat >conftest.$ac_ext <<_ACEOF
24838/* confdefs.h. */
24839_ACEOF
24840cat confdefs.h >>conftest.$ac_ext
24841cat >>conftest.$ac_ext <<_ACEOF
24842/* end confdefs.h. */
24843$ac_includes_default
24844#include <$ac_header>
24845_ACEOF
24846rm -f conftest.$ac_objext
24847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24848 (eval $ac_compile) 2>conftest.er1
a848cd7e 24849 ac_status=$?
ac1cb8d3
VS
24850 grep -v '^ *+' conftest.er1 >conftest.err
24851 rm -f conftest.er1
24852 cat conftest.err >&5
a848cd7e
SC
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } &&
6ebeb4c7 24855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857 (eval $ac_try) 2>&5
24858 ac_status=$?
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); }; } &&
24861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24863 (eval $ac_try) 2>&5
24864 ac_status=$?
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); }; }; then
24867 ac_header_compiler=yes
24868else
24869 echo "$as_me: failed program was:" >&5
24870sed 's/^/| /' conftest.$ac_ext >&5
24871
24872ac_header_compiler=no
24873fi
ac1cb8d3 24874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24876echo "${ECHO_T}$ac_header_compiler" >&6
24877
24878# Is the header present?
24879echo "$as_me:$LINENO: checking $ac_header presence" >&5
24880echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24881cat >conftest.$ac_ext <<_ACEOF
24882/* confdefs.h. */
24883_ACEOF
24884cat confdefs.h >>conftest.$ac_ext
24885cat >>conftest.$ac_ext <<_ACEOF
24886/* end confdefs.h. */
24887#include <$ac_header>
24888_ACEOF
24889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24891 ac_status=$?
24892 grep -v '^ *+' conftest.er1 >conftest.err
24893 rm -f conftest.er1
24894 cat conftest.err >&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); } >/dev/null; then
24897 if test -s conftest.err; then
24898 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24900 else
24901 ac_cpp_err=
24902 fi
24903else
24904 ac_cpp_err=yes
24905fi
24906if test -z "$ac_cpp_err"; then
24907 ac_header_preproc=yes
24908else
24909 echo "$as_me: failed program was:" >&5
24910sed 's/^/| /' conftest.$ac_ext >&5
24911
24912 ac_header_preproc=no
24913fi
24914rm -f conftest.err conftest.$ac_ext
24915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24916echo "${ECHO_T}$ac_header_preproc" >&6
24917
24918# So? What about this header?
ac1cb8d3
VS
24919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24920 yes:no: )
a848cd7e
SC
24921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24922echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24924echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24925 ac_header_preproc=yes
a848cd7e 24926 ;;
ac1cb8d3 24927 no:yes:* )
a848cd7e
SC
24928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24931echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24933echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24935echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24937echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24939echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24940 (
24941 cat <<\_ASBOX
ac1cb8d3
VS
24942## ----------------------------------------- ##
24943## Report this to wx-dev@lists.wxwidgets.org ##
24944## ----------------------------------------- ##
a848cd7e
SC
24945_ASBOX
24946 ) |
24947 sed "s/^/$as_me: WARNING: /" >&2
24948 ;;
24949esac
24950echo "$as_me:$LINENO: checking for $ac_header" >&5
24951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24952if eval "test \"\${$as_ac_Header+set}\" = set"; then
24953 echo $ECHO_N "(cached) $ECHO_C" >&6
24954else
ac1cb8d3 24955 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24956fi
24957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24959
24960fi
24961if test `eval echo '${'$as_ac_Header'}'` = yes; then
24962 cat >>confdefs.h <<_ACEOF
24963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24964_ACEOF
24965
24966fi
24967
24968done
24969
24970 if test "${ac_cv_header_windows_h+set}" = set; then
24971 echo "$as_me:$LINENO: checking for windows.h" >&5
24972echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24973if test "${ac_cv_header_windows_h+set}" = set; then
24974 echo $ECHO_N "(cached) $ECHO_C" >&6
24975fi
24976echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24977echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24978else
24979 # Is the header compilable?
24980echo "$as_me:$LINENO: checking windows.h usability" >&5
24981echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24982cat >conftest.$ac_ext <<_ACEOF
24983/* confdefs.h. */
24984_ACEOF
24985cat confdefs.h >>conftest.$ac_ext
24986cat >>conftest.$ac_ext <<_ACEOF
24987/* end confdefs.h. */
24988$ac_includes_default
24989#include <windows.h>
24990_ACEOF
24991rm -f conftest.$ac_objext
24992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24993 (eval $ac_compile) 2>conftest.er1
a848cd7e 24994 ac_status=$?
ac1cb8d3
VS
24995 grep -v '^ *+' conftest.er1 >conftest.err
24996 rm -f conftest.er1
24997 cat conftest.err >&5
a848cd7e
SC
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); } &&
6ebeb4c7 25000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25002 (eval $ac_try) 2>&5
25003 ac_status=$?
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); }; } &&
25006 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25008 (eval $ac_try) 2>&5
25009 ac_status=$?
25010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011 (exit $ac_status); }; }; then
25012 ac_header_compiler=yes
25013else
25014 echo "$as_me: failed program was:" >&5
25015sed 's/^/| /' conftest.$ac_ext >&5
25016
25017ac_header_compiler=no
25018fi
ac1cb8d3 25019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25020echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25021echo "${ECHO_T}$ac_header_compiler" >&6
25022
25023# Is the header present?
25024echo "$as_me:$LINENO: checking windows.h presence" >&5
25025echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25026cat >conftest.$ac_ext <<_ACEOF
25027/* confdefs.h. */
25028_ACEOF
25029cat confdefs.h >>conftest.$ac_ext
25030cat >>conftest.$ac_ext <<_ACEOF
25031/* end confdefs.h. */
25032#include <windows.h>
25033_ACEOF
25034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25036 ac_status=$?
25037 grep -v '^ *+' conftest.er1 >conftest.err
25038 rm -f conftest.er1
25039 cat conftest.err >&5
25040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041 (exit $ac_status); } >/dev/null; then
25042 if test -s conftest.err; then
25043 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25045 else
25046 ac_cpp_err=
25047 fi
25048else
25049 ac_cpp_err=yes
25050fi
25051if test -z "$ac_cpp_err"; then
25052 ac_header_preproc=yes
25053else
25054 echo "$as_me: failed program was:" >&5
25055sed 's/^/| /' conftest.$ac_ext >&5
25056
25057 ac_header_preproc=no
25058fi
25059rm -f conftest.err conftest.$ac_ext
25060echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25061echo "${ECHO_T}$ac_header_preproc" >&6
25062
25063# So? What about this header?
ac1cb8d3
VS
25064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25065 yes:no: )
a848cd7e
SC
25066 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
25067echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25068 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
25069echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
25070 ac_header_preproc=yes
a848cd7e 25071 ;;
ac1cb8d3 25072 no:yes:* )
a848cd7e
SC
25073 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
25074echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25075 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
25076echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
25077 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
25078echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
25079 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
25080echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25081 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
25082echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25083 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
25084echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25085 (
25086 cat <<\_ASBOX
ac1cb8d3
VS
25087## ----------------------------------------- ##
25088## Report this to wx-dev@lists.wxwidgets.org ##
25089## ----------------------------------------- ##
a848cd7e
SC
25090_ASBOX
25091 ) |
25092 sed "s/^/$as_me: WARNING: /" >&2
25093 ;;
25094esac
25095echo "$as_me:$LINENO: checking for windows.h" >&5
25096echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25097if test "${ac_cv_header_windows_h+set}" = set; then
25098 echo $ECHO_N "(cached) $ECHO_C" >&6
25099else
25100 ac_cv_header_windows_h=$ac_header_preproc
25101fi
25102echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25103echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25104
25105fi
25106if test $ac_cv_header_windows_h = yes; then
25107 :
25108else
25109
25110 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
25111echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
25112 { (exit 1); exit 1; }; }
25113
25114fi
25115
25116
25117
25118 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
25119
25120 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
25121 LIBS="$LIBS -loleacc"
25122 fi
25123
25124 case "${host}" in
25125 *-*-cygwin* )
25126 LIBS="$LIBS -lkernel32 -luser32"
25127 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
25128 esac
25129
25130 if test "$wxUSE_ODBC" = "sys" ; then
25131 wxUSE_ODBC = "yes"
25132 fi
25133 if test "$wxUSE_ODBC" = "yes" ; then
25134 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
25135 cat >>confdefs.h <<\_ACEOF
25136#define wxUSE_ODBC 1
25137_ACEOF
25138
25139 fi
25140
25141 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
25142 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
25143
25144 WIN32INSTALL=win32install
25145fi
25146
25147if test "$wxUSE_GUI" = "yes"; then
25148 USE_GUI=1
25149
25150 GUI_TK_LIBRARY=
25151
25152 WXGTK12=
25153 WXGTK127=
25154 WXGTK20=
25155 WXGPE=
25156
207bc66c
RN
25157 if test "$wxUSE_COCOA" = 1 ; then
25158 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
25159 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
25160echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
25161 wxUSE_PRINTING_ARCHITECTURE=no
25162 fi
25163 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
25164 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
25165echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
25166 wxUSE_DRAG_AND_DROP=no
25167 fi
25168 if test "$wxUSE_DRAGIMAGE" = "yes"; then
25169 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
25170echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
25171 wxUSE_DRAGIMAGE=no
25172 fi
25173 fi
25174
a848cd7e
SC
25175 if test "$wxUSE_MSW" = 1 ; then
25176 TOOLKIT=MSW
25177 GUIDIST=MSW_DIST
25178
ceec2216 25179 case "${host}" in
a848cd7e
SC
25180 *-*-mingw32* )
25181 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
25182 esac
25183 fi
25184
25185 if test "$wxUSE_GTK" = 1; then
25186 echo "$as_me:$LINENO: checking for GTK+ version" >&5
25187echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
25188
25189 gtk_version_cached=1
25190 if test "${wx_cv_lib_gtk+set}" = set; then
25191 echo $ECHO_N "(cached) $ECHO_C" >&6
25192else
25193
25194 gtk_version_cached=0
25195 echo "$as_me:$LINENO: result: " >&5
25196echo "${ECHO_T}" >&6
25197
25198 GTK_MODULES=
25199 if test "$wxUSE_THREADS" = "yes"; then
25200 GTK_MODULES=gthread
25201 fi
25202
f597b41c 25203 wx_cv_lib_gtk=
5001df0d
MW
25204 if test "x$wxGTK_VERSION" != "x1"
25205 then
25206 case "${host}" in
25207 *-*-solaris2* )
25208 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
25209 enable_gtktest=no
25210 fi
25211 esac
25212
a848cd7e
SC
25213 # Check whether --enable-gtktest or --disable-gtktest was given.
25214if test "${enable_gtktest+set}" = set; then
25215 enableval="$enable_gtktest"
25216
25217else
25218 enable_gtktest=yes
25219fi;
25220
25221 pkg_config_args=gtk+-2.0
25222 for module in . $GTK_MODULES
25223 do
25224 case "$module" in
25225 gthread)
25226 pkg_config_args="$pkg_config_args gthread-2.0"
25227 ;;
25228 esac
25229 done
25230
25231 no_gtk=""
25232
25233 # Extract the first word of "pkg-config", so it can be a program name with args.
25234set dummy pkg-config; ac_word=$2
25235echo "$as_me:$LINENO: checking for $ac_word" >&5
25236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25237if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25238 echo $ECHO_N "(cached) $ECHO_C" >&6
25239else
25240 case $PKG_CONFIG in
25241 [\\/]* | ?:[\\/]*)
25242 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25243 ;;
25244 *)
25245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25246for as_dir in $PATH
25247do
25248 IFS=$as_save_IFS
25249 test -z "$as_dir" && as_dir=.
25250 for ac_exec_ext in '' $ac_executable_extensions; do
25251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25252 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25254 break 2
25255 fi
25256done
25257done
25258
25259 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25260 ;;
25261esac
25262fi
25263PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25264
25265if test -n "$PKG_CONFIG"; then
25266 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25267echo "${ECHO_T}$PKG_CONFIG" >&6
25268else
25269 echo "$as_me:$LINENO: result: no" >&5
25270echo "${ECHO_T}no" >&6
25271fi
25272
25273
25274 if test x$PKG_CONFIG != xno ; then
25275 if pkg-config --atleast-pkgconfig-version 0.7 ; then
25276 :
25277 else
c2218763 25278 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
25279 no_gtk=yes
25280 PKG_CONFIG=no
25281 fi
25282 else
25283 no_gtk=yes
25284 fi
25285
25286 min_gtk_version=2.0.0
25287 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
25288echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
25289
25290 if test x$PKG_CONFIG != xno ; then
25291 ## don't try to run the test against uninstalled libtool libs
25292 if $PKG_CONFIG --uninstalled $pkg_config_args; then
25293 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
25294 enable_gtktest=no
25295 fi
25296
25297 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
25298 :
25299 else
25300 no_gtk=yes
25301 fi
25302 fi
25303
25304 if test x"$no_gtk" = x ; then
25305 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
25306 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
25307 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25308 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25309 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25310 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25311 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25312 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25313 if test "x$enable_gtktest" = "xyes" ; then
25314 ac_save_CFLAGS="$CFLAGS"
25315 ac_save_LIBS="$LIBS"
25316 CFLAGS="$CFLAGS $GTK_CFLAGS"
25317 LIBS="$GTK_LIBS $LIBS"
25318 rm -f conf.gtktest
25319 if test "$cross_compiling" = yes; then
25320 echo $ac_n "cross compiling; assumed OK... $ac_c"
25321else
25322 cat >conftest.$ac_ext <<_ACEOF
25323/* confdefs.h. */
25324_ACEOF
25325cat confdefs.h >>conftest.$ac_ext
25326cat >>conftest.$ac_ext <<_ACEOF
25327/* end confdefs.h. */
25328
25329#include <gtk/gtk.h>
25330#include <stdio.h>
25331#include <stdlib.h>
25332
25333int
25334main ()
25335{
25336 int major, minor, micro;
25337 char *tmp_version;
25338
25339 system ("touch conf.gtktest");
25340
25341 /* HP/UX 9 (%@#!) writes to sscanf strings */
25342 tmp_version = g_strdup("$min_gtk_version");
25343 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25344 printf("%s, bad version string\n", "$min_gtk_version");
25345 exit(1);
25346 }
25347
25348 if ((gtk_major_version != $gtk_config_major_version) ||
25349 (gtk_minor_version != $gtk_config_minor_version) ||
25350 (gtk_micro_version != $gtk_config_micro_version))
25351 {
25352 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25353 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25354 gtk_major_version, gtk_minor_version, gtk_micro_version);
25355 printf ("*** was found! If pkg-config was correct, then it is best\n");
25356 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25357 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25358 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25359 printf("*** required on your system.\n");
25360 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
25361 printf("*** to point to the correct configuration files\n");
25362 }
25363 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25364 (gtk_minor_version != GTK_MINOR_VERSION) ||
25365 (gtk_micro_version != GTK_MICRO_VERSION))
25366 {
25367 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25368 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25369 printf("*** library (version %d.%d.%d)\n",
25370 gtk_major_version, gtk_minor_version, gtk_micro_version);
25371 }
25372 else
25373 {
25374 if ((gtk_major_version > major) ||
25375 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25376 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25377 {
25378 return 0;
25379 }
25380 else
25381 {
25382 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25383 gtk_major_version, gtk_minor_version, gtk_micro_version);
25384 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25385 major, minor, micro);
25386 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25387 printf("***\n");
25388 printf("*** If you have already installed a sufficiently new version, this error\n");
25389 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
25390 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25391 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
25392 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
25393 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25394 printf("*** so that the correct libraries are found at run-time))\n");
25395 }
25396 }
25397 return 1;
25398}
25399
25400_ACEOF
25401rm -f conftest$ac_exeext
25402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25403 (eval $ac_link) 2>&5
25404 ac_status=$?
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25408 (eval $ac_try) 2>&5
25409 ac_status=$?
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); }; }; then
25412 :
25413else
25414 echo "$as_me: program exited with status $ac_status" >&5
25415echo "$as_me: failed program was:" >&5
25416sed 's/^/| /' conftest.$ac_ext >&5
25417
25418( exit $ac_status )
25419no_gtk=yes
25420fi
ac1cb8d3 25421rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25422fi
25423 CFLAGS="$ac_save_CFLAGS"
25424 LIBS="$ac_save_LIBS"
25425 fi
25426 fi
25427 if test "x$no_gtk" = x ; then
25428 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
25429echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
25430 wx_cv_lib_gtk=2.0
25431 else
25432 echo "$as_me:$LINENO: result: no" >&5
25433echo "${ECHO_T}no" >&6
25434 if test "$PKG_CONFIG" = "no" ; then
25435 echo "*** A new enough version of pkg-config was not found."
25436 echo "*** See http://pkgconfig.sourceforge.net"
25437 else
25438 if test -f conf.gtktest ; then
25439 :
25440 else
25441 echo "*** Could not run GTK+ test program, checking why..."
25442 ac_save_CFLAGS="$CFLAGS"
25443 ac_save_LIBS="$LIBS"
25444 CFLAGS="$CFLAGS $GTK_CFLAGS"
25445 LIBS="$LIBS $GTK_LIBS"
25446 cat >conftest.$ac_ext <<_ACEOF
25447/* confdefs.h. */
25448_ACEOF
25449cat confdefs.h >>conftest.$ac_ext
25450cat >>conftest.$ac_ext <<_ACEOF
25451/* end confdefs.h. */
25452
25453#include <gtk/gtk.h>
25454#include <stdio.h>
25455
25456int
25457main ()
25458{
25459 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25460 ;
25461 return 0;
25462}
25463_ACEOF
25464rm -f conftest.$ac_objext conftest$ac_exeext
25465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25466 (eval $ac_link) 2>conftest.er1
a848cd7e 25467 ac_status=$?
ac1cb8d3
VS
25468 grep -v '^ *+' conftest.er1 >conftest.err
25469 rm -f conftest.er1
25470 cat conftest.err >&5
a848cd7e
SC
25471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 (exit $ac_status); } &&
6ebeb4c7 25473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
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); }; } &&
25479 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484 (exit $ac_status); }; }; then
25485 echo "*** The test program compiled, but did not run. This usually means"
25486 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
25487 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
25488 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25489 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25490 echo "*** is required on your system"
25491 echo "***"
25492 echo "*** If you have an old version installed, it is best to remove it, although"
25493 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25494else
25495 echo "$as_me: failed program was:" >&5
25496sed 's/^/| /' conftest.$ac_ext >&5
25497
25498 echo "*** The test program failed to compile or link. See the file config.log for the"
25499 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
25500fi
ac1cb8d3
VS
25501rm -f conftest.err conftest.$ac_objext \
25502 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25503 CFLAGS="$ac_save_CFLAGS"
25504 LIBS="$ac_save_LIBS"
25505 fi
25506 fi
25507 GTK_CFLAGS=""
25508 GTK_LIBS=""
25509 :
25510 fi
25511
25512
25513 rm -f conf.gtktest
25514
5001df0d
MW
25515
25516 case "${host}" in
25517 *-*-solaris2* )
25518 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
25519 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
25520 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
25521 fi
25522 if test "$wxUSE_SHARED" != "yes"; then
25523 GTK_LIBS="$GTK_LIBS -lX11"
25524 fi
25525 esac
f597b41c
MW
25526 fi
25527
f34ca037
MW
25528 if test -z "$wx_cv_lib_gtk"; then
25529 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
25530
25531# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25532if test "${with_gtk_prefix+set}" = set; then
25533 withval="$with_gtk_prefix"
25534 gtk_config_prefix="$withval"
25535else
25536 gtk_config_prefix=""
25537fi;
25538
25539# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25540if test "${with_gtk_exec_prefix+set}" = set; then
25541 withval="$with_gtk_exec_prefix"
25542 gtk_config_exec_prefix="$withval"
25543else
25544 gtk_config_exec_prefix=""
25545fi;
25546# Check whether --enable-gtktest or --disable-gtktest was given.
25547if test "${enable_gtktest+set}" = set; then
25548 enableval="$enable_gtktest"
25549
25550else
25551 enable_gtktest=yes
25552fi;
25553
25554 for module in . $GTK_MODULES
25555 do
25556 case "$module" in
25557 gthread)
25558 gtk_config_args="$gtk_config_args gthread"
25559 ;;
25560 esac
25561 done
25562
25563 if test x$gtk_config_exec_prefix != x ; then
25564 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25565 if test x${GTK_CONFIG+set} != xset ; then
25566 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25567 fi
25568 fi
25569 if test x$gtk_config_prefix != x ; then
25570 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25571 if test x${GTK_CONFIG+set} != xset ; then
25572 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25573 fi
25574 fi
25575
25576 # Extract the first word of "gtk-config", so it can be a program name with args.
25577set dummy gtk-config; ac_word=$2
25578echo "$as_me:$LINENO: checking for $ac_word" >&5
25579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25580if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25581 echo $ECHO_N "(cached) $ECHO_C" >&6
25582else
25583 case $GTK_CONFIG in
25584 [\\/]* | ?:[\\/]*)
25585 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25586 ;;
25587 *)
25588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25589for as_dir in $PATH
25590do
25591 IFS=$as_save_IFS
25592 test -z "$as_dir" && as_dir=.
25593 for ac_exec_ext in '' $ac_executable_extensions; do
25594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25595 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25597 break 2
25598 fi
25599done
25600done
25601
25602 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25603 ;;
25604esac
25605fi
25606GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25607
25608if test -n "$GTK_CONFIG"; then
25609 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25610echo "${ECHO_T}$GTK_CONFIG" >&6
25611else
25612 echo "$as_me:$LINENO: result: no" >&5
25613echo "${ECHO_T}no" >&6
25614fi
25615
25616 min_gtk_version=1.2.7
25617 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25618echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25619 no_gtk=""
25620 if test "$GTK_CONFIG" = "no" ; then
25621 no_gtk=yes
25622 else
25623 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25624 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25625 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25626 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25627 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25628 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25629 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25630 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25631 if test "x$enable_gtktest" = "xyes" ; then
25632 ac_save_CFLAGS="$CFLAGS"
25633 ac_save_LIBS="$LIBS"
25634 CFLAGS="$CFLAGS $GTK_CFLAGS"
25635 LIBS="$GTK_LIBS $LIBS"
25636 rm -f conf.gtktest
25637 if test "$cross_compiling" = yes; then
25638 echo $ac_n "cross compiling; assumed OK... $ac_c"
25639else
25640 cat >conftest.$ac_ext <<_ACEOF
25641/* confdefs.h. */
25642_ACEOF
25643cat confdefs.h >>conftest.$ac_ext
25644cat >>conftest.$ac_ext <<_ACEOF
25645/* end confdefs.h. */
25646
25647#include <gtk/gtk.h>
25648#include <stdio.h>
25649#include <stdlib.h>
25650
25651int
25652main ()
25653{
25654 int major, minor, micro;
25655 char *tmp_version;
25656
25657 system ("touch conf.gtktest");
25658
25659 /* HP/UX 9 (%@#!) writes to sscanf strings */
25660 tmp_version = g_strdup("$min_gtk_version");
25661 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25662 printf("%s, bad version string\n", "$min_gtk_version");
25663 exit(1);
25664 }
25665
25666 if ((gtk_major_version != $gtk_config_major_version) ||
25667 (gtk_minor_version != $gtk_config_minor_version) ||
25668 (gtk_micro_version != $gtk_config_micro_version))
25669 {
25670 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25671 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25672 gtk_major_version, gtk_minor_version, gtk_micro_version);
25673 printf ("*** was found! If gtk-config was correct, then it is best\n");
25674 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25675 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25676 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25677 printf("*** required on your system.\n");
25678 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25679 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25680 printf("*** before re-running configure\n");
25681 }
25682#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25683 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25684 (gtk_minor_version != GTK_MINOR_VERSION) ||
25685 (gtk_micro_version != GTK_MICRO_VERSION))
25686 {
25687 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25688 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25689 printf("*** library (version %d.%d.%d)\n",
25690 gtk_major_version, gtk_minor_version, gtk_micro_version);
25691 }
25692#endif /* defined (GTK_MAJOR_VERSION) ... */
25693 else
25694 {
25695 if ((gtk_major_version > major) ||
25696 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25697 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25698 {
25699 return 0;
25700 }
25701 else
25702 {
25703 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25704 gtk_major_version, gtk_minor_version, gtk_micro_version);
25705 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25706 major, minor, micro);
25707 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25708 printf("***\n");
25709 printf("*** If you have already installed a sufficiently new version, this error\n");
25710 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25711 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25712 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25713 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25714 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25715 printf("*** so that the correct libraries are found at run-time))\n");
25716 }
25717 }
25718 return 1;
25719}
25720
25721_ACEOF
25722rm -f conftest$ac_exeext
25723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25724 (eval $ac_link) 2>&5
25725 ac_status=$?
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25729 (eval $ac_try) 2>&5
25730 ac_status=$?
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); }; }; then
25733 :
25734else
25735 echo "$as_me: program exited with status $ac_status" >&5
25736echo "$as_me: failed program was:" >&5
25737sed 's/^/| /' conftest.$ac_ext >&5
25738
25739( exit $ac_status )
25740no_gtk=yes
25741fi
ac1cb8d3 25742rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25743fi
25744 CFLAGS="$ac_save_CFLAGS"
25745 LIBS="$ac_save_LIBS"
25746 fi
25747 fi
25748 if test "x$no_gtk" = x ; then
25749 echo "$as_me:$LINENO: result: yes" >&5
25750echo "${ECHO_T}yes" >&6
25751 wx_cv_lib_gtk=1.2.7
25752 else
25753 echo "$as_me:$LINENO: result: no" >&5
25754echo "${ECHO_T}no" >&6
25755 if test "$GTK_CONFIG" = "no" ; then
25756 echo "*** The gtk-config script installed by GTK could not be found"
25757 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25758 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25759 echo "*** full path to gtk-config."
25760 else
25761 if test -f conf.gtktest ; then
25762 :
25763 else
25764 echo "*** Could not run GTK test program, checking why..."
25765 CFLAGS="$CFLAGS $GTK_CFLAGS"
25766 LIBS="$LIBS $GTK_LIBS"
25767 cat >conftest.$ac_ext <<_ACEOF
25768/* confdefs.h. */
25769_ACEOF
25770cat confdefs.h >>conftest.$ac_ext
25771cat >>conftest.$ac_ext <<_ACEOF
25772/* end confdefs.h. */
25773
25774#include <gtk/gtk.h>
25775#include <stdio.h>
25776
25777int
25778main ()
25779{
25780 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25781 ;
25782 return 0;
25783}
25784_ACEOF
25785rm -f conftest.$ac_objext conftest$ac_exeext
25786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25787 (eval $ac_link) 2>conftest.er1
a848cd7e 25788 ac_status=$?
ac1cb8d3
VS
25789 grep -v '^ *+' conftest.er1 >conftest.err
25790 rm -f conftest.er1
25791 cat conftest.err >&5
a848cd7e
SC
25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793 (exit $ac_status); } &&
6ebeb4c7 25794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25796 (eval $ac_try) 2>&5
25797 ac_status=$?
25798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25799 (exit $ac_status); }; } &&
25800 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25802 (eval $ac_try) 2>&5
25803 ac_status=$?
25804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805 (exit $ac_status); }; }; then
25806 echo "*** The test program compiled, but did not run. This usually means"
25807 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25808 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25809 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25810 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25811 echo "*** is required on your system"
25812 echo "***"
25813 echo "*** If you have an old version installed, it is best to remove it, although"
25814 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25815 echo "***"
25816 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25817 echo "*** came with the system with the command"
25818 echo "***"
25819 echo "*** rpm --erase --nodeps gtk gtk-devel"
25820else
25821 echo "$as_me: failed program was:" >&5
25822sed 's/^/| /' conftest.$ac_ext >&5
25823
25824 echo "*** The test program failed to compile or link. See the file config.log for the"
25825 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25826 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25827 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25828fi
ac1cb8d3
VS
25829rm -f conftest.err conftest.$ac_objext \
25830 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25831 CFLAGS="$ac_save_CFLAGS"
25832 LIBS="$ac_save_LIBS"
25833 fi
25834 fi
25835 GTK_CFLAGS=""
25836 GTK_LIBS=""
25837 :
25838 fi
25839
25840
25841 rm -f conf.gtktest
25842
25843
f34ca037 25844 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25845
25846# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25847if test "${with_gtk_prefix+set}" = set; then
25848 withval="$with_gtk_prefix"
25849 gtk_config_prefix="$withval"
25850else
25851 gtk_config_prefix=""
25852fi;
25853
25854# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25855if test "${with_gtk_exec_prefix+set}" = set; then
25856 withval="$with_gtk_exec_prefix"
25857 gtk_config_exec_prefix="$withval"
25858else
25859 gtk_config_exec_prefix=""
25860fi;
25861# Check whether --enable-gtktest or --disable-gtktest was given.
25862if test "${enable_gtktest+set}" = set; then
25863 enableval="$enable_gtktest"
25864
25865else
25866 enable_gtktest=yes
25867fi;
25868
25869 for module in . $GTK_MODULES
25870 do
25871 case "$module" in
25872 gthread)
25873 gtk_config_args="$gtk_config_args gthread"
25874 ;;
25875 esac
25876 done
25877
25878 if test x$gtk_config_exec_prefix != x ; then
25879 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25880 if test x${GTK_CONFIG+set} != xset ; then
25881 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25882 fi
25883 fi
25884 if test x$gtk_config_prefix != x ; then
25885 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25886 if test x${GTK_CONFIG+set} != xset ; then
25887 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25888 fi
25889 fi
25890
25891 # Extract the first word of "gtk-config", so it can be a program name with args.
25892set dummy gtk-config; ac_word=$2
25893echo "$as_me:$LINENO: checking for $ac_word" >&5
25894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25895if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25896 echo $ECHO_N "(cached) $ECHO_C" >&6
25897else
25898 case $GTK_CONFIG in
25899 [\\/]* | ?:[\\/]*)
25900 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25901 ;;
25902 *)
25903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25904for as_dir in $PATH
25905do
25906 IFS=$as_save_IFS
25907 test -z "$as_dir" && as_dir=.
25908 for ac_exec_ext in '' $ac_executable_extensions; do
25909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25910 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25912 break 2
25913 fi
25914done
25915done
25916
25917 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25918 ;;
25919esac
25920fi
25921GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25922
25923if test -n "$GTK_CONFIG"; then
25924 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25925echo "${ECHO_T}$GTK_CONFIG" >&6
25926else
25927 echo "$as_me:$LINENO: result: no" >&5
25928echo "${ECHO_T}no" >&6
25929fi
25930
25931 min_gtk_version=1.2.3
25932 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25933echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25934 no_gtk=""
25935 if test "$GTK_CONFIG" = "no" ; then
25936 no_gtk=yes
25937 else
25938 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25939 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25940 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25941 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25942 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25943 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25944 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25945 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25946 if test "x$enable_gtktest" = "xyes" ; then
25947 ac_save_CFLAGS="$CFLAGS"
25948 ac_save_LIBS="$LIBS"
25949 CFLAGS="$CFLAGS $GTK_CFLAGS"
25950 LIBS="$GTK_LIBS $LIBS"
25951 rm -f conf.gtktest
25952 if test "$cross_compiling" = yes; then
25953 echo $ac_n "cross compiling; assumed OK... $ac_c"
25954else
25955 cat >conftest.$ac_ext <<_ACEOF
25956/* confdefs.h. */
25957_ACEOF
25958cat confdefs.h >>conftest.$ac_ext
25959cat >>conftest.$ac_ext <<_ACEOF
25960/* end confdefs.h. */
25961
25962#include <gtk/gtk.h>
25963#include <stdio.h>
25964#include <stdlib.h>
25965
25966int
25967main ()
25968{
25969 int major, minor, micro;
25970 char *tmp_version;
25971
25972 system ("touch conf.gtktest");
25973
25974 /* HP/UX 9 (%@#!) writes to sscanf strings */
25975 tmp_version = g_strdup("$min_gtk_version");
25976 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25977 printf("%s, bad version string\n", "$min_gtk_version");
25978 exit(1);
25979 }
25980
25981 if ((gtk_major_version != $gtk_config_major_version) ||
25982 (gtk_minor_version != $gtk_config_minor_version) ||
25983 (gtk_micro_version != $gtk_config_micro_version))
25984 {
25985 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25986 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25987 gtk_major_version, gtk_minor_version, gtk_micro_version);
25988 printf ("*** was found! If gtk-config was correct, then it is best\n");
25989 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25990 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25991 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25992 printf("*** required on your system.\n");
25993 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25994 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25995 printf("*** before re-running configure\n");
25996 }
25997#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25998 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25999 (gtk_minor_version != GTK_MINOR_VERSION) ||
26000 (gtk_micro_version != GTK_MICRO_VERSION))
26001 {
26002 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26003 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26004 printf("*** library (version %d.%d.%d)\n",
26005 gtk_major_version, gtk_minor_version, gtk_micro_version);
26006 }
26007#endif /* defined (GTK_MAJOR_VERSION) ... */
26008 else
26009 {
26010 if ((gtk_major_version > major) ||
26011 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26012 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26013 {
26014 return 0;
26015 }
26016 else
26017 {
26018 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26019 gtk_major_version, gtk_minor_version, gtk_micro_version);
26020 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26021 major, minor, micro);
26022 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26023 printf("***\n");
26024 printf("*** If you have already installed a sufficiently new version, this error\n");
26025 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26026 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26027 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26028 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26029 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26030 printf("*** so that the correct libraries are found at run-time))\n");
26031 }
26032 }
26033 return 1;
26034}
26035
26036_ACEOF
26037rm -f conftest$ac_exeext
26038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26039 (eval $ac_link) 2>&5
26040 ac_status=$?
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26044 (eval $ac_try) 2>&5
26045 ac_status=$?
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); }; }; then
26048 :
26049else
26050 echo "$as_me: program exited with status $ac_status" >&5
26051echo "$as_me: failed program was:" >&5
26052sed 's/^/| /' conftest.$ac_ext >&5
26053
26054( exit $ac_status )
26055no_gtk=yes
26056fi
ac1cb8d3 26057rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26058fi
26059 CFLAGS="$ac_save_CFLAGS"
26060 LIBS="$ac_save_LIBS"
26061 fi
26062 fi
26063 if test "x$no_gtk" = x ; then
26064 echo "$as_me:$LINENO: result: yes" >&5
26065echo "${ECHO_T}yes" >&6
26066 wx_cv_lib_gtk=1.2.3
26067 else
26068 echo "$as_me:$LINENO: result: no" >&5
26069echo "${ECHO_T}no" >&6
26070 if test "$GTK_CONFIG" = "no" ; then
26071 echo "*** The gtk-config script installed by GTK could not be found"
26072 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26073 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26074 echo "*** full path to gtk-config."
26075 else
26076 if test -f conf.gtktest ; then
26077 :
26078 else
26079 echo "*** Could not run GTK test program, checking why..."
26080 CFLAGS="$CFLAGS $GTK_CFLAGS"
26081 LIBS="$LIBS $GTK_LIBS"
26082 cat >conftest.$ac_ext <<_ACEOF
26083/* confdefs.h. */
26084_ACEOF
26085cat confdefs.h >>conftest.$ac_ext
26086cat >>conftest.$ac_ext <<_ACEOF
26087/* end confdefs.h. */
26088
26089#include <gtk/gtk.h>
26090#include <stdio.h>
26091
26092int
26093main ()
26094{
26095 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26096 ;
26097 return 0;
26098}
26099_ACEOF
26100rm -f conftest.$ac_objext conftest$ac_exeext
26101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26102 (eval $ac_link) 2>conftest.er1
a848cd7e 26103 ac_status=$?
ac1cb8d3
VS
26104 grep -v '^ *+' conftest.er1 >conftest.err
26105 rm -f conftest.er1
26106 cat conftest.err >&5
a848cd7e
SC
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); } &&
6ebeb4c7 26109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26111 (eval $ac_try) 2>&5
26112 ac_status=$?
26113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114 (exit $ac_status); }; } &&
26115 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26117 (eval $ac_try) 2>&5
26118 ac_status=$?
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); }; }; then
26121 echo "*** The test program compiled, but did not run. This usually means"
26122 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26123 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26124 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26125 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26126 echo "*** is required on your system"
26127 echo "***"
26128 echo "*** If you have an old version installed, it is best to remove it, although"
26129 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26130 echo "***"
26131 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26132 echo "*** came with the system with the command"
26133 echo "***"
26134 echo "*** rpm --erase --nodeps gtk gtk-devel"
26135else
26136 echo "$as_me: failed program was:" >&5
26137sed 's/^/| /' conftest.$ac_ext >&5
26138
26139 echo "*** The test program failed to compile or link. See the file config.log for the"
26140 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26141 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26142 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26143fi
ac1cb8d3
VS
26144rm -f conftest.err conftest.$ac_objext \
26145 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26146 CFLAGS="$ac_save_CFLAGS"
26147 LIBS="$ac_save_LIBS"
26148 fi
26149 fi
26150 GTK_CFLAGS=""
26151 GTK_LIBS=""
26152 :
26153 fi
26154
26155
26156 rm -f conf.gtktest
26157
f34ca037 26158 fi
a848cd7e
SC
26159 fi
26160 fi
26161
26162 if test -z "$wx_cv_lib_gtk"; then
26163 wx_cv_lib_gtk=none
26164 else
26165 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 26166 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
26167 fi
26168
26169
26170fi
26171
26172
26173 if test "$gtk_version_cached" = 1; then
26174 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
26175echo "${ECHO_T}$wx_cv_lib_gtk" >&6
26176 fi
26177
26178 case "$wx_cv_lib_gtk" in
26179 2.0) WXGTK20=1
26180 TOOLKIT_VERSION=2
26181 ;;
26182 1.2.7) WXGTK127=1
26183 WXGTK12=1
26184 ;;
26185 1.2.3) WXGTK12=1
26186 ;;
26187 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
26188The development files for GTK+ were not found. For GTK+ 2, please
26189ensure that pkg-config is in the path and that gtk+-2.0.pc is
26190installed. For GTK+ 1.2 please check that gtk-config is in the path,
26191and that the version is 1.2.3 or above. Also check that the
26192libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26193--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26194 " >&5
26195echo "$as_me: error:
f597b41c
MW
26196The development files for GTK+ were not found. For GTK+ 2, please
26197ensure that pkg-config is in the path and that gtk+-2.0.pc is
26198installed. For GTK+ 1.2 please check that gtk-config is in the path,
26199and that the version is 1.2.3 or above. Also check that the
26200libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26201--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26202 " >&2;}
26203 { (exit 1); exit 1; }; }
26204 ;;
26205 esac
26206
26207 if test "$WXGTK20" = 1; then
304205f1
VS
26208 save_CFLAGS="$CFLAGS"
26209 save_LIBS="$LIBS"
9d271838 26210 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 26211 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 26212
d12aef51
VZ
26213 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
26214echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
26215 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
26216/* confdefs.h. */
26217_ACEOF
26218cat confdefs.h >>conftest.$ac_ext
26219cat >>conftest.$ac_ext <<_ACEOF
26220/* end confdefs.h. */
304205f1 26221
d12aef51 26222 #include <gtk/gtk.h>
304205f1 26223
d12aef51
VZ
26224int
26225main ()
26226{
304205f1 26227
d12aef51 26228 void *f = gtk_icon_size_lookup;
abc736fd
MW
26229
26230 ;
26231 return 0;
26232}
26233_ACEOF
26234rm -f conftest.$ac_objext
26235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26236 (eval $ac_compile) 2>conftest.er1
26237 ac_status=$?
26238 grep -v '^ *+' conftest.er1 >conftest.err
26239 rm -f conftest.er1
26240 cat conftest.err >&5
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); } &&
6ebeb4c7 26243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
26244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26245 (eval $ac_try) 2>&5
26246 ac_status=$?
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); }; } &&
26249 { ac_try='test -s conftest.$ac_objext'
26250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251 (eval $ac_try) 2>&5
26252 ac_status=$?
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); }; }; then
26255
26256 echo "$as_me:$LINENO: result: no" >&5
26257echo "${ECHO_T}no" >&6
26258
26259else
26260 echo "$as_me: failed program was:" >&5
26261sed 's/^/| /' conftest.$ac_ext >&5
26262
26263
26264 cat >>confdefs.h <<\_ACEOF
26265#define NEED_GTK_ICON_SIZE_LOOKUP 1
26266_ACEOF
26267
26268 echo "$as_me:$LINENO: result: yes" >&5
26269echo "${ECHO_T}yes" >&6
26270
26271fi
26272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26273
9755e73b
VS
26274 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
26275echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
26276 cat >conftest.$ac_ext <<_ACEOF
26277/* confdefs.h. */
26278_ACEOF
26279cat confdefs.h >>conftest.$ac_ext
26280cat >>conftest.$ac_ext <<_ACEOF
26281/* end confdefs.h. */
26282
26283 #include <gtk/gtk.h>
26284
26285int
26286main ()
26287{
26288
26289 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 26290 Not GTK+ 2.4
9755e73b
VS
26291 #endif
26292
26293 ;
26294 return 0;
26295}
26296_ACEOF
26297rm -f conftest.$ac_objext
26298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26299 (eval $ac_compile) 2>conftest.er1
26300 ac_status=$?
26301 grep -v '^ *+' conftest.er1 >conftest.err
26302 rm -f conftest.er1
26303 cat conftest.err >&5
26304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); } &&
6ebeb4c7 26306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
26307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26308 (eval $ac_try) 2>&5
26309 ac_status=$?
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); }; } &&
26312 { ac_try='test -s conftest.$ac_objext'
26313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26314 (eval $ac_try) 2>&5
26315 ac_status=$?
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); }; }; then
26318
26319 cat >>confdefs.h <<\_ACEOF
26320#define __WXGTK24__ 1
26321_ACEOF
26322
26323 echo "$as_me:$LINENO: result: yes" >&5
26324echo "${ECHO_T}yes" >&6
26325
26326else
26327 echo "$as_me: failed program was:" >&5
26328sed 's/^/| /' conftest.$ac_ext >&5
26329
26330
26331 echo "$as_me:$LINENO: result: no" >&5
26332echo "${ECHO_T}no" >&6
26333
26334fi
26335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26336
304205f1
VS
26337 CFLAGS="$save_CFLAGS"
26338 LIBS="$save_LIBS"
a848cd7e
SC
26339 else
26340 if test "$wxUSE_UNICODE" = "yes"; then
26341 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
26342echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
26343 wxUSE_UNICODE=no
26344 fi
26345 fi
26346
26347 if test "$USE_DARWIN" != 1; then
26348
26349for ac_func in poll
26350do
26351as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26352echo "$as_me:$LINENO: checking for $ac_func" >&5
26353echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26354if eval "test \"\${$as_ac_var+set}\" = set"; then
26355 echo $ECHO_N "(cached) $ECHO_C" >&6
26356else
26357 cat >conftest.$ac_ext <<_ACEOF
26358/* confdefs.h. */
26359_ACEOF
26360cat confdefs.h >>conftest.$ac_ext
26361cat >>conftest.$ac_ext <<_ACEOF
26362/* end confdefs.h. */
ac1cb8d3
VS
26363/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26365#define $ac_func innocuous_$ac_func
26366
a848cd7e
SC
26367/* System header to define __stub macros and hopefully few prototypes,
26368 which can conflict with char $ac_func (); below.
26369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26370 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26371
a848cd7e
SC
26372#ifdef __STDC__
26373# include <limits.h>
26374#else
26375# include <assert.h>
26376#endif
ac1cb8d3
VS
26377
26378#undef $ac_func
26379
a848cd7e
SC
26380/* Override any gcc2 internal prototype to avoid an error. */
26381#ifdef __cplusplus
26382extern "C"
26383{
26384#endif
26385/* We use char because int might match the return type of a gcc2
26386 builtin and then its argument prototype would still apply. */
26387char $ac_func ();
26388/* The GNU C library defines this for functions which it implements
26389 to always fail with ENOSYS. Some functions are actually named
26390 something starting with __ and the normal name is an alias. */
26391#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26392choke me
26393#else
26394char (*f) () = $ac_func;
26395#endif
26396#ifdef __cplusplus
26397}
26398#endif
26399
26400int
26401main ()
26402{
26403return f != $ac_func;
26404 ;
26405 return 0;
26406}
26407_ACEOF
26408rm -f conftest.$ac_objext conftest$ac_exeext
26409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26410 (eval $ac_link) 2>conftest.er1
a848cd7e 26411 ac_status=$?
ac1cb8d3
VS
26412 grep -v '^ *+' conftest.er1 >conftest.err
26413 rm -f conftest.er1
26414 cat conftest.err >&5
a848cd7e
SC
26415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416 (exit $ac_status); } &&
6ebeb4c7 26417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26419 (eval $ac_try) 2>&5
26420 ac_status=$?
26421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422 (exit $ac_status); }; } &&
26423 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26425 (eval $ac_try) 2>&5
26426 ac_status=$?
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); }; }; then
26429 eval "$as_ac_var=yes"
26430else
26431 echo "$as_me: failed program was:" >&5
26432sed 's/^/| /' conftest.$ac_ext >&5
26433
26434eval "$as_ac_var=no"
26435fi
ac1cb8d3
VS
26436rm -f conftest.err conftest.$ac_objext \
26437 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26438fi
26439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26440echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26441if test `eval echo '${'$as_ac_var'}'` = yes; then
26442 cat >>confdefs.h <<_ACEOF
26443#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26444_ACEOF
26445
26446fi
26447done
26448
26449 fi
26450
26451 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
26452 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
26453
26454 AFMINSTALL=afminstall
26455 TOOLKIT=GTK
26456 GUIDIST=GTK_DIST
26457
26458 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
26459echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
26460if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
26461 echo $ECHO_N "(cached) $ECHO_C" >&6
26462else
26463 ac_check_lib_save_LIBS=$LIBS
26464LIBS="-lgdk $LIBS"
26465cat >conftest.$ac_ext <<_ACEOF
26466/* confdefs.h. */
26467_ACEOF
26468cat confdefs.h >>conftest.$ac_ext
26469cat >>conftest.$ac_ext <<_ACEOF
26470/* end confdefs.h. */
26471
26472/* Override any gcc2 internal prototype to avoid an error. */
26473#ifdef __cplusplus
26474extern "C"
26475#endif
26476/* We use char because int might match the return type of a gcc2
26477 builtin and then its argument prototype would still apply. */
26478char gdk_im_open ();
26479int
26480main ()
26481{
26482gdk_im_open ();
26483 ;
26484 return 0;
26485}
26486_ACEOF
26487rm -f conftest.$ac_objext conftest$ac_exeext
26488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26489 (eval $ac_link) 2>conftest.er1
a848cd7e 26490 ac_status=$?
ac1cb8d3
VS
26491 grep -v '^ *+' conftest.er1 >conftest.err
26492 rm -f conftest.er1
26493 cat conftest.err >&5
a848cd7e
SC
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); } &&
6ebeb4c7 26496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26498 (eval $ac_try) 2>&5
26499 ac_status=$?
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 (exit $ac_status); }; } &&
26502 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26504 (eval $ac_try) 2>&5
26505 ac_status=$?
26506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); }; }; then
26508 ac_cv_lib_gdk_gdk_im_open=yes
26509else
26510 echo "$as_me: failed program was:" >&5
26511sed 's/^/| /' conftest.$ac_ext >&5
26512
26513ac_cv_lib_gdk_gdk_im_open=no
26514fi
ac1cb8d3
VS
26515rm -f conftest.err conftest.$ac_objext \
26516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26517LIBS=$ac_check_lib_save_LIBS
26518fi
26519echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
26520echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
26521if test $ac_cv_lib_gdk_gdk_im_open = yes; then
26522 cat >>confdefs.h <<\_ACEOF
26523#define HAVE_XIM 1
26524_ACEOF
26525
26526fi
26527
26528
26529
26530 if test "$wxUSE_GPE" = "yes"; then
26531 echo "$as_me:$LINENO: checking for gpewidget library" >&5
26532echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
26533
0ad5d837
VZ
26534 ac_find_libraries=
26535 for ac_dir in $SEARCH_LIB;
a848cd7e 26536 do
3eca31dc 26537 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
26538 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26539 ac_find_libraries=$ac_dir
26540 break 2
26541 fi
26542 done
26543 done
26544
26545 if test "$ac_find_libraries" != "" ; then
26546
0ad5d837 26547 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
26548 ac_path_to_link=""
26549 else
0ad5d837
VZ
26550 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26551 result=$?
26552 if test $result = 0; then
26553 ac_path_to_link=""
26554 else
26555 ac_path_to_link=" -L$ac_find_libraries"
26556 fi
a848cd7e
SC
26557 fi
26558
26559 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26560 WXGPE=1
0ad5d837
VZ
26561 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
26562echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
26563 else
26564 echo "$as_me:$LINENO: result: not found" >&5
26565echo "${ECHO_T}not found" >&6
26566 fi
26567
26568 fi
26569 fi
26570
26571 if test "$wxUSE_MGL" = 1; then
26572 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26573echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26574 if test "x$MGL_ROOT" = x ; then
26575 echo "$as_me:$LINENO: result: not found" >&5
26576echo "${ECHO_T}not found" >&6
26577 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26578echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26579 { (exit 1); exit 1; }; }
26580 else
26581 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26582echo "${ECHO_T}$MGL_ROOT" >&6
26583 fi
26584
26585 echo "$as_me:$LINENO: checking for libmgl location" >&5
26586echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26587 case "${host}" in
26588 *-*-linux* )
26589 if test "x$wxUSE_SHARED" = xyes ; then
26590 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26591 else
26592 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26593 fi
26594 ;;
26595 *-pc-msdosdjgpp )
26596 mgl_os_candidates="dos32/dj2"
26597 ;;
26598 *)
26599 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26600echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26601 { (exit 1); exit 1; }; }
26602 esac
26603
26604 mgl_lib_type=""
26605 mgl_os=""
26606
26607 for mgl_os_i in $mgl_os_candidates ; do
26608 if test "x$mgl_os" = x ; then
26609 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26610 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26611 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26612 mgl_lib_type=debug
26613 mgl_os=$mgl_os_i
26614 fi
26615 fi
26616 if test "x$mgl_lib_type" = x ; then
26617 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26618 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26619 mgl_lib_type=release
26620 mgl_os=$mgl_os_i
26621 fi
26622 fi
26623 fi
26624 done
26625
26626 if test "x$mgl_os" = x ; then
26627 echo "$as_me:$LINENO: result: not found" >&5
26628echo "${ECHO_T}not found" >&6
26629 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26630echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26631 { (exit 1); exit 1; }; }
26632 fi
26633 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26634echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26635
26636 wxUSE_UNIVERSAL="yes"
26637
26638 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26639 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26640
26641 AFMINSTALL=afminstall
26642 TOOLKIT=MGL
26643 GUIDIST=MGL_DIST
26644 fi
26645
26646 if test "$wxUSE_MICROWIN" = 1; then
26647 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26648echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26649 if test "x$MICROWINDOWS" = x ; then
26650 echo "$as_me:$LINENO: result: not found" >&5
26651echo "${ECHO_T}not found" >&6
26652 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26653echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26654 { (exit 1); exit 1; }; }
26655 else
26656 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26657echo "${ECHO_T}$MICROWINDOWS" >&6
26658 fi
26659
26660 if test -f $MICROWINDOWS/lib/libmwin.a; then
26661 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26662echo "${ECHO_T}MicroWindows' libraries found." >&6
26663 else
26664 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26665echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26666 { (exit 1); exit 1; }; }
26667 fi
26668
26669 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26670 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26671
26672 wxUSE_UNIVERSAL="yes"
26673
26674 AFMINSTALL=afminstall
26675 TOOLKIT=MICROWIN
26676 GUIDIST=MICROWIN_DIST
26677
26678 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26679 fi
26680
74b84332 26681 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6ebeb4c7
VZ
26682
26683if test "x$ac_path_x_has_been_run" != xyes; then
26684 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26685echo $ECHO_N "checking for X... $ECHO_C" >&6
26686
6ebeb4c7 26687ac_path_x_has_been_run=yes
a848cd7e
SC
26688
26689# Check whether --with-x or --without-x was given.
26690if test "${with_x+set}" = set; then
26691 withval="$with_x"
26692
26693fi;
26694# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26695if test "x$with_x" = xno; then
26696 # The user explicitly disabled X.
26697 have_x=disabled
26698else
26699 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26700 # Both variables are already set.
26701 have_x=yes
26702 else
26703 if test "${ac_cv_have_x+set}" = set; then
26704 echo $ECHO_N "(cached) $ECHO_C" >&6
26705else
26706 # One or both of the vars are not set, and there is no cached value.
26707ac_x_includes=no ac_x_libraries=no
26708rm -fr conftest.dir
26709if mkdir conftest.dir; then
26710 cd conftest.dir
26711 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26712 cat >Imakefile <<'_ACEOF'
26713acfindx:
26714 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26715_ACEOF
26716 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26717 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26718 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26719 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26720 for ac_extension in a so sl; do
26721 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26722 test -f $ac_im_libdir/libX11.$ac_extension; then
26723 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26724 fi
26725 done
26726 # Screen out bogus values from the imake configuration. They are
26727 # bogus both because they are the default anyway, and because
26728 # using them would break gcc on systems where it needs fixed includes.
26729 case $ac_im_incroot in
26730 /usr/include) ;;
26731 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26732 esac
26733 case $ac_im_usrlibdir in
26734 /usr/lib | /lib) ;;
26735 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26736 esac
26737 fi
26738 cd ..
26739 rm -fr conftest.dir
26740fi
26741
26742# Standard set of common directories for X headers.
26743# Check X11 before X11Rn because it is often a symlink to the current release.
26744ac_x_header_dirs='
26745/usr/X11/include
26746/usr/X11R6/include
26747/usr/X11R5/include
26748/usr/X11R4/include
26749
26750/usr/include/X11
26751/usr/include/X11R6
26752/usr/include/X11R5
26753/usr/include/X11R4
26754
26755/usr/local/X11/include
26756/usr/local/X11R6/include
26757/usr/local/X11R5/include
26758/usr/local/X11R4/include
26759
26760/usr/local/include/X11
26761/usr/local/include/X11R6
26762/usr/local/include/X11R5
26763/usr/local/include/X11R4
26764
26765/usr/X386/include
26766/usr/x386/include
26767/usr/XFree86/include/X11
26768
26769/usr/include
26770/usr/local/include
26771/usr/unsupported/include
26772/usr/athena/include
26773/usr/local/x11r5/include
26774/usr/lpp/Xamples/include
26775
26776/usr/openwin/include
26777/usr/openwin/share/include'
26778
26779if test "$ac_x_includes" = no; then
6ebeb4c7 26780 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
26781 # First, try using that file with no special directory specified.
26782 cat >conftest.$ac_ext <<_ACEOF
26783/* confdefs.h. */
26784_ACEOF
26785cat confdefs.h >>conftest.$ac_ext
26786cat >>conftest.$ac_ext <<_ACEOF
26787/* end confdefs.h. */
26788#include <X11/Intrinsic.h>
26789_ACEOF
26790if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26792 ac_status=$?
26793 grep -v '^ *+' conftest.er1 >conftest.err
26794 rm -f conftest.er1
26795 cat conftest.err >&5
26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); } >/dev/null; then
26798 if test -s conftest.err; then
26799 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26801 else
26802 ac_cpp_err=
26803 fi
26804else
26805 ac_cpp_err=yes
26806fi
26807if test -z "$ac_cpp_err"; then
26808 # We can compile using X headers with no special include directory.
26809ac_x_includes=
26810else
26811 echo "$as_me: failed program was:" >&5
26812sed 's/^/| /' conftest.$ac_ext >&5
26813
26814 for ac_dir in $ac_x_header_dirs; do
26815 if test -r "$ac_dir/X11/Intrinsic.h"; then
26816 ac_x_includes=$ac_dir
26817 break
26818 fi
26819done
26820fi
26821rm -f conftest.err conftest.$ac_ext
26822fi # $ac_x_includes = no
26823
26824if test "$ac_x_libraries" = no; then
26825 # Check for the libraries.
26826 # See if we find them without any special options.
26827 # Don't add to $LIBS permanently.
26828 ac_save_LIBS=$LIBS
26829 LIBS="-lXt $LIBS"
26830 cat >conftest.$ac_ext <<_ACEOF
26831/* confdefs.h. */
26832_ACEOF
26833cat confdefs.h >>conftest.$ac_ext
26834cat >>conftest.$ac_ext <<_ACEOF
26835/* end confdefs.h. */
26836#include <X11/Intrinsic.h>
26837int
26838main ()
26839{
26840XtMalloc (0)
26841 ;
26842 return 0;
26843}
26844_ACEOF
26845rm -f conftest.$ac_objext conftest$ac_exeext
26846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26847 (eval $ac_link) 2>conftest.er1
a848cd7e 26848 ac_status=$?
ac1cb8d3
VS
26849 grep -v '^ *+' conftest.er1 >conftest.err
26850 rm -f conftest.er1
26851 cat conftest.err >&5
a848cd7e
SC
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); } &&
6ebeb4c7 26854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26856 (eval $ac_try) 2>&5
26857 ac_status=$?
26858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859 (exit $ac_status); }; } &&
26860 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26862 (eval $ac_try) 2>&5
26863 ac_status=$?
26864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865 (exit $ac_status); }; }; then
26866 LIBS=$ac_save_LIBS
26867# We can link X programs with no special library path.
26868ac_x_libraries=
26869else
26870 echo "$as_me: failed program was:" >&5
26871sed 's/^/| /' conftest.$ac_ext >&5
26872
26873LIBS=$ac_save_LIBS
26874for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26875do
26876 # Don't even attempt the hair of trying to link an X program!
26877 for ac_extension in a so sl; do
26878 if test -r $ac_dir/libXt.$ac_extension; then
26879 ac_x_libraries=$ac_dir
26880 break 2
26881 fi
26882 done
26883done
26884fi
ac1cb8d3
VS
26885rm -f conftest.err conftest.$ac_objext \
26886 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26887fi # $ac_x_libraries = no
26888
26889if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26890 # Didn't find X anywhere. Cache the known absence of X.
26891 ac_cv_have_x="have_x=no"
26892else
26893 # Record where we found X for the cache.
26894 ac_cv_have_x="have_x=yes \
ac1cb8d3 26895 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26896fi
26897fi
26898
26899 fi
26900 eval "$ac_cv_have_x"
26901fi # $with_x != no
26902
26903if test "$have_x" != yes; then
26904 echo "$as_me:$LINENO: result: $have_x" >&5
26905echo "${ECHO_T}$have_x" >&6
26906 no_x=yes
26907else
26908 # If each of the values was on the command line, it overrides each guess.
26909 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26910 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26911 # Update the cache value to reflect the command line values.
26912 ac_cv_have_x="have_x=yes \
26913 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6ebeb4c7
VZ
26914 # It might be that x_includes is empty (headers are found in the
26915 # standard search path. Then output the corresponding message
26916 ac_out_x_includes=$x_includes
26917 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26918 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26919echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26920fi
26921
6ebeb4c7 26922fi
a848cd7e
SC
26923if test "$no_x" = yes; then
26924 # Not all programs may use this symbol, but it does not hurt to define it.
26925
26926cat >>confdefs.h <<\_ACEOF
26927#define X_DISPLAY_MISSING 1
26928_ACEOF
26929
26930 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26931else
26932 if test -n "$x_includes"; then
26933 X_CFLAGS="$X_CFLAGS -I$x_includes"
26934 fi
26935
26936 # It would also be nice to do this for all -L options, not just this one.
26937 if test -n "$x_libraries"; then
26938 X_LIBS="$X_LIBS -L$x_libraries"
26939 # For Solaris; some versions of Sun CC require a space after -R and
26940 # others require no space. Words are not sufficient . . . .
26941 case `(uname -sr) 2>/dev/null` in
26942 "SunOS 5"*)
26943 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26944echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26945 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26946 cat >conftest.$ac_ext <<_ACEOF
26947/* confdefs.h. */
26948_ACEOF
26949cat confdefs.h >>conftest.$ac_ext
26950cat >>conftest.$ac_ext <<_ACEOF
26951/* end confdefs.h. */
26952
26953int
26954main ()
26955{
26956
26957 ;
26958 return 0;
26959}
26960_ACEOF
26961rm -f conftest.$ac_objext conftest$ac_exeext
26962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26963 (eval $ac_link) 2>conftest.er1
a848cd7e 26964 ac_status=$?
ac1cb8d3
VS
26965 grep -v '^ *+' conftest.er1 >conftest.err
26966 rm -f conftest.er1
26967 cat conftest.err >&5
a848cd7e
SC
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); } &&
6ebeb4c7 26970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26972 (eval $ac_try) 2>&5
26973 ac_status=$?
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); }; } &&
26976 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26978 (eval $ac_try) 2>&5
26979 ac_status=$?
26980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26981 (exit $ac_status); }; }; then
26982 ac_R_nospace=yes
26983else
26984 echo "$as_me: failed program was:" >&5
26985sed 's/^/| /' conftest.$ac_ext >&5
26986
26987ac_R_nospace=no
26988fi
ac1cb8d3
VS
26989rm -f conftest.err conftest.$ac_objext \
26990 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26991 if test $ac_R_nospace = yes; then
26992 echo "$as_me:$LINENO: result: no" >&5
26993echo "${ECHO_T}no" >&6
26994 X_LIBS="$X_LIBS -R$x_libraries"
26995 else
26996 LIBS="$ac_xsave_LIBS -R $x_libraries"
26997 cat >conftest.$ac_ext <<_ACEOF
26998/* confdefs.h. */
26999_ACEOF
27000cat confdefs.h >>conftest.$ac_ext
27001cat >>conftest.$ac_ext <<_ACEOF
27002/* end confdefs.h. */
27003
27004int
27005main ()
27006{
27007
27008 ;
27009 return 0;
27010}
27011_ACEOF
27012rm -f conftest.$ac_objext conftest$ac_exeext
27013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27014 (eval $ac_link) 2>conftest.er1
a848cd7e 27015 ac_status=$?
ac1cb8d3
VS
27016 grep -v '^ *+' conftest.er1 >conftest.err
27017 rm -f conftest.er1
27018 cat conftest.err >&5
a848cd7e
SC
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); } &&
6ebeb4c7 27021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023 (eval $ac_try) 2>&5
27024 ac_status=$?
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); }; } &&
27027 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27029 (eval $ac_try) 2>&5
27030 ac_status=$?
27031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032 (exit $ac_status); }; }; then
27033 ac_R_space=yes
27034else
27035 echo "$as_me: failed program was:" >&5
27036sed 's/^/| /' conftest.$ac_ext >&5
27037
27038ac_R_space=no
27039fi
ac1cb8d3
VS
27040rm -f conftest.err conftest.$ac_objext \
27041 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27042 if test $ac_R_space = yes; then
27043 echo "$as_me:$LINENO: result: yes" >&5
27044echo "${ECHO_T}yes" >&6
27045 X_LIBS="$X_LIBS -R $x_libraries"
27046 else
27047 echo "$as_me:$LINENO: result: neither works" >&5
27048echo "${ECHO_T}neither works" >&6
27049 fi
27050 fi
27051 LIBS=$ac_xsave_LIBS
27052 esac
27053 fi
27054
27055 # Check for system-dependent libraries X programs must link with.
27056 # Do this before checking for the system-independent R6 libraries
27057 # (-lICE), since we may need -lsocket or whatever for X linking.
27058
27059 if test "$ISC" = yes; then
27060 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27061 else
27062 # Martyn Johnson says this is needed for Ultrix, if the X
27063 # libraries were built with DECnet support. And Karl Berry says
27064 # the Alpha needs dnet_stub (dnet does not exist).
27065 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27066 cat >conftest.$ac_ext <<_ACEOF
27067/* confdefs.h. */
27068_ACEOF
27069cat confdefs.h >>conftest.$ac_ext
27070cat >>conftest.$ac_ext <<_ACEOF
27071/* end confdefs.h. */
27072
27073/* Override any gcc2 internal prototype to avoid an error. */
27074#ifdef __cplusplus
27075extern "C"
27076#endif
27077/* We use char because int might match the return type of a gcc2
27078 builtin and then its argument prototype would still apply. */
27079char XOpenDisplay ();
27080int
27081main ()
27082{
27083XOpenDisplay ();
27084 ;
27085 return 0;
27086}
27087_ACEOF
27088rm -f conftest.$ac_objext conftest$ac_exeext
27089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27090 (eval $ac_link) 2>conftest.er1
a848cd7e 27091 ac_status=$?
ac1cb8d3
VS
27092 grep -v '^ *+' conftest.er1 >conftest.err
27093 rm -f conftest.er1
27094 cat conftest.err >&5
a848cd7e
SC
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); } &&
6ebeb4c7 27097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27099 (eval $ac_try) 2>&5
27100 ac_status=$?
27101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 (exit $ac_status); }; } &&
27103 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27105 (eval $ac_try) 2>&5
27106 ac_status=$?
27107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108 (exit $ac_status); }; }; then
27109 :
27110else
27111 echo "$as_me: failed program was:" >&5
27112sed 's/^/| /' conftest.$ac_ext >&5
27113
27114echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27115echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
27116if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27117 echo $ECHO_N "(cached) $ECHO_C" >&6
27118else
27119 ac_check_lib_save_LIBS=$LIBS
27120LIBS="-ldnet $LIBS"
27121cat >conftest.$ac_ext <<_ACEOF
27122/* confdefs.h. */
27123_ACEOF
27124cat confdefs.h >>conftest.$ac_ext
27125cat >>conftest.$ac_ext <<_ACEOF
27126/* end confdefs.h. */
27127
27128/* Override any gcc2 internal prototype to avoid an error. */
27129#ifdef __cplusplus
27130extern "C"
27131#endif
27132/* We use char because int might match the return type of a gcc2
27133 builtin and then its argument prototype would still apply. */
27134char dnet_ntoa ();
27135int
27136main ()
27137{
27138dnet_ntoa ();
27139 ;
27140 return 0;
27141}
27142_ACEOF
27143rm -f conftest.$ac_objext conftest$ac_exeext
27144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27145 (eval $ac_link) 2>conftest.er1
a848cd7e 27146 ac_status=$?
ac1cb8d3
VS
27147 grep -v '^ *+' conftest.er1 >conftest.err
27148 rm -f conftest.er1
27149 cat conftest.err >&5
a848cd7e
SC
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); } &&
6ebeb4c7 27152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27154 (eval $ac_try) 2>&5
27155 ac_status=$?
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); }; } &&
27158 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27160 (eval $ac_try) 2>&5
27161 ac_status=$?
27162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163 (exit $ac_status); }; }; then
27164 ac_cv_lib_dnet_dnet_ntoa=yes
27165else
27166 echo "$as_me: failed program was:" >&5
27167sed 's/^/| /' conftest.$ac_ext >&5
27168
27169ac_cv_lib_dnet_dnet_ntoa=no
27170fi
ac1cb8d3
VS
27171rm -f conftest.err conftest.$ac_objext \
27172 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27173LIBS=$ac_check_lib_save_LIBS
27174fi
27175echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27176echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
27177if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27178 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27179fi
27180
27181 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27182 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27183echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
27184if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27185 echo $ECHO_N "(cached) $ECHO_C" >&6
27186else
27187 ac_check_lib_save_LIBS=$LIBS
27188LIBS="-ldnet_stub $LIBS"
27189cat >conftest.$ac_ext <<_ACEOF
27190/* confdefs.h. */
27191_ACEOF
27192cat confdefs.h >>conftest.$ac_ext
27193cat >>conftest.$ac_ext <<_ACEOF
27194/* end confdefs.h. */
27195
27196/* Override any gcc2 internal prototype to avoid an error. */
27197#ifdef __cplusplus
27198extern "C"
27199#endif
27200/* We use char because int might match the return type of a gcc2
27201 builtin and then its argument prototype would still apply. */
27202char dnet_ntoa ();
27203int
27204main ()
27205{
27206dnet_ntoa ();
27207 ;
27208 return 0;
27209}
27210_ACEOF
27211rm -f conftest.$ac_objext conftest$ac_exeext
27212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27213 (eval $ac_link) 2>conftest.er1
a848cd7e 27214 ac_status=$?
ac1cb8d3
VS
27215 grep -v '^ *+' conftest.er1 >conftest.err
27216 rm -f conftest.er1
27217 cat conftest.err >&5
a848cd7e
SC
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); } &&
6ebeb4c7 27220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27222 (eval $ac_try) 2>&5
27223 ac_status=$?
27224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27225 (exit $ac_status); }; } &&
27226 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27228 (eval $ac_try) 2>&5
27229 ac_status=$?
27230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); }; }; then
27232 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27233else
27234 echo "$as_me: failed program was:" >&5
27235sed 's/^/| /' conftest.$ac_ext >&5
27236
27237ac_cv_lib_dnet_stub_dnet_ntoa=no
27238fi
ac1cb8d3
VS
27239rm -f conftest.err conftest.$ac_objext \
27240 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27241LIBS=$ac_check_lib_save_LIBS
27242fi
27243echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27244echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
27245if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27246 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27247fi
27248
27249 fi
27250fi
ac1cb8d3
VS
27251rm -f conftest.err conftest.$ac_objext \
27252 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27253 LIBS="$ac_xsave_LIBS"
27254
27255 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27256 # to get the SysV transport functions.
27257 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27258 # needs -lnsl.
27259 # The nsl library prevents programs from opening the X display
27260 # on Irix 5.2, according to T.E. Dickey.
27261 # The functions gethostbyname, getservbyname, and inet_addr are
27262 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27263 echo "$as_me:$LINENO: checking for gethostbyname" >&5
27264echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
27265if test "${ac_cv_func_gethostbyname+set}" = set; then
27266 echo $ECHO_N "(cached) $ECHO_C" >&6
27267else
27268 cat >conftest.$ac_ext <<_ACEOF
27269/* confdefs.h. */
27270_ACEOF
27271cat confdefs.h >>conftest.$ac_ext
27272cat >>conftest.$ac_ext <<_ACEOF
27273/* end confdefs.h. */
ac1cb8d3
VS
27274/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27276#define gethostbyname innocuous_gethostbyname
27277
a848cd7e
SC
27278/* System header to define __stub macros and hopefully few prototypes,
27279 which can conflict with char gethostbyname (); below.
27280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27281 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27282
a848cd7e
SC
27283#ifdef __STDC__
27284# include <limits.h>
27285#else
27286# include <assert.h>
27287#endif
ac1cb8d3
VS
27288
27289#undef gethostbyname
27290
a848cd7e
SC
27291/* Override any gcc2 internal prototype to avoid an error. */
27292#ifdef __cplusplus
27293extern "C"
27294{
27295#endif
27296/* We use char because int might match the return type of a gcc2
27297 builtin and then its argument prototype would still apply. */
27298char gethostbyname ();
27299/* The GNU C library defines this for functions which it implements
27300 to always fail with ENOSYS. Some functions are actually named
27301 something starting with __ and the normal name is an alias. */
27302#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
27303choke me
27304#else
27305char (*f) () = gethostbyname;
27306#endif
27307#ifdef __cplusplus
27308}
27309#endif
27310
27311int
27312main ()
27313{
27314return f != gethostbyname;
27315 ;
27316 return 0;
27317}
27318_ACEOF
27319rm -f conftest.$ac_objext conftest$ac_exeext
27320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27321 (eval $ac_link) 2>conftest.er1
a848cd7e 27322 ac_status=$?
ac1cb8d3
VS
27323 grep -v '^ *+' conftest.er1 >conftest.err
27324 rm -f conftest.er1
27325 cat conftest.err >&5
a848cd7e
SC
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); } &&
6ebeb4c7 27328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27330 (eval $ac_try) 2>&5
27331 ac_status=$?
27332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); }; } &&
27334 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27336 (eval $ac_try) 2>&5
27337 ac_status=$?
27338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339 (exit $ac_status); }; }; then
27340 ac_cv_func_gethostbyname=yes
27341else
27342 echo "$as_me: failed program was:" >&5
27343sed 's/^/| /' conftest.$ac_ext >&5
27344
27345ac_cv_func_gethostbyname=no
27346fi
ac1cb8d3
VS
27347rm -f conftest.err conftest.$ac_objext \
27348 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27349fi
27350echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
27351echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
27352
27353 if test $ac_cv_func_gethostbyname = no; then
27354 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
27355echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
27356if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
27357 echo $ECHO_N "(cached) $ECHO_C" >&6
27358else
27359 ac_check_lib_save_LIBS=$LIBS
27360LIBS="-lnsl $LIBS"
27361cat >conftest.$ac_ext <<_ACEOF
27362/* confdefs.h. */
27363_ACEOF
27364cat confdefs.h >>conftest.$ac_ext
27365cat >>conftest.$ac_ext <<_ACEOF
27366/* end confdefs.h. */
27367
27368/* Override any gcc2 internal prototype to avoid an error. */
27369#ifdef __cplusplus
27370extern "C"
27371#endif
27372/* We use char because int might match the return type of a gcc2
27373 builtin and then its argument prototype would still apply. */
27374char gethostbyname ();
27375int
27376main ()
27377{
27378gethostbyname ();
27379 ;
27380 return 0;
27381}
27382_ACEOF
27383rm -f conftest.$ac_objext conftest$ac_exeext
27384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
27385 (eval $ac_link) 2>conftest.er1
27386 ac_status=$?
27387 grep -v '^ *+' conftest.er1 >conftest.err
27388 rm -f conftest.er1
27389 cat conftest.err >&5
27390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391 (exit $ac_status); } &&
6ebeb4c7 27392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27394 (eval $ac_try) 2>&5
27395 ac_status=$?
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); }; } &&
27398 { ac_try='test -s conftest$ac_exeext'
27399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27400 (eval $ac_try) 2>&5
27401 ac_status=$?
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); }; }; then
27404 ac_cv_lib_nsl_gethostbyname=yes
27405else
27406 echo "$as_me: failed program was:" >&5
27407sed 's/^/| /' conftest.$ac_ext >&5
27408
27409ac_cv_lib_nsl_gethostbyname=no
27410fi
27411rm -f conftest.err conftest.$ac_objext \
27412 conftest$ac_exeext conftest.$ac_ext
27413LIBS=$ac_check_lib_save_LIBS
27414fi
27415echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
27416echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
27417if test $ac_cv_lib_nsl_gethostbyname = yes; then
27418 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27419fi
27420
27421 if test $ac_cv_lib_nsl_gethostbyname = no; then
27422 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
27423echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
27424if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
27425 echo $ECHO_N "(cached) $ECHO_C" >&6
27426else
27427 ac_check_lib_save_LIBS=$LIBS
27428LIBS="-lbsd $LIBS"
27429cat >conftest.$ac_ext <<_ACEOF
27430/* confdefs.h. */
27431_ACEOF
27432cat confdefs.h >>conftest.$ac_ext
27433cat >>conftest.$ac_ext <<_ACEOF
27434/* end confdefs.h. */
27435
27436/* Override any gcc2 internal prototype to avoid an error. */
27437#ifdef __cplusplus
27438extern "C"
27439#endif
27440/* We use char because int might match the return type of a gcc2
27441 builtin and then its argument prototype would still apply. */
27442char gethostbyname ();
27443int
27444main ()
27445{
27446gethostbyname ();
27447 ;
27448 return 0;
27449}
27450_ACEOF
27451rm -f conftest.$ac_objext conftest$ac_exeext
27452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27453 (eval $ac_link) 2>conftest.er1
a848cd7e 27454 ac_status=$?
ac1cb8d3
VS
27455 grep -v '^ *+' conftest.er1 >conftest.err
27456 rm -f conftest.er1
27457 cat conftest.err >&5
a848cd7e
SC
27458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459 (exit $ac_status); } &&
6ebeb4c7 27460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
27461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27462 (eval $ac_try) 2>&5
27463 ac_status=$?
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
27465 (exit $ac_status); }; } &&
27466 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27468 (eval $ac_try) 2>&5
27469 ac_status=$?
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); }; }; then
27472 ac_cv_lib_bsd_gethostbyname=yes
27473else
27474 echo "$as_me: failed program was:" >&5
27475sed 's/^/| /' conftest.$ac_ext >&5
27476
27477ac_cv_lib_bsd_gethostbyname=no
27478fi
ac1cb8d3
VS
27479rm -f conftest.err conftest.$ac_objext \
27480 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27481LIBS=$ac_check_lib_save_LIBS
27482fi
27483echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
27484echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
27485if test $ac_cv_lib_bsd_gethostbyname = yes; then
27486 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27487fi
27488
27489 fi
27490 fi
27491
27492 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27493 # socket/setsockopt and other routines are undefined under SCO ODT
27494 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27495 # on later versions), says Simon Leinen: it contains gethostby*
27496 # variants that don't use the name server (or something). -lsocket
27497 # must be given before -lnsl if both are needed. We assume that
27498 # if connect needs -lnsl, so does gethostbyname.
27499 echo "$as_me:$LINENO: checking for connect" >&5
27500echo $ECHO_N "checking for connect... $ECHO_C" >&6
27501if test "${ac_cv_func_connect+set}" = set; then
27502 echo $ECHO_N "(cached) $ECHO_C" >&6
27503else
27504 cat >conftest.$ac_ext <<_ACEOF
27505/* confdefs.h. */
27506_ACEOF
27507cat confdefs.h >>conftest.$ac_ext
27508cat >>conftest.$ac_ext <<_ACEOF
27509/* end confdefs.h. */
ac1cb8d3
VS
27510/* Define connect to an innocuous variant, in case <limits.h> declares connect.
27511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27512#define connect innocuous_connect
27513
a848cd7e
SC
27514/* System header to define __stub macros and hopefully few prototypes,
27515 which can conflict with char connect (); below.
27516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27517 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27518
a848cd7e
SC
27519#ifdef __STDC__
27520# include <limits.h>
27521#else
27522# include <assert.h>
27523#endif
ac1cb8d3
VS
27524
27525#undef connect
27526
a848cd7e
SC
27527/* Override any gcc2 internal prototype to avoid an error. */
27528#ifdef __cplusplus
27529extern "C"
27530{
27531#endif
27532/* We use char because int might match the return type of a gcc2
27533 builtin and then its argument prototype would still apply. */
27534char connect ();
27535/* The GNU C library defines this for functions which it implements
27536 to always fail with ENOSYS. Some functions are actually named
27537 something starting with __ and the normal name is an alias. */
27538#if defined (__stub_connect) || defined (__stub___connect)
27539choke me
27540#else
27541char (*f) () = connect;
27542#endif
27543#ifdef __cplusplus
27544}
27545#endif
27546
27547int
27548main ()
27549{
27550return f != connect;
27551 ;
27552 return 0;
27553}
27554_ACEOF
27555rm -f conftest.$ac_objext conftest$ac_exeext
27556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27557 (eval $ac_link) 2>conftest.er1
a848cd7e 27558 ac_status=$?
ac1cb8d3
VS
27559 grep -v '^ *+' conftest.er1 >conftest.err
27560 rm -f conftest.er1
27561 cat conftest.err >&5
a848cd7e
SC
27562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27563 (exit $ac_status); } &&
6ebeb4c7 27564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27566 (eval $ac_try) 2>&5
27567 ac_status=$?
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); }; } &&
27570 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27572 (eval $ac_try) 2>&5
27573 ac_status=$?
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); }; }; then
27576 ac_cv_func_connect=yes
27577else
27578 echo "$as_me: failed program was:" >&5
27579sed 's/^/| /' conftest.$ac_ext >&5
27580
27581ac_cv_func_connect=no
27582fi
ac1cb8d3
VS
27583rm -f conftest.err conftest.$ac_objext \
27584 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27585fi
27586echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27587echo "${ECHO_T}$ac_cv_func_connect" >&6
27588
27589 if test $ac_cv_func_connect = no; then
27590 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27591echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27592if test "${ac_cv_lib_socket_connect+set}" = set; then
27593 echo $ECHO_N "(cached) $ECHO_C" >&6
27594else
27595 ac_check_lib_save_LIBS=$LIBS
27596LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27597cat >conftest.$ac_ext <<_ACEOF
27598/* confdefs.h. */
27599_ACEOF
27600cat confdefs.h >>conftest.$ac_ext
27601cat >>conftest.$ac_ext <<_ACEOF
27602/* end confdefs.h. */
27603
27604/* Override any gcc2 internal prototype to avoid an error. */
27605#ifdef __cplusplus
27606extern "C"
27607#endif
27608/* We use char because int might match the return type of a gcc2
27609 builtin and then its argument prototype would still apply. */
27610char connect ();
27611int
27612main ()
27613{
27614connect ();
27615 ;
27616 return 0;
27617}
27618_ACEOF
27619rm -f conftest.$ac_objext conftest$ac_exeext
27620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27621 (eval $ac_link) 2>conftest.er1
a848cd7e 27622 ac_status=$?
ac1cb8d3
VS
27623 grep -v '^ *+' conftest.er1 >conftest.err
27624 rm -f conftest.er1
27625 cat conftest.err >&5
a848cd7e
SC
27626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627 (exit $ac_status); } &&
6ebeb4c7 27628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27630 (eval $ac_try) 2>&5
27631 ac_status=$?
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); }; } &&
27634 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636 (eval $ac_try) 2>&5
27637 ac_status=$?
27638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); }; }; then
27640 ac_cv_lib_socket_connect=yes
27641else
27642 echo "$as_me: failed program was:" >&5
27643sed 's/^/| /' conftest.$ac_ext >&5
27644
27645ac_cv_lib_socket_connect=no
27646fi
ac1cb8d3
VS
27647rm -f conftest.err conftest.$ac_objext \
27648 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27649LIBS=$ac_check_lib_save_LIBS
27650fi
27651echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27652echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27653if test $ac_cv_lib_socket_connect = yes; then
27654 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27655fi
27656
27657 fi
27658
27659 # Guillermo Gomez says -lposix is necessary on A/UX.
27660 echo "$as_me:$LINENO: checking for remove" >&5
27661echo $ECHO_N "checking for remove... $ECHO_C" >&6
27662if test "${ac_cv_func_remove+set}" = set; then
27663 echo $ECHO_N "(cached) $ECHO_C" >&6
27664else
27665 cat >conftest.$ac_ext <<_ACEOF
27666/* confdefs.h. */
27667_ACEOF
27668cat confdefs.h >>conftest.$ac_ext
27669cat >>conftest.$ac_ext <<_ACEOF
27670/* end confdefs.h. */
ac1cb8d3
VS
27671/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27673#define remove innocuous_remove
27674
a848cd7e
SC
27675/* System header to define __stub macros and hopefully few prototypes,
27676 which can conflict with char remove (); below.
27677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27678 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27679
a848cd7e
SC
27680#ifdef __STDC__
27681# include <limits.h>
27682#else
27683# include <assert.h>
27684#endif
ac1cb8d3
VS
27685
27686#undef remove
27687
a848cd7e
SC
27688/* Override any gcc2 internal prototype to avoid an error. */
27689#ifdef __cplusplus
27690extern "C"
27691{
27692#endif
27693/* We use char because int might match the return type of a gcc2
27694 builtin and then its argument prototype would still apply. */
27695char remove ();
27696/* The GNU C library defines this for functions which it implements
27697 to always fail with ENOSYS. Some functions are actually named
27698 something starting with __ and the normal name is an alias. */
27699#if defined (__stub_remove) || defined (__stub___remove)
27700choke me
27701#else
27702char (*f) () = remove;
27703#endif
27704#ifdef __cplusplus
27705}
27706#endif
27707
27708int
27709main ()
27710{
27711return f != remove;
27712 ;
27713 return 0;
27714}
27715_ACEOF
27716rm -f conftest.$ac_objext conftest$ac_exeext
27717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27718 (eval $ac_link) 2>conftest.er1
a848cd7e 27719 ac_status=$?
ac1cb8d3
VS
27720 grep -v '^ *+' conftest.er1 >conftest.err
27721 rm -f conftest.er1
27722 cat conftest.err >&5
a848cd7e
SC
27723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724 (exit $ac_status); } &&
6ebeb4c7 27725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27727 (eval $ac_try) 2>&5
27728 ac_status=$?
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); }; } &&
27731 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27733 (eval $ac_try) 2>&5
27734 ac_status=$?
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); }; }; then
27737 ac_cv_func_remove=yes
27738else
27739 echo "$as_me: failed program was:" >&5
27740sed 's/^/| /' conftest.$ac_ext >&5
27741
27742ac_cv_func_remove=no
27743fi
ac1cb8d3
VS
27744rm -f conftest.err conftest.$ac_objext \
27745 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27746fi
27747echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27748echo "${ECHO_T}$ac_cv_func_remove" >&6
27749
27750 if test $ac_cv_func_remove = no; then
27751 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27752echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27753if test "${ac_cv_lib_posix_remove+set}" = set; then
27754 echo $ECHO_N "(cached) $ECHO_C" >&6
27755else
27756 ac_check_lib_save_LIBS=$LIBS
27757LIBS="-lposix $LIBS"
27758cat >conftest.$ac_ext <<_ACEOF
27759/* confdefs.h. */
27760_ACEOF
27761cat confdefs.h >>conftest.$ac_ext
27762cat >>conftest.$ac_ext <<_ACEOF
27763/* end confdefs.h. */
27764
27765/* Override any gcc2 internal prototype to avoid an error. */
27766#ifdef __cplusplus
27767extern "C"
27768#endif
27769/* We use char because int might match the return type of a gcc2
27770 builtin and then its argument prototype would still apply. */
27771char remove ();
27772int
27773main ()
27774{
27775remove ();
27776 ;
27777 return 0;
27778}
27779_ACEOF
27780rm -f conftest.$ac_objext conftest$ac_exeext
27781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27782 (eval $ac_link) 2>conftest.er1
a848cd7e 27783 ac_status=$?
ac1cb8d3
VS
27784 grep -v '^ *+' conftest.er1 >conftest.err
27785 rm -f conftest.er1
27786 cat conftest.err >&5
a848cd7e
SC
27787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788 (exit $ac_status); } &&
6ebeb4c7 27789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27791 (eval $ac_try) 2>&5
27792 ac_status=$?
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); }; } &&
27795 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27797 (eval $ac_try) 2>&5
27798 ac_status=$?
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); }; }; then
27801 ac_cv_lib_posix_remove=yes
27802else
27803 echo "$as_me: failed program was:" >&5
27804sed 's/^/| /' conftest.$ac_ext >&5
27805
27806ac_cv_lib_posix_remove=no
27807fi
ac1cb8d3
VS
27808rm -f conftest.err conftest.$ac_objext \
27809 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27810LIBS=$ac_check_lib_save_LIBS
27811fi
27812echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27813echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27814if test $ac_cv_lib_posix_remove = yes; then
27815 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27816fi
27817
27818 fi
27819
27820 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27821 echo "$as_me:$LINENO: checking for shmat" >&5
27822echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27823if test "${ac_cv_func_shmat+set}" = set; then
27824 echo $ECHO_N "(cached) $ECHO_C" >&6
27825else
27826 cat >conftest.$ac_ext <<_ACEOF
27827/* confdefs.h. */
27828_ACEOF
27829cat confdefs.h >>conftest.$ac_ext
27830cat >>conftest.$ac_ext <<_ACEOF
27831/* end confdefs.h. */
ac1cb8d3
VS
27832/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27834#define shmat innocuous_shmat
27835
a848cd7e
SC
27836/* System header to define __stub macros and hopefully few prototypes,
27837 which can conflict with char shmat (); below.
27838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27839 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27840
a848cd7e
SC
27841#ifdef __STDC__
27842# include <limits.h>
27843#else
27844# include <assert.h>
27845#endif
ac1cb8d3
VS
27846
27847#undef shmat
27848
a848cd7e
SC
27849/* Override any gcc2 internal prototype to avoid an error. */
27850#ifdef __cplusplus
27851extern "C"
27852{
27853#endif
27854/* We use char because int might match the return type of a gcc2
27855 builtin and then its argument prototype would still apply. */
27856char shmat ();
27857/* The GNU C library defines this for functions which it implements
27858 to always fail with ENOSYS. Some functions are actually named
27859 something starting with __ and the normal name is an alias. */
27860#if defined (__stub_shmat) || defined (__stub___shmat)
27861choke me
27862#else
27863char (*f) () = shmat;
27864#endif
27865#ifdef __cplusplus
27866}
27867#endif
27868
27869int
27870main ()
27871{
27872return f != shmat;
27873 ;
27874 return 0;
27875}
27876_ACEOF
27877rm -f conftest.$ac_objext conftest$ac_exeext
27878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27879 (eval $ac_link) 2>conftest.er1
a848cd7e 27880 ac_status=$?
ac1cb8d3
VS
27881 grep -v '^ *+' conftest.er1 >conftest.err
27882 rm -f conftest.er1
27883 cat conftest.err >&5
a848cd7e
SC
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); } &&
6ebeb4c7 27886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27888 (eval $ac_try) 2>&5
27889 ac_status=$?
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; } &&
27892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27894 (eval $ac_try) 2>&5
27895 ac_status=$?
27896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); }; }; then
27898 ac_cv_func_shmat=yes
27899else
27900 echo "$as_me: failed program was:" >&5
27901sed 's/^/| /' conftest.$ac_ext >&5
27902
27903ac_cv_func_shmat=no
27904fi
ac1cb8d3
VS
27905rm -f conftest.err conftest.$ac_objext \
27906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27907fi
27908echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27909echo "${ECHO_T}$ac_cv_func_shmat" >&6
27910
27911 if test $ac_cv_func_shmat = no; then
27912 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27913echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27914if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27915 echo $ECHO_N "(cached) $ECHO_C" >&6
27916else
27917 ac_check_lib_save_LIBS=$LIBS
27918LIBS="-lipc $LIBS"
27919cat >conftest.$ac_ext <<_ACEOF
27920/* confdefs.h. */
27921_ACEOF
27922cat confdefs.h >>conftest.$ac_ext
27923cat >>conftest.$ac_ext <<_ACEOF
27924/* end confdefs.h. */
27925
27926/* Override any gcc2 internal prototype to avoid an error. */
27927#ifdef __cplusplus
27928extern "C"
27929#endif
27930/* We use char because int might match the return type of a gcc2
27931 builtin and then its argument prototype would still apply. */
27932char shmat ();
27933int
27934main ()
27935{
27936shmat ();
27937 ;
27938 return 0;
27939}
27940_ACEOF
27941rm -f conftest.$ac_objext conftest$ac_exeext
27942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27943 (eval $ac_link) 2>conftest.er1
a848cd7e 27944 ac_status=$?
ac1cb8d3
VS
27945 grep -v '^ *+' conftest.er1 >conftest.err
27946 rm -f conftest.er1
27947 cat conftest.err >&5
a848cd7e
SC
27948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949 (exit $ac_status); } &&
6ebeb4c7 27950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27952 (eval $ac_try) 2>&5
27953 ac_status=$?
27954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); }; } &&
27956 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27958 (eval $ac_try) 2>&5
27959 ac_status=$?
27960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961 (exit $ac_status); }; }; then
27962 ac_cv_lib_ipc_shmat=yes
27963else
27964 echo "$as_me: failed program was:" >&5
27965sed 's/^/| /' conftest.$ac_ext >&5
27966
27967ac_cv_lib_ipc_shmat=no
27968fi
ac1cb8d3
VS
27969rm -f conftest.err conftest.$ac_objext \
27970 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27971LIBS=$ac_check_lib_save_LIBS
27972fi
27973echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27974echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27975if test $ac_cv_lib_ipc_shmat = yes; then
27976 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27977fi
27978
27979 fi
27980 fi
27981
27982 # Check for libraries that X11R6 Xt/Xaw programs need.
27983 ac_save_LDFLAGS=$LDFLAGS
27984 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27985 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27986 # check for ICE first), but we must link in the order -lSM -lICE or
27987 # we get undefined symbols. So assume we have SM if we have ICE.
27988 # These have to be linked with before -lX11, unlike the other
27989 # libraries we check for below, so use a different variable.
27990 # John Interrante, Karl Berry
27991 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27992echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27993if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27994 echo $ECHO_N "(cached) $ECHO_C" >&6
27995else
27996 ac_check_lib_save_LIBS=$LIBS
27997LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27998cat >conftest.$ac_ext <<_ACEOF
27999/* confdefs.h. */
28000_ACEOF
28001cat confdefs.h >>conftest.$ac_ext
28002cat >>conftest.$ac_ext <<_ACEOF
28003/* end confdefs.h. */
28004
28005/* Override any gcc2 internal prototype to avoid an error. */
28006#ifdef __cplusplus
28007extern "C"
28008#endif
28009/* We use char because int might match the return type of a gcc2
28010 builtin and then its argument prototype would still apply. */
28011char IceConnectionNumber ();
28012int
28013main ()
28014{
28015IceConnectionNumber ();
28016 ;
28017 return 0;
28018}
28019_ACEOF
28020rm -f conftest.$ac_objext conftest$ac_exeext
28021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28022 (eval $ac_link) 2>conftest.er1
a848cd7e 28023 ac_status=$?
ac1cb8d3
VS
28024 grep -v '^ *+' conftest.er1 >conftest.err
28025 rm -f conftest.er1
28026 cat conftest.err >&5
a848cd7e
SC
28027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028 (exit $ac_status); } &&
6ebeb4c7 28029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28031 (eval $ac_try) 2>&5
28032 ac_status=$?
28033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034 (exit $ac_status); }; } &&
28035 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28037 (eval $ac_try) 2>&5
28038 ac_status=$?
28039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040 (exit $ac_status); }; }; then
28041 ac_cv_lib_ICE_IceConnectionNumber=yes
28042else
28043 echo "$as_me: failed program was:" >&5
28044sed 's/^/| /' conftest.$ac_ext >&5
28045
28046ac_cv_lib_ICE_IceConnectionNumber=no
28047fi
ac1cb8d3
VS
28048rm -f conftest.err conftest.$ac_objext \
28049 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28050LIBS=$ac_check_lib_save_LIBS
28051fi
28052echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28053echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28054if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28055 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28056fi
28057
28058 LDFLAGS=$ac_save_LDFLAGS
28059
28060fi
28061
28062
28063 if test "$no_x" = "yes"; then
28064 { { echo "$as_me:$LINENO: error: X11 not found" >&5
28065echo "$as_me: error: X11 not found" >&2;}
28066 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
28067 fi
28068
74b84332
VS
28069 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
28070 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
28071 AFMINSTALL=afminstall
28072 COMPILED_X_PROGRAM=0
28073
74b84332
VS
28074 fi
28075
28076 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
28077 if test "$wxUSE_NANOX" = "yes"; then
28078 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
28079echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
28080 if test "x$MICROWIN" = x ; then
28081 echo "$as_me:$LINENO: result: not found" >&5
28082echo "${ECHO_T}not found" >&6
28083 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
28084echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
28085 { (exit 1); exit 1; }; }
28086 else
28087 echo "$as_me:$LINENO: result: $MICROWIN" >&5
28088echo "${ECHO_T}$MICROWIN" >&6
28089 cat >>confdefs.h <<\_ACEOF
28090#define wxUSE_NANOX 1
28091_ACEOF
28092
28093 fi
28094 fi
28095
28096 if test "$wxUSE_UNICODE" = "yes"; then
28097
28098 succeeded=no
28099
28100 if test -z "$PKG_CONFIG"; then
28101 # Extract the first word of "pkg-config", so it can be a program name with args.
28102set dummy pkg-config; ac_word=$2
28103echo "$as_me:$LINENO: checking for $ac_word" >&5
28104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28105if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28106 echo $ECHO_N "(cached) $ECHO_C" >&6
28107else
28108 case $PKG_CONFIG in
28109 [\\/]* | ?:[\\/]*)
28110 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28111 ;;
28112 *)
28113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28114for as_dir in $PATH
28115do
28116 IFS=$as_save_IFS
28117 test -z "$as_dir" && as_dir=.
28118 for ac_exec_ext in '' $ac_executable_extensions; do
28119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28120 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28122 break 2
28123 fi
28124done
28125done
28126
28127 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28128 ;;
28129esac
28130fi
28131PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28132
28133if test -n "$PKG_CONFIG"; then
28134 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28135echo "${ECHO_T}$PKG_CONFIG" >&6
28136else
28137 echo "$as_me:$LINENO: result: no" >&5
28138echo "${ECHO_T}no" >&6
28139fi
28140
28141 fi
28142
28143 if test "$PKG_CONFIG" = "no" ; then
28144 echo "*** The pkg-config script could not be found. Make sure it is"
28145 echo "*** in your path, or set the PKG_CONFIG environment variable"
28146 echo "*** to the full path to pkg-config."
28147 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28148 else
28149 PKG_CONFIG_MIN_VERSION=0.9.0
28150 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28151 echo "$as_me:$LINENO: checking for pangox" >&5
28152echo $ECHO_N "checking for pangox... $ECHO_C" >&6
28153
28154 if $PKG_CONFIG --exists "pangox" ; then
28155 echo "$as_me:$LINENO: result: yes" >&5
28156echo "${ECHO_T}yes" >&6
28157 succeeded=yes
28158
28159 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
28160echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
28161 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
28162 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
28163echo "${ECHO_T}$PANGOX_CFLAGS" >&6
28164
28165 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
28166echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
28167 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
28168 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
28169echo "${ECHO_T}$PANGOX_LIBS" >&6
28170 else
28171 PANGOX_CFLAGS=""
28172 PANGOX_LIBS=""
28173 ## If we have a custom action on failure, don't print errors, but
28174 ## do set a variable so people can do so.
28175 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
28176
28177 fi
28178
28179
28180
28181 else
28182 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28183 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28184 fi
28185 fi
28186
28187 if test $succeeded = yes; then
28188
28189 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
28190 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
28191
28192 else
28193
28194 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
28195echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
28196 { (exit 1); exit 1; }; }
28197
28198
28199 fi
28200
28201
28202 succeeded=no
28203
28204 if test -z "$PKG_CONFIG"; then
28205 # Extract the first word of "pkg-config", so it can be a program name with args.
28206set dummy pkg-config; ac_word=$2
28207echo "$as_me:$LINENO: checking for $ac_word" >&5
28208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28209if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28210 echo $ECHO_N "(cached) $ECHO_C" >&6
28211else
28212 case $PKG_CONFIG in
28213 [\\/]* | ?:[\\/]*)
28214 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28215 ;;
28216 *)
28217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28218for as_dir in $PATH
28219do
28220 IFS=$as_save_IFS
28221 test -z "$as_dir" && as_dir=.
28222 for ac_exec_ext in '' $ac_executable_extensions; do
28223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28224 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28226 break 2
28227 fi
28228done
28229done
28230
28231 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28232 ;;
28233esac
28234fi
28235PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28236
28237if test -n "$PKG_CONFIG"; then
28238 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28239echo "${ECHO_T}$PKG_CONFIG" >&6
28240else
28241 echo "$as_me:$LINENO: result: no" >&5
28242echo "${ECHO_T}no" >&6
28243fi
28244
28245 fi
28246
28247 if test "$PKG_CONFIG" = "no" ; then
28248 echo "*** The pkg-config script could not be found. Make sure it is"
28249 echo "*** in your path, or set the PKG_CONFIG environment variable"
28250 echo "*** to the full path to pkg-config."
28251 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28252 else
28253 PKG_CONFIG_MIN_VERSION=0.9.0
28254 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28255 echo "$as_me:$LINENO: checking for pangoft2" >&5
28256echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
28257
28258 if $PKG_CONFIG --exists "pangoft2" ; then
28259 echo "$as_me:$LINENO: result: yes" >&5
28260echo "${ECHO_T}yes" >&6
28261 succeeded=yes
28262
28263 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
28264echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
28265 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
28266 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
28267echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
28268
28269 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
28270echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
28271 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
28272 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
28273echo "${ECHO_T}$PANGOFT2_LIBS" >&6
28274 else
28275 PANGOFT2_CFLAGS=""
28276 PANGOFT2_LIBS=""
28277 ## If we have a custom action on failure, don't print errors, but
28278 ## do set a variable so people can do so.
28279 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
28280
28281 fi
28282
28283
28284
28285 else
28286 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28287 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28288 fi
28289 fi
28290
28291 if test $succeeded = yes; then
28292
28293 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
28294 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
28295
28296 else
28297
28298 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
28299echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
28300 wxUSE_PRINTING_ARCHITECTURE="no"
28301
28302
28303 fi
28304
28305
28306 succeeded=no
28307
28308 if test -z "$PKG_CONFIG"; then
28309 # Extract the first word of "pkg-config", so it can be a program name with args.
28310set dummy pkg-config; ac_word=$2
28311echo "$as_me:$LINENO: checking for $ac_word" >&5
28312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28313if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28314 echo $ECHO_N "(cached) $ECHO_C" >&6
28315else
28316 case $PKG_CONFIG in
28317 [\\/]* | ?:[\\/]*)
28318 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28319 ;;
28320 *)
28321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28322for as_dir in $PATH
28323do
28324 IFS=$as_save_IFS
28325 test -z "$as_dir" && as_dir=.
28326 for ac_exec_ext in '' $ac_executable_extensions; do
28327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28328 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28330 break 2
28331 fi
28332done
28333done
28334
28335 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28336 ;;
28337esac
28338fi
28339PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28340
28341if test -n "$PKG_CONFIG"; then
28342 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28343echo "${ECHO_T}$PKG_CONFIG" >&6
28344else
28345 echo "$as_me:$LINENO: result: no" >&5
28346echo "${ECHO_T}no" >&6
28347fi
28348
28349 fi
28350
28351 if test "$PKG_CONFIG" = "no" ; then
28352 echo "*** The pkg-config script could not be found. Make sure it is"
28353 echo "*** in your path, or set the PKG_CONFIG environment variable"
28354 echo "*** to the full path to pkg-config."
28355 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28356 else
28357 PKG_CONFIG_MIN_VERSION=0.9.0
28358 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28359 echo "$as_me:$LINENO: checking for pangoxft" >&5
28360echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
28361
28362 if $PKG_CONFIG --exists "pangoxft" ; then
28363 echo "$as_me:$LINENO: result: yes" >&5
28364echo "${ECHO_T}yes" >&6
28365 succeeded=yes
28366
28367 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
28368echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
28369 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
28370 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
28371echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
28372
28373 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
28374echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
28375 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
28376 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
28377echo "${ECHO_T}$PANGOXFT_LIBS" >&6
28378 else
28379 PANGOXFT_CFLAGS=""
28380 PANGOXFT_LIBS=""
28381 ## If we have a custom action on failure, don't print errors, but
28382 ## do set a variable so people can do so.
28383 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
28384
28385 fi
28386
28387
28388
28389 else
28390 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28391 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28392 fi
28393 fi
28394
28395 if test $succeeded = yes; then
28396
4ae1af05
MB
28397 cat >>confdefs.h <<\_ACEOF
28398#define HAVE_PANGO_XFT 1
28399_ACEOF
28400
a848cd7e
SC
28401 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
28402 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
28403
28404 else
28405
28406 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
28407echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
28408
28409
28410 fi
28411
304205f1
VS
28412 save_CFLAGS="$CFLAGS"
28413 save_LIBS="$LIBS"
28414 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
28415 LIBS="$LIBS $PANGOX_LIBS"
28416
28417for ac_func in pango_font_family_is_monospace
28418do
28419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28420echo "$as_me:$LINENO: checking for $ac_func" >&5
28421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28422if eval "test \"\${$as_ac_var+set}\" = set"; then
28423 echo $ECHO_N "(cached) $ECHO_C" >&6
28424else
28425 cat >conftest.$ac_ext <<_ACEOF
28426/* confdefs.h. */
28427_ACEOF
28428cat confdefs.h >>conftest.$ac_ext
28429cat >>conftest.$ac_ext <<_ACEOF
28430/* end confdefs.h. */
28431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28433#define $ac_func innocuous_$ac_func
28434
28435/* System header to define __stub macros and hopefully few prototypes,
28436 which can conflict with char $ac_func (); below.
28437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28438 <limits.h> exists even on freestanding compilers. */
28439
28440#ifdef __STDC__
28441# include <limits.h>
28442#else
28443# include <assert.h>
28444#endif
28445
28446#undef $ac_func
28447
28448/* Override any gcc2 internal prototype to avoid an error. */
28449#ifdef __cplusplus
28450extern "C"
28451{
28452#endif
28453/* We use char because int might match the return type of a gcc2
28454 builtin and then its argument prototype would still apply. */
28455char $ac_func ();
28456/* The GNU C library defines this for functions which it implements
28457 to always fail with ENOSYS. Some functions are actually named
28458 something starting with __ and the normal name is an alias. */
28459#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28460choke me
28461#else
28462char (*f) () = $ac_func;
28463#endif
28464#ifdef __cplusplus
28465}
28466#endif
28467
28468int
28469main ()
28470{
28471return f != $ac_func;
28472 ;
28473 return 0;
28474}
28475_ACEOF
28476rm -f conftest.$ac_objext conftest$ac_exeext
28477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28478 (eval $ac_link) 2>conftest.er1
28479 ac_status=$?
28480 grep -v '^ *+' conftest.er1 >conftest.err
28481 rm -f conftest.er1
28482 cat conftest.err >&5
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); } &&
6ebeb4c7 28485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
28486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28487 (eval $ac_try) 2>&5
28488 ac_status=$?
28489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490 (exit $ac_status); }; } &&
28491 { ac_try='test -s conftest$ac_exeext'
28492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28493 (eval $ac_try) 2>&5
28494 ac_status=$?
28495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496 (exit $ac_status); }; }; then
28497 eval "$as_ac_var=yes"
28498else
28499 echo "$as_me: failed program was:" >&5
28500sed 's/^/| /' conftest.$ac_ext >&5
28501
28502eval "$as_ac_var=no"
28503fi
28504rm -f conftest.err conftest.$ac_objext \
28505 conftest$ac_exeext conftest.$ac_ext
28506fi
28507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28508echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28509if test `eval echo '${'$as_ac_var'}'` = yes; then
28510 cat >>confdefs.h <<_ACEOF
28511#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28512_ACEOF
28513
28514fi
28515done
28516
28517 CFLAGS="$save_CFLAGS"
28518 LIBS="$save_LIBS"
a848cd7e
SC
28519 fi
28520
28521 wxUSE_UNIVERSAL="yes"
28522
28523 if test "$wxUSE_NANOX" = "yes"; then
28524 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
28525 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"
28526 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
28527 else
28528 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
28529 fi
28530
a848cd7e
SC
28531 TOOLKIT=X11
28532 GUIDIST=X11_DIST
28533 fi
28534
28535 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28536 if test "$wxUSE_UNICODE" = "yes"; then
28537 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28538echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28539 { (exit 1); exit 1; }; }
28540 fi
28541
74b84332
VS
28542 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28543echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28544
74b84332
VS
28545ac_find_includes=
28546for ac_dir in $SEARCH_INCLUDE /usr/include;
28547 do
28548 if test -f "$ac_dir/Xm/Xm.h"; then
28549 ac_find_includes=$ac_dir
28550 break
28551 fi
28552 done
a848cd7e 28553
74b84332
VS
28554 if test "$ac_find_includes" != "" ; then
28555 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28556echo "${ECHO_T}found in $ac_find_includes" >&6
28557
28558 if test "x$ac_find_includes" = "x/usr/include"; then
28559 ac_path_to_include=""
28560 else
28561 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28562 result=$?
28563 if test $result = 0; then
28564 ac_path_to_include=""
28565 else
28566 ac_path_to_include=" -I$ac_find_includes"
28567 fi
a848cd7e
SC
28568 fi
28569
74b84332
VS
28570 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28571 else
e051b34e
MW
28572 save_CFLAGS=$CFLAGS
28573 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28574
74b84332 28575 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28576/* confdefs.h. */
28577_ACEOF
28578cat confdefs.h >>conftest.$ac_ext
28579cat >>conftest.$ac_ext <<_ACEOF
28580/* end confdefs.h. */
28581
74b84332
VS
28582 #include <Xm/Xm.h>
28583
a848cd7e
SC
28584int
28585main ()
28586{
28587
74b84332
VS
28588 int version;
28589 version = xmUseVersion;
28590
a848cd7e
SC
28591 ;
28592 return 0;
28593}
28594_ACEOF
74b84332
VS
28595rm -f conftest.$ac_objext
28596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28597 (eval $ac_compile) 2>conftest.er1
a848cd7e 28598 ac_status=$?
ac1cb8d3
VS
28599 grep -v '^ *+' conftest.er1 >conftest.err
28600 rm -f conftest.er1
28601 cat conftest.err >&5
a848cd7e
SC
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); } &&
6ebeb4c7 28604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28606 (eval $ac_try) 2>&5
28607 ac_status=$?
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; } &&
74b84332 28610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28612 (eval $ac_try) 2>&5
28613 ac_status=$?
28614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615 (exit $ac_status); }; }; then
74b84332
VS
28616
28617 echo "$as_me:$LINENO: result: found in default search path" >&5
28618echo "${ECHO_T}found in default search path" >&6
28619 COMPILED_X_PROGRAM=1
28620
a848cd7e
SC
28621else
28622 echo "$as_me: failed program was:" >&5
28623sed 's/^/| /' conftest.$ac_ext >&5
28624
a848cd7e 28625
74b84332
VS
28626 echo "$as_me:$LINENO: result: no" >&5
28627echo "${ECHO_T}no" >&6
e051b34e
MW
28628 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
28629echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 28630 { (exit 1); exit 1; }; }
a848cd7e 28631
a848cd7e 28632
a848cd7e 28633fi
74b84332 28634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
28635
28636 CFLAGS=$save_CFLAGS
74b84332
VS
28637 fi
28638
0ad5d837
VZ
28639
28640 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
28641echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28642
0ad5d837
VZ
28643 ac_find_libraries=
28644 for ac_dir in $SEARCH_LIB;
74b84332 28645 do
3eca31dc 28646 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
28647 if test -f "$ac_dir/libXm.$ac_extension"; then
28648 ac_find_libraries=$ac_dir
28649 break 2
a848cd7e 28650 fi
74b84332
VS
28651 done
28652 done
a848cd7e 28653
0ad5d837
VZ
28654
28655 if test "x$ac_find_libraries" != "x" ; then
28656 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28657echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 28658
74b84332 28659
0ad5d837 28660 if test "$ac_find_libraries" = "default location"; then
74b84332 28661 ac_path_to_link=""
a848cd7e 28662 else
0ad5d837
VZ
28663 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28664 result=$?
28665 if test $result = 0; then
28666 ac_path_to_link=""
28667 else
28668 ac_path_to_link=" -L$ac_find_libraries"
28669 fi
74b84332
VS
28670 fi
28671
0ad5d837
VZ
28672 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28673 else
28674 save_CFLAGS=$CFLAGS
28675 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
6f9cf1e6
MW
28676 save_LIBS="$LIBS"
28677 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 28678
0ad5d837 28679 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28680/* confdefs.h. */
28681_ACEOF
28682cat confdefs.h >>conftest.$ac_ext
28683cat >>conftest.$ac_ext <<_ACEOF
28684/* end confdefs.h. */
28685
0ad5d837 28686 #include <Xm/Xm.h>
74b84332 28687
a848cd7e
SC
28688int
28689main ()
28690{
74b84332 28691
0ad5d837
VZ
28692 int version;
28693 version = xmUseVersion;
74b84332 28694
a848cd7e
SC
28695 ;
28696 return 0;
28697}
28698_ACEOF
0ad5d837
VZ
28699rm -f conftest.$ac_objext conftest$ac_exeext
28700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28701 (eval $ac_link) 2>conftest.er1
a848cd7e 28702 ac_status=$?
ac1cb8d3
VS
28703 grep -v '^ *+' conftest.er1 >conftest.err
28704 rm -f conftest.er1
28705 cat conftest.err >&5
a848cd7e
SC
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); } &&
6ebeb4c7 28708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28710 (eval $ac_try) 2>&5
28711 ac_status=$?
28712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713 (exit $ac_status); }; } &&
0ad5d837 28714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28716 (eval $ac_try) 2>&5
28717 ac_status=$?
28718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719 (exit $ac_status); }; }; then
74b84332 28720
0ad5d837 28721 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 28722echo "${ECHO_T}found in default search path" >&6
0ad5d837 28723 COMPILED_X_PROGRAM=1
74b84332 28724
a848cd7e
SC
28725else
28726 echo "$as_me: failed program was:" >&5
28727sed 's/^/| /' conftest.$ac_ext >&5
28728
74b84332 28729
6f9cf1e6 28730 echo "$as_me:$LINENO: result: no" >&5
74b84332 28731echo "${ECHO_T}no" >&6
6f9cf1e6 28732 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
28733echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28734 { (exit 1); exit 1; }; }
28735
28736
28737fi
0ad5d837
VZ
28738rm -f conftest.err conftest.$ac_objext \
28739 conftest$ac_exeext conftest.$ac_ext
74b84332 28740
0ad5d837 28741 CFLAGS=$save_CFLAGS
6f9cf1e6 28742 LIBS="$save_LIBS"
74b84332
VS
28743 fi
28744
28745 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28746echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28747 libp_link=""
28748 libsm_ice_link=""
28749 libs_found=0
28750 for libp in "" " -lXp"; do
28751 if test "$libs_found" = "0"; then
28752 for libsm_ice in "" " -lSM -lICE"; do
28753 if test "$libs_found" = "0"; then
28754 save_LIBS="$LIBS"
28755 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28756 save_CFLAGS=$CFLAGS
28757 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28758
28759 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28760/* confdefs.h. */
28761_ACEOF
28762cat confdefs.h >>conftest.$ac_ext
28763cat >>conftest.$ac_ext <<_ACEOF
28764/* end confdefs.h. */
28765
74b84332
VS
28766 #include <Xm/Xm.h>
28767 #include <Xm/List.h>
28768
a848cd7e
SC
28769int
28770main ()
28771{
74b84332
VS
28772
28773 XmString string = NULL;
28774 Widget w = NULL;
28775 int position = 0;
28776 XmListAddItem(w, string, position);
28777
a848cd7e
SC
28778 ;
28779 return 0;
28780}
28781_ACEOF
28782rm -f conftest.$ac_objext conftest$ac_exeext
28783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28784 (eval $ac_link) 2>conftest.er1
a848cd7e 28785 ac_status=$?
ac1cb8d3
VS
28786 grep -v '^ *+' conftest.er1 >conftest.err
28787 rm -f conftest.er1
28788 cat conftest.err >&5
a848cd7e
SC
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } &&
6ebeb4c7 28791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28793 (eval $ac_try) 2>&5
28794 ac_status=$?
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); }; } &&
28797 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28799 (eval $ac_try) 2>&5
28800 ac_status=$?
28801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802 (exit $ac_status); }; }; then
28803
28804 libp_link="$libp"
28805 libsm_ice_link="$libsm_ice"
28806 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28807echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28808 libs_found=1
28809
28810else
28811 echo "$as_me: failed program was:" >&5
28812sed 's/^/| /' conftest.$ac_ext >&5
28813
28814
28815
28816fi
ac1cb8d3
VS
28817rm -f conftest.err conftest.$ac_objext \
28818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28819
28820 LIBS="$save_LIBS"
28821 CFLAGS=$save_CFLAGS
28822 fi
28823 done
28824 fi
28825 done
28826
28827 if test "$libs_found" = "0"; then
28828 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28829echo "${ECHO_T}can't find the right libraries" >&6
28830 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28831echo "$as_me: error: can't link a simple motif program" >&2;}
28832 { (exit 1); exit 1; }; }
28833 fi
28834
62fa8b3a
MW
28835 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
28836echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
28837if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
28838 echo $ECHO_N "(cached) $ECHO_C" >&6
28839else
28840 ac_check_lib_save_LIBS=$LIBS
28841LIBS="-lSgm $LIBS"
28842cat >conftest.$ac_ext <<_ACEOF
28843/* confdefs.h. */
28844_ACEOF
28845cat confdefs.h >>conftest.$ac_ext
28846cat >>conftest.$ac_ext <<_ACEOF
28847/* end confdefs.h. */
28848
28849/* Override any gcc2 internal prototype to avoid an error. */
28850#ifdef __cplusplus
28851extern "C"
28852#endif
28853/* We use char because int might match the return type of a gcc2
28854 builtin and then its argument prototype would still apply. */
28855char SgCreateList ();
28856int
28857main ()
28858{
28859SgCreateList ();
28860 ;
28861 return 0;
28862}
28863_ACEOF
28864rm -f conftest.$ac_objext conftest$ac_exeext
28865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28866 (eval $ac_link) 2>conftest.er1
28867 ac_status=$?
28868 grep -v '^ *+' conftest.er1 >conftest.err
28869 rm -f conftest.er1
28870 cat conftest.err >&5
28871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28872 (exit $ac_status); } &&
28873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28875 (eval $ac_try) 2>&5
28876 ac_status=$?
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); }; } &&
28879 { ac_try='test -s conftest$ac_exeext'
28880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28881 (eval $ac_try) 2>&5
28882 ac_status=$?
28883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884 (exit $ac_status); }; }; then
28885 ac_cv_lib_Sgm_SgCreateList=yes
28886else
28887 echo "$as_me: failed program was:" >&5
28888sed 's/^/| /' conftest.$ac_ext >&5
28889
28890ac_cv_lib_Sgm_SgCreateList=no
28891fi
28892rm -f conftest.err conftest.$ac_objext \
28893 conftest$ac_exeext conftest.$ac_ext
28894LIBS=$ac_check_lib_save_LIBS
28895fi
28896echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
28897echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
28898if test $ac_cv_lib_Sgm_SgCreateList = yes; then
28899 libsgm_link=" -lSgm"
28900fi
28901
28902
a848cd7e
SC
28903 save_CFLAGS=$CFLAGS
28904 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
0ad5d837 28905
a848cd7e
SC
28906 echo "$as_me:$LINENO: checking for Motif 2" >&5
28907echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
28908if test "${wx_cv_lib_motif2+set}" = set; then
28909 echo $ECHO_N "(cached) $ECHO_C" >&6
28910else
28911 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28912/* confdefs.h. */
28913_ACEOF
28914cat confdefs.h >>conftest.$ac_ext
28915cat >>conftest.$ac_ext <<_ACEOF
28916/* end confdefs.h. */
28917
0ad5d837 28918 #include <Xm/Xm.h>
a848cd7e
SC
28919
28920int
28921main ()
28922{
28923
0ad5d837
VZ
28924 #if XmVersion < 2000
28925 Not Motif 2
28926 #endif
a848cd7e
SC
28927
28928 ;
28929 return 0;
28930}
28931_ACEOF
28932rm -f conftest.$ac_objext
28933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28934 (eval $ac_compile) 2>conftest.er1
a848cd7e 28935 ac_status=$?
ac1cb8d3
VS
28936 grep -v '^ *+' conftest.er1 >conftest.err
28937 rm -f conftest.er1
28938 cat conftest.err >&5
a848cd7e
SC
28939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 (exit $ac_status); } &&
6ebeb4c7 28941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28943 (eval $ac_try) 2>&5
28944 ac_status=$?
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); }; } &&
28947 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949 (eval $ac_try) 2>&5
28950 ac_status=$?
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); }; }; then
0ad5d837 28953 wx_cv_lib_motif2="yes"
a848cd7e
SC
28954else
28955 echo "$as_me: failed program was:" >&5
28956sed 's/^/| /' conftest.$ac_ext >&5
28957
0ad5d837
VZ
28958wx_cv_lib_motif2="no"
28959fi
28960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28961fi
28962echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
28963echo "${ECHO_T}$wx_cv_lib_motif2" >&6
28964 if test "$wx_cv_lib_motif2" = "yes"; then
28965 cat >>confdefs.h <<\_ACEOF
28966#define __WXMOTIF20__ 1
28967_ACEOF
a848cd7e 28968
0ad5d837
VZ
28969 else
28970 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28971#define __WXMOTIF20__ 0
28972_ACEOF
28973
0ad5d837 28974 fi
2113bc77
MW
28975
28976 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
28977echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
28978if test "${wx_cv_lib_lesstif+set}" = set; then
28979 echo $ECHO_N "(cached) $ECHO_C" >&6
28980else
28981 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
28982/* confdefs.h. */
28983_ACEOF
28984cat confdefs.h >>conftest.$ac_ext
28985cat >>conftest.$ac_ext <<_ACEOF
28986/* end confdefs.h. */
28987
0ad5d837 28988 #include <Xm/Xm.h>
2113bc77
MW
28989
28990int
28991main ()
28992{
28993
0ad5d837
VZ
28994 #if !defined(LesstifVersion) || LesstifVersion <= 0
28995 Not Lesstif
28996 #endif
2113bc77
MW
28997
28998 ;
28999 return 0;
29000}
29001_ACEOF
29002rm -f conftest.$ac_objext
29003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29004 (eval $ac_compile) 2>conftest.er1
29005 ac_status=$?
29006 grep -v '^ *+' conftest.er1 >conftest.err
29007 rm -f conftest.er1
29008 cat conftest.err >&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); } &&
6ebeb4c7 29011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
29012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29013 (eval $ac_try) 2>&5
29014 ac_status=$?
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); }; } &&
29017 { ac_try='test -s conftest.$ac_objext'
29018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29019 (eval $ac_try) 2>&5
29020 ac_status=$?
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); }; }; then
0ad5d837 29023 wx_cv_lib_lesstif="yes"
2113bc77
MW
29024else
29025 echo "$as_me: failed program was:" >&5
29026sed 's/^/| /' conftest.$ac_ext >&5
29027
0ad5d837
VZ
29028wx_cv_lib_lesstif="no"
29029fi
29030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 29031
0ad5d837
VZ
29032fi
29033echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
29034echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
29035 if test "$wx_cv_lib_lesstif" = "yes"; then
29036 cat >>confdefs.h <<\_ACEOF
29037#define __WXLESSTIF__ 1
29038_ACEOF
29039
29040 else
29041 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
29042#define __WXLESSTIF__ 0
29043_ACEOF
29044
0ad5d837 29045 fi
2113bc77 29046
a848cd7e
SC
29047 CFLAGS=$save_CFLAGS
29048
62fa8b3a 29049 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
29050 TOOLKIT=MOTIF
29051 GUIDIST=MOTIF_DIST
29052 fi
29053
74b84332 29054 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
29055 if test "$wxUSE_LIBXPM" = "sys"; then
29056 echo "$as_me:$LINENO: checking for Xpm library" >&5
29057echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
29058
0ad5d837
VZ
29059 ac_find_libraries=
29060 for ac_dir in $SEARCH_LIB;
a848cd7e 29061 do
3eca31dc 29062 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29063 if test -f "$ac_dir/libXpm.$ac_extension"; then
29064 ac_find_libraries=$ac_dir
29065 break 2
29066 fi
29067 done
29068 done
29069
29070 if test "$ac_find_libraries" != "" ; then
29071
0ad5d837 29072 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29073 ac_path_to_link=""
29074 else
0ad5d837
VZ
29075 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29076 result=$?
29077 if test $result = 0; then
29078 ac_path_to_link=""
29079 else
29080 ac_path_to_link=" -L$ac_find_libraries"
29081 fi
a848cd7e
SC
29082 fi
29083
29084 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
29085 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29086echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29087
29088 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
29089echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
29090if test "${wx_cv_x11_xpm_h+set}" = set; then
29091 echo $ECHO_N "(cached) $ECHO_C" >&6
29092else
29093
29094 save_CFLAGS=$CFLAGS
29095 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29096
29097 cat >conftest.$ac_ext <<_ACEOF
29098/* confdefs.h. */
29099_ACEOF
29100cat confdefs.h >>conftest.$ac_ext
29101cat >>conftest.$ac_ext <<_ACEOF
29102/* end confdefs.h. */
29103
29104 #include <X11/xpm.h>
29105
29106int
29107main ()
29108{
29109
29110 int version;
29111 version = XpmLibraryVersion();
29112
29113 ;
29114 return 0;
29115}
29116_ACEOF
29117rm -f conftest.$ac_objext
29118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29119 (eval $ac_compile) 2>conftest.er1
a848cd7e 29120 ac_status=$?
ac1cb8d3
VS
29121 grep -v '^ *+' conftest.er1 >conftest.err
29122 rm -f conftest.er1
29123 cat conftest.err >&5
a848cd7e
SC
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); } &&
6ebeb4c7 29126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29128 (eval $ac_try) 2>&5
29129 ac_status=$?
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); }; } &&
29132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29134 (eval $ac_try) 2>&5
29135 ac_status=$?
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); }; }; then
29138 wx_cv_x11_xpm_h=yes
29139else
29140 echo "$as_me: failed program was:" >&5
29141sed 's/^/| /' conftest.$ac_ext >&5
29142
29143wx_cv_x11_xpm_h=no
29144
29145fi
ac1cb8d3 29146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29147
29148 CFLAGS=$save_CFLAGS
29149
29150
29151fi
29152echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
29153echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
29154
29155 if test $wx_cv_x11_xpm_h = "yes"; then
29156 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
29157 cat >>confdefs.h <<\_ACEOF
29158#define wxHAVE_LIB_XPM 1
29159_ACEOF
29160
29161 else
29162 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
29163echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
29164 fi
29165 fi
29166
29167 fi
29168
29169 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
29170echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
29171if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
29172 echo $ECHO_N "(cached) $ECHO_C" >&6
29173else
29174 ac_check_lib_save_LIBS=$LIBS
29175LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
29176cat >conftest.$ac_ext <<_ACEOF
29177/* confdefs.h. */
29178_ACEOF
29179cat confdefs.h >>conftest.$ac_ext
29180cat >>conftest.$ac_ext <<_ACEOF
29181/* end confdefs.h. */
29182
29183/* Override any gcc2 internal prototype to avoid an error. */
29184#ifdef __cplusplus
29185extern "C"
29186#endif
29187/* We use char because int might match the return type of a gcc2
29188 builtin and then its argument prototype would still apply. */
29189char XShapeQueryExtension ();
29190int
29191main ()
29192{
29193XShapeQueryExtension ();
29194 ;
29195 return 0;
29196}
29197_ACEOF
29198rm -f conftest.$ac_objext conftest$ac_exeext
29199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29200 (eval $ac_link) 2>conftest.er1
a848cd7e 29201 ac_status=$?
ac1cb8d3
VS
29202 grep -v '^ *+' conftest.er1 >conftest.err
29203 rm -f conftest.er1
29204 cat conftest.err >&5
a848cd7e
SC
29205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206 (exit $ac_status); } &&
6ebeb4c7 29207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29209 (eval $ac_try) 2>&5
29210 ac_status=$?
29211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29212 (exit $ac_status); }; } &&
29213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29215 (eval $ac_try) 2>&5
29216 ac_status=$?
29217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218 (exit $ac_status); }; }; then
29219 ac_cv_lib_Xext_XShapeQueryExtension=yes
29220else
29221 echo "$as_me: failed program was:" >&5
29222sed 's/^/| /' conftest.$ac_ext >&5
29223
29224ac_cv_lib_Xext_XShapeQueryExtension=no
29225fi
ac1cb8d3
VS
29226rm -f conftest.err conftest.$ac_objext \
29227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29228LIBS=$ac_check_lib_save_LIBS
29229fi
29230echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
29231echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
29232if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
29233
29234 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
29235 wxHAVE_XEXT_LIB=1
29236
29237fi
29238
29239
29240 if test "$wxHAVE_XEXT_LIB" = 1; then
29241 save_CFLAGS="$CFLAGS"
29242 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29243
29244 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
29245echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
29246 cat >conftest.$ac_ext <<_ACEOF
29247/* confdefs.h. */
29248_ACEOF
29249cat confdefs.h >>conftest.$ac_ext
29250cat >>conftest.$ac_ext <<_ACEOF
29251/* end confdefs.h. */
29252
29253 #include <X11/Xlib.h>
29254 #include <X11/extensions/shape.h>
29255
29256int
29257main ()
29258{
29259
29260 int dummy1, dummy2;
29261 XShapeQueryExtension((Display*)NULL,
29262 (int*)NULL, (int*)NULL);
29263
29264 ;
29265 return 0;
29266}
29267_ACEOF
29268rm -f conftest.$ac_objext
29269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29270 (eval $ac_compile) 2>conftest.er1
a848cd7e 29271 ac_status=$?
ac1cb8d3
VS
29272 grep -v '^ *+' conftest.er1 >conftest.err
29273 rm -f conftest.er1
29274 cat conftest.err >&5
a848cd7e
SC
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); } &&
6ebeb4c7 29277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
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); }; } &&
29283 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29285 (eval $ac_try) 2>&5
29286 ac_status=$?
29287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288 (exit $ac_status); }; }; then
29289
29290 cat >>confdefs.h <<\_ACEOF
29291#define HAVE_XSHAPE 1
29292_ACEOF
29293
29294 echo "$as_me:$LINENO: result: found" >&5
29295echo "${ECHO_T}found" >&6
29296
29297else
29298 echo "$as_me: failed program was:" >&5
29299sed 's/^/| /' conftest.$ac_ext >&5
29300
29301
29302 echo "$as_me:$LINENO: result: not found" >&5
29303echo "${ECHO_T}not found" >&6
29304
29305fi
ac1cb8d3 29306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29307 CFLAGS="$save_CFLAGS"
29308
29309 fi
29310 fi
29311
29312 if test "$wxUSE_MAC" = 1; then
29313 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
29314echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
29315 if test "$GCC" = yes; then
29316 echo "$as_me:$LINENO: result: gcc" >&5
29317echo "${ECHO_T}gcc" >&6
29318 CPPFLAGS_PASCAL="-fpascal-strings"
29319 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
29320 echo "$as_me:$LINENO: result: xlc" >&5
29321echo "${ECHO_T}xlc" >&6
29322 CPPFLAGS_PASCAL="-qmacpstr"
29323 else
29324 echo "$as_me:$LINENO: result: none" >&5
29325echo "${ECHO_T}none" >&6
29326 fi
29327
1e9e8aba
DE
29328 if test "x$wxUSE_UNIX" = "xyes"; then
29329 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
29330 else
29331 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
29332 fi
a848cd7e 29333
a848cd7e
SC
29334 TOOLKIT=MAC
29335 GUIDIST=MACX_DIST
dd21ced8 29336 WXBASEPORT="_carbon"
a848cd7e
SC
29337 fi
29338
29339 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
29340 TOOLKIT=COCOA
29341 GUIDIST=COCOA_DIST
29342 fi
29343
29344 if test "$wxUSE_PM" = 1; then
29345 TOOLKIT=PM
de59c161
RD
29346 GUIDIST=PM_DIST
29347 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
29348echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
29349if test "${wx_cv_spbcdata+set}" = set; then
29350 echo $ECHO_N "(cached) $ECHO_C" >&6
29351else
29352
29353 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
29354/* confdefs.h. */
29355_ACEOF
29356cat confdefs.h >>conftest.$ac_ext
29357cat >>conftest.$ac_ext <<_ACEOF
29358/* end confdefs.h. */
29359
29360 #define INCL_PM
29361 #include <os2.h>
29362
29363int
29364main ()
29365{
29366
29367 SPBCDATA test;
29368
29369 ;
29370 return 0;
29371}
29372_ACEOF
29373rm -f conftest.$ac_objext
29374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29375 (eval $ac_compile) 2>conftest.er1
de59c161 29376 ac_status=$?
ac1cb8d3
VS
29377 grep -v '^ *+' conftest.er1 >conftest.err
29378 rm -f conftest.er1
29379 cat conftest.err >&5
de59c161
RD
29380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381 (exit $ac_status); } &&
6ebeb4c7 29382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29384 (eval $ac_try) 2>&5
29385 ac_status=$?
29386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29387 (exit $ac_status); }; } &&
29388 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
29389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29390 (eval $ac_try) 2>&5
29391 ac_status=$?
29392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29393 (exit $ac_status); }; }; then
29394 wx_cv_spbcdata=yes
29395else
29396 echo "$as_me: failed program was:" >&5
29397sed 's/^/| /' conftest.$ac_ext >&5
29398
29399wx_cv_spbcdata=no
29400
29401fi
ac1cb8d3 29402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
29403
29404
29405fi
29406echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
29407echo "${ECHO_T}$wx_cv_spbcdata" >&6
29408
29409 if test $wx_cv_spbcdata = "yes"; then
29410 cat >>confdefs.h <<\_ACEOF
29411#define HAVE_SPBCDATA 1
29412_ACEOF
29413
29414 fi
a848cd7e
SC
29415 fi
29416
29417 if test "$TOOLKIT" = "PM" ; then
29418 TOOLKIT_DIR="os2"
29419 else
29420 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
29421 fi
29422
a848cd7e 29423 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
29424 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
29425 WIDGET_SET=univ
a848cd7e
SC
29426 fi
29427
29428 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
29429 DISTDIR="wx\$(TOOLKIT)"
29430else
29431 USE_GUI=0
29432
29433 TOOLKIT_DIR="base"
29434
29435 if test "$USE_WIN32" = 1 ; then
a848cd7e 29436 TOOLKIT="MSW"
a848cd7e
SC
29437 fi
29438
a848cd7e
SC
29439 GUIDIST="BASE_DIST"
29440 DISTDIR="wxBase"
29441fi
29442
29443
d12aef51
VZ
29444if test "$wxUSE_GUI" = "yes"; then
29445 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
29446
29447for ac_header in X11/Xlib.h
29448do
29449as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29450if eval "test \"\${$as_ac_Header+set}\" = set"; then
29451 echo "$as_me:$LINENO: checking for $ac_header" >&5
29452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29453if eval "test \"\${$as_ac_Header+set}\" = set"; then
29454 echo $ECHO_N "(cached) $ECHO_C" >&6
29455fi
29456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29458else
29459 # Is the header compilable?
29460echo "$as_me:$LINENO: checking $ac_header usability" >&5
29461echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29462cat >conftest.$ac_ext <<_ACEOF
29463/* confdefs.h. */
29464_ACEOF
29465cat confdefs.h >>conftest.$ac_ext
29466cat >>conftest.$ac_ext <<_ACEOF
29467/* end confdefs.h. */
29468$ac_includes_default
29469#include <$ac_header>
29470_ACEOF
29471rm -f conftest.$ac_objext
29472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29473 (eval $ac_compile) 2>conftest.er1
29474 ac_status=$?
29475 grep -v '^ *+' conftest.er1 >conftest.err
29476 rm -f conftest.er1
29477 cat conftest.err >&5
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); } &&
29480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29482 (eval $ac_try) 2>&5
29483 ac_status=$?
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); }; } &&
29486 { ac_try='test -s conftest.$ac_objext'
29487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29488 (eval $ac_try) 2>&5
29489 ac_status=$?
29490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491 (exit $ac_status); }; }; then
29492 ac_header_compiler=yes
29493else
29494 echo "$as_me: failed program was:" >&5
29495sed 's/^/| /' conftest.$ac_ext >&5
29496
29497ac_header_compiler=no
29498fi
29499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29500echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29501echo "${ECHO_T}$ac_header_compiler" >&6
29502
29503# Is the header present?
29504echo "$as_me:$LINENO: checking $ac_header presence" >&5
29505echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29506cat >conftest.$ac_ext <<_ACEOF
29507/* confdefs.h. */
29508_ACEOF
29509cat confdefs.h >>conftest.$ac_ext
29510cat >>conftest.$ac_ext <<_ACEOF
29511/* end confdefs.h. */
29512#include <$ac_header>
29513_ACEOF
29514if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29515 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29516 ac_status=$?
29517 grep -v '^ *+' conftest.er1 >conftest.err
29518 rm -f conftest.er1
29519 cat conftest.err >&5
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); } >/dev/null; then
29522 if test -s conftest.err; then
29523 ac_cpp_err=$ac_c_preproc_warn_flag
29524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29525 else
29526 ac_cpp_err=
29527 fi
29528else
29529 ac_cpp_err=yes
29530fi
29531if test -z "$ac_cpp_err"; then
29532 ac_header_preproc=yes
29533else
29534 echo "$as_me: failed program was:" >&5
29535sed 's/^/| /' conftest.$ac_ext >&5
29536
29537 ac_header_preproc=no
29538fi
29539rm -f conftest.err conftest.$ac_ext
29540echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29541echo "${ECHO_T}$ac_header_preproc" >&6
29542
29543# So? What about this header?
29544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29545 yes:no: )
29546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29547echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29549echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29550 ac_header_preproc=yes
29551 ;;
29552 no:yes:* )
29553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29554echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29556echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29558echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29560echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29562echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29564echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29565 (
29566 cat <<\_ASBOX
29567## ----------------------------------------- ##
29568## Report this to wx-dev@lists.wxwidgets.org ##
29569## ----------------------------------------- ##
29570_ASBOX
29571 ) |
29572 sed "s/^/$as_me: WARNING: /" >&2
29573 ;;
29574esac
29575echo "$as_me:$LINENO: checking for $ac_header" >&5
29576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29577if eval "test \"\${$as_ac_Header+set}\" = set"; then
29578 echo $ECHO_N "(cached) $ECHO_C" >&6
29579else
29580 eval "$as_ac_Header=\$ac_header_preproc"
29581fi
29582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29584
29585fi
29586if test `eval echo '${'$as_ac_Header'}'` = yes; then
29587 cat >>confdefs.h <<_ACEOF
29588#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29589_ACEOF
29590
29591fi
29592
29593done
29594
29595
29596for ac_header in X11/XKBlib.h
29597do
29598as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29599echo "$as_me:$LINENO: checking for $ac_header" >&5
29600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29601if eval "test \"\${$as_ac_Header+set}\" = set"; then
29602 echo $ECHO_N "(cached) $ECHO_C" >&6
29603else
29604 cat >conftest.$ac_ext <<_ACEOF
29605/* confdefs.h. */
29606_ACEOF
29607cat confdefs.h >>conftest.$ac_ext
29608cat >>conftest.$ac_ext <<_ACEOF
29609/* end confdefs.h. */
29610
29611 #if HAVE_X11_XLIB_H
29612 #include <X11/Xlib.h>
29613 #endif
29614
29615
29616#include <$ac_header>
29617_ACEOF
29618rm -f conftest.$ac_objext
29619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29620 (eval $ac_compile) 2>conftest.er1
29621 ac_status=$?
29622 grep -v '^ *+' conftest.er1 >conftest.err
29623 rm -f conftest.er1
29624 cat conftest.err >&5
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); } &&
29627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29629 (eval $ac_try) 2>&5
29630 ac_status=$?
29631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); }; } &&
29633 { ac_try='test -s conftest.$ac_objext'
29634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29635 (eval $ac_try) 2>&5
29636 ac_status=$?
29637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); }; }; then
29639 eval "$as_ac_Header=yes"
29640else
29641 echo "$as_me: failed program was:" >&5
29642sed 's/^/| /' conftest.$ac_ext >&5
29643
29644eval "$as_ac_Header=no"
29645fi
29646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29647fi
29648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29650if test `eval echo '${'$as_ac_Header'}'` = yes; then
29651 cat >>confdefs.h <<_ACEOF
29652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29653_ACEOF
29654
29655fi
29656
29657done
29658
29659 fi
29660fi
29661
a848cd7e
SC
29662
29663
29664IODBC_C_SRC=""
29665
29666
29667if test "$TOOLKIT" != "MSW" ; then
29668
29669 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
29670
29671 if test "${ac_cv_header_sql_h+set}" = set; then
29672 echo "$as_me:$LINENO: checking for sql.h" >&5
29673echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29674if test "${ac_cv_header_sql_h+set}" = set; then
29675 echo $ECHO_N "(cached) $ECHO_C" >&6
29676fi
29677echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29678echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29679else
29680 # Is the header compilable?
29681echo "$as_me:$LINENO: checking sql.h usability" >&5
29682echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
29683cat >conftest.$ac_ext <<_ACEOF
29684/* confdefs.h. */
29685_ACEOF
29686cat confdefs.h >>conftest.$ac_ext
29687cat >>conftest.$ac_ext <<_ACEOF
29688/* end confdefs.h. */
29689$ac_includes_default
29690#include <sql.h>
29691_ACEOF
29692rm -f conftest.$ac_objext
29693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29694 (eval $ac_compile) 2>conftest.er1
a848cd7e 29695 ac_status=$?
ac1cb8d3
VS
29696 grep -v '^ *+' conftest.er1 >conftest.err
29697 rm -f conftest.er1
29698 cat conftest.err >&5
a848cd7e
SC
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); } &&
6ebeb4c7 29701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29703 (eval $ac_try) 2>&5
29704 ac_status=$?
29705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706 (exit $ac_status); }; } &&
29707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29709 (eval $ac_try) 2>&5
29710 ac_status=$?
29711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29712 (exit $ac_status); }; }; then
29713 ac_header_compiler=yes
29714else
29715 echo "$as_me: failed program was:" >&5
29716sed 's/^/| /' conftest.$ac_ext >&5
29717
29718ac_header_compiler=no
29719fi
ac1cb8d3 29720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29721echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29722echo "${ECHO_T}$ac_header_compiler" >&6
29723
29724# Is the header present?
29725echo "$as_me:$LINENO: checking sql.h presence" >&5
29726echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
29727cat >conftest.$ac_ext <<_ACEOF
29728/* confdefs.h. */
29729_ACEOF
29730cat confdefs.h >>conftest.$ac_ext
29731cat >>conftest.$ac_ext <<_ACEOF
29732/* end confdefs.h. */
29733#include <sql.h>
29734_ACEOF
29735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29737 ac_status=$?
29738 grep -v '^ *+' conftest.er1 >conftest.err
29739 rm -f conftest.er1
29740 cat conftest.err >&5
29741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742 (exit $ac_status); } >/dev/null; then
29743 if test -s conftest.err; then
29744 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29746 else
29747 ac_cpp_err=
29748 fi
29749else
29750 ac_cpp_err=yes
29751fi
29752if test -z "$ac_cpp_err"; then
29753 ac_header_preproc=yes
29754else
29755 echo "$as_me: failed program was:" >&5
29756sed 's/^/| /' conftest.$ac_ext >&5
29757
29758 ac_header_preproc=no
29759fi
29760rm -f conftest.err conftest.$ac_ext
29761echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29762echo "${ECHO_T}$ac_header_preproc" >&6
29763
29764# So? What about this header?
ac1cb8d3
VS
29765case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29766 yes:no: )
a848cd7e
SC
29767 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
29768echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29769 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
29770echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
29771 ac_header_preproc=yes
a848cd7e 29772 ;;
ac1cb8d3 29773 no:yes:* )
a848cd7e
SC
29774 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
29775echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29776 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
29777echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
29778 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
29779echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
29780 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
29781echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29782 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
29783echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29784 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
29785echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29786 (
29787 cat <<\_ASBOX
ac1cb8d3
VS
29788## ----------------------------------------- ##
29789## Report this to wx-dev@lists.wxwidgets.org ##
29790## ----------------------------------------- ##
a848cd7e
SC
29791_ASBOX
29792 ) |
29793 sed "s/^/$as_me: WARNING: /" >&2
29794 ;;
29795esac
29796echo "$as_me:$LINENO: checking for sql.h" >&5
29797echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29798if test "${ac_cv_header_sql_h+set}" = set; then
29799 echo $ECHO_N "(cached) $ECHO_C" >&6
29800else
29801 ac_cv_header_sql_h=$ac_header_preproc
29802fi
29803echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29804echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29805
29806fi
29807if test $ac_cv_header_sql_h = yes; then
29808 found_sql_h=1
29809fi
29810
29811
29812 if test "x$found_sql_h" = "x1" ; then
29813 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
29814echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
29815if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
29816 echo $ECHO_N "(cached) $ECHO_C" >&6
29817else
29818 ac_check_lib_save_LIBS=$LIBS
29819LIBS="-liodbc $LIBS"
29820cat >conftest.$ac_ext <<_ACEOF
29821/* confdefs.h. */
29822_ACEOF
29823cat confdefs.h >>conftest.$ac_ext
29824cat >>conftest.$ac_ext <<_ACEOF
29825/* end confdefs.h. */
29826
29827/* Override any gcc2 internal prototype to avoid an error. */
29828#ifdef __cplusplus
29829extern "C"
29830#endif
29831/* We use char because int might match the return type of a gcc2
29832 builtin and then its argument prototype would still apply. */
29833char SQLAllocEnv ();
29834int
29835main ()
29836{
29837SQLAllocEnv ();
29838 ;
29839 return 0;
29840}
29841_ACEOF
29842rm -f conftest.$ac_objext conftest$ac_exeext
29843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29844 (eval $ac_link) 2>conftest.er1
a848cd7e 29845 ac_status=$?
ac1cb8d3
VS
29846 grep -v '^ *+' conftest.er1 >conftest.err
29847 rm -f conftest.er1
29848 cat conftest.err >&5
a848cd7e
SC
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); } &&
6ebeb4c7 29851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29853 (eval $ac_try) 2>&5
29854 ac_status=$?
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); }; } &&
29857 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29859 (eval $ac_try) 2>&5
29860 ac_status=$?
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); }; }; then
29863 ac_cv_lib_iodbc_SQLAllocEnv=yes
29864else
29865 echo "$as_me: failed program was:" >&5
29866sed 's/^/| /' conftest.$ac_ext >&5
29867
29868ac_cv_lib_iodbc_SQLAllocEnv=no
29869fi
ac1cb8d3
VS
29870rm -f conftest.err conftest.$ac_objext \
29871 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29872LIBS=$ac_check_lib_save_LIBS
29873fi
29874echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29875echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29876if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29877 ODBC_LINK=" -liodbc"
29878else
29879
29880 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29881echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29882if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29883 echo $ECHO_N "(cached) $ECHO_C" >&6
29884else
29885 ac_check_lib_save_LIBS=$LIBS
29886LIBS="-lunixodbc $LIBS"
29887cat >conftest.$ac_ext <<_ACEOF
29888/* confdefs.h. */
29889_ACEOF
29890cat confdefs.h >>conftest.$ac_ext
29891cat >>conftest.$ac_ext <<_ACEOF
29892/* end confdefs.h. */
29893
29894/* Override any gcc2 internal prototype to avoid an error. */
29895#ifdef __cplusplus
29896extern "C"
29897#endif
29898/* We use char because int might match the return type of a gcc2
29899 builtin and then its argument prototype would still apply. */
29900char SQLAllocEnv ();
29901int
29902main ()
29903{
29904SQLAllocEnv ();
29905 ;
29906 return 0;
29907}
29908_ACEOF
29909rm -f conftest.$ac_objext conftest$ac_exeext
29910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29911 (eval $ac_link) 2>conftest.er1
a848cd7e 29912 ac_status=$?
ac1cb8d3
VS
29913 grep -v '^ *+' conftest.er1 >conftest.err
29914 rm -f conftest.er1
29915 cat conftest.err >&5
a848cd7e
SC
29916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); } &&
6ebeb4c7 29918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29920 (eval $ac_try) 2>&5
29921 ac_status=$?
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); }; } &&
29924 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29926 (eval $ac_try) 2>&5
29927 ac_status=$?
29928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929 (exit $ac_status); }; }; then
29930 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29931else
29932 echo "$as_me: failed program was:" >&5
29933sed 's/^/| /' conftest.$ac_ext >&5
29934
29935ac_cv_lib_unixodbc_SQLAllocEnv=no
29936fi
ac1cb8d3
VS
29937rm -f conftest.err conftest.$ac_objext \
29938 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29939LIBS=$ac_check_lib_save_LIBS
29940fi
29941echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29942echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29943if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29944 ODBC_LINK=" -lunixodbc"
29945else
29946
29947 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29948echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29949if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29950 echo $ECHO_N "(cached) $ECHO_C" >&6
29951else
29952 ac_check_lib_save_LIBS=$LIBS
29953LIBS="-lodbc $LIBS"
29954cat >conftest.$ac_ext <<_ACEOF
29955/* confdefs.h. */
29956_ACEOF
29957cat confdefs.h >>conftest.$ac_ext
29958cat >>conftest.$ac_ext <<_ACEOF
29959/* end confdefs.h. */
29960
29961/* Override any gcc2 internal prototype to avoid an error. */
29962#ifdef __cplusplus
29963extern "C"
29964#endif
29965/* We use char because int might match the return type of a gcc2
29966 builtin and then its argument prototype would still apply. */
29967char SQLAllocEnv ();
29968int
29969main ()
29970{
29971SQLAllocEnv ();
29972 ;
29973 return 0;
29974}
29975_ACEOF
29976rm -f conftest.$ac_objext conftest$ac_exeext
29977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29978 (eval $ac_link) 2>conftest.er1
a848cd7e 29979 ac_status=$?
ac1cb8d3
VS
29980 grep -v '^ *+' conftest.er1 >conftest.err
29981 rm -f conftest.er1
29982 cat conftest.err >&5
a848cd7e
SC
29983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); } &&
6ebeb4c7 29985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29987 (eval $ac_try) 2>&5
29988 ac_status=$?
29989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29990 (exit $ac_status); }; } &&
29991 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29993 (eval $ac_try) 2>&5
29994 ac_status=$?
29995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996 (exit $ac_status); }; }; then
29997 ac_cv_lib_odbc_SQLAllocEnv=yes
29998else
29999 echo "$as_me: failed program was:" >&5
30000sed 's/^/| /' conftest.$ac_ext >&5
30001
30002ac_cv_lib_odbc_SQLAllocEnv=no
30003fi
ac1cb8d3
VS
30004rm -f conftest.err conftest.$ac_objext \
30005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30006LIBS=$ac_check_lib_save_LIBS
30007fi
30008echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
30009echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
30010if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
30011 ODBC_LINK=" -lodbc"
30012fi
30013
30014
30015fi
30016
30017
30018fi
30019
30020 fi
30021 if test "x$ODBC_LINK" = "x" ; then
30022 if test "$wxUSE_ODBC" = "sys" ; then
30023 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
30024echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
30025 { (exit 1); exit 1; }; }
30026 else
30027 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
30028echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
30029 wxUSE_ODBC=builtin
30030 fi
30031 else
30032 wxUSE_ODBC=sys
30033 fi
30034 fi
a848cd7e 30035
2da0c077
RD
30036 if test "$wxUSE_ODBC" = "builtin" ; then
30037 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30038#define wxUSE_BUILTIN_IODBC 1
30039_ACEOF
30040
a848cd7e
SC
30041 fi
30042fi
30043
2da0c077
RD
30044if test "$wxUSE_ODBC" != "no" ; then
30045 cat >>confdefs.h <<\_ACEOF
30046#define wxUSE_ODBC 1
30047_ACEOF
30048
30049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
30050
30051 WXODBCFLAG="-D_IODBC_"
30052fi
a848cd7e 30053
01cb68df 30054
a848cd7e 30055if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 30056 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
30057 echo "$as_me:$LINENO: checking for Xinerama" >&5
30058echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
30059
0ad5d837
VZ
30060 ac_find_libraries=
30061 for ac_dir in $SEARCH_LIB;
30062 do
30063 for ac_extension in a so sl dylib dll.a; do
30064 if test -f "$ac_dir/libXinerama.$ac_extension"; then
30065 ac_find_libraries=$ac_dir
30066 break 2
30067 fi
30068 done
30069 done
30070
a848cd7e
SC
30071 if test "$ac_find_libraries" != "" ; then
30072
0ad5d837 30073 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30074 ac_path_to_link=""
30075 else
0ad5d837
VZ
30076 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30077 result=$?
30078 if test $result = 0; then
30079 ac_path_to_link=""
30080 else
30081 ac_path_to_link=" -L$ac_find_libraries"
30082 fi
a848cd7e
SC
30083 fi
30084
30085 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30086 LDFLAGS="$LDFLAGS $ac_path_to_link"
30087 fi
30088 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
30089 echo "$as_me:$LINENO: result: yes" >&5
30090echo "${ECHO_T}yes" >&6
30091
30092 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
30093echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
30094
0ad5d837
VZ
30095 ac_find_libraries=
30096 for ac_dir in $SEARCH_LIB;
a848cd7e 30097 do
3eca31dc 30098 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30099 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
30100 ac_find_libraries=$ac_dir
30101 break 2
30102 fi
30103 done
30104 done
30105
30106 if test "$ac_find_libraries" != "" ; then
30107 echo "$as_me:$LINENO: result: yes" >&5
30108echo "${ECHO_T}yes" >&6
30109
30110for ac_header in X11/extensions/xf86vmode.h
30111do
30112as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30113echo "$as_me:$LINENO: checking for $ac_header" >&5
30114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30115if eval "test \"\${$as_ac_Header+set}\" = set"; then
30116 echo $ECHO_N "(cached) $ECHO_C" >&6
30117else
30118 cat >conftest.$ac_ext <<_ACEOF
30119/* confdefs.h. */
30120_ACEOF
30121cat confdefs.h >>conftest.$ac_ext
30122cat >>conftest.$ac_ext <<_ACEOF
30123/* end confdefs.h. */
30124
30125 #if HAVE_X11_XLIB_H
30126 #include <X11/Xlib.h>
30127 #endif
30128
30129
30130#include <$ac_header>
30131_ACEOF
30132rm -f conftest.$ac_objext
30133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30134 (eval $ac_compile) 2>conftest.er1
a848cd7e 30135 ac_status=$?
ac1cb8d3
VS
30136 grep -v '^ *+' conftest.er1 >conftest.err
30137 rm -f conftest.er1
30138 cat conftest.err >&5
a848cd7e
SC
30139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140 (exit $ac_status); } &&
6ebeb4c7 30141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30143 (eval $ac_try) 2>&5
30144 ac_status=$?
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); }; } &&
30147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30149 (eval $ac_try) 2>&5
30150 ac_status=$?
30151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152 (exit $ac_status); }; }; then
30153 eval "$as_ac_Header=yes"
30154else
30155 echo "$as_me: failed program was:" >&5
30156sed 's/^/| /' conftest.$ac_ext >&5
30157
30158eval "$as_ac_Header=no"
30159fi
ac1cb8d3 30160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30161fi
30162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30164if test `eval echo '${'$as_ac_Header'}'` = yes; then
30165 cat >>confdefs.h <<_ACEOF
30166#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30167_ACEOF
30168
30169 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
30170
30171fi
30172
30173done
30174
30175 else
30176 echo "$as_me:$LINENO: result: no" >&5
30177echo "${ECHO_T}no" >&6
30178 fi
30179
30180 else
30181 echo "$as_me:$LINENO: result: no" >&5
30182echo "${ECHO_T}no" >&6
dcc1b6ad
VS
30183 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
30184echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
30185 wxUSE_DISPLAY="no"
30186 fi
01cb68df
RG
30187 elif test "$wxUSE_MSW" = 1; then
30188
30189
30190for ac_header in multimon.h ddraw.h
30191do
30192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 30193echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
30194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30195if eval "test \"\${$as_ac_Header+set}\" = set"; then
30196 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 30197else
5294a27e 30198 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
30199/* confdefs.h. */
30200_ACEOF
30201cat confdefs.h >>conftest.$ac_ext
30202cat >>conftest.$ac_ext <<_ACEOF
30203/* end confdefs.h. */
5294a27e
VZ
30204#include <windows.h>
30205
01cb68df
RG
30206#include <$ac_header>
30207_ACEOF
30208rm -f conftest.$ac_objext
30209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30210 (eval $ac_compile) 2>conftest.er1
01cb68df 30211 ac_status=$?
ac1cb8d3
VS
30212 grep -v '^ *+' conftest.er1 >conftest.err
30213 rm -f conftest.er1
30214 cat conftest.err >&5
01cb68df
RG
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); } &&
6ebeb4c7 30217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30219 (eval $ac_try) 2>&5
30220 ac_status=$?
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); }; } &&
30223 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
30224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30225 (eval $ac_try) 2>&5
30226 ac_status=$?
30227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228 (exit $ac_status); }; }; then
5294a27e 30229 eval "$as_ac_Header=yes"
01cb68df
RG
30230else
30231 echo "$as_me: failed program was:" >&5
30232sed 's/^/| /' conftest.$ac_ext >&5
30233
5294a27e 30234eval "$as_ac_Header=no"
01cb68df 30235fi
ac1cb8d3 30236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
30237fi
30238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30239echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
30240if test `eval echo '${'$as_ac_Header'}'` = yes; then
30241 cat >>confdefs.h <<_ACEOF
30242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30243_ACEOF
30244
30245else
30246
5294a27e
VZ
30247 wxUSE_DISPLAY="no"
30248 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 30249echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
30250
30251fi
30252
30253done
30254
a848cd7e
SC
30255 fi
30256fi
30257
30258
30259USE_OPENGL=0
30260if test "$wxUSE_OPENGL" = "yes"; then
30261 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
30262 OPENGL_LIBS="-framework OpenGL -framework AGL"
30263 elif test "$wxUSE_MSW" = 1; then
30264 OPENGL_LIBS="-lopengl32 -lglu32"
30265 else
30266
30267
30268ac_find_includes=
30269for ac_dir in $SEARCH_INCLUDE /usr/include;
30270 do
30271 if test -f "$ac_dir/GL/gl.h"; then
30272 ac_find_includes=$ac_dir
30273 break
30274 fi
30275 done
30276
30277 if test "$ac_find_includes" != "" ; then
30278 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30279echo "${ECHO_T}found in $ac_find_includes" >&6
30280
30281 if test "x$ac_find_includes" = "x/usr/include"; then
30282 ac_path_to_include=""
30283 else
30284 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
30285 result=$?
30286 if test $result = 0; then
30287 ac_path_to_include=""
30288 else
30289 ac_path_to_include=" -I$ac_find_includes"
30290 fi
30291 fi
30292
30293 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
30294 fi
30295
30296 if test "${ac_cv_header_GL_gl_h+set}" = set; then
30297 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30298echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30299if test "${ac_cv_header_GL_gl_h+set}" = set; then
30300 echo $ECHO_N "(cached) $ECHO_C" >&6
30301fi
30302echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30303echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30304else
30305 # Is the header compilable?
30306echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
30307echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
30308cat >conftest.$ac_ext <<_ACEOF
30309/* confdefs.h. */
30310_ACEOF
30311cat confdefs.h >>conftest.$ac_ext
30312cat >>conftest.$ac_ext <<_ACEOF
30313/* end confdefs.h. */
30314$ac_includes_default
30315#include <GL/gl.h>
30316_ACEOF
30317rm -f conftest.$ac_objext
30318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30319 (eval $ac_compile) 2>conftest.er1
a848cd7e 30320 ac_status=$?
ac1cb8d3
VS
30321 grep -v '^ *+' conftest.er1 >conftest.err
30322 rm -f conftest.er1
30323 cat conftest.err >&5
a848cd7e
SC
30324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30325 (exit $ac_status); } &&
6ebeb4c7 30326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30328 (eval $ac_try) 2>&5
30329 ac_status=$?
30330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); }; } &&
30332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30334 (eval $ac_try) 2>&5
30335 ac_status=$?
30336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337 (exit $ac_status); }; }; then
30338 ac_header_compiler=yes
30339else
30340 echo "$as_me: failed program was:" >&5
30341sed 's/^/| /' conftest.$ac_ext >&5
30342
30343ac_header_compiler=no
30344fi
ac1cb8d3 30345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30346echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30347echo "${ECHO_T}$ac_header_compiler" >&6
30348
30349# Is the header present?
30350echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
30351echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
30352cat >conftest.$ac_ext <<_ACEOF
30353/* confdefs.h. */
30354_ACEOF
30355cat confdefs.h >>conftest.$ac_ext
30356cat >>conftest.$ac_ext <<_ACEOF
30357/* end confdefs.h. */
30358#include <GL/gl.h>
30359_ACEOF
30360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30362 ac_status=$?
30363 grep -v '^ *+' conftest.er1 >conftest.err
30364 rm -f conftest.er1
30365 cat conftest.err >&5
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); } >/dev/null; then
30368 if test -s conftest.err; then
30369 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30371 else
30372 ac_cpp_err=
30373 fi
30374else
30375 ac_cpp_err=yes
30376fi
30377if test -z "$ac_cpp_err"; then
30378 ac_header_preproc=yes
30379else
30380 echo "$as_me: failed program was:" >&5
30381sed 's/^/| /' conftest.$ac_ext >&5
30382
30383 ac_header_preproc=no
30384fi
30385rm -f conftest.err conftest.$ac_ext
30386echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30387echo "${ECHO_T}$ac_header_preproc" >&6
30388
30389# So? What about this header?
ac1cb8d3
VS
30390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30391 yes:no: )
a848cd7e
SC
30392 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30393echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30394 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
30395echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
30396 ac_header_preproc=yes
a848cd7e 30397 ;;
ac1cb8d3 30398 no:yes:* )
a848cd7e
SC
30399 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
30400echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30401 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
30402echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
30403 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
30404echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
30405 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
30406echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30407 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
30408echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30409 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
30410echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30411 (
30412 cat <<\_ASBOX
ac1cb8d3
VS
30413## ----------------------------------------- ##
30414## Report this to wx-dev@lists.wxwidgets.org ##
30415## ----------------------------------------- ##
a848cd7e
SC
30416_ASBOX
30417 ) |
30418 sed "s/^/$as_me: WARNING: /" >&2
30419 ;;
30420esac
30421echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30422echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30423if test "${ac_cv_header_GL_gl_h+set}" = set; then
30424 echo $ECHO_N "(cached) $ECHO_C" >&6
30425else
30426 ac_cv_header_GL_gl_h=$ac_header_preproc
30427fi
30428echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30429echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30430
30431fi
30432if test $ac_cv_header_GL_gl_h = yes; then
30433
30434 found_gl=0
30435
30436 echo "$as_me:$LINENO: checking for -lGL" >&5
30437echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
30438
0ad5d837
VZ
30439 ac_find_libraries=
30440 for ac_dir in $SEARCH_LIB;
a848cd7e 30441 do
3eca31dc 30442 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30443 if test -f "$ac_dir/libGL.$ac_extension"; then
30444 ac_find_libraries=$ac_dir
30445 break 2
30446 fi
30447 done
30448 done
30449
30450 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
30451 echo "$as_me:$LINENO: result: yes" >&5
30452echo "${ECHO_T}yes" >&6
30453
a848cd7e 30454
0ad5d837 30455 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30456 ac_path_to_link=""
30457 else
0ad5d837
VZ
30458 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30459 result=$?
30460 if test $result = 0; then
30461 ac_path_to_link=""
30462 else
30463 ac_path_to_link=" -L$ac_find_libraries"
30464 fi
a848cd7e
SC
30465 fi
30466
30467 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30468 LDFLAGS_GL="$ac_path_to_link"
30469 fi
30470
69120ee4
VZ
30471 echo "$as_me:$LINENO: checking for -lGLU" >&5
30472echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 30473
0ad5d837
VZ
30474 ac_find_libraries=
30475 for ac_dir in $SEARCH_LIB;
30476 do
30477 for ac_extension in a so sl dylib dll.a; do
30478 if test -f "$ac_dir/libGLU.$ac_extension"; then
30479 ac_find_libraries=$ac_dir
30480 break 2
30481 fi
30482 done
30483 done
30484
a848cd7e
SC
30485 if test "$ac_find_libraries" != "" ; then
30486
0ad5d837 30487 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30488 ac_path_to_link=""
30489 else
0ad5d837
VZ
30490 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30491 result=$?
30492 if test $result = 0; then
30493 ac_path_to_link=""
30494 else
30495 ac_path_to_link=" -L$ac_find_libraries"
30496 fi
a848cd7e
SC
30497 fi
30498
30499 if test "$ac_path_to_link" != " -L/usr/lib" -a \
30500 "$ac_path_to_link" != "$LDFLAGS_GL"; then
30501 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
30502 fi
30503
30504 found_gl=1
30505 OPENGL_LIBS="-lGL -lGLU"
30506 echo "$as_me:$LINENO: result: yes" >&5
30507echo "${ECHO_T}yes" >&6
69120ee4
VZ
30508 else
30509 echo "$as_me:$LINENO: result: no" >&5
30510echo "${ECHO_T}no" >&6
a848cd7e 30511 fi
69120ee4
VZ
30512 else
30513 echo "$as_me:$LINENO: result: no" >&5
30514echo "${ECHO_T}no" >&6
a848cd7e
SC
30515 fi
30516
30517 if test "$found_gl" != 1; then
a848cd7e
SC
30518 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
30519echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
30520
0ad5d837
VZ
30521 ac_find_libraries=
30522 for ac_dir in $SEARCH_LIB;
a848cd7e 30523 do
3eca31dc 30524 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30525 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
30526 ac_find_libraries=$ac_dir
30527 break 2
30528 fi
30529 done
30530 done
30531
30532 if test "$ac_find_libraries" != "" ; then
30533
0ad5d837 30534 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30535 ac_path_to_link=""
30536 else
0ad5d837
VZ
30537 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30538 result=$?
30539 if test $result = 0; then
30540 ac_path_to_link=""
30541 else
30542 ac_path_to_link=" -L$ac_find_libraries"
30543 fi
a848cd7e
SC
30544 fi
30545
30546 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
30547 OPENGL_LIBS="-lMesaGL -lMesaGLU"
30548 echo "$as_me:$LINENO: result: yes" >&5
30549echo "${ECHO_T}yes" >&6
30550 else
30551 echo "$as_me:$LINENO: result: no" >&5
30552echo "${ECHO_T}no" >&6
30553 fi
30554 fi
30555
30556fi
30557
30558
30559
30560 if test "x$OPENGL_LIBS" = "x"; then
30561 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
30562echo "$as_me: error: OpenGL libraries not available" >&2;}
30563 { (exit 1); exit 1; }; }
30564 fi
30565 fi
30566
30567 if test "$wxUSE_OPENGL" = "yes"; then
30568 USE_OPENGL=1
30569 cat >>confdefs.h <<\_ACEOF
30570#define wxUSE_OPENGL 1
30571_ACEOF
30572
30573 cat >>confdefs.h <<\_ACEOF
30574#define wxUSE_GLCANVAS 1
30575_ACEOF
30576
30577 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
30578 fi
30579fi
30580
a848cd7e
SC
30581
30582if test -n "$TOOLKIT" ; then
30583 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
30584fi
30585
a848cd7e
SC
30586
30587
30588if test "$wxUSE_SHARED" = "yes"; then
30589 case "${host}" in
30590 *-pc-msdosdjgpp )
30591 wxUSE_SHARED=no
30592 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
30593echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
30594 ;;
30595 esac
30596fi
30597
a848cd7e 30598if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
30599
30600
30601 found_versioning=no
30602
30603
30604 if test $found_versioning = no ; then
30605 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
30606echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
30607if test "${wx_cv_version_script+set}" = set; then
30608 echo $ECHO_N "(cached) $ECHO_C" >&6
30609else
30610
30611 echo "VER_1 { *; };" >conftest.sym
30612 echo "int main() { return 0; }" >conftest.cpp
30613
30614 if { ac_try='
30615 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30616 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
30617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30618 (eval $ac_try) 2>&5
30619 ac_status=$?
30620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621 (exit $ac_status); }; } ; then
30622 if test -s conftest.stderr ; then
30623 wx_cv_version_script=no
30624 else
30625 wx_cv_version_script=yes
30626 fi
30627 else
30628 wx_cv_version_script=no
30629 fi
e5d4b470
MW
30630
30631 if test $wx_cv_version_script = yes
30632 then
30633 echo "struct B { virtual ~B() { } }; \
30634 struct D : public B { }; \
30635 void F() { D d; }" > conftest.cpp
30636
30637 if { ac_try='
30638 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30639 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
30640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30641 (eval $ac_try) 2>&5
30642 ac_status=$?
30643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644 (exit $ac_status); }; } &&
30645 { ac_try='
30646 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30647 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
30648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30649 (eval $ac_try) 2>&5
30650 ac_status=$?
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); }; }
30653 then
30654 if { ac_try='
30655 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30656 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
30657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30658 (eval $ac_try) 2>&5
30659 ac_status=$?
30660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661 (exit $ac_status); }; }
30662 then
30663 wx_cv_version_script=yes
30664 else
30665 wx_cv_version_script=no
30666 fi
30667 fi
30668 fi
30669
a848cd7e 30670 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 30671 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
30672
30673fi
30674echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
30675echo "${ECHO_T}$wx_cv_version_script" >&6
30676 if test $wx_cv_version_script = yes ; then
30677 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
30678 fi
30679 fi
30680
30681
30682 case "${host}" in
30683 *-*-linux* | *-*-gnu* )
30684 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 30685 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 30686 ;;
a848cd7e
SC
30687
30688 *-*-solaris2* )
30689 if test "$GCC" = yes ; then
30690 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
30691
30692 saveLdflags="$LDFLAGS"
30693 LDFLAGS="$saveLdflags -Wl,-rpath,/"
30694 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
30695echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
30696 cat >conftest.$ac_ext <<_ACEOF
30697/* confdefs.h. */
30698_ACEOF
30699cat confdefs.h >>conftest.$ac_ext
30700cat >>conftest.$ac_ext <<_ACEOF
30701/* end confdefs.h. */
30702
30703int
30704main ()
30705{
30706
30707 ;
30708 return 0;
30709}
30710_ACEOF
30711rm -f conftest.$ac_objext conftest$ac_exeext
30712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30713 (eval $ac_link) 2>conftest.er1
a848cd7e 30714 ac_status=$?
ac1cb8d3
VS
30715 grep -v '^ *+' conftest.er1 >conftest.err
30716 rm -f conftest.er1
30717 cat conftest.err >&5
a848cd7e
SC
30718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719 (exit $ac_status); } &&
6ebeb4c7 30720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30722 (eval $ac_try) 2>&5
30723 ac_status=$?
30724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725 (exit $ac_status); }; } &&
30726 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30728 (eval $ac_try) 2>&5
30729 ac_status=$?
30730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731 (exit $ac_status); }; }; then
30732
30733 echo "$as_me:$LINENO: result: yes" >&5
30734echo "${ECHO_T}yes" >&6
30735 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 30736 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
30737
30738else
30739 echo "$as_me: failed program was:" >&5
30740sed 's/^/| /' conftest.$ac_ext >&5
30741
30742
30743 echo "$as_me:$LINENO: result: no" >&5
30744echo "${ECHO_T}no" >&6
30745 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
30746echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
30747 LDFLAGS="$saveLdflags -Wl,-R,/"
30748 cat >conftest.$ac_ext <<_ACEOF
30749/* confdefs.h. */
30750_ACEOF
30751cat confdefs.h >>conftest.$ac_ext
30752cat >>conftest.$ac_ext <<_ACEOF
30753/* end confdefs.h. */
30754
30755int
30756main ()
30757{
30758
30759 ;
30760 return 0;
30761}
30762_ACEOF
30763rm -f conftest.$ac_objext conftest$ac_exeext
30764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30765 (eval $ac_link) 2>conftest.er1
a848cd7e 30766 ac_status=$?
ac1cb8d3
VS
30767 grep -v '^ *+' conftest.er1 >conftest.err
30768 rm -f conftest.er1
30769 cat conftest.err >&5
a848cd7e
SC
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); } &&
6ebeb4c7 30772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30774 (eval $ac_try) 2>&5
30775 ac_status=$?
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); }; } &&
30778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30780 (eval $ac_try) 2>&5
30781 ac_status=$?
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); }; }; then
30784
ffa0583f 30785 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 30786echo "${ECHO_T}yes" >&6
ffa0583f
RL
30787 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
30788 WXCONFIG_RPATH="-Wl,-R,\$libdir"
30789
a848cd7e
SC
30790else
30791 echo "$as_me: failed program was:" >&5
30792sed 's/^/| /' conftest.$ac_ext >&5
30793
30794
30795 echo "$as_me:$LINENO: result: no" >&5
30796echo "${ECHO_T}no" >&6
30797
30798fi
ac1cb8d3
VS
30799rm -f conftest.err conftest.$ac_objext \
30800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30801
30802fi
ac1cb8d3
VS
30803rm -f conftest.err conftest.$ac_objext \
30804 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30805 LDFLAGS="$saveLdflags"
30806 else
a848cd7e 30807 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 30808 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
30809 fi
30810 ;;
30811
cfda0ea8 30812 *-*-darwin* )
0caebc27
MW
30813 install_name_tool=`which install_name_tool`
30814 if test "$install_name_tool" -a -x "$install_name_tool"; then
30815 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
30816 cat <<EOF >change-install-names
a848cd7e
SC
30817#!/bin/sh
30818libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
30819inst_cmd="install_name_tool "
30820for i in \${libnames} ; do
30821 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
30822done
30823\${inst_cmd} \${3}
30824EOF
0caebc27
MW
30825 chmod +x change-install-names
30826 fi
a848cd7e
SC
30827 ;;
30828
30829 *-*-cygwin* | *-*-mingw32* )
30830 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
30831 ;;
30832
81f90336
MW
30833 *-*-hpux* )
30834 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
30835 WXCONFIG_RPATH="-Wl,+b,\$libdir"
30836 ;;
30837
a848cd7e 30838 esac
ceec2216 30839
ffa0583f
RL
30840 if test $wxUSE_RPATH = "no"; then
30841 SAMPLES_RPATH_FLAG=''
30842 SAMPLES_RPATH_POSTLINK=''
30843 WXCONFIG_RPATH=''
30844 fi
30845
30846 SHARED=1
30847
30848else
30849
ceec2216
RL
30850 config_linkage_component="-static"
30851 SHARED=0
ffa0583f 30852
ceec2216 30853fi
a848cd7e 30854
a848cd7e 30855
ceec2216
RL
30856UNICODE=0
30857lib_unicode_suffix=
30858WX_CHARTYPE="ansi"
30859if test "$wxUSE_UNICODE" = "yes"; then
30860 lib_unicode_suffix=u
30861 WX_CHARTYPE="unicode"
30862 UNICODE=1
a848cd7e
SC
30863fi
30864
ceec2216
RL
30865lib_debug_suffix=
30866WX_DEBUGTYPE="release"
30867DEBUG_FLAG=0
30868if test "$wxUSE_DEBUG_FLAG" = "yes"; then
30869 lib_debug_suffix=d
30870 WX_DEBUGTYPE="debug"
30871 DEBUG_FLAG=1
30872fi
a848cd7e 30873
ceec2216
RL
30874WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
30875WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 30876
ceec2216
RL
30877DEBUG_INFO=0
30878if test "$wxUSE_DEBUG_INFO" = "yes"; then
30879 DEBUG_INFO=1
30880fi
a848cd7e 30881
ceec2216 30882WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30883
ceec2216 30884TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30885
ceec2216 30886TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30887
ceec2216
RL
30888if test "$cross_compiling" = "yes"; then
30889 HOST_SUFFIX="-$host_alias"
30890 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30891 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30892fi
30893
dd21ced8 30894WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30895if test "${TOOLKIT_DIR}" = "os2"; then
30896 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30897else
30898 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30899fi
ceec2216
RL
30900
30901
30902
1d1af5ea
DE
30903if test "$wxUSE_COCOA" = 1; then
30904
30905
30906 ac_ext=c
30907ac_cpp='$CPP $CPPFLAGS'
30908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30910ac_compiler_gnu=$ac_cv_c_compiler_gnu
30911
30912ac_ext=m
30913
30914 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30915echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30916 cat >conftest.$ac_ext <<_ACEOF
30917/* confdefs.h. */
30918_ACEOF
30919cat confdefs.h >>conftest.$ac_ext
30920cat >>conftest.$ac_ext <<_ACEOF
30921/* end confdefs.h. */
30922#include <AppKit/NSEvent.h>
30923#include <CoreFoundation/CoreFoundation.h>
30924
30925int
30926main ()
30927{
30928
30929 ;
30930 return 0;
30931}
30932_ACEOF
30933rm -f conftest.$ac_objext
30934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30935 (eval $ac_compile) 2>conftest.er1
30936 ac_status=$?
30937 grep -v '^ *+' conftest.er1 >conftest.err
30938 rm -f conftest.er1
30939 cat conftest.err >&5
30940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941 (exit $ac_status); } &&
6ebeb4c7 30942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30944 (eval $ac_try) 2>&5
30945 ac_status=$?
30946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947 (exit $ac_status); }; } &&
30948 { ac_try='test -s conftest.$ac_objext'
30949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30950 (eval $ac_try) 2>&5
30951 ac_status=$?
30952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953 (exit $ac_status); }; }; then
30954 echo "$as_me:$LINENO: result: no" >&5
30955echo "${ECHO_T}no" >&6
30956else
30957 echo "$as_me: failed program was:" >&5
30958sed 's/^/| /' conftest.$ac_ext >&5
30959
30960echo "$as_me:$LINENO: result: yes" >&5
30961echo "${ECHO_T}yes" >&6
30962 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30963echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30964 cat >conftest.$ac_ext <<_ACEOF
30965/* confdefs.h. */
30966_ACEOF
30967cat confdefs.h >>conftest.$ac_ext
30968cat >>conftest.$ac_ext <<_ACEOF
30969/* end confdefs.h. */
30970#define __Point__ 1
30971#include <AppKit/NSEvent.h>
30972#include <CoreFoundation/CoreFoundation.h>
30973
30974int
30975main ()
30976{
30977
30978 ;
30979 return 0;
30980}
30981_ACEOF
30982rm -f conftest.$ac_objext
30983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30984 (eval $ac_compile) 2>conftest.er1
30985 ac_status=$?
30986 grep -v '^ *+' conftest.er1 >conftest.err
30987 rm -f conftest.er1
30988 cat conftest.err >&5
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); } &&
6ebeb4c7 30991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30993 (eval $ac_try) 2>&5
30994 ac_status=$?
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); }; } &&
30997 { ac_try='test -s conftest.$ac_objext'
30998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30999 (eval $ac_try) 2>&5
31000 ac_status=$?
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); }; }; then
31003 echo "$as_me:$LINENO: result: yes" >&5
31004echo "${ECHO_T}yes" >&6
31005 cat >>confdefs.h <<\_ACEOF
31006#define __Point__ 1
31007_ACEOF
31008
31009
31010else
31011 echo "$as_me: failed program was:" >&5
31012sed 's/^/| /' conftest.$ac_ext >&5
31013
31014{ { echo "$as_me:$LINENO: error: no
31015See \`config.log' for more details." >&5
31016echo "$as_me: error: no
31017See \`config.log' for more details." >&2;}
31018 { (exit 1); exit 1; }; }
31019
31020fi
31021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31022
31023fi
31024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31025 ac_ext=c
31026ac_cpp='$CPP $CPPFLAGS'
31027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31029ac_compiler_gnu=$ac_cv_c_compiler_gnu
31030
31031fi
31032
a848cd7e 31033if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
31034 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31035 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 31036
a848cd7e 31037 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
31038
31039 # Extract the first word of "Rez", so it can be a program name with args.
31040set dummy Rez; ac_word=$2
31041echo "$as_me:$LINENO: checking for $ac_word" >&5
31042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31043if test "${ac_cv_prog_RESCOMP+set}" = set; then
31044 echo $ECHO_N "(cached) $ECHO_C" >&6
31045else
31046 if test -n "$RESCOMP"; then
31047 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
31048else
31049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31050for as_dir in $PATH
31051do
31052 IFS=$as_save_IFS
31053 test -z "$as_dir" && as_dir=.
31054 for ac_exec_ext in '' $ac_executable_extensions; do
31055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31056 ac_cv_prog_RESCOMP="Rez"
31057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31058 break 2
31059 fi
31060done
31061done
31062
31063 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
31064fi
31065fi
31066RESCOMP=$ac_cv_prog_RESCOMP
31067if test -n "$RESCOMP"; then
31068 echo "$as_me:$LINENO: result: $RESCOMP" >&5
31069echo "${ECHO_T}$RESCOMP" >&6
31070else
31071 echo "$as_me:$LINENO: result: no" >&5
31072echo "${ECHO_T}no" >&6
31073fi
31074
31075 # Extract the first word of "DeRez", so it can be a program name with args.
31076set dummy DeRez; ac_word=$2
31077echo "$as_me:$LINENO: checking for $ac_word" >&5
31078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31079if test "${ac_cv_prog_DEREZ+set}" = set; then
31080 echo $ECHO_N "(cached) $ECHO_C" >&6
31081else
31082 if test -n "$DEREZ"; then
31083 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
31084else
31085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31086for as_dir in $PATH
31087do
31088 IFS=$as_save_IFS
31089 test -z "$as_dir" && as_dir=.
31090 for ac_exec_ext in '' $ac_executable_extensions; do
31091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31092 ac_cv_prog_DEREZ="DeRez"
31093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31094 break 2
31095 fi
31096done
31097done
31098
31099 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
31100fi
31101fi
31102DEREZ=$ac_cv_prog_DEREZ
31103if test -n "$DEREZ"; then
31104 echo "$as_me:$LINENO: result: $DEREZ" >&5
31105echo "${ECHO_T}$DEREZ" >&6
31106else
31107 echo "$as_me:$LINENO: result: no" >&5
31108echo "${ECHO_T}no" >&6
31109fi
31110
31111 # Extract the first word of "SetFile", so it can be a program name with args.
31112set dummy SetFile; ac_word=$2
31113echo "$as_me:$LINENO: checking for $ac_word" >&5
31114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31115if test "${ac_cv_prog_SETFILE+set}" = set; then
31116 echo $ECHO_N "(cached) $ECHO_C" >&6
31117else
31118 if test -n "$SETFILE"; then
31119 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
31120else
31121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31122for as_dir in $PATH
31123do
31124 IFS=$as_save_IFS
31125 test -z "$as_dir" && as_dir=.
31126 for ac_exec_ext in '' $ac_executable_extensions; do
31127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31128 ac_cv_prog_SETFILE="SetFile"
31129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31130 break 2
31131 fi
31132done
31133done
31134
31135 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
31136fi
31137fi
31138SETFILE=$ac_cv_prog_SETFILE
31139if test -n "$SETFILE"; then
31140 echo "$as_me:$LINENO: result: $SETFILE" >&5
31141echo "${ECHO_T}$SETFILE" >&6
31142else
31143 echo "$as_me:$LINENO: result: no" >&5
31144echo "${ECHO_T}no" >&6
31145fi
31146
31147
31148 MACSETFILE="\$(SETFILE)"
31149
31150 if test "$wxUSE_MAC" = 1; then
1a79f136 31151 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 31152
1a79f136 31153 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
31154 else
31155 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
31156 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
31157 fi
31158else
ffa0583f
RL
31159 MACSETFILE="@true"
31160 MACRESWXCONFIG="@true"
a848cd7e
SC
31161
31162 if test "$wxUSE_PM" = 1; then
31163 MACRESCOMP="emxbind -ep"
31164 else
ffa0583f 31165 MACRESCOMP="@true"
a848cd7e
SC
31166 fi
31167fi
31168
31169
31170
31171echo "$as_me:$LINENO: checking for mode_t" >&5
31172echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31173if test "${ac_cv_type_mode_t+set}" = set; then
31174 echo $ECHO_N "(cached) $ECHO_C" >&6
31175else
31176 cat >conftest.$ac_ext <<_ACEOF
31177/* confdefs.h. */
31178_ACEOF
31179cat confdefs.h >>conftest.$ac_ext
31180cat >>conftest.$ac_ext <<_ACEOF
31181/* end confdefs.h. */
31182$ac_includes_default
31183int
31184main ()
31185{
31186if ((mode_t *) 0)
31187 return 0;
31188if (sizeof (mode_t))
31189 return 0;
31190 ;
31191 return 0;
31192}
31193_ACEOF
31194rm -f conftest.$ac_objext
31195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31196 (eval $ac_compile) 2>conftest.er1
a848cd7e 31197 ac_status=$?
ac1cb8d3
VS
31198 grep -v '^ *+' conftest.er1 >conftest.err
31199 rm -f conftest.er1
31200 cat conftest.err >&5
a848cd7e
SC
31201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202 (exit $ac_status); } &&
6ebeb4c7 31203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31205 (eval $ac_try) 2>&5
31206 ac_status=$?
31207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208 (exit $ac_status); }; } &&
31209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31211 (eval $ac_try) 2>&5
31212 ac_status=$?
31213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31214 (exit $ac_status); }; }; then
31215 ac_cv_type_mode_t=yes
31216else
31217 echo "$as_me: failed program was:" >&5
31218sed 's/^/| /' conftest.$ac_ext >&5
31219
31220ac_cv_type_mode_t=no
31221fi
ac1cb8d3 31222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31223fi
31224echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31225echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31226if test $ac_cv_type_mode_t = yes; then
31227 :
31228else
31229
31230cat >>confdefs.h <<_ACEOF
31231#define mode_t int
31232_ACEOF
31233
31234fi
31235
31236echo "$as_me:$LINENO: checking for off_t" >&5
31237echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31238if test "${ac_cv_type_off_t+set}" = set; then
31239 echo $ECHO_N "(cached) $ECHO_C" >&6
31240else
31241 cat >conftest.$ac_ext <<_ACEOF
31242/* confdefs.h. */
31243_ACEOF
31244cat confdefs.h >>conftest.$ac_ext
31245cat >>conftest.$ac_ext <<_ACEOF
31246/* end confdefs.h. */
31247$ac_includes_default
31248int
31249main ()
31250{
31251if ((off_t *) 0)
31252 return 0;
31253if (sizeof (off_t))
31254 return 0;
31255 ;
31256 return 0;
31257}
31258_ACEOF
31259rm -f conftest.$ac_objext
31260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31261 (eval $ac_compile) 2>conftest.er1
a848cd7e 31262 ac_status=$?
ac1cb8d3
VS
31263 grep -v '^ *+' conftest.er1 >conftest.err
31264 rm -f conftest.er1
31265 cat conftest.err >&5
a848cd7e
SC
31266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31267 (exit $ac_status); } &&
6ebeb4c7 31268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31270 (eval $ac_try) 2>&5
31271 ac_status=$?
31272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273 (exit $ac_status); }; } &&
31274 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31276 (eval $ac_try) 2>&5
31277 ac_status=$?
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); }; }; then
31280 ac_cv_type_off_t=yes
31281else
31282 echo "$as_me: failed program was:" >&5
31283sed 's/^/| /' conftest.$ac_ext >&5
31284
31285ac_cv_type_off_t=no
31286fi
ac1cb8d3 31287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31288fi
31289echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31290echo "${ECHO_T}$ac_cv_type_off_t" >&6
31291if test $ac_cv_type_off_t = yes; then
31292 :
31293else
31294
31295cat >>confdefs.h <<_ACEOF
31296#define off_t long
31297_ACEOF
31298
31299fi
31300
31301echo "$as_me:$LINENO: checking for pid_t" >&5
31302echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31303if test "${ac_cv_type_pid_t+set}" = set; then
31304 echo $ECHO_N "(cached) $ECHO_C" >&6
31305else
31306 cat >conftest.$ac_ext <<_ACEOF
31307/* confdefs.h. */
31308_ACEOF
31309cat confdefs.h >>conftest.$ac_ext
31310cat >>conftest.$ac_ext <<_ACEOF
31311/* end confdefs.h. */
31312$ac_includes_default
31313int
31314main ()
31315{
31316if ((pid_t *) 0)
31317 return 0;
31318if (sizeof (pid_t))
31319 return 0;
31320 ;
31321 return 0;
31322}
31323_ACEOF
31324rm -f conftest.$ac_objext
31325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31326 (eval $ac_compile) 2>conftest.er1
a848cd7e 31327 ac_status=$?
ac1cb8d3
VS
31328 grep -v '^ *+' conftest.er1 >conftest.err
31329 rm -f conftest.er1
31330 cat conftest.err >&5
a848cd7e
SC
31331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332 (exit $ac_status); } &&
6ebeb4c7 31333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31335 (eval $ac_try) 2>&5
31336 ac_status=$?
31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338 (exit $ac_status); }; } &&
31339 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31341 (eval $ac_try) 2>&5
31342 ac_status=$?
31343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344 (exit $ac_status); }; }; then
31345 ac_cv_type_pid_t=yes
31346else
31347 echo "$as_me: failed program was:" >&5
31348sed 's/^/| /' conftest.$ac_ext >&5
31349
31350ac_cv_type_pid_t=no
31351fi
ac1cb8d3 31352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31353fi
31354echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31355echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31356if test $ac_cv_type_pid_t = yes; then
31357 :
31358else
31359
31360cat >>confdefs.h <<_ACEOF
31361#define pid_t int
31362_ACEOF
31363
31364fi
31365
31366echo "$as_me:$LINENO: checking for size_t" >&5
31367echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31368if test "${ac_cv_type_size_t+set}" = set; then
31369 echo $ECHO_N "(cached) $ECHO_C" >&6
31370else
31371 cat >conftest.$ac_ext <<_ACEOF
31372/* confdefs.h. */
31373_ACEOF
31374cat confdefs.h >>conftest.$ac_ext
31375cat >>conftest.$ac_ext <<_ACEOF
31376/* end confdefs.h. */
31377$ac_includes_default
31378int
31379main ()
31380{
31381if ((size_t *) 0)
31382 return 0;
31383if (sizeof (size_t))
31384 return 0;
31385 ;
31386 return 0;
31387}
31388_ACEOF
31389rm -f conftest.$ac_objext
31390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31391 (eval $ac_compile) 2>conftest.er1
a848cd7e 31392 ac_status=$?
ac1cb8d3
VS
31393 grep -v '^ *+' conftest.er1 >conftest.err
31394 rm -f conftest.er1
31395 cat conftest.err >&5
a848cd7e
SC
31396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397 (exit $ac_status); } &&
6ebeb4c7 31398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31400 (eval $ac_try) 2>&5
31401 ac_status=$?
31402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31403 (exit $ac_status); }; } &&
31404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31406 (eval $ac_try) 2>&5
31407 ac_status=$?
31408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409 (exit $ac_status); }; }; then
31410 ac_cv_type_size_t=yes
31411else
31412 echo "$as_me: failed program was:" >&5
31413sed 's/^/| /' conftest.$ac_ext >&5
31414
31415ac_cv_type_size_t=no
31416fi
ac1cb8d3 31417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31418fi
31419echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31420echo "${ECHO_T}$ac_cv_type_size_t" >&6
31421if test $ac_cv_type_size_t = yes; then
31422 :
31423else
31424
31425cat >>confdefs.h <<_ACEOF
31426#define size_t unsigned
31427_ACEOF
31428
31429fi
31430
31431echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
31432echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
31433if test "${ac_cv_type_uid_t+set}" = set; then
31434 echo $ECHO_N "(cached) $ECHO_C" >&6
31435else
31436 cat >conftest.$ac_ext <<_ACEOF
31437/* confdefs.h. */
31438_ACEOF
31439cat confdefs.h >>conftest.$ac_ext
31440cat >>conftest.$ac_ext <<_ACEOF
31441/* end confdefs.h. */
31442#include <sys/types.h>
31443
31444_ACEOF
31445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31446 $EGREP "uid_t" >/dev/null 2>&1; then
31447 ac_cv_type_uid_t=yes
31448else
31449 ac_cv_type_uid_t=no
31450fi
31451rm -f conftest*
31452
31453fi
31454echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
31455echo "${ECHO_T}$ac_cv_type_uid_t" >&6
31456if test $ac_cv_type_uid_t = no; then
31457
31458cat >>confdefs.h <<\_ACEOF
31459#define uid_t int
31460_ACEOF
31461
31462
31463cat >>confdefs.h <<\_ACEOF
31464#define gid_t int
31465_ACEOF
31466
31467fi
31468
31469
d51253e8
RL
31470echo "$as_me:$LINENO: checking for ssize_t" >&5
31471echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
31472if test "${ac_cv_type_ssize_t+set}" = set; then
31473 echo $ECHO_N "(cached) $ECHO_C" >&6
31474else
31475 cat >conftest.$ac_ext <<_ACEOF
31476/* confdefs.h. */
31477_ACEOF
31478cat confdefs.h >>conftest.$ac_ext
31479cat >>conftest.$ac_ext <<_ACEOF
31480/* end confdefs.h. */
31481$ac_includes_default
31482int
31483main ()
31484{
31485if ((ssize_t *) 0)
31486 return 0;
31487if (sizeof (ssize_t))
31488 return 0;
31489 ;
31490 return 0;
31491}
31492_ACEOF
31493rm -f conftest.$ac_objext
31494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31495 (eval $ac_compile) 2>conftest.er1
31496 ac_status=$?
31497 grep -v '^ *+' conftest.er1 >conftest.err
31498 rm -f conftest.er1
31499 cat conftest.err >&5
31500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501 (exit $ac_status); } &&
6ebeb4c7 31502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
31503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31504 (eval $ac_try) 2>&5
31505 ac_status=$?
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); }; } &&
31508 { ac_try='test -s conftest.$ac_objext'
31509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31510 (eval $ac_try) 2>&5
31511 ac_status=$?
31512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31513 (exit $ac_status); }; }; then
31514 ac_cv_type_ssize_t=yes
31515else
31516 echo "$as_me: failed program was:" >&5
31517sed 's/^/| /' conftest.$ac_ext >&5
31518
31519ac_cv_type_ssize_t=no
31520fi
31521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31522fi
31523echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31524echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
31525if test $ac_cv_type_ssize_t = yes; then
31526
31527cat >>confdefs.h <<_ACEOF
31528#define HAVE_SSIZE_T 1
31529_ACEOF
31530
31531
31532fi
31533
31534
a848cd7e
SC
31535
31536
31537ac_ext=cc
31538ac_cpp='$CXXCPP $CPPFLAGS'
31539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31542
31543echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
31544echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
31545if test "${wx_cv_size_t_is_uint+set}" = set; then
31546 echo $ECHO_N "(cached) $ECHO_C" >&6
31547else
31548
31549 cat >conftest.$ac_ext <<_ACEOF
31550/* confdefs.h. */
31551_ACEOF
31552cat confdefs.h >>conftest.$ac_ext
31553cat >>conftest.$ac_ext <<_ACEOF
31554/* end confdefs.h. */
31555#include <stddef.h>
31556int
31557main ()
31558{
31559
31560 return 0; }
31561
31562 struct Foo { void foo(size_t); void foo(unsigned int); };
31563
31564 int bar() {
31565
31566 ;
31567 return 0;
31568}
31569_ACEOF
31570rm -f conftest.$ac_objext
31571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31572 (eval $ac_compile) 2>conftest.er1
a848cd7e 31573 ac_status=$?
ac1cb8d3
VS
31574 grep -v '^ *+' conftest.er1 >conftest.err
31575 rm -f conftest.er1
31576 cat conftest.err >&5
a848cd7e
SC
31577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578 (exit $ac_status); } &&
6ebeb4c7 31579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31581 (eval $ac_try) 2>&5
31582 ac_status=$?
31583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31584 (exit $ac_status); }; } &&
31585 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31587 (eval $ac_try) 2>&5
31588 ac_status=$?
31589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590 (exit $ac_status); }; }; then
31591 wx_cv_size_t_is_uint=no
31592else
31593 echo "$as_me: failed program was:" >&5
31594sed 's/^/| /' conftest.$ac_ext >&5
31595
31596wx_cv_size_t_is_uint=yes
31597
31598fi
ac1cb8d3 31599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31600
31601
31602fi
31603echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
31604echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
31605
31606if test "$wx_cv_size_t_is_uint" = "yes"; then
31607 cat >>confdefs.h <<\_ACEOF
31608#define wxSIZE_T_IS_UINT 1
31609_ACEOF
31610
31611else
31612 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
31613echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
31614if test "${wx_cv_size_t_is_ulong+set}" = set; then
31615 echo $ECHO_N "(cached) $ECHO_C" >&6
31616else
31617 cat >conftest.$ac_ext <<_ACEOF
31618/* confdefs.h. */
31619_ACEOF
31620cat confdefs.h >>conftest.$ac_ext
31621cat >>conftest.$ac_ext <<_ACEOF
31622/* end confdefs.h. */
31623#include <stddef.h>
31624int
31625main ()
31626{
31627
31628 return 0; }
31629
31630 struct Foo { void foo(size_t); void foo(unsigned long); };
31631
31632 int bar() {
31633
31634 ;
31635 return 0;
31636}
31637_ACEOF
31638rm -f conftest.$ac_objext
31639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31640 (eval $ac_compile) 2>conftest.er1
a848cd7e 31641 ac_status=$?
ac1cb8d3
VS
31642 grep -v '^ *+' conftest.er1 >conftest.err
31643 rm -f conftest.er1
31644 cat conftest.err >&5
a848cd7e
SC
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); } &&
6ebeb4c7 31647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31649 (eval $ac_try) 2>&5
31650 ac_status=$?
31651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652 (exit $ac_status); }; } &&
31653 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31655 (eval $ac_try) 2>&5
31656 ac_status=$?
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658 (exit $ac_status); }; }; then
31659 wx_cv_size_t_is_ulong=no
31660else
31661 echo "$as_me: failed program was:" >&5
31662sed 's/^/| /' conftest.$ac_ext >&5
31663
31664wx_cv_size_t_is_ulong=yes
31665
31666fi
ac1cb8d3 31667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31668
31669fi
31670echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
31671echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
31672
31673 if test "$wx_cv_size_t_is_ulong" = "yes"; then
31674 cat >>confdefs.h <<\_ACEOF
31675#define wxSIZE_T_IS_ULONG 1
31676_ACEOF
31677
31678 fi
31679fi
31680
31681ac_ext=c
31682ac_cpp='$CPP $CPPFLAGS'
31683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31685ac_compiler_gnu=$ac_cv_c_compiler_gnu
31686
31687
31688
31689echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
31690echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
31691if test "${wx_cv_struct_pw_gecos+set}" = set; then
31692 echo $ECHO_N "(cached) $ECHO_C" >&6
31693else
31694
31695 cat >conftest.$ac_ext <<_ACEOF
31696/* confdefs.h. */
31697_ACEOF
31698cat confdefs.h >>conftest.$ac_ext
31699cat >>conftest.$ac_ext <<_ACEOF
31700/* end confdefs.h. */
31701#include <pwd.h>
31702int
31703main ()
31704{
31705
31706 char *p;
31707 struct passwd *pw;
31708 p = pw->pw_gecos;
31709
31710 ;
31711 return 0;
31712}
31713_ACEOF
31714rm -f conftest.$ac_objext
31715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31716 (eval $ac_compile) 2>conftest.er1
a848cd7e 31717 ac_status=$?
ac1cb8d3
VS
31718 grep -v '^ *+' conftest.er1 >conftest.err
31719 rm -f conftest.er1
31720 cat conftest.err >&5
a848cd7e
SC
31721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31722 (exit $ac_status); } &&
6ebeb4c7 31723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31725 (eval $ac_try) 2>&5
31726 ac_status=$?
31727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31728 (exit $ac_status); }; } &&
31729 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31731 (eval $ac_try) 2>&5
31732 ac_status=$?
31733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31734 (exit $ac_status); }; }; then
31735
31736 wx_cv_struct_pw_gecos=yes
31737
31738else
31739 echo "$as_me: failed program was:" >&5
31740sed 's/^/| /' conftest.$ac_ext >&5
31741
31742
31743 wx_cv_struct_pw_gecos=no
31744
31745
31746fi
ac1cb8d3 31747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31748
31749
31750fi
31751echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
31752echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
31753
31754if test "$wx_cv_struct_pw_gecos" = "yes"; then
31755 cat >>confdefs.h <<\_ACEOF
31756#define HAVE_PW_GECOS 1
31757_ACEOF
31758
31759fi
31760
31761
47a7e797 31762if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
31763 cat >>confdefs.h <<\_ACEOF
31764#define wxUSE_WCHAR_T 1
31765_ACEOF
31766
31767
31768 WCSLEN_FOUND=0
31769 WCHAR_LINK=
31770
31771for ac_func in wcslen
31772do
31773as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31774echo "$as_me:$LINENO: checking for $ac_func" >&5
31775echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31776if eval "test \"\${$as_ac_var+set}\" = set"; then
31777 echo $ECHO_N "(cached) $ECHO_C" >&6
31778else
31779 cat >conftest.$ac_ext <<_ACEOF
31780/* confdefs.h. */
31781_ACEOF
31782cat confdefs.h >>conftest.$ac_ext
31783cat >>conftest.$ac_ext <<_ACEOF
31784/* end confdefs.h. */
ac1cb8d3
VS
31785/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31787#define $ac_func innocuous_$ac_func
31788
a848cd7e
SC
31789/* System header to define __stub macros and hopefully few prototypes,
31790 which can conflict with char $ac_func (); below.
31791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31792 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31793
a848cd7e
SC
31794#ifdef __STDC__
31795# include <limits.h>
31796#else
31797# include <assert.h>
31798#endif
ac1cb8d3
VS
31799
31800#undef $ac_func
31801
a848cd7e
SC
31802/* Override any gcc2 internal prototype to avoid an error. */
31803#ifdef __cplusplus
31804extern "C"
31805{
31806#endif
31807/* We use char because int might match the return type of a gcc2
31808 builtin and then its argument prototype would still apply. */
31809char $ac_func ();
31810/* The GNU C library defines this for functions which it implements
31811 to always fail with ENOSYS. Some functions are actually named
31812 something starting with __ and the normal name is an alias. */
31813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31814choke me
31815#else
31816char (*f) () = $ac_func;
31817#endif
31818#ifdef __cplusplus
31819}
31820#endif
31821
31822int
31823main ()
31824{
31825return f != $ac_func;
31826 ;
31827 return 0;
31828}
31829_ACEOF
31830rm -f conftest.$ac_objext conftest$ac_exeext
31831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31832 (eval $ac_link) 2>conftest.er1
a848cd7e 31833 ac_status=$?
ac1cb8d3
VS
31834 grep -v '^ *+' conftest.er1 >conftest.err
31835 rm -f conftest.er1
31836 cat conftest.err >&5
a848cd7e
SC
31837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); } &&
6ebeb4c7 31839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31841 (eval $ac_try) 2>&5
31842 ac_status=$?
31843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31844 (exit $ac_status); }; } &&
31845 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31847 (eval $ac_try) 2>&5
31848 ac_status=$?
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; }; then
31851 eval "$as_ac_var=yes"
31852else
31853 echo "$as_me: failed program was:" >&5
31854sed 's/^/| /' conftest.$ac_ext >&5
31855
31856eval "$as_ac_var=no"
31857fi
ac1cb8d3
VS
31858rm -f conftest.err conftest.$ac_objext \
31859 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31860fi
31861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31863if test `eval echo '${'$as_ac_var'}'` = yes; then
31864 cat >>confdefs.h <<_ACEOF
31865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31866_ACEOF
31867 WCSLEN_FOUND=1
31868fi
31869done
31870
31871
31872 if test "$WCSLEN_FOUND" = 0; then
31873 if test "$TOOLKIT" = "MSW"; then
31874 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
31875echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
31876if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
31877 echo $ECHO_N "(cached) $ECHO_C" >&6
31878else
31879 ac_check_lib_save_LIBS=$LIBS
31880LIBS="-lmsvcrt $LIBS"
31881cat >conftest.$ac_ext <<_ACEOF
31882/* confdefs.h. */
31883_ACEOF
31884cat confdefs.h >>conftest.$ac_ext
31885cat >>conftest.$ac_ext <<_ACEOF
31886/* end confdefs.h. */
31887
31888/* Override any gcc2 internal prototype to avoid an error. */
31889#ifdef __cplusplus
31890extern "C"
31891#endif
31892/* We use char because int might match the return type of a gcc2
31893 builtin and then its argument prototype would still apply. */
31894char wcslen ();
31895int
31896main ()
31897{
31898wcslen ();
31899 ;
31900 return 0;
31901}
31902_ACEOF
31903rm -f conftest.$ac_objext conftest$ac_exeext
31904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31905 (eval $ac_link) 2>conftest.er1
a848cd7e 31906 ac_status=$?
ac1cb8d3
VS
31907 grep -v '^ *+' conftest.er1 >conftest.err
31908 rm -f conftest.er1
31909 cat conftest.err >&5
a848cd7e
SC
31910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911 (exit $ac_status); } &&
6ebeb4c7 31912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31914 (eval $ac_try) 2>&5
31915 ac_status=$?
31916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917 (exit $ac_status); }; } &&
31918 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31920 (eval $ac_try) 2>&5
31921 ac_status=$?
31922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31923 (exit $ac_status); }; }; then
31924 ac_cv_lib_msvcrt_wcslen=yes
31925else
31926 echo "$as_me: failed program was:" >&5
31927sed 's/^/| /' conftest.$ac_ext >&5
31928
31929ac_cv_lib_msvcrt_wcslen=no
31930fi
ac1cb8d3
VS
31931rm -f conftest.err conftest.$ac_objext \
31932 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31933LIBS=$ac_check_lib_save_LIBS
31934fi
31935echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31936echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31937if test $ac_cv_lib_msvcrt_wcslen = yes; then
31938 WCHAR_OK=1
31939fi
31940
31941 else
31942 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31943echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31944if test "${ac_cv_lib_w_wcslen+set}" = set; then
31945 echo $ECHO_N "(cached) $ECHO_C" >&6
31946else
31947 ac_check_lib_save_LIBS=$LIBS
31948LIBS="-lw $LIBS"
31949cat >conftest.$ac_ext <<_ACEOF
31950/* confdefs.h. */
31951_ACEOF
31952cat confdefs.h >>conftest.$ac_ext
31953cat >>conftest.$ac_ext <<_ACEOF
31954/* end confdefs.h. */
31955
31956/* Override any gcc2 internal prototype to avoid an error. */
31957#ifdef __cplusplus
31958extern "C"
31959#endif
31960/* We use char because int might match the return type of a gcc2
31961 builtin and then its argument prototype would still apply. */
31962char wcslen ();
31963int
31964main ()
31965{
31966wcslen ();
31967 ;
31968 return 0;
31969}
31970_ACEOF
31971rm -f conftest.$ac_objext conftest$ac_exeext
31972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31973 (eval $ac_link) 2>conftest.er1
a848cd7e 31974 ac_status=$?
ac1cb8d3
VS
31975 grep -v '^ *+' conftest.er1 >conftest.err
31976 rm -f conftest.er1
31977 cat conftest.err >&5
a848cd7e
SC
31978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31979 (exit $ac_status); } &&
6ebeb4c7 31980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31982 (eval $ac_try) 2>&5
31983 ac_status=$?
31984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985 (exit $ac_status); }; } &&
31986 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31988 (eval $ac_try) 2>&5
31989 ac_status=$?
31990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31991 (exit $ac_status); }; }; then
31992 ac_cv_lib_w_wcslen=yes
31993else
31994 echo "$as_me: failed program was:" >&5
31995sed 's/^/| /' conftest.$ac_ext >&5
31996
31997ac_cv_lib_w_wcslen=no
31998fi
ac1cb8d3
VS
31999rm -f conftest.err conftest.$ac_objext \
32000 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32001LIBS=$ac_check_lib_save_LIBS
32002fi
32003echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
32004echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
32005if test $ac_cv_lib_w_wcslen = yes; then
32006
32007 WCHAR_LINK=" -lw"
32008 WCSLEN_FOUND=1
32009
32010fi
32011
32012 fi
32013 fi
32014
32015 if test "$WCSLEN_FOUND" = 1; then
32016 cat >>confdefs.h <<\_ACEOF
32017#define HAVE_WCSLEN 1
32018_ACEOF
32019
32020 fi
32021
efdf6afe 32022 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
32023 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
32024 fi
32025
efdf6afe
VZ
32026 echo "$as_me:$LINENO: checking for mbstate_t" >&5
32027echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
32028if test "${ac_cv_type_mbstate_t+set}" = set; then
32029 echo $ECHO_N "(cached) $ECHO_C" >&6
32030else
32031 cat >conftest.$ac_ext <<_ACEOF
32032/* confdefs.h. */
32033_ACEOF
32034cat confdefs.h >>conftest.$ac_ext
32035cat >>conftest.$ac_ext <<_ACEOF
32036/* end confdefs.h. */
32037#include <wchar.h>
32038
32039int
32040main ()
32041{
32042if ((mbstate_t *) 0)
32043 return 0;
32044if (sizeof (mbstate_t))
32045 return 0;
32046 ;
32047 return 0;
32048}
32049_ACEOF
32050rm -f conftest.$ac_objext
32051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32052 (eval $ac_compile) 2>conftest.er1
32053 ac_status=$?
32054 grep -v '^ *+' conftest.er1 >conftest.err
32055 rm -f conftest.er1
32056 cat conftest.err >&5
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); } &&
32059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32061 (eval $ac_try) 2>&5
32062 ac_status=$?
32063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32064 (exit $ac_status); }; } &&
32065 { ac_try='test -s conftest.$ac_objext'
32066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32067 (eval $ac_try) 2>&5
32068 ac_status=$?
32069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32070 (exit $ac_status); }; }; then
32071 ac_cv_type_mbstate_t=yes
32072else
32073 echo "$as_me: failed program was:" >&5
32074sed 's/^/| /' conftest.$ac_ext >&5
32075
32076ac_cv_type_mbstate_t=no
32077fi
32078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32079fi
32080echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32081echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
32082if test $ac_cv_type_mbstate_t = yes; then
32083
32084cat >>confdefs.h <<_ACEOF
32085#define HAVE_MBSTATE_T 1
32086_ACEOF
32087
a848cd7e
SC
32088
32089for ac_func in wcsrtombs
32090do
32091as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32092echo "$as_me:$LINENO: checking for $ac_func" >&5
32093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32094if eval "test \"\${$as_ac_var+set}\" = set"; then
32095 echo $ECHO_N "(cached) $ECHO_C" >&6
32096else
32097 cat >conftest.$ac_ext <<_ACEOF
32098/* confdefs.h. */
32099_ACEOF
32100cat confdefs.h >>conftest.$ac_ext
32101cat >>conftest.$ac_ext <<_ACEOF
32102/* end confdefs.h. */
ac1cb8d3
VS
32103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32105#define $ac_func innocuous_$ac_func
32106
a848cd7e
SC
32107/* System header to define __stub macros and hopefully few prototypes,
32108 which can conflict with char $ac_func (); below.
32109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32110 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32111
a848cd7e
SC
32112#ifdef __STDC__
32113# include <limits.h>
32114#else
32115# include <assert.h>
32116#endif
ac1cb8d3
VS
32117
32118#undef $ac_func
32119
a848cd7e
SC
32120/* Override any gcc2 internal prototype to avoid an error. */
32121#ifdef __cplusplus
32122extern "C"
32123{
32124#endif
32125/* We use char because int might match the return type of a gcc2
32126 builtin and then its argument prototype would still apply. */
32127char $ac_func ();
32128/* The GNU C library defines this for functions which it implements
32129 to always fail with ENOSYS. Some functions are actually named
32130 something starting with __ and the normal name is an alias. */
32131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32132choke me
32133#else
32134char (*f) () = $ac_func;
32135#endif
32136#ifdef __cplusplus
32137}
32138#endif
32139
32140int
32141main ()
32142{
32143return f != $ac_func;
32144 ;
32145 return 0;
32146}
32147_ACEOF
32148rm -f conftest.$ac_objext conftest$ac_exeext
32149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32150 (eval $ac_link) 2>conftest.er1
a848cd7e 32151 ac_status=$?
ac1cb8d3
VS
32152 grep -v '^ *+' conftest.er1 >conftest.err
32153 rm -f conftest.er1
32154 cat conftest.err >&5
a848cd7e
SC
32155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32156 (exit $ac_status); } &&
6ebeb4c7 32157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32159 (eval $ac_try) 2>&5
32160 ac_status=$?
32161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 (exit $ac_status); }; } &&
32163 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32165 (eval $ac_try) 2>&5
32166 ac_status=$?
32167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32168 (exit $ac_status); }; }; then
32169 eval "$as_ac_var=yes"
32170else
32171 echo "$as_me: failed program was:" >&5
32172sed 's/^/| /' conftest.$ac_ext >&5
32173
32174eval "$as_ac_var=no"
32175fi
ac1cb8d3
VS
32176rm -f conftest.err conftest.$ac_objext \
32177 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32178fi
32179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32180echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32181if test `eval echo '${'$as_ac_var'}'` = yes; then
32182 cat >>confdefs.h <<_ACEOF
32183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32184_ACEOF
32185
32186fi
32187done
32188
efdf6afe
VZ
32189fi
32190
a848cd7e
SC
32191else
32192 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
32193echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
32194fi
32195
32196
32197
32198ac_ext=cc
32199ac_cpp='$CXXCPP $CPPFLAGS'
32200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32203
32204
32205
4a767dd5
VZ
32206
32207for ac_func in snprintf vsnprintf
a848cd7e
SC
32208do
32209as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32210echo "$as_me:$LINENO: checking for $ac_func" >&5
32211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32212if eval "test \"\${$as_ac_var+set}\" = set"; then
32213 echo $ECHO_N "(cached) $ECHO_C" >&6
32214else
32215 cat >conftest.$ac_ext <<_ACEOF
32216/* confdefs.h. */
32217_ACEOF
32218cat confdefs.h >>conftest.$ac_ext
32219cat >>conftest.$ac_ext <<_ACEOF
32220/* end confdefs.h. */
ac1cb8d3
VS
32221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32223#define $ac_func innocuous_$ac_func
32224
a848cd7e
SC
32225/* System header to define __stub macros and hopefully few prototypes,
32226 which can conflict with char $ac_func (); below.
32227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32228 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32229
a848cd7e
SC
32230#ifdef __STDC__
32231# include <limits.h>
32232#else
32233# include <assert.h>
32234#endif
ac1cb8d3
VS
32235
32236#undef $ac_func
32237
a848cd7e
SC
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
32257
32258int
32259main ()
32260{
32261return f != $ac_func;
32262 ;
32263 return 0;
32264}
32265_ACEOF
32266rm -f conftest.$ac_objext conftest$ac_exeext
32267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32268 (eval $ac_link) 2>conftest.er1
a848cd7e 32269 ac_status=$?
ac1cb8d3
VS
32270 grep -v '^ *+' conftest.er1 >conftest.err
32271 rm -f conftest.er1
32272 cat conftest.err >&5
a848cd7e
SC
32273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274 (exit $ac_status); } &&
6ebeb4c7 32275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32277 (eval $ac_try) 2>&5
32278 ac_status=$?
32279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280 (exit $ac_status); }; } &&
32281 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32283 (eval $ac_try) 2>&5
32284 ac_status=$?
32285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286 (exit $ac_status); }; }; then
32287 eval "$as_ac_var=yes"
32288else
32289 echo "$as_me: failed program was:" >&5
32290sed 's/^/| /' conftest.$ac_ext >&5
32291
32292eval "$as_ac_var=no"
32293fi
ac1cb8d3
VS
32294rm -f conftest.err conftest.$ac_objext \
32295 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32296fi
32297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32298echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32299if test `eval echo '${'$as_ac_var'}'` = yes; then
32300 cat >>confdefs.h <<_ACEOF
32301#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32302_ACEOF
32303
32304fi
32305done
32306
32307
32308if test "$ac_cv_func_vsnprintf" = "yes"; then
32309 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
32310echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
32311if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
32312 echo $ECHO_N "(cached) $ECHO_C" >&6
32313else
32314
efdf6afe 32315 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32316/* confdefs.h. */
32317_ACEOF
32318cat confdefs.h >>conftest.$ac_ext
32319cat >>conftest.$ac_ext <<_ACEOF
32320/* end confdefs.h. */
32321
32322 #include <stdio.h>
32323 #include <stdarg.h>
efdf6afe
VZ
32324 #ifdef __MSL__
32325 #if __MSL__ >= 0x6000
32326 namespace std {}
32327 using namespace std;
32328 #endif
32329 #endif
a848cd7e
SC
32330
32331int
32332main ()
32333{
32334
32335 char *buf;
32336 va_list ap;
62fa8b3a 32337 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
32338
32339 ;
32340 return 0;
32341}
32342_ACEOF
32343rm -f conftest.$ac_objext
32344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32345 (eval $ac_compile) 2>conftest.er1
32346 ac_status=$?
32347 grep -v '^ *+' conftest.er1 >conftest.err
32348 rm -f conftest.er1
32349 cat conftest.err >&5
32350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351 (exit $ac_status); } &&
6ebeb4c7 32352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
32353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32354 (eval $ac_try) 2>&5
32355 ac_status=$?
32356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 (exit $ac_status); }; } &&
32358 { ac_try='test -s conftest.$ac_objext'
32359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32360 (eval $ac_try) 2>&5
32361 ac_status=$?
32362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32363 (exit $ac_status); }; }; then
32364 wx_cv_func_vsnprintf_decl=yes
32365else
32366 echo "$as_me: failed program was:" >&5
32367sed 's/^/| /' conftest.$ac_ext >&5
32368
a848cd7e
SC
32369wx_cv_func_vsnprintf_decl=no
32370
32371fi
ac1cb8d3 32372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32373
32374
32375fi
32376echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
32377echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
32378
32379 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
32380 cat >>confdefs.h <<\_ACEOF
32381#define HAVE_VSNPRINTF_DECL 1
32382_ACEOF
32383
62fa8b3a
MW
32384
32385 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
32386echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
32387if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
32388 echo $ECHO_N "(cached) $ECHO_C" >&6
32389else
32390
32391 cat >conftest.$ac_ext <<_ACEOF
32392/* confdefs.h. */
32393_ACEOF
32394cat confdefs.h >>conftest.$ac_ext
32395cat >>conftest.$ac_ext <<_ACEOF
32396/* end confdefs.h. */
32397
32398 #include <stdio.h>
32399 #include <stdarg.h>
32400 #ifdef __MSL__
32401 #if __MSL__ >= 0x6000
32402 namespace std {}
32403 using namespace std;
32404 #endif
32405 #endif
32406
32407int
32408main ()
32409{
32410
32411 char *buf;
32412 va_list ap;
32413 const char *fmt = "%s";
32414 vsnprintf(buf, 10u, fmt, ap);
32415
32416 ;
32417 return 0;
32418}
32419_ACEOF
32420rm -f conftest.$ac_objext
32421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32422 (eval $ac_compile) 2>conftest.er1
32423 ac_status=$?
32424 grep -v '^ *+' conftest.er1 >conftest.err
32425 rm -f conftest.er1
32426 cat conftest.err >&5
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); } &&
32429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32431 (eval $ac_try) 2>&5
32432 ac_status=$?
32433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434 (exit $ac_status); }; } &&
32435 { ac_try='test -s conftest.$ac_objext'
32436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32437 (eval $ac_try) 2>&5
32438 ac_status=$?
32439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32440 (exit $ac_status); }; }; then
32441 wx_cv_func_broken_vsnprintf_decl=no
32442else
32443 echo "$as_me: failed program was:" >&5
32444sed 's/^/| /' conftest.$ac_ext >&5
32445
32446wx_cv_func_broken_vsnprintf_decl=yes
32447
32448fi
32449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32450
32451
32452fi
32453echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
32454echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
32455
32456 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
32457 cat >>confdefs.h <<\_ACEOF
32458#define HAVE_BROKEN_VSNPRINTF_DECL 1
32459_ACEOF
32460
32461 fi
a848cd7e
SC
32462 fi
32463fi
32464
4a767dd5
VZ
32465if test "$ac_cv_func_snprintf" = "yes"; then
32466 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
32467echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
32468if test "${wx_cv_func_snprintf_decl+set}" = set; then
32469 echo $ECHO_N "(cached) $ECHO_C" >&6
32470else
32471
32472 cat >conftest.$ac_ext <<_ACEOF
32473/* confdefs.h. */
32474_ACEOF
32475cat confdefs.h >>conftest.$ac_ext
32476cat >>conftest.$ac_ext <<_ACEOF
32477/* end confdefs.h. */
32478
32479 #include <stdio.h>
32480 #include <stdarg.h>
32481 #ifdef __MSL__
32482 #if __MSL__ >= 0x6000
32483 namespace std {}
32484 using namespace std;
32485 #endif
32486 #endif
32487
32488int
32489main ()
32490{
32491
32492 char *buf;
62fa8b3a 32493 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
32494
32495 ;
32496 return 0;
32497}
32498_ACEOF
32499rm -f conftest.$ac_objext
32500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32501 (eval $ac_compile) 2>conftest.er1
32502 ac_status=$?
32503 grep -v '^ *+' conftest.er1 >conftest.err
32504 rm -f conftest.er1
32505 cat conftest.err >&5
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); } &&
32508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32510 (eval $ac_try) 2>&5
32511 ac_status=$?
32512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513 (exit $ac_status); }; } &&
32514 { ac_try='test -s conftest.$ac_objext'
32515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32516 (eval $ac_try) 2>&5
32517 ac_status=$?
32518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519 (exit $ac_status); }; }; then
32520 wx_cv_func_snprintf_decl=yes
32521else
32522 echo "$as_me: failed program was:" >&5
32523sed 's/^/| /' conftest.$ac_ext >&5
32524
32525wx_cv_func_snprintf_decl=no
32526
32527fi
32528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32529
32530
32531fi
32532echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
32533echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
32534
32535 if test "$wx_cv_func_snprintf_decl" = "yes"; then
32536 cat >>confdefs.h <<\_ACEOF
32537#define HAVE_SNPRINTF_DECL 1
32538_ACEOF
32539
62fa8b3a
MW
32540
32541 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
32542echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
32543if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
32544 echo $ECHO_N "(cached) $ECHO_C" >&6
32545else
32546
32547 cat >conftest.$ac_ext <<_ACEOF
32548/* confdefs.h. */
32549_ACEOF
32550cat confdefs.h >>conftest.$ac_ext
32551cat >>conftest.$ac_ext <<_ACEOF
32552/* end confdefs.h. */
32553
32554 #include <stdio.h>
32555 #include <stdarg.h>
32556 #ifdef __MSL__
32557 #if __MSL__ >= 0x6000
32558 namespace std {}
32559 using namespace std;
32560 #endif
32561 #endif
32562
32563int
32564main ()
32565{
32566
32567 char *buf;
32568 const char *fmt = "%s";
32569 snprintf(buf, 10u, fmt, "wx");
32570
32571 ;
32572 return 0;
32573}
32574_ACEOF
32575rm -f conftest.$ac_objext
32576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32577 (eval $ac_compile) 2>conftest.er1
32578 ac_status=$?
32579 grep -v '^ *+' conftest.er1 >conftest.err
32580 rm -f conftest.er1
32581 cat conftest.err >&5
32582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32583 (exit $ac_status); } &&
32584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32586 (eval $ac_try) 2>&5
32587 ac_status=$?
32588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589 (exit $ac_status); }; } &&
32590 { ac_try='test -s conftest.$ac_objext'
32591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32592 (eval $ac_try) 2>&5
32593 ac_status=$?
32594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595 (exit $ac_status); }; }; then
32596 wx_cv_func_broken_snprintf_decl=no
32597else
32598 echo "$as_me: failed program was:" >&5
32599sed 's/^/| /' conftest.$ac_ext >&5
32600
32601wx_cv_func_broken_snprintf_decl=yes
32602
32603fi
32604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32605
32606
32607fi
32608echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
32609echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
32610
32611 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
32612 cat >>confdefs.h <<\_ACEOF
32613#define HAVE_BROKEN_SNPRINTF_DECL 1
32614_ACEOF
32615
32616 fi
4a767dd5
VZ
32617 fi
32618fi
32619
a848cd7e
SC
32620if test "$wxUSE_UNICODE" = yes; then
32621
32622
32623
fbe47c7b
VS
32624
32625
32626
32627for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
32628do
32629as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32630echo "$as_me:$LINENO: checking for $ac_func" >&5
32631echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32632if eval "test \"\${$as_ac_var+set}\" = set"; then
32633 echo $ECHO_N "(cached) $ECHO_C" >&6
32634else
32635 cat >conftest.$ac_ext <<_ACEOF
32636/* confdefs.h. */
32637_ACEOF
32638cat confdefs.h >>conftest.$ac_ext
32639cat >>conftest.$ac_ext <<_ACEOF
32640/* end confdefs.h. */
ac1cb8d3
VS
32641/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32643#define $ac_func innocuous_$ac_func
32644
a848cd7e
SC
32645/* System header to define __stub macros and hopefully few prototypes,
32646 which can conflict with char $ac_func (); below.
32647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32648 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32649
a848cd7e
SC
32650#ifdef __STDC__
32651# include <limits.h>
32652#else
32653# include <assert.h>
32654#endif
ac1cb8d3
VS
32655
32656#undef $ac_func
32657
a848cd7e
SC
32658/* Override any gcc2 internal prototype to avoid an error. */
32659#ifdef __cplusplus
32660extern "C"
32661{
32662#endif
32663/* We use char because int might match the return type of a gcc2
32664 builtin and then its argument prototype would still apply. */
32665char $ac_func ();
32666/* The GNU C library defines this for functions which it implements
32667 to always fail with ENOSYS. Some functions are actually named
32668 something starting with __ and the normal name is an alias. */
32669#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32670choke me
32671#else
32672char (*f) () = $ac_func;
32673#endif
32674#ifdef __cplusplus
32675}
32676#endif
32677
32678int
32679main ()
32680{
32681return f != $ac_func;
32682 ;
32683 return 0;
32684}
32685_ACEOF
32686rm -f conftest.$ac_objext conftest$ac_exeext
32687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32688 (eval $ac_link) 2>conftest.er1
a848cd7e 32689 ac_status=$?
ac1cb8d3
VS
32690 grep -v '^ *+' conftest.er1 >conftest.err
32691 rm -f conftest.er1
32692 cat conftest.err >&5
a848cd7e
SC
32693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694 (exit $ac_status); } &&
6ebeb4c7 32695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32697 (eval $ac_try) 2>&5
32698 ac_status=$?
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); }; } &&
32701 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32703 (eval $ac_try) 2>&5
32704 ac_status=$?
32705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706 (exit $ac_status); }; }; then
32707 eval "$as_ac_var=yes"
32708else
32709 echo "$as_me: failed program was:" >&5
32710sed 's/^/| /' conftest.$ac_ext >&5
32711
32712eval "$as_ac_var=no"
32713fi
ac1cb8d3
VS
32714rm -f conftest.err conftest.$ac_objext \
32715 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32716fi
32717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32718echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32719if test `eval echo '${'$as_ac_var'}'` = yes; then
32720 cat >>confdefs.h <<_ACEOF
32721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32722_ACEOF
32723
32724fi
32725done
32726
32727
32728 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
32729echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
32730 cat >conftest.$ac_ext <<_ACEOF
32731/* confdefs.h. */
32732_ACEOF
32733cat confdefs.h >>conftest.$ac_ext
32734cat >>conftest.$ac_ext <<_ACEOF
32735/* end confdefs.h. */
32736#include <wchar.h>
32737int
32738main ()
32739{
32740&_vsnwprintf;
32741 ;
32742 return 0;
32743}
32744_ACEOF
32745rm -f conftest.$ac_objext
32746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32747 (eval $ac_compile) 2>conftest.er1
a848cd7e 32748 ac_status=$?
ac1cb8d3
VS
32749 grep -v '^ *+' conftest.er1 >conftest.err
32750 rm -f conftest.er1
32751 cat conftest.err >&5
a848cd7e
SC
32752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753 (exit $ac_status); } &&
6ebeb4c7 32754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32756 (eval $ac_try) 2>&5
32757 ac_status=$?
32758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759 (exit $ac_status); }; } &&
32760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32762 (eval $ac_try) 2>&5
32763 ac_status=$?
32764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765 (exit $ac_status); }; }; then
32766 echo "$as_me:$LINENO: result: yes" >&5
32767echo "${ECHO_T}yes" >&6
32768 cat >>confdefs.h <<\_ACEOF
32769#define HAVE__VSNWPRINTF 1
32770_ACEOF
32771
32772else
32773 echo "$as_me: failed program was:" >&5
32774sed 's/^/| /' conftest.$ac_ext >&5
32775
32776echo "$as_me:$LINENO: result: no" >&5
32777echo "${ECHO_T}no" >&6
32778fi
ac1cb8d3 32779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
32780fi
32781
32782ac_ext=c
32783ac_cpp='$CPP $CPPFLAGS'
32784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32786ac_compiler_gnu=$ac_cv_c_compiler_gnu
32787
32788
6ebeb4c7
VZ
32789if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
32790
32791for ac_func in fnmatch
32792do
32793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32794echo "$as_me:$LINENO: checking for $ac_func" >&5
32795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32796if eval "test \"\${$as_ac_var+set}\" = set"; then
32797 echo $ECHO_N "(cached) $ECHO_C" >&6
32798else
32799 cat >conftest.$ac_ext <<_ACEOF
32800/* confdefs.h. */
32801_ACEOF
32802cat confdefs.h >>conftest.$ac_ext
32803cat >>conftest.$ac_ext <<_ACEOF
32804/* end confdefs.h. */
32805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32807#define $ac_func innocuous_$ac_func
32808
32809/* System header to define __stub macros and hopefully few prototypes,
32810 which can conflict with char $ac_func (); below.
32811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32812 <limits.h> exists even on freestanding compilers. */
32813
32814#ifdef __STDC__
32815# include <limits.h>
32816#else
32817# include <assert.h>
32818#endif
32819
32820#undef $ac_func
32821
32822/* Override any gcc2 internal prototype to avoid an error. */
32823#ifdef __cplusplus
32824extern "C"
32825{
32826#endif
32827/* We use char because int might match the return type of a gcc2
32828 builtin and then its argument prototype would still apply. */
32829char $ac_func ();
32830/* The GNU C library defines this for functions which it implements
32831 to always fail with ENOSYS. Some functions are actually named
32832 something starting with __ and the normal name is an alias. */
32833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32834choke me
32835#else
32836char (*f) () = $ac_func;
32837#endif
32838#ifdef __cplusplus
32839}
32840#endif
32841
32842int
32843main ()
32844{
32845return f != $ac_func;
32846 ;
32847 return 0;
32848}
32849_ACEOF
32850rm -f conftest.$ac_objext conftest$ac_exeext
32851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32852 (eval $ac_link) 2>conftest.er1
32853 ac_status=$?
32854 grep -v '^ *+' conftest.er1 >conftest.err
32855 rm -f conftest.er1
32856 cat conftest.err >&5
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); } &&
32859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32861 (eval $ac_try) 2>&5
32862 ac_status=$?
32863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864 (exit $ac_status); }; } &&
32865 { ac_try='test -s conftest$ac_exeext'
32866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32867 (eval $ac_try) 2>&5
32868 ac_status=$?
32869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32870 (exit $ac_status); }; }; then
32871 eval "$as_ac_var=yes"
32872else
32873 echo "$as_me: failed program was:" >&5
32874sed 's/^/| /' conftest.$ac_ext >&5
32875
32876eval "$as_ac_var=no"
32877fi
32878rm -f conftest.err conftest.$ac_objext \
32879 conftest$ac_exeext conftest.$ac_ext
32880fi
32881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32882echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32883if test `eval echo '${'$as_ac_var'}'` = yes; then
32884 cat >>confdefs.h <<_ACEOF
32885#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32886_ACEOF
32887
32888fi
32889done
32890
32891fi
32892
32893if test "$wxUSE_FILE" = "yes"; then
32894
32895for ac_func in fsync
32896do
32897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32898echo "$as_me:$LINENO: checking for $ac_func" >&5
32899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32900if eval "test \"\${$as_ac_var+set}\" = set"; then
32901 echo $ECHO_N "(cached) $ECHO_C" >&6
32902else
32903 cat >conftest.$ac_ext <<_ACEOF
32904/* confdefs.h. */
32905_ACEOF
32906cat confdefs.h >>conftest.$ac_ext
32907cat >>conftest.$ac_ext <<_ACEOF
32908/* end confdefs.h. */
32909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32911#define $ac_func innocuous_$ac_func
32912
32913/* System header to define __stub macros and hopefully few prototypes,
32914 which can conflict with char $ac_func (); below.
32915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32916 <limits.h> exists even on freestanding compilers. */
32917
32918#ifdef __STDC__
32919# include <limits.h>
32920#else
32921# include <assert.h>
32922#endif
32923
32924#undef $ac_func
32925
32926/* Override any gcc2 internal prototype to avoid an error. */
32927#ifdef __cplusplus
32928extern "C"
32929{
32930#endif
32931/* We use char because int might match the return type of a gcc2
32932 builtin and then its argument prototype would still apply. */
32933char $ac_func ();
32934/* The GNU C library defines this for functions which it implements
32935 to always fail with ENOSYS. Some functions are actually named
32936 something starting with __ and the normal name is an alias. */
32937#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32938choke me
32939#else
32940char (*f) () = $ac_func;
32941#endif
32942#ifdef __cplusplus
32943}
32944#endif
32945
32946int
32947main ()
32948{
32949return f != $ac_func;
32950 ;
32951 return 0;
32952}
32953_ACEOF
32954rm -f conftest.$ac_objext conftest$ac_exeext
32955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32956 (eval $ac_link) 2>conftest.er1
32957 ac_status=$?
32958 grep -v '^ *+' conftest.er1 >conftest.err
32959 rm -f conftest.er1
32960 cat conftest.err >&5
32961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32962 (exit $ac_status); } &&
32963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32965 (eval $ac_try) 2>&5
32966 ac_status=$?
32967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32968 (exit $ac_status); }; } &&
32969 { ac_try='test -s conftest$ac_exeext'
32970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32971 (eval $ac_try) 2>&5
32972 ac_status=$?
32973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974 (exit $ac_status); }; }; then
32975 eval "$as_ac_var=yes"
32976else
32977 echo "$as_me: failed program was:" >&5
32978sed 's/^/| /' conftest.$ac_ext >&5
32979
32980eval "$as_ac_var=no"
32981fi
32982rm -f conftest.err conftest.$ac_objext \
32983 conftest$ac_exeext conftest.$ac_ext
32984fi
32985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32986echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32987if test `eval echo '${'$as_ac_var'}'` = yes; then
32988 cat >>confdefs.h <<_ACEOF
32989#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32990_ACEOF
32991
32992fi
32993done
32994
32995fi
a848cd7e
SC
32996
32997
32998if test "$TOOLKIT" != "MSW"; then
32999
33000
33001
33002
33003ac_ext=cc
33004ac_cpp='$CXXCPP $CPPFLAGS'
33005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33008
33009
33010
33011
33012# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
33013if test "${with_libiconv_prefix+set}" = set; then
33014 withval="$with_libiconv_prefix"
33015
33016 for dir in `echo "$withval" | tr : ' '`; do
33017 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
33018 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
33019 done
33020
33021fi;
33022
33023 echo "$as_me:$LINENO: checking for iconv" >&5
33024echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33025if test "${am_cv_func_iconv+set}" = set; then
33026 echo $ECHO_N "(cached) $ECHO_C" >&6
33027else
33028
33029 am_cv_func_iconv="no, consider installing GNU libiconv"
33030 am_cv_lib_iconv=no
33031 cat >conftest.$ac_ext <<_ACEOF
33032/* confdefs.h. */
33033_ACEOF
33034cat confdefs.h >>conftest.$ac_ext
33035cat >>conftest.$ac_ext <<_ACEOF
33036/* end confdefs.h. */
33037#include <stdlib.h>
33038#include <iconv.h>
33039int
33040main ()
33041{
33042iconv_t cd = iconv_open("","");
33043 iconv(cd,NULL,NULL,NULL,NULL);
33044 iconv_close(cd);
33045 ;
33046 return 0;
33047}
33048_ACEOF
33049rm -f conftest.$ac_objext conftest$ac_exeext
33050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33051 (eval $ac_link) 2>conftest.er1
a848cd7e 33052 ac_status=$?
ac1cb8d3
VS
33053 grep -v '^ *+' conftest.er1 >conftest.err
33054 rm -f conftest.er1
33055 cat conftest.err >&5
a848cd7e
SC
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); } &&
6ebeb4c7 33058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33060 (eval $ac_try) 2>&5
33061 ac_status=$?
33062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33063 (exit $ac_status); }; } &&
33064 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33066 (eval $ac_try) 2>&5
33067 ac_status=$?
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); }; }; then
33070 am_cv_func_iconv=yes
33071else
33072 echo "$as_me: failed program was:" >&5
33073sed 's/^/| /' conftest.$ac_ext >&5
33074
33075fi
ac1cb8d3
VS
33076rm -f conftest.err conftest.$ac_objext \
33077 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33078 if test "$am_cv_func_iconv" != yes; then
33079 am_save_LIBS="$LIBS"
33080 LIBS="$LIBS -liconv"
33081 cat >conftest.$ac_ext <<_ACEOF
33082/* confdefs.h. */
33083_ACEOF
33084cat confdefs.h >>conftest.$ac_ext
33085cat >>conftest.$ac_ext <<_ACEOF
33086/* end confdefs.h. */
33087#include <stdlib.h>
33088#include <iconv.h>
33089int
33090main ()
33091{
33092iconv_t cd = iconv_open("","");
33093 iconv(cd,NULL,NULL,NULL,NULL);
33094 iconv_close(cd);
33095 ;
33096 return 0;
33097}
33098_ACEOF
33099rm -f conftest.$ac_objext conftest$ac_exeext
33100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33101 (eval $ac_link) 2>conftest.er1
a848cd7e 33102 ac_status=$?
ac1cb8d3
VS
33103 grep -v '^ *+' conftest.er1 >conftest.err
33104 rm -f conftest.er1
33105 cat conftest.err >&5
a848cd7e
SC
33106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33107 (exit $ac_status); } &&
6ebeb4c7 33108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33110 (eval $ac_try) 2>&5
33111 ac_status=$?
33112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33113 (exit $ac_status); }; } &&
33114 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33116 (eval $ac_try) 2>&5
33117 ac_status=$?
33118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119 (exit $ac_status); }; }; then
33120 am_cv_lib_iconv=yes
33121 am_cv_func_iconv=yes
33122else
33123 echo "$as_me: failed program was:" >&5
33124sed 's/^/| /' conftest.$ac_ext >&5
33125
33126fi
ac1cb8d3
VS
33127rm -f conftest.err conftest.$ac_objext \
33128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33129 LIBS="$am_save_LIBS"
33130 fi
33131
33132fi
33133echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33134echo "${ECHO_T}$am_cv_func_iconv" >&6
33135 if test "$am_cv_func_iconv" = yes; then
33136
33137cat >>confdefs.h <<\_ACEOF
33138#define HAVE_ICONV 1
33139_ACEOF
33140
33141 echo "$as_me:$LINENO: checking if iconv needs const" >&5
33142echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
33143if test "${wx_cv_func_iconv_const+set}" = set; then
33144 echo $ECHO_N "(cached) $ECHO_C" >&6
33145else
33146 cat >conftest.$ac_ext <<_ACEOF
33147/* confdefs.h. */
33148_ACEOF
33149cat confdefs.h >>conftest.$ac_ext
33150cat >>conftest.$ac_ext <<_ACEOF
33151/* end confdefs.h. */
33152
33153#include <stdlib.h>
33154#include <iconv.h>
33155extern
33156#ifdef __cplusplus
33157"C"
33158#endif
33159#if defined(__STDC__) || defined(__cplusplus)
33160size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33161#else
33162size_t iconv();
33163#endif
33164
33165int
33166main ()
33167{
33168
33169 ;
33170 return 0;
33171}
33172_ACEOF
33173rm -f conftest.$ac_objext
33174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33175 (eval $ac_compile) 2>conftest.er1
a848cd7e 33176 ac_status=$?
ac1cb8d3
VS
33177 grep -v '^ *+' conftest.er1 >conftest.err
33178 rm -f conftest.er1
33179 cat conftest.err >&5
a848cd7e
SC
33180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33181 (exit $ac_status); } &&
6ebeb4c7 33182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33184 (eval $ac_try) 2>&5
33185 ac_status=$?
33186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187 (exit $ac_status); }; } &&
33188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33190 (eval $ac_try) 2>&5
33191 ac_status=$?
33192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); }; }; then
33194 wx_cv_func_iconv_const="no"
33195else
33196 echo "$as_me: failed program was:" >&5
33197sed 's/^/| /' conftest.$ac_ext >&5
33198
33199wx_cv_func_iconv_const="yes"
33200
33201fi
ac1cb8d3 33202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33203
33204fi
33205echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
33206echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
33207
33208 iconv_const=
33209 if test "x$wx_cv_func_iconv_const" = "xyes"; then
33210 iconv_const="const"
33211 fi
33212
33213
33214cat >>confdefs.h <<_ACEOF
33215#define ICONV_CONST $iconv_const
33216_ACEOF
33217
33218 fi
33219 LIBICONV=
33220 if test "$am_cv_lib_iconv" = yes; then
33221 LIBICONV="-liconv"
33222 fi
33223
33224
33225LIBS="$LIBICONV $LIBS"
33226ac_ext=c
33227ac_cpp='$CPP $CPPFLAGS'
33228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33230ac_compiler_gnu=$ac_cv_c_compiler_gnu
33231
33232
33233if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33234
33235for ac_func in sigaction
33236do
33237as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33238echo "$as_me:$LINENO: checking for $ac_func" >&5
33239echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33240if eval "test \"\${$as_ac_var+set}\" = set"; then
33241 echo $ECHO_N "(cached) $ECHO_C" >&6
33242else
33243 cat >conftest.$ac_ext <<_ACEOF
33244/* confdefs.h. */
33245_ACEOF
33246cat confdefs.h >>conftest.$ac_ext
33247cat >>conftest.$ac_ext <<_ACEOF
33248/* end confdefs.h. */
ac1cb8d3
VS
33249/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33251#define $ac_func innocuous_$ac_func
33252
a848cd7e
SC
33253/* System header to define __stub macros and hopefully few prototypes,
33254 which can conflict with char $ac_func (); below.
33255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33256 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33257
a848cd7e
SC
33258#ifdef __STDC__
33259# include <limits.h>
33260#else
33261# include <assert.h>
33262#endif
ac1cb8d3
VS
33263
33264#undef $ac_func
33265
a848cd7e
SC
33266/* Override any gcc2 internal prototype to avoid an error. */
33267#ifdef __cplusplus
33268extern "C"
33269{
33270#endif
33271/* We use char because int might match the return type of a gcc2
33272 builtin and then its argument prototype would still apply. */
33273char $ac_func ();
33274/* The GNU C library defines this for functions which it implements
33275 to always fail with ENOSYS. Some functions are actually named
33276 something starting with __ and the normal name is an alias. */
33277#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33278choke me
33279#else
33280char (*f) () = $ac_func;
33281#endif
33282#ifdef __cplusplus
33283}
33284#endif
33285
33286int
33287main ()
33288{
33289return f != $ac_func;
33290 ;
33291 return 0;
33292}
33293_ACEOF
33294rm -f conftest.$ac_objext conftest$ac_exeext
33295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33296 (eval $ac_link) 2>conftest.er1
a848cd7e 33297 ac_status=$?
ac1cb8d3
VS
33298 grep -v '^ *+' conftest.er1 >conftest.err
33299 rm -f conftest.er1
33300 cat conftest.err >&5
a848cd7e
SC
33301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33302 (exit $ac_status); } &&
6ebeb4c7 33303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33305 (eval $ac_try) 2>&5
33306 ac_status=$?
33307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33308 (exit $ac_status); }; } &&
33309 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33311 (eval $ac_try) 2>&5
33312 ac_status=$?
33313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33314 (exit $ac_status); }; }; then
33315 eval "$as_ac_var=yes"
33316else
33317 echo "$as_me: failed program was:" >&5
33318sed 's/^/| /' conftest.$ac_ext >&5
33319
33320eval "$as_ac_var=no"
33321fi
ac1cb8d3
VS
33322rm -f conftest.err conftest.$ac_objext \
33323 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33324fi
33325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33326echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33327if test `eval echo '${'$as_ac_var'}'` = yes; then
33328 cat >>confdefs.h <<_ACEOF
33329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33330_ACEOF
33331
33332fi
33333done
33334
33335
33336 if test "$ac_cv_func_sigaction" = "no"; then
33337 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
33338echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
33339 wxUSE_ON_FATAL_EXCEPTION=no
33340 fi
33341
33342 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
33343
33344
33345 ac_ext=cc
33346ac_cpp='$CXXCPP $CPPFLAGS'
33347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33350
33351
33352 echo "$as_me:$LINENO: checking for sa_handler type" >&5
33353echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
33354if test "${wx_cv_type_sa_handler+set}" = set; then
33355 echo $ECHO_N "(cached) $ECHO_C" >&6
33356else
33357
33358 cat >conftest.$ac_ext <<_ACEOF
33359/* confdefs.h. */
33360_ACEOF
33361cat confdefs.h >>conftest.$ac_ext
33362cat >>conftest.$ac_ext <<_ACEOF
33363/* end confdefs.h. */
33364#include <signal.h>
33365int
33366main ()
33367{
33368
33369 extern void testSigHandler(int);
33370
33371 struct sigaction sa;
33372 sa.sa_handler = testSigHandler;
33373
33374 ;
33375 return 0;
33376}
33377_ACEOF
33378rm -f conftest.$ac_objext
33379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33380 (eval $ac_compile) 2>conftest.er1
a848cd7e 33381 ac_status=$?
ac1cb8d3
VS
33382 grep -v '^ *+' conftest.er1 >conftest.err
33383 rm -f conftest.er1
33384 cat conftest.err >&5
a848cd7e
SC
33385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386 (exit $ac_status); } &&
6ebeb4c7 33387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33389 (eval $ac_try) 2>&5
33390 ac_status=$?
33391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392 (exit $ac_status); }; } &&
33393 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33395 (eval $ac_try) 2>&5
33396 ac_status=$?
33397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33398 (exit $ac_status); }; }; then
33399
33400 wx_cv_type_sa_handler=int
33401
33402else
33403 echo "$as_me: failed program was:" >&5
33404sed 's/^/| /' conftest.$ac_ext >&5
33405
33406
33407 wx_cv_type_sa_handler=void
33408
33409fi
ac1cb8d3 33410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33411
33412fi
33413echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
33414echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
33415
33416 ac_ext=c
33417ac_cpp='$CPP $CPPFLAGS'
33418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33420ac_compiler_gnu=$ac_cv_c_compiler_gnu
33421
33422
33423 cat >>confdefs.h <<_ACEOF
33424#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
33425_ACEOF
33426
33427 fi
33428fi
33429
eaff0f0d
VZ
33430if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33431
33432
33433 ac_ext=cc
33434ac_cpp='$CXXCPP $CPPFLAGS'
33435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33438
33439
33440 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
33441echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
33442if test "${wx_cv_func_backtrace+set}" = set; then
33443 echo $ECHO_N "(cached) $ECHO_C" >&6
33444else
33445
33446 cat >conftest.$ac_ext <<_ACEOF
33447/* confdefs.h. */
33448_ACEOF
33449cat confdefs.h >>conftest.$ac_ext
33450cat >>conftest.$ac_ext <<_ACEOF
33451/* end confdefs.h. */
33452#include <execinfo.h>
33453int
33454main ()
33455{
33456
33457 void *trace[1];
33458 char **messages;
33459
33460 backtrace(trace, 1);
33461 messages = backtrace_symbols(trace, 1);
33462
33463 ;
33464 return 0;
33465}
33466_ACEOF
33467rm -f conftest.$ac_objext
33468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33469 (eval $ac_compile) 2>conftest.er1
33470 ac_status=$?
33471 grep -v '^ *+' conftest.er1 >conftest.err
33472 rm -f conftest.er1
33473 cat conftest.err >&5
33474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475 (exit $ac_status); } &&
6ebeb4c7 33476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
33477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33478 (eval $ac_try) 2>&5
33479 ac_status=$?
33480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481 (exit $ac_status); }; } &&
33482 { ac_try='test -s conftest.$ac_objext'
33483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33484 (eval $ac_try) 2>&5
33485 ac_status=$?
33486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33487 (exit $ac_status); }; }; then
33488 wx_cv_func_backtrace=yes
33489else
33490 echo "$as_me: failed program was:" >&5
33491sed 's/^/| /' conftest.$ac_ext >&5
33492
33493wx_cv_func_backtrace=no
33494
33495fi
33496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33497
33498
33499fi
33500echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
33501echo "${ECHO_T}$wx_cv_func_backtrace" >&6
33502
33503
33504 if test "$wx_cv_func_backtrace" = "no"; then
33505 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
33506echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
33507 wxUSE_STACKWALKER=no
33508 else
33509 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
33510echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
33511if test "${wx_cv_func_cxa_demangle+set}" = set; then
33512 echo $ECHO_N "(cached) $ECHO_C" >&6
33513else
33514
33515 cat >conftest.$ac_ext <<_ACEOF
33516/* confdefs.h. */
33517_ACEOF
33518cat confdefs.h >>conftest.$ac_ext
33519cat >>conftest.$ac_ext <<_ACEOF
33520/* end confdefs.h. */
33521#include <cxxabi.h>
33522int
33523main ()
33524{
33525
33526 int rc;
33527 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
33528
33529 ;
33530 return 0;
33531}
33532_ACEOF
dfe0c803
JS
33533rm -f conftest.$ac_objext conftest$ac_exeext
33534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33535 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
33536 ac_status=$?
33537 grep -v '^ *+' conftest.er1 >conftest.err
33538 rm -f conftest.er1
33539 cat conftest.err >&5
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); } &&
6ebeb4c7 33542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
33543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33544 (eval $ac_try) 2>&5
33545 ac_status=$?
33546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33547 (exit $ac_status); }; } &&
dfe0c803 33548 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
33549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33550 (eval $ac_try) 2>&5
33551 ac_status=$?
33552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553 (exit $ac_status); }; }; then
33554 wx_cv_func_cxa_demangle=yes
33555else
33556 echo "$as_me: failed program was:" >&5
33557sed 's/^/| /' conftest.$ac_ext >&5
33558
33559wx_cv_func_cxa_demangle=no
33560
33561fi
dfe0c803
JS
33562rm -f conftest.err conftest.$ac_objext \
33563 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
33564
33565
33566fi
33567echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
33568echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
33569
33570 if test "$wx_cv_func_cxa_demangle" = "yes"; then
33571 cat >>confdefs.h <<\_ACEOF
33572#define HAVE_CXA_DEMANGLE 1
33573_ACEOF
33574
33575 fi
33576 fi
33577
33578 ac_ext=c
33579ac_cpp='$CPP $CPPFLAGS'
33580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33582ac_compiler_gnu=$ac_cv_c_compiler_gnu
33583
33584fi
33585
898beab1
DE
33586if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
33587 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
33588echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
33589 wxUSE_STACKWALKER=no
33590fi
33591
33592
a848cd7e
SC
33593
33594
33595for ac_func in mkstemp mktemp
33596do
33597as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33598echo "$as_me:$LINENO: checking for $ac_func" >&5
33599echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33600if eval "test \"\${$as_ac_var+set}\" = set"; then
33601 echo $ECHO_N "(cached) $ECHO_C" >&6
33602else
33603 cat >conftest.$ac_ext <<_ACEOF
33604/* confdefs.h. */
33605_ACEOF
33606cat confdefs.h >>conftest.$ac_ext
33607cat >>conftest.$ac_ext <<_ACEOF
33608/* end confdefs.h. */
ac1cb8d3
VS
33609/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33611#define $ac_func innocuous_$ac_func
33612
a848cd7e
SC
33613/* System header to define __stub macros and hopefully few prototypes,
33614 which can conflict with char $ac_func (); below.
33615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33616 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33617
a848cd7e
SC
33618#ifdef __STDC__
33619# include <limits.h>
33620#else
33621# include <assert.h>
33622#endif
ac1cb8d3
VS
33623
33624#undef $ac_func
33625
a848cd7e
SC
33626/* Override any gcc2 internal prototype to avoid an error. */
33627#ifdef __cplusplus
33628extern "C"
33629{
33630#endif
33631/* We use char because int might match the return type of a gcc2
33632 builtin and then its argument prototype would still apply. */
33633char $ac_func ();
33634/* The GNU C library defines this for functions which it implements
33635 to always fail with ENOSYS. Some functions are actually named
33636 something starting with __ and the normal name is an alias. */
33637#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33638choke me
33639#else
33640char (*f) () = $ac_func;
33641#endif
33642#ifdef __cplusplus
33643}
33644#endif
33645
33646int
33647main ()
33648{
33649return f != $ac_func;
33650 ;
33651 return 0;
33652}
33653_ACEOF
33654rm -f conftest.$ac_objext conftest$ac_exeext
33655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33656 (eval $ac_link) 2>conftest.er1
a848cd7e 33657 ac_status=$?
ac1cb8d3
VS
33658 grep -v '^ *+' conftest.er1 >conftest.err
33659 rm -f conftest.er1
33660 cat conftest.err >&5
a848cd7e
SC
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); } &&
6ebeb4c7 33663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33665 (eval $ac_try) 2>&5
33666 ac_status=$?
33667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33668 (exit $ac_status); }; } &&
33669 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33671 (eval $ac_try) 2>&5
33672 ac_status=$?
33673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33674 (exit $ac_status); }; }; then
33675 eval "$as_ac_var=yes"
33676else
33677 echo "$as_me: failed program was:" >&5
33678sed 's/^/| /' conftest.$ac_ext >&5
33679
33680eval "$as_ac_var=no"
33681fi
ac1cb8d3
VS
33682rm -f conftest.err conftest.$ac_objext \
33683 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33684fi
33685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33686echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33687if test `eval echo '${'$as_ac_var'}'` = yes; then
33688 cat >>confdefs.h <<_ACEOF
33689#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33690_ACEOF
33691 break
33692fi
33693done
33694
33695
33696echo "$as_me:$LINENO: checking for statfs" >&5
33697echo $ECHO_N "checking for statfs... $ECHO_C" >&6
33698if test "${wx_cv_func_statfs+set}" = set; then
33699 echo $ECHO_N "(cached) $ECHO_C" >&6
33700else
33701 cat >conftest.$ac_ext <<_ACEOF
33702/* confdefs.h. */
33703_ACEOF
33704cat confdefs.h >>conftest.$ac_ext
33705cat >>conftest.$ac_ext <<_ACEOF
33706/* end confdefs.h. */
33707
33708 #if defined(__BSD__)
84ae7ca4
VZ
33709 #include <sys/param.h>
33710 #include <sys/mount.h>
a848cd7e 33711 #else
84ae7ca4 33712 #include <sys/vfs.h>
a848cd7e
SC
33713 #endif
33714
33715int
33716main ()
33717{
33718
33719 long l;
33720 struct statfs fs;
33721 statfs("/", &fs);
33722 l = fs.f_bsize;
33723 l += fs.f_blocks;
33724 l += fs.f_bavail;
33725
33726 ;
33727 return 0;
33728}
33729_ACEOF
33730rm -f conftest.$ac_objext
33731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33732 (eval $ac_compile) 2>conftest.er1
a848cd7e 33733 ac_status=$?
ac1cb8d3
VS
33734 grep -v '^ *+' conftest.er1 >conftest.err
33735 rm -f conftest.er1
33736 cat conftest.err >&5
a848cd7e
SC
33737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33738 (exit $ac_status); } &&
6ebeb4c7 33739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33741 (eval $ac_try) 2>&5
33742 ac_status=$?
33743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744 (exit $ac_status); }; } &&
33745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33747 (eval $ac_try) 2>&5
33748 ac_status=$?
33749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750 (exit $ac_status); }; }; then
84ae7ca4 33751 wx_cv_func_statfs=yes
a848cd7e
SC
33752else
33753 echo "$as_me: failed program was:" >&5
33754sed 's/^/| /' conftest.$ac_ext >&5
33755
84ae7ca4 33756wx_cv_func_statfs=no
a848cd7e
SC
33757
33758fi
ac1cb8d3 33759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33760
33761fi
33762echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
33763echo "${ECHO_T}$wx_cv_func_statfs" >&6
33764
33765if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
33766
33767
33768 ac_ext=cc
33769ac_cpp='$CXXCPP $CPPFLAGS'
33770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33773
33774 echo "$as_me:$LINENO: checking for statfs declaration" >&5
33775echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
33776if test "${wx_cv_func_statfs_decl+set}" = set; then
33777 echo $ECHO_N "(cached) $ECHO_C" >&6
33778else
0683aca6
VZ
33779 cat >conftest.$ac_ext <<_ACEOF
33780/* confdefs.h. */
33781_ACEOF
33782cat confdefs.h >>conftest.$ac_ext
33783cat >>conftest.$ac_ext <<_ACEOF
33784/* end confdefs.h. */
84ae7ca4 33785
0683aca6
VZ
33786 #if defined(__BSD__)
33787 #include <sys/param.h>
33788 #include <sys/mount.h>
33789 #else
33790 #include <sys/vfs.h>
33791 #endif
33792
33793int
33794main ()
33795{
33796
33797 struct statfs fs;
33798 statfs("", &fs);
33799
33800 ;
33801 return 0;
33802}
33803_ACEOF
33804rm -f conftest.$ac_objext
33805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33806 (eval $ac_compile) 2>conftest.er1
33807 ac_status=$?
33808 grep -v '^ *+' conftest.er1 >conftest.err
33809 rm -f conftest.er1
33810 cat conftest.err >&5
33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812 (exit $ac_status); } &&
33813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33815 (eval $ac_try) 2>&5
33816 ac_status=$?
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); }; } &&
33819 { ac_try='test -s conftest.$ac_objext'
33820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33821 (eval $ac_try) 2>&5
33822 ac_status=$?
33823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33824 (exit $ac_status); }; }; then
33825 wx_cv_func_statfs_decl=yes
33826else
33827 echo "$as_me: failed program was:" >&5
33828sed 's/^/| /' conftest.$ac_ext >&5
33829
33830wx_cv_func_statfs_decl=no
33831
33832fi
33833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
33834
33835fi
33836echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
33837echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
33838 ac_ext=c
33839ac_cpp='$CPP $CPPFLAGS'
33840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33842ac_compiler_gnu=$ac_cv_c_compiler_gnu
33843
33844
33845 if test "$wx_cv_func_statfs_decl" = "yes"; then
33846 cat >>confdefs.h <<\_ACEOF
33847#define HAVE_STATFS_DECL 1
33848_ACEOF
33849
33850 fi
33851
a848cd7e
SC
33852 wx_cv_type_statvfs_t="struct statfs"
33853 cat >>confdefs.h <<\_ACEOF
33854#define HAVE_STATFS 1
33855_ACEOF
33856
33857else
33858 echo "$as_me:$LINENO: checking for statvfs" >&5
33859echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
33860if test "${wx_cv_func_statvfs+set}" = set; then
33861 echo $ECHO_N "(cached) $ECHO_C" >&6
33862else
33863 cat >conftest.$ac_ext <<_ACEOF
33864/* confdefs.h. */
33865_ACEOF
33866cat confdefs.h >>conftest.$ac_ext
33867cat >>conftest.$ac_ext <<_ACEOF
33868/* end confdefs.h. */
33869
33870 #include <stddef.h>
33871 #include <sys/statvfs.h>
33872
33873int
33874main ()
33875{
33876
33877 statvfs("/", NULL);
33878
33879 ;
33880 return 0;
33881}
33882_ACEOF
33883rm -f conftest.$ac_objext
33884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33885 (eval $ac_compile) 2>conftest.er1
a848cd7e 33886 ac_status=$?
ac1cb8d3
VS
33887 grep -v '^ *+' conftest.er1 >conftest.err
33888 rm -f conftest.er1
33889 cat conftest.err >&5
a848cd7e
SC
33890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891 (exit $ac_status); } &&
6ebeb4c7 33892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33894 (eval $ac_try) 2>&5
33895 ac_status=$?
33896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897 (exit $ac_status); }; } &&
33898 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33900 (eval $ac_try) 2>&5
33901 ac_status=$?
33902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33903 (exit $ac_status); }; }; then
33904 wx_cv_func_statvfs=yes
33905else
33906 echo "$as_me: failed program was:" >&5
33907sed 's/^/| /' conftest.$ac_ext >&5
33908
33909wx_cv_func_statvfs=no
33910
33911fi
ac1cb8d3 33912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33913
33914fi
33915echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
33916echo "${ECHO_T}$wx_cv_func_statvfs" >&6
33917
33918 if test "$wx_cv_func_statvfs" = "yes"; then
33919
33920
33921 ac_ext=cc
33922ac_cpp='$CXXCPP $CPPFLAGS'
33923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33926
33927
33928 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
33929echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
33930if test "${wx_cv_type_statvfs_t+set}" = set; then
33931 echo $ECHO_N "(cached) $ECHO_C" >&6
33932else
33933 cat >conftest.$ac_ext <<_ACEOF
33934/* confdefs.h. */
33935_ACEOF
33936cat confdefs.h >>conftest.$ac_ext
33937cat >>conftest.$ac_ext <<_ACEOF
33938/* end confdefs.h. */
33939
33940 #include <sys/statvfs.h>
33941
33942int
33943main ()
33944{
33945
33946 long l;
33947 statvfs_t fs;
33948 statvfs("/", &fs);
33949 l = fs.f_bsize;
33950 l += fs.f_blocks;
33951 l += fs.f_bavail;
33952
33953 ;
33954 return 0;
33955}
33956_ACEOF
33957rm -f conftest.$ac_objext
33958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33959 (eval $ac_compile) 2>conftest.er1
a848cd7e 33960 ac_status=$?
ac1cb8d3
VS
33961 grep -v '^ *+' conftest.er1 >conftest.err
33962 rm -f conftest.er1
33963 cat conftest.err >&5
a848cd7e
SC
33964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965 (exit $ac_status); } &&
6ebeb4c7 33966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33968 (eval $ac_try) 2>&5
33969 ac_status=$?
33970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971 (exit $ac_status); }; } &&
33972 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33974 (eval $ac_try) 2>&5
33975 ac_status=$?
33976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33977 (exit $ac_status); }; }; then
33978 wx_cv_type_statvfs_t=statvfs_t
33979else
33980 echo "$as_me: failed program was:" >&5
33981sed 's/^/| /' conftest.$ac_ext >&5
33982
33983
33984 cat >conftest.$ac_ext <<_ACEOF
33985/* confdefs.h. */
33986_ACEOF
33987cat confdefs.h >>conftest.$ac_ext
33988cat >>conftest.$ac_ext <<_ACEOF
33989/* end confdefs.h. */
33990
33991 #include <sys/statvfs.h>
33992
33993int
33994main ()
33995{
33996
33997 long l;
33998 struct statvfs fs;
33999 statvfs("/", &fs);
34000 l = fs.f_bsize;
34001 l += fs.f_blocks;
34002 l += fs.f_bavail;
34003
34004 ;
34005 return 0;
34006}
34007_ACEOF
34008rm -f conftest.$ac_objext
34009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34010 (eval $ac_compile) 2>conftest.er1
a848cd7e 34011 ac_status=$?
ac1cb8d3
VS
34012 grep -v '^ *+' conftest.er1 >conftest.err
34013 rm -f conftest.er1
34014 cat conftest.err >&5
a848cd7e
SC
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); } &&
6ebeb4c7 34017 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34019 (eval $ac_try) 2>&5
34020 ac_status=$?
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); }; } &&
34023 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34025 (eval $ac_try) 2>&5
34026 ac_status=$?
34027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34028 (exit $ac_status); }; }; then
34029 wx_cv_type_statvfs_t="struct statvfs"
34030else
34031 echo "$as_me: failed program was:" >&5
34032sed 's/^/| /' conftest.$ac_ext >&5
34033
34034wx_cv_type_statvfs_t="unknown"
34035
34036fi
ac1cb8d3 34037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34038
34039
34040fi
ac1cb8d3 34041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34042
34043fi
34044echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34045echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34046
34047 ac_ext=c
34048ac_cpp='$CPP $CPPFLAGS'
34049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34051ac_compiler_gnu=$ac_cv_c_compiler_gnu
34052
34053
34054 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34055 cat >>confdefs.h <<\_ACEOF
34056#define HAVE_STATVFS 1
34057_ACEOF
34058
34059 fi
34060 else
34061 wx_cv_type_statvfs_t="unknown"
34062 fi
34063fi
34064
34065if test "$wx_cv_type_statvfs_t" != "unknown"; then
34066 cat >>confdefs.h <<_ACEOF
34067#define WX_STATFS_T $wx_cv_type_statvfs_t
34068_ACEOF
34069
34070else
34071 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
34072echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
34073fi
34074
34075if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34076
34077
34078for ac_func in fcntl flock
34079do
34080as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34081echo "$as_me:$LINENO: checking for $ac_func" >&5
34082echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34083if eval "test \"\${$as_ac_var+set}\" = set"; then
34084 echo $ECHO_N "(cached) $ECHO_C" >&6
34085else
34086 cat >conftest.$ac_ext <<_ACEOF
34087/* confdefs.h. */
34088_ACEOF
34089cat confdefs.h >>conftest.$ac_ext
34090cat >>conftest.$ac_ext <<_ACEOF
34091/* end confdefs.h. */
ac1cb8d3
VS
34092/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34094#define $ac_func innocuous_$ac_func
34095
a848cd7e
SC
34096/* System header to define __stub macros and hopefully few prototypes,
34097 which can conflict with char $ac_func (); below.
34098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34099 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34100
a848cd7e
SC
34101#ifdef __STDC__
34102# include <limits.h>
34103#else
34104# include <assert.h>
34105#endif
ac1cb8d3
VS
34106
34107#undef $ac_func
34108
a848cd7e
SC
34109/* Override any gcc2 internal prototype to avoid an error. */
34110#ifdef __cplusplus
34111extern "C"
34112{
34113#endif
34114/* We use char because int might match the return type of a gcc2
34115 builtin and then its argument prototype would still apply. */
34116char $ac_func ();
34117/* The GNU C library defines this for functions which it implements
34118 to always fail with ENOSYS. Some functions are actually named
34119 something starting with __ and the normal name is an alias. */
34120#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34121choke me
34122#else
34123char (*f) () = $ac_func;
34124#endif
34125#ifdef __cplusplus
34126}
34127#endif
34128
34129int
34130main ()
34131{
34132return f != $ac_func;
34133 ;
34134 return 0;
34135}
34136_ACEOF
34137rm -f conftest.$ac_objext conftest$ac_exeext
34138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34139 (eval $ac_link) 2>conftest.er1
a848cd7e 34140 ac_status=$?
ac1cb8d3
VS
34141 grep -v '^ *+' conftest.er1 >conftest.err
34142 rm -f conftest.er1
34143 cat conftest.err >&5
a848cd7e
SC
34144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145 (exit $ac_status); } &&
6ebeb4c7 34146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34148 (eval $ac_try) 2>&5
34149 ac_status=$?
34150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34151 (exit $ac_status); }; } &&
34152 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34154 (eval $ac_try) 2>&5
34155 ac_status=$?
34156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157 (exit $ac_status); }; }; then
34158 eval "$as_ac_var=yes"
34159else
34160 echo "$as_me: failed program was:" >&5
34161sed 's/^/| /' conftest.$ac_ext >&5
34162
34163eval "$as_ac_var=no"
34164fi
ac1cb8d3
VS
34165rm -f conftest.err conftest.$ac_objext \
34166 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34167fi
34168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34169echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34170if test `eval echo '${'$as_ac_var'}'` = yes; then
34171 cat >>confdefs.h <<_ACEOF
34172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34173_ACEOF
34174 break
34175fi
34176done
34177
34178
34179 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
34180 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
34181echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
34182 wxUSE_SNGLINST_CHECKER=no
34183 fi
34184fi
34185
34186
34187for ac_func in timegm
34188do
34189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34190echo "$as_me:$LINENO: checking for $ac_func" >&5
34191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34192if eval "test \"\${$as_ac_var+set}\" = set"; then
34193 echo $ECHO_N "(cached) $ECHO_C" >&6
34194else
34195 cat >conftest.$ac_ext <<_ACEOF
34196/* confdefs.h. */
34197_ACEOF
34198cat confdefs.h >>conftest.$ac_ext
34199cat >>conftest.$ac_ext <<_ACEOF
34200/* end confdefs.h. */
ac1cb8d3
VS
34201/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34203#define $ac_func innocuous_$ac_func
34204
a848cd7e
SC
34205/* System header to define __stub macros and hopefully few prototypes,
34206 which can conflict with char $ac_func (); below.
34207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34208 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34209
a848cd7e
SC
34210#ifdef __STDC__
34211# include <limits.h>
34212#else
34213# include <assert.h>
34214#endif
ac1cb8d3
VS
34215
34216#undef $ac_func
34217
a848cd7e
SC
34218/* Override any gcc2 internal prototype to avoid an error. */
34219#ifdef __cplusplus
34220extern "C"
34221{
34222#endif
34223/* We use char because int might match the return type of a gcc2
34224 builtin and then its argument prototype would still apply. */
34225char $ac_func ();
34226/* The GNU C library defines this for functions which it implements
34227 to always fail with ENOSYS. Some functions are actually named
34228 something starting with __ and the normal name is an alias. */
34229#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34230choke me
34231#else
34232char (*f) () = $ac_func;
34233#endif
34234#ifdef __cplusplus
34235}
34236#endif
34237
34238int
34239main ()
34240{
34241return f != $ac_func;
34242 ;
34243 return 0;
34244}
34245_ACEOF
34246rm -f conftest.$ac_objext conftest$ac_exeext
34247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34248 (eval $ac_link) 2>conftest.er1
a848cd7e 34249 ac_status=$?
ac1cb8d3
VS
34250 grep -v '^ *+' conftest.er1 >conftest.err
34251 rm -f conftest.er1
34252 cat conftest.err >&5
a848cd7e
SC
34253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254 (exit $ac_status); } &&
6ebeb4c7 34255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34257 (eval $ac_try) 2>&5
34258 ac_status=$?
34259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34260 (exit $ac_status); }; } &&
34261 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34263 (eval $ac_try) 2>&5
34264 ac_status=$?
34265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266 (exit $ac_status); }; }; then
34267 eval "$as_ac_var=yes"
34268else
34269 echo "$as_me: failed program was:" >&5
34270sed 's/^/| /' conftest.$ac_ext >&5
34271
34272eval "$as_ac_var=no"
34273fi
ac1cb8d3
VS
34274rm -f conftest.err conftest.$ac_objext \
34275 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34276fi
34277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34278echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34279if test `eval echo '${'$as_ac_var'}'` = yes; then
34280 cat >>confdefs.h <<_ACEOF
34281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34282_ACEOF
34283
34284fi
34285done
34286
34287
34288
34289
34290for ac_func in putenv setenv
34291do
34292as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34293echo "$as_me:$LINENO: checking for $ac_func" >&5
34294echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34295if eval "test \"\${$as_ac_var+set}\" = set"; then
34296 echo $ECHO_N "(cached) $ECHO_C" >&6
34297else
34298 cat >conftest.$ac_ext <<_ACEOF
34299/* confdefs.h. */
34300_ACEOF
34301cat confdefs.h >>conftest.$ac_ext
34302cat >>conftest.$ac_ext <<_ACEOF
34303/* end confdefs.h. */
ac1cb8d3
VS
34304/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34306#define $ac_func innocuous_$ac_func
34307
a848cd7e
SC
34308/* System header to define __stub macros and hopefully few prototypes,
34309 which can conflict with char $ac_func (); below.
34310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34311 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34312
a848cd7e
SC
34313#ifdef __STDC__
34314# include <limits.h>
34315#else
34316# include <assert.h>
34317#endif
ac1cb8d3
VS
34318
34319#undef $ac_func
34320
a848cd7e
SC
34321/* Override any gcc2 internal prototype to avoid an error. */
34322#ifdef __cplusplus
34323extern "C"
34324{
34325#endif
34326/* We use char because int might match the return type of a gcc2
34327 builtin and then its argument prototype would still apply. */
34328char $ac_func ();
34329/* The GNU C library defines this for functions which it implements
34330 to always fail with ENOSYS. Some functions are actually named
34331 something starting with __ and the normal name is an alias. */
34332#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34333choke me
34334#else
34335char (*f) () = $ac_func;
34336#endif
34337#ifdef __cplusplus
34338}
34339#endif
34340
34341int
34342main ()
34343{
34344return f != $ac_func;
34345 ;
34346 return 0;
34347}
34348_ACEOF
34349rm -f conftest.$ac_objext conftest$ac_exeext
34350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34351 (eval $ac_link) 2>conftest.er1
a848cd7e 34352 ac_status=$?
ac1cb8d3
VS
34353 grep -v '^ *+' conftest.er1 >conftest.err
34354 rm -f conftest.er1
34355 cat conftest.err >&5
a848cd7e
SC
34356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34357 (exit $ac_status); } &&
6ebeb4c7 34358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34360 (eval $ac_try) 2>&5
34361 ac_status=$?
34362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34363 (exit $ac_status); }; } &&
34364 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34366 (eval $ac_try) 2>&5
34367 ac_status=$?
34368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34369 (exit $ac_status); }; }; then
34370 eval "$as_ac_var=yes"
34371else
34372 echo "$as_me: failed program was:" >&5
34373sed 's/^/| /' conftest.$ac_ext >&5
34374
34375eval "$as_ac_var=no"
34376fi
ac1cb8d3
VS
34377rm -f conftest.err conftest.$ac_objext \
34378 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34379fi
34380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34381echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34382if test `eval echo '${'$as_ac_var'}'` = yes; then
34383 cat >>confdefs.h <<_ACEOF
34384#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34385_ACEOF
34386 break
34387fi
34388done
34389
34390
34391HAVE_SOME_SLEEP_FUNC=0
34392if test "$USE_BEOS" = 1; then
34393 cat >>confdefs.h <<\_ACEOF
34394#define HAVE_SLEEP 1
34395_ACEOF
34396
34397 HAVE_SOME_SLEEP_FUNC=1
34398fi
34399
34400if test "$USE_DARWIN" = 1; then
34401 cat >>confdefs.h <<\_ACEOF
34402#define HAVE_USLEEP 1
34403_ACEOF
34404
34405 HAVE_SOME_SLEEP_FUNC=1
34406fi
34407
34408if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
34409 POSIX4_LINK=
34410
34411for ac_func in nanosleep
34412do
34413as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34414echo "$as_me:$LINENO: checking for $ac_func" >&5
34415echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34416if eval "test \"\${$as_ac_var+set}\" = set"; then
34417 echo $ECHO_N "(cached) $ECHO_C" >&6
34418else
34419 cat >conftest.$ac_ext <<_ACEOF
34420/* confdefs.h. */
34421_ACEOF
34422cat confdefs.h >>conftest.$ac_ext
34423cat >>conftest.$ac_ext <<_ACEOF
34424/* end confdefs.h. */
ac1cb8d3
VS
34425/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34427#define $ac_func innocuous_$ac_func
34428
a848cd7e
SC
34429/* System header to define __stub macros and hopefully few prototypes,
34430 which can conflict with char $ac_func (); below.
34431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34432 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34433
a848cd7e
SC
34434#ifdef __STDC__
34435# include <limits.h>
34436#else
34437# include <assert.h>
34438#endif
ac1cb8d3
VS
34439
34440#undef $ac_func
34441
a848cd7e
SC
34442/* Override any gcc2 internal prototype to avoid an error. */
34443#ifdef __cplusplus
34444extern "C"
34445{
34446#endif
34447/* We use char because int might match the return type of a gcc2
34448 builtin and then its argument prototype would still apply. */
34449char $ac_func ();
34450/* The GNU C library defines this for functions which it implements
34451 to always fail with ENOSYS. Some functions are actually named
34452 something starting with __ and the normal name is an alias. */
34453#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34454choke me
34455#else
34456char (*f) () = $ac_func;
34457#endif
34458#ifdef __cplusplus
34459}
34460#endif
34461
34462int
34463main ()
34464{
34465return f != $ac_func;
34466 ;
34467 return 0;
34468}
34469_ACEOF
34470rm -f conftest.$ac_objext conftest$ac_exeext
34471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34472 (eval $ac_link) 2>conftest.er1
a848cd7e 34473 ac_status=$?
ac1cb8d3
VS
34474 grep -v '^ *+' conftest.er1 >conftest.err
34475 rm -f conftest.er1
34476 cat conftest.err >&5
a848cd7e
SC
34477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478 (exit $ac_status); } &&
6ebeb4c7 34479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34481 (eval $ac_try) 2>&5
34482 ac_status=$?
34483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484 (exit $ac_status); }; } &&
34485 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34487 (eval $ac_try) 2>&5
34488 ac_status=$?
34489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490 (exit $ac_status); }; }; then
34491 eval "$as_ac_var=yes"
34492else
34493 echo "$as_me: failed program was:" >&5
34494sed 's/^/| /' conftest.$ac_ext >&5
34495
34496eval "$as_ac_var=no"
34497fi
ac1cb8d3
VS
34498rm -f conftest.err conftest.$ac_objext \
34499 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34500fi
34501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34502echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34503if test `eval echo '${'$as_ac_var'}'` = yes; then
34504 cat >>confdefs.h <<_ACEOF
34505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34506_ACEOF
34507 cat >>confdefs.h <<\_ACEOF
34508#define HAVE_NANOSLEEP 1
34509_ACEOF
34510
34511else
34512
34513 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
34514echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
34515if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
34516 echo $ECHO_N "(cached) $ECHO_C" >&6
34517else
34518 ac_check_lib_save_LIBS=$LIBS
34519LIBS="-lposix4 $LIBS"
34520cat >conftest.$ac_ext <<_ACEOF
34521/* confdefs.h. */
34522_ACEOF
34523cat confdefs.h >>conftest.$ac_ext
34524cat >>conftest.$ac_ext <<_ACEOF
34525/* end confdefs.h. */
34526
34527/* Override any gcc2 internal prototype to avoid an error. */
34528#ifdef __cplusplus
34529extern "C"
34530#endif
34531/* We use char because int might match the return type of a gcc2
34532 builtin and then its argument prototype would still apply. */
34533char nanosleep ();
34534int
34535main ()
34536{
34537nanosleep ();
34538 ;
34539 return 0;
34540}
34541_ACEOF
34542rm -f conftest.$ac_objext conftest$ac_exeext
34543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34544 (eval $ac_link) 2>conftest.er1
a848cd7e 34545 ac_status=$?
ac1cb8d3
VS
34546 grep -v '^ *+' conftest.er1 >conftest.err
34547 rm -f conftest.er1
34548 cat conftest.err >&5
a848cd7e
SC
34549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34550 (exit $ac_status); } &&
6ebeb4c7 34551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34553 (eval $ac_try) 2>&5
34554 ac_status=$?
34555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556 (exit $ac_status); }; } &&
34557 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34559 (eval $ac_try) 2>&5
34560 ac_status=$?
34561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562 (exit $ac_status); }; }; then
34563 ac_cv_lib_posix4_nanosleep=yes
34564else
34565 echo "$as_me: failed program was:" >&5
34566sed 's/^/| /' conftest.$ac_ext >&5
34567
34568ac_cv_lib_posix4_nanosleep=no
34569fi
ac1cb8d3
VS
34570rm -f conftest.err conftest.$ac_objext \
34571 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34572LIBS=$ac_check_lib_save_LIBS
34573fi
34574echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
34575echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
34576if test $ac_cv_lib_posix4_nanosleep = yes; then
34577
34578 cat >>confdefs.h <<\_ACEOF
34579#define HAVE_NANOSLEEP 1
34580_ACEOF
34581
34582 POSIX4_LINK=" -lposix4"
34583
34584else
34585
34586
34587for ac_func in usleep
34588do
34589as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34590echo "$as_me:$LINENO: checking for $ac_func" >&5
34591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34592if eval "test \"\${$as_ac_var+set}\" = set"; then
34593 echo $ECHO_N "(cached) $ECHO_C" >&6
34594else
34595 cat >conftest.$ac_ext <<_ACEOF
34596/* confdefs.h. */
34597_ACEOF
34598cat confdefs.h >>conftest.$ac_ext
34599cat >>conftest.$ac_ext <<_ACEOF
34600/* end confdefs.h. */
ac1cb8d3
VS
34601/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34603#define $ac_func innocuous_$ac_func
34604
a848cd7e
SC
34605/* System header to define __stub macros and hopefully few prototypes,
34606 which can conflict with char $ac_func (); below.
34607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34608 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34609
a848cd7e
SC
34610#ifdef __STDC__
34611# include <limits.h>
34612#else
34613# include <assert.h>
34614#endif
ac1cb8d3
VS
34615
34616#undef $ac_func
34617
a848cd7e
SC
34618/* Override any gcc2 internal prototype to avoid an error. */
34619#ifdef __cplusplus
34620extern "C"
34621{
34622#endif
34623/* We use char because int might match the return type of a gcc2
34624 builtin and then its argument prototype would still apply. */
34625char $ac_func ();
34626/* The GNU C library defines this for functions which it implements
34627 to always fail with ENOSYS. Some functions are actually named
34628 something starting with __ and the normal name is an alias. */
34629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34630choke me
34631#else
34632char (*f) () = $ac_func;
34633#endif
34634#ifdef __cplusplus
34635}
34636#endif
34637
34638int
34639main ()
34640{
34641return f != $ac_func;
34642 ;
34643 return 0;
34644}
34645_ACEOF
34646rm -f conftest.$ac_objext conftest$ac_exeext
34647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34648 (eval $ac_link) 2>conftest.er1
a848cd7e 34649 ac_status=$?
ac1cb8d3
VS
34650 grep -v '^ *+' conftest.er1 >conftest.err
34651 rm -f conftest.er1
34652 cat conftest.err >&5
a848cd7e
SC
34653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654 (exit $ac_status); } &&
6ebeb4c7 34655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34657 (eval $ac_try) 2>&5
34658 ac_status=$?
34659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660 (exit $ac_status); }; } &&
34661 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34663 (eval $ac_try) 2>&5
34664 ac_status=$?
34665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34666 (exit $ac_status); }; }; then
34667 eval "$as_ac_var=yes"
34668else
34669 echo "$as_me: failed program was:" >&5
34670sed 's/^/| /' conftest.$ac_ext >&5
34671
34672eval "$as_ac_var=no"
34673fi
ac1cb8d3
VS
34674rm -f conftest.err conftest.$ac_objext \
34675 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34676fi
34677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34678echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34679if test `eval echo '${'$as_ac_var'}'` = yes; then
34680 cat >>confdefs.h <<_ACEOF
34681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34682_ACEOF
34683 cat >>confdefs.h <<\_ACEOF
34684#define HAVE_USLEEP 1
34685_ACEOF
34686
34687else
34688 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
34689echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
34690
34691fi
34692done
34693
34694
34695
34696fi
34697
34698
34699
34700fi
34701done
34702
34703fi
34704
34705
34706
34707for ac_func in uname gethostname
34708do
34709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34710echo "$as_me:$LINENO: checking for $ac_func" >&5
34711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34712if eval "test \"\${$as_ac_var+set}\" = set"; then
34713 echo $ECHO_N "(cached) $ECHO_C" >&6
34714else
34715 cat >conftest.$ac_ext <<_ACEOF
34716/* confdefs.h. */
34717_ACEOF
34718cat confdefs.h >>conftest.$ac_ext
34719cat >>conftest.$ac_ext <<_ACEOF
34720/* end confdefs.h. */
ac1cb8d3
VS
34721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34723#define $ac_func innocuous_$ac_func
34724
a848cd7e
SC
34725/* System header to define __stub macros and hopefully few prototypes,
34726 which can conflict with char $ac_func (); below.
34727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34728 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34729
a848cd7e
SC
34730#ifdef __STDC__
34731# include <limits.h>
34732#else
34733# include <assert.h>
34734#endif
ac1cb8d3
VS
34735
34736#undef $ac_func
34737
a848cd7e
SC
34738/* Override any gcc2 internal prototype to avoid an error. */
34739#ifdef __cplusplus
34740extern "C"
34741{
34742#endif
34743/* We use char because int might match the return type of a gcc2
34744 builtin and then its argument prototype would still apply. */
34745char $ac_func ();
34746/* The GNU C library defines this for functions which it implements
34747 to always fail with ENOSYS. Some functions are actually named
34748 something starting with __ and the normal name is an alias. */
34749#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34750choke me
34751#else
34752char (*f) () = $ac_func;
34753#endif
34754#ifdef __cplusplus
34755}
34756#endif
34757
34758int
34759main ()
34760{
34761return f != $ac_func;
34762 ;
34763 return 0;
34764}
34765_ACEOF
34766rm -f conftest.$ac_objext conftest$ac_exeext
34767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34768 (eval $ac_link) 2>conftest.er1
a848cd7e 34769 ac_status=$?
ac1cb8d3
VS
34770 grep -v '^ *+' conftest.er1 >conftest.err
34771 rm -f conftest.er1
34772 cat conftest.err >&5
a848cd7e
SC
34773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34774 (exit $ac_status); } &&
6ebeb4c7 34775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34777 (eval $ac_try) 2>&5
34778 ac_status=$?
34779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34780 (exit $ac_status); }; } &&
34781 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34783 (eval $ac_try) 2>&5
34784 ac_status=$?
34785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34786 (exit $ac_status); }; }; then
34787 eval "$as_ac_var=yes"
34788else
34789 echo "$as_me: failed program was:" >&5
34790sed 's/^/| /' conftest.$ac_ext >&5
34791
34792eval "$as_ac_var=no"
34793fi
ac1cb8d3
VS
34794rm -f conftest.err conftest.$ac_objext \
34795 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34796fi
34797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34798echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34799if test `eval echo '${'$as_ac_var'}'` = yes; then
34800 cat >>confdefs.h <<_ACEOF
34801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34802_ACEOF
34803 break
34804fi
34805done
34806
34807
34808
34809
34810ac_ext=cc
34811ac_cpp='$CXXCPP $CPPFLAGS'
34812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34815
34816
34817
34818for ac_func in strtok_r
34819do
34820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34821echo "$as_me:$LINENO: checking for $ac_func" >&5
34822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34823if eval "test \"\${$as_ac_var+set}\" = set"; then
34824 echo $ECHO_N "(cached) $ECHO_C" >&6
34825else
34826 cat >conftest.$ac_ext <<_ACEOF
34827/* confdefs.h. */
34828_ACEOF
34829cat confdefs.h >>conftest.$ac_ext
34830cat >>conftest.$ac_ext <<_ACEOF
34831/* end confdefs.h. */
ac1cb8d3
VS
34832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34834#define $ac_func innocuous_$ac_func
34835
a848cd7e
SC
34836/* System header to define __stub macros and hopefully few prototypes,
34837 which can conflict with char $ac_func (); below.
34838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34839 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34840
a848cd7e
SC
34841#ifdef __STDC__
34842# include <limits.h>
34843#else
34844# include <assert.h>
34845#endif
ac1cb8d3
VS
34846
34847#undef $ac_func
34848
a848cd7e
SC
34849/* Override any gcc2 internal prototype to avoid an error. */
34850#ifdef __cplusplus
34851extern "C"
34852{
34853#endif
34854/* We use char because int might match the return type of a gcc2
34855 builtin and then its argument prototype would still apply. */
34856char $ac_func ();
34857/* The GNU C library defines this for functions which it implements
34858 to always fail with ENOSYS. Some functions are actually named
34859 something starting with __ and the normal name is an alias. */
34860#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34861choke me
34862#else
34863char (*f) () = $ac_func;
34864#endif
34865#ifdef __cplusplus
34866}
34867#endif
34868
34869int
34870main ()
34871{
34872return f != $ac_func;
34873 ;
34874 return 0;
34875}
34876_ACEOF
34877rm -f conftest.$ac_objext conftest$ac_exeext
34878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34879 (eval $ac_link) 2>conftest.er1
a848cd7e 34880 ac_status=$?
ac1cb8d3
VS
34881 grep -v '^ *+' conftest.er1 >conftest.err
34882 rm -f conftest.er1
34883 cat conftest.err >&5
a848cd7e
SC
34884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34885 (exit $ac_status); } &&
6ebeb4c7 34886 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34888 (eval $ac_try) 2>&5
34889 ac_status=$?
34890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34891 (exit $ac_status); }; } &&
34892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34894 (eval $ac_try) 2>&5
34895 ac_status=$?
34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897 (exit $ac_status); }; }; then
34898 eval "$as_ac_var=yes"
34899else
34900 echo "$as_me: failed program was:" >&5
34901sed 's/^/| /' conftest.$ac_ext >&5
34902
34903eval "$as_ac_var=no"
34904fi
ac1cb8d3
VS
34905rm -f conftest.err conftest.$ac_objext \
34906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34907fi
34908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34909echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34910if test `eval echo '${'$as_ac_var'}'` = yes; then
34911 cat >>confdefs.h <<_ACEOF
34912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34913_ACEOF
34914
34915fi
34916done
34917
34918
34919ac_ext=c
34920ac_cpp='$CPP $CPPFLAGS'
34921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34923ac_compiler_gnu=$ac_cv_c_compiler_gnu
34924
34925
34926INET_LINK=
34927
34928for ac_func in inet_addr
34929do
34930as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34931echo "$as_me:$LINENO: checking for $ac_func" >&5
34932echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34933if eval "test \"\${$as_ac_var+set}\" = set"; then
34934 echo $ECHO_N "(cached) $ECHO_C" >&6
34935else
34936 cat >conftest.$ac_ext <<_ACEOF
34937/* confdefs.h. */
34938_ACEOF
34939cat confdefs.h >>conftest.$ac_ext
34940cat >>conftest.$ac_ext <<_ACEOF
34941/* end confdefs.h. */
ac1cb8d3
VS
34942/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34944#define $ac_func innocuous_$ac_func
34945
a848cd7e
SC
34946/* System header to define __stub macros and hopefully few prototypes,
34947 which can conflict with char $ac_func (); below.
34948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34949 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34950
a848cd7e
SC
34951#ifdef __STDC__
34952# include <limits.h>
34953#else
34954# include <assert.h>
34955#endif
ac1cb8d3
VS
34956
34957#undef $ac_func
34958
a848cd7e
SC
34959/* Override any gcc2 internal prototype to avoid an error. */
34960#ifdef __cplusplus
34961extern "C"
34962{
34963#endif
34964/* We use char because int might match the return type of a gcc2
34965 builtin and then its argument prototype would still apply. */
34966char $ac_func ();
34967/* The GNU C library defines this for functions which it implements
34968 to always fail with ENOSYS. Some functions are actually named
34969 something starting with __ and the normal name is an alias. */
34970#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34971choke me
34972#else
34973char (*f) () = $ac_func;
34974#endif
34975#ifdef __cplusplus
34976}
34977#endif
34978
34979int
34980main ()
34981{
34982return f != $ac_func;
34983 ;
34984 return 0;
34985}
34986_ACEOF
34987rm -f conftest.$ac_objext conftest$ac_exeext
34988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34989 (eval $ac_link) 2>conftest.er1
a848cd7e 34990 ac_status=$?
ac1cb8d3
VS
34991 grep -v '^ *+' conftest.er1 >conftest.err
34992 rm -f conftest.er1
34993 cat conftest.err >&5
a848cd7e
SC
34994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34995 (exit $ac_status); } &&
6ebeb4c7 34996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34998 (eval $ac_try) 2>&5
34999 ac_status=$?
35000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35001 (exit $ac_status); }; } &&
35002 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35004 (eval $ac_try) 2>&5
35005 ac_status=$?
35006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35007 (exit $ac_status); }; }; then
35008 eval "$as_ac_var=yes"
35009else
35010 echo "$as_me: failed program was:" >&5
35011sed 's/^/| /' conftest.$ac_ext >&5
35012
35013eval "$as_ac_var=no"
35014fi
ac1cb8d3
VS
35015rm -f conftest.err conftest.$ac_objext \
35016 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35017fi
35018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35019echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35020if test `eval echo '${'$as_ac_var'}'` = yes; then
35021 cat >>confdefs.h <<_ACEOF
35022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35023_ACEOF
35024 cat >>confdefs.h <<\_ACEOF
35025#define HAVE_INET_ADDR 1
35026_ACEOF
35027
35028else
35029
35030 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
35031echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
35032if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
35033 echo $ECHO_N "(cached) $ECHO_C" >&6
35034else
35035 ac_check_lib_save_LIBS=$LIBS
35036LIBS="-lnsl $LIBS"
35037cat >conftest.$ac_ext <<_ACEOF
35038/* confdefs.h. */
35039_ACEOF
35040cat confdefs.h >>conftest.$ac_ext
35041cat >>conftest.$ac_ext <<_ACEOF
35042/* end confdefs.h. */
35043
35044/* Override any gcc2 internal prototype to avoid an error. */
35045#ifdef __cplusplus
35046extern "C"
35047#endif
35048/* We use char because int might match the return type of a gcc2
35049 builtin and then its argument prototype would still apply. */
35050char inet_addr ();
35051int
35052main ()
35053{
35054inet_addr ();
35055 ;
35056 return 0;
35057}
35058_ACEOF
35059rm -f conftest.$ac_objext conftest$ac_exeext
35060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35061 (eval $ac_link) 2>conftest.er1
a848cd7e 35062 ac_status=$?
ac1cb8d3
VS
35063 grep -v '^ *+' conftest.er1 >conftest.err
35064 rm -f conftest.er1
35065 cat conftest.err >&5
a848cd7e
SC
35066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35067 (exit $ac_status); } &&
6ebeb4c7 35068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35070 (eval $ac_try) 2>&5
35071 ac_status=$?
35072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073 (exit $ac_status); }; } &&
35074 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35076 (eval $ac_try) 2>&5
35077 ac_status=$?
35078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35079 (exit $ac_status); }; }; then
35080 ac_cv_lib_nsl_inet_addr=yes
35081else
35082 echo "$as_me: failed program was:" >&5
35083sed 's/^/| /' conftest.$ac_ext >&5
35084
35085ac_cv_lib_nsl_inet_addr=no
35086fi
ac1cb8d3
VS
35087rm -f conftest.err conftest.$ac_objext \
35088 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35089LIBS=$ac_check_lib_save_LIBS
35090fi
35091echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
35092echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
35093if test $ac_cv_lib_nsl_inet_addr = yes; then
35094 INET_LINK="nsl"
35095else
35096
35097 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
35098echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
35099if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
35100 echo $ECHO_N "(cached) $ECHO_C" >&6
35101else
35102 ac_check_lib_save_LIBS=$LIBS
35103LIBS="-lresolv $LIBS"
35104cat >conftest.$ac_ext <<_ACEOF
35105/* confdefs.h. */
35106_ACEOF
35107cat confdefs.h >>conftest.$ac_ext
35108cat >>conftest.$ac_ext <<_ACEOF
35109/* end confdefs.h. */
35110
35111/* Override any gcc2 internal prototype to avoid an error. */
35112#ifdef __cplusplus
35113extern "C"
35114#endif
35115/* We use char because int might match the return type of a gcc2
35116 builtin and then its argument prototype would still apply. */
35117char inet_addr ();
35118int
35119main ()
35120{
35121inet_addr ();
35122 ;
35123 return 0;
35124}
35125_ACEOF
35126rm -f conftest.$ac_objext conftest$ac_exeext
35127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35128 (eval $ac_link) 2>conftest.er1
a848cd7e 35129 ac_status=$?
ac1cb8d3
VS
35130 grep -v '^ *+' conftest.er1 >conftest.err
35131 rm -f conftest.er1
35132 cat conftest.err >&5
a848cd7e
SC
35133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35134 (exit $ac_status); } &&
6ebeb4c7 35135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35137 (eval $ac_try) 2>&5
35138 ac_status=$?
35139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35140 (exit $ac_status); }; } &&
35141 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35143 (eval $ac_try) 2>&5
35144 ac_status=$?
35145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35146 (exit $ac_status); }; }; then
35147 ac_cv_lib_resolv_inet_addr=yes
35148else
35149 echo "$as_me: failed program was:" >&5
35150sed 's/^/| /' conftest.$ac_ext >&5
35151
35152ac_cv_lib_resolv_inet_addr=no
35153fi
ac1cb8d3
VS
35154rm -f conftest.err conftest.$ac_objext \
35155 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35156LIBS=$ac_check_lib_save_LIBS
35157fi
35158echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
35159echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
35160if test $ac_cv_lib_resolv_inet_addr = yes; then
35161 INET_LINK="resolv"
35162else
35163
35164 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
35165echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
35166if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
35167 echo $ECHO_N "(cached) $ECHO_C" >&6
35168else
35169 ac_check_lib_save_LIBS=$LIBS
35170LIBS="-lsocket $LIBS"
35171cat >conftest.$ac_ext <<_ACEOF
35172/* confdefs.h. */
35173_ACEOF
35174cat confdefs.h >>conftest.$ac_ext
35175cat >>conftest.$ac_ext <<_ACEOF
35176/* end confdefs.h. */
35177
35178/* Override any gcc2 internal prototype to avoid an error. */
35179#ifdef __cplusplus
35180extern "C"
35181#endif
35182/* We use char because int might match the return type of a gcc2
35183 builtin and then its argument prototype would still apply. */
35184char inet_addr ();
35185int
35186main ()
35187{
35188inet_addr ();
35189 ;
35190 return 0;
35191}
35192_ACEOF
35193rm -f conftest.$ac_objext conftest$ac_exeext
35194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35195 (eval $ac_link) 2>conftest.er1
a848cd7e 35196 ac_status=$?
ac1cb8d3
VS
35197 grep -v '^ *+' conftest.er1 >conftest.err
35198 rm -f conftest.er1
35199 cat conftest.err >&5
a848cd7e
SC
35200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201 (exit $ac_status); } &&
6ebeb4c7 35202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35204 (eval $ac_try) 2>&5
35205 ac_status=$?
35206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35207 (exit $ac_status); }; } &&
35208 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35210 (eval $ac_try) 2>&5
35211 ac_status=$?
35212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213 (exit $ac_status); }; }; then
35214 ac_cv_lib_socket_inet_addr=yes
35215else
35216 echo "$as_me: failed program was:" >&5
35217sed 's/^/| /' conftest.$ac_ext >&5
35218
35219ac_cv_lib_socket_inet_addr=no
35220fi
ac1cb8d3
VS
35221rm -f conftest.err conftest.$ac_objext \
35222 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35223LIBS=$ac_check_lib_save_LIBS
35224fi
35225echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
35226echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
35227if test $ac_cv_lib_socket_inet_addr = yes; then
35228 INET_LINK="socket"
35229
35230fi
35231
35232
35233
35234fi
35235
35236
35237
35238fi
35239
35240
35241
35242fi
35243done
35244
35245
35246
35247for ac_func in inet_aton
35248do
35249as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35250echo "$as_me:$LINENO: checking for $ac_func" >&5
35251echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35252if eval "test \"\${$as_ac_var+set}\" = set"; then
35253 echo $ECHO_N "(cached) $ECHO_C" >&6
35254else
35255 cat >conftest.$ac_ext <<_ACEOF
35256/* confdefs.h. */
35257_ACEOF
35258cat confdefs.h >>conftest.$ac_ext
35259cat >>conftest.$ac_ext <<_ACEOF
35260/* end confdefs.h. */
ac1cb8d3
VS
35261/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35263#define $ac_func innocuous_$ac_func
35264
a848cd7e
SC
35265/* System header to define __stub macros and hopefully few prototypes,
35266 which can conflict with char $ac_func (); below.
35267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35268 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35269
a848cd7e
SC
35270#ifdef __STDC__
35271# include <limits.h>
35272#else
35273# include <assert.h>
35274#endif
ac1cb8d3
VS
35275
35276#undef $ac_func
35277
a848cd7e
SC
35278/* Override any gcc2 internal prototype to avoid an error. */
35279#ifdef __cplusplus
35280extern "C"
35281{
35282#endif
35283/* We use char because int might match the return type of a gcc2
35284 builtin and then its argument prototype would still apply. */
35285char $ac_func ();
35286/* The GNU C library defines this for functions which it implements
35287 to always fail with ENOSYS. Some functions are actually named
35288 something starting with __ and the normal name is an alias. */
35289#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35290choke me
35291#else
35292char (*f) () = $ac_func;
35293#endif
35294#ifdef __cplusplus
35295}
35296#endif
35297
35298int
35299main ()
35300{
35301return f != $ac_func;
35302 ;
35303 return 0;
35304}
35305_ACEOF
35306rm -f conftest.$ac_objext conftest$ac_exeext
35307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35308 (eval $ac_link) 2>conftest.er1
a848cd7e 35309 ac_status=$?
ac1cb8d3
VS
35310 grep -v '^ *+' conftest.er1 >conftest.err
35311 rm -f conftest.er1
35312 cat conftest.err >&5
a848cd7e
SC
35313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35314 (exit $ac_status); } &&
6ebeb4c7 35315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35317 (eval $ac_try) 2>&5
35318 ac_status=$?
35319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35320 (exit $ac_status); }; } &&
35321 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35323 (eval $ac_try) 2>&5
35324 ac_status=$?
35325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35326 (exit $ac_status); }; }; then
35327 eval "$as_ac_var=yes"
35328else
35329 echo "$as_me: failed program was:" >&5
35330sed 's/^/| /' conftest.$ac_ext >&5
35331
35332eval "$as_ac_var=no"
35333fi
ac1cb8d3
VS
35334rm -f conftest.err conftest.$ac_objext \
35335 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35336fi
35337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35338echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35339if test `eval echo '${'$as_ac_var'}'` = yes; then
35340 cat >>confdefs.h <<_ACEOF
35341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35342_ACEOF
35343 cat >>confdefs.h <<\_ACEOF
35344#define HAVE_INET_ATON 1
35345_ACEOF
35346
35347else
35348
35349 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
35350echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
35351echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
35352if eval "test \"\${$as_ac_Lib+set}\" = set"; then
35353 echo $ECHO_N "(cached) $ECHO_C" >&6
35354else
35355 ac_check_lib_save_LIBS=$LIBS
35356LIBS="-l$INET_LINK $LIBS"
35357cat >conftest.$ac_ext <<_ACEOF
35358/* confdefs.h. */
35359_ACEOF
35360cat confdefs.h >>conftest.$ac_ext
35361cat >>conftest.$ac_ext <<_ACEOF
35362/* end confdefs.h. */
35363
35364/* Override any gcc2 internal prototype to avoid an error. */
35365#ifdef __cplusplus
35366extern "C"
35367#endif
35368/* We use char because int might match the return type of a gcc2
35369 builtin and then its argument prototype would still apply. */
35370char inet_aton ();
35371int
35372main ()
35373{
35374inet_aton ();
35375 ;
35376 return 0;
35377}
35378_ACEOF
35379rm -f conftest.$ac_objext conftest$ac_exeext
35380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35381 (eval $ac_link) 2>conftest.er1
a848cd7e 35382 ac_status=$?
ac1cb8d3
VS
35383 grep -v '^ *+' conftest.er1 >conftest.err
35384 rm -f conftest.er1
35385 cat conftest.err >&5
a848cd7e
SC
35386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35387 (exit $ac_status); } &&
6ebeb4c7 35388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35390 (eval $ac_try) 2>&5
35391 ac_status=$?
35392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35393 (exit $ac_status); }; } &&
35394 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35396 (eval $ac_try) 2>&5
35397 ac_status=$?
35398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35399 (exit $ac_status); }; }; then
35400 eval "$as_ac_Lib=yes"
35401else
35402 echo "$as_me: failed program was:" >&5
35403sed 's/^/| /' conftest.$ac_ext >&5
35404
35405eval "$as_ac_Lib=no"
35406fi
ac1cb8d3
VS
35407rm -f conftest.err conftest.$ac_objext \
35408 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35409LIBS=$ac_check_lib_save_LIBS
35410fi
35411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
35412echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
35413if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35414 cat >>confdefs.h <<\_ACEOF
35415#define HAVE_INET_ATON 1
35416_ACEOF
35417
35418fi
35419
35420
35421fi
35422done
35423
35424
35425if test "x$INET_LINK" != "x"; then
35426 cat >>confdefs.h <<\_ACEOF
35427#define HAVE_INET_ADDR 1
35428_ACEOF
35429
35430 INET_LINK=" -l$INET_LINK"
35431fi
35432
35433fi
35434
35435
35436
35437EXTRALIBS_ESD=
35438echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
35439echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
35440if test "${ac_cv_lib_esd_esd_close+set}" = set; then
35441 echo $ECHO_N "(cached) $ECHO_C" >&6
35442else
35443 ac_check_lib_save_LIBS=$LIBS
35444LIBS="-lesd $LIBS"
35445cat >conftest.$ac_ext <<_ACEOF
35446/* confdefs.h. */
35447_ACEOF
35448cat confdefs.h >>conftest.$ac_ext
35449cat >>conftest.$ac_ext <<_ACEOF
35450/* end confdefs.h. */
35451
35452/* Override any gcc2 internal prototype to avoid an error. */
35453#ifdef __cplusplus
35454extern "C"
35455#endif
35456/* We use char because int might match the return type of a gcc2
35457 builtin and then its argument prototype would still apply. */
35458char esd_close ();
35459int
35460main ()
35461{
35462esd_close ();
35463 ;
35464 return 0;
35465}
35466_ACEOF
35467rm -f conftest.$ac_objext conftest$ac_exeext
35468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35469 (eval $ac_link) 2>conftest.er1
a848cd7e 35470 ac_status=$?
ac1cb8d3
VS
35471 grep -v '^ *+' conftest.er1 >conftest.err
35472 rm -f conftest.er1
35473 cat conftest.err >&5
a848cd7e
SC
35474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475 (exit $ac_status); } &&
6ebeb4c7 35476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35478 (eval $ac_try) 2>&5
35479 ac_status=$?
35480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35481 (exit $ac_status); }; } &&
35482 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35484 (eval $ac_try) 2>&5
35485 ac_status=$?
35486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35487 (exit $ac_status); }; }; then
35488 ac_cv_lib_esd_esd_close=yes
35489else
35490 echo "$as_me: failed program was:" >&5
35491sed 's/^/| /' conftest.$ac_ext >&5
35492
35493ac_cv_lib_esd_esd_close=no
35494fi
ac1cb8d3
VS
35495rm -f conftest.err conftest.$ac_objext \
35496 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35497LIBS=$ac_check_lib_save_LIBS
35498fi
35499echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
35500echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
35501if test $ac_cv_lib_esd_esd_close = yes; then
35502
35503
35504for ac_header in esd.h
35505do
35506as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35507if eval "test \"\${$as_ac_Header+set}\" = set"; then
35508 echo "$as_me:$LINENO: checking for $ac_header" >&5
35509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35510if eval "test \"\${$as_ac_Header+set}\" = set"; then
35511 echo $ECHO_N "(cached) $ECHO_C" >&6
35512fi
35513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35515else
35516 # Is the header compilable?
35517echo "$as_me:$LINENO: checking $ac_header usability" >&5
35518echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35519cat >conftest.$ac_ext <<_ACEOF
35520/* confdefs.h. */
35521_ACEOF
35522cat confdefs.h >>conftest.$ac_ext
35523cat >>conftest.$ac_ext <<_ACEOF
35524/* end confdefs.h. */
35525$ac_includes_default
35526#include <$ac_header>
35527_ACEOF
35528rm -f conftest.$ac_objext
35529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35530 (eval $ac_compile) 2>conftest.er1
a848cd7e 35531 ac_status=$?
ac1cb8d3
VS
35532 grep -v '^ *+' conftest.er1 >conftest.err
35533 rm -f conftest.er1
35534 cat conftest.err >&5
a848cd7e
SC
35535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35536 (exit $ac_status); } &&
6ebeb4c7 35537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35539 (eval $ac_try) 2>&5
35540 ac_status=$?
35541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35542 (exit $ac_status); }; } &&
35543 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35545 (eval $ac_try) 2>&5
35546 ac_status=$?
35547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548 (exit $ac_status); }; }; then
35549 ac_header_compiler=yes
35550else
35551 echo "$as_me: failed program was:" >&5
35552sed 's/^/| /' conftest.$ac_ext >&5
35553
35554ac_header_compiler=no
35555fi
ac1cb8d3 35556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35557echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35558echo "${ECHO_T}$ac_header_compiler" >&6
35559
35560# Is the header present?
35561echo "$as_me:$LINENO: checking $ac_header presence" >&5
35562echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35563cat >conftest.$ac_ext <<_ACEOF
35564/* confdefs.h. */
35565_ACEOF
35566cat confdefs.h >>conftest.$ac_ext
35567cat >>conftest.$ac_ext <<_ACEOF
35568/* end confdefs.h. */
35569#include <$ac_header>
35570_ACEOF
35571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35573 ac_status=$?
35574 grep -v '^ *+' conftest.er1 >conftest.err
35575 rm -f conftest.er1
35576 cat conftest.err >&5
35577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35578 (exit $ac_status); } >/dev/null; then
35579 if test -s conftest.err; then
35580 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35582 else
35583 ac_cpp_err=
35584 fi
35585else
35586 ac_cpp_err=yes
35587fi
35588if test -z "$ac_cpp_err"; then
35589 ac_header_preproc=yes
35590else
35591 echo "$as_me: failed program was:" >&5
35592sed 's/^/| /' conftest.$ac_ext >&5
35593
35594 ac_header_preproc=no
35595fi
35596rm -f conftest.err conftest.$ac_ext
35597echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35598echo "${ECHO_T}$ac_header_preproc" >&6
35599
35600# So? What about this header?
ac1cb8d3
VS
35601case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35602 yes:no: )
a848cd7e
SC
35603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35604echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35606echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35607 ac_header_preproc=yes
a848cd7e 35608 ;;
ac1cb8d3 35609 no:yes:* )
a848cd7e
SC
35610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35611echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35613echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35615echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35617echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35619echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35621echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35622 (
35623 cat <<\_ASBOX
ac1cb8d3
VS
35624## ----------------------------------------- ##
35625## Report this to wx-dev@lists.wxwidgets.org ##
35626## ----------------------------------------- ##
a848cd7e
SC
35627_ASBOX
35628 ) |
35629 sed "s/^/$as_me: WARNING: /" >&2
35630 ;;
35631esac
35632echo "$as_me:$LINENO: checking for $ac_header" >&5
35633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35634if eval "test \"\${$as_ac_Header+set}\" = set"; then
35635 echo $ECHO_N "(cached) $ECHO_C" >&6
35636else
ac1cb8d3 35637 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35638fi
35639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35640echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35641
35642fi
35643if test `eval echo '${'$as_ac_Header'}'` = yes; then
35644 cat >>confdefs.h <<_ACEOF
35645#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35646_ACEOF
35647
35648 EXTRALIBS_ESD="-lesd"
35649
35650fi
35651
35652done
35653
35654
35655fi
35656
35657
35658
35659echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
35660echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
35661cat >conftest.$ac_ext <<_ACEOF
35662/* confdefs.h. */
35663_ACEOF
35664cat confdefs.h >>conftest.$ac_ext
35665cat >>conftest.$ac_ext <<_ACEOF
35666/* end confdefs.h. */
35667#ifdef __linux__
35668 #include <linux/cdrom.h>
35669 #else
35670 /* For Solaris */
35671 #include <sys/cdio.h>
35672 #endif
35673
35674int
35675main ()
35676{
35677struct cdrom_tocentry entry, old_entry;
35678 ;
35679 return 0;
35680}
35681_ACEOF
35682rm -f conftest.$ac_objext
35683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35684 (eval $ac_compile) 2>conftest.er1
a848cd7e 35685 ac_status=$?
ac1cb8d3
VS
35686 grep -v '^ *+' conftest.er1 >conftest.err
35687 rm -f conftest.er1
35688 cat conftest.err >&5
a848cd7e
SC
35689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690 (exit $ac_status); } &&
6ebeb4c7 35691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35693 (eval $ac_try) 2>&5
35694 ac_status=$?
35695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696 (exit $ac_status); }; } &&
35697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35699 (eval $ac_try) 2>&5
35700 ac_status=$?
35701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35702 (exit $ac_status); }; }; then
35703 echo "$as_me:$LINENO: result: yes" >&5
35704echo "${ECHO_T}yes" >&6
35705 cat >>confdefs.h <<\_ACEOF
35706#define HAVE_KNOWN_CDROM_INTERFACE 1
35707_ACEOF
35708
35709else
35710 echo "$as_me: failed program was:" >&5
35711sed 's/^/| /' conftest.$ac_ext >&5
35712
35713echo "$as_me:$LINENO: result: no" >&5
35714echo "${ECHO_T}no" >&6
35715fi
ac1cb8d3 35716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35717
35718
35719cat >confcache <<\_ACEOF
35720# This file is a shell script that caches the results of configure
35721# tests run on this system so they can be shared between configure
35722# scripts and configure runs, see configure's option --config-cache.
35723# It is not useful on other systems. If it contains results you don't
35724# want to keep, you may remove or edit it.
35725#
35726# config.status only pays attention to the cache file if you give it
35727# the --recheck option to rerun configure.
35728#
35729# `ac_cv_env_foo' variables (set or unset) will be overridden when
35730# loading this file, other *unset* `ac_cv_foo' will be assigned the
35731# following values.
35732
35733_ACEOF
35734
35735# The following way of writing the cache mishandles newlines in values,
35736# but we know of no workaround that is simple, portable, and efficient.
35737# So, don't put newlines in cache variables' values.
35738# Ultrix sh set writes to stderr and can't be redirected directly,
35739# and sets the high bit in the cache file unless we assign to the vars.
35740{
35741 (set) 2>&1 |
35742 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35743 *ac_space=\ *)
35744 # `set' does not quote correctly, so add quotes (double-quote
35745 # substitution turns \\\\ into \\, and sed turns \\ into \).
35746 sed -n \
ac1cb8d3
VS
35747 "s/'/'\\\\''/g;
35748 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
35749 ;;
35750 *)
35751 # `set' quotes correctly as required by POSIX, so do not add quotes.
35752 sed -n \
ac1cb8d3 35753 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
35754 ;;
35755 esac;
35756} |
35757 sed '
35758 t clear
35759 : clear
35760 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35761 t end
35762 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35763 : end' >>confcache
35764if diff $cache_file confcache >/dev/null 2>&1; then :; else
35765 if test -w $cache_file; then
35766 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35767 cat confcache >$cache_file
35768 else
35769 echo "not updating unwritable cache $cache_file"
35770 fi
35771fi
35772rm -f confcache
35773
35774
35775CPP_MT_FLAG=
35776if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35777
35778
35779 THREADS_LINK=
35780 THREADS_CFLAGS=
35781
35782 if test "$wxUSE_THREADS" = "yes" ; then
35783 if test "$USE_BEOS" = 1; then
35784 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
35785echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
35786 wxUSE_THREADS="no"
35787 fi
35788 fi
35789
35790 if test "$wxUSE_THREADS" = "yes" ; then
35791
35792
35793 THREAD_OPTS="-pthread"
35794 case "${host}" in
35795 *-*-solaris2* | *-*-sunos4* )
35796 if test "x$GCC" = "xyes"; then
35797 THREAD_OPTS="-pthreads $THREAD_OPTS"
35798 else
35799 THREAD_OPTS="-mt $THREAD_OPTS"
35800 fi
35801 ;;
35802 *-*-freebsd*)
35803 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
35804 ;;
35805 *-*-darwin* | *-*-cygwin* )
35806 THREAD_OPTS=""
35807 ;;
35808 *-*-aix*)
35809 THREAD_OPTS="pthreads"
35810 ;;
35811 *-hp-hpux* )
00421666
MW
35812 if test "x$GCC" = "xyes"; then
35813 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
35814 THREAD_OPTS=""
35815 else
efdf6afe 35816 THREAD_OPTS=""
a848cd7e
SC
35817 fi
35818 ;;
35819
35820 *-*-irix* )
35821 if test "x$GCC" = "xyes"; then
35822 THREAD_OPTS=""
35823 fi
35824 ;;
35825
35826 *-*-*UnixWare*)
35827 if test "x$GCC" != "xyes"; then
35828 THREAD_OPTS="-Ethread"
35829 fi
35830 ;;
35831 esac
35832
35833 THREAD_OPTS="$THREAD_OPTS pthread none"
35834
35835 THREADS_OK=no
35836 for flag in $THREAD_OPTS; do
35837 case $flag in
35838 none)
35839 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
35840echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
35841 ;;
35842
35843 -*)
35844 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
35845echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
35846 THREADS_CFLAGS="$flag"
35847 ;;
35848
35849 *)
35850 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
35851echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
35852 THREADS_LINK="-l$flag"
35853 ;;
35854 esac
35855
35856 save_LIBS="$LIBS"
35857 save_CFLAGS="$CFLAGS"
35858 LIBS="$THREADS_LINK $LIBS"
35859 CFLAGS="$THREADS_CFLAGS $CFLAGS"
35860
35861 cat >conftest.$ac_ext <<_ACEOF
35862/* confdefs.h. */
35863_ACEOF
35864cat confdefs.h >>conftest.$ac_ext
35865cat >>conftest.$ac_ext <<_ACEOF
35866/* end confdefs.h. */
35867#include <pthread.h>
35868int
35869main ()
35870{
35871pthread_create(0,0,0,0);
35872 ;
35873 return 0;
35874}
35875_ACEOF
35876rm -f conftest.$ac_objext conftest$ac_exeext
35877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35878 (eval $ac_link) 2>conftest.er1
a848cd7e 35879 ac_status=$?
ac1cb8d3
VS
35880 grep -v '^ *+' conftest.er1 >conftest.err
35881 rm -f conftest.er1
35882 cat conftest.err >&5
a848cd7e
SC
35883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35884 (exit $ac_status); } &&
6ebeb4c7 35885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35887 (eval $ac_try) 2>&5
35888 ac_status=$?
35889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35890 (exit $ac_status); }; } &&
35891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35893 (eval $ac_try) 2>&5
35894 ac_status=$?
35895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35896 (exit $ac_status); }; }; then
35897 THREADS_OK=yes
35898else
35899 echo "$as_me: failed program was:" >&5
35900sed 's/^/| /' conftest.$ac_ext >&5
35901
35902fi
ac1cb8d3
VS
35903rm -f conftest.err conftest.$ac_objext \
35904 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35905
35906 LIBS="$save_LIBS"
35907 CFLAGS="$save_CFLAGS"
35908
35909 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
35910echo "${ECHO_T}$THREADS_OK" >&6
35911 if test "x$THREADS_OK" = "xyes"; then
35912 break;
35913 fi
35914
35915 THREADS_LINK=""
35916 THREADS_CFLAGS=""
35917 done
35918
35919 if test "x$THREADS_OK" != "xyes"; then
35920 wxUSE_THREADS=no
35921 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
35922echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
35923 else
35924 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
35925 LIBS="$THREADS_LINK $LIBS"
35926
35927 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
35928echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
35929 flag=no
35930 case "${host}" in
35931 *-aix*)
35932 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
35933 flag="-D_THREAD_SAFE"
35934 ;;
35935 *-freebsd*)
35936 flag="-D_THREAD_SAFE"
35937 ;;
35938 *-hp-hpux* )
35939 flag="-D_REENTRANT"
35940 if test "x$GCC" != "xyes"; then
35941 flag="$flag -D_RWSTD_MULTI_THREAD"
35942 fi
35943 ;;
35944 *solaris* | alpha*-osf*)
35945 flag="-D_REENTRANT"
35946 ;;
35947 esac
35948 echo "$as_me:$LINENO: result: ${flag}" >&5
35949echo "${ECHO_T}${flag}" >&6
35950 if test "x$flag" != xno; then
35951 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
35952 fi
35953
35954 if test "x$THREADS_CFLAGS" != "x"; then
35955 CFLAGS="$CFLAGS $THREADS_CFLAGS"
35956 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
35957 fi
35958 fi
35959 fi
35960
35961 if test "$wxUSE_THREADS" = "yes" ; then
35962
35963for ac_func in thr_setconcurrency
35964do
35965as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35966echo "$as_me:$LINENO: checking for $ac_func" >&5
35967echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35968if eval "test \"\${$as_ac_var+set}\" = set"; then
35969 echo $ECHO_N "(cached) $ECHO_C" >&6
35970else
35971 cat >conftest.$ac_ext <<_ACEOF
35972/* confdefs.h. */
35973_ACEOF
35974cat confdefs.h >>conftest.$ac_ext
35975cat >>conftest.$ac_ext <<_ACEOF
35976/* end confdefs.h. */
ac1cb8d3
VS
35977/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35979#define $ac_func innocuous_$ac_func
35980
a848cd7e
SC
35981/* System header to define __stub macros and hopefully few prototypes,
35982 which can conflict with char $ac_func (); below.
35983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35984 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35985
a848cd7e
SC
35986#ifdef __STDC__
35987# include <limits.h>
35988#else
35989# include <assert.h>
35990#endif
ac1cb8d3
VS
35991
35992#undef $ac_func
35993
a848cd7e
SC
35994/* Override any gcc2 internal prototype to avoid an error. */
35995#ifdef __cplusplus
35996extern "C"
35997{
35998#endif
35999/* We use char because int might match the return type of a gcc2
36000 builtin and then its argument prototype would still apply. */
36001char $ac_func ();
36002/* The GNU C library defines this for functions which it implements
36003 to always fail with ENOSYS. Some functions are actually named
36004 something starting with __ and the normal name is an alias. */
36005#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36006choke me
36007#else
36008char (*f) () = $ac_func;
36009#endif
36010#ifdef __cplusplus
36011}
36012#endif
36013
36014int
36015main ()
36016{
36017return f != $ac_func;
36018 ;
36019 return 0;
36020}
36021_ACEOF
36022rm -f conftest.$ac_objext conftest$ac_exeext
36023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36024 (eval $ac_link) 2>conftest.er1
a848cd7e 36025 ac_status=$?
ac1cb8d3
VS
36026 grep -v '^ *+' conftest.er1 >conftest.err
36027 rm -f conftest.er1
36028 cat conftest.err >&5
a848cd7e
SC
36029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36030 (exit $ac_status); } &&
6ebeb4c7 36031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36033 (eval $ac_try) 2>&5
36034 ac_status=$?
36035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36036 (exit $ac_status); }; } &&
36037 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36039 (eval $ac_try) 2>&5
36040 ac_status=$?
36041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36042 (exit $ac_status); }; }; then
36043 eval "$as_ac_var=yes"
36044else
36045 echo "$as_me: failed program was:" >&5
36046sed 's/^/| /' conftest.$ac_ext >&5
36047
36048eval "$as_ac_var=no"
36049fi
ac1cb8d3
VS
36050rm -f conftest.err conftest.$ac_objext \
36051 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36052fi
36053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36054echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36055if test `eval echo '${'$as_ac_var'}'` = yes; then
36056 cat >>confdefs.h <<_ACEOF
36057#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36058_ACEOF
36059
36060fi
36061done
36062
36063
6ebeb4c7
VZ
36064 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
36065echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
36066if test "${wx_cv_func_pthread_cleanup+set}" = set; then
36067 echo $ECHO_N "(cached) $ECHO_C" >&6
36068else
36069
36070 cat >conftest.$ac_ext <<_ACEOF
36071/* confdefs.h. */
36072_ACEOF
36073cat confdefs.h >>conftest.$ac_ext
36074cat >>conftest.$ac_ext <<_ACEOF
36075/* end confdefs.h. */
36076#include <pthread.h>
36077 void ThreadCleanupFunc(void *p);
36078
36079int
36080main ()
36081{
36082
36083 void *p;
36084 pthread_cleanup_push(ThreadCleanupFunc, p);
36085 pthread_cleanup_pop(0);
36086
36087 ;
36088 return 0;
36089}
36090_ACEOF
36091rm -f conftest.$ac_objext
36092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36093 (eval $ac_compile) 2>conftest.er1
36094 ac_status=$?
36095 grep -v '^ *+' conftest.er1 >conftest.err
36096 rm -f conftest.er1
36097 cat conftest.err >&5
36098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099 (exit $ac_status); } &&
36100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36102 (eval $ac_try) 2>&5
36103 ac_status=$?
36104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36105 (exit $ac_status); }; } &&
36106 { ac_try='test -s conftest.$ac_objext'
36107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36108 (eval $ac_try) 2>&5
36109 ac_status=$?
36110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36111 (exit $ac_status); }; }; then
36112
36113 wx_cv_func_pthread_cleanup=yes
36114
36115else
36116 echo "$as_me: failed program was:" >&5
36117sed 's/^/| /' conftest.$ac_ext >&5
36118
36119
36120 wx_cv_func_pthread_cleanup=no
36121
36122
36123fi
36124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36125
36126fi
36127echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
36128echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
36129 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
36130 cat >>confdefs.h <<\_ACEOF
36131#define wxHAVE_PTHREAD_CLEANUP 1
36132_ACEOF
36133
36134 fi
36135
a848cd7e
SC
36136
36137for ac_header in sched.h
36138do
36139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36140if eval "test \"\${$as_ac_Header+set}\" = set"; then
36141 echo "$as_me:$LINENO: checking for $ac_header" >&5
36142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36143if eval "test \"\${$as_ac_Header+set}\" = set"; then
36144 echo $ECHO_N "(cached) $ECHO_C" >&6
36145fi
36146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36148else
36149 # Is the header compilable?
36150echo "$as_me:$LINENO: checking $ac_header usability" >&5
36151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36152cat >conftest.$ac_ext <<_ACEOF
36153/* confdefs.h. */
36154_ACEOF
36155cat confdefs.h >>conftest.$ac_ext
36156cat >>conftest.$ac_ext <<_ACEOF
36157/* end confdefs.h. */
36158$ac_includes_default
36159#include <$ac_header>
36160_ACEOF
36161rm -f conftest.$ac_objext
36162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36163 (eval $ac_compile) 2>conftest.er1
a848cd7e 36164 ac_status=$?
ac1cb8d3
VS
36165 grep -v '^ *+' conftest.er1 >conftest.err
36166 rm -f conftest.er1
36167 cat conftest.err >&5
a848cd7e
SC
36168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36169 (exit $ac_status); } &&
6ebeb4c7 36170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36172 (eval $ac_try) 2>&5
36173 ac_status=$?
36174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36175 (exit $ac_status); }; } &&
36176 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36178 (eval $ac_try) 2>&5
36179 ac_status=$?
36180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36181 (exit $ac_status); }; }; then
36182 ac_header_compiler=yes
36183else
36184 echo "$as_me: failed program was:" >&5
36185sed 's/^/| /' conftest.$ac_ext >&5
36186
36187ac_header_compiler=no
36188fi
ac1cb8d3 36189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36190echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36191echo "${ECHO_T}$ac_header_compiler" >&6
36192
36193# Is the header present?
36194echo "$as_me:$LINENO: checking $ac_header presence" >&5
36195echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36196cat >conftest.$ac_ext <<_ACEOF
36197/* confdefs.h. */
36198_ACEOF
36199cat confdefs.h >>conftest.$ac_ext
36200cat >>conftest.$ac_ext <<_ACEOF
36201/* end confdefs.h. */
36202#include <$ac_header>
36203_ACEOF
36204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36206 ac_status=$?
36207 grep -v '^ *+' conftest.er1 >conftest.err
36208 rm -f conftest.er1
36209 cat conftest.err >&5
36210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211 (exit $ac_status); } >/dev/null; then
36212 if test -s conftest.err; then
36213 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36215 else
36216 ac_cpp_err=
36217 fi
36218else
36219 ac_cpp_err=yes
36220fi
36221if test -z "$ac_cpp_err"; then
36222 ac_header_preproc=yes
36223else
36224 echo "$as_me: failed program was:" >&5
36225sed 's/^/| /' conftest.$ac_ext >&5
36226
36227 ac_header_preproc=no
36228fi
36229rm -f conftest.err conftest.$ac_ext
36230echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36231echo "${ECHO_T}$ac_header_preproc" >&6
36232
36233# So? What about this header?
ac1cb8d3
VS
36234case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36235 yes:no: )
a848cd7e
SC
36236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36237echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36239echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36240 ac_header_preproc=yes
a848cd7e 36241 ;;
ac1cb8d3 36242 no:yes:* )
a848cd7e
SC
36243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36244echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36246echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36248echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36250echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36252echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36254echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36255 (
36256 cat <<\_ASBOX
ac1cb8d3
VS
36257## ----------------------------------------- ##
36258## Report this to wx-dev@lists.wxwidgets.org ##
36259## ----------------------------------------- ##
a848cd7e
SC
36260_ASBOX
36261 ) |
36262 sed "s/^/$as_me: WARNING: /" >&2
36263 ;;
36264esac
36265echo "$as_me:$LINENO: checking for $ac_header" >&5
36266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36267if eval "test \"\${$as_ac_Header+set}\" = set"; then
36268 echo $ECHO_N "(cached) $ECHO_C" >&6
36269else
ac1cb8d3 36270 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36271fi
36272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36274
36275fi
36276if test `eval echo '${'$as_ac_Header'}'` = yes; then
36277 cat >>confdefs.h <<_ACEOF
36278#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36279_ACEOF
36280
36281fi
36282
36283done
36284
36285 if test "$ac_cv_header_sched_h" = "yes"; then
36286 echo "$as_me:$LINENO: checking for sched_yield" >&5
36287echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
36288if test "${ac_cv_func_sched_yield+set}" = set; then
36289 echo $ECHO_N "(cached) $ECHO_C" >&6
36290else
36291 cat >conftest.$ac_ext <<_ACEOF
36292/* confdefs.h. */
36293_ACEOF
36294cat confdefs.h >>conftest.$ac_ext
36295cat >>conftest.$ac_ext <<_ACEOF
36296/* end confdefs.h. */
ac1cb8d3
VS
36297/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
36298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36299#define sched_yield innocuous_sched_yield
36300
a848cd7e
SC
36301/* System header to define __stub macros and hopefully few prototypes,
36302 which can conflict with char sched_yield (); below.
36303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36304 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36305
a848cd7e
SC
36306#ifdef __STDC__
36307# include <limits.h>
36308#else
36309# include <assert.h>
36310#endif
ac1cb8d3
VS
36311
36312#undef sched_yield
36313
a848cd7e
SC
36314/* Override any gcc2 internal prototype to avoid an error. */
36315#ifdef __cplusplus
36316extern "C"
36317{
36318#endif
36319/* We use char because int might match the return type of a gcc2
36320 builtin and then its argument prototype would still apply. */
36321char sched_yield ();
36322/* The GNU C library defines this for functions which it implements
36323 to always fail with ENOSYS. Some functions are actually named
36324 something starting with __ and the normal name is an alias. */
36325#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
36326choke me
36327#else
36328char (*f) () = sched_yield;
36329#endif
36330#ifdef __cplusplus
36331}
36332#endif
36333
36334int
36335main ()
36336{
36337return f != sched_yield;
36338 ;
36339 return 0;
36340}
36341_ACEOF
36342rm -f conftest.$ac_objext conftest$ac_exeext
36343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36344 (eval $ac_link) 2>conftest.er1
a848cd7e 36345 ac_status=$?
ac1cb8d3
VS
36346 grep -v '^ *+' conftest.er1 >conftest.err
36347 rm -f conftest.er1
36348 cat conftest.err >&5
a848cd7e
SC
36349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36350 (exit $ac_status); } &&
6ebeb4c7 36351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36353 (eval $ac_try) 2>&5
36354 ac_status=$?
36355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36356 (exit $ac_status); }; } &&
36357 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36359 (eval $ac_try) 2>&5
36360 ac_status=$?
36361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36362 (exit $ac_status); }; }; then
36363 ac_cv_func_sched_yield=yes
36364else
36365 echo "$as_me: failed program was:" >&5
36366sed 's/^/| /' conftest.$ac_ext >&5
36367
36368ac_cv_func_sched_yield=no
36369fi
ac1cb8d3
VS
36370rm -f conftest.err conftest.$ac_objext \
36371 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36372fi
36373echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
36374echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
36375if test $ac_cv_func_sched_yield = yes; then
36376 cat >>confdefs.h <<\_ACEOF
36377#define HAVE_SCHED_YIELD 1
36378_ACEOF
36379
36380else
36381
36382 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
36383echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
36384if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
36385 echo $ECHO_N "(cached) $ECHO_C" >&6
36386else
36387 ac_check_lib_save_LIBS=$LIBS
36388LIBS="-lposix4 $LIBS"
36389cat >conftest.$ac_ext <<_ACEOF
36390/* confdefs.h. */
36391_ACEOF
36392cat confdefs.h >>conftest.$ac_ext
36393cat >>conftest.$ac_ext <<_ACEOF
36394/* end confdefs.h. */
36395
36396/* Override any gcc2 internal prototype to avoid an error. */
36397#ifdef __cplusplus
36398extern "C"
36399#endif
36400/* We use char because int might match the return type of a gcc2
36401 builtin and then its argument prototype would still apply. */
36402char sched_yield ();
36403int
36404main ()
36405{
36406sched_yield ();
36407 ;
36408 return 0;
36409}
36410_ACEOF
36411rm -f conftest.$ac_objext conftest$ac_exeext
36412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36413 (eval $ac_link) 2>conftest.er1
a848cd7e 36414 ac_status=$?
ac1cb8d3
VS
36415 grep -v '^ *+' conftest.er1 >conftest.err
36416 rm -f conftest.er1
36417 cat conftest.err >&5
a848cd7e
SC
36418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419 (exit $ac_status); } &&
6ebeb4c7 36420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36422 (eval $ac_try) 2>&5
36423 ac_status=$?
36424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36425 (exit $ac_status); }; } &&
36426 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36428 (eval $ac_try) 2>&5
36429 ac_status=$?
36430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36431 (exit $ac_status); }; }; then
36432 ac_cv_lib_posix4_sched_yield=yes
36433else
36434 echo "$as_me: failed program was:" >&5
36435sed 's/^/| /' conftest.$ac_ext >&5
36436
36437ac_cv_lib_posix4_sched_yield=no
36438fi
ac1cb8d3
VS
36439rm -f conftest.err conftest.$ac_objext \
36440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36441LIBS=$ac_check_lib_save_LIBS
36442fi
36443echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
36444echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
36445if test $ac_cv_lib_posix4_sched_yield = yes; then
36446 cat >>confdefs.h <<\_ACEOF
36447#define HAVE_SCHED_YIELD 1
36448_ACEOF
36449 POSIX4_LINK=" -lposix4"
36450else
36451 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
36452echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
36453
36454fi
36455
36456
36457
36458fi
36459
36460 fi
36461
36462 HAVE_PRIOR_FUNCS=0
36463 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
36464echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
36465if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
36466 echo $ECHO_N "(cached) $ECHO_C" >&6
36467else
36468 cat >conftest.$ac_ext <<_ACEOF
36469/* confdefs.h. */
36470_ACEOF
36471cat confdefs.h >>conftest.$ac_ext
36472cat >>conftest.$ac_ext <<_ACEOF
36473/* end confdefs.h. */
ac1cb8d3
VS
36474/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
36475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36476#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
36477
a848cd7e
SC
36478/* System header to define __stub macros and hopefully few prototypes,
36479 which can conflict with char pthread_attr_getschedpolicy (); below.
36480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36481 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36482
a848cd7e
SC
36483#ifdef __STDC__
36484# include <limits.h>
36485#else
36486# include <assert.h>
36487#endif
ac1cb8d3
VS
36488
36489#undef pthread_attr_getschedpolicy
36490
a848cd7e
SC
36491/* Override any gcc2 internal prototype to avoid an error. */
36492#ifdef __cplusplus
36493extern "C"
36494{
36495#endif
36496/* We use char because int might match the return type of a gcc2
36497 builtin and then its argument prototype would still apply. */
36498char pthread_attr_getschedpolicy ();
36499/* The GNU C library defines this for functions which it implements
36500 to always fail with ENOSYS. Some functions are actually named
36501 something starting with __ and the normal name is an alias. */
36502#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
36503choke me
36504#else
36505char (*f) () = pthread_attr_getschedpolicy;
36506#endif
36507#ifdef __cplusplus
36508}
36509#endif
36510
36511int
36512main ()
36513{
36514return f != pthread_attr_getschedpolicy;
36515 ;
36516 return 0;
36517}
36518_ACEOF
36519rm -f conftest.$ac_objext conftest$ac_exeext
36520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36521 (eval $ac_link) 2>conftest.er1
a848cd7e 36522 ac_status=$?
ac1cb8d3
VS
36523 grep -v '^ *+' conftest.er1 >conftest.err
36524 rm -f conftest.er1
36525 cat conftest.err >&5
a848cd7e
SC
36526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36527 (exit $ac_status); } &&
6ebeb4c7 36528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36530 (eval $ac_try) 2>&5
36531 ac_status=$?
36532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533 (exit $ac_status); }; } &&
36534 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36536 (eval $ac_try) 2>&5
36537 ac_status=$?
36538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36539 (exit $ac_status); }; }; then
36540 ac_cv_func_pthread_attr_getschedpolicy=yes
36541else
36542 echo "$as_me: failed program was:" >&5
36543sed 's/^/| /' conftest.$ac_ext >&5
36544
36545ac_cv_func_pthread_attr_getschedpolicy=no
36546fi
ac1cb8d3
VS
36547rm -f conftest.err conftest.$ac_objext \
36548 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36549fi
36550echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
36551echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
36552if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
36553 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
36554echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
36555if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
36556 echo $ECHO_N "(cached) $ECHO_C" >&6
36557else
36558 cat >conftest.$ac_ext <<_ACEOF
36559/* confdefs.h. */
36560_ACEOF
36561cat confdefs.h >>conftest.$ac_ext
36562cat >>conftest.$ac_ext <<_ACEOF
36563/* end confdefs.h. */
ac1cb8d3
VS
36564/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
36565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36566#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
36567
a848cd7e
SC
36568/* System header to define __stub macros and hopefully few prototypes,
36569 which can conflict with char pthread_attr_setschedparam (); below.
36570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36571 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36572
a848cd7e
SC
36573#ifdef __STDC__
36574# include <limits.h>
36575#else
36576# include <assert.h>
36577#endif
ac1cb8d3
VS
36578
36579#undef pthread_attr_setschedparam
36580
a848cd7e
SC
36581/* Override any gcc2 internal prototype to avoid an error. */
36582#ifdef __cplusplus
36583extern "C"
36584{
36585#endif
36586/* We use char because int might match the return type of a gcc2
36587 builtin and then its argument prototype would still apply. */
36588char pthread_attr_setschedparam ();
36589/* The GNU C library defines this for functions which it implements
36590 to always fail with ENOSYS. Some functions are actually named
36591 something starting with __ and the normal name is an alias. */
36592#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
36593choke me
36594#else
36595char (*f) () = pthread_attr_setschedparam;
36596#endif
36597#ifdef __cplusplus
36598}
36599#endif
36600
36601int
36602main ()
36603{
36604return f != pthread_attr_setschedparam;
36605 ;
36606 return 0;
36607}
36608_ACEOF
36609rm -f conftest.$ac_objext conftest$ac_exeext
36610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36611 (eval $ac_link) 2>conftest.er1
a848cd7e 36612 ac_status=$?
ac1cb8d3
VS
36613 grep -v '^ *+' conftest.er1 >conftest.err
36614 rm -f conftest.er1
36615 cat conftest.err >&5
a848cd7e
SC
36616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36617 (exit $ac_status); } &&
6ebeb4c7 36618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36620 (eval $ac_try) 2>&5
36621 ac_status=$?
36622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623 (exit $ac_status); }; } &&
36624 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36626 (eval $ac_try) 2>&5
36627 ac_status=$?
36628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36629 (exit $ac_status); }; }; then
36630 ac_cv_func_pthread_attr_setschedparam=yes
36631else
36632 echo "$as_me: failed program was:" >&5
36633sed 's/^/| /' conftest.$ac_ext >&5
36634
36635ac_cv_func_pthread_attr_setschedparam=no
36636fi
ac1cb8d3
VS
36637rm -f conftest.err conftest.$ac_objext \
36638 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36639fi
36640echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
36641echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
36642if test $ac_cv_func_pthread_attr_setschedparam = yes; then
36643 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
36644echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
36645if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
36646 echo $ECHO_N "(cached) $ECHO_C" >&6
36647else
36648 cat >conftest.$ac_ext <<_ACEOF
36649/* confdefs.h. */
36650_ACEOF
36651cat confdefs.h >>conftest.$ac_ext
36652cat >>conftest.$ac_ext <<_ACEOF
36653/* end confdefs.h. */
ac1cb8d3
VS
36654/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
36655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36656#define sched_get_priority_max innocuous_sched_get_priority_max
36657
a848cd7e
SC
36658/* System header to define __stub macros and hopefully few prototypes,
36659 which can conflict with char sched_get_priority_max (); below.
36660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36661 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36662
a848cd7e
SC
36663#ifdef __STDC__
36664# include <limits.h>
36665#else
36666# include <assert.h>
36667#endif
ac1cb8d3
VS
36668
36669#undef sched_get_priority_max
36670
a848cd7e
SC
36671/* Override any gcc2 internal prototype to avoid an error. */
36672#ifdef __cplusplus
36673extern "C"
36674{
36675#endif
36676/* We use char because int might match the return type of a gcc2
36677 builtin and then its argument prototype would still apply. */
36678char sched_get_priority_max ();
36679/* The GNU C library defines this for functions which it implements
36680 to always fail with ENOSYS. Some functions are actually named
36681 something starting with __ and the normal name is an alias. */
36682#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
36683choke me
36684#else
36685char (*f) () = sched_get_priority_max;
36686#endif
36687#ifdef __cplusplus
36688}
36689#endif
36690
36691int
36692main ()
36693{
36694return f != sched_get_priority_max;
36695 ;
36696 return 0;
36697}
36698_ACEOF
36699rm -f conftest.$ac_objext conftest$ac_exeext
36700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36701 (eval $ac_link) 2>conftest.er1
a848cd7e 36702 ac_status=$?
ac1cb8d3
VS
36703 grep -v '^ *+' conftest.er1 >conftest.err
36704 rm -f conftest.er1
36705 cat conftest.err >&5
a848cd7e
SC
36706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707 (exit $ac_status); } &&
6ebeb4c7 36708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36710 (eval $ac_try) 2>&5
36711 ac_status=$?
36712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713 (exit $ac_status); }; } &&
36714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36716 (eval $ac_try) 2>&5
36717 ac_status=$?
36718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36719 (exit $ac_status); }; }; then
36720 ac_cv_func_sched_get_priority_max=yes
36721else
36722 echo "$as_me: failed program was:" >&5
36723sed 's/^/| /' conftest.$ac_ext >&5
36724
36725ac_cv_func_sched_get_priority_max=no
36726fi
ac1cb8d3
VS
36727rm -f conftest.err conftest.$ac_objext \
36728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36729fi
36730echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
36731echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
36732if test $ac_cv_func_sched_get_priority_max = yes; then
36733 HAVE_PRIOR_FUNCS=1
36734else
36735 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
36736echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
36737if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
36738 echo $ECHO_N "(cached) $ECHO_C" >&6
36739else
36740 ac_check_lib_save_LIBS=$LIBS
36741LIBS="-lposix4 $LIBS"
36742cat >conftest.$ac_ext <<_ACEOF
36743/* confdefs.h. */
36744_ACEOF
36745cat confdefs.h >>conftest.$ac_ext
36746cat >>conftest.$ac_ext <<_ACEOF
36747/* end confdefs.h. */
36748
36749/* Override any gcc2 internal prototype to avoid an error. */
36750#ifdef __cplusplus
36751extern "C"
36752#endif
36753/* We use char because int might match the return type of a gcc2
36754 builtin and then its argument prototype would still apply. */
36755char sched_get_priority_max ();
36756int
36757main ()
36758{
36759sched_get_priority_max ();
36760 ;
36761 return 0;
36762}
36763_ACEOF
36764rm -f conftest.$ac_objext conftest$ac_exeext
36765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36766 (eval $ac_link) 2>conftest.er1
a848cd7e 36767 ac_status=$?
ac1cb8d3
VS
36768 grep -v '^ *+' conftest.er1 >conftest.err
36769 rm -f conftest.er1
36770 cat conftest.err >&5
a848cd7e
SC
36771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36772 (exit $ac_status); } &&
6ebeb4c7 36773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36775 (eval $ac_try) 2>&5
36776 ac_status=$?
36777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36778 (exit $ac_status); }; } &&
36779 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36781 (eval $ac_try) 2>&5
36782 ac_status=$?
36783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36784 (exit $ac_status); }; }; then
36785 ac_cv_lib_posix4_sched_get_priority_max=yes
36786else
36787 echo "$as_me: failed program was:" >&5
36788sed 's/^/| /' conftest.$ac_ext >&5
36789
36790ac_cv_lib_posix4_sched_get_priority_max=no
36791fi
ac1cb8d3
VS
36792rm -f conftest.err conftest.$ac_objext \
36793 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36794LIBS=$ac_check_lib_save_LIBS
36795fi
36796echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
36797echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
36798if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
36799
36800 HAVE_PRIOR_FUNCS=1
36801 POSIX4_LINK=" -lposix4"
36802
36803fi
36804
36805
36806fi
36807
36808
36809fi
36810
36811
36812fi
36813
36814
36815 if test "$HAVE_PRIOR_FUNCS" = 1; then
36816 cat >>confdefs.h <<\_ACEOF
36817#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
36818_ACEOF
36819
36820 else
36821 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
36822echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
36823 fi
36824
36825 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
36826echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
36827if test "${ac_cv_func_pthread_cancel+set}" = set; then
36828 echo $ECHO_N "(cached) $ECHO_C" >&6
36829else
36830 cat >conftest.$ac_ext <<_ACEOF
36831/* confdefs.h. */
36832_ACEOF
36833cat confdefs.h >>conftest.$ac_ext
36834cat >>conftest.$ac_ext <<_ACEOF
36835/* end confdefs.h. */
ac1cb8d3
VS
36836/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
36837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36838#define pthread_cancel innocuous_pthread_cancel
36839
a848cd7e
SC
36840/* System header to define __stub macros and hopefully few prototypes,
36841 which can conflict with char pthread_cancel (); below.
36842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36843 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36844
a848cd7e
SC
36845#ifdef __STDC__
36846# include <limits.h>
36847#else
36848# include <assert.h>
36849#endif
ac1cb8d3
VS
36850
36851#undef pthread_cancel
36852
a848cd7e
SC
36853/* Override any gcc2 internal prototype to avoid an error. */
36854#ifdef __cplusplus
36855extern "C"
36856{
36857#endif
36858/* We use char because int might match the return type of a gcc2
36859 builtin and then its argument prototype would still apply. */
36860char pthread_cancel ();
36861/* The GNU C library defines this for functions which it implements
36862 to always fail with ENOSYS. Some functions are actually named
36863 something starting with __ and the normal name is an alias. */
36864#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
36865choke me
36866#else
36867char (*f) () = pthread_cancel;
36868#endif
36869#ifdef __cplusplus
36870}
36871#endif
36872
36873int
36874main ()
36875{
36876return f != pthread_cancel;
36877 ;
36878 return 0;
36879}
36880_ACEOF
36881rm -f conftest.$ac_objext conftest$ac_exeext
36882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36883 (eval $ac_link) 2>conftest.er1
a848cd7e 36884 ac_status=$?
ac1cb8d3
VS
36885 grep -v '^ *+' conftest.er1 >conftest.err
36886 rm -f conftest.er1
36887 cat conftest.err >&5
a848cd7e
SC
36888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36889 (exit $ac_status); } &&
6ebeb4c7 36890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36892 (eval $ac_try) 2>&5
36893 ac_status=$?
36894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36895 (exit $ac_status); }; } &&
36896 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36898 (eval $ac_try) 2>&5
36899 ac_status=$?
36900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36901 (exit $ac_status); }; }; then
36902 ac_cv_func_pthread_cancel=yes
36903else
36904 echo "$as_me: failed program was:" >&5
36905sed 's/^/| /' conftest.$ac_ext >&5
36906
36907ac_cv_func_pthread_cancel=no
36908fi
ac1cb8d3
VS
36909rm -f conftest.err conftest.$ac_objext \
36910 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36911fi
36912echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
36913echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
36914if test $ac_cv_func_pthread_cancel = yes; then
36915 cat >>confdefs.h <<\_ACEOF
36916#define HAVE_PTHREAD_CANCEL 1
36917_ACEOF
36918
36919else
36920 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
36921echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
36922fi
36923
36924
abc736fd
MW
36925 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
36926echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
36927if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
36928 echo $ECHO_N "(cached) $ECHO_C" >&6
36929else
36930 cat >conftest.$ac_ext <<_ACEOF
36931/* confdefs.h. */
36932_ACEOF
36933cat confdefs.h >>conftest.$ac_ext
36934cat >>conftest.$ac_ext <<_ACEOF
36935/* end confdefs.h. */
36936/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
36937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36938#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
36939
36940/* System header to define __stub macros and hopefully few prototypes,
36941 which can conflict with char pthread_attr_setstacksize (); below.
36942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36943 <limits.h> exists even on freestanding compilers. */
36944
36945#ifdef __STDC__
36946# include <limits.h>
36947#else
36948# include <assert.h>
36949#endif
36950
36951#undef pthread_attr_setstacksize
36952
36953/* Override any gcc2 internal prototype to avoid an error. */
36954#ifdef __cplusplus
36955extern "C"
36956{
36957#endif
36958/* We use char because int might match the return type of a gcc2
36959 builtin and then its argument prototype would still apply. */
36960char pthread_attr_setstacksize ();
36961/* The GNU C library defines this for functions which it implements
36962 to always fail with ENOSYS. Some functions are actually named
36963 something starting with __ and the normal name is an alias. */
36964#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
36965choke me
36966#else
36967char (*f) () = pthread_attr_setstacksize;
36968#endif
36969#ifdef __cplusplus
36970}
36971#endif
36972
36973int
36974main ()
36975{
36976return f != pthread_attr_setstacksize;
36977 ;
36978 return 0;
36979}
36980_ACEOF
36981rm -f conftest.$ac_objext conftest$ac_exeext
36982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36983 (eval $ac_link) 2>conftest.er1
36984 ac_status=$?
36985 grep -v '^ *+' conftest.er1 >conftest.err
36986 rm -f conftest.er1
36987 cat conftest.err >&5
36988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36989 (exit $ac_status); } &&
6ebeb4c7 36990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
36991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36992 (eval $ac_try) 2>&5
36993 ac_status=$?
36994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36995 (exit $ac_status); }; } &&
36996 { ac_try='test -s conftest$ac_exeext'
36997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36998 (eval $ac_try) 2>&5
36999 ac_status=$?
37000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37001 (exit $ac_status); }; }; then
37002 ac_cv_func_pthread_attr_setstacksize=yes
37003else
37004 echo "$as_me: failed program was:" >&5
37005sed 's/^/| /' conftest.$ac_ext >&5
37006
37007ac_cv_func_pthread_attr_setstacksize=no
37008fi
37009rm -f conftest.err conftest.$ac_objext \
37010 conftest$ac_exeext conftest.$ac_ext
37011fi
37012echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
37013echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
37014if test $ac_cv_func_pthread_attr_setstacksize = yes; then
37015 cat >>confdefs.h <<\_ACEOF
37016#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
37017_ACEOF
37018
37019fi
37020
a848cd7e
SC
37021
37022
37023 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
37024echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
37025if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
37026 echo $ECHO_N "(cached) $ECHO_C" >&6
37027else
37028
37029 cat >conftest.$ac_ext <<_ACEOF
37030/* confdefs.h. */
37031_ACEOF
37032cat confdefs.h >>conftest.$ac_ext
37033cat >>conftest.$ac_ext <<_ACEOF
37034/* end confdefs.h. */
37035#include <pthread.h>
37036int
37037main ()
37038{
37039
37040 pthread_mutexattr_t attr;
37041 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37042
37043 ;
37044 return 0;
37045}
37046_ACEOF
37047rm -f conftest.$ac_objext
37048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37049 (eval $ac_compile) 2>conftest.er1
a848cd7e 37050 ac_status=$?
ac1cb8d3
VS
37051 grep -v '^ *+' conftest.er1 >conftest.err
37052 rm -f conftest.er1
37053 cat conftest.err >&5
a848cd7e
SC
37054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37055 (exit $ac_status); } &&
6ebeb4c7 37056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37058 (eval $ac_try) 2>&5
37059 ac_status=$?
37060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37061 (exit $ac_status); }; } &&
37062 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37064 (eval $ac_try) 2>&5
37065 ac_status=$?
37066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37067 (exit $ac_status); }; }; then
37068
37069 wx_cv_type_pthread_mutexattr_t=yes
37070
37071else
37072 echo "$as_me: failed program was:" >&5
37073sed 's/^/| /' conftest.$ac_ext >&5
37074
37075
37076 wx_cv_type_pthread_mutexattr_t=no
37077
37078
37079fi
ac1cb8d3 37080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37081
37082fi
37083echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
37084echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
37085
37086 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
37087 cat >>confdefs.h <<\_ACEOF
37088#define HAVE_PTHREAD_MUTEXATTR_T 1
37089_ACEOF
37090
37091 else
37092 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
37093echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
37094if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
37095 echo $ECHO_N "(cached) $ECHO_C" >&6
37096else
37097
37098 cat >conftest.$ac_ext <<_ACEOF
37099/* confdefs.h. */
37100_ACEOF
37101cat confdefs.h >>conftest.$ac_ext
37102cat >>conftest.$ac_ext <<_ACEOF
37103/* end confdefs.h. */
37104#include <pthread.h>
37105int
37106main ()
37107{
37108
37109 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
37110
37111 ;
37112 return 0;
37113}
37114_ACEOF
37115rm -f conftest.$ac_objext
37116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37117 (eval $ac_compile) 2>conftest.er1
a848cd7e 37118 ac_status=$?
ac1cb8d3
VS
37119 grep -v '^ *+' conftest.er1 >conftest.err
37120 rm -f conftest.er1
37121 cat conftest.err >&5
a848cd7e
SC
37122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37123 (exit $ac_status); } &&
6ebeb4c7 37124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37126 (eval $ac_try) 2>&5
37127 ac_status=$?
37128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37129 (exit $ac_status); }; } &&
37130 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37132 (eval $ac_try) 2>&5
37133 ac_status=$?
37134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37135 (exit $ac_status); }; }; then
37136
37137 wx_cv_type_pthread_rec_mutex_init=yes
37138
37139else
37140 echo "$as_me: failed program was:" >&5
37141sed 's/^/| /' conftest.$ac_ext >&5
37142
37143
37144 wx_cv_type_pthread_rec_mutex_init=no
37145
37146
37147fi
ac1cb8d3 37148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37149
37150fi
37151echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
37152echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
37153 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
37154 cat >>confdefs.h <<\_ACEOF
37155#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
37156_ACEOF
37157
37158 else
37159 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
37160echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
37161 fi
37162 fi
37163 fi
37164
37165else
37166 if test "$wxUSE_THREADS" = "yes" ; then
37167 case "${host}" in
37168 *-*-mingw32* )
37169 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
37170echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
37171if test "${wx_cv_cflags_mthread+set}" = set; then
37172 echo $ECHO_N "(cached) $ECHO_C" >&6
37173else
37174
37175 CFLAGS_OLD="$CFLAGS"
37176 CFLAGS="$CFLAGS -mthreads"
37177 cat >conftest.$ac_ext <<_ACEOF
37178/* confdefs.h. */
37179_ACEOF
37180cat confdefs.h >>conftest.$ac_ext
37181cat >>conftest.$ac_ext <<_ACEOF
37182/* end confdefs.h. */
37183
37184int
37185main ()
37186{
37187
37188 ;
37189 return 0;
37190}
37191_ACEOF
37192rm -f conftest.$ac_objext
37193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37194 (eval $ac_compile) 2>conftest.er1
a848cd7e 37195 ac_status=$?
ac1cb8d3
VS
37196 grep -v '^ *+' conftest.er1 >conftest.err
37197 rm -f conftest.er1
37198 cat conftest.err >&5
a848cd7e
SC
37199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200 (exit $ac_status); } &&
6ebeb4c7 37201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37203 (eval $ac_try) 2>&5
37204 ac_status=$?
37205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206 (exit $ac_status); }; } &&
37207 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37209 (eval $ac_try) 2>&5
37210 ac_status=$?
37211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37212 (exit $ac_status); }; }; then
37213 wx_cv_cflags_mthread=yes
37214else
37215 echo "$as_me: failed program was:" >&5
37216sed 's/^/| /' conftest.$ac_ext >&5
37217
37218wx_cv_cflags_mthread=no
37219
37220fi
ac1cb8d3 37221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37222
37223
37224fi
37225echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
37226echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
37227
37228 if test "$wx_cv_cflags_mthread" = "yes"; then
37229 CXXFLAGS="$CXXFLAGS -mthreads"
37230 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
37231 LDFLAGS="$LDFLAGS -mthreads"
37232 else
37233 CFLAGS="$CFLAGS_OLD"
37234 fi
37235 ;;
37236 *-pc-os2*emx )
37237 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
37238 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
37239 LDFLAGS="$LDFLAGS -Zmt"
37240 ;;
37241 esac
37242 fi
37243fi
37244
37245if test "$wxUSE_THREADS" = "yes"; then
37246 cat >>confdefs.h <<\_ACEOF
37247#define wxUSE_THREADS 1
37248_ACEOF
37249
37250
37251 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
37252else
37253 if test "$ac_cv_func_strtok_r" = "yes"; then
37254 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
37255echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
37256 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
37257 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
37258 echo "$as_me:$LINENO: result: yes" >&5
37259echo "${ECHO_T}yes" >&6
37260 else
37261 echo "$as_me:$LINENO: result: no" >&5
37262echo "${ECHO_T}no" >&6
37263 fi
37264 fi
37265fi
37266
37267if test "$WXGTK20" = 1 ; then
37268 cat >>confdefs.h <<_ACEOF
37269#define __WXGTK20__ $WXGTK20
37270_ACEOF
37271
37272 WXGTK12=1
37273fi
37274
37275if test "$WXGTK12" = 1 ; then
37276 cat >>confdefs.h <<_ACEOF
37277#define __WXGTK12__ $WXGTK12
37278_ACEOF
37279
37280fi
37281
37282if test "$WXGTK127" = 1 ; then
37283 cat >>confdefs.h <<_ACEOF
37284#define __WXGTK127__ $WXGTK127
37285_ACEOF
37286
37287fi
37288
37289if test "$WXGPE" = 1 ; then
37290 cat >>confdefs.h <<_ACEOF
37291#define __WXGPE__ $WXGPE
37292_ACEOF
37293
37294fi
37295
37296WXDEBUG=
37297
37298if test "$wxUSE_DEBUG_INFO" = "yes" ; then
37299 WXDEBUG="-g"
37300 wxUSE_OPTIMISE=no
37301fi
37302
37303if test "$wxUSE_DEBUG_GDB" = "yes" ; then
37304 wxUSE_DEBUG_INFO=yes
18228ab4
MW
37305 if test "$GCC" = yes; then
37306 WXDEBUG="-ggdb"
37307 fi
a848cd7e
SC
37308fi
37309
37310if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
37311 cat >>confdefs.h <<\_ACEOF
37312#define WXDEBUG 1
37313_ACEOF
37314
37315 WXDEBUG_DEFINE="-D__WXDEBUG__"
37316else
37317 if test "$wxUSE_GTK" = 1 ; then
37318 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
37319 fi
37320fi
37321
37322if test "$wxUSE_MEM_TRACING" = "yes" ; then
37323 cat >>confdefs.h <<\_ACEOF
37324#define wxUSE_MEMORY_TRACING 1
37325_ACEOF
37326
37327 cat >>confdefs.h <<\_ACEOF
37328#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
37329_ACEOF
37330
37331 cat >>confdefs.h <<\_ACEOF
37332#define wxUSE_DEBUG_NEW_ALWAYS 1
37333_ACEOF
37334
37335 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
37336fi
37337
37338if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 37339 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
37340fi
37341
37342PROFILE=
37343if test "$wxUSE_PROFILE" = "yes" ; then
37344 PROFILE=" -pg"
37345fi
37346
37347CODE_GEN_FLAGS=
37348CODE_GEN_FLAGS_CXX=
37349if test "$GCC" = "yes" ; then
37350 if test "$wxUSE_NO_RTTI" = "yes" ; then
37351 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
37352 fi
37353 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37354 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
37355 fi
37356 if test "$wxUSE_PERMISSIVE" = "yes" ; then
37357 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
37358 fi
37359
37360 case "${host}" in
37361 powerpc*-*-aix* )
37362 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
37363 ;;
37364 *-hppa* )
37365 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
37366 ;;
37367 esac
37368fi
37369
37370OPTIMISE=
37371if test "$wxUSE_OPTIMISE" = "no" ; then
37372 if test "$GCC" = yes ; then
37373 OPTIMISE="-O0"
37374 fi
37375else
37376 if test "$GCC" = yes ; then
37377 OPTIMISE="-O2"
37378
37379 case "${host}" in
37380 i586-*-*|i686-*-* )
37381 OPTIMISE="${OPTIMISE} "
37382 ;;
37383 esac
37384 else
37385 OPTIMISE="-O"
37386 fi
37387fi
37388
37389
37390if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
37391 cat >>confdefs.h <<\_ACEOF
37392#define WXWIN_COMPATIBILITY_2_2 1
37393_ACEOF
37394
37395
37396 WXWIN_COMPATIBILITY_2_4="yes"
37397fi
37398
37399if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
37400 cat >>confdefs.h <<\_ACEOF
37401#define WXWIN_COMPATIBILITY_2_4 1
37402_ACEOF
37403
37404fi
37405
37406
37407if test "$wxUSE_GUI" = "yes"; then
881bfcd6 37408 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37409#define wxUSE_GUI 1
37410_ACEOF
37411
37412
370fd4c2 37413 fi
a848cd7e
SC
37414
37415
37416if test "$wxUSE_UNIX" = "yes"; then
37417 cat >>confdefs.h <<\_ACEOF
37418#define wxUSE_UNIX 1
37419_ACEOF
37420
37421fi
37422
37423
37424if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37425
37426 HAVE_DL_FUNCS=0
37427 HAVE_SHL_FUNCS=0
37428 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
37429 if test "$USE_DARWIN" = 1; then
37430 HAVE_DL_FUNCS=1
47a7e797
MW
37431 elif test "$USE_DOS" = 1; then
37432 HAVE_DL_FUNCS=0
a848cd7e
SC
37433 else
37434
37435for ac_func in dlopen
37436do
37437as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37438echo "$as_me:$LINENO: checking for $ac_func" >&5
37439echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37440if eval "test \"\${$as_ac_var+set}\" = set"; then
37441 echo $ECHO_N "(cached) $ECHO_C" >&6
37442else
37443 cat >conftest.$ac_ext <<_ACEOF
37444/* confdefs.h. */
37445_ACEOF
37446cat confdefs.h >>conftest.$ac_ext
37447cat >>conftest.$ac_ext <<_ACEOF
37448/* end confdefs.h. */
ac1cb8d3
VS
37449/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37451#define $ac_func innocuous_$ac_func
37452
a848cd7e
SC
37453/* System header to define __stub macros and hopefully few prototypes,
37454 which can conflict with char $ac_func (); below.
37455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37456 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37457
a848cd7e
SC
37458#ifdef __STDC__
37459# include <limits.h>
37460#else
37461# include <assert.h>
37462#endif
ac1cb8d3
VS
37463
37464#undef $ac_func
37465
a848cd7e
SC
37466/* Override any gcc2 internal prototype to avoid an error. */
37467#ifdef __cplusplus
37468extern "C"
37469{
37470#endif
37471/* We use char because int might match the return type of a gcc2
37472 builtin and then its argument prototype would still apply. */
37473char $ac_func ();
37474/* The GNU C library defines this for functions which it implements
37475 to always fail with ENOSYS. Some functions are actually named
37476 something starting with __ and the normal name is an alias. */
37477#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37478choke me
37479#else
37480char (*f) () = $ac_func;
37481#endif
37482#ifdef __cplusplus
37483}
37484#endif
37485
37486int
37487main ()
37488{
37489return f != $ac_func;
37490 ;
37491 return 0;
37492}
37493_ACEOF
37494rm -f conftest.$ac_objext conftest$ac_exeext
37495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37496 (eval $ac_link) 2>conftest.er1
a848cd7e 37497 ac_status=$?
ac1cb8d3
VS
37498 grep -v '^ *+' conftest.er1 >conftest.err
37499 rm -f conftest.er1
37500 cat conftest.err >&5
a848cd7e
SC
37501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37502 (exit $ac_status); } &&
6ebeb4c7 37503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37505 (eval $ac_try) 2>&5
37506 ac_status=$?
37507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37508 (exit $ac_status); }; } &&
37509 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37511 (eval $ac_try) 2>&5
37512 ac_status=$?
37513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37514 (exit $ac_status); }; }; then
37515 eval "$as_ac_var=yes"
37516else
37517 echo "$as_me: failed program was:" >&5
37518sed 's/^/| /' conftest.$ac_ext >&5
37519
37520eval "$as_ac_var=no"
37521fi
ac1cb8d3
VS
37522rm -f conftest.err conftest.$ac_objext \
37523 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37524fi
37525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37526echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37527if test `eval echo '${'$as_ac_var'}'` = yes; then
37528 cat >>confdefs.h <<_ACEOF
37529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37530_ACEOF
37531
37532 cat >>confdefs.h <<\_ACEOF
37533#define HAVE_DLOPEN 1
37534_ACEOF
37535
37536 HAVE_DL_FUNCS=1
37537
37538else
37539
37540 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
37541echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
37542if test "${ac_cv_lib_dl_dlopen+set}" = set; then
37543 echo $ECHO_N "(cached) $ECHO_C" >&6
37544else
37545 ac_check_lib_save_LIBS=$LIBS
37546LIBS="-ldl $LIBS"
37547cat >conftest.$ac_ext <<_ACEOF
37548/* confdefs.h. */
37549_ACEOF
37550cat confdefs.h >>conftest.$ac_ext
37551cat >>conftest.$ac_ext <<_ACEOF
37552/* end confdefs.h. */
37553
37554/* Override any gcc2 internal prototype to avoid an error. */
37555#ifdef __cplusplus
37556extern "C"
37557#endif
37558/* We use char because int might match the return type of a gcc2
37559 builtin and then its argument prototype would still apply. */
37560char dlopen ();
37561int
37562main ()
37563{
37564dlopen ();
37565 ;
37566 return 0;
37567}
37568_ACEOF
37569rm -f conftest.$ac_objext conftest$ac_exeext
37570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37571 (eval $ac_link) 2>conftest.er1
a848cd7e 37572 ac_status=$?
ac1cb8d3
VS
37573 grep -v '^ *+' conftest.er1 >conftest.err
37574 rm -f conftest.er1
37575 cat conftest.err >&5
a848cd7e
SC
37576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37577 (exit $ac_status); } &&
6ebeb4c7 37578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37580 (eval $ac_try) 2>&5
37581 ac_status=$?
37582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37583 (exit $ac_status); }; } &&
37584 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37586 (eval $ac_try) 2>&5
37587 ac_status=$?
37588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37589 (exit $ac_status); }; }; then
37590 ac_cv_lib_dl_dlopen=yes
37591else
37592 echo "$as_me: failed program was:" >&5
37593sed 's/^/| /' conftest.$ac_ext >&5
37594
37595ac_cv_lib_dl_dlopen=no
37596fi
ac1cb8d3
VS
37597rm -f conftest.err conftest.$ac_objext \
37598 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37599LIBS=$ac_check_lib_save_LIBS
37600fi
37601echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
37602echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
37603if test $ac_cv_lib_dl_dlopen = yes; then
37604
37605 cat >>confdefs.h <<\_ACEOF
37606#define HAVE_DLOPEN 1
37607_ACEOF
37608
37609 HAVE_DL_FUNCS=1
37610 DL_LINK=" -ldl$DL_LINK"
37611
37612else
37613
37614
37615for ac_func in shl_load
37616do
37617as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37618echo "$as_me:$LINENO: checking for $ac_func" >&5
37619echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37620if eval "test \"\${$as_ac_var+set}\" = set"; then
37621 echo $ECHO_N "(cached) $ECHO_C" >&6
37622else
37623 cat >conftest.$ac_ext <<_ACEOF
37624/* confdefs.h. */
37625_ACEOF
37626cat confdefs.h >>conftest.$ac_ext
37627cat >>conftest.$ac_ext <<_ACEOF
37628/* end confdefs.h. */
ac1cb8d3
VS
37629/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37631#define $ac_func innocuous_$ac_func
37632
a848cd7e
SC
37633/* System header to define __stub macros and hopefully few prototypes,
37634 which can conflict with char $ac_func (); below.
37635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37636 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37637
a848cd7e
SC
37638#ifdef __STDC__
37639# include <limits.h>
37640#else
37641# include <assert.h>
37642#endif
ac1cb8d3
VS
37643
37644#undef $ac_func
37645
a848cd7e
SC
37646/* Override any gcc2 internal prototype to avoid an error. */
37647#ifdef __cplusplus
37648extern "C"
37649{
37650#endif
37651/* We use char because int might match the return type of a gcc2
37652 builtin and then its argument prototype would still apply. */
37653char $ac_func ();
37654/* The GNU C library defines this for functions which it implements
37655 to always fail with ENOSYS. Some functions are actually named
37656 something starting with __ and the normal name is an alias. */
37657#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37658choke me
37659#else
37660char (*f) () = $ac_func;
37661#endif
37662#ifdef __cplusplus
37663}
37664#endif
37665
37666int
37667main ()
37668{
37669return f != $ac_func;
37670 ;
37671 return 0;
37672}
37673_ACEOF
37674rm -f conftest.$ac_objext conftest$ac_exeext
37675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37676 (eval $ac_link) 2>conftest.er1
a848cd7e 37677 ac_status=$?
ac1cb8d3
VS
37678 grep -v '^ *+' conftest.er1 >conftest.err
37679 rm -f conftest.er1
37680 cat conftest.err >&5
a848cd7e
SC
37681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37682 (exit $ac_status); } &&
6ebeb4c7 37683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37685 (eval $ac_try) 2>&5
37686 ac_status=$?
37687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37688 (exit $ac_status); }; } &&
37689 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37691 (eval $ac_try) 2>&5
37692 ac_status=$?
37693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37694 (exit $ac_status); }; }; then
37695 eval "$as_ac_var=yes"
37696else
37697 echo "$as_me: failed program was:" >&5
37698sed 's/^/| /' conftest.$ac_ext >&5
37699
37700eval "$as_ac_var=no"
37701fi
ac1cb8d3
VS
37702rm -f conftest.err conftest.$ac_objext \
37703 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37704fi
37705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37706echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37707if test `eval echo '${'$as_ac_var'}'` = yes; then
37708 cat >>confdefs.h <<_ACEOF
37709#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37710_ACEOF
37711
37712 cat >>confdefs.h <<\_ACEOF
37713#define HAVE_SHL_LOAD 1
37714_ACEOF
37715
37716 HAVE_SHL_FUNCS=1
37717
37718else
37719
37720 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
37721echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
37722if test "${ac_cv_lib_shl_load_dld+set}" = set; then
37723 echo $ECHO_N "(cached) $ECHO_C" >&6
37724else
37725 ac_check_lib_save_LIBS=$LIBS
37726LIBS="-lshl_load $LIBS"
37727cat >conftest.$ac_ext <<_ACEOF
37728/* confdefs.h. */
37729_ACEOF
37730cat confdefs.h >>conftest.$ac_ext
37731cat >>conftest.$ac_ext <<_ACEOF
37732/* end confdefs.h. */
37733
37734/* Override any gcc2 internal prototype to avoid an error. */
37735#ifdef __cplusplus
37736extern "C"
37737#endif
37738/* We use char because int might match the return type of a gcc2
37739 builtin and then its argument prototype would still apply. */
37740char dld ();
37741int
37742main ()
37743{
37744dld ();
37745 ;
37746 return 0;
37747}
37748_ACEOF
37749rm -f conftest.$ac_objext conftest$ac_exeext
37750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37751 (eval $ac_link) 2>conftest.er1
a848cd7e 37752 ac_status=$?
ac1cb8d3
VS
37753 grep -v '^ *+' conftest.er1 >conftest.err
37754 rm -f conftest.er1
37755 cat conftest.err >&5
a848cd7e
SC
37756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37757 (exit $ac_status); } &&
6ebeb4c7 37758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37760 (eval $ac_try) 2>&5
37761 ac_status=$?
37762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37763 (exit $ac_status); }; } &&
37764 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37766 (eval $ac_try) 2>&5
37767 ac_status=$?
37768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37769 (exit $ac_status); }; }; then
37770 ac_cv_lib_shl_load_dld=yes
37771else
37772 echo "$as_me: failed program was:" >&5
37773sed 's/^/| /' conftest.$ac_ext >&5
37774
37775ac_cv_lib_shl_load_dld=no
37776fi
ac1cb8d3
VS
37777rm -f conftest.err conftest.$ac_objext \
37778 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37779LIBS=$ac_check_lib_save_LIBS
37780fi
37781echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
37782echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
37783if test $ac_cv_lib_shl_load_dld = yes; then
37784
37785 HAVE_SHL_FUNCS=1
37786 DL_LINK=" -ldld$DL_LINK"
37787
37788fi
37789
37790
37791fi
37792done
37793
37794
37795fi
37796
37797
37798fi
37799done
37800
37801
37802 if test "$HAVE_DL_FUNCS" = 1; then
37803
37804for ac_func in dlerror
37805do
37806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37807echo "$as_me:$LINENO: checking for $ac_func" >&5
37808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37809if eval "test \"\${$as_ac_var+set}\" = set"; then
37810 echo $ECHO_N "(cached) $ECHO_C" >&6
37811else
37812 cat >conftest.$ac_ext <<_ACEOF
37813/* confdefs.h. */
37814_ACEOF
37815cat confdefs.h >>conftest.$ac_ext
37816cat >>conftest.$ac_ext <<_ACEOF
37817/* end confdefs.h. */
ac1cb8d3
VS
37818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37820#define $ac_func innocuous_$ac_func
37821
a848cd7e
SC
37822/* System header to define __stub macros and hopefully few prototypes,
37823 which can conflict with char $ac_func (); below.
37824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37825 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37826
a848cd7e
SC
37827#ifdef __STDC__
37828# include <limits.h>
37829#else
37830# include <assert.h>
37831#endif
ac1cb8d3
VS
37832
37833#undef $ac_func
37834
a848cd7e
SC
37835/* Override any gcc2 internal prototype to avoid an error. */
37836#ifdef __cplusplus
37837extern "C"
37838{
37839#endif
37840/* We use char because int might match the return type of a gcc2
37841 builtin and then its argument prototype would still apply. */
37842char $ac_func ();
37843/* The GNU C library defines this for functions which it implements
37844 to always fail with ENOSYS. Some functions are actually named
37845 something starting with __ and the normal name is an alias. */
37846#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37847choke me
37848#else
37849char (*f) () = $ac_func;
37850#endif
37851#ifdef __cplusplus
37852}
37853#endif
37854
37855int
37856main ()
37857{
37858return f != $ac_func;
37859 ;
37860 return 0;
37861}
37862_ACEOF
37863rm -f conftest.$ac_objext conftest$ac_exeext
37864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37865 (eval $ac_link) 2>conftest.er1
a848cd7e 37866 ac_status=$?
ac1cb8d3
VS
37867 grep -v '^ *+' conftest.er1 >conftest.err
37868 rm -f conftest.er1
37869 cat conftest.err >&5
a848cd7e
SC
37870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37871 (exit $ac_status); } &&
6ebeb4c7 37872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37874 (eval $ac_try) 2>&5
37875 ac_status=$?
37876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37877 (exit $ac_status); }; } &&
37878 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37880 (eval $ac_try) 2>&5
37881 ac_status=$?
37882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37883 (exit $ac_status); }; }; then
37884 eval "$as_ac_var=yes"
37885else
37886 echo "$as_me: failed program was:" >&5
37887sed 's/^/| /' conftest.$ac_ext >&5
37888
37889eval "$as_ac_var=no"
37890fi
ac1cb8d3
VS
37891rm -f conftest.err conftest.$ac_objext \
37892 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37893fi
37894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37895echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37896if test `eval echo '${'$as_ac_var'}'` = yes; then
37897 cat >>confdefs.h <<_ACEOF
37898#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37899_ACEOF
37900 cat >>confdefs.h <<\_ACEOF
37901#define HAVE_DLERROR 1
37902_ACEOF
37903
37904else
37905
37906 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
37907echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
37908if test "${ac_cv_lib_dl_dlerror+set}" = set; then
37909 echo $ECHO_N "(cached) $ECHO_C" >&6
37910else
37911 ac_check_lib_save_LIBS=$LIBS
37912LIBS="-ldl $LIBS"
37913cat >conftest.$ac_ext <<_ACEOF
37914/* confdefs.h. */
37915_ACEOF
37916cat confdefs.h >>conftest.$ac_ext
37917cat >>conftest.$ac_ext <<_ACEOF
37918/* end confdefs.h. */
37919
37920/* Override any gcc2 internal prototype to avoid an error. */
37921#ifdef __cplusplus
37922extern "C"
37923#endif
37924/* We use char because int might match the return type of a gcc2
37925 builtin and then its argument prototype would still apply. */
37926char dlerror ();
37927int
37928main ()
37929{
37930dlerror ();
37931 ;
37932 return 0;
37933}
37934_ACEOF
37935rm -f conftest.$ac_objext conftest$ac_exeext
37936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37937 (eval $ac_link) 2>conftest.er1
a848cd7e 37938 ac_status=$?
ac1cb8d3
VS
37939 grep -v '^ *+' conftest.er1 >conftest.err
37940 rm -f conftest.er1
37941 cat conftest.err >&5
a848cd7e
SC
37942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943 (exit $ac_status); } &&
6ebeb4c7 37944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37946 (eval $ac_try) 2>&5
37947 ac_status=$?
37948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37949 (exit $ac_status); }; } &&
37950 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37952 (eval $ac_try) 2>&5
37953 ac_status=$?
37954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37955 (exit $ac_status); }; }; then
37956 ac_cv_lib_dl_dlerror=yes
37957else
37958 echo "$as_me: failed program was:" >&5
37959sed 's/^/| /' conftest.$ac_ext >&5
37960
37961ac_cv_lib_dl_dlerror=no
37962fi
ac1cb8d3
VS
37963rm -f conftest.err conftest.$ac_objext \
37964 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37965LIBS=$ac_check_lib_save_LIBS
37966fi
37967echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
37968echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
37969if test $ac_cv_lib_dl_dlerror = yes; then
37970 cat >>confdefs.h <<\_ACEOF
37971#define HAVE_DLERROR 1
37972_ACEOF
37973
37974fi
37975
37976
37977
37978fi
37979done
37980
37981 fi
37982 fi
37983
37984 if test "$HAVE_DL_FUNCS" = 0; then
37985 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 37986 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
37987 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
37988echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
37989 wxUSE_DYNAMIC_LOADER=no
37990 wxUSE_DYNLIB_CLASS=no
37991 else
37992 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
37993echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
37994 fi
37995 fi
37996 fi
37997 fi
37998fi
37999
38000if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
38001 cat >>confdefs.h <<\_ACEOF
38002#define wxUSE_DYNAMIC_LOADER 1
38003_ACEOF
38004
38005fi
38006if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38007 cat >>confdefs.h <<\_ACEOF
38008#define wxUSE_DYNLIB_CLASS 1
38009_ACEOF
38010
38011fi
38012
38013
38014
38015if test "$wxUSE_PLUGINS" = "yes" ; then
38016 if test "$wxUSE_SHARED" = "no" ; then
38017 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
38018echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
38019 wxUSE_PLUGINS=no
38020 fi
38021 if test "$wxUSE_MONOLITHIC" = "yes" ; then
38022 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
38023echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
38024 wxUSE_PLUGINS=no
38025 fi
38026 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
38027 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
38028echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
38029 wxUSE_PLUGINS=no
38030 fi
38031 if test "$wxUSE_PLUGINS" = "yes" ; then
38032 cat >>confdefs.h <<\_ACEOF
38033#define wxUSE_PLUGINS 1
38034_ACEOF
38035
38036 fi
38037fi
38038
38039
38040if test "$wxUSE_STL" = "yes"; then
38041 cat >>confdefs.h <<\_ACEOF
38042#define wxUSE_STL 1
38043_ACEOF
38044
38045fi
38046
38047if test "$wxUSE_APPLE_IEEE" = "yes"; then
38048 cat >>confdefs.h <<\_ACEOF
38049#define wxUSE_APPLE_IEEE 1
38050_ACEOF
38051
38052fi
38053
38054if test "$wxUSE_TIMER" = "yes"; then
38055 cat >>confdefs.h <<\_ACEOF
38056#define wxUSE_TIMER 1
38057_ACEOF
38058
38059fi
38060
9c112555 38061if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
38062 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
38063echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
38064if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 38065 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 38066else
d12aef51
VZ
38067
38068 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38069/* confdefs.h. */
38070_ACEOF
38071cat confdefs.h >>conftest.$ac_ext
38072cat >>conftest.$ac_ext <<_ACEOF
38073/* end confdefs.h. */
d12aef51
VZ
38074
38075 #include <sys/soundcard.h>
38076
38077int
38078main ()
38079{
38080
38081 ioctl(0, SNDCTL_DSP_SYNC, 0);
38082
38083 ;
38084 return 0;
38085}
a848cd7e 38086_ACEOF
d12aef51
VZ
38087rm -f conftest.$ac_objext conftest$ac_exeext
38088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38089 (eval $ac_link) 2>conftest.er1
a848cd7e 38090 ac_status=$?
ac1cb8d3
VS
38091 grep -v '^ *+' conftest.er1 >conftest.err
38092 rm -f conftest.er1
38093 cat conftest.err >&5
a848cd7e
SC
38094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38095 (exit $ac_status); } &&
6ebeb4c7 38096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38098 (eval $ac_try) 2>&5
38099 ac_status=$?
38100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38101 (exit $ac_status); }; } &&
d12aef51 38102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38104 (eval $ac_try) 2>&5
38105 ac_status=$?
38106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38107 (exit $ac_status); }; }; then
d12aef51 38108 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38109else
38110 echo "$as_me: failed program was:" >&5
38111sed 's/^/| /' conftest.$ac_ext >&5
38112
a848cd7e 38113
d12aef51
VZ
38114 saveLibs="$LIBS"
38115 LIBS="$saveLibs -lossaudio"
38116 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38117/* confdefs.h. */
38118_ACEOF
38119cat confdefs.h >>conftest.$ac_ext
38120cat >>conftest.$ac_ext <<_ACEOF
38121/* end confdefs.h. */
d12aef51
VZ
38122
38123 #include <sys/soundcard.h>
38124
38125int
38126main ()
38127{
38128
38129 ioctl(0, SNDCTL_DSP_SYNC, 0);
38130
38131 ;
38132 return 0;
38133}
a848cd7e 38134_ACEOF
d12aef51
VZ
38135rm -f conftest.$ac_objext conftest$ac_exeext
38136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38137 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
38138 ac_status=$?
38139 grep -v '^ *+' conftest.er1 >conftest.err
38140 rm -f conftest.er1
38141 cat conftest.err >&5
38142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51
VZ
38143 (exit $ac_status); } &&
38144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38146 (eval $ac_try) 2>&5
38147 ac_status=$?
38148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38149 (exit $ac_status); }; } &&
38150 { ac_try='test -s conftest$ac_exeext'
38151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38152 (eval $ac_try) 2>&5
38153 ac_status=$?
38154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155 (exit $ac_status); }; }; then
38156 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38157else
38158 echo "$as_me: failed program was:" >&5
38159sed 's/^/| /' conftest.$ac_ext >&5
38160
a848cd7e 38161
d12aef51
VZ
38162 LIBS="$saveLibs"
38163 ac_cv_header_sys_soundcard=no
38164
38165
a848cd7e 38166fi
d12aef51
VZ
38167rm -f conftest.err conftest.$ac_objext \
38168 conftest$ac_exeext conftest.$ac_ext
38169
a848cd7e
SC
38170
38171fi
d12aef51
VZ
38172rm -f conftest.err conftest.$ac_objext \
38173 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38174
38175fi
d12aef51
VZ
38176echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
38177echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 38178
d12aef51
VZ
38179 if test "$ac_cv_header_sys_soundcard" = "yes"; then
38180 cat >>confdefs.h <<\_ACEOF
38181#define HAVE_SYS_SOUNDCARD_H 1
38182_ACEOF
a848cd7e 38183
d12aef51
VZ
38184 else
38185 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
38186 fi
9c112555
MW
38187fi
38188WITH_PLUGIN_SDL=0
38189if test "$wxUSE_SOUND" = "yes"; then
38190 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
38191 if test "$wxUSE_LIBSDL" != "no"; then
38192
38193# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
38194if test "${with_sdl_prefix+set}" = set; then
38195 withval="$with_sdl_prefix"
38196 sdl_prefix="$withval"
38197else
38198 sdl_prefix=""
38199fi;
38200
38201# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
38202if test "${with_sdl_exec_prefix+set}" = set; then
38203 withval="$with_sdl_exec_prefix"
38204 sdl_exec_prefix="$withval"
38205else
38206 sdl_exec_prefix=""
38207fi;
38208# Check whether --enable-sdltest or --disable-sdltest was given.
38209if test "${enable_sdltest+set}" = set; then
38210 enableval="$enable_sdltest"
38211
38212else
38213 enable_sdltest=yes
38214fi;
38215
38216 if test x$sdl_exec_prefix != x ; then
38217 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
38218 if test x${SDL_CONFIG+set} != xset ; then
38219 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
38220 fi
38221 fi
38222 if test x$sdl_prefix != x ; then
38223 sdl_args="$sdl_args --prefix=$sdl_prefix"
38224 if test x${SDL_CONFIG+set} != xset ; then
38225 SDL_CONFIG=$sdl_prefix/bin/sdl-config
38226 fi
38227 fi
38228
38229
38230 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
38231 # Extract the first word of "sdl-config", so it can be a program name with args.
38232set dummy sdl-config; ac_word=$2
38233echo "$as_me:$LINENO: checking for $ac_word" >&5
38234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38235if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
38236 echo $ECHO_N "(cached) $ECHO_C" >&6
38237else
38238 case $SDL_CONFIG in
38239 [\\/]* | ?:[\\/]*)
38240 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
38241 ;;
38242 *)
38243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38244for as_dir in $PATH
38245do
38246 IFS=$as_save_IFS
38247 test -z "$as_dir" && as_dir=.
38248 for ac_exec_ext in '' $ac_executable_extensions; do
38249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38250 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38252 break 2
38253 fi
38254done
38255done
38256
38257 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
38258 ;;
38259esac
38260fi
38261SDL_CONFIG=$ac_cv_path_SDL_CONFIG
38262
38263if test -n "$SDL_CONFIG"; then
38264 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
38265echo "${ECHO_T}$SDL_CONFIG" >&6
38266else
38267 echo "$as_me:$LINENO: result: no" >&5
38268echo "${ECHO_T}no" >&6
38269fi
38270
38271 min_sdl_version=1.2.0
38272 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
38273echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
38274 no_sdl=""
38275 if test "$SDL_CONFIG" = "no" ; then
38276 no_sdl=yes
38277 else
38278 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
38279 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
38280
38281 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
38282 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38283 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
38284 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38285 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
38286 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38287 if test "x$enable_sdltest" = "xyes" ; then
38288 ac_save_CFLAGS="$CFLAGS"
94acd38e 38289 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
38290 ac_save_LIBS="$LIBS"
38291 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 38292 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
38293 LIBS="$LIBS $SDL_LIBS"
38294 rm -f conf.sdltest
38295 if test "$cross_compiling" = yes; then
38296 echo $ac_n "cross compiling; assumed OK... $ac_c"
38297else
38298 cat >conftest.$ac_ext <<_ACEOF
38299/* confdefs.h. */
38300_ACEOF
38301cat confdefs.h >>conftest.$ac_ext
38302cat >>conftest.$ac_ext <<_ACEOF
38303/* end confdefs.h. */
38304
38305#include <stdio.h>
38306#include <stdlib.h>
38307#include <string.h>
38308#include "SDL.h"
38309
38310char*
38311my_strdup (char *str)
38312{
38313 char *new_str;
38314
38315 if (str)
38316 {
38317 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
38318 strcpy (new_str, str);
38319 }
38320 else
38321 new_str = NULL;
38322
38323 return new_str;
38324}
38325
38326int main (int argc, char *argv[])
38327{
38328 int major, minor, micro;
38329 char *tmp_version;
38330
38331 /* This hangs on some systems (?)
38332 system ("touch conf.sdltest");
38333 */
38334 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
38335
38336 /* HP/UX 9 (%@#!) writes to sscanf strings */
38337 tmp_version = my_strdup("$min_sdl_version");
38338 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
38339 printf("%s, bad version string\n", "$min_sdl_version");
38340 exit(1);
38341 }
38342
38343 if (($sdl_major_version > major) ||
38344 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
38345 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
38346 {
38347 return 0;
38348 }
38349 else
38350 {
38351 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
38352 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
38353 printf("*** best to upgrade to the required version.\n");
38354 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
38355 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
38356 printf("*** config.cache before re-running configure\n");
38357 return 1;
38358 }
38359}
38360
38361
38362_ACEOF
38363rm -f conftest$ac_exeext
38364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38365 (eval $ac_link) 2>&5
38366 ac_status=$?
38367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38370 (eval $ac_try) 2>&5
38371 ac_status=$?
38372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373 (exit $ac_status); }; }; then
38374 :
38375else
38376 echo "$as_me: program exited with status $ac_status" >&5
38377echo "$as_me: failed program was:" >&5
38378sed 's/^/| /' conftest.$ac_ext >&5
38379
38380( exit $ac_status )
38381no_sdl=yes
38382fi
ac1cb8d3 38383rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38384fi
38385 CFLAGS="$ac_save_CFLAGS"
94acd38e 38386 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
38387 LIBS="$ac_save_LIBS"
38388 fi
38389 fi
38390 if test "x$no_sdl" = x ; then
38391 echo "$as_me:$LINENO: result: yes" >&5
38392echo "${ECHO_T}yes" >&6
38393
38394 EXTRALIBS_SDL="$SDL_LIBS"
38395 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
38396 cat >>confdefs.h <<\_ACEOF
38397#define wxUSE_LIBSDL 1
38398_ACEOF
38399
38400
38401 else
38402 echo "$as_me:$LINENO: result: no" >&5
38403echo "${ECHO_T}no" >&6
38404 if test "$SDL_CONFIG" = "no" ; then
38405 echo "*** The sdl-config script installed by SDL could not be found"
38406 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
38407 echo "*** your path, or set the SDL_CONFIG environment variable to the"
38408 echo "*** full path to sdl-config."
38409 else
38410 if test -f conf.sdltest ; then
38411 :
38412 else
38413 echo "*** Could not run SDL test program, checking why..."
38414 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 38415 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
38416 LIBS="$LIBS $SDL_LIBS"
38417 cat >conftest.$ac_ext <<_ACEOF
38418/* confdefs.h. */
38419_ACEOF
38420cat confdefs.h >>conftest.$ac_ext
38421cat >>conftest.$ac_ext <<_ACEOF
38422/* end confdefs.h. */
38423
38424#include <stdio.h>
38425#include "SDL.h"
38426
38427int main(int argc, char *argv[])
38428{ return 0; }
38429#undef main
38430#define main K_and_R_C_main
38431
38432int
38433main ()
38434{
38435 return 0;
38436 ;
38437 return 0;
38438}
38439_ACEOF
38440rm -f conftest.$ac_objext conftest$ac_exeext
38441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38442 (eval $ac_link) 2>conftest.er1
a848cd7e 38443 ac_status=$?
ac1cb8d3
VS
38444 grep -v '^ *+' conftest.er1 >conftest.err
38445 rm -f conftest.er1
38446 cat conftest.err >&5
a848cd7e
SC
38447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38448 (exit $ac_status); } &&
6ebeb4c7 38449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38451 (eval $ac_try) 2>&5
38452 ac_status=$?
38453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38454 (exit $ac_status); }; } &&
38455 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38457 (eval $ac_try) 2>&5
38458 ac_status=$?
38459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38460 (exit $ac_status); }; }; then
38461 echo "*** The test program compiled, but did not run. This usually means"
38462 echo "*** that the run-time linker is not finding SDL or finding the wrong"
38463 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
38464 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
38465 echo "*** to the installed location Also, make sure you have run ldconfig if that"
38466 echo "*** is required on your system"
38467 echo "***"
38468 echo "*** If you have an old version installed, it is best to remove it, although"
38469 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
38470else
38471 echo "$as_me: failed program was:" >&5
38472sed 's/^/| /' conftest.$ac_ext >&5
38473
38474 echo "*** The test program failed to compile or link. See the file config.log for the"
38475 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
38476 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
38477 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
38478fi
ac1cb8d3
VS
38479rm -f conftest.err conftest.$ac_objext \
38480 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38481 CFLAGS="$ac_save_CFLAGS"
94acd38e 38482 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
38483 LIBS="$ac_save_LIBS"
38484 fi
38485 fi
38486 SDL_CFLAGS=""
38487 SDL_LIBS=""
38488 wxUSE_LIBSDL="no"
38489 fi
38490
38491
38492 rm -f conf.sdltest
38493
38494 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
38495 WITH_PLUGIN_SDL=1
38496 fi
38497 fi
38498 fi
38499
38500 cat >>confdefs.h <<\_ACEOF
38501#define wxUSE_SOUND 1
38502_ACEOF
38503
38504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
38505fi
38506
d1c38808
VZ
38507if test "$WXGTK20" = 1; then
38508 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38509 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
38510
38511
38512 succeeded=no
38513
38514 if test -z "$PKG_CONFIG"; then
38515 # Extract the first word of "pkg-config", so it can be a program name with args.
38516set dummy pkg-config; ac_word=$2
38517echo "$as_me:$LINENO: checking for $ac_word" >&5
38518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38519if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
38520 echo $ECHO_N "(cached) $ECHO_C" >&6
38521else
38522 case $PKG_CONFIG in
38523 [\\/]* | ?:[\\/]*)
38524 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
38525 ;;
38526 *)
38527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38528for as_dir in $PATH
38529do
38530 IFS=$as_save_IFS
38531 test -z "$as_dir" && as_dir=.
38532 for ac_exec_ext in '' $ac_executable_extensions; do
38533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38534 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38536 break 2
38537 fi
38538done
38539done
38540
38541 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
38542 ;;
38543esac
38544fi
38545PKG_CONFIG=$ac_cv_path_PKG_CONFIG
38546
38547if test -n "$PKG_CONFIG"; then
38548 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
38549echo "${ECHO_T}$PKG_CONFIG" >&6
38550else
38551 echo "$as_me:$LINENO: result: no" >&5
38552echo "${ECHO_T}no" >&6
38553fi
38554
38555 fi
38556
38557 if test "$PKG_CONFIG" = "no" ; then
38558 echo "*** The pkg-config script could not be found. Make sure it is"
38559 echo "*** in your path, or set the PKG_CONFIG environment variable"
38560 echo "*** to the full path to pkg-config."
38561 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
38562 else
38563 PKG_CONFIG_MIN_VERSION=0.9.0
38564 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
38565 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
38566echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 38567
ffa762ff 38568 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
38569 echo "$as_me:$LINENO: result: yes" >&5
38570echo "${ECHO_T}yes" >&6
38571 succeeded=yes
38572
38573 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
38574echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 38575 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38576 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
38577echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
38578
38579 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
38580echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 38581 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38582 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
38583echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
38584 else
38585 LIBGNOMEPRINTUI_CFLAGS=""
38586 LIBGNOMEPRINTUI_LIBS=""
38587 ## If we have a custom action on failure, don't print errors, but
38588 ## do set a variable so people can do so.
ffa762ff 38589 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38590
38591 fi
38592
38593
38594
38595 else
38596 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
38597 echo "*** See http://www.freedesktop.org/software/pkgconfig"
38598 fi
38599 fi
38600
38601 if test $succeeded = yes; then
38602
d1c38808
VZ
38603 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
38604 cat >>confdefs.h <<\_ACEOF
38605#define wxUSE_LIBGNOMEPRINT 1
38606_ACEOF
38607
38608
38609 else
38610
38611 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
38612echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
38613 wxUSE_LIBGNOMEPRINT="no"
38614
38615
38616 fi
38617
38618 fi
38619 fi
38620fi
38621
38622
a848cd7e
SC
38623if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
38624 cat >>confdefs.h <<\_ACEOF
38625#define wxUSE_CMDLINE_PARSER 1
38626_ACEOF
38627
38628fi
38629
38630if test "$wxUSE_STOPWATCH" = "yes"; then
38631 cat >>confdefs.h <<\_ACEOF
38632#define wxUSE_STOPWATCH 1
38633_ACEOF
38634
38635fi
38636
38637if test "$wxUSE_DATETIME" = "yes"; then
38638 cat >>confdefs.h <<\_ACEOF
38639#define wxUSE_DATETIME 1
38640_ACEOF
38641
38642fi
38643
38644if test "$wxUSE_FILE" = "yes"; then
38645 cat >>confdefs.h <<\_ACEOF
38646#define wxUSE_FILE 1
38647_ACEOF
38648
38649fi
38650
38651if test "$wxUSE_FFILE" = "yes"; then
38652 cat >>confdefs.h <<\_ACEOF
38653#define wxUSE_FFILE 1
38654_ACEOF
38655
38656fi
38657
38658if test "$wxUSE_FILESYSTEM" = "yes"; then
38659 cat >>confdefs.h <<\_ACEOF
38660#define wxUSE_FILESYSTEM 1
38661_ACEOF
38662
38663fi
38664
38665if test "$wxUSE_FS_ZIP" = "yes"; then
38666 cat >>confdefs.h <<\_ACEOF
38667#define wxUSE_FS_ZIP 1
38668_ACEOF
38669
38670fi
38671
9e8e867f 38672if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 38673 cat >>confdefs.h <<\_ACEOF
9e8e867f 38674#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
38675_ACEOF
38676
38677fi
38678
38679if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 38680 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
38681 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
38682echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
38683 elif test "$wxUSE_ZLIB" = "no"; then
38684 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
38685echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
38686 else
38687 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38688#define wxUSE_ZIPSTREAM 1
38689_ACEOF
38690
81f90336 38691 fi
a848cd7e
SC
38692fi
38693
a848cd7e 38694if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
38695 if test "$USE_UNIX" != 1; then
38696 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
38697echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
38698 wxUSE_ON_FATAL_EXCEPTION=no
38699 else
38700 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38701#define wxUSE_ON_FATAL_EXCEPTION 1
38702_ACEOF
38703
18228ab4 38704 fi
a848cd7e
SC
38705fi
38706
eaff0f0d
VZ
38707if test "$wxUSE_STACKWALKER" = "yes"; then
38708 cat >>confdefs.h <<\_ACEOF
38709#define wxUSE_STACKWALKER 1
38710_ACEOF
38711
38712fi
38713
36b6448c 38714if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
38715 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
38716 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
38717echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
38718 wxUSE_DEBUGREPORT=no
38719 else
38720 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
38721#define wxUSE_DEBUGREPORT 1
38722_ACEOF
38723
21dfc162
MW
38724 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
38725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
38726 fi
dfe0c803 38727 fi
36b6448c
VZ
38728fi
38729
a848cd7e
SC
38730if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
38731 cat >>confdefs.h <<\_ACEOF
38732#define wxUSE_SNGLINST_CHECKER 1
38733_ACEOF
38734
38735fi
38736
38737if test "$wxUSE_BUSYINFO" = "yes"; then
38738 cat >>confdefs.h <<\_ACEOF
38739#define wxUSE_BUSYINFO 1
38740_ACEOF
38741
38742fi
38743
38744if test "$wxUSE_STD_IOSTREAM" = "yes"; then
38745 cat >>confdefs.h <<\_ACEOF
38746#define wxUSE_STD_IOSTREAM 1
38747_ACEOF
38748
38749fi
38750
59746b65
MW
38751if test "$wxUSE_STD_STRING" = "yes"; then
38752 cat >>confdefs.h <<\_ACEOF
38753#define wxUSE_STD_STRING 1
38754_ACEOF
38755
38756fi
38757
07158944
VZ
38758if test "$wxUSE_STDPATHS" = "yes"; then
38759 cat >>confdefs.h <<\_ACEOF
38760#define wxUSE_STDPATHS 1
38761_ACEOF
38762
38763fi
38764
a848cd7e
SC
38765if test "$wxUSE_TEXTBUFFER" = "yes"; then
38766 cat >>confdefs.h <<\_ACEOF
38767#define wxUSE_TEXTBUFFER 1
38768_ACEOF
38769
38770fi
38771
38772if test "$wxUSE_TEXTFILE" = "yes"; then
38773 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
38774 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
38775echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
38776 else
38777 cat >>confdefs.h <<\_ACEOF
38778#define wxUSE_TEXTFILE 1
38779_ACEOF
38780
38781 fi
38782fi
38783
38784if test "$wxUSE_CONFIG" = "yes" ; then
38785 if test "$wxUSE_TEXTFILE" != "yes"; then
38786 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
38787echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
38788 else
38789 cat >>confdefs.h <<\_ACEOF
38790#define wxUSE_CONFIG 1
89be85c2
VS
38791_ACEOF
38792
38793 cat >>confdefs.h <<\_ACEOF
38794#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
38795_ACEOF
38796
38797 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
38798 fi
38799fi
38800
38801if test "$wxUSE_INTL" = "yes" ; then
38802 if test "$wxUSE_FILE" != "yes"; then
38803 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
38804echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
38805 else
38806 cat >>confdefs.h <<\_ACEOF
38807#define wxUSE_INTL 1
38808_ACEOF
38809
38810 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
38811 GUIDIST="$GUIDIST INTL_DIST"
38812 fi
38813fi
38814
38815if test "$wxUSE_LOG" = "yes"; then
38816 cat >>confdefs.h <<\_ACEOF
38817#define wxUSE_LOG 1
38818_ACEOF
38819
38820
38821 if test "$wxUSE_LOGGUI" = "yes"; then
38822 cat >>confdefs.h <<\_ACEOF
38823#define wxUSE_LOGGUI 1
38824_ACEOF
38825
38826 fi
38827
38828 if test "$wxUSE_LOGWINDOW" = "yes"; then
38829 cat >>confdefs.h <<\_ACEOF
38830#define wxUSE_LOGWINDOW 1
38831_ACEOF
38832
38833 fi
38834
38835 if test "$wxUSE_LOGDIALOG" = "yes"; then
38836 cat >>confdefs.h <<\_ACEOF
38837#define wxUSE_LOG_DIALOG 1
38838_ACEOF
38839
38840 fi
0b78747f
MW
38841
38842 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
38843fi
38844
38845if test "$wxUSE_LONGLONG" = "yes"; then
38846 cat >>confdefs.h <<\_ACEOF
38847#define wxUSE_LONGLONG 1
38848_ACEOF
38849
38850fi
38851
38852if test "$wxUSE_GEOMETRY" = "yes"; then
38853 cat >>confdefs.h <<\_ACEOF
38854#define wxUSE_GEOMETRY 1
38855_ACEOF
38856
38857fi
38858
a848cd7e
SC
38859if test "$wxUSE_STREAMS" = "yes" ; then
38860 cat >>confdefs.h <<\_ACEOF
38861#define wxUSE_STREAMS 1
38862_ACEOF
38863
38864fi
38865
38866
38867if test "$wxUSE_DATETIME" = "yes"; then
38868
38869for ac_func in strptime
38870do
38871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38872echo "$as_me:$LINENO: checking for $ac_func" >&5
38873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38874if eval "test \"\${$as_ac_var+set}\" = set"; then
38875 echo $ECHO_N "(cached) $ECHO_C" >&6
38876else
38877 cat >conftest.$ac_ext <<_ACEOF
38878/* confdefs.h. */
38879_ACEOF
38880cat confdefs.h >>conftest.$ac_ext
38881cat >>conftest.$ac_ext <<_ACEOF
38882/* end confdefs.h. */
ac1cb8d3
VS
38883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38885#define $ac_func innocuous_$ac_func
38886
a848cd7e
SC
38887/* System header to define __stub macros and hopefully few prototypes,
38888 which can conflict with char $ac_func (); below.
38889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38890 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38891
a848cd7e
SC
38892#ifdef __STDC__
38893# include <limits.h>
38894#else
38895# include <assert.h>
38896#endif
ac1cb8d3
VS
38897
38898#undef $ac_func
38899
a848cd7e
SC
38900/* Override any gcc2 internal prototype to avoid an error. */
38901#ifdef __cplusplus
38902extern "C"
38903{
38904#endif
38905/* We use char because int might match the return type of a gcc2
38906 builtin and then its argument prototype would still apply. */
38907char $ac_func ();
38908/* The GNU C library defines this for functions which it implements
38909 to always fail with ENOSYS. Some functions are actually named
38910 something starting with __ and the normal name is an alias. */
38911#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38912choke me
38913#else
38914char (*f) () = $ac_func;
38915#endif
38916#ifdef __cplusplus
38917}
38918#endif
38919
38920int
38921main ()
38922{
38923return f != $ac_func;
38924 ;
38925 return 0;
38926}
38927_ACEOF
38928rm -f conftest.$ac_objext conftest$ac_exeext
38929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38930 (eval $ac_link) 2>conftest.er1
a848cd7e 38931 ac_status=$?
ac1cb8d3
VS
38932 grep -v '^ *+' conftest.er1 >conftest.err
38933 rm -f conftest.er1
38934 cat conftest.err >&5
a848cd7e
SC
38935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38936 (exit $ac_status); } &&
6ebeb4c7 38937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38939 (eval $ac_try) 2>&5
38940 ac_status=$?
38941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38942 (exit $ac_status); }; } &&
38943 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38945 (eval $ac_try) 2>&5
38946 ac_status=$?
38947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38948 (exit $ac_status); }; }; then
38949 eval "$as_ac_var=yes"
38950else
38951 echo "$as_me: failed program was:" >&5
38952sed 's/^/| /' conftest.$ac_ext >&5
38953
38954eval "$as_ac_var=no"
38955fi
ac1cb8d3
VS
38956rm -f conftest.err conftest.$ac_objext \
38957 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38958fi
38959echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38960echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38961if test `eval echo '${'$as_ac_var'}'` = yes; then
38962 cat >>confdefs.h <<_ACEOF
38963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38964_ACEOF
38965
38966fi
38967done
38968
38969
38970 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
38971echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
38972if test "${wx_cv_var_timezone+set}" = set; then
38973 echo $ECHO_N "(cached) $ECHO_C" >&6
38974else
38975
38976 cat >conftest.$ac_ext <<_ACEOF
38977/* confdefs.h. */
38978_ACEOF
38979cat confdefs.h >>conftest.$ac_ext
38980cat >>conftest.$ac_ext <<_ACEOF
38981/* end confdefs.h. */
38982
38983 #include <time.h>
38984
38985int
38986main ()
38987{
38988
38989 int tz;
38990 tz = timezone;
38991
38992 ;
38993 return 0;
38994}
38995_ACEOF
38996rm -f conftest.$ac_objext
38997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38998 (eval $ac_compile) 2>conftest.er1
a848cd7e 38999 ac_status=$?
ac1cb8d3
VS
39000 grep -v '^ *+' conftest.er1 >conftest.err
39001 rm -f conftest.er1
39002 cat conftest.err >&5
a848cd7e
SC
39003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39004 (exit $ac_status); } &&
6ebeb4c7 39005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39007 (eval $ac_try) 2>&5
39008 ac_status=$?
39009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39010 (exit $ac_status); }; } &&
39011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39013 (eval $ac_try) 2>&5
39014 ac_status=$?
39015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39016 (exit $ac_status); }; }; then
39017
39018 wx_cv_var_timezone=timezone
39019
39020else
39021 echo "$as_me: failed program was:" >&5
39022sed 's/^/| /' conftest.$ac_ext >&5
39023
39024
39025 cat >conftest.$ac_ext <<_ACEOF
39026/* confdefs.h. */
39027_ACEOF
39028cat confdefs.h >>conftest.$ac_ext
39029cat >>conftest.$ac_ext <<_ACEOF
39030/* end confdefs.h. */
39031
39032 #include <time.h>
39033
39034int
39035main ()
39036{
39037
39038 int tz;
39039 tz = _timezone;
39040
39041 ;
39042 return 0;
39043}
39044_ACEOF
39045rm -f conftest.$ac_objext
39046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39047 (eval $ac_compile) 2>conftest.er1
a848cd7e 39048 ac_status=$?
ac1cb8d3
VS
39049 grep -v '^ *+' conftest.er1 >conftest.err
39050 rm -f conftest.er1
39051 cat conftest.err >&5
a848cd7e
SC
39052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39053 (exit $ac_status); } &&
6ebeb4c7 39054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39056 (eval $ac_try) 2>&5
39057 ac_status=$?
39058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39059 (exit $ac_status); }; } &&
39060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39062 (eval $ac_try) 2>&5
39063 ac_status=$?
39064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39065 (exit $ac_status); }; }; then
39066
39067 wx_cv_var_timezone=_timezone
39068
39069else
39070 echo "$as_me: failed program was:" >&5
39071sed 's/^/| /' conftest.$ac_ext >&5
39072
39073
39074 cat >conftest.$ac_ext <<_ACEOF
39075/* confdefs.h. */
39076_ACEOF
39077cat confdefs.h >>conftest.$ac_ext
39078cat >>conftest.$ac_ext <<_ACEOF
39079/* end confdefs.h. */
39080
39081 #include <time.h>
39082
39083int
39084main ()
39085{
39086
39087 int tz;
39088 tz = __timezone;
39089
39090 ;
39091 return 0;
39092}
39093_ACEOF
39094rm -f conftest.$ac_objext
39095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39096 (eval $ac_compile) 2>conftest.er1
a848cd7e 39097 ac_status=$?
ac1cb8d3
VS
39098 grep -v '^ *+' conftest.er1 >conftest.err
39099 rm -f conftest.er1
39100 cat conftest.err >&5
a848cd7e
SC
39101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39102 (exit $ac_status); } &&
6ebeb4c7 39103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39105 (eval $ac_try) 2>&5
39106 ac_status=$?
39107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39108 (exit $ac_status); }; } &&
39109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39111 (eval $ac_try) 2>&5
39112 ac_status=$?
39113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39114 (exit $ac_status); }; }; then
39115
39116 wx_cv_var_timezone=__timezone
39117
39118else
39119 echo "$as_me: failed program was:" >&5
39120sed 's/^/| /' conftest.$ac_ext >&5
39121
39122
39123 if test "$USE_DOS" = 0 ; then
39124 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
39125echo "$as_me: WARNING: no timezone variable" >&2;}
39126 fi
39127
39128
39129fi
ac1cb8d3 39130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39131
39132
39133fi
ac1cb8d3 39134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39135
39136
39137fi
ac1cb8d3 39138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39139
39140
39141fi
39142echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
39143echo "${ECHO_T}$wx_cv_var_timezone" >&6
39144
39145 if test "x$wx_cv_var_timezone" != x ; then
39146 cat >>confdefs.h <<_ACEOF
39147#define WX_TIMEZONE $wx_cv_var_timezone
39148_ACEOF
39149
39150 fi
39151
39152
39153for ac_func in localtime
39154do
39155as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39156echo "$as_me:$LINENO: checking for $ac_func" >&5
39157echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39158if eval "test \"\${$as_ac_var+set}\" = set"; then
39159 echo $ECHO_N "(cached) $ECHO_C" >&6
39160else
39161 cat >conftest.$ac_ext <<_ACEOF
39162/* confdefs.h. */
39163_ACEOF
39164cat confdefs.h >>conftest.$ac_ext
39165cat >>conftest.$ac_ext <<_ACEOF
39166/* end confdefs.h. */
ac1cb8d3
VS
39167/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39169#define $ac_func innocuous_$ac_func
39170
a848cd7e
SC
39171/* System header to define __stub macros and hopefully few prototypes,
39172 which can conflict with char $ac_func (); below.
39173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39174 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39175
a848cd7e
SC
39176#ifdef __STDC__
39177# include <limits.h>
39178#else
39179# include <assert.h>
39180#endif
ac1cb8d3
VS
39181
39182#undef $ac_func
39183
a848cd7e
SC
39184/* Override any gcc2 internal prototype to avoid an error. */
39185#ifdef __cplusplus
39186extern "C"
39187{
39188#endif
39189/* We use char because int might match the return type of a gcc2
39190 builtin and then its argument prototype would still apply. */
39191char $ac_func ();
39192/* The GNU C library defines this for functions which it implements
39193 to always fail with ENOSYS. Some functions are actually named
39194 something starting with __ and the normal name is an alias. */
39195#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39196choke me
39197#else
39198char (*f) () = $ac_func;
39199#endif
39200#ifdef __cplusplus
39201}
39202#endif
39203
39204int
39205main ()
39206{
39207return f != $ac_func;
39208 ;
39209 return 0;
39210}
39211_ACEOF
39212rm -f conftest.$ac_objext conftest$ac_exeext
39213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39214 (eval $ac_link) 2>conftest.er1
a848cd7e 39215 ac_status=$?
ac1cb8d3
VS
39216 grep -v '^ *+' conftest.er1 >conftest.err
39217 rm -f conftest.er1
39218 cat conftest.err >&5
a848cd7e
SC
39219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39220 (exit $ac_status); } &&
6ebeb4c7 39221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39223 (eval $ac_try) 2>&5
39224 ac_status=$?
39225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39226 (exit $ac_status); }; } &&
39227 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39229 (eval $ac_try) 2>&5
39230 ac_status=$?
39231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39232 (exit $ac_status); }; }; then
39233 eval "$as_ac_var=yes"
39234else
39235 echo "$as_me: failed program was:" >&5
39236sed 's/^/| /' conftest.$ac_ext >&5
39237
39238eval "$as_ac_var=no"
39239fi
ac1cb8d3
VS
39240rm -f conftest.err conftest.$ac_objext \
39241 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39242fi
39243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39244echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39245if test `eval echo '${'$as_ac_var'}'` = yes; then
39246 cat >>confdefs.h <<_ACEOF
39247#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39248_ACEOF
39249
39250fi
39251done
39252
39253
39254 if test "$ac_cv_func_localtime" = "yes"; then
39255 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
39256echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
39257if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
39258 echo $ECHO_N "(cached) $ECHO_C" >&6
39259else
39260
39261 cat >conftest.$ac_ext <<_ACEOF
39262/* confdefs.h. */
39263_ACEOF
39264cat confdefs.h >>conftest.$ac_ext
39265cat >>conftest.$ac_ext <<_ACEOF
39266/* end confdefs.h. */
39267
39268 #include <time.h>
39269
39270int
39271main ()
39272{
39273
39274 struct tm tm;
39275 tm.tm_gmtoff++;
39276
39277 ;
39278 return 0;
39279}
39280_ACEOF
39281rm -f conftest.$ac_objext
39282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39283 (eval $ac_compile) 2>conftest.er1
a848cd7e 39284 ac_status=$?
ac1cb8d3
VS
39285 grep -v '^ *+' conftest.er1 >conftest.err
39286 rm -f conftest.er1
39287 cat conftest.err >&5
a848cd7e
SC
39288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39289 (exit $ac_status); } &&
6ebeb4c7 39290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39292 (eval $ac_try) 2>&5
39293 ac_status=$?
39294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39295 (exit $ac_status); }; } &&
39296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39298 (eval $ac_try) 2>&5
39299 ac_status=$?
39300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39301 (exit $ac_status); }; }; then
39302
39303 wx_cv_struct_tm_has_gmtoff=yes
39304
39305else
39306 echo "$as_me: failed program was:" >&5
39307sed 's/^/| /' conftest.$ac_ext >&5
39308
39309wx_cv_struct_tm_has_gmtoff=no
39310
39311fi
ac1cb8d3 39312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39313
39314fi
39315echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
39316echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
39317 fi
39318
39319 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
39320 cat >>confdefs.h <<\_ACEOF
39321#define WX_GMTOFF_IN_TM 1
39322_ACEOF
39323
39324 fi
39325
39326
39327
39328for ac_func in gettimeofday ftime
39329do
39330as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39331echo "$as_me:$LINENO: checking for $ac_func" >&5
39332echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39333if eval "test \"\${$as_ac_var+set}\" = set"; then
39334 echo $ECHO_N "(cached) $ECHO_C" >&6
39335else
39336 cat >conftest.$ac_ext <<_ACEOF
39337/* confdefs.h. */
39338_ACEOF
39339cat confdefs.h >>conftest.$ac_ext
39340cat >>conftest.$ac_ext <<_ACEOF
39341/* end confdefs.h. */
ac1cb8d3
VS
39342/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39344#define $ac_func innocuous_$ac_func
39345
a848cd7e
SC
39346/* System header to define __stub macros and hopefully few prototypes,
39347 which can conflict with char $ac_func (); below.
39348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39349 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39350
a848cd7e
SC
39351#ifdef __STDC__
39352# include <limits.h>
39353#else
39354# include <assert.h>
39355#endif
ac1cb8d3
VS
39356
39357#undef $ac_func
39358
a848cd7e
SC
39359/* Override any gcc2 internal prototype to avoid an error. */
39360#ifdef __cplusplus
39361extern "C"
39362{
39363#endif
39364/* We use char because int might match the return type of a gcc2
39365 builtin and then its argument prototype would still apply. */
39366char $ac_func ();
39367/* The GNU C library defines this for functions which it implements
39368 to always fail with ENOSYS. Some functions are actually named
39369 something starting with __ and the normal name is an alias. */
39370#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39371choke me
39372#else
39373char (*f) () = $ac_func;
39374#endif
39375#ifdef __cplusplus
39376}
39377#endif
39378
39379int
39380main ()
39381{
39382return f != $ac_func;
39383 ;
39384 return 0;
39385}
39386_ACEOF
39387rm -f conftest.$ac_objext conftest$ac_exeext
39388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39389 (eval $ac_link) 2>conftest.er1
a848cd7e 39390 ac_status=$?
ac1cb8d3
VS
39391 grep -v '^ *+' conftest.er1 >conftest.err
39392 rm -f conftest.er1
39393 cat conftest.err >&5
a848cd7e
SC
39394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39395 (exit $ac_status); } &&
6ebeb4c7 39396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39398 (eval $ac_try) 2>&5
39399 ac_status=$?
39400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39401 (exit $ac_status); }; } &&
39402 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39404 (eval $ac_try) 2>&5
39405 ac_status=$?
39406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39407 (exit $ac_status); }; }; then
39408 eval "$as_ac_var=yes"
39409else
39410 echo "$as_me: failed program was:" >&5
39411sed 's/^/| /' conftest.$ac_ext >&5
39412
39413eval "$as_ac_var=no"
39414fi
ac1cb8d3
VS
39415rm -f conftest.err conftest.$ac_objext \
39416 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39417fi
39418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39419echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39420if test `eval echo '${'$as_ac_var'}'` = yes; then
39421 cat >>confdefs.h <<_ACEOF
39422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39423_ACEOF
39424 break
39425fi
39426done
39427
39428
39429 if test "$ac_cv_func_gettimeofday" = "yes"; then
39430 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
39431echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
39432if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
39433 echo $ECHO_N "(cached) $ECHO_C" >&6
39434else
39435
39436
39437
39438 ac_ext=cc
39439ac_cpp='$CXXCPP $CPPFLAGS'
39440ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39441ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39442ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39443
39444
39445 cat >conftest.$ac_ext <<_ACEOF
39446/* confdefs.h. */
39447_ACEOF
39448cat confdefs.h >>conftest.$ac_ext
39449cat >>conftest.$ac_ext <<_ACEOF
39450/* end confdefs.h. */
39451
39452 #include <sys/time.h>
39453 #include <unistd.h>
39454
39455int
39456main ()
39457{
39458
39459 struct timeval tv;
39460 gettimeofday(&tv, NULL);
39461
39462 ;
39463 return 0;
39464}
39465_ACEOF
39466rm -f conftest.$ac_objext
39467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39468 (eval $ac_compile) 2>conftest.er1
a848cd7e 39469 ac_status=$?
ac1cb8d3
VS
39470 grep -v '^ *+' conftest.er1 >conftest.err
39471 rm -f conftest.er1
39472 cat conftest.err >&5
a848cd7e
SC
39473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39474 (exit $ac_status); } &&
6ebeb4c7 39475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39477 (eval $ac_try) 2>&5
39478 ac_status=$?
39479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39480 (exit $ac_status); }; } &&
39481 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39483 (eval $ac_try) 2>&5
39484 ac_status=$?
39485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39486 (exit $ac_status); }; }; then
39487 wx_cv_func_gettimeofday_has_2_args=yes
39488else
39489 echo "$as_me: failed program was:" >&5
39490sed 's/^/| /' conftest.$ac_ext >&5
39491
39492cat >conftest.$ac_ext <<_ACEOF
39493/* confdefs.h. */
39494_ACEOF
39495cat confdefs.h >>conftest.$ac_ext
39496cat >>conftest.$ac_ext <<_ACEOF
39497/* end confdefs.h. */
39498
39499 #include <sys/time.h>
39500 #include <unistd.h>
39501
39502int
39503main ()
39504{
39505
39506 struct timeval tv;
39507 gettimeofday(&tv);
39508
39509 ;
39510 return 0;
39511}
39512_ACEOF
39513rm -f conftest.$ac_objext
39514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39515 (eval $ac_compile) 2>conftest.er1
a848cd7e 39516 ac_status=$?
ac1cb8d3
VS
39517 grep -v '^ *+' conftest.er1 >conftest.err
39518 rm -f conftest.er1
39519 cat conftest.err >&5
a848cd7e
SC
39520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39521 (exit $ac_status); } &&
6ebeb4c7 39522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39524 (eval $ac_try) 2>&5
39525 ac_status=$?
39526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39527 (exit $ac_status); }; } &&
39528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39530 (eval $ac_try) 2>&5
39531 ac_status=$?
39532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39533 (exit $ac_status); }; }; then
39534 wx_cv_func_gettimeofday_has_2_args=no
39535else
39536 echo "$as_me: failed program was:" >&5
39537sed 's/^/| /' conftest.$ac_ext >&5
39538
39539
39540 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
39541echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
39542 wx_cv_func_gettimeofday_has_2_args=unknown
39543
39544
39545fi
ac1cb8d3 39546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39547
39548fi
ac1cb8d3 39549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39550 ac_ext=c
39551ac_cpp='$CPP $CPPFLAGS'
39552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39554ac_compiler_gnu=$ac_cv_c_compiler_gnu
39555
39556
39557fi
39558echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
39559echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
39560
39561 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
39562 cat >>confdefs.h <<\_ACEOF
39563#define WX_GETTIMEOFDAY_NO_TZ 1
39564_ACEOF
39565
39566 fi
39567 fi
39568
39569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
39570fi
39571
39572
39573if test "$wxUSE_SOCKETS" = "yes"; then
39574 if test "$wxUSE_MGL" = "1"; then
39575 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
39576echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
39577 wxUSE_SOCKETS="no"
39578 fi
39579fi
39580
39581if test "$wxUSE_SOCKETS" = "yes"; then
39582 if test "$TOOLKIT" != "MSW"; then
39583 echo "$as_me:$LINENO: checking for socket" >&5
39584echo $ECHO_N "checking for socket... $ECHO_C" >&6
39585if test "${ac_cv_func_socket+set}" = set; then
39586 echo $ECHO_N "(cached) $ECHO_C" >&6
39587else
39588 cat >conftest.$ac_ext <<_ACEOF
39589/* confdefs.h. */
39590_ACEOF
39591cat confdefs.h >>conftest.$ac_ext
39592cat >>conftest.$ac_ext <<_ACEOF
39593/* end confdefs.h. */
ac1cb8d3
VS
39594/* Define socket to an innocuous variant, in case <limits.h> declares socket.
39595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39596#define socket innocuous_socket
39597
a848cd7e
SC
39598/* System header to define __stub macros and hopefully few prototypes,
39599 which can conflict with char socket (); below.
39600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39601 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39602
a848cd7e
SC
39603#ifdef __STDC__
39604# include <limits.h>
39605#else
39606# include <assert.h>
39607#endif
ac1cb8d3
VS
39608
39609#undef socket
39610
a848cd7e
SC
39611/* Override any gcc2 internal prototype to avoid an error. */
39612#ifdef __cplusplus
39613extern "C"
39614{
39615#endif
39616/* We use char because int might match the return type of a gcc2
39617 builtin and then its argument prototype would still apply. */
39618char socket ();
39619/* The GNU C library defines this for functions which it implements
39620 to always fail with ENOSYS. Some functions are actually named
39621 something starting with __ and the normal name is an alias. */
39622#if defined (__stub_socket) || defined (__stub___socket)
39623choke me
39624#else
39625char (*f) () = socket;
39626#endif
39627#ifdef __cplusplus
39628}
39629#endif
39630
39631int
39632main ()
39633{
39634return f != socket;
39635 ;
39636 return 0;
39637}
39638_ACEOF
39639rm -f conftest.$ac_objext conftest$ac_exeext
39640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39641 (eval $ac_link) 2>conftest.er1
a848cd7e 39642 ac_status=$?
ac1cb8d3
VS
39643 grep -v '^ *+' conftest.er1 >conftest.err
39644 rm -f conftest.er1
39645 cat conftest.err >&5
a848cd7e
SC
39646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39647 (exit $ac_status); } &&
6ebeb4c7 39648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39650 (eval $ac_try) 2>&5
39651 ac_status=$?
39652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39653 (exit $ac_status); }; } &&
39654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39656 (eval $ac_try) 2>&5
39657 ac_status=$?
39658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39659 (exit $ac_status); }; }; then
39660 ac_cv_func_socket=yes
39661else
39662 echo "$as_me: failed program was:" >&5
39663sed 's/^/| /' conftest.$ac_ext >&5
39664
39665ac_cv_func_socket=no
39666fi
ac1cb8d3
VS
39667rm -f conftest.err conftest.$ac_objext \
39668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39669fi
39670echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
39671echo "${ECHO_T}$ac_cv_func_socket" >&6
39672if test $ac_cv_func_socket = yes; then
39673 :
39674else
39675
39676 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
39677echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
39678if test "${ac_cv_lib_socket_socket+set}" = set; then
39679 echo $ECHO_N "(cached) $ECHO_C" >&6
39680else
39681 ac_check_lib_save_LIBS=$LIBS
39682LIBS="-lsocket $LIBS"
39683cat >conftest.$ac_ext <<_ACEOF
39684/* confdefs.h. */
39685_ACEOF
39686cat confdefs.h >>conftest.$ac_ext
39687cat >>conftest.$ac_ext <<_ACEOF
39688/* end confdefs.h. */
39689
39690/* Override any gcc2 internal prototype to avoid an error. */
39691#ifdef __cplusplus
39692extern "C"
39693#endif
39694/* We use char because int might match the return type of a gcc2
39695 builtin and then its argument prototype would still apply. */
39696char socket ();
39697int
39698main ()
39699{
39700socket ();
39701 ;
39702 return 0;
39703}
39704_ACEOF
39705rm -f conftest.$ac_objext conftest$ac_exeext
39706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39707 (eval $ac_link) 2>conftest.er1
a848cd7e 39708 ac_status=$?
ac1cb8d3
VS
39709 grep -v '^ *+' conftest.er1 >conftest.err
39710 rm -f conftest.er1
39711 cat conftest.err >&5
a848cd7e
SC
39712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39713 (exit $ac_status); } &&
6ebeb4c7 39714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39716 (eval $ac_try) 2>&5
39717 ac_status=$?
39718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39719 (exit $ac_status); }; } &&
39720 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39722 (eval $ac_try) 2>&5
39723 ac_status=$?
39724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39725 (exit $ac_status); }; }; then
39726 ac_cv_lib_socket_socket=yes
39727else
39728 echo "$as_me: failed program was:" >&5
39729sed 's/^/| /' conftest.$ac_ext >&5
39730
39731ac_cv_lib_socket_socket=no
39732fi
ac1cb8d3
VS
39733rm -f conftest.err conftest.$ac_objext \
39734 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39735LIBS=$ac_check_lib_save_LIBS
39736fi
39737echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
39738echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
39739if test $ac_cv_lib_socket_socket = yes; then
39740 if test "$INET_LINK" != " -lsocket"; then
39741 INET_LINK="$INET_LINK -lsocket"
39742 fi
39743else
39744
39745 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
39746echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
39747 wxUSE_SOCKETS=no
39748
39749
39750fi
39751
39752
39753
39754fi
39755
39756 fi
39757fi
39758
39759if test "$wxUSE_SOCKETS" = "yes" ; then
39760 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
39761 ac_ext=cc
39762ac_cpp='$CXXCPP $CPPFLAGS'
39763ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39764ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39765ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39766
39767 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
39768echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
39769if test "${wx_cv_type_getsockname3+set}" = set; then
39770 echo $ECHO_N "(cached) $ECHO_C" >&6
39771else
39772
39773 cat >conftest.$ac_ext <<_ACEOF
39774/* confdefs.h. */
39775_ACEOF
39776cat confdefs.h >>conftest.$ac_ext
39777cat >>conftest.$ac_ext <<_ACEOF
39778/* end confdefs.h. */
39779
39780 #include <sys/types.h>
39781 #include <sys/socket.h>
39782
39783int
39784main ()
39785{
39786
39787 socklen_t len;
39788 getsockname(0, 0, &len);
39789
39790 ;
39791 return 0;
39792}
39793_ACEOF
39794rm -f conftest.$ac_objext
39795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39796 (eval $ac_compile) 2>conftest.er1
a848cd7e 39797 ac_status=$?
ac1cb8d3
VS
39798 grep -v '^ *+' conftest.er1 >conftest.err
39799 rm -f conftest.er1
39800 cat conftest.err >&5
a848cd7e
SC
39801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39802 (exit $ac_status); } &&
6ebeb4c7 39803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39805 (eval $ac_try) 2>&5
39806 ac_status=$?
39807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39808 (exit $ac_status); }; } &&
39809 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39811 (eval $ac_try) 2>&5
39812 ac_status=$?
39813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39814 (exit $ac_status); }; }; then
39815 wx_cv_type_getsockname3=socklen_t
39816else
39817 echo "$as_me: failed program was:" >&5
39818sed 's/^/| /' conftest.$ac_ext >&5
39819
39820
6459a506 39821 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 39822 if test "$GCC" = yes ; then
6459a506 39823 CXXFLAGS="$CXXFLAGS -Werror"
a848cd7e
SC
39824 fi
39825
39826 cat >conftest.$ac_ext <<_ACEOF
39827/* confdefs.h. */
39828_ACEOF
39829cat confdefs.h >>conftest.$ac_ext
39830cat >>conftest.$ac_ext <<_ACEOF
39831/* end confdefs.h. */
39832
39833 #include <sys/types.h>
39834 #include <sys/socket.h>
39835
39836int
39837main ()
39838{
39839
39840 size_t len;
39841 getsockname(0, 0, &len);
39842
39843 ;
39844 return 0;
39845}
39846_ACEOF
39847rm -f conftest.$ac_objext
39848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39849 (eval $ac_compile) 2>conftest.er1
a848cd7e 39850 ac_status=$?
ac1cb8d3
VS
39851 grep -v '^ *+' conftest.er1 >conftest.err
39852 rm -f conftest.er1
39853 cat conftest.err >&5
a848cd7e
SC
39854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39855 (exit $ac_status); } &&
6ebeb4c7 39856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39858 (eval $ac_try) 2>&5
39859 ac_status=$?
39860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39861 (exit $ac_status); }; } &&
39862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39864 (eval $ac_try) 2>&5
39865 ac_status=$?
39866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39867 (exit $ac_status); }; }; then
39868 wx_cv_type_getsockname3=size_t
39869else
39870 echo "$as_me: failed program was:" >&5
39871sed 's/^/| /' conftest.$ac_ext >&5
39872
39873cat >conftest.$ac_ext <<_ACEOF
39874/* confdefs.h. */
39875_ACEOF
39876cat confdefs.h >>conftest.$ac_ext
39877cat >>conftest.$ac_ext <<_ACEOF
39878/* end confdefs.h. */
39879
39880 #include <sys/types.h>
39881 #include <sys/socket.h>
39882
39883int
39884main ()
39885{
39886
39887 int len;
39888 getsockname(0, 0, &len);
39889
39890 ;
39891 return 0;
39892}
39893_ACEOF
39894rm -f conftest.$ac_objext
39895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39896 (eval $ac_compile) 2>conftest.er1
a848cd7e 39897 ac_status=$?
ac1cb8d3
VS
39898 grep -v '^ *+' conftest.er1 >conftest.err
39899 rm -f conftest.er1
39900 cat conftest.err >&5
a848cd7e
SC
39901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39902 (exit $ac_status); } &&
6ebeb4c7 39903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39905 (eval $ac_try) 2>&5
39906 ac_status=$?
39907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39908 (exit $ac_status); }; } &&
39909 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39911 (eval $ac_try) 2>&5
39912 ac_status=$?
39913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39914 (exit $ac_status); }; }; then
39915 wx_cv_type_getsockname3=int
39916else
39917 echo "$as_me: failed program was:" >&5
39918sed 's/^/| /' conftest.$ac_ext >&5
39919
39920wx_cv_type_getsockname3=unknown
39921
39922fi
ac1cb8d3 39923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39924
39925fi
ac1cb8d3 39926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 39927
6459a506 39928 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
39929
39930
39931fi
ac1cb8d3 39932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39933
39934fi
39935echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
39936echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
39937
39938 if test "$wx_cv_type_getsockname3" = "unknown"; then
39939 wxUSE_SOCKETS=no
39940 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
39941echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
39942 else
39943 cat >>confdefs.h <<_ACEOF
9e03e02d 39944#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
39945_ACEOF
39946
39947 fi
39948 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
39949echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
39950if test "${wx_cv_type_getsockopt5+set}" = set; then
39951 echo $ECHO_N "(cached) $ECHO_C" >&6
39952else
39953
39954 cat >conftest.$ac_ext <<_ACEOF
39955/* confdefs.h. */
39956_ACEOF
39957cat confdefs.h >>conftest.$ac_ext
39958cat >>conftest.$ac_ext <<_ACEOF
39959/* end confdefs.h. */
39960
39961 #include <sys/types.h>
39962 #include <sys/socket.h>
39963
39964int
39965main ()
39966{
39967
39968 socklen_t len;
39969 getsockopt(0, 0, 0, 0, &len);
39970
39971 ;
39972 return 0;
39973}
39974_ACEOF
39975rm -f conftest.$ac_objext
39976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39977 (eval $ac_compile) 2>conftest.er1
39978 ac_status=$?
39979 grep -v '^ *+' conftest.er1 >conftest.err
39980 rm -f conftest.er1
39981 cat conftest.err >&5
39982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39983 (exit $ac_status); } &&
6ebeb4c7 39984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
39985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39986 (eval $ac_try) 2>&5
39987 ac_status=$?
39988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39989 (exit $ac_status); }; } &&
39990 { ac_try='test -s conftest.$ac_objext'
39991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39992 (eval $ac_try) 2>&5
39993 ac_status=$?
39994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39995 (exit $ac_status); }; }; then
39996 wx_cv_type_getsockopt5=socklen_t
39997else
39998 echo "$as_me: failed program was:" >&5
39999sed 's/^/| /' conftest.$ac_ext >&5
40000
40001
6459a506 40002 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 40003 if test "$GCC" = yes ; then
6459a506 40004 CXXFLAGS="$CXXFLAGS -Werror"
5b674b9d
DE
40005 fi
40006
40007 cat >conftest.$ac_ext <<_ACEOF
40008/* confdefs.h. */
40009_ACEOF
40010cat confdefs.h >>conftest.$ac_ext
40011cat >>conftest.$ac_ext <<_ACEOF
40012/* end confdefs.h. */
40013
40014 #include <sys/types.h>
40015 #include <sys/socket.h>
40016
40017int
40018main ()
40019{
40020
40021 size_t len;
40022 getsockopt(0, 0, 0, 0, &len);
40023
40024 ;
40025 return 0;
40026}
40027_ACEOF
40028rm -f conftest.$ac_objext
40029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40030 (eval $ac_compile) 2>conftest.er1
40031 ac_status=$?
40032 grep -v '^ *+' conftest.er1 >conftest.err
40033 rm -f conftest.er1
40034 cat conftest.err >&5
40035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40036 (exit $ac_status); } &&
6ebeb4c7 40037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40039 (eval $ac_try) 2>&5
40040 ac_status=$?
40041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40042 (exit $ac_status); }; } &&
40043 { ac_try='test -s conftest.$ac_objext'
40044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40045 (eval $ac_try) 2>&5
40046 ac_status=$?
40047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40048 (exit $ac_status); }; }; then
40049 wx_cv_type_getsockopt5=size_t
40050else
40051 echo "$as_me: failed program was:" >&5
40052sed 's/^/| /' conftest.$ac_ext >&5
40053
40054cat >conftest.$ac_ext <<_ACEOF
40055/* confdefs.h. */
40056_ACEOF
40057cat confdefs.h >>conftest.$ac_ext
40058cat >>conftest.$ac_ext <<_ACEOF
40059/* end confdefs.h. */
40060
40061 #include <sys/types.h>
40062 #include <sys/socket.h>
40063
40064int
40065main ()
40066{
40067
40068 int len;
40069 getsockopt(0, 0, 0, 0, &len);
40070
40071 ;
40072 return 0;
40073}
40074_ACEOF
40075rm -f conftest.$ac_objext
40076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40077 (eval $ac_compile) 2>conftest.er1
40078 ac_status=$?
40079 grep -v '^ *+' conftest.er1 >conftest.err
40080 rm -f conftest.er1
40081 cat conftest.err >&5
40082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40083 (exit $ac_status); } &&
6ebeb4c7 40084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40086 (eval $ac_try) 2>&5
40087 ac_status=$?
40088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40089 (exit $ac_status); }; } &&
40090 { ac_try='test -s conftest.$ac_objext'
40091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40092 (eval $ac_try) 2>&5
40093 ac_status=$?
40094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40095 (exit $ac_status); }; }; then
40096 wx_cv_type_getsockopt5=int
40097else
40098 echo "$as_me: failed program was:" >&5
40099sed 's/^/| /' conftest.$ac_ext >&5
40100
40101wx_cv_type_getsockopt5=unknown
40102
40103fi
40104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40105
40106fi
40107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40108
6459a506 40109 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
40110
40111
40112fi
40113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40114
40115fi
40116echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
40117echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
40118
40119 if test "$wx_cv_type_getsockopt5" = "unknown"; then
40120 wxUSE_SOCKETS=no
40121 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40122echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40123 else
40124 cat >>confdefs.h <<_ACEOF
40125#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
40126_ACEOF
40127
40128 fi
4d4ff94c
VZ
40129 ac_ext=c
40130ac_cpp='$CPP $CPPFLAGS'
40131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40133ac_compiler_gnu=$ac_cv_c_compiler_gnu
40134
a848cd7e
SC
40135 fi
40136fi
40137
40138if test "$wxUSE_SOCKETS" = "yes" ; then
40139 cat >>confdefs.h <<\_ACEOF
40140#define wxUSE_SOCKETS 1
40141_ACEOF
40142
40143 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
40144fi
40145
40146if test "$wxUSE_PROTOCOL" = "yes"; then
40147 if test "$wxUSE_SOCKETS" != "yes"; then
40148 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
40149echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
40150 wxUSE_PROTOCOL=no
40151 fi
40152fi
40153
40154if test "$wxUSE_PROTOCOL" = "yes"; then
40155 cat >>confdefs.h <<\_ACEOF
40156#define wxUSE_PROTOCOL 1
40157_ACEOF
40158
40159
40160 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
40161 cat >>confdefs.h <<\_ACEOF
40162#define wxUSE_PROTOCOL_HTTP 1
40163_ACEOF
40164
40165 fi
40166 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
40167 cat >>confdefs.h <<\_ACEOF
40168#define wxUSE_PROTOCOL_FTP 1
40169_ACEOF
40170
40171 fi
40172 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
40173 cat >>confdefs.h <<\_ACEOF
40174#define wxUSE_PROTOCOL_FILE 1
40175_ACEOF
40176
40177 fi
40178else
40179 if test "$wxUSE_FS_INET" = "yes"; then
40180 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
40181echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
40182 wxUSE_FS_INET="no"
40183 fi
40184fi
40185
40186if test "$wxUSE_URL" = "yes"; then
40187 if test "$wxUSE_PROTOCOL" != "yes"; then
40188 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
40189echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
40190 wxUSE_URL=no
40191 fi
40192 if test "$wxUSE_URL" = "yes"; then
40193 cat >>confdefs.h <<\_ACEOF
40194#define wxUSE_URL 1
40195_ACEOF
40196
40197 fi
40198fi
40199
40200if test "$wxUSE_FS_INET" = "yes"; then
40201 cat >>confdefs.h <<\_ACEOF
40202#define wxUSE_FS_INET 1
40203_ACEOF
40204
40205fi
40206
40207
ee45c548
MW
40208if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
40209 wxUSE_JOYSTICK=no
40210
40211 if test "$TOOLKIT" = "MSW"; then
40212 wxUSE_JOYSTICK=yes
40213
40214 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
40215 if test "$USE_DARWIN" = 1; then
40216 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
40217echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
40218 ac_ext=cc
40219ac_cpp='$CXXCPP $CPPFLAGS'
40220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40223
40224 cat >conftest.$ac_ext <<_ACEOF
40225/* confdefs.h. */
40226_ACEOF
40227cat confdefs.h >>conftest.$ac_ext
40228cat >>conftest.$ac_ext <<_ACEOF
40229/* end confdefs.h. */
40230 #include <IOKit/hid/IOHIDLib.h>
40231int
40232main ()
40233{
40234 IOHIDQueueInterface *qi = NULL;
40235 IOHIDCallbackFunction cb = NULL;
40236 qi->setEventCallout(NULL, cb, NULL, NULL);
40237 ;
40238 return 0;
40239}
40240_ACEOF
40241rm -f conftest.$ac_objext
40242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40243 (eval $ac_compile) 2>conftest.er1
40244 ac_status=$?
40245 grep -v '^ *+' conftest.er1 >conftest.err
40246 rm -f conftest.er1
40247 cat conftest.err >&5
40248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40249 (exit $ac_status); } &&
6ebeb4c7 40250 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
40251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40252 (eval $ac_try) 2>&5
40253 ac_status=$?
40254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40255 (exit $ac_status); }; } &&
40256 { ac_try='test -s conftest.$ac_objext'
40257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40258 (eval $ac_try) 2>&5
40259 ac_status=$?
40260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40261 (exit $ac_status); }; }; then
40262 wxUSE_JOYSTICK=yes
a848cd7e 40263
ee45c548
MW
40264else
40265 echo "$as_me: failed program was:" >&5
40266sed 's/^/| /' conftest.$ac_ext >&5
40267
40268fi
40269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40270 ac_ext=c
40271ac_cpp='$CPP $CPPFLAGS'
40272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40274ac_compiler_gnu=$ac_cv_c_compiler_gnu
40275
40276 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
40277echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
40278 fi
40279
40280 else
a848cd7e
SC
40281
40282for ac_header in linux/joystick.h
40283do
40284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40285if eval "test \"\${$as_ac_Header+set}\" = set"; then
40286 echo "$as_me:$LINENO: checking for $ac_header" >&5
40287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40288if eval "test \"\${$as_ac_Header+set}\" = set"; then
40289 echo $ECHO_N "(cached) $ECHO_C" >&6
40290fi
40291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40293else
40294 # Is the header compilable?
40295echo "$as_me:$LINENO: checking $ac_header usability" >&5
40296echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40297cat >conftest.$ac_ext <<_ACEOF
40298/* confdefs.h. */
40299_ACEOF
40300cat confdefs.h >>conftest.$ac_ext
40301cat >>conftest.$ac_ext <<_ACEOF
40302/* end confdefs.h. */
40303$ac_includes_default
40304#include <$ac_header>
40305_ACEOF
40306rm -f conftest.$ac_objext
40307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40308 (eval $ac_compile) 2>conftest.er1
a848cd7e 40309 ac_status=$?
ac1cb8d3
VS
40310 grep -v '^ *+' conftest.er1 >conftest.err
40311 rm -f conftest.er1
40312 cat conftest.err >&5
a848cd7e
SC
40313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40314 (exit $ac_status); } &&
6ebeb4c7 40315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40317 (eval $ac_try) 2>&5
40318 ac_status=$?
40319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40320 (exit $ac_status); }; } &&
40321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40323 (eval $ac_try) 2>&5
40324 ac_status=$?
40325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40326 (exit $ac_status); }; }; then
40327 ac_header_compiler=yes
40328else
40329 echo "$as_me: failed program was:" >&5
40330sed 's/^/| /' conftest.$ac_ext >&5
40331
40332ac_header_compiler=no
40333fi
ac1cb8d3 40334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40335echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40336echo "${ECHO_T}$ac_header_compiler" >&6
40337
40338# Is the header present?
40339echo "$as_me:$LINENO: checking $ac_header presence" >&5
40340echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40341cat >conftest.$ac_ext <<_ACEOF
40342/* confdefs.h. */
40343_ACEOF
40344cat confdefs.h >>conftest.$ac_ext
40345cat >>conftest.$ac_ext <<_ACEOF
40346/* end confdefs.h. */
40347#include <$ac_header>
40348_ACEOF
40349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40351 ac_status=$?
40352 grep -v '^ *+' conftest.er1 >conftest.err
40353 rm -f conftest.er1
40354 cat conftest.err >&5
40355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40356 (exit $ac_status); } >/dev/null; then
40357 if test -s conftest.err; then
40358 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 40359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
40360 else
40361 ac_cpp_err=
40362 fi
40363else
40364 ac_cpp_err=yes
40365fi
40366if test -z "$ac_cpp_err"; then
40367 ac_header_preproc=yes
40368else
40369 echo "$as_me: failed program was:" >&5
40370sed 's/^/| /' conftest.$ac_ext >&5
40371
40372 ac_header_preproc=no
40373fi
40374rm -f conftest.err conftest.$ac_ext
40375echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40376echo "${ECHO_T}$ac_header_preproc" >&6
40377
40378# So? What about this header?
ac1cb8d3
VS
40379case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40380 yes:no: )
a848cd7e
SC
40381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40382echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
40383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40384echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40385 ac_header_preproc=yes
a848cd7e 40386 ;;
ac1cb8d3 40387 no:yes:* )
a848cd7e
SC
40388 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40389echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
40390 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40391echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40392 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40393echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40394 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40395echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
40396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40397echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
40398 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40399echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
40400 (
40401 cat <<\_ASBOX
ac1cb8d3
VS
40402## ----------------------------------------- ##
40403## Report this to wx-dev@lists.wxwidgets.org ##
40404## ----------------------------------------- ##
a848cd7e
SC
40405_ASBOX
40406 ) |
40407 sed "s/^/$as_me: WARNING: /" >&2
40408 ;;
40409esac
40410echo "$as_me:$LINENO: checking for $ac_header" >&5
40411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40412if eval "test \"\${$as_ac_Header+set}\" = set"; then
40413 echo $ECHO_N "(cached) $ECHO_C" >&6
40414else
ac1cb8d3 40415 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
40416fi
40417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40419
40420fi
40421if test `eval echo '${'$as_ac_Header'}'` = yes; then
40422 cat >>confdefs.h <<_ACEOF
40423#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40424_ACEOF
ee45c548 40425 wxUSE_JOYSTICK=yes
a848cd7e
SC
40426fi
40427
40428done
40429
ee45c548 40430 fi
4cb1d3da 40431
ee45c548
MW
40432 if test "$wxUSE_JOYSTICK" = "yes"; then
40433 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40434#define wxUSE_JOYSTICK 1
40435_ACEOF
40436
ee45c548
MW
40437 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
40438 else
40439 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
40440echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
40441 fi
40442fi
40443
40444
40445
40446if test "$wxUSE_FONTMAP" = "yes" ; then
40447 cat >>confdefs.h <<\_ACEOF
40448#define wxUSE_FONTMAP 1
40449_ACEOF
40450
40451fi
40452
40453if test "$wxUSE_UNICODE" = "yes" ; then
40454 cat >>confdefs.h <<\_ACEOF
40455#define wxUSE_UNICODE 1
40456_ACEOF
40457
40458
40459 if test "$USE_WIN32" != 1; then
40460 wxUSE_UNICODE_MSLU=no
40461 fi
40462
40463 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
40464 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
40465echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
40466if test "${ac_cv_lib_unicows_main+set}" = set; then
40467 echo $ECHO_N "(cached) $ECHO_C" >&6
40468else
40469 ac_check_lib_save_LIBS=$LIBS
40470LIBS="-lunicows $LIBS"
40471cat >conftest.$ac_ext <<_ACEOF
40472/* confdefs.h. */
40473_ACEOF
40474cat confdefs.h >>conftest.$ac_ext
40475cat >>conftest.$ac_ext <<_ACEOF
40476/* end confdefs.h. */
40477
40478
40479int
40480main ()
40481{
40482main ();
40483 ;
40484 return 0;
40485}
40486_ACEOF
40487rm -f conftest.$ac_objext conftest$ac_exeext
40488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40489 (eval $ac_link) 2>conftest.er1
a848cd7e 40490 ac_status=$?
ac1cb8d3
VS
40491 grep -v '^ *+' conftest.er1 >conftest.err
40492 rm -f conftest.er1
40493 cat conftest.err >&5
a848cd7e
SC
40494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40495 (exit $ac_status); } &&
6ebeb4c7 40496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40498 (eval $ac_try) 2>&5
40499 ac_status=$?
40500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40501 (exit $ac_status); }; } &&
40502 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40504 (eval $ac_try) 2>&5
40505 ac_status=$?
40506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40507 (exit $ac_status); }; }; then
40508 ac_cv_lib_unicows_main=yes
40509else
40510 echo "$as_me: failed program was:" >&5
40511sed 's/^/| /' conftest.$ac_ext >&5
40512
40513ac_cv_lib_unicows_main=no
40514fi
ac1cb8d3
VS
40515rm -f conftest.err conftest.$ac_objext \
40516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40517LIBS=$ac_check_lib_save_LIBS
40518fi
40519echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
40520echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
40521if test $ac_cv_lib_unicows_main = yes; then
40522
40523 cat >>confdefs.h <<\_ACEOF
40524#define wxUSE_UNICODE_MSLU 1
40525_ACEOF
40526
40527
40528else
40529
40530 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
40531 Applications will only run on Windows NT/2000/XP!" >&5
40532echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
40533 Applications will only run on Windows NT/2000/XP!" >&2;}
40534 wxUSE_UNICODE_MSLU=no
40535
40536fi
40537
40538 fi
40539fi
40540
40541if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
40542 cat >>confdefs.h <<\_ACEOF
40543#define wxUSE_EXPERIMENTAL_PRINTF 1
40544_ACEOF
40545
40546fi
40547
40548
40549if test "$wxUSE_POSTSCRIPT" = "yes" ; then
40550 cat >>confdefs.h <<\_ACEOF
40551#define wxUSE_POSTSCRIPT 1
40552_ACEOF
40553
40554fi
40555
40556cat >>confdefs.h <<\_ACEOF
40557#define wxUSE_AFM_FOR_POSTSCRIPT 1
40558_ACEOF
40559
40560
40561cat >>confdefs.h <<\_ACEOF
40562#define wxUSE_NORMALIZED_PS_FONTS 1
40563_ACEOF
40564
40565
40566
40567if test "$wxUSE_CONSTRAINTS" = "yes"; then
40568 cat >>confdefs.h <<\_ACEOF
40569#define wxUSE_CONSTRAINTS 1
40570_ACEOF
40571
40572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
40573fi
40574
8a7b1113
VZ
40575if test "$wxUSE_MDI" = "yes"; then
40576 cat >>confdefs.h <<\_ACEOF
40577#define wxUSE_MDI 1
40578_ACEOF
40579
40580
40581 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
40582 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40583#define wxUSE_MDI_ARCHITECTURE 1
40584_ACEOF
40585
8a7b1113
VZ
40586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
40587 fi
a848cd7e
SC
40588fi
40589
40590if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
40591 cat >>confdefs.h <<\_ACEOF
40592#define wxUSE_DOC_VIEW_ARCHITECTURE 1
40593_ACEOF
40594
40595 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
40596 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
40597 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
40598 fi
40599fi
40600
40601if test "$wxUSE_HELP" = "yes"; then
40602 cat >>confdefs.h <<\_ACEOF
40603#define wxUSE_HELP 1
40604_ACEOF
40605
40606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
40607
40608 if test "$wxUSE_MSW" = 1; then
40609 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
40610 cat >>confdefs.h <<\_ACEOF
40611#define wxUSE_MS_HTML_HELP 1
40612_ACEOF
40613
40614 fi
40615 fi
40616
40617 if test "$wxUSE_WXHTML_HELP" = "yes"; then
40618 if test "$wxUSE_HTML" = "yes"; then
40619 cat >>confdefs.h <<\_ACEOF
40620#define wxUSE_WXHTML_HELP 1
40621_ACEOF
40622
40623 else
40624 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
40625echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
40626 wxUSE_WXHTML_HELP=no
40627 fi
40628 fi
40629fi
40630
40631if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40632 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40633 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
40634echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
40635 else
40636 cat >>confdefs.h <<\_ACEOF
40637#define wxUSE_PRINTING_ARCHITECTURE 1
40638_ACEOF
40639
40640 fi
40641 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
40642fi
40643
40644if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
40645 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
40646echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
40647 { (exit 1); exit 1; }; }
40648fi
40649
40650
efdf6afe
VZ
40651if test "$wxUSE_METAFILE" = "yes"; then
40652 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
40653 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
40654echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
40655 wxUSE_METAFILE=no
40656 fi
40657fi
40658
40659
a848cd7e
SC
40660if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
40661 -o "$wxUSE_CLIPBOARD" = "yes" \
40662 -o "$wxUSE_OLE" = "yes" \
40663 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
40664
40665for ac_header in ole2.h
40666do
40667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40668if eval "test \"\${$as_ac_Header+set}\" = set"; then
40669 echo "$as_me:$LINENO: checking for $ac_header" >&5
40670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40671if eval "test \"\${$as_ac_Header+set}\" = set"; then
40672 echo $ECHO_N "(cached) $ECHO_C" >&6
40673fi
40674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40675echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40676else
40677 # Is the header compilable?
40678echo "$as_me:$LINENO: checking $ac_header usability" >&5
40679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40680cat >conftest.$ac_ext <<_ACEOF
40681/* confdefs.h. */
40682_ACEOF
40683cat confdefs.h >>conftest.$ac_ext
40684cat >>conftest.$ac_ext <<_ACEOF
40685/* end confdefs.h. */
40686$ac_includes_default
40687#include <$ac_header>
40688_ACEOF
40689rm -f conftest.$ac_objext
40690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40691 (eval $ac_compile) 2>conftest.er1
a848cd7e 40692 ac_status=$?
ac1cb8d3
VS
40693 grep -v '^ *+' conftest.er1 >conftest.err
40694 rm -f conftest.er1
40695 cat conftest.err >&5
a848cd7e
SC
40696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40697 (exit $ac_status); } &&
6ebeb4c7 40698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40700 (eval $ac_try) 2>&5
40701 ac_status=$?
40702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40703 (exit $ac_status); }; } &&
40704 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40706 (eval $ac_try) 2>&5
40707 ac_status=$?
40708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40709 (exit $ac_status); }; }; then
40710 ac_header_compiler=yes
40711else
40712 echo "$as_me: failed program was:" >&5
40713sed 's/^/| /' conftest.$ac_ext >&5
40714
40715ac_header_compiler=no
40716fi
ac1cb8d3 40717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40718echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40719echo "${ECHO_T}$ac_header_compiler" >&6
40720
40721# Is the header present?
40722echo "$as_me:$LINENO: checking $ac_header presence" >&5
40723echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40724cat >conftest.$ac_ext <<_ACEOF
40725/* confdefs.h. */
40726_ACEOF
40727cat confdefs.h >>conftest.$ac_ext
40728cat >>conftest.$ac_ext <<_ACEOF
40729/* end confdefs.h. */
40730#include <$ac_header>
40731_ACEOF
40732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40734 ac_status=$?
40735 grep -v '^ *+' conftest.er1 >conftest.err
40736 rm -f conftest.er1
40737 cat conftest.err >&5
40738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40739 (exit $ac_status); } >/dev/null; then
40740 if test -s conftest.err; then
40741 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 40742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
40743 else
40744 ac_cpp_err=
40745 fi
40746else
40747 ac_cpp_err=yes
40748fi
40749if test -z "$ac_cpp_err"; then
40750 ac_header_preproc=yes
40751else
40752 echo "$as_me: failed program was:" >&5
40753sed 's/^/| /' conftest.$ac_ext >&5
40754
40755 ac_header_preproc=no
40756fi
40757rm -f conftest.err conftest.$ac_ext
40758echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40759echo "${ECHO_T}$ac_header_preproc" >&6
40760
40761# So? What about this header?
ac1cb8d3
VS
40762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40763 yes:no: )
a848cd7e
SC
40764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
40766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40768 ac_header_preproc=yes
a848cd7e 40769 ;;
ac1cb8d3 40770 no:yes:* )
a848cd7e
SC
40771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
40773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40774echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40778echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
40779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
40781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
40783 (
40784 cat <<\_ASBOX
ac1cb8d3
VS
40785## ----------------------------------------- ##
40786## Report this to wx-dev@lists.wxwidgets.org ##
40787## ----------------------------------------- ##
a848cd7e
SC
40788_ASBOX
40789 ) |
40790 sed "s/^/$as_me: WARNING: /" >&2
40791 ;;
40792esac
40793echo "$as_me:$LINENO: checking for $ac_header" >&5
40794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40795if eval "test \"\${$as_ac_Header+set}\" = set"; then
40796 echo $ECHO_N "(cached) $ECHO_C" >&6
40797else
ac1cb8d3 40798 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
40799fi
40800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40802
40803fi
40804if test `eval echo '${'$as_ac_Header'}'` = yes; then
40805 cat >>confdefs.h <<_ACEOF
40806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40807_ACEOF
40808
40809fi
40810
40811done
40812
40813
40814 if test "$ac_cv_header_ole2_h" = "yes" ; then
40815 if test "$GCC" = yes ; then
40816
40817
40818 ac_ext=cc
40819ac_cpp='$CXXCPP $CPPFLAGS'
40820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40823
40824
40825 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
40826echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
40827 cat >conftest.$ac_ext <<_ACEOF
40828/* confdefs.h. */
40829_ACEOF
40830cat confdefs.h >>conftest.$ac_ext
40831cat >>conftest.$ac_ext <<_ACEOF
40832/* end confdefs.h. */
40833#include <windows.h>
40834 #include <ole2.h>
40835int
40836main ()
40837{
40838
40839 ;
40840 return 0;
40841}
40842_ACEOF
40843rm -f conftest.$ac_objext
40844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40845 (eval $ac_compile) 2>conftest.er1
a848cd7e 40846 ac_status=$?
ac1cb8d3
VS
40847 grep -v '^ *+' conftest.er1 >conftest.err
40848 rm -f conftest.er1
40849 cat conftest.err >&5
a848cd7e
SC
40850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40851 (exit $ac_status); } &&
6ebeb4c7 40852 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40854 (eval $ac_try) 2>&5
40855 ac_status=$?
40856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40857 (exit $ac_status); }; } &&
40858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40860 (eval $ac_try) 2>&5
40861 ac_status=$?
40862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40863 (exit $ac_status); }; }; then
40864 echo "$as_me:$LINENO: result: no" >&5
40865echo "${ECHO_T}no" >&6
40866else
40867 echo "$as_me: failed program was:" >&5
40868sed 's/^/| /' conftest.$ac_ext >&5
40869
40870echo "$as_me:$LINENO: result: yes" >&5
40871echo "${ECHO_T}yes" >&6
40872 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
40873fi
ac1cb8d3 40874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40875 ac_ext=c
40876ac_cpp='$CPP $CPPFLAGS'
40877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40879ac_compiler_gnu=$ac_cv_c_compiler_gnu
40880
a848cd7e
SC
40881 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
40882 if test "$wxUSE_OLE" = "yes" ; then
40883 cat >>confdefs.h <<\_ACEOF
40884#define wxUSE_OLE 1
40885_ACEOF
40886
0b78747f 40887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
40888 fi
40889 fi
40890
40891 if test "$wxUSE_DATAOBJ" = "yes" ; then
40892 cat >>confdefs.h <<\_ACEOF
40893#define wxUSE_DATAOBJ 1
40894_ACEOF
40895
40896 fi
40897 else
40898 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
40899echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
40900
40901 wxUSE_CLIPBOARD=no
40902 wxUSE_DRAG_AND_DROP=no
40903 wxUSE_DATAOBJ=no
40904 wxUSE_OLE=no
40905 fi
40906
40907 if test "$wxUSE_METAFILE" = "yes"; then
40908 cat >>confdefs.h <<\_ACEOF
40909#define wxUSE_METAFILE 1
40910_ACEOF
40911
40912
40913 cat >>confdefs.h <<\_ACEOF
40914#define wxUSE_ENH_METAFILE 1
40915_ACEOF
40916
40917 fi
40918fi
40919
40920if test "$wxUSE_IPC" = "yes"; then
0b78747f 40921 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
40922 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
40923echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 40924 wxUSE_IPC=no
a848cd7e
SC
40925 fi
40926
0b78747f
MW
40927 if test "$wxUSE_IPC" = "yes"; then
40928 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40929#define wxUSE_IPC 1
40930_ACEOF
40931
0b78747f
MW
40932 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
40933 fi
a848cd7e
SC
40934fi
40935
eb730a0c 40936if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
40937 if test "$wxUSE_MGL" = 1; then
40938 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
40939echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
40940 wxUSE_DATAOBJ=no
40941 else
40942 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
40943#define wxUSE_DATAOBJ 1
40944_ACEOF
40945
2113bc77 40946 fi
eb730a0c
JS
40947else
40948 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
40949echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
40950 wxUSE_CLIPBOARD=no
40951 wxUSE_DRAG_AND_DROP=no
40952fi
40953
a848cd7e
SC
40954if test "$wxUSE_CLIPBOARD" = "yes"; then
40955 if test "$wxUSE_MGL" = 1; then
40956 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
40957echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
40958 wxUSE_CLIPBOARD=no
40959 fi
40960
40961 if test "$wxUSE_CLIPBOARD" = "yes"; then
40962 cat >>confdefs.h <<\_ACEOF
40963#define wxUSE_CLIPBOARD 1
40964_ACEOF
40965
a848cd7e
SC
40966 fi
40967fi
40968
40969if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
40970 if test "$wxUSE_GTK" = 1; then
40971 if test "$WXGTK12" != 1; then
40972 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
40973echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
40974 wxUSE_DRAG_AND_DROP=no
40975 fi
40976 fi
40977
40978 if test "$wxUSE_MOTIF" = 1; then
40979 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
40980echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
40981 wxUSE_DRAG_AND_DROP=no
40982 fi
40983
40984 if test "$wxUSE_X11" = 1; then
40985 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
40986echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
40987 wxUSE_DRAG_AND_DROP=no
40988 fi
40989
40990 if test "$wxUSE_MGL" = 1; then
40991 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
40992echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
40993 wxUSE_DRAG_AND_DROP=no
40994 fi
40995
40996 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
40997 cat >>confdefs.h <<\_ACEOF
40998#define wxUSE_DRAG_AND_DROP 1
40999_ACEOF
41000
41001 fi
41002
41003fi
41004
41005if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
41006 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
41007fi
41008
41009if test "$wxUSE_SPLINES" = "yes" ; then
41010 cat >>confdefs.h <<\_ACEOF
41011#define wxUSE_SPLINES 1
41012_ACEOF
41013
41014fi
41015
fbe2ca43
SN
41016if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
41017 cat >>confdefs.h <<\_ACEOF
41018#define wxUSE_MOUSEWHEEL 1
41019_ACEOF
41020
41021fi
41022
a848cd7e
SC
41023
41024USES_CONTROLS=0
41025if test "$wxUSE_CONTROLS" = "yes"; then
41026 USES_CONTROLS=1
41027fi
41028
41029if test "$wxUSE_ACCEL" = "yes"; then
41030 cat >>confdefs.h <<\_ACEOF
41031#define wxUSE_ACCEL 1
41032_ACEOF
41033
41034 USES_CONTROLS=1
41035fi
41036
41037if test "$wxUSE_BUTTON" = "yes"; then
41038 cat >>confdefs.h <<\_ACEOF
41039#define wxUSE_BUTTON 1
41040_ACEOF
41041
41042 USES_CONTROLS=1
41043fi
41044
41045if test "$wxUSE_BMPBUTTON" = "yes"; then
41046 cat >>confdefs.h <<\_ACEOF
41047#define wxUSE_BMPBUTTON 1
41048_ACEOF
41049
41050 USES_CONTROLS=1
41051fi
41052
41053if test "$wxUSE_CALCTRL" = "yes"; then
41054 cat >>confdefs.h <<\_ACEOF
41055#define wxUSE_CALENDARCTRL 1
41056_ACEOF
41057
41058 USES_CONTROLS=1
41059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
41060fi
41061
41062if test "$wxUSE_CARET" = "yes"; then
41063 cat >>confdefs.h <<\_ACEOF
41064#define wxUSE_CARET 1
41065_ACEOF
41066
41067 USES_CONTROLS=1
41068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
41069fi
41070
41071if test "$wxUSE_COMBOBOX" = "yes"; then
41072 cat >>confdefs.h <<\_ACEOF
41073#define wxUSE_COMBOBOX 1
41074_ACEOF
41075
41076 USES_CONTROLS=1
41077fi
41078
41079if test "$wxUSE_CHOICE" = "yes"; then
41080 cat >>confdefs.h <<\_ACEOF
41081#define wxUSE_CHOICE 1
41082_ACEOF
41083
41084 USES_CONTROLS=1
41085fi
41086
92bbdbcd
WS
41087if test "$wxUSE_CHOICEBOOK" = "yes"; then
41088 cat >>confdefs.h <<\_ACEOF
41089#define wxUSE_CHOICEBOOK 1
41090_ACEOF
41091
41092 USES_CONTROLS=1
41093fi
41094
a848cd7e
SC
41095if test "$wxUSE_CHECKBOX" = "yes"; then
41096 cat >>confdefs.h <<\_ACEOF
41097#define wxUSE_CHECKBOX 1
41098_ACEOF
41099
41100 USES_CONTROLS=1
41101fi
41102
41103if test "$wxUSE_CHECKLST" = "yes"; then
41104 cat >>confdefs.h <<\_ACEOF
41105#define wxUSE_CHECKLISTBOX 1
41106_ACEOF
41107
41108 USES_CONTROLS=1
41109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
41110fi
41111
da98e9be
VZ
41112if test "$wxUSE_DATEPICKCTRL" = "yes"; then
41113 cat >>confdefs.h <<\_ACEOF
41114#define wxUSE_DATEPICKCTRL 1
41115_ACEOF
41116
41117 USES_CONTROLS=1
41118fi
41119
a848cd7e
SC
41120if test "$wxUSE_DISPLAY" = "yes"; then
41121 cat >>confdefs.h <<\_ACEOF
41122#define wxUSE_DISPLAY 1
41123_ACEOF
41124
0b78747f 41125 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
41126fi
41127
41128if test "$wxUSE_GAUGE" = "yes"; then
41129 cat >>confdefs.h <<\_ACEOF
41130#define wxUSE_GAUGE 1
41131_ACEOF
41132
41133 USES_CONTROLS=1
41134fi
41135
41136if test "$wxUSE_GRID" = "yes"; then
41137 cat >>confdefs.h <<\_ACEOF
41138#define wxUSE_GRID 1
41139_ACEOF
41140
41141 USES_CONTROLS=1
41142 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
41143fi
41144
41145if test "$wxUSE_IMAGLIST" = "yes"; then
41146 cat >>confdefs.h <<\_ACEOF
41147#define wxUSE_IMAGLIST 1
41148_ACEOF
41149
41150fi
41151
41152if test "$wxUSE_LISTBOOK" = "yes"; then
41153 cat >>confdefs.h <<\_ACEOF
41154#define wxUSE_LISTBOOK 1
41155_ACEOF
41156
41157 USES_CONTROLS=1
41158fi
41159
41160if test "$wxUSE_LISTBOX" = "yes"; then
41161 cat >>confdefs.h <<\_ACEOF
41162#define wxUSE_LISTBOX 1
41163_ACEOF
41164
41165 USES_CONTROLS=1
0b78747f 41166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
41167fi
41168
41169if test "$wxUSE_LISTCTRL" = "yes"; then
41170 if test "$wxUSE_IMAGLIST" = "yes"; then
41171 cat >>confdefs.h <<\_ACEOF
41172#define wxUSE_LISTCTRL 1
41173_ACEOF
41174
41175 USES_CONTROLS=1
41176 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
41177 else
41178 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
41179echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
41180 fi
41181fi
41182
41183if test "$wxUSE_NOTEBOOK" = "yes"; then
41184 cat >>confdefs.h <<\_ACEOF
41185#define wxUSE_NOTEBOOK 1
41186_ACEOF
41187
41188 USES_CONTROLS=1
41189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
41190fi
41191
41192
41193if test "$wxUSE_RADIOBOX" = "yes"; then
41194 cat >>confdefs.h <<\_ACEOF
41195#define wxUSE_RADIOBOX 1
41196_ACEOF
41197
41198 USES_CONTROLS=1
41199fi
41200
41201if test "$wxUSE_RADIOBTN" = "yes"; then
41202 cat >>confdefs.h <<\_ACEOF
41203#define wxUSE_RADIOBTN 1
41204_ACEOF
41205
41206 USES_CONTROLS=1
41207fi
41208
41209if test "$wxUSE_SASH" = "yes"; then
41210 cat >>confdefs.h <<\_ACEOF
41211#define wxUSE_SASH 1
41212_ACEOF
41213
41214 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
41215fi
41216
41217if test "$wxUSE_SCROLLBAR" = "yes"; then
41218 cat >>confdefs.h <<\_ACEOF
41219#define wxUSE_SCROLLBAR 1
41220_ACEOF
41221
41222 USES_CONTROLS=1
41223 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
41224fi
41225
41226if test "$wxUSE_SLIDER" = "yes"; then
41227 cat >>confdefs.h <<\_ACEOF
41228#define wxUSE_SLIDER 1
41229_ACEOF
41230
41231 USES_CONTROLS=1
41232fi
41233
41234if test "$wxUSE_SPINBTN" = "yes"; then
41235 cat >>confdefs.h <<\_ACEOF
41236#define wxUSE_SPINBTN 1
41237_ACEOF
41238
41239 USES_CONTROLS=1
41240fi
41241
41242if test "$wxUSE_SPINCTRL" = "yes"; then
41243 cat >>confdefs.h <<\_ACEOF
41244#define wxUSE_SPINCTRL 1
41245_ACEOF
41246
41247 USES_CONTROLS=1
41248fi
41249
41250if test "$wxUSE_SPLITTER" = "yes"; then
41251 cat >>confdefs.h <<\_ACEOF
41252#define wxUSE_SPLITTER 1
41253_ACEOF
41254
41255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
41256fi
41257
41258if test "$wxUSE_STATBMP" = "yes"; then
41259 cat >>confdefs.h <<\_ACEOF
41260#define wxUSE_STATBMP 1
41261_ACEOF
41262
41263 USES_CONTROLS=1
41264fi
41265
41266if test "$wxUSE_STATBOX" = "yes"; then
41267 cat >>confdefs.h <<\_ACEOF
41268#define wxUSE_STATBOX 1
41269_ACEOF
41270
41271 USES_CONTROLS=1
41272fi
41273
41274if test "$wxUSE_STATTEXT" = "yes"; then
41275 cat >>confdefs.h <<\_ACEOF
41276#define wxUSE_STATTEXT 1
41277_ACEOF
41278
41279 USES_CONTROLS=1
41280fi
41281
41282if test "$wxUSE_STATLINE" = "yes"; then
41283 cat >>confdefs.h <<\_ACEOF
41284#define wxUSE_STATLINE 1
41285_ACEOF
41286
41287 USES_CONTROLS=1
41288fi
41289
41290if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
41291 cat >>confdefs.h <<\_ACEOF
41292#define wxUSE_NATIVE_STATUSBAR 1
41293_ACEOF
41294
a848cd7e
SC
41295 cat >>confdefs.h <<\_ACEOF
41296#define wxUSE_STATUSBAR 1
41297_ACEOF
41298
41299 USES_CONTROLS=1
41300
41301 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
41302fi
41303
41304if test "$wxUSE_TABDIALOG" = "yes"; then
41305 cat >>confdefs.h <<\_ACEOF
41306#define wxUSE_TAB_DIALOG 1
41307_ACEOF
41308
a848cd7e
SC
41309fi
41310
41311if test "$wxUSE_TEXTCTRL" = "yes"; then
41312 cat >>confdefs.h <<\_ACEOF
41313#define wxUSE_TEXTCTRL 1
41314_ACEOF
41315
41316 USES_CONTROLS=1
41317 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
41318fi
41319
41320if test "$wxUSE_TOGGLEBTN" = "yes"; then
41321 if test "$wxUSE_COCOA" = 1 ; then
41322 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
41323echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
41324 wxUSE_TOGGLEBTN=no
41325 fi
41326 if test "$wxUSE_UNIVERSAL" = "yes"; then
41327 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
41328echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
41329 wxUSE_TOGGLEBTN=no
41330 fi
41331
41332 if test "$wxUSE_TOGGLEBTN" = "yes"; then
41333 cat >>confdefs.h <<\_ACEOF
41334#define wxUSE_TOGGLEBTN 1
41335_ACEOF
41336
41337 USES_CONTROLS=1
41338 fi
41339fi
41340
41341if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
41342 cat >>confdefs.h <<\_ACEOF
41343#define wxUSE_TOOLBAR_SIMPLE 1
41344_ACEOF
41345
41346 wxUSE_TOOLBAR="yes"
41347 USES_CONTROLS=1
41348fi
41349
41350if test "$wxUSE_TOOLBAR" = "yes"; then
41351 cat >>confdefs.h <<\_ACEOF
41352#define wxUSE_TOOLBAR 1
41353_ACEOF
41354
41355 USES_CONTROLS=1
41356
41357 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
41358 wxUSE_TOOLBAR_NATIVE="yes"
41359 fi
41360
41361 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
41362 cat >>confdefs.h <<\_ACEOF
41363#define wxUSE_TOOLBAR_NATIVE 1
41364_ACEOF
41365
41366 USES_CONTROLS=1
41367 fi
41368
41369 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
41370fi
41371
41372if test "$wxUSE_TOOLTIPS" = "yes"; then
41373 if test "$wxUSE_MOTIF" = 1; then
41374 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
41375echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
41376 else
41377 if test "$wxUSE_UNIVERSAL" = "yes"; then
41378 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
41379echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
41380 else
41381 cat >>confdefs.h <<\_ACEOF
41382#define wxUSE_TOOLTIPS 1
41383_ACEOF
41384
41385 fi
41386 fi
41387fi
41388
41389if test "$wxUSE_TREECTRL" = "yes"; then
41390 if test "$wxUSE_IMAGLIST" = "yes"; then
41391 cat >>confdefs.h <<\_ACEOF
41392#define wxUSE_TREECTRL 1
41393_ACEOF
41394
41395 USES_CONTROLS=1
41396 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
41397 else
41398 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
41399echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
41400 fi
41401fi
41402
41403if test "$wxUSE_POPUPWIN" = "yes"; then
41404 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
41405 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
41406echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
41407 else
41408 if test "$wxUSE_PM" = 1; then
41409 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
41410echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
41411 else
41412 cat >>confdefs.h <<\_ACEOF
41413#define wxUSE_POPUPWIN 1
41414_ACEOF
41415
0b78747f 41416 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
41417
41418 USES_CONTROLS=1
41419 fi
41420 fi
41421fi
41422
0dcd06dd 41423if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
41424 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
41425 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
41426echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
41427 else
41428 cat >>confdefs.h <<\_ACEOF
41429#define wxUSE_DIALUP_MANAGER 1
41430_ACEOF
41431
41432 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
41433 fi
41434fi
41435
a848cd7e
SC
41436if test "$wxUSE_TIPWINDOW" = "yes"; then
41437 if test "$wxUSE_PM" = 1; then
41438 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
41439echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
41440 else
41441 cat >>confdefs.h <<\_ACEOF
41442#define wxUSE_TIPWINDOW 1
41443_ACEOF
41444
41445 fi
41446fi
41447
41448if test "$USES_CONTROLS" = 1; then
41449 cat >>confdefs.h <<\_ACEOF
41450#define wxUSE_CONTROLS 1
41451_ACEOF
41452
41453fi
41454
41455
41456if test "$wxUSE_ACCESSIBILITY" = "yes"; then
41457 cat >>confdefs.h <<\_ACEOF
41458#define wxUSE_ACCESSIBILITY 1
41459_ACEOF
41460
41461 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
41462fi
41463
38b4a946
VZ
41464if test "$wxUSE_DC_CACHEING" = "yes"; then
41465 cat >>confdefs.h <<\_ACEOF
41466#define wxUSE_DC_CACHEING 1
41467_ACEOF
41468
41469fi
41470
a848cd7e
SC
41471if test "$wxUSE_DRAGIMAGE" = "yes"; then
41472 cat >>confdefs.h <<\_ACEOF
41473#define wxUSE_DRAGIMAGE 1
41474_ACEOF
41475
41476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
41477fi
41478
41479if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
41480 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41481 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
41482echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
41483 else
41484 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41485#define wxUSE_EXCEPTIONS 1
41486_ACEOF
41487
07bea8f0
VS
41488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
41489 fi
a848cd7e
SC
41490fi
41491
41492USE_HTML=0
41493if test "$wxUSE_HTML" = "yes"; then
41494 cat >>confdefs.h <<\_ACEOF
41495#define wxUSE_HTML 1
41496_ACEOF
41497
41498 USE_HTML=1
41499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
41500 if test "$wxUSE_MAC" = 1; then
41501 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
41502 fi
a848cd7e 41503fi
646b6ec1 41504if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 41505 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
41506 old_CPPFLAGS="$CPPFLAGS"
41507 CPPFLAGS="$CPPFLAGS -x objective-c++"
41508 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
41509echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
41510if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
41511 echo $ECHO_N "(cached) $ECHO_C" >&6
41512else
41513 cat >conftest.$ac_ext <<_ACEOF
41514/* confdefs.h. */
41515_ACEOF
41516cat confdefs.h >>conftest.$ac_ext
41517cat >>conftest.$ac_ext <<_ACEOF
41518/* end confdefs.h. */
41519#include <Carbon/Carbon.h>
41520
41521#include <WebKit/HIWebView.h>
41522_ACEOF
41523rm -f conftest.$ac_objext
41524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41525 (eval $ac_compile) 2>conftest.er1
41526 ac_status=$?
41527 grep -v '^ *+' conftest.er1 >conftest.err
41528 rm -f conftest.er1
41529 cat conftest.err >&5
41530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41531 (exit $ac_status); } &&
6ebeb4c7 41532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
41533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41534 (eval $ac_try) 2>&5
41535 ac_status=$?
41536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41537 (exit $ac_status); }; } &&
41538 { ac_try='test -s conftest.$ac_objext'
41539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41540 (eval $ac_try) 2>&5
41541 ac_status=$?
41542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41543 (exit $ac_status); }; }; then
41544 ac_cv_header_WebKit_HIWebView_h=yes
41545else
41546 echo "$as_me: failed program was:" >&5
41547sed 's/^/| /' conftest.$ac_ext >&5
41548
41549ac_cv_header_WebKit_HIWebView_h=no
41550fi
41551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41552fi
41553echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
41554echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
41555if test $ac_cv_header_WebKit_HIWebView_h = yes; then
41556
41557 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
41558#define wxUSE_WEBKIT 1
41559_ACEOF
41560
07bea8f0
VS
41561 WEBKIT_LINK="-framework WebKit"
41562
41563else
41564
41565 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
41566echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
41567 wxUSE_WEBKIT=no
41568
646b6ec1
VS
41569fi
41570
07bea8f0
VS
41571
41572 CPPFLAGS="$old_CPPFLAGS"
41573 elif test "$wxUSE_COCOA" = 1; then
41574 cat >>confdefs.h <<\_ACEOF
41575#define wxUSE_WEBKIT 1
41576_ACEOF
41577
41578 else
41579 wxUSE_WEBKIT=no
41580 fi
41581fi
41582
9a8f0513
VS
41583USE_XRC=0
41584if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
41585 if test "$wxUSE_XML" != "yes"; then
41586 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
41587echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
41588 wxUSE_XRC=no
41589 else
41590 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
41591#define wxUSE_XRC 1
41592_ACEOF
41593
d2ebf0b7
VS
41594 USE_XRC=1
41595 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
41596 fi
9a8f0513 41597fi
07bea8f0 41598
a848cd7e
SC
41599if test "$wxUSE_MENUS" = "yes"; then
41600 cat >>confdefs.h <<\_ACEOF
41601#define wxUSE_MENUS 1
41602_ACEOF
41603
41604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
41605fi
41606
41607if test "$wxUSE_METAFILE" = "yes"; then
41608 cat >>confdefs.h <<\_ACEOF
41609#define wxUSE_METAFILE 1
41610_ACEOF
41611
41612fi
41613
41614if test "$wxUSE_MIMETYPE" = "yes"; then
41615 cat >>confdefs.h <<\_ACEOF
41616#define wxUSE_MIMETYPE 1
41617_ACEOF
41618
41619fi
41620
41621if test "$wxUSE_MINIFRAME" = "yes"; then
41622 cat >>confdefs.h <<\_ACEOF
41623#define wxUSE_MINIFRAME 1
41624_ACEOF
41625
41626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
41627fi
41628
41629if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
41630 cat >>confdefs.h <<\_ACEOF
41631#define wxUSE_SYSTEM_OPTIONS 1
41632_ACEOF
41633
41634 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 41635 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
41636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
41637 fi
41638fi
41639
41640
41641if test "$wxUSE_VALIDATORS" = "yes"; then
41642 cat >>confdefs.h <<\_ACEOF
41643#define wxUSE_VALIDATORS 1
41644_ACEOF
41645
41646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
41647fi
41648
41649if test "$wxUSE_PALETTE" = "yes" ; then
41650 cat >>confdefs.h <<\_ACEOF
41651#define wxUSE_PALETTE 1
41652_ACEOF
41653
41654fi
41655
41656if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
41657 LIBS=" -lunicows $LIBS"
41658fi
41659
41660
41661if test "$wxUSE_IMAGE" = "yes" ; then
41662 cat >>confdefs.h <<\_ACEOF
41663#define wxUSE_IMAGE 1
41664_ACEOF
41665
41666
41667 if test "$wxUSE_GIF" = "yes" ; then
41668 cat >>confdefs.h <<\_ACEOF
41669#define wxUSE_GIF 1
41670_ACEOF
41671
41672 fi
41673
41674 if test "$wxUSE_PCX" = "yes" ; then
41675 cat >>confdefs.h <<\_ACEOF
41676#define wxUSE_PCX 1
41677_ACEOF
41678
41679 fi
41680
41681 if test "$wxUSE_IFF" = "yes" ; then
41682 cat >>confdefs.h <<\_ACEOF
41683#define wxUSE_IFF 1
41684_ACEOF
41685
41686 fi
41687
41688 if test "$wxUSE_PNM" = "yes" ; then
41689 cat >>confdefs.h <<\_ACEOF
41690#define wxUSE_PNM 1
41691_ACEOF
41692
41693 fi
41694
41695 if test "$wxUSE_XPM" = "yes" ; then
41696 cat >>confdefs.h <<\_ACEOF
41697#define wxUSE_XPM 1
41698_ACEOF
41699
41700 fi
41701
41702 if test "$wxUSE_ICO_CUR" = "yes" ; then
41703 cat >>confdefs.h <<\_ACEOF
41704#define wxUSE_ICO_CUR 1
41705_ACEOF
41706
41707 fi
41708fi
41709
41710
41711if test "$wxUSE_CHOICEDLG" = "yes"; then
41712 cat >>confdefs.h <<\_ACEOF
41713#define wxUSE_CHOICEDLG 1
41714_ACEOF
41715
41716fi
41717
41718if test "$wxUSE_COLOURDLG" = "yes"; then
41719 cat >>confdefs.h <<\_ACEOF
41720#define wxUSE_COLOURDLG 1
41721_ACEOF
41722
41723fi
41724
41725if test "$wxUSE_FILEDLG" = "yes"; then
41726 cat >>confdefs.h <<\_ACEOF
41727#define wxUSE_FILEDLG 1
41728_ACEOF
41729
41730fi
41731
41732if test "$wxUSE_FINDREPLDLG" = "yes"; then
41733 cat >>confdefs.h <<\_ACEOF
41734#define wxUSE_FINDREPLDLG 1
41735_ACEOF
41736
41737fi
41738
41739if test "$wxUSE_FONTDLG" = "yes"; then
41740 cat >>confdefs.h <<\_ACEOF
41741#define wxUSE_FONTDLG 1
41742_ACEOF
41743
41744fi
41745
41746if test "$wxUSE_DIRDLG" = "yes"; then
41747 if test "$wxUSE_TREECTRL" != "yes"; then
41748 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
41749echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
41750 else
41751 cat >>confdefs.h <<\_ACEOF
41752#define wxUSE_DIRDLG 1
41753_ACEOF
41754
41755 fi
41756fi
41757
41758if test "$wxUSE_MSGDLG" = "yes"; then
41759 cat >>confdefs.h <<\_ACEOF
41760#define wxUSE_MSGDLG 1
41761_ACEOF
41762
41763fi
41764
41765if test "$wxUSE_NUMBERDLG" = "yes"; then
41766 cat >>confdefs.h <<\_ACEOF
41767#define wxUSE_NUMBERDLG 1
41768_ACEOF
41769
41770fi
41771
41772if test "$wxUSE_PROGRESSDLG" = "yes"; then
41773 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41774 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
41775echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
41776 else
41777 cat >>confdefs.h <<\_ACEOF
41778#define wxUSE_PROGRESSDLG 1
41779_ACEOF
41780
41781 fi
41782fi
41783
41784if test "$wxUSE_SPLASH" = "yes"; then
41785 cat >>confdefs.h <<\_ACEOF
41786#define wxUSE_SPLASH 1
41787_ACEOF
41788
2057db16 41789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
41790fi
41791
41792if test "$wxUSE_STARTUP_TIPS" = "yes"; then
41793 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41794 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
41795echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
41796 else
41797 cat >>confdefs.h <<\_ACEOF
41798#define wxUSE_STARTUP_TIPS 1
41799_ACEOF
41800
41801 fi
41802fi
41803
41804if test "$wxUSE_TEXTDLG" = "yes"; then
41805 cat >>confdefs.h <<\_ACEOF
41806#define wxUSE_TEXTDLG 1
41807_ACEOF
41808
41809fi
41810
41811if test "$wxUSE_WIZARDDLG" = "yes"; then
41812 cat >>confdefs.h <<\_ACEOF
41813#define wxUSE_WIZARDDLG 1
41814_ACEOF
41815
41816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
41817fi
41818
41819
ce756cb0 41820if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
41821 if test "$wxUSE_GTK" = 1; then
41822 wxUSE_GSTREAMER="yes"
41823
ce756cb0 41824
dae87f93 41825 succeeded=no
ce756cb0 41826
dae87f93
RN
41827 if test -z "$PKG_CONFIG"; then
41828 # Extract the first word of "pkg-config", so it can be a program name with args.
41829set dummy pkg-config; ac_word=$2
41830echo "$as_me:$LINENO: checking for $ac_word" >&5
41831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41832if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41833 echo $ECHO_N "(cached) $ECHO_C" >&6
41834else
41835 case $PKG_CONFIG in
41836 [\\/]* | ?:[\\/]*)
41837 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41838 ;;
41839 *)
41840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41841for as_dir in $PATH
41842do
41843 IFS=$as_save_IFS
41844 test -z "$as_dir" && as_dir=.
41845 for ac_exec_ext in '' $ac_executable_extensions; do
41846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41847 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41849 break 2
41850 fi
41851done
41852done
41853
41854 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41855 ;;
41856esac
41857fi
41858PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41859
41860if test -n "$PKG_CONFIG"; then
41861 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41862echo "${ECHO_T}$PKG_CONFIG" >&6
41863else
41864 echo "$as_me:$LINENO: result: no" >&5
41865echo "${ECHO_T}no" >&6
41866fi
41867
41868 fi
41869
41870 if test "$PKG_CONFIG" = "no" ; then
41871 echo "*** The pkg-config script could not be found. Make sure it is"
41872 echo "*** in your path, or set the PKG_CONFIG environment variable"
41873 echo "*** to the full path to pkg-config."
41874 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41875 else
41876 PKG_CONFIG_MIN_VERSION=0.9.0
41877 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41878 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
41879echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
41880
41881 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
41882 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 41883echo "${ECHO_T}yes" >&6
dae87f93 41884 succeeded=yes
ce756cb0 41885
dae87f93
RN
41886 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
41887echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
41888 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
41889 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
41890echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
41891
41892 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
41893echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
41894 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
41895 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
41896echo "${ECHO_T}$GSTREAMER_LIBS" >&6
41897 else
41898 GSTREAMER_CFLAGS=""
41899 GSTREAMER_LIBS=""
41900 ## If we have a custom action on failure, don't print errors, but
41901 ## do set a variable so people can do so.
41902 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 41903
dae87f93
RN
41904 fi
41905
41906
41907
41908 else
41909 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41910 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41911 fi
41912 fi
41913
41914 if test $succeeded = yes; then
41915
41916 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
41917 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 41918
ce756cb0 41919 else
dae87f93
RN
41920
41921 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
41922echo "$as_me: WARNING: GStreamer installation not found" >&2;}
41923 wxUSE_GSTREAMER="no"
41924
41925 fi
41926
41927
41928
41929
41930
41931 if test "x$GST_INSPECT" == "x"; then
41932 # Extract the first word of "gst-inspect", so it can be a program name with args.
41933set dummy gst-inspect; ac_word=$2
41934echo "$as_me:$LINENO: checking for $ac_word" >&5
41935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41936if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
41937 echo $ECHO_N "(cached) $ECHO_C" >&6
41938else
41939 if test -n "$GST_INSPECT"; then
41940 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
41941else
41942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41943for as_dir in $PATH
41944do
41945 IFS=$as_save_IFS
41946 test -z "$as_dir" && as_dir=.
41947 for ac_exec_ext in '' $ac_executable_extensions; do
41948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41949 ac_cv_prog_GST_INSPECT="gst-inspect"
41950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41951 break 2
ce756cb0 41952 fi
dae87f93
RN
41953done
41954done
41955
41956fi
41957fi
41958GST_INSPECT=$ac_cv_prog_GST_INSPECT
41959if test -n "$GST_INSPECT"; then
41960 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
41961echo "${ECHO_T}$GST_INSPECT" >&6
41962else
41963 echo "$as_me:$LINENO: result: no" >&5
41964echo "${ECHO_T}no" >&6
41965fi
41966
41967 fi
41968
41969 if test "x$GST_INSPECT" != "x"; then
41970 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
41971echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
41972 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
41973 echo "$as_me:$LINENO: result: found." >&5
41974echo "${ECHO_T}found." >&6
ce756cb0 41975
ce756cb0 41976 else
dae87f93
RN
41977 echo "$as_me:$LINENO: result: not found." >&5
41978echo "${ECHO_T}not found." >&6
41979
41980 wxUSE_GSTREAMER="no"
41981 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
41982echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
41983
41984 fi
41985 fi
41986
41987
41988 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
41989echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
41990if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
41991 echo $ECHO_N "(cached) $ECHO_C" >&6
41992else
41993 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
41994/* confdefs.h. */
41995_ACEOF
41996cat confdefs.h >>conftest.$ac_ext
41997cat >>conftest.$ac_ext <<_ACEOF
41998/* end confdefs.h. */
dae87f93 41999#include <gst/gst.h>
ce756cb0 42000
dae87f93 42001#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
42002_ACEOF
42003rm -f conftest.$ac_objext
42004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42005 (eval $ac_compile) 2>conftest.er1
42006 ac_status=$?
42007 grep -v '^ *+' conftest.er1 >conftest.err
42008 rm -f conftest.er1
42009 cat conftest.err >&5
42010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42011 (exit $ac_status); } &&
6ebeb4c7 42012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
42013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42014 (eval $ac_try) 2>&5
42015 ac_status=$?
42016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42017 (exit $ac_status); }; } &&
42018 { ac_try='test -s conftest.$ac_objext'
42019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42020 (eval $ac_try) 2>&5
42021 ac_status=$?
42022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42023 (exit $ac_status); }; }; then
dae87f93 42024 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
42025else
42026 echo "$as_me: failed program was:" >&5
42027sed 's/^/| /' conftest.$ac_ext >&5
42028
dae87f93 42029ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
42030fi
42031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
42032fi
42033echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
42034echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
42035if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
42036 :
42037else
ce756cb0 42038
dae87f93
RN
42039 wxUSE_GSTREAMER="no"
42040 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
42041echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 42042
dae87f93 42043fi
ce756cb0 42044
dae87f93
RN
42045
42046
42047 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
42048echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
42049
0ad5d837
VZ
42050 ac_find_libraries=
42051 for ac_dir in $SEARCH_LIB;
ce756cb0 42052 do
3eca31dc 42053 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
42054 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
42055 ac_find_libraries=$ac_dir
42056 break 2
42057 fi
42058 done
42059 done
42060
ce756cb0 42061
dae87f93
RN
42062 if test "$ac_find_libraries" = "" ; then
42063 echo "$as_me:$LINENO: result: no" >&5
42064echo "${ECHO_T}no" >&6
42065 wxUSE_GSTREAMER="no"
42066 else
42067 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42068echo "${ECHO_T}yes" >&6
dae87f93 42069 fi
ce756cb0 42070
dae87f93
RN
42071 if test "$wxUSE_GSTREAMER" = "yes"; then
42072 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
42073#define wxUSE_GSTREAMER 1
42074_ACEOF
42075
dae87f93
RN
42076 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
42077echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
42078 fi
42079 fi
42080 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
42081 cat >>confdefs.h <<\_ACEOF
42082#define wxUSE_MEDIACTRL 1
42083_ACEOF
42084
42085fi
42086
42087
a848cd7e
SC
42088if test "$cross_compiling" = "yes"; then
42089 OSINFO="\"$host\""
42090else
42091 OSINFO=`uname -s -r -m`
42092 OSINFO="\"$OSINFO\""
42093fi
42094
42095cat >>confdefs.h <<_ACEOF
42096#define WXWIN_OS_DESCRIPTION $OSINFO
42097_ACEOF
42098
42099
42100
42101if test "x$prefix" != "xNONE"; then
42102 wxPREFIX=$prefix
42103else
42104 wxPREFIX=$ac_default_prefix
42105fi
42106
42107cat >>confdefs.h <<_ACEOF
42108#define wxINSTALL_PREFIX "$wxPREFIX"
42109_ACEOF
42110
42111
a848cd7e
SC
42112
42113
42114CORE_BASE_LIBS="net base"
42115CORE_GUI_LIBS="adv core"
42116
42117if test "$wxUSE_XML" = "yes" ; then
42118 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
42119fi
42120if test "$wxUSE_ODBC" != "no" ; then
42121 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
42122 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
42123fi
42124if test "$wxUSE_HTML" = "yes" ; then
42125 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
42126fi
61639efb
VZ
42127if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42128 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
42129fi
9a8f0513
VS
42130if test "$wxUSE_XRC" = "yes" ; then
42131 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
42132fi
a848cd7e
SC
42133
42134if test "$wxUSE_GUI" != "yes"; then
42135 CORE_GUI_LIBS=""
42136fi
42137
42138
42139
42140
42141
42142
42143
42144
42145if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 42146 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
42147 if test "$USE_DARWIN" = 1; then
42148 LDFLAGS="$LDFLAGS -framework QuickTime"
42149 else
42150 LDFLAGS="$LDFLAGS -lQuickTimeLib"
42151 fi
07bea8f0 42152 fi
5dcf30a0 42153 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
42154 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
42155 else
42156 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 42157 fi
a848cd7e
SC
42158fi
42159if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 42160 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
42161 if test "$wxUSE_MEDIACTRL" = "yes"; then
42162 LDFLAGS="$LDFLAGS -framework QuickTime"
42163 fi
a848cd7e 42164fi
19b27e78
MW
42165if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
42166 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
42167fi
a848cd7e
SC
42168
42169
42170LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
42171
42172have_cos=0
42173have_floor=0
42174
42175for ac_func in cos
42176do
42177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42178echo "$as_me:$LINENO: checking for $ac_func" >&5
42179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42180if eval "test \"\${$as_ac_var+set}\" = set"; then
42181 echo $ECHO_N "(cached) $ECHO_C" >&6
42182else
42183 cat >conftest.$ac_ext <<_ACEOF
42184/* confdefs.h. */
42185_ACEOF
42186cat confdefs.h >>conftest.$ac_ext
42187cat >>conftest.$ac_ext <<_ACEOF
42188/* end confdefs.h. */
ac1cb8d3
VS
42189/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42191#define $ac_func innocuous_$ac_func
42192
a848cd7e
SC
42193/* System header to define __stub macros and hopefully few prototypes,
42194 which can conflict with char $ac_func (); below.
42195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42196 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42197
a848cd7e
SC
42198#ifdef __STDC__
42199# include <limits.h>
42200#else
42201# include <assert.h>
42202#endif
ac1cb8d3
VS
42203
42204#undef $ac_func
42205
a848cd7e
SC
42206/* Override any gcc2 internal prototype to avoid an error. */
42207#ifdef __cplusplus
42208extern "C"
42209{
42210#endif
42211/* We use char because int might match the return type of a gcc2
42212 builtin and then its argument prototype would still apply. */
42213char $ac_func ();
42214/* The GNU C library defines this for functions which it implements
42215 to always fail with ENOSYS. Some functions are actually named
42216 something starting with __ and the normal name is an alias. */
42217#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42218choke me
42219#else
42220char (*f) () = $ac_func;
42221#endif
42222#ifdef __cplusplus
42223}
42224#endif
42225
42226int
42227main ()
42228{
42229return f != $ac_func;
42230 ;
42231 return 0;
42232}
42233_ACEOF
42234rm -f conftest.$ac_objext conftest$ac_exeext
42235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42236 (eval $ac_link) 2>conftest.er1
a848cd7e 42237 ac_status=$?
ac1cb8d3
VS
42238 grep -v '^ *+' conftest.er1 >conftest.err
42239 rm -f conftest.er1
42240 cat conftest.err >&5
a848cd7e
SC
42241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42242 (exit $ac_status); } &&
6ebeb4c7 42243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42245 (eval $ac_try) 2>&5
42246 ac_status=$?
42247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42248 (exit $ac_status); }; } &&
42249 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42251 (eval $ac_try) 2>&5
42252 ac_status=$?
42253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42254 (exit $ac_status); }; }; then
42255 eval "$as_ac_var=yes"
42256else
42257 echo "$as_me: failed program was:" >&5
42258sed 's/^/| /' conftest.$ac_ext >&5
42259
42260eval "$as_ac_var=no"
42261fi
ac1cb8d3
VS
42262rm -f conftest.err conftest.$ac_objext \
42263 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42264fi
42265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42266echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42267if test `eval echo '${'$as_ac_var'}'` = yes; then
42268 cat >>confdefs.h <<_ACEOF
42269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42270_ACEOF
42271 have_cos=1
42272fi
42273done
42274
42275
42276for ac_func in floor
42277do
42278as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42279echo "$as_me:$LINENO: checking for $ac_func" >&5
42280echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42281if eval "test \"\${$as_ac_var+set}\" = set"; then
42282 echo $ECHO_N "(cached) $ECHO_C" >&6
42283else
42284 cat >conftest.$ac_ext <<_ACEOF
42285/* confdefs.h. */
42286_ACEOF
42287cat confdefs.h >>conftest.$ac_ext
42288cat >>conftest.$ac_ext <<_ACEOF
42289/* end confdefs.h. */
ac1cb8d3
VS
42290/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42292#define $ac_func innocuous_$ac_func
42293
a848cd7e
SC
42294/* System header to define __stub macros and hopefully few prototypes,
42295 which can conflict with char $ac_func (); below.
42296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42297 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42298
a848cd7e
SC
42299#ifdef __STDC__
42300# include <limits.h>
42301#else
42302# include <assert.h>
42303#endif
ac1cb8d3
VS
42304
42305#undef $ac_func
42306
a848cd7e
SC
42307/* Override any gcc2 internal prototype to avoid an error. */
42308#ifdef __cplusplus
42309extern "C"
42310{
42311#endif
42312/* We use char because int might match the return type of a gcc2
42313 builtin and then its argument prototype would still apply. */
42314char $ac_func ();
42315/* The GNU C library defines this for functions which it implements
42316 to always fail with ENOSYS. Some functions are actually named
42317 something starting with __ and the normal name is an alias. */
42318#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42319choke me
42320#else
42321char (*f) () = $ac_func;
42322#endif
42323#ifdef __cplusplus
42324}
42325#endif
42326
42327int
42328main ()
42329{
42330return f != $ac_func;
42331 ;
42332 return 0;
42333}
42334_ACEOF
42335rm -f conftest.$ac_objext conftest$ac_exeext
42336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42337 (eval $ac_link) 2>conftest.er1
a848cd7e 42338 ac_status=$?
ac1cb8d3
VS
42339 grep -v '^ *+' conftest.er1 >conftest.err
42340 rm -f conftest.er1
42341 cat conftest.err >&5
a848cd7e
SC
42342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42343 (exit $ac_status); } &&
6ebeb4c7 42344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42346 (eval $ac_try) 2>&5
42347 ac_status=$?
42348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42349 (exit $ac_status); }; } &&
42350 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42352 (eval $ac_try) 2>&5
42353 ac_status=$?
42354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42355 (exit $ac_status); }; }; then
42356 eval "$as_ac_var=yes"
42357else
42358 echo "$as_me: failed program was:" >&5
42359sed 's/^/| /' conftest.$ac_ext >&5
42360
42361eval "$as_ac_var=no"
42362fi
ac1cb8d3
VS
42363rm -f conftest.err conftest.$ac_objext \
42364 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42365fi
42366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42367echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42368if test `eval echo '${'$as_ac_var'}'` = yes; then
42369 cat >>confdefs.h <<_ACEOF
42370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42371_ACEOF
42372 have_floor=1
42373fi
42374done
42375
42376echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
42377echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
42378if test "$have_cos" = 1 -a "$have_floor" = 1; then
42379 echo "$as_me:$LINENO: result: yes" >&5
42380echo "${ECHO_T}yes" >&6
42381else
42382 echo "$as_me:$LINENO: result: no" >&5
42383echo "${ECHO_T}no" >&6
42384 LIBS="$LIBS -lm"
42385 # use different functions to avoid configure caching
42386 have_sin=0
42387 have_ceil=0
42388
42389for ac_func in sin
42390do
42391as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42392echo "$as_me:$LINENO: checking for $ac_func" >&5
42393echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42394if eval "test \"\${$as_ac_var+set}\" = set"; then
42395 echo $ECHO_N "(cached) $ECHO_C" >&6
42396else
42397 cat >conftest.$ac_ext <<_ACEOF
42398/* confdefs.h. */
42399_ACEOF
42400cat confdefs.h >>conftest.$ac_ext
42401cat >>conftest.$ac_ext <<_ACEOF
42402/* end confdefs.h. */
ac1cb8d3
VS
42403/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42405#define $ac_func innocuous_$ac_func
42406
a848cd7e
SC
42407/* System header to define __stub macros and hopefully few prototypes,
42408 which can conflict with char $ac_func (); below.
42409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42410 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42411
a848cd7e
SC
42412#ifdef __STDC__
42413# include <limits.h>
42414#else
42415# include <assert.h>
42416#endif
ac1cb8d3
VS
42417
42418#undef $ac_func
42419
a848cd7e
SC
42420/* Override any gcc2 internal prototype to avoid an error. */
42421#ifdef __cplusplus
42422extern "C"
42423{
42424#endif
42425/* We use char because int might match the return type of a gcc2
42426 builtin and then its argument prototype would still apply. */
42427char $ac_func ();
42428/* The GNU C library defines this for functions which it implements
42429 to always fail with ENOSYS. Some functions are actually named
42430 something starting with __ and the normal name is an alias. */
42431#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42432choke me
42433#else
42434char (*f) () = $ac_func;
42435#endif
42436#ifdef __cplusplus
42437}
42438#endif
42439
42440int
42441main ()
42442{
42443return f != $ac_func;
42444 ;
42445 return 0;
42446}
42447_ACEOF
42448rm -f conftest.$ac_objext conftest$ac_exeext
42449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42450 (eval $ac_link) 2>conftest.er1
a848cd7e 42451 ac_status=$?
ac1cb8d3
VS
42452 grep -v '^ *+' conftest.er1 >conftest.err
42453 rm -f conftest.er1
42454 cat conftest.err >&5
a848cd7e
SC
42455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42456 (exit $ac_status); } &&
6ebeb4c7 42457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42459 (eval $ac_try) 2>&5
42460 ac_status=$?
42461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42462 (exit $ac_status); }; } &&
42463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42465 (eval $ac_try) 2>&5
42466 ac_status=$?
42467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42468 (exit $ac_status); }; }; then
42469 eval "$as_ac_var=yes"
42470else
42471 echo "$as_me: failed program was:" >&5
42472sed 's/^/| /' conftest.$ac_ext >&5
42473
42474eval "$as_ac_var=no"
42475fi
ac1cb8d3
VS
42476rm -f conftest.err conftest.$ac_objext \
42477 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42478fi
42479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42480echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42481if test `eval echo '${'$as_ac_var'}'` = yes; then
42482 cat >>confdefs.h <<_ACEOF
42483#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42484_ACEOF
42485 have_sin=1
42486fi
42487done
42488
42489
42490for ac_func in ceil
42491do
42492as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42493echo "$as_me:$LINENO: checking for $ac_func" >&5
42494echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42495if eval "test \"\${$as_ac_var+set}\" = set"; then
42496 echo $ECHO_N "(cached) $ECHO_C" >&6
42497else
42498 cat >conftest.$ac_ext <<_ACEOF
42499/* confdefs.h. */
42500_ACEOF
42501cat confdefs.h >>conftest.$ac_ext
42502cat >>conftest.$ac_ext <<_ACEOF
42503/* end confdefs.h. */
ac1cb8d3
VS
42504/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42506#define $ac_func innocuous_$ac_func
42507
a848cd7e
SC
42508/* System header to define __stub macros and hopefully few prototypes,
42509 which can conflict with char $ac_func (); below.
42510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42511 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42512
a848cd7e
SC
42513#ifdef __STDC__
42514# include <limits.h>
42515#else
42516# include <assert.h>
42517#endif
ac1cb8d3
VS
42518
42519#undef $ac_func
42520
a848cd7e
SC
42521/* Override any gcc2 internal prototype to avoid an error. */
42522#ifdef __cplusplus
42523extern "C"
42524{
42525#endif
42526/* We use char because int might match the return type of a gcc2
42527 builtin and then its argument prototype would still apply. */
42528char $ac_func ();
42529/* The GNU C library defines this for functions which it implements
42530 to always fail with ENOSYS. Some functions are actually named
42531 something starting with __ and the normal name is an alias. */
42532#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42533choke me
42534#else
42535char (*f) () = $ac_func;
42536#endif
42537#ifdef __cplusplus
42538}
42539#endif
42540
42541int
42542main ()
42543{
42544return f != $ac_func;
42545 ;
42546 return 0;
42547}
42548_ACEOF
42549rm -f conftest.$ac_objext conftest$ac_exeext
42550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42551 (eval $ac_link) 2>conftest.er1
a848cd7e 42552 ac_status=$?
ac1cb8d3
VS
42553 grep -v '^ *+' conftest.er1 >conftest.err
42554 rm -f conftest.er1
42555 cat conftest.err >&5
a848cd7e
SC
42556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42557 (exit $ac_status); } &&
6ebeb4c7 42558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42560 (eval $ac_try) 2>&5
42561 ac_status=$?
42562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42563 (exit $ac_status); }; } &&
42564 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42566 (eval $ac_try) 2>&5
42567 ac_status=$?
42568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42569 (exit $ac_status); }; }; then
42570 eval "$as_ac_var=yes"
42571else
42572 echo "$as_me: failed program was:" >&5
42573sed 's/^/| /' conftest.$ac_ext >&5
42574
42575eval "$as_ac_var=no"
42576fi
ac1cb8d3
VS
42577rm -f conftest.err conftest.$ac_objext \
42578 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42579fi
42580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42581echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42582if test `eval echo '${'$as_ac_var'}'` = yes; then
42583 cat >>confdefs.h <<_ACEOF
42584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42585_ACEOF
42586 have_ceil=1
42587fi
42588done
42589
42590 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
42591echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
42592 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
42593 echo "$as_me:$LINENO: result: yes" >&5
42594echo "${ECHO_T}yes" >&6
42595 else
42596 echo "$as_me:$LINENO: result: no" >&5
42597echo "${ECHO_T}no" >&6
42598 # not sure we should warn the user, crash, etc.
42599 fi
42600fi
42601
42602if test "$wxUSE_GUI" = "yes"; then
42603
42604
8bce5cda
MW
42605 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
42606 dynamic erase event exec font image minimal mobile \
42607 mobile/wxedit mobile/styles propsize render \
42608 richedit rotate shaped vscroll widgets"
a848cd7e
SC
42609
42610 if test "$wxUSE_MONOLITHIC" != "yes"; then
42611 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
42612 fi
0b78747f 42613 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
42614 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
42615 if test "$wxUSE_UNIVERSAL" != "yes"; then
42616 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
42617 fi
42618 fi
42619 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
42620 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 42621 fi
a848cd7e
SC
42622else
42623 SAMPLES_SUBDIRS="console"
42624fi
42625
42626
ceec2216 42627INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
42628-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
42629
42630if test "$GXX" = yes ; then
6ebeb4c7 42631 CWARNINGS="-Wall -Wundef"
5294a27e 42632 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
6ebeb4c7 42633fi
a848cd7e
SC
42634
42635EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
42636
0c3c69fc 42637CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 42638CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 42639CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 42640
95986553
DE
42641if test "x$MWCC" = "xyes"; then
42642
42643 CC="$CC -cwd source -I-"
42644 CXX="$CXX -cwd source -I-"
42645fi
42646
a848cd7e 42647
0c3c69fc 42648LIBS=`echo $LIBS`
a848cd7e
SC
42649EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
42650EXTRALIBS_XML="$EXPAT_LINK"
42651EXTRALIBS_HTML="$MSPACK_LINK"
42652EXTRALIBS_ODBC="$ODBC_LINK"
42653if test "$wxUSE_GUI" = "yes"; then
2e350179 42654 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
42655fi
42656if test "$wxUSE_OPENGL" = "yes"; then
42657 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
42658fi
42659
42660LDFLAGS="$LDFLAGS $PROFILE"
42661
42662if test "$wxUSE_GTK" = 1; then
42663 WXCONFIG_INCLUDE=
42664else
42665 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
42666fi
42667
42668WXCONFIG_EXTRALIBS="$LIBS"
42669
42670if test "$wxUSE_REGEX" = "builtin" ; then
74802184 42671 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
42672fi
42673if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 42674 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
42675fi
42676if test "$wxUSE_ODBC" = "builtin" ; then
74802184 42677 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
42678fi
42679if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 42680 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
42681fi
42682if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 42683 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
42684fi
42685if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 42686 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
42687fi
42688if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 42689 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
42690fi
42691
42692for i in $wxconfig_3rdparty ; do
74802184 42693 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
42694done
42695
42696
42697if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
42698 WXUNIV=1
42699else
42700 WXUNIV=0
42701fi
42702
42703
42704
42705
42706
42707
42708
42709
42710
42711if test $wxUSE_MONOLITHIC = "yes" ; then
42712 MONOLITHIC=1
42713else
42714 MONOLITHIC=0
42715fi
42716
42717if test $wxUSE_PLUGINS = "yes" ; then
42718 USE_PLUGINS=1
42719else
42720 USE_PLUGINS=0
42721fi
42722
42723if test $wxUSE_ODBC != "no" ; then
42724 USE_ODBC=1
42725else
42726 USE_ODBC=0
42727fi
42728
16358932
VZ
42729if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42730 USE_QA=1
42731else
42732 USE_QA=0
42733fi
42734
a848cd7e
SC
42735if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
42736 OFFICIAL_BUILD=1
42737else
42738 OFFICIAL_BUILD=0
42739fi
42740
42741
42742
42743
42744
42745
42746
42747
42748
42749
42750
42751
42752
42753
42754
42755
42756
42757
42758
ceec2216 42759
d1c38808 42760
a848cd7e
SC
42761
42762
42763TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
42764
42765
42766
42767
42768
42769
42770
42771
4d4ff94c
VZ
42772case "$TOOLKIT" in
42773 GTK)
42774 TOOLKIT_USER="GTK+"
42775 if test "$WXGTK20" = 1; then
42776 TOOLKIT_USER="$TOOLKIT_USER 2"
42777 fi
9a8f0513 42778 ;;
4d4ff94c
VZ
42779
42780 *)
42781 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 42782 ;;
4d4ff94c 42783esac
a848cd7e 42784
fb00f58d
JS
42785if test "$wxUSE_WINE" = "yes"; then
42786 BAKEFILE_FORCE_PLATFORM=win32
42787fi
42788
9a8f0513 42789
1e9e8aba
DE
42790
42791
a848cd7e
SC
42792 if test "x$BAKEFILE_HOST" = "x"; then
42793 BAKEFILE_HOST="${host}"
42794 fi
42795
42796 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
42797
42798 if test -n "$ac_tool_prefix"; then
42799 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
42800set dummy ${ac_tool_prefix}ranlib; ac_word=$2
42801echo "$as_me:$LINENO: checking for $ac_word" >&5
42802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42803if test "${ac_cv_prog_RANLIB+set}" = set; then
42804 echo $ECHO_N "(cached) $ECHO_C" >&6
42805else
42806 if test -n "$RANLIB"; then
42807 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
42808else
42809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42810for as_dir in $PATH
42811do
42812 IFS=$as_save_IFS
42813 test -z "$as_dir" && as_dir=.
42814 for ac_exec_ext in '' $ac_executable_extensions; do
42815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42816 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
42817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42818 break 2
42819 fi
42820done
42821done
42822
42823fi
42824fi
42825RANLIB=$ac_cv_prog_RANLIB
42826if test -n "$RANLIB"; then
42827 echo "$as_me:$LINENO: result: $RANLIB" >&5
42828echo "${ECHO_T}$RANLIB" >&6
42829else
42830 echo "$as_me:$LINENO: result: no" >&5
42831echo "${ECHO_T}no" >&6
42832fi
42833
42834fi
42835if test -z "$ac_cv_prog_RANLIB"; then
42836 ac_ct_RANLIB=$RANLIB
42837 # Extract the first word of "ranlib", so it can be a program name with args.
42838set dummy ranlib; ac_word=$2
42839echo "$as_me:$LINENO: checking for $ac_word" >&5
42840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42841if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42842 echo $ECHO_N "(cached) $ECHO_C" >&6
42843else
42844 if test -n "$ac_ct_RANLIB"; then
42845 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
42846else
42847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42848for as_dir in $PATH
42849do
42850 IFS=$as_save_IFS
42851 test -z "$as_dir" && as_dir=.
42852 for ac_exec_ext in '' $ac_executable_extensions; do
42853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42854 ac_cv_prog_ac_ct_RANLIB="ranlib"
42855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42856 break 2
42857 fi
42858done
42859done
42860
42861 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
42862fi
42863fi
42864ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
42865if test -n "$ac_ct_RANLIB"; then
42866 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
42867echo "${ECHO_T}$ac_ct_RANLIB" >&6
42868else
42869 echo "$as_me:$LINENO: result: no" >&5
42870echo "${ECHO_T}no" >&6
42871fi
42872
42873 RANLIB=$ac_ct_RANLIB
42874else
42875 RANLIB="$ac_cv_prog_RANLIB"
42876fi
42877
42878 # Find a good install program. We prefer a C program (faster),
42879# so one script is as good as another. But avoid the broken or
42880# incompatible versions:
42881# SysV /etc/install, /usr/sbin/install
42882# SunOS /usr/etc/install
42883# IRIX /sbin/install
42884# AIX /bin/install
42885# AmigaOS /C/install, which installs bootblocks on floppy discs
42886# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
42887# AFS /usr/afsws/bin/install, which mishandles nonexistent args
42888# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 42889# OS/2's system install, which has a completely different semantic
a848cd7e
SC
42890# ./install, which can be erroneously created by make from ./install.sh.
42891echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
42892echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
42893if test -z "$INSTALL"; then
42894if test "${ac_cv_path_install+set}" = set; then
42895 echo $ECHO_N "(cached) $ECHO_C" >&6
42896else
42897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42898for as_dir in $PATH
42899do
42900 IFS=$as_save_IFS
42901 test -z "$as_dir" && as_dir=.
42902 # Account for people who put trailing slashes in PATH elements.
42903case $as_dir/ in
42904 ./ | .// | /cC/* | \
42905 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 42906 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
42907 /usr/ucb/* ) ;;
42908 *)
42909 # OSF1 and SCO ODT 3.0 have their own names for install.
42910 # Don't use installbsd from OSF since it installs stuff as root
42911 # by default.
42912 for ac_prog in ginstall scoinst install; do
42913 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
42914 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
42915 if test $ac_prog = install &&
42916 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
42917 # AIX install. It has an incompatible calling convention.
42918 :
42919 elif test $ac_prog = install &&
42920 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
42921 # program-specific install script used by HP pwplus--don't use.
42922 :
42923 else
42924 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
42925 break 3
42926 fi
42927 fi
a848cd7e
SC
42928 done
42929 done
42930 ;;
42931esac
42932done
42933
42934
42935fi
42936 if test "${ac_cv_path_install+set}" = set; then
42937 INSTALL=$ac_cv_path_install
42938 else
42939 # As a last resort, use the slow shell script. We don't cache a
42940 # path for INSTALL within a source directory, because that will
42941 # break other packages using the cache if that directory is
42942 # removed, or if the path is relative.
42943 INSTALL=$ac_install_sh
42944 fi
42945fi
42946echo "$as_me:$LINENO: result: $INSTALL" >&5
42947echo "${ECHO_T}$INSTALL" >&6
42948
42949# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
42950# It thinks the first close brace ends the variable substitution.
42951test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
42952
42953test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
42954
42955test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
42956
42957 echo "$as_me:$LINENO: checking whether ln -s works" >&5
42958echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
42959LN_S=$as_ln_s
42960if test "$LN_S" = "ln -s"; then
42961 echo "$as_me:$LINENO: result: yes" >&5
42962echo "${ECHO_T}yes" >&6
42963else
42964 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
42965echo "${ECHO_T}no, using $LN_S" >&6
42966fi
42967
42968
42969 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
42970echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 42971set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
42972if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
42973 echo $ECHO_N "(cached) $ECHO_C" >&6
42974else
42975 cat >conftest.make <<\_ACEOF
42976all:
42977 @echo 'ac_maketemp="$(MAKE)"'
42978_ACEOF
42979# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42980eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
42981if test -n "$ac_maketemp"; then
42982 eval ac_cv_prog_make_${ac_make}_set=yes
42983else
42984 eval ac_cv_prog_make_${ac_make}_set=no
42985fi
42986rm -f conftest.make
42987fi
42988if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42989 echo "$as_me:$LINENO: result: yes" >&5
42990echo "${ECHO_T}yes" >&6
42991 SET_MAKE=
42992else
42993 echo "$as_me:$LINENO: result: no" >&5
42994echo "${ECHO_T}no" >&6
42995 SET_MAKE="MAKE=${MAKE-make}"
42996fi
42997
42998
42999
43000 if test -n "$ac_tool_prefix"; then
43001 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
43002set dummy ${ac_tool_prefix}ar; ac_word=$2
43003echo "$as_me:$LINENO: checking for $ac_word" >&5
43004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43005if test "${ac_cv_prog_AR+set}" = set; then
43006 echo $ECHO_N "(cached) $ECHO_C" >&6
43007else
43008 if test -n "$AR"; then
43009 ac_cv_prog_AR="$AR" # Let the user override the test.
43010else
43011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43012for as_dir in $PATH
43013do
43014 IFS=$as_save_IFS
43015 test -z "$as_dir" && as_dir=.
43016 for ac_exec_ext in '' $ac_executable_extensions; do
43017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43018 ac_cv_prog_AR="${ac_tool_prefix}ar"
43019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43020 break 2
43021 fi
43022done
43023done
43024
43025fi
43026fi
43027AR=$ac_cv_prog_AR
43028if test -n "$AR"; then
43029 echo "$as_me:$LINENO: result: $AR" >&5
43030echo "${ECHO_T}$AR" >&6
43031else
43032 echo "$as_me:$LINENO: result: no" >&5
43033echo "${ECHO_T}no" >&6
43034fi
43035
43036fi
43037if test -z "$ac_cv_prog_AR"; then
43038 ac_ct_AR=$AR
43039 # Extract the first word of "ar", so it can be a program name with args.
43040set dummy ar; ac_word=$2
43041echo "$as_me:$LINENO: checking for $ac_word" >&5
43042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43043if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
43044 echo $ECHO_N "(cached) $ECHO_C" >&6
43045else
43046 if test -n "$ac_ct_AR"; then
43047 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
43048else
43049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43050for as_dir in $PATH
43051do
43052 IFS=$as_save_IFS
43053 test -z "$as_dir" && as_dir=.
43054 for ac_exec_ext in '' $ac_executable_extensions; do
43055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43056 ac_cv_prog_ac_ct_AR="ar"
43057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43058 break 2
43059 fi
43060done
43061done
43062
43063 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
43064fi
43065fi
43066ac_ct_AR=$ac_cv_prog_ac_ct_AR
43067if test -n "$ac_ct_AR"; then
43068 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
43069echo "${ECHO_T}$ac_ct_AR" >&6
43070else
43071 echo "$as_me:$LINENO: result: no" >&5
43072echo "${ECHO_T}no" >&6
43073fi
43074
43075 AR=$ac_ct_AR
43076else
43077 AR="$ac_cv_prog_AR"
43078fi
43079
43080 if test -n "$ac_tool_prefix"; then
43081 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
43082set dummy ${ac_tool_prefix}strip; ac_word=$2
43083echo "$as_me:$LINENO: checking for $ac_word" >&5
43084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43085if test "${ac_cv_prog_STRIP+set}" = set; then
43086 echo $ECHO_N "(cached) $ECHO_C" >&6
43087else
43088 if test -n "$STRIP"; then
43089 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
43090else
43091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43092for as_dir in $PATH
43093do
43094 IFS=$as_save_IFS
43095 test -z "$as_dir" && as_dir=.
43096 for ac_exec_ext in '' $ac_executable_extensions; do
43097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43098 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
43099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43100 break 2
43101 fi
43102done
43103done
43104
43105fi
43106fi
43107STRIP=$ac_cv_prog_STRIP
43108if test -n "$STRIP"; then
43109 echo "$as_me:$LINENO: result: $STRIP" >&5
43110echo "${ECHO_T}$STRIP" >&6
43111else
43112 echo "$as_me:$LINENO: result: no" >&5
43113echo "${ECHO_T}no" >&6
43114fi
43115
43116fi
43117if test -z "$ac_cv_prog_STRIP"; then
43118 ac_ct_STRIP=$STRIP
43119 # Extract the first word of "strip", so it can be a program name with args.
43120set dummy strip; ac_word=$2
43121echo "$as_me:$LINENO: checking for $ac_word" >&5
43122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43123if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
43124 echo $ECHO_N "(cached) $ECHO_C" >&6
43125else
43126 if test -n "$ac_ct_STRIP"; then
43127 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
43128else
43129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43130for as_dir in $PATH
43131do
43132 IFS=$as_save_IFS
43133 test -z "$as_dir" && as_dir=.
43134 for ac_exec_ext in '' $ac_executable_extensions; do
43135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43136 ac_cv_prog_ac_ct_STRIP="strip"
43137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43138 break 2
43139 fi
43140done
43141done
43142
43143 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
43144fi
43145fi
43146ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
43147if test -n "$ac_ct_STRIP"; then
43148 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
43149echo "${ECHO_T}$ac_ct_STRIP" >&6
43150else
43151 echo "$as_me:$LINENO: result: no" >&5
43152echo "${ECHO_T}no" >&6
43153fi
43154
43155 STRIP=$ac_ct_STRIP
43156else
43157 STRIP="$ac_cv_prog_STRIP"
43158fi
43159
43160 if test -n "$ac_tool_prefix"; then
43161 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
43162set dummy ${ac_tool_prefix}nm; ac_word=$2
43163echo "$as_me:$LINENO: checking for $ac_word" >&5
43164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43165if test "${ac_cv_prog_NM+set}" = set; then
43166 echo $ECHO_N "(cached) $ECHO_C" >&6
43167else
43168 if test -n "$NM"; then
43169 ac_cv_prog_NM="$NM" # Let the user override the test.
43170else
43171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43172for as_dir in $PATH
43173do
43174 IFS=$as_save_IFS
43175 test -z "$as_dir" && as_dir=.
43176 for ac_exec_ext in '' $ac_executable_extensions; do
43177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43178 ac_cv_prog_NM="${ac_tool_prefix}nm"
43179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43180 break 2
43181 fi
43182done
43183done
43184
43185fi
43186fi
43187NM=$ac_cv_prog_NM
43188if test -n "$NM"; then
43189 echo "$as_me:$LINENO: result: $NM" >&5
43190echo "${ECHO_T}$NM" >&6
43191else
43192 echo "$as_me:$LINENO: result: no" >&5
43193echo "${ECHO_T}no" >&6
43194fi
43195
43196fi
43197if test -z "$ac_cv_prog_NM"; then
43198 ac_ct_NM=$NM
43199 # Extract the first word of "nm", so it can be a program name with args.
43200set dummy nm; ac_word=$2
43201echo "$as_me:$LINENO: checking for $ac_word" >&5
43202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43203if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
43204 echo $ECHO_N "(cached) $ECHO_C" >&6
43205else
43206 if test -n "$ac_ct_NM"; then
43207 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
43208else
43209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43210for as_dir in $PATH
43211do
43212 IFS=$as_save_IFS
43213 test -z "$as_dir" && as_dir=.
43214 for ac_exec_ext in '' $ac_executable_extensions; do
43215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43216 ac_cv_prog_ac_ct_NM="nm"
43217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43218 break 2
43219 fi
43220done
43221done
43222
43223 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
43224fi
43225fi
43226ac_ct_NM=$ac_cv_prog_ac_ct_NM
43227if test -n "$ac_ct_NM"; then
43228 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
43229echo "${ECHO_T}$ac_ct_NM" >&6
43230else
43231 echo "$as_me:$LINENO: result: no" >&5
43232echo "${ECHO_T}no" >&6
43233fi
43234
43235 NM=$ac_ct_NM
43236else
43237 NM="$ac_cv_prog_NM"
43238fi
43239
43240
43241 case ${BAKEFILE_HOST} in
43242 *-hp-hpux* )
1e9e8aba 43243 INSTALL_DIR="mkdir -p"
a848cd7e
SC
43244 ;;
43245 *) INSTALL_DIR="$INSTALL -d"
43246 ;;
43247 esac
43248
43249
43250 LDFLAGS_GUI=
43251 case ${BAKEFILE_HOST} in
43252 *-*-cygwin* | *-*-mingw32* )
43253 LDFLAGS_GUI="-mwindows"
43254 esac
43255
43256
43257 fi
43258
43259 echo "$as_me:$LINENO: checking if make is GNU make" >&5
43260echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
43261if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
43262 echo $ECHO_N "(cached) $ECHO_C" >&6
43263else
43264
43265 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
43266 egrep -s GNU > /dev/null); then
43267 bakefile_cv_prog_makeisgnu="yes"
43268 else
43269 bakefile_cv_prog_makeisgnu="no"
43270 fi
43271
43272fi
43273echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
43274echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
43275
43276 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
43277 IF_GNU_MAKE=""
43278 else
43279 IF_GNU_MAKE="#"
43280 fi
43281
43282
43283
43284 PLATFORM_UNIX=0
43285 PLATFORM_WIN32=0
43286 PLATFORM_MSDOS=0
43287 PLATFORM_MAC=0
1e9e8aba 43288 PLATFORM_MACOS=0
a848cd7e
SC
43289 PLATFORM_MACOSX=0
43290 PLATFORM_OS2=0
1e9e8aba 43291 PLATFORM_BEOS=0
a848cd7e
SC
43292
43293 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
43294 case "${BAKEFILE_HOST}" in
810b94f0 43295 *-*-mingw32* )
a848cd7e
SC
43296 PLATFORM_WIN32=1
43297 ;;
43298 *-pc-msdosdjgpp )
43299 PLATFORM_MSDOS=1
43300 ;;
43301 *-pc-os2_emx | *-pc-os2-emx )
43302 PLATFORM_OS2=1
43303 ;;
47bd5406 43304 *-*-darwin* )
a848cd7e
SC
43305 PLATFORM_MAC=1
43306 PLATFORM_MACOSX=1
43307 ;;
1e9e8aba
DE
43308 *-*-beos* )
43309 PLATFORM_BEOS=1
43310 ;;
43311 powerpc-apple-macos* )
43312 PLATFORM_MAC=1
43313 PLATFORM_MACOS=1
43314 ;;
a848cd7e
SC
43315 * )
43316 PLATFORM_UNIX=1
43317 ;;
43318 esac
43319 else
43320 case "$BAKEFILE_FORCE_PLATFORM" in
43321 win32 )
43322 PLATFORM_WIN32=1
43323 ;;
43324 msdos )
43325 PLATFORM_MSDOS=1
43326 ;;
43327 os2 )
43328 PLATFORM_OS2=1
43329 ;;
43330 darwin )
43331 PLATFORM_MAC=1
43332 PLATFORM_MACOSX=1
43333 ;;
43334 unix )
43335 PLATFORM_UNIX=1
43336 ;;
1e9e8aba
DE
43337 beos )
43338 PLATFORM_BEOS=1
43339 ;;
a848cd7e
SC
43340 * )
43341 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
43342echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
43343 { (exit 1); exit 1; }; }
43344 ;;
43345 esac
43346 fi
43347
43348
43349
43350
43351
43352
43353
43354
43355
1e9e8aba
DE
43356
43357
a848cd7e
SC
43358 # Check whether --enable-omf or --disable-omf was given.
43359if test "${enable_omf+set}" = set; then
43360 enableval="$enable_omf"
43361 bk_os2_use_omf="$enableval"
43362fi;
43363
43364 case "${BAKEFILE_HOST}" in
43365 *-*-darwin* )
47bd5406
VZ
43366 if test "x$GCC" = "xyes"; then
43367 CFLAGS="$CFLAGS -fno-common"
43368 CXXFLAGS="$CXXFLAGS -fno-common"
43369 fi
43370 if test "x$XLCC" = "xyes"; then
43371 CFLAGS="$CFLAGS -qnocommon"
43372 CXXFLAGS="$CXXFLAGS -qnocommon"
43373 fi
a848cd7e
SC
43374 ;;
43375
43376 *-pc-os2_emx | *-pc-os2-emx )
43377 if test "x$bk_os2_use_omf" = "xyes" ; then
43378 AR=emxomfar
43379 RANLIB=:
43380 LDFLAGS="-Zomf $LDFLAGS"
43381 CFLAGS="-Zomf $CFLAGS"
43382 CXXFLAGS="-Zomf $CXXFLAGS"
43383 OS2_LIBEXT="lib"
43384 else
43385 OS2_LIBEXT="a"
43386 fi
43387 ;;
1e9e8aba
DE
43388
43389 i*86-*-beos* )
43390 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
43391 ;;
a848cd7e
SC
43392 esac
43393
43394
43395 SO_SUFFIX="so"
43396 SO_SUFFIX_MODULE="so"
43397 EXEEXT=""
43398 LIBPREFIX="lib"
43399 LIBEXT=".a"
43400 DLLPREFIX="lib"
43401 DLLPREFIX_MODULE=""
43402 DLLIMP_SUFFIX=""
810b94f0 43403 dlldir="$libdir"
a848cd7e
SC
43404
43405 case "${BAKEFILE_HOST}" in
43406 *-hp-hpux* )
43407 SO_SUFFIX="sl"
43408 SO_SUFFIX_MODULE="sl"
43409 ;;
43410 *-*-aix* )
43411 SO_SUFFIX="a"
43412 SO_SUFFIX_MODULE="a"
43413 ;;
810b94f0
MW
43414 *-*-cygwin* )
43415 SO_SUFFIX="dll"
43416 SO_SUFFIX_MODULE="dll"
43417 DLLIMP_SUFFIX="dll.a"
43418 EXEEXT=".exe"
43419 DLLPREFIX="cyg"
43420 dlldir="$bindir"
43421 ;;
43422 *-*-mingw32* )
a848cd7e
SC
43423 SO_SUFFIX="dll"
43424 SO_SUFFIX_MODULE="dll"
43425 DLLIMP_SUFFIX="dll.a"
43426 EXEEXT=".exe"
43427 DLLPREFIX=""
810b94f0 43428 dlldir="$bindir"
a848cd7e
SC
43429 ;;
43430 *-pc-msdosdjgpp )
43431 EXEEXT=".exe"
43432 DLLPREFIX=""
810b94f0 43433 dlldir="$bindir"
a848cd7e
SC
43434 ;;
43435 *-pc-os2_emx | *-pc-os2-emx )
43436 SO_SUFFIX="dll"
43437 SO_SUFFIX_MODULE="dll"
43438 DLLIMP_SUFFIX=$OS2_LIBEXT
43439 EXEEXT=".exe"
43440 DLLPREFIX=""
43441 LIBPREFIX=""
43442 LIBEXT=".$OS2_LIBEXT"
810b94f0 43443 dlldir="$bindir"
a848cd7e 43444 ;;
47bd5406 43445 *-*-darwin* )
a848cd7e
SC
43446 SO_SUFFIX="dylib"
43447 SO_SUFFIX_MODULE="bundle"
43448 ;;
43449 esac
43450
43451 if test "x$DLLIMP_SUFFIX" = "x" ; then
43452 DLLIMP_SUFFIX="$SO_SUFFIX"
43453 fi
43454
43455
43456
43457
43458
43459
43460
43461
43462
43463
43464
810b94f0 43465
1e9e8aba
DE
43466 PIC_FLAG=""
43467 if test "x$GCC" = "xyes"; then
a848cd7e
SC
43468 PIC_FLAG="-fPIC"
43469 fi
43470
1e9e8aba
DE
43471 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
43472 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 43473 WINDOWS_IMPLIB=0
1e9e8aba 43474
a848cd7e
SC
43475 case "${BAKEFILE_HOST}" in
43476 *-hp-hpux* )
1e9e8aba 43477 if test "x$GCC" != "xyes"; then
a848cd7e
SC
43478 LDFLAGS="$LDFLAGS -L/usr/lib"
43479
43480 SHARED_LD_CC="${CC} -b -o"
43481 SHARED_LD_CXX="${CXX} -b -o"
43482 PIC_FLAG="+Z"
43483 fi
43484 ;;
43485
43486 *-*-linux* )
43487 if test "x$GCC" != "xyes"; then
43488 echo "$as_me:$LINENO: checking for Intel compiler" >&5
43489echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
43490if test "${bakefile_cv_prog_icc+set}" = set; then
43491 echo $ECHO_N "(cached) $ECHO_C" >&6
43492else
43493
43494 cat >conftest.$ac_ext <<_ACEOF
43495/* confdefs.h. */
43496_ACEOF
43497cat confdefs.h >>conftest.$ac_ext
43498cat >>conftest.$ac_ext <<_ACEOF
43499/* end confdefs.h. */
43500
43501int
43502main ()
43503{
43504
43505 #ifndef __INTEL_COMPILER
43506 #error Not icc
43507 #endif
43508
43509 ;
43510 return 0;
43511}
43512_ACEOF
43513rm -f conftest.$ac_objext
43514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43515 (eval $ac_compile) 2>conftest.er1
a848cd7e 43516 ac_status=$?
ac1cb8d3
VS
43517 grep -v '^ *+' conftest.er1 >conftest.err
43518 rm -f conftest.er1
43519 cat conftest.err >&5
a848cd7e
SC
43520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43521 (exit $ac_status); } &&
6ebeb4c7 43522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43524 (eval $ac_try) 2>&5
43525 ac_status=$?
43526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43527 (exit $ac_status); }; } &&
43528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43530 (eval $ac_try) 2>&5
43531 ac_status=$?
43532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43533 (exit $ac_status); }; }; then
43534 bakefile_cv_prog_icc=yes
43535else
43536 echo "$as_me: failed program was:" >&5
43537sed 's/^/| /' conftest.$ac_ext >&5
43538
43539bakefile_cv_prog_icc=no
43540
43541fi
ac1cb8d3 43542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43543
43544fi
43545echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
43546echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
43547 if test "$bakefile_cv_prog_icc" = "yes"; then
43548 PIC_FLAG="-KPIC"
43549 fi
43550 fi
43551 ;;
43552
43553 *-*-solaris2* )
43554 if test "x$GCC" != xyes ; then
43555 SHARED_LD_CC="${CC} -G -o"
43556 SHARED_LD_CXX="${CXX} -G -o"
43557 PIC_FLAG="-KPIC"
43558 fi
43559 ;;
43560
43561 *-*-darwin* )
43562
43563 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43564echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
43565if test "${wx_cv_gcc31+set}" = set; then
43566 echo $ECHO_N "(cached) $ECHO_C" >&6
43567else
43568
43569 cat >conftest.$ac_ext <<_ACEOF
43570/* confdefs.h. */
43571_ACEOF
43572cat confdefs.h >>conftest.$ac_ext
43573cat >>conftest.$ac_ext <<_ACEOF
43574/* end confdefs.h. */
43575
43576int
43577main ()
43578{
43579
43580 #if (__GNUC__ < 3) || \
43581 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
43582 #error old gcc
43583 #endif
43584
43585 ;
43586 return 0;
43587}
43588_ACEOF
43589rm -f conftest.$ac_objext
43590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43591 (eval $ac_compile) 2>conftest.er1
a848cd7e 43592 ac_status=$?
ac1cb8d3
VS
43593 grep -v '^ *+' conftest.er1 >conftest.err
43594 rm -f conftest.er1
43595 cat conftest.err >&5
a848cd7e
SC
43596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43597 (exit $ac_status); } &&
6ebeb4c7 43598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43600 (eval $ac_try) 2>&5
43601 ac_status=$?
43602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43603 (exit $ac_status); }; } &&
43604 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43606 (eval $ac_try) 2>&5
43607 ac_status=$?
43608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43609 (exit $ac_status); }; }; then
43610
43611 wx_cv_gcc31=yes
43612
43613else
43614 echo "$as_me: failed program was:" >&5
43615sed 's/^/| /' conftest.$ac_ext >&5
43616
43617
43618 wx_cv_gcc31=no
43619
43620
43621fi
ac1cb8d3 43622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43623
43624fi
43625echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
43626echo "${ECHO_T}$wx_cv_gcc31" >&6
43627 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
43628
43629D='$'
43630cat <<EOF >shared-ld-sh
a848cd7e
SC
43631#!/bin/sh
43632#-----------------------------------------------------------------------------
43633#-- Name: distrib/mac/shared-ld-sh
43634#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
43635#-- Author: Gilles Depeyrot
43636#-- Copyright: (c) 2002 Gilles Depeyrot
43637#-- Licence: any use permitted
43638#-----------------------------------------------------------------------------
43639
43640verbose=0
43641args=""
43642objects=""
43643linking_flag="-dynamiclib"
810b94f0 43644ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 43645
473276a9
VS
43646while test ${D}# -gt 0; do
43647 case ${D}1 in
a848cd7e
SC
43648
43649 -v)
43650 verbose=1
43651 ;;
43652
43653 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
43654 # collect these options and values
473276a9 43655 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
43656 shift
43657 ;;
43658
810b94f0
MW
43659 -s|-Wl,*)
43660 # collect these load args
43661 ldargs="${D}{ldargs} ${D}1"
2113bc77 43662 ;;
810b94f0
MW
43663
43664 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 43665 # collect these options
473276a9 43666 args="${D}{args} ${D}1"
a848cd7e
SC
43667 ;;
43668
43669 -dynamiclib|-bundle)
473276a9 43670 linking_flag="${D}1"
a848cd7e
SC
43671 ;;
43672
43673 -*)
473276a9 43674 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
43675 exit 1
43676 ;;
43677
43678 *.o | *.a | *.dylib)
43679 # collect object files
473276a9 43680 objects="${D}{objects} ${D}1"
a848cd7e
SC
43681 ;;
43682
43683 *)
473276a9 43684 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
43685 exit 1
43686 ;;
43687
43688 esac
43689 shift
43690done
43691
810b94f0
MW
43692status=0
43693
a848cd7e
SC
43694#
43695# Link one module containing all the others
43696#
473276a9 43697if test ${D}{verbose} = 1; then
810b94f0 43698 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 43699fi
810b94f0 43700c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 43701status=${D}?
a848cd7e
SC
43702
43703#
810b94f0
MW
43704# Link the shared library from the single module created, but only if the
43705# previous command didn't fail:
a848cd7e 43706#
810b94f0
MW
43707if test ${D}{status} = 0; then
43708 if test ${D}{verbose} = 1; then
43709 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
43710 fi
43711 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
43712 status=${D}?
a848cd7e
SC
43713fi
43714
43715#
43716# Remove intermediate module
43717#
473276a9 43718rm -f master.${D}${D}.o
a848cd7e 43719
810b94f0 43720exit ${D}status
a848cd7e 43721EOF
473276a9 43722
a848cd7e
SC
43723 chmod +x shared-ld-sh
43724
43725 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
43726 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
43727 SHARED_LD_CXX="$SHARED_LD_CC"
43728 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
43729 else
43730 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
43731 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
43732 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
43733 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
43734 fi
43735
47bd5406
VZ
43736 if test "x$GCC" == "xyes"; then
43737 PIC_FLAG="-dynamic -fPIC"
43738 fi
43739 if test "x$XLCC" = "xyes"; then
43740 PIC_FLAG="-dynamic -DPIC"
43741 fi
a848cd7e
SC
43742 ;;
43743
43744 *-*-aix* )
f6b50c59
VZ
43745 if test "x$GCC" = "xyes"; then
43746 PIC_FLAG=""
43747
43748 case "${BAKEFILE_HOST}" in
43749 *-*-aix5* )
43750 LD_EXPFULL="-Wl,-bexpfull"
43751 ;;
43752 esac
43753
7b94a67c
VZ
43754 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
43755 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
0ad5d837 43756 else
f6b50c59 43757 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
43758set dummy makeC++SharedLib; ac_word=$2
43759echo "$as_me:$LINENO: checking for $ac_word" >&5
43760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43761if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
43762 echo $ECHO_N "(cached) $ECHO_C" >&6
43763else
43764 if test -n "$AIX_CXX_LD"; then
43765 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
43766else
43767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43768for as_dir in $PATH
43769do
43770 IFS=$as_save_IFS
43771 test -z "$as_dir" && as_dir=.
43772 for ac_exec_ext in '' $ac_executable_extensions; do
43773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43774 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
43775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43776 break 2
43777 fi
43778done
43779done
43780
43781 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
43782fi
43783fi
43784AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
43785if test -n "$AIX_CXX_LD"; then
43786 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
43787echo "${ECHO_T}$AIX_CXX_LD" >&6
43788else
43789 echo "$as_me:$LINENO: result: no" >&5
43790echo "${ECHO_T}no" >&6
43791fi
43792
f6b50c59 43793 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
43794 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
43795 fi
43796 ;;
43797
43798 *-*-beos* )
1e9e8aba
DE
43799 SHARED_LD_CC="${LD} -nostart -o"
43800 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
43801 ;;
43802
43803 *-*-irix* )
43804 if test "x$GCC" != "xyes"; then
43805 PIC_FLAG="-KPIC"
43806 fi
43807 ;;
43808
43809 *-*-cygwin* | *-*-mingw32* )
43810 PIC_FLAG=""
1e9e8aba
DE
43811 SHARED_LD_CC="\$(CC) -shared -o"
43812 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 43813 WINDOWS_IMPLIB=1
a848cd7e
SC
43814 ;;
43815
43816 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
43817 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43818 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 43819 PIC_FLAG=""
473276a9
VS
43820
43821D='$'
43822cat <<EOF >dllar.sh
43823#!/bin/sh
43824#
43825# dllar - a tool to build both a .dll and an .a file
43826# from a set of object (.o) files for EMX/OS2.
43827#
43828# Written by Andrew Zabolotny, bit@freya.etu.ru
43829# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
43830#
43831# This script will accept a set of files on the command line.
43832# All the public symbols from the .o files will be exported into
43833# a .DEF file, then linker will be run (through gcc) against them to
43834# build a shared library consisting of all given .o files. All libraries
43835# (.a) will be first decompressed into component .o files then act as
43836# described above. You can optionally give a description (-d "description")
43837# which will be put into .DLL. To see the list of accepted options (as well
43838# as command-line format) simply run this program without options. The .DLL
43839# is built to be imported by name (there is no guarantee that new versions
43840# of the library you build will have same ordinals for same symbols).
43841#
43842# dllar is free software; you can redistribute it and/or modify
43843# it under the terms of the GNU General Public License as published by
43844# the Free Software Foundation; either version 2, or (at your option)
43845# any later version.
43846#
43847# dllar is distributed in the hope that it will be useful,
43848# but WITHOUT ANY WARRANTY; without even the implied warranty of
43849# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43850# GNU General Public License for more details.
43851#
43852# You should have received a copy of the GNU General Public License
43853# along with dllar; see the file COPYING. If not, write to the Free
43854# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
43855# 02111-1307, USA.
43856
43857# To successfuly run this program you will need:
43858# - Current drive should have LFN support (HPFS, ext2, network, etc)
43859# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
43860# - gcc
43861# (used to build the .dll)
43862# - emxexp
43863# (used to create .def file from .o files)
43864# - emximp
43865# (used to create .a file from .def file)
43866# - GNU text utilites (cat, sort, uniq)
43867# used to process emxexp output
43868# - GNU file utilities (mv, rm)
43869# - GNU sed
43870# - lxlite (optional, see flag below)
43871# (used for general .dll cleanup)
43872#
43873
43874flag_USE_LXLITE=1;
43875
43876#
43877# helper functions
43878# basnam, variant of basename, which does _not_ remove the path, _iff_
43879# second argument (suffix to remove) is given
43880basnam(){
43881 case ${D}# in
43882 1)
1e9e8aba 43883 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
43884 ;;
43885 2)
43886 echo ${D}1 | sed 's/'${D}2'${D}//'
43887 ;;
43888 *)
43889 echo "error in basnam ${D}*"
43890 exit 8
43891 ;;
43892 esac
43893}
43894
43895# Cleanup temporary files and output
43896CleanUp() {
43897 cd ${D}curDir
43898 for i in ${D}inputFiles ; do
43899 case ${D}i in
43900 *!)
43901 rm -rf \`basnam ${D}i !\`
43902 ;;
43903 *)
43904 ;;
43905 esac
43906 done
43907
43908 # Kill result in case of failure as there is just to many stupid make/nmake
43909 # things out there which doesn't do this.
1e9e8aba 43910 if [ ${D}# -eq 0 ]; then
473276a9
VS
43911 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
43912 fi
43913}
43914
43915# Print usage and exit script with rc=1.
43916PrintHelp() {
b1d22ded
DE
43917 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
43918 echo ' [-name-mangler-script script.sh]'
43919 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
43920 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
43921 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 43922 echo ' [*.o] [*.a]'
473276a9
VS
43923 echo '*> "output_file" should have no extension.'
43924 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
43925 echo ' The import library name is derived from this and is set to "name".a,'
43926 echo ' unless overridden by -import'
43927 echo '*> "importlib_name" should have no extension.'
43928 echo ' If it has the .o, or .a extension, it is automatically removed.'
43929 echo ' This name is used as the import library name and may be longer and'
43930 echo ' more descriptive than the DLL name which has to follow the old '
43931 echo ' 8.3 convention of FAT.'
b1d22ded
DE
43932 echo '*> "script.sh may be given to override the output_file name by a'
43933 echo ' different name. It is mainly useful if the regular make process'
43934 echo ' of some package does not take into account OS/2 restriction of'
43935 echo ' DLL name lengths. It takes the importlib name as input and is'
43936 echo ' supposed to procude a shorter name as output. The script should'
43937 echo ' expect to get importlib_name without extension and should produce'
43938 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
43939 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
43940 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
43941 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
43942 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
43943 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
43944 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
43945 echo ' If the last character of a symbol is "*", all symbols beginning'
43946 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 43947 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 43948 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 43949 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 43950 echo ' C runtime DLLs.'
b1d22ded 43951 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
43952 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
43953 echo ' unchanged to GCC at the end of command line.'
43954 echo '*> If you create a DLL from a library and you do not specify -o,'
43955 echo ' the basename for DLL and import library will be set to library name,'
43956 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
43957 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
43958 echo ' library will be renamed into gcc_s.a.'
43959 echo '--------'
43960 echo 'Example:'
43961 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
43962 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
43963 CleanUp
43964 exit 1
43965}
43966
43967# Execute a command.
43968# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
43969# @Uses Whatever CleanUp() uses.
43970doCommand() {
43971 echo "${D}*"
43972 eval ${D}*
43973 rcCmd=${D}?
43974
1e9e8aba 43975 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
43976 echo "command failed, exit code="${D}rcCmd
43977 CleanUp
43978 exit ${D}rcCmd
43979 fi
43980}
43981
43982# main routine
43983# setup globals
43984cmdLine=${D}*
43985outFile=""
43986outimpFile=""
43987inputFiles=""
b1d22ded 43988renameScript=""
473276a9
VS
43989description=""
43990CC=gcc.exe
43991CFLAGS="-s -Zcrtdll"
43992EXTRA_CFLAGS=""
43993EXPORT_BY_ORDINALS=0
43994exclude_symbols=""
43995library_flags=""
43996curDir=\`pwd\`
43997curDirS=curDir
43998case ${D}curDirS in
43999*/)
44000 ;;
44001*)
44002 curDirS=${D}{curDirS}"/"
44003 ;;
44004esac
44005# Parse commandline
44006libsToLink=0
b1d22ded 44007omfLinking=0
1e9e8aba 44008while [ ${D}1 ]; do
473276a9
VS
44009 case ${D}1 in
44010 -ord*)
44011 EXPORT_BY_ORDINALS=1;
44012 ;;
44013 -o*)
44014 shift
44015 outFile=${D}1
44016 ;;
44017 -i*)
44018 shift
44019 outimpFile=${D}1
44020 ;;
b1d22ded
DE
44021 -name-mangler-script)
44022 shift
44023 renameScript=${D}1
44024 ;;
473276a9
VS
44025 -d*)
44026 shift
44027 description=${D}1
44028 ;;
44029 -f*)
44030 shift
44031 CFLAGS=${D}1
44032 ;;
44033 -c*)
44034 shift
44035 CC=${D}1
44036 ;;
44037 -h*)
44038 PrintHelp
44039 ;;
44040 -ex*)
44041 shift
44042 exclude_symbols=${D}{exclude_symbols}${D}1" "
44043 ;;
44044 -libf*)
44045 shift
44046 library_flags=${D}{library_flags}${D}1" "
44047 ;;
44048 -nocrt*)
44049 CFLAGS="-s"
44050 ;;
44051 -nolxl*)
44052 flag_USE_LXLITE=0
44053 ;;
44054 -* | /*)
44055 case ${D}1 in
44056 -L* | -l*)
44057 libsToLink=1
44058 ;;
b1d22ded
DE
44059 -Zomf)
44060 omfLinking=1
44061 ;;
473276a9
VS
44062 *)
44063 ;;
44064 esac
44065 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44066 ;;
b1d22ded
DE
44067 *.dll)
44068 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
44069 if [ ${D}omfLinking -eq 1 ]; then
44070 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
44071 else
44072 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
44073 fi
44074 ;;
473276a9
VS
44075 *)
44076 found=0;
1e9e8aba 44077 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
44078 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44079 else
44080 for file in ${D}1 ; do
1e9e8aba 44081 if [ -f ${D}file ]; then
473276a9
VS
44082 inputFiles="${D}{inputFiles} ${D}file"
44083 found=1
44084 fi
44085 done
1e9e8aba 44086 if [ ${D}found -eq 0 ]; then
473276a9
VS
44087 echo "ERROR: No file(s) found: "${D}1
44088 exit 8
44089 fi
44090 fi
44091 ;;
44092 esac
44093 shift
44094done # iterate cmdline words
44095
44096#
1e9e8aba 44097if [ -z "${D}inputFiles" ]; then
473276a9
VS
44098 echo "dllar: no input files"
44099 PrintHelp
44100fi
44101
44102# Now extract all .o files from .a files
44103newInputFiles=""
44104for file in ${D}inputFiles ; do
44105 case ${D}file in
44106 *.a | *.lib)
44107 case ${D}file in
44108 *.a)
44109 suffix=".a"
44110 AR="ar"
44111 ;;
44112 *.lib)
44113 suffix=".lib"
44114 AR="emxomfar"
44115 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
44116 ;;
44117 *)
44118 ;;
44119 esac
44120 dirname=\`basnam ${D}file ${D}suffix\`"_%"
44121 mkdir ${D}dirname
1e9e8aba 44122 if [ ${D}? -ne 0 ]; then
473276a9
VS
44123 echo "Failed to create subdirectory ./${D}dirname"
44124 CleanUp
44125 exit 8;
44126 fi
44127 # Append '!' to indicate archive
44128 newInputFiles="${D}newInputFiles ${D}{dirname}!"
44129 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
44130 cd ${D}curDir
44131 found=0;
44132 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 44133 if [ -f ${D}subfile ]; then
473276a9 44134 found=1
1e9e8aba 44135 if [ -s ${D}subfile ]; then
473276a9
VS
44136 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
44137 newInputFiles="${D}newInputFiles ${D}subfile"
44138 fi
44139 fi
44140 done
1e9e8aba
DE
44141 if [ ${D}found -eq 0 ]; then
44142 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
44143 fi
44144 ;;
44145 *)
44146 newInputFiles="${D}{newInputFiles} ${D}file"
44147 ;;
44148 esac
44149done
44150inputFiles="${D}newInputFiles"
44151
44152# Output filename(s).
44153do_backup=0;
1e9e8aba 44154if [ -z ${D}outFile ]; then
473276a9
VS
44155 do_backup=1;
44156 set outFile ${D}inputFiles; outFile=${D}2
44157fi
44158
44159# If it is an archive, remove the '!' and the '_%' suffixes
44160case ${D}outFile in
44161*_%!)
44162 outFile=\`basnam ${D}outFile _%!\`
44163 ;;
44164*)
44165 ;;
44166esac
44167case ${D}outFile in
44168*.dll)
44169 outFile=\`basnam ${D}outFile .dll\`
44170 ;;
44171*.DLL)
44172 outFile=\`basnam ${D}outFile .DLL\`
44173 ;;
44174*.o)
44175 outFile=\`basnam ${D}outFile .o\`
44176 ;;
44177*.obj)
44178 outFile=\`basnam ${D}outFile .obj\`
44179 ;;
44180*.a)
44181 outFile=\`basnam ${D}outFile .a\`
44182 ;;
44183*.lib)
44184 outFile=\`basnam ${D}outFile .lib\`
44185 ;;
44186*)
44187 ;;
44188esac
44189case ${D}outimpFile in
44190*.a)
44191 outimpFile=\`basnam ${D}outimpFile .a\`
44192 ;;
44193*.lib)
44194 outimpFile=\`basnam ${D}outimpFile .lib\`
44195 ;;
44196*)
44197 ;;
44198esac
1e9e8aba 44199if [ -z ${D}outimpFile ]; then
473276a9
VS
44200 outimpFile=${D}outFile
44201fi
44202defFile="${D}{outFile}.def"
44203arcFile="${D}{outimpFile}.a"
44204arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
44205
44206#create ${D}dllFile as something matching 8.3 restrictions,
44207if [ -z ${D}renameScript ] ; then
44208 dllFile="${D}outFile"
44209else
44210 dllFile=\`${D}renameScript ${D}outimpFile\`
44211fi
473276a9 44212
1e9e8aba
DE
44213if [ ${D}do_backup -ne 0 ] ; then
44214 if [ -f ${D}arcFile ] ; then
473276a9
VS
44215 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
44216 fi
1e9e8aba 44217 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
44218 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
44219 fi
44220fi
44221
44222# Extract public symbols from all the object files.
44223tmpdefFile=${D}{defFile}_%
44224rm -f ${D}tmpdefFile
44225for file in ${D}inputFiles ; do
44226 case ${D}file in
44227 *!)
44228 ;;
44229 *)
44230 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
44231 ;;
44232 esac
44233done
44234
44235# Create the def file.
44236rm -f ${D}defFile
44237echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
44238dllFile="${D}{dllFile}.dll"
44239if [ ! -z ${D}description ]; then
1e9e8aba 44240 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
44241fi
44242echo "EXPORTS" >> ${D}defFile
44243
44244doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
44245grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
44246
44247# Checks if the export is ok or not.
44248for word in ${D}exclude_symbols; do
44249 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
44250 mv ${D}{tmpdefFile}% ${D}tmpdefFile
44251done
44252
44253
1e9e8aba
DE
44254if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
44255 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
44256 sed '
44257 N
44258 : loop
1e9e8aba 44259 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
44260 t loop
44261 ' > ${D}{tmpdefFile}%
44262 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
44263else
44264 rm -f ${D}{tmpdefFile}%
44265fi
44266cat ${D}tmpdefFile >> ${D}defFile
44267rm -f ${D}tmpdefFile
44268
44269# Do linking, create implib, and apply lxlite.
44270gccCmdl="";
44271for file in ${D}inputFiles ; do
44272 case ${D}file in
44273 *!)
44274 ;;
44275 *)
44276 gccCmdl="${D}gccCmdl ${D}file"
44277 ;;
44278 esac
44279done
44280doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
44281touch "${D}{outFile}.dll"
44282
44283doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 44284if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 44285 add_flags="";
1e9e8aba 44286 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
44287 add_flags="-ynd"
44288 fi
44289 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
44290fi
44291doCommand "emxomf -s -l ${D}arcFile"
44292
44293# Successful exit.
44294CleanUp 1
44295exit 0
44296EOF
44297
44298 chmod +x dllar.sh
a848cd7e
SC
44299 ;;
44300
1e9e8aba 44301 powerpc-apple-macos* | \
0ad5d837 44302 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
44303 *-*-sunos4* | \
44304 *-*-osf* | \
44305 *-*-dgux5* | \
47a7e797
MW
44306 *-*-sysv5* | \
44307 *-pc-msdosdjgpp )
a848cd7e
SC
44308 ;;
44309
44310 *)
44311 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
44312echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
44313 { (exit 1); exit 1; }; }
44314 esac
44315
2057db16
VS
44316 if test "x$PIC_FLAG" != "x" ; then
44317 PIC_FLAG="$PIC_FLAG -DPIC"
44318 fi
44319
a848cd7e
SC
44320 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
44321 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
44322 fi
44323 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
44324 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
44325 fi
44326
44327
44328
44329
44330
44331
44332
44333
810b94f0 44334
a848cd7e
SC
44335 USE_SOVERSION=0
44336 USE_SOVERLINUX=0
44337 USE_SOVERSOLARIS=0
810b94f0 44338 USE_SOVERCYGWIN=0
a848cd7e
SC
44339 USE_SOSYMLINKS=0
44340 USE_MACVERSION=0
44341 SONAME_FLAG=
44342
44343 case "${BAKEFILE_HOST}" in
0ad5d837 44344 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
44345 SONAME_FLAG="-Wl,-soname,"
44346 USE_SOVERSION=1
44347 USE_SOVERLINUX=1
44348 USE_SOSYMLINKS=1
44349 ;;
44350
a848cd7e
SC
44351 *-*-solaris2* )
44352 SONAME_FLAG="-h "
44353 USE_SOVERSION=1
44354 USE_SOVERSOLARIS=1
44355 USE_SOSYMLINKS=1
44356 ;;
44357
44358 *-*-darwin* )
44359 USE_MACVERSION=1
44360 USE_SOVERSION=1
44361 USE_SOSYMLINKS=1
44362 ;;
810b94f0
MW
44363
44364 *-*-cygwin* )
44365 USE_SOVERSION=1
44366 USE_SOVERCYGWIN=1
44367 ;;
a848cd7e
SC
44368 esac
44369
44370
44371
44372
44373
44374
44375
44376
44377
810b94f0 44378
a848cd7e
SC
44379 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
44380echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 44381 DEPS_TRACKING=1
a848cd7e
SC
44382
44383 if test "x$GCC" = "xyes"; then
44384 DEPSMODE=gcc
a848cd7e 44385 case "${BAKEFILE_HOST}" in
47bd5406 44386 *-*-darwin* )
0ad5d837 44387 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
44388 ;;
44389 * )
0ad5d837 44390 DEPSFLAG="-MMD"
a848cd7e
SC
44391 ;;
44392 esac
44393 echo "$as_me:$LINENO: result: gcc" >&5
44394echo "${ECHO_T}gcc" >&6
b1d22ded 44395 elif test "x$MWCC" = "xyes"; then
81f90336 44396 DEPSMODE=mwcc
0ad5d837 44397 DEPSFLAG="-MM"
b1d22ded
DE
44398 echo "$as_me:$LINENO: result: mwcc" >&5
44399echo "${ECHO_T}mwcc" >&6
a9e5b1f0 44400 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
44401 DEPSMODE=unixcc
44402 DEPSFLAG="-xM1"
44403 echo "$as_me:$LINENO: result: Sun cc" >&5
44404echo "${ECHO_T}Sun cc" >&6
44405 elif test "x$SGICC" = "xyes"; then
44406 DEPSMODE=unixcc
44407 DEPSFLAG="-M"
44408 echo "$as_me:$LINENO: result: SGI cc" >&5
44409echo "${ECHO_T}SGI cc" >&6
a848cd7e 44410 else
0ad5d837 44411 DEPS_TRACKING=0
a848cd7e
SC
44412 echo "$as_me:$LINENO: result: none" >&5
44413echo "${ECHO_T}none" >&6
44414 fi
44415
44416 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
44417
44418D='$'
44419cat <<EOF >bk-deps
a848cd7e
SC
44420#!/bin/sh
44421
44422# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
44423# script. It is used to track C/C++ files dependencies in portable way.
44424#
44425# Permission is given to use this file in any way.
44426
473276a9 44427DEPSMODE=${DEPSMODE}
a848cd7e 44428DEPSDIR=.deps
0ad5d837 44429DEPSFLAG="${DEPSFLAG}"
a848cd7e 44430
473276a9 44431mkdir -p ${D}DEPSDIR
a848cd7e 44432
473276a9 44433if test ${D}DEPSMODE = gcc ; then
0ad5d837 44434 ${D}* ${D}{DEPSFLAG}
473276a9
VS
44435 status=${D}?
44436 if test ${D}{status} != 0 ; then
44437 exit ${D}{status}
a848cd7e
SC
44438 fi
44439 # move created file to the location we want it in:
473276a9
VS
44440 while test ${D}# -gt 0; do
44441 case "${D}1" in
a848cd7e
SC
44442 -o )
44443 shift
473276a9 44444 objfile=${D}1
a848cd7e
SC
44445 ;;
44446 -* )
44447 ;;
44448 * )
473276a9 44449 srcfile=${D}1
a848cd7e
SC
44450 ;;
44451 esac
44452 shift
44453 done
1e9e8aba
DE
44454 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
44455 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
44456 if test -f ${D}depfile ; then
44457 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
44458 rm -f ${D}depfile
a848cd7e 44459 else
1e9e8aba 44460 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
44461 if test -f ${D}depfile ; then
44462 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
44463 rm -f ${D}depfile
a848cd7e
SC
44464 fi
44465 fi
44466 exit 0
81f90336 44467elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 44468 ${D}* || exit ${D}?
81f90336
MW
44469 # Run mwcc again with -MM and redirect into the dep file we want
44470 # NOTE: We can't use shift here because we need ${D}* to be valid
44471 prevarg=
44472 for arg in ${D}* ; do
44473 if test "${D}prevarg" = "-o"; then
44474 objfile=${D}arg
44475 else
44476 case "${D}arg" in
44477 -* )
44478 ;;
44479 * )
44480 srcfile=${D}arg
44481 ;;
44482 esac
44483 fi
44484 prevarg="${D}arg"
44485 done
0ad5d837 44486 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 44487 exit 0
0ad5d837 44488elif test ${D}DEPSMODE = unixcc; then
f6b50c59 44489 ${D}* || exit ${D}?
a9e5b1f0
MW
44490 # Run compiler again with deps flag and redirect into the dep file.
44491 # It doesn't work if the '-o FILE' option is used, but without it the
44492 # dependency file will contain the wrong name for the object. So it is
44493 # removed from the command line, and the dep file is fixed with sed.
44494 cmd=""
44495 while test ${D}# -gt 0; do
44496 case "${D}1" in
44497 -o )
44498 shift
44499 objfile=${D}1
44500 ;;
44501 * )
44502 eval arg${D}#=\\${D}1
44503 cmd="${D}cmd \\${D}arg${D}#"
44504 ;;
44505 esac
44506 shift
44507 done
0ad5d837 44508 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 44509 exit 0
a848cd7e 44510else
473276a9
VS
44511 ${D}*
44512 exit ${D}?
a848cd7e
SC
44513fi
44514EOF
473276a9 44515
a848cd7e
SC
44516 chmod +x bk-deps
44517 fi
44518
44519
44520
44521
44522 RESCOMP=
44523 SETFILE=
44524
44525 case ${BAKEFILE_HOST} in
44526 *-*-cygwin* | *-*-mingw32* )
44527 if test "$build" != "$host" ; then
44528 RESCOMP=$host_alias-windres
44529 else
44530 # Extract the first word of "windres", so it can be a program name with args.
44531set dummy windres; ac_word=$2
44532echo "$as_me:$LINENO: checking for $ac_word" >&5
44533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44534if test "${ac_cv_prog_RESCOMP+set}" = set; then
44535 echo $ECHO_N "(cached) $ECHO_C" >&6
44536else
44537 if test -n "$RESCOMP"; then
44538 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
44539else
44540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44541for as_dir in $PATH
44542do
44543 IFS=$as_save_IFS
44544 test -z "$as_dir" && as_dir=.
44545 for ac_exec_ext in '' $ac_executable_extensions; do
44546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44547 ac_cv_prog_RESCOMP="windres"
44548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44549 break 2
44550 fi
44551done
44552done
44553
44554 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
44555fi
44556fi
44557RESCOMP=$ac_cv_prog_RESCOMP
44558if test -n "$RESCOMP"; then
44559 echo "$as_me:$LINENO: result: $RESCOMP" >&5
44560echo "${ECHO_T}$RESCOMP" >&6
44561else
44562 echo "$as_me:$LINENO: result: no" >&5
44563echo "${ECHO_T}no" >&6
44564fi
44565
44566 fi
44567 ;;
44568
1e9e8aba 44569 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
44570 # Extract the first word of "Rez", so it can be a program name with args.
44571set dummy Rez; ac_word=$2
44572echo "$as_me:$LINENO: checking for $ac_word" >&5
44573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44574if test "${ac_cv_prog_RESCOMP+set}" = set; then
44575 echo $ECHO_N "(cached) $ECHO_C" >&6
44576else
44577 if test -n "$RESCOMP"; then
44578 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
44579else
44580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44581for as_dir in $PATH
44582do
44583 IFS=$as_save_IFS
44584 test -z "$as_dir" && as_dir=.
44585 for ac_exec_ext in '' $ac_executable_extensions; do
44586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44587 ac_cv_prog_RESCOMP="Rez"
44588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44589 break 2
44590 fi
44591done
44592done
44593
44594 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
44595fi
44596fi
44597RESCOMP=$ac_cv_prog_RESCOMP
44598if test -n "$RESCOMP"; then
44599 echo "$as_me:$LINENO: result: $RESCOMP" >&5
44600echo "${ECHO_T}$RESCOMP" >&6
44601else
44602 echo "$as_me:$LINENO: result: no" >&5
44603echo "${ECHO_T}no" >&6
44604fi
44605
44606 # Extract the first word of "SetFile", so it can be a program name with args.
44607set dummy SetFile; ac_word=$2
44608echo "$as_me:$LINENO: checking for $ac_word" >&5
44609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44610if test "${ac_cv_prog_SETFILE+set}" = set; then
44611 echo $ECHO_N "(cached) $ECHO_C" >&6
44612else
44613 if test -n "$SETFILE"; then
44614 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
44615else
44616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44617for as_dir in $PATH
44618do
44619 IFS=$as_save_IFS
44620 test -z "$as_dir" && as_dir=.
44621 for ac_exec_ext in '' $ac_executable_extensions; do
44622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44623 ac_cv_prog_SETFILE="SetFile"
44624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44625 break 2
44626 fi
44627done
44628done
44629
44630 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
44631fi
44632fi
44633SETFILE=$ac_cv_prog_SETFILE
44634if test -n "$SETFILE"; then
44635 echo "$as_me:$LINENO: result: $SETFILE" >&5
44636echo "${ECHO_T}$SETFILE" >&6
44637else
44638 echo "$as_me:$LINENO: result: no" >&5
44639echo "${ECHO_T}no" >&6
44640fi
44641
44642 ;;
44643 esac
44644
44645
44646
44647
44648
c9469659 44649 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 44650
dcc1b6ad 44651
c9469659 44652BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 44653
646b6ec1 44654
74b84332 44655
a848cd7e
SC
44656 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
44657if test "${enable_precomp_headers+set}" = set; then
44658 enableval="$enable_precomp_headers"
44659 bk_use_pch="$enableval"
44660fi;
44661
44662 GCC_PCH=0
44663
44664 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
44665 if test "x$GCC" = "xyes"; then
44666 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
44667echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
44668 cat >conftest.$ac_ext <<_ACEOF
44669/* confdefs.h. */
44670_ACEOF
44671cat confdefs.h >>conftest.$ac_ext
44672cat >>conftest.$ac_ext <<_ACEOF
44673/* end confdefs.h. */
44674
44675int
44676main ()
44677{
44678
44679 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
44680 #error "no pch support"
44681 #endif
44682 #if (__GNUC__ < 3)
44683 #error "no pch support"
44684 #endif
44685 #if (__GNUC__ == 3) && \
44686 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
44687 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
44688 #error "no pch support"
44689 #endif
44690
44691 ;
44692 return 0;
44693}
44694_ACEOF
44695rm -f conftest.$ac_objext
44696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44697 (eval $ac_compile) 2>conftest.er1
a848cd7e 44698 ac_status=$?
ac1cb8d3
VS
44699 grep -v '^ *+' conftest.er1 >conftest.err
44700 rm -f conftest.er1
44701 cat conftest.err >&5
a848cd7e
SC
44702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44703 (exit $ac_status); } &&
6ebeb4c7 44704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44706 (eval $ac_try) 2>&5
44707 ac_status=$?
44708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44709 (exit $ac_status); }; } &&
44710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44712 (eval $ac_try) 2>&5
44713 ac_status=$?
44714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44715 (exit $ac_status); }; }; then
44716
44717 echo "$as_me:$LINENO: result: yes" >&5
44718echo "${ECHO_T}yes" >&6
a848cd7e
SC
44719 GCC_PCH=1
44720
44721else
44722 echo "$as_me: failed program was:" >&5
44723sed 's/^/| /' conftest.$ac_ext >&5
44724
44725
44726 echo "$as_me:$LINENO: result: no" >&5
44727echo "${ECHO_T}no" >&6
44728
44729fi
ac1cb8d3 44730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44731 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
44732
44733D='$'
44734cat <<EOF >bk-make-pch
a848cd7e
SC
44735#!/bin/sh
44736
44737# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
44738# script. It is used to generated precompiled headers.
44739#
44740# Permission is given to use this file in any way.
44741
1e9e8aba
DE
44742outfile="${D}{1}"
44743header="${D}{2}"
a848cd7e
SC
44744shift
44745shift
44746
44747compiler=
44748headerfile=
1e9e8aba
DE
44749while test ${D}{#} -gt 0; do
44750 case "${D}{1}" in
a848cd7e 44751 -I* )
1e9e8aba
DE
44752 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
44753 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
44754 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
44755 fi
44756 ;;
44757 esac
1e9e8aba 44758 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
44759 shift
44760done
44761
1e9e8aba
DE
44762if test "x${D}{headerfile}" = "x" ; then
44763 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 44764else
1e9e8aba
DE
44765 if test -f ${D}{outfile} ; then
44766 rm -f ${D}{outfile}
a848cd7e 44767 else
1e9e8aba 44768 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 44769 fi
1e9e8aba 44770 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
44771 mkdir -p .deps
44772 # can do this because gcc is >= 3.4:
1e9e8aba
DE
44773 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
44774 exit ${D}{?}
a848cd7e
SC
44775fi
44776EOF
1e9e8aba 44777
a848cd7e
SC
44778 chmod +x bk-make-pch
44779 fi
44780 fi
44781 fi
44782
44783
44784
a848cd7e
SC
44785 COND_BUILD_DEBUG="#"
44786 if test "x$BUILD" = "xdebug" ; then
44787 COND_BUILD_DEBUG=""
44788 fi
44789
44790 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
44791 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
44792 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
44793 fi
44794
44795 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
44796 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
44797 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
44798 fi
44799
44800 COND_BUILD_DEBUG_UNICODE_0="#"
44801 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
44802 COND_BUILD_DEBUG_UNICODE_0=""
44803 fi
44804
44805 COND_BUILD_DEBUG_UNICODE_1="#"
44806 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
44807 COND_BUILD_DEBUG_UNICODE_1=""
44808 fi
44809
44810 COND_BUILD_RELEASE="#"
44811 if test "x$BUILD" = "xrelease" ; then
44812 COND_BUILD_RELEASE=""
44813 fi
44814
44815 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
44816 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
44817 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
44818 fi
44819
44820 COND_BUILD_RELEASE_UNICODE_0="#"
44821 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
44822 COND_BUILD_RELEASE_UNICODE_0=""
44823 fi
44824
44825 COND_BUILD_RELEASE_UNICODE_1="#"
44826 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
44827 COND_BUILD_RELEASE_UNICODE_1=""
44828 fi
44829
44830 COND_DEBUG_FLAG_1="#"
44831 if test "x$DEBUG_FLAG" = "x1" ; then
44832 COND_DEBUG_FLAG_1=""
44833 fi
44834
44835 COND_DEBUG_INFO_0="#"
44836 if test "x$DEBUG_INFO" = "x0" ; then
44837 COND_DEBUG_INFO_0=""
44838 fi
44839
44840 COND_DEBUG_INFO_1="#"
44841 if test "x$DEBUG_INFO" = "x1" ; then
44842 COND_DEBUG_INFO_1=""
44843 fi
44844
44845 COND_DEPS_TRACKING_0="#"
44846 if test "x$DEPS_TRACKING" = "x0" ; then
44847 COND_DEPS_TRACKING_0=""
44848 fi
44849
44850 COND_DEPS_TRACKING_1="#"
44851 if test "x$DEPS_TRACKING" = "x1" ; then
44852 COND_DEPS_TRACKING_1=""
44853 fi
44854
44855 COND_GCC_PCH_1="#"
44856 if test "x$GCC_PCH" = "x1" ; then
44857 COND_GCC_PCH_1=""
44858 fi
44859
44860 COND_MONOLITHIC_0="#"
44861 if test "x$MONOLITHIC" = "x0" ; then
44862 COND_MONOLITHIC_0=""
44863 fi
44864
44865 COND_MONOLITHIC_0_SHARED_0="#"
44866 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
44867 COND_MONOLITHIC_0_SHARED_0=""
44868 fi
44869
44870 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
44871 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
44872 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
44873 fi
44874
90970d69
DE
44875 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
44876 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
44877 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
44878 fi
44879
a848cd7e
SC
44880 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
44881 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
44882 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
44883 fi
44884
6671c68b
VZ
44885 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
44886 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
44887 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
44888 fi
44889
a848cd7e
SC
44890 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
44891 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
44892 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
44893 fi
44894
ceec2216
RL
44895 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
44896 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
44897 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
44898 fi
44899
a848cd7e
SC
44900 COND_MONOLITHIC_0_SHARED_1="#"
44901 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
44902 COND_MONOLITHIC_0_SHARED_1=""
44903 fi
44904
44905 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
44906 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
44907 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
44908 fi
44909
90970d69
DE
44910 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
44911 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
44912 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
44913 fi
44914
a848cd7e
SC
44915 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
44916 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
44917 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
44918 fi
44919
6671c68b
VZ
44920 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
44921 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
44922 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
44923 fi
44924
a848cd7e
SC
44925 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
44926 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
44927 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
44928 fi
44929
ceec2216
RL
44930 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
44931 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
44932 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
44933 fi
44934
a848cd7e
SC
44935 COND_MONOLITHIC_0_USE_ODBC_1="#"
44936 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
44937 COND_MONOLITHIC_0_USE_ODBC_1=""
44938 fi
44939
44940 COND_MONOLITHIC_1="#"
44941 if test "x$MONOLITHIC" = "x1" ; then
44942 COND_MONOLITHIC_1=""
44943 fi
44944
44945 COND_MONOLITHIC_1_SHARED_0="#"
44946 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
44947 COND_MONOLITHIC_1_SHARED_0=""
44948 fi
44949
44950 COND_MONOLITHIC_1_SHARED_1="#"
44951 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
44952 COND_MONOLITHIC_1_SHARED_1=""
44953 fi
44954
44955 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
44956 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
44957 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
44958 fi
44959
44960 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
44961 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
44962 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
44963 fi
44964
eb730a0c
JS
44965 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
44966 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
44967 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
44968 fi
44969
a848cd7e
SC
44970 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
44971 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
44972 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
44973 fi
44974
44975 COND_PLATFORM_MACOSX_1="#"
44976 if test "x$PLATFORM_MACOSX" = "x1" ; then
44977 COND_PLATFORM_MACOSX_1=""
44978 fi
44979
a30f955f
VS
44980 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
44981 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
44982 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
44983 fi
44984
a848cd7e
SC
44985 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
44986 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
44987 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
44988 fi
44989
44990 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
44991 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
44992 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
44993 fi
44994
44995 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
44996 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
44997 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
44998 fi
44999
fc480dc1
DE
45000 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
45001 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45002 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
45003 fi
45004
1e9e8aba
DE
45005 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45006 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45007 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45008 fi
45009
ebee3cd0
VS
45010 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
45011 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
45012 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
45013 fi
45014
45015 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
45016 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
45017 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
45018 fi
45019
a848cd7e
SC
45020 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
45021 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
45022 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
45023 fi
45024
45025 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
45026 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45027 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
45028 fi
45029
b48a2016
DE
45030 COND_PLATFORM_MACOS_1="#"
45031 if test "x$PLATFORM_MACOS" = "x1" ; then
45032 COND_PLATFORM_MACOS_1=""
45033 fi
45034
083508af
MW
45035 COND_PLATFORM_MAC_1="#"
45036 if test "x$PLATFORM_MAC" = "x1" ; then
45037 COND_PLATFORM_MAC_1=""
45038 fi
45039
83d8eb47
MW
45040 COND_PLATFORM_MSDOS_1="#"
45041 if test "x$PLATFORM_MSDOS" = "x1" ; then
45042 COND_PLATFORM_MSDOS_1=""
45043 fi
45044
a848cd7e
SC
45045 COND_PLATFORM_OS2_1="#"
45046 if test "x$PLATFORM_OS2" = "x1" ; then
45047 COND_PLATFORM_OS2_1=""
45048 fi
45049
45050 COND_PLATFORM_UNIX_0="#"
45051 if test "x$PLATFORM_UNIX" = "x0" ; then
45052 COND_PLATFORM_UNIX_0=""
45053 fi
45054
45055 COND_PLATFORM_UNIX_1="#"
45056 if test "x$PLATFORM_UNIX" = "x1" ; then
45057 COND_PLATFORM_UNIX_1=""
45058 fi
45059
45060 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
45061 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
45062 COND_PLATFORM_UNIX_1_USE_GUI_1=""
45063 fi
45064
45065 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
45066 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
45067 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
45068 fi
45069
45070 COND_PLATFORM_WIN32_0="#"
45071 if test "x$PLATFORM_WIN32" = "x0" ; then
45072 COND_PLATFORM_WIN32_0=""
45073 fi
45074
45075 COND_PLATFORM_WIN32_1="#"
45076 if test "x$PLATFORM_WIN32" = "x1" ; then
45077 COND_PLATFORM_WIN32_1=""
45078 fi
45079
45080 COND_SHARED_0="#"
45081 if test "x$SHARED" = "x0" ; then
45082 COND_SHARED_0=""
45083 fi
45084
083508af
MW
45085 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
45086 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
45087 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
45088 fi
45089
45090 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
45091 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45092 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
45093 fi
45094
45095 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
45096 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
45097 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
45098 fi
45099
a848cd7e
SC
45100 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
45101 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45102 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
45103 fi
45104
45105 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45106 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45107 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45108 fi
45109
45110 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45111 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45112 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45113 fi
45114
45115 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45116 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45117 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45118 fi
45119
083508af
MW
45120 COND_SHARED_0_USE_XRC_1="#"
45121 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45122 COND_SHARED_0_USE_XRC_1=""
45123 fi
45124
a848cd7e
SC
45125 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
45126 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
45127 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
45128 fi
45129
45130 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
45131 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
45132 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
45133 fi
45134
45135 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
45136 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
45137 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
45138 fi
45139
45140 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
45141 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
45142 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
45143 fi
45144
45145 COND_SHARED_1="#"
45146 if test "x$SHARED" = "x1" ; then
45147 COND_SHARED_1=""
45148 fi
45149
45150 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
45151 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45152 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
45153 fi
45154
083508af
MW
45155 COND_SHARED_1_USE_XRC_1="#"
45156 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45157 COND_SHARED_1_USE_XRC_1=""
45158 fi
45159
a30f955f
VS
45160 COND_TOOLKIT_="#"
45161 if test "x$TOOLKIT" = "x" ; then
45162 COND_TOOLKIT_=""
45163 fi
45164
a848cd7e
SC
45165 COND_TOOLKIT_COCOA="#"
45166 if test "x$TOOLKIT" = "xCOCOA" ; then
45167 COND_TOOLKIT_COCOA=""
45168 fi
45169
a49baeab
DE
45170 COND_TOOLKIT_COCOA_USE_GUI_1="#"
45171 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
45172 COND_TOOLKIT_COCOA_USE_GUI_1=""
45173 fi
45174
a848cd7e
SC
45175 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
45176 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45177 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
45178 fi
45179
45180 COND_TOOLKIT_GTK="#"
45181 if test "x$TOOLKIT" = "xGTK" ; then
45182 COND_TOOLKIT_GTK=""
45183 fi
45184
45185 COND_TOOLKIT_GTK_USE_GUI_1="#"
45186 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
45187 COND_TOOLKIT_GTK_USE_GUI_1=""
45188 fi
45189
45190 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
45191 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45192 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
45193 fi
45194
45195 COND_TOOLKIT_MAC="#"
45196 if test "x$TOOLKIT" = "xMAC" ; then
45197 COND_TOOLKIT_MAC=""
45198 fi
45199
45200 COND_TOOLKIT_MAC_USE_GUI_1="#"
45201 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45202 COND_TOOLKIT_MAC_USE_GUI_1=""
45203 fi
45204
45205 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45206 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45207 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45208 fi
45209
45210 COND_TOOLKIT_MGL="#"
45211 if test "x$TOOLKIT" = "xMGL" ; then
45212 COND_TOOLKIT_MGL=""
45213 fi
45214
45215 COND_TOOLKIT_MGL_USE_GUI_1="#"
45216 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
45217 COND_TOOLKIT_MGL_USE_GUI_1=""
45218 fi
45219
45220 COND_TOOLKIT_MOTIF="#"
45221 if test "x$TOOLKIT" = "xMOTIF" ; then
45222 COND_TOOLKIT_MOTIF=""
45223 fi
45224
45225 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
45226 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
45227 COND_TOOLKIT_MOTIF_USE_GUI_1=""
45228 fi
45229
45230 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
45231 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45232 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
45233 fi
45234
45235 COND_TOOLKIT_MSW="#"
45236 if test "x$TOOLKIT" = "xMSW" ; then
45237 COND_TOOLKIT_MSW=""
45238 fi
45239
45240 COND_TOOLKIT_MSW_USE_GUI_1="#"
45241 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
45242 COND_TOOLKIT_MSW_USE_GUI_1=""
45243 fi
45244
45245 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
45246 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45247 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
45248 fi
45249
45250 COND_TOOLKIT_PM="#"
45251 if test "x$TOOLKIT" = "xPM" ; then
45252 COND_TOOLKIT_PM=""
45253 fi
45254
45255 COND_TOOLKIT_PM_USE_GUI_1="#"
45256 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
45257 COND_TOOLKIT_PM_USE_GUI_1=""
45258 fi
45259
45260 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
45261 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45262 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
45263 fi
45264
3fd9c298
DE
45265 COND_TOOLKIT_WINCE="#"
45266 if test "x$TOOLKIT" = "xWINCE" ; then
45267 COND_TOOLKIT_WINCE=""
45268 fi
45269
45270 COND_TOOLKIT_WINCE_USE_GUI_1="#"
45271 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
45272 COND_TOOLKIT_WINCE_USE_GUI_1=""
45273 fi
45274
45275 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
45276 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45277 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
45278 fi
45279
a848cd7e
SC
45280 COND_TOOLKIT_X11="#"
45281 if test "x$TOOLKIT" = "xX11" ; then
45282 COND_TOOLKIT_X11=""
45283 fi
45284
45285 COND_TOOLKIT_X11_USE_GUI_1="#"
45286 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
45287 COND_TOOLKIT_X11_USE_GUI_1=""
45288 fi
45289
45290 COND_UNICODE_1="#"
45291 if test "x$UNICODE" = "x1" ; then
45292 COND_UNICODE_1=""
45293 fi
45294
45295 COND_USE_EXCEPTIONS_0="#"
45296 if test "x$USE_EXCEPTIONS" = "x0" ; then
45297 COND_USE_EXCEPTIONS_0=""
45298 fi
45299
45300 COND_USE_EXCEPTIONS_1="#"
45301 if test "x$USE_EXCEPTIONS" = "x1" ; then
45302 COND_USE_EXCEPTIONS_1=""
45303 fi
45304
45305 COND_USE_GUI_0="#"
45306 if test "x$USE_GUI" = "x0" ; then
45307 COND_USE_GUI_0=""
45308 fi
45309
45310 COND_USE_GUI_1="#"
45311 if test "x$USE_GUI" = "x1" ; then
45312 COND_USE_GUI_1=""
45313 fi
45314
45315 COND_USE_GUI_1_WXUNIV_0="#"
45316 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45317 COND_USE_GUI_1_WXUNIV_0=""
45318 fi
45319
45320 COND_USE_GUI_1_WXUNIV_1="#"
45321 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
45322 COND_USE_GUI_1_WXUNIV_1=""
45323 fi
45324
45325 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45326 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45327 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45328 fi
45329
45330 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45331 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45332 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45333 fi
45334
45335 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45336 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45337 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45338 fi
45339
083508af
MW
45340 COND_USE_ODBC_1="#"
45341 if test "x$USE_ODBC" = "x1" ; then
45342 COND_USE_ODBC_1=""
45343 fi
45344
45345 COND_USE_OPENGL_1="#"
45346 if test "x$USE_OPENGL" = "x1" ; then
45347 COND_USE_OPENGL_1=""
45348 fi
45349
a848cd7e
SC
45350 COND_USE_PLUGINS_0="#"
45351 if test "x$USE_PLUGINS" = "x0" ; then
45352 COND_USE_PLUGINS_0=""
45353 fi
45354
0b78747f
MW
45355 COND_USE_RTTI_0="#"
45356 if test "x$USE_RTTI" = "x0" ; then
45357 COND_USE_RTTI_0=""
45358 fi
45359
45360 COND_USE_RTTI_1="#"
45361 if test "x$USE_RTTI" = "x1" ; then
45362 COND_USE_RTTI_1=""
45363 fi
45364
a848cd7e
SC
45365 COND_USE_SOSYMLINKS_1="#"
45366 if test "x$USE_SOSYMLINKS" = "x1" ; then
45367 COND_USE_SOSYMLINKS_1=""
45368 fi
45369
eb730a0c
JS
45370 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
45371 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45372 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
45373 fi
45374
a848cd7e
SC
45375 COND_USE_SOVERLINUX_1="#"
45376 if test "x$USE_SOVERLINUX" = "x1" ; then
45377 COND_USE_SOVERLINUX_1=""
45378 fi
45379
45380 COND_USE_SOVERSION_0="#"
45381 if test "x$USE_SOVERSION" = "x0" ; then
45382 COND_USE_SOVERSION_0=""
45383 fi
45384
45385 COND_USE_SOVERSOLARIS_1="#"
45386 if test "x$USE_SOVERSOLARIS" = "x1" ; then
45387 COND_USE_SOVERSOLARIS_1=""
45388 fi
45389
0b78747f
MW
45390 COND_USE_THREADS_0="#"
45391 if test "x$USE_THREADS" = "x0" ; then
45392 COND_USE_THREADS_0=""
45393 fi
45394
45395 COND_USE_THREADS_1="#"
45396 if test "x$USE_THREADS" = "x1" ; then
45397 COND_USE_THREADS_1=""
45398 fi
45399
a13a7f89
RL
45400 COND_USE_XRC_1="#"
45401 if test "x$USE_XRC" = "x1" ; then
45402 COND_USE_XRC_1=""
45403 fi
45404
eb730a0c
JS
45405 COND_WINDOWS_IMPLIB_1="#"
45406 if test "x$WINDOWS_IMPLIB" = "x1" ; then
45407 COND_WINDOWS_IMPLIB_1=""
45408 fi
45409
a848cd7e
SC
45410 COND_WITH_PLUGIN_SDL_1="#"
45411 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
45412 COND_WITH_PLUGIN_SDL_1=""
45413 fi
45414
1e6eb025
VZ
45415 COND_WXUNIV_0="#"
45416 if test "x$WXUNIV" = "x0" ; then
45417 COND_WXUNIV_0=""
45418 fi
45419
a848cd7e
SC
45420 COND_WXUNIV_1="#"
45421 if test "x$WXUNIV" = "x1" ; then
45422 COND_WXUNIV_1=""
45423 fi
45424
45425 COND_WXUSE_EXPAT_BUILTIN="#"
45426 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
45427 COND_WXUSE_EXPAT_BUILTIN=""
45428 fi
45429
45430 COND_WXUSE_LIBJPEG_BUILTIN="#"
45431 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45432 COND_WXUSE_LIBJPEG_BUILTIN=""
45433 fi
45434
45435 COND_WXUSE_LIBPNG_BUILTIN="#"
45436 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45437 COND_WXUSE_LIBPNG_BUILTIN=""
45438 fi
45439
45440 COND_WXUSE_LIBTIFF_BUILTIN="#"
45441 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45442 COND_WXUSE_LIBTIFF_BUILTIN=""
45443 fi
45444
45445 COND_WXUSE_ODBC_BUILTIN="#"
45446 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
45447 COND_WXUSE_ODBC_BUILTIN=""
45448 fi
45449
45450 COND_WXUSE_REGEX_BUILTIN="#"
45451 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
45452 COND_WXUSE_REGEX_BUILTIN=""
45453 fi
45454
45455 COND_WXUSE_ZLIB_BUILTIN="#"
45456 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
45457 COND_WXUSE_ZLIB_BUILTIN=""
45458 fi
45459
45460
45461
810b94f0
MW
45462 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
45463 { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5
45464echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;}
45465 { (exit 1); exit 1; }; }
45466 fi
45467
2057db16
VS
45468 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
45469 { { echo "$as_me:$LINENO: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&5
45470echo "$as_me: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&2;}
45471 { (exit 1); exit 1; }; }
45472 fi
45473
a848cd7e 45474
ceec2216
RL
45475if test "$wxUSE_SHARED" = "yes"; then
45476
45477 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
45478 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
45479
5b674b9d
DE
45480 case "${host}" in
45481 *-pc-os2_emx | *-pc-os2-emx )
45482 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
45483 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
45484 cp -p ${srcdir}/src/os2/dllnames.sh .
45485 cp -p ${srcdir}/src/os2/dllar.sh .
45486 ;;
45487 esac
ceec2216
RL
45488else
45489
45490 EXE_LINKER="$CXX -o"
45491
45492fi
69120ee4
VZ
45493if test "$wxUSE_OMF" = "yes"; then
45494 case "${host}" in
45495 *-pc-os2_emx | *-pc-os2-emx )
45496 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
45497 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
45498 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
45499 ;;
45500 esac
45501fi
a848cd7e 45502
c08ebc62 45503if test $GCC_PCH = 1 ; then
254e8e29 45504 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 45505fi
a848cd7e
SC
45506
45507
45508SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
45509
45510
45511
45512
45513
45514
45515
45516
45517
45518
45519
45520
45521
45522
45523
45524
45525
45526
45527
45528
45529
45530
45531
45532
45533
45534
45535
45536
45537
45538
45539
45540
45541
45542
45543
45544
45545
45546
45547
45548
45549
45550
a848cd7e
SC
45551
45552
45553
45554
45555
45556
45557
45558
45559
45560
45561
45562
45563
45564
45565
45566
45567
45568
ddd14b14 45569
a848cd7e
SC
45570
45571
45572echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45573echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45574set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45575if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45576 echo $ECHO_N "(cached) $ECHO_C" >&6
45577else
45578 cat >conftest.make <<\_ACEOF
45579all:
45580 @echo 'ac_maketemp="$(MAKE)"'
45581_ACEOF
45582# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45583eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45584if test -n "$ac_maketemp"; then
45585 eval ac_cv_prog_make_${ac_make}_set=yes
45586else
45587 eval ac_cv_prog_make_${ac_make}_set=no
45588fi
45589rm -f conftest.make
45590fi
45591if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45592 echo "$as_me:$LINENO: result: yes" >&5
45593echo "${ECHO_T}yes" >&6
45594 SET_MAKE=
45595else
45596 echo "$as_me:$LINENO: result: no" >&5
45597echo "${ECHO_T}no" >&6
45598 SET_MAKE="MAKE=${MAKE-make}"
45599fi
45600
45601
a848cd7e 45602
ceec2216
RL
45603 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
45604
a848cd7e 45605
ceec2216 45606 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 45607
a848cd7e 45608
ceec2216 45609 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 45610
ceec2216
RL
45611
45612 ac_config_files="$ac_config_files version-script Makefile"
45613
45614
45615 ac_config_commands="$ac_config_commands wx-config
45616 "
a848cd7e
SC
45617
45618
9103d280
RL
45619
45620
a848cd7e
SC
45621if test "$wxUSE_GUI" = "yes"; then
45622 SUBDIRS="samples demos utils contrib"
45623else SUBDIRS="samples utils"
45624fi
45625
45626
45627
45628# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
45629if test "${with_cppunit_prefix+set}" = set; then
45630 withval="$with_cppunit_prefix"
45631 cppunit_config_prefix="$withval"
45632else
45633 cppunit_config_prefix=""
45634fi;
45635
45636# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
45637if test "${with_cppunit_exec_prefix+set}" = set; then
45638 withval="$with_cppunit_exec_prefix"
45639 cppunit_config_exec_prefix="$withval"
45640else
45641 cppunit_config_exec_prefix=""
45642fi;
45643
45644 if test x$cppunit_config_exec_prefix != x ; then
45645 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
45646 if test x${CPPUNIT_CONFIG+set} != xset ; then
45647 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
45648 fi
45649 fi
45650 if test x$cppunit_config_prefix != x ; then
45651 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
45652 if test x${CPPUNIT_CONFIG+set} != xset ; then
45653 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
45654 fi
45655 fi
45656
45657 # Extract the first word of "cppunit-config", so it can be a program name with args.
45658set dummy cppunit-config; ac_word=$2
45659echo "$as_me:$LINENO: checking for $ac_word" >&5
45660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45661if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
45662 echo $ECHO_N "(cached) $ECHO_C" >&6
45663else
45664 case $CPPUNIT_CONFIG in
45665 [\\/]* | ?:[\\/]*)
45666 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
45667 ;;
45668 *)
45669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45670for as_dir in $PATH
45671do
45672 IFS=$as_save_IFS
45673 test -z "$as_dir" && as_dir=.
45674 for ac_exec_ext in '' $ac_executable_extensions; do
45675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45676 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45678 break 2
45679 fi
45680done
45681done
45682
45683 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
45684 ;;
45685esac
45686fi
45687CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
45688
45689if test -n "$CPPUNIT_CONFIG"; then
45690 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
45691echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
45692else
45693 echo "$as_me:$LINENO: result: no" >&5
45694echo "${ECHO_T}no" >&6
45695fi
45696
45697 cppunit_version_min=1.8.0
45698
45699 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
45700echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
45701 no_cppunit=""
45702 if test "$CPPUNIT_CONFIG" = "no" ; then
45703 no_cppunit=yes
45704 else
45705 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
45706 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
45707 cppunit_version=`$CPPUNIT_CONFIG --version`
45708
45709 cppunit_major_version=`echo $cppunit_version | \
45710 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45711 cppunit_minor_version=`echo $cppunit_version | \
45712 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45713 cppunit_micro_version=`echo $cppunit_version | \
45714 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45715
45716 cppunit_major_min=`echo $cppunit_version_min | \
45717 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45718 cppunit_minor_min=`echo $cppunit_version_min | \
45719 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45720 cppunit_micro_min=`echo $cppunit_version_min | \
45721 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45722
45723 cppunit_version_proper=`expr \
45724 $cppunit_major_version \> $cppunit_major_min \| \
45725 $cppunit_major_version \= $cppunit_major_min \& \
45726 $cppunit_minor_version \> $cppunit_minor_min \| \
45727 $cppunit_major_version \= $cppunit_major_min \& \
45728 $cppunit_minor_version \= $cppunit_minor_min \& \
45729 $cppunit_micro_version \>= $cppunit_micro_min `
45730
45731 if test "$cppunit_version_proper" = "1" ; then
45732 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
45733echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
45734 else
45735 echo "$as_me:$LINENO: result: no" >&5
45736echo "${ECHO_T}no" >&6
45737 no_cppunit=yes
45738 fi
45739 fi
45740
45741 if test "x$no_cppunit" = x ; then
c2218763 45742 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
45743 else
45744 CPPUNIT_CFLAGS=""
45745 CPPUNIT_LIBS=""
c2218763 45746 :
a848cd7e
SC
45747 fi
45748
45749
45750
45751
45752
45753for subdir in `echo $SUBDIRS`; do
45754 if test -d ${srcdir}/${subdir} ; then
45755 if test "$wxUSE_GUI" = "yes"; then
45756 if test ${subdir} = "samples"; then
45757 makefiles="samples/Makefile.in $makefiles"
45758 for sample in `echo $SAMPLES_SUBDIRS`; do
45759 if test -d $srcdir/samples/$sample; then
45760 makefiles="samples/$sample/Makefile.in $makefiles"
45761 fi
45762 done
9c112555
MW
45763 else
45764 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
45765 eval "disabled=\$$disabled_var"
45766 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
45767 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
45768 fi
45769 else if test ${subdir} = "samples"; then
45770 makefiles="samples/Makefile.in samples/console/Makefile.in"
45771 elif test ${subdir} = "utils"; then
6537ccf8
VS
45772 makefiles=""
45773 for util in HelpGen tex2rtf ; do
45774 if test -d $srcdir/utils/$util ; then
45775 makefiles="utils/$util/Makefile.in \
45776 utils/$util/src/Makefile.in \
45777 $makefiles"
45778 fi
45779 done
a848cd7e
SC
45780 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
45781 fi
45782 fi
45783
45784 for mkin in $makefiles ; do
45785 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
45786 ac_config_files="$ac_config_files $mk"
45787
45788 done
45789 fi
45790done
45791
45792
45793cat >confcache <<\_ACEOF
45794# This file is a shell script that caches the results of configure
45795# tests run on this system so they can be shared between configure
45796# scripts and configure runs, see configure's option --config-cache.
45797# It is not useful on other systems. If it contains results you don't
45798# want to keep, you may remove or edit it.
45799#
45800# config.status only pays attention to the cache file if you give it
45801# the --recheck option to rerun configure.
45802#
45803# `ac_cv_env_foo' variables (set or unset) will be overridden when
45804# loading this file, other *unset* `ac_cv_foo' will be assigned the
45805# following values.
45806
45807_ACEOF
45808
45809# The following way of writing the cache mishandles newlines in values,
45810# but we know of no workaround that is simple, portable, and efficient.
45811# So, don't put newlines in cache variables' values.
45812# Ultrix sh set writes to stderr and can't be redirected directly,
45813# and sets the high bit in the cache file unless we assign to the vars.
45814{
45815 (set) 2>&1 |
45816 case `(ac_space=' '; set | grep ac_space) 2>&1` in
45817 *ac_space=\ *)
45818 # `set' does not quote correctly, so add quotes (double-quote
45819 # substitution turns \\\\ into \\, and sed turns \\ into \).
45820 sed -n \
ac1cb8d3
VS
45821 "s/'/'\\\\''/g;
45822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
45823 ;;
45824 *)
45825 # `set' quotes correctly as required by POSIX, so do not add quotes.
45826 sed -n \
ac1cb8d3 45827 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
45828 ;;
45829 esac;
45830} |
45831 sed '
45832 t clear
45833 : clear
45834 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45835 t end
45836 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45837 : end' >>confcache
45838if diff $cache_file confcache >/dev/null 2>&1; then :; else
45839 if test -w $cache_file; then
45840 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
45841 cat confcache >$cache_file
45842 else
45843 echo "not updating unwritable cache $cache_file"
45844 fi
45845fi
45846rm -f confcache
45847
45848test "x$prefix" = xNONE && prefix=$ac_default_prefix
45849# Let make expand exec_prefix.
45850test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45851
45852# VPATH may cause trouble with some makes, so we remove $(srcdir),
45853# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45854# trailing colons and then remove the whole line if VPATH becomes empty
45855# (actually we leave an empty line to preserve line numbers).
45856if test "x$srcdir" = x.; then
ac1cb8d3 45857 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
45858s/:*\$(srcdir):*/:/;
45859s/:*\${srcdir}:*/:/;
45860s/:*@srcdir@:*/:/;
ac1cb8d3 45861s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 45862s/:*$//;
ac1cb8d3 45863s/^[^=]*=[ ]*$//;
a848cd7e
SC
45864}'
45865fi
45866
45867DEFS=-DHAVE_CONFIG_H
45868
45869ac_libobjs=
45870ac_ltlibobjs=
45871for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45872 # 1. Remove the extension, and $U if already installed.
45873 ac_i=`echo "$ac_i" |
ac1cb8d3 45874 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
45875 # 2. Add them.
45876 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
45877 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
45878done
45879LIBOBJS=$ac_libobjs
45880
45881LTLIBOBJS=$ac_ltlibobjs
45882
45883
45884
45885: ${CONFIG_STATUS=./config.status}
45886ac_clean_files_save=$ac_clean_files
45887ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45888{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45889echo "$as_me: creating $CONFIG_STATUS" >&6;}
45890cat >$CONFIG_STATUS <<_ACEOF
45891#! $SHELL
45892# Generated by $as_me.
45893# Run this file to recreate the current configuration.
45894# Compiler output produced by configure, useful for debugging
45895# configure, is in config.log if it exists.
45896
45897debug=false
45898ac_cs_recheck=false
45899ac_cs_silent=false
45900SHELL=\${CONFIG_SHELL-$SHELL}
45901_ACEOF
45902
45903cat >>$CONFIG_STATUS <<\_ACEOF
45904## --------------------- ##
45905## M4sh Initialization. ##
45906## --------------------- ##
45907
45908# Be Bourne compatible
45909if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45910 emulate sh
45911 NULLCMD=:
45912 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45913 # is contrary to our usage. Disable this feature.
45914 alias -g '${1+"$@"}'='"$@"'
45915elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
45916 set -o posix
45917fi
ac1cb8d3 45918DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
45919
45920# Support unset when possible.
ac1cb8d3 45921if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
45922 as_unset=unset
45923else
45924 as_unset=false
45925fi
45926
45927
45928# Work around bugs in pre-3.0 UWIN ksh.
45929$as_unset ENV MAIL MAILPATH
45930PS1='$ '
45931PS2='> '
45932PS4='+ '
45933
45934# NLS nuisances.
45935for as_var in \
45936 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45937 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45938 LC_TELEPHONE LC_TIME
45939do
ac1cb8d3 45940 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
45941 eval $as_var=C; export $as_var
45942 else
45943 $as_unset $as_var
45944 fi
45945done
45946
45947# Required to use basename.
45948if expr a : '\(a\)' >/dev/null 2>&1; then
45949 as_expr=expr
45950else
45951 as_expr=false
45952fi
45953
45954if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45955 as_basename=basename
45956else
45957 as_basename=false
45958fi
45959
45960
45961# Name of the executable.
45962as_me=`$as_basename "$0" ||
45963$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45964 X"$0" : 'X\(//\)$' \| \
45965 X"$0" : 'X\(/\)$' \| \
45966 . : '\(.\)' 2>/dev/null ||
45967echo X/"$0" |
45968 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45969 /^X\/\(\/\/\)$/{ s//\1/; q; }
45970 /^X\/\(\/\).*/{ s//\1/; q; }
45971 s/.*/./; q'`
45972
45973
45974# PATH needs CR, and LINENO needs CR and PATH.
45975# Avoid depending upon Character Ranges.
45976as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45977as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45978as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45979as_cr_digits='0123456789'
45980as_cr_alnum=$as_cr_Letters$as_cr_digits
45981
45982# The user is always right.
45983if test "${PATH_SEPARATOR+set}" != set; then
45984 echo "#! /bin/sh" >conf$$.sh
45985 echo "exit 0" >>conf$$.sh
45986 chmod +x conf$$.sh
45987 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45988 PATH_SEPARATOR=';'
45989 else
45990 PATH_SEPARATOR=:
45991 fi
45992 rm -f conf$$.sh
45993fi
45994
45995
45996 as_lineno_1=$LINENO
45997 as_lineno_2=$LINENO
45998 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45999 test "x$as_lineno_1" != "x$as_lineno_2" &&
46000 test "x$as_lineno_3" = "x$as_lineno_2" || {
46001 # Find who we are. Look in the path if we contain no path at all
46002 # relative or not.
46003 case $0 in
46004 *[\\/]* ) as_myself=$0 ;;
46005 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46006for as_dir in $PATH
46007do
46008 IFS=$as_save_IFS
46009 test -z "$as_dir" && as_dir=.
46010 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46011done
46012
46013 ;;
46014 esac
46015 # We did not find ourselves, most probably we were run as `sh COMMAND'
46016 # in which case we are not to be found in the path.
46017 if test "x$as_myself" = x; then
46018 as_myself=$0
46019 fi
46020 if test ! -f "$as_myself"; then
46021 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46022echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46023 { (exit 1); exit 1; }; }
46024 fi
46025 case $CONFIG_SHELL in
46026 '')
46027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46028for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46029do
46030 IFS=$as_save_IFS
46031 test -z "$as_dir" && as_dir=.
46032 for as_base in sh bash ksh sh5; do
46033 case $as_dir in
46034 /*)
46035 if ("$as_dir/$as_base" -c '
46036 as_lineno_1=$LINENO
46037 as_lineno_2=$LINENO
46038 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46039 test "x$as_lineno_1" != "x$as_lineno_2" &&
46040 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
46041 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46042 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46043 CONFIG_SHELL=$as_dir/$as_base
46044 export CONFIG_SHELL
46045 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46046 fi;;
46047 esac
46048 done
46049done
46050;;
46051 esac
46052
46053 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46054 # uniformly replaced by the line number. The first 'sed' inserts a
46055 # line-number line before each line; the second 'sed' does the real
46056 # work. The second script uses 'N' to pair each line-number line
46057 # with the numbered line, and appends trailing '-' during
46058 # substitution so that $LINENO is not a special case at line end.
46059 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46060 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
46061 sed '=' <$as_myself |
46062 sed '
46063 N
46064 s,$,-,
46065 : loop
46066 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46067 t loop
46068 s,-$,,
46069 s,^['$as_cr_digits']*\n,,
46070 ' >$as_me.lineno &&
46071 chmod +x $as_me.lineno ||
46072 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46073echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46074 { (exit 1); exit 1; }; }
46075
46076 # Don't try to exec as it changes $[0], causing all sort of problems
46077 # (the dirname of $[0] is not the place where we might find the
46078 # original and so on. Autoconf is especially sensible to this).
46079 . ./$as_me.lineno
46080 # Exit status is that of the last command.
46081 exit
46082}
46083
46084
46085case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46086 *c*,-n*) ECHO_N= ECHO_C='
46087' ECHO_T=' ' ;;
46088 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46089 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
46090esac
46091
46092if expr a : '\(a\)' >/dev/null 2>&1; then
46093 as_expr=expr
46094else
46095 as_expr=false
46096fi
46097
46098rm -f conf$$ conf$$.exe conf$$.file
46099echo >conf$$.file
46100if ln -s conf$$.file conf$$ 2>/dev/null; then
46101 # We could just check for DJGPP; but this test a) works b) is more generic
46102 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46103 if test -f conf$$.exe; then
46104 # Don't use ln at all; we don't have any links
46105 as_ln_s='cp -p'
46106 else
46107 as_ln_s='ln -s'
46108 fi
46109elif ln conf$$.file conf$$ 2>/dev/null; then
46110 as_ln_s=ln
46111else
46112 as_ln_s='cp -p'
46113fi
46114rm -f conf$$ conf$$.exe conf$$.file
46115
46116if mkdir -p . 2>/dev/null; then
46117 as_mkdir_p=:
46118else
ac1cb8d3 46119 test -d ./-p && rmdir ./-p
a848cd7e
SC
46120 as_mkdir_p=false
46121fi
46122
46123as_executable_p="test -f"
46124
46125# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 46126as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46127
46128# Sed expression to map a string onto a valid variable name.
ac1cb8d3 46129as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46130
46131
46132# IFS
46133# We need space, tab and new line, in precisely that order.
46134as_nl='
46135'
46136IFS=" $as_nl"
46137
46138# CDPATH.
46139$as_unset CDPATH
46140
46141exec 6>&1
46142
46143# Open the log real soon, to keep \$[0] and so on meaningful, and to
46144# report actual input values of CONFIG_FILES etc. instead of their
46145# values after options handling. Logging --version etc. is OK.
46146exec 5>>config.log
46147{
46148 echo
46149 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46150## Running $as_me. ##
46151_ASBOX
46152} >&5
46153cat >&5 <<_CSEOF
46154
eb730a0c 46155This file was extended by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 46156generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
46157
46158 CONFIG_FILES = $CONFIG_FILES
46159 CONFIG_HEADERS = $CONFIG_HEADERS
46160 CONFIG_LINKS = $CONFIG_LINKS
46161 CONFIG_COMMANDS = $CONFIG_COMMANDS
46162 $ $0 $@
46163
46164_CSEOF
46165echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
46166echo >&5
46167_ACEOF
46168
46169# Files that config.status was made for.
46170if test -n "$ac_config_files"; then
46171 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
46172fi
46173
46174if test -n "$ac_config_headers"; then
46175 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
46176fi
46177
46178if test -n "$ac_config_links"; then
46179 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
46180fi
46181
46182if test -n "$ac_config_commands"; then
46183 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
46184fi
46185
46186cat >>$CONFIG_STATUS <<\_ACEOF
46187
46188ac_cs_usage="\
46189\`$as_me' instantiates files from templates according to the
46190current configuration.
46191
46192Usage: $0 [OPTIONS] [FILE]...
46193
46194 -h, --help print this help, then exit
46195 -V, --version print version number, then exit
46196 -q, --quiet do not print progress messages
46197 -d, --debug don't remove temporary files
46198 --recheck update $as_me by reconfiguring in the same conditions
46199 --file=FILE[:TEMPLATE]
ac1cb8d3 46200 instantiate the configuration file FILE
a848cd7e 46201 --header=FILE[:TEMPLATE]
ac1cb8d3 46202 instantiate the configuration header FILE
a848cd7e
SC
46203
46204Configuration files:
46205$config_files
46206
46207Configuration headers:
46208$config_headers
46209
46210Configuration commands:
46211$config_commands
46212
46213Report bugs to <bug-autoconf@gnu.org>."
46214_ACEOF
46215
46216cat >>$CONFIG_STATUS <<_ACEOF
46217ac_cs_version="\\
eb730a0c 46218wxWidgets config.status 2.6.2
ac1cb8d3 46219configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
46220 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
46221
ac1cb8d3 46222Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
46223This config.status script is free software; the Free Software Foundation
46224gives unlimited permission to copy, distribute and modify it."
46225srcdir=$srcdir
46226INSTALL="$INSTALL"
46227_ACEOF
46228
46229cat >>$CONFIG_STATUS <<\_ACEOF
46230# If no file are specified by the user, then we need to provide default
46231# value. By we need to know if files were specified by the user.
46232ac_need_defaults=:
46233while test $# != 0
46234do
46235 case $1 in
46236 --*=*)
46237 ac_option=`expr "x$1" : 'x\([^=]*\)='`
46238 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
46239 ac_shift=:
46240 ;;
46241 -*)
46242 ac_option=$1
46243 ac_optarg=$2
46244 ac_shift=shift
46245 ;;
46246 *) # This is not an option, so the user has probably given explicit
46247 # arguments.
46248 ac_option=$1
46249 ac_need_defaults=false;;
46250 esac
46251
46252 case $ac_option in
46253 # Handling of the options.
46254_ACEOF
46255cat >>$CONFIG_STATUS <<\_ACEOF
46256 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46257 ac_cs_recheck=: ;;
46258 --version | --vers* | -V )
46259 echo "$ac_cs_version"; exit 0 ;;
46260 --he | --h)
46261 # Conflict between --help and --header
46262 { { echo "$as_me:$LINENO: error: ambiguous option: $1
46263Try \`$0 --help' for more information." >&5
46264echo "$as_me: error: ambiguous option: $1
46265Try \`$0 --help' for more information." >&2;}
46266 { (exit 1); exit 1; }; };;
46267 --help | --hel | -h )
46268 echo "$ac_cs_usage"; exit 0 ;;
46269 --debug | --d* | -d )
46270 debug=: ;;
46271 --file | --fil | --fi | --f )
46272 $ac_shift
46273 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
46274 ac_need_defaults=false;;
46275 --header | --heade | --head | --hea )
46276 $ac_shift
46277 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
46278 ac_need_defaults=false;;
46279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46280 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46281 ac_cs_silent=: ;;
46282
46283 # This is an error.
46284 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
46285Try \`$0 --help' for more information." >&5
46286echo "$as_me: error: unrecognized option: $1
46287Try \`$0 --help' for more information." >&2;}
46288 { (exit 1); exit 1; }; } ;;
46289
46290 *) ac_config_targets="$ac_config_targets $1" ;;
46291
46292 esac
46293 shift
46294done
46295
46296ac_configure_extra_args=
46297
46298if $ac_cs_silent; then
46299 exec 6>/dev/null
46300 ac_configure_extra_args="$ac_configure_extra_args --silent"
46301fi
46302
46303_ACEOF
46304cat >>$CONFIG_STATUS <<_ACEOF
46305if \$ac_cs_recheck; then
46306 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
46307 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46308fi
46309
46310_ACEOF
46311
46312cat >>$CONFIG_STATUS <<_ACEOF
46313#
46314# INIT-COMMANDS section.
46315#
46316
ceec2216
RL
46317 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46318 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46319 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46320 LN_S="${LN_S}"
a848cd7e
SC
46321
46322
46323_ACEOF
46324
46325
46326
46327cat >>$CONFIG_STATUS <<\_ACEOF
46328for ac_config_target in $ac_config_targets
46329do
46330 case "$ac_config_target" in
46331 # Handling of arguments.
ceec2216
RL
46332 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
46333 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
46334 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
46335 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46336 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
46337 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
46338 "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
a848cd7e
SC
46339 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46340echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46341 { (exit 1); exit 1; }; };;
46342 esac
46343done
46344
46345# If the user did not use the arguments to specify the items to instantiate,
46346# then the envvar interface is used. Set only those that are not.
46347# We use the long form for the default assignment because of an extremely
46348# bizarre bug on SunOS 4.1.3.
46349if $ac_need_defaults; then
46350 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46351 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46352 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46353fi
46354
46355# Have a temporary directory for convenience. Make it in the build tree
46356# simply because there is no reason to put it here, and in addition,
46357# creating and moving files from /tmp can sometimes cause problems.
46358# Create a temporary directory, and hook for its removal unless debugging.
46359$debug ||
46360{
46361 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
46362 trap '{ (exit 1); exit 1; }' 1 2 13 15
46363}
46364
46365# Create a (secure) tmp directory for tmp files.
46366
46367{
46368 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
46369 test -n "$tmp" && test -d "$tmp"
46370} ||
46371{
46372 tmp=./confstat$$-$RANDOM
46373 (umask 077 && mkdir $tmp)
46374} ||
46375{
46376 echo "$me: cannot create a temporary directory in ." >&2
46377 { (exit 1); exit 1; }
46378}
46379
46380_ACEOF
46381
46382cat >>$CONFIG_STATUS <<_ACEOF
46383
46384#
46385# CONFIG_FILES section.
46386#
46387
46388# No need to generate the scripts if there are no CONFIG_FILES.
46389# This happens for instance when ./config.status config.h
46390if test -n "\$CONFIG_FILES"; then
46391 # Protect against being on the right side of a sed subst in config.status.
46392 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
46393 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
46394s,@SHELL@,$SHELL,;t t
46395s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
46396s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
46397s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
46398s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
46399s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
46400s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
46401s,@exec_prefix@,$exec_prefix,;t t
46402s,@prefix@,$prefix,;t t
46403s,@program_transform_name@,$program_transform_name,;t t
46404s,@bindir@,$bindir,;t t
46405s,@sbindir@,$sbindir,;t t
46406s,@libexecdir@,$libexecdir,;t t
46407s,@datadir@,$datadir,;t t
46408s,@sysconfdir@,$sysconfdir,;t t
46409s,@sharedstatedir@,$sharedstatedir,;t t
46410s,@localstatedir@,$localstatedir,;t t
46411s,@libdir@,$libdir,;t t
46412s,@includedir@,$includedir,;t t
46413s,@oldincludedir@,$oldincludedir,;t t
46414s,@infodir@,$infodir,;t t
46415s,@mandir@,$mandir,;t t
46416s,@build_alias@,$build_alias,;t t
46417s,@host_alias@,$host_alias,;t t
46418s,@target_alias@,$target_alias,;t t
46419s,@DEFS@,$DEFS,;t t
46420s,@ECHO_C@,$ECHO_C,;t t
46421s,@ECHO_N@,$ECHO_N,;t t
46422s,@ECHO_T@,$ECHO_T,;t t
46423s,@LIBS@,$LIBS,;t t
46424s,@build@,$build,;t t
46425s,@build_cpu@,$build_cpu,;t t
46426s,@build_vendor@,$build_vendor,;t t
46427s,@build_os@,$build_os,;t t
46428s,@host@,$host,;t t
46429s,@host_cpu@,$host_cpu,;t t
46430s,@host_vendor@,$host_vendor,;t t
46431s,@host_os@,$host_os,;t t
46432s,@target@,$target,;t t
46433s,@target_cpu@,$target_cpu,;t t
46434s,@target_vendor@,$target_vendor,;t t
46435s,@target_os@,$target_os,;t t
46436s,@CC@,$CC,;t t
46437s,@CFLAGS@,$CFLAGS,;t t
46438s,@LDFLAGS@,$LDFLAGS,;t t
46439s,@CPPFLAGS@,$CPPFLAGS,;t t
46440s,@ac_ct_CC@,$ac_ct_CC,;t t
46441s,@EXEEXT@,$EXEEXT,;t t
46442s,@OBJEXT@,$OBJEXT,;t t
46443s,@CPP@,$CPP,;t t
46444s,@EGREP@,$EGREP,;t t
46445s,@CXX@,$CXX,;t t
46446s,@CXXFLAGS@,$CXXFLAGS,;t t
46447s,@ac_ct_CXX@,$ac_ct_CXX,;t t
46448s,@RANLIB@,$RANLIB,;t t
46449s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
46450s,@AR@,$AR,;t t
8c80d384 46451s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
46452s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
46453s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
46454s,@INSTALL_DATA@,$INSTALL_DATA,;t t
46455s,@STRIP@,$STRIP,;t t
8c80d384
DE
46456s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
46457s,@RESCOMP@,$RESCOMP,;t t
46458s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t
46459s,@DLLTOOL@,$DLLTOOL,;t t
46460s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
46461s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
46462s,@LN_S@,$LN_S,;t t
46463s,@CXXCPP@,$CXXCPP,;t t
46464s,@subdirs@,$subdirs,;t t
46465s,@PKG_CONFIG@,$PKG_CONFIG,;t t
46466s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
46467s,@GTK_LIBS@,$GTK_LIBS,;t t
46468s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
46469s,@X_CFLAGS@,$X_CFLAGS,;t t
46470s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
46471s,@X_LIBS@,$X_LIBS,;t t
46472s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
46473s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
46474s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
46475s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
46476s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
46477s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
46478s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
a848cd7e
SC
46479s,@DEREZ@,$DEREZ,;t t
46480s,@SETFILE@,$SETFILE,;t t
46481s,@LIBICONV@,$LIBICONV,;t t
46482s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
46483s,@SDL_CONFIG@,$SDL_CONFIG,;t t
46484s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
46485s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
46486s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
46487s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
46488s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
46489s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
46490s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
46491s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
46492s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
46493s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
46494s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
46495s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
46496s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
46497s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
46498s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
46499s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
46500s,@VENDOR@,$VENDOR,;t t
46501s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
46502s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
46503s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
46504s,@WXUNIV@,$WXUNIV,;t t
46505s,@MONOLITHIC@,$MONOLITHIC,;t t
46506s,@USE_PLUGINS@,$USE_PLUGINS,;t t
46507s,@EXTRALIBS@,$EXTRALIBS,;t t
46508s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
46509s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
46510s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
46511s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
46512s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
46513s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
46514s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 46515s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
46516s,@UNICODE@,$UNICODE,;t t
46517s,@BUILD@,$BUILD,;t t
46518s,@DEBUG_INFO@,$DEBUG_INFO,;t t
46519s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
46520s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
46521s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
46522s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
46523s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
46524s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
46525s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
46526s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
46527s,@SET_MAKE@,$SET_MAKE,;t t
46528s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
46529s,@NM@,$NM,;t t
46530s,@ac_ct_NM@,$ac_ct_NM,;t t
46531s,@INSTALL_DIR@,$INSTALL_DIR,;t t
46532s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
46533s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
46534s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
46535s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
46536s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 46537s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
46538s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
46539s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 46540s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
46541s,@SO_SUFFIX@,$SO_SUFFIX,;t t
46542s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
46543s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
46544s,@LIBPREFIX@,$LIBPREFIX,;t t
46545s,@LIBEXT@,$LIBEXT,;t t
46546s,@DLLPREFIX@,$DLLPREFIX,;t t
46547s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 46548s,@dlldir@,$dlldir,;t t
a848cd7e
SC
46549s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
46550s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
46551s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
46552s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
46553s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
46554s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 46555s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
46556s,@USE_SOVERSION@,$USE_SOVERSION,;t t
46557s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
46558s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 46559s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
46560s,@USE_MACVERSION@,$USE_MACVERSION,;t t
46561s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
46562s,@SONAME_FLAG@,$SONAME_FLAG,;t t
46563s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
46564s,@GCC_PCH@,$GCC_PCH,;t t
46565s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
46566s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
46567s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
46568s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
46569s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
46570s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
46571s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
46572s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
46573s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
46574s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
46575s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
46576s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
46577s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
46578s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
46579s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
46580s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
46581s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
46582s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 46583s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 46584s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
6671c68b 46585s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t
a848cd7e 46586s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 46587s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
46588s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
46589s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 46590s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 46591s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
6671c68b 46592s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t
a848cd7e 46593s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 46594s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
46595s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
46596s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
46597s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
46598s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
46599s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
46600s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 46601s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
46602s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
46603s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 46604s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
46605s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
46606s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
46607s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 46608s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 46609s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
ebee3cd0
VS
46610s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
46611s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
46612s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
46613s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 46614s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 46615s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 46616s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
46617s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
46618s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
46619s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
46620s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
46621s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
46622s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
46623s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
46624s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
46625s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
46626s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
46627s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
46628s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
46629s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
46630s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
46631s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 46632s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
46633s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
46634s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
46635s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
46636s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
46637s,@COND_SHARED_1@,$COND_SHARED_1,;t t
46638s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 46639s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 46640s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 46641s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 46642s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
46643s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
46644s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
46645s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
46646s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
46647s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
46648s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
46649s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
46650s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
46651s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
46652s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
46653s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
46654s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
46655s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
46656s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
46657s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
46658s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
46659s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
46660s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
46661s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
46662s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
46663s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
46664s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
46665s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
46666s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
46667s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
46668s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
46669s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
46670s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
46671s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
46672s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
46673s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
46674s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
46675s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
46676s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
46677s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 46678s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
46679s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
46680s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 46681s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 46682s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
46683s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
46684s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
46685s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
46686s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
46687s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 46688s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 46689s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 46690s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 46691s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
46692s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
46693s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
46694s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
46695s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
46696s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
46697s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
46698s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
46699s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 46700s,@SHARED@,$SHARED,;t t
a848cd7e
SC
46701s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
46702s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
46703s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
46704s,@USE_GUI@,$USE_GUI,;t t
46705s,@AFMINSTALL@,$AFMINSTALL,;t t
46706s,@WIN32INSTALL@,$WIN32INSTALL,;t t
46707s,@TOOLKIT@,$TOOLKIT,;t t
46708s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 46709s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 46710s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
46711s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
46712s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 46713s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
46714s,@WIDGET_SET@,$WIDGET_SET,;t t
46715s,@WX_RELEASE@,$WX_RELEASE,;t t
46716s,@WX_VERSION@,$WX_VERSION,;t t
46717s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
46718s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
46719s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 46720s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
46721s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
46722s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
46723s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
46724s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 46725s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
46726s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
46727s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 46728s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 46729s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
46730s,@DISTDIR@,$DISTDIR,;t t
46731s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
46732s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
46733s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
46734s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
46735s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
46736s,@RESFLAGS@,$RESFLAGS,;t t
46737s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
46738s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
46739s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
46740s,@LIBWXMACRES@,$LIBWXMACRES,;t t
46741s,@MACRESCOMP@,$MACRESCOMP,;t t
46742s,@MACSETFILE@,$MACSETFILE,;t t
46743s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
46744s,@GCC@,$GCC,;t t
a848cd7e
SC
46745s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
46746s,@LIBOBJS@,$LIBOBJS,;t t
46747s,@LTLIBOBJS@,$LTLIBOBJS,;t t
46748CEOF
46749
46750_ACEOF
46751
46752 cat >>$CONFIG_STATUS <<\_ACEOF
46753 # Split the substitutions into bite-sized pieces for seds with
46754 # small command number limits, like on Digital OSF/1 and HP-UX.
46755 ac_max_sed_lines=48
46756 ac_sed_frag=1 # Number of current file.
46757 ac_beg=1 # First line for current file.
46758 ac_end=$ac_max_sed_lines # Line after last line for current file.
46759 ac_more_lines=:
46760 ac_sed_cmds=
46761 while $ac_more_lines; do
46762 if test $ac_beg -gt 1; then
46763 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46764 else
46765 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46766 fi
46767 if test ! -s $tmp/subs.frag; then
46768 ac_more_lines=false
46769 else
46770 # The purpose of the label and of the branching condition is to
46771 # speed up the sed processing (if there are no `@' at all, there
46772 # is no need to browse any of the substitutions).
46773 # These are the two extra sed commands mentioned above.
46774 (echo ':t
46775 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
46776 if test -z "$ac_sed_cmds"; then
ac1cb8d3 46777 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 46778 else
ac1cb8d3 46779 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
46780 fi
46781 ac_sed_frag=`expr $ac_sed_frag + 1`
46782 ac_beg=$ac_end
46783 ac_end=`expr $ac_end + $ac_max_sed_lines`
46784 fi
46785 done
46786 if test -z "$ac_sed_cmds"; then
46787 ac_sed_cmds=cat
46788 fi
46789fi # test -n "$CONFIG_FILES"
46790
46791_ACEOF
46792cat >>$CONFIG_STATUS <<\_ACEOF
46793for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
46794 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46795 case $ac_file in
46796 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
46797 cat >$tmp/stdin
46798 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46799 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 46800 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 46801 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
46802 * ) ac_file_in=$ac_file.in ;;
46803 esac
46804
46805 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
46806 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46807$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46808 X"$ac_file" : 'X\(//\)[^/]' \| \
46809 X"$ac_file" : 'X\(//\)$' \| \
46810 X"$ac_file" : 'X\(/\)' \| \
46811 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46812echo X"$ac_file" |
46813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46815 /^X\(\/\/\)$/{ s//\1/; q; }
46816 /^X\(\/\).*/{ s//\1/; q; }
46817 s/.*/./; q'`
46818 { if $as_mkdir_p; then
46819 mkdir -p "$ac_dir"
46820 else
46821 as_dir="$ac_dir"
46822 as_dirs=
46823 while test ! -d "$as_dir"; do
46824 as_dirs="$as_dir $as_dirs"
46825 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46826$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46827 X"$as_dir" : 'X\(//\)[^/]' \| \
46828 X"$as_dir" : 'X\(//\)$' \| \
46829 X"$as_dir" : 'X\(/\)' \| \
46830 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46831echo X"$as_dir" |
46832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46833 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46834 /^X\(\/\/\)$/{ s//\1/; q; }
46835 /^X\(\/\).*/{ s//\1/; q; }
46836 s/.*/./; q'`
46837 done
46838 test ! -n "$as_dirs" || mkdir $as_dirs
46839 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46840echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46841 { (exit 1); exit 1; }; }; }
46842
46843 ac_builddir=.
46844
46845if test "$ac_dir" != .; then
46846 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46847 # A "../" for each directory in $ac_dir_suffix.
46848 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46849else
46850 ac_dir_suffix= ac_top_builddir=
46851fi
46852
46853case $srcdir in
46854 .) # No --srcdir option. We are building in place.
46855 ac_srcdir=.
46856 if test -z "$ac_top_builddir"; then
46857 ac_top_srcdir=.
46858 else
46859 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46860 fi ;;
46861 [\\/]* | ?:[\\/]* ) # Absolute path.
46862 ac_srcdir=$srcdir$ac_dir_suffix;
46863 ac_top_srcdir=$srcdir ;;
46864 *) # Relative path.
46865 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46866 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46867esac
ac1cb8d3
VS
46868
46869# Do not use `cd foo && pwd` to compute absolute paths, because
46870# the directories may not exist.
46871case `pwd` in
46872.) ac_abs_builddir="$ac_dir";;
46873*)
46874 case "$ac_dir" in
46875 .) ac_abs_builddir=`pwd`;;
46876 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46877 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46878 esac;;
46879esac
46880case $ac_abs_builddir in
46881.) ac_abs_top_builddir=${ac_top_builddir}.;;
46882*)
46883 case ${ac_top_builddir}. in
46884 .) ac_abs_top_builddir=$ac_abs_builddir;;
46885 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46886 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46887 esac;;
46888esac
46889case $ac_abs_builddir in
46890.) ac_abs_srcdir=$ac_srcdir;;
46891*)
46892 case $ac_srcdir in
46893 .) ac_abs_srcdir=$ac_abs_builddir;;
46894 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46895 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46896 esac;;
46897esac
46898case $ac_abs_builddir in
46899.) ac_abs_top_srcdir=$ac_top_srcdir;;
46900*)
46901 case $ac_top_srcdir in
46902 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46903 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46904 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46905 esac;;
46906esac
a848cd7e
SC
46907
46908
46909 case $INSTALL in
46910 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46911 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
46912 esac
46913
a848cd7e
SC
46914 # Let's still pretend it is `configure' which instantiates (i.e., don't
46915 # use $as_me), people would be surprised to read:
46916 # /* config.h. Generated by config.status. */
46917 if test x"$ac_file" = x-; then
46918 configure_input=
46919 else
46920 configure_input="$ac_file. "
46921 fi
46922 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 46923 sed 's,.*/,,'` by configure."
a848cd7e
SC
46924
46925 # First look for the input files in the build tree, otherwise in the
46926 # src tree.
46927 ac_file_inputs=`IFS=:
46928 for f in $ac_file_in; do
46929 case $f in
46930 -) echo $tmp/stdin ;;
46931 [\\/$]*)
ac1cb8d3
VS
46932 # Absolute (can't be DOS-style, as IFS=:)
46933 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46934echo "$as_me: error: cannot find input file: $f" >&2;}
46935 { (exit 1); exit 1; }; }
ac1cb8d3 46936 echo "$f";;
a848cd7e 46937 *) # Relative
ac1cb8d3
VS
46938 if test -f "$f"; then
46939 # Build tree
46940 echo "$f"
46941 elif test -f "$srcdir/$f"; then
46942 # Source tree
46943 echo "$srcdir/$f"
46944 else
46945 # /dev/null tree
46946 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46947echo "$as_me: error: cannot find input file: $f" >&2;}
46948 { (exit 1); exit 1; }; }
ac1cb8d3 46949 fi;;
a848cd7e
SC
46950 esac
46951 done` || { (exit 1); exit 1; }
6ebeb4c7
VZ
46952
46953 if test x"$ac_file" != x-; then
46954 { echo "$as_me:$LINENO: creating $ac_file" >&5
46955echo "$as_me: creating $ac_file" >&6;}
46956 rm -f "$ac_file"
46957 fi
a848cd7e
SC
46958_ACEOF
46959cat >>$CONFIG_STATUS <<_ACEOF
46960 sed "$ac_vpsub
46961$extrasub
46962_ACEOF
46963cat >>$CONFIG_STATUS <<\_ACEOF
46964:t
46965/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46966s,@configure_input@,$configure_input,;t t
46967s,@srcdir@,$ac_srcdir,;t t
46968s,@abs_srcdir@,$ac_abs_srcdir,;t t
46969s,@top_srcdir@,$ac_top_srcdir,;t t
46970s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
46971s,@builddir@,$ac_builddir,;t t
46972s,@abs_builddir@,$ac_abs_builddir,;t t
46973s,@top_builddir@,$ac_top_builddir,;t t
46974s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
46975s,@INSTALL@,$ac_INSTALL,;t t
46976" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
46977 rm -f $tmp/stdin
46978 if test x"$ac_file" != x-; then
46979 mv $tmp/out $ac_file
46980 else
46981 cat $tmp/out
46982 rm -f $tmp/out
46983 fi
46984
ceec2216
RL
46985 # Run the commands associated with the file.
46986 case $ac_file in
46987 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
46988 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
46989 esac
a848cd7e
SC
46990done
46991_ACEOF
46992cat >>$CONFIG_STATUS <<\_ACEOF
46993
46994#
46995# CONFIG_HEADER section.
46996#
46997
46998# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
46999# NAME is the cpp macro being defined and VALUE is the value it is being given.
47000#
47001# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
47002ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
47003ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
47004ac_dC=' '
47005ac_dD=',;t'
47006# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 47007ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
47008ac_uB='$,\1#\2define\3'
47009ac_uC=' '
47010ac_uD=',;t'
47011
47012for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47013 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47014 case $ac_file in
47015 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47016 cat >$tmp/stdin
47017 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47018 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47019 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47020 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47021 * ) ac_file_in=$ac_file.in ;;
47022 esac
47023
47024 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47025echo "$as_me: creating $ac_file" >&6;}
47026
47027 # First look for the input files in the build tree, otherwise in the
47028 # src tree.
47029 ac_file_inputs=`IFS=:
47030 for f in $ac_file_in; do
47031 case $f in
47032 -) echo $tmp/stdin ;;
47033 [\\/$]*)
ac1cb8d3
VS
47034 # Absolute (can't be DOS-style, as IFS=:)
47035 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47036echo "$as_me: error: cannot find input file: $f" >&2;}
47037 { (exit 1); exit 1; }; }
ac1cb8d3
VS
47038 # Do quote $f, to prevent DOS paths from being IFS'd.
47039 echo "$f";;
a848cd7e 47040 *) # Relative
ac1cb8d3
VS
47041 if test -f "$f"; then
47042 # Build tree
47043 echo "$f"
47044 elif test -f "$srcdir/$f"; then
47045 # Source tree
47046 echo "$srcdir/$f"
47047 else
47048 # /dev/null tree
47049 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47050echo "$as_me: error: cannot find input file: $f" >&2;}
47051 { (exit 1); exit 1; }; }
ac1cb8d3 47052 fi;;
a848cd7e
SC
47053 esac
47054 done` || { (exit 1); exit 1; }
47055 # Remove the trailing spaces.
ac1cb8d3 47056 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
47057
47058_ACEOF
47059
47060# Transform confdefs.h into two sed scripts, `conftest.defines' and
47061# `conftest.undefs', that substitutes the proper values into
47062# config.h.in to produce config.h. The first handles `#define'
47063# templates, and the second `#undef' templates.
47064# And first: Protect against being on the right side of a sed subst in
47065# config.status. Protect against being in an unquoted here document
47066# in config.status.
47067rm -f conftest.defines conftest.undefs
47068# Using a here document instead of a string reduces the quoting nightmare.
47069# Putting comments in sed scripts is not portable.
47070#
47071# `end' is used to avoid that the second main sed command (meant for
47072# 0-ary CPP macros) applies to n-ary macro definitions.
47073# See the Autoconf documentation for `clear'.
47074cat >confdef2sed.sed <<\_ACEOF
47075s/[\\&,]/\\&/g
47076s,[\\$`],\\&,g
47077t clear
47078: clear
ac1cb8d3 47079s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 47080t end
ac1cb8d3 47081s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
47082: end
47083_ACEOF
47084# If some macros were called several times there might be several times
47085# the same #defines, which is useless. Nevertheless, we may not want to
47086# sort them, since we want the *last* AC-DEFINE to be honored.
47087uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47088sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47089rm -f confdef2sed.sed
47090
47091# This sed command replaces #undef with comments. This is necessary, for
47092# example, in the case of _POSIX_SOURCE, which is predefined and required
47093# on some systems where configure will not decide to define it.
47094cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 47095s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
47096_ACEOF
47097
47098# Break up conftest.defines because some shells have a limit on the size
47099# of here documents, and old seds have small limits too (100 cmds).
47100echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 47101echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
47102echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
47103echo ' :' >>$CONFIG_STATUS
47104rm -f conftest.tail
47105while grep . conftest.defines >/dev/null
47106do
47107 # Write a limited-size here document to $tmp/defines.sed.
47108 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
47109 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 47110 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
47111 # Work around the forget-to-reset-the-flag bug.
47112 echo 't clr' >>$CONFIG_STATUS
47113 echo ': clr' >>$CONFIG_STATUS
47114 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47115 echo 'CEOF
47116 sed -f $tmp/defines.sed $tmp/in >$tmp/out
47117 rm -f $tmp/in
47118 mv $tmp/out $tmp/in
47119' >>$CONFIG_STATUS
47120 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47121 rm -f conftest.defines
47122 mv conftest.tail conftest.defines
47123done
47124rm -f conftest.defines
47125echo ' fi # grep' >>$CONFIG_STATUS
47126echo >>$CONFIG_STATUS
47127
47128# Break up conftest.undefs because some shells have a limit on the size
47129# of here documents, and old seds have small limits too (100 cmds).
47130echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
47131rm -f conftest.tail
47132while grep . conftest.undefs >/dev/null
47133do
47134 # Write a limited-size here document to $tmp/undefs.sed.
47135 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
47136 # Speed up: don't consider the non `#undef'
ac1cb8d3 47137 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
47138 # Work around the forget-to-reset-the-flag bug.
47139 echo 't clr' >>$CONFIG_STATUS
47140 echo ': clr' >>$CONFIG_STATUS
47141 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
47142 echo 'CEOF
47143 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
47144 rm -f $tmp/in
47145 mv $tmp/out $tmp/in
47146' >>$CONFIG_STATUS
47147 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
47148 rm -f conftest.undefs
47149 mv conftest.tail conftest.undefs
47150done
47151rm -f conftest.undefs
47152
47153cat >>$CONFIG_STATUS <<\_ACEOF
47154 # Let's still pretend it is `configure' which instantiates (i.e., don't
47155 # use $as_me), people would be surprised to read:
47156 # /* config.h. Generated by config.status. */
47157 if test x"$ac_file" = x-; then
47158 echo "/* Generated by configure. */" >$tmp/config.h
47159 else
47160 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
47161 fi
47162 cat $tmp/in >>$tmp/config.h
47163 rm -f $tmp/in
47164 if test x"$ac_file" != x-; then
47165 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
47166 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47167echo "$as_me: $ac_file is unchanged" >&6;}
47168 else
47169 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47170$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47171 X"$ac_file" : 'X\(//\)[^/]' \| \
47172 X"$ac_file" : 'X\(//\)$' \| \
47173 X"$ac_file" : 'X\(/\)' \| \
47174 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47175echo X"$ac_file" |
47176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47178 /^X\(\/\/\)$/{ s//\1/; q; }
47179 /^X\(\/\).*/{ s//\1/; q; }
47180 s/.*/./; q'`
47181 { if $as_mkdir_p; then
47182 mkdir -p "$ac_dir"
47183 else
47184 as_dir="$ac_dir"
47185 as_dirs=
47186 while test ! -d "$as_dir"; do
47187 as_dirs="$as_dir $as_dirs"
47188 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47189$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47190 X"$as_dir" : 'X\(//\)[^/]' \| \
47191 X"$as_dir" : 'X\(//\)$' \| \
47192 X"$as_dir" : 'X\(/\)' \| \
47193 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47194echo X"$as_dir" |
47195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47197 /^X\(\/\/\)$/{ s//\1/; q; }
47198 /^X\(\/\).*/{ s//\1/; q; }
47199 s/.*/./; q'`
47200 done
47201 test ! -n "$as_dirs" || mkdir $as_dirs
47202 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47203echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47204 { (exit 1); exit 1; }; }; }
47205
47206 rm -f $ac_file
47207 mv $tmp/config.h $ac_file
47208 fi
47209 else
47210 cat $tmp/config.h
47211 rm -f $tmp/config.h
47212 fi
47213done
47214_ACEOF
47215cat >>$CONFIG_STATUS <<\_ACEOF
47216
47217#
47218# CONFIG_COMMANDS section.
47219#
47220for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
47221 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
47222 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
47223 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
47224$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47225 X"$ac_dest" : 'X\(//\)[^/]' \| \
47226 X"$ac_dest" : 'X\(//\)$' \| \
47227 X"$ac_dest" : 'X\(/\)' \| \
47228 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47229echo X"$ac_dest" |
47230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47232 /^X\(\/\/\)$/{ s//\1/; q; }
47233 /^X\(\/\).*/{ s//\1/; q; }
47234 s/.*/./; q'`
ac1cb8d3
VS
47235 { if $as_mkdir_p; then
47236 mkdir -p "$ac_dir"
47237 else
47238 as_dir="$ac_dir"
47239 as_dirs=
47240 while test ! -d "$as_dir"; do
47241 as_dirs="$as_dir $as_dirs"
47242 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47243$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47244 X"$as_dir" : 'X\(//\)[^/]' \| \
47245 X"$as_dir" : 'X\(//\)$' \| \
47246 X"$as_dir" : 'X\(/\)' \| \
47247 . : '\(.\)' 2>/dev/null ||
47248echo X"$as_dir" |
47249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47250 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47251 /^X\(\/\/\)$/{ s//\1/; q; }
47252 /^X\(\/\).*/{ s//\1/; q; }
47253 s/.*/./; q'`
47254 done
47255 test ! -n "$as_dirs" || mkdir $as_dirs
47256 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47257echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47258 { (exit 1); exit 1; }; }; }
47259
a848cd7e
SC
47260 ac_builddir=.
47261
47262if test "$ac_dir" != .; then
47263 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47264 # A "../" for each directory in $ac_dir_suffix.
47265 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47266else
47267 ac_dir_suffix= ac_top_builddir=
47268fi
47269
47270case $srcdir in
47271 .) # No --srcdir option. We are building in place.
47272 ac_srcdir=.
47273 if test -z "$ac_top_builddir"; then
47274 ac_top_srcdir=.
47275 else
47276 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47277 fi ;;
47278 [\\/]* | ?:[\\/]* ) # Absolute path.
47279 ac_srcdir=$srcdir$ac_dir_suffix;
47280 ac_top_srcdir=$srcdir ;;
47281 *) # Relative path.
47282 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47283 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47284esac
ac1cb8d3
VS
47285
47286# Do not use `cd foo && pwd` to compute absolute paths, because
47287# the directories may not exist.
47288case `pwd` in
47289.) ac_abs_builddir="$ac_dir";;
47290*)
47291 case "$ac_dir" in
47292 .) ac_abs_builddir=`pwd`;;
47293 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47294 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47295 esac;;
47296esac
47297case $ac_abs_builddir in
47298.) ac_abs_top_builddir=${ac_top_builddir}.;;
47299*)
47300 case ${ac_top_builddir}. in
47301 .) ac_abs_top_builddir=$ac_abs_builddir;;
47302 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47303 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47304 esac;;
47305esac
47306case $ac_abs_builddir in
47307.) ac_abs_srcdir=$ac_srcdir;;
47308*)
47309 case $ac_srcdir in
47310 .) ac_abs_srcdir=$ac_abs_builddir;;
47311 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47312 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47313 esac;;
47314esac
47315case $ac_abs_builddir in
47316.) ac_abs_top_srcdir=$ac_top_srcdir;;
47317*)
47318 case $ac_top_srcdir in
47319 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47320 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47321 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47322 esac;;
47323esac
a848cd7e
SC
47324
47325
47326 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
47327echo "$as_me: executing $ac_dest commands" >&6;}
47328 case $ac_dest in
ceec2216
RL
47329 wx-config ) rm -f wx-config
47330 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
47331 ;;
a848cd7e
SC
47332 esac
47333done
47334_ACEOF
47335
47336cat >>$CONFIG_STATUS <<\_ACEOF
47337
47338{ (exit 0); exit 0; }
47339_ACEOF
47340chmod +x $CONFIG_STATUS
47341ac_clean_files=$ac_clean_files_save
47342
47343
47344# configure is writing to config.log, and then calls config.status.
47345# config.status does its own redirection, appending to config.log.
47346# Unfortunately, on DOS this fails, as config.log is still kept open
47347# by configure, so config.status won't be able to write to it; its
47348# output is simply discarded. So we exec the FD to /dev/null,
47349# effectively closing config.log, so it can be properly (re)opened and
47350# appended to by config.status. When coming back to configure, we
47351# need to make the FD available again.
47352if test "$no_create" != yes; then
47353 ac_cs_success=:
47354 ac_config_status_args=
47355 test "$silent" = yes &&
47356 ac_config_status_args="$ac_config_status_args --quiet"
47357 exec 5>/dev/null
47358 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47359 exec 5>>config.log
47360 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47361 # would make configure fail if this is the last instruction.
47362 $ac_cs_success || { (exit 1); exit 1; }
47363fi
47364
47365#
47366# CONFIG_SUBDIRS section.
47367#
47368if test "$no_recursion" != yes; then
47369
47370 # Remove --cache-file and --srcdir arguments so they do not pile up.
47371 ac_sub_configure_args=
47372 ac_prev=
47373 for ac_arg in $ac_configure_args; do
47374 if test -n "$ac_prev"; then
47375 ac_prev=
47376 continue
47377 fi
47378 case $ac_arg in
47379 -cache-file | --cache-file | --cache-fil | --cache-fi \
47380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
47381 ac_prev=cache_file ;;
47382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
47383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
47384 | --c=*)
47385 ;;
47386 --config-cache | -C)
47387 ;;
47388 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
47389 ac_prev=srcdir ;;
47390 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
47391 ;;
47392 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
47393 ac_prev=prefix ;;
47394 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
47395 ;;
47396 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
47397 esac
47398 done
47399
47400 # Always prepend --prefix to ensure using the same prefix
47401 # in subdir configurations.
47402 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
47403
47404 ac_popdir=`pwd`
47405 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
47406
47407 # Do not complain, so a configure script can configure whichever
47408 # parts of a large source tree are present.
47409 test -d $srcdir/$ac_dir || continue
47410
47411 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
47412echo "$as_me: configuring in $ac_dir" >&6;}
47413 { if $as_mkdir_p; then
47414 mkdir -p "$ac_dir"
47415 else
47416 as_dir="$ac_dir"
47417 as_dirs=
47418 while test ! -d "$as_dir"; do
47419 as_dirs="$as_dir $as_dirs"
47420 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47421$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47422 X"$as_dir" : 'X\(//\)[^/]' \| \
47423 X"$as_dir" : 'X\(//\)$' \| \
47424 X"$as_dir" : 'X\(/\)' \| \
47425 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47426echo X"$as_dir" |
47427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47429 /^X\(\/\/\)$/{ s//\1/; q; }
47430 /^X\(\/\).*/{ s//\1/; q; }
47431 s/.*/./; q'`
47432 done
47433 test ! -n "$as_dirs" || mkdir $as_dirs
47434 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47435echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47436 { (exit 1); exit 1; }; }; }
47437
47438 ac_builddir=.
47439
47440if test "$ac_dir" != .; then
47441 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47442 # A "../" for each directory in $ac_dir_suffix.
47443 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47444else
47445 ac_dir_suffix= ac_top_builddir=
47446fi
47447
47448case $srcdir in
47449 .) # No --srcdir option. We are building in place.
47450 ac_srcdir=.
47451 if test -z "$ac_top_builddir"; then
47452 ac_top_srcdir=.
47453 else
47454 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47455 fi ;;
47456 [\\/]* | ?:[\\/]* ) # Absolute path.
47457 ac_srcdir=$srcdir$ac_dir_suffix;
47458 ac_top_srcdir=$srcdir ;;
47459 *) # Relative path.
47460 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47461 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47462esac
ac1cb8d3
VS
47463
47464# Do not use `cd foo && pwd` to compute absolute paths, because
47465# the directories may not exist.
47466case `pwd` in
47467.) ac_abs_builddir="$ac_dir";;
47468*)
47469 case "$ac_dir" in
47470 .) ac_abs_builddir=`pwd`;;
47471 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47472 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47473 esac;;
47474esac
47475case $ac_abs_builddir in
47476.) ac_abs_top_builddir=${ac_top_builddir}.;;
47477*)
47478 case ${ac_top_builddir}. in
47479 .) ac_abs_top_builddir=$ac_abs_builddir;;
47480 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47481 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47482 esac;;
47483esac
47484case $ac_abs_builddir in
47485.) ac_abs_srcdir=$ac_srcdir;;
47486*)
47487 case $ac_srcdir in
47488 .) ac_abs_srcdir=$ac_abs_builddir;;
47489 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47490 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47491 esac;;
47492esac
47493case $ac_abs_builddir in
47494.) ac_abs_top_srcdir=$ac_top_srcdir;;
47495*)
47496 case $ac_top_srcdir in
47497 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47498 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47499 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47500 esac;;
47501esac
a848cd7e
SC
47502
47503
47504 cd $ac_dir
47505
47506 # Check for guested configure; otherwise get Cygnus style configure.
47507 if test -f $ac_srcdir/configure.gnu; then
47508 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
47509 elif test -f $ac_srcdir/configure; then
47510 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
47511 elif test -f $ac_srcdir/configure.in; then
47512 ac_sub_configure=$ac_configure
47513 else
47514 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
47515echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
47516 ac_sub_configure=
47517 fi
47518
47519 # The recursion is here.
47520 if test -n "$ac_sub_configure"; then
47521 # Make the cache file name correct relative to the subdirectory.
47522 case $cache_file in
47523 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
47524 *) # Relative path.
ac1cb8d3 47525 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
47526 esac
47527
47528 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
47529echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
47530 # The eval makes quoting arguments work.
47531 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
47532 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
47533 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
47534echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
47535 { (exit 1); exit 1; }; }
47536 fi
47537
6ebeb4c7 47538 cd "$ac_popdir"
a848cd7e
SC
47539 done
47540fi
47541
47542
47543echo
77ffb593 47544echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 47545echo ""
4d4ff94c 47546echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 47547echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 47548
77ffb593
JS
47549echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
47550echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
47551echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 47552
77ffb593
JS
47553echo " What level of wxWidgets compatibility should be enabled?"
47554echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
47555echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 47556
77ffb593 47557echo " Which libraries should wxWidgets use?"
a848cd7e
SC
47558echo " jpeg ${wxUSE_LIBJPEG-none}"
47559echo " png ${wxUSE_LIBPNG-none}"
47560echo " regex ${wxUSE_REGEX}"
47561echo " tiff ${wxUSE_LIBTIFF-none}"
47562if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
47563echo " xpm ${wxUSE_LIBXPM-none}"
47564fi
47565echo " zlib ${wxUSE_ZLIB}"
47566echo " odbc ${wxUSE_ODBC}"
47567echo " expat ${wxUSE_EXPAT}"
47568echo " libmspack ${wxUSE_LIBMSPACK}"
47569echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 47570echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
47571
47572echo ""
47573