]> git.saurik.com Git - wxWidgets.git/blame - configure
Applied patch [ 1232933 ] [WinCE] wxDateTime incorrect reading
[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"
083508af 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP 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 RESCOMP 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 ac_ct_AR ac_ct_STRIP 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 DLLTOOL 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"
1930 RESCOMP=windres
1931 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1932 DEFAULT_STD_FLAG=no
a848cd7e
SC
1933 ;;
1934
1935 *-pc-msdosdjgpp )
1936 USE_UNIX=0
1937 USE_DOS=1
1938 cat >>confdefs.h <<\_ACEOF
1939#define __DOS__ 1
1940_ACEOF
1941
1942 PROGRAM_EXT=".exe"
1943 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1944 ;;
1945
1946 *-pc-os2_emx | *-pc-os2-emx )
1947 cat >>confdefs.h <<\_ACEOF
1948#define __EMX__ 1
1949_ACEOF
1950
1951 USE_OS2=1
1952 cat >>confdefs.h <<\_ACEOF
1953#define __OS2__ 1
1954_ACEOF
1955
1956 PROGRAM_EXT=".exe"
1957 DEFAULT_DEFAULT_wxUSE_PM=1
1958 CXX=gcc
1959 LDFLAGS="$LDFLAGS -Zcrtdll"
1960 ac_executable_extensions=".exe"
1961 export ac_executable_extensions
1962 ac_save_IFS="$IFS"
1963 IFS='\\'
1964 ac_TEMP_PATH=
1965 for ac_dir in $PATH; do
1966 IFS=$ac_save_IFS
1967 if test -z "$ac_TEMP_PATH"; then
1968 ac_TEMP_PATH="$ac_dir"
1969 else
1970 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1971 fi
1972 done
1973 export PATH="$ac_TEMP_PATH"
1974 unset ac_TEMP_PATH
a03b8b04 1975 DEFAULT_STD_FLAG=no
a848cd7e
SC
1976 ;;
1977
cfda0ea8 1978 *-*-darwin* )
a848cd7e
SC
1979 USE_BSD=1
1980 USE_DARWIN=1
1981 SO_SUFFIX=dylib
1982 cat >>confdefs.h <<\_ACEOF
1983#define __BSD__ 1
1984_ACEOF
1985
1986 cat >>confdefs.h <<\_ACEOF
1987#define __DARWIN__ 1
a848cd7e
SC
1988_ACEOF
1989
1990 cat >>confdefs.h <<\_ACEOF
1991#define TARGET_CARBON 1
1992_ACEOF
1993
1994 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1995 DEFAULT_STD_FLAG=no
a848cd7e 1996 ;;
1e9e8aba
DE
1997 powerpc-apple-macos* )
1998 USE_UNIX=0
1999 ac_cv_c_bigendian=yes
2000 SO_SUFFIX=shlib
2001 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2002 DEFAULT_STD_FLAG=no
1e9e8aba 2003 ;;
a848cd7e
SC
2004
2005 *-*-beos* )
2006 USE_BEOS=1
2007 cat >>confdefs.h <<\_ACEOF
2008#define __BEOS__ 1
2009_ACEOF
2010
2011 ;;
2012
2013 *)
2014 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2015echo "$as_me: error: unknown system type ${host}." >&2;}
2016 { (exit 1); exit 1; }; }
2017esac
2018
2019
2020
2021
2022 wx_arg_cache_file="configarg.cache"
2023 echo "loading argument cache $wx_arg_cache_file"
2024 rm -f ${wx_arg_cache_file}.tmp
2025 touch ${wx_arg_cache_file}.tmp
2026 touch ${wx_arg_cache_file}
2027
2028
2029DEBUG_CONFIGURE=0
2030if test $DEBUG_CONFIGURE = 1; then
2031 DEFAULT_wxUSE_UNIVERSAL=no
2032 DEFAULT_wxUSE_STL=no
2033
2034 DEFAULT_wxUSE_NANOX=no
2035
2036 DEFAULT_wxUSE_THREADS=yes
2037
2038 DEFAULT_wxUSE_SHARED=yes
2039 DEFAULT_wxUSE_OPTIMISE=no
2040 DEFAULT_wxUSE_PROFILE=no
2041 DEFAULT_wxUSE_NO_DEPS=no
2042 DEFAULT_wxUSE_NO_RTTI=no
2043 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2044 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2045 DEFAULT_wxUSE_PERMISSIVE=no
2046 DEFAULT_wxUSE_DEBUG_FLAG=yes
2047 DEFAULT_wxUSE_DEBUG_INFO=yes
2048 DEFAULT_wxUSE_DEBUG_GDB=yes
2049 DEFAULT_wxUSE_MEM_TRACING=no
2050 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2051 DEFAULT_wxUSE_DMALLOC=no
2052 DEFAULT_wxUSE_APPLE_IEEE=no
2053
2054 DEFAULT_wxUSE_EXCEPTIONS=no
2055 DEFAULT_wxUSE_LOG=yes
2056 DEFAULT_wxUSE_LOGWINDOW=no
2057 DEFAULT_wxUSE_LOGGUI=no
2058 DEFAULT_wxUSE_LOGDIALOG=no
2059
2060 DEFAULT_wxUSE_GUI=yes
2061 DEFAULT_wxUSE_CONTROLS=no
2062
2063 DEFAULT_wxUSE_REGEX=no
2064 DEFAULT_wxUSE_XML=no
2065 DEFAULT_wxUSE_EXPAT=no
2066 DEFAULT_wxUSE_ZLIB=no
2067 DEFAULT_wxUSE_LIBPNG=no
2068 DEFAULT_wxUSE_LIBJPEG=no
2069 DEFAULT_wxUSE_LIBTIFF=no
2070 DEFAULT_wxUSE_LIBXPM=no
2071 DEFAULT_wxUSE_LIBMSPACK=no
2072 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2073 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2074 DEFAULT_wxUSE_ODBC=no
2075 DEFAULT_wxUSE_OPENGL=no
2076
2077 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2078 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2079 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2080 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2081 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2082 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2083 DEFAULT_wxUSE_CMDLINE_PARSER=no
2084 DEFAULT_wxUSE_DATETIME=no
2085 DEFAULT_wxUSE_TIMER=no
2086 DEFAULT_wxUSE_STOPWATCH=no
2087 DEFAULT_wxUSE_FILE=no
2088 DEFAULT_wxUSE_FFILE=no
07158944 2089 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2090 DEFAULT_wxUSE_TEXTBUFFER=no
2091 DEFAULT_wxUSE_TEXTFILE=no
2092 DEFAULT_wxUSE_SOUND=no
3b57de8b 2093 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2094 DEFAULT_wxUSE_INTL=no
2095 DEFAULT_wxUSE_CONFIG=no
2096 DEFAULT_wxUSE_FONTMAP=no
2097 DEFAULT_wxUSE_STREAMS=no
2098 DEFAULT_wxUSE_SOCKETS=no
2099 DEFAULT_wxUSE_OLE=no
2100 DEFAULT_wxUSE_DATAOBJ=no
2101 DEFAULT_wxUSE_DIALUP_MANAGER=no
2102 DEFAULT_wxUSE_JOYSTICK=no
2103 DEFAULT_wxUSE_DYNLIB_CLASS=no
2104 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2105 DEFAULT_wxUSE_LONGLONG=no
2106 DEFAULT_wxUSE_GEOMETRY=no
2107
2108 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2109 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2110 DEFAULT_wxUSE_POSTSCRIPT=no
2111
2112 DEFAULT_wxUSE_CLIPBOARD=no
2113 DEFAULT_wxUSE_TOOLTIPS=no
2114 DEFAULT_wxUSE_DRAG_AND_DROP=no
2115 DEFAULT_wxUSE_DRAGIMAGE=no
2116 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2117 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2118
8a7b1113 2119 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2120 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2121 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2122 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2123
2124 DEFAULT_wxUSE_RESOURCES=no
2125 DEFAULT_wxUSE_CONSTRAINTS=no
2126 DEFAULT_wxUSE_IPC=no
2127 DEFAULT_wxUSE_HELP=no
2128 DEFAULT_wxUSE_MS_HTML_HELP=no
2129 DEFAULT_wxUSE_WXHTML_HELP=no
2130 DEFAULT_wxUSE_TREELAYOUT=no
2131 DEFAULT_wxUSE_METAFILE=no
2132 DEFAULT_wxUSE_MIMETYPE=no
2133 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2134 DEFAULT_wxUSE_PROTOCOL=no
2135 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2136 DEFAULT_wxUSE_PROTOCOL_FTP=no
2137 DEFAULT_wxUSE_PROTOCOL_FILE=no
2138 DEFAULT_wxUSE_URL=no
2139
2140 DEFAULT_wxUSE_COMMONDLGS=no
2141 DEFAULT_wxUSE_CHOICEDLG=no
2142 DEFAULT_wxUSE_COLOURDLG=no
2143 DEFAULT_wxUSE_DIRDLG=no
2144 DEFAULT_wxUSE_FILEDLG=no
2145 DEFAULT_wxUSE_FINDREPLDLG=no
2146 DEFAULT_wxUSE_FONTDLG=no
2147 DEFAULT_wxUSE_MSGDLG=no
2148 DEFAULT_wxUSE_NUMBERDLG=no
2149 DEFAULT_wxUSE_TEXTDLG=no
2150 DEFAULT_wxUSE_SPLASH=no
2151 DEFAULT_wxUSE_STARTUP_TIPS=no
2152 DEFAULT_wxUSE_PROGRESSDLG=no
2153 DEFAULT_wxUSE_WIZARDDLG=no
2154
2155 DEFAULT_wxUSE_MENUS=no
2156 DEFAULT_wxUSE_MINIFRAME=no
2157 DEFAULT_wxUSE_HTML=no
9a8f0513 2158 DEFAULT_wxUSE_XRC=no
646b6ec1 2159 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2160 DEFAULT_wxUSE_FILESYSTEM=no
2161 DEFAULT_wxUSE_FS_INET=no
2162 DEFAULT_wxUSE_FS_ZIP=no
2163 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2164 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2165 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2166 DEFAULT_wxUSE_VALIDATORS=no
2167
2168 DEFAULT_wxUSE_ACCEL=no
2169 DEFAULT_wxUSE_BUTTON=no
2170 DEFAULT_wxUSE_BMPBUTTON=no
2171 DEFAULT_wxUSE_CALCTRL=no
2172 DEFAULT_wxUSE_CARET=no
2173 DEFAULT_wxUSE_CHECKBOX=no
2174 DEFAULT_wxUSE_CHECKLST=no
2175 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2176 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2177 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2178 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2179 DEFAULT_wxUSE_DISPLAY=no
2180 DEFAULT_wxUSE_GAUGE=no
2181 DEFAULT_wxUSE_GRID=no
2182 DEFAULT_wxUSE_IMAGLIST=no
2183 DEFAULT_wxUSE_LISTBOOK=no
2184 DEFAULT_wxUSE_LISTBOX=no
2185 DEFAULT_wxUSE_LISTCTRL=no
2186 DEFAULT_wxUSE_NOTEBOOK=no
2187 DEFAULT_wxUSE_RADIOBOX=no
2188 DEFAULT_wxUSE_RADIOBTN=no
2189 DEFAULT_wxUSE_SASH=no
2190 DEFAULT_wxUSE_SCROLLBAR=no
2191 DEFAULT_wxUSE_SLIDER=no
2192 DEFAULT_wxUSE_SPINBTN=no
2193 DEFAULT_wxUSE_SPINCTRL=no
2194 DEFAULT_wxUSE_SPLITTER=no
2195 DEFAULT_wxUSE_STATBMP=no
2196 DEFAULT_wxUSE_STATBOX=no
2197 DEFAULT_wxUSE_STATLINE=no
2198 DEFAULT_wxUSE_STATTEXT=no
2199 DEFAULT_wxUSE_STATUSBAR=yes
2200 DEFAULT_wxUSE_TABDIALOG=no
2201 DEFAULT_wxUSE_TEXTCTRL=no
2202 DEFAULT_wxUSE_TOGGLEBTN=no
2203 DEFAULT_wxUSE_TOOLBAR=no
2204 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2205 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2206 DEFAULT_wxUSE_TREECTRL=no
2207 DEFAULT_wxUSE_POPUPWIN=no
2208 DEFAULT_wxUSE_TIPWINDOW=no
2209
2210 DEFAULT_wxUSE_UNICODE=no
2211 DEFAULT_wxUSE_UNICODE_MSLU=no
2212 DEFAULT_wxUSE_WCSRTOMBS=no
2213
2214 DEFAULT_wxUSE_PALETTE=no
2215 DEFAULT_wxUSE_IMAGE=no
2216 DEFAULT_wxUSE_GIF=no
2217 DEFAULT_wxUSE_PCX=no
2218 DEFAULT_wxUSE_PNM=no
2219 DEFAULT_wxUSE_IFF=no
2220 DEFAULT_wxUSE_XPM=no
2221 DEFAULT_wxUSE_ICO_CUR=no
2222 DEFAULT_wxUSE_ACCESSIBILITY=no
2223
2224 DEFAULT_wxUSE_MONOLITHIC=no
2225 DEFAULT_wxUSE_PLUGINS=no
2226 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2227else
2228 DEFAULT_wxUSE_UNIVERSAL=no
2229 DEFAULT_wxUSE_STL=no
2230
2231 DEFAULT_wxUSE_NANOX=no
2232
2233 DEFAULT_wxUSE_THREADS=yes
2234
2235 DEFAULT_wxUSE_SHARED=yes
2236 DEFAULT_wxUSE_OPTIMISE=yes
2237 DEFAULT_wxUSE_PROFILE=no
2238 DEFAULT_wxUSE_NO_DEPS=no
2239 DEFAULT_wxUSE_NO_RTTI=no
2240 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2241 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2242 DEFAULT_wxUSE_PERMISSIVE=no
2243 DEFAULT_wxUSE_DEBUG_FLAG=no
2244 DEFAULT_wxUSE_DEBUG_INFO=no
2245 DEFAULT_wxUSE_DEBUG_GDB=no
2246 DEFAULT_wxUSE_MEM_TRACING=no
2247 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2248 DEFAULT_wxUSE_DMALLOC=no
2249 DEFAULT_wxUSE_APPLE_IEEE=yes
2250
2251 DEFAULT_wxUSE_EXCEPTIONS=yes
2252 DEFAULT_wxUSE_LOG=yes
2253 DEFAULT_wxUSE_LOGWINDOW=yes
2254 DEFAULT_wxUSE_LOGGUI=yes
2255 DEFAULT_wxUSE_LOGDIALOG=yes
2256
2257 DEFAULT_wxUSE_GUI=yes
2258
2259 DEFAULT_wxUSE_REGEX=yes
2260 DEFAULT_wxUSE_XML=yes
2261 DEFAULT_wxUSE_EXPAT=yes
2262 DEFAULT_wxUSE_ZLIB=yes
2263 DEFAULT_wxUSE_LIBPNG=yes
2264 DEFAULT_wxUSE_LIBJPEG=yes
2265 DEFAULT_wxUSE_LIBTIFF=yes
2266 DEFAULT_wxUSE_LIBXPM=yes
2267 DEFAULT_wxUSE_LIBMSPACK=yes
2268 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2269 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2270 DEFAULT_wxUSE_ODBC=no
52cb607e 2271 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2272
2273 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2274 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2275 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2276 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2277 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2278 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2279 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2280 DEFAULT_wxUSE_DATETIME=yes
2281 DEFAULT_wxUSE_TIMER=yes
2282 DEFAULT_wxUSE_STOPWATCH=yes
2283 DEFAULT_wxUSE_FILE=yes
2284 DEFAULT_wxUSE_FFILE=yes
07158944 2285 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2286 DEFAULT_wxUSE_TEXTBUFFER=yes
2287 DEFAULT_wxUSE_TEXTFILE=yes
2288 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2289 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2290 DEFAULT_wxUSE_INTL=yes
2291 DEFAULT_wxUSE_CONFIG=yes
2292 DEFAULT_wxUSE_FONTMAP=yes
2293 DEFAULT_wxUSE_STREAMS=yes
2294 DEFAULT_wxUSE_SOCKETS=yes
2295 DEFAULT_wxUSE_OLE=yes
2296 DEFAULT_wxUSE_DATAOBJ=yes
2297 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2298 DEFAULT_wxUSE_JOYSTICK=yes
2299 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2300 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2301 DEFAULT_wxUSE_LONGLONG=yes
2302 DEFAULT_wxUSE_GEOMETRY=yes
2303
2304 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2305 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2306 DEFAULT_wxUSE_POSTSCRIPT=yes
2307
2308 DEFAULT_wxUSE_CLIPBOARD=yes
2309 DEFAULT_wxUSE_TOOLTIPS=yes
2310 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2311 DEFAULT_wxUSE_DRAGIMAGE=yes
2312 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2313 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2314
8a7b1113 2315 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2316 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2317 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2318 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2319
2320 DEFAULT_wxUSE_RESOURCES=no
2321 DEFAULT_wxUSE_CONSTRAINTS=yes
2322 DEFAULT_wxUSE_IPC=yes
2323 DEFAULT_wxUSE_HELP=yes
2324 DEFAULT_wxUSE_MS_HTML_HELP=yes
2325 DEFAULT_wxUSE_WXHTML_HELP=yes
2326 DEFAULT_wxUSE_TREELAYOUT=yes
2327 DEFAULT_wxUSE_METAFILE=yes
2328 DEFAULT_wxUSE_MIMETYPE=yes
2329 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2330 DEFAULT_wxUSE_PROTOCOL=yes
2331 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2332 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2333 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2334 DEFAULT_wxUSE_URL=yes
2335
2336 DEFAULT_wxUSE_COMMONDLGS=yes
2337 DEFAULT_wxUSE_CHOICEDLG=yes
2338 DEFAULT_wxUSE_COLOURDLG=yes
2339 DEFAULT_wxUSE_DIRDLG=yes
2340 DEFAULT_wxUSE_FILEDLG=yes
2341 DEFAULT_wxUSE_FINDREPLDLG=yes
2342 DEFAULT_wxUSE_FONTDLG=yes
2343 DEFAULT_wxUSE_MSGDLG=yes
2344 DEFAULT_wxUSE_NUMBERDLG=yes
2345 DEFAULT_wxUSE_TEXTDLG=yes
2346 DEFAULT_wxUSE_SPLASH=yes
2347 DEFAULT_wxUSE_STARTUP_TIPS=yes
2348 DEFAULT_wxUSE_PROGRESSDLG=yes
2349 DEFAULT_wxUSE_WIZARDDLG=yes
2350
2351 DEFAULT_wxUSE_MENUS=yes
2352 DEFAULT_wxUSE_MINIFRAME=yes
2353 DEFAULT_wxUSE_HTML=yes
9a8f0513 2354 DEFAULT_wxUSE_XRC=yes
646b6ec1 2355 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2356 DEFAULT_wxUSE_FILESYSTEM=yes
2357 DEFAULT_wxUSE_FS_INET=yes
2358 DEFAULT_wxUSE_FS_ZIP=yes
2359 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2360 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2361 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2362 DEFAULT_wxUSE_VALIDATORS=yes
2363
2364 DEFAULT_wxUSE_ACCEL=yes
2365 DEFAULT_wxUSE_BUTTON=yes
2366 DEFAULT_wxUSE_BMPBUTTON=yes
2367 DEFAULT_wxUSE_CALCTRL=yes
2368 DEFAULT_wxUSE_CARET=yes
2369 DEFAULT_wxUSE_CHECKBOX=yes
2370 DEFAULT_wxUSE_CHECKLST=yes
2371 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2372 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2373 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2374 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2375 DEFAULT_wxUSE_DISPLAY=yes
2376 DEFAULT_wxUSE_GAUGE=yes
2377 DEFAULT_wxUSE_GRID=yes
2378 DEFAULT_wxUSE_IMAGLIST=yes
2379 DEFAULT_wxUSE_LISTBOOK=yes
2380 DEFAULT_wxUSE_LISTBOX=yes
2381 DEFAULT_wxUSE_LISTCTRL=yes
2382 DEFAULT_wxUSE_NOTEBOOK=yes
2383 DEFAULT_wxUSE_RADIOBOX=yes
2384 DEFAULT_wxUSE_RADIOBTN=yes
2385 DEFAULT_wxUSE_SASH=yes
2386 DEFAULT_wxUSE_SCROLLBAR=yes
2387 DEFAULT_wxUSE_SLIDER=yes
2388 DEFAULT_wxUSE_SPINBTN=yes
2389 DEFAULT_wxUSE_SPINCTRL=yes
2390 DEFAULT_wxUSE_SPLITTER=yes
2391 DEFAULT_wxUSE_STATBMP=yes
2392 DEFAULT_wxUSE_STATBOX=yes
2393 DEFAULT_wxUSE_STATLINE=yes
2394 DEFAULT_wxUSE_STATTEXT=yes
2395 DEFAULT_wxUSE_STATUSBAR=yes
2396 DEFAULT_wxUSE_TABDIALOG=no
2397 DEFAULT_wxUSE_TEXTCTRL=yes
2398 DEFAULT_wxUSE_TOGGLEBTN=yes
2399 DEFAULT_wxUSE_TOOLBAR=yes
2400 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2401 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2402 DEFAULT_wxUSE_TREECTRL=yes
2403 DEFAULT_wxUSE_POPUPWIN=yes
2404 DEFAULT_wxUSE_TIPWINDOW=yes
2405
78de529b 2406 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2407 DEFAULT_wxUSE_UNICODE_MSLU=yes
2408 DEFAULT_wxUSE_WCSRTOMBS=no
2409
2410 DEFAULT_wxUSE_PALETTE=yes
2411 DEFAULT_wxUSE_IMAGE=yes
2412 DEFAULT_wxUSE_GIF=yes
2413 DEFAULT_wxUSE_PCX=yes
2414 DEFAULT_wxUSE_IFF=no
2415 DEFAULT_wxUSE_PNM=yes
2416 DEFAULT_wxUSE_XPM=yes
2417 DEFAULT_wxUSE_ICO_CUR=yes
2418 DEFAULT_wxUSE_ACCESSIBILITY=no
2419
2420 DEFAULT_wxUSE_MONOLITHIC=no
2421 DEFAULT_wxUSE_PLUGINS=no
2422 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2423
f34ca037 2424 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2425fi
2426
2427
2428
f34ca037 2429
a848cd7e
SC
2430for toolkit in `echo $ALL_TOOLKITS`; do
2431 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2432 if test "x$LINE" != "x" ; then
2433 has_toolkit_in_cache=1
2434 eval "DEFAULT_$LINE"
2435 eval "CACHE_$toolkit=1"
f34ca037
MW
2436
2437 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2438 if test "x$LINE" != "x" ; then
2439 eval "DEFAULT_$LINE"
2440 fi
a848cd7e
SC
2441 fi
2442done
2443
2444
2445
2446 enablestring=
2447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2448echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2449 no_cache=0
2450 # Check whether --enable-gui or --disable-gui was given.
2451if test "${enable_gui+set}" = set; then
2452 enableval="$enable_gui"
2453
2454 if test "$enableval" = yes; then
2455 ac_cv_use_gui='wxUSE_GUI=yes'
2456 else
2457 ac_cv_use_gui='wxUSE_GUI=no'
2458 fi
2459
2460else
2461
2462 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2463 if test "x$LINE" != x ; then
2464 eval "DEFAULT_$LINE"
2465 else
2466 no_cache=1
2467 fi
2468
2469 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2470
2471fi;
2472
2473 eval "$ac_cv_use_gui"
2474 if test "$no_cache" != 1; then
2475 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2476 fi
2477
2478 if test "$wxUSE_GUI" = yes; then
2479 echo "$as_me:$LINENO: result: yes" >&5
2480echo "${ECHO_T}yes" >&6
2481 else
2482 echo "$as_me:$LINENO: result: no" >&5
2483echo "${ECHO_T}no" >&6
2484 fi
2485
2486
2487 enablestring=
2488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2489echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2490 no_cache=0
2491 # Check whether --enable-monolithic or --disable-monolithic was given.
2492if test "${enable_monolithic+set}" = set; then
2493 enableval="$enable_monolithic"
2494
2495 if test "$enableval" = yes; then
2496 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2497 else
2498 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2499 fi
2500
2501else
2502
2503 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2504 if test "x$LINE" != x ; then
2505 eval "DEFAULT_$LINE"
2506 else
2507 no_cache=1
2508 fi
2509
2510 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2511
2512fi;
2513
2514 eval "$ac_cv_use_monolithic"
2515 if test "$no_cache" != 1; then
2516 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2517 fi
2518
2519 if test "$wxUSE_MONOLITHIC" = yes; then
2520 echo "$as_me:$LINENO: result: yes" >&5
2521echo "${ECHO_T}yes" >&6
2522 else
2523 echo "$as_me:$LINENO: result: no" >&5
2524echo "${ECHO_T}no" >&6
2525 fi
2526
2527
2528 enablestring=
2529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2530echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2531 no_cache=0
2532 # Check whether --enable-plugins or --disable-plugins was given.
2533if test "${enable_plugins+set}" = set; then
2534 enableval="$enable_plugins"
2535
2536 if test "$enableval" = yes; then
2537 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2538 else
2539 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2540 fi
2541
2542else
2543
2544 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
2551 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2552
2553fi;
2554
2555 eval "$ac_cv_use_plugins"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_PLUGINS" = yes; then
2561 echo "$as_me:$LINENO: result: yes" >&5
2562echo "${ECHO_T}yes" >&6
2563 else
2564 echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6
2566 fi
2567
2568
2569if test "$wxUSE_GUI" = "yes"; then
2570
2571
2572 enablestring=
2573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2574echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2575 no_cache=0
2576 # Check whether --enable-universal or --disable-universal was given.
2577if test "${enable_universal+set}" = set; then
2578 enableval="$enable_universal"
2579
2580 if test "$enableval" = yes; then
2581 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2582 else
2583 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2584 fi
2585
2586else
2587
2588 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2596
2597fi;
2598
2599 eval "$ac_cv_use_universal"
2600 if test "$no_cache" != 1; then
2601 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2602 fi
2603
2604 if test "$wxUSE_UNIVERSAL" = yes; then
2605 echo "$as_me:$LINENO: result: yes" >&5
2606echo "${ECHO_T}yes" >&6
2607 else
2608 echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6
2610 fi
2611
2612
2613# Check whether --with-gtk or --without-gtk was given.
2614if test "${with_gtk+set}" = set; then
2615 withval="$with_gtk"
2616 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2617fi;
2618
2619# Check whether --with-motif or --without-motif was given.
2620if test "${with_motif+set}" = set; then
2621 withval="$with_motif"
2622 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2623fi;
2624
2625# Check whether --with-mac or --without-mac was given.
2626if test "${with_mac+set}" = set; then
2627 withval="$with_mac"
c228d3a4 2628 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2629fi;
2630
2631# Check whether --with-cocoa or --without-cocoa was given.
2632if test "${with_cocoa+set}" = set; then
2633 withval="$with_cocoa"
c228d3a4 2634 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2635fi;
2636
2637# Check whether --with-wine or --without-wine was given.
2638if test "${with_wine+set}" = set; then
2639 withval="$with_wine"
2640 wxUSE_WINE="$withval" CACHE_WINE=1
2641fi;
2642
2643# Check whether --with-msw or --without-msw was given.
2644if test "${with_msw+set}" = set; then
2645 withval="$with_msw"
2646 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2647fi;
2648
2649# Check whether --with-pm or --without-pm was given.
2650if test "${with_pm+set}" = set; then
2651 withval="$with_pm"
2652 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2653fi;
2654
2655# Check whether --with-mgl or --without-mgl was given.
2656if test "${with_mgl+set}" = set; then
2657 withval="$with_mgl"
2658 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2659fi;
2660
2661# Check whether --with-microwin or --without-microwin was given.
2662if test "${with_microwin+set}" = set; then
2663 withval="$with_microwin"
2664 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2665fi;
2666
2667# Check whether --with-x11 or --without-x11 was given.
2668if test "${with_x11+set}" = set; then
2669 withval="$with_x11"
2670 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2671fi;
2672
2673 enablestring=
2674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2675echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2676 no_cache=0
2677 # Check whether --enable-nanox or --disable-nanox was given.
2678if test "${enable_nanox+set}" = set; then
2679 enableval="$enable_nanox"
2680
2681 if test "$enableval" = yes; then
2682 ac_cv_use_nanox='wxUSE_NANOX=yes'
2683 else
2684 ac_cv_use_nanox='wxUSE_NANOX=no'
2685 fi
2686
2687else
2688
2689 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2690 if test "x$LINE" != x ; then
2691 eval "DEFAULT_$LINE"
2692 else
2693 no_cache=1
2694 fi
2695
2696 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2697
2698fi;
2699
2700 eval "$ac_cv_use_nanox"
2701 if test "$no_cache" != 1; then
2702 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2703 fi
2704
2705 if test "$wxUSE_NANOX" = yes; then
2706 echo "$as_me:$LINENO: result: yes" >&5
2707echo "${ECHO_T}yes" >&6
2708 else
2709 echo "$as_me:$LINENO: result: no" >&5
2710echo "${ECHO_T}no" >&6
2711 fi
2712
2713
f34ca037
MW
2714# Check whether --enable-gtk2 or --disable-gtk2 was given.
2715if test "${enable_gtk2+set}" = set; then
2716 enableval="$enable_gtk2"
2717 wxUSE_GTK2="$enableval"
2718fi;
a848cd7e 2719
a848cd7e
SC
2720 enablestring=
2721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2722echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2723 no_cache=0
2724 # Check whether --enable-gpe or --disable-gpe was given.
2725if test "${enable_gpe+set}" = set; then
2726 enableval="$enable_gpe"
2727
2728 if test "$enableval" = yes; then
2729 ac_cv_use_gpe='wxUSE_GPE=yes'
2730 else
2731 ac_cv_use_gpe='wxUSE_GPE=no'
2732 fi
2733
2734else
2735
2736 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2737 if test "x$LINE" != x ; then
2738 eval "DEFAULT_$LINE"
2739 else
2740 no_cache=1
2741 fi
2742
2743 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2744
2745fi;
2746
2747 eval "$ac_cv_use_gpe"
2748 if test "$no_cache" != 1; then
2749 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2750 fi
2751
2752 if test "$wxUSE_GPE" = yes; then
2753 echo "$as_me:$LINENO: result: yes" >&5
2754echo "${ECHO_T}yes" >&6
2755 else
2756 echo "$as_me:$LINENO: result: no" >&5
2757echo "${ECHO_T}no" >&6
2758 fi
2759
2760
2761
2762 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2763echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2764 no_cache=0
2765
2766# Check whether --with-libpng or --without-libpng was given.
2767if test "${with_libpng+set}" = set; then
2768 withval="$with_libpng"
2769
2770 if test "$withval" = yes; then
2771 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2772 elif test "$withval" = no; then
2773 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2774 elif test "$withval" = sys; then
2775 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2776 elif test "$withval" = builtin; then
2777 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2778 else
2779 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2780echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2781 { (exit 1); exit 1; }; }
2782 fi
2783
2784else
2785
2786 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2787 if test "x$LINE" != x ; then
2788 eval "DEFAULT_$LINE"
2789 else
2790 no_cache=1
2791 fi
2792
2793 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2794
2795fi;
2796
2797 eval "$ac_cv_use_libpng"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_LIBPNG" = yes; then
2803 echo "$as_me:$LINENO: result: yes" >&5
2804echo "${ECHO_T}yes" >&6
2805 elif test "$wxUSE_LIBPNG" = no; then
2806 echo "$as_me:$LINENO: result: no" >&5
2807echo "${ECHO_T}no" >&6
2808 elif test "$wxUSE_LIBPNG" = sys; then
2809 echo "$as_me:$LINENO: result: system version" >&5
2810echo "${ECHO_T}system version" >&6
2811 elif test "$wxUSE_LIBPNG" = builtin; then
2812 echo "$as_me:$LINENO: result: builtin version" >&5
2813echo "${ECHO_T}builtin version" >&6
2814 else
2815 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2816echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2817 { (exit 1); exit 1; }; }
2818 fi
2819
2820
2821 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2822echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2823 no_cache=0
2824
2825# Check whether --with-libjpeg or --without-libjpeg was given.
2826if test "${with_libjpeg+set}" = set; then
2827 withval="$with_libjpeg"
2828
2829 if test "$withval" = yes; then
2830 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2831 elif test "$withval" = no; then
2832 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2833 elif test "$withval" = sys; then
2834 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2835 elif test "$withval" = builtin; then
2836 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2837 else
2838 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2839echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2840 { (exit 1); exit 1; }; }
2841 fi
2842
2843else
2844
2845 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2846 if test "x$LINE" != x ; then
2847 eval "DEFAULT_$LINE"
2848 else
2849 no_cache=1
2850 fi
2851
2852 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2853
2854fi;
2855
2856 eval "$ac_cv_use_libjpeg"
2857 if test "$no_cache" != 1; then
2858 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2859 fi
2860
2861 if test "$wxUSE_LIBJPEG" = yes; then
2862 echo "$as_me:$LINENO: result: yes" >&5
2863echo "${ECHO_T}yes" >&6
2864 elif test "$wxUSE_LIBJPEG" = no; then
2865 echo "$as_me:$LINENO: result: no" >&5
2866echo "${ECHO_T}no" >&6
2867 elif test "$wxUSE_LIBJPEG" = sys; then
2868 echo "$as_me:$LINENO: result: system version" >&5
2869echo "${ECHO_T}system version" >&6
2870 elif test "$wxUSE_LIBJPEG" = builtin; then
2871 echo "$as_me:$LINENO: result: builtin version" >&5
2872echo "${ECHO_T}builtin version" >&6
2873 else
2874 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2875echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2876 { (exit 1); exit 1; }; }
2877 fi
2878
2879
2880 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2881echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2882 no_cache=0
2883
2884# Check whether --with-libtiff or --without-libtiff was given.
2885if test "${with_libtiff+set}" = set; then
2886 withval="$with_libtiff"
2887
2888 if test "$withval" = yes; then
2889 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2890 elif test "$withval" = no; then
2891 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2892 elif test "$withval" = sys; then
2893 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2894 elif test "$withval" = builtin; then
2895 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2896 else
2897 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2898echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2899 { (exit 1); exit 1; }; }
2900 fi
2901
2902else
2903
2904 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2905 if test "x$LINE" != x ; then
2906 eval "DEFAULT_$LINE"
2907 else
2908 no_cache=1
2909 fi
2910
2911 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2912
2913fi;
2914
2915 eval "$ac_cv_use_libtiff"
2916 if test "$no_cache" != 1; then
2917 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2918 fi
2919
2920 if test "$wxUSE_LIBTIFF" = yes; then
2921 echo "$as_me:$LINENO: result: yes" >&5
2922echo "${ECHO_T}yes" >&6
2923 elif test "$wxUSE_LIBTIFF" = no; then
2924 echo "$as_me:$LINENO: result: no" >&5
2925echo "${ECHO_T}no" >&6
2926 elif test "$wxUSE_LIBTIFF" = sys; then
2927 echo "$as_me:$LINENO: result: system version" >&5
2928echo "${ECHO_T}system version" >&6
2929 elif test "$wxUSE_LIBTIFF" = builtin; then
2930 echo "$as_me:$LINENO: result: builtin version" >&5
2931echo "${ECHO_T}builtin version" >&6
2932 else
2933 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2934echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2935 { (exit 1); exit 1; }; }
2936 fi
2937
2938
2939 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2940echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2941 no_cache=0
2942
2943# Check whether --with-libxpm or --without-libxpm was given.
2944if test "${with_libxpm+set}" = set; then
2945 withval="$with_libxpm"
2946
2947 if test "$withval" = yes; then
2948 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2949 elif test "$withval" = no; then
2950 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2951 elif test "$withval" = sys; then
2952 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2953 elif test "$withval" = builtin; then
2954 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2955 else
2956 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2957echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2958 { (exit 1); exit 1; }; }
2959 fi
2960
2961else
2962
2963 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2964 if test "x$LINE" != x ; then
2965 eval "DEFAULT_$LINE"
2966 else
2967 no_cache=1
2968 fi
2969
2970 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2971
2972fi;
2973
2974 eval "$ac_cv_use_libxpm"
2975 if test "$no_cache" != 1; then
2976 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2977 fi
2978
2979 if test "$wxUSE_LIBXPM" = yes; then
2980 echo "$as_me:$LINENO: result: yes" >&5
2981echo "${ECHO_T}yes" >&6
2982 elif test "$wxUSE_LIBXPM" = no; then
2983 echo "$as_me:$LINENO: result: no" >&5
2984echo "${ECHO_T}no" >&6
2985 elif test "$wxUSE_LIBXPM" = sys; then
2986 echo "$as_me:$LINENO: result: system version" >&5
2987echo "${ECHO_T}system version" >&6
2988 elif test "$wxUSE_LIBXPM" = builtin; then
2989 echo "$as_me:$LINENO: result: builtin version" >&5
2990echo "${ECHO_T}builtin version" >&6
2991 else
2992 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2993echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2994 { (exit 1); exit 1; }; }
2995 fi
2996
2997
2998 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2999echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3000 no_cache=0
3001
3002# Check whether --with-libmspack or --without-libmspack was given.
3003if test "${with_libmspack+set}" = set; then
3004 withval="$with_libmspack"
3005
3006 if test "$withval" = yes; then
3007 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3008 else
3009 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3010 fi
3011
3012else
3013
3014 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3015 if test "x$LINE" != x ; then
3016 eval "DEFAULT_$LINE"
3017 else
3018 no_cache=1
3019 fi
3020
3021 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3022
3023fi;
3024
3025 eval "$ac_cv_use_libmspack"
3026 if test "$no_cache" != 1; then
3027 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3028 fi
3029
3030 if test "$wxUSE_LIBMSPACK" = yes; then
3031 echo "$as_me:$LINENO: result: yes" >&5
3032echo "${ECHO_T}yes" >&6
3033 else
3034 echo "$as_me:$LINENO: result: no" >&5
3035echo "${ECHO_T}no" >&6
3036 fi
3037
3038
3039 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3040echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3041 no_cache=0
3042
3043# Check whether --with-sdl or --without-sdl was given.
3044if test "${with_sdl+set}" = set; then
3045 withval="$with_sdl"
3046
3047 if test "$withval" = yes; then
3048 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3049 else
3050 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3051 fi
3052
3053else
3054
3055 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3056 if test "x$LINE" != x ; then
3057 eval "DEFAULT_$LINE"
3058 else
3059 no_cache=1
3060 fi
3061
3062 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3063
3064fi;
3065
3066 eval "$ac_cv_use_sdl"
3067 if test "$no_cache" != 1; then
3068 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3069 fi
3070
3071 if test "$wxUSE_LIBSDL" = yes; then
3072 echo "$as_me:$LINENO: result: yes" >&5
3073echo "${ECHO_T}yes" >&6
3074 else
3075 echo "$as_me:$LINENO: result: no" >&5
3076echo "${ECHO_T}no" >&6
3077 fi
3078
3079
d1c38808
VZ
3080 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3081echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3082 no_cache=0
3083
3084# Check whether --with-gnomeprint or --without-gnomeprint was given.
3085if test "${with_gnomeprint+set}" = set; then
3086 withval="$with_gnomeprint"
3087
3088 if test "$withval" = yes; then
3089 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3090 else
3091 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3092 fi
3093
3094else
3095
3096 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3097 if test "x$LINE" != x ; then
3098 eval "DEFAULT_$LINE"
3099 else
3100 no_cache=1
3101 fi
3102
3103 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3104
3105fi;
3106
3107 eval "$ac_cv_use_gnomeprint"
3108 if test "$no_cache" != 1; then
3109 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3110 fi
3111
3112 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3113 echo "$as_me:$LINENO: result: yes" >&5
3114echo "${ECHO_T}yes" >&6
3115 else
3116 echo "$as_me:$LINENO: result: no" >&5
3117echo "${ECHO_T}no" >&6
3118 fi
3119
3120
a848cd7e
SC
3121 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3122echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3123 no_cache=0
3124
3125# Check whether --with-opengl or --without-opengl was given.
3126if test "${with_opengl+set}" = set; then
3127 withval="$with_opengl"
3128
3129 if test "$withval" = yes; then
3130 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3131 else
3132 ac_cv_use_opengl='wxUSE_OPENGL=no'
3133 fi
3134
3135else
3136
3137 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3145
3146fi;
3147
3148 eval "$ac_cv_use_opengl"
3149 if test "$no_cache" != 1; then
3150 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3151 fi
3152
3153 if test "$wxUSE_OPENGL" = yes; then
3154 echo "$as_me:$LINENO: result: yes" >&5
3155echo "${ECHO_T}yes" >&6
3156 else
3157 echo "$as_me:$LINENO: result: no" >&5
3158echo "${ECHO_T}no" >&6
3159 fi
3160
3161
3162fi
3163
3164
3165 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3166echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3167 no_cache=0
3168
3169# Check whether --with-dmalloc or --without-dmalloc was given.
3170if test "${with_dmalloc+set}" = set; then
3171 withval="$with_dmalloc"
3172
3173 if test "$withval" = yes; then
3174 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3175 else
3176 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3177 fi
3178
3179else
3180
3181 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3182 if test "x$LINE" != x ; then
3183 eval "DEFAULT_$LINE"
3184 else
3185 no_cache=1
3186 fi
3187
3188 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3189
3190fi;
3191
3192 eval "$ac_cv_use_dmalloc"
3193 if test "$no_cache" != 1; then
3194 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3195 fi
3196
3197 if test "$wxUSE_DMALLOC" = yes; then
3198 echo "$as_me:$LINENO: result: yes" >&5
3199echo "${ECHO_T}yes" >&6
3200 else
3201 echo "$as_me:$LINENO: result: no" >&5
3202echo "${ECHO_T}no" >&6
3203 fi
3204
3205
3206 echo "$as_me:$LINENO: checking for --with-regex" >&5
3207echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3208 no_cache=0
3209
3210# Check whether --with-regex or --without-regex was given.
3211if test "${with_regex+set}" = set; then
3212 withval="$with_regex"
3213
3214 if test "$withval" = yes; then
3215 ac_cv_use_regex='wxUSE_REGEX=yes'
3216 elif test "$withval" = no; then
3217 ac_cv_use_regex='wxUSE_REGEX=no'
3218 elif test "$withval" = sys; then
3219 ac_cv_use_regex='wxUSE_REGEX=sys'
3220 elif test "$withval" = builtin; then
3221 ac_cv_use_regex='wxUSE_REGEX=builtin'
3222 else
3223 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3224echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3225 { (exit 1); exit 1; }; }
3226 fi
3227
3228else
3229
3230 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3231 if test "x$LINE" != x ; then
3232 eval "DEFAULT_$LINE"
3233 else
3234 no_cache=1
3235 fi
3236
3237 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3238
3239fi;
3240
3241 eval "$ac_cv_use_regex"
3242 if test "$no_cache" != 1; then
3243 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3244 fi
3245
3246 if test "$wxUSE_REGEX" = yes; then
3247 echo "$as_me:$LINENO: result: yes" >&5
3248echo "${ECHO_T}yes" >&6
3249 elif test "$wxUSE_REGEX" = no; then
3250 echo "$as_me:$LINENO: result: no" >&5
3251echo "${ECHO_T}no" >&6
3252 elif test "$wxUSE_REGEX" = sys; then
3253 echo "$as_me:$LINENO: result: system version" >&5
3254echo "${ECHO_T}system version" >&6
3255 elif test "$wxUSE_REGEX" = builtin; then
3256 echo "$as_me:$LINENO: result: builtin version" >&5
3257echo "${ECHO_T}builtin version" >&6
3258 else
3259 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3260echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3261 { (exit 1); exit 1; }; }
3262 fi
3263
3264
3265 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3266echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3267 no_cache=0
3268
3269# Check whether --with-zlib or --without-zlib was given.
3270if test "${with_zlib+set}" = set; then
3271 withval="$with_zlib"
3272
3273 if test "$withval" = yes; then
3274 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3275 elif test "$withval" = no; then
3276 ac_cv_use_zlib='wxUSE_ZLIB=no'
3277 elif test "$withval" = sys; then
3278 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3279 elif test "$withval" = builtin; then
3280 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3281 else
3282 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3283echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3284 { (exit 1); exit 1; }; }
3285 fi
3286
3287else
3288
3289 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3290 if test "x$LINE" != x ; then
3291 eval "DEFAULT_$LINE"
3292 else
3293 no_cache=1
3294 fi
3295
3296 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3297
3298fi;
3299
3300 eval "$ac_cv_use_zlib"
3301 if test "$no_cache" != 1; then
3302 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3303 fi
3304
3305 if test "$wxUSE_ZLIB" = yes; then
3306 echo "$as_me:$LINENO: result: yes" >&5
3307echo "${ECHO_T}yes" >&6
3308 elif test "$wxUSE_ZLIB" = no; then
3309 echo "$as_me:$LINENO: result: no" >&5
3310echo "${ECHO_T}no" >&6
3311 elif test "$wxUSE_ZLIB" = sys; then
3312 echo "$as_me:$LINENO: result: system version" >&5
3313echo "${ECHO_T}system version" >&6
3314 elif test "$wxUSE_ZLIB" = builtin; then
3315 echo "$as_me:$LINENO: result: builtin version" >&5
3316echo "${ECHO_T}builtin version" >&6
3317 else
3318 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3319echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3320 { (exit 1); exit 1; }; }
3321 fi
3322
3323
3324 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3325echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3326 no_cache=0
3327
3328# Check whether --with-odbc or --without-odbc was given.
3329if test "${with_odbc+set}" = set; then
3330 withval="$with_odbc"
3331
3332 if test "$withval" = yes; then
3333 ac_cv_use_odbc='wxUSE_ODBC=yes'
3334 elif test "$withval" = no; then
3335 ac_cv_use_odbc='wxUSE_ODBC=no'
3336 elif test "$withval" = sys; then
3337 ac_cv_use_odbc='wxUSE_ODBC=sys'
3338 elif test "$withval" = builtin; then
3339 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3340 else
3341 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3342echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3343 { (exit 1); exit 1; }; }
3344 fi
3345
3346else
3347
3348 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3349 if test "x$LINE" != x ; then
3350 eval "DEFAULT_$LINE"
3351 else
3352 no_cache=1
3353 fi
3354
3355 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3356
3357fi;
3358
3359 eval "$ac_cv_use_odbc"
3360 if test "$no_cache" != 1; then
3361 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3362 fi
3363
3364 if test "$wxUSE_ODBC" = yes; then
3365 echo "$as_me:$LINENO: result: yes" >&5
3366echo "${ECHO_T}yes" >&6
3367 elif test "$wxUSE_ODBC" = no; then
3368 echo "$as_me:$LINENO: result: no" >&5
3369echo "${ECHO_T}no" >&6
3370 elif test "$wxUSE_ODBC" = sys; then
3371 echo "$as_me:$LINENO: result: system version" >&5
3372echo "${ECHO_T}system version" >&6
3373 elif test "$wxUSE_ODBC" = builtin; then
3374 echo "$as_me:$LINENO: result: builtin version" >&5
3375echo "${ECHO_T}builtin version" >&6
3376 else
3377 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3378echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3379 { (exit 1); exit 1; }; }
3380 fi
3381
3382
3383 echo "$as_me:$LINENO: checking for --with-expat" >&5
3384echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3385 no_cache=0
3386
3387# Check whether --with-expat or --without-expat was given.
3388if test "${with_expat+set}" = set; then
3389 withval="$with_expat"
3390
3391 if test "$withval" = yes; then
3392 ac_cv_use_expat='wxUSE_EXPAT=yes'
3393 elif test "$withval" = no; then
3394 ac_cv_use_expat='wxUSE_EXPAT=no'
3395 elif test "$withval" = sys; then
3396 ac_cv_use_expat='wxUSE_EXPAT=sys'
3397 elif test "$withval" = builtin; then
3398 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3399 else
3400 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3401echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3402 { (exit 1); exit 1; }; }
3403 fi
3404
3405else
3406
3407 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3415
3416fi;
3417
3418 eval "$ac_cv_use_expat"
3419 if test "$no_cache" != 1; then
3420 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3421 fi
3422
3423 if test "$wxUSE_EXPAT" = yes; then
3424 echo "$as_me:$LINENO: result: yes" >&5
3425echo "${ECHO_T}yes" >&6
3426 elif test "$wxUSE_EXPAT" = no; then
3427 echo "$as_me:$LINENO: result: no" >&5
3428echo "${ECHO_T}no" >&6
3429 elif test "$wxUSE_EXPAT" = sys; then
3430 echo "$as_me:$LINENO: result: system version" >&5
3431echo "${ECHO_T}system version" >&6
3432 elif test "$wxUSE_EXPAT" = builtin; then
3433 echo "$as_me:$LINENO: result: builtin version" >&5
3434echo "${ECHO_T}builtin version" >&6
3435 else
3436 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3437echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3438 { (exit 1); exit 1; }; }
3439 fi
3440
3441
3442
3443
3444 enablestring=
3445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3446echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3447 no_cache=0
3448 # Check whether --enable-shared or --disable-shared was given.
3449if test "${enable_shared+set}" = set; then
3450 enableval="$enable_shared"
3451
3452 if test "$enableval" = yes; then
3453 ac_cv_use_shared='wxUSE_SHARED=yes'
3454 else
3455 ac_cv_use_shared='wxUSE_SHARED=no'
3456 fi
3457
3458else
3459
3460 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3461 if test "x$LINE" != x ; then
3462 eval "DEFAULT_$LINE"
3463 else
3464 no_cache=1
3465 fi
3466
3467 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3468
3469fi;
3470
3471 eval "$ac_cv_use_shared"
3472 if test "$no_cache" != 1; then
3473 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3474 fi
3475
3476 if test "$wxUSE_SHARED" = yes; then
3477 echo "$as_me:$LINENO: result: yes" >&5
3478echo "${ECHO_T}yes" >&6
3479 else
3480 echo "$as_me:$LINENO: result: no" >&5
3481echo "${ECHO_T}no" >&6
3482 fi
3483
3484
3485 enablestring=
3486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3487echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3488 no_cache=0
3489 # Check whether --enable-optimise or --disable-optimise was given.
3490if test "${enable_optimise+set}" = set; then
3491 enableval="$enable_optimise"
3492
3493 if test "$enableval" = yes; then
3494 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3495 else
3496 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3497 fi
3498
3499else
3500
3501 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3502 if test "x$LINE" != x ; then
3503 eval "DEFAULT_$LINE"
3504 else
3505 no_cache=1
3506 fi
3507
3508 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3509
3510fi;
3511
3512 eval "$ac_cv_use_optimise"
3513 if test "$no_cache" != 1; then
3514 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3515 fi
3516
3517 if test "$wxUSE_OPTIMISE" = yes; then
3518 echo "$as_me:$LINENO: result: yes" >&5
3519echo "${ECHO_T}yes" >&6
3520 else
3521 echo "$as_me:$LINENO: result: no" >&5
3522echo "${ECHO_T}no" >&6
3523 fi
3524
3525
3526 enablestring=
3527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3528echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3529 no_cache=0
3530 # Check whether --enable-debug or --disable-debug was given.
3531if test "${enable_debug+set}" = set; then
3532 enableval="$enable_debug"
3533
3534 if test "$enableval" = yes; then
3535 ac_cv_use_debug='wxUSE_DEBUG=yes'
3536 else
3537 ac_cv_use_debug='wxUSE_DEBUG=no'
3538 fi
3539
3540else
3541
3542 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3543 if test "x$LINE" != x ; then
3544 eval "DEFAULT_$LINE"
3545 else
3546 no_cache=1
3547 fi
3548
3549 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3550
3551fi;
3552
3553 eval "$ac_cv_use_debug"
3554 if test "$no_cache" != 1; then
3555 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3556 fi
3557
3558 if test "$wxUSE_DEBUG" = yes; then
3559 echo "$as_me:$LINENO: result: yes" >&5
3560echo "${ECHO_T}yes" >&6
3561 else
3562 echo "$as_me:$LINENO: result: no" >&5
3563echo "${ECHO_T}no" >&6
3564 fi
3565
3566
3567 enablestring=
3568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3569echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3570 no_cache=0
3571 # Check whether --enable-stl or --disable-stl was given.
3572if test "${enable_stl+set}" = set; then
3573 enableval="$enable_stl"
3574
3575 if test "$enableval" = yes; then
3576 ac_cv_use_stl='wxUSE_STL=yes'
3577 else
3578 ac_cv_use_stl='wxUSE_STL=no'
3579 fi
3580
3581else
3582
3583 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3584 if test "x$LINE" != x ; then
3585 eval "DEFAULT_$LINE"
3586 else
3587 no_cache=1
3588 fi
3589
3590 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3591
3592fi;
3593
3594 eval "$ac_cv_use_stl"
3595 if test "$no_cache" != 1; then
3596 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3597 fi
3598
3599 if test "$wxUSE_STL" = yes; then
3600 echo "$as_me:$LINENO: result: yes" >&5
3601echo "${ECHO_T}yes" >&6
3602 else
3603 echo "$as_me:$LINENO: result: no" >&5
3604echo "${ECHO_T}no" >&6
3605 fi
3606
3607if test "$USE_OS2" = "1"; then
69120ee4 3608 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3609
3610 enablestring=
3611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3612echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3613 no_cache=0
3614 # Check whether --enable-omf or --disable-omf was given.
3615if test "${enable_omf+set}" = set; then
3616 enableval="$enable_omf"
3617
3618 if test "$enableval" = yes; then
3619 ac_cv_use_omf='wxUSE_OMF=yes'
3620 else
3621 ac_cv_use_omf='wxUSE_OMF=no'
3622 fi
3623
3624else
3625
3626 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3627 if test "x$LINE" != x ; then
3628 eval "DEFAULT_$LINE"
3629 else
3630 no_cache=1
3631 fi
3632
3633 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3634
3635fi;
3636
3637 eval "$ac_cv_use_omf"
3638 if test "$no_cache" != 1; then
3639 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3640 fi
3641
3642 if test "$wxUSE_OMF" = yes; then
3643 echo "$as_me:$LINENO: result: yes" >&5
3644echo "${ECHO_T}yes" >&6
3645 else
3646 echo "$as_me:$LINENO: result: no" >&5
3647echo "${ECHO_T}no" >&6
3648 fi
3649
3650fi
3651
3652if test "$wxUSE_DEBUG" = "yes"; then
3653 DEFAULT_wxUSE_DEBUG_FLAG=yes
3654 DEFAULT_wxUSE_DEBUG_INFO=yes
3655 BUILD=debug
3656elif test "$wxUSE_DEBUG" = "no"; then
3657 DEFAULT_wxUSE_DEBUG_FLAG=no
3658 DEFAULT_wxUSE_DEBUG_INFO=no
3659 BUILD=release
3660fi
3661
3662
3663 enablestring=
3664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3665echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3666 no_cache=0
3667 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3668if test "${enable_debug_flag+set}" = set; then
3669 enableval="$enable_debug_flag"
3670
3671 if test "$enableval" = yes; then
3672 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3673 else
3674 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3675 fi
3676
3677else
3678
3679 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3680 if test "x$LINE" != x ; then
3681 eval "DEFAULT_$LINE"
3682 else
3683 no_cache=1
3684 fi
3685
3686 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3687
3688fi;
3689
3690 eval "$ac_cv_use_debug_flag"
3691 if test "$no_cache" != 1; then
3692 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3693 fi
3694
3695 if test "$wxUSE_DEBUG_FLAG" = yes; then
3696 echo "$as_me:$LINENO: result: yes" >&5
3697echo "${ECHO_T}yes" >&6
3698 else
3699 echo "$as_me:$LINENO: result: no" >&5
3700echo "${ECHO_T}no" >&6
3701 fi
3702
3703
3704 enablestring=
3705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3706echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3707 no_cache=0
3708 # Check whether --enable-debug_info or --disable-debug_info was given.
3709if test "${enable_debug_info+set}" = set; then
3710 enableval="$enable_debug_info"
3711
3712 if test "$enableval" = yes; then
3713 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3714 else
3715 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3716 fi
3717
3718else
3719
3720 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3721 if test "x$LINE" != x ; then
3722 eval "DEFAULT_$LINE"
3723 else
3724 no_cache=1
3725 fi
3726
3727 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3728
3729fi;
3730
3731 eval "$ac_cv_use_debug_info"
3732 if test "$no_cache" != 1; then
3733 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3734 fi
3735
3736 if test "$wxUSE_DEBUG_INFO" = yes; then
3737 echo "$as_me:$LINENO: result: yes" >&5
3738echo "${ECHO_T}yes" >&6
3739 else
3740 echo "$as_me:$LINENO: result: no" >&5
3741echo "${ECHO_T}no" >&6
3742 fi
3743
3744
3745 enablestring=
3746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3747echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3748 no_cache=0
3749 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3750if test "${enable_debug_gdb+set}" = set; then
3751 enableval="$enable_debug_gdb"
3752
3753 if test "$enableval" = yes; then
3754 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3755 else
3756 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3757 fi
3758
3759else
3760
3761 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3762 if test "x$LINE" != x ; then
3763 eval "DEFAULT_$LINE"
3764 else
3765 no_cache=1
3766 fi
3767
3768 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3769
3770fi;
3771
3772 eval "$ac_cv_use_debug_gdb"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_DEBUG_GDB" = yes; then
3778 echo "$as_me:$LINENO: result: yes" >&5
3779echo "${ECHO_T}yes" >&6
3780 else
3781 echo "$as_me:$LINENO: result: no" >&5
3782echo "${ECHO_T}no" >&6
3783 fi
3784
3785
3786 enablestring=
3787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3788echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3789 no_cache=0
3790 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3791if test "${enable_debug_cntxt+set}" = set; then
3792 enableval="$enable_debug_cntxt"
3793
3794 if test "$enableval" = yes; then
3795 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3796 else
3797 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3798 fi
3799
3800else
3801
3802 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3803 if test "x$LINE" != x ; then
3804 eval "DEFAULT_$LINE"
3805 else
3806 no_cache=1
3807 fi
3808
3809 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3810
3811fi;
3812
3813 eval "$ac_cv_use_debug_cntxt"
3814 if test "$no_cache" != 1; then
3815 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3816 fi
3817
3818 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3819 echo "$as_me:$LINENO: result: yes" >&5
3820echo "${ECHO_T}yes" >&6
3821 else
3822 echo "$as_me:$LINENO: result: no" >&5
3823echo "${ECHO_T}no" >&6
3824 fi
3825
3826
3827 enablestring=
3828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3829echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3830 no_cache=0
3831 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3832if test "${enable_mem_tracing+set}" = set; then
3833 enableval="$enable_mem_tracing"
3834
3835 if test "$enableval" = yes; then
3836 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3837 else
3838 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3839 fi
3840
3841else
3842
3843 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3851
3852fi;
3853
3854 eval "$ac_cv_use_mem_tracing"
3855 if test "$no_cache" != 1; then
3856 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3857 fi
3858
3859 if test "$wxUSE_MEM_TRACING" = yes; then
3860 echo "$as_me:$LINENO: result: yes" >&5
3861echo "${ECHO_T}yes" >&6
3862 else
3863 echo "$as_me:$LINENO: result: no" >&5
3864echo "${ECHO_T}no" >&6
3865 fi
3866
3867
3868 enablestring=
3869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3870echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3871 no_cache=0
3872 # Check whether --enable-profile or --disable-profile was given.
3873if test "${enable_profile+set}" = set; then
3874 enableval="$enable_profile"
3875
3876 if test "$enableval" = yes; then
3877 ac_cv_use_profile='wxUSE_PROFILE=yes'
3878 else
3879 ac_cv_use_profile='wxUSE_PROFILE=no'
3880 fi
3881
3882else
3883
3884 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3885 if test "x$LINE" != x ; then
3886 eval "DEFAULT_$LINE"
3887 else
3888 no_cache=1
3889 fi
3890
3891 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3892
3893fi;
3894
3895 eval "$ac_cv_use_profile"
3896 if test "$no_cache" != 1; then
3897 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3898 fi
3899
3900 if test "$wxUSE_PROFILE" = yes; then
3901 echo "$as_me:$LINENO: result: yes" >&5
3902echo "${ECHO_T}yes" >&6
3903 else
3904 echo "$as_me:$LINENO: result: no" >&5
3905echo "${ECHO_T}no" >&6
3906 fi
3907
3908
3909 enablestring=
3910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3911echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3912 no_cache=0
3913 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3914if test "${enable_no_rtti+set}" = set; then
3915 enableval="$enable_no_rtti"
3916
3917 if test "$enableval" = yes; then
3918 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3919 else
3920 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3921 fi
3922
3923else
3924
3925 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3926 if test "x$LINE" != x ; then
3927 eval "DEFAULT_$LINE"
3928 else
3929 no_cache=1
3930 fi
3931
3932 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3933
3934fi;
3935
3936 eval "$ac_cv_use_no_rtti"
3937 if test "$no_cache" != 1; then
3938 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3939 fi
3940
3941 if test "$wxUSE_NO_RTTI" = yes; then
3942 echo "$as_me:$LINENO: result: yes" >&5
3943echo "${ECHO_T}yes" >&6
3944 else
3945 echo "$as_me:$LINENO: result: no" >&5
3946echo "${ECHO_T}no" >&6
3947 fi
3948
3949
3950 enablestring=
3951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3952echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3953 no_cache=0
3954 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3955if test "${enable_no_exceptions+set}" = set; then
3956 enableval="$enable_no_exceptions"
3957
3958 if test "$enableval" = yes; then
3959 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3960 else
3961 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3962 fi
3963
3964else
3965
3966 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3967 if test "x$LINE" != x ; then
3968 eval "DEFAULT_$LINE"
3969 else
3970 no_cache=1
3971 fi
3972
3973 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3974
3975fi;
3976
3977 eval "$ac_cv_use_no_exceptions"
3978 if test "$no_cache" != 1; then
3979 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3980 fi
3981
3982 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3983 echo "$as_me:$LINENO: result: yes" >&5
3984echo "${ECHO_T}yes" >&6
3985 else
3986 echo "$as_me:$LINENO: result: no" >&5
3987echo "${ECHO_T}no" >&6
3988 fi
3989
3990
3991 enablestring=
3992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3993echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3994 no_cache=0
3995 # Check whether --enable-permissive or --disable-permissive was given.
3996if test "${enable_permissive+set}" = set; then
3997 enableval="$enable_permissive"
3998
3999 if test "$enableval" = yes; then
4000 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4001 else
4002 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4003 fi
4004
4005else
4006
4007 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4008 if test "x$LINE" != x ; then
4009 eval "DEFAULT_$LINE"
4010 else
4011 no_cache=1
4012 fi
4013
4014 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4015
4016fi;
4017
4018 eval "$ac_cv_use_permissive"
4019 if test "$no_cache" != 1; then
4020 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4021 fi
4022
4023 if test "$wxUSE_PERMISSIVE" = yes; then
4024 echo "$as_me:$LINENO: result: yes" >&5
4025echo "${ECHO_T}yes" >&6
4026 else
4027 echo "$as_me:$LINENO: result: no" >&5
4028echo "${ECHO_T}no" >&6
4029 fi
4030
4031
4032 enablestring=
4033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4034echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4035 no_cache=0
4036 # Check whether --enable-no_deps or --disable-no_deps was given.
4037if test "${enable_no_deps+set}" = set; then
4038 enableval="$enable_no_deps"
4039
4040 if test "$enableval" = yes; then
4041 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4042 else
4043 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4044 fi
4045
4046else
4047
4048 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4049 if test "x$LINE" != x ; then
4050 eval "DEFAULT_$LINE"
4051 else
4052 no_cache=1
4053 fi
4054
4055 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4056
4057fi;
4058
4059 eval "$ac_cv_use_no_deps"
4060 if test "$no_cache" != 1; then
4061 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4062 fi
4063
4064 if test "$wxUSE_NO_DEPS" = yes; then
4065 echo "$as_me:$LINENO: result: yes" >&5
4066echo "${ECHO_T}yes" >&6
4067 else
4068 echo "$as_me:$LINENO: result: no" >&5
4069echo "${ECHO_T}no" >&6
4070 fi
4071
4072
4073
4074 enablestring=
4075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4076echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4077 no_cache=0
4078 # Check whether --enable-compat22 or --disable-compat22 was given.
4079if test "${enable_compat22+set}" = set; then
4080 enableval="$enable_compat22"
4081
4082 if test "$enableval" = yes; then
4083 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4084 else
4085 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4086 fi
4087
4088else
4089
4090 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4091 if test "x$LINE" != x ; then
4092 eval "DEFAULT_$LINE"
4093 else
4094 no_cache=1
4095 fi
4096
4097 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4098
4099fi;
4100
4101 eval "$ac_cv_use_compat22"
4102 if test "$no_cache" != 1; then
4103 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4104 fi
4105
4106 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4107 echo "$as_me:$LINENO: result: yes" >&5
4108echo "${ECHO_T}yes" >&6
4109 else
4110 echo "$as_me:$LINENO: result: no" >&5
4111echo "${ECHO_T}no" >&6
4112 fi
4113
4114
4115 enablestring=disable
4116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4117echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4118 no_cache=0
4119 # Check whether --enable-compat24 or --disable-compat24 was given.
4120if test "${enable_compat24+set}" = set; then
4121 enableval="$enable_compat24"
4122
4123 if test "$enableval" = yes; then
4124 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4125 else
4126 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4127 fi
4128
4129else
4130
4131 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4132 if test "x$LINE" != x ; then
4133 eval "DEFAULT_$LINE"
4134 else
4135 no_cache=1
4136 fi
4137
4138 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4139
4140fi;
4141
4142 eval "$ac_cv_use_compat24"
4143 if test "$no_cache" != 1; then
4144 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4145 fi
4146
4147 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4148 echo "$as_me:$LINENO: result: yes" >&5
4149echo "${ECHO_T}yes" >&6
4150 else
4151 echo "$as_me:$LINENO: result: no" >&5
4152echo "${ECHO_T}no" >&6
4153 fi
4154
4155
ffa0583f
RL
4156
4157 enablestring=
4158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4159echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4160 no_cache=0
4161 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4162if test "${enable_rpath+set}" = set; then
4163 enableval="$enable_rpath"
ffa0583f
RL
4164
4165 if test "$enableval" = yes; then
4166 ac_cv_use_rpath='wxUSE_RPATH=yes'
4167 else
4168 ac_cv_use_rpath='wxUSE_RPATH=no'
4169 fi
4170
4171else
4172
4173 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4174 if test "x$LINE" != x ; then
4175 eval "DEFAULT_$LINE"
4176 else
4177 no_cache=1
4178 fi
4179
4180 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4181
a848cd7e
SC
4182fi;
4183
ffa0583f
RL
4184 eval "$ac_cv_use_rpath"
4185 if test "$no_cache" != 1; then
4186 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4187 fi
4188
4189 if test "$wxUSE_RPATH" = yes; then
4190 echo "$as_me:$LINENO: result: yes" >&5
4191echo "${ECHO_T}yes" >&6
4192 else
4193 echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
4195 fi
4196
a848cd7e
SC
4197
4198
4199
4200
4201 enablestring=
4202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4203echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4204 no_cache=0
4205 # Check whether --enable-intl or --disable-intl was given.
4206if test "${enable_intl+set}" = set; then
4207 enableval="$enable_intl"
4208
4209 if test "$enableval" = yes; then
4210 ac_cv_use_intl='wxUSE_INTL=yes'
4211 else
4212 ac_cv_use_intl='wxUSE_INTL=no'
4213 fi
4214
4215else
4216
4217 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4218 if test "x$LINE" != x ; then
4219 eval "DEFAULT_$LINE"
4220 else
4221 no_cache=1
4222 fi
4223
4224 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4225
4226fi;
4227
4228 eval "$ac_cv_use_intl"
4229 if test "$no_cache" != 1; then
4230 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4231 fi
4232
4233 if test "$wxUSE_INTL" = yes; then
4234 echo "$as_me:$LINENO: result: yes" >&5
4235echo "${ECHO_T}yes" >&6
4236 else
4237 echo "$as_me:$LINENO: result: no" >&5
4238echo "${ECHO_T}no" >&6
4239 fi
4240
4241
4242 enablestring=
4243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4244echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4245 no_cache=0
4246 # Check whether --enable-config or --disable-config was given.
4247if test "${enable_config+set}" = set; then
4248 enableval="$enable_config"
4249
4250 if test "$enableval" = yes; then
4251 ac_cv_use_config='wxUSE_CONFIG=yes'
4252 else
4253 ac_cv_use_config='wxUSE_CONFIG=no'
4254 fi
4255
4256else
4257
4258 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4259 if test "x$LINE" != x ; then
4260 eval "DEFAULT_$LINE"
4261 else
4262 no_cache=1
4263 fi
4264
4265 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4266
4267fi;
4268
4269 eval "$ac_cv_use_config"
4270 if test "$no_cache" != 1; then
4271 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4272 fi
4273
4274 if test "$wxUSE_CONFIG" = yes; then
4275 echo "$as_me:$LINENO: result: yes" >&5
4276echo "${ECHO_T}yes" >&6
4277 else
4278 echo "$as_me:$LINENO: result: no" >&5
4279echo "${ECHO_T}no" >&6
4280 fi
4281
4282
4283
4284 enablestring=
4285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4286echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4287 no_cache=0
4288 # Check whether --enable-protocols or --disable-protocols was given.
4289if test "${enable_protocols+set}" = set; then
4290 enableval="$enable_protocols"
4291
4292 if test "$enableval" = yes; then
4293 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4294 else
4295 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4296 fi
4297
4298else
4299
4300 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4301 if test "x$LINE" != x ; then
4302 eval "DEFAULT_$LINE"
4303 else
4304 no_cache=1
4305 fi
4306
4307 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4308
4309fi;
4310
4311 eval "$ac_cv_use_protocols"
4312 if test "$no_cache" != 1; then
4313 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4314 fi
4315
4316 if test "$wxUSE_PROTOCOL" = yes; then
4317 echo "$as_me:$LINENO: result: yes" >&5
4318echo "${ECHO_T}yes" >&6
4319 else
4320 echo "$as_me:$LINENO: result: no" >&5
4321echo "${ECHO_T}no" >&6
4322 fi
4323
4324
4325 enablestring=
4326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4327echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4328 no_cache=0
4329 # Check whether --enable-ftp or --disable-ftp was given.
4330if test "${enable_ftp+set}" = set; then
4331 enableval="$enable_ftp"
4332
4333 if test "$enableval" = yes; then
4334 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4335 else
4336 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4337 fi
4338
4339else
4340
4341 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4342 if test "x$LINE" != x ; then
4343 eval "DEFAULT_$LINE"
4344 else
4345 no_cache=1
4346 fi
4347
4348 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4349
4350fi;
4351
4352 eval "$ac_cv_use_ftp"
4353 if test "$no_cache" != 1; then
4354 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4355 fi
4356
4357 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4358 echo "$as_me:$LINENO: result: yes" >&5
4359echo "${ECHO_T}yes" >&6
4360 else
4361 echo "$as_me:$LINENO: result: no" >&5
4362echo "${ECHO_T}no" >&6
4363 fi
4364
4365
4366 enablestring=
4367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4368echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4369 no_cache=0
4370 # Check whether --enable-http or --disable-http was given.
4371if test "${enable_http+set}" = set; then
4372 enableval="$enable_http"
4373
4374 if test "$enableval" = yes; then
4375 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4376 else
4377 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4378 fi
4379
4380else
4381
4382 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4383 if test "x$LINE" != x ; then
4384 eval "DEFAULT_$LINE"
4385 else
4386 no_cache=1
4387 fi
4388
4389 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4390
4391fi;
4392
4393 eval "$ac_cv_use_http"
4394 if test "$no_cache" != 1; then
4395 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4396 fi
4397
4398 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4399 echo "$as_me:$LINENO: result: yes" >&5
4400echo "${ECHO_T}yes" >&6
4401 else
4402 echo "$as_me:$LINENO: result: no" >&5
4403echo "${ECHO_T}no" >&6
4404 fi
4405
4406
4407 enablestring=
4408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4409echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4410 no_cache=0
4411 # Check whether --enable-fileproto or --disable-fileproto was given.
4412if test "${enable_fileproto+set}" = set; then
4413 enableval="$enable_fileproto"
4414
4415 if test "$enableval" = yes; then
4416 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4417 else
4418 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4419 fi
4420
4421else
4422
4423 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4424 if test "x$LINE" != x ; then
4425 eval "DEFAULT_$LINE"
4426 else
4427 no_cache=1
4428 fi
4429
4430 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4431
4432fi;
4433
4434 eval "$ac_cv_use_fileproto"
4435 if test "$no_cache" != 1; then
4436 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4437 fi
4438
4439 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4440 echo "$as_me:$LINENO: result: yes" >&5
4441echo "${ECHO_T}yes" >&6
4442 else
4443 echo "$as_me:$LINENO: result: no" >&5
4444echo "${ECHO_T}no" >&6
4445 fi
4446
4447
4448 enablestring=
4449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4450echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4451 no_cache=0
4452 # Check whether --enable-sockets or --disable-sockets was given.
4453if test "${enable_sockets+set}" = set; then
4454 enableval="$enable_sockets"
4455
4456 if test "$enableval" = yes; then
4457 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4458 else
4459 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4460 fi
4461
4462else
4463
4464 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4465 if test "x$LINE" != x ; then
4466 eval "DEFAULT_$LINE"
4467 else
4468 no_cache=1
4469 fi
4470
4471 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4472
4473fi;
4474
4475 eval "$ac_cv_use_sockets"
4476 if test "$no_cache" != 1; then
4477 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4478 fi
4479
4480 if test "$wxUSE_SOCKETS" = yes; then
4481 echo "$as_me:$LINENO: result: yes" >&5
4482echo "${ECHO_T}yes" >&6
4483 else
4484 echo "$as_me:$LINENO: result: no" >&5
4485echo "${ECHO_T}no" >&6
4486 fi
4487
4488
4489 enablestring=
4490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4491echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4492 no_cache=0
4493 # Check whether --enable-ole or --disable-ole was given.
4494if test "${enable_ole+set}" = set; then
4495 enableval="$enable_ole"
4496
4497 if test "$enableval" = yes; then
4498 ac_cv_use_ole='wxUSE_OLE=yes'
4499 else
4500 ac_cv_use_ole='wxUSE_OLE=no'
4501 fi
4502
4503else
4504
4505 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4506 if test "x$LINE" != x ; then
4507 eval "DEFAULT_$LINE"
4508 else
4509 no_cache=1
4510 fi
4511
4512 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4513
4514fi;
4515
4516 eval "$ac_cv_use_ole"
4517 if test "$no_cache" != 1; then
4518 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4519 fi
4520
4521 if test "$wxUSE_OLE" = yes; then
4522 echo "$as_me:$LINENO: result: yes" >&5
4523echo "${ECHO_T}yes" >&6
4524 else
4525 echo "$as_me:$LINENO: result: no" >&5
4526echo "${ECHO_T}no" >&6
4527 fi
4528
4529
4530 enablestring=
4531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4532echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4533 no_cache=0
4534 # Check whether --enable-dataobj or --disable-dataobj was given.
4535if test "${enable_dataobj+set}" = set; then
4536 enableval="$enable_dataobj"
4537
4538 if test "$enableval" = yes; then
4539 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4540 else
4541 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4542 fi
4543
4544else
4545
4546 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4547 if test "x$LINE" != x ; then
4548 eval "DEFAULT_$LINE"
4549 else
4550 no_cache=1
4551 fi
4552
4553 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4554
4555fi;
4556
4557 eval "$ac_cv_use_dataobj"
4558 if test "$no_cache" != 1; then
4559 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4560 fi
4561
4562 if test "$wxUSE_DATAOBJ" = yes; then
4563 echo "$as_me:$LINENO: result: yes" >&5
4564echo "${ECHO_T}yes" >&6
4565 else
4566 echo "$as_me:$LINENO: result: no" >&5
4567echo "${ECHO_T}no" >&6
4568 fi
4569
4570
4571
4572 enablestring=
4573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4574echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4575 no_cache=0
4576 # Check whether --enable-ipc or --disable-ipc was given.
4577if test "${enable_ipc+set}" = set; then
4578 enableval="$enable_ipc"
4579
4580 if test "$enableval" = yes; then
4581 ac_cv_use_ipc='wxUSE_IPC=yes'
4582 else
4583 ac_cv_use_ipc='wxUSE_IPC=no'
4584 fi
4585
4586else
4587
4588 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4589 if test "x$LINE" != x ; then
4590 eval "DEFAULT_$LINE"
4591 else
4592 no_cache=1
4593 fi
4594
4595 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4596
4597fi;
4598
4599 eval "$ac_cv_use_ipc"
4600 if test "$no_cache" != 1; then
4601 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4602 fi
4603
4604 if test "$wxUSE_IPC" = yes; then
4605 echo "$as_me:$LINENO: result: yes" >&5
4606echo "${ECHO_T}yes" >&6
4607 else
4608 echo "$as_me:$LINENO: result: no" >&5
4609echo "${ECHO_T}no" >&6
4610 fi
4611
4612
4613
4614 enablestring=
4615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4616echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4617 no_cache=0
4618 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4619if test "${enable_apple_ieee+set}" = set; then
4620 enableval="$enable_apple_ieee"
4621
4622 if test "$enableval" = yes; then
4623 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4624 else
4625 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4626 fi
4627
4628else
4629
4630 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4631 if test "x$LINE" != x ; then
4632 eval "DEFAULT_$LINE"
4633 else
4634 no_cache=1
4635 fi
4636
4637 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4638
4639fi;
4640
4641 eval "$ac_cv_use_apple_ieee"
4642 if test "$no_cache" != 1; then
4643 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4644 fi
4645
4646 if test "$wxUSE_APPLE_IEEE" = yes; then
4647 echo "$as_me:$LINENO: result: yes" >&5
4648echo "${ECHO_T}yes" >&6
4649 else
4650 echo "$as_me:$LINENO: result: no" >&5
4651echo "${ECHO_T}no" >&6
4652 fi
4653
4654
81f90336
MW
4655 enablestring=
4656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4657echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4658 no_cache=0
4659 # Check whether --enable-arcstream or --disable-arcstream was given.
4660if test "${enable_arcstream+set}" = set; then
4661 enableval="$enable_arcstream"
4662
4663 if test "$enableval" = yes; then
9e8e867f 4664 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4665 else
9e8e867f 4666 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4667 fi
4668
4669else
4670
9e8e867f 4671 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4672 if test "x$LINE" != x ; then
4673 eval "DEFAULT_$LINE"
4674 else
4675 no_cache=1
4676 fi
4677
9e8e867f 4678 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4679
4680fi;
4681
4682 eval "$ac_cv_use_arcstream"
4683 if test "$no_cache" != 1; then
4684 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4685 fi
4686
9e8e867f 4687 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4688 echo "$as_me:$LINENO: result: yes" >&5
4689echo "${ECHO_T}yes" >&6
4690 else
4691 echo "$as_me:$LINENO: result: no" >&5
4692echo "${ECHO_T}no" >&6
4693 fi
4694
4695
a848cd7e 4696 enablestring=
36b6448c
VZ
4697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4698echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4699 no_cache=0
36b6448c
VZ
4700 # Check whether --enable-backtrace or --disable-backtrace was given.
4701if test "${enable_backtrace+set}" = set; then
4702 enableval="$enable_backtrace"
a848cd7e
SC
4703
4704 if test "$enableval" = yes; then
36b6448c 4705 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4706 else
36b6448c 4707 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4708 fi
4709
4710else
4711
36b6448c 4712 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4713 if test "x$LINE" != x ; then
4714 eval "DEFAULT_$LINE"
4715 else
4716 no_cache=1
4717 fi
4718
36b6448c 4719 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4720
4721fi;
4722
36b6448c 4723 eval "$ac_cv_use_backtrace"
a848cd7e 4724 if test "$no_cache" != 1; then
36b6448c 4725 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4726 fi
4727
36b6448c 4728 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4729 echo "$as_me:$LINENO: result: yes" >&5
4730echo "${ECHO_T}yes" >&6
4731 else
4732 echo "$as_me:$LINENO: result: no" >&5
4733echo "${ECHO_T}no" >&6
4734 fi
4735
4736
eaff0f0d 4737 enablestring=
36b6448c
VZ
4738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4739echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4740 no_cache=0
36b6448c
VZ
4741 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4742if test "${enable_catch_segvs+set}" = set; then
4743 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4744
4745 if test "$enableval" = yes; then
36b6448c 4746 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4747 else
36b6448c 4748 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4749 fi
4750
4751else
4752
36b6448c 4753 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4754 if test "x$LINE" != x ; then
4755 eval "DEFAULT_$LINE"
4756 else
4757 no_cache=1
4758 fi
4759
36b6448c 4760 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4761
4762fi;
4763
36b6448c 4764 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4765 if test "$no_cache" != 1; then
36b6448c 4766 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4767 fi
4768
36b6448c 4769 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4770 echo "$as_me:$LINENO: result: yes" >&5
4771echo "${ECHO_T}yes" >&6
4772 else
4773 echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6
4775 fi
4776
4777
a848cd7e
SC
4778 enablestring=
4779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4780echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4781 no_cache=0
4782 # Check whether --enable-cmdline or --disable-cmdline was given.
4783if test "${enable_cmdline+set}" = set; then
4784 enableval="$enable_cmdline"
4785
4786 if test "$enableval" = yes; then
4787 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4788 else
4789 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4790 fi
4791
4792else
4793
4794 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4795 if test "x$LINE" != x ; then
4796 eval "DEFAULT_$LINE"
4797 else
4798 no_cache=1
4799 fi
4800
4801 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4802
4803fi;
4804
4805 eval "$ac_cv_use_cmdline"
4806 if test "$no_cache" != 1; then
4807 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4808 fi
4809
4810 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4811 echo "$as_me:$LINENO: result: yes" >&5
4812echo "${ECHO_T}yes" >&6
4813 else
4814 echo "$as_me:$LINENO: result: no" >&5
4815echo "${ECHO_T}no" >&6
4816 fi
4817
4818
4819 enablestring=
4820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4821echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4822 no_cache=0
4823 # Check whether --enable-datetime or --disable-datetime was given.
4824if test "${enable_datetime+set}" = set; then
4825 enableval="$enable_datetime"
4826
4827 if test "$enableval" = yes; then
4828 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4829 else
4830 ac_cv_use_datetime='wxUSE_DATETIME=no'
4831 fi
4832
4833else
4834
4835 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4836 if test "x$LINE" != x ; then
4837 eval "DEFAULT_$LINE"
4838 else
4839 no_cache=1
4840 fi
4841
4842 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4843
4844fi;
4845
4846 eval "$ac_cv_use_datetime"
4847 if test "$no_cache" != 1; then
4848 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4849 fi
4850
4851 if test "$wxUSE_DATETIME" = yes; then
4852 echo "$as_me:$LINENO: result: yes" >&5
4853echo "${ECHO_T}yes" >&6
4854 else
4855 echo "$as_me:$LINENO: result: no" >&5
4856echo "${ECHO_T}no" >&6
4857 fi
4858
4859
36b6448c
VZ
4860 enablestring=
4861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4862echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4863 no_cache=0
4864 # Check whether --enable-debugreport or --disable-debugreport was given.
4865if test "${enable_debugreport+set}" = set; then
4866 enableval="$enable_debugreport"
4867
4868 if test "$enableval" = yes; then
4869 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4870 else
4871 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4872 fi
4873
4874else
4875
4876 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4877 if test "x$LINE" != x ; then
4878 eval "DEFAULT_$LINE"
4879 else
4880 no_cache=1
4881 fi
4882
4883 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4884
4885fi;
4886
4887 eval "$ac_cv_use_debugreport"
4888 if test "$no_cache" != 1; then
4889 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4890 fi
4891
4892 if test "$wxUSE_DEBUGREPORT" = yes; then
4893 echo "$as_me:$LINENO: result: yes" >&5
4894echo "${ECHO_T}yes" >&6
4895 else
4896 echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6
4898 fi
4899
4900
a848cd7e
SC
4901 enablestring=
4902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4903echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4904 no_cache=0
4905 # Check whether --enable-dialupman or --disable-dialupman was given.
4906if test "${enable_dialupman+set}" = set; then
4907 enableval="$enable_dialupman"
4908
4909 if test "$enableval" = yes; then
4910 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4911 else
4912 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4913 fi
4914
4915else
4916
4917 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4918 if test "x$LINE" != x ; then
4919 eval "DEFAULT_$LINE"
4920 else
4921 no_cache=1
4922 fi
4923
4924 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4925
4926fi;
4927
4928 eval "$ac_cv_use_dialupman"
4929 if test "$no_cache" != 1; then
4930 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4931 fi
4932
4933 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4934 echo "$as_me:$LINENO: result: yes" >&5
4935echo "${ECHO_T}yes" >&6
4936 else
4937 echo "$as_me:$LINENO: result: no" >&5
4938echo "${ECHO_T}no" >&6
4939 fi
4940
4941
4942 enablestring=
4943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4944echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4945 no_cache=0
4946 # Check whether --enable-dynlib or --disable-dynlib was given.
4947if test "${enable_dynlib+set}" = set; then
4948 enableval="$enable_dynlib"
4949
4950 if test "$enableval" = yes; then
4951 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4952 else
4953 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4954 fi
4955
4956else
4957
4958 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4959 if test "x$LINE" != x ; then
4960 eval "DEFAULT_$LINE"
4961 else
4962 no_cache=1
4963 fi
4964
4965 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4966
4967fi;
4968
4969 eval "$ac_cv_use_dynlib"
4970 if test "$no_cache" != 1; then
4971 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4972 fi
4973
4974 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4975 echo "$as_me:$LINENO: result: yes" >&5
4976echo "${ECHO_T}yes" >&6
4977 else
4978 echo "$as_me:$LINENO: result: no" >&5
4979echo "${ECHO_T}no" >&6
4980 fi
4981
4982
4983 enablestring=
4984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4985echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4986 no_cache=0
4987 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4988if test "${enable_dynamicloader+set}" = set; then
4989 enableval="$enable_dynamicloader"
4990
4991 if test "$enableval" = yes; then
4992 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4993 else
4994 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4995 fi
4996
4997else
4998
4999 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5000 if test "x$LINE" != x ; then
5001 eval "DEFAULT_$LINE"
5002 else
5003 no_cache=1
5004 fi
5005
5006 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5007
5008fi;
5009
5010 eval "$ac_cv_use_dynamicloader"
5011 if test "$no_cache" != 1; then
5012 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5013 fi
5014
5015 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5016 echo "$as_me:$LINENO: result: yes" >&5
5017echo "${ECHO_T}yes" >&6
5018 else
5019 echo "$as_me:$LINENO: result: no" >&5
5020echo "${ECHO_T}no" >&6
5021 fi
5022
5023
5024 enablestring=
5025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5026echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5027 no_cache=0
5028 # Check whether --enable-exceptions or --disable-exceptions was given.
5029if test "${enable_exceptions+set}" = set; then
5030 enableval="$enable_exceptions"
5031
5032 if test "$enableval" = yes; then
5033 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5034 else
5035 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5036 fi
5037
5038else
5039
5040 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5041 if test "x$LINE" != x ; then
5042 eval "DEFAULT_$LINE"
5043 else
5044 no_cache=1
5045 fi
5046
5047 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5048
5049fi;
5050
5051 eval "$ac_cv_use_exceptions"
5052 if test "$no_cache" != 1; then
5053 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5054 fi
5055
5056 if test "$wxUSE_EXCEPTIONS" = yes; then
5057 echo "$as_me:$LINENO: result: yes" >&5
5058echo "${ECHO_T}yes" >&6
5059 else
5060 echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6
5062 fi
5063
5064
5065 enablestring=
5066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5067echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5068 no_cache=0
5069 # Check whether --enable-ffile or --disable-ffile was given.
5070if test "${enable_ffile+set}" = set; then
5071 enableval="$enable_ffile"
5072
5073 if test "$enableval" = yes; then
5074 ac_cv_use_ffile='wxUSE_FFILE=yes'
5075 else
5076 ac_cv_use_ffile='wxUSE_FFILE=no'
5077 fi
5078
5079else
5080
5081 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5082 if test "x$LINE" != x ; then
5083 eval "DEFAULT_$LINE"
5084 else
5085 no_cache=1
5086 fi
5087
5088 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5089
5090fi;
5091
5092 eval "$ac_cv_use_ffile"
5093 if test "$no_cache" != 1; then
5094 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5095 fi
5096
5097 if test "$wxUSE_FFILE" = yes; then
5098 echo "$as_me:$LINENO: result: yes" >&5
5099echo "${ECHO_T}yes" >&6
5100 else
5101 echo "$as_me:$LINENO: result: no" >&5
5102echo "${ECHO_T}no" >&6
5103 fi
5104
5105
5106 enablestring=
5107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5108echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5109 no_cache=0
5110 # Check whether --enable-file or --disable-file was given.
5111if test "${enable_file+set}" = set; then
5112 enableval="$enable_file"
5113
5114 if test "$enableval" = yes; then
5115 ac_cv_use_file='wxUSE_FILE=yes'
5116 else
5117 ac_cv_use_file='wxUSE_FILE=no'
5118 fi
5119
5120else
5121
5122 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5123 if test "x$LINE" != x ; then
5124 eval "DEFAULT_$LINE"
5125 else
5126 no_cache=1
5127 fi
5128
5129 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5130
5131fi;
5132
5133 eval "$ac_cv_use_file"
5134 if test "$no_cache" != 1; then
5135 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5136 fi
5137
5138 if test "$wxUSE_FILE" = yes; then
5139 echo "$as_me:$LINENO: result: yes" >&5
5140echo "${ECHO_T}yes" >&6
5141 else
5142 echo "$as_me:$LINENO: result: no" >&5
5143echo "${ECHO_T}no" >&6
5144 fi
5145
5146
5147 enablestring=
5148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5149echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5150 no_cache=0
5151 # Check whether --enable-filesystem or --disable-filesystem was given.
5152if test "${enable_filesystem+set}" = set; then
5153 enableval="$enable_filesystem"
5154
5155 if test "$enableval" = yes; then
5156 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5157 else
5158 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5159 fi
5160
5161else
5162
5163 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5164 if test "x$LINE" != x ; then
5165 eval "DEFAULT_$LINE"
5166 else
5167 no_cache=1
5168 fi
5169
5170 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5171
5172fi;
5173
5174 eval "$ac_cv_use_filesystem"
5175 if test "$no_cache" != 1; then
5176 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5177 fi
5178
5179 if test "$wxUSE_FILESYSTEM" = yes; then
5180 echo "$as_me:$LINENO: result: yes" >&5
5181echo "${ECHO_T}yes" >&6
5182 else
5183 echo "$as_me:$LINENO: result: no" >&5
5184echo "${ECHO_T}no" >&6
5185 fi
5186
5187
5188 enablestring=
5189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5190echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5191 no_cache=0
5192 # Check whether --enable-fontmap or --disable-fontmap was given.
5193if test "${enable_fontmap+set}" = set; then
5194 enableval="$enable_fontmap"
5195
5196 if test "$enableval" = yes; then
5197 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5198 else
5199 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5200 fi
5201
5202else
5203
5204 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5205 if test "x$LINE" != x ; then
5206 eval "DEFAULT_$LINE"
5207 else
5208 no_cache=1
5209 fi
5210
5211 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5212
5213fi;
5214
5215 eval "$ac_cv_use_fontmap"
5216 if test "$no_cache" != 1; then
5217 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5218 fi
5219
5220 if test "$wxUSE_FONTMAP" = yes; then
5221 echo "$as_me:$LINENO: result: yes" >&5
5222echo "${ECHO_T}yes" >&6
5223 else
5224 echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
5226 fi
5227
5228
5229 enablestring=
5230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5231echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5232 no_cache=0
5233 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5234if test "${enable_fs_inet+set}" = set; then
5235 enableval="$enable_fs_inet"
5236
5237 if test "$enableval" = yes; then
5238 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5239 else
5240 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5241 fi
5242
5243else
5244
5245 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5246 if test "x$LINE" != x ; then
5247 eval "DEFAULT_$LINE"
5248 else
5249 no_cache=1
5250 fi
5251
5252 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5253
5254fi;
5255
5256 eval "$ac_cv_use_fs_inet"
5257 if test "$no_cache" != 1; then
5258 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5259 fi
5260
5261 if test "$wxUSE_FS_INET" = yes; then
5262 echo "$as_me:$LINENO: result: yes" >&5
5263echo "${ECHO_T}yes" >&6
5264 else
5265 echo "$as_me:$LINENO: result: no" >&5
5266echo "${ECHO_T}no" >&6
5267 fi
5268
5269
5270 enablestring=
5271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5272echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5273 no_cache=0
5274 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5275if test "${enable_fs_zip+set}" = set; then
5276 enableval="$enable_fs_zip"
5277
5278 if test "$enableval" = yes; then
5279 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5280 else
5281 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5282 fi
5283
5284else
5285
5286 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5287 if test "x$LINE" != x ; then
5288 eval "DEFAULT_$LINE"
5289 else
5290 no_cache=1
5291 fi
5292
5293 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5294
5295fi;
5296
5297 eval "$ac_cv_use_fs_zip"
5298 if test "$no_cache" != 1; then
5299 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5300 fi
5301
5302 if test "$wxUSE_FS_ZIP" = yes; then
5303 echo "$as_me:$LINENO: result: yes" >&5
5304echo "${ECHO_T}yes" >&6
5305 else
5306 echo "$as_me:$LINENO: result: no" >&5
5307echo "${ECHO_T}no" >&6
5308 fi
5309
5310
5311 enablestring=
5312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5313echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5314 no_cache=0
5315 # Check whether --enable-geometry or --disable-geometry was given.
5316if test "${enable_geometry+set}" = set; then
5317 enableval="$enable_geometry"
5318
5319 if test "$enableval" = yes; then
5320 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5321 else
5322 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5323 fi
5324
5325else
5326
5327 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5328 if test "x$LINE" != x ; then
5329 eval "DEFAULT_$LINE"
5330 else
5331 no_cache=1
5332 fi
5333
5334 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5335
5336fi;
5337
5338 eval "$ac_cv_use_geometry"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_GEOMETRY" = yes; then
5344 echo "$as_me:$LINENO: result: yes" >&5
5345echo "${ECHO_T}yes" >&6
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348echo "${ECHO_T}no" >&6
5349 fi
5350
5351
5352 enablestring=
5353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5354echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5355 no_cache=0
5356 # Check whether --enable-log or --disable-log was given.
5357if test "${enable_log+set}" = set; then
5358 enableval="$enable_log"
5359
5360 if test "$enableval" = yes; then
5361 ac_cv_use_log='wxUSE_LOG=yes'
5362 else
5363 ac_cv_use_log='wxUSE_LOG=no'
5364 fi
5365
5366else
5367
5368 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5369 if test "x$LINE" != x ; then
5370 eval "DEFAULT_$LINE"
5371 else
5372 no_cache=1
5373 fi
5374
5375 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5376
5377fi;
5378
5379 eval "$ac_cv_use_log"
5380 if test "$no_cache" != 1; then
5381 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5382 fi
5383
5384 if test "$wxUSE_LOG" = yes; then
5385 echo "$as_me:$LINENO: result: yes" >&5
5386echo "${ECHO_T}yes" >&6
5387 else
5388 echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6
5390 fi
5391
5392
5393 enablestring=
5394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5395echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5396 no_cache=0
5397 # Check whether --enable-longlong or --disable-longlong was given.
5398if test "${enable_longlong+set}" = set; then
5399 enableval="$enable_longlong"
5400
5401 if test "$enableval" = yes; then
5402 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5403 else
5404 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5405 fi
5406
5407else
5408
5409 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5410 if test "x$LINE" != x ; then
5411 eval "DEFAULT_$LINE"
5412 else
5413 no_cache=1
5414 fi
5415
5416 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5417
5418fi;
5419
5420 eval "$ac_cv_use_longlong"
5421 if test "$no_cache" != 1; then
5422 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5423 fi
5424
5425 if test "$wxUSE_LONGLONG" = yes; then
5426 echo "$as_me:$LINENO: result: yes" >&5
5427echo "${ECHO_T}yes" >&6
5428 else
5429 echo "$as_me:$LINENO: result: no" >&5
5430echo "${ECHO_T}no" >&6
5431 fi
5432
5433
5434 enablestring=
5435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5436echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5437 no_cache=0
5438 # Check whether --enable-mimetype or --disable-mimetype was given.
5439if test "${enable_mimetype+set}" = set; then
5440 enableval="$enable_mimetype"
5441
5442 if test "$enableval" = yes; then
5443 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5444 else
5445 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5446 fi
5447
5448else
5449
5450 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5451 if test "x$LINE" != x ; then
5452 eval "DEFAULT_$LINE"
5453 else
5454 no_cache=1
5455 fi
5456
5457 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5458
5459fi;
5460
5461 eval "$ac_cv_use_mimetype"
5462 if test "$no_cache" != 1; then
5463 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5464 fi
5465
5466 if test "$wxUSE_MIMETYPE" = yes; then
5467 echo "$as_me:$LINENO: result: yes" >&5
5468echo "${ECHO_T}yes" >&6
5469 else
5470 echo "$as_me:$LINENO: result: no" >&5
5471echo "${ECHO_T}no" >&6
5472 fi
5473
5474
5475 enablestring=
5476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5477echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5478 no_cache=0
5479 # Check whether --enable-mslu or --disable-mslu was given.
5480if test "${enable_mslu+set}" = set; then
5481 enableval="$enable_mslu"
5482
5483 if test "$enableval" = yes; then
5484 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5485 else
5486 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5487 fi
5488
5489else
5490
5491 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5499
5500fi;
5501
5502 eval "$ac_cv_use_mslu"
5503 if test "$no_cache" != 1; then
5504 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5505 fi
5506
5507 if test "$wxUSE_UNICODE_MSLU" = yes; then
5508 echo "$as_me:$LINENO: result: yes" >&5
5509echo "${ECHO_T}yes" >&6
5510 else
5511 echo "$as_me:$LINENO: result: no" >&5
5512echo "${ECHO_T}no" >&6
5513 fi
5514
5515
5516 enablestring=
5517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5518echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5519 no_cache=0
5520 # Check whether --enable-snglinst or --disable-snglinst was given.
5521if test "${enable_snglinst+set}" = set; then
5522 enableval="$enable_snglinst"
5523
5524 if test "$enableval" = yes; then
5525 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5526 else
5527 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5528 fi
5529
5530else
5531
5532 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5533 if test "x$LINE" != x ; then
5534 eval "DEFAULT_$LINE"
5535 else
5536 no_cache=1
5537 fi
5538
5539 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5540
5541fi;
5542
5543 eval "$ac_cv_use_snglinst"
5544 if test "$no_cache" != 1; then
5545 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5546 fi
5547
5548 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5549 echo "$as_me:$LINENO: result: yes" >&5
5550echo "${ECHO_T}yes" >&6
5551 else
5552 echo "$as_me:$LINENO: result: no" >&5
5553echo "${ECHO_T}no" >&6
5554 fi
5555
5556
5557 enablestring=
07158944
VZ
5558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5559echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5560 no_cache=0
07158944
VZ
5561 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5562if test "${enable_std_iostreams+set}" = set; then
5563 enableval="$enable_std_iostreams"
a848cd7e
SC
5564
5565 if test "$enableval" = yes; then
07158944 5566 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5567 else
07158944 5568 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5569 fi
5570
5571else
5572
07158944 5573 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5574 if test "x$LINE" != x ; then
5575 eval "DEFAULT_$LINE"
5576 else
5577 no_cache=1
5578 fi
5579
07158944 5580 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5581
5582fi;
5583
07158944 5584 eval "$ac_cv_use_std_iostreams"
a848cd7e 5585 if test "$no_cache" != 1; then
07158944 5586 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5587 fi
5588
07158944 5589 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5590 echo "$as_me:$LINENO: result: yes" >&5
5591echo "${ECHO_T}yes" >&6
5592 else
5593 echo "$as_me:$LINENO: result: no" >&5
5594echo "${ECHO_T}no" >&6
5595 fi
5596
5597
59746b65
MW
5598 enablestring=
5599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5600echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5601 no_cache=0
5602 # Check whether --enable-std_string or --disable-std_string was given.
5603if test "${enable_std_string+set}" = set; then
5604 enableval="$enable_std_string"
5605
5606 if test "$enableval" = yes; then
5607 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5608 else
5609 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5610 fi
5611
5612else
5613
5614 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5615 if test "x$LINE" != x ; then
5616 eval "DEFAULT_$LINE"
5617 else
5618 no_cache=1
5619 fi
5620
5621 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5622
5623fi;
5624
5625 eval "$ac_cv_use_std_string"
5626 if test "$no_cache" != 1; then
5627 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5628 fi
5629
5630 if test "$wxUSE_STD_STRING" = yes; then
5631 echo "$as_me:$LINENO: result: yes" >&5
5632echo "${ECHO_T}yes" >&6
5633 else
5634 echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6
5636 fi
5637
5638
a848cd7e 5639 enablestring=
07158944
VZ
5640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5641echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5642 no_cache=0
07158944
VZ
5643 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5644if test "${enable_stdpaths+set}" = set; then
5645 enableval="$enable_stdpaths"
a848cd7e
SC
5646
5647 if test "$enableval" = yes; then
07158944 5648 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5649 else
07158944 5650 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5651 fi
5652
5653else
5654
07158944 5655 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5656 if test "x$LINE" != x ; then
5657 eval "DEFAULT_$LINE"
5658 else
5659 no_cache=1
5660 fi
5661
07158944 5662 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5663
5664fi;
5665
07158944 5666 eval "$ac_cv_use_stdpaths"
a848cd7e 5667 if test "$no_cache" != 1; then
07158944 5668 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5669 fi
5670
07158944 5671 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5672 echo "$as_me:$LINENO: result: yes" >&5
5673echo "${ECHO_T}yes" >&6
5674 else
5675 echo "$as_me:$LINENO: result: no" >&5
5676echo "${ECHO_T}no" >&6
5677 fi
5678
5679
5680 enablestring=
5681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5682echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5683 no_cache=0
5684 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5685if test "${enable_stopwatch+set}" = set; then
5686 enableval="$enable_stopwatch"
5687
5688 if test "$enableval" = yes; then
5689 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5690 else
5691 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5692 fi
5693
5694else
5695
5696 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5697 if test "x$LINE" != x ; then
5698 eval "DEFAULT_$LINE"
5699 else
5700 no_cache=1
5701 fi
5702
5703 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5704
5705fi;
5706
5707 eval "$ac_cv_use_stopwatch"
5708 if test "$no_cache" != 1; then
5709 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5710 fi
5711
5712 if test "$wxUSE_STOPWATCH" = yes; then
5713 echo "$as_me:$LINENO: result: yes" >&5
5714echo "${ECHO_T}yes" >&6
5715 else
5716 echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6
5718 fi
5719
5720
07158944
VZ
5721 enablestring=
5722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5723echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5724 no_cache=0
5725 # Check whether --enable-streams or --disable-streams was given.
5726if test "${enable_streams+set}" = set; then
5727 enableval="$enable_streams"
5728
5729 if test "$enableval" = yes; then
5730 ac_cv_use_streams='wxUSE_STREAMS=yes'
5731 else
5732 ac_cv_use_streams='wxUSE_STREAMS=no'
5733 fi
5734
5735else
5736
5737 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5738 if test "x$LINE" != x ; then
5739 eval "DEFAULT_$LINE"
5740 else
5741 no_cache=1
5742 fi
5743
5744 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5745
5746fi;
5747
5748 eval "$ac_cv_use_streams"
5749 if test "$no_cache" != 1; then
5750 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5751 fi
5752
5753 if test "$wxUSE_STREAMS" = yes; then
5754 echo "$as_me:$LINENO: result: yes" >&5
5755echo "${ECHO_T}yes" >&6
5756 else
5757 echo "$as_me:$LINENO: result: no" >&5
5758echo "${ECHO_T}no" >&6
5759 fi
5760
5761
a848cd7e
SC
5762 enablestring=
5763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5764echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5765 no_cache=0
5766 # Check whether --enable-system_options or --disable-system_options was given.
5767if test "${enable_system_options+set}" = set; then
5768 enableval="$enable_system_options"
5769
5770 if test "$enableval" = yes; then
5771 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5772 else
5773 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5774 fi
5775
5776else
5777
5778 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5779 if test "x$LINE" != x ; then
5780 eval "DEFAULT_$LINE"
5781 else
5782 no_cache=1
5783 fi
5784
5785 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5786
5787fi;
5788
5789 eval "$ac_cv_use_system_options"
5790 if test "$no_cache" != 1; then
5791 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5792 fi
5793
5794 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5795 echo "$as_me:$LINENO: result: yes" >&5
5796echo "${ECHO_T}yes" >&6
5797 else
5798 echo "$as_me:$LINENO: result: no" >&5
5799echo "${ECHO_T}no" >&6
5800 fi
5801
5802
5803 enablestring=
5804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5805echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5806 no_cache=0
5807 # Check whether --enable-textbuf or --disable-textbuf was given.
5808if test "${enable_textbuf+set}" = set; then
5809 enableval="$enable_textbuf"
5810
5811 if test "$enableval" = yes; then
5812 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5813 else
5814 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5815 fi
5816
5817else
5818
5819 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5820 if test "x$LINE" != x ; then
5821 eval "DEFAULT_$LINE"
5822 else
5823 no_cache=1
5824 fi
5825
5826 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5827
5828fi;
5829
5830 eval "$ac_cv_use_textbuf"
5831 if test "$no_cache" != 1; then
5832 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5833 fi
5834
5835 if test "$wxUSE_TEXTBUFFER" = yes; then
5836 echo "$as_me:$LINENO: result: yes" >&5
5837echo "${ECHO_T}yes" >&6
5838 else
5839 echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
5841 fi
5842
5843
5844 enablestring=
5845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5846echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5847 no_cache=0
5848 # Check whether --enable-textfile or --disable-textfile was given.
5849if test "${enable_textfile+set}" = set; then
5850 enableval="$enable_textfile"
5851
5852 if test "$enableval" = yes; then
5853 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5854 else
5855 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5856 fi
5857
5858else
5859
5860 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5861 if test "x$LINE" != x ; then
5862 eval "DEFAULT_$LINE"
5863 else
5864 no_cache=1
5865 fi
5866
5867 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5868
5869fi;
5870
5871 eval "$ac_cv_use_textfile"
5872 if test "$no_cache" != 1; then
5873 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5874 fi
5875
5876 if test "$wxUSE_TEXTFILE" = yes; then
5877 echo "$as_me:$LINENO: result: yes" >&5
5878echo "${ECHO_T}yes" >&6
5879 else
5880 echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6
5882 fi
5883
5884
5885 enablestring=
5886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5887echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5888 no_cache=0
5889 # Check whether --enable-timer or --disable-timer was given.
5890if test "${enable_timer+set}" = set; then
5891 enableval="$enable_timer"
5892
5893 if test "$enableval" = yes; then
5894 ac_cv_use_timer='wxUSE_TIMER=yes'
5895 else
5896 ac_cv_use_timer='wxUSE_TIMER=no'
5897 fi
5898
5899else
5900
5901 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5902 if test "x$LINE" != x ; then
5903 eval "DEFAULT_$LINE"
5904 else
5905 no_cache=1
5906 fi
5907
5908 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5909
5910fi;
5911
5912 eval "$ac_cv_use_timer"
5913 if test "$no_cache" != 1; then
5914 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5915 fi
5916
5917 if test "$wxUSE_TIMER" = yes; then
5918 echo "$as_me:$LINENO: result: yes" >&5
5919echo "${ECHO_T}yes" >&6
5920 else
5921 echo "$as_me:$LINENO: result: no" >&5
5922echo "${ECHO_T}no" >&6
5923 fi
5924
5925
5926 enablestring=
5927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5928echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5929 no_cache=0
5930 # Check whether --enable-unicode or --disable-unicode was given.
5931if test "${enable_unicode+set}" = set; then
5932 enableval="$enable_unicode"
5933
5934 if test "$enableval" = yes; then
5935 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5936 else
5937 ac_cv_use_unicode='wxUSE_UNICODE=no'
5938 fi
5939
5940else
5941
5942 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5943 if test "x$LINE" != x ; then
5944 eval "DEFAULT_$LINE"
5945 else
5946 no_cache=1
5947 fi
5948
5949 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5950
5951fi;
5952
5953 eval "$ac_cv_use_unicode"
5954 if test "$no_cache" != 1; then
5955 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5956 fi
5957
5958 if test "$wxUSE_UNICODE" = yes; then
5959 echo "$as_me:$LINENO: result: yes" >&5
5960echo "${ECHO_T}yes" >&6
5961 else
5962 echo "$as_me:$LINENO: result: no" >&5
5963echo "${ECHO_T}no" >&6
5964 fi
5965
5966
5967 enablestring=
5968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5969echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5970 no_cache=0
5971 # Check whether --enable-sound or --disable-sound was given.
5972if test "${enable_sound+set}" = set; then
5973 enableval="$enable_sound"
5974
5975 if test "$enableval" = yes; then
5976 ac_cv_use_sound='wxUSE_SOUND=yes'
5977 else
5978 ac_cv_use_sound='wxUSE_SOUND=no'
5979 fi
5980
5981else
5982
5983 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5984 if test "x$LINE" != x ; then
5985 eval "DEFAULT_$LINE"
5986 else
5987 no_cache=1
5988 fi
5989
5990 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5991
5992fi;
5993
5994 eval "$ac_cv_use_sound"
5995 if test "$no_cache" != 1; then
5996 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5997 fi
5998
5999 if test "$wxUSE_SOUND" = yes; then
6000 echo "$as_me:$LINENO: result: yes" >&5
6001echo "${ECHO_T}yes" >&6
6002 else
6003 echo "$as_me:$LINENO: result: no" >&5
6004echo "${ECHO_T}no" >&6
6005 fi
6006
6007
3b57de8b
RL
6008 enablestring=
6009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6010echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6011 no_cache=0
6012 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6013if test "${enable_mediactrl+set}" = set; then
6014 enableval="$enable_mediactrl"
6015
6016 if test "$enableval" = yes; then
6017 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6018 else
6019 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6020 fi
6021
6022else
6023
6024 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6032
6033fi;
6034
6035 eval "$ac_cv_use_mediactrl"
6036 if test "$no_cache" != 1; then
6037 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6038 fi
6039
6040 if test "$wxUSE_MEDIACTRL" = yes; then
6041 echo "$as_me:$LINENO: result: yes" >&5
6042echo "${ECHO_T}yes" >&6
6043 else
6044 echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6
6046 fi
6047
6048
a848cd7e
SC
6049 enablestring=
6050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6051echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6052 no_cache=0
6053 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6054if test "${enable_wxprintfv+set}" = set; then
6055 enableval="$enable_wxprintfv"
6056
6057 if test "$enableval" = yes; then
6058 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6059 else
6060 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6061 fi
6062
6063else
6064
6065 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6066 if test "x$LINE" != x ; then
6067 eval "DEFAULT_$LINE"
6068 else
6069 no_cache=1
6070 fi
6071
6072 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6073
6074fi;
6075
6076 eval "$ac_cv_use_wxprintfv"
6077 if test "$no_cache" != 1; then
6078 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6079 fi
6080
6081 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6082 echo "$as_me:$LINENO: result: yes" >&5
6083echo "${ECHO_T}yes" >&6
6084 else
6085 echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087 fi
6088
6089
6090 enablestring=
6091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6092echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6093 no_cache=0
6094 # Check whether --enable-zipstream or --disable-zipstream was given.
6095if test "${enable_zipstream+set}" = set; then
6096 enableval="$enable_zipstream"
6097
6098 if test "$enableval" = yes; then
6099 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6100 else
6101 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6102 fi
6103
6104else
6105
6106 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6107 if test "x$LINE" != x ; then
6108 eval "DEFAULT_$LINE"
6109 else
6110 no_cache=1
6111 fi
6112
6113 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6114
6115fi;
6116
6117 eval "$ac_cv_use_zipstream"
6118 if test "$no_cache" != 1; then
6119 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6120 fi
6121
6122 if test "$wxUSE_ZIPSTREAM" = yes; then
6123 echo "$as_me:$LINENO: result: yes" >&5
6124echo "${ECHO_T}yes" >&6
6125 else
6126 echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6
6128 fi
6129
6130
a848cd7e
SC
6131
6132 enablestring=
6133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6134echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6135 no_cache=0
6136 # Check whether --enable-url or --disable-url was given.
6137if test "${enable_url+set}" = set; then
6138 enableval="$enable_url"
6139
6140 if test "$enableval" = yes; then
6141 ac_cv_use_url='wxUSE_URL=yes'
6142 else
6143 ac_cv_use_url='wxUSE_URL=no'
6144 fi
6145
6146else
6147
6148 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6149 if test "x$LINE" != x ; then
6150 eval "DEFAULT_$LINE"
6151 else
6152 no_cache=1
6153 fi
6154
6155 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6156
6157fi;
6158
6159 eval "$ac_cv_use_url"
6160 if test "$no_cache" != 1; then
6161 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6162 fi
6163
6164 if test "$wxUSE_URL" = yes; then
6165 echo "$as_me:$LINENO: result: yes" >&5
6166echo "${ECHO_T}yes" >&6
6167 else
6168 echo "$as_me:$LINENO: result: no" >&5
6169echo "${ECHO_T}no" >&6
6170 fi
6171
6172
6173 enablestring=
6174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6175echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6176 no_cache=0
6177 # Check whether --enable-protocol or --disable-protocol was given.
6178if test "${enable_protocol+set}" = set; then
6179 enableval="$enable_protocol"
6180
6181 if test "$enableval" = yes; then
6182 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6183 else
6184 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6185 fi
6186
6187else
6188
6189 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6190 if test "x$LINE" != x ; then
6191 eval "DEFAULT_$LINE"
6192 else
6193 no_cache=1
6194 fi
6195
6196 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6197
6198fi;
6199
6200 eval "$ac_cv_use_protocol"
6201 if test "$no_cache" != 1; then
6202 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6203 fi
6204
6205 if test "$wxUSE_PROTOCOL" = yes; then
6206 echo "$as_me:$LINENO: result: yes" >&5
6207echo "${ECHO_T}yes" >&6
6208 else
6209 echo "$as_me:$LINENO: result: no" >&5
6210echo "${ECHO_T}no" >&6
6211 fi
6212
6213
6214 enablestring=
6215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6216echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6217 no_cache=0
6218 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6219if test "${enable_protocol_http+set}" = set; then
6220 enableval="$enable_protocol_http"
6221
6222 if test "$enableval" = yes; then
6223 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6224 else
6225 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6226 fi
6227
6228else
6229
6230 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6231 if test "x$LINE" != x ; then
6232 eval "DEFAULT_$LINE"
6233 else
6234 no_cache=1
6235 fi
6236
6237 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6238
6239fi;
6240
6241 eval "$ac_cv_use_protocol_http"
6242 if test "$no_cache" != 1; then
6243 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6244 fi
6245
6246 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6247 echo "$as_me:$LINENO: result: yes" >&5
6248echo "${ECHO_T}yes" >&6
6249 else
6250 echo "$as_me:$LINENO: result: no" >&5
6251echo "${ECHO_T}no" >&6
6252 fi
6253
6254
6255 enablestring=
6256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6257echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6258 no_cache=0
6259 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6260if test "${enable_protocol_ftp+set}" = set; then
6261 enableval="$enable_protocol_ftp"
6262
6263 if test "$enableval" = yes; then
6264 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6265 else
6266 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6267 fi
6268
6269else
6270
6271 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6272 if test "x$LINE" != x ; then
6273 eval "DEFAULT_$LINE"
6274 else
6275 no_cache=1
6276 fi
6277
6278 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6279
6280fi;
6281
6282 eval "$ac_cv_use_protocol_ftp"
6283 if test "$no_cache" != 1; then
6284 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6285 fi
6286
6287 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6288 echo "$as_me:$LINENO: result: yes" >&5
6289echo "${ECHO_T}yes" >&6
6290 else
6291 echo "$as_me:$LINENO: result: no" >&5
6292echo "${ECHO_T}no" >&6
6293 fi
6294
6295
6296 enablestring=
6297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6298echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6299 no_cache=0
6300 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6301if test "${enable_protocol_file+set}" = set; then
6302 enableval="$enable_protocol_file"
6303
6304 if test "$enableval" = yes; then
6305 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6306 else
6307 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6308 fi
6309
6310else
6311
6312 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6313 if test "x$LINE" != x ; then
6314 eval "DEFAULT_$LINE"
6315 else
6316 no_cache=1
6317 fi
6318
6319 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6320
6321fi;
6322
6323 eval "$ac_cv_use_protocol_file"
6324 if test "$no_cache" != 1; then
6325 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6326 fi
6327
6328 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6329 echo "$as_me:$LINENO: result: yes" >&5
6330echo "${ECHO_T}yes" >&6
6331 else
6332 echo "$as_me:$LINENO: result: no" >&5
6333echo "${ECHO_T}no" >&6
6334 fi
6335
6336
6337
6338
6339
6340 enablestring=
6341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6342echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6343 no_cache=0
6344 # Check whether --enable-threads or --disable-threads was given.
6345if test "${enable_threads+set}" = set; then
6346 enableval="$enable_threads"
6347
6348 if test "$enableval" = yes; then
6349 ac_cv_use_threads='wxUSE_THREADS=yes'
6350 else
6351 ac_cv_use_threads='wxUSE_THREADS=no'
6352 fi
6353
6354else
6355
6356 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6357 if test "x$LINE" != x ; then
6358 eval "DEFAULT_$LINE"
6359 else
6360 no_cache=1
6361 fi
6362
6363 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6364
6365fi;
6366
6367 eval "$ac_cv_use_threads"
6368 if test "$no_cache" != 1; then
6369 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6370 fi
6371
6372 if test "$wxUSE_THREADS" = yes; then
6373 echo "$as_me:$LINENO: result: yes" >&5
6374echo "${ECHO_T}yes" >&6
6375 else
6376 echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6
6378 fi
6379
6380
6381if test "$wxUSE_GUI" = "yes"; then
6382
6383
6384
6385 enablestring=
6386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6387echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6388 no_cache=0
6389 # Check whether --enable-docview or --disable-docview was given.
6390if test "${enable_docview+set}" = set; then
6391 enableval="$enable_docview"
6392
6393 if test "$enableval" = yes; then
6394 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6395 else
6396 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6397 fi
6398
6399else
6400
6401 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6402 if test "x$LINE" != x ; then
6403 eval "DEFAULT_$LINE"
6404 else
6405 no_cache=1
6406 fi
6407
6408 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6409
6410fi;
6411
6412 eval "$ac_cv_use_docview"
6413 if test "$no_cache" != 1; then
6414 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6415 fi
6416
6417 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6418 echo "$as_me:$LINENO: result: yes" >&5
6419echo "${ECHO_T}yes" >&6
6420 else
6421 echo "$as_me:$LINENO: result: no" >&5
6422echo "${ECHO_T}no" >&6
6423 fi
6424
6425
6426 enablestring=
6427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6428echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6429 no_cache=0
6430 # Check whether --enable-help or --disable-help was given.
6431if test "${enable_help+set}" = set; then
6432 enableval="$enable_help"
6433
6434 if test "$enableval" = yes; then
6435 ac_cv_use_help='wxUSE_HELP=yes'
6436 else
6437 ac_cv_use_help='wxUSE_HELP=no'
6438 fi
6439
6440else
6441
6442 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6443 if test "x$LINE" != x ; then
6444 eval "DEFAULT_$LINE"
6445 else
6446 no_cache=1
6447 fi
6448
6449 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6450
6451fi;
6452
6453 eval "$ac_cv_use_help"
6454 if test "$no_cache" != 1; then
6455 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6456 fi
6457
6458 if test "$wxUSE_HELP" = yes; then
6459 echo "$as_me:$LINENO: result: yes" >&5
6460echo "${ECHO_T}yes" >&6
6461 else
6462 echo "$as_me:$LINENO: result: no" >&5
6463echo "${ECHO_T}no" >&6
6464 fi
6465
6466
6467 enablestring=
6468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6469echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6470 no_cache=0
6471 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6472if test "${enable_mshtmlhelp+set}" = set; then
6473 enableval="$enable_mshtmlhelp"
6474
6475 if test "$enableval" = yes; then
6476 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6477 else
6478 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6479 fi
6480
6481else
6482
6483 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6484 if test "x$LINE" != x ; then
6485 eval "DEFAULT_$LINE"
6486 else
6487 no_cache=1
6488 fi
6489
6490 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6491
6492fi;
6493
6494 eval "$ac_cv_use_mshtmlhelp"
6495 if test "$no_cache" != 1; then
6496 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6497 fi
6498
6499 if test "$wxUSE_MS_HTML_HELP" = yes; then
6500 echo "$as_me:$LINENO: result: yes" >&5
6501echo "${ECHO_T}yes" >&6
6502 else
6503 echo "$as_me:$LINENO: result: no" >&5
6504echo "${ECHO_T}no" >&6
6505 fi
6506
6507
6508 enablestring=
6509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6510echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6511 no_cache=0
6512 # Check whether --enable-html or --disable-html was given.
6513if test "${enable_html+set}" = set; then
6514 enableval="$enable_html"
6515
6516 if test "$enableval" = yes; then
6517 ac_cv_use_html='wxUSE_HTML=yes'
6518 else
6519 ac_cv_use_html='wxUSE_HTML=no'
6520 fi
6521
6522else
6523
6524 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6525 if test "x$LINE" != x ; then
6526 eval "DEFAULT_$LINE"
6527 else
6528 no_cache=1
6529 fi
6530
6531 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6532
6533fi;
6534
6535 eval "$ac_cv_use_html"
6536 if test "$no_cache" != 1; then
6537 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6538 fi
6539
6540 if test "$wxUSE_HTML" = yes; then
6541 echo "$as_me:$LINENO: result: yes" >&5
6542echo "${ECHO_T}yes" >&6
6543 else
6544 echo "$as_me:$LINENO: result: no" >&5
6545echo "${ECHO_T}no" >&6
6546 fi
6547
6548
6549 enablestring=
6550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6551echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6552 no_cache=0
6553 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6554if test "${enable_htmlhelp+set}" = set; then
6555 enableval="$enable_htmlhelp"
6556
6557 if test "$enableval" = yes; then
6558 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6559 else
6560 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6561 fi
6562
6563else
6564
6565 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6566 if test "x$LINE" != x ; then
6567 eval "DEFAULT_$LINE"
6568 else
6569 no_cache=1
6570 fi
6571
6572 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6573
6574fi;
6575
6576 eval "$ac_cv_use_htmlhelp"
6577 if test "$no_cache" != 1; then
6578 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6579 fi
6580
6581 if test "$wxUSE_WXHTML_HELP" = yes; then
6582 echo "$as_me:$LINENO: result: yes" >&5
6583echo "${ECHO_T}yes" >&6
6584 else
6585 echo "$as_me:$LINENO: result: no" >&5
6586echo "${ECHO_T}no" >&6
6587 fi
6588
6589
9a8f0513
VS
6590 enablestring=
6591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6592echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6593 no_cache=0
6594 # Check whether --enable-xrc or --disable-xrc was given.
6595if test "${enable_xrc+set}" = set; then
6596 enableval="$enable_xrc"
6597
6598 if test "$enableval" = yes; then
6599 ac_cv_use_xrc='wxUSE_XRC=yes'
6600 else
6601 ac_cv_use_xrc='wxUSE_XRC=no'
6602 fi
6603
6604else
6605
6606 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6607 if test "x$LINE" != x ; then
6608 eval "DEFAULT_$LINE"
6609 else
6610 no_cache=1
6611 fi
6612
6613 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6614
6615fi;
6616
6617 eval "$ac_cv_use_xrc"
6618 if test "$no_cache" != 1; then
6619 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6620 fi
6621
6622 if test "$wxUSE_XRC" = yes; then
6623 echo "$as_me:$LINENO: result: yes" >&5
6624echo "${ECHO_T}yes" >&6
6625 else
6626 echo "$as_me:$LINENO: result: no" >&5
6627echo "${ECHO_T}no" >&6
6628 fi
6629
6630
a848cd7e
SC
6631 enablestring=
6632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6633echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6634 no_cache=0
6635 # Check whether --enable-constraints or --disable-constraints was given.
6636if test "${enable_constraints+set}" = set; then
6637 enableval="$enable_constraints"
6638
6639 if test "$enableval" = yes; then
6640 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6641 else
6642 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6643 fi
6644
6645else
6646
6647 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6648 if test "x$LINE" != x ; then
6649 eval "DEFAULT_$LINE"
6650 else
6651 no_cache=1
6652 fi
6653
6654 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6655
6656fi;
6657
6658 eval "$ac_cv_use_constraints"
6659 if test "$no_cache" != 1; then
6660 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6661 fi
6662
6663 if test "$wxUSE_CONSTRAINTS" = yes; then
6664 echo "$as_me:$LINENO: result: yes" >&5
6665echo "${ECHO_T}yes" >&6
6666 else
6667 echo "$as_me:$LINENO: result: no" >&5
6668echo "${ECHO_T}no" >&6
6669 fi
6670
6671
6672 enablestring=
6673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6674echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6675 no_cache=0
6676 # Check whether --enable-printarch or --disable-printarch was given.
6677if test "${enable_printarch+set}" = set; then
6678 enableval="$enable_printarch"
6679
6680 if test "$enableval" = yes; then
6681 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6682 else
6683 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6684 fi
6685
6686else
6687
6688 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6689 if test "x$LINE" != x ; then
6690 eval "DEFAULT_$LINE"
6691 else
6692 no_cache=1
6693 fi
6694
6695 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6696
6697fi;
6698
6699 eval "$ac_cv_use_printarch"
6700 if test "$no_cache" != 1; then
6701 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6702 fi
6703
6704 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6705 echo "$as_me:$LINENO: result: yes" >&5
6706echo "${ECHO_T}yes" >&6
6707 else
6708 echo "$as_me:$LINENO: result: no" >&5
6709echo "${ECHO_T}no" >&6
6710 fi
6711
6712
6713 enablestring=
6714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6715echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6716 no_cache=0
6717 # Check whether --enable-mdi or --disable-mdi was given.
6718if test "${enable_mdi+set}" = set; then
6719 enableval="$enable_mdi"
6720
6721 if test "$enableval" = yes; then
8a7b1113 6722 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6723 else
8a7b1113 6724 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6725 fi
6726
6727else
6728
8a7b1113 6729 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6730 if test "x$LINE" != x ; then
6731 eval "DEFAULT_$LINE"
6732 else
6733 no_cache=1
6734 fi
6735
8a7b1113 6736 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6737
6738fi;
6739
6740 eval "$ac_cv_use_mdi"
6741 if test "$no_cache" != 1; then
6742 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6743 fi
6744
8a7b1113
VZ
6745 if test "$wxUSE_MDI" = yes; then
6746 echo "$as_me:$LINENO: result: yes" >&5
6747echo "${ECHO_T}yes" >&6
6748 else
6749 echo "$as_me:$LINENO: result: no" >&5
6750echo "${ECHO_T}no" >&6
6751 fi
6752
6753
6754 enablestring=
6755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6756echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6757 no_cache=0
6758 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6759if test "${enable_mdidoc+set}" = set; then
6760 enableval="$enable_mdidoc"
6761
6762 if test "$enableval" = yes; then
6763 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6764 else
6765 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6766 fi
6767
6768else
6769
6770 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6771 if test "x$LINE" != x ; then
6772 eval "DEFAULT_$LINE"
6773 else
6774 no_cache=1
6775 fi
6776
6777 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6778
6779fi;
6780
6781 eval "$ac_cv_use_mdidoc"
6782 if test "$no_cache" != 1; then
6783 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6784 fi
6785
a848cd7e
SC
6786 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6787 echo "$as_me:$LINENO: result: yes" >&5
6788echo "${ECHO_T}yes" >&6
6789 else
6790 echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6
6792 fi
6793
6794
6795 enablestring=
6796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6797echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6798 no_cache=0
6799 # Check whether --enable-loggui or --disable-loggui was given.
6800if test "${enable_loggui+set}" = set; then
6801 enableval="$enable_loggui"
6802
6803 if test "$enableval" = yes; then
6804 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6805 else
6806 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6807 fi
6808
6809else
6810
6811 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6812 if test "x$LINE" != x ; then
6813 eval "DEFAULT_$LINE"
6814 else
6815 no_cache=1
6816 fi
6817
6818 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6819
6820fi;
6821
6822 eval "$ac_cv_use_loggui"
6823 if test "$no_cache" != 1; then
6824 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6825 fi
6826
6827 if test "$wxUSE_LOGGUI" = yes; then
6828 echo "$as_me:$LINENO: result: yes" >&5
6829echo "${ECHO_T}yes" >&6
6830 else
6831 echo "$as_me:$LINENO: result: no" >&5
6832echo "${ECHO_T}no" >&6
6833 fi
6834
6835
6836 enablestring=
6837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6838echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6839 no_cache=0
6840 # Check whether --enable-logwin or --disable-logwin was given.
6841if test "${enable_logwin+set}" = set; then
6842 enableval="$enable_logwin"
6843
6844 if test "$enableval" = yes; then
6845 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6846 else
6847 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6848 fi
6849
6850else
6851
6852 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6853 if test "x$LINE" != x ; then
6854 eval "DEFAULT_$LINE"
6855 else
6856 no_cache=1
6857 fi
6858
6859 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6860
6861fi;
6862
6863 eval "$ac_cv_use_logwin"
6864 if test "$no_cache" != 1; then
6865 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6866 fi
6867
6868 if test "$wxUSE_LOGWINDOW" = yes; then
6869 echo "$as_me:$LINENO: result: yes" >&5
6870echo "${ECHO_T}yes" >&6
6871 else
6872 echo "$as_me:$LINENO: result: no" >&5
6873echo "${ECHO_T}no" >&6
6874 fi
6875
6876
6877 enablestring=
6878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6879echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6880 no_cache=0
6881 # Check whether --enable-logdialog or --disable-logdialog was given.
6882if test "${enable_logdialog+set}" = set; then
6883 enableval="$enable_logdialog"
6884
6885 if test "$enableval" = yes; then
6886 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6887 else
6888 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6889 fi
6890
6891else
6892
6893 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6894 if test "x$LINE" != x ; then
6895 eval "DEFAULT_$LINE"
6896 else
6897 no_cache=1
6898 fi
6899
6900 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6901
6902fi;
6903
6904 eval "$ac_cv_use_logdialog"
6905 if test "$no_cache" != 1; then
6906 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6907 fi
6908
6909 if test "$wxUSE_LOGDIALOG" = yes; then
6910 echo "$as_me:$LINENO: result: yes" >&5
6911echo "${ECHO_T}yes" >&6
6912 else
6913 echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6
6915 fi
6916
6917
646b6ec1
VS
6918 enablestring=
6919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6920echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6921 no_cache=0
6922 # Check whether --enable-webkit or --disable-webkit was given.
6923if test "${enable_webkit+set}" = set; then
6924 enableval="$enable_webkit"
6925
6926 if test "$enableval" = yes; then
6927 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6928 else
6929 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6930 fi
6931
6932else
6933
6934 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6935 if test "x$LINE" != x ; then
6936 eval "DEFAULT_$LINE"
6937 else
6938 no_cache=1
6939 fi
6940
6941 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6942
6943fi;
6944
6945 eval "$ac_cv_use_webkit"
6946 if test "$no_cache" != 1; then
6947 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6948 fi
6949
6950 if test "$wxUSE_WEBKIT" = yes; then
6951 echo "$as_me:$LINENO: result: yes" >&5
6952echo "${ECHO_T}yes" >&6
6953 else
6954 echo "$as_me:$LINENO: result: no" >&5
6955echo "${ECHO_T}no" >&6
6956 fi
6957
6958
a848cd7e
SC
6959
6960 enablestring=
6961 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6962echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6963 no_cache=0
6964 # Check whether --enable-postscript or --disable-postscript was given.
6965if test "${enable_postscript+set}" = set; then
6966 enableval="$enable_postscript"
6967
6968 if test "$enableval" = yes; then
6969 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6970 else
6971 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6972 fi
6973
6974else
6975
6976 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6977 if test "x$LINE" != x ; then
6978 eval "DEFAULT_$LINE"
6979 else
6980 no_cache=1
6981 fi
6982
6983 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6984
6985fi;
6986
6987 eval "$ac_cv_use_postscript"
6988 if test "$no_cache" != 1; then
6989 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6990 fi
6991
6992 if test "$wxUSE_POSTSCRIPT" = yes; then
6993 echo "$as_me:$LINENO: result: yes" >&5
6994echo "${ECHO_T}yes" >&6
6995 else
6996 echo "$as_me:$LINENO: result: no" >&5
6997echo "${ECHO_T}no" >&6
6998 fi
6999
7000
7001
7002
7003
7004 enablestring=
7005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7006echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7007 no_cache=0
7008 # Check whether --enable-prologio or --disable-prologio was given.
7009if test "${enable_prologio+set}" = set; then
7010 enableval="$enable_prologio"
7011
7012 if test "$enableval" = yes; then
7013 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7014 else
7015 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7016 fi
7017
7018else
7019
7020 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7021 if test "x$LINE" != x ; then
7022 eval "DEFAULT_$LINE"
7023 else
7024 no_cache=1
7025 fi
7026
7027 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7028
7029fi;
7030
7031 eval "$ac_cv_use_prologio"
7032 if test "$no_cache" != 1; then
7033 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7034 fi
7035
7036 if test "$wxUSE_PROLOGIO" = yes; then
7037 echo "$as_me:$LINENO: result: yes" >&5
7038echo "${ECHO_T}yes" >&6
7039 else
7040 echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6
7042 fi
7043
7044
7045 enablestring=
7046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7047echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7048 no_cache=0
7049 # Check whether --enable-resources or --disable-resources was given.
7050if test "${enable_resources+set}" = set; then
7051 enableval="$enable_resources"
7052
7053 if test "$enableval" = yes; then
7054 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7055 else
7056 ac_cv_use_resources='wxUSE_RESOURCES=no'
7057 fi
7058
7059else
7060
7061 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7062 if test "x$LINE" != x ; then
7063 eval "DEFAULT_$LINE"
7064 else
7065 no_cache=1
7066 fi
7067
7068 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7069
7070fi;
7071
7072 eval "$ac_cv_use_resources"
7073 if test "$no_cache" != 1; then
7074 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7075 fi
7076
7077 if test "$wxUSE_RESOURCES" = yes; then
7078 echo "$as_me:$LINENO: result: yes" >&5
7079echo "${ECHO_T}yes" >&6
7080 else
7081 echo "$as_me:$LINENO: result: no" >&5
7082echo "${ECHO_T}no" >&6
7083 fi
7084
7085
7086
7087
7088 enablestring=
7089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7090echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7091 no_cache=0
7092 # Check whether --enable-clipboard or --disable-clipboard was given.
7093if test "${enable_clipboard+set}" = set; then
7094 enableval="$enable_clipboard"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7098 else
7099 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7100 fi
7101
7102else
7103
7104 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7112
7113fi;
7114
7115 eval "$ac_cv_use_clipboard"
7116 if test "$no_cache" != 1; then
7117 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7118 fi
7119
7120 if test "$wxUSE_CLIPBOARD" = yes; then
7121 echo "$as_me:$LINENO: result: yes" >&5
7122echo "${ECHO_T}yes" >&6
7123 else
7124 echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6
7126 fi
7127
7128
7129 enablestring=
7130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7131echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7132 no_cache=0
7133 # Check whether --enable-dnd or --disable-dnd was given.
7134if test "${enable_dnd+set}" = set; then
7135 enableval="$enable_dnd"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7139 else
7140 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7141 fi
7142
7143else
7144
7145 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7153
7154fi;
7155
7156 eval "$ac_cv_use_dnd"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7162 echo "$as_me:$LINENO: result: yes" >&5
7163echo "${ECHO_T}yes" >&6
7164 else
7165 echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6
7167 fi
7168
7169
7170 enablestring=
7171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7172echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7173 no_cache=0
7174 # Check whether --enable-metafile or --disable-metafile was given.
7175if test "${enable_metafile+set}" = set; then
7176 enableval="$enable_metafile"
7177
7178 if test "$enableval" = yes; then
7179 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7180 else
7181 ac_cv_use_metafile='wxUSE_METAFILE=no'
7182 fi
7183
7184else
7185
7186 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7187 if test "x$LINE" != x ; then
7188 eval "DEFAULT_$LINE"
7189 else
7190 no_cache=1
7191 fi
7192
7193 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7194
7195fi;
7196
7197 eval "$ac_cv_use_metafile"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7200 fi
7201
7202 if test "$wxUSE_METAFILE" = yes; then
7203 echo "$as_me:$LINENO: result: yes" >&5
7204echo "${ECHO_T}yes" >&6
7205 else
7206 echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6
7208 fi
7209
7210
7211
7212
7213
7214 enablestring=
7215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7216echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7217 no_cache=0
7218 # Check whether --enable-controls or --disable-controls was given.
7219if test "${enable_controls+set}" = set; then
7220 enableval="$enable_controls"
7221
7222 if test "$enableval" = yes; then
7223 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7224 else
7225 ac_cv_use_controls='wxUSE_CONTROLS=no'
7226 fi
7227
7228else
7229
7230 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7231 if test "x$LINE" != x ; then
7232 eval "DEFAULT_$LINE"
7233 else
7234 no_cache=1
7235 fi
7236
7237 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7238
7239fi;
7240
7241 eval "$ac_cv_use_controls"
7242 if test "$no_cache" != 1; then
7243 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7244 fi
7245
7246 if test "$wxUSE_CONTROLS" = yes; then
7247 echo "$as_me:$LINENO: result: yes" >&5
7248echo "${ECHO_T}yes" >&6
7249 else
7250 echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6
7252 fi
7253
7254
7255if test "$wxUSE_CONTROLS" = "yes"; then
7256 DEFAULT_wxUSE_ACCEL=yes
7257 DEFAULT_wxUSE_BMPBUTTON=yes
7258 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7259 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7260 DEFAULT_wxUSE_CARET=yes
7261 DEFAULT_wxUSE_COMBOBOX=yes
7262 DEFAULT_wxUSE_CHECKBOX=yes
7263 DEFAULT_wxUSE_CHECKLISTBOX=yes
7264 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7265 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7266 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7267 DEFAULT_wxUSE_GAUGE=yes
7268 DEFAULT_wxUSE_GRID=yes
7269 DEFAULT_wxUSE_IMAGLIST=yes
7270 DEFAULT_wxUSE_LISTBOOK=yes
7271 DEFAULT_wxUSE_LISTBOX=yes
7272 DEFAULT_wxUSE_LISTCTRL=yes
7273 DEFAULT_wxUSE_NOTEBOOK=yes
7274 DEFAULT_wxUSE_RADIOBOX=yes
7275 DEFAULT_wxUSE_RADIOBTN=yes
7276 DEFAULT_wxUSE_SASH=yes
7277 DEFAULT_wxUSE_SCROLLBAR=yes
7278 DEFAULT_wxUSE_SLIDER=yes
7279 DEFAULT_wxUSE_SPINBTN=yes
7280 DEFAULT_wxUSE_SPINCTRL=yes
7281 DEFAULT_wxUSE_SPLITTER=yes
7282 DEFAULT_wxUSE_STATBMP=yes
7283 DEFAULT_wxUSE_STATBOX=yes
7284 DEFAULT_wxUSE_STATLINE=yes
7285 DEFAULT_wxUSE_STATUSBAR=yes
7286 DEFAULT_wxUSE_TAB_DIALOG=yes
7287 DEFAULT_wxUSE_TOGGLEBTN=yes
7288 DEFAULT_wxUSE_TOOLBAR=yes
7289 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7290 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7291 DEFAULT_wxUSE_TOOLTIPS=yes
7292 DEFAULT_wxUSE_TREECTRL=yes
7293 DEFAULT_wxUSE_POPUPWIN=yes
7294 DEFAULT_wxUSE_TIPWINDOW=yes
7295elif test "$wxUSE_CONTROLS" = "no"; then
7296 DEFAULT_wxUSE_ACCEL=no
7297 DEFAULT_wxUSE_BMPBUTTON=no
7298 DEFAULT_wxUSE_BUTTON=no
7299 DEFAULT_wxUSE_CALCTRL=no
7300 DEFAULT_wxUSE_CARET=no
7301 DEFAULT_wxUSE_COMBOBOX=no
7302 DEFAULT_wxUSE_CHECKBOX=no
7303 DEFAULT_wxUSE_CHECKLISTBOX=no
7304 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7305 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7306 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7307 DEFAULT_wxUSE_GAUGE=no
7308 DEFAULT_wxUSE_GRID=no
7309 DEFAULT_wxUSE_IMAGLIST=no
7310 DEFAULT_wxUSE_LISTBOOK=no
7311 DEFAULT_wxUSE_LISTBOX=no
7312 DEFAULT_wxUSE_LISTCTRL=no
7313 DEFAULT_wxUSE_NOTEBOOK=no
7314 DEFAULT_wxUSE_RADIOBOX=no
7315 DEFAULT_wxUSE_RADIOBTN=no
7316 DEFAULT_wxUSE_SASH=no
7317 DEFAULT_wxUSE_SCROLLBAR=no
7318 DEFAULT_wxUSE_SLIDER=no
7319 DEFAULT_wxUSE_SPINBTN=no
7320 DEFAULT_wxUSE_SPINCTRL=no
7321 DEFAULT_wxUSE_SPLITTER=no
7322 DEFAULT_wxUSE_STATBMP=no
7323 DEFAULT_wxUSE_STATBOX=no
7324 DEFAULT_wxUSE_STATLINE=no
7325 DEFAULT_wxUSE_STATUSBAR=no
7326 DEFAULT_wxUSE_TAB_DIALOG=no
7327 DEFAULT_wxUSE_TOGGLEBTN=no
7328 DEFAULT_wxUSE_TOOLBAR=no
7329 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7330 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7331 DEFAULT_wxUSE_TOOLTIPS=no
7332 DEFAULT_wxUSE_TREECTRL=no
7333 DEFAULT_wxUSE_POPUPWIN=no
7334 DEFAULT_wxUSE_TIPWINDOW=no
7335fi
7336
a848cd7e
SC
7337
7338 enablestring=
7339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7340echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7341 no_cache=0
7342 # Check whether --enable-accel or --disable-accel was given.
7343if test "${enable_accel+set}" = set; then
7344 enableval="$enable_accel"
7345
7346 if test "$enableval" = yes; then
7347 ac_cv_use_accel='wxUSE_ACCEL=yes'
7348 else
7349 ac_cv_use_accel='wxUSE_ACCEL=no'
7350 fi
7351
7352else
7353
7354 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7355 if test "x$LINE" != x ; then
7356 eval "DEFAULT_$LINE"
7357 else
7358 no_cache=1
7359 fi
7360
7361 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7362
7363fi;
7364
7365 eval "$ac_cv_use_accel"
7366 if test "$no_cache" != 1; then
7367 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7368 fi
7369
7370 if test "$wxUSE_ACCEL" = yes; then
7371 echo "$as_me:$LINENO: result: yes" >&5
7372echo "${ECHO_T}yes" >&6
7373 else
7374 echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6
7376 fi
7377
7378
7379 enablestring=
7380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7381echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7382 no_cache=0
7383 # Check whether --enable-button or --disable-button was given.
7384if test "${enable_button+set}" = set; then
7385 enableval="$enable_button"
7386
7387 if test "$enableval" = yes; then
7388 ac_cv_use_button='wxUSE_BUTTON=yes'
7389 else
7390 ac_cv_use_button='wxUSE_BUTTON=no'
7391 fi
7392
7393else
7394
7395 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7396 if test "x$LINE" != x ; then
7397 eval "DEFAULT_$LINE"
7398 else
7399 no_cache=1
7400 fi
7401
7402 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7403
7404fi;
7405
7406 eval "$ac_cv_use_button"
7407 if test "$no_cache" != 1; then
7408 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7409 fi
7410
7411 if test "$wxUSE_BUTTON" = yes; then
7412 echo "$as_me:$LINENO: result: yes" >&5
7413echo "${ECHO_T}yes" >&6
7414 else
7415 echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6
7417 fi
7418
7419
7420 enablestring=
7421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7422echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7423 no_cache=0
7424 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7425if test "${enable_bmpbutton+set}" = set; then
7426 enableval="$enable_bmpbutton"
7427
7428 if test "$enableval" = yes; then
7429 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7430 else
7431 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7432 fi
7433
7434else
7435
7436 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7437 if test "x$LINE" != x ; then
7438 eval "DEFAULT_$LINE"
7439 else
7440 no_cache=1
7441 fi
7442
7443 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7444
7445fi;
7446
7447 eval "$ac_cv_use_bmpbutton"
7448 if test "$no_cache" != 1; then
7449 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7450 fi
7451
7452 if test "$wxUSE_BMPBUTTON" = yes; then
7453 echo "$as_me:$LINENO: result: yes" >&5
7454echo "${ECHO_T}yes" >&6
7455 else
7456 echo "$as_me:$LINENO: result: no" >&5
7457echo "${ECHO_T}no" >&6
7458 fi
7459
7460
7461 enablestring=
7462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7463echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7464 no_cache=0
7465 # Check whether --enable-calendar or --disable-calendar was given.
7466if test "${enable_calendar+set}" = set; then
7467 enableval="$enable_calendar"
7468
7469 if test "$enableval" = yes; then
7470 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7471 else
7472 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7473 fi
7474
7475else
7476
7477 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7478 if test "x$LINE" != x ; then
7479 eval "DEFAULT_$LINE"
7480 else
7481 no_cache=1
7482 fi
7483
7484 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7485
7486fi;
7487
7488 eval "$ac_cv_use_calendar"
7489 if test "$no_cache" != 1; then
7490 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7491 fi
7492
7493 if test "$wxUSE_CALCTRL" = yes; then
7494 echo "$as_me:$LINENO: result: yes" >&5
7495echo "${ECHO_T}yes" >&6
7496 else
7497 echo "$as_me:$LINENO: result: no" >&5
7498echo "${ECHO_T}no" >&6
7499 fi
7500
7501
7502 enablestring=
7503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7504echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7505 no_cache=0
7506 # Check whether --enable-caret or --disable-caret was given.
7507if test "${enable_caret+set}" = set; then
7508 enableval="$enable_caret"
7509
7510 if test "$enableval" = yes; then
7511 ac_cv_use_caret='wxUSE_CARET=yes'
7512 else
7513 ac_cv_use_caret='wxUSE_CARET=no'
7514 fi
7515
7516else
7517
7518 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7519 if test "x$LINE" != x ; then
7520 eval "DEFAULT_$LINE"
7521 else
7522 no_cache=1
7523 fi
7524
7525 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7526
7527fi;
7528
7529 eval "$ac_cv_use_caret"
7530 if test "$no_cache" != 1; then
7531 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7532 fi
7533
7534 if test "$wxUSE_CARET" = yes; then
7535 echo "$as_me:$LINENO: result: yes" >&5
7536echo "${ECHO_T}yes" >&6
7537 else
7538 echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6
7540 fi
7541
7542
7543 enablestring=
7544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7545echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7546 no_cache=0
7547 # Check whether --enable-checkbox or --disable-checkbox was given.
7548if test "${enable_checkbox+set}" = set; then
7549 enableval="$enable_checkbox"
7550
7551 if test "$enableval" = yes; then
7552 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7553 else
7554 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7555 fi
7556
7557else
7558
7559 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7560 if test "x$LINE" != x ; then
7561 eval "DEFAULT_$LINE"
7562 else
7563 no_cache=1
7564 fi
7565
7566 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7567
7568fi;
7569
7570 eval "$ac_cv_use_checkbox"
7571 if test "$no_cache" != 1; then
7572 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7573 fi
7574
7575 if test "$wxUSE_CHECKBOX" = yes; then
7576 echo "$as_me:$LINENO: result: yes" >&5
7577echo "${ECHO_T}yes" >&6
7578 else
7579 echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6
7581 fi
7582
7583
7584 enablestring=
7585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7586echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7587 no_cache=0
7588 # Check whether --enable-checklst or --disable-checklst was given.
7589if test "${enable_checklst+set}" = set; then
7590 enableval="$enable_checklst"
7591
7592 if test "$enableval" = yes; then
7593 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7594 else
7595 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7596 fi
7597
7598else
7599
7600 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7601 if test "x$LINE" != x ; then
7602 eval "DEFAULT_$LINE"
7603 else
7604 no_cache=1
7605 fi
7606
7607 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7608
7609fi;
7610
7611 eval "$ac_cv_use_checklst"
7612 if test "$no_cache" != 1; then
7613 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7614 fi
7615
7616 if test "$wxUSE_CHECKLST" = yes; then
7617 echo "$as_me:$LINENO: result: yes" >&5
7618echo "${ECHO_T}yes" >&6
7619 else
7620 echo "$as_me:$LINENO: result: no" >&5
7621echo "${ECHO_T}no" >&6
7622 fi
7623
7624
7625 enablestring=
7626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7627echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7628 no_cache=0
7629 # Check whether --enable-choice or --disable-choice was given.
7630if test "${enable_choice+set}" = set; then
7631 enableval="$enable_choice"
7632
7633 if test "$enableval" = yes; then
7634 ac_cv_use_choice='wxUSE_CHOICE=yes'
7635 else
7636 ac_cv_use_choice='wxUSE_CHOICE=no'
7637 fi
7638
7639else
7640
7641 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7642 if test "x$LINE" != x ; then
7643 eval "DEFAULT_$LINE"
7644 else
7645 no_cache=1
7646 fi
7647
7648 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7649
7650fi;
7651
7652 eval "$ac_cv_use_choice"
7653 if test "$no_cache" != 1; then
7654 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7655 fi
7656
7657 if test "$wxUSE_CHOICE" = yes; then
7658 echo "$as_me:$LINENO: result: yes" >&5
7659echo "${ECHO_T}yes" >&6
7660 else
7661 echo "$as_me:$LINENO: result: no" >&5
7662echo "${ECHO_T}no" >&6
7663 fi
7664
7665
92bbdbcd
WS
7666 enablestring=
7667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7668echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7669 no_cache=0
7670 # Check whether --enable-choicebook or --disable-choicebook was given.
7671if test "${enable_choicebook+set}" = set; then
7672 enableval="$enable_choicebook"
7673
7674 if test "$enableval" = yes; then
7675 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7676 else
7677 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7678 fi
7679
7680else
7681
7682 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7683 if test "x$LINE" != x ; then
7684 eval "DEFAULT_$LINE"
7685 else
7686 no_cache=1
7687 fi
7688
7689 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7690
7691fi;
7692
7693 eval "$ac_cv_use_choicebook"
7694 if test "$no_cache" != 1; then
7695 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7696 fi
7697
7698 if test "$wxUSE_CHOICEBOOK" = yes; then
7699 echo "$as_me:$LINENO: result: yes" >&5
7700echo "${ECHO_T}yes" >&6
7701 else
7702 echo "$as_me:$LINENO: result: no" >&5
7703echo "${ECHO_T}no" >&6
7704 fi
7705
7706
a848cd7e
SC
7707 enablestring=
7708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7709echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7710 no_cache=0
7711 # Check whether --enable-combobox or --disable-combobox was given.
7712if test "${enable_combobox+set}" = set; then
7713 enableval="$enable_combobox"
7714
7715 if test "$enableval" = yes; then
7716 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7717 else
7718 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7719 fi
7720
7721else
7722
7723 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7724 if test "x$LINE" != x ; then
7725 eval "DEFAULT_$LINE"
7726 else
7727 no_cache=1
7728 fi
7729
7730 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7731
7732fi;
7733
7734 eval "$ac_cv_use_combobox"
7735 if test "$no_cache" != 1; then
7736 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7737 fi
7738
7739 if test "$wxUSE_COMBOBOX" = yes; then
7740 echo "$as_me:$LINENO: result: yes" >&5
7741echo "${ECHO_T}yes" >&6
7742 else
7743 echo "$as_me:$LINENO: result: no" >&5
7744echo "${ECHO_T}no" >&6
7745 fi
7746
7747
da98e9be
VZ
7748 enablestring=
7749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7750echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7751 no_cache=0
7752 # Check whether --enable-datepick or --disable-datepick was given.
7753if test "${enable_datepick+set}" = set; then
7754 enableval="$enable_datepick"
7755
7756 if test "$enableval" = yes; then
7757 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7758 else
7759 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7760 fi
7761
7762else
7763
7764 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7765 if test "x$LINE" != x ; then
7766 eval "DEFAULT_$LINE"
7767 else
7768 no_cache=1
7769 fi
7770
7771 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7772
7773fi;
7774
7775 eval "$ac_cv_use_datepick"
7776 if test "$no_cache" != 1; then
7777 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7778 fi
7779
7780 if test "$wxUSE_DATEPICKCTRL" = yes; then
7781 echo "$as_me:$LINENO: result: yes" >&5
7782echo "${ECHO_T}yes" >&6
7783 else
7784 echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6
7786 fi
7787
7788
a848cd7e
SC
7789 enablestring=
7790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7791echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7792 no_cache=0
7793 # Check whether --enable-display or --disable-display was given.
7794if test "${enable_display+set}" = set; then
7795 enableval="$enable_display"
7796
7797 if test "$enableval" = yes; then
7798 ac_cv_use_display='wxUSE_DISPLAY=yes'
7799 else
7800 ac_cv_use_display='wxUSE_DISPLAY=no'
7801 fi
7802
7803else
7804
7805 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7806 if test "x$LINE" != x ; then
7807 eval "DEFAULT_$LINE"
7808 else
7809 no_cache=1
7810 fi
7811
7812 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7813
7814fi;
7815
7816 eval "$ac_cv_use_display"
7817 if test "$no_cache" != 1; then
7818 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7819 fi
7820
7821 if test "$wxUSE_DISPLAY" = yes; then
7822 echo "$as_me:$LINENO: result: yes" >&5
7823echo "${ECHO_T}yes" >&6
7824 else
7825 echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6
7827 fi
7828
7829
7830 enablestring=
7831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7832echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7833 no_cache=0
7834 # Check whether --enable-gauge or --disable-gauge was given.
7835if test "${enable_gauge+set}" = set; then
7836 enableval="$enable_gauge"
7837
7838 if test "$enableval" = yes; then
7839 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7840 else
7841 ac_cv_use_gauge='wxUSE_GAUGE=no'
7842 fi
7843
7844else
7845
7846 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7847 if test "x$LINE" != x ; then
7848 eval "DEFAULT_$LINE"
7849 else
7850 no_cache=1
7851 fi
7852
7853 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7854
7855fi;
7856
7857 eval "$ac_cv_use_gauge"
7858 if test "$no_cache" != 1; then
7859 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7860 fi
7861
7862 if test "$wxUSE_GAUGE" = yes; then
7863 echo "$as_me:$LINENO: result: yes" >&5
7864echo "${ECHO_T}yes" >&6
7865 else
7866 echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
7868 fi
7869
7870
7871 enablestring=
7872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7873echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7874 no_cache=0
7875 # Check whether --enable-grid or --disable-grid was given.
7876if test "${enable_grid+set}" = set; then
7877 enableval="$enable_grid"
7878
7879 if test "$enableval" = yes; then
7880 ac_cv_use_grid='wxUSE_GRID=yes'
7881 else
7882 ac_cv_use_grid='wxUSE_GRID=no'
7883 fi
7884
7885else
7886
7887 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7888 if test "x$LINE" != x ; then
7889 eval "DEFAULT_$LINE"
7890 else
7891 no_cache=1
7892 fi
7893
7894 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7895
7896fi;
7897
7898 eval "$ac_cv_use_grid"
7899 if test "$no_cache" != 1; then
7900 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7901 fi
7902
7903 if test "$wxUSE_GRID" = yes; then
7904 echo "$as_me:$LINENO: result: yes" >&5
7905echo "${ECHO_T}yes" >&6
7906 else
7907 echo "$as_me:$LINENO: result: no" >&5
7908echo "${ECHO_T}no" >&6
7909 fi
7910
7911
7912 enablestring=
7913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7914echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7915 no_cache=0
7916 # Check whether --enable-imaglist or --disable-imaglist was given.
7917if test "${enable_imaglist+set}" = set; then
7918 enableval="$enable_imaglist"
7919
7920 if test "$enableval" = yes; then
7921 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7922 else
7923 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7924 fi
7925
7926else
7927
7928 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7929 if test "x$LINE" != x ; then
7930 eval "DEFAULT_$LINE"
7931 else
7932 no_cache=1
7933 fi
7934
7935 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7936
7937fi;
7938
7939 eval "$ac_cv_use_imaglist"
7940 if test "$no_cache" != 1; then
7941 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7942 fi
7943
7944 if test "$wxUSE_IMAGLIST" = yes; then
7945 echo "$as_me:$LINENO: result: yes" >&5
7946echo "${ECHO_T}yes" >&6
7947 else
7948 echo "$as_me:$LINENO: result: no" >&5
7949echo "${ECHO_T}no" >&6
7950 fi
7951
7952
7953 enablestring=
7954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7955echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7956 no_cache=0
7957 # Check whether --enable-listbook or --disable-listbook was given.
7958if test "${enable_listbook+set}" = set; then
7959 enableval="$enable_listbook"
7960
7961 if test "$enableval" = yes; then
7962 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7963 else
7964 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7965 fi
7966
7967else
7968
7969 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7970 if test "x$LINE" != x ; then
7971 eval "DEFAULT_$LINE"
7972 else
7973 no_cache=1
7974 fi
7975
7976 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7977
7978fi;
7979
7980 eval "$ac_cv_use_listbook"
7981 if test "$no_cache" != 1; then
7982 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7983 fi
7984
7985 if test "$wxUSE_LISTBOOK" = yes; then
7986 echo "$as_me:$LINENO: result: yes" >&5
7987echo "${ECHO_T}yes" >&6
7988 else
7989 echo "$as_me:$LINENO: result: no" >&5
7990echo "${ECHO_T}no" >&6
7991 fi
7992
7993
7994 enablestring=
7995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7996echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7997 no_cache=0
7998 # Check whether --enable-listbox or --disable-listbox was given.
7999if test "${enable_listbox+set}" = set; then
8000 enableval="$enable_listbox"
8001
8002 if test "$enableval" = yes; then
8003 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8004 else
8005 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8006 fi
8007
8008else
8009
8010 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8011 if test "x$LINE" != x ; then
8012 eval "DEFAULT_$LINE"
8013 else
8014 no_cache=1
8015 fi
8016
8017 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8018
8019fi;
8020
8021 eval "$ac_cv_use_listbox"
8022 if test "$no_cache" != 1; then
8023 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8024 fi
8025
8026 if test "$wxUSE_LISTBOX" = yes; then
8027 echo "$as_me:$LINENO: result: yes" >&5
8028echo "${ECHO_T}yes" >&6
8029 else
8030 echo "$as_me:$LINENO: result: no" >&5
8031echo "${ECHO_T}no" >&6
8032 fi
8033
8034
8035 enablestring=
8036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8037echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8038 no_cache=0
8039 # Check whether --enable-listctrl or --disable-listctrl was given.
8040if test "${enable_listctrl+set}" = set; then
8041 enableval="$enable_listctrl"
8042
8043 if test "$enableval" = yes; then
8044 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8045 else
8046 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8047 fi
8048
8049else
8050
8051 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8052 if test "x$LINE" != x ; then
8053 eval "DEFAULT_$LINE"
8054 else
8055 no_cache=1
8056 fi
8057
8058 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8059
8060fi;
8061
8062 eval "$ac_cv_use_listctrl"
8063 if test "$no_cache" != 1; then
8064 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8065 fi
8066
8067 if test "$wxUSE_LISTCTRL" = yes; then
8068 echo "$as_me:$LINENO: result: yes" >&5
8069echo "${ECHO_T}yes" >&6
8070 else
8071 echo "$as_me:$LINENO: result: no" >&5
8072echo "${ECHO_T}no" >&6
8073 fi
8074
8075
8076 enablestring=
8077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8078echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8079 no_cache=0
8080 # Check whether --enable-notebook or --disable-notebook was given.
8081if test "${enable_notebook+set}" = set; then
8082 enableval="$enable_notebook"
8083
8084 if test "$enableval" = yes; then
8085 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8086 else
8087 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8088 fi
8089
8090else
8091
8092 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8093 if test "x$LINE" != x ; then
8094 eval "DEFAULT_$LINE"
8095 else
8096 no_cache=1
8097 fi
8098
8099 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8100
8101fi;
8102
8103 eval "$ac_cv_use_notebook"
8104 if test "$no_cache" != 1; then
8105 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8106 fi
8107
8108 if test "$wxUSE_NOTEBOOK" = yes; then
8109 echo "$as_me:$LINENO: result: yes" >&5
8110echo "${ECHO_T}yes" >&6
8111 else
8112 echo "$as_me:$LINENO: result: no" >&5
8113echo "${ECHO_T}no" >&6
8114 fi
8115
8116
8117 enablestring=
8118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8119echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8120 no_cache=0
8121 # Check whether --enable-radiobox or --disable-radiobox was given.
8122if test "${enable_radiobox+set}" = set; then
8123 enableval="$enable_radiobox"
8124
8125 if test "$enableval" = yes; then
8126 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8127 else
8128 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8129 fi
8130
8131else
8132
8133 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8134 if test "x$LINE" != x ; then
8135 eval "DEFAULT_$LINE"
8136 else
8137 no_cache=1
8138 fi
8139
8140 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8141
8142fi;
8143
8144 eval "$ac_cv_use_radiobox"
8145 if test "$no_cache" != 1; then
8146 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8147 fi
8148
8149 if test "$wxUSE_RADIOBOX" = yes; then
8150 echo "$as_me:$LINENO: result: yes" >&5
8151echo "${ECHO_T}yes" >&6
8152 else
8153 echo "$as_me:$LINENO: result: no" >&5
8154echo "${ECHO_T}no" >&6
8155 fi
8156
8157
8158 enablestring=
8159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8160echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8161 no_cache=0
8162 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8163if test "${enable_radiobtn+set}" = set; then
8164 enableval="$enable_radiobtn"
8165
8166 if test "$enableval" = yes; then
8167 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8168 else
8169 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8170 fi
8171
8172else
8173
8174 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8175 if test "x$LINE" != x ; then
8176 eval "DEFAULT_$LINE"
8177 else
8178 no_cache=1
8179 fi
8180
8181 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8182
8183fi;
8184
8185 eval "$ac_cv_use_radiobtn"
8186 if test "$no_cache" != 1; then
8187 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8188 fi
8189
8190 if test "$wxUSE_RADIOBTN" = yes; then
8191 echo "$as_me:$LINENO: result: yes" >&5
8192echo "${ECHO_T}yes" >&6
8193 else
8194 echo "$as_me:$LINENO: result: no" >&5
8195echo "${ECHO_T}no" >&6
8196 fi
8197
8198
8199 enablestring=
8200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8201echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8202 no_cache=0
8203 # Check whether --enable-sash or --disable-sash was given.
8204if test "${enable_sash+set}" = set; then
8205 enableval="$enable_sash"
8206
8207 if test "$enableval" = yes; then
8208 ac_cv_use_sash='wxUSE_SASH=yes'
8209 else
8210 ac_cv_use_sash='wxUSE_SASH=no'
8211 fi
8212
8213else
8214
8215 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8216 if test "x$LINE" != x ; then
8217 eval "DEFAULT_$LINE"
8218 else
8219 no_cache=1
8220 fi
8221
8222 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8223
8224fi;
8225
8226 eval "$ac_cv_use_sash"
8227 if test "$no_cache" != 1; then
8228 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8229 fi
8230
8231 if test "$wxUSE_SASH" = yes; then
8232 echo "$as_me:$LINENO: result: yes" >&5
8233echo "${ECHO_T}yes" >&6
8234 else
8235 echo "$as_me:$LINENO: result: no" >&5
8236echo "${ECHO_T}no" >&6
8237 fi
8238
8239
8240 enablestring=
8241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8242echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8243 no_cache=0
8244 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8245if test "${enable_scrollbar+set}" = set; then
8246 enableval="$enable_scrollbar"
8247
8248 if test "$enableval" = yes; then
8249 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8250 else
8251 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8252 fi
8253
8254else
8255
8256 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8257 if test "x$LINE" != x ; then
8258 eval "DEFAULT_$LINE"
8259 else
8260 no_cache=1
8261 fi
8262
8263 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8264
8265fi;
8266
8267 eval "$ac_cv_use_scrollbar"
8268 if test "$no_cache" != 1; then
8269 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8270 fi
8271
8272 if test "$wxUSE_SCROLLBAR" = yes; then
8273 echo "$as_me:$LINENO: result: yes" >&5
8274echo "${ECHO_T}yes" >&6
8275 else
8276 echo "$as_me:$LINENO: result: no" >&5
8277echo "${ECHO_T}no" >&6
8278 fi
8279
8280
8281 enablestring=
8282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8283echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8284 no_cache=0
8285 # Check whether --enable-slider or --disable-slider was given.
8286if test "${enable_slider+set}" = set; then
8287 enableval="$enable_slider"
8288
8289 if test "$enableval" = yes; then
8290 ac_cv_use_slider='wxUSE_SLIDER=yes'
8291 else
8292 ac_cv_use_slider='wxUSE_SLIDER=no'
8293 fi
8294
8295else
8296
8297 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8298 if test "x$LINE" != x ; then
8299 eval "DEFAULT_$LINE"
8300 else
8301 no_cache=1
8302 fi
8303
8304 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8305
8306fi;
8307
8308 eval "$ac_cv_use_slider"
8309 if test "$no_cache" != 1; then
8310 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8311 fi
8312
8313 if test "$wxUSE_SLIDER" = yes; then
8314 echo "$as_me:$LINENO: result: yes" >&5
8315echo "${ECHO_T}yes" >&6
8316 else
8317 echo "$as_me:$LINENO: result: no" >&5
8318echo "${ECHO_T}no" >&6
8319 fi
8320
8321
8322 enablestring=
8323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8324echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8325 no_cache=0
8326 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8327if test "${enable_spinbtn+set}" = set; then
8328 enableval="$enable_spinbtn"
8329
8330 if test "$enableval" = yes; then
8331 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8332 else
8333 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8334 fi
8335
8336else
8337
8338 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8339 if test "x$LINE" != x ; then
8340 eval "DEFAULT_$LINE"
8341 else
8342 no_cache=1
8343 fi
8344
8345 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8346
8347fi;
8348
8349 eval "$ac_cv_use_spinbtn"
8350 if test "$no_cache" != 1; then
8351 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8352 fi
8353
8354 if test "$wxUSE_SPINBTN" = yes; then
8355 echo "$as_me:$LINENO: result: yes" >&5
8356echo "${ECHO_T}yes" >&6
8357 else
8358 echo "$as_me:$LINENO: result: no" >&5
8359echo "${ECHO_T}no" >&6
8360 fi
8361
8362
8363 enablestring=
8364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8365echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8366 no_cache=0
8367 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8368if test "${enable_spinctrl+set}" = set; then
8369 enableval="$enable_spinctrl"
8370
8371 if test "$enableval" = yes; then
8372 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8373 else
8374 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8375 fi
8376
8377else
8378
8379 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8380 if test "x$LINE" != x ; then
8381 eval "DEFAULT_$LINE"
8382 else
8383 no_cache=1
8384 fi
8385
8386 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8387
8388fi;
8389
8390 eval "$ac_cv_use_spinctrl"
8391 if test "$no_cache" != 1; then
8392 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8393 fi
8394
8395 if test "$wxUSE_SPINCTRL" = yes; then
8396 echo "$as_me:$LINENO: result: yes" >&5
8397echo "${ECHO_T}yes" >&6
8398 else
8399 echo "$as_me:$LINENO: result: no" >&5
8400echo "${ECHO_T}no" >&6
8401 fi
8402
8403
8404 enablestring=
8405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8406echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8407 no_cache=0
8408 # Check whether --enable-splitter or --disable-splitter was given.
8409if test "${enable_splitter+set}" = set; then
8410 enableval="$enable_splitter"
8411
8412 if test "$enableval" = yes; then
8413 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8414 else
8415 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8416 fi
8417
8418else
8419
8420 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8421 if test "x$LINE" != x ; then
8422 eval "DEFAULT_$LINE"
8423 else
8424 no_cache=1
8425 fi
8426
8427 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8428
8429fi;
8430
8431 eval "$ac_cv_use_splitter"
8432 if test "$no_cache" != 1; then
8433 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8434 fi
8435
8436 if test "$wxUSE_SPLITTER" = yes; then
8437 echo "$as_me:$LINENO: result: yes" >&5
8438echo "${ECHO_T}yes" >&6
8439 else
8440 echo "$as_me:$LINENO: result: no" >&5
8441echo "${ECHO_T}no" >&6
8442 fi
8443
8444
8445 enablestring=
8446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8447echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8448 no_cache=0
8449 # Check whether --enable-statbmp or --disable-statbmp was given.
8450if test "${enable_statbmp+set}" = set; then
8451 enableval="$enable_statbmp"
8452
8453 if test "$enableval" = yes; then
8454 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8455 else
8456 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8457 fi
8458
8459else
8460
8461 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8462 if test "x$LINE" != x ; then
8463 eval "DEFAULT_$LINE"
8464 else
8465 no_cache=1
8466 fi
8467
8468 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8469
8470fi;
8471
8472 eval "$ac_cv_use_statbmp"
8473 if test "$no_cache" != 1; then
8474 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8475 fi
8476
8477 if test "$wxUSE_STATBMP" = yes; then
8478 echo "$as_me:$LINENO: result: yes" >&5
8479echo "${ECHO_T}yes" >&6
8480 else
8481 echo "$as_me:$LINENO: result: no" >&5
8482echo "${ECHO_T}no" >&6
8483 fi
8484
8485
8486 enablestring=
8487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8488echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8489 no_cache=0
8490 # Check whether --enable-statbox or --disable-statbox was given.
8491if test "${enable_statbox+set}" = set; then
8492 enableval="$enable_statbox"
8493
8494 if test "$enableval" = yes; then
8495 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8496 else
8497 ac_cv_use_statbox='wxUSE_STATBOX=no'
8498 fi
8499
8500else
8501
8502 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8503 if test "x$LINE" != x ; then
8504 eval "DEFAULT_$LINE"
8505 else
8506 no_cache=1
8507 fi
8508
8509 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8510
8511fi;
8512
8513 eval "$ac_cv_use_statbox"
8514 if test "$no_cache" != 1; then
8515 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8516 fi
8517
8518 if test "$wxUSE_STATBOX" = yes; then
8519 echo "$as_me:$LINENO: result: yes" >&5
8520echo "${ECHO_T}yes" >&6
8521 else
8522 echo "$as_me:$LINENO: result: no" >&5
8523echo "${ECHO_T}no" >&6
8524 fi
8525
8526
8527 enablestring=
8528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8529echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8530 no_cache=0
8531 # Check whether --enable-statline or --disable-statline was given.
8532if test "${enable_statline+set}" = set; then
8533 enableval="$enable_statline"
8534
8535 if test "$enableval" = yes; then
8536 ac_cv_use_statline='wxUSE_STATLINE=yes'
8537 else
8538 ac_cv_use_statline='wxUSE_STATLINE=no'
8539 fi
8540
8541else
8542
8543 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8544 if test "x$LINE" != x ; then
8545 eval "DEFAULT_$LINE"
8546 else
8547 no_cache=1
8548 fi
8549
8550 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8551
8552fi;
8553
8554 eval "$ac_cv_use_statline"
8555 if test "$no_cache" != 1; then
8556 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8557 fi
8558
8559 if test "$wxUSE_STATLINE" = yes; then
8560 echo "$as_me:$LINENO: result: yes" >&5
8561echo "${ECHO_T}yes" >&6
8562 else
8563 echo "$as_me:$LINENO: result: no" >&5
8564echo "${ECHO_T}no" >&6
8565 fi
8566
8567
8568 enablestring=
8569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8570echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8571 no_cache=0
8572 # Check whether --enable-stattext or --disable-stattext was given.
8573if test "${enable_stattext+set}" = set; then
8574 enableval="$enable_stattext"
8575
8576 if test "$enableval" = yes; then
8577 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8578 else
8579 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8580 fi
8581
8582else
8583
8584 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8585 if test "x$LINE" != x ; then
8586 eval "DEFAULT_$LINE"
8587 else
8588 no_cache=1
8589 fi
8590
8591 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8592
8593fi;
8594
8595 eval "$ac_cv_use_stattext"
8596 if test "$no_cache" != 1; then
8597 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8598 fi
8599
8600 if test "$wxUSE_STATTEXT" = yes; then
8601 echo "$as_me:$LINENO: result: yes" >&5
8602echo "${ECHO_T}yes" >&6
8603 else
8604 echo "$as_me:$LINENO: result: no" >&5
8605echo "${ECHO_T}no" >&6
8606 fi
8607
8608
8609 enablestring=
8610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8611echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8612 no_cache=0
8613 # Check whether --enable-statusbar or --disable-statusbar was given.
8614if test "${enable_statusbar+set}" = set; then
8615 enableval="$enable_statusbar"
8616
8617 if test "$enableval" = yes; then
8618 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8619 else
8620 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8621 fi
8622
8623else
8624
8625 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8626 if test "x$LINE" != x ; then
8627 eval "DEFAULT_$LINE"
8628 else
8629 no_cache=1
8630 fi
8631
8632 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8633
8634fi;
8635
8636 eval "$ac_cv_use_statusbar"
8637 if test "$no_cache" != 1; then
8638 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8639 fi
8640
8641 if test "$wxUSE_STATUSBAR" = yes; then
8642 echo "$as_me:$LINENO: result: yes" >&5
8643echo "${ECHO_T}yes" >&6
8644 else
8645 echo "$as_me:$LINENO: result: no" >&5
8646echo "${ECHO_T}no" >&6
8647 fi
8648
8649
8650 enablestring=
8651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8652echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8653 no_cache=0
8654 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8655if test "${enable_tabdialog+set}" = set; then
8656 enableval="$enable_tabdialog"
8657
8658 if test "$enableval" = yes; then
8659 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8660 else
8661 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8662 fi
8663
8664else
8665
8666 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8667 if test "x$LINE" != x ; then
8668 eval "DEFAULT_$LINE"
8669 else
8670 no_cache=1
8671 fi
8672
8673 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8674
8675fi;
8676
8677 eval "$ac_cv_use_tabdialog"
8678 if test "$no_cache" != 1; then
8679 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8680 fi
8681
8682 if test "$wxUSE_TABDIALOG" = yes; then
8683 echo "$as_me:$LINENO: result: yes" >&5
8684echo "${ECHO_T}yes" >&6
8685 else
8686 echo "$as_me:$LINENO: result: no" >&5
8687echo "${ECHO_T}no" >&6
8688 fi
8689
8690
8691 enablestring=
8692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8693echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8694 no_cache=0
8695 # Check whether --enable-textctrl or --disable-textctrl was given.
8696if test "${enable_textctrl+set}" = set; then
8697 enableval="$enable_textctrl"
8698
8699 if test "$enableval" = yes; then
8700 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8701 else
8702 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8703 fi
8704
8705else
8706
8707 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8708 if test "x$LINE" != x ; then
8709 eval "DEFAULT_$LINE"
8710 else
8711 no_cache=1
8712 fi
8713
8714 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8715
8716fi;
8717
8718 eval "$ac_cv_use_textctrl"
8719 if test "$no_cache" != 1; then
8720 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8721 fi
8722
8723 if test "$wxUSE_TEXTCTRL" = yes; then
8724 echo "$as_me:$LINENO: result: yes" >&5
8725echo "${ECHO_T}yes" >&6
8726 else
8727 echo "$as_me:$LINENO: result: no" >&5
8728echo "${ECHO_T}no" >&6
8729 fi
8730
8731
8732 enablestring=
8733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8734echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8735 no_cache=0
8736 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8737if test "${enable_togglebtn+set}" = set; then
8738 enableval="$enable_togglebtn"
8739
8740 if test "$enableval" = yes; then
8741 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8742 else
8743 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8744 fi
8745
8746else
8747
8748 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8749 if test "x$LINE" != x ; then
8750 eval "DEFAULT_$LINE"
8751 else
8752 no_cache=1
8753 fi
8754
8755 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8756
8757fi;
8758
8759 eval "$ac_cv_use_togglebtn"
8760 if test "$no_cache" != 1; then
8761 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8762 fi
8763
8764 if test "$wxUSE_TOGGLEBTN" = yes; then
8765 echo "$as_me:$LINENO: result: yes" >&5
8766echo "${ECHO_T}yes" >&6
8767 else
8768 echo "$as_me:$LINENO: result: no" >&5
8769echo "${ECHO_T}no" >&6
8770 fi
8771
8772
8773 enablestring=
8774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8775echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8776 no_cache=0
8777 # Check whether --enable-toolbar or --disable-toolbar was given.
8778if test "${enable_toolbar+set}" = set; then
8779 enableval="$enable_toolbar"
8780
8781 if test "$enableval" = yes; then
8782 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8783 else
8784 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8785 fi
8786
8787else
8788
8789 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8790 if test "x$LINE" != x ; then
8791 eval "DEFAULT_$LINE"
8792 else
8793 no_cache=1
8794 fi
8795
8796 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8797
8798fi;
8799
8800 eval "$ac_cv_use_toolbar"
8801 if test "$no_cache" != 1; then
8802 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8803 fi
8804
8805 if test "$wxUSE_TOOLBAR" = yes; then
8806 echo "$as_me:$LINENO: result: yes" >&5
8807echo "${ECHO_T}yes" >&6
8808 else
8809 echo "$as_me:$LINENO: result: no" >&5
8810echo "${ECHO_T}no" >&6
8811 fi
8812
8813
8814 enablestring=
8815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8816echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8817 no_cache=0
8818 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8819if test "${enable_tbarnative+set}" = set; then
8820 enableval="$enable_tbarnative"
8821
8822 if test "$enableval" = yes; then
8823 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8824 else
8825 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8826 fi
8827
8828else
8829
8830 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8831 if test "x$LINE" != x ; then
8832 eval "DEFAULT_$LINE"
8833 else
8834 no_cache=1
8835 fi
8836
8837 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8838
8839fi;
8840
8841 eval "$ac_cv_use_tbarnative"
8842 if test "$no_cache" != 1; then
8843 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8844 fi
8845
8846 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8847 echo "$as_me:$LINENO: result: yes" >&5
8848echo "${ECHO_T}yes" >&6
8849 else
8850 echo "$as_me:$LINENO: result: no" >&5
8851echo "${ECHO_T}no" >&6
8852 fi
8853
8854
8855 enablestring=
8856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8857echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8858 no_cache=0
8859 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8860if test "${enable_tbarsmpl+set}" = set; then
8861 enableval="$enable_tbarsmpl"
8862
8863 if test "$enableval" = yes; then
8864 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8865 else
8866 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8867 fi
8868
8869else
8870
8871 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8872 if test "x$LINE" != x ; then
8873 eval "DEFAULT_$LINE"
8874 else
8875 no_cache=1
8876 fi
8877
8878 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8879
8880fi;
8881
8882 eval "$ac_cv_use_tbarsmpl"
8883 if test "$no_cache" != 1; then
8884 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8885 fi
8886
8887 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8888 echo "$as_me:$LINENO: result: yes" >&5
8889echo "${ECHO_T}yes" >&6
8890 else
8891 echo "$as_me:$LINENO: result: no" >&5
8892echo "${ECHO_T}no" >&6
8893 fi
8894
8895
8896 enablestring=
8897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8898echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8899 no_cache=0
8900 # Check whether --enable-treectrl or --disable-treectrl was given.
8901if test "${enable_treectrl+set}" = set; then
8902 enableval="$enable_treectrl"
8903
8904 if test "$enableval" = yes; then
8905 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8906 else
8907 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8908 fi
8909
8910else
8911
8912 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8913 if test "x$LINE" != x ; then
8914 eval "DEFAULT_$LINE"
8915 else
8916 no_cache=1
8917 fi
8918
8919 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8920
8921fi;
8922
8923 eval "$ac_cv_use_treectrl"
8924 if test "$no_cache" != 1; then
8925 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8926 fi
8927
8928 if test "$wxUSE_TREECTRL" = yes; then
8929 echo "$as_me:$LINENO: result: yes" >&5
8930echo "${ECHO_T}yes" >&6
8931 else
8932 echo "$as_me:$LINENO: result: no" >&5
8933echo "${ECHO_T}no" >&6
8934 fi
8935
8936
8937 enablestring=
8938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8939echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8940 no_cache=0
8941 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8942if test "${enable_tipwindow+set}" = set; then
8943 enableval="$enable_tipwindow"
8944
8945 if test "$enableval" = yes; then
8946 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8947 else
8948 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8949 fi
8950
8951else
8952
8953 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8954 if test "x$LINE" != x ; then
8955 eval "DEFAULT_$LINE"
8956 else
8957 no_cache=1
8958 fi
8959
8960 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8961
8962fi;
8963
8964 eval "$ac_cv_use_tipwindow"
8965 if test "$no_cache" != 1; then
8966 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8967 fi
8968
8969 if test "$wxUSE_TIPWINDOW" = yes; then
8970 echo "$as_me:$LINENO: result: yes" >&5
8971echo "${ECHO_T}yes" >&6
8972 else
8973 echo "$as_me:$LINENO: result: no" >&5
8974echo "${ECHO_T}no" >&6
8975 fi
8976
8977
8978 enablestring=
8979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8980echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8981 no_cache=0
8982 # Check whether --enable-popupwin or --disable-popupwin was given.
8983if test "${enable_popupwin+set}" = set; then
8984 enableval="$enable_popupwin"
8985
8986 if test "$enableval" = yes; then
8987 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8988 else
8989 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8990 fi
8991
8992else
8993
8994 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8995 if test "x$LINE" != x ; then
8996 eval "DEFAULT_$LINE"
8997 else
8998 no_cache=1
8999 fi
9000
9001 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9002
9003fi;
9004
9005 eval "$ac_cv_use_popupwin"
9006 if test "$no_cache" != 1; then
9007 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9008 fi
9009
9010 if test "$wxUSE_POPUPWIN" = yes; then
9011 echo "$as_me:$LINENO: result: yes" >&5
9012echo "${ECHO_T}yes" >&6
9013 else
9014 echo "$as_me:$LINENO: result: no" >&5
9015echo "${ECHO_T}no" >&6
9016 fi
9017
9018
9019
9020
9021 enablestring=
9022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9023echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9024 no_cache=0
9025 # Check whether --enable-commondlg or --disable-commondlg was given.
9026if test "${enable_commondlg+set}" = set; then
9027 enableval="$enable_commondlg"
9028
9029 if test "$enableval" = yes; then
9030 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9031 else
9032 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9033 fi
9034
9035else
9036
9037 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9038 if test "x$LINE" != x ; then
9039 eval "DEFAULT_$LINE"
9040 else
9041 no_cache=1
9042 fi
9043
9044 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9045
9046fi;
9047
9048 eval "$ac_cv_use_commondlg"
9049 if test "$no_cache" != 1; then
9050 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9051 fi
9052
9053 if test "$wxUSE_COMMONDLGS" = yes; then
9054 echo "$as_me:$LINENO: result: yes" >&5
9055echo "${ECHO_T}yes" >&6
9056 else
9057 echo "$as_me:$LINENO: result: no" >&5
9058echo "${ECHO_T}no" >&6
9059 fi
9060
9061
9062 enablestring=
9063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9064echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9065 no_cache=0
9066 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9067if test "${enable_choicedlg+set}" = set; then
9068 enableval="$enable_choicedlg"
9069
9070 if test "$enableval" = yes; then
9071 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9072 else
9073 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9074 fi
9075
9076else
9077
9078 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9079 if test "x$LINE" != x ; then
9080 eval "DEFAULT_$LINE"
9081 else
9082 no_cache=1
9083 fi
9084
9085 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9086
9087fi;
9088
9089 eval "$ac_cv_use_choicedlg"
9090 if test "$no_cache" != 1; then
9091 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9092 fi
9093
9094 if test "$wxUSE_CHOICEDLG" = yes; then
9095 echo "$as_me:$LINENO: result: yes" >&5
9096echo "${ECHO_T}yes" >&6
9097 else
9098 echo "$as_me:$LINENO: result: no" >&5
9099echo "${ECHO_T}no" >&6
9100 fi
9101
9102
9103 enablestring=
9104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9105echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9106 no_cache=0
9107 # Check whether --enable-coldlg or --disable-coldlg was given.
9108if test "${enable_coldlg+set}" = set; then
9109 enableval="$enable_coldlg"
9110
9111 if test "$enableval" = yes; then
9112 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9113 else
9114 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9115 fi
9116
9117else
9118
9119 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9120 if test "x$LINE" != x ; then
9121 eval "DEFAULT_$LINE"
9122 else
9123 no_cache=1
9124 fi
9125
9126 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9127
9128fi;
9129
9130 eval "$ac_cv_use_coldlg"
9131 if test "$no_cache" != 1; then
9132 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9133 fi
9134
9135 if test "$wxUSE_COLOURDLG" = yes; then
9136 echo "$as_me:$LINENO: result: yes" >&5
9137echo "${ECHO_T}yes" >&6
9138 else
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
9141 fi
9142
9143
9144 enablestring=
9145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9146echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9147 no_cache=0
9148 # Check whether --enable-filedlg or --disable-filedlg was given.
9149if test "${enable_filedlg+set}" = set; then
9150 enableval="$enable_filedlg"
9151
9152 if test "$enableval" = yes; then
9153 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9154 else
9155 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9156 fi
9157
9158else
9159
9160 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9161 if test "x$LINE" != x ; then
9162 eval "DEFAULT_$LINE"
9163 else
9164 no_cache=1
9165 fi
9166
9167 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9168
9169fi;
9170
9171 eval "$ac_cv_use_filedlg"
9172 if test "$no_cache" != 1; then
9173 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9174 fi
9175
9176 if test "$wxUSE_FILEDLG" = yes; then
9177 echo "$as_me:$LINENO: result: yes" >&5
9178echo "${ECHO_T}yes" >&6
9179 else
9180 echo "$as_me:$LINENO: result: no" >&5
9181echo "${ECHO_T}no" >&6
9182 fi
9183
9184
9185 enablestring=
9186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9187echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9188 no_cache=0
9189 # Check whether --enable-finddlg or --disable-finddlg was given.
9190if test "${enable_finddlg+set}" = set; then
9191 enableval="$enable_finddlg"
9192
9193 if test "$enableval" = yes; then
9194 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9195 else
9196 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9197 fi
9198
9199else
9200
9201 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9202 if test "x$LINE" != x ; then
9203 eval "DEFAULT_$LINE"
9204 else
9205 no_cache=1
9206 fi
9207
9208 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9209
9210fi;
9211
9212 eval "$ac_cv_use_finddlg"
9213 if test "$no_cache" != 1; then
9214 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9215 fi
9216
9217 if test "$wxUSE_FINDREPLDLG" = yes; then
9218 echo "$as_me:$LINENO: result: yes" >&5
9219echo "${ECHO_T}yes" >&6
9220 else
9221 echo "$as_me:$LINENO: result: no" >&5
9222echo "${ECHO_T}no" >&6
9223 fi
9224
9225
9226 enablestring=
9227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9228echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9229 no_cache=0
9230 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9231if test "${enable_fontdlg+set}" = set; then
9232 enableval="$enable_fontdlg"
9233
9234 if test "$enableval" = yes; then
9235 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9236 else
9237 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9238 fi
9239
9240else
9241
9242 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9243 if test "x$LINE" != x ; then
9244 eval "DEFAULT_$LINE"
9245 else
9246 no_cache=1
9247 fi
9248
9249 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9250
9251fi;
9252
9253 eval "$ac_cv_use_fontdlg"
9254 if test "$no_cache" != 1; then
9255 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9256 fi
9257
9258 if test "$wxUSE_FONTDLG" = yes; then
9259 echo "$as_me:$LINENO: result: yes" >&5
9260echo "${ECHO_T}yes" >&6
9261 else
9262 echo "$as_me:$LINENO: result: no" >&5
9263echo "${ECHO_T}no" >&6
9264 fi
9265
9266
9267 enablestring=
9268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9269echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9270 no_cache=0
9271 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9272if test "${enable_dirdlg+set}" = set; then
9273 enableval="$enable_dirdlg"
9274
9275 if test "$enableval" = yes; then
9276 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9277 else
9278 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9279 fi
9280
9281else
9282
9283 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9284 if test "x$LINE" != x ; then
9285 eval "DEFAULT_$LINE"
9286 else
9287 no_cache=1
9288 fi
9289
9290 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9291
9292fi;
9293
9294 eval "$ac_cv_use_dirdlg"
9295 if test "$no_cache" != 1; then
9296 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9297 fi
9298
9299 if test "$wxUSE_DIRDLG" = yes; then
9300 echo "$as_me:$LINENO: result: yes" >&5
9301echo "${ECHO_T}yes" >&6
9302 else
9303 echo "$as_me:$LINENO: result: no" >&5
9304echo "${ECHO_T}no" >&6
9305 fi
9306
9307
9308 enablestring=
9309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9310echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9311 no_cache=0
9312 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9313if test "${enable_msgdlg+set}" = set; then
9314 enableval="$enable_msgdlg"
9315
9316 if test "$enableval" = yes; then
9317 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9318 else
9319 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9320 fi
9321
9322else
9323
9324 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9325 if test "x$LINE" != x ; then
9326 eval "DEFAULT_$LINE"
9327 else
9328 no_cache=1
9329 fi
9330
9331 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9332
9333fi;
9334
9335 eval "$ac_cv_use_msgdlg"
9336 if test "$no_cache" != 1; then
9337 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9338 fi
9339
9340 if test "$wxUSE_MSGDLG" = yes; then
9341 echo "$as_me:$LINENO: result: yes" >&5
9342echo "${ECHO_T}yes" >&6
9343 else
9344 echo "$as_me:$LINENO: result: no" >&5
9345echo "${ECHO_T}no" >&6
9346 fi
9347
9348
9349 enablestring=
9350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9351echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9352 no_cache=0
9353 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9354if test "${enable_numberdlg+set}" = set; then
9355 enableval="$enable_numberdlg"
9356
9357 if test "$enableval" = yes; then
9358 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9359 else
9360 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9361 fi
9362
9363else
9364
9365 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9366 if test "x$LINE" != x ; then
9367 eval "DEFAULT_$LINE"
9368 else
9369 no_cache=1
9370 fi
9371
9372 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9373
9374fi;
9375
9376 eval "$ac_cv_use_numberdlg"
9377 if test "$no_cache" != 1; then
9378 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9379 fi
9380
9381 if test "$wxUSE_NUMBERDLG" = yes; then
9382 echo "$as_me:$LINENO: result: yes" >&5
9383echo "${ECHO_T}yes" >&6
9384 else
9385 echo "$as_me:$LINENO: result: no" >&5
9386echo "${ECHO_T}no" >&6
9387 fi
9388
9389
9390 enablestring=
9391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9392echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9393 no_cache=0
9394 # Check whether --enable-splash or --disable-splash was given.
9395if test "${enable_splash+set}" = set; then
9396 enableval="$enable_splash"
9397
9398 if test "$enableval" = yes; then
9399 ac_cv_use_splash='wxUSE_SPLASH=yes'
9400 else
9401 ac_cv_use_splash='wxUSE_SPLASH=no'
9402 fi
9403
9404else
9405
9406 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9407 if test "x$LINE" != x ; then
9408 eval "DEFAULT_$LINE"
9409 else
9410 no_cache=1
9411 fi
9412
9413 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9414
9415fi;
9416
9417 eval "$ac_cv_use_splash"
9418 if test "$no_cache" != 1; then
9419 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9420 fi
9421
9422 if test "$wxUSE_SPLASH" = yes; then
9423 echo "$as_me:$LINENO: result: yes" >&5
9424echo "${ECHO_T}yes" >&6
9425 else
9426 echo "$as_me:$LINENO: result: no" >&5
9427echo "${ECHO_T}no" >&6
9428 fi
9429
9430
9431 enablestring=
9432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9433echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9434 no_cache=0
9435 # Check whether --enable-textdlg or --disable-textdlg was given.
9436if test "${enable_textdlg+set}" = set; then
9437 enableval="$enable_textdlg"
9438
9439 if test "$enableval" = yes; then
9440 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9441 else
9442 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9443 fi
9444
9445else
9446
9447 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9448 if test "x$LINE" != x ; then
9449 eval "DEFAULT_$LINE"
9450 else
9451 no_cache=1
9452 fi
9453
9454 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9455
9456fi;
9457
9458 eval "$ac_cv_use_textdlg"
9459 if test "$no_cache" != 1; then
9460 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9461 fi
9462
9463 if test "$wxUSE_TEXTDLG" = yes; then
9464 echo "$as_me:$LINENO: result: yes" >&5
9465echo "${ECHO_T}yes" >&6
9466 else
9467 echo "$as_me:$LINENO: result: no" >&5
9468echo "${ECHO_T}no" >&6
9469 fi
9470
9471
9472 enablestring=
9473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9474echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9475 no_cache=0
9476 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9477if test "${enable_tipdlg+set}" = set; then
9478 enableval="$enable_tipdlg"
9479
9480 if test "$enableval" = yes; then
9481 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9482 else
9483 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9484 fi
9485
9486else
9487
9488 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9489 if test "x$LINE" != x ; then
9490 eval "DEFAULT_$LINE"
9491 else
9492 no_cache=1
9493 fi
9494
9495 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9496
9497fi;
9498
9499 eval "$ac_cv_use_tipdlg"
9500 if test "$no_cache" != 1; then
9501 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9502 fi
9503
9504 if test "$wxUSE_STARTUP_TIPS" = yes; then
9505 echo "$as_me:$LINENO: result: yes" >&5
9506echo "${ECHO_T}yes" >&6
9507 else
9508 echo "$as_me:$LINENO: result: no" >&5
9509echo "${ECHO_T}no" >&6
9510 fi
9511
9512
9513 enablestring=
9514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9515echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9516 no_cache=0
9517 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9518if test "${enable_progressdlg+set}" = set; then
9519 enableval="$enable_progressdlg"
9520
9521 if test "$enableval" = yes; then
9522 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9523 else
9524 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9525 fi
9526
9527else
9528
9529 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9530 if test "x$LINE" != x ; then
9531 eval "DEFAULT_$LINE"
9532 else
9533 no_cache=1
9534 fi
9535
9536 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9537
9538fi;
9539
9540 eval "$ac_cv_use_progressdlg"
9541 if test "$no_cache" != 1; then
9542 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9543 fi
9544
9545 if test "$wxUSE_PROGRESSDLG" = yes; then
9546 echo "$as_me:$LINENO: result: yes" >&5
9547echo "${ECHO_T}yes" >&6
9548 else
9549 echo "$as_me:$LINENO: result: no" >&5
9550echo "${ECHO_T}no" >&6
9551 fi
9552
9553
9554 enablestring=
9555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9556echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9557 no_cache=0
9558 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9559if test "${enable_wizarddlg+set}" = set; then
9560 enableval="$enable_wizarddlg"
9561
9562 if test "$enableval" = yes; then
9563 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9564 else
9565 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9566 fi
9567
9568else
9569
9570 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9571 if test "x$LINE" != x ; then
9572 eval "DEFAULT_$LINE"
9573 else
9574 no_cache=1
9575 fi
9576
9577 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9578
9579fi;
9580
9581 eval "$ac_cv_use_wizarddlg"
9582 if test "$no_cache" != 1; then
9583 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9584 fi
9585
9586 if test "$wxUSE_WIZARDDLG" = yes; then
9587 echo "$as_me:$LINENO: result: yes" >&5
9588echo "${ECHO_T}yes" >&6
9589 else
9590 echo "$as_me:$LINENO: result: no" >&5
9591echo "${ECHO_T}no" >&6
9592 fi
9593
9594
9595
9596
9597 enablestring=
9598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9599echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9600 no_cache=0
9601 # Check whether --enable-menus or --disable-menus was given.
9602if test "${enable_menus+set}" = set; then
9603 enableval="$enable_menus"
9604
9605 if test "$enableval" = yes; then
9606 ac_cv_use_menus='wxUSE_MENUS=yes'
9607 else
9608 ac_cv_use_menus='wxUSE_MENUS=no'
9609 fi
9610
9611else
9612
9613 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9614 if test "x$LINE" != x ; then
9615 eval "DEFAULT_$LINE"
9616 else
9617 no_cache=1
9618 fi
9619
9620 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9621
9622fi;
9623
9624 eval "$ac_cv_use_menus"
9625 if test "$no_cache" != 1; then
9626 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9627 fi
9628
9629 if test "$wxUSE_MENUS" = yes; then
9630 echo "$as_me:$LINENO: result: yes" >&5
9631echo "${ECHO_T}yes" >&6
9632 else
9633 echo "$as_me:$LINENO: result: no" >&5
9634echo "${ECHO_T}no" >&6
9635 fi
9636
9637
9638 enablestring=
9639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9640echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9641 no_cache=0
9642 # Check whether --enable-miniframe or --disable-miniframe was given.
9643if test "${enable_miniframe+set}" = set; then
9644 enableval="$enable_miniframe"
9645
9646 if test "$enableval" = yes; then
9647 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9648 else
9649 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9650 fi
9651
9652else
9653
9654 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9655 if test "x$LINE" != x ; then
9656 eval "DEFAULT_$LINE"
9657 else
9658 no_cache=1
9659 fi
9660
9661 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9662
9663fi;
9664
9665 eval "$ac_cv_use_miniframe"
9666 if test "$no_cache" != 1; then
9667 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9668 fi
9669
9670 if test "$wxUSE_MINIFRAME" = yes; then
9671 echo "$as_me:$LINENO: result: yes" >&5
9672echo "${ECHO_T}yes" >&6
9673 else
9674 echo "$as_me:$LINENO: result: no" >&5
9675echo "${ECHO_T}no" >&6
9676 fi
9677
9678
9679 enablestring=
9680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9681echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9682 no_cache=0
9683 # Check whether --enable-tooltips or --disable-tooltips was given.
9684if test "${enable_tooltips+set}" = set; then
9685 enableval="$enable_tooltips"
9686
9687 if test "$enableval" = yes; then
9688 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9689 else
9690 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9691 fi
9692
9693else
9694
9695 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9696 if test "x$LINE" != x ; then
9697 eval "DEFAULT_$LINE"
9698 else
9699 no_cache=1
9700 fi
9701
9702 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9703
9704fi;
9705
9706 eval "$ac_cv_use_tooltips"
9707 if test "$no_cache" != 1; then
9708 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9709 fi
9710
9711 if test "$wxUSE_TOOLTIPS" = yes; then
9712 echo "$as_me:$LINENO: result: yes" >&5
9713echo "${ECHO_T}yes" >&6
9714 else
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
9717 fi
9718
9719
9720 enablestring=
9721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9722echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9723 no_cache=0
9724 # Check whether --enable-splines or --disable-splines was given.
9725if test "${enable_splines+set}" = set; then
9726 enableval="$enable_splines"
9727
9728 if test "$enableval" = yes; then
9729 ac_cv_use_splines='wxUSE_SPLINES=yes'
9730 else
9731 ac_cv_use_splines='wxUSE_SPLINES=no'
9732 fi
9733
9734else
9735
9736 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9737 if test "x$LINE" != x ; then
9738 eval "DEFAULT_$LINE"
9739 else
9740 no_cache=1
9741 fi
9742
9743 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9744
9745fi;
9746
9747 eval "$ac_cv_use_splines"
9748 if test "$no_cache" != 1; then
9749 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9750 fi
9751
9752 if test "$wxUSE_SPLINES" = yes; then
9753 echo "$as_me:$LINENO: result: yes" >&5
9754echo "${ECHO_T}yes" >&6
9755 else
9756 echo "$as_me:$LINENO: result: no" >&5
9757echo "${ECHO_T}no" >&6
9758 fi
9759
9760
fbe2ca43
SN
9761 enablestring=
9762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9763echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9764 no_cache=0
9765 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9766if test "${enable_mousewheel+set}" = set; then
9767 enableval="$enable_mousewheel"
9768
9769 if test "$enableval" = yes; then
9770 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9771 else
9772 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9773 fi
9774
9775else
9776
9777 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9778 if test "x$LINE" != x ; then
9779 eval "DEFAULT_$LINE"
9780 else
9781 no_cache=1
9782 fi
9783
9784 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9785
9786fi;
9787
9788 eval "$ac_cv_use_mousewheel"
9789 if test "$no_cache" != 1; then
9790 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9791 fi
9792
9793 if test "$wxUSE_MOUSEWHEEL" = yes; then
9794 echo "$as_me:$LINENO: result: yes" >&5
9795echo "${ECHO_T}yes" >&6
9796 else
9797 echo "$as_me:$LINENO: result: no" >&5
9798echo "${ECHO_T}no" >&6
9799 fi
9800
9801
a848cd7e
SC
9802 enablestring=
9803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9804echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9805 no_cache=0
9806 # Check whether --enable-validators or --disable-validators was given.
9807if test "${enable_validators+set}" = set; then
9808 enableval="$enable_validators"
9809
9810 if test "$enableval" = yes; then
9811 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9812 else
9813 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9814 fi
9815
9816else
9817
9818 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9819 if test "x$LINE" != x ; then
9820 eval "DEFAULT_$LINE"
9821 else
9822 no_cache=1
9823 fi
9824
9825 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9826
9827fi;
9828
9829 eval "$ac_cv_use_validators"
9830 if test "$no_cache" != 1; then
9831 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9832 fi
9833
9834 if test "$wxUSE_VALIDATORS" = yes; then
9835 echo "$as_me:$LINENO: result: yes" >&5
9836echo "${ECHO_T}yes" >&6
9837 else
9838 echo "$as_me:$LINENO: result: no" >&5
9839echo "${ECHO_T}no" >&6
9840 fi
9841
9842
9843 enablestring=
9844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9845echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9846 no_cache=0
9847 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9848if test "${enable_busyinfo+set}" = set; then
9849 enableval="$enable_busyinfo"
9850
9851 if test "$enableval" = yes; then
9852 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9853 else
9854 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9855 fi
9856
9857else
9858
9859 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9860 if test "x$LINE" != x ; then
9861 eval "DEFAULT_$LINE"
9862 else
9863 no_cache=1
9864 fi
9865
9866 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9867
9868fi;
9869
9870 eval "$ac_cv_use_busyinfo"
9871 if test "$no_cache" != 1; then
9872 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9873 fi
9874
9875 if test "$wxUSE_BUSYINFO" = yes; then
9876 echo "$as_me:$LINENO: result: yes" >&5
9877echo "${ECHO_T}yes" >&6
9878 else
9879 echo "$as_me:$LINENO: result: no" >&5
9880echo "${ECHO_T}no" >&6
9881 fi
9882
9883
9884 enablestring=
9885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9886echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9887 no_cache=0
9888 # Check whether --enable-joystick or --disable-joystick was given.
9889if test "${enable_joystick+set}" = set; then
9890 enableval="$enable_joystick"
9891
9892 if test "$enableval" = yes; then
9893 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9894 else
9895 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9896 fi
9897
9898else
9899
9900 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9901 if test "x$LINE" != x ; then
9902 eval "DEFAULT_$LINE"
9903 else
9904 no_cache=1
9905 fi
9906
9907 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9908
9909fi;
9910
9911 eval "$ac_cv_use_joystick"
9912 if test "$no_cache" != 1; then
9913 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9914 fi
9915
9916 if test "$wxUSE_JOYSTICK" = yes; then
9917 echo "$as_me:$LINENO: result: yes" >&5
9918echo "${ECHO_T}yes" >&6
9919 else
9920 echo "$as_me:$LINENO: result: no" >&5
9921echo "${ECHO_T}no" >&6
9922 fi
9923
9924
9925 enablestring=
9926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9927echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9928 no_cache=0
9929 # Check whether --enable-metafile or --disable-metafile was given.
9930if test "${enable_metafile+set}" = set; then
9931 enableval="$enable_metafile"
9932
9933 if test "$enableval" = yes; then
9934 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9935 else
9936 ac_cv_use_metafile='wxUSE_METAFILE=no'
9937 fi
9938
9939else
9940
9941 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9942 if test "x$LINE" != x ; then
9943 eval "DEFAULT_$LINE"
9944 else
9945 no_cache=1
9946 fi
9947
9948 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9949
9950fi;
9951
9952 eval "$ac_cv_use_metafile"
9953 if test "$no_cache" != 1; then
9954 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9955 fi
9956
9957 if test "$wxUSE_METAFILE" = yes; then
9958 echo "$as_me:$LINENO: result: yes" >&5
9959echo "${ECHO_T}yes" >&6
9960 else
9961 echo "$as_me:$LINENO: result: no" >&5
9962echo "${ECHO_T}no" >&6
9963 fi
9964
9965
9966 enablestring=
9967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9968echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9969 no_cache=0
9970 # Check whether --enable-dragimage or --disable-dragimage was given.
9971if test "${enable_dragimage+set}" = set; then
9972 enableval="$enable_dragimage"
9973
9974 if test "$enableval" = yes; then
9975 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9976 else
9977 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9978 fi
9979
9980else
9981
9982 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9983 if test "x$LINE" != x ; then
9984 eval "DEFAULT_$LINE"
9985 else
9986 no_cache=1
9987 fi
9988
9989 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9990
9991fi;
9992
9993 eval "$ac_cv_use_dragimage"
9994 if test "$no_cache" != 1; then
9995 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9996 fi
9997
9998 if test "$wxUSE_DRAGIMAGE" = yes; then
9999 echo "$as_me:$LINENO: result: yes" >&5
10000echo "${ECHO_T}yes" >&6
10001 else
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
10004 fi
10005
10006
10007 enablestring=
10008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10009echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10010 no_cache=0
10011 # Check whether --enable-accessibility or --disable-accessibility was given.
10012if test "${enable_accessibility+set}" = set; then
10013 enableval="$enable_accessibility"
10014
10015 if test "$enableval" = yes; then
10016 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10017 else
10018 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10019 fi
10020
10021else
10022
10023 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10024 if test "x$LINE" != x ; then
10025 eval "DEFAULT_$LINE"
10026 else
10027 no_cache=1
10028 fi
10029
10030 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10031
10032fi;
10033
10034 eval "$ac_cv_use_accessibility"
10035 if test "$no_cache" != 1; then
10036 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10037 fi
10038
10039 if test "$wxUSE_ACCESSIBILITY" = yes; then
10040 echo "$as_me:$LINENO: result: yes" >&5
10041echo "${ECHO_T}yes" >&6
10042 else
10043 echo "$as_me:$LINENO: result: no" >&5
10044echo "${ECHO_T}no" >&6
10045 fi
10046
10047
38b4a946
VZ
10048if test "$wxUSE_MSW" = "1"; then
10049
10050 enablestring=
10051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10052echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10053 no_cache=0
10054 # Check whether --enable-dccache or --disable-dccache was given.
10055if test "${enable_dccache+set}" = set; then
10056 enableval="$enable_dccache"
10057
10058 if test "$enableval" = yes; then
10059 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10060 else
10061 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10062 fi
10063
10064else
10065
10066 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10067 if test "x$LINE" != x ; then
10068 eval "DEFAULT_$LINE"
10069 else
10070 no_cache=1
10071 fi
10072
10073 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10074
10075fi;
10076
10077 eval "$ac_cv_use_dccache"
10078 if test "$no_cache" != 1; then
10079 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10080 fi
10081
10082 if test "$wxUSE_DC_CACHEING" = yes; then
10083 echo "$as_me:$LINENO: result: yes" >&5
10084echo "${ECHO_T}yes" >&6
10085 else
10086 echo "$as_me:$LINENO: result: no" >&5
10087echo "${ECHO_T}no" >&6
10088 fi
10089
10090fi
10091
a848cd7e
SC
10092
10093
10094 enablestring=
10095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10096echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10097 no_cache=0
10098 # Check whether --enable-palette or --disable-palette was given.
10099if test "${enable_palette+set}" = set; then
10100 enableval="$enable_palette"
10101
10102 if test "$enableval" = yes; then
10103 ac_cv_use_palette='wxUSE_PALETTE=yes'
10104 else
10105 ac_cv_use_palette='wxUSE_PALETTE=no'
10106 fi
10107
10108else
10109
10110 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10111 if test "x$LINE" != x ; then
10112 eval "DEFAULT_$LINE"
10113 else
10114 no_cache=1
10115 fi
10116
10117 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10118
10119fi;
10120
10121 eval "$ac_cv_use_palette"
10122 if test "$no_cache" != 1; then
10123 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10124 fi
10125
10126 if test "$wxUSE_PALETTE" = yes; then
10127 echo "$as_me:$LINENO: result: yes" >&5
10128echo "${ECHO_T}yes" >&6
10129 else
10130 echo "$as_me:$LINENO: result: no" >&5
10131echo "${ECHO_T}no" >&6
10132 fi
10133
10134
10135 enablestring=
10136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10137echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10138 no_cache=0
10139 # Check whether --enable-image or --disable-image was given.
10140if test "${enable_image+set}" = set; then
10141 enableval="$enable_image"
10142
10143 if test "$enableval" = yes; then
10144 ac_cv_use_image='wxUSE_IMAGE=yes'
10145 else
10146 ac_cv_use_image='wxUSE_IMAGE=no'
10147 fi
10148
10149else
10150
10151 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10152 if test "x$LINE" != x ; then
10153 eval "DEFAULT_$LINE"
10154 else
10155 no_cache=1
10156 fi
10157
10158 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10159
10160fi;
10161
10162 eval "$ac_cv_use_image"
10163 if test "$no_cache" != 1; then
10164 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10165 fi
10166
10167 if test "$wxUSE_IMAGE" = yes; then
10168 echo "$as_me:$LINENO: result: yes" >&5
10169echo "${ECHO_T}yes" >&6
10170 else
10171 echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6
10173 fi
10174
10175
10176 enablestring=
10177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10178echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10179 no_cache=0
10180 # Check whether --enable-gif or --disable-gif was given.
10181if test "${enable_gif+set}" = set; then
10182 enableval="$enable_gif"
10183
10184 if test "$enableval" = yes; then
10185 ac_cv_use_gif='wxUSE_GIF=yes'
10186 else
10187 ac_cv_use_gif='wxUSE_GIF=no'
10188 fi
10189
10190else
10191
10192 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10193 if test "x$LINE" != x ; then
10194 eval "DEFAULT_$LINE"
10195 else
10196 no_cache=1
10197 fi
10198
10199 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10200
10201fi;
10202
10203 eval "$ac_cv_use_gif"
10204 if test "$no_cache" != 1; then
10205 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10206 fi
10207
10208 if test "$wxUSE_GIF" = yes; then
10209 echo "$as_me:$LINENO: result: yes" >&5
10210echo "${ECHO_T}yes" >&6
10211 else
10212 echo "$as_me:$LINENO: result: no" >&5
10213echo "${ECHO_T}no" >&6
10214 fi
10215
10216
10217 enablestring=
10218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10219echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10220 no_cache=0
10221 # Check whether --enable-pcx or --disable-pcx was given.
10222if test "${enable_pcx+set}" = set; then
10223 enableval="$enable_pcx"
10224
10225 if test "$enableval" = yes; then
10226 ac_cv_use_pcx='wxUSE_PCX=yes'
10227 else
10228 ac_cv_use_pcx='wxUSE_PCX=no'
10229 fi
10230
10231else
10232
10233 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10234 if test "x$LINE" != x ; then
10235 eval "DEFAULT_$LINE"
10236 else
10237 no_cache=1
10238 fi
10239
10240 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10241
10242fi;
10243
10244 eval "$ac_cv_use_pcx"
10245 if test "$no_cache" != 1; then
10246 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10247 fi
10248
10249 if test "$wxUSE_PCX" = yes; then
10250 echo "$as_me:$LINENO: result: yes" >&5
10251echo "${ECHO_T}yes" >&6
10252 else
10253 echo "$as_me:$LINENO: result: no" >&5
10254echo "${ECHO_T}no" >&6
10255 fi
10256
10257
10258 enablestring=
10259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10260echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10261 no_cache=0
10262 # Check whether --enable-iff or --disable-iff was given.
10263if test "${enable_iff+set}" = set; then
10264 enableval="$enable_iff"
10265
10266 if test "$enableval" = yes; then
10267 ac_cv_use_iff='wxUSE_IFF=yes'
10268 else
10269 ac_cv_use_iff='wxUSE_IFF=no'
10270 fi
10271
10272else
10273
10274 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10275 if test "x$LINE" != x ; then
10276 eval "DEFAULT_$LINE"
10277 else
10278 no_cache=1
10279 fi
10280
10281 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10282
10283fi;
10284
10285 eval "$ac_cv_use_iff"
10286 if test "$no_cache" != 1; then
10287 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10288 fi
10289
10290 if test "$wxUSE_IFF" = yes; then
10291 echo "$as_me:$LINENO: result: yes" >&5
10292echo "${ECHO_T}yes" >&6
10293 else
10294 echo "$as_me:$LINENO: result: no" >&5
10295echo "${ECHO_T}no" >&6
10296 fi
10297
10298
10299 enablestring=
10300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10301echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10302 no_cache=0
10303 # Check whether --enable-pnm or --disable-pnm was given.
10304if test "${enable_pnm+set}" = set; then
10305 enableval="$enable_pnm"
10306
10307 if test "$enableval" = yes; then
10308 ac_cv_use_pnm='wxUSE_PNM=yes'
10309 else
10310 ac_cv_use_pnm='wxUSE_PNM=no'
10311 fi
10312
10313else
10314
10315 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10316 if test "x$LINE" != x ; then
10317 eval "DEFAULT_$LINE"
10318 else
10319 no_cache=1
10320 fi
10321
10322 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10323
10324fi;
10325
10326 eval "$ac_cv_use_pnm"
10327 if test "$no_cache" != 1; then
10328 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10329 fi
10330
10331 if test "$wxUSE_PNM" = yes; then
10332 echo "$as_me:$LINENO: result: yes" >&5
10333echo "${ECHO_T}yes" >&6
10334 else
10335 echo "$as_me:$LINENO: result: no" >&5
10336echo "${ECHO_T}no" >&6
10337 fi
10338
10339
10340 enablestring=
10341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10342echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10343 no_cache=0
10344 # Check whether --enable-xpm or --disable-xpm was given.
10345if test "${enable_xpm+set}" = set; then
10346 enableval="$enable_xpm"
10347
10348 if test "$enableval" = yes; then
10349 ac_cv_use_xpm='wxUSE_XPM=yes'
10350 else
10351 ac_cv_use_xpm='wxUSE_XPM=no'
10352 fi
10353
10354else
10355
10356 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10357 if test "x$LINE" != x ; then
10358 eval "DEFAULT_$LINE"
10359 else
10360 no_cache=1
10361 fi
10362
10363 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10364
10365fi;
10366
10367 eval "$ac_cv_use_xpm"
10368 if test "$no_cache" != 1; then
10369 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10370 fi
10371
10372 if test "$wxUSE_XPM" = yes; then
10373 echo "$as_me:$LINENO: result: yes" >&5
10374echo "${ECHO_T}yes" >&6
10375 else
10376 echo "$as_me:$LINENO: result: no" >&5
10377echo "${ECHO_T}no" >&6
10378 fi
10379
10380
10381 enablestring=
10382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10383echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10384 no_cache=0
10385 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10386if test "${enable_ico_cur+set}" = set; then
10387 enableval="$enable_ico_cur"
10388
10389 if test "$enableval" = yes; then
10390 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10391 else
10392 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10393 fi
10394
10395else
10396
10397 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10398 if test "x$LINE" != x ; then
10399 eval "DEFAULT_$LINE"
10400 else
10401 no_cache=1
10402 fi
10403
10404 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10405
10406fi;
10407
10408 eval "$ac_cv_use_ico_cur"
10409 if test "$no_cache" != 1; then
10410 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10411 fi
10412
10413 if test "$wxUSE_ICO_CUR" = yes; then
10414 echo "$as_me:$LINENO: result: yes" >&5
10415echo "${ECHO_T}yes" >&6
10416 else
10417 echo "$as_me:$LINENO: result: no" >&5
10418echo "${ECHO_T}no" >&6
10419 fi
10420
10421
10422fi
10423
10424
10425
ceec2216
RL
10426# Check whether --with-flavour or --without-flavour was given.
10427if test "${with_flavour+set}" = set; then
10428 withval="$with_flavour"
10429 WX_FLAVOUR="$withval"
10430fi;
10431
10432
10433
a848cd7e
SC
10434 enablestring=
10435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10436echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10437 no_cache=0
10438 # Check whether --enable-official_build or --disable-official_build was given.
10439if test "${enable_official_build+set}" = set; then
10440 enableval="$enable_official_build"
10441
10442 if test "$enableval" = yes; then
10443 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10444 else
10445 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10446 fi
10447
10448else
10449
10450 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10451 if test "x$LINE" != x ; then
10452 eval "DEFAULT_$LINE"
10453 else
10454 no_cache=1
10455 fi
10456
10457 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10458
10459fi;
10460
10461 eval "$ac_cv_use_official_build"
10462 if test "$no_cache" != 1; then
10463 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10464 fi
10465
10466 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10467 echo "$as_me:$LINENO: result: yes" >&5
10468echo "${ECHO_T}yes" >&6
10469 else
10470 echo "$as_me:$LINENO: result: no" >&5
10471echo "${ECHO_T}no" >&6
10472 fi
10473
10474# Check whether --enable-vendor or --disable-vendor was given.
10475if test "${enable_vendor+set}" = set; then
10476 enableval="$enable_vendor"
10477 VENDOR="$enableval"
10478fi;
10479if test "x$VENDOR" = "x"; then
10480 VENDOR="custom"
10481fi
10482
a848cd7e
SC
10483
10484
10485
10486 echo "saving argument cache $wx_arg_cache_file"
10487 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10488
10489
10490
10491echo "$as_me:$LINENO: checking for toolkit" >&5
10492echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10493
10494# In Wine, we need to default to MSW, not GTK or MOTIF
10495if test "$wxUSE_WINE" = "yes"; then
10496 DEFAULT_DEFAULT_wxUSE_GTK=0
10497 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10498 DEFAULT_DEFAULT_wxUSE_MSW=1
10499 wxUSE_SHARED=no
10500fi
10501
f597b41c 10502
a848cd7e
SC
10503if test "$wxUSE_GUI" = "yes"; then
10504
10505 if test "$USE_BEOS" = 1; then
10506 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10507echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10508 { (exit 1); exit 1; }; }
10509 fi
10510
10511 if test "$TOOLKIT_GIVEN" = 1; then
10512 for toolkit in `echo $ALL_TOOLKITS`; do
10513 var=wxUSE_$toolkit
10514 eval "value=\$${var}"
f34ca037
MW
10515 if test "x$value" = "xno"; then
10516 eval "$var=0"
10517 elif test "x$value" != "x"; then
10518 eval "$var=1"
10519 fi
10520
10521 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10522 eval "wx${toolkit}_VERSION=$value"
10523 fi
a848cd7e
SC
10524 done
10525 else
10526 for toolkit in `echo $ALL_TOOLKITS`; do
10527 if test "$has_toolkit_in_cache" != 1; then
10528 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10529 else
10530 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10531
10532 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10533 if test "x$version" != "x"; then
10534 eval "wx${toolkit}_VERSION=$version"
10535 fi
a848cd7e
SC
10536 fi
10537 eval "wxUSE_$toolkit=\$${var}"
10538 done
10539 fi
10540
10541 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10542 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10543 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10544
10545 case "${host}" in
10546 *-pc-os2_emx | *-pc-os2-emx )
10547 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10548 esac
10549
10550 case "$NUM_TOOLKITS" in
10551 1)
10552 ;;
10553 0)
10554 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10555echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10556 { (exit 1); exit 1; }; }
10557 ;;
10558 *)
10559 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10560echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10561 { (exit 1); exit 1; }; }
10562 esac
10563
f34ca037
MW
10564 # to be removed when --disable-gtk2 isn't needed
10565 if test "x$wxUSE_GTK2" = "xyes"; then
10566 wxGTK_VERSION=2
10567 elif test "x$wxUSE_GTK2" = "xno"; then
10568 wxGTK_VERSION=1
10569 fi
10570
a848cd7e
SC
10571 for toolkit in `echo $ALL_TOOLKITS`; do
10572 var=wxUSE_$toolkit
10573 eval "value=\$${var}"
10574 if test "x$value" != x; then
10575 cache_var=CACHE_$toolkit
10576 eval "cache=\$${cache_var}"
10577 if test "$cache" = 1; then
10578 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10579 eval "version=\$wx${toolkit}_VERSION"
10580 if test "x$version" != "x"; then
10581 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10582 fi
a848cd7e
SC
10583 fi
10584 if test "$value" = 1; then
10585 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10586 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10587echo "${ECHO_T}$toolkit_echo" >&6
10588 fi
10589 fi
10590 done
10591else
10592 if test "x$host_alias" != "x"; then
10593 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10594echo "${ECHO_T}base ($host_alias hosted) only" >&6
10595 else
10596 echo "$as_me:$LINENO: result: base only" >&5
10597echo "${ECHO_T}base only" >&6
10598 fi
10599fi
10600
10601wants_win32=0
10602doesnt_want_win32=0
10603case "${host}" in
10604 *-*-cygwin*)
10605 if test "$wxUSE_MSW" = 1 ; then
10606 wants_win32=1
7275146d 10607 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10608 else
10609 doesnt_want_win32=1
10610 fi
10611 ;;
10612 *-*-mingw*)
10613 wants_win32=1
10614 ;;
10615esac
10616
10617if test "$wxUSE_WINE" = "yes"; then
10618 wants_win32=1
10619 CC=winegcc
10620 CXX=wineg++
10621 RESCOMP=wrc
10622 LDFLAGS_GUI="-mwindows"
10623fi
10624
10625if test "$wants_win32" = 1 ; then
10626 USE_UNIX=0
10627 USE_WIN32=1
10628 cat >>confdefs.h <<\_ACEOF
10629#define __WIN32__ 1
10630_ACEOF
10631
10632 cat >>confdefs.h <<\_ACEOF
10633#define __WIN95__ 1
10634_ACEOF
10635
10636 cat >>confdefs.h <<\_ACEOF
10637#define __WINDOWS__ 1
10638_ACEOF
10639
10640 cat >>confdefs.h <<\_ACEOF
10641#define __GNUWIN32__ 1
10642_ACEOF
10643
10644 cat >>confdefs.h <<\_ACEOF
10645#define STRICT 1
10646_ACEOF
10647
10648 cat >>confdefs.h <<\_ACEOF
10649#define WINVER 0x0400
10650_ACEOF
10651
10652fi
10653if test "$doesnt_want_win32" = 1 ; then
10654 USE_UNIX=1
10655 USE_WIN32=0
10656fi
10657
10658if test "$USE_UNIX" = 1 ; then
10659 wxUSE_UNIX=yes
10660 cat >>confdefs.h <<\_ACEOF
10661#define __UNIX__ 1
10662_ACEOF
10663
10664fi
10665
10666
10667cat >confcache <<\_ACEOF
10668# This file is a shell script that caches the results of configure
10669# tests run on this system so they can be shared between configure
10670# scripts and configure runs, see configure's option --config-cache.
10671# It is not useful on other systems. If it contains results you don't
10672# want to keep, you may remove or edit it.
10673#
10674# config.status only pays attention to the cache file if you give it
10675# the --recheck option to rerun configure.
10676#
10677# `ac_cv_env_foo' variables (set or unset) will be overridden when
10678# loading this file, other *unset* `ac_cv_foo' will be assigned the
10679# following values.
10680
10681_ACEOF
10682
10683# The following way of writing the cache mishandles newlines in values,
10684# but we know of no workaround that is simple, portable, and efficient.
10685# So, don't put newlines in cache variables' values.
10686# Ultrix sh set writes to stderr and can't be redirected directly,
10687# and sets the high bit in the cache file unless we assign to the vars.
10688{
10689 (set) 2>&1 |
10690 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10691 *ac_space=\ *)
10692 # `set' does not quote correctly, so add quotes (double-quote
10693 # substitution turns \\\\ into \\, and sed turns \\ into \).
10694 sed -n \
ac1cb8d3
VS
10695 "s/'/'\\\\''/g;
10696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10697 ;;
10698 *)
10699 # `set' quotes correctly as required by POSIX, so do not add quotes.
10700 sed -n \
ac1cb8d3 10701 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10702 ;;
10703 esac;
10704} |
10705 sed '
10706 t clear
10707 : clear
10708 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10709 t end
10710 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10711 : end' >>confcache
10712if diff $cache_file confcache >/dev/null 2>&1; then :; else
10713 if test -w $cache_file; then
10714 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10715 cat confcache >$cache_file
10716 else
10717 echo "not updating unwritable cache $cache_file"
10718 fi
10719fi
10720rm -f confcache
10721
10722if test "$build" != "$host" ; then
1e9e8aba 10723 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10724 CC=$host_alias-gcc
10725 CXX=$host_alias-c++
10726 AR=$host_alias-ar
10727 RANLIB=$host_alias-ranlib
10728 DLLTOOL=$host_alias-dlltool
10729 RESCOMP=$host_alias-windres
a848cd7e 10730 STRIP=$host_alias-strip
1e9e8aba
DE
10731 elif test "x$CC" '!=' "x"; then
10732 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10733 else
10734 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10735echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10736 { (exit 1); exit 1; }; }
10737 fi
10738fi
10739
10740CFLAGS=${CFLAGS:=}
6dcfc289
DE
10741
10742
10743 ac_ext=c
a848cd7e
SC
10744ac_cpp='$CPP $CPPFLAGS'
10745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10747ac_compiler_gnu=$ac_cv_c_compiler_gnu
10748if test -n "$ac_tool_prefix"; then
10749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10750set dummy ${ac_tool_prefix}gcc; ac_word=$2
10751echo "$as_me:$LINENO: checking for $ac_word" >&5
10752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10753if test "${ac_cv_prog_CC+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755else
10756 if test -n "$CC"; then
10757 ac_cv_prog_CC="$CC" # Let the user override the test.
10758else
10759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760for as_dir in $PATH
10761do
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
10765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 break 2
10769 fi
10770done
10771done
10772
10773fi
10774fi
10775CC=$ac_cv_prog_CC
10776if test -n "$CC"; then
10777 echo "$as_me:$LINENO: result: $CC" >&5
10778echo "${ECHO_T}$CC" >&6
10779else
10780 echo "$as_me:$LINENO: result: no" >&5
10781echo "${ECHO_T}no" >&6
10782fi
10783
10784fi
10785if test -z "$ac_cv_prog_CC"; then
10786 ac_ct_CC=$CC
10787 # Extract the first word of "gcc", so it can be a program name with args.
10788set dummy gcc; ac_word=$2
10789echo "$as_me:$LINENO: checking for $ac_word" >&5
10790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10791if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793else
10794 if test -n "$ac_ct_CC"; then
10795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10796else
10797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798for as_dir in $PATH
10799do
10800 IFS=$as_save_IFS
10801 test -z "$as_dir" && as_dir=.
10802 for ac_exec_ext in '' $ac_executable_extensions; do
10803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10804 ac_cv_prog_ac_ct_CC="gcc"
10805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10806 break 2
10807 fi
10808done
10809done
10810
10811fi
10812fi
10813ac_ct_CC=$ac_cv_prog_ac_ct_CC
10814if test -n "$ac_ct_CC"; then
10815 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10816echo "${ECHO_T}$ac_ct_CC" >&6
10817else
10818 echo "$as_me:$LINENO: result: no" >&5
10819echo "${ECHO_T}no" >&6
10820fi
10821
10822 CC=$ac_ct_CC
10823else
10824 CC="$ac_cv_prog_CC"
10825fi
10826
10827if test -z "$CC"; then
10828 if test -n "$ac_tool_prefix"; then
10829 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10830set dummy ${ac_tool_prefix}cc; ac_word=$2
10831echo "$as_me:$LINENO: checking for $ac_word" >&5
10832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10833if test "${ac_cv_prog_CC+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10835else
10836 if test -n "$CC"; then
10837 ac_cv_prog_CC="$CC" # Let the user override the test.
10838else
10839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840for as_dir in $PATH
10841do
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10846 ac_cv_prog_CC="${ac_tool_prefix}cc"
10847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10849 fi
10850done
10851done
10852
10853fi
10854fi
10855CC=$ac_cv_prog_CC
10856if test -n "$CC"; then
10857 echo "$as_me:$LINENO: result: $CC" >&5
10858echo "${ECHO_T}$CC" >&6
10859else
10860 echo "$as_me:$LINENO: result: no" >&5
10861echo "${ECHO_T}no" >&6
10862fi
10863
10864fi
10865if test -z "$ac_cv_prog_CC"; then
10866 ac_ct_CC=$CC
10867 # Extract the first word of "cc", so it can be a program name with args.
10868set dummy cc; ac_word=$2
10869echo "$as_me:$LINENO: checking for $ac_word" >&5
10870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10871if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873else
10874 if test -n "$ac_ct_CC"; then
10875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10876else
10877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878for as_dir in $PATH
10879do
10880 IFS=$as_save_IFS
10881 test -z "$as_dir" && as_dir=.
10882 for ac_exec_ext in '' $ac_executable_extensions; do
10883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10884 ac_cv_prog_ac_ct_CC="cc"
10885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10886 break 2
10887 fi
10888done
10889done
10890
10891fi
10892fi
10893ac_ct_CC=$ac_cv_prog_ac_ct_CC
10894if test -n "$ac_ct_CC"; then
10895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10896echo "${ECHO_T}$ac_ct_CC" >&6
10897else
10898 echo "$as_me:$LINENO: result: no" >&5
10899echo "${ECHO_T}no" >&6
10900fi
10901
10902 CC=$ac_ct_CC
10903else
10904 CC="$ac_cv_prog_CC"
10905fi
10906
10907fi
10908if test -z "$CC"; then
10909 # Extract the first word of "cc", so it can be a program name with args.
10910set dummy cc; ac_word=$2
10911echo "$as_me:$LINENO: checking for $ac_word" >&5
10912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10913if test "${ac_cv_prog_CC+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915else
10916 if test -n "$CC"; then
10917 ac_cv_prog_CC="$CC" # Let the user override the test.
10918else
10919 ac_prog_rejected=no
10920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921for as_dir in $PATH
10922do
10923 IFS=$as_save_IFS
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10928 ac_prog_rejected=yes
10929 continue
10930 fi
10931 ac_cv_prog_CC="cc"
10932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10933 break 2
10934 fi
10935done
10936done
10937
10938if test $ac_prog_rejected = yes; then
10939 # We found a bogon in the path, so make sure we never use it.
10940 set dummy $ac_cv_prog_CC
10941 shift
10942 if test $# != 0; then
10943 # We chose a different compiler from the bogus one.
10944 # However, it has the same basename, so the bogon will be chosen
10945 # first if we set CC to just the basename; use the full file name.
10946 shift
10947 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10948 fi
10949fi
10950fi
10951fi
10952CC=$ac_cv_prog_CC
10953if test -n "$CC"; then
10954 echo "$as_me:$LINENO: result: $CC" >&5
10955echo "${ECHO_T}$CC" >&6
10956else
10957 echo "$as_me:$LINENO: result: no" >&5
10958echo "${ECHO_T}no" >&6
10959fi
10960
10961fi
10962if test -z "$CC"; then
10963 if test -n "$ac_tool_prefix"; then
10964 for ac_prog in cl
10965 do
10966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10967set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10968echo "$as_me:$LINENO: checking for $ac_word" >&5
10969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10970if test "${ac_cv_prog_CC+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972else
10973 if test -n "$CC"; then
10974 ac_cv_prog_CC="$CC" # Let the user override the test.
10975else
10976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977for as_dir in $PATH
10978do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10983 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10985 break 2
10986 fi
10987done
10988done
10989
10990fi
10991fi
10992CC=$ac_cv_prog_CC
10993if test -n "$CC"; then
10994 echo "$as_me:$LINENO: result: $CC" >&5
10995echo "${ECHO_T}$CC" >&6
10996else
10997 echo "$as_me:$LINENO: result: no" >&5
10998echo "${ECHO_T}no" >&6
10999fi
11000
11001 test -n "$CC" && break
11002 done
11003fi
11004if test -z "$CC"; then
11005 ac_ct_CC=$CC
11006 for ac_prog in cl
11007do
11008 # Extract the first word of "$ac_prog", so it can be a program name with args.
11009set dummy $ac_prog; ac_word=$2
11010echo "$as_me:$LINENO: checking for $ac_word" >&5
11011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014else
11015 if test -n "$ac_ct_CC"; then
11016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11017else
11018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019for as_dir in $PATH
11020do
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
11023 for ac_exec_ext in '' $ac_executable_extensions; do
11024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11025 ac_cv_prog_ac_ct_CC="$ac_prog"
11026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11027 break 2
11028 fi
11029done
11030done
11031
11032fi
11033fi
11034ac_ct_CC=$ac_cv_prog_ac_ct_CC
11035if test -n "$ac_ct_CC"; then
11036 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11037echo "${ECHO_T}$ac_ct_CC" >&6
11038else
11039 echo "$as_me:$LINENO: result: no" >&5
11040echo "${ECHO_T}no" >&6
11041fi
11042
11043 test -n "$ac_ct_CC" && break
11044done
11045
11046 CC=$ac_ct_CC
11047fi
11048
11049fi
11050
11051
11052test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11053See \`config.log' for more details." >&5
11054echo "$as_me: error: no acceptable C compiler found in \$PATH
11055See \`config.log' for more details." >&2;}
11056 { (exit 1); exit 1; }; }
11057
11058# Provide some information about the compiler.
11059echo "$as_me:$LINENO:" \
11060 "checking for C compiler version" >&5
11061ac_compiler=`set X $ac_compile; echo $2`
11062{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11063 (eval $ac_compiler --version </dev/null >&5) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }
11067{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11068 (eval $ac_compiler -v </dev/null >&5) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }
11072{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11073 (eval $ac_compiler -V </dev/null >&5) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }
11077
11078cat >conftest.$ac_ext <<_ACEOF
11079/* confdefs.h. */
11080_ACEOF
11081cat confdefs.h >>conftest.$ac_ext
11082cat >>conftest.$ac_ext <<_ACEOF
11083/* end confdefs.h. */
11084
11085int
11086main ()
11087{
11088
11089 ;
11090 return 0;
11091}
11092_ACEOF
11093ac_clean_files_save=$ac_clean_files
11094ac_clean_files="$ac_clean_files a.out a.exe b.out"
11095# Try to create an executable without -o first, disregard a.out.
11096# It will help us diagnose broken compilers, and finding out an intuition
11097# of exeext.
ac1cb8d3
VS
11098echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11099echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11100ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11101if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11102 (eval $ac_link_default) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; then
11106 # Find the output, starting from the most likely. This scheme is
11107# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11108# resort.
11109
11110# Be careful to initialize this variable, since it used to be cached.
11111# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11112ac_cv_exeext=
11113# b.out is created by i960 compilers.
11114for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11115do
11116 test -f "$ac_file" || continue
11117 case $ac_file in
11118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11119 ;;
a848cd7e 11120 conftest.$ac_ext )
ac1cb8d3
VS
11121 # This is the source file.
11122 ;;
a848cd7e 11123 [ab].out )
ac1cb8d3
VS
11124 # We found the default executable, but exeext='' is most
11125 # certainly right.
11126 break;;
a848cd7e 11127 *.* )
ac1cb8d3
VS
11128 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11129 # FIXME: I believe we export ac_cv_exeext for Libtool,
11130 # but it would be cool to find out if it's true. Does anybody
11131 # maintain Libtool? --akim.
11132 export ac_cv_exeext
11133 break;;
a848cd7e 11134 * )
ac1cb8d3 11135 break;;
a848cd7e
SC
11136 esac
11137done
11138else
11139 echo "$as_me: failed program was:" >&5
11140sed 's/^/| /' conftest.$ac_ext >&5
11141
11142{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11143See \`config.log' for more details." >&5
11144echo "$as_me: error: C compiler cannot create executables
11145See \`config.log' for more details." >&2;}
11146 { (exit 77); exit 77; }; }
11147fi
11148
11149ac_exeext=$ac_cv_exeext
11150echo "$as_me:$LINENO: result: $ac_file" >&5
11151echo "${ECHO_T}$ac_file" >&6
11152
11153# Check the compiler produces executables we can run. If not, either
11154# the compiler is broken, or we cross compile.
11155echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11156echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11157# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11158# If not cross compiling, check that we can run a simple program.
11159if test "$cross_compiling" != yes; then
11160 if { ac_try='./$ac_file'
11161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 cross_compiling=no
11167 else
11168 if test "$cross_compiling" = maybe; then
11169 cross_compiling=yes
11170 else
11171 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11172If you meant to cross compile, use \`--host'.
11173See \`config.log' for more details." >&5
11174echo "$as_me: error: cannot run C compiled programs.
11175If you meant to cross compile, use \`--host'.
11176See \`config.log' for more details." >&2;}
11177 { (exit 1); exit 1; }; }
11178 fi
11179 fi
11180fi
11181echo "$as_me:$LINENO: result: yes" >&5
11182echo "${ECHO_T}yes" >&6
11183
11184rm -f a.out a.exe conftest$ac_cv_exeext b.out
11185ac_clean_files=$ac_clean_files_save
11186# Check the compiler produces executables we can run. If not, either
11187# the compiler is broken, or we cross compile.
11188echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11189echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11190echo "$as_me:$LINENO: result: $cross_compiling" >&5
11191echo "${ECHO_T}$cross_compiling" >&6
11192
11193echo "$as_me:$LINENO: checking for suffix of executables" >&5
11194echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11196 (eval $ac_link) 2>&5
11197 ac_status=$?
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; then
11200 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11201# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11202# work properly (i.e., refer to `conftest.exe'), while it won't with
11203# `rm'.
11204for ac_file in conftest.exe conftest conftest.*; do
11205 test -f "$ac_file" || continue
11206 case $ac_file in
11207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11208 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11209 export ac_cv_exeext
11210 break;;
a848cd7e
SC
11211 * ) break;;
11212 esac
11213done
11214else
11215 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11216See \`config.log' for more details." >&5
11217echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11218See \`config.log' for more details." >&2;}
11219 { (exit 1); exit 1; }; }
11220fi
11221
11222rm -f conftest$ac_cv_exeext
11223echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11224echo "${ECHO_T}$ac_cv_exeext" >&6
11225
11226rm -f conftest.$ac_ext
11227EXEEXT=$ac_cv_exeext
11228ac_exeext=$EXEEXT
11229echo "$as_me:$LINENO: checking for suffix of object files" >&5
11230echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11231if test "${ac_cv_objext+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233else
11234 cat >conftest.$ac_ext <<_ACEOF
11235/* confdefs.h. */
11236_ACEOF
11237cat confdefs.h >>conftest.$ac_ext
11238cat >>conftest.$ac_ext <<_ACEOF
11239/* end confdefs.h. */
11240
11241int
11242main ()
11243{
11244
11245 ;
11246 return 0;
11247}
11248_ACEOF
11249rm -f conftest.o conftest.obj
11250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251 (eval $ac_compile) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; then
11255 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11256 case $ac_file in
11257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11258 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11259 break;;
11260 esac
11261done
11262else
11263 echo "$as_me: failed program was:" >&5
11264sed 's/^/| /' conftest.$ac_ext >&5
11265
11266{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11267See \`config.log' for more details." >&5
11268echo "$as_me: error: cannot compute suffix of object files: cannot compile
11269See \`config.log' for more details." >&2;}
11270 { (exit 1); exit 1; }; }
11271fi
11272
11273rm -f conftest.$ac_cv_objext conftest.$ac_ext
11274fi
11275echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11276echo "${ECHO_T}$ac_cv_objext" >&6
11277OBJEXT=$ac_cv_objext
11278ac_objext=$OBJEXT
11279echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11280echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11281if test "${ac_cv_c_compiler_gnu+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283else
11284 cat >conftest.$ac_ext <<_ACEOF
11285/* confdefs.h. */
11286_ACEOF
11287cat confdefs.h >>conftest.$ac_ext
11288cat >>conftest.$ac_ext <<_ACEOF
11289/* end confdefs.h. */
11290
11291int
11292main ()
11293{
11294#ifndef __GNUC__
11295 choke me
11296#endif
11297
11298 ;
11299 return 0;
11300}
11301_ACEOF
11302rm -f conftest.$ac_objext
11303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11304 (eval $ac_compile) 2>conftest.er1
a848cd7e 11305 ac_status=$?
ac1cb8d3
VS
11306 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1
11308 cat conftest.err >&5
a848cd7e
SC
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
6ebeb4c7 11311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; } &&
11317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 ac_compiler_gnu=yes
11324else
11325 echo "$as_me: failed program was:" >&5
11326sed 's/^/| /' conftest.$ac_ext >&5
11327
11328ac_compiler_gnu=no
11329fi
ac1cb8d3 11330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11331ac_cv_c_compiler_gnu=$ac_compiler_gnu
11332
11333fi
11334echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11335echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11336GCC=`test $ac_compiler_gnu = yes && echo yes`
11337ac_test_CFLAGS=${CFLAGS+set}
11338ac_save_CFLAGS=$CFLAGS
efdf6afe 11339CFLAGS="-g"
a848cd7e
SC
11340echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11341echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11342if test "${ac_cv_prog_cc_g+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11344else
11345 cat >conftest.$ac_ext <<_ACEOF
11346/* confdefs.h. */
11347_ACEOF
11348cat confdefs.h >>conftest.$ac_ext
11349cat >>conftest.$ac_ext <<_ACEOF
11350/* end confdefs.h. */
11351
11352int
11353main ()
11354{
11355
11356 ;
11357 return 0;
11358}
11359_ACEOF
11360rm -f conftest.$ac_objext
11361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11362 (eval $ac_compile) 2>conftest.er1
a848cd7e 11363 ac_status=$?
ac1cb8d3
VS
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
a848cd7e
SC
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
6ebeb4c7 11369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_cv_prog_cc_g=yes
11382else
11383 echo "$as_me: failed program was:" >&5
11384sed 's/^/| /' conftest.$ac_ext >&5
11385
11386ac_cv_prog_cc_g=no
11387fi
ac1cb8d3 11388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11389fi
11390echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11391echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11392if test "$ac_test_CFLAGS" = set; then
11393 CFLAGS=$ac_save_CFLAGS
11394elif test $ac_cv_prog_cc_g = yes; then
11395 if test "$GCC" = yes; then
11396 CFLAGS="-g -O2"
11397 else
11398 CFLAGS="-g"
11399 fi
11400else
11401 if test "$GCC" = yes; then
11402 CFLAGS="-O2"
11403 else
11404 CFLAGS=
11405 fi
11406fi
11407echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11408echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11409if test "${ac_cv_prog_cc_stdc+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411else
11412 ac_cv_prog_cc_stdc=no
11413ac_save_CC=$CC
11414cat >conftest.$ac_ext <<_ACEOF
11415/* confdefs.h. */
11416_ACEOF
11417cat confdefs.h >>conftest.$ac_ext
11418cat >>conftest.$ac_ext <<_ACEOF
11419/* end confdefs.h. */
11420#include <stdarg.h>
11421#include <stdio.h>
11422#include <sys/types.h>
11423#include <sys/stat.h>
11424/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11425struct buf { int x; };
11426FILE * (*rcsopen) (struct buf *, struct stat *, int);
11427static char *e (p, i)
11428 char **p;
11429 int i;
11430{
11431 return p[i];
11432}
11433static char *f (char * (*g) (char **, int), char **p, ...)
11434{
11435 char *s;
11436 va_list v;
11437 va_start (v,p);
11438 s = g (p, va_arg (v,int));
11439 va_end (v);
11440 return s;
11441}
ac1cb8d3
VS
11442
11443/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11444 function prototypes and stuff, but not '\xHH' hex character constants.
11445 These don't provoke an error unfortunately, instead are silently treated
11446 as 'x'. The following induces an error, until -std1 is added to get
11447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11448 array size at least. It's necessary to write '\x00'==0 to get something
11449 that's true only with -std1. */
11450int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11451
a848cd7e
SC
11452int test (int i, double x);
11453struct s1 {int (*f) (int a);};
11454struct s2 {int (*f) (double a);};
11455int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11456int argc;
11457char **argv;
11458int
11459main ()
11460{
11461return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11462 ;
11463 return 0;
11464}
11465_ACEOF
11466# Don't try gcc -ansi; that turns off useful extensions and
11467# breaks some systems' header files.
11468# AIX -qlanglvl=ansi
11469# Ultrix and OSF/1 -std1
11470# HP-UX 10.20 and later -Ae
11471# HP-UX older versions -Aa -D_HPUX_SOURCE
11472# SVR4 -Xc -D__EXTENSIONS__
11473for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11474do
11475 CC="$ac_save_CC $ac_arg"
11476 rm -f conftest.$ac_objext
11477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11478 (eval $ac_compile) 2>conftest.er1
a848cd7e 11479 ac_status=$?
ac1cb8d3
VS
11480 grep -v '^ *+' conftest.er1 >conftest.err
11481 rm -f conftest.er1
11482 cat conftest.err >&5
a848cd7e
SC
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } &&
6ebeb4c7 11485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; } &&
11491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_cv_prog_cc_stdc=$ac_arg
11498break
11499else
11500 echo "$as_me: failed program was:" >&5
11501sed 's/^/| /' conftest.$ac_ext >&5
11502
11503fi
ac1cb8d3 11504rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11505done
11506rm -f conftest.$ac_ext conftest.$ac_objext
11507CC=$ac_save_CC
11508
11509fi
11510
11511case "x$ac_cv_prog_cc_stdc" in
11512 x|xno)
11513 echo "$as_me:$LINENO: result: none needed" >&5
11514echo "${ECHO_T}none needed" >&6 ;;
11515 *)
11516 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11517echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11518 CC="$CC $ac_cv_prog_cc_stdc" ;;
11519esac
11520
11521# Some people use a C++ compiler to compile C. Since we use `exit',
11522# in C++ we need to declare it. In case someone uses the same compiler
11523# for both compiling C and C++ we need to have the C++ compiler decide
11524# the declaration of exit, since it's the most demanding environment.
11525cat >conftest.$ac_ext <<_ACEOF
11526#ifndef __cplusplus
11527 choke me
11528#endif
11529_ACEOF
11530rm -f conftest.$ac_objext
11531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11532 (eval $ac_compile) 2>conftest.er1
a848cd7e 11533 ac_status=$?
ac1cb8d3
VS
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
a848cd7e
SC
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
6ebeb4c7 11539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; }; then
11551 for ac_declaration in \
ac1cb8d3 11552 '' \
a848cd7e
SC
11553 'extern "C" void std::exit (int) throw (); using std::exit;' \
11554 'extern "C" void std::exit (int); using std::exit;' \
11555 'extern "C" void exit (int) throw ();' \
11556 'extern "C" void exit (int);' \
11557 'void exit (int);'
11558do
11559 cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
de59c161 11565$ac_declaration
ac1cb8d3 11566#include <stdlib.h>
a848cd7e
SC
11567int
11568main ()
11569{
11570exit (42);
11571 ;
11572 return 0;
11573}
11574_ACEOF
11575rm -f conftest.$ac_objext
11576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11577 (eval $ac_compile) 2>conftest.er1
a848cd7e 11578 ac_status=$?
ac1cb8d3
VS
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
a848cd7e
SC
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
6ebeb4c7 11584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11587 ac_status=$?
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; } &&
11590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 :
11597else
11598 echo "$as_me: failed program was:" >&5
11599sed 's/^/| /' conftest.$ac_ext >&5
11600
11601continue
11602fi
ac1cb8d3 11603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11604 cat >conftest.$ac_ext <<_ACEOF
11605/* confdefs.h. */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h. */
11610$ac_declaration
11611int
11612main ()
11613{
11614exit (42);
11615 ;
11616 return 0;
11617}
11618_ACEOF
11619rm -f conftest.$ac_objext
11620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11621 (eval $ac_compile) 2>conftest.er1
a848cd7e 11622 ac_status=$?
ac1cb8d3
VS
11623 grep -v '^ *+' conftest.er1 >conftest.err
11624 rm -f conftest.er1
11625 cat conftest.err >&5
a848cd7e
SC
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } &&
6ebeb4c7 11628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; }; then
11640 break
11641else
11642 echo "$as_me: failed program was:" >&5
11643sed 's/^/| /' conftest.$ac_ext >&5
11644
11645fi
ac1cb8d3 11646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11647done
11648rm -f conftest*
11649if test -n "$ac_declaration"; then
11650 echo '#ifdef __cplusplus' >>confdefs.h
11651 echo $ac_declaration >>confdefs.h
11652 echo '#endif' >>confdefs.h
11653fi
11654
11655else
11656 echo "$as_me: failed program was:" >&5
11657sed 's/^/| /' conftest.$ac_ext >&5
11658
11659fi
ac1cb8d3 11660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11661ac_ext=c
11662ac_cpp='$CPP $CPPFLAGS'
11663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11665ac_compiler_gnu=$ac_cv_c_compiler_gnu
11666
6dcfc289 11667 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11668echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11669if test "${wx_cv_c_exto+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671else
11672 cat >conftest.$ac_ext <<_ACEOF
11673/* confdefs.h. */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h. */
11678
11679int
11680main ()
11681{
11682
11683 ;
11684 return 0;
11685}
11686_ACEOF
11687rm -f conftest.$ac_objext conftest.$ac_ext.o
11688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11689 (eval $ac_compile) 2>&5
11690 ac_status=$?
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; then
11693 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11694 case $ac_file in
11695 conftest.$ac_ext.o)
11696 wx_cv_c_exto="-ext o"
11697 ;;
11698 *)
11699 ;;
11700 esac
11701done
11702else
11703 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11704See \`config.log' for more details." >&5
11705echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11706See \`config.log' for more details." >&2;}
11707 { (exit 1); exit 1; }; }
11708
11709fi
11710
11711rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11712
11713fi
11714echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11715echo "${ECHO_T}$wx_cv_c_exto" >&6
11716if test "x$wx_cv_c_exto" '!=' "x"; then
11717 if test "c" = "c"; then
11718 CFLAGS="$wx_cv_c_exto $CFLAGS"
11719 fi
11720 if test "c" = "cxx"; then
11721 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11722 fi
11723fi
11724
6dcfc289
DE
11725 if test "x$wx_cv_c_exto" '!=' "x"; then
11726 unset ac_cv_prog_cc_g
11727 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11728ac_save_CFLAGS=$CFLAGS
efdf6afe 11729CFLAGS="-g"
480ccd21
DE
11730echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11731echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11732if test "${ac_cv_prog_cc_g+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734else
11735 cat >conftest.$ac_ext <<_ACEOF
11736/* confdefs.h. */
11737_ACEOF
11738cat confdefs.h >>conftest.$ac_ext
11739cat >>conftest.$ac_ext <<_ACEOF
11740/* end confdefs.h. */
11741
11742int
11743main ()
11744{
11745
11746 ;
11747 return 0;
11748}
11749_ACEOF
11750rm -f conftest.$ac_objext
11751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11752 (eval $ac_compile) 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
6ebeb4c7 11759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; } &&
11765 { ac_try='test -s conftest.$ac_objext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_cv_prog_cc_g=yes
11772else
11773 echo "$as_me: failed program was:" >&5
11774sed 's/^/| /' conftest.$ac_ext >&5
11775
11776ac_cv_prog_cc_g=no
11777fi
11778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11779fi
11780echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11781echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11782if test "$ac_test_CFLAGS" = set; then
11783 CFLAGS=$ac_save_CFLAGS
11784elif test $ac_cv_prog_cc_g = yes; then
11785 if test "$GCC" = yes; then
11786 CFLAGS="-g -O2"
11787 else
11788 CFLAGS="-g"
11789 fi
11790else
11791 if test "$GCC" = yes; then
11792 CFLAGS="-O2"
11793 else
11794 CFLAGS=
11795 fi
11796fi
6dcfc289
DE
11797 fi
11798 ac_ext=c
95986553
DE
11799ac_cpp='$CPP $CPPFLAGS'
11800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11802ac_compiler_gnu=$ac_cv_c_compiler_gnu
11803
11804echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11805echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11806if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808else
11809 cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h. */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h. */
11815
11816int
11817main ()
11818{
11819#ifndef __MWERKS__
11820 choke me
11821#endif
11822
11823 ;
11824 return 0;
11825}
11826_ACEOF
11827rm -f conftest.$ac_objext
11828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829 (eval $ac_compile) 2>conftest.er1
11830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
6ebeb4c7 11836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest.$ac_objext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 bakefile_compiler_mwerks=yes
11849else
11850 echo "$as_me: failed program was:" >&5
11851sed 's/^/| /' conftest.$ac_ext >&5
11852
11853bakefile_compiler_mwerks=no
11854fi
11855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11856 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11857
11858fi
11859echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11860echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11861
0e6fa1d9 11862MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11863ac_ext=c
11864ac_cpp='$CPP $CPPFLAGS'
11865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11867ac_compiler_gnu=$ac_cv_c_compiler_gnu
11868
11869
6dcfc289 11870 ac_ext=c
9273ffba
DE
11871ac_cpp='$CPP $CPPFLAGS'
11872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11874ac_compiler_gnu=$ac_cv_c_compiler_gnu
11875
11876echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11877echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11878if test "${wx_cv_c_compiler_xlc+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880else
11881 cat >conftest.$ac_ext <<_ACEOF
11882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
11887
11888int
11889main ()
11890{
11891#ifndef __xlC__
11892 choke me
11893#endif
11894
11895 ;
11896 return 0;
11897}
11898_ACEOF
11899rm -f conftest.$ac_objext
11900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901 (eval $ac_compile) 2>conftest.er1
11902 ac_status=$?
11903 grep -v '^ *+' conftest.er1 >conftest.err
11904 rm -f conftest.er1
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
6ebeb4c7 11908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest.$ac_objext'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 wx_compiler_xlc=yes
11921else
11922 echo "$as_me: failed program was:" >&5
11923sed 's/^/| /' conftest.$ac_ext >&5
11924
11925wx_compiler_xlc=no
11926fi
11927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11928 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11929
11930fi
11931echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11932echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11933
0e6fa1d9 11934XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11935ac_ext=c
11936ac_cpp='$CPP $CPPFLAGS'
11937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11939ac_compiler_gnu=$ac_cv_c_compiler_gnu
11940
11941
a848cd7e 11942
6dcfc289 11943
a9e5b1f0
MW
11944 ac_ext=c
11945ac_cpp='$CPP $CPPFLAGS'
11946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949
11950 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
11951echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
11952if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954else
11955 cat >conftest.$ac_ext <<_ACEOF
11956/* confdefs.h. */
11957_ACEOF
11958cat confdefs.h >>conftest.$ac_ext
11959cat >>conftest.$ac_ext <<_ACEOF
11960/* end confdefs.h. */
11961
11962int
11963main ()
11964{
11965
11966 #ifndef __SUNPRO_C
11967 choke me
11968 #endif
11969
11970 ;
11971 return 0;
11972}
11973_ACEOF
11974rm -f conftest.$ac_objext
11975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11976 (eval $ac_compile) 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
6ebeb4c7 11983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; } &&
11989 { ac_try='test -s conftest.$ac_objext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 bakefile_cv_c_compiler___SUNPRO_C=yes
11996else
11997 echo "$as_me: failed program was:" >&5
11998sed 's/^/| /' conftest.$ac_ext >&5
11999
12000bakefile_cv_c_compiler___SUNPRO_C=no
12001
12002fi
12003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12004
12005
12006fi
12007echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12008echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12009 ac_ext=c
12010ac_cpp='$CPP $CPPFLAGS'
12011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12013ac_compiler_gnu=$ac_cv_c_compiler_gnu
12014
12015 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12016 :; SUNCC=yes
12017 else
12018 :;
12019 fi
12020
12021
12022
12023
a848cd7e
SC
12024ac_ext=c
12025ac_cpp='$CPP $CPPFLAGS'
12026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12028ac_compiler_gnu=$ac_cv_c_compiler_gnu
12029echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12030echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12031# On Suns, sometimes $CPP names a directory.
12032if test -n "$CPP" && test -d "$CPP"; then
12033 CPP=
12034fi
12035if test -z "$CPP"; then
12036 if test "${ac_cv_prog_CPP+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038else
12039 # Double quotes because CPP needs to be expanded
12040 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12041 do
12042 ac_preproc_ok=false
12043for ac_c_preproc_warn_flag in '' yes
12044do
12045 # Use a header file that comes with gcc, so configuring glibc
12046 # with a fresh cross-compiler works.
12047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12048 # <limits.h> exists even on freestanding compilers.
12049 # On the NeXT, cc -E runs the code through the compiler's parser,
12050 # not just through cpp. "Syntax error" is here to catch this case.
12051 cat >conftest.$ac_ext <<_ACEOF
12052/* confdefs.h. */
12053_ACEOF
12054cat confdefs.h >>conftest.$ac_ext
12055cat >>conftest.$ac_ext <<_ACEOF
12056/* end confdefs.h. */
12057#ifdef __STDC__
12058# include <limits.h>
12059#else
12060# include <assert.h>
12061#endif
ac1cb8d3 12062 Syntax error
a848cd7e
SC
12063_ACEOF
12064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12066 ac_status=$?
12067 grep -v '^ *+' conftest.er1 >conftest.err
12068 rm -f conftest.er1
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } >/dev/null; then
12072 if test -s conftest.err; then
12073 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12075 else
12076 ac_cpp_err=
12077 fi
12078else
12079 ac_cpp_err=yes
12080fi
12081if test -z "$ac_cpp_err"; then
12082 :
12083else
12084 echo "$as_me: failed program was:" >&5
12085sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 # Broken: fails on valid input.
12088continue
12089fi
12090rm -f conftest.err conftest.$ac_ext
12091
12092 # OK, works on sane cases. Now check whether non-existent headers
12093 # can be detected and how.
12094 cat >conftest.$ac_ext <<_ACEOF
12095/* confdefs.h. */
12096_ACEOF
12097cat confdefs.h >>conftest.$ac_ext
12098cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h. */
12100#include <ac_nonexistent.h>
12101_ACEOF
12102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12104 ac_status=$?
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } >/dev/null; then
12110 if test -s conftest.err; then
12111 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12113 else
12114 ac_cpp_err=
12115 fi
12116else
12117 ac_cpp_err=yes
12118fi
12119if test -z "$ac_cpp_err"; then
12120 # Broken: success on invalid input.
12121continue
12122else
12123 echo "$as_me: failed program was:" >&5
12124sed 's/^/| /' conftest.$ac_ext >&5
12125
12126 # Passes both tests.
12127ac_preproc_ok=:
12128break
12129fi
12130rm -f conftest.err conftest.$ac_ext
12131
12132done
12133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12134rm -f conftest.err conftest.$ac_ext
12135if $ac_preproc_ok; then
12136 break
12137fi
12138
12139 done
12140 ac_cv_prog_CPP=$CPP
12141
12142fi
12143 CPP=$ac_cv_prog_CPP
12144else
12145 ac_cv_prog_CPP=$CPP
12146fi
12147echo "$as_me:$LINENO: result: $CPP" >&5
12148echo "${ECHO_T}$CPP" >&6
12149ac_preproc_ok=false
12150for ac_c_preproc_warn_flag in '' yes
12151do
12152 # Use a header file that comes with gcc, so configuring glibc
12153 # with a fresh cross-compiler works.
12154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12155 # <limits.h> exists even on freestanding compilers.
12156 # On the NeXT, cc -E runs the code through the compiler's parser,
12157 # not just through cpp. "Syntax error" is here to catch this case.
12158 cat >conftest.$ac_ext <<_ACEOF
12159/* confdefs.h. */
12160_ACEOF
12161cat confdefs.h >>conftest.$ac_ext
12162cat >>conftest.$ac_ext <<_ACEOF
12163/* end confdefs.h. */
12164#ifdef __STDC__
12165# include <limits.h>
12166#else
12167# include <assert.h>
12168#endif
ac1cb8d3 12169 Syntax error
a848cd7e
SC
12170_ACEOF
12171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } >/dev/null; then
12179 if test -s conftest.err; then
12180 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12182 else
12183 ac_cpp_err=
12184 fi
12185else
12186 ac_cpp_err=yes
12187fi
12188if test -z "$ac_cpp_err"; then
12189 :
12190else
12191 echo "$as_me: failed program was:" >&5
12192sed 's/^/| /' conftest.$ac_ext >&5
12193
12194 # Broken: fails on valid input.
12195continue
12196fi
12197rm -f conftest.err conftest.$ac_ext
12198
12199 # OK, works on sane cases. Now check whether non-existent headers
12200 # can be detected and how.
12201 cat >conftest.$ac_ext <<_ACEOF
12202/* confdefs.h. */
12203_ACEOF
12204cat confdefs.h >>conftest.$ac_ext
12205cat >>conftest.$ac_ext <<_ACEOF
12206/* end confdefs.h. */
12207#include <ac_nonexistent.h>
12208_ACEOF
12209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } >/dev/null; then
12217 if test -s conftest.err; then
12218 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12220 else
12221 ac_cpp_err=
12222 fi
12223else
12224 ac_cpp_err=yes
12225fi
12226if test -z "$ac_cpp_err"; then
12227 # Broken: success on invalid input.
12228continue
12229else
12230 echo "$as_me: failed program was:" >&5
12231sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 # Passes both tests.
12234ac_preproc_ok=:
12235break
12236fi
12237rm -f conftest.err conftest.$ac_ext
12238
12239done
12240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12241rm -f conftest.err conftest.$ac_ext
12242if $ac_preproc_ok; then
12243 :
12244else
12245 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12246See \`config.log' for more details." >&5
12247echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12248See \`config.log' for more details." >&2;}
12249 { (exit 1); exit 1; }; }
12250fi
12251
12252ac_ext=c
12253ac_cpp='$CPP $CPPFLAGS'
12254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12256ac_compiler_gnu=$ac_cv_c_compiler_gnu
12257
12258
12259echo "$as_me:$LINENO: checking for egrep" >&5
12260echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12261if test "${ac_cv_prog_egrep+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263else
12264 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12265 then ac_cv_prog_egrep='grep -E'
12266 else ac_cv_prog_egrep='egrep'
12267 fi
12268fi
12269echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12270echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12271 EGREP=$ac_cv_prog_egrep
12272
12273
12274if test $ac_cv_c_compiler_gnu = yes; then
12275 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12276echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12277if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12279else
12280 ac_pattern="Autoconf.*'x'"
12281 cat >conftest.$ac_ext <<_ACEOF
12282/* confdefs.h. */
12283_ACEOF
12284cat confdefs.h >>conftest.$ac_ext
12285cat >>conftest.$ac_ext <<_ACEOF
12286/* end confdefs.h. */
12287#include <sgtty.h>
12288Autoconf TIOCGETP
12289_ACEOF
12290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12291 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12292 ac_cv_prog_gcc_traditional=yes
12293else
12294 ac_cv_prog_gcc_traditional=no
12295fi
12296rm -f conftest*
12297
12298
12299 if test $ac_cv_prog_gcc_traditional = no; then
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#include <termio.h>
12307Autoconf TCGETA
12308_ACEOF
12309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12310 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12311 ac_cv_prog_gcc_traditional=yes
12312fi
12313rm -f conftest*
12314
12315 fi
12316fi
12317echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12318echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12319 if test $ac_cv_prog_gcc_traditional = yes; then
12320 CC="$CC -traditional"
12321 fi
12322fi
12323
12324
12325
12326
12327ac_ext=cc
12328ac_cpp='$CXXCPP $CPPFLAGS'
12329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12332
12333
12334CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12335
12336
12337 ac_ext=cc
a848cd7e
SC
12338ac_cpp='$CXXCPP $CPPFLAGS'
12339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12342if test -n "$ac_tool_prefix"; then
12343 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12344 do
12345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12346set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12347echo "$as_me:$LINENO: checking for $ac_word" >&5
12348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12349if test "${ac_cv_prog_CXX+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12351else
12352 if test -n "$CXX"; then
12353 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12354else
12355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356for as_dir in $PATH
12357do
12358 IFS=$as_save_IFS
12359 test -z "$as_dir" && as_dir=.
12360 for ac_exec_ext in '' $ac_executable_extensions; do
12361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12362 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12364 break 2
12365 fi
12366done
12367done
12368
12369fi
12370fi
12371CXX=$ac_cv_prog_CXX
12372if test -n "$CXX"; then
12373 echo "$as_me:$LINENO: result: $CXX" >&5
12374echo "${ECHO_T}$CXX" >&6
12375else
12376 echo "$as_me:$LINENO: result: no" >&5
12377echo "${ECHO_T}no" >&6
12378fi
12379
12380 test -n "$CXX" && break
12381 done
12382fi
12383if test -z "$CXX"; then
12384 ac_ct_CXX=$CXX
12385 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12386do
12387 # Extract the first word of "$ac_prog", so it can be a program name with args.
12388set dummy $ac_prog; ac_word=$2
12389echo "$as_me:$LINENO: checking for $ac_word" >&5
12390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12391if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393else
12394 if test -n "$ac_ct_CXX"; then
12395 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12396else
12397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398for as_dir in $PATH
12399do
12400 IFS=$as_save_IFS
12401 test -z "$as_dir" && as_dir=.
12402 for ac_exec_ext in '' $ac_executable_extensions; do
12403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12404 ac_cv_prog_ac_ct_CXX="$ac_prog"
12405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12406 break 2
12407 fi
12408done
12409done
12410
12411fi
12412fi
12413ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12414if test -n "$ac_ct_CXX"; then
12415 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12416echo "${ECHO_T}$ac_ct_CXX" >&6
12417else
12418 echo "$as_me:$LINENO: result: no" >&5
12419echo "${ECHO_T}no" >&6
12420fi
12421
12422 test -n "$ac_ct_CXX" && break
12423done
12424test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12425
12426 CXX=$ac_ct_CXX
12427fi
12428
12429
12430# Provide some information about the compiler.
12431echo "$as_me:$LINENO:" \
12432 "checking for C++ compiler version" >&5
12433ac_compiler=`set X $ac_compile; echo $2`
12434{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12435 (eval $ac_compiler --version </dev/null >&5) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }
12439{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12440 (eval $ac_compiler -v </dev/null >&5) 2>&5
12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }
12444{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12445 (eval $ac_compiler -V </dev/null >&5) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }
12449
12450echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12451echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12452if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12453 echo $ECHO_N "(cached) $ECHO_C" >&6
12454else
12455 cat >conftest.$ac_ext <<_ACEOF
12456/* confdefs.h. */
12457_ACEOF
12458cat confdefs.h >>conftest.$ac_ext
12459cat >>conftest.$ac_ext <<_ACEOF
12460/* end confdefs.h. */
12461
12462int
12463main ()
12464{
12465#ifndef __GNUC__
12466 choke me
12467#endif
12468
12469 ;
12470 return 0;
12471}
12472_ACEOF
12473rm -f conftest.$ac_objext
12474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12475 (eval $ac_compile) 2>conftest.er1
a848cd7e 12476 ac_status=$?
ac1cb8d3
VS
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
a848cd7e
SC
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
6ebeb4c7 12482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_compiler_gnu=yes
12495else
12496 echo "$as_me: failed program was:" >&5
12497sed 's/^/| /' conftest.$ac_ext >&5
12498
12499ac_compiler_gnu=no
12500fi
ac1cb8d3 12501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12502ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12503
12504fi
12505echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12506echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12507GXX=`test $ac_compiler_gnu = yes && echo yes`
12508ac_test_CXXFLAGS=${CXXFLAGS+set}
12509ac_save_CXXFLAGS=$CXXFLAGS
12510CXXFLAGS="-g"
12511echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12512echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12513if test "${ac_cv_prog_cxx_g+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515else
12516 cat >conftest.$ac_ext <<_ACEOF
12517/* confdefs.h. */
12518_ACEOF
12519cat confdefs.h >>conftest.$ac_ext
12520cat >>conftest.$ac_ext <<_ACEOF
12521/* end confdefs.h. */
12522
12523int
12524main ()
12525{
12526
12527 ;
12528 return 0;
12529}
12530_ACEOF
12531rm -f conftest.$ac_objext
12532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12533 (eval $ac_compile) 2>conftest.er1
a848cd7e 12534 ac_status=$?
ac1cb8d3
VS
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
a848cd7e
SC
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
6ebeb4c7 12540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_prog_cxx_g=yes
12553else
12554 echo "$as_me: failed program was:" >&5
12555sed 's/^/| /' conftest.$ac_ext >&5
12556
12557ac_cv_prog_cxx_g=no
12558fi
ac1cb8d3 12559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12560fi
12561echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12562echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12563if test "$ac_test_CXXFLAGS" = set; then
12564 CXXFLAGS=$ac_save_CXXFLAGS
12565elif test $ac_cv_prog_cxx_g = yes; then
12566 if test "$GXX" = yes; then
efdf6afe 12567 CXXFLAGS="-g -O2"
a848cd7e 12568 else
efdf6afe 12569 CXXFLAGS="-g"
a848cd7e
SC
12570 fi
12571else
12572 if test "$GXX" = yes; then
12573 CXXFLAGS="-O2"
12574 else
12575 CXXFLAGS=
12576 fi
12577fi
12578for ac_declaration in \
ac1cb8d3 12579 '' \
a848cd7e
SC
12580 'extern "C" void std::exit (int) throw (); using std::exit;' \
12581 'extern "C" void std::exit (int); using std::exit;' \
12582 'extern "C" void exit (int) throw ();' \
12583 'extern "C" void exit (int);' \
12584 'void exit (int);'
12585do
12586 cat >conftest.$ac_ext <<_ACEOF
12587/* confdefs.h. */
12588_ACEOF
12589cat confdefs.h >>conftest.$ac_ext
12590cat >>conftest.$ac_ext <<_ACEOF
12591/* end confdefs.h. */
de59c161 12592$ac_declaration
ac1cb8d3 12593#include <stdlib.h>
a848cd7e
SC
12594int
12595main ()
12596{
12597exit (42);
12598 ;
12599 return 0;
12600}
12601_ACEOF
12602rm -f conftest.$ac_objext
12603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12604 (eval $ac_compile) 2>conftest.er1
a848cd7e 12605 ac_status=$?
ac1cb8d3
VS
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
a848cd7e
SC
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
6ebeb4c7 12611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 :
12624else
12625 echo "$as_me: failed program was:" >&5
12626sed 's/^/| /' conftest.$ac_ext >&5
12627
12628continue
12629fi
ac1cb8d3 12630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12631 cat >conftest.$ac_ext <<_ACEOF
12632/* confdefs.h. */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
12636/* end confdefs.h. */
12637$ac_declaration
12638int
12639main ()
12640{
12641exit (42);
12642 ;
12643 return 0;
12644}
12645_ACEOF
12646rm -f conftest.$ac_objext
12647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12648 (eval $ac_compile) 2>conftest.er1
a848cd7e 12649 ac_status=$?
ac1cb8d3
VS
12650 grep -v '^ *+' conftest.er1 >conftest.err
12651 rm -f conftest.er1
12652 cat conftest.err >&5
a848cd7e
SC
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
6ebeb4c7 12655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; } &&
12661 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 break
12668else
12669 echo "$as_me: failed program was:" >&5
12670sed 's/^/| /' conftest.$ac_ext >&5
12671
12672fi
ac1cb8d3 12673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12674done
12675rm -f conftest*
12676if test -n "$ac_declaration"; then
12677 echo '#ifdef __cplusplus' >>confdefs.h
12678 echo $ac_declaration >>confdefs.h
12679 echo '#endif' >>confdefs.h
12680fi
12681
12682ac_ext=cc
12683ac_cpp='$CXXCPP $CPPFLAGS'
12684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12687
6dcfc289 12688 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12689echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12690if test "${wx_cv_cxx_exto+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12692else
12693 cat >conftest.$ac_ext <<_ACEOF
12694/* confdefs.h. */
12695_ACEOF
12696cat confdefs.h >>conftest.$ac_ext
12697cat >>conftest.$ac_ext <<_ACEOF
12698/* end confdefs.h. */
12699
12700int
12701main ()
12702{
12703
12704 ;
12705 return 0;
12706}
12707_ACEOF
12708rm -f conftest.$ac_objext conftest.$ac_ext.o
12709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12710 (eval $ac_compile) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; then
12714 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12715 case $ac_file in
12716 conftest.$ac_ext.o)
12717 wx_cv_cxx_exto="-ext o"
12718 ;;
12719 *)
12720 ;;
12721 esac
12722done
12723else
12724 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12725See \`config.log' for more details." >&5
12726echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12727See \`config.log' for more details." >&2;}
12728 { (exit 1); exit 1; }; }
12729
12730fi
12731
12732rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12733
12734fi
12735echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12736echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12737if test "x$wx_cv_cxx_exto" '!=' "x"; then
12738 if test "cxx" = "c"; then
12739 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12740 fi
12741 if test "cxx" = "cxx"; then
12742 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12743 fi
12744fi
12745
6dcfc289
DE
12746 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12747 unset ac_cv_prog_cxx_g
12748 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12749ac_save_CXXFLAGS=$CXXFLAGS
12750CXXFLAGS="-g"
12751echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12752echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12753if test "${ac_cv_prog_cxx_g+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755else
12756 cat >conftest.$ac_ext <<_ACEOF
12757/* confdefs.h. */
12758_ACEOF
12759cat confdefs.h >>conftest.$ac_ext
12760cat >>conftest.$ac_ext <<_ACEOF
12761/* end confdefs.h. */
12762
12763int
12764main ()
12765{
12766
12767 ;
12768 return 0;
12769}
12770_ACEOF
12771rm -f conftest.$ac_objext
12772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12773 (eval $ac_compile) 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
6ebeb4c7 12780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; } &&
12786 { ac_try='test -s conftest.$ac_objext'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 ac_cv_prog_cxx_g=yes
12793else
12794 echo "$as_me: failed program was:" >&5
12795sed 's/^/| /' conftest.$ac_ext >&5
12796
12797ac_cv_prog_cxx_g=no
12798fi
12799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12800fi
12801echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12802echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12803if test "$ac_test_CXXFLAGS" = set; then
12804 CXXFLAGS=$ac_save_CXXFLAGS
12805elif test $ac_cv_prog_cxx_g = yes; then
12806 if test "$GXX" = yes; then
efdf6afe 12807 CXXFLAGS="-g -O2"
480ccd21 12808 else
efdf6afe 12809 CXXFLAGS="-g"
480ccd21
DE
12810 fi
12811else
12812 if test "$GXX" = yes; then
12813 CXXFLAGS="-O2"
12814 else
12815 CXXFLAGS=
12816 fi
12817fi
6dcfc289
DE
12818 fi
12819 ac_ext=cc
95986553
DE
12820ac_cpp='$CXXCPP $CPPFLAGS'
12821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12824
12825echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12826echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12827if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829else
12830 cat >conftest.$ac_ext <<_ACEOF
12831/* confdefs.h. */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h. */
12836
12837int
12838main ()
12839{
12840#ifndef __MWERKS__
12841 choke me
12842#endif
12843
12844 ;
12845 return 0;
12846}
12847_ACEOF
12848rm -f conftest.$ac_objext
12849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850 (eval $ac_compile) 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
6ebeb4c7 12857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; } &&
12863 { ac_try='test -s conftest.$ac_objext'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12869 bakefile_compiler_mwerks=yes
12870else
12871 echo "$as_me: failed program was:" >&5
12872sed 's/^/| /' conftest.$ac_ext >&5
12873
12874bakefile_compiler_mwerks=no
12875fi
12876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12877 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12878
12879fi
12880echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12881echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12882
0e6fa1d9 12883MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12884ac_ext=cc
12885ac_cpp='$CXXCPP $CPPFLAGS'
12886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12889
12890
6dcfc289 12891 ac_ext=cc
9273ffba
DE
12892ac_cpp='$CXXCPP $CPPFLAGS'
12893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12896
12897echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12898echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12899if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12901else
12902 cat >conftest.$ac_ext <<_ACEOF
12903/* confdefs.h. */
12904_ACEOF
12905cat confdefs.h >>conftest.$ac_ext
12906cat >>conftest.$ac_ext <<_ACEOF
12907/* end confdefs.h. */
12908
12909int
12910main ()
12911{
12912#ifndef __xlC__
12913 choke me
12914#endif
12915
12916 ;
12917 return 0;
12918}
12919_ACEOF
12920rm -f conftest.$ac_objext
12921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12922 (eval $ac_compile) 2>conftest.er1
12923 ac_status=$?
12924 grep -v '^ *+' conftest.er1 >conftest.err
12925 rm -f conftest.er1
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
6ebeb4c7 12929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12932 ac_status=$?
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; } &&
12935 { ac_try='test -s conftest.$ac_objext'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 wx_compiler_xlc=yes
12942else
12943 echo "$as_me: failed program was:" >&5
12944sed 's/^/| /' conftest.$ac_ext >&5
12945
12946wx_compiler_xlc=no
12947fi
12948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12949 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12950
12951fi
12952echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12953echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12954
0e6fa1d9 12955XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12956ac_ext=cc
12957ac_cpp='$CXXCPP $CPPFLAGS'
12958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12961
12962
95986553 12963
6dcfc289 12964
a9e5b1f0
MW
12965 ac_ext=cc
12966ac_cpp='$CXXCPP $CPPFLAGS'
12967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12970
12971 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
12972echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
12973if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12975else
12976 cat >conftest.$ac_ext <<_ACEOF
12977/* confdefs.h. */
12978_ACEOF
12979cat confdefs.h >>conftest.$ac_ext
12980cat >>conftest.$ac_ext <<_ACEOF
12981/* end confdefs.h. */
12982
12983int
12984main ()
12985{
12986
12987 #ifndef __SUNPRO_CC
12988 choke me
12989 #endif
12990
12991 ;
12992 return 0;
12993}
12994_ACEOF
12995rm -f conftest.$ac_objext
12996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12997 (eval $ac_compile) 2>conftest.er1
12998 ac_status=$?
12999 grep -v '^ *+' conftest.er1 >conftest.err
13000 rm -f conftest.er1
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
6ebeb4c7 13004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; } &&
13010 { ac_try='test -s conftest.$ac_objext'
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }; then
13016 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13017else
13018 echo "$as_me: failed program was:" >&5
13019sed 's/^/| /' conftest.$ac_ext >&5
13020
13021bakefile_cv_cxx_compiler___SUNPRO_CC=no
13022
13023fi
13024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13025
13026
13027fi
13028echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13029echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13030 ac_ext=cc
13031ac_cpp='$CXXCPP $CPPFLAGS'
13032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13035
13036 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13037 :; SUNCXX=yes
13038 else
13039 :;
13040 fi
13041
13042
13043
13044
a848cd7e
SC
13045ac_ext=c
13046ac_cpp='$CPP $CPPFLAGS'
13047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13049ac_compiler_gnu=$ac_cv_c_compiler_gnu
13050
13051
a848cd7e
SC
13052if test -n "$ac_tool_prefix"; then
13053 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13054set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13055echo "$as_me:$LINENO: checking for $ac_word" >&5
13056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13057if test "${ac_cv_prog_RANLIB+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059else
13060 if test -n "$RANLIB"; then
13061 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13062else
13063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064for as_dir in $PATH
13065do
13066 IFS=$as_save_IFS
13067 test -z "$as_dir" && as_dir=.
13068 for ac_exec_ext in '' $ac_executable_extensions; do
13069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13070 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 break 2
13073 fi
13074done
13075done
13076
13077fi
13078fi
13079RANLIB=$ac_cv_prog_RANLIB
13080if test -n "$RANLIB"; then
13081 echo "$as_me:$LINENO: result: $RANLIB" >&5
13082echo "${ECHO_T}$RANLIB" >&6
13083else
13084 echo "$as_me:$LINENO: result: no" >&5
13085echo "${ECHO_T}no" >&6
13086fi
13087
13088fi
13089if test -z "$ac_cv_prog_RANLIB"; then
13090 ac_ct_RANLIB=$RANLIB
13091 # Extract the first word of "ranlib", so it can be a program name with args.
13092set dummy ranlib; ac_word=$2
13093echo "$as_me:$LINENO: checking for $ac_word" >&5
13094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13095if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13097else
13098 if test -n "$ac_ct_RANLIB"; then
13099 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13100else
13101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102for as_dir in $PATH
13103do
13104 IFS=$as_save_IFS
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13108 ac_cv_prog_ac_ct_RANLIB="ranlib"
13109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13110 break 2
13111 fi
13112done
13113done
13114
13115 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13116fi
13117fi
13118ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13119if test -n "$ac_ct_RANLIB"; then
13120 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13121echo "${ECHO_T}$ac_ct_RANLIB" >&6
13122else
13123 echo "$as_me:$LINENO: result: no" >&5
13124echo "${ECHO_T}no" >&6
13125fi
13126
13127 RANLIB=$ac_ct_RANLIB
13128else
13129 RANLIB="$ac_cv_prog_RANLIB"
13130fi
13131
13132
13133# Extract the first word of "ar", so it can be a program name with args.
13134set dummy ar; ac_word=$2
13135echo "$as_me:$LINENO: checking for $ac_word" >&5
13136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13137if test "${ac_cv_prog_AR+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13139else
13140 if test -n "$AR"; then
13141 ac_cv_prog_AR="$AR" # Let the user override the test.
13142else
13143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144for as_dir in $PATH
13145do
13146 IFS=$as_save_IFS
13147 test -z "$as_dir" && as_dir=.
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13150 ac_cv_prog_AR="ar"
13151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13152 break 2
13153 fi
13154done
13155done
13156
13157fi
13158fi
13159AR=$ac_cv_prog_AR
13160if test -n "$AR"; then
13161 echo "$as_me:$LINENO: result: $AR" >&5
13162echo "${ECHO_T}$AR" >&6
13163else
13164 echo "$as_me:$LINENO: result: no" >&5
13165echo "${ECHO_T}no" >&6
13166fi
13167
13168if test "x$AR" = "x" ; then
77ffb593
JS
13169 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13170echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13171 { (exit 1); exit 1; }; }
13172fi
13173
13174# Find a good install program. We prefer a C program (faster),
13175# so one script is as good as another. But avoid the broken or
13176# incompatible versions:
13177# SysV /etc/install, /usr/sbin/install
13178# SunOS /usr/etc/install
13179# IRIX /sbin/install
13180# AIX /bin/install
13181# AmigaOS /C/install, which installs bootblocks on floppy discs
13182# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13183# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13184# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13185# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13186# ./install, which can be erroneously created by make from ./install.sh.
13187echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13188echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13189if test -z "$INSTALL"; then
13190if test "${ac_cv_path_install+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192else
13193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194for as_dir in $PATH
13195do
13196 IFS=$as_save_IFS
13197 test -z "$as_dir" && as_dir=.
13198 # Account for people who put trailing slashes in PATH elements.
13199case $as_dir/ in
13200 ./ | .// | /cC/* | \
13201 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13202 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13203 /usr/ucb/* ) ;;
13204 *)
13205 # OSF1 and SCO ODT 3.0 have their own names for install.
13206 # Don't use installbsd from OSF since it installs stuff as root
13207 # by default.
13208 for ac_prog in ginstall scoinst install; do
13209 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13210 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13211 if test $ac_prog = install &&
13212 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13213 # AIX install. It has an incompatible calling convention.
13214 :
13215 elif test $ac_prog = install &&
13216 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13217 # program-specific install script used by HP pwplus--don't use.
13218 :
13219 else
13220 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13221 break 3
13222 fi
13223 fi
a848cd7e
SC
13224 done
13225 done
13226 ;;
13227esac
13228done
13229
13230
13231fi
13232 if test "${ac_cv_path_install+set}" = set; then
13233 INSTALL=$ac_cv_path_install
13234 else
13235 # As a last resort, use the slow shell script. We don't cache a
13236 # path for INSTALL within a source directory, because that will
13237 # break other packages using the cache if that directory is
13238 # removed, or if the path is relative.
13239 INSTALL=$ac_install_sh
13240 fi
13241fi
13242echo "$as_me:$LINENO: result: $INSTALL" >&5
13243echo "${ECHO_T}$INSTALL" >&6
13244
13245# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13246# It thinks the first close brace ends the variable substitution.
13247test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13248
13249test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13250
13251test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13252
13253
13254case ${INSTALL} in
13255 /* ) # Absolute
13256 ;;
13257 ?:* ) # Drive letter, considered as absolute.
13258 ;;
13259 *)
13260 INSTALL=`pwd`/${INSTALL} ;;
13261esac
13262
a848cd7e
SC
13263
13264case "${host}" in
13265
cfda0ea8 13266 *-*-darwin* )
a848cd7e
SC
13267 INSTALL_PROGRAM="cp -fp"
13268 INSTALL_DATA="cp -fp"
13269 ;;
13270 *)
13271 ;;
13272esac
13273
13274# Extract the first word of "strip", so it can be a program name with args.
13275set dummy strip; ac_word=$2
13276echo "$as_me:$LINENO: checking for $ac_word" >&5
13277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13278if test "${ac_cv_prog_STRIP+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280else
13281 if test -n "$STRIP"; then
13282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13283else
13284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285for as_dir in $PATH
13286do
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13291 ac_cv_prog_STRIP="strip"
13292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2
13294 fi
13295done
13296done
13297
13298 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13299fi
13300fi
13301STRIP=$ac_cv_prog_STRIP
13302if test -n "$STRIP"; then
13303 echo "$as_me:$LINENO: result: $STRIP" >&5
13304echo "${ECHO_T}$STRIP" >&6
13305else
13306 echo "$as_me:$LINENO: result: no" >&5
13307echo "${ECHO_T}no" >&6
13308fi
13309
13310
13311echo "$as_me:$LINENO: checking if make is GNU make" >&5
13312echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13313if test "${wx_cv_prog_makeisgnu+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13315else
13316
13317 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13318 egrep -s GNU > /dev/null); then
13319 wx_cv_prog_makeisgnu="yes"
13320 else
13321 wx_cv_prog_makeisgnu="no"
13322 fi
13323
13324fi
13325echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13326echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13327
13328if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13329 IF_GNU_MAKE=""
13330else
13331 IF_GNU_MAKE="#"
13332fi
13333
13334
13335
13336if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13337echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13338echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13339if test "${wx_cv_prog_makevpath+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13341else
13342
13343cat - << EOF > confMake
13344check : file
13345 cp \$? \$@
13346 cp \$? final_file
13347EOF
13348
13349if test ! -d sub ; then
13350 mkdir sub
13351fi
13352echo dummy > sub/file
13353${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13354RESULT=$?
13355rm -f sub/file check final_file confMake
13356rmdir sub
13357if test "$RESULT" = 0; then
13358 wx_cv_prog_makevpath="yes"
13359else
13360 wx_cv_prog_makevpath="no"
13361fi
13362
13363fi
13364echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13365echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13366
13367if test "x$wx_cv_prog_makevpath" != "xyes"; then
13368{ { echo "$as_me:$LINENO: error:
13369You need a make-utility that is able to use the variable
13370VPATH correctly.
13371If your version of make does not support VPATH correctly,
13372please install GNU-make (possibly as gmake), and start
13373configure with the following command:
13374export MAKE=gmake; ./configure for sh-type shells
13375setenv MAKE gmake; ./configure for csh-type shells
13376Also please do remember to use gmake in this case every time
13377you are trying to compile.
13378" >&5
13379echo "$as_me: error:
13380You need a make-utility that is able to use the variable
13381VPATH correctly.
13382If your version of make does not support VPATH correctly,
13383please install GNU-make (possibly as gmake), and start
13384configure with the following command:
13385export MAKE=gmake; ./configure for sh-type shells
13386setenv MAKE gmake; ./configure for csh-type shells
13387Also please do remember to use gmake in this case every time
13388you are trying to compile.
13389" >&2;}
13390 { (exit 1); exit 1; }; }
13391fi fi
13392echo "$as_me:$LINENO: checking whether ln -s works" >&5
13393echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13394LN_S=$as_ln_s
13395if test "$LN_S" = "ln -s"; then
13396 echo "$as_me:$LINENO: result: yes" >&5
13397echo "${ECHO_T}yes" >&6
13398else
13399 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13400echo "${ECHO_T}no, using $LN_S" >&6
13401fi
13402
13403
13404
2113bc77 13405if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
13406 CXXFLAGS="$CXXFLAGS -qunique"
13407fi
13408
13409
4d7ec9f1
DE
13410case "${host}" in
13411 powerpc-*-darwin* )
13412 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13413echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13414 cat >conftest.$ac_ext <<_ACEOF
13415/* confdefs.h. */
13416_ACEOF
13417cat confdefs.h >>conftest.$ac_ext
13418cat >>conftest.$ac_ext <<_ACEOF
13419/* end confdefs.h. */
13420
13421int
13422main ()
13423{
13424#ifndef __POWERPC__
13425 choke me for lack of PowerPC
13426#endif
13427
13428 ;
13429 return 0;
13430}
13431_ACEOF
13432rm -f conftest.$ac_objext
13433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434 (eval $ac_compile) 2>conftest.er1
13435 ac_status=$?
13436 grep -v '^ *+' conftest.er1 >conftest.err
13437 rm -f conftest.er1
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
6ebeb4c7 13441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } &&
13447 { ac_try='test -s conftest.$ac_objext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 echo "$as_me:$LINENO: result: yes" >&5
13454echo "${ECHO_T}yes" >&6
13455else
13456 echo "$as_me: failed program was:" >&5
13457sed 's/^/| /' conftest.$ac_ext >&5
13458
13459echo "$as_me:$LINENO: result: no" >&5
13460echo "${ECHO_T}no" >&6
13461 cat >>confdefs.h <<\_ACEOF
13462#define __POWERPC__ 1
13463_ACEOF
13464
13465
13466fi
13467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
13468 ;;
13469esac
13470
13471case "${host}" in
13472 *-*-darwin* )
4d7ec9f1
DE
13473 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13474echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13475 cat >conftest.$ac_ext <<_ACEOF
13476/* confdefs.h. */
13477_ACEOF
13478cat confdefs.h >>conftest.$ac_ext
13479cat >>conftest.$ac_ext <<_ACEOF
13480/* end confdefs.h. */
13481#include <CoreFoundation/CFBase.h>
13482
13483int
13484main ()
13485{
13486
13487 ;
13488 return 0;
13489}
13490_ACEOF
13491rm -f conftest.$ac_objext
13492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13493 (eval $ac_compile) 2>conftest.er1
13494 ac_status=$?
13495 grep -v '^ *+' conftest.er1 >conftest.err
13496 rm -f conftest.er1
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
6ebeb4c7 13500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502 (eval $ac_try) 2>&5
13503 ac_status=$?
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); }; } &&
13506 { ac_try='test -s conftest.$ac_objext'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
13512 echo "$as_me:$LINENO: result: yes" >&5
13513echo "${ECHO_T}yes" >&6
13514else
13515 echo "$as_me: failed program was:" >&5
13516sed 's/^/| /' conftest.$ac_ext >&5
13517
13518echo "$as_me:$LINENO: result: no" >&5
13519echo "${ECHO_T}no" >&6
13520 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13521echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13522 cat >conftest.$ac_ext <<_ACEOF
13523/* confdefs.h. */
13524_ACEOF
13525cat confdefs.h >>conftest.$ac_ext
13526cat >>conftest.$ac_ext <<_ACEOF
13527/* end confdefs.h. */
13528#define __CF_USE_FRAMEWORK_INCLUDES__
13529#include <CoreFoundation/CFBase.h>
13530
13531int
13532main ()
13533{
13534
13535 ;
13536 return 0;
13537}
13538_ACEOF
13539rm -f conftest.$ac_objext
13540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541 (eval $ac_compile) 2>conftest.er1
13542 ac_status=$?
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
6ebeb4c7 13548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; } &&
13554 { ac_try='test -s conftest.$ac_objext'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 echo "$as_me:$LINENO: result: yes" >&5
13561echo "${ECHO_T}yes" >&6
13562 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13563else
13564 echo "$as_me: failed program was:" >&5
13565sed 's/^/| /' conftest.$ac_ext >&5
13566
13567{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13568See \`config.log' for more details." >&5
13569echo "$as_me: error: no. CoreFoundation not available.
13570See \`config.log' for more details." >&2;}
13571 { (exit 1); exit 1; }; }
13572
13573fi
13574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13575
13576
13577fi
13578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13579 ;;
13580esac
13581
a848cd7e
SC
13582case "${host}" in
13583 *-pc-os2_emx | *-pc-os2-emx )
13584 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13585 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13586echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13587if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589else
13590 ac_check_lib_save_LIBS=$LIBS
13591LIBS="-lcExt $LIBS"
13592cat >conftest.$ac_ext <<_ACEOF
13593/* confdefs.h. */
13594_ACEOF
13595cat confdefs.h >>conftest.$ac_ext
13596cat >>conftest.$ac_ext <<_ACEOF
13597/* end confdefs.h. */
13598
13599/* Override any gcc2 internal prototype to avoid an error. */
13600#ifdef __cplusplus
13601extern "C"
13602#endif
13603/* We use char because int might match the return type of a gcc2
13604 builtin and then its argument prototype would still apply. */
13605char drand48 ();
13606int
13607main ()
13608{
13609drand48 ();
13610 ;
13611 return 0;
13612}
13613_ACEOF
13614rm -f conftest.$ac_objext conftest$ac_exeext
13615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13616 (eval $ac_link) 2>conftest.er1
a848cd7e 13617 ac_status=$?
ac1cb8d3
VS
13618 grep -v '^ *+' conftest.er1 >conftest.err
13619 rm -f conftest.er1
13620 cat conftest.err >&5
a848cd7e
SC
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
6ebeb4c7 13623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }; then
13635 ac_cv_lib_cExt_drand48=yes
13636else
13637 echo "$as_me: failed program was:" >&5
13638sed 's/^/| /' conftest.$ac_ext >&5
13639
13640ac_cv_lib_cExt_drand48=no
13641fi
ac1cb8d3
VS
13642rm -f conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13644LIBS=$ac_check_lib_save_LIBS
13645fi
13646echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13647echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13648if test $ac_cv_lib_cExt_drand48 = yes; then
13649 LIBS="$LIBS -lcExt"
13650fi
13651
13652 else
13653 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13654 fi
69120ee4
VZ
13655 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13656echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13657if test "${wx_cv_gccversion+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13659else
13660
391a765e
VS
13661 if test "$cross_compiling" = yes; then
13662 wx_cv_gccversion="EMX2"
13663
13664else
13665 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13666/* confdefs.h. */
13667_ACEOF
13668cat confdefs.h >>conftest.$ac_ext
13669cat >>conftest.$ac_ext <<_ACEOF
13670/* end confdefs.h. */
13671
391a765e 13672 #include <stdio.h>
a848cd7e 13673
391a765e
VS
13674 int main()
13675 {
13676 FILE *f=fopen("conftestval", "w");
13677 if (!f) exit(1);
13678 fprintf(f,
a848cd7e 13679 #if (__GNUC__ < 3)
391a765e
VS
13680 "EMX2"
13681 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13682 "EMX3"
13683 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13684 "Innotek5"
13685 #else
13686 "Innotek6"
a848cd7e 13687 #endif
391a765e
VS
13688 );
13689 exit(0);
13690 }
a848cd7e 13691
a848cd7e 13692_ACEOF
391a765e
VS
13693rm -f conftest$ac_exeext
13694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13695 (eval $ac_link) 2>&5
ac1cb8d3
VS
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
391a765e 13704 wx_cv_gccversion=`cat conftestval`
a848cd7e 13705else
391a765e
VS
13706 echo "$as_me: program exited with status $ac_status" >&5
13707echo "$as_me: failed program was:" >&5
a848cd7e
SC
13708sed 's/^/| /' conftest.$ac_ext >&5
13709
391a765e
VS
13710( exit $ac_status )
13711wx_cv_gccversion="EMX2"
a848cd7e 13712fi
391a765e 13713rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13714fi
a848cd7e
SC
13715
13716fi
13717echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13718echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13719 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13720 LIBS="$LIBS -lstdcpp"
13721 LDFLAGS="$LDFLAGS -Zsysv-signals"
13722 else
391a765e 13723 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 13724 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
13725 LDFLAGS="$LDFLAGS -Zsysv-signals"
13726 else
13727 LIBS="$LIBS -lstdc++"
13728 fi
13729 fi
94acd38e
DE
13730 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13731 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13732echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13733 wxUSE_OMF=yes
2da0c077 13734 enable_omf=yes
a848cd7e
SC
13735 fi
13736 ;;
13737 *)
13738
13739
13740
13741 ac_ext=cc
13742ac_cpp='$CXXCPP $CPPFLAGS'
13743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13746
13747
95986553 13748 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13749echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13750if test "${ac_cv_string_strcasecmp+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752else
13753
13754 cat >conftest.$ac_ext <<_ACEOF
13755/* confdefs.h. */
13756_ACEOF
13757cat confdefs.h >>conftest.$ac_ext
13758cat >>conftest.$ac_ext <<_ACEOF
13759/* end confdefs.h. */
13760
13761 #include <string.h>
13762
13763int
13764main ()
13765{
13766
13767 strcasecmp("foo", "bar");
13768
13769 ;
13770 return 0;
13771}
13772_ACEOF
13773rm -f conftest.$ac_objext conftest$ac_exeext
13774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13775 (eval $ac_link) 2>conftest.er1
a848cd7e 13776 ac_status=$?
ac1cb8d3
VS
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
a848cd7e
SC
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
6ebeb4c7 13782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
13788 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 ac_cv_string_strcasecmp=yes
13795else
13796 echo "$as_me: failed program was:" >&5
13797sed 's/^/| /' conftest.$ac_ext >&5
13798
13799ac_cv_string_strcasecmp=no
13800
13801fi
ac1cb8d3
VS
13802rm -f conftest.err conftest.$ac_objext \
13803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13804
13805fi
13806echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13807echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13808
13809 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13810 cat >>confdefs.h <<\_ACEOF
13811#define HAVE_STRCASECMP_IN_STRING_H 1
13812_ACEOF
13813
13814 else
13815 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13816echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13817if test "${ac_cv_strings_strcasecmp+set}" = set; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13819else
13820
13821 cat >conftest.$ac_ext <<_ACEOF
13822/* confdefs.h. */
13823_ACEOF
13824cat confdefs.h >>conftest.$ac_ext
13825cat >>conftest.$ac_ext <<_ACEOF
13826/* end confdefs.h. */
13827
13828 #include <strings.h>
13829
13830int
13831main ()
13832{
13833
13834 strcasecmp("foo", "bar");
13835
13836 ;
13837 return 0;
13838}
13839_ACEOF
13840rm -f conftest.$ac_objext conftest$ac_exeext
13841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13842 (eval $ac_link) 2>conftest.er1
a848cd7e 13843 ac_status=$?
ac1cb8d3
VS
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
a848cd7e
SC
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
6ebeb4c7 13849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_cv_strings_strcasecmp=yes
13862else
13863 echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
13865
13866ac_cv_strings_strcasecmp=no
13867
13868fi
ac1cb8d3
VS
13869rm -f conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13871
13872fi
13873echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13874echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13875
0c3c69fc 13876 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13877 cat >>confdefs.h <<\_ACEOF
13878#define HAVE_STRCASECMP_IN_STRINGS_H 1
13879_ACEOF
13880
13881 else
13882 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13883echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13884 { (exit 1); exit 1; }; }
13885 fi
13886 fi
13887
13888 ac_ext=c
13889ac_cpp='$CPP $CPPFLAGS'
13890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13892ac_compiler_gnu=$ac_cv_c_compiler_gnu
13893
13894 ;;
13895esac
13896
13897
13898echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13899echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13900if test "${ac_cv_header_stdc+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902else
13903 cat >conftest.$ac_ext <<_ACEOF
13904/* confdefs.h. */
13905_ACEOF
13906cat confdefs.h >>conftest.$ac_ext
13907cat >>conftest.$ac_ext <<_ACEOF
13908/* end confdefs.h. */
13909#include <stdlib.h>
13910#include <stdarg.h>
13911#include <string.h>
13912#include <float.h>
13913
13914int
13915main ()
13916{
13917
13918 ;
13919 return 0;
13920}
13921_ACEOF
13922rm -f conftest.$ac_objext
13923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13924 (eval $ac_compile) 2>conftest.er1
a848cd7e 13925 ac_status=$?
ac1cb8d3
VS
13926 grep -v '^ *+' conftest.er1 >conftest.err
13927 rm -f conftest.er1
13928 cat conftest.err >&5
a848cd7e
SC
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); } &&
6ebeb4c7 13931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 ac_cv_header_stdc=yes
13944else
13945 echo "$as_me: failed program was:" >&5
13946sed 's/^/| /' conftest.$ac_ext >&5
13947
13948ac_cv_header_stdc=no
13949fi
ac1cb8d3 13950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13951
13952if test $ac_cv_header_stdc = yes; then
13953 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13954 cat >conftest.$ac_ext <<_ACEOF
13955/* confdefs.h. */
13956_ACEOF
13957cat confdefs.h >>conftest.$ac_ext
13958cat >>conftest.$ac_ext <<_ACEOF
13959/* end confdefs.h. */
13960#include <string.h>
13961
13962_ACEOF
13963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13964 $EGREP "memchr" >/dev/null 2>&1; then
13965 :
13966else
13967 ac_cv_header_stdc=no
13968fi
13969rm -f conftest*
13970
13971fi
13972
13973if test $ac_cv_header_stdc = yes; then
13974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13975 cat >conftest.$ac_ext <<_ACEOF
13976/* confdefs.h. */
13977_ACEOF
13978cat confdefs.h >>conftest.$ac_ext
13979cat >>conftest.$ac_ext <<_ACEOF
13980/* end confdefs.h. */
13981#include <stdlib.h>
13982
13983_ACEOF
13984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13985 $EGREP "free" >/dev/null 2>&1; then
13986 :
13987else
13988 ac_cv_header_stdc=no
13989fi
13990rm -f conftest*
13991
13992fi
13993
13994if test $ac_cv_header_stdc = yes; then
13995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13996 if test "$cross_compiling" = yes; then
13997 :
13998else
13999 cat >conftest.$ac_ext <<_ACEOF
14000/* confdefs.h. */
14001_ACEOF
14002cat confdefs.h >>conftest.$ac_ext
14003cat >>conftest.$ac_ext <<_ACEOF
14004/* end confdefs.h. */
14005#include <ctype.h>
14006#if ((' ' & 0x0FF) == 0x020)
14007# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14008# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14009#else
14010# define ISLOWER(c) \
ac1cb8d3
VS
14011 (('a' <= (c) && (c) <= 'i') \
14012 || ('j' <= (c) && (c) <= 'r') \
14013 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
14014# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14015#endif
14016
14017#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14018int
14019main ()
14020{
14021 int i;
14022 for (i = 0; i < 256; i++)
14023 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 14024 || toupper (i) != TOUPPER (i))
a848cd7e
SC
14025 exit(2);
14026 exit (0);
14027}
14028_ACEOF
14029rm -f conftest$ac_exeext
14030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14031 (eval $ac_link) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 :
14041else
14042 echo "$as_me: program exited with status $ac_status" >&5
14043echo "$as_me: failed program was:" >&5
14044sed 's/^/| /' conftest.$ac_ext >&5
14045
14046( exit $ac_status )
14047ac_cv_header_stdc=no
14048fi
ac1cb8d3 14049rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14050fi
14051fi
14052fi
14053echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14054echo "${ECHO_T}$ac_cv_header_stdc" >&6
14055if test $ac_cv_header_stdc = yes; then
14056
14057cat >>confdefs.h <<\_ACEOF
14058#define STDC_HEADERS 1
14059_ACEOF
14060
14061fi
14062
14063# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 14074 inttypes.h stdint.h unistd.h
a848cd7e
SC
14075do
14076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14077echo "$as_me:$LINENO: checking for $ac_header" >&5
14078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14079if eval "test \"\${$as_ac_Header+set}\" = set"; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081else
14082 cat >conftest.$ac_ext <<_ACEOF
14083/* confdefs.h. */
14084_ACEOF
14085cat confdefs.h >>conftest.$ac_ext
14086cat >>conftest.$ac_ext <<_ACEOF
14087/* end confdefs.h. */
14088$ac_includes_default
14089
14090#include <$ac_header>
14091_ACEOF
14092rm -f conftest.$ac_objext
14093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14094 (eval $ac_compile) 2>conftest.er1
a848cd7e 14095 ac_status=$?
ac1cb8d3
VS
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
a848cd7e
SC
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
6ebeb4c7 14101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113 eval "$as_ac_Header=yes"
14114else
14115 echo "$as_me: failed program was:" >&5
14116sed 's/^/| /' conftest.$ac_ext >&5
14117
14118eval "$as_ac_Header=no"
14119fi
ac1cb8d3 14120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14121fi
14122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14124if test `eval echo '${'$as_ac_Header'}'` = yes; then
14125 cat >>confdefs.h <<_ACEOF
14126#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14127_ACEOF
14128
14129fi
14130
14131done
14132
14133
14134
14135for ac_header in stdlib.h
14136do
14137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14138if eval "test \"\${$as_ac_Header+set}\" = set"; then
14139 echo "$as_me:$LINENO: checking for $ac_header" >&5
14140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14141if eval "test \"\${$as_ac_Header+set}\" = set"; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14143fi
14144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14146else
14147 # Is the header compilable?
14148echo "$as_me:$LINENO: checking $ac_header usability" >&5
14149echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14150cat >conftest.$ac_ext <<_ACEOF
14151/* confdefs.h. */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
14155/* end confdefs.h. */
14156$ac_includes_default
14157#include <$ac_header>
14158_ACEOF
14159rm -f conftest.$ac_objext
14160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14161 (eval $ac_compile) 2>conftest.er1
a848cd7e 14162 ac_status=$?
ac1cb8d3
VS
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
a848cd7e
SC
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
6ebeb4c7 14168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_header_compiler=yes
14181else
14182 echo "$as_me: failed program was:" >&5
14183sed 's/^/| /' conftest.$ac_ext >&5
14184
14185ac_header_compiler=no
14186fi
ac1cb8d3 14187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14188echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14189echo "${ECHO_T}$ac_header_compiler" >&6
14190
14191# Is the header present?
14192echo "$as_me:$LINENO: checking $ac_header presence" >&5
14193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14194cat >conftest.$ac_ext <<_ACEOF
14195/* confdefs.h. */
14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
14199/* end confdefs.h. */
14200#include <$ac_header>
14201_ACEOF
14202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } >/dev/null; then
14210 if test -s conftest.err; then
14211 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14213 else
14214 ac_cpp_err=
14215 fi
14216else
14217 ac_cpp_err=yes
14218fi
14219if test -z "$ac_cpp_err"; then
14220 ac_header_preproc=yes
14221else
14222 echo "$as_me: failed program was:" >&5
14223sed 's/^/| /' conftest.$ac_ext >&5
14224
14225 ac_header_preproc=no
14226fi
14227rm -f conftest.err conftest.$ac_ext
14228echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229echo "${ECHO_T}$ac_header_preproc" >&6
14230
14231# So? What about this header?
ac1cb8d3
VS
14232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14233 yes:no: )
a848cd7e
SC
14234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14235echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14237echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14238 ac_header_preproc=yes
a848cd7e 14239 ;;
ac1cb8d3 14240 no:yes:* )
a848cd7e
SC
14241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14242echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14244echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14246echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14248echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14250echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14252echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14253 (
14254 cat <<\_ASBOX
ac1cb8d3
VS
14255## ----------------------------------------- ##
14256## Report this to wx-dev@lists.wxwidgets.org ##
14257## ----------------------------------------- ##
a848cd7e
SC
14258_ASBOX
14259 ) |
14260 sed "s/^/$as_me: WARNING: /" >&2
14261 ;;
14262esac
14263echo "$as_me:$LINENO: checking for $ac_header" >&5
14264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14265if eval "test \"\${$as_ac_Header+set}\" = set"; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267else
ac1cb8d3 14268 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14269fi
14270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14272
14273fi
14274if test `eval echo '${'$as_ac_Header'}'` = yes; then
14275 cat >>confdefs.h <<_ACEOF
14276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14277_ACEOF
14278
14279fi
14280
14281done
14282
14283
14284for ac_header in malloc.h
14285do
14286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14287if eval "test \"\${$as_ac_Header+set}\" = set"; then
14288 echo "$as_me:$LINENO: checking for $ac_header" >&5
14289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14290if eval "test \"\${$as_ac_Header+set}\" = set"; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14292fi
14293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14294echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14295else
14296 # Is the header compilable?
14297echo "$as_me:$LINENO: checking $ac_header usability" >&5
14298echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14299cat >conftest.$ac_ext <<_ACEOF
14300/* confdefs.h. */
14301_ACEOF
14302cat confdefs.h >>conftest.$ac_ext
14303cat >>conftest.$ac_ext <<_ACEOF
14304/* end confdefs.h. */
14305$ac_includes_default
14306#include <$ac_header>
14307_ACEOF
14308rm -f conftest.$ac_objext
14309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14310 (eval $ac_compile) 2>conftest.er1
a848cd7e 14311 ac_status=$?
ac1cb8d3
VS
14312 grep -v '^ *+' conftest.er1 >conftest.err
14313 rm -f conftest.er1
14314 cat conftest.err >&5
a848cd7e
SC
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } &&
6ebeb4c7 14317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; } &&
14323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
14329 ac_header_compiler=yes
14330else
14331 echo "$as_me: failed program was:" >&5
14332sed 's/^/| /' conftest.$ac_ext >&5
14333
14334ac_header_compiler=no
14335fi
ac1cb8d3 14336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14337echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14338echo "${ECHO_T}$ac_header_compiler" >&6
14339
14340# Is the header present?
14341echo "$as_me:$LINENO: checking $ac_header presence" >&5
14342echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14343cat >conftest.$ac_ext <<_ACEOF
14344/* confdefs.h. */
14345_ACEOF
14346cat confdefs.h >>conftest.$ac_ext
14347cat >>conftest.$ac_ext <<_ACEOF
14348/* end confdefs.h. */
14349#include <$ac_header>
14350_ACEOF
14351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14353 ac_status=$?
14354 grep -v '^ *+' conftest.er1 >conftest.err
14355 rm -f conftest.er1
14356 cat conftest.err >&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } >/dev/null; then
14359 if test -s conftest.err; then
14360 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14362 else
14363 ac_cpp_err=
14364 fi
14365else
14366 ac_cpp_err=yes
14367fi
14368if test -z "$ac_cpp_err"; then
14369 ac_header_preproc=yes
14370else
14371 echo "$as_me: failed program was:" >&5
14372sed 's/^/| /' conftest.$ac_ext >&5
14373
14374 ac_header_preproc=no
14375fi
14376rm -f conftest.err conftest.$ac_ext
14377echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14378echo "${ECHO_T}$ac_header_preproc" >&6
14379
14380# So? What about this header?
ac1cb8d3
VS
14381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14382 yes:no: )
a848cd7e
SC
14383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14384echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14386echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14387 ac_header_preproc=yes
a848cd7e 14388 ;;
ac1cb8d3 14389 no:yes:* )
a848cd7e
SC
14390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14391echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14393echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14395echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14397echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14401echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14402 (
14403 cat <<\_ASBOX
ac1cb8d3
VS
14404## ----------------------------------------- ##
14405## Report this to wx-dev@lists.wxwidgets.org ##
14406## ----------------------------------------- ##
a848cd7e
SC
14407_ASBOX
14408 ) |
14409 sed "s/^/$as_me: WARNING: /" >&2
14410 ;;
14411esac
14412echo "$as_me:$LINENO: checking for $ac_header" >&5
14413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14414if eval "test \"\${$as_ac_Header+set}\" = set"; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14416else
ac1cb8d3 14417 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14418fi
14419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14421
14422fi
14423if test `eval echo '${'$as_ac_Header'}'` = yes; then
14424 cat >>confdefs.h <<_ACEOF
14425#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14426_ACEOF
14427
14428fi
14429
14430done
14431
14432
14433for ac_header in unistd.h
14434do
14435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14436if eval "test \"\${$as_ac_Header+set}\" = set"; then
14437 echo "$as_me:$LINENO: checking for $ac_header" >&5
14438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14439if eval "test \"\${$as_ac_Header+set}\" = set"; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14441fi
14442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14444else
14445 # Is the header compilable?
14446echo "$as_me:$LINENO: checking $ac_header usability" >&5
14447echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14448cat >conftest.$ac_ext <<_ACEOF
14449/* confdefs.h. */
14450_ACEOF
14451cat confdefs.h >>conftest.$ac_ext
14452cat >>conftest.$ac_ext <<_ACEOF
14453/* end confdefs.h. */
14454$ac_includes_default
14455#include <$ac_header>
14456_ACEOF
14457rm -f conftest.$ac_objext
14458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14459 (eval $ac_compile) 2>conftest.er1
a848cd7e 14460 ac_status=$?
ac1cb8d3
VS
14461 grep -v '^ *+' conftest.er1 >conftest.err
14462 rm -f conftest.er1
14463 cat conftest.err >&5
a848cd7e
SC
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
6ebeb4c7 14466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; } &&
14472 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14475 ac_status=$?
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14478 ac_header_compiler=yes
14479else
14480 echo "$as_me: failed program was:" >&5
14481sed 's/^/| /' conftest.$ac_ext >&5
14482
14483ac_header_compiler=no
14484fi
ac1cb8d3 14485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14486echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14487echo "${ECHO_T}$ac_header_compiler" >&6
14488
14489# Is the header present?
14490echo "$as_me:$LINENO: checking $ac_header presence" >&5
14491echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14492cat >conftest.$ac_ext <<_ACEOF
14493/* confdefs.h. */
14494_ACEOF
14495cat confdefs.h >>conftest.$ac_ext
14496cat >>conftest.$ac_ext <<_ACEOF
14497/* end confdefs.h. */
14498#include <$ac_header>
14499_ACEOF
14500if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } >/dev/null; then
14508 if test -s conftest.err; then
14509 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14511 else
14512 ac_cpp_err=
14513 fi
14514else
14515 ac_cpp_err=yes
14516fi
14517if test -z "$ac_cpp_err"; then
14518 ac_header_preproc=yes
14519else
14520 echo "$as_me: failed program was:" >&5
14521sed 's/^/| /' conftest.$ac_ext >&5
14522
14523 ac_header_preproc=no
14524fi
14525rm -f conftest.err conftest.$ac_ext
14526echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14527echo "${ECHO_T}$ac_header_preproc" >&6
14528
14529# So? What about this header?
ac1cb8d3
VS
14530case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14531 yes:no: )
a848cd7e
SC
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14533echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14535echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14536 ac_header_preproc=yes
a848cd7e 14537 ;;
ac1cb8d3 14538 no:yes:* )
a848cd7e
SC
14539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14540echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14542echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14544echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14546echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14548echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14550echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14551 (
14552 cat <<\_ASBOX
ac1cb8d3
VS
14553## ----------------------------------------- ##
14554## Report this to wx-dev@lists.wxwidgets.org ##
14555## ----------------------------------------- ##
a848cd7e
SC
14556_ASBOX
14557 ) |
14558 sed "s/^/$as_me: WARNING: /" >&2
14559 ;;
14560esac
14561echo "$as_me:$LINENO: checking for $ac_header" >&5
14562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14563if eval "test \"\${$as_ac_Header+set}\" = set"; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14565else
ac1cb8d3 14566 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14567fi
14568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14569echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14570
14571fi
14572if test `eval echo '${'$as_ac_Header'}'` = yes; then
14573 cat >>confdefs.h <<_ACEOF
14574#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14575_ACEOF
14576
14577fi
14578
14579done
14580
14581
14582for ac_header in wchar.h
14583do
14584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14585if eval "test \"\${$as_ac_Header+set}\" = set"; then
14586 echo "$as_me:$LINENO: checking for $ac_header" >&5
14587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14588if eval "test \"\${$as_ac_Header+set}\" = set"; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590fi
14591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14593else
14594 # Is the header compilable?
14595echo "$as_me:$LINENO: checking $ac_header usability" >&5
14596echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14597cat >conftest.$ac_ext <<_ACEOF
14598/* confdefs.h. */
14599_ACEOF
14600cat confdefs.h >>conftest.$ac_ext
14601cat >>conftest.$ac_ext <<_ACEOF
14602/* end confdefs.h. */
14603$ac_includes_default
14604#include <$ac_header>
14605_ACEOF
14606rm -f conftest.$ac_objext
14607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14608 (eval $ac_compile) 2>conftest.er1
a848cd7e 14609 ac_status=$?
ac1cb8d3
VS
14610 grep -v '^ *+' conftest.er1 >conftest.err
14611 rm -f conftest.er1
14612 cat conftest.err >&5
a848cd7e
SC
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
6ebeb4c7 14615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; } &&
14621 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14627 ac_header_compiler=yes
14628else
14629 echo "$as_me: failed program was:" >&5
14630sed 's/^/| /' conftest.$ac_ext >&5
14631
14632ac_header_compiler=no
14633fi
ac1cb8d3 14634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14635echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14636echo "${ECHO_T}$ac_header_compiler" >&6
14637
14638# Is the header present?
14639echo "$as_me:$LINENO: checking $ac_header presence" >&5
14640echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14641cat >conftest.$ac_ext <<_ACEOF
14642/* confdefs.h. */
14643_ACEOF
14644cat confdefs.h >>conftest.$ac_ext
14645cat >>conftest.$ac_ext <<_ACEOF
14646/* end confdefs.h. */
14647#include <$ac_header>
14648_ACEOF
14649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14651 ac_status=$?
14652 grep -v '^ *+' conftest.er1 >conftest.err
14653 rm -f conftest.er1
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } >/dev/null; then
14657 if test -s conftest.err; then
14658 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14660 else
14661 ac_cpp_err=
14662 fi
14663else
14664 ac_cpp_err=yes
14665fi
14666if test -z "$ac_cpp_err"; then
14667 ac_header_preproc=yes
14668else
14669 echo "$as_me: failed program was:" >&5
14670sed 's/^/| /' conftest.$ac_ext >&5
14671
14672 ac_header_preproc=no
14673fi
14674rm -f conftest.err conftest.$ac_ext
14675echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14676echo "${ECHO_T}$ac_header_preproc" >&6
14677
14678# So? What about this header?
ac1cb8d3
VS
14679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14680 yes:no: )
a848cd7e
SC
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14685 ac_header_preproc=yes
a848cd7e 14686 ;;
ac1cb8d3 14687 no:yes:* )
a848cd7e
SC
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14691echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14695echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14700 (
14701 cat <<\_ASBOX
ac1cb8d3
VS
14702## ----------------------------------------- ##
14703## Report this to wx-dev@lists.wxwidgets.org ##
14704## ----------------------------------------- ##
a848cd7e
SC
14705_ASBOX
14706 ) |
14707 sed "s/^/$as_me: WARNING: /" >&2
14708 ;;
14709esac
14710echo "$as_me:$LINENO: checking for $ac_header" >&5
14711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14712if eval "test \"\${$as_ac_Header+set}\" = set"; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14714else
ac1cb8d3 14715 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14716fi
14717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14719
14720fi
14721if test `eval echo '${'$as_ac_Header'}'` = yes; then
14722 cat >>confdefs.h <<_ACEOF
14723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14724_ACEOF
14725
14726fi
14727
14728done
14729
14730
14731if test "$ac_cv_header_wchar_h" != "yes"; then
14732
14733for ac_header in wcstr.h
14734do
14735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14736if eval "test \"\${$as_ac_Header+set}\" = set"; then
14737 echo "$as_me:$LINENO: checking for $ac_header" >&5
14738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14739if eval "test \"\${$as_ac_Header+set}\" = set"; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741fi
14742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14744else
14745 # Is the header compilable?
14746echo "$as_me:$LINENO: checking $ac_header usability" >&5
14747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14748cat >conftest.$ac_ext <<_ACEOF
14749/* confdefs.h. */
14750_ACEOF
14751cat confdefs.h >>conftest.$ac_ext
14752cat >>conftest.$ac_ext <<_ACEOF
14753/* end confdefs.h. */
14754$ac_includes_default
14755#include <$ac_header>
14756_ACEOF
14757rm -f conftest.$ac_objext
14758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14759 (eval $ac_compile) 2>conftest.er1
a848cd7e 14760 ac_status=$?
ac1cb8d3
VS
14761 grep -v '^ *+' conftest.er1 >conftest.err
14762 rm -f conftest.er1
14763 cat conftest.err >&5
a848cd7e
SC
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
6ebeb4c7 14766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14769 ac_status=$?
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; } &&
14772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 ac_header_compiler=yes
14779else
14780 echo "$as_me: failed program was:" >&5
14781sed 's/^/| /' conftest.$ac_ext >&5
14782
14783ac_header_compiler=no
14784fi
ac1cb8d3 14785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14786echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14787echo "${ECHO_T}$ac_header_compiler" >&6
14788
14789# Is the header present?
14790echo "$as_me:$LINENO: checking $ac_header presence" >&5
14791echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14792cat >conftest.$ac_ext <<_ACEOF
14793/* confdefs.h. */
14794_ACEOF
14795cat confdefs.h >>conftest.$ac_ext
14796cat >>conftest.$ac_ext <<_ACEOF
14797/* end confdefs.h. */
14798#include <$ac_header>
14799_ACEOF
14800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } >/dev/null; then
14808 if test -s conftest.err; then
14809 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14811 else
14812 ac_cpp_err=
14813 fi
14814else
14815 ac_cpp_err=yes
14816fi
14817if test -z "$ac_cpp_err"; then
14818 ac_header_preproc=yes
14819else
14820 echo "$as_me: failed program was:" >&5
14821sed 's/^/| /' conftest.$ac_ext >&5
14822
14823 ac_header_preproc=no
14824fi
14825rm -f conftest.err conftest.$ac_ext
14826echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14827echo "${ECHO_T}$ac_header_preproc" >&6
14828
14829# So? What about this header?
ac1cb8d3
VS
14830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14831 yes:no: )
a848cd7e
SC
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14836 ac_header_preproc=yes
a848cd7e 14837 ;;
ac1cb8d3 14838 no:yes:* )
a848cd7e
SC
14839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14842echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14846echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14851 (
14852 cat <<\_ASBOX
ac1cb8d3
VS
14853## ----------------------------------------- ##
14854## Report this to wx-dev@lists.wxwidgets.org ##
14855## ----------------------------------------- ##
a848cd7e
SC
14856_ASBOX
14857 ) |
14858 sed "s/^/$as_me: WARNING: /" >&2
14859 ;;
14860esac
14861echo "$as_me:$LINENO: checking for $ac_header" >&5
14862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14863if eval "test \"\${$as_ac_Header+set}\" = set"; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14865else
ac1cb8d3 14866 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14867fi
14868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14869echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14870
14871fi
14872if test `eval echo '${'$as_ac_Header'}'` = yes; then
14873 cat >>confdefs.h <<_ACEOF
14874#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14875_ACEOF
14876
14877fi
14878
14879done
14880
14881fi
14882
14883
14884for ac_header in fnmatch.h
14885do
14886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14887if eval "test \"\${$as_ac_Header+set}\" = set"; then
14888 echo "$as_me:$LINENO: checking for $ac_header" >&5
14889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14890if eval "test \"\${$as_ac_Header+set}\" = set"; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14892fi
14893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14895else
14896 # Is the header compilable?
14897echo "$as_me:$LINENO: checking $ac_header usability" >&5
14898echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14899cat >conftest.$ac_ext <<_ACEOF
14900/* confdefs.h. */
14901_ACEOF
14902cat confdefs.h >>conftest.$ac_ext
14903cat >>conftest.$ac_ext <<_ACEOF
14904/* end confdefs.h. */
14905$ac_includes_default
14906#include <$ac_header>
14907_ACEOF
14908rm -f conftest.$ac_objext
14909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14910 (eval $ac_compile) 2>conftest.er1
a848cd7e 14911 ac_status=$?
ac1cb8d3
VS
14912 grep -v '^ *+' conftest.er1 >conftest.err
14913 rm -f conftest.er1
14914 cat conftest.err >&5
a848cd7e
SC
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } &&
6ebeb4c7 14917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; } &&
14923 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925 (eval $ac_try) 2>&5
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; }; then
14929 ac_header_compiler=yes
14930else
14931 echo "$as_me: failed program was:" >&5
14932sed 's/^/| /' conftest.$ac_ext >&5
14933
14934ac_header_compiler=no
14935fi
ac1cb8d3 14936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14937echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14938echo "${ECHO_T}$ac_header_compiler" >&6
14939
14940# Is the header present?
14941echo "$as_me:$LINENO: checking $ac_header presence" >&5
14942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14943cat >conftest.$ac_ext <<_ACEOF
14944/* confdefs.h. */
14945_ACEOF
14946cat confdefs.h >>conftest.$ac_ext
14947cat >>conftest.$ac_ext <<_ACEOF
14948/* end confdefs.h. */
14949#include <$ac_header>
14950_ACEOF
14951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } >/dev/null; then
14959 if test -s conftest.err; then
14960 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14962 else
14963 ac_cpp_err=
14964 fi
14965else
14966 ac_cpp_err=yes
14967fi
14968if test -z "$ac_cpp_err"; then
14969 ac_header_preproc=yes
14970else
14971 echo "$as_me: failed program was:" >&5
14972sed 's/^/| /' conftest.$ac_ext >&5
14973
14974 ac_header_preproc=no
14975fi
14976rm -f conftest.err conftest.$ac_ext
14977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14978echo "${ECHO_T}$ac_header_preproc" >&6
14979
14980# So? What about this header?
ac1cb8d3
VS
14981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14982 yes:no: )
a848cd7e
SC
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14987 ac_header_preproc=yes
a848cd7e 14988 ;;
ac1cb8d3 14989 no:yes:* )
a848cd7e
SC
14990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14993echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14997echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15002 (
15003 cat <<\_ASBOX
ac1cb8d3
VS
15004## ----------------------------------------- ##
15005## Report this to wx-dev@lists.wxwidgets.org ##
15006## ----------------------------------------- ##
a848cd7e
SC
15007_ASBOX
15008 ) |
15009 sed "s/^/$as_me: WARNING: /" >&2
15010 ;;
15011esac
15012echo "$as_me:$LINENO: checking for $ac_header" >&5
15013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15014if eval "test \"\${$as_ac_Header+set}\" = set"; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15016else
ac1cb8d3 15017 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15018fi
15019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15021
15022fi
15023if test `eval echo '${'$as_ac_Header'}'` = yes; then
15024 cat >>confdefs.h <<_ACEOF
15025#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15026_ACEOF
15027
15028fi
15029
15030done
15031
15032
a848cd7e
SC
15033
15034for ac_header in langinfo.h
15035do
15036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15037if eval "test \"\${$as_ac_Header+set}\" = set"; then
15038 echo "$as_me:$LINENO: checking for $ac_header" >&5
15039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15040if eval "test \"\${$as_ac_Header+set}\" = set"; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15042fi
15043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15045else
15046 # Is the header compilable?
15047echo "$as_me:$LINENO: checking $ac_header usability" >&5
15048echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15049cat >conftest.$ac_ext <<_ACEOF
15050/* confdefs.h. */
15051_ACEOF
15052cat confdefs.h >>conftest.$ac_ext
15053cat >>conftest.$ac_ext <<_ACEOF
15054/* end confdefs.h. */
15055$ac_includes_default
15056#include <$ac_header>
15057_ACEOF
15058rm -f conftest.$ac_objext
15059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15060 (eval $ac_compile) 2>conftest.er1
a848cd7e 15061 ac_status=$?
ac1cb8d3
VS
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
a848cd7e
SC
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
6ebeb4c7 15067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15070 ac_status=$?
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; } &&
15073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; }; then
15079 ac_header_compiler=yes
15080else
15081 echo "$as_me: failed program was:" >&5
15082sed 's/^/| /' conftest.$ac_ext >&5
15083
15084ac_header_compiler=no
15085fi
ac1cb8d3 15086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15087echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15088echo "${ECHO_T}$ac_header_compiler" >&6
15089
15090# Is the header present?
15091echo "$as_me:$LINENO: checking $ac_header presence" >&5
15092echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15093cat >conftest.$ac_ext <<_ACEOF
15094/* confdefs.h. */
15095_ACEOF
15096cat confdefs.h >>conftest.$ac_ext
15097cat >>conftest.$ac_ext <<_ACEOF
15098/* end confdefs.h. */
15099#include <$ac_header>
15100_ACEOF
15101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15103 ac_status=$?
15104 grep -v '^ *+' conftest.er1 >conftest.err
15105 rm -f conftest.er1
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } >/dev/null; then
15109 if test -s conftest.err; then
15110 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15112 else
15113 ac_cpp_err=
15114 fi
15115else
15116 ac_cpp_err=yes
15117fi
15118if test -z "$ac_cpp_err"; then
15119 ac_header_preproc=yes
15120else
15121 echo "$as_me: failed program was:" >&5
15122sed 's/^/| /' conftest.$ac_ext >&5
15123
15124 ac_header_preproc=no
15125fi
15126rm -f conftest.err conftest.$ac_ext
15127echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15128echo "${ECHO_T}$ac_header_preproc" >&6
15129
15130# So? What about this header?
ac1cb8d3
VS
15131case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15132 yes:no: )
a848cd7e
SC
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15134echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15136echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15137 ac_header_preproc=yes
a848cd7e 15138 ;;
ac1cb8d3 15139 no:yes:* )
a848cd7e
SC
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15141echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15143echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15145echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15147echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15149echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15151echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15152 (
15153 cat <<\_ASBOX
ac1cb8d3
VS
15154## ----------------------------------------- ##
15155## Report this to wx-dev@lists.wxwidgets.org ##
15156## ----------------------------------------- ##
a848cd7e
SC
15157_ASBOX
15158 ) |
15159 sed "s/^/$as_me: WARNING: /" >&2
15160 ;;
15161esac
15162echo "$as_me:$LINENO: checking for $ac_header" >&5
15163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15164if eval "test \"\${$as_ac_Header+set}\" = set"; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15166else
ac1cb8d3 15167 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15168fi
15169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15171
15172fi
15173if test `eval echo '${'$as_ac_Header'}'` = yes; then
15174 cat >>confdefs.h <<_ACEOF
15175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15176_ACEOF
15177
15178fi
15179
15180done
15181
15182
15183case "${host}" in
15184 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15185 if test $ac_cv_header_langinfo_h = "yes" \
15186 -a \( "$wx_cv_gccversion" = "EMX2" \
15187 -o "$wx_cv_gccversion" = "EMX3" \
15188 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15189 LIBS="$LIBS -lintl"
15190 fi
15191 ;;
15192esac
15193
a848cd7e
SC
15194
15195echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15196echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15197if test "${ac_cv_c_const+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15199else
15200 cat >conftest.$ac_ext <<_ACEOF
15201/* confdefs.h. */
15202_ACEOF
15203cat confdefs.h >>conftest.$ac_ext
15204cat >>conftest.$ac_ext <<_ACEOF
15205/* end confdefs.h. */
15206
15207int
15208main ()
15209{
15210/* FIXME: Include the comments suggested by Paul. */
15211#ifndef __cplusplus
15212 /* Ultrix mips cc rejects this. */
15213 typedef int charset[2];
15214 const charset x;
15215 /* SunOS 4.1.1 cc rejects this. */
15216 char const *const *ccp;
15217 char **p;
15218 /* NEC SVR4.0.2 mips cc rejects this. */
15219 struct point {int x, y;};
15220 static struct point const zero = {0,0};
15221 /* AIX XL C 1.02.0.0 rejects this.
15222 It does not let you subtract one const X* pointer from another in
15223 an arm of an if-expression whose if-part is not a constant
15224 expression */
15225 const char *g = "string";
15226 ccp = &g + (g ? g-g : 0);
15227 /* HPUX 7.0 cc rejects these. */
15228 ++ccp;
15229 p = (char**) ccp;
15230 ccp = (char const *const *) p;
15231 { /* SCO 3.2v4 cc rejects this. */
15232 char *t;
15233 char const *s = 0 ? (char *) 0 : (char const *) 0;
15234
15235 *t++ = 0;
15236 }
15237 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15238 int x[] = {25, 17};
15239 const int *foo = &x[0];
15240 ++foo;
15241 }
15242 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15243 typedef const int *iptr;
15244 iptr p = 0;
15245 ++p;
15246 }
15247 { /* AIX XL C 1.02.0.0 rejects this saying
15248 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15249 struct s { int j; const int *ap[3]; };
15250 struct s *b; b->j = 5;
15251 }
15252 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15253 const int foo = 10;
15254 }
15255#endif
15256
15257 ;
15258 return 0;
15259}
15260_ACEOF
15261rm -f conftest.$ac_objext
15262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15263 (eval $ac_compile) 2>conftest.er1
a848cd7e 15264 ac_status=$?
ac1cb8d3
VS
15265 grep -v '^ *+' conftest.er1 >conftest.err
15266 rm -f conftest.er1
15267 cat conftest.err >&5
a848cd7e
SC
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); } &&
6ebeb4c7 15270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15273 ac_status=$?
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; } &&
15276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 ac_cv_c_const=yes
15283else
15284 echo "$as_me: failed program was:" >&5
15285sed 's/^/| /' conftest.$ac_ext >&5
15286
15287ac_cv_c_const=no
15288fi
ac1cb8d3 15289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15290fi
15291echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15292echo "${ECHO_T}$ac_cv_c_const" >&6
15293if test $ac_cv_c_const = no; then
15294
15295cat >>confdefs.h <<\_ACEOF
15296#define const
15297_ACEOF
15298
15299fi
15300
15301echo "$as_me:$LINENO: checking for inline" >&5
15302echo $ECHO_N "checking for inline... $ECHO_C" >&6
15303if test "${ac_cv_c_inline+set}" = set; then
15304 echo $ECHO_N "(cached) $ECHO_C" >&6
15305else
15306 ac_cv_c_inline=no
15307for ac_kw in inline __inline__ __inline; do
15308 cat >conftest.$ac_ext <<_ACEOF
15309/* confdefs.h. */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
15313/* end confdefs.h. */
15314#ifndef __cplusplus
15315typedef int foo_t;
15316static $ac_kw foo_t static_foo () {return 0; }
15317$ac_kw foo_t foo () {return 0; }
15318#endif
15319
15320_ACEOF
15321rm -f conftest.$ac_objext
15322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15323 (eval $ac_compile) 2>conftest.er1
a848cd7e 15324 ac_status=$?
ac1cb8d3
VS
15325 grep -v '^ *+' conftest.er1 >conftest.err
15326 rm -f conftest.er1
15327 cat conftest.err >&5
a848cd7e
SC
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } &&
6ebeb4c7 15330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15333 ac_status=$?
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; } &&
15336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15342 ac_cv_c_inline=$ac_kw; break
15343else
15344 echo "$as_me: failed program was:" >&5
15345sed 's/^/| /' conftest.$ac_ext >&5
15346
15347fi
ac1cb8d3 15348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15349done
15350
15351fi
15352echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15353echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15354
15355
a848cd7e
SC
15356case $ac_cv_c_inline in
15357 inline | yes) ;;
ac1cb8d3
VS
15358 *)
15359 case $ac_cv_c_inline in
15360 no) ac_val=;;
15361 *) ac_val=$ac_cv_c_inline;;
15362 esac
15363 cat >>confdefs.h <<_ACEOF
15364#ifndef __cplusplus
15365#define inline $ac_val
15366#endif
de59c161 15367_ACEOF
ac1cb8d3 15368 ;;
a848cd7e
SC
15369esac
15370
15371
15372echo "$as_me:$LINENO: checking for char" >&5
15373echo $ECHO_N "checking for char... $ECHO_C" >&6
15374if test "${ac_cv_type_char+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15376else
15377 cat >conftest.$ac_ext <<_ACEOF
15378/* confdefs.h. */
15379_ACEOF
15380cat confdefs.h >>conftest.$ac_ext
15381cat >>conftest.$ac_ext <<_ACEOF
15382/* end confdefs.h. */
15383$ac_includes_default
15384int
15385main ()
15386{
15387if ((char *) 0)
15388 return 0;
15389if (sizeof (char))
15390 return 0;
15391 ;
15392 return 0;
15393}
15394_ACEOF
15395rm -f conftest.$ac_objext
15396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15397 (eval $ac_compile) 2>conftest.er1
a848cd7e 15398 ac_status=$?
ac1cb8d3
VS
15399 grep -v '^ *+' conftest.er1 >conftest.err
15400 rm -f conftest.er1
15401 cat conftest.err >&5
a848cd7e
SC
15402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } &&
6ebeb4c7 15404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15406 (eval $ac_try) 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; } &&
15410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; }; then
15416 ac_cv_type_char=yes
15417else
15418 echo "$as_me: failed program was:" >&5
15419sed 's/^/| /' conftest.$ac_ext >&5
15420
15421ac_cv_type_char=no
15422fi
ac1cb8d3 15423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15424fi
15425echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15426echo "${ECHO_T}$ac_cv_type_char" >&6
15427
15428echo "$as_me:$LINENO: checking size of char" >&5
15429echo $ECHO_N "checking size of char... $ECHO_C" >&6
15430if test "${ac_cv_sizeof_char+set}" = set; then
15431 echo $ECHO_N "(cached) $ECHO_C" >&6
15432else
15433 if test "$ac_cv_type_char" = yes; then
15434 # The cast to unsigned long works around a bug in the HP C Compiler
15435 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15436 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15437 # This bug is HP SR number 8606223364.
15438 if test "$cross_compiling" = yes; then
15439 # Depending upon the size, compute the lo and hi bounds.
15440cat >conftest.$ac_ext <<_ACEOF
15441/* confdefs.h. */
15442_ACEOF
15443cat confdefs.h >>conftest.$ac_ext
15444cat >>conftest.$ac_ext <<_ACEOF
15445/* end confdefs.h. */
15446$ac_includes_default
15447int
15448main ()
15449{
15450static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15451test_array [0] = 0
15452
15453 ;
15454 return 0;
15455}
15456_ACEOF
15457rm -f conftest.$ac_objext
15458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15459 (eval $ac_compile) 2>conftest.er1
a848cd7e 15460 ac_status=$?
ac1cb8d3
VS
15461 grep -v '^ *+' conftest.er1 >conftest.err
15462 rm -f conftest.er1
15463 cat conftest.err >&5
a848cd7e
SC
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
6ebeb4c7 15466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; } &&
15472 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_lo=0 ac_mid=0
15479 while :; do
15480 cat >conftest.$ac_ext <<_ACEOF
15481/* confdefs.h. */
15482_ACEOF
15483cat confdefs.h >>conftest.$ac_ext
15484cat >>conftest.$ac_ext <<_ACEOF
15485/* end confdefs.h. */
15486$ac_includes_default
15487int
15488main ()
15489{
15490static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15491test_array [0] = 0
15492
15493 ;
15494 return 0;
15495}
15496_ACEOF
15497rm -f conftest.$ac_objext
15498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15499 (eval $ac_compile) 2>conftest.er1
a848cd7e 15500 ac_status=$?
ac1cb8d3
VS
15501 grep -v '^ *+' conftest.er1 >conftest.err
15502 rm -f conftest.er1
15503 cat conftest.err >&5
a848cd7e
SC
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } &&
6ebeb4c7 15506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15509 ac_status=$?
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; } &&
15512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5
15515 ac_status=$?
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then
15518 ac_hi=$ac_mid; break
15519else
15520 echo "$as_me: failed program was:" >&5
15521sed 's/^/| /' conftest.$ac_ext >&5
15522
15523ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15524 if test $ac_lo -le $ac_mid; then
15525 ac_lo= ac_hi=
15526 break
15527 fi
15528 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15529fi
ac1cb8d3 15530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15531 done
15532else
15533 echo "$as_me: failed program was:" >&5
15534sed 's/^/| /' conftest.$ac_ext >&5
15535
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
15543int
15544main ()
15545{
15546static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15547test_array [0] = 0
15548
15549 ;
15550 return 0;
15551}
15552_ACEOF
15553rm -f conftest.$ac_objext
15554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15555 (eval $ac_compile) 2>conftest.er1
a848cd7e 15556 ac_status=$?
ac1cb8d3
VS
15557 grep -v '^ *+' conftest.er1 >conftest.err
15558 rm -f conftest.er1
15559 cat conftest.err >&5
a848cd7e
SC
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } &&
6ebeb4c7 15562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15565 ac_status=$?
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; } &&
15568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15571 ac_status=$?
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574 ac_hi=-1 ac_mid=-1
15575 while :; do
15576 cat >conftest.$ac_ext <<_ACEOF
15577/* confdefs.h. */
15578_ACEOF
15579cat confdefs.h >>conftest.$ac_ext
15580cat >>conftest.$ac_ext <<_ACEOF
15581/* end confdefs.h. */
15582$ac_includes_default
15583int
15584main ()
15585{
15586static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15587test_array [0] = 0
15588
15589 ;
15590 return 0;
15591}
15592_ACEOF
15593rm -f conftest.$ac_objext
15594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15595 (eval $ac_compile) 2>conftest.er1
a848cd7e 15596 ac_status=$?
ac1cb8d3
VS
15597 grep -v '^ *+' conftest.er1 >conftest.err
15598 rm -f conftest.er1
15599 cat conftest.err >&5
a848cd7e
SC
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } &&
6ebeb4c7 15602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; } &&
15608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15611 ac_status=$?
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; }; then
15614 ac_lo=$ac_mid; break
15615else
15616 echo "$as_me: failed program was:" >&5
15617sed 's/^/| /' conftest.$ac_ext >&5
15618
15619ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15620 if test $ac_mid -le $ac_hi; then
15621 ac_lo= ac_hi=
15622 break
15623 fi
15624 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15625fi
ac1cb8d3 15626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15627 done
15628else
15629 echo "$as_me: failed program was:" >&5
15630sed 's/^/| /' conftest.$ac_ext >&5
15631
15632ac_lo= ac_hi=
15633fi
ac1cb8d3 15634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15635fi
ac1cb8d3 15636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15637# Binary search between lo and hi bounds.
15638while test "x$ac_lo" != "x$ac_hi"; do
15639 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15640 cat >conftest.$ac_ext <<_ACEOF
15641/* confdefs.h. */
15642_ACEOF
15643cat confdefs.h >>conftest.$ac_ext
15644cat >>conftest.$ac_ext <<_ACEOF
15645/* end confdefs.h. */
15646$ac_includes_default
15647int
15648main ()
15649{
15650static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15651test_array [0] = 0
15652
15653 ;
15654 return 0;
15655}
15656_ACEOF
15657rm -f conftest.$ac_objext
15658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15659 (eval $ac_compile) 2>conftest.er1
a848cd7e 15660 ac_status=$?
ac1cb8d3
VS
15661 grep -v '^ *+' conftest.er1 >conftest.err
15662 rm -f conftest.er1
15663 cat conftest.err >&5
a848cd7e
SC
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } &&
6ebeb4c7 15666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15669 ac_status=$?
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; } &&
15672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674 (eval $ac_try) 2>&5
15675 ac_status=$?
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; }; then
15678 ac_hi=$ac_mid
15679else
15680 echo "$as_me: failed program was:" >&5
15681sed 's/^/| /' conftest.$ac_ext >&5
15682
15683ac_lo=`expr '(' $ac_mid ')' + 1`
15684fi
ac1cb8d3 15685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15686done
15687case $ac_lo in
15688?*) ac_cv_sizeof_char=$ac_lo;;
15689'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15690See \`config.log' for more details." >&5
15691echo "$as_me: error: cannot compute sizeof (char), 77
15692See \`config.log' for more details." >&2;}
15693 { (exit 1); exit 1; }; } ;;
15694esac
15695else
15696 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
15697 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15698echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15699 { (exit 1); exit 1; }; }
15700else
15701 cat >conftest.$ac_ext <<_ACEOF
15702/* confdefs.h. */
15703_ACEOF
15704cat confdefs.h >>conftest.$ac_ext
15705cat >>conftest.$ac_ext <<_ACEOF
15706/* end confdefs.h. */
15707$ac_includes_default
15708long longval () { return (long) (sizeof (char)); }
15709unsigned long ulongval () { return (long) (sizeof (char)); }
15710#include <stdio.h>
15711#include <stdlib.h>
15712int
15713main ()
15714{
15715
15716 FILE *f = fopen ("conftest.val", "w");
15717 if (! f)
15718 exit (1);
15719 if (((long) (sizeof (char))) < 0)
15720 {
15721 long i = longval ();
15722 if (i != ((long) (sizeof (char))))
15723 exit (1);
15724 fprintf (f, "%ld\n", i);
15725 }
15726 else
15727 {
15728 unsigned long i = ulongval ();
15729 if (i != ((long) (sizeof (char))))
15730 exit (1);
15731 fprintf (f, "%lu\n", i);
15732 }
15733 exit (ferror (f) || fclose (f) != 0);
15734
15735 ;
15736 return 0;
15737}
15738_ACEOF
15739rm -f conftest$ac_exeext
15740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15741 (eval $ac_link) 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15747 ac_status=$?
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 ac_cv_sizeof_char=`cat conftest.val`
15751else
15752 echo "$as_me: program exited with status $ac_status" >&5
15753echo "$as_me: failed program was:" >&5
15754sed 's/^/| /' conftest.$ac_ext >&5
15755
15756( exit $ac_status )
15757{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15758See \`config.log' for more details." >&5
15759echo "$as_me: error: cannot compute sizeof (char), 77
15760See \`config.log' for more details." >&2;}
15761 { (exit 1); exit 1; }; }
15762fi
ac1cb8d3 15763rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15764fi
15765fi
15766rm -f conftest.val
15767else
15768 ac_cv_sizeof_char=0
15769fi
15770fi
15771echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15772echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15773cat >>confdefs.h <<_ACEOF
15774#define SIZEOF_CHAR $ac_cv_sizeof_char
15775_ACEOF
15776
15777
15778echo "$as_me:$LINENO: checking for short" >&5
15779echo $ECHO_N "checking for short... $ECHO_C" >&6
15780if test "${ac_cv_type_short+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15782else
15783 cat >conftest.$ac_ext <<_ACEOF
15784/* confdefs.h. */
15785_ACEOF
15786cat confdefs.h >>conftest.$ac_ext
15787cat >>conftest.$ac_ext <<_ACEOF
15788/* end confdefs.h. */
15789$ac_includes_default
15790int
15791main ()
15792{
15793if ((short *) 0)
15794 return 0;
15795if (sizeof (short))
15796 return 0;
15797 ;
15798 return 0;
15799}
15800_ACEOF
15801rm -f conftest.$ac_objext
15802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15803 (eval $ac_compile) 2>conftest.er1
a848cd7e 15804 ac_status=$?
ac1cb8d3
VS
15805 grep -v '^ *+' conftest.er1 >conftest.err
15806 rm -f conftest.er1
15807 cat conftest.err >&5
a848cd7e
SC
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } &&
6ebeb4c7 15810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; } &&
15816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15819 ac_status=$?
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
15822 ac_cv_type_short=yes
15823else
15824 echo "$as_me: failed program was:" >&5
15825sed 's/^/| /' conftest.$ac_ext >&5
15826
15827ac_cv_type_short=no
15828fi
ac1cb8d3 15829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15830fi
15831echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15832echo "${ECHO_T}$ac_cv_type_short" >&6
15833
15834echo "$as_me:$LINENO: checking size of short" >&5
15835echo $ECHO_N "checking size of short... $ECHO_C" >&6
15836if test "${ac_cv_sizeof_short+set}" = set; then
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15838else
15839 if test "$ac_cv_type_short" = yes; then
15840 # The cast to unsigned long works around a bug in the HP C Compiler
15841 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15842 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15843 # This bug is HP SR number 8606223364.
15844 if test "$cross_compiling" = yes; then
15845 # Depending upon the size, compute the lo and hi bounds.
15846cat >conftest.$ac_ext <<_ACEOF
15847/* confdefs.h. */
15848_ACEOF
15849cat confdefs.h >>conftest.$ac_ext
15850cat >>conftest.$ac_ext <<_ACEOF
15851/* end confdefs.h. */
15852$ac_includes_default
15853int
15854main ()
15855{
15856static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15857test_array [0] = 0
15858
15859 ;
15860 return 0;
15861}
15862_ACEOF
15863rm -f conftest.$ac_objext
15864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15865 (eval $ac_compile) 2>conftest.er1
a848cd7e 15866 ac_status=$?
ac1cb8d3
VS
15867 grep -v '^ *+' conftest.er1 >conftest.err
15868 rm -f conftest.er1
15869 cat conftest.err >&5
a848cd7e
SC
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); } &&
6ebeb4c7 15872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15875 ac_status=$?
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; } &&
15878 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15881 ac_status=$?
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
15884 ac_lo=0 ac_mid=0
15885 while :; do
15886 cat >conftest.$ac_ext <<_ACEOF
15887/* confdefs.h. */
15888_ACEOF
15889cat confdefs.h >>conftest.$ac_ext
15890cat >>conftest.$ac_ext <<_ACEOF
15891/* end confdefs.h. */
15892$ac_includes_default
15893int
15894main ()
15895{
15896static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15897test_array [0] = 0
15898
15899 ;
15900 return 0;
15901}
15902_ACEOF
15903rm -f conftest.$ac_objext
15904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15905 (eval $ac_compile) 2>conftest.er1
a848cd7e 15906 ac_status=$?
ac1cb8d3
VS
15907 grep -v '^ *+' conftest.er1 >conftest.err
15908 rm -f conftest.er1
15909 cat conftest.err >&5
a848cd7e
SC
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } &&
6ebeb4c7 15912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15914 (eval $ac_try) 2>&5
15915 ac_status=$?
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }; } &&
15918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920 (eval $ac_try) 2>&5
15921 ac_status=$?
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; }; then
15924 ac_hi=$ac_mid; break
15925else
15926 echo "$as_me: failed program was:" >&5
15927sed 's/^/| /' conftest.$ac_ext >&5
15928
15929ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15930 if test $ac_lo -le $ac_mid; then
15931 ac_lo= ac_hi=
15932 break
15933 fi
15934 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15935fi
ac1cb8d3 15936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15937 done
15938else
15939 echo "$as_me: failed program was:" >&5
15940sed 's/^/| /' conftest.$ac_ext >&5
15941
15942cat >conftest.$ac_ext <<_ACEOF
15943/* confdefs.h. */
15944_ACEOF
15945cat confdefs.h >>conftest.$ac_ext
15946cat >>conftest.$ac_ext <<_ACEOF
15947/* end confdefs.h. */
15948$ac_includes_default
15949int
15950main ()
15951{
15952static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15953test_array [0] = 0
15954
15955 ;
15956 return 0;
15957}
15958_ACEOF
15959rm -f conftest.$ac_objext
15960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15961 (eval $ac_compile) 2>conftest.er1
a848cd7e 15962 ac_status=$?
ac1cb8d3
VS
15963 grep -v '^ *+' conftest.er1 >conftest.err
15964 rm -f conftest.er1
15965 cat conftest.err >&5
a848cd7e
SC
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
6ebeb4c7 15968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970 (eval $ac_try) 2>&5
15971 ac_status=$?
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); }; } &&
15974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976 (eval $ac_try) 2>&5
15977 ac_status=$?
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }; then
15980 ac_hi=-1 ac_mid=-1
15981 while :; do
15982 cat >conftest.$ac_ext <<_ACEOF
15983/* confdefs.h. */
15984_ACEOF
15985cat confdefs.h >>conftest.$ac_ext
15986cat >>conftest.$ac_ext <<_ACEOF
15987/* end confdefs.h. */
15988$ac_includes_default
15989int
15990main ()
15991{
15992static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15993test_array [0] = 0
15994
15995 ;
15996 return 0;
15997}
15998_ACEOF
15999rm -f conftest.$ac_objext
16000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16001 (eval $ac_compile) 2>conftest.er1
a848cd7e 16002 ac_status=$?
ac1cb8d3
VS
16003 grep -v '^ *+' conftest.er1 >conftest.err
16004 rm -f conftest.er1
16005 cat conftest.err >&5
a848cd7e
SC
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } &&
6ebeb4c7 16008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; } &&
16014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16020 ac_lo=$ac_mid; break
16021else
16022 echo "$as_me: failed program was:" >&5
16023sed 's/^/| /' conftest.$ac_ext >&5
16024
16025ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16026 if test $ac_mid -le $ac_hi; then
16027 ac_lo= ac_hi=
16028 break
16029 fi
16030 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16031fi
ac1cb8d3 16032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16033 done
16034else
16035 echo "$as_me: failed program was:" >&5
16036sed 's/^/| /' conftest.$ac_ext >&5
16037
16038ac_lo= ac_hi=
16039fi
ac1cb8d3 16040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16041fi
ac1cb8d3 16042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16043# Binary search between lo and hi bounds.
16044while test "x$ac_lo" != "x$ac_hi"; do
16045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16046 cat >conftest.$ac_ext <<_ACEOF
16047/* confdefs.h. */
16048_ACEOF
16049cat confdefs.h >>conftest.$ac_ext
16050cat >>conftest.$ac_ext <<_ACEOF
16051/* end confdefs.h. */
16052$ac_includes_default
16053int
16054main ()
16055{
16056static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16057test_array [0] = 0
16058
16059 ;
16060 return 0;
16061}
16062_ACEOF
16063rm -f conftest.$ac_objext
16064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16065 (eval $ac_compile) 2>conftest.er1
a848cd7e 16066 ac_status=$?
ac1cb8d3
VS
16067 grep -v '^ *+' conftest.er1 >conftest.err
16068 rm -f conftest.er1
16069 cat conftest.err >&5
a848cd7e
SC
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } &&
6ebeb4c7 16072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16075 ac_status=$?
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; } &&
16078 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; }; then
16084 ac_hi=$ac_mid
16085else
16086 echo "$as_me: failed program was:" >&5
16087sed 's/^/| /' conftest.$ac_ext >&5
16088
16089ac_lo=`expr '(' $ac_mid ')' + 1`
16090fi
ac1cb8d3 16091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16092done
16093case $ac_lo in
16094?*) ac_cv_sizeof_short=$ac_lo;;
16095'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16096See \`config.log' for more details." >&5
16097echo "$as_me: error: cannot compute sizeof (short), 77
16098See \`config.log' for more details." >&2;}
16099 { (exit 1); exit 1; }; } ;;
16100esac
16101else
16102 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16103 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16104echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16105 { (exit 1); exit 1; }; }
16106else
16107 cat >conftest.$ac_ext <<_ACEOF
16108/* confdefs.h. */
16109_ACEOF
16110cat confdefs.h >>conftest.$ac_ext
16111cat >>conftest.$ac_ext <<_ACEOF
16112/* end confdefs.h. */
16113$ac_includes_default
16114long longval () { return (long) (sizeof (short)); }
16115unsigned long ulongval () { return (long) (sizeof (short)); }
16116#include <stdio.h>
16117#include <stdlib.h>
16118int
16119main ()
16120{
16121
16122 FILE *f = fopen ("conftest.val", "w");
16123 if (! f)
16124 exit (1);
16125 if (((long) (sizeof (short))) < 0)
16126 {
16127 long i = longval ();
16128 if (i != ((long) (sizeof (short))))
16129 exit (1);
16130 fprintf (f, "%ld\n", i);
16131 }
16132 else
16133 {
16134 unsigned long i = ulongval ();
16135 if (i != ((long) (sizeof (short))))
16136 exit (1);
16137 fprintf (f, "%lu\n", i);
16138 }
16139 exit (ferror (f) || fclose (f) != 0);
16140
16141 ;
16142 return 0;
16143}
16144_ACEOF
16145rm -f conftest$ac_exeext
16146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16147 (eval $ac_link) 2>&5
16148 ac_status=$?
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
16156 ac_cv_sizeof_short=`cat conftest.val`
16157else
16158 echo "$as_me: program exited with status $ac_status" >&5
16159echo "$as_me: failed program was:" >&5
16160sed 's/^/| /' conftest.$ac_ext >&5
16161
16162( exit $ac_status )
16163{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16164See \`config.log' for more details." >&5
16165echo "$as_me: error: cannot compute sizeof (short), 77
16166See \`config.log' for more details." >&2;}
16167 { (exit 1); exit 1; }; }
16168fi
ac1cb8d3 16169rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16170fi
16171fi
16172rm -f conftest.val
16173else
16174 ac_cv_sizeof_short=0
16175fi
16176fi
16177echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16178echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16179cat >>confdefs.h <<_ACEOF
16180#define SIZEOF_SHORT $ac_cv_sizeof_short
16181_ACEOF
16182
16183
16184echo "$as_me:$LINENO: checking for void *" >&5
16185echo $ECHO_N "checking for void *... $ECHO_C" >&6
16186if test "${ac_cv_type_void_p+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16188else
16189 cat >conftest.$ac_ext <<_ACEOF
16190/* confdefs.h. */
16191_ACEOF
16192cat confdefs.h >>conftest.$ac_ext
16193cat >>conftest.$ac_ext <<_ACEOF
16194/* end confdefs.h. */
16195$ac_includes_default
16196int
16197main ()
16198{
16199if ((void * *) 0)
16200 return 0;
16201if (sizeof (void *))
16202 return 0;
16203 ;
16204 return 0;
16205}
16206_ACEOF
16207rm -f conftest.$ac_objext
16208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16209 (eval $ac_compile) 2>conftest.er1
a848cd7e 16210 ac_status=$?
ac1cb8d3
VS
16211 grep -v '^ *+' conftest.er1 >conftest.err
16212 rm -f conftest.er1
16213 cat conftest.err >&5
a848cd7e
SC
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } &&
6ebeb4c7 16216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; } &&
16222 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16228 ac_cv_type_void_p=yes
16229else
16230 echo "$as_me: failed program was:" >&5
16231sed 's/^/| /' conftest.$ac_ext >&5
16232
16233ac_cv_type_void_p=no
16234fi
ac1cb8d3 16235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16236fi
16237echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16238echo "${ECHO_T}$ac_cv_type_void_p" >&6
16239
16240echo "$as_me:$LINENO: checking size of void *" >&5
16241echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16242if test "${ac_cv_sizeof_void_p+set}" = set; then
16243 echo $ECHO_N "(cached) $ECHO_C" >&6
16244else
16245 if test "$ac_cv_type_void_p" = yes; then
16246 # The cast to unsigned long works around a bug in the HP C Compiler
16247 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16248 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16249 # This bug is HP SR number 8606223364.
16250 if test "$cross_compiling" = yes; then
16251 # Depending upon the size, compute the lo and hi bounds.
16252cat >conftest.$ac_ext <<_ACEOF
16253/* confdefs.h. */
16254_ACEOF
16255cat confdefs.h >>conftest.$ac_ext
16256cat >>conftest.$ac_ext <<_ACEOF
16257/* end confdefs.h. */
16258$ac_includes_default
16259int
16260main ()
16261{
16262static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16263test_array [0] = 0
16264
16265 ;
16266 return 0;
16267}
16268_ACEOF
16269rm -f conftest.$ac_objext
16270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16271 (eval $ac_compile) 2>conftest.er1
a848cd7e 16272 ac_status=$?
ac1cb8d3
VS
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
a848cd7e
SC
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } &&
6ebeb4c7 16278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280 (eval $ac_try) 2>&5
16281 ac_status=$?
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); }; } &&
16284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_lo=0 ac_mid=0
16291 while :; do
16292 cat >conftest.$ac_ext <<_ACEOF
16293/* confdefs.h. */
16294_ACEOF
16295cat confdefs.h >>conftest.$ac_ext
16296cat >>conftest.$ac_ext <<_ACEOF
16297/* end confdefs.h. */
16298$ac_includes_default
16299int
16300main ()
16301{
16302static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16303test_array [0] = 0
16304
16305 ;
16306 return 0;
16307}
16308_ACEOF
16309rm -f conftest.$ac_objext
16310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16311 (eval $ac_compile) 2>conftest.er1
a848cd7e 16312 ac_status=$?
ac1cb8d3
VS
16313 grep -v '^ *+' conftest.er1 >conftest.err
16314 rm -f conftest.er1
16315 cat conftest.err >&5
a848cd7e
SC
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); } &&
6ebeb4c7 16318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16321 ac_status=$?
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; } &&
16324 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16327 ac_status=$?
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16330 ac_hi=$ac_mid; break
16331else
16332 echo "$as_me: failed program was:" >&5
16333sed 's/^/| /' conftest.$ac_ext >&5
16334
16335ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16336 if test $ac_lo -le $ac_mid; then
16337 ac_lo= ac_hi=
16338 break
16339 fi
16340 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16341fi
ac1cb8d3 16342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16343 done
16344else
16345 echo "$as_me: failed program was:" >&5
16346sed 's/^/| /' conftest.$ac_ext >&5
16347
16348cat >conftest.$ac_ext <<_ACEOF
16349/* confdefs.h. */
16350_ACEOF
16351cat confdefs.h >>conftest.$ac_ext
16352cat >>conftest.$ac_ext <<_ACEOF
16353/* end confdefs.h. */
16354$ac_includes_default
16355int
16356main ()
16357{
16358static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16359test_array [0] = 0
16360
16361 ;
16362 return 0;
16363}
16364_ACEOF
16365rm -f conftest.$ac_objext
16366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16367 (eval $ac_compile) 2>conftest.er1
a848cd7e 16368 ac_status=$?
ac1cb8d3
VS
16369 grep -v '^ *+' conftest.er1 >conftest.err
16370 rm -f conftest.er1
16371 cat conftest.err >&5
a848cd7e
SC
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } &&
6ebeb4c7 16374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16377 ac_status=$?
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; } &&
16380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382 (eval $ac_try) 2>&5
16383 ac_status=$?
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; }; then
16386 ac_hi=-1 ac_mid=-1
16387 while :; do
16388 cat >conftest.$ac_ext <<_ACEOF
16389/* confdefs.h. */
16390_ACEOF
16391cat confdefs.h >>conftest.$ac_ext
16392cat >>conftest.$ac_ext <<_ACEOF
16393/* end confdefs.h. */
16394$ac_includes_default
16395int
16396main ()
16397{
16398static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16399test_array [0] = 0
16400
16401 ;
16402 return 0;
16403}
16404_ACEOF
16405rm -f conftest.$ac_objext
16406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16407 (eval $ac_compile) 2>conftest.er1
a848cd7e 16408 ac_status=$?
ac1cb8d3
VS
16409 grep -v '^ *+' conftest.er1 >conftest.err
16410 rm -f conftest.er1
16411 cat conftest.err >&5
a848cd7e
SC
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } &&
6ebeb4c7 16414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16416 (eval $ac_try) 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; } &&
16420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16422 (eval $ac_try) 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; }; then
16426 ac_lo=$ac_mid; break
16427else
16428 echo "$as_me: failed program was:" >&5
16429sed 's/^/| /' conftest.$ac_ext >&5
16430
16431ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16432 if test $ac_mid -le $ac_hi; then
16433 ac_lo= ac_hi=
16434 break
16435 fi
16436 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16437fi
ac1cb8d3 16438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16439 done
16440else
16441 echo "$as_me: failed program was:" >&5
16442sed 's/^/| /' conftest.$ac_ext >&5
16443
16444ac_lo= ac_hi=
16445fi
ac1cb8d3 16446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16447fi
ac1cb8d3 16448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16449# Binary search between lo and hi bounds.
16450while test "x$ac_lo" != "x$ac_hi"; do
16451 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16452 cat >conftest.$ac_ext <<_ACEOF
16453/* confdefs.h. */
16454_ACEOF
16455cat confdefs.h >>conftest.$ac_ext
16456cat >>conftest.$ac_ext <<_ACEOF
16457/* end confdefs.h. */
16458$ac_includes_default
16459int
16460main ()
16461{
16462static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16463test_array [0] = 0
16464
16465 ;
16466 return 0;
16467}
16468_ACEOF
16469rm -f conftest.$ac_objext
16470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16471 (eval $ac_compile) 2>conftest.er1
a848cd7e 16472 ac_status=$?
ac1cb8d3
VS
16473 grep -v '^ *+' conftest.er1 >conftest.err
16474 rm -f conftest.er1
16475 cat conftest.err >&5
a848cd7e
SC
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } &&
6ebeb4c7 16478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16481 ac_status=$?
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; } &&
16484 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16486 (eval $ac_try) 2>&5
16487 ac_status=$?
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; }; then
16490 ac_hi=$ac_mid
16491else
16492 echo "$as_me: failed program was:" >&5
16493sed 's/^/| /' conftest.$ac_ext >&5
16494
16495ac_lo=`expr '(' $ac_mid ')' + 1`
16496fi
ac1cb8d3 16497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16498done
16499case $ac_lo in
16500?*) ac_cv_sizeof_void_p=$ac_lo;;
16501'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16502See \`config.log' for more details." >&5
16503echo "$as_me: error: cannot compute sizeof (void *), 77
16504See \`config.log' for more details." >&2;}
16505 { (exit 1); exit 1; }; } ;;
16506esac
16507else
16508 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16509 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16510echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16511 { (exit 1); exit 1; }; }
16512else
16513 cat >conftest.$ac_ext <<_ACEOF
16514/* confdefs.h. */
16515_ACEOF
16516cat confdefs.h >>conftest.$ac_ext
16517cat >>conftest.$ac_ext <<_ACEOF
16518/* end confdefs.h. */
16519$ac_includes_default
16520long longval () { return (long) (sizeof (void *)); }
16521unsigned long ulongval () { return (long) (sizeof (void *)); }
16522#include <stdio.h>
16523#include <stdlib.h>
16524int
16525main ()
16526{
16527
16528 FILE *f = fopen ("conftest.val", "w");
16529 if (! f)
16530 exit (1);
16531 if (((long) (sizeof (void *))) < 0)
16532 {
16533 long i = longval ();
16534 if (i != ((long) (sizeof (void *))))
16535 exit (1);
16536 fprintf (f, "%ld\n", i);
16537 }
16538 else
16539 {
16540 unsigned long i = ulongval ();
16541 if (i != ((long) (sizeof (void *))))
16542 exit (1);
16543 fprintf (f, "%lu\n", i);
16544 }
16545 exit (ferror (f) || fclose (f) != 0);
16546
16547 ;
16548 return 0;
16549}
16550_ACEOF
16551rm -f conftest$ac_exeext
16552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16553 (eval $ac_link) 2>&5
16554 ac_status=$?
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16558 (eval $ac_try) 2>&5
16559 ac_status=$?
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; }; then
16562 ac_cv_sizeof_void_p=`cat conftest.val`
16563else
16564 echo "$as_me: program exited with status $ac_status" >&5
16565echo "$as_me: failed program was:" >&5
16566sed 's/^/| /' conftest.$ac_ext >&5
16567
16568( exit $ac_status )
16569{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16570See \`config.log' for more details." >&5
16571echo "$as_me: error: cannot compute sizeof (void *), 77
16572See \`config.log' for more details." >&2;}
16573 { (exit 1); exit 1; }; }
16574fi
ac1cb8d3 16575rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16576fi
16577fi
16578rm -f conftest.val
16579else
16580 ac_cv_sizeof_void_p=0
16581fi
16582fi
16583echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16584echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16585cat >>confdefs.h <<_ACEOF
16586#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16587_ACEOF
16588
16589
16590echo "$as_me:$LINENO: checking for int" >&5
16591echo $ECHO_N "checking for int... $ECHO_C" >&6
16592if test "${ac_cv_type_int+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16594else
16595 cat >conftest.$ac_ext <<_ACEOF
16596/* confdefs.h. */
16597_ACEOF
16598cat confdefs.h >>conftest.$ac_ext
16599cat >>conftest.$ac_ext <<_ACEOF
16600/* end confdefs.h. */
16601$ac_includes_default
16602int
16603main ()
16604{
16605if ((int *) 0)
16606 return 0;
16607if (sizeof (int))
16608 return 0;
16609 ;
16610 return 0;
16611}
16612_ACEOF
16613rm -f conftest.$ac_objext
16614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16615 (eval $ac_compile) 2>conftest.er1
a848cd7e 16616 ac_status=$?
ac1cb8d3
VS
16617 grep -v '^ *+' conftest.er1 >conftest.err
16618 rm -f conftest.er1
16619 cat conftest.err >&5
a848cd7e
SC
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
6ebeb4c7 16622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; } &&
16628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; }; then
16634 ac_cv_type_int=yes
16635else
16636 echo "$as_me: failed program was:" >&5
16637sed 's/^/| /' conftest.$ac_ext >&5
16638
16639ac_cv_type_int=no
16640fi
ac1cb8d3 16641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16642fi
16643echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16644echo "${ECHO_T}$ac_cv_type_int" >&6
16645
16646echo "$as_me:$LINENO: checking size of int" >&5
16647echo $ECHO_N "checking size of int... $ECHO_C" >&6
16648if test "${ac_cv_sizeof_int+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16650else
16651 if test "$ac_cv_type_int" = yes; then
16652 # The cast to unsigned long works around a bug in the HP C Compiler
16653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16655 # This bug is HP SR number 8606223364.
16656 if test "$cross_compiling" = yes; then
16657 # Depending upon the size, compute the lo and hi bounds.
16658cat >conftest.$ac_ext <<_ACEOF
16659/* confdefs.h. */
16660_ACEOF
16661cat confdefs.h >>conftest.$ac_ext
16662cat >>conftest.$ac_ext <<_ACEOF
16663/* end confdefs.h. */
16664$ac_includes_default
16665int
16666main ()
16667{
16668static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16669test_array [0] = 0
16670
16671 ;
16672 return 0;
16673}
16674_ACEOF
16675rm -f conftest.$ac_objext
16676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16677 (eval $ac_compile) 2>conftest.er1
a848cd7e 16678 ac_status=$?
ac1cb8d3
VS
16679 grep -v '^ *+' conftest.er1 >conftest.err
16680 rm -f conftest.er1
16681 cat conftest.err >&5
a848cd7e
SC
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } &&
6ebeb4c7 16684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16687 ac_status=$?
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; } &&
16690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16693 ac_status=$?
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16696 ac_lo=0 ac_mid=0
16697 while :; do
16698 cat >conftest.$ac_ext <<_ACEOF
16699/* confdefs.h. */
16700_ACEOF
16701cat confdefs.h >>conftest.$ac_ext
16702cat >>conftest.$ac_ext <<_ACEOF
16703/* end confdefs.h. */
16704$ac_includes_default
16705int
16706main ()
16707{
16708static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16709test_array [0] = 0
16710
16711 ;
16712 return 0;
16713}
16714_ACEOF
16715rm -f conftest.$ac_objext
16716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16717 (eval $ac_compile) 2>conftest.er1
a848cd7e 16718 ac_status=$?
ac1cb8d3
VS
16719 grep -v '^ *+' conftest.er1 >conftest.err
16720 rm -f conftest.er1
16721 cat conftest.err >&5
a848cd7e
SC
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } &&
6ebeb4c7 16724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; } &&
16730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 ac_hi=$ac_mid; break
16737else
16738 echo "$as_me: failed program was:" >&5
16739sed 's/^/| /' conftest.$ac_ext >&5
16740
16741ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16742 if test $ac_lo -le $ac_mid; then
16743 ac_lo= ac_hi=
16744 break
16745 fi
16746 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16747fi
ac1cb8d3 16748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16749 done
16750else
16751 echo "$as_me: failed program was:" >&5
16752sed 's/^/| /' conftest.$ac_ext >&5
16753
16754cat >conftest.$ac_ext <<_ACEOF
16755/* confdefs.h. */
16756_ACEOF
16757cat confdefs.h >>conftest.$ac_ext
16758cat >>conftest.$ac_ext <<_ACEOF
16759/* end confdefs.h. */
16760$ac_includes_default
16761int
16762main ()
16763{
16764static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16765test_array [0] = 0
16766
16767 ;
16768 return 0;
16769}
16770_ACEOF
16771rm -f conftest.$ac_objext
16772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16773 (eval $ac_compile) 2>conftest.er1
a848cd7e 16774 ac_status=$?
ac1cb8d3
VS
16775 grep -v '^ *+' conftest.er1 >conftest.err
16776 rm -f conftest.er1
16777 cat conftest.err >&5
a848cd7e
SC
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } &&
6ebeb4c7 16780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; } &&
16786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 ac_hi=-1 ac_mid=-1
16793 while :; do
16794 cat >conftest.$ac_ext <<_ACEOF
16795/* confdefs.h. */
16796_ACEOF
16797cat confdefs.h >>conftest.$ac_ext
16798cat >>conftest.$ac_ext <<_ACEOF
16799/* end confdefs.h. */
16800$ac_includes_default
16801int
16802main ()
16803{
16804static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16805test_array [0] = 0
16806
16807 ;
16808 return 0;
16809}
16810_ACEOF
16811rm -f conftest.$ac_objext
16812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16813 (eval $ac_compile) 2>conftest.er1
a848cd7e 16814 ac_status=$?
ac1cb8d3
VS
16815 grep -v '^ *+' conftest.er1 >conftest.err
16816 rm -f conftest.er1
16817 cat conftest.err >&5
a848cd7e
SC
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } &&
6ebeb4c7 16820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822 (eval $ac_try) 2>&5
16823 ac_status=$?
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; } &&
16826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828 (eval $ac_try) 2>&5
16829 ac_status=$?
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; }; then
16832 ac_lo=$ac_mid; break
16833else
16834 echo "$as_me: failed program was:" >&5
16835sed 's/^/| /' conftest.$ac_ext >&5
16836
16837ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16838 if test $ac_mid -le $ac_hi; then
16839 ac_lo= ac_hi=
16840 break
16841 fi
16842 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16843fi
ac1cb8d3 16844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16845 done
16846else
16847 echo "$as_me: failed program was:" >&5
16848sed 's/^/| /' conftest.$ac_ext >&5
16849
16850ac_lo= ac_hi=
16851fi
ac1cb8d3 16852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16853fi
ac1cb8d3 16854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16855# Binary search between lo and hi bounds.
16856while test "x$ac_lo" != "x$ac_hi"; do
16857 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16858 cat >conftest.$ac_ext <<_ACEOF
16859/* confdefs.h. */
16860_ACEOF
16861cat confdefs.h >>conftest.$ac_ext
16862cat >>conftest.$ac_ext <<_ACEOF
16863/* end confdefs.h. */
16864$ac_includes_default
16865int
16866main ()
16867{
16868static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16869test_array [0] = 0
16870
16871 ;
16872 return 0;
16873}
16874_ACEOF
16875rm -f conftest.$ac_objext
16876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16877 (eval $ac_compile) 2>conftest.er1
a848cd7e 16878 ac_status=$?
ac1cb8d3
VS
16879 grep -v '^ *+' conftest.er1 >conftest.err
16880 rm -f conftest.er1
16881 cat conftest.err >&5
a848cd7e
SC
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } &&
6ebeb4c7 16884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886 (eval $ac_try) 2>&5
16887 ac_status=$?
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; } &&
16890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892 (eval $ac_try) 2>&5
16893 ac_status=$?
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; }; then
16896 ac_hi=$ac_mid
16897else
16898 echo "$as_me: failed program was:" >&5
16899sed 's/^/| /' conftest.$ac_ext >&5
16900
16901ac_lo=`expr '(' $ac_mid ')' + 1`
16902fi
ac1cb8d3 16903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16904done
16905case $ac_lo in
16906?*) ac_cv_sizeof_int=$ac_lo;;
16907'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16908See \`config.log' for more details." >&5
16909echo "$as_me: error: cannot compute sizeof (int), 77
16910See \`config.log' for more details." >&2;}
16911 { (exit 1); exit 1; }; } ;;
16912esac
16913else
16914 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16915 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16916echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16917 { (exit 1); exit 1; }; }
16918else
16919 cat >conftest.$ac_ext <<_ACEOF
16920/* confdefs.h. */
16921_ACEOF
16922cat confdefs.h >>conftest.$ac_ext
16923cat >>conftest.$ac_ext <<_ACEOF
16924/* end confdefs.h. */
16925$ac_includes_default
16926long longval () { return (long) (sizeof (int)); }
16927unsigned long ulongval () { return (long) (sizeof (int)); }
16928#include <stdio.h>
16929#include <stdlib.h>
16930int
16931main ()
16932{
16933
16934 FILE *f = fopen ("conftest.val", "w");
16935 if (! f)
16936 exit (1);
16937 if (((long) (sizeof (int))) < 0)
16938 {
16939 long i = longval ();
16940 if (i != ((long) (sizeof (int))))
16941 exit (1);
16942 fprintf (f, "%ld\n", i);
16943 }
16944 else
16945 {
16946 unsigned long i = ulongval ();
16947 if (i != ((long) (sizeof (int))))
16948 exit (1);
16949 fprintf (f, "%lu\n", i);
16950 }
16951 exit (ferror (f) || fclose (f) != 0);
16952
16953 ;
16954 return 0;
16955}
16956_ACEOF
16957rm -f conftest$ac_exeext
16958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16959 (eval $ac_link) 2>&5
16960 ac_status=$?
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16965 ac_status=$?
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 ac_cv_sizeof_int=`cat conftest.val`
16969else
16970 echo "$as_me: program exited with status $ac_status" >&5
16971echo "$as_me: failed program was:" >&5
16972sed 's/^/| /' conftest.$ac_ext >&5
16973
16974( exit $ac_status )
16975{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16976See \`config.log' for more details." >&5
16977echo "$as_me: error: cannot compute sizeof (int), 77
16978See \`config.log' for more details." >&2;}
16979 { (exit 1); exit 1; }; }
16980fi
ac1cb8d3 16981rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16982fi
16983fi
16984rm -f conftest.val
16985else
16986 ac_cv_sizeof_int=0
16987fi
16988fi
16989echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16990echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16991cat >>confdefs.h <<_ACEOF
16992#define SIZEOF_INT $ac_cv_sizeof_int
16993_ACEOF
16994
16995
16996echo "$as_me:$LINENO: checking for long" >&5
16997echo $ECHO_N "checking for long... $ECHO_C" >&6
16998if test "${ac_cv_type_long+set}" = set; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17000else
17001 cat >conftest.$ac_ext <<_ACEOF
17002/* confdefs.h. */
17003_ACEOF
17004cat confdefs.h >>conftest.$ac_ext
17005cat >>conftest.$ac_ext <<_ACEOF
17006/* end confdefs.h. */
17007$ac_includes_default
17008int
17009main ()
17010{
17011if ((long *) 0)
17012 return 0;
17013if (sizeof (long))
17014 return 0;
17015 ;
17016 return 0;
17017}
17018_ACEOF
17019rm -f conftest.$ac_objext
17020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17021 (eval $ac_compile) 2>conftest.er1
a848cd7e 17022 ac_status=$?
ac1cb8d3
VS
17023 grep -v '^ *+' conftest.er1 >conftest.err
17024 rm -f conftest.er1
17025 cat conftest.err >&5
a848cd7e
SC
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); } &&
6ebeb4c7 17028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 ac_cv_type_long=yes
17041else
17042 echo "$as_me: failed program was:" >&5
17043sed 's/^/| /' conftest.$ac_ext >&5
17044
17045ac_cv_type_long=no
17046fi
ac1cb8d3 17047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17048fi
17049echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17050echo "${ECHO_T}$ac_cv_type_long" >&6
17051
17052echo "$as_me:$LINENO: checking size of long" >&5
17053echo $ECHO_N "checking size of long... $ECHO_C" >&6
17054if test "${ac_cv_sizeof_long+set}" = set; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17056else
17057 if test "$ac_cv_type_long" = yes; then
17058 # The cast to unsigned long works around a bug in the HP C Compiler
17059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17061 # This bug is HP SR number 8606223364.
17062 if test "$cross_compiling" = yes; then
17063 # Depending upon the size, compute the lo and hi bounds.
17064cat >conftest.$ac_ext <<_ACEOF
17065/* confdefs.h. */
17066_ACEOF
17067cat confdefs.h >>conftest.$ac_ext
17068cat >>conftest.$ac_ext <<_ACEOF
17069/* end confdefs.h. */
17070$ac_includes_default
17071int
17072main ()
17073{
17074static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17075test_array [0] = 0
17076
17077 ;
17078 return 0;
17079}
17080_ACEOF
17081rm -f conftest.$ac_objext
17082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17083 (eval $ac_compile) 2>conftest.er1
a848cd7e 17084 ac_status=$?
ac1cb8d3
VS
17085 grep -v '^ *+' conftest.er1 >conftest.err
17086 rm -f conftest.er1
17087 cat conftest.err >&5
a848cd7e
SC
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } &&
6ebeb4c7 17090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092 (eval $ac_try) 2>&5
17093 ac_status=$?
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; } &&
17096 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17099 ac_status=$?
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_lo=0 ac_mid=0
17103 while :; do
17104 cat >conftest.$ac_ext <<_ACEOF
17105/* confdefs.h. */
17106_ACEOF
17107cat confdefs.h >>conftest.$ac_ext
17108cat >>conftest.$ac_ext <<_ACEOF
17109/* end confdefs.h. */
17110$ac_includes_default
17111int
17112main ()
17113{
17114static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17115test_array [0] = 0
17116
17117 ;
17118 return 0;
17119}
17120_ACEOF
17121rm -f conftest.$ac_objext
17122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17123 (eval $ac_compile) 2>conftest.er1
a848cd7e 17124 ac_status=$?
ac1cb8d3
VS
17125 grep -v '^ *+' conftest.er1 >conftest.err
17126 rm -f conftest.er1
17127 cat conftest.err >&5
a848cd7e
SC
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
6ebeb4c7 17130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17133 ac_status=$?
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; } &&
17136 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138 (eval $ac_try) 2>&5
17139 ac_status=$?
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_hi=$ac_mid; break
17143else
17144 echo "$as_me: failed program was:" >&5
17145sed 's/^/| /' conftest.$ac_ext >&5
17146
17147ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17148 if test $ac_lo -le $ac_mid; then
17149 ac_lo= ac_hi=
17150 break
17151 fi
17152 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17153fi
ac1cb8d3 17154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17155 done
17156else
17157 echo "$as_me: failed program was:" >&5
17158sed 's/^/| /' conftest.$ac_ext >&5
17159
17160cat >conftest.$ac_ext <<_ACEOF
17161/* confdefs.h. */
17162_ACEOF
17163cat confdefs.h >>conftest.$ac_ext
17164cat >>conftest.$ac_ext <<_ACEOF
17165/* end confdefs.h. */
17166$ac_includes_default
17167int
17168main ()
17169{
17170static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17171test_array [0] = 0
17172
17173 ;
17174 return 0;
17175}
17176_ACEOF
17177rm -f conftest.$ac_objext
17178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17179 (eval $ac_compile) 2>conftest.er1
a848cd7e 17180 ac_status=$?
ac1cb8d3
VS
17181 grep -v '^ *+' conftest.er1 >conftest.err
17182 rm -f conftest.er1
17183 cat conftest.err >&5
a848cd7e
SC
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } &&
6ebeb4c7 17186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; } &&
17192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17194 (eval $ac_try) 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; }; then
17198 ac_hi=-1 ac_mid=-1
17199 while :; do
17200 cat >conftest.$ac_ext <<_ACEOF
17201/* confdefs.h. */
17202_ACEOF
17203cat confdefs.h >>conftest.$ac_ext
17204cat >>conftest.$ac_ext <<_ACEOF
17205/* end confdefs.h. */
17206$ac_includes_default
17207int
17208main ()
17209{
17210static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17211test_array [0] = 0
17212
17213 ;
17214 return 0;
17215}
17216_ACEOF
17217rm -f conftest.$ac_objext
17218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17219 (eval $ac_compile) 2>conftest.er1
a848cd7e 17220 ac_status=$?
ac1cb8d3
VS
17221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
a848cd7e
SC
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
6ebeb4c7 17226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234 (eval $ac_try) 2>&5
17235 ac_status=$?
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; }; then
17238 ac_lo=$ac_mid; break
17239else
17240 echo "$as_me: failed program was:" >&5
17241sed 's/^/| /' conftest.$ac_ext >&5
17242
17243ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17244 if test $ac_mid -le $ac_hi; then
17245 ac_lo= ac_hi=
17246 break
17247 fi
17248 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17249fi
ac1cb8d3 17250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17251 done
17252else
17253 echo "$as_me: failed program was:" >&5
17254sed 's/^/| /' conftest.$ac_ext >&5
17255
17256ac_lo= ac_hi=
17257fi
ac1cb8d3 17258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17259fi
ac1cb8d3 17260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17261# Binary search between lo and hi bounds.
17262while test "x$ac_lo" != "x$ac_hi"; do
17263 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17264 cat >conftest.$ac_ext <<_ACEOF
17265/* confdefs.h. */
17266_ACEOF
17267cat confdefs.h >>conftest.$ac_ext
17268cat >>conftest.$ac_ext <<_ACEOF
17269/* end confdefs.h. */
17270$ac_includes_default
17271int
17272main ()
17273{
17274static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17275test_array [0] = 0
17276
17277 ;
17278 return 0;
17279}
17280_ACEOF
17281rm -f conftest.$ac_objext
17282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17283 (eval $ac_compile) 2>conftest.er1
a848cd7e 17284 ac_status=$?
ac1cb8d3
VS
17285 grep -v '^ *+' conftest.er1 >conftest.err
17286 rm -f conftest.er1
17287 cat conftest.err >&5
a848cd7e
SC
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } &&
6ebeb4c7 17290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17292 (eval $ac_try) 2>&5
17293 ac_status=$?
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; } &&
17296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 ac_hi=$ac_mid
17303else
17304 echo "$as_me: failed program was:" >&5
17305sed 's/^/| /' conftest.$ac_ext >&5
17306
17307ac_lo=`expr '(' $ac_mid ')' + 1`
17308fi
ac1cb8d3 17309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17310done
17311case $ac_lo in
17312?*) ac_cv_sizeof_long=$ac_lo;;
17313'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17314See \`config.log' for more details." >&5
17315echo "$as_me: error: cannot compute sizeof (long), 77
17316See \`config.log' for more details." >&2;}
17317 { (exit 1); exit 1; }; } ;;
17318esac
17319else
17320 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17321 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17322echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17323 { (exit 1); exit 1; }; }
17324else
17325 cat >conftest.$ac_ext <<_ACEOF
17326/* confdefs.h. */
17327_ACEOF
17328cat confdefs.h >>conftest.$ac_ext
17329cat >>conftest.$ac_ext <<_ACEOF
17330/* end confdefs.h. */
17331$ac_includes_default
17332long longval () { return (long) (sizeof (long)); }
17333unsigned long ulongval () { return (long) (sizeof (long)); }
17334#include <stdio.h>
17335#include <stdlib.h>
17336int
17337main ()
17338{
17339
17340 FILE *f = fopen ("conftest.val", "w");
17341 if (! f)
17342 exit (1);
17343 if (((long) (sizeof (long))) < 0)
17344 {
17345 long i = longval ();
17346 if (i != ((long) (sizeof (long))))
17347 exit (1);
17348 fprintf (f, "%ld\n", i);
17349 }
17350 else
17351 {
17352 unsigned long i = ulongval ();
17353 if (i != ((long) (sizeof (long))))
17354 exit (1);
17355 fprintf (f, "%lu\n", i);
17356 }
17357 exit (ferror (f) || fclose (f) != 0);
17358
17359 ;
17360 return 0;
17361}
17362_ACEOF
17363rm -f conftest$ac_exeext
17364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17365 (eval $ac_link) 2>&5
17366 ac_status=$?
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370 (eval $ac_try) 2>&5
17371 ac_status=$?
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); }; }; then
17374 ac_cv_sizeof_long=`cat conftest.val`
17375else
17376 echo "$as_me: program exited with status $ac_status" >&5
17377echo "$as_me: failed program was:" >&5
17378sed 's/^/| /' conftest.$ac_ext >&5
17379
17380( exit $ac_status )
17381{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17382See \`config.log' for more details." >&5
17383echo "$as_me: error: cannot compute sizeof (long), 77
17384See \`config.log' for more details." >&2;}
17385 { (exit 1); exit 1; }; }
17386fi
ac1cb8d3 17387rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17388fi
17389fi
17390rm -f conftest.val
17391else
17392 ac_cv_sizeof_long=0
17393fi
17394fi
17395echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17396echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17397cat >>confdefs.h <<_ACEOF
17398#define SIZEOF_LONG $ac_cv_sizeof_long
17399_ACEOF
17400
17401
17402echo "$as_me:$LINENO: checking for size_t" >&5
17403echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17404if test "${ac_cv_type_size_t+set}" = set; then
17405 echo $ECHO_N "(cached) $ECHO_C" >&6
17406else
17407 cat >conftest.$ac_ext <<_ACEOF
17408/* confdefs.h. */
17409_ACEOF
17410cat confdefs.h >>conftest.$ac_ext
17411cat >>conftest.$ac_ext <<_ACEOF
17412/* end confdefs.h. */
17413$ac_includes_default
17414int
17415main ()
17416{
17417if ((size_t *) 0)
17418 return 0;
17419if (sizeof (size_t))
17420 return 0;
17421 ;
17422 return 0;
17423}
17424_ACEOF
17425rm -f conftest.$ac_objext
17426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17427 (eval $ac_compile) 2>conftest.er1
a848cd7e 17428 ac_status=$?
ac1cb8d3
VS
17429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
a848cd7e
SC
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
6ebeb4c7 17434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17436 (eval $ac_try) 2>&5
17437 ac_status=$?
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; } &&
17440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446 ac_cv_type_size_t=yes
17447else
17448 echo "$as_me: failed program was:" >&5
17449sed 's/^/| /' conftest.$ac_ext >&5
17450
17451ac_cv_type_size_t=no
17452fi
ac1cb8d3 17453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17454fi
17455echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17456echo "${ECHO_T}$ac_cv_type_size_t" >&6
17457
17458echo "$as_me:$LINENO: checking size of size_t" >&5
17459echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17460if test "${ac_cv_sizeof_size_t+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17462else
17463 if test "$ac_cv_type_size_t" = yes; then
17464 # The cast to unsigned long works around a bug in the HP C Compiler
17465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17467 # This bug is HP SR number 8606223364.
17468 if test "$cross_compiling" = yes; then
17469 # Depending upon the size, compute the lo and hi bounds.
17470cat >conftest.$ac_ext <<_ACEOF
17471/* confdefs.h. */
17472_ACEOF
17473cat confdefs.h >>conftest.$ac_ext
17474cat >>conftest.$ac_ext <<_ACEOF
17475/* end confdefs.h. */
17476$ac_includes_default
17477int
17478main ()
17479{
17480static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17481test_array [0] = 0
17482
17483 ;
17484 return 0;
17485}
17486_ACEOF
17487rm -f conftest.$ac_objext
17488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17489 (eval $ac_compile) 2>conftest.er1
a848cd7e 17490 ac_status=$?
ac1cb8d3
VS
17491 grep -v '^ *+' conftest.er1 >conftest.err
17492 rm -f conftest.er1
17493 cat conftest.err >&5
a848cd7e
SC
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } &&
6ebeb4c7 17496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; } &&
17502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504 (eval $ac_try) 2>&5
17505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; }; then
17508 ac_lo=0 ac_mid=0
17509 while :; do
17510 cat >conftest.$ac_ext <<_ACEOF
17511/* confdefs.h. */
17512_ACEOF
17513cat confdefs.h >>conftest.$ac_ext
17514cat >>conftest.$ac_ext <<_ACEOF
17515/* end confdefs.h. */
17516$ac_includes_default
17517int
17518main ()
17519{
17520static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17521test_array [0] = 0
17522
17523 ;
17524 return 0;
17525}
17526_ACEOF
17527rm -f conftest.$ac_objext
17528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17529 (eval $ac_compile) 2>conftest.er1
a848cd7e 17530 ac_status=$?
ac1cb8d3
VS
17531 grep -v '^ *+' conftest.er1 >conftest.err
17532 rm -f conftest.er1
17533 cat conftest.err >&5
a848cd7e
SC
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
6ebeb4c7 17536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; } &&
17542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17545 ac_status=$?
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 ac_hi=$ac_mid; break
17549else
17550 echo "$as_me: failed program was:" >&5
17551sed 's/^/| /' conftest.$ac_ext >&5
17552
17553ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17554 if test $ac_lo -le $ac_mid; then
17555 ac_lo= ac_hi=
17556 break
17557 fi
17558 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17559fi
ac1cb8d3 17560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17561 done
17562else
17563 echo "$as_me: failed program was:" >&5
17564sed 's/^/| /' conftest.$ac_ext >&5
17565
17566cat >conftest.$ac_ext <<_ACEOF
17567/* confdefs.h. */
17568_ACEOF
17569cat confdefs.h >>conftest.$ac_ext
17570cat >>conftest.$ac_ext <<_ACEOF
17571/* end confdefs.h. */
17572$ac_includes_default
17573int
17574main ()
17575{
17576static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17577test_array [0] = 0
17578
17579 ;
17580 return 0;
17581}
17582_ACEOF
17583rm -f conftest.$ac_objext
17584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17585 (eval $ac_compile) 2>conftest.er1
a848cd7e 17586 ac_status=$?
ac1cb8d3
VS
17587 grep -v '^ *+' conftest.er1 >conftest.err
17588 rm -f conftest.er1
17589 cat conftest.err >&5
a848cd7e
SC
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
6ebeb4c7 17592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; } &&
17598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 ac_hi=-1 ac_mid=-1
17605 while :; do
17606 cat >conftest.$ac_ext <<_ACEOF
17607/* confdefs.h. */
17608_ACEOF
17609cat confdefs.h >>conftest.$ac_ext
17610cat >>conftest.$ac_ext <<_ACEOF
17611/* end confdefs.h. */
17612$ac_includes_default
17613int
17614main ()
17615{
17616static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17617test_array [0] = 0
17618
17619 ;
17620 return 0;
17621}
17622_ACEOF
17623rm -f conftest.$ac_objext
17624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17625 (eval $ac_compile) 2>conftest.er1
a848cd7e 17626 ac_status=$?
ac1cb8d3
VS
17627 grep -v '^ *+' conftest.er1 >conftest.err
17628 rm -f conftest.er1
17629 cat conftest.err >&5
a848cd7e
SC
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } &&
6ebeb4c7 17632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17635 ac_status=$?
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; } &&
17638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17641 ac_status=$?
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 ac_lo=$ac_mid; break
17645else
17646 echo "$as_me: failed program was:" >&5
17647sed 's/^/| /' conftest.$ac_ext >&5
17648
17649ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17650 if test $ac_mid -le $ac_hi; then
17651 ac_lo= ac_hi=
17652 break
17653 fi
17654 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17655fi
ac1cb8d3 17656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17657 done
17658else
17659 echo "$as_me: failed program was:" >&5
17660sed 's/^/| /' conftest.$ac_ext >&5
17661
17662ac_lo= ac_hi=
17663fi
ac1cb8d3 17664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17665fi
ac1cb8d3 17666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17667# Binary search between lo and hi bounds.
17668while test "x$ac_lo" != "x$ac_hi"; do
17669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17670 cat >conftest.$ac_ext <<_ACEOF
17671/* confdefs.h. */
17672_ACEOF
17673cat confdefs.h >>conftest.$ac_ext
17674cat >>conftest.$ac_ext <<_ACEOF
17675/* end confdefs.h. */
17676$ac_includes_default
17677int
17678main ()
17679{
17680static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17681test_array [0] = 0
17682
17683 ;
17684 return 0;
17685}
17686_ACEOF
17687rm -f conftest.$ac_objext
17688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17689 (eval $ac_compile) 2>conftest.er1
a848cd7e 17690 ac_status=$?
ac1cb8d3
VS
17691 grep -v '^ *+' conftest.er1 >conftest.err
17692 rm -f conftest.er1
17693 cat conftest.err >&5
a848cd7e
SC
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } &&
6ebeb4c7 17696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17699 ac_status=$?
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; } &&
17702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
17708 ac_hi=$ac_mid
17709else
17710 echo "$as_me: failed program was:" >&5
17711sed 's/^/| /' conftest.$ac_ext >&5
17712
17713ac_lo=`expr '(' $ac_mid ')' + 1`
17714fi
ac1cb8d3 17715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17716done
17717case $ac_lo in
17718?*) ac_cv_sizeof_size_t=$ac_lo;;
17719'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17720See \`config.log' for more details." >&5
17721echo "$as_me: error: cannot compute sizeof (size_t), 77
17722See \`config.log' for more details." >&2;}
17723 { (exit 1); exit 1; }; } ;;
17724esac
17725else
17726 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17727 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17728echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17729 { (exit 1); exit 1; }; }
17730else
17731 cat >conftest.$ac_ext <<_ACEOF
17732/* confdefs.h. */
17733_ACEOF
17734cat confdefs.h >>conftest.$ac_ext
17735cat >>conftest.$ac_ext <<_ACEOF
17736/* end confdefs.h. */
17737$ac_includes_default
17738long longval () { return (long) (sizeof (size_t)); }
17739unsigned long ulongval () { return (long) (sizeof (size_t)); }
17740#include <stdio.h>
17741#include <stdlib.h>
17742int
17743main ()
17744{
17745
17746 FILE *f = fopen ("conftest.val", "w");
17747 if (! f)
17748 exit (1);
17749 if (((long) (sizeof (size_t))) < 0)
17750 {
17751 long i = longval ();
17752 if (i != ((long) (sizeof (size_t))))
17753 exit (1);
17754 fprintf (f, "%ld\n", i);
17755 }
17756 else
17757 {
17758 unsigned long i = ulongval ();
17759 if (i != ((long) (sizeof (size_t))))
17760 exit (1);
17761 fprintf (f, "%lu\n", i);
17762 }
17763 exit (ferror (f) || fclose (f) != 0);
17764
17765 ;
17766 return 0;
17767}
17768_ACEOF
17769rm -f conftest$ac_exeext
17770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17771 (eval $ac_link) 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17780 ac_cv_sizeof_size_t=`cat conftest.val`
17781else
17782 echo "$as_me: program exited with status $ac_status" >&5
17783echo "$as_me: failed program was:" >&5
17784sed 's/^/| /' conftest.$ac_ext >&5
17785
17786( exit $ac_status )
17787{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17788See \`config.log' for more details." >&5
17789echo "$as_me: error: cannot compute sizeof (size_t), 77
17790See \`config.log' for more details." >&2;}
17791 { (exit 1); exit 1; }; }
17792fi
ac1cb8d3 17793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17794fi
17795fi
17796rm -f conftest.val
17797else
17798 ac_cv_sizeof_size_t=0
17799fi
17800fi
17801echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17802echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17803cat >>confdefs.h <<_ACEOF
17804#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17805_ACEOF
17806
17807
17808
17809case "${host}" in
17810 arm-*-linux* )
17811 echo "$as_me:$LINENO: checking for long long" >&5
17812echo $ECHO_N "checking for long long... $ECHO_C" >&6
17813if test "${ac_cv_type_long_long+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17815else
17816 cat >conftest.$ac_ext <<_ACEOF
17817/* confdefs.h. */
17818_ACEOF
17819cat confdefs.h >>conftest.$ac_ext
17820cat >>conftest.$ac_ext <<_ACEOF
17821/* end confdefs.h. */
17822$ac_includes_default
17823int
17824main ()
17825{
17826if ((long long *) 0)
17827 return 0;
17828if (sizeof (long long))
17829 return 0;
17830 ;
17831 return 0;
17832}
17833_ACEOF
17834rm -f conftest.$ac_objext
17835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17836 (eval $ac_compile) 2>conftest.er1
a848cd7e 17837 ac_status=$?
ac1cb8d3
VS
17838 grep -v '^ *+' conftest.er1 >conftest.err
17839 rm -f conftest.er1
17840 cat conftest.err >&5
a848cd7e
SC
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); } &&
6ebeb4c7 17843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17846 ac_status=$?
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; } &&
17849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; }; then
17855 ac_cv_type_long_long=yes
17856else
17857 echo "$as_me: failed program was:" >&5
17858sed 's/^/| /' conftest.$ac_ext >&5
17859
17860ac_cv_type_long_long=no
17861fi
ac1cb8d3 17862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17863fi
17864echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17865echo "${ECHO_T}$ac_cv_type_long_long" >&6
17866
17867echo "$as_me:$LINENO: checking size of long long" >&5
17868echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17869if test "${ac_cv_sizeof_long_long+set}" = set; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17871else
17872 if test "$ac_cv_type_long_long" = yes; then
17873 # The cast to unsigned long works around a bug in the HP C Compiler
17874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17876 # This bug is HP SR number 8606223364.
17877 if test "$cross_compiling" = yes; then
17878 # Depending upon the size, compute the lo and hi bounds.
17879cat >conftest.$ac_ext <<_ACEOF
17880/* confdefs.h. */
17881_ACEOF
17882cat confdefs.h >>conftest.$ac_ext
17883cat >>conftest.$ac_ext <<_ACEOF
17884/* end confdefs.h. */
17885$ac_includes_default
17886int
17887main ()
17888{
17889static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17890test_array [0] = 0
17891
17892 ;
17893 return 0;
17894}
17895_ACEOF
17896rm -f conftest.$ac_objext
17897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17898 (eval $ac_compile) 2>conftest.er1
a848cd7e 17899 ac_status=$?
ac1cb8d3
VS
17900 grep -v '^ *+' conftest.er1 >conftest.err
17901 rm -f conftest.er1
17902 cat conftest.err >&5
a848cd7e
SC
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } &&
6ebeb4c7 17905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907 (eval $ac_try) 2>&5
17908 ac_status=$?
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; } &&
17911 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17914 ac_status=$?
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; }; then
17917 ac_lo=0 ac_mid=0
17918 while :; do
17919 cat >conftest.$ac_ext <<_ACEOF
17920/* confdefs.h. */
17921_ACEOF
17922cat confdefs.h >>conftest.$ac_ext
17923cat >>conftest.$ac_ext <<_ACEOF
17924/* end confdefs.h. */
17925$ac_includes_default
17926int
17927main ()
17928{
17929static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17930test_array [0] = 0
17931
17932 ;
17933 return 0;
17934}
17935_ACEOF
17936rm -f conftest.$ac_objext
17937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17938 (eval $ac_compile) 2>conftest.er1
a848cd7e 17939 ac_status=$?
ac1cb8d3
VS
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
a848cd7e
SC
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
6ebeb4c7 17945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 ac_hi=$ac_mid; break
17958else
17959 echo "$as_me: failed program was:" >&5
17960sed 's/^/| /' conftest.$ac_ext >&5
17961
17962ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17963 if test $ac_lo -le $ac_mid; then
17964 ac_lo= ac_hi=
17965 break
17966 fi
17967 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17968fi
ac1cb8d3 17969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17970 done
17971else
17972 echo "$as_me: failed program was:" >&5
17973sed 's/^/| /' conftest.$ac_ext >&5
17974
17975cat >conftest.$ac_ext <<_ACEOF
17976/* confdefs.h. */
17977_ACEOF
17978cat confdefs.h >>conftest.$ac_ext
17979cat >>conftest.$ac_ext <<_ACEOF
17980/* end confdefs.h. */
17981$ac_includes_default
17982int
17983main ()
17984{
17985static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17986test_array [0] = 0
17987
17988 ;
17989 return 0;
17990}
17991_ACEOF
17992rm -f conftest.$ac_objext
17993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17994 (eval $ac_compile) 2>conftest.er1
a848cd7e 17995 ac_status=$?
ac1cb8d3
VS
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
a848cd7e
SC
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
6ebeb4c7 18001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; } &&
18007 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009 (eval $ac_try) 2>&5
18010 ac_status=$?
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; }; then
18013 ac_hi=-1 ac_mid=-1
18014 while :; do
18015 cat >conftest.$ac_ext <<_ACEOF
18016/* confdefs.h. */
18017_ACEOF
18018cat confdefs.h >>conftest.$ac_ext
18019cat >>conftest.$ac_ext <<_ACEOF
18020/* end confdefs.h. */
18021$ac_includes_default
18022int
18023main ()
18024{
18025static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18026test_array [0] = 0
18027
18028 ;
18029 return 0;
18030}
18031_ACEOF
18032rm -f conftest.$ac_objext
18033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18034 (eval $ac_compile) 2>conftest.er1
a848cd7e 18035 ac_status=$?
ac1cb8d3
VS
18036 grep -v '^ *+' conftest.er1 >conftest.err
18037 rm -f conftest.er1
18038 cat conftest.err >&5
a848cd7e
SC
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } &&
6ebeb4c7 18041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18044 ac_status=$?
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; } &&
18047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18050 ac_status=$?
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; }; then
18053 ac_lo=$ac_mid; break
18054else
18055 echo "$as_me: failed program was:" >&5
18056sed 's/^/| /' conftest.$ac_ext >&5
18057
18058ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18059 if test $ac_mid -le $ac_hi; then
18060 ac_lo= ac_hi=
18061 break
18062 fi
18063 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18064fi
ac1cb8d3 18065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18066 done
18067else
18068 echo "$as_me: failed program was:" >&5
18069sed 's/^/| /' conftest.$ac_ext >&5
18070
18071ac_lo= ac_hi=
18072fi
ac1cb8d3 18073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18074fi
ac1cb8d3 18075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18076# Binary search between lo and hi bounds.
18077while test "x$ac_lo" != "x$ac_hi"; do
18078 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18079 cat >conftest.$ac_ext <<_ACEOF
18080/* confdefs.h. */
18081_ACEOF
18082cat confdefs.h >>conftest.$ac_ext
18083cat >>conftest.$ac_ext <<_ACEOF
18084/* end confdefs.h. */
18085$ac_includes_default
18086int
18087main ()
18088{
18089static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18090test_array [0] = 0
18091
18092 ;
18093 return 0;
18094}
18095_ACEOF
18096rm -f conftest.$ac_objext
18097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18098 (eval $ac_compile) 2>conftest.er1
a848cd7e 18099 ac_status=$?
ac1cb8d3
VS
18100 grep -v '^ *+' conftest.er1 >conftest.err
18101 rm -f conftest.er1
18102 cat conftest.err >&5
a848cd7e
SC
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
6ebeb4c7 18105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117 ac_hi=$ac_mid
18118else
18119 echo "$as_me: failed program was:" >&5
18120sed 's/^/| /' conftest.$ac_ext >&5
18121
18122ac_lo=`expr '(' $ac_mid ')' + 1`
18123fi
ac1cb8d3 18124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18125done
18126case $ac_lo in
18127?*) ac_cv_sizeof_long_long=$ac_lo;;
18128'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18129See \`config.log' for more details." >&5
18130echo "$as_me: error: cannot compute sizeof (long long), 77
18131See \`config.log' for more details." >&2;}
18132 { (exit 1); exit 1; }; } ;;
18133esac
18134else
18135 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18136 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18137echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18138 { (exit 1); exit 1; }; }
18139else
18140 cat >conftest.$ac_ext <<_ACEOF
18141/* confdefs.h. */
18142_ACEOF
18143cat confdefs.h >>conftest.$ac_ext
18144cat >>conftest.$ac_ext <<_ACEOF
18145/* end confdefs.h. */
18146$ac_includes_default
18147long longval () { return (long) (sizeof (long long)); }
18148unsigned long ulongval () { return (long) (sizeof (long long)); }
18149#include <stdio.h>
18150#include <stdlib.h>
18151int
18152main ()
18153{
18154
18155 FILE *f = fopen ("conftest.val", "w");
18156 if (! f)
18157 exit (1);
18158 if (((long) (sizeof (long long))) < 0)
18159 {
18160 long i = longval ();
18161 if (i != ((long) (sizeof (long long))))
18162 exit (1);
18163 fprintf (f, "%ld\n", i);
18164 }
18165 else
18166 {
18167 unsigned long i = ulongval ();
18168 if (i != ((long) (sizeof (long long))))
18169 exit (1);
18170 fprintf (f, "%lu\n", i);
18171 }
18172 exit (ferror (f) || fclose (f) != 0);
18173
18174 ;
18175 return 0;
18176}
18177_ACEOF
18178rm -f conftest$ac_exeext
18179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18180 (eval $ac_link) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; }; then
18189 ac_cv_sizeof_long_long=`cat conftest.val`
18190else
18191 echo "$as_me: program exited with status $ac_status" >&5
18192echo "$as_me: failed program was:" >&5
18193sed 's/^/| /' conftest.$ac_ext >&5
18194
18195( exit $ac_status )
18196{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18197See \`config.log' for more details." >&5
18198echo "$as_me: error: cannot compute sizeof (long long), 77
18199See \`config.log' for more details." >&2;}
18200 { (exit 1); exit 1; }; }
18201fi
ac1cb8d3 18202rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18203fi
18204fi
18205rm -f conftest.val
18206else
18207 ac_cv_sizeof_long_long=0
18208fi
18209fi
18210echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18211echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18212cat >>confdefs.h <<_ACEOF
18213#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18214_ACEOF
18215
18216
18217 ;;
18218 *-hp-hpux* )
18219 echo "$as_me:$LINENO: checking for long long" >&5
18220echo $ECHO_N "checking for long long... $ECHO_C" >&6
18221if test "${ac_cv_type_long_long+set}" = set; then
18222 echo $ECHO_N "(cached) $ECHO_C" >&6
18223else
18224 cat >conftest.$ac_ext <<_ACEOF
18225/* confdefs.h. */
18226_ACEOF
18227cat confdefs.h >>conftest.$ac_ext
18228cat >>conftest.$ac_ext <<_ACEOF
18229/* end confdefs.h. */
18230$ac_includes_default
18231int
18232main ()
18233{
18234if ((long long *) 0)
18235 return 0;
18236if (sizeof (long long))
18237 return 0;
18238 ;
18239 return 0;
18240}
18241_ACEOF
18242rm -f conftest.$ac_objext
18243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18244 (eval $ac_compile) 2>conftest.er1
a848cd7e 18245 ac_status=$?
ac1cb8d3
VS
18246 grep -v '^ *+' conftest.er1 >conftest.err
18247 rm -f conftest.er1
18248 cat conftest.err >&5
a848cd7e
SC
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } &&
6ebeb4c7 18251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253 (eval $ac_try) 2>&5
18254 ac_status=$?
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; } &&
18257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18259 (eval $ac_try) 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); }; }; then
18263 ac_cv_type_long_long=yes
18264else
18265 echo "$as_me: failed program was:" >&5
18266sed 's/^/| /' conftest.$ac_ext >&5
18267
18268ac_cv_type_long_long=no
18269fi
ac1cb8d3 18270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18271fi
18272echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18273echo "${ECHO_T}$ac_cv_type_long_long" >&6
18274
18275echo "$as_me:$LINENO: checking size of long long" >&5
18276echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18277if test "${ac_cv_sizeof_long_long+set}" = set; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
18279else
18280 if test "$ac_cv_type_long_long" = yes; then
18281 # The cast to unsigned long works around a bug in the HP C Compiler
18282 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18283 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18284 # This bug is HP SR number 8606223364.
18285 if test "$cross_compiling" = yes; then
18286 # Depending upon the size, compute the lo and hi bounds.
18287cat >conftest.$ac_ext <<_ACEOF
18288/* confdefs.h. */
18289_ACEOF
18290cat confdefs.h >>conftest.$ac_ext
18291cat >>conftest.$ac_ext <<_ACEOF
18292/* end confdefs.h. */
18293$ac_includes_default
18294int
18295main ()
18296{
18297static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18298test_array [0] = 0
18299
18300 ;
18301 return 0;
18302}
18303_ACEOF
18304rm -f conftest.$ac_objext
18305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18306 (eval $ac_compile) 2>conftest.er1
a848cd7e 18307 ac_status=$?
ac1cb8d3
VS
18308 grep -v '^ *+' conftest.er1 >conftest.err
18309 rm -f conftest.er1
18310 cat conftest.err >&5
a848cd7e
SC
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } &&
6ebeb4c7 18313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18316 ac_status=$?
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; } &&
18319 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18321 (eval $ac_try) 2>&5
18322 ac_status=$?
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); }; }; then
18325 ac_lo=0 ac_mid=0
18326 while :; do
18327 cat >conftest.$ac_ext <<_ACEOF
18328/* confdefs.h. */
18329_ACEOF
18330cat confdefs.h >>conftest.$ac_ext
18331cat >>conftest.$ac_ext <<_ACEOF
18332/* end confdefs.h. */
18333$ac_includes_default
18334int
18335main ()
18336{
18337static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18338test_array [0] = 0
18339
18340 ;
18341 return 0;
18342}
18343_ACEOF
18344rm -f conftest.$ac_objext
18345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18346 (eval $ac_compile) 2>conftest.er1
a848cd7e 18347 ac_status=$?
ac1cb8d3
VS
18348 grep -v '^ *+' conftest.er1 >conftest.err
18349 rm -f conftest.er1
18350 cat conftest.err >&5
a848cd7e
SC
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); } &&
6ebeb4c7 18353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355 (eval $ac_try) 2>&5
18356 ac_status=$?
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; } &&
18359 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18361 (eval $ac_try) 2>&5
18362 ac_status=$?
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }; }; then
18365 ac_hi=$ac_mid; break
18366else
18367 echo "$as_me: failed program was:" >&5
18368sed 's/^/| /' conftest.$ac_ext >&5
18369
18370ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18371 if test $ac_lo -le $ac_mid; then
18372 ac_lo= ac_hi=
18373 break
18374 fi
18375 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18376fi
ac1cb8d3 18377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18378 done
18379else
18380 echo "$as_me: failed program was:" >&5
18381sed 's/^/| /' conftest.$ac_ext >&5
18382
18383cat >conftest.$ac_ext <<_ACEOF
18384/* confdefs.h. */
18385_ACEOF
18386cat confdefs.h >>conftest.$ac_ext
18387cat >>conftest.$ac_ext <<_ACEOF
18388/* end confdefs.h. */
18389$ac_includes_default
18390int
18391main ()
18392{
18393static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18394test_array [0] = 0
18395
18396 ;
18397 return 0;
18398}
18399_ACEOF
18400rm -f conftest.$ac_objext
18401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18402 (eval $ac_compile) 2>conftest.er1
a848cd7e 18403 ac_status=$?
ac1cb8d3
VS
18404 grep -v '^ *+' conftest.er1 >conftest.err
18405 rm -f conftest.er1
18406 cat conftest.err >&5
a848cd7e
SC
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
6ebeb4c7 18409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411 (eval $ac_try) 2>&5
18412 ac_status=$?
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; } &&
18415 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417 (eval $ac_try) 2>&5
18418 ac_status=$?
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; }; then
18421 ac_hi=-1 ac_mid=-1
18422 while :; do
18423 cat >conftest.$ac_ext <<_ACEOF
18424/* confdefs.h. */
18425_ACEOF
18426cat confdefs.h >>conftest.$ac_ext
18427cat >>conftest.$ac_ext <<_ACEOF
18428/* end confdefs.h. */
18429$ac_includes_default
18430int
18431main ()
18432{
18433static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18434test_array [0] = 0
18435
18436 ;
18437 return 0;
18438}
18439_ACEOF
18440rm -f conftest.$ac_objext
18441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18442 (eval $ac_compile) 2>conftest.er1
a848cd7e 18443 ac_status=$?
ac1cb8d3
VS
18444 grep -v '^ *+' conftest.er1 >conftest.err
18445 rm -f conftest.er1
18446 cat conftest.err >&5
a848cd7e
SC
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } &&
6ebeb4c7 18449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451 (eval $ac_try) 2>&5
18452 ac_status=$?
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; } &&
18455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457 (eval $ac_try) 2>&5
18458 ac_status=$?
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18461 ac_lo=$ac_mid; break
18462else
18463 echo "$as_me: failed program was:" >&5
18464sed 's/^/| /' conftest.$ac_ext >&5
18465
18466ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18467 if test $ac_mid -le $ac_hi; then
18468 ac_lo= ac_hi=
18469 break
18470 fi
18471 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18472fi
ac1cb8d3 18473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18474 done
18475else
18476 echo "$as_me: failed program was:" >&5
18477sed 's/^/| /' conftest.$ac_ext >&5
18478
18479ac_lo= ac_hi=
18480fi
ac1cb8d3 18481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18482fi
ac1cb8d3 18483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18484# Binary search between lo and hi bounds.
18485while test "x$ac_lo" != "x$ac_hi"; do
18486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18487 cat >conftest.$ac_ext <<_ACEOF
18488/* confdefs.h. */
18489_ACEOF
18490cat confdefs.h >>conftest.$ac_ext
18491cat >>conftest.$ac_ext <<_ACEOF
18492/* end confdefs.h. */
18493$ac_includes_default
18494int
18495main ()
18496{
18497static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18498test_array [0] = 0
18499
18500 ;
18501 return 0;
18502}
18503_ACEOF
18504rm -f conftest.$ac_objext
18505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18506 (eval $ac_compile) 2>conftest.er1
a848cd7e 18507 ac_status=$?
ac1cb8d3
VS
18508 grep -v '^ *+' conftest.er1 >conftest.err
18509 rm -f conftest.er1
18510 cat conftest.err >&5
a848cd7e
SC
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } &&
6ebeb4c7 18513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515 (eval $ac_try) 2>&5
18516 ac_status=$?
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); }; } &&
18519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521 (eval $ac_try) 2>&5
18522 ac_status=$?
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; }; then
18525 ac_hi=$ac_mid
18526else
18527 echo "$as_me: failed program was:" >&5
18528sed 's/^/| /' conftest.$ac_ext >&5
18529
18530ac_lo=`expr '(' $ac_mid ')' + 1`
18531fi
ac1cb8d3 18532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18533done
18534case $ac_lo in
18535?*) ac_cv_sizeof_long_long=$ac_lo;;
18536'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18537See \`config.log' for more details." >&5
18538echo "$as_me: error: cannot compute sizeof (long long), 77
18539See \`config.log' for more details." >&2;}
18540 { (exit 1); exit 1; }; } ;;
18541esac
18542else
18543 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18544 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18545echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18546 { (exit 1); exit 1; }; }
18547else
18548 cat >conftest.$ac_ext <<_ACEOF
18549/* confdefs.h. */
18550_ACEOF
18551cat confdefs.h >>conftest.$ac_ext
18552cat >>conftest.$ac_ext <<_ACEOF
18553/* end confdefs.h. */
18554$ac_includes_default
18555long longval () { return (long) (sizeof (long long)); }
18556unsigned long ulongval () { return (long) (sizeof (long long)); }
18557#include <stdio.h>
18558#include <stdlib.h>
18559int
18560main ()
18561{
18562
18563 FILE *f = fopen ("conftest.val", "w");
18564 if (! f)
18565 exit (1);
18566 if (((long) (sizeof (long long))) < 0)
18567 {
18568 long i = longval ();
18569 if (i != ((long) (sizeof (long long))))
18570 exit (1);
18571 fprintf (f, "%ld\n", i);
18572 }
18573 else
18574 {
18575 unsigned long i = ulongval ();
18576 if (i != ((long) (sizeof (long long))))
18577 exit (1);
18578 fprintf (f, "%lu\n", i);
18579 }
18580 exit (ferror (f) || fclose (f) != 0);
18581
18582 ;
18583 return 0;
18584}
18585_ACEOF
18586rm -f conftest$ac_exeext
18587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18588 (eval $ac_link) 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593 (eval $ac_try) 2>&5
18594 ac_status=$?
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; }; then
18597 ac_cv_sizeof_long_long=`cat conftest.val`
18598else
18599 echo "$as_me: program exited with status $ac_status" >&5
18600echo "$as_me: failed program was:" >&5
18601sed 's/^/| /' conftest.$ac_ext >&5
18602
18603( exit $ac_status )
18604{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18605See \`config.log' for more details." >&5
18606echo "$as_me: error: cannot compute sizeof (long long), 77
18607See \`config.log' for more details." >&2;}
18608 { (exit 1); exit 1; }; }
18609fi
ac1cb8d3 18610rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18611fi
18612fi
18613rm -f conftest.val
18614else
18615 ac_cv_sizeof_long_long=0
18616fi
18617fi
18618echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18619echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18620cat >>confdefs.h <<_ACEOF
18621#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18622_ACEOF
18623
18624
18625 if test "$ac_cv_sizeof_long_long" != "0"; then
18626 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18627 fi
18628 ;;
18629 * )
18630 echo "$as_me:$LINENO: checking for long long" >&5
18631echo $ECHO_N "checking for long long... $ECHO_C" >&6
18632if test "${ac_cv_type_long_long+set}" = set; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
18634else
18635 cat >conftest.$ac_ext <<_ACEOF
18636/* confdefs.h. */
18637_ACEOF
18638cat confdefs.h >>conftest.$ac_ext
18639cat >>conftest.$ac_ext <<_ACEOF
18640/* end confdefs.h. */
18641$ac_includes_default
18642int
18643main ()
18644{
18645if ((long long *) 0)
18646 return 0;
18647if (sizeof (long long))
18648 return 0;
18649 ;
18650 return 0;
18651}
18652_ACEOF
18653rm -f conftest.$ac_objext
18654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18655 (eval $ac_compile) 2>conftest.er1
a848cd7e 18656 ac_status=$?
ac1cb8d3
VS
18657 grep -v '^ *+' conftest.er1 >conftest.err
18658 rm -f conftest.er1
18659 cat conftest.err >&5
a848cd7e
SC
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } &&
6ebeb4c7 18662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664 (eval $ac_try) 2>&5
18665 ac_status=$?
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; } &&
18668 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674 ac_cv_type_long_long=yes
18675else
18676 echo "$as_me: failed program was:" >&5
18677sed 's/^/| /' conftest.$ac_ext >&5
18678
18679ac_cv_type_long_long=no
18680fi
ac1cb8d3 18681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18682fi
18683echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18684echo "${ECHO_T}$ac_cv_type_long_long" >&6
18685
18686echo "$as_me:$LINENO: checking size of long long" >&5
18687echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18688if test "${ac_cv_sizeof_long_long+set}" = set; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18690else
18691 if test "$ac_cv_type_long_long" = yes; then
18692 # The cast to unsigned long works around a bug in the HP C Compiler
18693 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18694 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18695 # This bug is HP SR number 8606223364.
18696 if test "$cross_compiling" = yes; then
18697 # Depending upon the size, compute the lo and hi bounds.
18698cat >conftest.$ac_ext <<_ACEOF
18699/* confdefs.h. */
18700_ACEOF
18701cat confdefs.h >>conftest.$ac_ext
18702cat >>conftest.$ac_ext <<_ACEOF
18703/* end confdefs.h. */
18704$ac_includes_default
18705int
18706main ()
18707{
18708static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18709test_array [0] = 0
18710
18711 ;
18712 return 0;
18713}
18714_ACEOF
18715rm -f conftest.$ac_objext
18716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18717 (eval $ac_compile) 2>conftest.er1
a848cd7e 18718 ac_status=$?
ac1cb8d3
VS
18719 grep -v '^ *+' conftest.er1 >conftest.err
18720 rm -f conftest.er1
18721 cat conftest.err >&5
a848cd7e
SC
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); } &&
6ebeb4c7 18724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726 (eval $ac_try) 2>&5
18727 ac_status=$?
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; } &&
18730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; }; then
18736 ac_lo=0 ac_mid=0
18737 while :; do
18738 cat >conftest.$ac_ext <<_ACEOF
18739/* confdefs.h. */
18740_ACEOF
18741cat confdefs.h >>conftest.$ac_ext
18742cat >>conftest.$ac_ext <<_ACEOF
18743/* end confdefs.h. */
18744$ac_includes_default
18745int
18746main ()
18747{
18748static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18749test_array [0] = 0
18750
18751 ;
18752 return 0;
18753}
18754_ACEOF
18755rm -f conftest.$ac_objext
18756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18757 (eval $ac_compile) 2>conftest.er1
a848cd7e 18758 ac_status=$?
ac1cb8d3
VS
18759 grep -v '^ *+' conftest.er1 >conftest.err
18760 rm -f conftest.er1
18761 cat conftest.err >&5
a848cd7e
SC
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } &&
6ebeb4c7 18764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; } &&
18770 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18773 ac_status=$?
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; }; then
18776 ac_hi=$ac_mid; break
18777else
18778 echo "$as_me: failed program was:" >&5
18779sed 's/^/| /' conftest.$ac_ext >&5
18780
18781ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18782 if test $ac_lo -le $ac_mid; then
18783 ac_lo= ac_hi=
18784 break
18785 fi
18786 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18787fi
ac1cb8d3 18788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18789 done
18790else
18791 echo "$as_me: failed program was:" >&5
18792sed 's/^/| /' conftest.$ac_ext >&5
18793
18794cat >conftest.$ac_ext <<_ACEOF
18795/* confdefs.h. */
18796_ACEOF
18797cat confdefs.h >>conftest.$ac_ext
18798cat >>conftest.$ac_ext <<_ACEOF
18799/* end confdefs.h. */
18800$ac_includes_default
18801int
18802main ()
18803{
18804static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18805test_array [0] = 0
18806
18807 ;
18808 return 0;
18809}
18810_ACEOF
18811rm -f conftest.$ac_objext
18812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18813 (eval $ac_compile) 2>conftest.er1
a848cd7e 18814 ac_status=$?
ac1cb8d3
VS
18815 grep -v '^ *+' conftest.er1 >conftest.err
18816 rm -f conftest.er1
18817 cat conftest.err >&5
a848cd7e
SC
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } &&
6ebeb4c7 18820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
18826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 ac_hi=-1 ac_mid=-1
18833 while :; do
18834 cat >conftest.$ac_ext <<_ACEOF
18835/* confdefs.h. */
18836_ACEOF
18837cat confdefs.h >>conftest.$ac_ext
18838cat >>conftest.$ac_ext <<_ACEOF
18839/* end confdefs.h. */
18840$ac_includes_default
18841int
18842main ()
18843{
18844static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18845test_array [0] = 0
18846
18847 ;
18848 return 0;
18849}
18850_ACEOF
18851rm -f conftest.$ac_objext
18852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18853 (eval $ac_compile) 2>conftest.er1
a848cd7e 18854 ac_status=$?
ac1cb8d3
VS
18855 grep -v '^ *+' conftest.er1 >conftest.err
18856 rm -f conftest.er1
18857 cat conftest.err >&5
a848cd7e
SC
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } &&
6ebeb4c7 18860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18863 ac_status=$?
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; } &&
18866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868 (eval $ac_try) 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; }; then
18872 ac_lo=$ac_mid; break
18873else
18874 echo "$as_me: failed program was:" >&5
18875sed 's/^/| /' conftest.$ac_ext >&5
18876
18877ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18878 if test $ac_mid -le $ac_hi; then
18879 ac_lo= ac_hi=
18880 break
18881 fi
18882 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18883fi
ac1cb8d3 18884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18885 done
18886else
18887 echo "$as_me: failed program was:" >&5
18888sed 's/^/| /' conftest.$ac_ext >&5
18889
18890ac_lo= ac_hi=
18891fi
ac1cb8d3 18892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18893fi
ac1cb8d3 18894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18895# Binary search between lo and hi bounds.
18896while test "x$ac_lo" != "x$ac_hi"; do
18897 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18898 cat >conftest.$ac_ext <<_ACEOF
18899/* confdefs.h. */
18900_ACEOF
18901cat confdefs.h >>conftest.$ac_ext
18902cat >>conftest.$ac_ext <<_ACEOF
18903/* end confdefs.h. */
18904$ac_includes_default
18905int
18906main ()
18907{
18908static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18909test_array [0] = 0
18910
18911 ;
18912 return 0;
18913}
18914_ACEOF
18915rm -f conftest.$ac_objext
18916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18917 (eval $ac_compile) 2>conftest.er1
a848cd7e 18918 ac_status=$?
ac1cb8d3
VS
18919 grep -v '^ *+' conftest.er1 >conftest.err
18920 rm -f conftest.er1
18921 cat conftest.err >&5
a848cd7e
SC
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } &&
6ebeb4c7 18924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18927 ac_status=$?
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; } &&
18930 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18933 ac_status=$?
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ac_hi=$ac_mid
18937else
18938 echo "$as_me: failed program was:" >&5
18939sed 's/^/| /' conftest.$ac_ext >&5
18940
18941ac_lo=`expr '(' $ac_mid ')' + 1`
18942fi
ac1cb8d3 18943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18944done
18945case $ac_lo in
18946?*) ac_cv_sizeof_long_long=$ac_lo;;
18947'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18948See \`config.log' for more details." >&5
18949echo "$as_me: error: cannot compute sizeof (long long), 77
18950See \`config.log' for more details." >&2;}
18951 { (exit 1); exit 1; }; } ;;
18952esac
18953else
18954 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18955 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18956echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18957 { (exit 1); exit 1; }; }
18958else
18959 cat >conftest.$ac_ext <<_ACEOF
18960/* confdefs.h. */
18961_ACEOF
18962cat confdefs.h >>conftest.$ac_ext
18963cat >>conftest.$ac_ext <<_ACEOF
18964/* end confdefs.h. */
18965$ac_includes_default
18966long longval () { return (long) (sizeof (long long)); }
18967unsigned long ulongval () { return (long) (sizeof (long long)); }
18968#include <stdio.h>
18969#include <stdlib.h>
18970int
18971main ()
18972{
18973
18974 FILE *f = fopen ("conftest.val", "w");
18975 if (! f)
18976 exit (1);
18977 if (((long) (sizeof (long long))) < 0)
18978 {
18979 long i = longval ();
18980 if (i != ((long) (sizeof (long long))))
18981 exit (1);
18982 fprintf (f, "%ld\n", i);
18983 }
18984 else
18985 {
18986 unsigned long i = ulongval ();
18987 if (i != ((long) (sizeof (long long))))
18988 exit (1);
18989 fprintf (f, "%lu\n", i);
18990 }
18991 exit (ferror (f) || fclose (f) != 0);
18992
18993 ;
18994 return 0;
18995}
18996_ACEOF
18997rm -f conftest$ac_exeext
18998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18999 (eval $ac_link) 2>&5
19000 ac_status=$?
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19005 ac_status=$?
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
19008 ac_cv_sizeof_long_long=`cat conftest.val`
19009else
19010 echo "$as_me: program exited with status $ac_status" >&5
19011echo "$as_me: failed program was:" >&5
19012sed 's/^/| /' conftest.$ac_ext >&5
19013
19014( exit $ac_status )
19015{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19016See \`config.log' for more details." >&5
19017echo "$as_me: error: cannot compute sizeof (long long), 77
19018See \`config.log' for more details." >&2;}
19019 { (exit 1); exit 1; }; }
19020fi
ac1cb8d3 19021rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19022fi
19023fi
19024rm -f conftest.val
19025else
19026 ac_cv_sizeof_long_long=0
19027fi
19028fi
19029echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19030echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19031cat >>confdefs.h <<_ACEOF
19032#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19033_ACEOF
19034
19035
19036esac
19037
238ecede
MW
19038echo "$as_me:$LINENO: checking for wchar_t" >&5
19039echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19040if test "${ac_cv_type_wchar_t+set}" = set; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19042else
19043 cat >conftest.$ac_ext <<_ACEOF
19044/* confdefs.h. */
19045_ACEOF
19046cat confdefs.h >>conftest.$ac_ext
19047cat >>conftest.$ac_ext <<_ACEOF
19048/* end confdefs.h. */
19049
83d8eb47
MW
19050 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19051 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19052 # error "fake wchar_t"
19053 #endif
19054 #ifdef HAVE_WCHAR_H
19055 # ifdef __CYGWIN__
19056 # include <stddef.h>
19057 # endif
19058 # include <wchar.h>
19059 #endif
19060 #ifdef HAVE_STDLIB_H
19061 # include <stdlib.h>
19062 #endif
19063 #include <stdio.h>
19064
19065
19066
19067int
19068main ()
19069{
19070if ((wchar_t *) 0)
19071 return 0;
19072if (sizeof (wchar_t))
19073 return 0;
19074 ;
19075 return 0;
19076}
19077_ACEOF
19078rm -f conftest.$ac_objext
19079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19080 (eval $ac_compile) 2>conftest.er1
19081 ac_status=$?
19082 grep -v '^ *+' conftest.er1 >conftest.err
19083 rm -f conftest.er1
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19086 (exit $ac_status); } &&
6ebeb4c7 19087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19089 (eval $ac_try) 2>&5
19090 ac_status=$?
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; } &&
19093 { ac_try='test -s conftest.$ac_objext'
19094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19095 (eval $ac_try) 2>&5
19096 ac_status=$?
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); }; }; then
19099 ac_cv_type_wchar_t=yes
19100else
19101 echo "$as_me: failed program was:" >&5
19102sed 's/^/| /' conftest.$ac_ext >&5
19103
19104ac_cv_type_wchar_t=no
19105fi
19106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19107fi
19108echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19109echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19110
a848cd7e
SC
19111echo "$as_me:$LINENO: checking size of wchar_t" >&5
19112echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19113if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19114 echo $ECHO_N "(cached) $ECHO_C" >&6
19115else
238ecede
MW
19116 if test "$ac_cv_type_wchar_t" = yes; then
19117 # The cast to unsigned long works around a bug in the HP C Compiler
19118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19120 # This bug is HP SR number 8606223364.
19121 if test "$cross_compiling" = yes; then
19122 # Depending upon the size, compute the lo and hi bounds.
19123cat >conftest.$ac_ext <<_ACEOF
19124/* confdefs.h. */
19125_ACEOF
19126cat confdefs.h >>conftest.$ac_ext
19127cat >>conftest.$ac_ext <<_ACEOF
19128/* end confdefs.h. */
19129
83d8eb47
MW
19130 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19131 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19132 # error "fake wchar_t"
19133 #endif
19134 #ifdef HAVE_WCHAR_H
19135 # ifdef __CYGWIN__
19136 # include <stddef.h>
19137 # endif
19138 # include <wchar.h>
19139 #endif
19140 #ifdef HAVE_STDLIB_H
19141 # include <stdlib.h>
19142 #endif
19143 #include <stdio.h>
19144
19145
19146
19147int
19148main ()
19149{
19150static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19151test_array [0] = 0
19152
19153 ;
19154 return 0;
19155}
19156_ACEOF
19157rm -f conftest.$ac_objext
19158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19159 (eval $ac_compile) 2>conftest.er1
19160 ac_status=$?
19161 grep -v '^ *+' conftest.er1 >conftest.err
19162 rm -f conftest.er1
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
6ebeb4c7 19166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; } &&
19172 { ac_try='test -s conftest.$ac_objext'
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19175 ac_status=$?
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; }; then
19178 ac_lo=0 ac_mid=0
19179 while :; do
19180 cat >conftest.$ac_ext <<_ACEOF
19181/* confdefs.h. */
19182_ACEOF
19183cat confdefs.h >>conftest.$ac_ext
19184cat >>conftest.$ac_ext <<_ACEOF
19185/* end confdefs.h. */
19186
83d8eb47
MW
19187 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19188 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19189 # error "fake wchar_t"
19190 #endif
19191 #ifdef HAVE_WCHAR_H
19192 # ifdef __CYGWIN__
19193 # include <stddef.h>
19194 # endif
19195 # include <wchar.h>
19196 #endif
19197 #ifdef HAVE_STDLIB_H
19198 # include <stdlib.h>
19199 #endif
19200 #include <stdio.h>
19201
19202
19203
19204int
19205main ()
19206{
19207static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19208test_array [0] = 0
19209
19210 ;
19211 return 0;
19212}
19213_ACEOF
19214rm -f conftest.$ac_objext
19215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19216 (eval $ac_compile) 2>conftest.er1
19217 ac_status=$?
19218 grep -v '^ *+' conftest.er1 >conftest.err
19219 rm -f conftest.er1
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } &&
6ebeb4c7 19223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19226 ac_status=$?
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest.$ac_objext'
19230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231 (eval $ac_try) 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; }; then
19235 ac_hi=$ac_mid; break
19236else
19237 echo "$as_me: failed program was:" >&5
19238sed 's/^/| /' conftest.$ac_ext >&5
19239
19240ac_lo=`expr $ac_mid + 1`
19241 if test $ac_lo -le $ac_mid; then
19242 ac_lo= ac_hi=
19243 break
19244 fi
19245 ac_mid=`expr 2 '*' $ac_mid + 1`
19246fi
19247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19248 done
19249else
19250 echo "$as_me: failed program was:" >&5
19251sed 's/^/| /' conftest.$ac_ext >&5
19252
19253cat >conftest.$ac_ext <<_ACEOF
19254/* confdefs.h. */
19255_ACEOF
19256cat confdefs.h >>conftest.$ac_ext
19257cat >>conftest.$ac_ext <<_ACEOF
19258/* end confdefs.h. */
19259
83d8eb47
MW
19260 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19261 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19262 # error "fake wchar_t"
19263 #endif
19264 #ifdef HAVE_WCHAR_H
19265 # ifdef __CYGWIN__
19266 # include <stddef.h>
19267 # endif
19268 # include <wchar.h>
19269 #endif
19270 #ifdef HAVE_STDLIB_H
19271 # include <stdlib.h>
19272 #endif
19273 #include <stdio.h>
19274
19275
19276
19277int
19278main ()
19279{
19280static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19281test_array [0] = 0
19282
19283 ;
19284 return 0;
19285}
19286_ACEOF
19287rm -f conftest.$ac_objext
19288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19289 (eval $ac_compile) 2>conftest.er1
19290 ac_status=$?
19291 grep -v '^ *+' conftest.er1 >conftest.err
19292 rm -f conftest.er1
19293 cat conftest.err >&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); } &&
6ebeb4c7 19296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298 (eval $ac_try) 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; } &&
19302 { ac_try='test -s conftest.$ac_objext'
19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304 (eval $ac_try) 2>&5
19305 ac_status=$?
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; }; then
19308 ac_hi=-1 ac_mid=-1
19309 while :; do
19310 cat >conftest.$ac_ext <<_ACEOF
19311/* confdefs.h. */
19312_ACEOF
19313cat confdefs.h >>conftest.$ac_ext
19314cat >>conftest.$ac_ext <<_ACEOF
19315/* end confdefs.h. */
19316
83d8eb47
MW
19317 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19318 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19319 # error "fake wchar_t"
19320 #endif
19321 #ifdef HAVE_WCHAR_H
19322 # ifdef __CYGWIN__
19323 # include <stddef.h>
19324 # endif
19325 # include <wchar.h>
19326 #endif
19327 #ifdef HAVE_STDLIB_H
19328 # include <stdlib.h>
19329 #endif
19330 #include <stdio.h>
19331
19332
19333
19334int
19335main ()
19336{
19337static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19338test_array [0] = 0
19339
19340 ;
19341 return 0;
19342}
19343_ACEOF
19344rm -f conftest.$ac_objext
19345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19346 (eval $ac_compile) 2>conftest.er1
19347 ac_status=$?
19348 grep -v '^ *+' conftest.er1 >conftest.err
19349 rm -f conftest.er1
19350 cat conftest.err >&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } &&
6ebeb4c7 19353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355 (eval $ac_try) 2>&5
19356 ac_status=$?
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); }; } &&
19359 { ac_try='test -s conftest.$ac_objext'
19360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361 (eval $ac_try) 2>&5
19362 ac_status=$?
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); }; }; then
19365 ac_lo=$ac_mid; break
19366else
19367 echo "$as_me: failed program was:" >&5
19368sed 's/^/| /' conftest.$ac_ext >&5
19369
19370ac_hi=`expr '(' $ac_mid ')' - 1`
19371 if test $ac_mid -le $ac_hi; then
19372 ac_lo= ac_hi=
19373 break
19374 fi
19375 ac_mid=`expr 2 '*' $ac_mid`
19376fi
19377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19378 done
19379else
19380 echo "$as_me: failed program was:" >&5
19381sed 's/^/| /' conftest.$ac_ext >&5
19382
19383ac_lo= ac_hi=
19384fi
19385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19386fi
19387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19388# Binary search between lo and hi bounds.
19389while test "x$ac_lo" != "x$ac_hi"; do
19390 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19391 cat >conftest.$ac_ext <<_ACEOF
19392/* confdefs.h. */
19393_ACEOF
19394cat confdefs.h >>conftest.$ac_ext
19395cat >>conftest.$ac_ext <<_ACEOF
19396/* end confdefs.h. */
19397
83d8eb47
MW
19398 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19399 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19400 # error "fake wchar_t"
19401 #endif
19402 #ifdef HAVE_WCHAR_H
19403 # ifdef __CYGWIN__
19404 # include <stddef.h>
19405 # endif
19406 # include <wchar.h>
19407 #endif
19408 #ifdef HAVE_STDLIB_H
19409 # include <stdlib.h>
19410 #endif
19411 #include <stdio.h>
a848cd7e 19412
a848cd7e 19413
a848cd7e 19414
238ecede
MW
19415int
19416main ()
19417{
19418static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19419test_array [0] = 0
a848cd7e 19420
238ecede
MW
19421 ;
19422 return 0;
19423}
19424_ACEOF
19425rm -f conftest.$ac_objext
19426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19427 (eval $ac_compile) 2>conftest.er1
19428 ac_status=$?
19429 grep -v '^ *+' conftest.er1 >conftest.err
19430 rm -f conftest.er1
19431 cat conftest.err >&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } &&
6ebeb4c7 19434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; } &&
19440 { ac_try='test -s conftest.$ac_objext'
19441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
19446 ac_hi=$ac_mid
19447else
19448 echo "$as_me: failed program was:" >&5
19449sed 's/^/| /' conftest.$ac_ext >&5
19450
19451ac_lo=`expr '(' $ac_mid ')' + 1`
19452fi
19453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19454done
19455case $ac_lo in
19456?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19457'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19458See \`config.log' for more details." >&5
19459echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19460See \`config.log' for more details." >&2;}
19461 { (exit 1); exit 1; }; } ;;
19462esac
19463else
19464 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19465 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19466echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19467 { (exit 1); exit 1; }; }
a848cd7e
SC
19468else
19469 cat >conftest.$ac_ext <<_ACEOF
19470/* confdefs.h. */
19471_ACEOF
19472cat confdefs.h >>conftest.$ac_ext
19473cat >>conftest.$ac_ext <<_ACEOF
19474/* end confdefs.h. */
19475
83d8eb47
MW
19476 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19477 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19478 # error "fake wchar_t"
19479 #endif
19480 #ifdef HAVE_WCHAR_H
19481 # ifdef __CYGWIN__
19482 # include <stddef.h>
19483 # endif
19484 # include <wchar.h>
19485 #endif
19486 #ifdef HAVE_STDLIB_H
19487 # include <stdlib.h>
19488 #endif
19489 #include <stdio.h>
19490
19491
19492
19493long longval () { return (long) (sizeof (wchar_t)); }
19494unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19495#include <stdio.h>
19496#include <stdlib.h>
19497int
19498main ()
19499{
a848cd7e 19500
238ecede
MW
19501 FILE *f = fopen ("conftest.val", "w");
19502 if (! f)
19503 exit (1);
19504 if (((long) (sizeof (wchar_t))) < 0)
19505 {
19506 long i = longval ();
19507 if (i != ((long) (sizeof (wchar_t))))
19508 exit (1);
19509 fprintf (f, "%ld\n", i);
19510 }
19511 else
19512 {
19513 unsigned long i = ulongval ();
19514 if (i != ((long) (sizeof (wchar_t))))
19515 exit (1);
19516 fprintf (f, "%lu\n", i);
19517 }
19518 exit (ferror (f) || fclose (f) != 0);
19519
19520 ;
19521 return 0;
19522}
a848cd7e
SC
19523_ACEOF
19524rm -f conftest$ac_exeext
19525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19526 (eval $ac_link) 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; }; then
238ecede 19535 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19536else
19537 echo "$as_me: program exited with status $ac_status" >&5
19538echo "$as_me: failed program was:" >&5
19539sed 's/^/| /' conftest.$ac_ext >&5
19540
19541( exit $ac_status )
238ecede
MW
19542{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19543See \`config.log' for more details." >&5
19544echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19545See \`config.log' for more details." >&2;}
19546 { (exit 1); exit 1; }; }
a848cd7e 19547fi
ac1cb8d3 19548rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19549fi
a848cd7e 19550fi
238ecede
MW
19551rm -f conftest.val
19552else
19553 ac_cv_sizeof_wchar_t=0
19554fi
19555fi
19556echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19557echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19558cat >>confdefs.h <<_ACEOF
238ecede 19559#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19560_ACEOF
19561
19562
47a7e797
MW
19563if test "$ac_cv_sizeof_wchar_t" != "0"; then
19564 wxUSE_WCHAR_T=yes
19565else
19566 wxUSE_WCHAR_T=no
19567fi
238ecede 19568
ba3d13e1
VZ
19569echo "$as_me:$LINENO: checking for va_copy" >&5
19570echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19571if test "${wx_cv_func_va_copy+set}" = set; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
19573else
19574
19575 cat >conftest.$ac_ext <<_ACEOF
19576
19577 #include <stdarg.h>
19578 void foo(char *f, ...)
19579 {
19580 va_list ap1, ap2;
19581 va_start(ap1, f);
19582 va_copy(ap2, ap1);
19583 va_end(ap2);
19584 va_end(ap1);
19585 }
5886b072
VZ
19586 int main()
19587 {
b902e639
VZ
19588 foo("hi", 17);
19589 return 0;
5886b072 19590 }
ba3d13e1
VZ
19591_ACEOF
19592rm -f conftest.$ac_objext conftest$ac_exeext
19593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19594 (eval $ac_link) 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
6ebeb4c7 19601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603 (eval $ac_try) 2>&5
19604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; } &&
19607 { ac_try='test -s conftest$ac_exeext'
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 wx_cv_func_va_copy=yes
19614else
19615 echo "$as_me: failed program was:" >&5
19616sed 's/^/| /' conftest.$ac_ext >&5
19617
19618wx_cv_func_va_copy=no
19619
19620fi
19621rm -f conftest.err conftest.$ac_objext \
19622 conftest$ac_exeext conftest.$ac_ext
19623
19624
19625fi
19626echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19627echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19628
19629if test $wx_cv_func_va_copy = "yes"; then
19630 cat >>confdefs.h <<\_ACEOF
19631#define HAVE_VA_COPY 1
19632_ACEOF
19633
19634else
19635 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19636echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19637if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19638 echo $ECHO_N "(cached) $ECHO_C" >&6
19639else
19640
19641 if test "$cross_compiling" = yes; then
19642 wx_cv_type_va_list_lvalue=yes
19643
19644else
19645 cat >conftest.$ac_ext <<_ACEOF
19646
19647 #include <stdarg.h>
19648 int foo(char *f, ...)
19649 {
19650 va_list ap1, ap2;
19651 va_start(ap1, f);
19652 ap2 = ap1;
19653 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19654 return 1;
19655 va_end(ap2);
19656 va_end(ap1);
19657 return 0;
19658 }
19659 int main()
19660 {
19661 return foo("hi", 17);
19662 }
19663_ACEOF
19664rm -f conftest$ac_exeext
19665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19666 (eval $ac_link) 2>&5
19667 ac_status=$?
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19672 ac_status=$?
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19675 wx_cv_type_va_list_lvalue=yes
19676else
19677 echo "$as_me: program exited with status $ac_status" >&5
19678echo "$as_me: failed program was:" >&5
19679sed 's/^/| /' conftest.$ac_ext >&5
19680
19681( exit $ac_status )
19682wx_cv_type_va_list_lvalue=no
19683fi
19684rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19685fi
19686
19687
19688fi
19689echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19690echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19691
19692 if test $wx_cv_type_va_list_lvalue != "yes"; then
19693 cat >>confdefs.h <<\_ACEOF
19694#define VA_LIST_IS_ARRAY 1
19695_ACEOF
19696
19697 fi
19698fi
19699
a848cd7e
SC
19700# Check whether --enable-largefile or --disable-largefile was given.
19701if test "${enable_largefile+set}" = set; then
19702 enableval="$enable_largefile"
19703
19704fi;
19705if test "$enable_largefile" != no; then
19706 wx_largefile=no
19707
19708 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19709echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19710if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19712else
19713
19714 cat >conftest.$ac_ext <<_ACEOF
19715/* confdefs.h. */
19716_ACEOF
19717cat confdefs.h >>conftest.$ac_ext
19718cat >>conftest.$ac_ext <<_ACEOF
19719/* end confdefs.h. */
19720#define _FILE_OFFSET_BITS 64
19721 #include <sys/types.h>
19722int
19723main ()
19724{
19725typedef struct {
19726 unsigned int field: sizeof(off_t) == 8;
19727} wxlf;
19728
19729 ;
19730 return 0;
19731}
19732_ACEOF
19733rm -f conftest.$ac_objext
19734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19735 (eval $ac_compile) 2>conftest.er1
a848cd7e 19736 ac_status=$?
ac1cb8d3
VS
19737 grep -v '^ *+' conftest.er1 >conftest.err
19738 rm -f conftest.er1
19739 cat conftest.err >&5
a848cd7e
SC
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } &&
6ebeb4c7 19742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; } &&
19748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19751 ac_status=$?
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; }; then
19754 ac_cv_sys_file_offset_bits=64
19755else
19756 echo "$as_me: failed program was:" >&5
19757sed 's/^/| /' conftest.$ac_ext >&5
19758
19759ac_cv_sys_file_offset_bits=no
19760fi
ac1cb8d3 19761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19762
19763
19764fi
19765echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19766echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19767
19768 if test "$ac_cv_sys_file_offset_bits" != no; then
19769 wx_largefile=yes
19770 cat >>confdefs.h <<_ACEOF
19771#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19772_ACEOF
19773
19774 fi
19775
19776 if test "x$wx_largefile" != "xyes"; then
19777
19778 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19779echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19780if test "${ac_cv_sys_large_files+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19782else
19783
19784 cat >conftest.$ac_ext <<_ACEOF
19785/* confdefs.h. */
19786_ACEOF
19787cat confdefs.h >>conftest.$ac_ext
19788cat >>conftest.$ac_ext <<_ACEOF
19789/* end confdefs.h. */
19790#define _LARGE_FILES 1
19791 #include <sys/types.h>
19792int
19793main ()
19794{
19795typedef struct {
19796 unsigned int field: sizeof(off_t) == 8;
19797} wxlf;
19798
19799 ;
19800 return 0;
19801}
19802_ACEOF
19803rm -f conftest.$ac_objext
19804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19805 (eval $ac_compile) 2>conftest.er1
a848cd7e 19806 ac_status=$?
ac1cb8d3
VS
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
a848cd7e
SC
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
6ebeb4c7 19812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19815 ac_status=$?
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; } &&
19818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820 (eval $ac_try) 2>&5
19821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; }; then
19824 ac_cv_sys_large_files=1
19825else
19826 echo "$as_me: failed program was:" >&5
19827sed 's/^/| /' conftest.$ac_ext >&5
19828
19829ac_cv_sys_large_files=no
19830fi
ac1cb8d3 19831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19832
19833
19834fi
19835echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19836echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19837
19838 if test "$ac_cv_sys_large_files" != no; then
19839 wx_largefile=yes
19840 cat >>confdefs.h <<_ACEOF
19841#define _LARGE_FILES $ac_cv_sys_large_files
19842_ACEOF
19843
19844 fi
19845
19846 fi
19847
19848 echo "$as_me:$LINENO: checking if large file support is available" >&5
19849echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19850 if test "x$wx_largefile" = "xyes"; then
19851 cat >>confdefs.h <<\_ACEOF
19852#define HAVE_LARGEFILE_SUPPORT 1
19853_ACEOF
19854
19855 fi
19856 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19857echo "${ECHO_T}$wx_largefile" >&6
19858fi
19859
5b674b9d
DE
19860
19861if test "x$wx_largefile" = "xyes"; then
19862 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19863 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
19864
19865 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
19866 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
19867echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
19868if test "${wx_cv_STDC_EXT_required+set}" = set; then
19869 echo $ECHO_N "(cached) $ECHO_C" >&6
19870else
19871
19872
19873
19874 ac_ext=cc
19875ac_cpp='$CXXCPP $CPPFLAGS'
19876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19879
19880 cat >conftest.$ac_ext <<_ACEOF
19881/* confdefs.h. */
19882_ACEOF
19883cat confdefs.h >>conftest.$ac_ext
19884cat >>conftest.$ac_ext <<_ACEOF
19885/* end confdefs.h. */
19886
19887int
19888main ()
19889{
19890
19891 #ifndef __STDC_EXT__
19892 choke me
19893 #endif
19894
19895 ;
19896 return 0;
19897}
19898_ACEOF
19899rm -f conftest.$ac_objext
19900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19901 (eval $ac_compile) 2>conftest.er1
19902 ac_status=$?
19903 grep -v '^ *+' conftest.er1 >conftest.err
19904 rm -f conftest.er1
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } &&
19908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910 (eval $ac_try) 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; } &&
19914 { ac_try='test -s conftest.$ac_objext'
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 wx_cv_STDC_EXT_required=no
19921else
19922 echo "$as_me: failed program was:" >&5
19923sed 's/^/| /' conftest.$ac_ext >&5
19924
19925wx_cv_STDC_EXT_required=yes
19926
19927fi
19928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19929 ac_ext=c
19930ac_cpp='$CPP $CPPFLAGS'
19931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19933ac_compiler_gnu=$ac_cv_c_compiler_gnu
19934
19935
19936
19937fi
19938echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
19939echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
19940 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
19941 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
19942 fi
19943 fi
5b674b9d
DE
19944 else
19945 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19946 fi
19947 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19948echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19949if test "${ac_cv_sys_largefile_source+set}" = set; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19951else
19952 while :; do
19953 ac_cv_sys_largefile_source=no
19954 cat >conftest.$ac_ext <<_ACEOF
19955/* confdefs.h. */
19956_ACEOF
19957cat confdefs.h >>conftest.$ac_ext
19958cat >>conftest.$ac_ext <<_ACEOF
19959/* end confdefs.h. */
19960#include <stdio.h>
19961int
19962main ()
19963{
19964return !fseeko;
19965 ;
19966 return 0;
19967}
19968_ACEOF
19969rm -f conftest.$ac_objext
19970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19971 (eval $ac_compile) 2>conftest.er1
19972 ac_status=$?
19973 grep -v '^ *+' conftest.er1 >conftest.err
19974 rm -f conftest.er1
19975 cat conftest.err >&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } &&
6ebeb4c7 19978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; } &&
19984 { ac_try='test -s conftest.$ac_objext'
19985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19986 (eval $ac_try) 2>&5
19987 ac_status=$?
19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989 (exit $ac_status); }; }; then
19990 break
19991else
19992 echo "$as_me: failed program was:" >&5
19993sed 's/^/| /' conftest.$ac_ext >&5
19994
19995fi
19996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19997 cat >conftest.$ac_ext <<_ACEOF
19998/* confdefs.h. */
19999_ACEOF
20000cat confdefs.h >>conftest.$ac_ext
20001cat >>conftest.$ac_ext <<_ACEOF
20002/* end confdefs.h. */
20003#define _LARGEFILE_SOURCE 1
20004#include <stdio.h>
20005int
20006main ()
20007{
20008return !fseeko;
20009 ;
20010 return 0;
20011}
20012_ACEOF
20013rm -f conftest.$ac_objext
20014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20015 (eval $ac_compile) 2>conftest.er1
20016 ac_status=$?
20017 grep -v '^ *+' conftest.er1 >conftest.err
20018 rm -f conftest.er1
20019 cat conftest.err >&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } &&
6ebeb4c7 20022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20024 (eval $ac_try) 2>&5
20025 ac_status=$?
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); }; } &&
20028 { ac_try='test -s conftest.$ac_objext'
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; }; then
20034 ac_cv_sys_largefile_source=1; break
20035else
20036 echo "$as_me: failed program was:" >&5
20037sed 's/^/| /' conftest.$ac_ext >&5
20038
20039fi
20040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20041 break
20042done
20043fi
20044echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20045echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20046if test "$ac_cv_sys_largefile_source" != no; then
20047
20048cat >>confdefs.h <<_ACEOF
20049#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20050_ACEOF
20051
20052fi
20053rm -f conftest*
20054
20055# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20056# in glibc 2.1.3, but that breaks too many other things.
20057# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20058echo "$as_me:$LINENO: checking for fseeko" >&5
20059echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20060if test "${ac_cv_func_fseeko+set}" = set; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20062else
20063 cat >conftest.$ac_ext <<_ACEOF
20064/* confdefs.h. */
20065_ACEOF
20066cat confdefs.h >>conftest.$ac_ext
20067cat >>conftest.$ac_ext <<_ACEOF
20068/* end confdefs.h. */
20069#include <stdio.h>
20070int
20071main ()
20072{
20073return fseeko && fseeko (stdin, 0, 0);
20074 ;
20075 return 0;
20076}
20077_ACEOF
20078rm -f conftest.$ac_objext conftest$ac_exeext
20079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20080 (eval $ac_link) 2>conftest.er1
20081 ac_status=$?
20082 grep -v '^ *+' conftest.er1 >conftest.err
20083 rm -f conftest.er1
20084 cat conftest.err >&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } &&
6ebeb4c7 20087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20090 ac_status=$?
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; } &&
20093 { ac_try='test -s conftest$ac_exeext'
20094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20096 ac_status=$?
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
20099 ac_cv_func_fseeko=yes
20100else
20101 echo "$as_me: failed program was:" >&5
20102sed 's/^/| /' conftest.$ac_ext >&5
20103
20104ac_cv_func_fseeko=no
20105fi
20106rm -f conftest.err conftest.$ac_objext \
20107 conftest$ac_exeext conftest.$ac_ext
20108fi
20109echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20110echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20111if test $ac_cv_func_fseeko = yes; then
20112
20113cat >>confdefs.h <<\_ACEOF
20114#define HAVE_FSEEKO 1
20115_ACEOF
20116
20117fi
20118
5b674b9d
DE
20119 if test "$ac_cv_sys_largefile_source" != no; then
20120 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20121 fi
20122 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20123fi
20124
20125echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20126echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20127if test "${ac_cv_c_bigendian+set}" = set; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
20129else
20130 ac_cv_c_bigendian=unknown
20131# See if sys/param.h defines the BYTE_ORDER macro.
20132cat >conftest.$ac_ext <<_ACEOF
20133/* confdefs.h. */
20134_ACEOF
20135cat confdefs.h >>conftest.$ac_ext
20136cat >>conftest.$ac_ext <<_ACEOF
20137/* end confdefs.h. */
20138#include <sys/types.h>
20139#include <sys/param.h>
20140int
20141main ()
20142{
20143
20144#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20145 bogus endian macros
20146#endif
20147 ;
20148 return 0;
20149}
20150_ACEOF
20151rm -f conftest.$ac_objext
20152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20153 (eval $ac_compile) 2>conftest.er1
a848cd7e 20154 ac_status=$?
ac1cb8d3
VS
20155 grep -v '^ *+' conftest.er1 >conftest.err
20156 rm -f conftest.er1
20157 cat conftest.err >&5
a848cd7e
SC
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); } &&
6ebeb4c7 20160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; } &&
20166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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
20172 # It does; now see whether it defined to BIG_ENDIAN or not.
20173cat >conftest.$ac_ext <<_ACEOF
20174/* confdefs.h. */
20175_ACEOF
20176cat confdefs.h >>conftest.$ac_ext
20177cat >>conftest.$ac_ext <<_ACEOF
20178/* end confdefs.h. */
20179#include <sys/types.h>
20180#include <sys/param.h>
20181int
20182main ()
20183{
20184
20185#if BYTE_ORDER != BIG_ENDIAN
20186 not big endian
20187#endif
20188 ;
20189 return 0;
20190}
20191_ACEOF
20192rm -f conftest.$ac_objext
20193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20194 (eval $ac_compile) 2>conftest.er1
a848cd7e 20195 ac_status=$?
ac1cb8d3
VS
20196 grep -v '^ *+' conftest.er1 >conftest.err
20197 rm -f conftest.er1
20198 cat conftest.err >&5
a848cd7e
SC
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
6ebeb4c7 20201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; } &&
20207 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 ac_cv_c_bigendian=yes
20214else
20215 echo "$as_me: failed program was:" >&5
20216sed 's/^/| /' conftest.$ac_ext >&5
20217
20218ac_cv_c_bigendian=no
20219fi
ac1cb8d3 20220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20221else
20222 echo "$as_me: failed program was:" >&5
20223sed 's/^/| /' conftest.$ac_ext >&5
20224
20225fi
ac1cb8d3 20226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20227if test $ac_cv_c_bigendian = unknown; then
20228if test "$cross_compiling" = yes; then
20229 ac_cv_c_bigendian=unknown
20230else
20231 cat >conftest.$ac_ext <<_ACEOF
20232/* confdefs.h. */
20233_ACEOF
20234cat confdefs.h >>conftest.$ac_ext
20235cat >>conftest.$ac_ext <<_ACEOF
20236/* end confdefs.h. */
20237main () {
20238 /* Are we little or big endian? From Harbison&Steele. */
20239 union
20240 {
20241 long l;
20242 char c[sizeof (long)];
20243 } u;
20244 u.l = 1;
20245 exit (u.c[sizeof (long) - 1] == 1);
20246}
20247_ACEOF
20248rm -f conftest$ac_exeext
20249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20250 (eval $ac_link) 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20256 ac_status=$?
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; }; then
20259 ac_cv_c_bigendian=no
20260else
20261 echo "$as_me: program exited with status $ac_status" >&5
20262echo "$as_me: failed program was:" >&5
20263sed 's/^/| /' conftest.$ac_ext >&5
20264
20265( exit $ac_status )
20266ac_cv_c_bigendian=yes
20267fi
ac1cb8d3 20268rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20269fi
20270fi
20271fi
20272echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20273echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20274if test $ac_cv_c_bigendian = unknown; then
20275 { 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
20276echo "$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;}
20277fi
20278if test $ac_cv_c_bigendian = yes; then
20279 cat >>confdefs.h <<\_ACEOF
20280#define WORDS_BIGENDIAN 1
20281_ACEOF
20282
20283fi
20284
20285
20286ac_ext=cc
20287ac_cpp='$CXXCPP $CPPFLAGS'
20288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20291echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20292echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20293if test -z "$CXXCPP"; then
20294 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20295 echo $ECHO_N "(cached) $ECHO_C" >&6
20296else
20297 # Double quotes because CXXCPP needs to be expanded
20298 for CXXCPP in "$CXX -E" "/lib/cpp"
20299 do
20300 ac_preproc_ok=false
20301for ac_cxx_preproc_warn_flag in '' yes
20302do
20303 # Use a header file that comes with gcc, so configuring glibc
20304 # with a fresh cross-compiler works.
20305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20306 # <limits.h> exists even on freestanding compilers.
20307 # On the NeXT, cc -E runs the code through the compiler's parser,
20308 # not just through cpp. "Syntax error" is here to catch this case.
20309 cat >conftest.$ac_ext <<_ACEOF
20310/* confdefs.h. */
20311_ACEOF
20312cat confdefs.h >>conftest.$ac_ext
20313cat >>conftest.$ac_ext <<_ACEOF
20314/* end confdefs.h. */
20315#ifdef __STDC__
20316# include <limits.h>
20317#else
20318# include <assert.h>
20319#endif
ac1cb8d3 20320 Syntax error
a848cd7e
SC
20321_ACEOF
20322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20324 ac_status=$?
20325 grep -v '^ *+' conftest.er1 >conftest.err
20326 rm -f conftest.er1
20327 cat conftest.err >&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } >/dev/null; then
20330 if test -s conftest.err; then
20331 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20332 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20333 else
20334 ac_cpp_err=
20335 fi
20336else
20337 ac_cpp_err=yes
20338fi
20339if test -z "$ac_cpp_err"; then
20340 :
20341else
20342 echo "$as_me: failed program was:" >&5
20343sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 # Broken: fails on valid input.
20346continue
20347fi
20348rm -f conftest.err conftest.$ac_ext
20349
20350 # OK, works on sane cases. Now check whether non-existent headers
20351 # can be detected and how.
20352 cat >conftest.$ac_ext <<_ACEOF
20353/* confdefs.h. */
20354_ACEOF
20355cat confdefs.h >>conftest.$ac_ext
20356cat >>conftest.$ac_ext <<_ACEOF
20357/* end confdefs.h. */
20358#include <ac_nonexistent.h>
20359_ACEOF
20360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20362 ac_status=$?
20363 grep -v '^ *+' conftest.er1 >conftest.err
20364 rm -f conftest.er1
20365 cat conftest.err >&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } >/dev/null; then
20368 if test -s conftest.err; then
20369 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20370 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20371 else
20372 ac_cpp_err=
20373 fi
20374else
20375 ac_cpp_err=yes
20376fi
20377if test -z "$ac_cpp_err"; then
20378 # Broken: success on invalid input.
20379continue
20380else
20381 echo "$as_me: failed program was:" >&5
20382sed 's/^/| /' conftest.$ac_ext >&5
20383
20384 # Passes both tests.
20385ac_preproc_ok=:
20386break
20387fi
20388rm -f conftest.err conftest.$ac_ext
20389
20390done
20391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20392rm -f conftest.err conftest.$ac_ext
20393if $ac_preproc_ok; then
20394 break
20395fi
20396
20397 done
20398 ac_cv_prog_CXXCPP=$CXXCPP
20399
20400fi
20401 CXXCPP=$ac_cv_prog_CXXCPP
20402else
20403 ac_cv_prog_CXXCPP=$CXXCPP
20404fi
20405echo "$as_me:$LINENO: result: $CXXCPP" >&5
20406echo "${ECHO_T}$CXXCPP" >&6
20407ac_preproc_ok=false
20408for ac_cxx_preproc_warn_flag in '' yes
20409do
20410 # Use a header file that comes with gcc, so configuring glibc
20411 # with a fresh cross-compiler works.
20412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20413 # <limits.h> exists even on freestanding compilers.
20414 # On the NeXT, cc -E runs the code through the compiler's parser,
20415 # not just through cpp. "Syntax error" is here to catch this case.
20416 cat >conftest.$ac_ext <<_ACEOF
20417/* confdefs.h. */
20418_ACEOF
20419cat confdefs.h >>conftest.$ac_ext
20420cat >>conftest.$ac_ext <<_ACEOF
20421/* end confdefs.h. */
20422#ifdef __STDC__
20423# include <limits.h>
20424#else
20425# include <assert.h>
20426#endif
ac1cb8d3 20427 Syntax error
a848cd7e
SC
20428_ACEOF
20429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20431 ac_status=$?
20432 grep -v '^ *+' conftest.er1 >conftest.err
20433 rm -f conftest.er1
20434 cat conftest.err >&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } >/dev/null; then
20437 if test -s conftest.err; then
20438 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20439 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20440 else
20441 ac_cpp_err=
20442 fi
20443else
20444 ac_cpp_err=yes
20445fi
20446if test -z "$ac_cpp_err"; then
20447 :
20448else
20449 echo "$as_me: failed program was:" >&5
20450sed 's/^/| /' conftest.$ac_ext >&5
20451
20452 # Broken: fails on valid input.
20453continue
20454fi
20455rm -f conftest.err conftest.$ac_ext
20456
20457 # OK, works on sane cases. Now check whether non-existent headers
20458 # can be detected and how.
20459 cat >conftest.$ac_ext <<_ACEOF
20460/* confdefs.h. */
20461_ACEOF
20462cat confdefs.h >>conftest.$ac_ext
20463cat >>conftest.$ac_ext <<_ACEOF
20464/* end confdefs.h. */
20465#include <ac_nonexistent.h>
20466_ACEOF
20467if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20469 ac_status=$?
20470 grep -v '^ *+' conftest.er1 >conftest.err
20471 rm -f conftest.er1
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } >/dev/null; then
20475 if test -s conftest.err; then
20476 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20477 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20478 else
20479 ac_cpp_err=
20480 fi
20481else
20482 ac_cpp_err=yes
20483fi
20484if test -z "$ac_cpp_err"; then
20485 # Broken: success on invalid input.
20486continue
20487else
20488 echo "$as_me: failed program was:" >&5
20489sed 's/^/| /' conftest.$ac_ext >&5
20490
20491 # Passes both tests.
20492ac_preproc_ok=:
20493break
20494fi
20495rm -f conftest.err conftest.$ac_ext
20496
20497done
20498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20499rm -f conftest.err conftest.$ac_ext
20500if $ac_preproc_ok; then
20501 :
20502else
20503 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20504See \`config.log' for more details." >&5
20505echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20506See \`config.log' for more details." >&2;}
20507 { (exit 1); exit 1; }; }
20508fi
20509
20510ac_ext=cc
20511ac_cpp='$CXXCPP $CPPFLAGS'
20512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20515
20516
20517
20518
20519
20520 ac_ext=cc
20521ac_cpp='$CXXCPP $CPPFLAGS'
20522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20525
20526
20527
20528for ac_header in iostream
20529do
20530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20531if eval "test \"\${$as_ac_Header+set}\" = set"; then
20532 echo "$as_me:$LINENO: checking for $ac_header" >&5
20533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20534if eval "test \"\${$as_ac_Header+set}\" = set"; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20536fi
20537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20539else
20540 # Is the header compilable?
20541echo "$as_me:$LINENO: checking $ac_header usability" >&5
20542echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20543cat >conftest.$ac_ext <<_ACEOF
20544/* confdefs.h. */
20545_ACEOF
20546cat confdefs.h >>conftest.$ac_ext
20547cat >>conftest.$ac_ext <<_ACEOF
20548/* end confdefs.h. */
20549$ac_includes_default
20550#include <$ac_header>
20551_ACEOF
20552rm -f conftest.$ac_objext
20553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20554 (eval $ac_compile) 2>conftest.er1
a848cd7e 20555 ac_status=$?
ac1cb8d3
VS
20556 grep -v '^ *+' conftest.er1 >conftest.err
20557 rm -f conftest.er1
20558 cat conftest.err >&5
a848cd7e
SC
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } &&
6ebeb4c7 20561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; } &&
20567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20570 ac_status=$?
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 ac_header_compiler=yes
20574else
20575 echo "$as_me: failed program was:" >&5
20576sed 's/^/| /' conftest.$ac_ext >&5
20577
20578ac_header_compiler=no
20579fi
ac1cb8d3 20580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20582echo "${ECHO_T}$ac_header_compiler" >&6
20583
20584# Is the header present?
20585echo "$as_me:$LINENO: checking $ac_header presence" >&5
20586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20587cat >conftest.$ac_ext <<_ACEOF
20588/* confdefs.h. */
20589_ACEOF
20590cat confdefs.h >>conftest.$ac_ext
20591cat >>conftest.$ac_ext <<_ACEOF
20592/* end confdefs.h. */
20593#include <$ac_header>
20594_ACEOF
20595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20597 ac_status=$?
20598 grep -v '^ *+' conftest.er1 >conftest.err
20599 rm -f conftest.er1
20600 cat conftest.err >&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); } >/dev/null; then
20603 if test -s conftest.err; then
20604 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20605 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20606 else
20607 ac_cpp_err=
20608 fi
20609else
20610 ac_cpp_err=yes
20611fi
20612if test -z "$ac_cpp_err"; then
20613 ac_header_preproc=yes
20614else
20615 echo "$as_me: failed program was:" >&5
20616sed 's/^/| /' conftest.$ac_ext >&5
20617
20618 ac_header_preproc=no
20619fi
20620rm -f conftest.err conftest.$ac_ext
20621echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20622echo "${ECHO_T}$ac_header_preproc" >&6
20623
20624# So? What about this header?
ac1cb8d3
VS
20625case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20626 yes:no: )
a848cd7e
SC
20627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20631 ac_header_preproc=yes
a848cd7e 20632 ;;
ac1cb8d3 20633 no:yes:* )
a848cd7e
SC
20634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20637echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20641echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20646 (
20647 cat <<\_ASBOX
ac1cb8d3
VS
20648## ----------------------------------------- ##
20649## Report this to wx-dev@lists.wxwidgets.org ##
20650## ----------------------------------------- ##
a848cd7e
SC
20651_ASBOX
20652 ) |
20653 sed "s/^/$as_me: WARNING: /" >&2
20654 ;;
20655esac
20656echo "$as_me:$LINENO: checking for $ac_header" >&5
20657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20658if eval "test \"\${$as_ac_Header+set}\" = set"; then
20659 echo $ECHO_N "(cached) $ECHO_C" >&6
20660else
ac1cb8d3 20661 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20662fi
20663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20665
20666fi
20667if test `eval echo '${'$as_ac_Header'}'` = yes; then
20668 cat >>confdefs.h <<_ACEOF
20669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20670_ACEOF
20671
20672fi
20673
20674done
20675
20676
20677 if test "$ac_cv_header_iostream" = "yes" ; then
20678 :
20679 else
20680 cat >>confdefs.h <<\_ACEOF
20681#define wxUSE_IOSTREAMH 1
20682_ACEOF
20683
20684 fi
20685
20686 ac_ext=c
20687ac_cpp='$CPP $CPPFLAGS'
20688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20690ac_compiler_gnu=$ac_cv_c_compiler_gnu
20691
20692
20693
20694
20695 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20696echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20697if test "${wx_cv_cpp_bool+set}" = set; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20699else
20700
20701
20702
20703 ac_ext=cc
20704ac_cpp='$CXXCPP $CPPFLAGS'
20705ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20706ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20707ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20708
20709
20710 cat >conftest.$ac_ext <<_ACEOF
20711/* confdefs.h. */
20712_ACEOF
20713cat confdefs.h >>conftest.$ac_ext
20714cat >>conftest.$ac_ext <<_ACEOF
20715/* end confdefs.h. */
20716
20717
20718int
20719main ()
20720{
20721
20722 bool b = true;
20723
20724 return 0;
20725
20726 ;
20727 return 0;
20728}
20729_ACEOF
20730rm -f conftest.$ac_objext
20731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20732 (eval $ac_compile) 2>conftest.er1
a848cd7e 20733 ac_status=$?
ac1cb8d3
VS
20734 grep -v '^ *+' conftest.er1 >conftest.err
20735 rm -f conftest.er1
20736 cat conftest.err >&5
a848cd7e
SC
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } &&
6ebeb4c7 20739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; } &&
20745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20751
20752 wx_cv_cpp_bool=yes
20753
20754else
20755 echo "$as_me: failed program was:" >&5
20756sed 's/^/| /' conftest.$ac_ext >&5
20757
20758
20759 wx_cv_cpp_bool=no
20760
20761
20762fi
ac1cb8d3 20763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20764
20765 ac_ext=c
20766ac_cpp='$CPP $CPPFLAGS'
20767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20769ac_compiler_gnu=$ac_cv_c_compiler_gnu
20770
20771
20772fi
20773echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20774echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20775
20776 if test "$wx_cv_cpp_bool" = "yes"; then
20777 cat >>confdefs.h <<\_ACEOF
20778#define HAVE_BOOL 1
20779_ACEOF
20780
20781 fi
20782
20783
20784
20785 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20786echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20787if test "${wx_cv_explicit+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20789else
20790
20791
20792
20793 ac_ext=cc
20794ac_cpp='$CXXCPP $CPPFLAGS'
20795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20798
20799
20800 cat >conftest.$ac_ext <<_ACEOF
20801/* confdefs.h. */
20802_ACEOF
20803cat confdefs.h >>conftest.$ac_ext
20804cat >>conftest.$ac_ext <<_ACEOF
20805/* end confdefs.h. */
20806
20807 class Foo { public: explicit Foo(int) {} };
20808
20809int
20810main ()
20811{
20812
20813 return 0;
20814
20815 ;
20816 return 0;
20817}
20818_ACEOF
20819rm -f conftest.$ac_objext
20820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20821 (eval $ac_compile) 2>conftest.er1
a848cd7e 20822 ac_status=$?
ac1cb8d3
VS
20823 grep -v '^ *+' conftest.er1 >conftest.err
20824 rm -f conftest.er1
20825 cat conftest.err >&5
a848cd7e
SC
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } &&
6ebeb4c7 20828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20830 (eval $ac_try) 2>&5
20831 ac_status=$?
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); }; } &&
20834 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20836 (eval $ac_try) 2>&5
20837 ac_status=$?
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; }; then
20840
20841 cat >conftest.$ac_ext <<_ACEOF
20842/* confdefs.h. */
20843_ACEOF
20844cat confdefs.h >>conftest.$ac_ext
20845cat >>conftest.$ac_ext <<_ACEOF
20846/* end confdefs.h. */
20847
20848 class Foo { public: explicit Foo(int) {} };
20849 static void TakeFoo(const Foo& foo) { }
20850
20851int
20852main ()
20853{
20854
20855 TakeFoo(17);
20856 return 0;
20857
20858 ;
20859 return 0;
20860}
20861_ACEOF
20862rm -f conftest.$ac_objext
20863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20864 (eval $ac_compile) 2>conftest.er1
a848cd7e 20865 ac_status=$?
ac1cb8d3
VS
20866 grep -v '^ *+' conftest.er1 >conftest.err
20867 rm -f conftest.er1
20868 cat conftest.err >&5
a848cd7e
SC
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); } &&
6ebeb4c7 20871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20873 (eval $ac_try) 2>&5
20874 ac_status=$?
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); }; } &&
20877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879 (eval $ac_try) 2>&5
20880 ac_status=$?
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; }; then
20883 wx_cv_explicit=no
20884else
20885 echo "$as_me: failed program was:" >&5
20886sed 's/^/| /' conftest.$ac_ext >&5
20887
20888wx_cv_explicit=yes
20889
20890fi
ac1cb8d3 20891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20892
20893else
20894 echo "$as_me: failed program was:" >&5
20895sed 's/^/| /' conftest.$ac_ext >&5
20896
20897wx_cv_explicit=no
20898
20899fi
ac1cb8d3 20900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20901
20902 ac_ext=c
20903ac_cpp='$CPP $CPPFLAGS'
20904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20906ac_compiler_gnu=$ac_cv_c_compiler_gnu
20907
20908
20909fi
20910echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20911echo "${ECHO_T}$wx_cv_explicit" >&6
20912
20913 if test "$wx_cv_explicit" = "yes"; then
20914 cat >>confdefs.h <<\_ACEOF
20915#define HAVE_EXPLICIT 1
20916_ACEOF
20917
20918 fi
20919
20920
20921echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20922echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20923if test "${ac_cv_cxx_const_cast+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20925else
20926
20927
20928 ac_ext=cc
20929ac_cpp='$CXXCPP $CPPFLAGS'
20930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20933
20934 cat >conftest.$ac_ext <<_ACEOF
20935/* confdefs.h. */
20936_ACEOF
20937cat confdefs.h >>conftest.$ac_ext
20938cat >>conftest.$ac_ext <<_ACEOF
20939/* end confdefs.h. */
20940
20941int
20942main ()
20943{
20944int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20945 ;
20946 return 0;
20947}
20948_ACEOF
20949rm -f conftest.$ac_objext
20950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20951 (eval $ac_compile) 2>conftest.er1
a848cd7e 20952 ac_status=$?
ac1cb8d3
VS
20953 grep -v '^ *+' conftest.er1 >conftest.err
20954 rm -f conftest.er1
20955 cat conftest.err >&5
a848cd7e
SC
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } &&
6ebeb4c7 20958 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; } &&
20964 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966 (eval $ac_try) 2>&5
20967 ac_status=$?
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); }; }; then
20970 ac_cv_cxx_const_cast=yes
20971else
20972 echo "$as_me: failed program was:" >&5
20973sed 's/^/| /' conftest.$ac_ext >&5
20974
20975ac_cv_cxx_const_cast=no
20976fi
ac1cb8d3 20977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20978 ac_ext=c
20979ac_cpp='$CPP $CPPFLAGS'
20980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20982ac_compiler_gnu=$ac_cv_c_compiler_gnu
20983
20984
20985fi
20986echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
20987echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
20988if test "$ac_cv_cxx_const_cast" = yes; then
20989
20990cat >>confdefs.h <<\_ACEOF
20991#define HAVE_CONST_CAST
20992_ACEOF
20993
20994fi
20995
7714864e
RL
20996echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
20997echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
20998if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
20999 echo $ECHO_N "(cached) $ECHO_C" >&6
21000else
21001
21002
21003 ac_ext=cc
21004ac_cpp='$CXXCPP $CPPFLAGS'
21005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21008
21009 cat >conftest.$ac_ext <<_ACEOF
21010/* confdefs.h. */
21011_ACEOF
21012cat confdefs.h >>conftest.$ac_ext
21013cat >>conftest.$ac_ext <<_ACEOF
21014/* end confdefs.h. */
21015#include <typeinfo>
21016class Base { public : Base () {} virtual void f () = 0;};
21017class Derived : public Base { public : Derived () {} virtual void f () {} };
21018class Unrelated { public : Unrelated () {} };
21019int g (Unrelated&) { return 0; }
21020int
21021main ()
21022{
21023
21024Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21025 ;
21026 return 0;
21027}
21028_ACEOF
21029rm -f conftest.$ac_objext
21030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21031 (eval $ac_compile) 2>conftest.er1
21032 ac_status=$?
21033 grep -v '^ *+' conftest.er1 >conftest.err
21034 rm -f conftest.er1
21035 cat conftest.err >&5
21036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); } &&
6ebeb4c7 21038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21040 (eval $ac_try) 2>&5
21041 ac_status=$?
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); }; } &&
21044 { ac_try='test -s conftest.$ac_objext'
21045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21046 (eval $ac_try) 2>&5
21047 ac_status=$?
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); }; }; then
21050 ac_cv_cxx_reinterpret_cast=yes
21051else
21052 echo "$as_me: failed program was:" >&5
21053sed 's/^/| /' conftest.$ac_ext >&5
21054
21055ac_cv_cxx_reinterpret_cast=no
21056fi
21057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21058 ac_ext=c
21059ac_cpp='$CPP $CPPFLAGS'
21060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21062ac_compiler_gnu=$ac_cv_c_compiler_gnu
21063
21064
21065fi
21066echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21067echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21068if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21069
21070cat >>confdefs.h <<\_ACEOF
21071#define HAVE_REINTERPRET_CAST
21072_ACEOF
21073
21074fi
21075
a848cd7e
SC
21076echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21077echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21078if test "${ac_cv_cxx_static_cast+set}" = set; then
21079 echo $ECHO_N "(cached) $ECHO_C" >&6
21080else
21081
21082
21083 ac_ext=cc
21084ac_cpp='$CXXCPP $CPPFLAGS'
21085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21088
21089 cat >conftest.$ac_ext <<_ACEOF
21090/* confdefs.h. */
21091_ACEOF
21092cat confdefs.h >>conftest.$ac_ext
21093cat >>conftest.$ac_ext <<_ACEOF
21094/* end confdefs.h. */
21095#include <typeinfo>
21096class Base { public : Base () {} virtual void f () = 0; };
21097class Derived : public Base { public : Derived () {} virtual void f () {} };
21098int g (Derived&) { return 0; }
21099int
21100main ()
21101{
21102
21103Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21104 ;
21105 return 0;
21106}
21107_ACEOF
21108rm -f conftest.$ac_objext
21109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21110 (eval $ac_compile) 2>conftest.er1
a848cd7e 21111 ac_status=$?
ac1cb8d3
VS
21112 grep -v '^ *+' conftest.er1 >conftest.err
21113 rm -f conftest.er1
21114 cat conftest.err >&5
a848cd7e
SC
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); } &&
6ebeb4c7 21117 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21120 ac_status=$?
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; } &&
21123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125 (eval $ac_try) 2>&5
21126 ac_status=$?
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; }; then
21129 ac_cv_cxx_static_cast=yes
21130else
21131 echo "$as_me: failed program was:" >&5
21132sed 's/^/| /' conftest.$ac_ext >&5
21133
21134ac_cv_cxx_static_cast=no
21135fi
ac1cb8d3 21136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21137 ac_ext=c
21138ac_cpp='$CPP $CPPFLAGS'
21139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21141ac_compiler_gnu=$ac_cv_c_compiler_gnu
21142
21143
21144fi
21145echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21146echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21147if test "$ac_cv_cxx_static_cast" = yes; then
21148
21149cat >>confdefs.h <<\_ACEOF
21150#define HAVE_STATIC_CAST
21151_ACEOF
21152
21153fi
21154
21155
3c28b7cb
MW
21156if test "x$SUNCXX" = xyes; then
21157 CXXFLAGS="$CXXFLAGS -features=tmplife"
21158fi
21159
f56c22b4 21160if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21161 ac_ext=cc
21162ac_cpp='$CXXCPP $CPPFLAGS'
21163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21166
21167
f56c22b4
MW
21168 if test "$wxUSE_UNICODE" = "yes"; then
21169 std_string="std::wstring"
21170 char_type="wchar_t"
21171 else
21172 std_string="std::string"
21173 char_type="char"
21174 fi
21175
21176 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21177echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21178 cat >conftest.$ac_ext <<_ACEOF
21179/* confdefs.h. */
21180_ACEOF
21181cat confdefs.h >>conftest.$ac_ext
21182cat >>conftest.$ac_ext <<_ACEOF
21183/* end confdefs.h. */
21184#include <string>
a848cd7e
SC
21185int
21186main ()
21187{
f56c22b4 21188$std_string foo;
a848cd7e
SC
21189 ;
21190 return 0;
21191}
21192_ACEOF
21193rm -f conftest.$ac_objext
21194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21195 (eval $ac_compile) 2>conftest.er1
a848cd7e 21196 ac_status=$?
ac1cb8d3
VS
21197 grep -v '^ *+' conftest.er1 >conftest.err
21198 rm -f conftest.er1
21199 cat conftest.err >&5
a848cd7e
SC
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } &&
6ebeb4c7 21202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204 (eval $ac_try) 2>&5
21205 ac_status=$?
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); }; } &&
21208 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; }; then
21214 echo "$as_me:$LINENO: result: yes" >&5
21215echo "${ECHO_T}yes" >&6
0a08f02a
MB
21216 cat >>confdefs.h <<\_ACEOF
21217#define HAVE_STD_WSTRING 1
21218_ACEOF
21219
a848cd7e
SC
21220else
21221 echo "$as_me: failed program was:" >&5
21222sed 's/^/| /' conftest.$ac_ext >&5
21223
21224echo "$as_me:$LINENO: result: no" >&5
21225echo "${ECHO_T}no" >&6
f56c22b4
MW
21226 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21227echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21228 cat >conftest.$ac_ext <<_ACEOF
21229/* confdefs.h. */
21230_ACEOF
21231cat confdefs.h >>conftest.$ac_ext
21232cat >>conftest.$ac_ext <<_ACEOF
21233/* end confdefs.h. */
21234
21235 #ifdef HAVE_WCHAR_H
21236 # ifdef __CYGWIN__
21237 # include <stddef.h>
21238 # endif
21239 # include <wchar.h>
21240 #endif
21241 #ifdef HAVE_STDLIB_H
21242 # include <stdlib.h>
21243 #endif
21244 #include <stdio.h>
21245 #include <string>
21246
21247int
21248main ()
21249{
f56c22b4
MW
21250std::basic_string<$char_type> foo;
21251 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21252 ;
21253 return 0;
21254}
21255_ACEOF
21256rm -f conftest.$ac_objext
21257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21258 (eval $ac_compile) 2>conftest.er1
21259 ac_status=$?
21260 grep -v '^ *+' conftest.er1 >conftest.err
21261 rm -f conftest.er1
21262 cat conftest.err >&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } &&
6ebeb4c7 21265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21268 ac_status=$?
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; } &&
21271 { ac_try='test -s conftest.$ac_objext'
21272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21273 (eval $ac_try) 2>&5
21274 ac_status=$?
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); }; }; then
21277 echo "$as_me:$LINENO: result: yes" >&5
21278echo "${ECHO_T}yes" >&6
21279else
21280 echo "$as_me: failed program was:" >&5
21281sed 's/^/| /' conftest.$ac_ext >&5
21282
21283echo "$as_me:$LINENO: result: no" >&5
21284echo "${ECHO_T}no" >&6
f56c22b4 21285 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21286 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21287echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21288 { (exit 1); exit 1; }; }
21289 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21290 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21291echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21292 { (exit 1); exit 1; }; }
f56c22b4
MW
21293 else
21294 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21295echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21296 wxUSE_STD_STRING=no
21297 fi
21298
0a08f02a 21299
a848cd7e 21300fi
ac1cb8d3 21301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21302
0a08f02a
MB
21303fi
21304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21305
21306 ac_ext=c
21307ac_cpp='$CPP $CPPFLAGS'
21308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21310ac_compiler_gnu=$ac_cv_c_compiler_gnu
21311
21312fi
21313
21314if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21315 ac_ext=cc
21316ac_cpp='$CXXCPP $CPPFLAGS'
21317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21320
21321
21322 echo "$as_me:$LINENO: checking for std::istream" >&5
21323echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21324if test "${ac_cv_type_std__istream+set}" = set; then
21325 echo $ECHO_N "(cached) $ECHO_C" >&6
21326else
21327 cat >conftest.$ac_ext <<_ACEOF
21328/* confdefs.h. */
21329_ACEOF
21330cat confdefs.h >>conftest.$ac_ext
21331cat >>conftest.$ac_ext <<_ACEOF
21332/* end confdefs.h. */
21333#include <iostream>
21334
21335int
21336main ()
21337{
21338if ((std::istream *) 0)
21339 return 0;
21340if (sizeof (std::istream))
21341 return 0;
21342 ;
21343 return 0;
21344}
21345_ACEOF
21346rm -f conftest.$ac_objext
21347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21348 (eval $ac_compile) 2>conftest.er1
21349 ac_status=$?
21350 grep -v '^ *+' conftest.er1 >conftest.err
21351 rm -f conftest.er1
21352 cat conftest.err >&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
6ebeb4c7 21355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21358 ac_status=$?
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; } &&
21361 { ac_try='test -s conftest.$ac_objext'
21362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363 (eval $ac_try) 2>&5
21364 ac_status=$?
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); }; }; then
21367 ac_cv_type_std__istream=yes
21368else
21369 echo "$as_me: failed program was:" >&5
21370sed 's/^/| /' conftest.$ac_ext >&5
21371
21372ac_cv_type_std__istream=no
21373fi
21374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21375fi
21376echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21377echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21378if test $ac_cv_type_std__istream = yes; then
21379
21380cat >>confdefs.h <<_ACEOF
21381#define HAVE_STD__ISTREAM 1
21382_ACEOF
21383
21384
21385else
21386 wxUSE_STD_IOSTREAM=no
21387fi
21388echo "$as_me:$LINENO: checking for std::ostream" >&5
21389echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21390if test "${ac_cv_type_std__ostream+set}" = set; then
21391 echo $ECHO_N "(cached) $ECHO_C" >&6
21392else
21393 cat >conftest.$ac_ext <<_ACEOF
21394/* confdefs.h. */
21395_ACEOF
21396cat confdefs.h >>conftest.$ac_ext
21397cat >>conftest.$ac_ext <<_ACEOF
21398/* end confdefs.h. */
21399#include <iostream>
21400
21401int
21402main ()
21403{
21404if ((std::ostream *) 0)
21405 return 0;
21406if (sizeof (std::ostream))
21407 return 0;
21408 ;
21409 return 0;
21410}
21411_ACEOF
21412rm -f conftest.$ac_objext
21413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21414 (eval $ac_compile) 2>conftest.er1
21415 ac_status=$?
21416 grep -v '^ *+' conftest.er1 >conftest.err
21417 rm -f conftest.er1
21418 cat conftest.err >&5
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } &&
6ebeb4c7 21421 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423 (eval $ac_try) 2>&5
21424 ac_status=$?
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; } &&
21427 { ac_try='test -s conftest.$ac_objext'
21428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429 (eval $ac_try) 2>&5
21430 ac_status=$?
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); }; }; then
21433 ac_cv_type_std__ostream=yes
21434else
21435 echo "$as_me: failed program was:" >&5
21436sed 's/^/| /' conftest.$ac_ext >&5
21437
21438ac_cv_type_std__ostream=no
21439fi
21440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21441fi
21442echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21443echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21444if test $ac_cv_type_std__ostream = yes; then
21445
21446cat >>confdefs.h <<_ACEOF
21447#define HAVE_STD__OSTREAM 1
21448_ACEOF
21449
21450
21451else
21452 wxUSE_STD_IOSTREAM=no
21453fi
21454
21455
21456 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
21457 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
21458 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
21459echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
21460 { (exit 1); exit 1; }; }
21461 else
21462 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 21463echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 21464 fi
f56c22b4
MW
21465 fi
21466
21467 ac_ext=c
21468ac_cpp='$CPP $CPPFLAGS'
21469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
21471ac_compiler_gnu=$ac_cv_c_compiler_gnu
21472
21473fi
21474
21475if test "$wxUSE_STL" = "yes"; then
21476 ac_ext=cc
21477ac_cpp='$CXXCPP $CPPFLAGS'
21478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21481
21482
21483 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21484echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21485 cat >conftest.$ac_ext <<_ACEOF
21486/* confdefs.h. */
21487_ACEOF
21488cat confdefs.h >>conftest.$ac_ext
21489cat >>conftest.$ac_ext <<_ACEOF
21490/* end confdefs.h. */
21491#include <string>
0a08f02a
MB
21492 #include <functional>
21493 #include <algorithm>
21494 #include <vector>
21495 #include <list>
a848cd7e
SC
21496int
21497main ()
21498{
0a08f02a
MB
21499std::vector<int> moo;
21500 std::list<int> foo;
21501 std::vector<int>::iterator it =
21502 std::find_if(moo.begin(), moo.end(),
21503 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21504 ;
21505 return 0;
21506}
21507_ACEOF
21508rm -f conftest.$ac_objext
21509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21510 (eval $ac_compile) 2>conftest.er1
a848cd7e 21511 ac_status=$?
ac1cb8d3
VS
21512 grep -v '^ *+' conftest.er1 >conftest.err
21513 rm -f conftest.er1
21514 cat conftest.err >&5
a848cd7e
SC
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); } &&
6ebeb4c7 21517 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21520 ac_status=$?
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; } &&
21523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525 (eval $ac_try) 2>&5
21526 ac_status=$?
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); }; }; then
21529 echo "$as_me:$LINENO: result: yes" >&5
21530echo "${ECHO_T}yes" >&6
a848cd7e
SC
21531else
21532 echo "$as_me: failed program was:" >&5
21533sed 's/^/| /' conftest.$ac_ext >&5
21534
21535echo "$as_me:$LINENO: result: no" >&5
21536echo "${ECHO_T}no" >&6
0a08f02a
MB
21537 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21538echo "$as_me: error: Basic STL functionality missing" >&2;}
21539 { (exit 1); exit 1; }; }
a848cd7e 21540fi
ac1cb8d3 21541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21542
21543 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21544echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21545 cat >conftest.$ac_ext <<_ACEOF
21546/* confdefs.h. */
21547_ACEOF
21548cat confdefs.h >>conftest.$ac_ext
21549cat >>conftest.$ac_ext <<_ACEOF
21550/* end confdefs.h. */
21551#include <string>
21552int
21553main ()
21554{
21555std::string foo, bar;
21556 foo.compare(bar);
21557 foo.compare(1, 1, bar);
21558 foo.compare(1, 1, bar, 1, 1);
21559 foo.compare("");
21560 foo.compare(1, 1, "");
21561 foo.compare(1, 1, "", 2);
21562 ;
21563 return 0;
21564}
21565_ACEOF
21566rm -f conftest.$ac_objext
21567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21568 (eval $ac_compile) 2>conftest.er1
a848cd7e 21569 ac_status=$?
ac1cb8d3
VS
21570 grep -v '^ *+' conftest.er1 >conftest.err
21571 rm -f conftest.er1
21572 cat conftest.err >&5
a848cd7e
SC
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); } &&
6ebeb4c7 21575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577 (eval $ac_try) 2>&5
21578 ac_status=$?
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); }; } &&
21581 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21584 ac_status=$?
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21587 echo "$as_me:$LINENO: result: yes" >&5
21588echo "${ECHO_T}yes" >&6
21589 cat >>confdefs.h <<\_ACEOF
21590#define HAVE_STD_STRING_COMPARE 1
21591_ACEOF
21592
21593else
21594 echo "$as_me: failed program was:" >&5
21595sed 's/^/| /' conftest.$ac_ext >&5
21596
21597echo "$as_me:$LINENO: result: no" >&5
21598echo "${ECHO_T}no" >&6
21599fi
ac1cb8d3 21600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21601
21602 if test "${ac_cv_header_hash_map+set}" = set; then
21603 echo "$as_me:$LINENO: checking for hash_map" >&5
21604echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21605if test "${ac_cv_header_hash_map+set}" = set; then
21606 echo $ECHO_N "(cached) $ECHO_C" >&6
21607fi
21608echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21609echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21610else
21611 # Is the header compilable?
21612echo "$as_me:$LINENO: checking hash_map usability" >&5
21613echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21614cat >conftest.$ac_ext <<_ACEOF
21615/* confdefs.h. */
21616_ACEOF
21617cat confdefs.h >>conftest.$ac_ext
21618cat >>conftest.$ac_ext <<_ACEOF
21619/* end confdefs.h. */
21620$ac_includes_default
21621#include <hash_map>
21622_ACEOF
21623rm -f conftest.$ac_objext
21624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21625 (eval $ac_compile) 2>conftest.er1
bdcade0a 21626 ac_status=$?
ac1cb8d3
VS
21627 grep -v '^ *+' conftest.er1 >conftest.err
21628 rm -f conftest.er1
21629 cat conftest.err >&5
bdcade0a
MB
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); } &&
6ebeb4c7 21632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634 (eval $ac_try) 2>&5
21635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; } &&
21638 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640 (eval $ac_try) 2>&5
21641 ac_status=$?
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; }; then
21644 ac_header_compiler=yes
21645else
21646 echo "$as_me: failed program was:" >&5
21647sed 's/^/| /' conftest.$ac_ext >&5
21648
21649ac_header_compiler=no
21650fi
ac1cb8d3 21651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21652echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21653echo "${ECHO_T}$ac_header_compiler" >&6
21654
21655# Is the header present?
21656echo "$as_me:$LINENO: checking hash_map presence" >&5
21657echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21658cat >conftest.$ac_ext <<_ACEOF
21659/* confdefs.h. */
21660_ACEOF
21661cat confdefs.h >>conftest.$ac_ext
21662cat >>conftest.$ac_ext <<_ACEOF
21663/* end confdefs.h. */
21664#include <hash_map>
21665_ACEOF
21666if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21668 ac_status=$?
21669 grep -v '^ *+' conftest.er1 >conftest.err
21670 rm -f conftest.er1
21671 cat conftest.err >&5
21672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } >/dev/null; then
21674 if test -s conftest.err; then
21675 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21676 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21677 else
21678 ac_cpp_err=
21679 fi
21680else
21681 ac_cpp_err=yes
21682fi
21683if test -z "$ac_cpp_err"; then
21684 ac_header_preproc=yes
21685else
21686 echo "$as_me: failed program was:" >&5
21687sed 's/^/| /' conftest.$ac_ext >&5
21688
21689 ac_header_preproc=no
21690fi
21691rm -f conftest.err conftest.$ac_ext
21692echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21693echo "${ECHO_T}$ac_header_preproc" >&6
21694
21695# So? What about this header?
ac1cb8d3
VS
21696case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21697 yes:no: )
bdcade0a
MB
21698 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21699echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21700 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21701echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21702 ac_header_preproc=yes
bdcade0a 21703 ;;
ac1cb8d3 21704 no:yes:* )
bdcade0a
MB
21705 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21706echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21707 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21708echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21709 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21710echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21711 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21712echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21713 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21714echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21715 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21716echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21717 (
21718 cat <<\_ASBOX
ac1cb8d3
VS
21719## ----------------------------------------- ##
21720## Report this to wx-dev@lists.wxwidgets.org ##
21721## ----------------------------------------- ##
bdcade0a
MB
21722_ASBOX
21723 ) |
21724 sed "s/^/$as_me: WARNING: /" >&2
21725 ;;
21726esac
21727echo "$as_me:$LINENO: checking for hash_map" >&5
21728echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21729if test "${ac_cv_header_hash_map+set}" = set; then
21730 echo $ECHO_N "(cached) $ECHO_C" >&6
21731else
21732 ac_cv_header_hash_map=$ac_header_preproc
21733fi
21734echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21735echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21736
21737fi
21738if test $ac_cv_header_hash_map = yes; then
21739 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21740echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21741 cat >conftest.$ac_ext <<_ACEOF
21742/* confdefs.h. */
21743_ACEOF
21744cat confdefs.h >>conftest.$ac_ext
21745cat >>conftest.$ac_ext <<_ACEOF
21746/* end confdefs.h. */
21747#include <hash_map>
21748 #include <hash_set>
21749int
21750main ()
21751{
21752std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21753 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21754 ;
21755 return 0;
21756}
21757_ACEOF
21758rm -f conftest.$ac_objext
21759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21760 (eval $ac_compile) 2>conftest.er1
bdcade0a 21761 ac_status=$?
ac1cb8d3
VS
21762 grep -v '^ *+' conftest.er1 >conftest.err
21763 rm -f conftest.er1
21764 cat conftest.err >&5
bdcade0a
MB
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } &&
6ebeb4c7 21767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769 (eval $ac_try) 2>&5
21770 ac_status=$?
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; } &&
21773 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21775 (eval $ac_try) 2>&5
21776 ac_status=$?
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); }; }; then
21779 echo "$as_me:$LINENO: result: yes" >&5
21780echo "${ECHO_T}yes" >&6
21781 cat >>confdefs.h <<\_ACEOF
21782#define HAVE_HASH_MAP 1
21783_ACEOF
21784
21785 cat >>confdefs.h <<\_ACEOF
21786#define HAVE_STD_HASH_MAP 1
21787_ACEOF
21788
21789else
21790 echo "$as_me: failed program was:" >&5
21791sed 's/^/| /' conftest.$ac_ext >&5
21792
21793echo "$as_me:$LINENO: result: no" >&5
21794echo "${ECHO_T}no" >&6
21795fi
ac1cb8d3 21796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21797
21798fi
21799
21800
21801
21802 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21803 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21804echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21805if test "${ac_cv_header_ext_hash_map+set}" = set; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
21807fi
21808echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21809echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21810else
21811 # Is the header compilable?
21812echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21813echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21814cat >conftest.$ac_ext <<_ACEOF
21815/* confdefs.h. */
21816_ACEOF
21817cat confdefs.h >>conftest.$ac_ext
21818cat >>conftest.$ac_ext <<_ACEOF
21819/* end confdefs.h. */
21820$ac_includes_default
21821#include <ext/hash_map>
21822_ACEOF
21823rm -f conftest.$ac_objext
21824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21825 (eval $ac_compile) 2>conftest.er1
bdcade0a 21826 ac_status=$?
ac1cb8d3
VS
21827 grep -v '^ *+' conftest.er1 >conftest.err
21828 rm -f conftest.er1
21829 cat conftest.err >&5
bdcade0a
MB
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } &&
6ebeb4c7 21832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21834 (eval $ac_try) 2>&5
21835 ac_status=$?
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); }; } &&
21838 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21840 (eval $ac_try) 2>&5
21841 ac_status=$?
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); }; }; then
21844 ac_header_compiler=yes
21845else
21846 echo "$as_me: failed program was:" >&5
21847sed 's/^/| /' conftest.$ac_ext >&5
21848
21849ac_header_compiler=no
21850fi
ac1cb8d3 21851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21852echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21853echo "${ECHO_T}$ac_header_compiler" >&6
21854
21855# Is the header present?
21856echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21857echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21858cat >conftest.$ac_ext <<_ACEOF
21859/* confdefs.h. */
21860_ACEOF
21861cat confdefs.h >>conftest.$ac_ext
21862cat >>conftest.$ac_ext <<_ACEOF
21863/* end confdefs.h. */
21864#include <ext/hash_map>
21865_ACEOF
21866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21868 ac_status=$?
21869 grep -v '^ *+' conftest.er1 >conftest.err
21870 rm -f conftest.er1
21871 cat conftest.err >&5
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); } >/dev/null; then
21874 if test -s conftest.err; then
21875 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21876 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21877 else
21878 ac_cpp_err=
21879 fi
21880else
21881 ac_cpp_err=yes
21882fi
21883if test -z "$ac_cpp_err"; then
21884 ac_header_preproc=yes
21885else
21886 echo "$as_me: failed program was:" >&5
21887sed 's/^/| /' conftest.$ac_ext >&5
21888
21889 ac_header_preproc=no
21890fi
21891rm -f conftest.err conftest.$ac_ext
21892echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21893echo "${ECHO_T}$ac_header_preproc" >&6
21894
21895# So? What about this header?
ac1cb8d3
VS
21896case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21897 yes:no: )
bdcade0a
MB
21898 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21899echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21900 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21901echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21902 ac_header_preproc=yes
bdcade0a 21903 ;;
ac1cb8d3 21904 no:yes:* )
bdcade0a
MB
21905 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21906echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21907 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21908echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21910echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21912echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21913 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21914echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21915 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21916echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21917 (
21918 cat <<\_ASBOX
ac1cb8d3
VS
21919## ----------------------------------------- ##
21920## Report this to wx-dev@lists.wxwidgets.org ##
21921## ----------------------------------------- ##
bdcade0a
MB
21922_ASBOX
21923 ) |
21924 sed "s/^/$as_me: WARNING: /" >&2
21925 ;;
21926esac
21927echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21928echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21929if test "${ac_cv_header_ext_hash_map+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21931else
21932 ac_cv_header_ext_hash_map=$ac_header_preproc
21933fi
21934echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21935echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21936
21937fi
21938if test $ac_cv_header_ext_hash_map = yes; then
21939 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21940echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21941 cat >conftest.$ac_ext <<_ACEOF
21942/* confdefs.h. */
21943_ACEOF
21944cat confdefs.h >>conftest.$ac_ext
21945cat >>conftest.$ac_ext <<_ACEOF
21946/* end confdefs.h. */
21947#include <ext/hash_map>
21948 #include <ext/hash_set>
21949int
21950main ()
21951{
21952__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21953 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21954 ;
21955 return 0;
21956}
21957_ACEOF
21958rm -f conftest.$ac_objext
21959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21960 (eval $ac_compile) 2>conftest.er1
bdcade0a 21961 ac_status=$?
ac1cb8d3
VS
21962 grep -v '^ *+' conftest.er1 >conftest.err
21963 rm -f conftest.er1
21964 cat conftest.err >&5
bdcade0a
MB
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); } &&
6ebeb4c7 21967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969 (eval $ac_try) 2>&5
21970 ac_status=$?
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; } &&
21973 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21976 ac_status=$?
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; }; then
21979 echo "$as_me:$LINENO: result: yes" >&5
21980echo "${ECHO_T}yes" >&6
21981 cat >>confdefs.h <<\_ACEOF
21982#define HAVE_EXT_HASH_MAP 1
21983_ACEOF
21984
21985 cat >>confdefs.h <<\_ACEOF
21986#define HAVE_GNU_CXX_HASH_MAP 1
21987_ACEOF
21988
21989else
21990 echo "$as_me: failed program was:" >&5
21991sed 's/^/| /' conftest.$ac_ext >&5
21992
21993echo "$as_me:$LINENO: result: no" >&5
21994echo "${ECHO_T}no" >&6
21995fi
ac1cb8d3 21996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21997
21998fi
21999
22000
a848cd7e
SC
22001
22002 ac_ext=c
22003ac_cpp='$CPP $CPPFLAGS'
22004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22006ac_compiler_gnu=$ac_cv_c_compiler_gnu
22007
22008fi
22009
22010
22011SEARCH_INCLUDE="\
22012 /usr/local/include \
22013 \
22014 /usr/Motif-2.1/include \
22015 /usr/Motif-1.2/include \
22016 /usr/include/Motif1.2 \
22017 /opt/xpm/include/X11 \
22018 /opt/GBxpm/include/ \
22019 /opt/GBxpm/X11/include/ \
22020 \
22021 /usr/dt/include \
22022 /usr/openwin/include \
22023 \
22024 /usr/include/Xm \
22025 \
22026 /usr/X11R6/include \
22027 /usr/X11R6.4/include \
22028 /usr/X11R5/include \
22029 /usr/X11R4/include \
22030 \
22031 /usr/include/X11R6 \
22032 /usr/include/X11R5 \
22033 /usr/include/X11R4 \
22034 \
22035 /usr/local/X11R6/include \
22036 /usr/local/X11R5/include \
22037 /usr/local/X11R4/include \
22038 \
22039 /usr/local/include/X11R6 \
22040 /usr/local/include/X11R5 \
22041 /usr/local/include/X11R4 \
22042 \
22043 /usr/X11/include \
22044 /usr/include/X11 \
22045 /usr/local/X11/include \
22046 /usr/local/include/X11 \
22047 \
22048 /usr/X386/include \
22049 /usr/x386/include \
22050 /usr/XFree86/include/X11 \
22051 \
e051b34e
MW
22052 /usr/pkg/include \
22053 \
a848cd7e
SC
22054 X:/XFree86/include \
22055 X:/XFree86/include/X11 \
22056 \
22057 /usr/include/gtk \
22058 /usr/local/include/gtk \
22059 /usr/include/glib \
22060 /usr/local/include/glib \
22061 \
22062 /usr/include/qt \
22063 /usr/local/include/qt \
22064 \
22065 /usr/local/arm/3.3.2/include \
22066 \
22067 /usr/include/windows \
22068 /usr/include/wine \
22069 /usr/local/include/wine \
22070 \
22071 /usr/unsupported/include \
22072 /usr/athena/include \
22073 /usr/local/x11r5/include \
22074 /usr/lpp/Xamples/include \
22075 \
22076 /usr/openwin/share/include"
22077
07158944 22078SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e 22079
3eca31dc
MW
22080if test "$build" != "$host" -a "$GCC" = yes; then
22081 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
22082 cross_root=`dirname $cross_root`
22083 cross_root=`dirname $cross_root`
22084
22085 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22086 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22087
22088 if test -z "$PKG_CONFIG_PATH"; then
22089 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
22090 export PKG_CONFIG_PATH
22091 fi
22092
22093 if test -z "$x_includes" -o "$x_includes" = NONE; then
22094
22095ac_find_includes=
22096for ac_dir in $SEARCH_INCLUDE /usr/include;
22097 do
22098 if test -f "$ac_dir/X11/Intrinsic.h"; then
22099 ac_find_includes=$ac_dir
22100 break
22101 fi
22102 done
22103
22104 x_includes=$ac_find_includes
22105 fi
22106 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
22107
22108ac_find_libraries=
22109for ac_dir in $SEARCH_LIB /usr/lib;
22110 do
22111 for ac_extension in a so sl dylib dll.a; do
22112 if test -f "$ac_dir/libXt.$ac_extension"; then
22113 ac_find_libraries=$ac_dir
22114 break 2
22115 fi
22116 done
22117 done
22118
22119 x_libraries=$ac_find_libraries
22120 fi
22121 fi
22122fi
22123
a848cd7e
SC
22124
22125cat >confcache <<\_ACEOF
22126# This file is a shell script that caches the results of configure
22127# tests run on this system so they can be shared between configure
22128# scripts and configure runs, see configure's option --config-cache.
22129# It is not useful on other systems. If it contains results you don't
22130# want to keep, you may remove or edit it.
22131#
22132# config.status only pays attention to the cache file if you give it
22133# the --recheck option to rerun configure.
22134#
22135# `ac_cv_env_foo' variables (set or unset) will be overridden when
22136# loading this file, other *unset* `ac_cv_foo' will be assigned the
22137# following values.
22138
22139_ACEOF
22140
22141# The following way of writing the cache mishandles newlines in values,
22142# but we know of no workaround that is simple, portable, and efficient.
22143# So, don't put newlines in cache variables' values.
22144# Ultrix sh set writes to stderr and can't be redirected directly,
22145# and sets the high bit in the cache file unless we assign to the vars.
22146{
22147 (set) 2>&1 |
22148 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22149 *ac_space=\ *)
22150 # `set' does not quote correctly, so add quotes (double-quote
22151 # substitution turns \\\\ into \\, and sed turns \\ into \).
22152 sed -n \
ac1cb8d3
VS
22153 "s/'/'\\\\''/g;
22154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22155 ;;
22156 *)
22157 # `set' quotes correctly as required by POSIX, so do not add quotes.
22158 sed -n \
ac1cb8d3 22159 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22160 ;;
22161 esac;
22162} |
22163 sed '
22164 t clear
22165 : clear
22166 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22167 t end
22168 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22169 : end' >>confcache
22170if diff $cache_file confcache >/dev/null 2>&1; then :; else
22171 if test -w $cache_file; then
22172 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22173 cat confcache >$cache_file
22174 else
22175 echo "not updating unwritable cache $cache_file"
22176 fi
22177fi
22178rm -f confcache
22179
22180if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22181 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22182echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22183if test "${wx_cv_lib_glibc21+set}" = set; then
22184 echo $ECHO_N "(cached) $ECHO_C" >&6
22185else
22186
22187 cat >conftest.$ac_ext <<_ACEOF
22188/* confdefs.h. */
22189_ACEOF
22190cat confdefs.h >>conftest.$ac_ext
22191cat >>conftest.$ac_ext <<_ACEOF
22192/* end confdefs.h. */
22193#include <features.h>
22194int
22195main ()
22196{
22197
22198 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 22199 not glibc 2.1
a848cd7e
SC
22200 #endif
22201
22202 ;
22203 return 0;
22204}
22205_ACEOF
22206rm -f conftest.$ac_objext
22207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22208 (eval $ac_compile) 2>conftest.er1
a848cd7e 22209 ac_status=$?
ac1cb8d3
VS
22210 grep -v '^ *+' conftest.er1 >conftest.err
22211 rm -f conftest.er1
22212 cat conftest.err >&5
a848cd7e
SC
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); } &&
6ebeb4c7 22215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22217 (eval $ac_try) 2>&5
22218 ac_status=$?
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); }; } &&
22221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22223 (eval $ac_try) 2>&5
22224 ac_status=$?
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); }; }; then
22227
22228 wx_cv_lib_glibc21=yes
22229
22230else
22231 echo "$as_me: failed program was:" >&5
22232sed 's/^/| /' conftest.$ac_ext >&5
22233
22234
22235 wx_cv_lib_glibc21=no
22236
22237
22238fi
ac1cb8d3 22239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22240
22241fi
22242echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22243echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22244 if test "$wx_cv_lib_glibc21" = "yes"; then
22245 cat >>confdefs.h <<\_ACEOF
22246#define wxHAVE_GLIBC2 1
22247_ACEOF
22248
22249 fi
22250fi
22251
22252if test "x$wx_cv_lib_glibc21" = "xyes"; then
22253 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22254 cat >>confdefs.h <<\_ACEOF
22255#define _GNU_SOURCE 1
22256_ACEOF
22257
22258 fi
22259fi
22260
22261
22262
22263if test "$wxUSE_REGEX" != "no"; then
22264 cat >>confdefs.h <<\_ACEOF
22265#define wxUSE_REGEX 1
22266_ACEOF
22267
22268
22269 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22270 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22271echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22272 wxUSE_REGEX=builtin
22273 fi
22274
22275 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22276 if test "${ac_cv_header_regex_h+set}" = set; then
22277 echo "$as_me:$LINENO: checking for regex.h" >&5
22278echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22279if test "${ac_cv_header_regex_h+set}" = set; then
22280 echo $ECHO_N "(cached) $ECHO_C" >&6
22281fi
22282echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22283echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22284else
22285 # Is the header compilable?
22286echo "$as_me:$LINENO: checking regex.h usability" >&5
22287echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22288cat >conftest.$ac_ext <<_ACEOF
22289/* confdefs.h. */
22290_ACEOF
22291cat confdefs.h >>conftest.$ac_ext
22292cat >>conftest.$ac_ext <<_ACEOF
22293/* end confdefs.h. */
22294$ac_includes_default
22295#include <regex.h>
22296_ACEOF
22297rm -f conftest.$ac_objext
22298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22299 (eval $ac_compile) 2>conftest.er1
a848cd7e 22300 ac_status=$?
ac1cb8d3
VS
22301 grep -v '^ *+' conftest.er1 >conftest.err
22302 rm -f conftest.er1
22303 cat conftest.err >&5
a848cd7e
SC
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); } &&
6ebeb4c7 22306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308 (eval $ac_try) 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; } &&
22312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; }; then
22318 ac_header_compiler=yes
22319else
22320 echo "$as_me: failed program was:" >&5
22321sed 's/^/| /' conftest.$ac_ext >&5
22322
22323ac_header_compiler=no
22324fi
ac1cb8d3 22325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22326echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22327echo "${ECHO_T}$ac_header_compiler" >&6
22328
22329# Is the header present?
22330echo "$as_me:$LINENO: checking regex.h presence" >&5
22331echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22332cat >conftest.$ac_ext <<_ACEOF
22333/* confdefs.h. */
22334_ACEOF
22335cat confdefs.h >>conftest.$ac_ext
22336cat >>conftest.$ac_ext <<_ACEOF
22337/* end confdefs.h. */
22338#include <regex.h>
22339_ACEOF
22340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22342 ac_status=$?
22343 grep -v '^ *+' conftest.er1 >conftest.err
22344 rm -f conftest.er1
22345 cat conftest.err >&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); } >/dev/null; then
22348 if test -s conftest.err; then
22349 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22351 else
22352 ac_cpp_err=
22353 fi
22354else
22355 ac_cpp_err=yes
22356fi
22357if test -z "$ac_cpp_err"; then
22358 ac_header_preproc=yes
22359else
22360 echo "$as_me: failed program was:" >&5
22361sed 's/^/| /' conftest.$ac_ext >&5
22362
22363 ac_header_preproc=no
22364fi
22365rm -f conftest.err conftest.$ac_ext
22366echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22367echo "${ECHO_T}$ac_header_preproc" >&6
22368
22369# So? What about this header?
ac1cb8d3
VS
22370case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22371 yes:no: )
a848cd7e
SC
22372 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22373echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22374 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22375echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22376 ac_header_preproc=yes
a848cd7e 22377 ;;
ac1cb8d3 22378 no:yes:* )
a848cd7e
SC
22379 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22380echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22381 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22382echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22383 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22384echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22385 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22386echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22387 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22388echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22389 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22390echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22391 (
22392 cat <<\_ASBOX
ac1cb8d3
VS
22393## ----------------------------------------- ##
22394## Report this to wx-dev@lists.wxwidgets.org ##
22395## ----------------------------------------- ##
a848cd7e
SC
22396_ASBOX
22397 ) |
22398 sed "s/^/$as_me: WARNING: /" >&2
22399 ;;
22400esac
22401echo "$as_me:$LINENO: checking for regex.h" >&5
22402echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22403if test "${ac_cv_header_regex_h+set}" = set; then
22404 echo $ECHO_N "(cached) $ECHO_C" >&6
22405else
22406 ac_cv_header_regex_h=$ac_header_preproc
22407fi
22408echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22409echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22410
22411fi
22412if test $ac_cv_header_regex_h = yes; then
22413
22414for ac_func in regcomp
22415do
22416as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22417echo "$as_me:$LINENO: checking for $ac_func" >&5
22418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22419if eval "test \"\${$as_ac_var+set}\" = set"; then
22420 echo $ECHO_N "(cached) $ECHO_C" >&6
22421else
22422 cat >conftest.$ac_ext <<_ACEOF
22423/* confdefs.h. */
22424_ACEOF
22425cat confdefs.h >>conftest.$ac_ext
22426cat >>conftest.$ac_ext <<_ACEOF
22427/* end confdefs.h. */
ac1cb8d3
VS
22428/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22430#define $ac_func innocuous_$ac_func
22431
a848cd7e
SC
22432/* System header to define __stub macros and hopefully few prototypes,
22433 which can conflict with char $ac_func (); below.
22434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22435 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22436
a848cd7e
SC
22437#ifdef __STDC__
22438# include <limits.h>
22439#else
22440# include <assert.h>
22441#endif
ac1cb8d3
VS
22442
22443#undef $ac_func
22444
a848cd7e
SC
22445/* Override any gcc2 internal prototype to avoid an error. */
22446#ifdef __cplusplus
22447extern "C"
22448{
22449#endif
22450/* We use char because int might match the return type of a gcc2
22451 builtin and then its argument prototype would still apply. */
22452char $ac_func ();
22453/* The GNU C library defines this for functions which it implements
22454 to always fail with ENOSYS. Some functions are actually named
22455 something starting with __ and the normal name is an alias. */
22456#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22457choke me
22458#else
22459char (*f) () = $ac_func;
22460#endif
22461#ifdef __cplusplus
22462}
22463#endif
22464
22465int
22466main ()
22467{
22468return f != $ac_func;
22469 ;
22470 return 0;
22471}
22472_ACEOF
22473rm -f conftest.$ac_objext conftest$ac_exeext
22474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22475 (eval $ac_link) 2>conftest.er1
a848cd7e 22476 ac_status=$?
ac1cb8d3
VS
22477 grep -v '^ *+' conftest.er1 >conftest.err
22478 rm -f conftest.er1
22479 cat conftest.err >&5
a848cd7e
SC
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); } &&
6ebeb4c7 22482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22484 (eval $ac_try) 2>&5
22485 ac_status=$?
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); }; } &&
22488 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22490 (eval $ac_try) 2>&5
22491 ac_status=$?
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); }; }; then
22494 eval "$as_ac_var=yes"
22495else
22496 echo "$as_me: failed program was:" >&5
22497sed 's/^/| /' conftest.$ac_ext >&5
22498
22499eval "$as_ac_var=no"
22500fi
ac1cb8d3
VS
22501rm -f conftest.err conftest.$ac_objext \
22502 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22503fi
22504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22505echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22506if test `eval echo '${'$as_ac_var'}'` = yes; then
22507 cat >>confdefs.h <<_ACEOF
22508#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22509_ACEOF
22510
22511fi
22512done
22513
22514fi
22515
22516
22517
22518 if test "x$ac_cv_func_regcomp" != "xyes"; then
22519 if test "$wxUSE_REGEX" = "sys" ; then
22520 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22521echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22522 { (exit 1); exit 1; }; }
22523 else
22524 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22525echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22526 wxUSE_REGEX=builtin
22527 fi
22528 else
22529 wxUSE_REGEX=sys
22530 cat >>confdefs.h <<\_ACEOF
22531#define WX_NO_REGEX_ADVANCED 1
22532_ACEOF
22533
22534 fi
22535 fi
22536fi
22537
22538
22539ZLIB_LINK=
22540if test "$wxUSE_ZLIB" != "no" ; then
22541 cat >>confdefs.h <<\_ACEOF
22542#define wxUSE_ZLIB 1
22543_ACEOF
22544
22545
22546 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22547 if test "$USE_DARWIN" = 1; then
22548 system_zlib_h_ok="yes"
22549 else
22550 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22551echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22552if test "${ac_cv_header_zlib_h+set}" = set; then
22553 echo $ECHO_N "(cached) $ECHO_C" >&6
22554else
22555 if test "$cross_compiling" = yes; then
22556 unset ac_cv_header_zlib_h
22557
22558else
22559 cat >conftest.$ac_ext <<_ACEOF
22560/* confdefs.h. */
22561_ACEOF
22562cat confdefs.h >>conftest.$ac_ext
22563cat >>conftest.$ac_ext <<_ACEOF
22564/* end confdefs.h. */
22565
22566 #include <zlib.h>
22567 #include <stdio.h>
22568
22569 int main()
22570 {
22571 FILE *f=fopen("conftestval", "w");
22572 if (!f) exit(1);
22573 fprintf(f, "%s",
22574 ZLIB_VERSION[0] == '1' &&
22575 (ZLIB_VERSION[2] > '1' ||
22576 (ZLIB_VERSION[2] == '1' &&
22577 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22578 exit(0);
22579 }
22580
22581_ACEOF
22582rm -f conftest$ac_exeext
22583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22584 (eval $ac_link) 2>&5
22585 ac_status=$?
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22589 (eval $ac_try) 2>&5
22590 ac_status=$?
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); }; }; then
22593 ac_cv_header_zlib_h=`cat conftestval`
22594else
22595 echo "$as_me: program exited with status $ac_status" >&5
22596echo "$as_me: failed program was:" >&5
22597sed 's/^/| /' conftest.$ac_ext >&5
22598
22599( exit $ac_status )
22600ac_cv_header_zlib_h=no
22601fi
ac1cb8d3 22602rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22603fi
22604
22605fi
22606echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22607echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22608 if test "${ac_cv_header_zlib_h+set}" = set; then
22609 echo "$as_me:$LINENO: checking for zlib.h" >&5
22610echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22611if test "${ac_cv_header_zlib_h+set}" = set; then
22612 echo $ECHO_N "(cached) $ECHO_C" >&6
22613fi
22614echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22615echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22616else
22617 # Is the header compilable?
22618echo "$as_me:$LINENO: checking zlib.h usability" >&5
22619echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22620cat >conftest.$ac_ext <<_ACEOF
22621/* confdefs.h. */
22622_ACEOF
22623cat confdefs.h >>conftest.$ac_ext
22624cat >>conftest.$ac_ext <<_ACEOF
22625/* end confdefs.h. */
22626$ac_includes_default
22627#include <zlib.h>
22628_ACEOF
22629rm -f conftest.$ac_objext
22630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22631 (eval $ac_compile) 2>conftest.er1
a848cd7e 22632 ac_status=$?
ac1cb8d3
VS
22633 grep -v '^ *+' conftest.er1 >conftest.err
22634 rm -f conftest.er1
22635 cat conftest.err >&5
a848cd7e
SC
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } &&
6ebeb4c7 22638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640 (eval $ac_try) 2>&5
22641 ac_status=$?
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); }; } &&
22644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22646 (eval $ac_try) 2>&5
22647 ac_status=$?
22648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649 (exit $ac_status); }; }; then
22650 ac_header_compiler=yes
22651else
22652 echo "$as_me: failed program was:" >&5
22653sed 's/^/| /' conftest.$ac_ext >&5
22654
22655ac_header_compiler=no
22656fi
ac1cb8d3 22657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22658echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22659echo "${ECHO_T}$ac_header_compiler" >&6
22660
22661# Is the header present?
22662echo "$as_me:$LINENO: checking zlib.h presence" >&5
22663echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22664cat >conftest.$ac_ext <<_ACEOF
22665/* confdefs.h. */
22666_ACEOF
22667cat confdefs.h >>conftest.$ac_ext
22668cat >>conftest.$ac_ext <<_ACEOF
22669/* end confdefs.h. */
22670#include <zlib.h>
22671_ACEOF
22672if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22674 ac_status=$?
22675 grep -v '^ *+' conftest.er1 >conftest.err
22676 rm -f conftest.er1
22677 cat conftest.err >&5
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); } >/dev/null; then
22680 if test -s conftest.err; then
22681 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22683 else
22684 ac_cpp_err=
22685 fi
22686else
22687 ac_cpp_err=yes
22688fi
22689if test -z "$ac_cpp_err"; then
22690 ac_header_preproc=yes
22691else
22692 echo "$as_me: failed program was:" >&5
22693sed 's/^/| /' conftest.$ac_ext >&5
22694
22695 ac_header_preproc=no
22696fi
22697rm -f conftest.err conftest.$ac_ext
22698echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22699echo "${ECHO_T}$ac_header_preproc" >&6
22700
22701# So? What about this header?
ac1cb8d3
VS
22702case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22703 yes:no: )
a848cd7e
SC
22704 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22705echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22706 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22707echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22708 ac_header_preproc=yes
a848cd7e 22709 ;;
ac1cb8d3 22710 no:yes:* )
a848cd7e
SC
22711 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22712echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22713 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22714echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22715 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22716echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22717 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22718echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22719 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22720echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22721 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22722echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22723 (
22724 cat <<\_ASBOX
ac1cb8d3
VS
22725## ----------------------------------------- ##
22726## Report this to wx-dev@lists.wxwidgets.org ##
22727## ----------------------------------------- ##
a848cd7e
SC
22728_ASBOX
22729 ) |
22730 sed "s/^/$as_me: WARNING: /" >&2
22731 ;;
22732esac
22733echo "$as_me:$LINENO: checking for zlib.h" >&5
22734echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22735if test "${ac_cv_header_zlib_h+set}" = set; then
22736 echo $ECHO_N "(cached) $ECHO_C" >&6
22737else
22738 ac_cv_header_zlib_h=$ac_header_preproc
22739fi
22740echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22741echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22742
22743fi
22744
22745
22746
22747 system_zlib_h_ok=$ac_cv_header_zlib_h
22748 fi
22749
22750 if test "$system_zlib_h_ok" = "yes"; then
22751 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22752echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22753if test "${ac_cv_lib_z_deflate+set}" = set; then
22754 echo $ECHO_N "(cached) $ECHO_C" >&6
22755else
22756 ac_check_lib_save_LIBS=$LIBS
22757LIBS="-lz $LIBS"
22758cat >conftest.$ac_ext <<_ACEOF
22759/* confdefs.h. */
22760_ACEOF
22761cat confdefs.h >>conftest.$ac_ext
22762cat >>conftest.$ac_ext <<_ACEOF
22763/* end confdefs.h. */
22764
22765/* Override any gcc2 internal prototype to avoid an error. */
22766#ifdef __cplusplus
22767extern "C"
22768#endif
22769/* We use char because int might match the return type of a gcc2
22770 builtin and then its argument prototype would still apply. */
22771char deflate ();
22772int
22773main ()
22774{
22775deflate ();
22776 ;
22777 return 0;
22778}
22779_ACEOF
22780rm -f conftest.$ac_objext conftest$ac_exeext
22781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22782 (eval $ac_link) 2>conftest.er1
a848cd7e 22783 ac_status=$?
ac1cb8d3
VS
22784 grep -v '^ *+' conftest.er1 >conftest.err
22785 rm -f conftest.er1
22786 cat conftest.err >&5
a848cd7e
SC
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); } &&
6ebeb4c7 22789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22791 (eval $ac_try) 2>&5
22792 ac_status=$?
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); }; } &&
22795 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22797 (eval $ac_try) 2>&5
22798 ac_status=$?
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); }; }; then
22801 ac_cv_lib_z_deflate=yes
22802else
22803 echo "$as_me: failed program was:" >&5
22804sed 's/^/| /' conftest.$ac_ext >&5
22805
22806ac_cv_lib_z_deflate=no
22807fi
ac1cb8d3
VS
22808rm -f conftest.err conftest.$ac_objext \
22809 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22810LIBS=$ac_check_lib_save_LIBS
22811fi
22812echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22813echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22814if test $ac_cv_lib_z_deflate = yes; then
22815 ZLIB_LINK=" -lz"
22816fi
22817
22818 fi
22819
22820 if test "x$ZLIB_LINK" = "x" ; then
22821 if test "$wxUSE_ZLIB" = "sys" ; then
22822 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22823echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22824 { (exit 1); exit 1; }; }
22825 else
22826 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22827echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22828 wxUSE_ZLIB=builtin
22829 fi
22830 else
22831 wxUSE_ZLIB=sys
22832 fi
22833 fi
22834fi
22835
22836
22837PNG_LINK=
22838if test "$wxUSE_LIBPNG" != "no" ; then
22839 cat >>confdefs.h <<\_ACEOF
22840#define wxUSE_LIBPNG 1
22841_ACEOF
22842
22843
22844 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22845 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22846echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22847 wxUSE_LIBPNG=sys
22848 fi
22849
22850 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22851 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22852echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22853 wxUSE_LIBPNG=builtin
22854 fi
22855
22856 if test "$wxUSE_MGL" != 1 ; then
22857 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22858 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22859echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22860if test "${ac_cv_header_png_h+set}" = set; then
22861 echo $ECHO_N "(cached) $ECHO_C" >&6
22862else
22863 if test "$cross_compiling" = yes; then
22864 unset ac_cv_header_png_h
22865
22866else
22867 cat >conftest.$ac_ext <<_ACEOF
22868/* confdefs.h. */
22869_ACEOF
22870cat confdefs.h >>conftest.$ac_ext
22871cat >>conftest.$ac_ext <<_ACEOF
22872/* end confdefs.h. */
22873
22874 #include <png.h>
22875 #include <stdio.h>
22876
22877 int main()
22878 {
22879 FILE *f=fopen("conftestval", "w");
22880 if (!f) exit(1);
22881 fprintf(f, "%s",
22882 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22883 exit(0);
22884 }
22885
22886_ACEOF
22887rm -f conftest$ac_exeext
22888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22889 (eval $ac_link) 2>&5
22890 ac_status=$?
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894 (eval $ac_try) 2>&5
22895 ac_status=$?
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); }; }; then
22898 ac_cv_header_png_h=`cat conftestval`
22899else
22900 echo "$as_me: program exited with status $ac_status" >&5
22901echo "$as_me: failed program was:" >&5
22902sed 's/^/| /' conftest.$ac_ext >&5
22903
22904( exit $ac_status )
22905ac_cv_header_png_h=no
22906fi
ac1cb8d3 22907rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22908fi
22909
22910fi
22911echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22912echo "${ECHO_T}$ac_cv_header_png_h" >&6
22913 if test "${ac_cv_header_png_h+set}" = set; then
22914 echo "$as_me:$LINENO: checking for png.h" >&5
22915echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22916if test "${ac_cv_header_png_h+set}" = set; then
22917 echo $ECHO_N "(cached) $ECHO_C" >&6
22918fi
22919echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22920echo "${ECHO_T}$ac_cv_header_png_h" >&6
22921else
22922 # Is the header compilable?
22923echo "$as_me:$LINENO: checking png.h usability" >&5
22924echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22925cat >conftest.$ac_ext <<_ACEOF
22926/* confdefs.h. */
22927_ACEOF
22928cat confdefs.h >>conftest.$ac_ext
22929cat >>conftest.$ac_ext <<_ACEOF
22930/* end confdefs.h. */
22931$ac_includes_default
22932#include <png.h>
22933_ACEOF
22934rm -f conftest.$ac_objext
22935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22936 (eval $ac_compile) 2>conftest.er1
a848cd7e 22937 ac_status=$?
ac1cb8d3
VS
22938 grep -v '^ *+' conftest.er1 >conftest.err
22939 rm -f conftest.er1
22940 cat conftest.err >&5
a848cd7e
SC
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); } &&
6ebeb4c7 22943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945 (eval $ac_try) 2>&5
22946 ac_status=$?
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); }; } &&
22949 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22951 (eval $ac_try) 2>&5
22952 ac_status=$?
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); }; }; then
22955 ac_header_compiler=yes
22956else
22957 echo "$as_me: failed program was:" >&5
22958sed 's/^/| /' conftest.$ac_ext >&5
22959
22960ac_header_compiler=no
22961fi
ac1cb8d3 22962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22963echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22964echo "${ECHO_T}$ac_header_compiler" >&6
22965
22966# Is the header present?
22967echo "$as_me:$LINENO: checking png.h presence" >&5
22968echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22969cat >conftest.$ac_ext <<_ACEOF
22970/* confdefs.h. */
22971_ACEOF
22972cat confdefs.h >>conftest.$ac_ext
22973cat >>conftest.$ac_ext <<_ACEOF
22974/* end confdefs.h. */
22975#include <png.h>
22976_ACEOF
22977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22979 ac_status=$?
22980 grep -v '^ *+' conftest.er1 >conftest.err
22981 rm -f conftest.er1
22982 cat conftest.err >&5
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); } >/dev/null; then
22985 if test -s conftest.err; then
22986 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22988 else
22989 ac_cpp_err=
22990 fi
22991else
22992 ac_cpp_err=yes
22993fi
22994if test -z "$ac_cpp_err"; then
22995 ac_header_preproc=yes
22996else
22997 echo "$as_me: failed program was:" >&5
22998sed 's/^/| /' conftest.$ac_ext >&5
22999
23000 ac_header_preproc=no
23001fi
23002rm -f conftest.err conftest.$ac_ext
23003echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23004echo "${ECHO_T}$ac_header_preproc" >&6
23005
23006# So? What about this header?
ac1cb8d3
VS
23007case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23008 yes:no: )
a848cd7e
SC
23009 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23010echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23011 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23012echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23013 ac_header_preproc=yes
a848cd7e 23014 ;;
ac1cb8d3 23015 no:yes:* )
a848cd7e
SC
23016 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23017echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23018 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23019echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23020 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23021echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23022 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23023echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23024 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23025echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23026 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23027echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23028 (
23029 cat <<\_ASBOX
ac1cb8d3
VS
23030## ----------------------------------------- ##
23031## Report this to wx-dev@lists.wxwidgets.org ##
23032## ----------------------------------------- ##
a848cd7e
SC
23033_ASBOX
23034 ) |
23035 sed "s/^/$as_me: WARNING: /" >&2
23036 ;;
23037esac
23038echo "$as_me:$LINENO: checking for png.h" >&5
23039echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23040if test "${ac_cv_header_png_h+set}" = set; then
23041 echo $ECHO_N "(cached) $ECHO_C" >&6
23042else
23043 ac_cv_header_png_h=$ac_header_preproc
23044fi
23045echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23046echo "${ECHO_T}$ac_cv_header_png_h" >&6
23047
23048fi
23049
23050
23051
23052 if test "$ac_cv_header_png_h" = "yes"; then
23053 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23054echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23055if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23056 echo $ECHO_N "(cached) $ECHO_C" >&6
23057else
23058 ac_check_lib_save_LIBS=$LIBS
23059LIBS="-lpng -lz -lm $LIBS"
23060cat >conftest.$ac_ext <<_ACEOF
23061/* confdefs.h. */
23062_ACEOF
23063cat confdefs.h >>conftest.$ac_ext
23064cat >>conftest.$ac_ext <<_ACEOF
23065/* end confdefs.h. */
23066
23067/* Override any gcc2 internal prototype to avoid an error. */
23068#ifdef __cplusplus
23069extern "C"
23070#endif
23071/* We use char because int might match the return type of a gcc2
23072 builtin and then its argument prototype would still apply. */
23073char png_check_sig ();
23074int
23075main ()
23076{
23077png_check_sig ();
23078 ;
23079 return 0;
23080}
23081_ACEOF
23082rm -f conftest.$ac_objext conftest$ac_exeext
23083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23084 (eval $ac_link) 2>conftest.er1
a848cd7e 23085 ac_status=$?
ac1cb8d3
VS
23086 grep -v '^ *+' conftest.er1 >conftest.err
23087 rm -f conftest.er1
23088 cat conftest.err >&5
a848cd7e
SC
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); } &&
6ebeb4c7 23091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23093 (eval $ac_try) 2>&5
23094 ac_status=$?
23095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); }; } &&
23097 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23099 (eval $ac_try) 2>&5
23100 ac_status=$?
23101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102 (exit $ac_status); }; }; then
23103 ac_cv_lib_png_png_check_sig=yes
23104else
23105 echo "$as_me: failed program was:" >&5
23106sed 's/^/| /' conftest.$ac_ext >&5
23107
23108ac_cv_lib_png_png_check_sig=no
23109fi
ac1cb8d3
VS
23110rm -f conftest.err conftest.$ac_objext \
23111 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23112LIBS=$ac_check_lib_save_LIBS
23113fi
23114echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23115echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23116if test $ac_cv_lib_png_png_check_sig = yes; then
23117 PNG_LINK=" -lpng -lz"
23118fi
23119
23120 fi
23121
23122 if test "x$PNG_LINK" = "x" ; then
23123 if test "$wxUSE_LIBPNG" = "sys" ; then
23124 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23125echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23126 { (exit 1); exit 1; }; }
23127 else
23128 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23129echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23130 wxUSE_LIBPNG=builtin
23131 fi
23132 else
23133 wxUSE_LIBPNG=sys
23134 fi
23135 fi
23136 fi
23137
23138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23139fi
23140
23141
23142JPEG_LINK=
23143if test "$wxUSE_LIBJPEG" != "no" ; then
23144 cat >>confdefs.h <<\_ACEOF
23145#define wxUSE_LIBJPEG 1
23146_ACEOF
23147
23148
23149 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23150 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23151echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23152 wxUSE_LIBJPEG=sys
23153 fi
23154
23155 if test "$wxUSE_MGL" != 1 ; then
23156 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23157 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23158echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23159 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23160 echo $ECHO_N "(cached) $ECHO_C" >&6
23161else
23162 cat >conftest.$ac_ext <<_ACEOF
23163/* confdefs.h. */
23164_ACEOF
23165cat confdefs.h >>conftest.$ac_ext
23166cat >>conftest.$ac_ext <<_ACEOF
23167/* end confdefs.h. */
23168
23169 #undef HAVE_STDLIB_H
23170 #include <stdio.h>
23171 #include <jpeglib.h>
23172
23173int
23174main ()
23175{
23176
23177
23178 ;
23179 return 0;
23180}
23181_ACEOF
23182rm -f conftest.$ac_objext
23183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23184 (eval $ac_compile) 2>conftest.er1
a848cd7e 23185 ac_status=$?
ac1cb8d3
VS
23186 grep -v '^ *+' conftest.er1 >conftest.err
23187 rm -f conftest.er1
23188 cat conftest.err >&5
a848cd7e
SC
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); } &&
6ebeb4c7 23191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23193 (eval $ac_try) 2>&5
23194 ac_status=$?
23195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); }; } &&
23197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23199 (eval $ac_try) 2>&5
23200 ac_status=$?
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); }; }; then
23203 ac_cv_header_jpeglib_h=yes
23204else
23205 echo "$as_me: failed program was:" >&5
23206sed 's/^/| /' conftest.$ac_ext >&5
23207
23208ac_cv_header_jpeglib_h=no
23209
23210fi
ac1cb8d3 23211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23212
23213fi
23214
23215 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23216echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23217
23218 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23219 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23220echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23221if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23222 echo $ECHO_N "(cached) $ECHO_C" >&6
23223else
23224 ac_check_lib_save_LIBS=$LIBS
23225LIBS="-ljpeg $LIBS"
23226cat >conftest.$ac_ext <<_ACEOF
23227/* confdefs.h. */
23228_ACEOF
23229cat confdefs.h >>conftest.$ac_ext
23230cat >>conftest.$ac_ext <<_ACEOF
23231/* end confdefs.h. */
23232
23233/* Override any gcc2 internal prototype to avoid an error. */
23234#ifdef __cplusplus
23235extern "C"
23236#endif
23237/* We use char because int might match the return type of a gcc2
23238 builtin and then its argument prototype would still apply. */
23239char jpeg_read_header ();
23240int
23241main ()
23242{
23243jpeg_read_header ();
23244 ;
23245 return 0;
23246}
23247_ACEOF
23248rm -f conftest.$ac_objext conftest$ac_exeext
23249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23250 (eval $ac_link) 2>conftest.er1
a848cd7e 23251 ac_status=$?
ac1cb8d3
VS
23252 grep -v '^ *+' conftest.er1 >conftest.err
23253 rm -f conftest.er1
23254 cat conftest.err >&5
a848cd7e
SC
23255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 (exit $ac_status); } &&
6ebeb4c7 23257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23259 (eval $ac_try) 2>&5
23260 ac_status=$?
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); }; } &&
23263 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23265 (eval $ac_try) 2>&5
23266 ac_status=$?
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); }; }; then
23269 ac_cv_lib_jpeg_jpeg_read_header=yes
23270else
23271 echo "$as_me: failed program was:" >&5
23272sed 's/^/| /' conftest.$ac_ext >&5
23273
23274ac_cv_lib_jpeg_jpeg_read_header=no
23275fi
ac1cb8d3
VS
23276rm -f conftest.err conftest.$ac_objext \
23277 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23278LIBS=$ac_check_lib_save_LIBS
23279fi
23280echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23281echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23282if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23283 JPEG_LINK=" -ljpeg"
23284fi
23285
23286 fi
23287
23288 if test "x$JPEG_LINK" = "x" ; then
23289 if test "$wxUSE_LIBJPEG" = "sys" ; then
23290 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23291echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23292 { (exit 1); exit 1; }; }
23293 else
23294 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23295echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23296 wxUSE_LIBJPEG=builtin
23297 fi
23298 else
23299 wxUSE_LIBJPEG=sys
23300 fi
23301 fi
23302 fi
23303fi
23304
23305
23306TIFF_LINK=
23307TIFF_PREREQ_LINKS=-lm
23308if test "$wxUSE_LIBTIFF" != "no" ; then
23309 cat >>confdefs.h <<\_ACEOF
23310#define wxUSE_LIBTIFF 1
23311_ACEOF
23312
23313
23314 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23315 if test "$wxUSE_LIBJPEG" = "sys"; then
23316 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23317 fi
23318 if test "$wxUSE_ZLIB" = "sys"; then
23319 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23320 fi
23321 if test "${ac_cv_header_tiffio_h+set}" = set; then
23322 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23323echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23324if test "${ac_cv_header_tiffio_h+set}" = set; then
23325 echo $ECHO_N "(cached) $ECHO_C" >&6
23326fi
23327echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23328echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23329else
23330 # Is the header compilable?
23331echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23332echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23333cat >conftest.$ac_ext <<_ACEOF
23334/* confdefs.h. */
23335_ACEOF
23336cat confdefs.h >>conftest.$ac_ext
23337cat >>conftest.$ac_ext <<_ACEOF
23338/* end confdefs.h. */
23339$ac_includes_default
23340#include <tiffio.h>
23341_ACEOF
23342rm -f conftest.$ac_objext
23343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23344 (eval $ac_compile) 2>conftest.er1
a848cd7e 23345 ac_status=$?
ac1cb8d3
VS
23346 grep -v '^ *+' conftest.er1 >conftest.err
23347 rm -f conftest.er1
23348 cat conftest.err >&5
a848cd7e
SC
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } &&
6ebeb4c7 23351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23354 ac_status=$?
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; } &&
23357 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359 (eval $ac_try) 2>&5
23360 ac_status=$?
23361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362 (exit $ac_status); }; }; then
23363 ac_header_compiler=yes
23364else
23365 echo "$as_me: failed program was:" >&5
23366sed 's/^/| /' conftest.$ac_ext >&5
23367
23368ac_header_compiler=no
23369fi
ac1cb8d3 23370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23371echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23372echo "${ECHO_T}$ac_header_compiler" >&6
23373
23374# Is the header present?
23375echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23376echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23377cat >conftest.$ac_ext <<_ACEOF
23378/* confdefs.h. */
23379_ACEOF
23380cat confdefs.h >>conftest.$ac_ext
23381cat >>conftest.$ac_ext <<_ACEOF
23382/* end confdefs.h. */
23383#include <tiffio.h>
23384_ACEOF
23385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23387 ac_status=$?
23388 grep -v '^ *+' conftest.er1 >conftest.err
23389 rm -f conftest.er1
23390 cat conftest.err >&5
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); } >/dev/null; then
23393 if test -s conftest.err; then
23394 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23396 else
23397 ac_cpp_err=
23398 fi
23399else
23400 ac_cpp_err=yes
23401fi
23402if test -z "$ac_cpp_err"; then
23403 ac_header_preproc=yes
23404else
23405 echo "$as_me: failed program was:" >&5
23406sed 's/^/| /' conftest.$ac_ext >&5
23407
23408 ac_header_preproc=no
23409fi
23410rm -f conftest.err conftest.$ac_ext
23411echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23412echo "${ECHO_T}$ac_header_preproc" >&6
23413
23414# So? What about this header?
ac1cb8d3
VS
23415case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23416 yes:no: )
a848cd7e
SC
23417 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23418echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23419 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23420echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23421 ac_header_preproc=yes
a848cd7e 23422 ;;
ac1cb8d3 23423 no:yes:* )
a848cd7e
SC
23424 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23425echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23426 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23427echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23428 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23429echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23430 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23431echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23432 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23433echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23434 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23435echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23436 (
23437 cat <<\_ASBOX
ac1cb8d3
VS
23438## ----------------------------------------- ##
23439## Report this to wx-dev@lists.wxwidgets.org ##
23440## ----------------------------------------- ##
a848cd7e
SC
23441_ASBOX
23442 ) |
23443 sed "s/^/$as_me: WARNING: /" >&2
23444 ;;
23445esac
23446echo "$as_me:$LINENO: checking for tiffio.h" >&5
23447echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23448if test "${ac_cv_header_tiffio_h+set}" = set; then
23449 echo $ECHO_N "(cached) $ECHO_C" >&6
23450else
23451 ac_cv_header_tiffio_h=$ac_header_preproc
23452fi
23453echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23454echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23455
23456fi
23457if test $ac_cv_header_tiffio_h = yes; then
23458
23459 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23460echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23461if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23462 echo $ECHO_N "(cached) $ECHO_C" >&6
23463else
23464 ac_check_lib_save_LIBS=$LIBS
23465LIBS="-ltiff $TIFF_PREREQ_LINKS $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 TIFFError ();
23480int
23481main ()
23482{
23483TIFFError ();
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_tiff_TIFFError=yes
23510else
23511 echo "$as_me: failed program was:" >&5
23512sed 's/^/| /' conftest.$ac_ext >&5
23513
23514ac_cv_lib_tiff_TIFFError=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_tiff_TIFFError" >&5
23521echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23522if test $ac_cv_lib_tiff_TIFFError = yes; then
23523 TIFF_LINK=" -ltiff"
23524fi
23525
23526
23527
23528fi
23529
23530
23531
23532 if test "x$TIFF_LINK" = "x" ; then
23533 if test "$wxUSE_LIBTIFF" = "sys" ; then
23534 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23535echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23536 { (exit 1); exit 1; }; }
23537 else
23538 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23539echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23540 wxUSE_LIBTIFF=builtin
23541 fi
23542 else
23543 wxUSE_LIBTIFF=sys
23544 fi
23545 fi
23546fi
23547
23548
47a7e797
MW
23549if test "$wxUSE_WCHAR_T" != "yes"; then
23550 if test "$wxUSE_EXPAT" != "no"; then
23551 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23552echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23553 wxUSE_EXPAT=no
23554 fi
23555 if test "$wxUSE_XML" != "no"; then
23556 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23557echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23558 wxUSE_XML=no
23559 fi
23560fi
23561
a848cd7e
SC
23562if test "$wxUSE_EXPAT" != "no"; then
23563 wxUSE_XML=yes
23564 cat >>confdefs.h <<\_ACEOF
23565#define wxUSE_EXPAT 1
23566_ACEOF
23567
23568 cat >>confdefs.h <<\_ACEOF
23569#define wxUSE_XML 1
23570_ACEOF
23571
23572
23573 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23574 if test "${ac_cv_header_expat_h+set}" = set; then
23575 echo "$as_me:$LINENO: checking for expat.h" >&5
23576echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23577if test "${ac_cv_header_expat_h+set}" = set; then
23578 echo $ECHO_N "(cached) $ECHO_C" >&6
23579fi
23580echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23581echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23582else
23583 # Is the header compilable?
23584echo "$as_me:$LINENO: checking expat.h usability" >&5
23585echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23586cat >conftest.$ac_ext <<_ACEOF
23587/* confdefs.h. */
23588_ACEOF
23589cat confdefs.h >>conftest.$ac_ext
23590cat >>conftest.$ac_ext <<_ACEOF
23591/* end confdefs.h. */
23592$ac_includes_default
23593#include <expat.h>
23594_ACEOF
23595rm -f conftest.$ac_objext
23596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23597 (eval $ac_compile) 2>conftest.er1
a848cd7e 23598 ac_status=$?
ac1cb8d3
VS
23599 grep -v '^ *+' conftest.er1 >conftest.err
23600 rm -f conftest.er1
23601 cat conftest.err >&5
a848cd7e
SC
23602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603 (exit $ac_status); } &&
6ebeb4c7 23604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606 (eval $ac_try) 2>&5
23607 ac_status=$?
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); }; } &&
23610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612 (eval $ac_try) 2>&5
23613 ac_status=$?
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); }; }; then
23616 ac_header_compiler=yes
23617else
23618 echo "$as_me: failed program was:" >&5
23619sed 's/^/| /' conftest.$ac_ext >&5
23620
23621ac_header_compiler=no
23622fi
ac1cb8d3 23623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23624echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23625echo "${ECHO_T}$ac_header_compiler" >&6
23626
23627# Is the header present?
23628echo "$as_me:$LINENO: checking expat.h presence" >&5
23629echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23630cat >conftest.$ac_ext <<_ACEOF
23631/* confdefs.h. */
23632_ACEOF
23633cat confdefs.h >>conftest.$ac_ext
23634cat >>conftest.$ac_ext <<_ACEOF
23635/* end confdefs.h. */
23636#include <expat.h>
23637_ACEOF
23638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23640 ac_status=$?
23641 grep -v '^ *+' conftest.er1 >conftest.err
23642 rm -f conftest.er1
23643 cat conftest.err >&5
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); } >/dev/null; then
23646 if test -s conftest.err; then
23647 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23649 else
23650 ac_cpp_err=
23651 fi
23652else
23653 ac_cpp_err=yes
23654fi
23655if test -z "$ac_cpp_err"; then
23656 ac_header_preproc=yes
23657else
23658 echo "$as_me: failed program was:" >&5
23659sed 's/^/| /' conftest.$ac_ext >&5
23660
23661 ac_header_preproc=no
23662fi
23663rm -f conftest.err conftest.$ac_ext
23664echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23665echo "${ECHO_T}$ac_header_preproc" >&6
23666
23667# So? What about this header?
ac1cb8d3
VS
23668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23669 yes:no: )
a848cd7e
SC
23670 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23671echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23672 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23673echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23674 ac_header_preproc=yes
a848cd7e 23675 ;;
ac1cb8d3 23676 no:yes:* )
a848cd7e
SC
23677 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23678echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23679 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23680echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23681 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23682echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23683 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23684echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23685 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23686echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23687 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23688echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23689 (
23690 cat <<\_ASBOX
ac1cb8d3
VS
23691## ----------------------------------------- ##
23692## Report this to wx-dev@lists.wxwidgets.org ##
23693## ----------------------------------------- ##
a848cd7e
SC
23694_ASBOX
23695 ) |
23696 sed "s/^/$as_me: WARNING: /" >&2
23697 ;;
23698esac
23699echo "$as_me:$LINENO: checking for expat.h" >&5
23700echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23701if test "${ac_cv_header_expat_h+set}" = set; then
23702 echo $ECHO_N "(cached) $ECHO_C" >&6
23703else
23704 ac_cv_header_expat_h=$ac_header_preproc
23705fi
23706echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23707echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23708
23709fi
23710if test $ac_cv_header_expat_h = yes; then
23711 found_expat_h=1
23712fi
23713
23714
23715 if test "x$found_expat_h" = "x1"; then
23716 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23717echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23718if test "${wx_cv_expat_is_not_broken+set}" = set; then
23719 echo $ECHO_N "(cached) $ECHO_C" >&6
23720else
23721
23722
23723
23724 ac_ext=cc
23725ac_cpp='$CXXCPP $CPPFLAGS'
23726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23729
23730 cat >conftest.$ac_ext <<_ACEOF
23731/* confdefs.h. */
23732_ACEOF
23733cat confdefs.h >>conftest.$ac_ext
23734cat >>conftest.$ac_ext <<_ACEOF
23735/* end confdefs.h. */
23736#include <expat.h>
23737int
23738main ()
23739{
23740
23741 ;
23742 return 0;
23743}
23744_ACEOF
23745rm -f conftest.$ac_objext
23746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23747 (eval $ac_compile) 2>conftest.er1
a848cd7e 23748 ac_status=$?
ac1cb8d3
VS
23749 grep -v '^ *+' conftest.er1 >conftest.err
23750 rm -f conftest.er1
23751 cat conftest.err >&5
a848cd7e
SC
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); } &&
6ebeb4c7 23754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756 (eval $ac_try) 2>&5
23757 ac_status=$?
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); }; } &&
23760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23763 ac_status=$?
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; }; then
23766 wx_cv_expat_is_not_broken=yes
23767else
23768 echo "$as_me: failed program was:" >&5
23769sed 's/^/| /' conftest.$ac_ext >&5
23770
23771wx_cv_expat_is_not_broken=no
23772
23773fi
ac1cb8d3 23774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23775 ac_ext=c
23776ac_cpp='$CPP $CPPFLAGS'
23777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23779ac_compiler_gnu=$ac_cv_c_compiler_gnu
23780
23781
23782
23783fi
23784echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23785echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23786 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23787 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23788echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23789if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23790 echo $ECHO_N "(cached) $ECHO_C" >&6
23791else
23792 ac_check_lib_save_LIBS=$LIBS
23793LIBS="-lexpat $LIBS"
23794cat >conftest.$ac_ext <<_ACEOF
23795/* confdefs.h. */
23796_ACEOF
23797cat confdefs.h >>conftest.$ac_ext
23798cat >>conftest.$ac_ext <<_ACEOF
23799/* end confdefs.h. */
23800
23801/* Override any gcc2 internal prototype to avoid an error. */
23802#ifdef __cplusplus
23803extern "C"
23804#endif
23805/* We use char because int might match the return type of a gcc2
23806 builtin and then its argument prototype would still apply. */
23807char XML_ParserCreate ();
23808int
23809main ()
23810{
23811XML_ParserCreate ();
23812 ;
23813 return 0;
23814}
23815_ACEOF
23816rm -f conftest.$ac_objext conftest$ac_exeext
23817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23818 (eval $ac_link) 2>conftest.er1
a848cd7e 23819 ac_status=$?
ac1cb8d3
VS
23820 grep -v '^ *+' conftest.er1 >conftest.err
23821 rm -f conftest.er1
23822 cat conftest.err >&5
a848cd7e
SC
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); } &&
6ebeb4c7 23825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23827 (eval $ac_try) 2>&5
23828 ac_status=$?
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); }; } &&
23831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23833 (eval $ac_try) 2>&5
23834 ac_status=$?
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); }; }; then
23837 ac_cv_lib_expat_XML_ParserCreate=yes
23838else
23839 echo "$as_me: failed program was:" >&5
23840sed 's/^/| /' conftest.$ac_ext >&5
23841
23842ac_cv_lib_expat_XML_ParserCreate=no
23843fi
ac1cb8d3
VS
23844rm -f conftest.err conftest.$ac_objext \
23845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23846LIBS=$ac_check_lib_save_LIBS
23847fi
23848echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23849echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23850if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23851 EXPAT_LINK=" -lexpat"
23852fi
23853
23854 fi
23855 fi
23856 if test "x$EXPAT_LINK" = "x" ; then
23857 if test "$wxUSE_EXPAT" = "sys" ; then
23858 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23859echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23860 { (exit 1); exit 1; }; }
23861 else
23862 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23863echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23864 wxUSE_EXPAT=builtin
23865 fi
23866 else
23867 wxUSE_EXPAT=sys
23868 fi
23869 fi
23870 if test "$wxUSE_EXPAT" = "builtin" ; then
23871
23872
23873subdirs="$subdirs src/expat"
23874
23875 fi
23876fi
23877
23878
23879
23880if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23881 if test "${ac_cv_header_mspack_h+set}" = set; then
23882 echo "$as_me:$LINENO: checking for mspack.h" >&5
23883echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23884if test "${ac_cv_header_mspack_h+set}" = set; then
23885 echo $ECHO_N "(cached) $ECHO_C" >&6
23886fi
23887echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23888echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23889else
23890 # Is the header compilable?
23891echo "$as_me:$LINENO: checking mspack.h usability" >&5
23892echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23893cat >conftest.$ac_ext <<_ACEOF
23894/* confdefs.h. */
23895_ACEOF
23896cat confdefs.h >>conftest.$ac_ext
23897cat >>conftest.$ac_ext <<_ACEOF
23898/* end confdefs.h. */
23899$ac_includes_default
23900#include <mspack.h>
23901_ACEOF
23902rm -f conftest.$ac_objext
23903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23904 (eval $ac_compile) 2>conftest.er1
a848cd7e 23905 ac_status=$?
ac1cb8d3
VS
23906 grep -v '^ *+' conftest.er1 >conftest.err
23907 rm -f conftest.er1
23908 cat conftest.err >&5
a848cd7e
SC
23909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910 (exit $ac_status); } &&
6ebeb4c7 23911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23913 (eval $ac_try) 2>&5
23914 ac_status=$?
23915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916 (exit $ac_status); }; } &&
23917 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23919 (eval $ac_try) 2>&5
23920 ac_status=$?
23921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); }; }; then
23923 ac_header_compiler=yes
23924else
23925 echo "$as_me: failed program was:" >&5
23926sed 's/^/| /' conftest.$ac_ext >&5
23927
23928ac_header_compiler=no
23929fi
ac1cb8d3 23930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23931echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23932echo "${ECHO_T}$ac_header_compiler" >&6
23933
23934# Is the header present?
23935echo "$as_me:$LINENO: checking mspack.h presence" >&5
23936echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23937cat >conftest.$ac_ext <<_ACEOF
23938/* confdefs.h. */
23939_ACEOF
23940cat confdefs.h >>conftest.$ac_ext
23941cat >>conftest.$ac_ext <<_ACEOF
23942/* end confdefs.h. */
23943#include <mspack.h>
23944_ACEOF
23945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23947 ac_status=$?
23948 grep -v '^ *+' conftest.er1 >conftest.err
23949 rm -f conftest.er1
23950 cat conftest.err >&5
23951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952 (exit $ac_status); } >/dev/null; then
23953 if test -s conftest.err; then
23954 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23956 else
23957 ac_cpp_err=
23958 fi
23959else
23960 ac_cpp_err=yes
23961fi
23962if test -z "$ac_cpp_err"; then
23963 ac_header_preproc=yes
23964else
23965 echo "$as_me: failed program was:" >&5
23966sed 's/^/| /' conftest.$ac_ext >&5
23967
23968 ac_header_preproc=no
23969fi
23970rm -f conftest.err conftest.$ac_ext
23971echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23972echo "${ECHO_T}$ac_header_preproc" >&6
23973
23974# So? What about this header?
ac1cb8d3
VS
23975case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23976 yes:no: )
a848cd7e
SC
23977 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23978echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23979 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23980echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23981 ac_header_preproc=yes
a848cd7e 23982 ;;
ac1cb8d3 23983 no:yes:* )
a848cd7e
SC
23984 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23985echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23986 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23987echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23988 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23989echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23990 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23991echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23992 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23993echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23994 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23995echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23996 (
23997 cat <<\_ASBOX
ac1cb8d3
VS
23998## ----------------------------------------- ##
23999## Report this to wx-dev@lists.wxwidgets.org ##
24000## ----------------------------------------- ##
a848cd7e
SC
24001_ASBOX
24002 ) |
24003 sed "s/^/$as_me: WARNING: /" >&2
24004 ;;
24005esac
24006echo "$as_me:$LINENO: checking for mspack.h" >&5
24007echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24008if test "${ac_cv_header_mspack_h+set}" = set; then
24009 echo $ECHO_N "(cached) $ECHO_C" >&6
24010else
24011 ac_cv_header_mspack_h=$ac_header_preproc
24012fi
24013echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24014echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24015
24016fi
24017if test $ac_cv_header_mspack_h = yes; then
24018 found_mspack_h=1
24019fi
24020
24021
24022 if test "x$found_mspack_h" = "x1"; then
24023 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24024echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24025if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24026 echo $ECHO_N "(cached) $ECHO_C" >&6
24027else
24028 ac_check_lib_save_LIBS=$LIBS
24029LIBS="-lmspack $LIBS"
24030cat >conftest.$ac_ext <<_ACEOF
24031/* confdefs.h. */
24032_ACEOF
24033cat confdefs.h >>conftest.$ac_ext
24034cat >>conftest.$ac_ext <<_ACEOF
24035/* end confdefs.h. */
24036
24037/* Override any gcc2 internal prototype to avoid an error. */
24038#ifdef __cplusplus
24039extern "C"
24040#endif
24041/* We use char because int might match the return type of a gcc2
24042 builtin and then its argument prototype would still apply. */
24043char mspack_create_chm_decompressor ();
24044int
24045main ()
24046{
24047mspack_create_chm_decompressor ();
24048 ;
24049 return 0;
24050}
24051_ACEOF
24052rm -f conftest.$ac_objext conftest$ac_exeext
24053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24054 (eval $ac_link) 2>conftest.er1
a848cd7e 24055 ac_status=$?
ac1cb8d3
VS
24056 grep -v '^ *+' conftest.er1 >conftest.err
24057 rm -f conftest.er1
24058 cat conftest.err >&5
a848cd7e
SC
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); } &&
6ebeb4c7 24061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24063 (eval $ac_try) 2>&5
24064 ac_status=$?
24065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); }; } &&
24067 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24069 (eval $ac_try) 2>&5
24070 ac_status=$?
24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); }; }; then
24073 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24074else
24075 echo "$as_me: failed program was:" >&5
24076sed 's/^/| /' conftest.$ac_ext >&5
24077
24078ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24079fi
ac1cb8d3
VS
24080rm -f conftest.err conftest.$ac_objext \
24081 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24082LIBS=$ac_check_lib_save_LIBS
24083fi
24084echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24085echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24086if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24087 MSPACK_LINK=" -lmspack"
24088fi
24089
24090 fi
24091 if test "x$MSPACK_LINK" = "x" ; then
24092 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24093 fi
24094fi
24095
24096if test "$wxUSE_LIBMSPACK" != "no"; then
24097 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24098#define wxUSE_LIBMSPACK 1
24099_ACEOF
24100
a848cd7e
SC
24101fi
24102
24103
24104
24105AFMINSTALL=
24106WIN32INSTALL=
24107
24108TOOLKIT=
24109TOOLKIT_INCLUDE=
24110WIDGET_SET=
24111
24112if test "$USE_WIN32" = 1 ; then
24113
24114for ac_header in w32api.h
24115do
24116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24117if eval "test \"\${$as_ac_Header+set}\" = set"; then
24118 echo "$as_me:$LINENO: checking for $ac_header" >&5
24119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24120if eval "test \"\${$as_ac_Header+set}\" = set"; then
24121 echo $ECHO_N "(cached) $ECHO_C" >&6
24122fi
24123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24125else
24126 # Is the header compilable?
24127echo "$as_me:$LINENO: checking $ac_header usability" >&5
24128echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24129cat >conftest.$ac_ext <<_ACEOF
24130/* confdefs.h. */
24131_ACEOF
24132cat confdefs.h >>conftest.$ac_ext
24133cat >>conftest.$ac_ext <<_ACEOF
24134/* end confdefs.h. */
24135$ac_includes_default
24136#include <$ac_header>
24137_ACEOF
24138rm -f conftest.$ac_objext
24139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24140 (eval $ac_compile) 2>conftest.er1
a848cd7e 24141 ac_status=$?
ac1cb8d3
VS
24142 grep -v '^ *+' conftest.er1 >conftest.err
24143 rm -f conftest.er1
24144 cat conftest.err >&5
a848cd7e
SC
24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); } &&
6ebeb4c7 24147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24149 (eval $ac_try) 2>&5
24150 ac_status=$?
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); }; } &&
24153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24155 (eval $ac_try) 2>&5
24156 ac_status=$?
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); }; }; then
24159 ac_header_compiler=yes
24160else
24161 echo "$as_me: failed program was:" >&5
24162sed 's/^/| /' conftest.$ac_ext >&5
24163
24164ac_header_compiler=no
24165fi
ac1cb8d3 24166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24167echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24168echo "${ECHO_T}$ac_header_compiler" >&6
24169
24170# Is the header present?
24171echo "$as_me:$LINENO: checking $ac_header presence" >&5
24172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24173cat >conftest.$ac_ext <<_ACEOF
24174/* confdefs.h. */
24175_ACEOF
24176cat confdefs.h >>conftest.$ac_ext
24177cat >>conftest.$ac_ext <<_ACEOF
24178/* end confdefs.h. */
24179#include <$ac_header>
24180_ACEOF
24181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24183 ac_status=$?
24184 grep -v '^ *+' conftest.er1 >conftest.err
24185 rm -f conftest.er1
24186 cat conftest.err >&5
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } >/dev/null; then
24189 if test -s conftest.err; then
24190 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24192 else
24193 ac_cpp_err=
24194 fi
24195else
24196 ac_cpp_err=yes
24197fi
24198if test -z "$ac_cpp_err"; then
24199 ac_header_preproc=yes
24200else
24201 echo "$as_me: failed program was:" >&5
24202sed 's/^/| /' conftest.$ac_ext >&5
24203
24204 ac_header_preproc=no
24205fi
24206rm -f conftest.err conftest.$ac_ext
24207echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24208echo "${ECHO_T}$ac_header_preproc" >&6
24209
24210# So? What about this header?
ac1cb8d3
VS
24211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24212 yes:no: )
a848cd7e
SC
24213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24217 ac_header_preproc=yes
a848cd7e 24218 ;;
ac1cb8d3 24219 no:yes:* )
a848cd7e
SC
24220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24232 (
24233 cat <<\_ASBOX
ac1cb8d3
VS
24234## ----------------------------------------- ##
24235## Report this to wx-dev@lists.wxwidgets.org ##
24236## ----------------------------------------- ##
a848cd7e
SC
24237_ASBOX
24238 ) |
24239 sed "s/^/$as_me: WARNING: /" >&2
24240 ;;
24241esac
24242echo "$as_me:$LINENO: checking for $ac_header" >&5
24243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24244if eval "test \"\${$as_ac_Header+set}\" = set"; then
24245 echo $ECHO_N "(cached) $ECHO_C" >&6
24246else
ac1cb8d3 24247 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24248fi
24249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24251
24252fi
24253if test `eval echo '${'$as_ac_Header'}'` = yes; then
24254 cat >>confdefs.h <<_ACEOF
24255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24256_ACEOF
24257
24258fi
24259
24260done
24261
24262 if test "${ac_cv_header_windows_h+set}" = set; then
24263 echo "$as_me:$LINENO: checking for windows.h" >&5
24264echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24265if test "${ac_cv_header_windows_h+set}" = set; then
24266 echo $ECHO_N "(cached) $ECHO_C" >&6
24267fi
24268echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24269echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24270else
24271 # Is the header compilable?
24272echo "$as_me:$LINENO: checking windows.h usability" >&5
24273echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24274cat >conftest.$ac_ext <<_ACEOF
24275/* confdefs.h. */
24276_ACEOF
24277cat confdefs.h >>conftest.$ac_ext
24278cat >>conftest.$ac_ext <<_ACEOF
24279/* end confdefs.h. */
24280$ac_includes_default
24281#include <windows.h>
24282_ACEOF
24283rm -f conftest.$ac_objext
24284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24285 (eval $ac_compile) 2>conftest.er1
a848cd7e 24286 ac_status=$?
ac1cb8d3
VS
24287 grep -v '^ *+' conftest.er1 >conftest.err
24288 rm -f conftest.er1
24289 cat conftest.err >&5
a848cd7e
SC
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } &&
6ebeb4c7 24292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24294 (eval $ac_try) 2>&5
24295 ac_status=$?
24296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); }; } &&
24298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24300 (eval $ac_try) 2>&5
24301 ac_status=$?
24302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); }; }; then
24304 ac_header_compiler=yes
24305else
24306 echo "$as_me: failed program was:" >&5
24307sed 's/^/| /' conftest.$ac_ext >&5
24308
24309ac_header_compiler=no
24310fi
ac1cb8d3 24311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24312echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24313echo "${ECHO_T}$ac_header_compiler" >&6
24314
24315# Is the header present?
24316echo "$as_me:$LINENO: checking windows.h presence" >&5
24317echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24318cat >conftest.$ac_ext <<_ACEOF
24319/* confdefs.h. */
24320_ACEOF
24321cat confdefs.h >>conftest.$ac_ext
24322cat >>conftest.$ac_ext <<_ACEOF
24323/* end confdefs.h. */
24324#include <windows.h>
24325_ACEOF
24326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24328 ac_status=$?
24329 grep -v '^ *+' conftest.er1 >conftest.err
24330 rm -f conftest.er1
24331 cat conftest.err >&5
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); } >/dev/null; then
24334 if test -s conftest.err; then
24335 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24337 else
24338 ac_cpp_err=
24339 fi
24340else
24341 ac_cpp_err=yes
24342fi
24343if test -z "$ac_cpp_err"; then
24344 ac_header_preproc=yes
24345else
24346 echo "$as_me: failed program was:" >&5
24347sed 's/^/| /' conftest.$ac_ext >&5
24348
24349 ac_header_preproc=no
24350fi
24351rm -f conftest.err conftest.$ac_ext
24352echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24353echo "${ECHO_T}$ac_header_preproc" >&6
24354
24355# So? What about this header?
ac1cb8d3
VS
24356case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24357 yes:no: )
a848cd7e
SC
24358 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24359echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24360 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24361echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24362 ac_header_preproc=yes
a848cd7e 24363 ;;
ac1cb8d3 24364 no:yes:* )
a848cd7e
SC
24365 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24366echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24367 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24368echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24369 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24370echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24371 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24372echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24373 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24374echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24375 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24376echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24377 (
24378 cat <<\_ASBOX
ac1cb8d3
VS
24379## ----------------------------------------- ##
24380## Report this to wx-dev@lists.wxwidgets.org ##
24381## ----------------------------------------- ##
a848cd7e
SC
24382_ASBOX
24383 ) |
24384 sed "s/^/$as_me: WARNING: /" >&2
24385 ;;
24386esac
24387echo "$as_me:$LINENO: checking for windows.h" >&5
24388echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24389if test "${ac_cv_header_windows_h+set}" = set; then
24390 echo $ECHO_N "(cached) $ECHO_C" >&6
24391else
24392 ac_cv_header_windows_h=$ac_header_preproc
24393fi
24394echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24395echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24396
24397fi
24398if test $ac_cv_header_windows_h = yes; then
24399 :
24400else
24401
24402 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24403echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24404 { (exit 1); exit 1; }; }
24405
24406fi
24407
24408
24409
24410 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24411
24412 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24413 LIBS="$LIBS -loleacc"
24414 fi
24415
24416 case "${host}" in
24417 *-*-cygwin* )
24418 LIBS="$LIBS -lkernel32 -luser32"
24419 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24420 esac
24421
24422 if test "$wxUSE_ODBC" = "sys" ; then
24423 wxUSE_ODBC = "yes"
24424 fi
24425 if test "$wxUSE_ODBC" = "yes" ; then
24426 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24427 cat >>confdefs.h <<\_ACEOF
24428#define wxUSE_ODBC 1
24429_ACEOF
24430
24431 fi
24432
24433 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24434 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24435
24436 WIN32INSTALL=win32install
24437fi
24438
24439if test "$wxUSE_GUI" = "yes"; then
24440 USE_GUI=1
24441
24442 GUI_TK_LIBRARY=
24443
24444 WXGTK12=
24445 WXGTK127=
24446 WXGTK20=
24447 WXGPE=
24448
207bc66c
RN
24449 if test "$wxUSE_COCOA" = 1 ; then
24450 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24451 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24452echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24453 wxUSE_PRINTING_ARCHITECTURE=no
24454 fi
24455 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24456 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24457echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24458 wxUSE_DRAG_AND_DROP=no
24459 fi
24460 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24461 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24462echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24463 wxUSE_DRAGIMAGE=no
24464 fi
24465 fi
24466
a848cd7e
SC
24467 if test "$wxUSE_MSW" = 1 ; then
24468 TOOLKIT=MSW
24469 GUIDIST=MSW_DIST
24470
ceec2216 24471 case "${host}" in
a848cd7e
SC
24472 *-*-mingw32* )
24473 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24474 esac
24475 fi
24476
24477 if test "$wxUSE_GTK" = 1; then
24478 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24479echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24480
24481 gtk_version_cached=1
24482 if test "${wx_cv_lib_gtk+set}" = set; then
24483 echo $ECHO_N "(cached) $ECHO_C" >&6
24484else
24485
24486 gtk_version_cached=0
24487 echo "$as_me:$LINENO: result: " >&5
24488echo "${ECHO_T}" >&6
24489
24490 GTK_MODULES=
24491 if test "$wxUSE_THREADS" = "yes"; then
24492 GTK_MODULES=gthread
24493 fi
24494
f597b41c 24495 wx_cv_lib_gtk=
f34ca037 24496 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24497 # Check whether --enable-gtktest or --disable-gtktest was given.
24498if test "${enable_gtktest+set}" = set; then
24499 enableval="$enable_gtktest"
24500
24501else
24502 enable_gtktest=yes
24503fi;
24504
24505 pkg_config_args=gtk+-2.0
24506 for module in . $GTK_MODULES
24507 do
24508 case "$module" in
24509 gthread)
24510 pkg_config_args="$pkg_config_args gthread-2.0"
24511 ;;
24512 esac
24513 done
24514
24515 no_gtk=""
24516
24517 # Extract the first word of "pkg-config", so it can be a program name with args.
24518set dummy pkg-config; ac_word=$2
24519echo "$as_me:$LINENO: checking for $ac_word" >&5
24520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24521if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24522 echo $ECHO_N "(cached) $ECHO_C" >&6
24523else
24524 case $PKG_CONFIG in
24525 [\\/]* | ?:[\\/]*)
24526 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24527 ;;
24528 *)
24529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24530for as_dir in $PATH
24531do
24532 IFS=$as_save_IFS
24533 test -z "$as_dir" && as_dir=.
24534 for ac_exec_ext in '' $ac_executable_extensions; do
24535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24536 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24538 break 2
24539 fi
24540done
24541done
24542
24543 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24544 ;;
24545esac
24546fi
24547PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24548
24549if test -n "$PKG_CONFIG"; then
24550 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24551echo "${ECHO_T}$PKG_CONFIG" >&6
24552else
24553 echo "$as_me:$LINENO: result: no" >&5
24554echo "${ECHO_T}no" >&6
24555fi
24556
24557
24558 if test x$PKG_CONFIG != xno ; then
24559 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24560 :
24561 else
c2218763 24562 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24563 no_gtk=yes
24564 PKG_CONFIG=no
24565 fi
24566 else
24567 no_gtk=yes
24568 fi
24569
24570 min_gtk_version=2.0.0
24571 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24572echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24573
24574 if test x$PKG_CONFIG != xno ; then
24575 ## don't try to run the test against uninstalled libtool libs
24576 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24577 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24578 enable_gtktest=no
24579 fi
24580
24581 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24582 :
24583 else
24584 no_gtk=yes
24585 fi
24586 fi
24587
24588 if test x"$no_gtk" = x ; then
24589 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24590 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24591 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24592 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24593 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24594 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24595 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24596 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24597 if test "x$enable_gtktest" = "xyes" ; then
24598 ac_save_CFLAGS="$CFLAGS"
24599 ac_save_LIBS="$LIBS"
24600 CFLAGS="$CFLAGS $GTK_CFLAGS"
24601 LIBS="$GTK_LIBS $LIBS"
24602 rm -f conf.gtktest
24603 if test "$cross_compiling" = yes; then
24604 echo $ac_n "cross compiling; assumed OK... $ac_c"
24605else
24606 cat >conftest.$ac_ext <<_ACEOF
24607/* confdefs.h. */
24608_ACEOF
24609cat confdefs.h >>conftest.$ac_ext
24610cat >>conftest.$ac_ext <<_ACEOF
24611/* end confdefs.h. */
24612
24613#include <gtk/gtk.h>
24614#include <stdio.h>
24615#include <stdlib.h>
24616
24617int
24618main ()
24619{
24620 int major, minor, micro;
24621 char *tmp_version;
24622
24623 system ("touch conf.gtktest");
24624
24625 /* HP/UX 9 (%@#!) writes to sscanf strings */
24626 tmp_version = g_strdup("$min_gtk_version");
24627 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24628 printf("%s, bad version string\n", "$min_gtk_version");
24629 exit(1);
24630 }
24631
24632 if ((gtk_major_version != $gtk_config_major_version) ||
24633 (gtk_minor_version != $gtk_config_minor_version) ||
24634 (gtk_micro_version != $gtk_config_micro_version))
24635 {
24636 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24637 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24638 gtk_major_version, gtk_minor_version, gtk_micro_version);
24639 printf ("*** was found! If pkg-config was correct, then it is best\n");
24640 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24641 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24642 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24643 printf("*** required on your system.\n");
24644 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24645 printf("*** to point to the correct configuration files\n");
24646 }
24647 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24648 (gtk_minor_version != GTK_MINOR_VERSION) ||
24649 (gtk_micro_version != GTK_MICRO_VERSION))
24650 {
24651 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24652 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24653 printf("*** library (version %d.%d.%d)\n",
24654 gtk_major_version, gtk_minor_version, gtk_micro_version);
24655 }
24656 else
24657 {
24658 if ((gtk_major_version > major) ||
24659 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24660 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24661 {
24662 return 0;
24663 }
24664 else
24665 {
24666 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24667 gtk_major_version, gtk_minor_version, gtk_micro_version);
24668 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24669 major, minor, micro);
24670 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24671 printf("***\n");
24672 printf("*** If you have already installed a sufficiently new version, this error\n");
24673 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24674 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24675 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24676 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24677 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24678 printf("*** so that the correct libraries are found at run-time))\n");
24679 }
24680 }
24681 return 1;
24682}
24683
24684_ACEOF
24685rm -f conftest$ac_exeext
24686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24687 (eval $ac_link) 2>&5
24688 ac_status=$?
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24692 (eval $ac_try) 2>&5
24693 ac_status=$?
24694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695 (exit $ac_status); }; }; then
24696 :
24697else
24698 echo "$as_me: program exited with status $ac_status" >&5
24699echo "$as_me: failed program was:" >&5
24700sed 's/^/| /' conftest.$ac_ext >&5
24701
24702( exit $ac_status )
24703no_gtk=yes
24704fi
ac1cb8d3 24705rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24706fi
24707 CFLAGS="$ac_save_CFLAGS"
24708 LIBS="$ac_save_LIBS"
24709 fi
24710 fi
24711 if test "x$no_gtk" = x ; then
24712 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24713echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24714 wx_cv_lib_gtk=2.0
24715 else
24716 echo "$as_me:$LINENO: result: no" >&5
24717echo "${ECHO_T}no" >&6
24718 if test "$PKG_CONFIG" = "no" ; then
24719 echo "*** A new enough version of pkg-config was not found."
24720 echo "*** See http://pkgconfig.sourceforge.net"
24721 else
24722 if test -f conf.gtktest ; then
24723 :
24724 else
24725 echo "*** Could not run GTK+ test program, checking why..."
24726 ac_save_CFLAGS="$CFLAGS"
24727 ac_save_LIBS="$LIBS"
24728 CFLAGS="$CFLAGS $GTK_CFLAGS"
24729 LIBS="$LIBS $GTK_LIBS"
24730 cat >conftest.$ac_ext <<_ACEOF
24731/* confdefs.h. */
24732_ACEOF
24733cat confdefs.h >>conftest.$ac_ext
24734cat >>conftest.$ac_ext <<_ACEOF
24735/* end confdefs.h. */
24736
24737#include <gtk/gtk.h>
24738#include <stdio.h>
24739
24740int
24741main ()
24742{
24743 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24744 ;
24745 return 0;
24746}
24747_ACEOF
24748rm -f conftest.$ac_objext conftest$ac_exeext
24749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24750 (eval $ac_link) 2>conftest.er1
a848cd7e 24751 ac_status=$?
ac1cb8d3
VS
24752 grep -v '^ *+' conftest.er1 >conftest.err
24753 rm -f conftest.er1
24754 cat conftest.err >&5
a848cd7e
SC
24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); } &&
6ebeb4c7 24757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24759 (eval $ac_try) 2>&5
24760 ac_status=$?
24761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762 (exit $ac_status); }; } &&
24763 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24765 (eval $ac_try) 2>&5
24766 ac_status=$?
24767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768 (exit $ac_status); }; }; then
24769 echo "*** The test program compiled, but did not run. This usually means"
24770 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24771 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24772 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24773 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24774 echo "*** is required on your system"
24775 echo "***"
24776 echo "*** If you have an old version installed, it is best to remove it, although"
24777 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24778else
24779 echo "$as_me: failed program was:" >&5
24780sed 's/^/| /' conftest.$ac_ext >&5
24781
24782 echo "*** The test program failed to compile or link. See the file config.log for the"
24783 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24784fi
ac1cb8d3
VS
24785rm -f conftest.err conftest.$ac_objext \
24786 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24787 CFLAGS="$ac_save_CFLAGS"
24788 LIBS="$ac_save_LIBS"
24789 fi
24790 fi
24791 GTK_CFLAGS=""
24792 GTK_LIBS=""
24793 :
24794 fi
24795
24796
24797 rm -f conf.gtktest
24798
f597b41c
MW
24799 fi
24800
f34ca037
MW
24801 if test -z "$wx_cv_lib_gtk"; then
24802 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
24803
24804# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24805if test "${with_gtk_prefix+set}" = set; then
24806 withval="$with_gtk_prefix"
24807 gtk_config_prefix="$withval"
24808else
24809 gtk_config_prefix=""
24810fi;
24811
24812# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24813if test "${with_gtk_exec_prefix+set}" = set; then
24814 withval="$with_gtk_exec_prefix"
24815 gtk_config_exec_prefix="$withval"
24816else
24817 gtk_config_exec_prefix=""
24818fi;
24819# Check whether --enable-gtktest or --disable-gtktest was given.
24820if test "${enable_gtktest+set}" = set; then
24821 enableval="$enable_gtktest"
24822
24823else
24824 enable_gtktest=yes
24825fi;
24826
24827 for module in . $GTK_MODULES
24828 do
24829 case "$module" in
24830 gthread)
24831 gtk_config_args="$gtk_config_args gthread"
24832 ;;
24833 esac
24834 done
24835
24836 if test x$gtk_config_exec_prefix != x ; then
24837 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24838 if test x${GTK_CONFIG+set} != xset ; then
24839 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24840 fi
24841 fi
24842 if test x$gtk_config_prefix != x ; then
24843 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24844 if test x${GTK_CONFIG+set} != xset ; then
24845 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24846 fi
24847 fi
24848
24849 # Extract the first word of "gtk-config", so it can be a program name with args.
24850set dummy gtk-config; ac_word=$2
24851echo "$as_me:$LINENO: checking for $ac_word" >&5
24852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24853if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24854 echo $ECHO_N "(cached) $ECHO_C" >&6
24855else
24856 case $GTK_CONFIG in
24857 [\\/]* | ?:[\\/]*)
24858 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24859 ;;
24860 *)
24861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24862for as_dir in $PATH
24863do
24864 IFS=$as_save_IFS
24865 test -z "$as_dir" && as_dir=.
24866 for ac_exec_ext in '' $ac_executable_extensions; do
24867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24868 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24870 break 2
24871 fi
24872done
24873done
24874
24875 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24876 ;;
24877esac
24878fi
24879GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24880
24881if test -n "$GTK_CONFIG"; then
24882 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24883echo "${ECHO_T}$GTK_CONFIG" >&6
24884else
24885 echo "$as_me:$LINENO: result: no" >&5
24886echo "${ECHO_T}no" >&6
24887fi
24888
24889 min_gtk_version=1.2.7
24890 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24891echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24892 no_gtk=""
24893 if test "$GTK_CONFIG" = "no" ; then
24894 no_gtk=yes
24895 else
24896 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24897 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24898 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24899 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24900 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24901 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24902 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24903 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24904 if test "x$enable_gtktest" = "xyes" ; then
24905 ac_save_CFLAGS="$CFLAGS"
24906 ac_save_LIBS="$LIBS"
24907 CFLAGS="$CFLAGS $GTK_CFLAGS"
24908 LIBS="$GTK_LIBS $LIBS"
24909 rm -f conf.gtktest
24910 if test "$cross_compiling" = yes; then
24911 echo $ac_n "cross compiling; assumed OK... $ac_c"
24912else
24913 cat >conftest.$ac_ext <<_ACEOF
24914/* confdefs.h. */
24915_ACEOF
24916cat confdefs.h >>conftest.$ac_ext
24917cat >>conftest.$ac_ext <<_ACEOF
24918/* end confdefs.h. */
24919
24920#include <gtk/gtk.h>
24921#include <stdio.h>
24922#include <stdlib.h>
24923
24924int
24925main ()
24926{
24927 int major, minor, micro;
24928 char *tmp_version;
24929
24930 system ("touch conf.gtktest");
24931
24932 /* HP/UX 9 (%@#!) writes to sscanf strings */
24933 tmp_version = g_strdup("$min_gtk_version");
24934 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24935 printf("%s, bad version string\n", "$min_gtk_version");
24936 exit(1);
24937 }
24938
24939 if ((gtk_major_version != $gtk_config_major_version) ||
24940 (gtk_minor_version != $gtk_config_minor_version) ||
24941 (gtk_micro_version != $gtk_config_micro_version))
24942 {
24943 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24944 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24945 gtk_major_version, gtk_minor_version, gtk_micro_version);
24946 printf ("*** was found! If gtk-config was correct, then it is best\n");
24947 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24948 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24949 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24950 printf("*** required on your system.\n");
24951 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24952 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24953 printf("*** before re-running configure\n");
24954 }
24955#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24956 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24957 (gtk_minor_version != GTK_MINOR_VERSION) ||
24958 (gtk_micro_version != GTK_MICRO_VERSION))
24959 {
24960 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24961 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24962 printf("*** library (version %d.%d.%d)\n",
24963 gtk_major_version, gtk_minor_version, gtk_micro_version);
24964 }
24965#endif /* defined (GTK_MAJOR_VERSION) ... */
24966 else
24967 {
24968 if ((gtk_major_version > major) ||
24969 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24970 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24971 {
24972 return 0;
24973 }
24974 else
24975 {
24976 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24977 gtk_major_version, gtk_minor_version, gtk_micro_version);
24978 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24979 major, minor, micro);
24980 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24981 printf("***\n");
24982 printf("*** If you have already installed a sufficiently new version, this error\n");
24983 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24984 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24985 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24986 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24987 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24988 printf("*** so that the correct libraries are found at run-time))\n");
24989 }
24990 }
24991 return 1;
24992}
24993
24994_ACEOF
24995rm -f conftest$ac_exeext
24996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24997 (eval $ac_link) 2>&5
24998 ac_status=$?
24999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
25006 :
25007else
25008 echo "$as_me: program exited with status $ac_status" >&5
25009echo "$as_me: failed program was:" >&5
25010sed 's/^/| /' conftest.$ac_ext >&5
25011
25012( exit $ac_status )
25013no_gtk=yes
25014fi
ac1cb8d3 25015rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25016fi
25017 CFLAGS="$ac_save_CFLAGS"
25018 LIBS="$ac_save_LIBS"
25019 fi
25020 fi
25021 if test "x$no_gtk" = x ; then
25022 echo "$as_me:$LINENO: result: yes" >&5
25023echo "${ECHO_T}yes" >&6
25024 wx_cv_lib_gtk=1.2.7
25025 else
25026 echo "$as_me:$LINENO: result: no" >&5
25027echo "${ECHO_T}no" >&6
25028 if test "$GTK_CONFIG" = "no" ; then
25029 echo "*** The gtk-config script installed by GTK could not be found"
25030 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25031 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25032 echo "*** full path to gtk-config."
25033 else
25034 if test -f conf.gtktest ; then
25035 :
25036 else
25037 echo "*** Could not run GTK test program, checking why..."
25038 CFLAGS="$CFLAGS $GTK_CFLAGS"
25039 LIBS="$LIBS $GTK_LIBS"
25040 cat >conftest.$ac_ext <<_ACEOF
25041/* confdefs.h. */
25042_ACEOF
25043cat confdefs.h >>conftest.$ac_ext
25044cat >>conftest.$ac_ext <<_ACEOF
25045/* end confdefs.h. */
25046
25047#include <gtk/gtk.h>
25048#include <stdio.h>
25049
25050int
25051main ()
25052{
25053 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25054 ;
25055 return 0;
25056}
25057_ACEOF
25058rm -f conftest.$ac_objext conftest$ac_exeext
25059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25060 (eval $ac_link) 2>conftest.er1
a848cd7e 25061 ac_status=$?
ac1cb8d3
VS
25062 grep -v '^ *+' conftest.er1 >conftest.err
25063 rm -f conftest.er1
25064 cat conftest.err >&5
a848cd7e
SC
25065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066 (exit $ac_status); } &&
6ebeb4c7 25067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25069 (eval $ac_try) 2>&5
25070 ac_status=$?
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); }; } &&
25073 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25075 (eval $ac_try) 2>&5
25076 ac_status=$?
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }; }; then
25079 echo "*** The test program compiled, but did not run. This usually means"
25080 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25081 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25082 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25083 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25084 echo "*** is required on your system"
25085 echo "***"
25086 echo "*** If you have an old version installed, it is best to remove it, although"
25087 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25088 echo "***"
25089 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25090 echo "*** came with the system with the command"
25091 echo "***"
25092 echo "*** rpm --erase --nodeps gtk gtk-devel"
25093else
25094 echo "$as_me: failed program was:" >&5
25095sed 's/^/| /' conftest.$ac_ext >&5
25096
25097 echo "*** The test program failed to compile or link. See the file config.log for the"
25098 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25099 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25100 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25101fi
ac1cb8d3
VS
25102rm -f conftest.err conftest.$ac_objext \
25103 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25104 CFLAGS="$ac_save_CFLAGS"
25105 LIBS="$ac_save_LIBS"
25106 fi
25107 fi
25108 GTK_CFLAGS=""
25109 GTK_LIBS=""
25110 :
25111 fi
25112
25113
25114 rm -f conf.gtktest
25115
25116
f34ca037 25117 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25118
25119# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25120if test "${with_gtk_prefix+set}" = set; then
25121 withval="$with_gtk_prefix"
25122 gtk_config_prefix="$withval"
25123else
25124 gtk_config_prefix=""
25125fi;
25126
25127# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25128if test "${with_gtk_exec_prefix+set}" = set; then
25129 withval="$with_gtk_exec_prefix"
25130 gtk_config_exec_prefix="$withval"
25131else
25132 gtk_config_exec_prefix=""
25133fi;
25134# Check whether --enable-gtktest or --disable-gtktest was given.
25135if test "${enable_gtktest+set}" = set; then
25136 enableval="$enable_gtktest"
25137
25138else
25139 enable_gtktest=yes
25140fi;
25141
25142 for module in . $GTK_MODULES
25143 do
25144 case "$module" in
25145 gthread)
25146 gtk_config_args="$gtk_config_args gthread"
25147 ;;
25148 esac
25149 done
25150
25151 if test x$gtk_config_exec_prefix != x ; then
25152 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25153 if test x${GTK_CONFIG+set} != xset ; then
25154 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25155 fi
25156 fi
25157 if test x$gtk_config_prefix != x ; then
25158 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25159 if test x${GTK_CONFIG+set} != xset ; then
25160 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25161 fi
25162 fi
25163
25164 # Extract the first word of "gtk-config", so it can be a program name with args.
25165set dummy gtk-config; ac_word=$2
25166echo "$as_me:$LINENO: checking for $ac_word" >&5
25167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25168if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25169 echo $ECHO_N "(cached) $ECHO_C" >&6
25170else
25171 case $GTK_CONFIG in
25172 [\\/]* | ?:[\\/]*)
25173 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25174 ;;
25175 *)
25176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25177for as_dir in $PATH
25178do
25179 IFS=$as_save_IFS
25180 test -z "$as_dir" && as_dir=.
25181 for ac_exec_ext in '' $ac_executable_extensions; do
25182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25183 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25185 break 2
25186 fi
25187done
25188done
25189
25190 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25191 ;;
25192esac
25193fi
25194GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25195
25196if test -n "$GTK_CONFIG"; then
25197 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25198echo "${ECHO_T}$GTK_CONFIG" >&6
25199else
25200 echo "$as_me:$LINENO: result: no" >&5
25201echo "${ECHO_T}no" >&6
25202fi
25203
25204 min_gtk_version=1.2.3
25205 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25206echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25207 no_gtk=""
25208 if test "$GTK_CONFIG" = "no" ; then
25209 no_gtk=yes
25210 else
25211 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25212 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25213 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25214 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25215 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25216 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25217 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25218 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25219 if test "x$enable_gtktest" = "xyes" ; then
25220 ac_save_CFLAGS="$CFLAGS"
25221 ac_save_LIBS="$LIBS"
25222 CFLAGS="$CFLAGS $GTK_CFLAGS"
25223 LIBS="$GTK_LIBS $LIBS"
25224 rm -f conf.gtktest
25225 if test "$cross_compiling" = yes; then
25226 echo $ac_n "cross compiling; assumed OK... $ac_c"
25227else
25228 cat >conftest.$ac_ext <<_ACEOF
25229/* confdefs.h. */
25230_ACEOF
25231cat confdefs.h >>conftest.$ac_ext
25232cat >>conftest.$ac_ext <<_ACEOF
25233/* end confdefs.h. */
25234
25235#include <gtk/gtk.h>
25236#include <stdio.h>
25237#include <stdlib.h>
25238
25239int
25240main ()
25241{
25242 int major, minor, micro;
25243 char *tmp_version;
25244
25245 system ("touch conf.gtktest");
25246
25247 /* HP/UX 9 (%@#!) writes to sscanf strings */
25248 tmp_version = g_strdup("$min_gtk_version");
25249 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25250 printf("%s, bad version string\n", "$min_gtk_version");
25251 exit(1);
25252 }
25253
25254 if ((gtk_major_version != $gtk_config_major_version) ||
25255 (gtk_minor_version != $gtk_config_minor_version) ||
25256 (gtk_micro_version != $gtk_config_micro_version))
25257 {
25258 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25259 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25260 gtk_major_version, gtk_minor_version, gtk_micro_version);
25261 printf ("*** was found! If gtk-config was correct, then it is best\n");
25262 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25263 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25264 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25265 printf("*** required on your system.\n");
25266 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25267 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25268 printf("*** before re-running configure\n");
25269 }
25270#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25271 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25272 (gtk_minor_version != GTK_MINOR_VERSION) ||
25273 (gtk_micro_version != GTK_MICRO_VERSION))
25274 {
25275 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25276 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25277 printf("*** library (version %d.%d.%d)\n",
25278 gtk_major_version, gtk_minor_version, gtk_micro_version);
25279 }
25280#endif /* defined (GTK_MAJOR_VERSION) ... */
25281 else
25282 {
25283 if ((gtk_major_version > major) ||
25284 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25285 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25286 {
25287 return 0;
25288 }
25289 else
25290 {
25291 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25292 gtk_major_version, gtk_minor_version, gtk_micro_version);
25293 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25294 major, minor, micro);
25295 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25296 printf("***\n");
25297 printf("*** If you have already installed a sufficiently new version, this error\n");
25298 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25299 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25300 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25301 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25302 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25303 printf("*** so that the correct libraries are found at run-time))\n");
25304 }
25305 }
25306 return 1;
25307}
25308
25309_ACEOF
25310rm -f conftest$ac_exeext
25311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25312 (eval $ac_link) 2>&5
25313 ac_status=$?
25314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25317 (eval $ac_try) 2>&5
25318 ac_status=$?
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); }; }; then
25321 :
25322else
25323 echo "$as_me: program exited with status $ac_status" >&5
25324echo "$as_me: failed program was:" >&5
25325sed 's/^/| /' conftest.$ac_ext >&5
25326
25327( exit $ac_status )
25328no_gtk=yes
25329fi
ac1cb8d3 25330rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25331fi
25332 CFLAGS="$ac_save_CFLAGS"
25333 LIBS="$ac_save_LIBS"
25334 fi
25335 fi
25336 if test "x$no_gtk" = x ; then
25337 echo "$as_me:$LINENO: result: yes" >&5
25338echo "${ECHO_T}yes" >&6
25339 wx_cv_lib_gtk=1.2.3
25340 else
25341 echo "$as_me:$LINENO: result: no" >&5
25342echo "${ECHO_T}no" >&6
25343 if test "$GTK_CONFIG" = "no" ; then
25344 echo "*** The gtk-config script installed by GTK could not be found"
25345 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25346 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25347 echo "*** full path to gtk-config."
25348 else
25349 if test -f conf.gtktest ; then
25350 :
25351 else
25352 echo "*** Could not run GTK test program, checking why..."
25353 CFLAGS="$CFLAGS $GTK_CFLAGS"
25354 LIBS="$LIBS $GTK_LIBS"
25355 cat >conftest.$ac_ext <<_ACEOF
25356/* confdefs.h. */
25357_ACEOF
25358cat confdefs.h >>conftest.$ac_ext
25359cat >>conftest.$ac_ext <<_ACEOF
25360/* end confdefs.h. */
25361
25362#include <gtk/gtk.h>
25363#include <stdio.h>
25364
25365int
25366main ()
25367{
25368 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25369 ;
25370 return 0;
25371}
25372_ACEOF
25373rm -f conftest.$ac_objext conftest$ac_exeext
25374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25375 (eval $ac_link) 2>conftest.er1
a848cd7e 25376 ac_status=$?
ac1cb8d3
VS
25377 grep -v '^ *+' conftest.er1 >conftest.err
25378 rm -f conftest.er1
25379 cat conftest.err >&5
a848cd7e
SC
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); } &&
6ebeb4c7 25382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384 (eval $ac_try) 2>&5
25385 ac_status=$?
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); }; } &&
25388 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25390 (eval $ac_try) 2>&5
25391 ac_status=$?
25392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393 (exit $ac_status); }; }; then
25394 echo "*** The test program compiled, but did not run. This usually means"
25395 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25396 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25397 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25398 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25399 echo "*** is required on your system"
25400 echo "***"
25401 echo "*** If you have an old version installed, it is best to remove it, although"
25402 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25403 echo "***"
25404 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25405 echo "*** came with the system with the command"
25406 echo "***"
25407 echo "*** rpm --erase --nodeps gtk gtk-devel"
25408else
25409 echo "$as_me: failed program was:" >&5
25410sed 's/^/| /' conftest.$ac_ext >&5
25411
25412 echo "*** The test program failed to compile or link. See the file config.log for the"
25413 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25414 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25415 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25416fi
ac1cb8d3
VS
25417rm -f conftest.err conftest.$ac_objext \
25418 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25419 CFLAGS="$ac_save_CFLAGS"
25420 LIBS="$ac_save_LIBS"
25421 fi
25422 fi
25423 GTK_CFLAGS=""
25424 GTK_LIBS=""
25425 :
25426 fi
25427
25428
25429 rm -f conf.gtktest
25430
f34ca037 25431 fi
a848cd7e
SC
25432 fi
25433 fi
25434
25435 if test -z "$wx_cv_lib_gtk"; then
25436 wx_cv_lib_gtk=none
25437 else
25438 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 25439 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
25440 fi
25441
25442
25443fi
25444
25445
25446 if test "$gtk_version_cached" = 1; then
25447 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25448echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25449 fi
25450
25451 case "$wx_cv_lib_gtk" in
25452 2.0) WXGTK20=1
25453 TOOLKIT_VERSION=2
25454 ;;
25455 1.2.7) WXGTK127=1
25456 WXGTK12=1
25457 ;;
25458 1.2.3) WXGTK12=1
25459 ;;
25460 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25461The development files for GTK+ were not found. For GTK+ 2, please
25462ensure that pkg-config is in the path and that gtk+-2.0.pc is
25463installed. For GTK+ 1.2 please check that gtk-config is in the path,
25464and that the version is 1.2.3 or above. Also check that the
25465libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25466--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25467 " >&5
25468echo "$as_me: error:
f597b41c
MW
25469The development files for GTK+ were not found. For GTK+ 2, please
25470ensure that pkg-config is in the path and that gtk+-2.0.pc is
25471installed. For GTK+ 1.2 please check that gtk-config is in the path,
25472and that the version is 1.2.3 or above. Also check that the
25473libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25474--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25475 " >&2;}
25476 { (exit 1); exit 1; }; }
25477 ;;
25478 esac
25479
25480 if test "$WXGTK20" = 1; then
304205f1
VS
25481 save_CFLAGS="$CFLAGS"
25482 save_LIBS="$LIBS"
9d271838 25483 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 25484 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 25485
d12aef51
VZ
25486 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
25487echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
25488 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
25489/* confdefs.h. */
25490_ACEOF
25491cat confdefs.h >>conftest.$ac_ext
25492cat >>conftest.$ac_ext <<_ACEOF
25493/* end confdefs.h. */
304205f1 25494
d12aef51 25495 #include <gtk/gtk.h>
304205f1 25496
d12aef51
VZ
25497int
25498main ()
25499{
304205f1 25500
d12aef51 25501 void *f = gtk_icon_size_lookup;
abc736fd
MW
25502
25503 ;
25504 return 0;
25505}
25506_ACEOF
25507rm -f conftest.$ac_objext
25508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25509 (eval $ac_compile) 2>conftest.er1
25510 ac_status=$?
25511 grep -v '^ *+' conftest.er1 >conftest.err
25512 rm -f conftest.er1
25513 cat conftest.err >&5
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); } &&
6ebeb4c7 25516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
25517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518 (eval $ac_try) 2>&5
25519 ac_status=$?
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); }; } &&
25522 { ac_try='test -s conftest.$ac_objext'
25523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25524 (eval $ac_try) 2>&5
25525 ac_status=$?
25526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527 (exit $ac_status); }; }; then
25528
25529 echo "$as_me:$LINENO: result: no" >&5
25530echo "${ECHO_T}no" >&6
25531
25532else
25533 echo "$as_me: failed program was:" >&5
25534sed 's/^/| /' conftest.$ac_ext >&5
25535
25536
25537 cat >>confdefs.h <<\_ACEOF
25538#define NEED_GTK_ICON_SIZE_LOOKUP 1
25539_ACEOF
25540
25541 echo "$as_me:$LINENO: result: yes" >&5
25542echo "${ECHO_T}yes" >&6
25543
25544fi
25545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25546
9755e73b
VS
25547 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25548echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25549 cat >conftest.$ac_ext <<_ACEOF
25550/* confdefs.h. */
25551_ACEOF
25552cat confdefs.h >>conftest.$ac_ext
25553cat >>conftest.$ac_ext <<_ACEOF
25554/* end confdefs.h. */
25555
25556 #include <gtk/gtk.h>
25557
25558int
25559main ()
25560{
25561
25562 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 25563 Not GTK+ 2.4
9755e73b
VS
25564 #endif
25565
25566 ;
25567 return 0;
25568}
25569_ACEOF
25570rm -f conftest.$ac_objext
25571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25572 (eval $ac_compile) 2>conftest.er1
25573 ac_status=$?
25574 grep -v '^ *+' conftest.er1 >conftest.err
25575 rm -f conftest.er1
25576 cat conftest.err >&5
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); } &&
6ebeb4c7 25579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25581 (eval $ac_try) 2>&5
25582 ac_status=$?
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); }; } &&
25585 { ac_try='test -s conftest.$ac_objext'
25586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25587 (eval $ac_try) 2>&5
25588 ac_status=$?
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); }; }; then
25591
25592 cat >>confdefs.h <<\_ACEOF
25593#define __WXGTK24__ 1
25594_ACEOF
25595
25596 echo "$as_me:$LINENO: result: yes" >&5
25597echo "${ECHO_T}yes" >&6
25598
25599else
25600 echo "$as_me: failed program was:" >&5
25601sed 's/^/| /' conftest.$ac_ext >&5
25602
25603
25604 echo "$as_me:$LINENO: result: no" >&5
25605echo "${ECHO_T}no" >&6
25606
25607fi
25608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25609
304205f1
VS
25610 CFLAGS="$save_CFLAGS"
25611 LIBS="$save_LIBS"
a848cd7e
SC
25612 else
25613 if test "$wxUSE_UNICODE" = "yes"; then
25614 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25615echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25616 wxUSE_UNICODE=no
25617 fi
25618 fi
25619
25620 if test "$USE_DARWIN" != 1; then
25621
25622for ac_func in poll
25623do
25624as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25625echo "$as_me:$LINENO: checking for $ac_func" >&5
25626echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25627if eval "test \"\${$as_ac_var+set}\" = set"; then
25628 echo $ECHO_N "(cached) $ECHO_C" >&6
25629else
25630 cat >conftest.$ac_ext <<_ACEOF
25631/* confdefs.h. */
25632_ACEOF
25633cat confdefs.h >>conftest.$ac_ext
25634cat >>conftest.$ac_ext <<_ACEOF
25635/* end confdefs.h. */
ac1cb8d3
VS
25636/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25638#define $ac_func innocuous_$ac_func
25639
a848cd7e
SC
25640/* System header to define __stub macros and hopefully few prototypes,
25641 which can conflict with char $ac_func (); below.
25642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25643 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25644
a848cd7e
SC
25645#ifdef __STDC__
25646# include <limits.h>
25647#else
25648# include <assert.h>
25649#endif
ac1cb8d3
VS
25650
25651#undef $ac_func
25652
a848cd7e
SC
25653/* Override any gcc2 internal prototype to avoid an error. */
25654#ifdef __cplusplus
25655extern "C"
25656{
25657#endif
25658/* We use char because int might match the return type of a gcc2
25659 builtin and then its argument prototype would still apply. */
25660char $ac_func ();
25661/* The GNU C library defines this for functions which it implements
25662 to always fail with ENOSYS. Some functions are actually named
25663 something starting with __ and the normal name is an alias. */
25664#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25665choke me
25666#else
25667char (*f) () = $ac_func;
25668#endif
25669#ifdef __cplusplus
25670}
25671#endif
25672
25673int
25674main ()
25675{
25676return f != $ac_func;
25677 ;
25678 return 0;
25679}
25680_ACEOF
25681rm -f conftest.$ac_objext conftest$ac_exeext
25682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25683 (eval $ac_link) 2>conftest.er1
a848cd7e 25684 ac_status=$?
ac1cb8d3
VS
25685 grep -v '^ *+' conftest.er1 >conftest.err
25686 rm -f conftest.er1
25687 cat conftest.err >&5
a848cd7e
SC
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); } &&
6ebeb4c7 25690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692 (eval $ac_try) 2>&5
25693 ac_status=$?
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; } &&
25696 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698 (eval $ac_try) 2>&5
25699 ac_status=$?
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); }; }; then
25702 eval "$as_ac_var=yes"
25703else
25704 echo "$as_me: failed program was:" >&5
25705sed 's/^/| /' conftest.$ac_ext >&5
25706
25707eval "$as_ac_var=no"
25708fi
ac1cb8d3
VS
25709rm -f conftest.err conftest.$ac_objext \
25710 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25711fi
25712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25713echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25714if test `eval echo '${'$as_ac_var'}'` = yes; then
25715 cat >>confdefs.h <<_ACEOF
25716#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25717_ACEOF
25718
25719fi
25720done
25721
25722 fi
25723
25724 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25725 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25726
25727 AFMINSTALL=afminstall
25728 TOOLKIT=GTK
25729 GUIDIST=GTK_DIST
25730
25731 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25732echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25733if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25734 echo $ECHO_N "(cached) $ECHO_C" >&6
25735else
25736 ac_check_lib_save_LIBS=$LIBS
25737LIBS="-lgdk $LIBS"
25738cat >conftest.$ac_ext <<_ACEOF
25739/* confdefs.h. */
25740_ACEOF
25741cat confdefs.h >>conftest.$ac_ext
25742cat >>conftest.$ac_ext <<_ACEOF
25743/* end confdefs.h. */
25744
25745/* Override any gcc2 internal prototype to avoid an error. */
25746#ifdef __cplusplus
25747extern "C"
25748#endif
25749/* We use char because int might match the return type of a gcc2
25750 builtin and then its argument prototype would still apply. */
25751char gdk_im_open ();
25752int
25753main ()
25754{
25755gdk_im_open ();
25756 ;
25757 return 0;
25758}
25759_ACEOF
25760rm -f conftest.$ac_objext conftest$ac_exeext
25761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25762 (eval $ac_link) 2>conftest.er1
a848cd7e 25763 ac_status=$?
ac1cb8d3
VS
25764 grep -v '^ *+' conftest.er1 >conftest.err
25765 rm -f conftest.er1
25766 cat conftest.err >&5
a848cd7e
SC
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); } &&
6ebeb4c7 25769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25771 (eval $ac_try) 2>&5
25772 ac_status=$?
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); }; } &&
25775 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25777 (eval $ac_try) 2>&5
25778 ac_status=$?
25779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780 (exit $ac_status); }; }; then
25781 ac_cv_lib_gdk_gdk_im_open=yes
25782else
25783 echo "$as_me: failed program was:" >&5
25784sed 's/^/| /' conftest.$ac_ext >&5
25785
25786ac_cv_lib_gdk_gdk_im_open=no
25787fi
ac1cb8d3
VS
25788rm -f conftest.err conftest.$ac_objext \
25789 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25790LIBS=$ac_check_lib_save_LIBS
25791fi
25792echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25793echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25794if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25795 cat >>confdefs.h <<\_ACEOF
25796#define HAVE_XIM 1
25797_ACEOF
25798
25799fi
25800
25801
25802
25803 if test "$wxUSE_GPE" = "yes"; then
25804 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25805echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25806
25807ac_find_libraries=
25808for ac_dir in $SEARCH_LIB /usr/lib;
25809 do
3eca31dc 25810 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
25811 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25812 ac_find_libraries=$ac_dir
25813 break 2
25814 fi
25815 done
25816 done
25817
25818 if test "$ac_find_libraries" != "" ; then
25819
25820 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25821 result=$?
25822 if test $result = 0; then
25823 ac_path_to_link=""
25824 else
25825 ac_path_to_link=" -L$ac_find_libraries"
25826 fi
25827
25828 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25829 WXGPE=1
25830 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25831echo "${ECHO_T}found at $ac_find_libraries" >&6
25832 else
25833 echo "$as_me:$LINENO: result: not found" >&5
25834echo "${ECHO_T}not found" >&6
25835 fi
25836
25837 fi
25838 fi
25839
25840 if test "$wxUSE_MGL" = 1; then
25841 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25842echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25843 if test "x$MGL_ROOT" = x ; then
25844 echo "$as_me:$LINENO: result: not found" >&5
25845echo "${ECHO_T}not found" >&6
25846 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25847echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25848 { (exit 1); exit 1; }; }
25849 else
25850 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25851echo "${ECHO_T}$MGL_ROOT" >&6
25852 fi
25853
25854 echo "$as_me:$LINENO: checking for libmgl location" >&5
25855echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25856 case "${host}" in
25857 *-*-linux* )
25858 if test "x$wxUSE_SHARED" = xyes ; then
25859 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25860 else
25861 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25862 fi
25863 ;;
25864 *-pc-msdosdjgpp )
25865 mgl_os_candidates="dos32/dj2"
25866 ;;
25867 *)
25868 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25869echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25870 { (exit 1); exit 1; }; }
25871 esac
25872
25873 mgl_lib_type=""
25874 mgl_os=""
25875
25876 for mgl_os_i in $mgl_os_candidates ; do
25877 if test "x$mgl_os" = x ; then
25878 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25879 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25880 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25881 mgl_lib_type=debug
25882 mgl_os=$mgl_os_i
25883 fi
25884 fi
25885 if test "x$mgl_lib_type" = x ; then
25886 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25887 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25888 mgl_lib_type=release
25889 mgl_os=$mgl_os_i
25890 fi
25891 fi
25892 fi
25893 done
25894
25895 if test "x$mgl_os" = x ; then
25896 echo "$as_me:$LINENO: result: not found" >&5
25897echo "${ECHO_T}not found" >&6
25898 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25899echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25900 { (exit 1); exit 1; }; }
25901 fi
25902 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25903echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25904
25905 wxUSE_UNIVERSAL="yes"
25906
25907 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25908 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25909
25910 AFMINSTALL=afminstall
25911 TOOLKIT=MGL
25912 GUIDIST=MGL_DIST
25913 fi
25914
25915 if test "$wxUSE_MICROWIN" = 1; then
25916 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25917echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25918 if test "x$MICROWINDOWS" = x ; then
25919 echo "$as_me:$LINENO: result: not found" >&5
25920echo "${ECHO_T}not found" >&6
25921 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25922echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25923 { (exit 1); exit 1; }; }
25924 else
25925 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25926echo "${ECHO_T}$MICROWINDOWS" >&6
25927 fi
25928
25929 if test -f $MICROWINDOWS/lib/libmwin.a; then
25930 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25931echo "${ECHO_T}MicroWindows' libraries found." >&6
25932 else
25933 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25934echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25935 { (exit 1); exit 1; }; }
25936 fi
25937
25938 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25939 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25940
25941 wxUSE_UNIVERSAL="yes"
25942
25943 AFMINSTALL=afminstall
25944 TOOLKIT=MICROWIN
25945 GUIDIST=MICROWIN_DIST
25946
25947 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25948 fi
25949
74b84332 25950 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6ebeb4c7
VZ
25951
25952if test "x$ac_path_x_has_been_run" != xyes; then
25953 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25954echo $ECHO_N "checking for X... $ECHO_C" >&6
25955
6ebeb4c7 25956ac_path_x_has_been_run=yes
a848cd7e
SC
25957
25958# Check whether --with-x or --without-x was given.
25959if test "${with_x+set}" = set; then
25960 withval="$with_x"
25961
25962fi;
25963# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25964if test "x$with_x" = xno; then
25965 # The user explicitly disabled X.
25966 have_x=disabled
25967else
25968 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25969 # Both variables are already set.
25970 have_x=yes
25971 else
25972 if test "${ac_cv_have_x+set}" = set; then
25973 echo $ECHO_N "(cached) $ECHO_C" >&6
25974else
25975 # One or both of the vars are not set, and there is no cached value.
25976ac_x_includes=no ac_x_libraries=no
25977rm -fr conftest.dir
25978if mkdir conftest.dir; then
25979 cd conftest.dir
25980 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25981 cat >Imakefile <<'_ACEOF'
25982acfindx:
25983 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25984_ACEOF
25985 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25986 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25987 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25988 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25989 for ac_extension in a so sl; do
25990 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25991 test -f $ac_im_libdir/libX11.$ac_extension; then
25992 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25993 fi
25994 done
25995 # Screen out bogus values from the imake configuration. They are
25996 # bogus both because they are the default anyway, and because
25997 # using them would break gcc on systems where it needs fixed includes.
25998 case $ac_im_incroot in
25999 /usr/include) ;;
26000 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26001 esac
26002 case $ac_im_usrlibdir in
26003 /usr/lib | /lib) ;;
26004 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26005 esac
26006 fi
26007 cd ..
26008 rm -fr conftest.dir
26009fi
26010
26011# Standard set of common directories for X headers.
26012# Check X11 before X11Rn because it is often a symlink to the current release.
26013ac_x_header_dirs='
26014/usr/X11/include
26015/usr/X11R6/include
26016/usr/X11R5/include
26017/usr/X11R4/include
26018
26019/usr/include/X11
26020/usr/include/X11R6
26021/usr/include/X11R5
26022/usr/include/X11R4
26023
26024/usr/local/X11/include
26025/usr/local/X11R6/include
26026/usr/local/X11R5/include
26027/usr/local/X11R4/include
26028
26029/usr/local/include/X11
26030/usr/local/include/X11R6
26031/usr/local/include/X11R5
26032/usr/local/include/X11R4
26033
26034/usr/X386/include
26035/usr/x386/include
26036/usr/XFree86/include/X11
26037
26038/usr/include
26039/usr/local/include
26040/usr/unsupported/include
26041/usr/athena/include
26042/usr/local/x11r5/include
26043/usr/lpp/Xamples/include
26044
26045/usr/openwin/include
26046/usr/openwin/share/include'
26047
26048if test "$ac_x_includes" = no; then
6ebeb4c7 26049 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
26050 # First, try using that file with no special directory specified.
26051 cat >conftest.$ac_ext <<_ACEOF
26052/* confdefs.h. */
26053_ACEOF
26054cat confdefs.h >>conftest.$ac_ext
26055cat >>conftest.$ac_ext <<_ACEOF
26056/* end confdefs.h. */
26057#include <X11/Intrinsic.h>
26058_ACEOF
26059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26061 ac_status=$?
26062 grep -v '^ *+' conftest.er1 >conftest.err
26063 rm -f conftest.er1
26064 cat conftest.err >&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); } >/dev/null; then
26067 if test -s conftest.err; then
26068 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26070 else
26071 ac_cpp_err=
26072 fi
26073else
26074 ac_cpp_err=yes
26075fi
26076if test -z "$ac_cpp_err"; then
26077 # We can compile using X headers with no special include directory.
26078ac_x_includes=
26079else
26080 echo "$as_me: failed program was:" >&5
26081sed 's/^/| /' conftest.$ac_ext >&5
26082
26083 for ac_dir in $ac_x_header_dirs; do
26084 if test -r "$ac_dir/X11/Intrinsic.h"; then
26085 ac_x_includes=$ac_dir
26086 break
26087 fi
26088done
26089fi
26090rm -f conftest.err conftest.$ac_ext
26091fi # $ac_x_includes = no
26092
26093if test "$ac_x_libraries" = no; then
26094 # Check for the libraries.
26095 # See if we find them without any special options.
26096 # Don't add to $LIBS permanently.
26097 ac_save_LIBS=$LIBS
26098 LIBS="-lXt $LIBS"
26099 cat >conftest.$ac_ext <<_ACEOF
26100/* confdefs.h. */
26101_ACEOF
26102cat confdefs.h >>conftest.$ac_ext
26103cat >>conftest.$ac_ext <<_ACEOF
26104/* end confdefs.h. */
26105#include <X11/Intrinsic.h>
26106int
26107main ()
26108{
26109XtMalloc (0)
26110 ;
26111 return 0;
26112}
26113_ACEOF
26114rm -f conftest.$ac_objext conftest$ac_exeext
26115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26116 (eval $ac_link) 2>conftest.er1
a848cd7e 26117 ac_status=$?
ac1cb8d3
VS
26118 grep -v '^ *+' conftest.er1 >conftest.err
26119 rm -f conftest.er1
26120 cat conftest.err >&5
a848cd7e
SC
26121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122 (exit $ac_status); } &&
6ebeb4c7 26123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125 (eval $ac_try) 2>&5
26126 ac_status=$?
26127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128 (exit $ac_status); }; } &&
26129 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26131 (eval $ac_try) 2>&5
26132 ac_status=$?
26133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134 (exit $ac_status); }; }; then
26135 LIBS=$ac_save_LIBS
26136# We can link X programs with no special library path.
26137ac_x_libraries=
26138else
26139 echo "$as_me: failed program was:" >&5
26140sed 's/^/| /' conftest.$ac_ext >&5
26141
26142LIBS=$ac_save_LIBS
26143for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26144do
26145 # Don't even attempt the hair of trying to link an X program!
26146 for ac_extension in a so sl; do
26147 if test -r $ac_dir/libXt.$ac_extension; then
26148 ac_x_libraries=$ac_dir
26149 break 2
26150 fi
26151 done
26152done
26153fi
ac1cb8d3
VS
26154rm -f conftest.err conftest.$ac_objext \
26155 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26156fi # $ac_x_libraries = no
26157
26158if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26159 # Didn't find X anywhere. Cache the known absence of X.
26160 ac_cv_have_x="have_x=no"
26161else
26162 # Record where we found X for the cache.
26163 ac_cv_have_x="have_x=yes \
ac1cb8d3 26164 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26165fi
26166fi
26167
26168 fi
26169 eval "$ac_cv_have_x"
26170fi # $with_x != no
26171
26172if test "$have_x" != yes; then
26173 echo "$as_me:$LINENO: result: $have_x" >&5
26174echo "${ECHO_T}$have_x" >&6
26175 no_x=yes
26176else
26177 # If each of the values was on the command line, it overrides each guess.
26178 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26179 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26180 # Update the cache value to reflect the command line values.
26181 ac_cv_have_x="have_x=yes \
26182 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6ebeb4c7
VZ
26183 # It might be that x_includes is empty (headers are found in the
26184 # standard search path. Then output the corresponding message
26185 ac_out_x_includes=$x_includes
26186 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26187 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26188echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26189fi
26190
6ebeb4c7 26191fi
a848cd7e
SC
26192if test "$no_x" = yes; then
26193 # Not all programs may use this symbol, but it does not hurt to define it.
26194
26195cat >>confdefs.h <<\_ACEOF
26196#define X_DISPLAY_MISSING 1
26197_ACEOF
26198
26199 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26200else
26201 if test -n "$x_includes"; then
26202 X_CFLAGS="$X_CFLAGS -I$x_includes"
26203 fi
26204
26205 # It would also be nice to do this for all -L options, not just this one.
26206 if test -n "$x_libraries"; then
26207 X_LIBS="$X_LIBS -L$x_libraries"
26208 # For Solaris; some versions of Sun CC require a space after -R and
26209 # others require no space. Words are not sufficient . . . .
26210 case `(uname -sr) 2>/dev/null` in
26211 "SunOS 5"*)
26212 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26213echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26214 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26215 cat >conftest.$ac_ext <<_ACEOF
26216/* confdefs.h. */
26217_ACEOF
26218cat confdefs.h >>conftest.$ac_ext
26219cat >>conftest.$ac_ext <<_ACEOF
26220/* end confdefs.h. */
26221
26222int
26223main ()
26224{
26225
26226 ;
26227 return 0;
26228}
26229_ACEOF
26230rm -f conftest.$ac_objext conftest$ac_exeext
26231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26232 (eval $ac_link) 2>conftest.er1
a848cd7e 26233 ac_status=$?
ac1cb8d3
VS
26234 grep -v '^ *+' conftest.er1 >conftest.err
26235 rm -f conftest.er1
26236 cat conftest.err >&5
a848cd7e
SC
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); } &&
6ebeb4c7 26239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241 (eval $ac_try) 2>&5
26242 ac_status=$?
26243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); }; } &&
26245 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26247 (eval $ac_try) 2>&5
26248 ac_status=$?
26249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250 (exit $ac_status); }; }; then
26251 ac_R_nospace=yes
26252else
26253 echo "$as_me: failed program was:" >&5
26254sed 's/^/| /' conftest.$ac_ext >&5
26255
26256ac_R_nospace=no
26257fi
ac1cb8d3
VS
26258rm -f conftest.err conftest.$ac_objext \
26259 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26260 if test $ac_R_nospace = yes; then
26261 echo "$as_me:$LINENO: result: no" >&5
26262echo "${ECHO_T}no" >&6
26263 X_LIBS="$X_LIBS -R$x_libraries"
26264 else
26265 LIBS="$ac_xsave_LIBS -R $x_libraries"
26266 cat >conftest.$ac_ext <<_ACEOF
26267/* confdefs.h. */
26268_ACEOF
26269cat confdefs.h >>conftest.$ac_ext
26270cat >>conftest.$ac_ext <<_ACEOF
26271/* end confdefs.h. */
26272
26273int
26274main ()
26275{
26276
26277 ;
26278 return 0;
26279}
26280_ACEOF
26281rm -f conftest.$ac_objext conftest$ac_exeext
26282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26283 (eval $ac_link) 2>conftest.er1
a848cd7e 26284 ac_status=$?
ac1cb8d3
VS
26285 grep -v '^ *+' conftest.er1 >conftest.err
26286 rm -f conftest.er1
26287 cat conftest.err >&5
a848cd7e
SC
26288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289 (exit $ac_status); } &&
6ebeb4c7 26290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26292 (eval $ac_try) 2>&5
26293 ac_status=$?
26294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26295 (exit $ac_status); }; } &&
26296 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26298 (eval $ac_try) 2>&5
26299 ac_status=$?
26300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301 (exit $ac_status); }; }; then
26302 ac_R_space=yes
26303else
26304 echo "$as_me: failed program was:" >&5
26305sed 's/^/| /' conftest.$ac_ext >&5
26306
26307ac_R_space=no
26308fi
ac1cb8d3
VS
26309rm -f conftest.err conftest.$ac_objext \
26310 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26311 if test $ac_R_space = yes; then
26312 echo "$as_me:$LINENO: result: yes" >&5
26313echo "${ECHO_T}yes" >&6
26314 X_LIBS="$X_LIBS -R $x_libraries"
26315 else
26316 echo "$as_me:$LINENO: result: neither works" >&5
26317echo "${ECHO_T}neither works" >&6
26318 fi
26319 fi
26320 LIBS=$ac_xsave_LIBS
26321 esac
26322 fi
26323
26324 # Check for system-dependent libraries X programs must link with.
26325 # Do this before checking for the system-independent R6 libraries
26326 # (-lICE), since we may need -lsocket or whatever for X linking.
26327
26328 if test "$ISC" = yes; then
26329 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26330 else
26331 # Martyn Johnson says this is needed for Ultrix, if the X
26332 # libraries were built with DECnet support. And Karl Berry says
26333 # the Alpha needs dnet_stub (dnet does not exist).
26334 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26335 cat >conftest.$ac_ext <<_ACEOF
26336/* confdefs.h. */
26337_ACEOF
26338cat confdefs.h >>conftest.$ac_ext
26339cat >>conftest.$ac_ext <<_ACEOF
26340/* end confdefs.h. */
26341
26342/* Override any gcc2 internal prototype to avoid an error. */
26343#ifdef __cplusplus
26344extern "C"
26345#endif
26346/* We use char because int might match the return type of a gcc2
26347 builtin and then its argument prototype would still apply. */
26348char XOpenDisplay ();
26349int
26350main ()
26351{
26352XOpenDisplay ();
26353 ;
26354 return 0;
26355}
26356_ACEOF
26357rm -f conftest.$ac_objext conftest$ac_exeext
26358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26359 (eval $ac_link) 2>conftest.er1
a848cd7e 26360 ac_status=$?
ac1cb8d3
VS
26361 grep -v '^ *+' conftest.er1 >conftest.err
26362 rm -f conftest.er1
26363 cat conftest.err >&5
a848cd7e
SC
26364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365 (exit $ac_status); } &&
6ebeb4c7 26366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26368 (eval $ac_try) 2>&5
26369 ac_status=$?
26370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26371 (exit $ac_status); }; } &&
26372 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26374 (eval $ac_try) 2>&5
26375 ac_status=$?
26376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); }; }; then
26378 :
26379else
26380 echo "$as_me: failed program was:" >&5
26381sed 's/^/| /' conftest.$ac_ext >&5
26382
26383echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26384echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26385if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26386 echo $ECHO_N "(cached) $ECHO_C" >&6
26387else
26388 ac_check_lib_save_LIBS=$LIBS
26389LIBS="-ldnet $LIBS"
26390cat >conftest.$ac_ext <<_ACEOF
26391/* confdefs.h. */
26392_ACEOF
26393cat confdefs.h >>conftest.$ac_ext
26394cat >>conftest.$ac_ext <<_ACEOF
26395/* end confdefs.h. */
26396
26397/* Override any gcc2 internal prototype to avoid an error. */
26398#ifdef __cplusplus
26399extern "C"
26400#endif
26401/* We use char because int might match the return type of a gcc2
26402 builtin and then its argument prototype would still apply. */
26403char dnet_ntoa ();
26404int
26405main ()
26406{
26407dnet_ntoa ();
26408 ;
26409 return 0;
26410}
26411_ACEOF
26412rm -f conftest.$ac_objext conftest$ac_exeext
26413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26414 (eval $ac_link) 2>conftest.er1
a848cd7e 26415 ac_status=$?
ac1cb8d3
VS
26416 grep -v '^ *+' conftest.er1 >conftest.err
26417 rm -f conftest.er1
26418 cat conftest.err >&5
a848cd7e
SC
26419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420 (exit $ac_status); } &&
6ebeb4c7 26421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26423 (eval $ac_try) 2>&5
26424 ac_status=$?
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); }; } &&
26427 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26429 (eval $ac_try) 2>&5
26430 ac_status=$?
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); }; }; then
26433 ac_cv_lib_dnet_dnet_ntoa=yes
26434else
26435 echo "$as_me: failed program was:" >&5
26436sed 's/^/| /' conftest.$ac_ext >&5
26437
26438ac_cv_lib_dnet_dnet_ntoa=no
26439fi
ac1cb8d3
VS
26440rm -f conftest.err conftest.$ac_objext \
26441 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26442LIBS=$ac_check_lib_save_LIBS
26443fi
26444echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26445echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26446if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26447 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26448fi
26449
26450 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26451 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26452echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26453if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26454 echo $ECHO_N "(cached) $ECHO_C" >&6
26455else
26456 ac_check_lib_save_LIBS=$LIBS
26457LIBS="-ldnet_stub $LIBS"
26458cat >conftest.$ac_ext <<_ACEOF
26459/* confdefs.h. */
26460_ACEOF
26461cat confdefs.h >>conftest.$ac_ext
26462cat >>conftest.$ac_ext <<_ACEOF
26463/* end confdefs.h. */
26464
26465/* Override any gcc2 internal prototype to avoid an error. */
26466#ifdef __cplusplus
26467extern "C"
26468#endif
26469/* We use char because int might match the return type of a gcc2
26470 builtin and then its argument prototype would still apply. */
26471char dnet_ntoa ();
26472int
26473main ()
26474{
26475dnet_ntoa ();
26476 ;
26477 return 0;
26478}
26479_ACEOF
26480rm -f conftest.$ac_objext conftest$ac_exeext
26481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26482 (eval $ac_link) 2>conftest.er1
a848cd7e 26483 ac_status=$?
ac1cb8d3
VS
26484 grep -v '^ *+' conftest.er1 >conftest.err
26485 rm -f conftest.er1
26486 cat conftest.err >&5
a848cd7e
SC
26487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488 (exit $ac_status); } &&
6ebeb4c7 26489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26491 (eval $ac_try) 2>&5
26492 ac_status=$?
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); }; } &&
26495 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26497 (eval $ac_try) 2>&5
26498 ac_status=$?
26499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500 (exit $ac_status); }; }; then
26501 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26502else
26503 echo "$as_me: failed program was:" >&5
26504sed 's/^/| /' conftest.$ac_ext >&5
26505
26506ac_cv_lib_dnet_stub_dnet_ntoa=no
26507fi
ac1cb8d3
VS
26508rm -f conftest.err conftest.$ac_objext \
26509 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26510LIBS=$ac_check_lib_save_LIBS
26511fi
26512echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26513echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26514if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26515 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26516fi
26517
26518 fi
26519fi
ac1cb8d3
VS
26520rm -f conftest.err conftest.$ac_objext \
26521 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26522 LIBS="$ac_xsave_LIBS"
26523
26524 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26525 # to get the SysV transport functions.
26526 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26527 # needs -lnsl.
26528 # The nsl library prevents programs from opening the X display
26529 # on Irix 5.2, according to T.E. Dickey.
26530 # The functions gethostbyname, getservbyname, and inet_addr are
26531 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26532 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26533echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26534if test "${ac_cv_func_gethostbyname+set}" = set; then
26535 echo $ECHO_N "(cached) $ECHO_C" >&6
26536else
26537 cat >conftest.$ac_ext <<_ACEOF
26538/* confdefs.h. */
26539_ACEOF
26540cat confdefs.h >>conftest.$ac_ext
26541cat >>conftest.$ac_ext <<_ACEOF
26542/* end confdefs.h. */
ac1cb8d3
VS
26543/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26545#define gethostbyname innocuous_gethostbyname
26546
a848cd7e
SC
26547/* System header to define __stub macros and hopefully few prototypes,
26548 which can conflict with char gethostbyname (); below.
26549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26550 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26551
a848cd7e
SC
26552#ifdef __STDC__
26553# include <limits.h>
26554#else
26555# include <assert.h>
26556#endif
ac1cb8d3
VS
26557
26558#undef gethostbyname
26559
a848cd7e
SC
26560/* Override any gcc2 internal prototype to avoid an error. */
26561#ifdef __cplusplus
26562extern "C"
26563{
26564#endif
26565/* We use char because int might match the return type of a gcc2
26566 builtin and then its argument prototype would still apply. */
26567char gethostbyname ();
26568/* The GNU C library defines this for functions which it implements
26569 to always fail with ENOSYS. Some functions are actually named
26570 something starting with __ and the normal name is an alias. */
26571#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26572choke me
26573#else
26574char (*f) () = gethostbyname;
26575#endif
26576#ifdef __cplusplus
26577}
26578#endif
26579
26580int
26581main ()
26582{
26583return f != gethostbyname;
26584 ;
26585 return 0;
26586}
26587_ACEOF
26588rm -f conftest.$ac_objext conftest$ac_exeext
26589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26590 (eval $ac_link) 2>conftest.er1
a848cd7e 26591 ac_status=$?
ac1cb8d3
VS
26592 grep -v '^ *+' conftest.er1 >conftest.err
26593 rm -f conftest.er1
26594 cat conftest.err >&5
a848cd7e
SC
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); } &&
6ebeb4c7 26597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26599 (eval $ac_try) 2>&5
26600 ac_status=$?
26601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602 (exit $ac_status); }; } &&
26603 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26605 (eval $ac_try) 2>&5
26606 ac_status=$?
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); }; }; then
26609 ac_cv_func_gethostbyname=yes
26610else
26611 echo "$as_me: failed program was:" >&5
26612sed 's/^/| /' conftest.$ac_ext >&5
26613
26614ac_cv_func_gethostbyname=no
26615fi
ac1cb8d3
VS
26616rm -f conftest.err conftest.$ac_objext \
26617 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26618fi
26619echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26620echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26621
26622 if test $ac_cv_func_gethostbyname = no; then
26623 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26624echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26625if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26626 echo $ECHO_N "(cached) $ECHO_C" >&6
26627else
26628 ac_check_lib_save_LIBS=$LIBS
26629LIBS="-lnsl $LIBS"
26630cat >conftest.$ac_ext <<_ACEOF
26631/* confdefs.h. */
26632_ACEOF
26633cat confdefs.h >>conftest.$ac_ext
26634cat >>conftest.$ac_ext <<_ACEOF
26635/* end confdefs.h. */
26636
26637/* Override any gcc2 internal prototype to avoid an error. */
26638#ifdef __cplusplus
26639extern "C"
26640#endif
26641/* We use char because int might match the return type of a gcc2
26642 builtin and then its argument prototype would still apply. */
26643char gethostbyname ();
26644int
26645main ()
26646{
26647gethostbyname ();
26648 ;
26649 return 0;
26650}
26651_ACEOF
26652rm -f conftest.$ac_objext conftest$ac_exeext
26653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26654 (eval $ac_link) 2>conftest.er1
26655 ac_status=$?
26656 grep -v '^ *+' conftest.er1 >conftest.err
26657 rm -f conftest.er1
26658 cat conftest.err >&5
26659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660 (exit $ac_status); } &&
6ebeb4c7 26661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26663 (eval $ac_try) 2>&5
26664 ac_status=$?
26665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666 (exit $ac_status); }; } &&
26667 { ac_try='test -s conftest$ac_exeext'
26668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26669 (eval $ac_try) 2>&5
26670 ac_status=$?
26671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672 (exit $ac_status); }; }; then
26673 ac_cv_lib_nsl_gethostbyname=yes
26674else
26675 echo "$as_me: failed program was:" >&5
26676sed 's/^/| /' conftest.$ac_ext >&5
26677
26678ac_cv_lib_nsl_gethostbyname=no
26679fi
26680rm -f conftest.err conftest.$ac_objext \
26681 conftest$ac_exeext conftest.$ac_ext
26682LIBS=$ac_check_lib_save_LIBS
26683fi
26684echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26685echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26686if test $ac_cv_lib_nsl_gethostbyname = yes; then
26687 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26688fi
26689
26690 if test $ac_cv_lib_nsl_gethostbyname = no; then
26691 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26692echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26693if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26694 echo $ECHO_N "(cached) $ECHO_C" >&6
26695else
26696 ac_check_lib_save_LIBS=$LIBS
26697LIBS="-lbsd $LIBS"
26698cat >conftest.$ac_ext <<_ACEOF
26699/* confdefs.h. */
26700_ACEOF
26701cat confdefs.h >>conftest.$ac_ext
26702cat >>conftest.$ac_ext <<_ACEOF
26703/* end confdefs.h. */
26704
26705/* Override any gcc2 internal prototype to avoid an error. */
26706#ifdef __cplusplus
26707extern "C"
26708#endif
26709/* We use char because int might match the return type of a gcc2
26710 builtin and then its argument prototype would still apply. */
26711char gethostbyname ();
26712int
26713main ()
26714{
26715gethostbyname ();
26716 ;
26717 return 0;
26718}
26719_ACEOF
26720rm -f conftest.$ac_objext conftest$ac_exeext
26721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26722 (eval $ac_link) 2>conftest.er1
a848cd7e 26723 ac_status=$?
ac1cb8d3
VS
26724 grep -v '^ *+' conftest.er1 >conftest.err
26725 rm -f conftest.er1
26726 cat conftest.err >&5
a848cd7e
SC
26727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728 (exit $ac_status); } &&
6ebeb4c7 26729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26731 (eval $ac_try) 2>&5
26732 ac_status=$?
26733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26734 (exit $ac_status); }; } &&
26735 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26737 (eval $ac_try) 2>&5
26738 ac_status=$?
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); }; }; then
26741 ac_cv_lib_bsd_gethostbyname=yes
26742else
26743 echo "$as_me: failed program was:" >&5
26744sed 's/^/| /' conftest.$ac_ext >&5
26745
26746ac_cv_lib_bsd_gethostbyname=no
26747fi
ac1cb8d3
VS
26748rm -f conftest.err conftest.$ac_objext \
26749 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26750LIBS=$ac_check_lib_save_LIBS
26751fi
26752echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26753echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26754if test $ac_cv_lib_bsd_gethostbyname = yes; then
26755 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26756fi
26757
26758 fi
26759 fi
26760
26761 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26762 # socket/setsockopt and other routines are undefined under SCO ODT
26763 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26764 # on later versions), says Simon Leinen: it contains gethostby*
26765 # variants that don't use the name server (or something). -lsocket
26766 # must be given before -lnsl if both are needed. We assume that
26767 # if connect needs -lnsl, so does gethostbyname.
26768 echo "$as_me:$LINENO: checking for connect" >&5
26769echo $ECHO_N "checking for connect... $ECHO_C" >&6
26770if test "${ac_cv_func_connect+set}" = set; then
26771 echo $ECHO_N "(cached) $ECHO_C" >&6
26772else
26773 cat >conftest.$ac_ext <<_ACEOF
26774/* confdefs.h. */
26775_ACEOF
26776cat confdefs.h >>conftest.$ac_ext
26777cat >>conftest.$ac_ext <<_ACEOF
26778/* end confdefs.h. */
ac1cb8d3
VS
26779/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26781#define connect innocuous_connect
26782
a848cd7e
SC
26783/* System header to define __stub macros and hopefully few prototypes,
26784 which can conflict with char connect (); below.
26785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26786 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26787
a848cd7e
SC
26788#ifdef __STDC__
26789# include <limits.h>
26790#else
26791# include <assert.h>
26792#endif
ac1cb8d3
VS
26793
26794#undef connect
26795
a848cd7e
SC
26796/* Override any gcc2 internal prototype to avoid an error. */
26797#ifdef __cplusplus
26798extern "C"
26799{
26800#endif
26801/* We use char because int might match the return type of a gcc2
26802 builtin and then its argument prototype would still apply. */
26803char connect ();
26804/* The GNU C library defines this for functions which it implements
26805 to always fail with ENOSYS. Some functions are actually named
26806 something starting with __ and the normal name is an alias. */
26807#if defined (__stub_connect) || defined (__stub___connect)
26808choke me
26809#else
26810char (*f) () = connect;
26811#endif
26812#ifdef __cplusplus
26813}
26814#endif
26815
26816int
26817main ()
26818{
26819return f != connect;
26820 ;
26821 return 0;
26822}
26823_ACEOF
26824rm -f conftest.$ac_objext conftest$ac_exeext
26825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26826 (eval $ac_link) 2>conftest.er1
a848cd7e 26827 ac_status=$?
ac1cb8d3
VS
26828 grep -v '^ *+' conftest.er1 >conftest.err
26829 rm -f conftest.er1
26830 cat conftest.err >&5
a848cd7e
SC
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); } &&
6ebeb4c7 26833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26835 (eval $ac_try) 2>&5
26836 ac_status=$?
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); }; } &&
26839 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26841 (eval $ac_try) 2>&5
26842 ac_status=$?
26843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844 (exit $ac_status); }; }; then
26845 ac_cv_func_connect=yes
26846else
26847 echo "$as_me: failed program was:" >&5
26848sed 's/^/| /' conftest.$ac_ext >&5
26849
26850ac_cv_func_connect=no
26851fi
ac1cb8d3
VS
26852rm -f conftest.err conftest.$ac_objext \
26853 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26854fi
26855echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26856echo "${ECHO_T}$ac_cv_func_connect" >&6
26857
26858 if test $ac_cv_func_connect = no; then
26859 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26860echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26861if test "${ac_cv_lib_socket_connect+set}" = set; then
26862 echo $ECHO_N "(cached) $ECHO_C" >&6
26863else
26864 ac_check_lib_save_LIBS=$LIBS
26865LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26866cat >conftest.$ac_ext <<_ACEOF
26867/* confdefs.h. */
26868_ACEOF
26869cat confdefs.h >>conftest.$ac_ext
26870cat >>conftest.$ac_ext <<_ACEOF
26871/* end confdefs.h. */
26872
26873/* Override any gcc2 internal prototype to avoid an error. */
26874#ifdef __cplusplus
26875extern "C"
26876#endif
26877/* We use char because int might match the return type of a gcc2
26878 builtin and then its argument prototype would still apply. */
26879char connect ();
26880int
26881main ()
26882{
26883connect ();
26884 ;
26885 return 0;
26886}
26887_ACEOF
26888rm -f conftest.$ac_objext conftest$ac_exeext
26889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26890 (eval $ac_link) 2>conftest.er1
a848cd7e 26891 ac_status=$?
ac1cb8d3
VS
26892 grep -v '^ *+' conftest.er1 >conftest.err
26893 rm -f conftest.er1
26894 cat conftest.err >&5
a848cd7e
SC
26895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896 (exit $ac_status); } &&
6ebeb4c7 26897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26899 (eval $ac_try) 2>&5
26900 ac_status=$?
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); }; } &&
26903 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26905 (eval $ac_try) 2>&5
26906 ac_status=$?
26907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908 (exit $ac_status); }; }; then
26909 ac_cv_lib_socket_connect=yes
26910else
26911 echo "$as_me: failed program was:" >&5
26912sed 's/^/| /' conftest.$ac_ext >&5
26913
26914ac_cv_lib_socket_connect=no
26915fi
ac1cb8d3
VS
26916rm -f conftest.err conftest.$ac_objext \
26917 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26918LIBS=$ac_check_lib_save_LIBS
26919fi
26920echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26921echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26922if test $ac_cv_lib_socket_connect = yes; then
26923 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26924fi
26925
26926 fi
26927
26928 # Guillermo Gomez says -lposix is necessary on A/UX.
26929 echo "$as_me:$LINENO: checking for remove" >&5
26930echo $ECHO_N "checking for remove... $ECHO_C" >&6
26931if test "${ac_cv_func_remove+set}" = set; then
26932 echo $ECHO_N "(cached) $ECHO_C" >&6
26933else
26934 cat >conftest.$ac_ext <<_ACEOF
26935/* confdefs.h. */
26936_ACEOF
26937cat confdefs.h >>conftest.$ac_ext
26938cat >>conftest.$ac_ext <<_ACEOF
26939/* end confdefs.h. */
ac1cb8d3
VS
26940/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26942#define remove innocuous_remove
26943
a848cd7e
SC
26944/* System header to define __stub macros and hopefully few prototypes,
26945 which can conflict with char remove (); below.
26946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26947 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26948
a848cd7e
SC
26949#ifdef __STDC__
26950# include <limits.h>
26951#else
26952# include <assert.h>
26953#endif
ac1cb8d3
VS
26954
26955#undef remove
26956
a848cd7e
SC
26957/* Override any gcc2 internal prototype to avoid an error. */
26958#ifdef __cplusplus
26959extern "C"
26960{
26961#endif
26962/* We use char because int might match the return type of a gcc2
26963 builtin and then its argument prototype would still apply. */
26964char remove ();
26965/* The GNU C library defines this for functions which it implements
26966 to always fail with ENOSYS. Some functions are actually named
26967 something starting with __ and the normal name is an alias. */
26968#if defined (__stub_remove) || defined (__stub___remove)
26969choke me
26970#else
26971char (*f) () = remove;
26972#endif
26973#ifdef __cplusplus
26974}
26975#endif
26976
26977int
26978main ()
26979{
26980return f != remove;
26981 ;
26982 return 0;
26983}
26984_ACEOF
26985rm -f conftest.$ac_objext conftest$ac_exeext
26986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26987 (eval $ac_link) 2>conftest.er1
a848cd7e 26988 ac_status=$?
ac1cb8d3
VS
26989 grep -v '^ *+' conftest.er1 >conftest.err
26990 rm -f conftest.er1
26991 cat conftest.err >&5
a848cd7e
SC
26992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); } &&
6ebeb4c7 26994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26996 (eval $ac_try) 2>&5
26997 ac_status=$?
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); }; } &&
27000 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27002 (eval $ac_try) 2>&5
27003 ac_status=$?
27004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005 (exit $ac_status); }; }; then
27006 ac_cv_func_remove=yes
27007else
27008 echo "$as_me: failed program was:" >&5
27009sed 's/^/| /' conftest.$ac_ext >&5
27010
27011ac_cv_func_remove=no
27012fi
ac1cb8d3
VS
27013rm -f conftest.err conftest.$ac_objext \
27014 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27015fi
27016echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27017echo "${ECHO_T}$ac_cv_func_remove" >&6
27018
27019 if test $ac_cv_func_remove = no; then
27020 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27021echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27022if test "${ac_cv_lib_posix_remove+set}" = set; then
27023 echo $ECHO_N "(cached) $ECHO_C" >&6
27024else
27025 ac_check_lib_save_LIBS=$LIBS
27026LIBS="-lposix $LIBS"
27027cat >conftest.$ac_ext <<_ACEOF
27028/* confdefs.h. */
27029_ACEOF
27030cat confdefs.h >>conftest.$ac_ext
27031cat >>conftest.$ac_ext <<_ACEOF
27032/* end confdefs.h. */
27033
27034/* Override any gcc2 internal prototype to avoid an error. */
27035#ifdef __cplusplus
27036extern "C"
27037#endif
27038/* We use char because int might match the return type of a gcc2
27039 builtin and then its argument prototype would still apply. */
27040char remove ();
27041int
27042main ()
27043{
27044remove ();
27045 ;
27046 return 0;
27047}
27048_ACEOF
27049rm -f conftest.$ac_objext conftest$ac_exeext
27050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27051 (eval $ac_link) 2>conftest.er1
a848cd7e 27052 ac_status=$?
ac1cb8d3
VS
27053 grep -v '^ *+' conftest.er1 >conftest.err
27054 rm -f conftest.er1
27055 cat conftest.err >&5
a848cd7e
SC
27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057 (exit $ac_status); } &&
6ebeb4c7 27058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060 (eval $ac_try) 2>&5
27061 ac_status=$?
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); }; } &&
27064 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27066 (eval $ac_try) 2>&5
27067 ac_status=$?
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); }; }; then
27070 ac_cv_lib_posix_remove=yes
27071else
27072 echo "$as_me: failed program was:" >&5
27073sed 's/^/| /' conftest.$ac_ext >&5
27074
27075ac_cv_lib_posix_remove=no
27076fi
ac1cb8d3
VS
27077rm -f conftest.err conftest.$ac_objext \
27078 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27079LIBS=$ac_check_lib_save_LIBS
27080fi
27081echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27082echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27083if test $ac_cv_lib_posix_remove = yes; then
27084 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27085fi
27086
27087 fi
27088
27089 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27090 echo "$as_me:$LINENO: checking for shmat" >&5
27091echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27092if test "${ac_cv_func_shmat+set}" = set; then
27093 echo $ECHO_N "(cached) $ECHO_C" >&6
27094else
27095 cat >conftest.$ac_ext <<_ACEOF
27096/* confdefs.h. */
27097_ACEOF
27098cat confdefs.h >>conftest.$ac_ext
27099cat >>conftest.$ac_ext <<_ACEOF
27100/* end confdefs.h. */
ac1cb8d3
VS
27101/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27103#define shmat innocuous_shmat
27104
a848cd7e
SC
27105/* System header to define __stub macros and hopefully few prototypes,
27106 which can conflict with char shmat (); below.
27107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27108 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27109
a848cd7e
SC
27110#ifdef __STDC__
27111# include <limits.h>
27112#else
27113# include <assert.h>
27114#endif
ac1cb8d3
VS
27115
27116#undef shmat
27117
a848cd7e
SC
27118/* Override any gcc2 internal prototype to avoid an error. */
27119#ifdef __cplusplus
27120extern "C"
27121{
27122#endif
27123/* We use char because int might match the return type of a gcc2
27124 builtin and then its argument prototype would still apply. */
27125char shmat ();
27126/* The GNU C library defines this for functions which it implements
27127 to always fail with ENOSYS. Some functions are actually named
27128 something starting with __ and the normal name is an alias. */
27129#if defined (__stub_shmat) || defined (__stub___shmat)
27130choke me
27131#else
27132char (*f) () = shmat;
27133#endif
27134#ifdef __cplusplus
27135}
27136#endif
27137
27138int
27139main ()
27140{
27141return f != shmat;
27142 ;
27143 return 0;
27144}
27145_ACEOF
27146rm -f conftest.$ac_objext conftest$ac_exeext
27147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27148 (eval $ac_link) 2>conftest.er1
a848cd7e 27149 ac_status=$?
ac1cb8d3
VS
27150 grep -v '^ *+' conftest.er1 >conftest.err
27151 rm -f conftest.er1
27152 cat conftest.err >&5
a848cd7e
SC
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); } &&
6ebeb4c7 27155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27157 (eval $ac_try) 2>&5
27158 ac_status=$?
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160 (exit $ac_status); }; } &&
27161 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27163 (eval $ac_try) 2>&5
27164 ac_status=$?
27165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); }; }; then
27167 ac_cv_func_shmat=yes
27168else
27169 echo "$as_me: failed program was:" >&5
27170sed 's/^/| /' conftest.$ac_ext >&5
27171
27172ac_cv_func_shmat=no
27173fi
ac1cb8d3
VS
27174rm -f conftest.err conftest.$ac_objext \
27175 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27176fi
27177echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27178echo "${ECHO_T}$ac_cv_func_shmat" >&6
27179
27180 if test $ac_cv_func_shmat = no; then
27181 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27182echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27183if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27184 echo $ECHO_N "(cached) $ECHO_C" >&6
27185else
27186 ac_check_lib_save_LIBS=$LIBS
27187LIBS="-lipc $LIBS"
27188cat >conftest.$ac_ext <<_ACEOF
27189/* confdefs.h. */
27190_ACEOF
27191cat confdefs.h >>conftest.$ac_ext
27192cat >>conftest.$ac_ext <<_ACEOF
27193/* end confdefs.h. */
27194
27195/* Override any gcc2 internal prototype to avoid an error. */
27196#ifdef __cplusplus
27197extern "C"
27198#endif
27199/* We use char because int might match the return type of a gcc2
27200 builtin and then its argument prototype would still apply. */
27201char shmat ();
27202int
27203main ()
27204{
27205shmat ();
27206 ;
27207 return 0;
27208}
27209_ACEOF
27210rm -f conftest.$ac_objext conftest$ac_exeext
27211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27212 (eval $ac_link) 2>conftest.er1
a848cd7e 27213 ac_status=$?
ac1cb8d3
VS
27214 grep -v '^ *+' conftest.er1 >conftest.err
27215 rm -f conftest.er1
27216 cat conftest.err >&5
a848cd7e
SC
27217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218 (exit $ac_status); } &&
6ebeb4c7 27219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27221 (eval $ac_try) 2>&5
27222 ac_status=$?
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); }; } &&
27225 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27227 (eval $ac_try) 2>&5
27228 ac_status=$?
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); }; }; then
27231 ac_cv_lib_ipc_shmat=yes
27232else
27233 echo "$as_me: failed program was:" >&5
27234sed 's/^/| /' conftest.$ac_ext >&5
27235
27236ac_cv_lib_ipc_shmat=no
27237fi
ac1cb8d3
VS
27238rm -f conftest.err conftest.$ac_objext \
27239 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27240LIBS=$ac_check_lib_save_LIBS
27241fi
27242echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27243echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27244if test $ac_cv_lib_ipc_shmat = yes; then
27245 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27246fi
27247
27248 fi
27249 fi
27250
27251 # Check for libraries that X11R6 Xt/Xaw programs need.
27252 ac_save_LDFLAGS=$LDFLAGS
27253 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27254 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27255 # check for ICE first), but we must link in the order -lSM -lICE or
27256 # we get undefined symbols. So assume we have SM if we have ICE.
27257 # These have to be linked with before -lX11, unlike the other
27258 # libraries we check for below, so use a different variable.
27259 # John Interrante, Karl Berry
27260 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27261echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27262if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27263 echo $ECHO_N "(cached) $ECHO_C" >&6
27264else
27265 ac_check_lib_save_LIBS=$LIBS
27266LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27267cat >conftest.$ac_ext <<_ACEOF
27268/* confdefs.h. */
27269_ACEOF
27270cat confdefs.h >>conftest.$ac_ext
27271cat >>conftest.$ac_ext <<_ACEOF
27272/* end confdefs.h. */
27273
27274/* Override any gcc2 internal prototype to avoid an error. */
27275#ifdef __cplusplus
27276extern "C"
27277#endif
27278/* We use char because int might match the return type of a gcc2
27279 builtin and then its argument prototype would still apply. */
27280char IceConnectionNumber ();
27281int
27282main ()
27283{
27284IceConnectionNumber ();
27285 ;
27286 return 0;
27287}
27288_ACEOF
27289rm -f conftest.$ac_objext conftest$ac_exeext
27290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27291 (eval $ac_link) 2>conftest.er1
a848cd7e 27292 ac_status=$?
ac1cb8d3
VS
27293 grep -v '^ *+' conftest.er1 >conftest.err
27294 rm -f conftest.er1
27295 cat conftest.err >&5
a848cd7e
SC
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); } &&
6ebeb4c7 27298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27300 (eval $ac_try) 2>&5
27301 ac_status=$?
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); }; } &&
27304 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27306 (eval $ac_try) 2>&5
27307 ac_status=$?
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); }; }; then
27310 ac_cv_lib_ICE_IceConnectionNumber=yes
27311else
27312 echo "$as_me: failed program was:" >&5
27313sed 's/^/| /' conftest.$ac_ext >&5
27314
27315ac_cv_lib_ICE_IceConnectionNumber=no
27316fi
ac1cb8d3
VS
27317rm -f conftest.err conftest.$ac_objext \
27318 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27319LIBS=$ac_check_lib_save_LIBS
27320fi
27321echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27322echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27323if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27324 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27325fi
27326
27327 LDFLAGS=$ac_save_LDFLAGS
27328
27329fi
27330
27331
27332 if test "$no_x" = "yes"; then
27333 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27334echo "$as_me: error: X11 not found" >&2;}
27335 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27336 fi
27337
74b84332
VS
27338 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27339 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27340 AFMINSTALL=afminstall
27341 COMPILED_X_PROGRAM=0
27342
74b84332
VS
27343 fi
27344
27345 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27346 if test "$wxUSE_NANOX" = "yes"; then
27347 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27348echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27349 if test "x$MICROWIN" = x ; then
27350 echo "$as_me:$LINENO: result: not found" >&5
27351echo "${ECHO_T}not found" >&6
27352 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27353echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27354 { (exit 1); exit 1; }; }
27355 else
27356 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27357echo "${ECHO_T}$MICROWIN" >&6
27358 cat >>confdefs.h <<\_ACEOF
27359#define wxUSE_NANOX 1
27360_ACEOF
27361
27362 fi
27363 fi
27364
27365 if test "$wxUSE_UNICODE" = "yes"; then
27366
27367 succeeded=no
27368
27369 if test -z "$PKG_CONFIG"; then
27370 # Extract the first word of "pkg-config", so it can be a program name with args.
27371set dummy pkg-config; ac_word=$2
27372echo "$as_me:$LINENO: checking for $ac_word" >&5
27373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27374if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27375 echo $ECHO_N "(cached) $ECHO_C" >&6
27376else
27377 case $PKG_CONFIG in
27378 [\\/]* | ?:[\\/]*)
27379 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27380 ;;
27381 *)
27382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27383for as_dir in $PATH
27384do
27385 IFS=$as_save_IFS
27386 test -z "$as_dir" && as_dir=.
27387 for ac_exec_ext in '' $ac_executable_extensions; do
27388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27389 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27391 break 2
27392 fi
27393done
27394done
27395
27396 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27397 ;;
27398esac
27399fi
27400PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27401
27402if test -n "$PKG_CONFIG"; then
27403 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27404echo "${ECHO_T}$PKG_CONFIG" >&6
27405else
27406 echo "$as_me:$LINENO: result: no" >&5
27407echo "${ECHO_T}no" >&6
27408fi
27409
27410 fi
27411
27412 if test "$PKG_CONFIG" = "no" ; then
27413 echo "*** The pkg-config script could not be found. Make sure it is"
27414 echo "*** in your path, or set the PKG_CONFIG environment variable"
27415 echo "*** to the full path to pkg-config."
27416 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27417 else
27418 PKG_CONFIG_MIN_VERSION=0.9.0
27419 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27420 echo "$as_me:$LINENO: checking for pangox" >&5
27421echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27422
27423 if $PKG_CONFIG --exists "pangox" ; then
27424 echo "$as_me:$LINENO: result: yes" >&5
27425echo "${ECHO_T}yes" >&6
27426 succeeded=yes
27427
27428 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27429echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27430 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27431 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27432echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27433
27434 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27435echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27436 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27437 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27438echo "${ECHO_T}$PANGOX_LIBS" >&6
27439 else
27440 PANGOX_CFLAGS=""
27441 PANGOX_LIBS=""
27442 ## If we have a custom action on failure, don't print errors, but
27443 ## do set a variable so people can do so.
27444 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27445
27446 fi
27447
27448
27449
27450 else
27451 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27452 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27453 fi
27454 fi
27455
27456 if test $succeeded = yes; then
27457
27458 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27459 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27460
27461 else
27462
27463 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27464echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27465 { (exit 1); exit 1; }; }
27466
27467
27468 fi
27469
27470
27471 succeeded=no
27472
27473 if test -z "$PKG_CONFIG"; then
27474 # Extract the first word of "pkg-config", so it can be a program name with args.
27475set dummy pkg-config; ac_word=$2
27476echo "$as_me:$LINENO: checking for $ac_word" >&5
27477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27478if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27479 echo $ECHO_N "(cached) $ECHO_C" >&6
27480else
27481 case $PKG_CONFIG in
27482 [\\/]* | ?:[\\/]*)
27483 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27484 ;;
27485 *)
27486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27487for as_dir in $PATH
27488do
27489 IFS=$as_save_IFS
27490 test -z "$as_dir" && as_dir=.
27491 for ac_exec_ext in '' $ac_executable_extensions; do
27492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27493 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27495 break 2
27496 fi
27497done
27498done
27499
27500 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27501 ;;
27502esac
27503fi
27504PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27505
27506if test -n "$PKG_CONFIG"; then
27507 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27508echo "${ECHO_T}$PKG_CONFIG" >&6
27509else
27510 echo "$as_me:$LINENO: result: no" >&5
27511echo "${ECHO_T}no" >&6
27512fi
27513
27514 fi
27515
27516 if test "$PKG_CONFIG" = "no" ; then
27517 echo "*** The pkg-config script could not be found. Make sure it is"
27518 echo "*** in your path, or set the PKG_CONFIG environment variable"
27519 echo "*** to the full path to pkg-config."
27520 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27521 else
27522 PKG_CONFIG_MIN_VERSION=0.9.0
27523 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27524 echo "$as_me:$LINENO: checking for pangoft2" >&5
27525echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27526
27527 if $PKG_CONFIG --exists "pangoft2" ; then
27528 echo "$as_me:$LINENO: result: yes" >&5
27529echo "${ECHO_T}yes" >&6
27530 succeeded=yes
27531
27532 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27533echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27534 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27535 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27536echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27537
27538 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27539echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27540 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27541 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27542echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27543 else
27544 PANGOFT2_CFLAGS=""
27545 PANGOFT2_LIBS=""
27546 ## If we have a custom action on failure, don't print errors, but
27547 ## do set a variable so people can do so.
27548 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27549
27550 fi
27551
27552
27553
27554 else
27555 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27556 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27557 fi
27558 fi
27559
27560 if test $succeeded = yes; then
27561
27562 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27563 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27564
27565 else
27566
27567 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27568echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27569 wxUSE_PRINTING_ARCHITECTURE="no"
27570
27571
27572 fi
27573
27574
27575 succeeded=no
27576
27577 if test -z "$PKG_CONFIG"; then
27578 # Extract the first word of "pkg-config", so it can be a program name with args.
27579set dummy pkg-config; ac_word=$2
27580echo "$as_me:$LINENO: checking for $ac_word" >&5
27581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27582if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27583 echo $ECHO_N "(cached) $ECHO_C" >&6
27584else
27585 case $PKG_CONFIG in
27586 [\\/]* | ?:[\\/]*)
27587 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27588 ;;
27589 *)
27590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27591for as_dir in $PATH
27592do
27593 IFS=$as_save_IFS
27594 test -z "$as_dir" && as_dir=.
27595 for ac_exec_ext in '' $ac_executable_extensions; do
27596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27597 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27599 break 2
27600 fi
27601done
27602done
27603
27604 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27605 ;;
27606esac
27607fi
27608PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27609
27610if test -n "$PKG_CONFIG"; then
27611 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27612echo "${ECHO_T}$PKG_CONFIG" >&6
27613else
27614 echo "$as_me:$LINENO: result: no" >&5
27615echo "${ECHO_T}no" >&6
27616fi
27617
27618 fi
27619
27620 if test "$PKG_CONFIG" = "no" ; then
27621 echo "*** The pkg-config script could not be found. Make sure it is"
27622 echo "*** in your path, or set the PKG_CONFIG environment variable"
27623 echo "*** to the full path to pkg-config."
27624 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27625 else
27626 PKG_CONFIG_MIN_VERSION=0.9.0
27627 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27628 echo "$as_me:$LINENO: checking for pangoxft" >&5
27629echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27630
27631 if $PKG_CONFIG --exists "pangoxft" ; then
27632 echo "$as_me:$LINENO: result: yes" >&5
27633echo "${ECHO_T}yes" >&6
27634 succeeded=yes
27635
27636 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27637echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27638 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27639 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27640echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27641
27642 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27643echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27644 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27645 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27646echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27647 else
27648 PANGOXFT_CFLAGS=""
27649 PANGOXFT_LIBS=""
27650 ## If we have a custom action on failure, don't print errors, but
27651 ## do set a variable so people can do so.
27652 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27653
27654 fi
27655
27656
27657
27658 else
27659 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27660 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27661 fi
27662 fi
27663
27664 if test $succeeded = yes; then
27665
4ae1af05
MB
27666 cat >>confdefs.h <<\_ACEOF
27667#define HAVE_PANGO_XFT 1
27668_ACEOF
27669
a848cd7e
SC
27670 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27671 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27672
27673 else
27674
27675 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27676echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27677
27678
27679 fi
27680
304205f1
VS
27681 save_CFLAGS="$CFLAGS"
27682 save_LIBS="$LIBS"
27683 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27684 LIBS="$LIBS $PANGOX_LIBS"
27685
27686for ac_func in pango_font_family_is_monospace
27687do
27688as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27689echo "$as_me:$LINENO: checking for $ac_func" >&5
27690echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27691if eval "test \"\${$as_ac_var+set}\" = set"; then
27692 echo $ECHO_N "(cached) $ECHO_C" >&6
27693else
27694 cat >conftest.$ac_ext <<_ACEOF
27695/* confdefs.h. */
27696_ACEOF
27697cat confdefs.h >>conftest.$ac_ext
27698cat >>conftest.$ac_ext <<_ACEOF
27699/* end confdefs.h. */
27700/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27702#define $ac_func innocuous_$ac_func
27703
27704/* System header to define __stub macros and hopefully few prototypes,
27705 which can conflict with char $ac_func (); below.
27706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27707 <limits.h> exists even on freestanding compilers. */
27708
27709#ifdef __STDC__
27710# include <limits.h>
27711#else
27712# include <assert.h>
27713#endif
27714
27715#undef $ac_func
27716
27717/* Override any gcc2 internal prototype to avoid an error. */
27718#ifdef __cplusplus
27719extern "C"
27720{
27721#endif
27722/* We use char because int might match the return type of a gcc2
27723 builtin and then its argument prototype would still apply. */
27724char $ac_func ();
27725/* The GNU C library defines this for functions which it implements
27726 to always fail with ENOSYS. Some functions are actually named
27727 something starting with __ and the normal name is an alias. */
27728#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27729choke me
27730#else
27731char (*f) () = $ac_func;
27732#endif
27733#ifdef __cplusplus
27734}
27735#endif
27736
27737int
27738main ()
27739{
27740return f != $ac_func;
27741 ;
27742 return 0;
27743}
27744_ACEOF
27745rm -f conftest.$ac_objext conftest$ac_exeext
27746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27747 (eval $ac_link) 2>conftest.er1
27748 ac_status=$?
27749 grep -v '^ *+' conftest.er1 >conftest.err
27750 rm -f conftest.er1
27751 cat conftest.err >&5
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); } &&
6ebeb4c7 27754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27756 (eval $ac_try) 2>&5
27757 ac_status=$?
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); }; } &&
27760 { ac_try='test -s conftest$ac_exeext'
27761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27762 (eval $ac_try) 2>&5
27763 ac_status=$?
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); }; }; then
27766 eval "$as_ac_var=yes"
27767else
27768 echo "$as_me: failed program was:" >&5
27769sed 's/^/| /' conftest.$ac_ext >&5
27770
27771eval "$as_ac_var=no"
27772fi
27773rm -f conftest.err conftest.$ac_objext \
27774 conftest$ac_exeext conftest.$ac_ext
27775fi
27776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27777echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27778if test `eval echo '${'$as_ac_var'}'` = yes; then
27779 cat >>confdefs.h <<_ACEOF
27780#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27781_ACEOF
27782
27783fi
27784done
27785
27786 CFLAGS="$save_CFLAGS"
27787 LIBS="$save_LIBS"
a848cd7e
SC
27788 fi
27789
27790 wxUSE_UNIVERSAL="yes"
27791
27792 if test "$wxUSE_NANOX" = "yes"; then
27793 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27794 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"
27795 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27796 else
27797 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27798 fi
27799
a848cd7e
SC
27800 TOOLKIT=X11
27801 GUIDIST=X11_DIST
27802 fi
27803
27804 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
27805 if test "$wxUSE_UNICODE" = "yes"; then
27806 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
27807echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
27808 { (exit 1); exit 1; }; }
27809 fi
27810
74b84332
VS
27811 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27812echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27813
74b84332
VS
27814ac_find_includes=
27815for ac_dir in $SEARCH_INCLUDE /usr/include;
27816 do
27817 if test -f "$ac_dir/Xm/Xm.h"; then
27818 ac_find_includes=$ac_dir
27819 break
27820 fi
27821 done
a848cd7e 27822
74b84332
VS
27823 if test "$ac_find_includes" != "" ; then
27824 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27825echo "${ECHO_T}found in $ac_find_includes" >&6
27826
27827 if test "x$ac_find_includes" = "x/usr/include"; then
27828 ac_path_to_include=""
27829 else
27830 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27831 result=$?
27832 if test $result = 0; then
27833 ac_path_to_include=""
27834 else
27835 ac_path_to_include=" -I$ac_find_includes"
27836 fi
a848cd7e
SC
27837 fi
27838
74b84332
VS
27839 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27840 else
e051b34e
MW
27841 save_CFLAGS=$CFLAGS
27842 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27843
74b84332 27844 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27845/* confdefs.h. */
27846_ACEOF
27847cat confdefs.h >>conftest.$ac_ext
27848cat >>conftest.$ac_ext <<_ACEOF
27849/* end confdefs.h. */
27850
74b84332
VS
27851 #include <Xm/Xm.h>
27852
a848cd7e
SC
27853int
27854main ()
27855{
27856
74b84332
VS
27857 int version;
27858 version = xmUseVersion;
27859
a848cd7e
SC
27860 ;
27861 return 0;
27862}
27863_ACEOF
74b84332
VS
27864rm -f conftest.$ac_objext
27865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27866 (eval $ac_compile) 2>conftest.er1
a848cd7e 27867 ac_status=$?
ac1cb8d3
VS
27868 grep -v '^ *+' conftest.er1 >conftest.err
27869 rm -f conftest.er1
27870 cat conftest.err >&5
a848cd7e
SC
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); } &&
6ebeb4c7 27873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27875 (eval $ac_try) 2>&5
27876 ac_status=$?
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); }; } &&
74b84332 27879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27881 (eval $ac_try) 2>&5
27882 ac_status=$?
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); }; }; then
74b84332
VS
27885
27886 echo "$as_me:$LINENO: result: found in default search path" >&5
27887echo "${ECHO_T}found in default search path" >&6
27888 COMPILED_X_PROGRAM=1
27889
a848cd7e
SC
27890else
27891 echo "$as_me: failed program was:" >&5
27892sed 's/^/| /' conftest.$ac_ext >&5
27893
a848cd7e 27894
74b84332
VS
27895 echo "$as_me:$LINENO: result: no" >&5
27896echo "${ECHO_T}no" >&6
e051b34e
MW
27897 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
27898echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 27899 { (exit 1); exit 1; }; }
a848cd7e 27900
a848cd7e 27901
a848cd7e 27902fi
74b84332 27903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
27904
27905 CFLAGS=$save_CFLAGS
74b84332
VS
27906 fi
27907
27908 if test "$COMPILED_X_PROGRAM" = 0; then
27909 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27910echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27911
27912ac_find_libraries=
27913for ac_dir in $SEARCH_LIB /usr/lib;
27914 do
3eca31dc 27915 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
27916 if test -f "$ac_dir/libXm.$ac_extension"; then
27917 ac_find_libraries=$ac_dir
27918 break 2
a848cd7e 27919 fi
74b84332
VS
27920 done
27921 done
a848cd7e 27922
74b84332
VS
27923 if test "$ac_find_libraries" != "" ; then
27924 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27925echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27926
74b84332
VS
27927
27928 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27929 result=$?
27930 if test $result = 0; then
27931 ac_path_to_link=""
a848cd7e 27932 else
74b84332
VS
27933 ac_path_to_link=" -L$ac_find_libraries"
27934 fi
27935
27936 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27937 else
27938 save_CFLAGS=$CFLAGS
27939 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27940
27941 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27942/* confdefs.h. */
27943_ACEOF
27944cat confdefs.h >>conftest.$ac_ext
27945cat >>conftest.$ac_ext <<_ACEOF
27946/* end confdefs.h. */
27947
74b84332
VS
27948 #include <Xm/Xm.h>
27949
a848cd7e
SC
27950int
27951main ()
27952{
74b84332
VS
27953
27954 int version;
27955 version = xmUseVersion;
27956
a848cd7e
SC
27957 ;
27958 return 0;
27959}
27960_ACEOF
74b84332
VS
27961rm -f conftest.$ac_objext
27962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27963 (eval $ac_compile) 2>conftest.er1
a848cd7e 27964 ac_status=$?
ac1cb8d3
VS
27965 grep -v '^ *+' conftest.er1 >conftest.err
27966 rm -f conftest.er1
27967 cat conftest.err >&5
a848cd7e
SC
27968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); } &&
6ebeb4c7 27970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27972 (eval $ac_try) 2>&5
27973 ac_status=$?
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); }; } &&
74b84332 27976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27978 (eval $ac_try) 2>&5
27979 ac_status=$?
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); }; }; then
74b84332
VS
27982
27983 echo "$as_me:$LINENO: result: found in default search path" >&5
27984echo "${ECHO_T}found in default search path" >&6
27985 COMPILED_X_PROGRAM=1
27986
a848cd7e
SC
27987else
27988 echo "$as_me: failed program was:" >&5
27989sed 's/^/| /' conftest.$ac_ext >&5
27990
74b84332
VS
27991
27992 echo "$as_me:$LINENO: result: no" >&5
27993echo "${ECHO_T}no" >&6
27994 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27995echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27996 { (exit 1); exit 1; }; }
27997
27998
27999fi
28000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28001
28002 CFLAGS=$save_CFLAGS
28003 fi
28004 fi
28005
28006 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28007echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28008 libp_link=""
28009 libsm_ice_link=""
28010 libs_found=0
28011 for libp in "" " -lXp"; do
28012 if test "$libs_found" = "0"; then
28013 for libsm_ice in "" " -lSM -lICE"; do
28014 if test "$libs_found" = "0"; then
28015 save_LIBS="$LIBS"
28016 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28017 save_CFLAGS=$CFLAGS
28018 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28019
28020 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28021/* confdefs.h. */
28022_ACEOF
28023cat confdefs.h >>conftest.$ac_ext
28024cat >>conftest.$ac_ext <<_ACEOF
28025/* end confdefs.h. */
28026
74b84332
VS
28027 #include <Xm/Xm.h>
28028 #include <Xm/List.h>
28029
a848cd7e
SC
28030int
28031main ()
28032{
74b84332
VS
28033
28034 XmString string = NULL;
28035 Widget w = NULL;
28036 int position = 0;
28037 XmListAddItem(w, string, position);
28038
a848cd7e
SC
28039 ;
28040 return 0;
28041}
28042_ACEOF
28043rm -f conftest.$ac_objext conftest$ac_exeext
28044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28045 (eval $ac_link) 2>conftest.er1
a848cd7e 28046 ac_status=$?
ac1cb8d3
VS
28047 grep -v '^ *+' conftest.er1 >conftest.err
28048 rm -f conftest.er1
28049 cat conftest.err >&5
a848cd7e
SC
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); } &&
6ebeb4c7 28052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054 (eval $ac_try) 2>&5
28055 ac_status=$?
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); }; } &&
28058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060 (eval $ac_try) 2>&5
28061 ac_status=$?
28062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; }; then
28064
28065 libp_link="$libp"
28066 libsm_ice_link="$libsm_ice"
28067 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28068echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28069 libs_found=1
28070
28071else
28072 echo "$as_me: failed program was:" >&5
28073sed 's/^/| /' conftest.$ac_ext >&5
28074
28075
28076
28077fi
ac1cb8d3
VS
28078rm -f conftest.err conftest.$ac_objext \
28079 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28080
28081 LIBS="$save_LIBS"
28082 CFLAGS=$save_CFLAGS
28083 fi
28084 done
28085 fi
28086 done
28087
28088 if test "$libs_found" = "0"; then
28089 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28090echo "${ECHO_T}can't find the right libraries" >&6
28091 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28092echo "$as_me: error: can't link a simple motif program" >&2;}
28093 { (exit 1); exit 1; }; }
28094 fi
28095
62fa8b3a
MW
28096 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
28097echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
28098if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
28099 echo $ECHO_N "(cached) $ECHO_C" >&6
28100else
28101 ac_check_lib_save_LIBS=$LIBS
28102LIBS="-lSgm $LIBS"
28103cat >conftest.$ac_ext <<_ACEOF
28104/* confdefs.h. */
28105_ACEOF
28106cat confdefs.h >>conftest.$ac_ext
28107cat >>conftest.$ac_ext <<_ACEOF
28108/* end confdefs.h. */
28109
28110/* Override any gcc2 internal prototype to avoid an error. */
28111#ifdef __cplusplus
28112extern "C"
28113#endif
28114/* We use char because int might match the return type of a gcc2
28115 builtin and then its argument prototype would still apply. */
28116char SgCreateList ();
28117int
28118main ()
28119{
28120SgCreateList ();
28121 ;
28122 return 0;
28123}
28124_ACEOF
28125rm -f conftest.$ac_objext conftest$ac_exeext
28126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28127 (eval $ac_link) 2>conftest.er1
28128 ac_status=$?
28129 grep -v '^ *+' conftest.er1 >conftest.err
28130 rm -f conftest.er1
28131 cat conftest.err >&5
28132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); } &&
28134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136 (eval $ac_try) 2>&5
28137 ac_status=$?
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); }; } &&
28140 { ac_try='test -s conftest$ac_exeext'
28141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28142 (eval $ac_try) 2>&5
28143 ac_status=$?
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); }; }; then
28146 ac_cv_lib_Sgm_SgCreateList=yes
28147else
28148 echo "$as_me: failed program was:" >&5
28149sed 's/^/| /' conftest.$ac_ext >&5
28150
28151ac_cv_lib_Sgm_SgCreateList=no
28152fi
28153rm -f conftest.err conftest.$ac_objext \
28154 conftest$ac_exeext conftest.$ac_ext
28155LIBS=$ac_check_lib_save_LIBS
28156fi
28157echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
28158echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
28159if test $ac_cv_lib_Sgm_SgCreateList = yes; then
28160 libsgm_link=" -lSgm"
28161fi
28162
28163
a848cd7e
SC
28164 save_CFLAGS=$CFLAGS
28165 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28166 echo "$as_me:$LINENO: checking for Motif 2" >&5
28167echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
28168 cat >conftest.$ac_ext <<_ACEOF
28169/* confdefs.h. */
28170_ACEOF
28171cat confdefs.h >>conftest.$ac_ext
28172cat >>conftest.$ac_ext <<_ACEOF
28173/* end confdefs.h. */
28174
28175 #include <Xm/Xm.h>
28176
28177int
28178main ()
28179{
28180
28181 #if XmVersion < 2000
04e525a0 28182 Not Motif 2
a848cd7e
SC
28183 #endif
28184
28185 ;
28186 return 0;
28187}
28188_ACEOF
28189rm -f conftest.$ac_objext
28190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28191 (eval $ac_compile) 2>conftest.er1
a848cd7e 28192 ac_status=$?
ac1cb8d3
VS
28193 grep -v '^ *+' conftest.er1 >conftest.err
28194 rm -f conftest.er1
28195 cat conftest.err >&5
a848cd7e
SC
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); } &&
6ebeb4c7 28198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28200 (eval $ac_try) 2>&5
28201 ac_status=$?
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); }; } &&
28204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28206 (eval $ac_try) 2>&5
28207 ac_status=$?
28208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209 (exit $ac_status); }; }; then
28210
28211 cat >>confdefs.h <<\_ACEOF
28212#define __WXMOTIF20__ 1
28213_ACEOF
28214
28215 echo "$as_me:$LINENO: result: found" >&5
28216echo "${ECHO_T}found" >&6
28217
28218else
28219 echo "$as_me: failed program was:" >&5
28220sed 's/^/| /' conftest.$ac_ext >&5
28221
28222
28223 cat >>confdefs.h <<\_ACEOF
28224#define __WXMOTIF20__ 0
28225_ACEOF
28226
28227 echo "$as_me:$LINENO: result: not found" >&5
28228echo "${ECHO_T}not found" >&6
28229
2113bc77
MW
28230fi
28231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28232
28233 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
28234echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
28235 cat >conftest.$ac_ext <<_ACEOF
28236/* confdefs.h. */
28237_ACEOF
28238cat confdefs.h >>conftest.$ac_ext
28239cat >>conftest.$ac_ext <<_ACEOF
28240/* end confdefs.h. */
28241
28242 #include <Xm/Xm.h>
28243
28244int
28245main ()
28246{
28247
28248 #if !defined(LesstifVersion) || LesstifVersion <= 0
04e525a0 28249 Not Lesstif
2113bc77
MW
28250 #endif
28251
28252 ;
28253 return 0;
28254}
28255_ACEOF
28256rm -f conftest.$ac_objext
28257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28258 (eval $ac_compile) 2>conftest.er1
28259 ac_status=$?
28260 grep -v '^ *+' conftest.er1 >conftest.err
28261 rm -f conftest.er1
28262 cat conftest.err >&5
28263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264 (exit $ac_status); } &&
6ebeb4c7 28265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
28266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28267 (eval $ac_try) 2>&5
28268 ac_status=$?
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); }; } &&
28271 { ac_try='test -s conftest.$ac_objext'
28272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28273 (eval $ac_try) 2>&5
28274 ac_status=$?
28275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276 (exit $ac_status); }; }; then
28277
28278 cat >>confdefs.h <<\_ACEOF
28279#define __WXLESSTIF__ 1
28280_ACEOF
28281
28282 echo "$as_me:$LINENO: result: yes" >&5
28283echo "${ECHO_T}yes" >&6
28284
28285else
28286 echo "$as_me: failed program was:" >&5
28287sed 's/^/| /' conftest.$ac_ext >&5
28288
28289
28290 cat >>confdefs.h <<\_ACEOF
28291#define __WXLESSTIF__ 0
28292_ACEOF
28293
28294 echo "$as_me:$LINENO: result: no" >&5
28295echo "${ECHO_T}no" >&6
28296
a848cd7e 28297fi
ac1cb8d3 28298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28299 CFLAGS=$save_CFLAGS
28300
62fa8b3a 28301 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28302 TOOLKIT=MOTIF
28303 GUIDIST=MOTIF_DIST
28304 fi
28305
74b84332 28306 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28307 if test "$wxUSE_LIBXPM" = "sys"; then
28308 echo "$as_me:$LINENO: checking for Xpm library" >&5
28309echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28310
28311ac_find_libraries=
28312for ac_dir in $SEARCH_LIB /usr/lib;
28313 do
3eca31dc 28314 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28315 if test -f "$ac_dir/libXpm.$ac_extension"; then
28316 ac_find_libraries=$ac_dir
28317 break 2
28318 fi
28319 done
28320 done
28321
28322 if test "$ac_find_libraries" != "" ; then
28323
28324 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28325 result=$?
28326 if test $result = 0; then
28327 ac_path_to_link=""
28328 else
28329 ac_path_to_link=" -L$ac_find_libraries"
28330 fi
28331
28332 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28333 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28334echo "${ECHO_T}found at $ac_find_libraries" >&6
28335
28336 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28337echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28338if test "${wx_cv_x11_xpm_h+set}" = set; then
28339 echo $ECHO_N "(cached) $ECHO_C" >&6
28340else
28341
28342 save_CFLAGS=$CFLAGS
28343 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28344
28345 cat >conftest.$ac_ext <<_ACEOF
28346/* confdefs.h. */
28347_ACEOF
28348cat confdefs.h >>conftest.$ac_ext
28349cat >>conftest.$ac_ext <<_ACEOF
28350/* end confdefs.h. */
28351
28352 #include <X11/xpm.h>
28353
28354int
28355main ()
28356{
28357
28358 int version;
28359 version = XpmLibraryVersion();
28360
28361 ;
28362 return 0;
28363}
28364_ACEOF
28365rm -f conftest.$ac_objext
28366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28367 (eval $ac_compile) 2>conftest.er1
a848cd7e 28368 ac_status=$?
ac1cb8d3
VS
28369 grep -v '^ *+' conftest.er1 >conftest.err
28370 rm -f conftest.er1
28371 cat conftest.err >&5
a848cd7e
SC
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); } &&
6ebeb4c7 28374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28376 (eval $ac_try) 2>&5
28377 ac_status=$?
28378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379 (exit $ac_status); }; } &&
28380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28382 (eval $ac_try) 2>&5
28383 ac_status=$?
28384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385 (exit $ac_status); }; }; then
28386 wx_cv_x11_xpm_h=yes
28387else
28388 echo "$as_me: failed program was:" >&5
28389sed 's/^/| /' conftest.$ac_ext >&5
28390
28391wx_cv_x11_xpm_h=no
28392
28393fi
ac1cb8d3 28394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28395
28396 CFLAGS=$save_CFLAGS
28397
28398
28399fi
28400echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28401echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28402
28403 if test $wx_cv_x11_xpm_h = "yes"; then
28404 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28405 cat >>confdefs.h <<\_ACEOF
28406#define wxHAVE_LIB_XPM 1
28407_ACEOF
28408
28409 else
28410 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28411echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28412 fi
28413 fi
28414
28415 fi
28416
28417 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28418echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28419if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28420 echo $ECHO_N "(cached) $ECHO_C" >&6
28421else
28422 ac_check_lib_save_LIBS=$LIBS
28423LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28424cat >conftest.$ac_ext <<_ACEOF
28425/* confdefs.h. */
28426_ACEOF
28427cat confdefs.h >>conftest.$ac_ext
28428cat >>conftest.$ac_ext <<_ACEOF
28429/* end confdefs.h. */
28430
28431/* Override any gcc2 internal prototype to avoid an error. */
28432#ifdef __cplusplus
28433extern "C"
28434#endif
28435/* We use char because int might match the return type of a gcc2
28436 builtin and then its argument prototype would still apply. */
28437char XShapeQueryExtension ();
28438int
28439main ()
28440{
28441XShapeQueryExtension ();
28442 ;
28443 return 0;
28444}
28445_ACEOF
28446rm -f conftest.$ac_objext conftest$ac_exeext
28447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28448 (eval $ac_link) 2>conftest.er1
a848cd7e 28449 ac_status=$?
ac1cb8d3
VS
28450 grep -v '^ *+' conftest.er1 >conftest.err
28451 rm -f conftest.er1
28452 cat conftest.err >&5
a848cd7e
SC
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); } &&
6ebeb4c7 28455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28457 (eval $ac_try) 2>&5
28458 ac_status=$?
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); }; } &&
28461 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28463 (eval $ac_try) 2>&5
28464 ac_status=$?
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); }; }; then
28467 ac_cv_lib_Xext_XShapeQueryExtension=yes
28468else
28469 echo "$as_me: failed program was:" >&5
28470sed 's/^/| /' conftest.$ac_ext >&5
28471
28472ac_cv_lib_Xext_XShapeQueryExtension=no
28473fi
ac1cb8d3
VS
28474rm -f conftest.err conftest.$ac_objext \
28475 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28476LIBS=$ac_check_lib_save_LIBS
28477fi
28478echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28479echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28480if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28481
28482 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28483 wxHAVE_XEXT_LIB=1
28484
28485fi
28486
28487
28488 if test "$wxHAVE_XEXT_LIB" = 1; then
28489 save_CFLAGS="$CFLAGS"
28490 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28491
28492 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28493echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28494 cat >conftest.$ac_ext <<_ACEOF
28495/* confdefs.h. */
28496_ACEOF
28497cat confdefs.h >>conftest.$ac_ext
28498cat >>conftest.$ac_ext <<_ACEOF
28499/* end confdefs.h. */
28500
28501 #include <X11/Xlib.h>
28502 #include <X11/extensions/shape.h>
28503
28504int
28505main ()
28506{
28507
28508 int dummy1, dummy2;
28509 XShapeQueryExtension((Display*)NULL,
28510 (int*)NULL, (int*)NULL);
28511
28512 ;
28513 return 0;
28514}
28515_ACEOF
28516rm -f conftest.$ac_objext
28517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28518 (eval $ac_compile) 2>conftest.er1
a848cd7e 28519 ac_status=$?
ac1cb8d3
VS
28520 grep -v '^ *+' conftest.er1 >conftest.err
28521 rm -f conftest.er1
28522 cat conftest.err >&5
a848cd7e
SC
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524 (exit $ac_status); } &&
6ebeb4c7 28525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28527 (eval $ac_try) 2>&5
28528 ac_status=$?
28529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); }; } &&
28531 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28533 (eval $ac_try) 2>&5
28534 ac_status=$?
28535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536 (exit $ac_status); }; }; then
28537
28538 cat >>confdefs.h <<\_ACEOF
28539#define HAVE_XSHAPE 1
28540_ACEOF
28541
28542 echo "$as_me:$LINENO: result: found" >&5
28543echo "${ECHO_T}found" >&6
28544
28545else
28546 echo "$as_me: failed program was:" >&5
28547sed 's/^/| /' conftest.$ac_ext >&5
28548
28549
28550 echo "$as_me:$LINENO: result: not found" >&5
28551echo "${ECHO_T}not found" >&6
28552
28553fi
ac1cb8d3 28554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28555 CFLAGS="$save_CFLAGS"
28556
28557 fi
28558 fi
28559
28560 if test "$wxUSE_MAC" = 1; then
28561 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28562echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28563 if test "$GCC" = yes; then
28564 echo "$as_me:$LINENO: result: gcc" >&5
28565echo "${ECHO_T}gcc" >&6
28566 CPPFLAGS_PASCAL="-fpascal-strings"
28567 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28568 echo "$as_me:$LINENO: result: xlc" >&5
28569echo "${ECHO_T}xlc" >&6
28570 CPPFLAGS_PASCAL="-qmacpstr"
28571 else
28572 echo "$as_me:$LINENO: result: none" >&5
28573echo "${ECHO_T}none" >&6
28574 fi
28575
1e9e8aba
DE
28576 if test "x$wxUSE_UNIX" = "xyes"; then
28577 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28578 else
28579 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28580 fi
a848cd7e 28581
a848cd7e
SC
28582 TOOLKIT=MAC
28583 GUIDIST=MACX_DIST
dd21ced8 28584 WXBASEPORT="_carbon"
a848cd7e
SC
28585 fi
28586
28587 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28588 TOOLKIT=COCOA
28589 GUIDIST=COCOA_DIST
28590 fi
28591
28592 if test "$wxUSE_PM" = 1; then
28593 TOOLKIT=PM
de59c161
RD
28594 GUIDIST=PM_DIST
28595 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28596echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28597if test "${wx_cv_spbcdata+set}" = set; then
28598 echo $ECHO_N "(cached) $ECHO_C" >&6
28599else
28600
28601 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28602/* confdefs.h. */
28603_ACEOF
28604cat confdefs.h >>conftest.$ac_ext
28605cat >>conftest.$ac_ext <<_ACEOF
28606/* end confdefs.h. */
28607
28608 #define INCL_PM
28609 #include <os2.h>
28610
28611int
28612main ()
28613{
28614
28615 SPBCDATA test;
28616
28617 ;
28618 return 0;
28619}
28620_ACEOF
28621rm -f conftest.$ac_objext
28622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28623 (eval $ac_compile) 2>conftest.er1
de59c161 28624 ac_status=$?
ac1cb8d3
VS
28625 grep -v '^ *+' conftest.er1 >conftest.err
28626 rm -f conftest.er1
28627 cat conftest.err >&5
de59c161
RD
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); } &&
6ebeb4c7 28630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28632 (eval $ac_try) 2>&5
28633 ac_status=$?
28634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635 (exit $ac_status); }; } &&
28636 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28638 (eval $ac_try) 2>&5
28639 ac_status=$?
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); }; }; then
28642 wx_cv_spbcdata=yes
28643else
28644 echo "$as_me: failed program was:" >&5
28645sed 's/^/| /' conftest.$ac_ext >&5
28646
28647wx_cv_spbcdata=no
28648
28649fi
ac1cb8d3 28650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28651
28652
28653fi
28654echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28655echo "${ECHO_T}$wx_cv_spbcdata" >&6
28656
28657 if test $wx_cv_spbcdata = "yes"; then
28658 cat >>confdefs.h <<\_ACEOF
28659#define HAVE_SPBCDATA 1
28660_ACEOF
28661
28662 fi
a848cd7e
SC
28663 fi
28664
28665 if test "$TOOLKIT" = "PM" ; then
28666 TOOLKIT_DIR="os2"
28667 else
28668 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28669 fi
28670
a848cd7e 28671 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28672 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28673 WIDGET_SET=univ
a848cd7e
SC
28674 fi
28675
28676 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28677 DISTDIR="wx\$(TOOLKIT)"
28678else
28679 USE_GUI=0
28680
28681 TOOLKIT_DIR="base"
28682
28683 if test "$USE_WIN32" = 1 ; then
a848cd7e 28684 TOOLKIT="MSW"
a848cd7e
SC
28685 fi
28686
a848cd7e
SC
28687 GUIDIST="BASE_DIST"
28688 DISTDIR="wxBase"
28689fi
28690
28691
d12aef51
VZ
28692if test "$wxUSE_GUI" = "yes"; then
28693 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
28694
28695for ac_header in X11/Xlib.h
28696do
28697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28698if eval "test \"\${$as_ac_Header+set}\" = set"; then
28699 echo "$as_me:$LINENO: checking for $ac_header" >&5
28700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28701if eval "test \"\${$as_ac_Header+set}\" = set"; then
28702 echo $ECHO_N "(cached) $ECHO_C" >&6
28703fi
28704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28706else
28707 # Is the header compilable?
28708echo "$as_me:$LINENO: checking $ac_header usability" >&5
28709echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28710cat >conftest.$ac_ext <<_ACEOF
28711/* confdefs.h. */
28712_ACEOF
28713cat confdefs.h >>conftest.$ac_ext
28714cat >>conftest.$ac_ext <<_ACEOF
28715/* end confdefs.h. */
28716$ac_includes_default
28717#include <$ac_header>
28718_ACEOF
28719rm -f conftest.$ac_objext
28720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28721 (eval $ac_compile) 2>conftest.er1
28722 ac_status=$?
28723 grep -v '^ *+' conftest.er1 >conftest.err
28724 rm -f conftest.er1
28725 cat conftest.err >&5
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); } &&
28728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28730 (eval $ac_try) 2>&5
28731 ac_status=$?
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); }; } &&
28734 { ac_try='test -s conftest.$ac_objext'
28735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28736 (eval $ac_try) 2>&5
28737 ac_status=$?
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); }; }; then
28740 ac_header_compiler=yes
28741else
28742 echo "$as_me: failed program was:" >&5
28743sed 's/^/| /' conftest.$ac_ext >&5
28744
28745ac_header_compiler=no
28746fi
28747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28748echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28749echo "${ECHO_T}$ac_header_compiler" >&6
28750
28751# Is the header present?
28752echo "$as_me:$LINENO: checking $ac_header presence" >&5
28753echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28754cat >conftest.$ac_ext <<_ACEOF
28755/* confdefs.h. */
28756_ACEOF
28757cat confdefs.h >>conftest.$ac_ext
28758cat >>conftest.$ac_ext <<_ACEOF
28759/* end confdefs.h. */
28760#include <$ac_header>
28761_ACEOF
28762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28764 ac_status=$?
28765 grep -v '^ *+' conftest.er1 >conftest.err
28766 rm -f conftest.er1
28767 cat conftest.err >&5
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); } >/dev/null; then
28770 if test -s conftest.err; then
28771 ac_cpp_err=$ac_c_preproc_warn_flag
28772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28773 else
28774 ac_cpp_err=
28775 fi
28776else
28777 ac_cpp_err=yes
28778fi
28779if test -z "$ac_cpp_err"; then
28780 ac_header_preproc=yes
28781else
28782 echo "$as_me: failed program was:" >&5
28783sed 's/^/| /' conftest.$ac_ext >&5
28784
28785 ac_header_preproc=no
28786fi
28787rm -f conftest.err conftest.$ac_ext
28788echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28789echo "${ECHO_T}$ac_header_preproc" >&6
28790
28791# So? What about this header?
28792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28793 yes:no: )
28794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28795echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28797echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28798 ac_header_preproc=yes
28799 ;;
28800 no:yes:* )
28801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28802echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28804echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28806echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28808echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28812echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28813 (
28814 cat <<\_ASBOX
28815## ----------------------------------------- ##
28816## Report this to wx-dev@lists.wxwidgets.org ##
28817## ----------------------------------------- ##
28818_ASBOX
28819 ) |
28820 sed "s/^/$as_me: WARNING: /" >&2
28821 ;;
28822esac
28823echo "$as_me:$LINENO: checking for $ac_header" >&5
28824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28825if eval "test \"\${$as_ac_Header+set}\" = set"; then
28826 echo $ECHO_N "(cached) $ECHO_C" >&6
28827else
28828 eval "$as_ac_Header=\$ac_header_preproc"
28829fi
28830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28832
28833fi
28834if test `eval echo '${'$as_ac_Header'}'` = yes; then
28835 cat >>confdefs.h <<_ACEOF
28836#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28837_ACEOF
28838
28839fi
28840
28841done
28842
28843
28844for ac_header in X11/XKBlib.h
28845do
28846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28847echo "$as_me:$LINENO: checking for $ac_header" >&5
28848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28849if eval "test \"\${$as_ac_Header+set}\" = set"; then
28850 echo $ECHO_N "(cached) $ECHO_C" >&6
28851else
28852 cat >conftest.$ac_ext <<_ACEOF
28853/* confdefs.h. */
28854_ACEOF
28855cat confdefs.h >>conftest.$ac_ext
28856cat >>conftest.$ac_ext <<_ACEOF
28857/* end confdefs.h. */
28858
28859 #if HAVE_X11_XLIB_H
28860 #include <X11/Xlib.h>
28861 #endif
28862
28863
28864#include <$ac_header>
28865_ACEOF
28866rm -f conftest.$ac_objext
28867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28868 (eval $ac_compile) 2>conftest.er1
28869 ac_status=$?
28870 grep -v '^ *+' conftest.er1 >conftest.err
28871 rm -f conftest.er1
28872 cat conftest.err >&5
28873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874 (exit $ac_status); } &&
28875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28877 (eval $ac_try) 2>&5
28878 ac_status=$?
28879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880 (exit $ac_status); }; } &&
28881 { ac_try='test -s conftest.$ac_objext'
28882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28883 (eval $ac_try) 2>&5
28884 ac_status=$?
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); }; }; then
28887 eval "$as_ac_Header=yes"
28888else
28889 echo "$as_me: failed program was:" >&5
28890sed 's/^/| /' conftest.$ac_ext >&5
28891
28892eval "$as_ac_Header=no"
28893fi
28894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28895fi
28896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28897echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28898if test `eval echo '${'$as_ac_Header'}'` = yes; then
28899 cat >>confdefs.h <<_ACEOF
28900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28901_ACEOF
28902
28903fi
28904
28905done
28906
28907 fi
28908fi
28909
a848cd7e
SC
28910
28911
28912IODBC_C_SRC=""
28913
28914
28915if test "$TOOLKIT" != "MSW" ; then
28916
28917 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28918
28919 if test "${ac_cv_header_sql_h+set}" = set; then
28920 echo "$as_me:$LINENO: checking for sql.h" >&5
28921echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28922if test "${ac_cv_header_sql_h+set}" = set; then
28923 echo $ECHO_N "(cached) $ECHO_C" >&6
28924fi
28925echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28926echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28927else
28928 # Is the header compilable?
28929echo "$as_me:$LINENO: checking sql.h usability" >&5
28930echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28931cat >conftest.$ac_ext <<_ACEOF
28932/* confdefs.h. */
28933_ACEOF
28934cat confdefs.h >>conftest.$ac_ext
28935cat >>conftest.$ac_ext <<_ACEOF
28936/* end confdefs.h. */
28937$ac_includes_default
28938#include <sql.h>
28939_ACEOF
28940rm -f conftest.$ac_objext
28941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28942 (eval $ac_compile) 2>conftest.er1
a848cd7e 28943 ac_status=$?
ac1cb8d3
VS
28944 grep -v '^ *+' conftest.er1 >conftest.err
28945 rm -f conftest.er1
28946 cat conftest.err >&5
a848cd7e
SC
28947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28948 (exit $ac_status); } &&
6ebeb4c7 28949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28951 (eval $ac_try) 2>&5
28952 ac_status=$?
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954 (exit $ac_status); }; } &&
28955 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28957 (eval $ac_try) 2>&5
28958 ac_status=$?
28959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960 (exit $ac_status); }; }; then
28961 ac_header_compiler=yes
28962else
28963 echo "$as_me: failed program was:" >&5
28964sed 's/^/| /' conftest.$ac_ext >&5
28965
28966ac_header_compiler=no
28967fi
ac1cb8d3 28968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28970echo "${ECHO_T}$ac_header_compiler" >&6
28971
28972# Is the header present?
28973echo "$as_me:$LINENO: checking sql.h presence" >&5
28974echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28975cat >conftest.$ac_ext <<_ACEOF
28976/* confdefs.h. */
28977_ACEOF
28978cat confdefs.h >>conftest.$ac_ext
28979cat >>conftest.$ac_ext <<_ACEOF
28980/* end confdefs.h. */
28981#include <sql.h>
28982_ACEOF
28983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28985 ac_status=$?
28986 grep -v '^ *+' conftest.er1 >conftest.err
28987 rm -f conftest.er1
28988 cat conftest.err >&5
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); } >/dev/null; then
28991 if test -s conftest.err; then
28992 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28994 else
28995 ac_cpp_err=
28996 fi
28997else
28998 ac_cpp_err=yes
28999fi
29000if test -z "$ac_cpp_err"; then
29001 ac_header_preproc=yes
29002else
29003 echo "$as_me: failed program was:" >&5
29004sed 's/^/| /' conftest.$ac_ext >&5
29005
29006 ac_header_preproc=no
29007fi
29008rm -f conftest.err conftest.$ac_ext
29009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29010echo "${ECHO_T}$ac_header_preproc" >&6
29011
29012# So? What about this header?
ac1cb8d3
VS
29013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29014 yes:no: )
a848cd7e
SC
29015 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
29016echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29017 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
29018echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
29019 ac_header_preproc=yes
a848cd7e 29020 ;;
ac1cb8d3 29021 no:yes:* )
a848cd7e
SC
29022 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
29023echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29024 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
29025echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
29026 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
29027echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
29028 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
29029echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29030 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
29031echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29032 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
29033echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29034 (
29035 cat <<\_ASBOX
ac1cb8d3
VS
29036## ----------------------------------------- ##
29037## Report this to wx-dev@lists.wxwidgets.org ##
29038## ----------------------------------------- ##
a848cd7e
SC
29039_ASBOX
29040 ) |
29041 sed "s/^/$as_me: WARNING: /" >&2
29042 ;;
29043esac
29044echo "$as_me:$LINENO: checking for sql.h" >&5
29045echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29046if test "${ac_cv_header_sql_h+set}" = set; then
29047 echo $ECHO_N "(cached) $ECHO_C" >&6
29048else
29049 ac_cv_header_sql_h=$ac_header_preproc
29050fi
29051echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29052echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29053
29054fi
29055if test $ac_cv_header_sql_h = yes; then
29056 found_sql_h=1
29057fi
29058
29059
29060 if test "x$found_sql_h" = "x1" ; then
29061 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
29062echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
29063if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
29064 echo $ECHO_N "(cached) $ECHO_C" >&6
29065else
29066 ac_check_lib_save_LIBS=$LIBS
29067LIBS="-liodbc $LIBS"
29068cat >conftest.$ac_ext <<_ACEOF
29069/* confdefs.h. */
29070_ACEOF
29071cat confdefs.h >>conftest.$ac_ext
29072cat >>conftest.$ac_ext <<_ACEOF
29073/* end confdefs.h. */
29074
29075/* Override any gcc2 internal prototype to avoid an error. */
29076#ifdef __cplusplus
29077extern "C"
29078#endif
29079/* We use char because int might match the return type of a gcc2
29080 builtin and then its argument prototype would still apply. */
29081char SQLAllocEnv ();
29082int
29083main ()
29084{
29085SQLAllocEnv ();
29086 ;
29087 return 0;
29088}
29089_ACEOF
29090rm -f conftest.$ac_objext conftest$ac_exeext
29091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29092 (eval $ac_link) 2>conftest.er1
a848cd7e 29093 ac_status=$?
ac1cb8d3
VS
29094 grep -v '^ *+' conftest.er1 >conftest.err
29095 rm -f conftest.er1
29096 cat conftest.err >&5
a848cd7e
SC
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); } &&
6ebeb4c7 29099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29101 (eval $ac_try) 2>&5
29102 ac_status=$?
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); }; } &&
29105 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29107 (eval $ac_try) 2>&5
29108 ac_status=$?
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; }; then
29111 ac_cv_lib_iodbc_SQLAllocEnv=yes
29112else
29113 echo "$as_me: failed program was:" >&5
29114sed 's/^/| /' conftest.$ac_ext >&5
29115
29116ac_cv_lib_iodbc_SQLAllocEnv=no
29117fi
ac1cb8d3
VS
29118rm -f conftest.err conftest.$ac_objext \
29119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29120LIBS=$ac_check_lib_save_LIBS
29121fi
29122echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29123echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29124if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29125 ODBC_LINK=" -liodbc"
29126else
29127
29128 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29129echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29130if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29131 echo $ECHO_N "(cached) $ECHO_C" >&6
29132else
29133 ac_check_lib_save_LIBS=$LIBS
29134LIBS="-lunixodbc $LIBS"
29135cat >conftest.$ac_ext <<_ACEOF
29136/* confdefs.h. */
29137_ACEOF
29138cat confdefs.h >>conftest.$ac_ext
29139cat >>conftest.$ac_ext <<_ACEOF
29140/* end confdefs.h. */
29141
29142/* Override any gcc2 internal prototype to avoid an error. */
29143#ifdef __cplusplus
29144extern "C"
29145#endif
29146/* We use char because int might match the return type of a gcc2
29147 builtin and then its argument prototype would still apply. */
29148char SQLAllocEnv ();
29149int
29150main ()
29151{
29152SQLAllocEnv ();
29153 ;
29154 return 0;
29155}
29156_ACEOF
29157rm -f conftest.$ac_objext conftest$ac_exeext
29158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29159 (eval $ac_link) 2>conftest.er1
a848cd7e 29160 ac_status=$?
ac1cb8d3
VS
29161 grep -v '^ *+' conftest.er1 >conftest.err
29162 rm -f conftest.er1
29163 cat conftest.err >&5
a848cd7e
SC
29164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29165 (exit $ac_status); } &&
6ebeb4c7 29166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29168 (eval $ac_try) 2>&5
29169 ac_status=$?
29170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171 (exit $ac_status); }; } &&
29172 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29174 (eval $ac_try) 2>&5
29175 ac_status=$?
29176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177 (exit $ac_status); }; }; then
29178 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29179else
29180 echo "$as_me: failed program was:" >&5
29181sed 's/^/| /' conftest.$ac_ext >&5
29182
29183ac_cv_lib_unixodbc_SQLAllocEnv=no
29184fi
ac1cb8d3
VS
29185rm -f conftest.err conftest.$ac_objext \
29186 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29187LIBS=$ac_check_lib_save_LIBS
29188fi
29189echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29190echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29191if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29192 ODBC_LINK=" -lunixodbc"
29193else
29194
29195 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29196echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29197if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29198 echo $ECHO_N "(cached) $ECHO_C" >&6
29199else
29200 ac_check_lib_save_LIBS=$LIBS
29201LIBS="-lodbc $LIBS"
29202cat >conftest.$ac_ext <<_ACEOF
29203/* confdefs.h. */
29204_ACEOF
29205cat confdefs.h >>conftest.$ac_ext
29206cat >>conftest.$ac_ext <<_ACEOF
29207/* end confdefs.h. */
29208
29209/* Override any gcc2 internal prototype to avoid an error. */
29210#ifdef __cplusplus
29211extern "C"
29212#endif
29213/* We use char because int might match the return type of a gcc2
29214 builtin and then its argument prototype would still apply. */
29215char SQLAllocEnv ();
29216int
29217main ()
29218{
29219SQLAllocEnv ();
29220 ;
29221 return 0;
29222}
29223_ACEOF
29224rm -f conftest.$ac_objext conftest$ac_exeext
29225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29226 (eval $ac_link) 2>conftest.er1
a848cd7e 29227 ac_status=$?
ac1cb8d3
VS
29228 grep -v '^ *+' conftest.er1 >conftest.err
29229 rm -f conftest.er1
29230 cat conftest.err >&5
a848cd7e
SC
29231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232 (exit $ac_status); } &&
6ebeb4c7 29233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29235 (eval $ac_try) 2>&5
29236 ac_status=$?
29237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); }; } &&
29239 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29241 (eval $ac_try) 2>&5
29242 ac_status=$?
29243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29244 (exit $ac_status); }; }; then
29245 ac_cv_lib_odbc_SQLAllocEnv=yes
29246else
29247 echo "$as_me: failed program was:" >&5
29248sed 's/^/| /' conftest.$ac_ext >&5
29249
29250ac_cv_lib_odbc_SQLAllocEnv=no
29251fi
ac1cb8d3
VS
29252rm -f conftest.err conftest.$ac_objext \
29253 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29254LIBS=$ac_check_lib_save_LIBS
29255fi
29256echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
29257echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
29258if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
29259 ODBC_LINK=" -lodbc"
29260fi
29261
29262
29263fi
29264
29265
29266fi
29267
29268 fi
29269 if test "x$ODBC_LINK" = "x" ; then
29270 if test "$wxUSE_ODBC" = "sys" ; then
29271 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
29272echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
29273 { (exit 1); exit 1; }; }
29274 else
29275 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
29276echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
29277 wxUSE_ODBC=builtin
29278 fi
29279 else
29280 wxUSE_ODBC=sys
29281 fi
29282 fi
a848cd7e 29283
2da0c077
RD
29284 if test "$wxUSE_ODBC" = "builtin" ; then
29285 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29286#define wxUSE_BUILTIN_IODBC 1
29287_ACEOF
29288
a848cd7e
SC
29289 fi
29290fi
29291
2da0c077
RD
29292if test "$wxUSE_ODBC" != "no" ; then
29293 cat >>confdefs.h <<\_ACEOF
29294#define wxUSE_ODBC 1
29295_ACEOF
29296
29297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
29298
29299 WXODBCFLAG="-D_IODBC_"
29300fi
a848cd7e 29301
01cb68df 29302
a848cd7e 29303if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 29304 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
29305 echo "$as_me:$LINENO: checking for Xinerama" >&5
29306echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
29307
29308ac_find_libraries=
29309for ac_dir in $SEARCH_LIB /usr/lib;
29310 do
3eca31dc 29311 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29312 if test -f "$ac_dir/libXinerama.$ac_extension"; then
29313 ac_find_libraries=$ac_dir
29314 break 2
29315 fi
29316 done
29317 done
29318
29319 if test "$ac_find_libraries" != "" ; then
29320
29321 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29322 result=$?
29323 if test $result = 0; then
29324 ac_path_to_link=""
29325 else
29326 ac_path_to_link=" -L$ac_find_libraries"
29327 fi
29328
29329 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29330 LDFLAGS="$LDFLAGS $ac_path_to_link"
29331 fi
29332 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
29333 echo "$as_me:$LINENO: result: yes" >&5
29334echo "${ECHO_T}yes" >&6
29335
29336 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
29337echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
29338
29339ac_find_libraries=
29340for ac_dir in $SEARCH_LIB /usr/lib;
29341 do
3eca31dc 29342 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29343 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
29344 ac_find_libraries=$ac_dir
29345 break 2
29346 fi
29347 done
29348 done
29349
29350 if test "$ac_find_libraries" != "" ; then
29351 echo "$as_me:$LINENO: result: yes" >&5
29352echo "${ECHO_T}yes" >&6
29353
29354for ac_header in X11/extensions/xf86vmode.h
29355do
29356as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29357echo "$as_me:$LINENO: checking for $ac_header" >&5
29358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29359if eval "test \"\${$as_ac_Header+set}\" = set"; then
29360 echo $ECHO_N "(cached) $ECHO_C" >&6
29361else
29362 cat >conftest.$ac_ext <<_ACEOF
29363/* confdefs.h. */
29364_ACEOF
29365cat confdefs.h >>conftest.$ac_ext
29366cat >>conftest.$ac_ext <<_ACEOF
29367/* end confdefs.h. */
29368
29369 #if HAVE_X11_XLIB_H
29370 #include <X11/Xlib.h>
29371 #endif
29372
29373
29374#include <$ac_header>
29375_ACEOF
29376rm -f conftest.$ac_objext
29377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29378 (eval $ac_compile) 2>conftest.er1
a848cd7e 29379 ac_status=$?
ac1cb8d3
VS
29380 grep -v '^ *+' conftest.er1 >conftest.err
29381 rm -f conftest.er1
29382 cat conftest.err >&5
a848cd7e
SC
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); } &&
6ebeb4c7 29385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387 (eval $ac_try) 2>&5
29388 ac_status=$?
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); }; } &&
29391 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29393 (eval $ac_try) 2>&5
29394 ac_status=$?
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); }; }; then
29397 eval "$as_ac_Header=yes"
29398else
29399 echo "$as_me: failed program was:" >&5
29400sed 's/^/| /' conftest.$ac_ext >&5
29401
29402eval "$as_ac_Header=no"
29403fi
ac1cb8d3 29404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29405fi
29406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29407echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29408if test `eval echo '${'$as_ac_Header'}'` = yes; then
29409 cat >>confdefs.h <<_ACEOF
29410#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29411_ACEOF
29412
29413 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
29414
29415fi
29416
29417done
29418
29419 else
29420 echo "$as_me:$LINENO: result: no" >&5
29421echo "${ECHO_T}no" >&6
29422 fi
29423
29424 else
29425 echo "$as_me:$LINENO: result: no" >&5
29426echo "${ECHO_T}no" >&6
dcc1b6ad
VS
29427 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
29428echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
29429 wxUSE_DISPLAY="no"
29430 fi
01cb68df
RG
29431 elif test "$wxUSE_MSW" = 1; then
29432
29433
29434for ac_header in multimon.h ddraw.h
29435do
29436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 29437echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
29438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29439if eval "test \"\${$as_ac_Header+set}\" = set"; then
29440 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 29441else
5294a27e 29442 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
29443/* confdefs.h. */
29444_ACEOF
29445cat confdefs.h >>conftest.$ac_ext
29446cat >>conftest.$ac_ext <<_ACEOF
29447/* end confdefs.h. */
5294a27e
VZ
29448#include <windows.h>
29449
01cb68df
RG
29450#include <$ac_header>
29451_ACEOF
29452rm -f conftest.$ac_objext
29453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29454 (eval $ac_compile) 2>conftest.er1
01cb68df 29455 ac_status=$?
ac1cb8d3
VS
29456 grep -v '^ *+' conftest.er1 >conftest.err
29457 rm -f conftest.er1
29458 cat conftest.err >&5
01cb68df
RG
29459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); } &&
6ebeb4c7 29461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29463 (eval $ac_try) 2>&5
29464 ac_status=$?
29465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466 (exit $ac_status); }; } &&
29467 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
29468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29469 (eval $ac_try) 2>&5
29470 ac_status=$?
29471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472 (exit $ac_status); }; }; then
5294a27e 29473 eval "$as_ac_Header=yes"
01cb68df
RG
29474else
29475 echo "$as_me: failed program was:" >&5
29476sed 's/^/| /' conftest.$ac_ext >&5
29477
5294a27e 29478eval "$as_ac_Header=no"
01cb68df 29479fi
ac1cb8d3 29480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
29481fi
29482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
29484if test `eval echo '${'$as_ac_Header'}'` = yes; then
29485 cat >>confdefs.h <<_ACEOF
29486#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29487_ACEOF
29488
29489else
29490
5294a27e
VZ
29491 wxUSE_DISPLAY="no"
29492 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 29493echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
29494
29495fi
29496
29497done
29498
a848cd7e
SC
29499 fi
29500fi
29501
29502
29503USE_OPENGL=0
29504if test "$wxUSE_OPENGL" = "yes"; then
29505 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29506 OPENGL_LIBS="-framework OpenGL -framework AGL"
29507 elif test "$wxUSE_MSW" = 1; then
29508 OPENGL_LIBS="-lopengl32 -lglu32"
29509 else
29510
29511
29512ac_find_includes=
29513for ac_dir in $SEARCH_INCLUDE /usr/include;
29514 do
29515 if test -f "$ac_dir/GL/gl.h"; then
29516 ac_find_includes=$ac_dir
29517 break
29518 fi
29519 done
29520
29521 if test "$ac_find_includes" != "" ; then
29522 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29523echo "${ECHO_T}found in $ac_find_includes" >&6
29524
29525 if test "x$ac_find_includes" = "x/usr/include"; then
29526 ac_path_to_include=""
29527 else
29528 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29529 result=$?
29530 if test $result = 0; then
29531 ac_path_to_include=""
29532 else
29533 ac_path_to_include=" -I$ac_find_includes"
29534 fi
29535 fi
29536
29537 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29538 fi
29539
29540 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29541 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29542echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29543if test "${ac_cv_header_GL_gl_h+set}" = set; then
29544 echo $ECHO_N "(cached) $ECHO_C" >&6
29545fi
29546echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29547echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29548else
29549 # Is the header compilable?
29550echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29551echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29552cat >conftest.$ac_ext <<_ACEOF
29553/* confdefs.h. */
29554_ACEOF
29555cat confdefs.h >>conftest.$ac_ext
29556cat >>conftest.$ac_ext <<_ACEOF
29557/* end confdefs.h. */
29558$ac_includes_default
29559#include <GL/gl.h>
29560_ACEOF
29561rm -f conftest.$ac_objext
29562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29563 (eval $ac_compile) 2>conftest.er1
a848cd7e 29564 ac_status=$?
ac1cb8d3
VS
29565 grep -v '^ *+' conftest.er1 >conftest.err
29566 rm -f conftest.er1
29567 cat conftest.err >&5
a848cd7e
SC
29568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29569 (exit $ac_status); } &&
6ebeb4c7 29570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29572 (eval $ac_try) 2>&5
29573 ac_status=$?
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); }; } &&
29576 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29578 (eval $ac_try) 2>&5
29579 ac_status=$?
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); }; }; then
29582 ac_header_compiler=yes
29583else
29584 echo "$as_me: failed program was:" >&5
29585sed 's/^/| /' conftest.$ac_ext >&5
29586
29587ac_header_compiler=no
29588fi
ac1cb8d3 29589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29590echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29591echo "${ECHO_T}$ac_header_compiler" >&6
29592
29593# Is the header present?
29594echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29595echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29596cat >conftest.$ac_ext <<_ACEOF
29597/* confdefs.h. */
29598_ACEOF
29599cat confdefs.h >>conftest.$ac_ext
29600cat >>conftest.$ac_ext <<_ACEOF
29601/* end confdefs.h. */
29602#include <GL/gl.h>
29603_ACEOF
29604if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29606 ac_status=$?
29607 grep -v '^ *+' conftest.er1 >conftest.err
29608 rm -f conftest.er1
29609 cat conftest.err >&5
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); } >/dev/null; then
29612 if test -s conftest.err; then
29613 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29615 else
29616 ac_cpp_err=
29617 fi
29618else
29619 ac_cpp_err=yes
29620fi
29621if test -z "$ac_cpp_err"; then
29622 ac_header_preproc=yes
29623else
29624 echo "$as_me: failed program was:" >&5
29625sed 's/^/| /' conftest.$ac_ext >&5
29626
29627 ac_header_preproc=no
29628fi
29629rm -f conftest.err conftest.$ac_ext
29630echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29631echo "${ECHO_T}$ac_header_preproc" >&6
29632
29633# So? What about this header?
ac1cb8d3
VS
29634case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29635 yes:no: )
a848cd7e
SC
29636 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29637echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29638 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29639echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29640 ac_header_preproc=yes
a848cd7e 29641 ;;
ac1cb8d3 29642 no:yes:* )
a848cd7e
SC
29643 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29644echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29645 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29646echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29647 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29648echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29649 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29650echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29651 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29652echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29653 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29654echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29655 (
29656 cat <<\_ASBOX
ac1cb8d3
VS
29657## ----------------------------------------- ##
29658## Report this to wx-dev@lists.wxwidgets.org ##
29659## ----------------------------------------- ##
a848cd7e
SC
29660_ASBOX
29661 ) |
29662 sed "s/^/$as_me: WARNING: /" >&2
29663 ;;
29664esac
29665echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29666echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29667if test "${ac_cv_header_GL_gl_h+set}" = set; then
29668 echo $ECHO_N "(cached) $ECHO_C" >&6
29669else
29670 ac_cv_header_GL_gl_h=$ac_header_preproc
29671fi
29672echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29673echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29674
29675fi
29676if test $ac_cv_header_GL_gl_h = yes; then
29677
29678 found_gl=0
29679
29680 echo "$as_me:$LINENO: checking for -lGL" >&5
29681echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29682
29683ac_find_libraries=
29684for ac_dir in $SEARCH_LIB /usr/lib;
29685 do
3eca31dc 29686 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29687 if test -f "$ac_dir/libGL.$ac_extension"; then
29688 ac_find_libraries=$ac_dir
29689 break 2
29690 fi
29691 done
29692 done
29693
29694 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29695 echo "$as_me:$LINENO: result: yes" >&5
29696echo "${ECHO_T}yes" >&6
29697
a848cd7e
SC
29698
29699 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29700 result=$?
29701 if test $result = 0; then
29702 ac_path_to_link=""
29703 else
29704 ac_path_to_link=" -L$ac_find_libraries"
29705 fi
29706
29707 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29708 LDFLAGS_GL="$ac_path_to_link"
29709 fi
29710
69120ee4
VZ
29711 echo "$as_me:$LINENO: checking for -lGLU" >&5
29712echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29713
29714ac_find_libraries=
29715for ac_dir in $SEARCH_LIB /usr/lib;
29716 do
3eca31dc 29717 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29718 if test -f "$ac_dir/libGLU.$ac_extension"; then
29719 ac_find_libraries=$ac_dir
29720 break 2
29721 fi
29722 done
29723 done
29724
29725 if test "$ac_find_libraries" != "" ; then
29726
29727 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29728 result=$?
29729 if test $result = 0; then
29730 ac_path_to_link=""
29731 else
29732 ac_path_to_link=" -L$ac_find_libraries"
29733 fi
29734
29735 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29736 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29737 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29738 fi
29739
29740 found_gl=1
29741 OPENGL_LIBS="-lGL -lGLU"
29742 echo "$as_me:$LINENO: result: yes" >&5
29743echo "${ECHO_T}yes" >&6
69120ee4
VZ
29744 else
29745 echo "$as_me:$LINENO: result: no" >&5
29746echo "${ECHO_T}no" >&6
a848cd7e 29747 fi
69120ee4
VZ
29748 else
29749 echo "$as_me:$LINENO: result: no" >&5
29750echo "${ECHO_T}no" >&6
a848cd7e
SC
29751 fi
29752
29753 if test "$found_gl" != 1; then
a848cd7e
SC
29754 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29755echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29756
29757ac_find_libraries=
29758for ac_dir in $SEARCH_LIB /usr/lib;
29759 do
3eca31dc 29760 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29761 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29762 ac_find_libraries=$ac_dir
29763 break 2
29764 fi
29765 done
29766 done
29767
29768 if test "$ac_find_libraries" != "" ; then
29769
29770 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29771 result=$?
29772 if test $result = 0; then
29773 ac_path_to_link=""
29774 else
29775 ac_path_to_link=" -L$ac_find_libraries"
29776 fi
29777
29778 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29779 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29780 echo "$as_me:$LINENO: result: yes" >&5
29781echo "${ECHO_T}yes" >&6
29782 else
29783 echo "$as_me:$LINENO: result: no" >&5
29784echo "${ECHO_T}no" >&6
29785 fi
29786 fi
29787
29788fi
29789
29790
29791
29792 if test "x$OPENGL_LIBS" = "x"; then
29793 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29794echo "$as_me: error: OpenGL libraries not available" >&2;}
29795 { (exit 1); exit 1; }; }
29796 fi
29797 fi
29798
29799 if test "$wxUSE_OPENGL" = "yes"; then
29800 USE_OPENGL=1
29801 cat >>confdefs.h <<\_ACEOF
29802#define wxUSE_OPENGL 1
29803_ACEOF
29804
29805 cat >>confdefs.h <<\_ACEOF
29806#define wxUSE_GLCANVAS 1
29807_ACEOF
29808
29809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29810 fi
29811fi
29812
a848cd7e
SC
29813
29814if test -n "$TOOLKIT" ; then
29815 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29816fi
29817
a848cd7e
SC
29818
29819
29820if test "$wxUSE_SHARED" = "yes"; then
29821 case "${host}" in
29822 *-pc-msdosdjgpp )
29823 wxUSE_SHARED=no
29824 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29825echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29826 ;;
29827 esac
29828fi
29829
a848cd7e 29830if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29831
29832
29833 found_versioning=no
29834
29835
29836 if test $found_versioning = no ; then
29837 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29838echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29839if test "${wx_cv_version_script+set}" = set; then
29840 echo $ECHO_N "(cached) $ECHO_C" >&6
29841else
29842
29843 echo "VER_1 { *; };" >conftest.sym
29844 echo "int main() { return 0; }" >conftest.cpp
29845
29846 if { ac_try='
29847 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29848 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29850 (eval $ac_try) 2>&5
29851 ac_status=$?
29852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853 (exit $ac_status); }; } ; then
29854 if test -s conftest.stderr ; then
29855 wx_cv_version_script=no
29856 else
29857 wx_cv_version_script=yes
29858 fi
29859 else
29860 wx_cv_version_script=no
29861 fi
e5d4b470
MW
29862
29863 if test $wx_cv_version_script = yes
29864 then
29865 echo "struct B { virtual ~B() { } }; \
29866 struct D : public B { }; \
29867 void F() { D d; }" > conftest.cpp
29868
29869 if { ac_try='
29870 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29871 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
29872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29873 (eval $ac_try) 2>&5
29874 ac_status=$?
29875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29876 (exit $ac_status); }; } &&
29877 { ac_try='
29878 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29879 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
29880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29881 (eval $ac_try) 2>&5
29882 ac_status=$?
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); }; }
29885 then
29886 if { ac_try='
29887 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29888 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
29889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29890 (eval $ac_try) 2>&5
29891 ac_status=$?
29892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893 (exit $ac_status); }; }
29894 then
29895 wx_cv_version_script=yes
29896 else
29897 wx_cv_version_script=no
29898 fi
29899 fi
29900 fi
29901
a848cd7e 29902 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 29903 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
29904
29905fi
29906echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29907echo "${ECHO_T}$wx_cv_version_script" >&6
29908 if test $wx_cv_version_script = yes ; then
29909 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29910 fi
29911 fi
29912
29913
29914 case "${host}" in
29915 *-*-linux* | *-*-gnu* )
29916 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29917 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 29918 ;;
a848cd7e
SC
29919
29920 *-*-solaris2* )
29921 if test "$GCC" = yes ; then
29922 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29923
29924 saveLdflags="$LDFLAGS"
29925 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29926 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29927echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29928 cat >conftest.$ac_ext <<_ACEOF
29929/* confdefs.h. */
29930_ACEOF
29931cat confdefs.h >>conftest.$ac_ext
29932cat >>conftest.$ac_ext <<_ACEOF
29933/* end confdefs.h. */
29934
29935int
29936main ()
29937{
29938
29939 ;
29940 return 0;
29941}
29942_ACEOF
29943rm -f conftest.$ac_objext conftest$ac_exeext
29944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29945 (eval $ac_link) 2>conftest.er1
a848cd7e 29946 ac_status=$?
ac1cb8d3
VS
29947 grep -v '^ *+' conftest.er1 >conftest.err
29948 rm -f conftest.er1
29949 cat conftest.err >&5
a848cd7e
SC
29950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951 (exit $ac_status); } &&
6ebeb4c7 29952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29954 (eval $ac_try) 2>&5
29955 ac_status=$?
29956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957 (exit $ac_status); }; } &&
29958 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29960 (eval $ac_try) 2>&5
29961 ac_status=$?
29962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963 (exit $ac_status); }; }; then
29964
29965 echo "$as_me:$LINENO: result: yes" >&5
29966echo "${ECHO_T}yes" >&6
29967 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29968 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29969
29970else
29971 echo "$as_me: failed program was:" >&5
29972sed 's/^/| /' conftest.$ac_ext >&5
29973
29974
29975 echo "$as_me:$LINENO: result: no" >&5
29976echo "${ECHO_T}no" >&6
29977 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29978echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29979 LDFLAGS="$saveLdflags -Wl,-R,/"
29980 cat >conftest.$ac_ext <<_ACEOF
29981/* confdefs.h. */
29982_ACEOF
29983cat confdefs.h >>conftest.$ac_ext
29984cat >>conftest.$ac_ext <<_ACEOF
29985/* end confdefs.h. */
29986
29987int
29988main ()
29989{
29990
29991 ;
29992 return 0;
29993}
29994_ACEOF
29995rm -f conftest.$ac_objext conftest$ac_exeext
29996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29997 (eval $ac_link) 2>conftest.er1
a848cd7e 29998 ac_status=$?
ac1cb8d3
VS
29999 grep -v '^ *+' conftest.er1 >conftest.err
30000 rm -f conftest.er1
30001 cat conftest.err >&5
a848cd7e
SC
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); } &&
6ebeb4c7 30004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30006 (eval $ac_try) 2>&5
30007 ac_status=$?
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); }; } &&
30010 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30012 (eval $ac_try) 2>&5
30013 ac_status=$?
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); }; }; then
30016
ffa0583f 30017 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 30018echo "${ECHO_T}yes" >&6
ffa0583f
RL
30019 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
30020 WXCONFIG_RPATH="-Wl,-R,\$libdir"
30021
a848cd7e
SC
30022else
30023 echo "$as_me: failed program was:" >&5
30024sed 's/^/| /' conftest.$ac_ext >&5
30025
30026
30027 echo "$as_me:$LINENO: result: no" >&5
30028echo "${ECHO_T}no" >&6
30029
30030fi
ac1cb8d3
VS
30031rm -f conftest.err conftest.$ac_objext \
30032 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30033
30034fi
ac1cb8d3
VS
30035rm -f conftest.err conftest.$ac_objext \
30036 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30037 LDFLAGS="$saveLdflags"
30038 else
a848cd7e 30039 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 30040 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
30041 fi
30042 ;;
30043
cfda0ea8 30044 *-*-darwin* )
0caebc27
MW
30045 install_name_tool=`which install_name_tool`
30046 if test "$install_name_tool" -a -x "$install_name_tool"; then
30047 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
30048 cat <<EOF >change-install-names
a848cd7e
SC
30049#!/bin/sh
30050libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
30051inst_cmd="install_name_tool "
30052for i in \${libnames} ; do
30053 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
30054done
30055\${inst_cmd} \${3}
30056EOF
0caebc27
MW
30057 chmod +x change-install-names
30058 fi
a848cd7e
SC
30059 ;;
30060
30061 *-*-cygwin* | *-*-mingw32* )
30062 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
30063 ;;
30064
81f90336
MW
30065 *-*-hpux* )
30066 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
30067 WXCONFIG_RPATH="-Wl,+b,\$libdir"
30068 ;;
30069
a848cd7e 30070 esac
ceec2216 30071
ffa0583f
RL
30072 if test $wxUSE_RPATH = "no"; then
30073 SAMPLES_RPATH_FLAG=''
30074 SAMPLES_RPATH_POSTLINK=''
30075 WXCONFIG_RPATH=''
30076 fi
30077
30078 SHARED=1
30079
30080else
30081
ceec2216
RL
30082 config_linkage_component="-static"
30083 SHARED=0
ffa0583f 30084
ceec2216 30085fi
a848cd7e 30086
a848cd7e 30087
ceec2216
RL
30088UNICODE=0
30089lib_unicode_suffix=
30090WX_CHARTYPE="ansi"
30091if test "$wxUSE_UNICODE" = "yes"; then
30092 lib_unicode_suffix=u
30093 WX_CHARTYPE="unicode"
30094 UNICODE=1
a848cd7e
SC
30095fi
30096
ceec2216
RL
30097lib_debug_suffix=
30098WX_DEBUGTYPE="release"
30099DEBUG_FLAG=0
30100if test "$wxUSE_DEBUG_FLAG" = "yes"; then
30101 lib_debug_suffix=d
30102 WX_DEBUGTYPE="debug"
30103 DEBUG_FLAG=1
30104fi
a848cd7e 30105
ceec2216
RL
30106WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
30107WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 30108
ceec2216
RL
30109DEBUG_INFO=0
30110if test "$wxUSE_DEBUG_INFO" = "yes"; then
30111 DEBUG_INFO=1
30112fi
a848cd7e 30113
ceec2216 30114WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30115
ceec2216 30116TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30117
ceec2216 30118TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30119
ceec2216
RL
30120if test "$cross_compiling" = "yes"; then
30121 HOST_SUFFIX="-$host_alias"
30122 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30123 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30124fi
30125
dd21ced8 30126WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30127if test "${TOOLKIT_DIR}" = "os2"; then
30128 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30129else
30130 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30131fi
ceec2216
RL
30132
30133
30134
1d1af5ea
DE
30135if test "$wxUSE_COCOA" = 1; then
30136
30137
30138 ac_ext=c
30139ac_cpp='$CPP $CPPFLAGS'
30140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30142ac_compiler_gnu=$ac_cv_c_compiler_gnu
30143
30144ac_ext=m
30145
30146 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30147echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30148 cat >conftest.$ac_ext <<_ACEOF
30149/* confdefs.h. */
30150_ACEOF
30151cat confdefs.h >>conftest.$ac_ext
30152cat >>conftest.$ac_ext <<_ACEOF
30153/* end confdefs.h. */
30154#include <AppKit/NSEvent.h>
30155#include <CoreFoundation/CoreFoundation.h>
30156
30157int
30158main ()
30159{
30160
30161 ;
30162 return 0;
30163}
30164_ACEOF
30165rm -f conftest.$ac_objext
30166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30167 (eval $ac_compile) 2>conftest.er1
30168 ac_status=$?
30169 grep -v '^ *+' conftest.er1 >conftest.err
30170 rm -f conftest.er1
30171 cat conftest.err >&5
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); } &&
6ebeb4c7 30174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30176 (eval $ac_try) 2>&5
30177 ac_status=$?
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); }; } &&
30180 { ac_try='test -s conftest.$ac_objext'
30181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30182 (eval $ac_try) 2>&5
30183 ac_status=$?
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185 (exit $ac_status); }; }; then
30186 echo "$as_me:$LINENO: result: no" >&5
30187echo "${ECHO_T}no" >&6
30188else
30189 echo "$as_me: failed program was:" >&5
30190sed 's/^/| /' conftest.$ac_ext >&5
30191
30192echo "$as_me:$LINENO: result: yes" >&5
30193echo "${ECHO_T}yes" >&6
30194 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30195echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30196 cat >conftest.$ac_ext <<_ACEOF
30197/* confdefs.h. */
30198_ACEOF
30199cat confdefs.h >>conftest.$ac_ext
30200cat >>conftest.$ac_ext <<_ACEOF
30201/* end confdefs.h. */
30202#define __Point__ 1
30203#include <AppKit/NSEvent.h>
30204#include <CoreFoundation/CoreFoundation.h>
30205
30206int
30207main ()
30208{
30209
30210 ;
30211 return 0;
30212}
30213_ACEOF
30214rm -f conftest.$ac_objext
30215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30216 (eval $ac_compile) 2>conftest.er1
30217 ac_status=$?
30218 grep -v '^ *+' conftest.er1 >conftest.err
30219 rm -f conftest.er1
30220 cat conftest.err >&5
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); } &&
6ebeb4c7 30223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
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); }; } &&
30229 { ac_try='test -s conftest.$ac_objext'
30230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30231 (eval $ac_try) 2>&5
30232 ac_status=$?
30233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30234 (exit $ac_status); }; }; then
30235 echo "$as_me:$LINENO: result: yes" >&5
30236echo "${ECHO_T}yes" >&6
30237 cat >>confdefs.h <<\_ACEOF
30238#define __Point__ 1
30239_ACEOF
30240
30241
30242else
30243 echo "$as_me: failed program was:" >&5
30244sed 's/^/| /' conftest.$ac_ext >&5
30245
30246{ { echo "$as_me:$LINENO: error: no
30247See \`config.log' for more details." >&5
30248echo "$as_me: error: no
30249See \`config.log' for more details." >&2;}
30250 { (exit 1); exit 1; }; }
30251
30252fi
30253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30254
30255fi
30256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30257 ac_ext=c
30258ac_cpp='$CPP $CPPFLAGS'
30259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30261ac_compiler_gnu=$ac_cv_c_compiler_gnu
30262
30263fi
30264
a848cd7e 30265if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
30266 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
30267 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 30268
a848cd7e 30269 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
30270
30271 # Extract the first word of "Rez", so it can be a program name with args.
30272set dummy Rez; ac_word=$2
30273echo "$as_me:$LINENO: checking for $ac_word" >&5
30274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30275if test "${ac_cv_prog_RESCOMP+set}" = set; then
30276 echo $ECHO_N "(cached) $ECHO_C" >&6
30277else
30278 if test -n "$RESCOMP"; then
30279 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
30280else
30281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30282for as_dir in $PATH
30283do
30284 IFS=$as_save_IFS
30285 test -z "$as_dir" && as_dir=.
30286 for ac_exec_ext in '' $ac_executable_extensions; do
30287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30288 ac_cv_prog_RESCOMP="Rez"
30289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30290 break 2
30291 fi
30292done
30293done
30294
30295 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
30296fi
30297fi
30298RESCOMP=$ac_cv_prog_RESCOMP
30299if test -n "$RESCOMP"; then
30300 echo "$as_me:$LINENO: result: $RESCOMP" >&5
30301echo "${ECHO_T}$RESCOMP" >&6
30302else
30303 echo "$as_me:$LINENO: result: no" >&5
30304echo "${ECHO_T}no" >&6
30305fi
30306
30307 # Extract the first word of "DeRez", so it can be a program name with args.
30308set dummy DeRez; ac_word=$2
30309echo "$as_me:$LINENO: checking for $ac_word" >&5
30310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30311if test "${ac_cv_prog_DEREZ+set}" = set; then
30312 echo $ECHO_N "(cached) $ECHO_C" >&6
30313else
30314 if test -n "$DEREZ"; then
30315 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
30316else
30317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30318for as_dir in $PATH
30319do
30320 IFS=$as_save_IFS
30321 test -z "$as_dir" && as_dir=.
30322 for ac_exec_ext in '' $ac_executable_extensions; do
30323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30324 ac_cv_prog_DEREZ="DeRez"
30325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30326 break 2
30327 fi
30328done
30329done
30330
30331 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
30332fi
30333fi
30334DEREZ=$ac_cv_prog_DEREZ
30335if test -n "$DEREZ"; then
30336 echo "$as_me:$LINENO: result: $DEREZ" >&5
30337echo "${ECHO_T}$DEREZ" >&6
30338else
30339 echo "$as_me:$LINENO: result: no" >&5
30340echo "${ECHO_T}no" >&6
30341fi
30342
30343 # Extract the first word of "SetFile", so it can be a program name with args.
30344set dummy SetFile; ac_word=$2
30345echo "$as_me:$LINENO: checking for $ac_word" >&5
30346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30347if test "${ac_cv_prog_SETFILE+set}" = set; then
30348 echo $ECHO_N "(cached) $ECHO_C" >&6
30349else
30350 if test -n "$SETFILE"; then
30351 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
30352else
30353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30354for as_dir in $PATH
30355do
30356 IFS=$as_save_IFS
30357 test -z "$as_dir" && as_dir=.
30358 for ac_exec_ext in '' $ac_executable_extensions; do
30359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30360 ac_cv_prog_SETFILE="SetFile"
30361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30362 break 2
30363 fi
30364done
30365done
30366
30367 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
30368fi
30369fi
30370SETFILE=$ac_cv_prog_SETFILE
30371if test -n "$SETFILE"; then
30372 echo "$as_me:$LINENO: result: $SETFILE" >&5
30373echo "${ECHO_T}$SETFILE" >&6
30374else
30375 echo "$as_me:$LINENO: result: no" >&5
30376echo "${ECHO_T}no" >&6
30377fi
30378
30379
30380 MACSETFILE="\$(SETFILE)"
30381
30382 if test "$wxUSE_MAC" = 1; then
1a79f136 30383 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 30384
1a79f136 30385 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
30386 else
30387 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
30388 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
30389 fi
30390else
ffa0583f
RL
30391 MACSETFILE="@true"
30392 MACRESWXCONFIG="@true"
a848cd7e
SC
30393
30394 if test "$wxUSE_PM" = 1; then
30395 MACRESCOMP="emxbind -ep"
30396 else
ffa0583f 30397 MACRESCOMP="@true"
a848cd7e
SC
30398 fi
30399fi
30400
30401
30402
30403echo "$as_me:$LINENO: checking for mode_t" >&5
30404echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30405if test "${ac_cv_type_mode_t+set}" = set; then
30406 echo $ECHO_N "(cached) $ECHO_C" >&6
30407else
30408 cat >conftest.$ac_ext <<_ACEOF
30409/* confdefs.h. */
30410_ACEOF
30411cat confdefs.h >>conftest.$ac_ext
30412cat >>conftest.$ac_ext <<_ACEOF
30413/* end confdefs.h. */
30414$ac_includes_default
30415int
30416main ()
30417{
30418if ((mode_t *) 0)
30419 return 0;
30420if (sizeof (mode_t))
30421 return 0;
30422 ;
30423 return 0;
30424}
30425_ACEOF
30426rm -f conftest.$ac_objext
30427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30428 (eval $ac_compile) 2>conftest.er1
a848cd7e 30429 ac_status=$?
ac1cb8d3
VS
30430 grep -v '^ *+' conftest.er1 >conftest.err
30431 rm -f conftest.er1
30432 cat conftest.err >&5
a848cd7e
SC
30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434 (exit $ac_status); } &&
6ebeb4c7 30435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30437 (eval $ac_try) 2>&5
30438 ac_status=$?
30439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440 (exit $ac_status); }; } &&
30441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30443 (eval $ac_try) 2>&5
30444 ac_status=$?
30445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30446 (exit $ac_status); }; }; then
30447 ac_cv_type_mode_t=yes
30448else
30449 echo "$as_me: failed program was:" >&5
30450sed 's/^/| /' conftest.$ac_ext >&5
30451
30452ac_cv_type_mode_t=no
30453fi
ac1cb8d3 30454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30455fi
30456echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
30457echo "${ECHO_T}$ac_cv_type_mode_t" >&6
30458if test $ac_cv_type_mode_t = yes; then
30459 :
30460else
30461
30462cat >>confdefs.h <<_ACEOF
30463#define mode_t int
30464_ACEOF
30465
30466fi
30467
30468echo "$as_me:$LINENO: checking for off_t" >&5
30469echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30470if test "${ac_cv_type_off_t+set}" = set; then
30471 echo $ECHO_N "(cached) $ECHO_C" >&6
30472else
30473 cat >conftest.$ac_ext <<_ACEOF
30474/* confdefs.h. */
30475_ACEOF
30476cat confdefs.h >>conftest.$ac_ext
30477cat >>conftest.$ac_ext <<_ACEOF
30478/* end confdefs.h. */
30479$ac_includes_default
30480int
30481main ()
30482{
30483if ((off_t *) 0)
30484 return 0;
30485if (sizeof (off_t))
30486 return 0;
30487 ;
30488 return 0;
30489}
30490_ACEOF
30491rm -f conftest.$ac_objext
30492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30493 (eval $ac_compile) 2>conftest.er1
a848cd7e 30494 ac_status=$?
ac1cb8d3
VS
30495 grep -v '^ *+' conftest.er1 >conftest.err
30496 rm -f conftest.er1
30497 cat conftest.err >&5
a848cd7e
SC
30498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499 (exit $ac_status); } &&
6ebeb4c7 30500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30502 (eval $ac_try) 2>&5
30503 ac_status=$?
30504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30505 (exit $ac_status); }; } &&
30506 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30508 (eval $ac_try) 2>&5
30509 ac_status=$?
30510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30511 (exit $ac_status); }; }; then
30512 ac_cv_type_off_t=yes
30513else
30514 echo "$as_me: failed program was:" >&5
30515sed 's/^/| /' conftest.$ac_ext >&5
30516
30517ac_cv_type_off_t=no
30518fi
ac1cb8d3 30519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30520fi
30521echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30522echo "${ECHO_T}$ac_cv_type_off_t" >&6
30523if test $ac_cv_type_off_t = yes; then
30524 :
30525else
30526
30527cat >>confdefs.h <<_ACEOF
30528#define off_t long
30529_ACEOF
30530
30531fi
30532
30533echo "$as_me:$LINENO: checking for pid_t" >&5
30534echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30535if test "${ac_cv_type_pid_t+set}" = set; then
30536 echo $ECHO_N "(cached) $ECHO_C" >&6
30537else
30538 cat >conftest.$ac_ext <<_ACEOF
30539/* confdefs.h. */
30540_ACEOF
30541cat confdefs.h >>conftest.$ac_ext
30542cat >>conftest.$ac_ext <<_ACEOF
30543/* end confdefs.h. */
30544$ac_includes_default
30545int
30546main ()
30547{
30548if ((pid_t *) 0)
30549 return 0;
30550if (sizeof (pid_t))
30551 return 0;
30552 ;
30553 return 0;
30554}
30555_ACEOF
30556rm -f conftest.$ac_objext
30557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30558 (eval $ac_compile) 2>conftest.er1
a848cd7e 30559 ac_status=$?
ac1cb8d3
VS
30560 grep -v '^ *+' conftest.er1 >conftest.err
30561 rm -f conftest.er1
30562 cat conftest.err >&5
a848cd7e
SC
30563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564 (exit $ac_status); } &&
6ebeb4c7 30565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30567 (eval $ac_try) 2>&5
30568 ac_status=$?
30569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570 (exit $ac_status); }; } &&
30571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30573 (eval $ac_try) 2>&5
30574 ac_status=$?
30575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30576 (exit $ac_status); }; }; then
30577 ac_cv_type_pid_t=yes
30578else
30579 echo "$as_me: failed program was:" >&5
30580sed 's/^/| /' conftest.$ac_ext >&5
30581
30582ac_cv_type_pid_t=no
30583fi
ac1cb8d3 30584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30585fi
30586echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30587echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30588if test $ac_cv_type_pid_t = yes; then
30589 :
30590else
30591
30592cat >>confdefs.h <<_ACEOF
30593#define pid_t int
30594_ACEOF
30595
30596fi
30597
30598echo "$as_me:$LINENO: checking for size_t" >&5
30599echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30600if test "${ac_cv_type_size_t+set}" = set; then
30601 echo $ECHO_N "(cached) $ECHO_C" >&6
30602else
30603 cat >conftest.$ac_ext <<_ACEOF
30604/* confdefs.h. */
30605_ACEOF
30606cat confdefs.h >>conftest.$ac_ext
30607cat >>conftest.$ac_ext <<_ACEOF
30608/* end confdefs.h. */
30609$ac_includes_default
30610int
30611main ()
30612{
30613if ((size_t *) 0)
30614 return 0;
30615if (sizeof (size_t))
30616 return 0;
30617 ;
30618 return 0;
30619}
30620_ACEOF
30621rm -f conftest.$ac_objext
30622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30623 (eval $ac_compile) 2>conftest.er1
a848cd7e 30624 ac_status=$?
ac1cb8d3
VS
30625 grep -v '^ *+' conftest.er1 >conftest.err
30626 rm -f conftest.er1
30627 cat conftest.err >&5
a848cd7e
SC
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); } &&
6ebeb4c7 30630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30632 (eval $ac_try) 2>&5
30633 ac_status=$?
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; } &&
30636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30638 (eval $ac_try) 2>&5
30639 ac_status=$?
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641 (exit $ac_status); }; }; then
30642 ac_cv_type_size_t=yes
30643else
30644 echo "$as_me: failed program was:" >&5
30645sed 's/^/| /' conftest.$ac_ext >&5
30646
30647ac_cv_type_size_t=no
30648fi
ac1cb8d3 30649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30650fi
30651echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30652echo "${ECHO_T}$ac_cv_type_size_t" >&6
30653if test $ac_cv_type_size_t = yes; then
30654 :
30655else
30656
30657cat >>confdefs.h <<_ACEOF
30658#define size_t unsigned
30659_ACEOF
30660
30661fi
30662
30663echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30664echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30665if test "${ac_cv_type_uid_t+set}" = set; then
30666 echo $ECHO_N "(cached) $ECHO_C" >&6
30667else
30668 cat >conftest.$ac_ext <<_ACEOF
30669/* confdefs.h. */
30670_ACEOF
30671cat confdefs.h >>conftest.$ac_ext
30672cat >>conftest.$ac_ext <<_ACEOF
30673/* end confdefs.h. */
30674#include <sys/types.h>
30675
30676_ACEOF
30677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30678 $EGREP "uid_t" >/dev/null 2>&1; then
30679 ac_cv_type_uid_t=yes
30680else
30681 ac_cv_type_uid_t=no
30682fi
30683rm -f conftest*
30684
30685fi
30686echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30687echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30688if test $ac_cv_type_uid_t = no; then
30689
30690cat >>confdefs.h <<\_ACEOF
30691#define uid_t int
30692_ACEOF
30693
30694
30695cat >>confdefs.h <<\_ACEOF
30696#define gid_t int
30697_ACEOF
30698
30699fi
30700
30701
d51253e8
RL
30702echo "$as_me:$LINENO: checking for ssize_t" >&5
30703echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30704if test "${ac_cv_type_ssize_t+set}" = set; then
30705 echo $ECHO_N "(cached) $ECHO_C" >&6
30706else
30707 cat >conftest.$ac_ext <<_ACEOF
30708/* confdefs.h. */
30709_ACEOF
30710cat confdefs.h >>conftest.$ac_ext
30711cat >>conftest.$ac_ext <<_ACEOF
30712/* end confdefs.h. */
30713$ac_includes_default
30714int
30715main ()
30716{
30717if ((ssize_t *) 0)
30718 return 0;
30719if (sizeof (ssize_t))
30720 return 0;
30721 ;
30722 return 0;
30723}
30724_ACEOF
30725rm -f conftest.$ac_objext
30726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30727 (eval $ac_compile) 2>conftest.er1
30728 ac_status=$?
30729 grep -v '^ *+' conftest.er1 >conftest.err
30730 rm -f conftest.er1
30731 cat conftest.err >&5
30732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30733 (exit $ac_status); } &&
6ebeb4c7 30734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
30735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30736 (eval $ac_try) 2>&5
30737 ac_status=$?
30738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30739 (exit $ac_status); }; } &&
30740 { ac_try='test -s conftest.$ac_objext'
30741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30742 (eval $ac_try) 2>&5
30743 ac_status=$?
30744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745 (exit $ac_status); }; }; then
30746 ac_cv_type_ssize_t=yes
30747else
30748 echo "$as_me: failed program was:" >&5
30749sed 's/^/| /' conftest.$ac_ext >&5
30750
30751ac_cv_type_ssize_t=no
30752fi
30753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30754fi
30755echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30756echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30757if test $ac_cv_type_ssize_t = yes; then
30758
30759cat >>confdefs.h <<_ACEOF
30760#define HAVE_SSIZE_T 1
30761_ACEOF
30762
30763
30764fi
30765
30766
a848cd7e
SC
30767
30768
30769ac_ext=cc
30770ac_cpp='$CXXCPP $CPPFLAGS'
30771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30774
30775echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30776echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30777if test "${wx_cv_size_t_is_uint+set}" = set; then
30778 echo $ECHO_N "(cached) $ECHO_C" >&6
30779else
30780
30781 cat >conftest.$ac_ext <<_ACEOF
30782/* confdefs.h. */
30783_ACEOF
30784cat confdefs.h >>conftest.$ac_ext
30785cat >>conftest.$ac_ext <<_ACEOF
30786/* end confdefs.h. */
30787#include <stddef.h>
30788int
30789main ()
30790{
30791
30792 return 0; }
30793
30794 struct Foo { void foo(size_t); void foo(unsigned int); };
30795
30796 int bar() {
30797
30798 ;
30799 return 0;
30800}
30801_ACEOF
30802rm -f conftest.$ac_objext
30803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30804 (eval $ac_compile) 2>conftest.er1
a848cd7e 30805 ac_status=$?
ac1cb8d3
VS
30806 grep -v '^ *+' conftest.er1 >conftest.err
30807 rm -f conftest.er1
30808 cat conftest.err >&5
a848cd7e
SC
30809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810 (exit $ac_status); } &&
6ebeb4c7 30811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30813 (eval $ac_try) 2>&5
30814 ac_status=$?
30815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); }; } &&
30817 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30819 (eval $ac_try) 2>&5
30820 ac_status=$?
30821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822 (exit $ac_status); }; }; then
30823 wx_cv_size_t_is_uint=no
30824else
30825 echo "$as_me: failed program was:" >&5
30826sed 's/^/| /' conftest.$ac_ext >&5
30827
30828wx_cv_size_t_is_uint=yes
30829
30830fi
ac1cb8d3 30831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30832
30833
30834fi
30835echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30836echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30837
30838if test "$wx_cv_size_t_is_uint" = "yes"; then
30839 cat >>confdefs.h <<\_ACEOF
30840#define wxSIZE_T_IS_UINT 1
30841_ACEOF
30842
30843else
30844 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30845echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30846if test "${wx_cv_size_t_is_ulong+set}" = set; then
30847 echo $ECHO_N "(cached) $ECHO_C" >&6
30848else
30849 cat >conftest.$ac_ext <<_ACEOF
30850/* confdefs.h. */
30851_ACEOF
30852cat confdefs.h >>conftest.$ac_ext
30853cat >>conftest.$ac_ext <<_ACEOF
30854/* end confdefs.h. */
30855#include <stddef.h>
30856int
30857main ()
30858{
30859
30860 return 0; }
30861
30862 struct Foo { void foo(size_t); void foo(unsigned long); };
30863
30864 int bar() {
30865
30866 ;
30867 return 0;
30868}
30869_ACEOF
30870rm -f conftest.$ac_objext
30871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30872 (eval $ac_compile) 2>conftest.er1
a848cd7e 30873 ac_status=$?
ac1cb8d3
VS
30874 grep -v '^ *+' conftest.er1 >conftest.err
30875 rm -f conftest.er1
30876 cat conftest.err >&5
a848cd7e
SC
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); } &&
6ebeb4c7 30879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30881 (eval $ac_try) 2>&5
30882 ac_status=$?
30883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884 (exit $ac_status); }; } &&
30885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30887 (eval $ac_try) 2>&5
30888 ac_status=$?
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); }; }; then
30891 wx_cv_size_t_is_ulong=no
30892else
30893 echo "$as_me: failed program was:" >&5
30894sed 's/^/| /' conftest.$ac_ext >&5
30895
30896wx_cv_size_t_is_ulong=yes
30897
30898fi
ac1cb8d3 30899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30900
30901fi
30902echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30903echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30904
30905 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30906 cat >>confdefs.h <<\_ACEOF
30907#define wxSIZE_T_IS_ULONG 1
30908_ACEOF
30909
30910 fi
30911fi
30912
30913ac_ext=c
30914ac_cpp='$CPP $CPPFLAGS'
30915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30917ac_compiler_gnu=$ac_cv_c_compiler_gnu
30918
30919
30920
30921echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30922echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30923if test "${wx_cv_struct_pw_gecos+set}" = set; then
30924 echo $ECHO_N "(cached) $ECHO_C" >&6
30925else
30926
30927 cat >conftest.$ac_ext <<_ACEOF
30928/* confdefs.h. */
30929_ACEOF
30930cat confdefs.h >>conftest.$ac_ext
30931cat >>conftest.$ac_ext <<_ACEOF
30932/* end confdefs.h. */
30933#include <pwd.h>
30934int
30935main ()
30936{
30937
30938 char *p;
30939 struct passwd *pw;
30940 p = pw->pw_gecos;
30941
30942 ;
30943 return 0;
30944}
30945_ACEOF
30946rm -f conftest.$ac_objext
30947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30948 (eval $ac_compile) 2>conftest.er1
a848cd7e 30949 ac_status=$?
ac1cb8d3
VS
30950 grep -v '^ *+' conftest.er1 >conftest.err
30951 rm -f conftest.er1
30952 cat conftest.err >&5
a848cd7e
SC
30953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954 (exit $ac_status); } &&
6ebeb4c7 30955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30957 (eval $ac_try) 2>&5
30958 ac_status=$?
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); }; } &&
30961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30963 (eval $ac_try) 2>&5
30964 ac_status=$?
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); }; }; then
30967
30968 wx_cv_struct_pw_gecos=yes
30969
30970else
30971 echo "$as_me: failed program was:" >&5
30972sed 's/^/| /' conftest.$ac_ext >&5
30973
30974
30975 wx_cv_struct_pw_gecos=no
30976
30977
30978fi
ac1cb8d3 30979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30980
30981
30982fi
30983echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30984echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30985
30986if test "$wx_cv_struct_pw_gecos" = "yes"; then
30987 cat >>confdefs.h <<\_ACEOF
30988#define HAVE_PW_GECOS 1
30989_ACEOF
30990
30991fi
30992
30993
47a7e797 30994if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
30995 cat >>confdefs.h <<\_ACEOF
30996#define wxUSE_WCHAR_T 1
30997_ACEOF
30998
30999
31000 WCSLEN_FOUND=0
31001 WCHAR_LINK=
31002
31003for ac_func in wcslen
31004do
31005as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31006echo "$as_me:$LINENO: checking for $ac_func" >&5
31007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31008if eval "test \"\${$as_ac_var+set}\" = set"; then
31009 echo $ECHO_N "(cached) $ECHO_C" >&6
31010else
31011 cat >conftest.$ac_ext <<_ACEOF
31012/* confdefs.h. */
31013_ACEOF
31014cat confdefs.h >>conftest.$ac_ext
31015cat >>conftest.$ac_ext <<_ACEOF
31016/* end confdefs.h. */
ac1cb8d3
VS
31017/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31019#define $ac_func innocuous_$ac_func
31020
a848cd7e
SC
31021/* System header to define __stub macros and hopefully few prototypes,
31022 which can conflict with char $ac_func (); below.
31023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31024 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31025
a848cd7e
SC
31026#ifdef __STDC__
31027# include <limits.h>
31028#else
31029# include <assert.h>
31030#endif
ac1cb8d3
VS
31031
31032#undef $ac_func
31033
a848cd7e
SC
31034/* Override any gcc2 internal prototype to avoid an error. */
31035#ifdef __cplusplus
31036extern "C"
31037{
31038#endif
31039/* We use char because int might match the return type of a gcc2
31040 builtin and then its argument prototype would still apply. */
31041char $ac_func ();
31042/* The GNU C library defines this for functions which it implements
31043 to always fail with ENOSYS. Some functions are actually named
31044 something starting with __ and the normal name is an alias. */
31045#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31046choke me
31047#else
31048char (*f) () = $ac_func;
31049#endif
31050#ifdef __cplusplus
31051}
31052#endif
31053
31054int
31055main ()
31056{
31057return f != $ac_func;
31058 ;
31059 return 0;
31060}
31061_ACEOF
31062rm -f conftest.$ac_objext conftest$ac_exeext
31063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31064 (eval $ac_link) 2>conftest.er1
a848cd7e 31065 ac_status=$?
ac1cb8d3
VS
31066 grep -v '^ *+' conftest.er1 >conftest.err
31067 rm -f conftest.er1
31068 cat conftest.err >&5
a848cd7e
SC
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); } &&
6ebeb4c7 31071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31073 (eval $ac_try) 2>&5
31074 ac_status=$?
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); }; } &&
31077 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31079 (eval $ac_try) 2>&5
31080 ac_status=$?
31081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082 (exit $ac_status); }; }; then
31083 eval "$as_ac_var=yes"
31084else
31085 echo "$as_me: failed program was:" >&5
31086sed 's/^/| /' conftest.$ac_ext >&5
31087
31088eval "$as_ac_var=no"
31089fi
ac1cb8d3
VS
31090rm -f conftest.err conftest.$ac_objext \
31091 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31092fi
31093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31094echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31095if test `eval echo '${'$as_ac_var'}'` = yes; then
31096 cat >>confdefs.h <<_ACEOF
31097#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31098_ACEOF
31099 WCSLEN_FOUND=1
31100fi
31101done
31102
31103
31104 if test "$WCSLEN_FOUND" = 0; then
31105 if test "$TOOLKIT" = "MSW"; then
31106 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
31107echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
31108if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
31109 echo $ECHO_N "(cached) $ECHO_C" >&6
31110else
31111 ac_check_lib_save_LIBS=$LIBS
31112LIBS="-lmsvcrt $LIBS"
31113cat >conftest.$ac_ext <<_ACEOF
31114/* confdefs.h. */
31115_ACEOF
31116cat confdefs.h >>conftest.$ac_ext
31117cat >>conftest.$ac_ext <<_ACEOF
31118/* end confdefs.h. */
31119
31120/* Override any gcc2 internal prototype to avoid an error. */
31121#ifdef __cplusplus
31122extern "C"
31123#endif
31124/* We use char because int might match the return type of a gcc2
31125 builtin and then its argument prototype would still apply. */
31126char wcslen ();
31127int
31128main ()
31129{
31130wcslen ();
31131 ;
31132 return 0;
31133}
31134_ACEOF
31135rm -f conftest.$ac_objext conftest$ac_exeext
31136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31137 (eval $ac_link) 2>conftest.er1
a848cd7e 31138 ac_status=$?
ac1cb8d3
VS
31139 grep -v '^ *+' conftest.er1 >conftest.err
31140 rm -f conftest.er1
31141 cat conftest.err >&5
a848cd7e
SC
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); } &&
6ebeb4c7 31144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31146 (eval $ac_try) 2>&5
31147 ac_status=$?
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); }; } &&
31150 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31152 (eval $ac_try) 2>&5
31153 ac_status=$?
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); }; }; then
31156 ac_cv_lib_msvcrt_wcslen=yes
31157else
31158 echo "$as_me: failed program was:" >&5
31159sed 's/^/| /' conftest.$ac_ext >&5
31160
31161ac_cv_lib_msvcrt_wcslen=no
31162fi
ac1cb8d3
VS
31163rm -f conftest.err conftest.$ac_objext \
31164 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31165LIBS=$ac_check_lib_save_LIBS
31166fi
31167echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31168echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31169if test $ac_cv_lib_msvcrt_wcslen = yes; then
31170 WCHAR_OK=1
31171fi
31172
31173 else
31174 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31175echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31176if test "${ac_cv_lib_w_wcslen+set}" = set; then
31177 echo $ECHO_N "(cached) $ECHO_C" >&6
31178else
31179 ac_check_lib_save_LIBS=$LIBS
31180LIBS="-lw $LIBS"
31181cat >conftest.$ac_ext <<_ACEOF
31182/* confdefs.h. */
31183_ACEOF
31184cat confdefs.h >>conftest.$ac_ext
31185cat >>conftest.$ac_ext <<_ACEOF
31186/* end confdefs.h. */
31187
31188/* Override any gcc2 internal prototype to avoid an error. */
31189#ifdef __cplusplus
31190extern "C"
31191#endif
31192/* We use char because int might match the return type of a gcc2
31193 builtin and then its argument prototype would still apply. */
31194char wcslen ();
31195int
31196main ()
31197{
31198wcslen ();
31199 ;
31200 return 0;
31201}
31202_ACEOF
31203rm -f conftest.$ac_objext conftest$ac_exeext
31204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31205 (eval $ac_link) 2>conftest.er1
a848cd7e 31206 ac_status=$?
ac1cb8d3
VS
31207 grep -v '^ *+' conftest.er1 >conftest.err
31208 rm -f conftest.er1
31209 cat conftest.err >&5
a848cd7e
SC
31210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211 (exit $ac_status); } &&
6ebeb4c7 31212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31214 (eval $ac_try) 2>&5
31215 ac_status=$?
31216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217 (exit $ac_status); }; } &&
31218 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31220 (eval $ac_try) 2>&5
31221 ac_status=$?
31222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31223 (exit $ac_status); }; }; then
31224 ac_cv_lib_w_wcslen=yes
31225else
31226 echo "$as_me: failed program was:" >&5
31227sed 's/^/| /' conftest.$ac_ext >&5
31228
31229ac_cv_lib_w_wcslen=no
31230fi
ac1cb8d3
VS
31231rm -f conftest.err conftest.$ac_objext \
31232 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31233LIBS=$ac_check_lib_save_LIBS
31234fi
31235echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
31236echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
31237if test $ac_cv_lib_w_wcslen = yes; then
31238
31239 WCHAR_LINK=" -lw"
31240 WCSLEN_FOUND=1
31241
31242fi
31243
31244 fi
31245 fi
31246
31247 if test "$WCSLEN_FOUND" = 1; then
31248 cat >>confdefs.h <<\_ACEOF
31249#define HAVE_WCSLEN 1
31250_ACEOF
31251
31252 fi
31253
efdf6afe 31254 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
31255 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
31256 fi
31257
efdf6afe
VZ
31258 echo "$as_me:$LINENO: checking for mbstate_t" >&5
31259echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
31260if test "${ac_cv_type_mbstate_t+set}" = set; then
31261 echo $ECHO_N "(cached) $ECHO_C" >&6
31262else
31263 cat >conftest.$ac_ext <<_ACEOF
31264/* confdefs.h. */
31265_ACEOF
31266cat confdefs.h >>conftest.$ac_ext
31267cat >>conftest.$ac_ext <<_ACEOF
31268/* end confdefs.h. */
31269#include <wchar.h>
31270
31271int
31272main ()
31273{
31274if ((mbstate_t *) 0)
31275 return 0;
31276if (sizeof (mbstate_t))
31277 return 0;
31278 ;
31279 return 0;
31280}
31281_ACEOF
31282rm -f conftest.$ac_objext
31283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31284 (eval $ac_compile) 2>conftest.er1
31285 ac_status=$?
31286 grep -v '^ *+' conftest.er1 >conftest.err
31287 rm -f conftest.er1
31288 cat conftest.err >&5
31289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290 (exit $ac_status); } &&
31291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31293 (eval $ac_try) 2>&5
31294 ac_status=$?
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296 (exit $ac_status); }; } &&
31297 { ac_try='test -s conftest.$ac_objext'
31298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31299 (eval $ac_try) 2>&5
31300 ac_status=$?
31301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31302 (exit $ac_status); }; }; then
31303 ac_cv_type_mbstate_t=yes
31304else
31305 echo "$as_me: failed program was:" >&5
31306sed 's/^/| /' conftest.$ac_ext >&5
31307
31308ac_cv_type_mbstate_t=no
31309fi
31310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31311fi
31312echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
31313echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
31314if test $ac_cv_type_mbstate_t = yes; then
31315
31316cat >>confdefs.h <<_ACEOF
31317#define HAVE_MBSTATE_T 1
31318_ACEOF
31319
a848cd7e
SC
31320
31321for ac_func in wcsrtombs
31322do
31323as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31324echo "$as_me:$LINENO: checking for $ac_func" >&5
31325echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31326if eval "test \"\${$as_ac_var+set}\" = set"; then
31327 echo $ECHO_N "(cached) $ECHO_C" >&6
31328else
31329 cat >conftest.$ac_ext <<_ACEOF
31330/* confdefs.h. */
31331_ACEOF
31332cat confdefs.h >>conftest.$ac_ext
31333cat >>conftest.$ac_ext <<_ACEOF
31334/* end confdefs.h. */
ac1cb8d3
VS
31335/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31337#define $ac_func innocuous_$ac_func
31338
a848cd7e
SC
31339/* System header to define __stub macros and hopefully few prototypes,
31340 which can conflict with char $ac_func (); below.
31341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31342 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31343
a848cd7e
SC
31344#ifdef __STDC__
31345# include <limits.h>
31346#else
31347# include <assert.h>
31348#endif
ac1cb8d3
VS
31349
31350#undef $ac_func
31351
a848cd7e
SC
31352/* Override any gcc2 internal prototype to avoid an error. */
31353#ifdef __cplusplus
31354extern "C"
31355{
31356#endif
31357/* We use char because int might match the return type of a gcc2
31358 builtin and then its argument prototype would still apply. */
31359char $ac_func ();
31360/* The GNU C library defines this for functions which it implements
31361 to always fail with ENOSYS. Some functions are actually named
31362 something starting with __ and the normal name is an alias. */
31363#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31364choke me
31365#else
31366char (*f) () = $ac_func;
31367#endif
31368#ifdef __cplusplus
31369}
31370#endif
31371
31372int
31373main ()
31374{
31375return f != $ac_func;
31376 ;
31377 return 0;
31378}
31379_ACEOF
31380rm -f conftest.$ac_objext conftest$ac_exeext
31381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31382 (eval $ac_link) 2>conftest.er1
a848cd7e 31383 ac_status=$?
ac1cb8d3
VS
31384 grep -v '^ *+' conftest.er1 >conftest.err
31385 rm -f conftest.er1
31386 cat conftest.err >&5
a848cd7e
SC
31387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388 (exit $ac_status); } &&
6ebeb4c7 31389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31391 (eval $ac_try) 2>&5
31392 ac_status=$?
31393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394 (exit $ac_status); }; } &&
31395 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31397 (eval $ac_try) 2>&5
31398 ac_status=$?
31399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31400 (exit $ac_status); }; }; then
31401 eval "$as_ac_var=yes"
31402else
31403 echo "$as_me: failed program was:" >&5
31404sed 's/^/| /' conftest.$ac_ext >&5
31405
31406eval "$as_ac_var=no"
31407fi
ac1cb8d3
VS
31408rm -f conftest.err conftest.$ac_objext \
31409 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31410fi
31411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31412echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31413if test `eval echo '${'$as_ac_var'}'` = yes; then
31414 cat >>confdefs.h <<_ACEOF
31415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31416_ACEOF
31417
31418fi
31419done
31420
efdf6afe
VZ
31421fi
31422
a848cd7e
SC
31423else
31424 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
31425echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
31426fi
31427
31428
31429
31430ac_ext=cc
31431ac_cpp='$CXXCPP $CPPFLAGS'
31432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31435
31436
31437
4a767dd5
VZ
31438
31439for ac_func in snprintf vsnprintf
a848cd7e
SC
31440do
31441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31442echo "$as_me:$LINENO: checking for $ac_func" >&5
31443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31444if eval "test \"\${$as_ac_var+set}\" = set"; then
31445 echo $ECHO_N "(cached) $ECHO_C" >&6
31446else
31447 cat >conftest.$ac_ext <<_ACEOF
31448/* confdefs.h. */
31449_ACEOF
31450cat confdefs.h >>conftest.$ac_ext
31451cat >>conftest.$ac_ext <<_ACEOF
31452/* end confdefs.h. */
ac1cb8d3
VS
31453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31455#define $ac_func innocuous_$ac_func
31456
a848cd7e
SC
31457/* System header to define __stub macros and hopefully few prototypes,
31458 which can conflict with char $ac_func (); below.
31459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31460 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31461
a848cd7e
SC
31462#ifdef __STDC__
31463# include <limits.h>
31464#else
31465# include <assert.h>
31466#endif
ac1cb8d3
VS
31467
31468#undef $ac_func
31469
a848cd7e
SC
31470/* Override any gcc2 internal prototype to avoid an error. */
31471#ifdef __cplusplus
31472extern "C"
31473{
31474#endif
31475/* We use char because int might match the return type of a gcc2
31476 builtin and then its argument prototype would still apply. */
31477char $ac_func ();
31478/* The GNU C library defines this for functions which it implements
31479 to always fail with ENOSYS. Some functions are actually named
31480 something starting with __ and the normal name is an alias. */
31481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31482choke me
31483#else
31484char (*f) () = $ac_func;
31485#endif
31486#ifdef __cplusplus
31487}
31488#endif
31489
31490int
31491main ()
31492{
31493return f != $ac_func;
31494 ;
31495 return 0;
31496}
31497_ACEOF
31498rm -f conftest.$ac_objext conftest$ac_exeext
31499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31500 (eval $ac_link) 2>conftest.er1
a848cd7e 31501 ac_status=$?
ac1cb8d3
VS
31502 grep -v '^ *+' conftest.er1 >conftest.err
31503 rm -f conftest.er1
31504 cat conftest.err >&5
a848cd7e
SC
31505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31506 (exit $ac_status); } &&
6ebeb4c7 31507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31509 (eval $ac_try) 2>&5
31510 ac_status=$?
31511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31512 (exit $ac_status); }; } &&
31513 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31515 (eval $ac_try) 2>&5
31516 ac_status=$?
31517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518 (exit $ac_status); }; }; then
31519 eval "$as_ac_var=yes"
31520else
31521 echo "$as_me: failed program was:" >&5
31522sed 's/^/| /' conftest.$ac_ext >&5
31523
31524eval "$as_ac_var=no"
31525fi
ac1cb8d3
VS
31526rm -f conftest.err conftest.$ac_objext \
31527 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31528fi
31529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31530echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31531if test `eval echo '${'$as_ac_var'}'` = yes; then
31532 cat >>confdefs.h <<_ACEOF
31533#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31534_ACEOF
31535
31536fi
31537done
31538
31539
31540if test "$ac_cv_func_vsnprintf" = "yes"; then
31541 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
31542echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
31543if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
31544 echo $ECHO_N "(cached) $ECHO_C" >&6
31545else
31546
efdf6afe 31547 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31548/* confdefs.h. */
31549_ACEOF
31550cat confdefs.h >>conftest.$ac_ext
31551cat >>conftest.$ac_ext <<_ACEOF
31552/* end confdefs.h. */
31553
31554 #include <stdio.h>
31555 #include <stdarg.h>
efdf6afe
VZ
31556 #ifdef __MSL__
31557 #if __MSL__ >= 0x6000
31558 namespace std {}
31559 using namespace std;
31560 #endif
31561 #endif
a848cd7e
SC
31562
31563int
31564main ()
31565{
31566
31567 char *buf;
31568 va_list ap;
62fa8b3a 31569 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
31570
31571 ;
31572 return 0;
31573}
31574_ACEOF
31575rm -f conftest.$ac_objext
31576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31577 (eval $ac_compile) 2>conftest.er1
31578 ac_status=$?
31579 grep -v '^ *+' conftest.er1 >conftest.err
31580 rm -f conftest.er1
31581 cat conftest.err >&5
31582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583 (exit $ac_status); } &&
6ebeb4c7 31584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
31585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31586 (eval $ac_try) 2>&5
31587 ac_status=$?
31588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589 (exit $ac_status); }; } &&
31590 { ac_try='test -s conftest.$ac_objext'
31591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31592 (eval $ac_try) 2>&5
31593 ac_status=$?
31594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595 (exit $ac_status); }; }; then
31596 wx_cv_func_vsnprintf_decl=yes
31597else
31598 echo "$as_me: failed program was:" >&5
31599sed 's/^/| /' conftest.$ac_ext >&5
31600
a848cd7e
SC
31601wx_cv_func_vsnprintf_decl=no
31602
31603fi
ac1cb8d3 31604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31605
31606
31607fi
31608echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31609echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31610
31611 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31612 cat >>confdefs.h <<\_ACEOF
31613#define HAVE_VSNPRINTF_DECL 1
31614_ACEOF
31615
62fa8b3a
MW
31616
31617 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
31618echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
31619if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
31620 echo $ECHO_N "(cached) $ECHO_C" >&6
31621else
31622
31623 cat >conftest.$ac_ext <<_ACEOF
31624/* confdefs.h. */
31625_ACEOF
31626cat confdefs.h >>conftest.$ac_ext
31627cat >>conftest.$ac_ext <<_ACEOF
31628/* end confdefs.h. */
31629
31630 #include <stdio.h>
31631 #include <stdarg.h>
31632 #ifdef __MSL__
31633 #if __MSL__ >= 0x6000
31634 namespace std {}
31635 using namespace std;
31636 #endif
31637 #endif
31638
31639int
31640main ()
31641{
31642
31643 char *buf;
31644 va_list ap;
31645 const char *fmt = "%s";
31646 vsnprintf(buf, 10u, fmt, ap);
31647
31648 ;
31649 return 0;
31650}
31651_ACEOF
31652rm -f conftest.$ac_objext
31653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31654 (eval $ac_compile) 2>conftest.er1
31655 ac_status=$?
31656 grep -v '^ *+' conftest.er1 >conftest.err
31657 rm -f conftest.er1
31658 cat conftest.err >&5
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); } &&
31661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31663 (eval $ac_try) 2>&5
31664 ac_status=$?
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); }; } &&
31667 { ac_try='test -s conftest.$ac_objext'
31668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31669 (eval $ac_try) 2>&5
31670 ac_status=$?
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); }; }; then
31673 wx_cv_func_broken_vsnprintf_decl=no
31674else
31675 echo "$as_me: failed program was:" >&5
31676sed 's/^/| /' conftest.$ac_ext >&5
31677
31678wx_cv_func_broken_vsnprintf_decl=yes
31679
31680fi
31681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31682
31683
31684fi
31685echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
31686echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
31687
31688 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
31689 cat >>confdefs.h <<\_ACEOF
31690#define HAVE_BROKEN_VSNPRINTF_DECL 1
31691_ACEOF
31692
31693 fi
a848cd7e
SC
31694 fi
31695fi
31696
4a767dd5
VZ
31697if test "$ac_cv_func_snprintf" = "yes"; then
31698 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
31699echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
31700if test "${wx_cv_func_snprintf_decl+set}" = set; then
31701 echo $ECHO_N "(cached) $ECHO_C" >&6
31702else
31703
31704 cat >conftest.$ac_ext <<_ACEOF
31705/* confdefs.h. */
31706_ACEOF
31707cat confdefs.h >>conftest.$ac_ext
31708cat >>conftest.$ac_ext <<_ACEOF
31709/* end confdefs.h. */
31710
31711 #include <stdio.h>
31712 #include <stdarg.h>
31713 #ifdef __MSL__
31714 #if __MSL__ >= 0x6000
31715 namespace std {}
31716 using namespace std;
31717 #endif
31718 #endif
31719
31720int
31721main ()
31722{
31723
31724 char *buf;
62fa8b3a 31725 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
31726
31727 ;
31728 return 0;
31729}
31730_ACEOF
31731rm -f conftest.$ac_objext
31732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31733 (eval $ac_compile) 2>conftest.er1
31734 ac_status=$?
31735 grep -v '^ *+' conftest.er1 >conftest.err
31736 rm -f conftest.er1
31737 cat conftest.err >&5
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); } &&
31740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31742 (eval $ac_try) 2>&5
31743 ac_status=$?
31744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31745 (exit $ac_status); }; } &&
31746 { ac_try='test -s conftest.$ac_objext'
31747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31748 (eval $ac_try) 2>&5
31749 ac_status=$?
31750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751 (exit $ac_status); }; }; then
31752 wx_cv_func_snprintf_decl=yes
31753else
31754 echo "$as_me: failed program was:" >&5
31755sed 's/^/| /' conftest.$ac_ext >&5
31756
31757wx_cv_func_snprintf_decl=no
31758
31759fi
31760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31761
31762
31763fi
31764echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
31765echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
31766
31767 if test "$wx_cv_func_snprintf_decl" = "yes"; then
31768 cat >>confdefs.h <<\_ACEOF
31769#define HAVE_SNPRINTF_DECL 1
31770_ACEOF
31771
62fa8b3a
MW
31772
31773 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
31774echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
31775if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
31776 echo $ECHO_N "(cached) $ECHO_C" >&6
31777else
31778
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. */
31785
31786 #include <stdio.h>
31787 #include <stdarg.h>
31788 #ifdef __MSL__
31789 #if __MSL__ >= 0x6000
31790 namespace std {}
31791 using namespace std;
31792 #endif
31793 #endif
31794
31795int
31796main ()
31797{
31798
31799 char *buf;
31800 const char *fmt = "%s";
31801 snprintf(buf, 10u, fmt, "wx");
31802
31803 ;
31804 return 0;
31805}
31806_ACEOF
31807rm -f conftest.$ac_objext
31808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31809 (eval $ac_compile) 2>conftest.er1
31810 ac_status=$?
31811 grep -v '^ *+' conftest.er1 >conftest.err
31812 rm -f conftest.er1
31813 cat conftest.err >&5
31814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815 (exit $ac_status); } &&
31816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31818 (eval $ac_try) 2>&5
31819 ac_status=$?
31820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821 (exit $ac_status); }; } &&
31822 { ac_try='test -s conftest.$ac_objext'
31823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31824 (eval $ac_try) 2>&5
31825 ac_status=$?
31826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); }; }; then
31828 wx_cv_func_broken_snprintf_decl=no
31829else
31830 echo "$as_me: failed program was:" >&5
31831sed 's/^/| /' conftest.$ac_ext >&5
31832
31833wx_cv_func_broken_snprintf_decl=yes
31834
31835fi
31836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31837
31838
31839fi
31840echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
31841echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
31842
31843 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
31844 cat >>confdefs.h <<\_ACEOF
31845#define HAVE_BROKEN_SNPRINTF_DECL 1
31846_ACEOF
31847
31848 fi
4a767dd5
VZ
31849 fi
31850fi
31851
a848cd7e
SC
31852if test "$wxUSE_UNICODE" = yes; then
31853
31854
31855
fbe47c7b
VS
31856
31857
31858
31859for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31860do
31861as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31862echo "$as_me:$LINENO: checking for $ac_func" >&5
31863echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31864if eval "test \"\${$as_ac_var+set}\" = set"; then
31865 echo $ECHO_N "(cached) $ECHO_C" >&6
31866else
31867 cat >conftest.$ac_ext <<_ACEOF
31868/* confdefs.h. */
31869_ACEOF
31870cat confdefs.h >>conftest.$ac_ext
31871cat >>conftest.$ac_ext <<_ACEOF
31872/* end confdefs.h. */
ac1cb8d3
VS
31873/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31875#define $ac_func innocuous_$ac_func
31876
a848cd7e
SC
31877/* System header to define __stub macros and hopefully few prototypes,
31878 which can conflict with char $ac_func (); below.
31879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31880 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31881
a848cd7e
SC
31882#ifdef __STDC__
31883# include <limits.h>
31884#else
31885# include <assert.h>
31886#endif
ac1cb8d3
VS
31887
31888#undef $ac_func
31889
a848cd7e
SC
31890/* Override any gcc2 internal prototype to avoid an error. */
31891#ifdef __cplusplus
31892extern "C"
31893{
31894#endif
31895/* We use char because int might match the return type of a gcc2
31896 builtin and then its argument prototype would still apply. */
31897char $ac_func ();
31898/* The GNU C library defines this for functions which it implements
31899 to always fail with ENOSYS. Some functions are actually named
31900 something starting with __ and the normal name is an alias. */
31901#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31902choke me
31903#else
31904char (*f) () = $ac_func;
31905#endif
31906#ifdef __cplusplus
31907}
31908#endif
31909
31910int
31911main ()
31912{
31913return f != $ac_func;
31914 ;
31915 return 0;
31916}
31917_ACEOF
31918rm -f conftest.$ac_objext conftest$ac_exeext
31919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31920 (eval $ac_link) 2>conftest.er1
a848cd7e 31921 ac_status=$?
ac1cb8d3
VS
31922 grep -v '^ *+' conftest.er1 >conftest.err
31923 rm -f conftest.er1
31924 cat conftest.err >&5
a848cd7e
SC
31925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926 (exit $ac_status); } &&
6ebeb4c7 31927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31929 (eval $ac_try) 2>&5
31930 ac_status=$?
31931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932 (exit $ac_status); }; } &&
31933 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31935 (eval $ac_try) 2>&5
31936 ac_status=$?
31937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938 (exit $ac_status); }; }; then
31939 eval "$as_ac_var=yes"
31940else
31941 echo "$as_me: failed program was:" >&5
31942sed 's/^/| /' conftest.$ac_ext >&5
31943
31944eval "$as_ac_var=no"
31945fi
ac1cb8d3
VS
31946rm -f conftest.err conftest.$ac_objext \
31947 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31948fi
31949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31950echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31951if test `eval echo '${'$as_ac_var'}'` = yes; then
31952 cat >>confdefs.h <<_ACEOF
31953#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31954_ACEOF
31955
31956fi
31957done
31958
31959
31960 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31961echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31962 cat >conftest.$ac_ext <<_ACEOF
31963/* confdefs.h. */
31964_ACEOF
31965cat confdefs.h >>conftest.$ac_ext
31966cat >>conftest.$ac_ext <<_ACEOF
31967/* end confdefs.h. */
31968#include <wchar.h>
31969int
31970main ()
31971{
31972&_vsnwprintf;
31973 ;
31974 return 0;
31975}
31976_ACEOF
31977rm -f conftest.$ac_objext
31978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31979 (eval $ac_compile) 2>conftest.er1
a848cd7e 31980 ac_status=$?
ac1cb8d3
VS
31981 grep -v '^ *+' conftest.er1 >conftest.err
31982 rm -f conftest.er1
31983 cat conftest.err >&5
a848cd7e
SC
31984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985 (exit $ac_status); } &&
6ebeb4c7 31986 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
31992 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31994 (eval $ac_try) 2>&5
31995 ac_status=$?
31996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31997 (exit $ac_status); }; }; then
31998 echo "$as_me:$LINENO: result: yes" >&5
31999echo "${ECHO_T}yes" >&6
32000 cat >>confdefs.h <<\_ACEOF
32001#define HAVE__VSNWPRINTF 1
32002_ACEOF
32003
32004else
32005 echo "$as_me: failed program was:" >&5
32006sed 's/^/| /' conftest.$ac_ext >&5
32007
32008echo "$as_me:$LINENO: result: no" >&5
32009echo "${ECHO_T}no" >&6
32010fi
ac1cb8d3 32011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
32012fi
32013
32014ac_ext=c
32015ac_cpp='$CPP $CPPFLAGS'
32016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32018ac_compiler_gnu=$ac_cv_c_compiler_gnu
32019
32020
6ebeb4c7
VZ
32021if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
32022
32023for ac_func in fnmatch
32024do
32025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32026echo "$as_me:$LINENO: checking for $ac_func" >&5
32027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32028if eval "test \"\${$as_ac_var+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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32039#define $ac_func innocuous_$ac_func
32040
32041/* System header to define __stub macros and hopefully few prototypes,
32042 which can conflict with char $ac_func (); below.
32043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32044 <limits.h> exists even on freestanding compilers. */
32045
32046#ifdef __STDC__
32047# include <limits.h>
32048#else
32049# include <assert.h>
32050#endif
32051
32052#undef $ac_func
32053
32054/* Override any gcc2 internal prototype to avoid an error. */
32055#ifdef __cplusplus
32056extern "C"
32057{
32058#endif
32059/* We use char because int might match the return type of a gcc2
32060 builtin and then its argument prototype would still apply. */
32061char $ac_func ();
32062/* The GNU C library defines this for functions which it implements
32063 to always fail with ENOSYS. Some functions are actually named
32064 something starting with __ and the normal name is an alias. */
32065#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32066choke me
32067#else
32068char (*f) () = $ac_func;
32069#endif
32070#ifdef __cplusplus
32071}
32072#endif
32073
32074int
32075main ()
32076{
32077return f != $ac_func;
32078 ;
32079 return 0;
32080}
32081_ACEOF
32082rm -f conftest.$ac_objext conftest$ac_exeext
32083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32084 (eval $ac_link) 2>conftest.er1
32085 ac_status=$?
32086 grep -v '^ *+' conftest.er1 >conftest.err
32087 rm -f conftest.er1
32088 cat conftest.err >&5
32089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090 (exit $ac_status); } &&
32091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32093 (eval $ac_try) 2>&5
32094 ac_status=$?
32095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096 (exit $ac_status); }; } &&
32097 { ac_try='test -s conftest$ac_exeext'
32098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32099 (eval $ac_try) 2>&5
32100 ac_status=$?
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); }; }; then
32103 eval "$as_ac_var=yes"
32104else
32105 echo "$as_me: failed program was:" >&5
32106sed 's/^/| /' conftest.$ac_ext >&5
32107
32108eval "$as_ac_var=no"
32109fi
32110rm -f conftest.err conftest.$ac_objext \
32111 conftest$ac_exeext conftest.$ac_ext
32112fi
32113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32114echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32115if test `eval echo '${'$as_ac_var'}'` = yes; then
32116 cat >>confdefs.h <<_ACEOF
32117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32118_ACEOF
32119
32120fi
32121done
32122
32123fi
32124
32125if test "$wxUSE_FILE" = "yes"; then
32126
32127for ac_func in fsync
32128do
32129as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32130echo "$as_me:$LINENO: checking for $ac_func" >&5
32131echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32132if eval "test \"\${$as_ac_var+set}\" = set"; then
32133 echo $ECHO_N "(cached) $ECHO_C" >&6
32134else
32135 cat >conftest.$ac_ext <<_ACEOF
32136/* confdefs.h. */
32137_ACEOF
32138cat confdefs.h >>conftest.$ac_ext
32139cat >>conftest.$ac_ext <<_ACEOF
32140/* end confdefs.h. */
32141/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32143#define $ac_func innocuous_$ac_func
32144
32145/* System header to define __stub macros and hopefully few prototypes,
32146 which can conflict with char $ac_func (); below.
32147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32148 <limits.h> exists even on freestanding compilers. */
32149
32150#ifdef __STDC__
32151# include <limits.h>
32152#else
32153# include <assert.h>
32154#endif
32155
32156#undef $ac_func
32157
32158/* Override any gcc2 internal prototype to avoid an error. */
32159#ifdef __cplusplus
32160extern "C"
32161{
32162#endif
32163/* We use char because int might match the return type of a gcc2
32164 builtin and then its argument prototype would still apply. */
32165char $ac_func ();
32166/* The GNU C library defines this for functions which it implements
32167 to always fail with ENOSYS. Some functions are actually named
32168 something starting with __ and the normal name is an alias. */
32169#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32170choke me
32171#else
32172char (*f) () = $ac_func;
32173#endif
32174#ifdef __cplusplus
32175}
32176#endif
32177
32178int
32179main ()
32180{
32181return f != $ac_func;
32182 ;
32183 return 0;
32184}
32185_ACEOF
32186rm -f conftest.$ac_objext conftest$ac_exeext
32187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32188 (eval $ac_link) 2>conftest.er1
32189 ac_status=$?
32190 grep -v '^ *+' conftest.er1 >conftest.err
32191 rm -f conftest.er1
32192 cat conftest.err >&5
32193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194 (exit $ac_status); } &&
32195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32197 (eval $ac_try) 2>&5
32198 ac_status=$?
32199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200 (exit $ac_status); }; } &&
32201 { ac_try='test -s conftest$ac_exeext'
32202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32203 (eval $ac_try) 2>&5
32204 ac_status=$?
32205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206 (exit $ac_status); }; }; then
32207 eval "$as_ac_var=yes"
32208else
32209 echo "$as_me: failed program was:" >&5
32210sed 's/^/| /' conftest.$ac_ext >&5
32211
32212eval "$as_ac_var=no"
32213fi
32214rm -f conftest.err conftest.$ac_objext \
32215 conftest$ac_exeext conftest.$ac_ext
32216fi
32217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32218echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32219if test `eval echo '${'$as_ac_var'}'` = yes; then
32220 cat >>confdefs.h <<_ACEOF
32221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32222_ACEOF
32223
32224fi
32225done
32226
32227fi
a848cd7e
SC
32228
32229
32230if test "$TOOLKIT" != "MSW"; then
32231
32232
32233
32234
32235ac_ext=cc
32236ac_cpp='$CXXCPP $CPPFLAGS'
32237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32240
32241
32242
32243
32244# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
32245if test "${with_libiconv_prefix+set}" = set; then
32246 withval="$with_libiconv_prefix"
32247
32248 for dir in `echo "$withval" | tr : ' '`; do
32249 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
32250 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
32251 done
32252
32253fi;
32254
32255 echo "$as_me:$LINENO: checking for iconv" >&5
32256echo $ECHO_N "checking for iconv... $ECHO_C" >&6
32257if test "${am_cv_func_iconv+set}" = set; then
32258 echo $ECHO_N "(cached) $ECHO_C" >&6
32259else
32260
32261 am_cv_func_iconv="no, consider installing GNU libiconv"
32262 am_cv_lib_iconv=no
32263 cat >conftest.$ac_ext <<_ACEOF
32264/* confdefs.h. */
32265_ACEOF
32266cat confdefs.h >>conftest.$ac_ext
32267cat >>conftest.$ac_ext <<_ACEOF
32268/* end confdefs.h. */
32269#include <stdlib.h>
32270#include <iconv.h>
32271int
32272main ()
32273{
32274iconv_t cd = iconv_open("","");
32275 iconv(cd,NULL,NULL,NULL,NULL);
32276 iconv_close(cd);
32277 ;
32278 return 0;
32279}
32280_ACEOF
32281rm -f conftest.$ac_objext conftest$ac_exeext
32282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32283 (eval $ac_link) 2>conftest.er1
a848cd7e 32284 ac_status=$?
ac1cb8d3
VS
32285 grep -v '^ *+' conftest.er1 >conftest.err
32286 rm -f conftest.er1
32287 cat conftest.err >&5
a848cd7e
SC
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); } &&
6ebeb4c7 32290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32292 (eval $ac_try) 2>&5
32293 ac_status=$?
32294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32295 (exit $ac_status); }; } &&
32296 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32298 (eval $ac_try) 2>&5
32299 ac_status=$?
32300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301 (exit $ac_status); }; }; then
32302 am_cv_func_iconv=yes
32303else
32304 echo "$as_me: failed program was:" >&5
32305sed 's/^/| /' conftest.$ac_ext >&5
32306
32307fi
ac1cb8d3
VS
32308rm -f conftest.err conftest.$ac_objext \
32309 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32310 if test "$am_cv_func_iconv" != yes; then
32311 am_save_LIBS="$LIBS"
32312 LIBS="$LIBS -liconv"
32313 cat >conftest.$ac_ext <<_ACEOF
32314/* confdefs.h. */
32315_ACEOF
32316cat confdefs.h >>conftest.$ac_ext
32317cat >>conftest.$ac_ext <<_ACEOF
32318/* end confdefs.h. */
32319#include <stdlib.h>
32320#include <iconv.h>
32321int
32322main ()
32323{
32324iconv_t cd = iconv_open("","");
32325 iconv(cd,NULL,NULL,NULL,NULL);
32326 iconv_close(cd);
32327 ;
32328 return 0;
32329}
32330_ACEOF
32331rm -f conftest.$ac_objext conftest$ac_exeext
32332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32333 (eval $ac_link) 2>conftest.er1
a848cd7e 32334 ac_status=$?
ac1cb8d3
VS
32335 grep -v '^ *+' conftest.er1 >conftest.err
32336 rm -f conftest.er1
32337 cat conftest.err >&5
a848cd7e
SC
32338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32339 (exit $ac_status); } &&
6ebeb4c7 32340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32342 (eval $ac_try) 2>&5
32343 ac_status=$?
32344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32345 (exit $ac_status); }; } &&
32346 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32348 (eval $ac_try) 2>&5
32349 ac_status=$?
32350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351 (exit $ac_status); }; }; then
32352 am_cv_lib_iconv=yes
32353 am_cv_func_iconv=yes
32354else
32355 echo "$as_me: failed program was:" >&5
32356sed 's/^/| /' conftest.$ac_ext >&5
32357
32358fi
ac1cb8d3
VS
32359rm -f conftest.err conftest.$ac_objext \
32360 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32361 LIBS="$am_save_LIBS"
32362 fi
32363
32364fi
32365echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
32366echo "${ECHO_T}$am_cv_func_iconv" >&6
32367 if test "$am_cv_func_iconv" = yes; then
32368
32369cat >>confdefs.h <<\_ACEOF
32370#define HAVE_ICONV 1
32371_ACEOF
32372
32373 echo "$as_me:$LINENO: checking if iconv needs const" >&5
32374echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
32375if test "${wx_cv_func_iconv_const+set}" = set; then
32376 echo $ECHO_N "(cached) $ECHO_C" >&6
32377else
32378 cat >conftest.$ac_ext <<_ACEOF
32379/* confdefs.h. */
32380_ACEOF
32381cat confdefs.h >>conftest.$ac_ext
32382cat >>conftest.$ac_ext <<_ACEOF
32383/* end confdefs.h. */
32384
32385#include <stdlib.h>
32386#include <iconv.h>
32387extern
32388#ifdef __cplusplus
32389"C"
32390#endif
32391#if defined(__STDC__) || defined(__cplusplus)
32392size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
32393#else
32394size_t iconv();
32395#endif
32396
32397int
32398main ()
32399{
32400
32401 ;
32402 return 0;
32403}
32404_ACEOF
32405rm -f conftest.$ac_objext
32406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32407 (eval $ac_compile) 2>conftest.er1
a848cd7e 32408 ac_status=$?
ac1cb8d3
VS
32409 grep -v '^ *+' conftest.er1 >conftest.err
32410 rm -f conftest.er1
32411 cat conftest.err >&5
a848cd7e
SC
32412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413 (exit $ac_status); } &&
6ebeb4c7 32414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32416 (eval $ac_try) 2>&5
32417 ac_status=$?
32418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32419 (exit $ac_status); }; } &&
32420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32422 (eval $ac_try) 2>&5
32423 ac_status=$?
32424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32425 (exit $ac_status); }; }; then
32426 wx_cv_func_iconv_const="no"
32427else
32428 echo "$as_me: failed program was:" >&5
32429sed 's/^/| /' conftest.$ac_ext >&5
32430
32431wx_cv_func_iconv_const="yes"
32432
32433fi
ac1cb8d3 32434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32435
32436fi
32437echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
32438echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
32439
32440 iconv_const=
32441 if test "x$wx_cv_func_iconv_const" = "xyes"; then
32442 iconv_const="const"
32443 fi
32444
32445
32446cat >>confdefs.h <<_ACEOF
32447#define ICONV_CONST $iconv_const
32448_ACEOF
32449
32450 fi
32451 LIBICONV=
32452 if test "$am_cv_lib_iconv" = yes; then
32453 LIBICONV="-liconv"
32454 fi
32455
32456
32457LIBS="$LIBICONV $LIBS"
32458ac_ext=c
32459ac_cpp='$CPP $CPPFLAGS'
32460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32462ac_compiler_gnu=$ac_cv_c_compiler_gnu
32463
32464
32465if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32466
32467for ac_func in sigaction
32468do
32469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32470echo "$as_me:$LINENO: checking for $ac_func" >&5
32471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32472if eval "test \"\${$as_ac_var+set}\" = set"; then
32473 echo $ECHO_N "(cached) $ECHO_C" >&6
32474else
32475 cat >conftest.$ac_ext <<_ACEOF
32476/* confdefs.h. */
32477_ACEOF
32478cat confdefs.h >>conftest.$ac_ext
32479cat >>conftest.$ac_ext <<_ACEOF
32480/* end confdefs.h. */
ac1cb8d3
VS
32481/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32483#define $ac_func innocuous_$ac_func
32484
a848cd7e
SC
32485/* System header to define __stub macros and hopefully few prototypes,
32486 which can conflict with char $ac_func (); below.
32487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32488 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32489
a848cd7e
SC
32490#ifdef __STDC__
32491# include <limits.h>
32492#else
32493# include <assert.h>
32494#endif
ac1cb8d3
VS
32495
32496#undef $ac_func
32497
a848cd7e
SC
32498/* Override any gcc2 internal prototype to avoid an error. */
32499#ifdef __cplusplus
32500extern "C"
32501{
32502#endif
32503/* We use char because int might match the return type of a gcc2
32504 builtin and then its argument prototype would still apply. */
32505char $ac_func ();
32506/* The GNU C library defines this for functions which it implements
32507 to always fail with ENOSYS. Some functions are actually named
32508 something starting with __ and the normal name is an alias. */
32509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32510choke me
32511#else
32512char (*f) () = $ac_func;
32513#endif
32514#ifdef __cplusplus
32515}
32516#endif
32517
32518int
32519main ()
32520{
32521return f != $ac_func;
32522 ;
32523 return 0;
32524}
32525_ACEOF
32526rm -f conftest.$ac_objext conftest$ac_exeext
32527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32528 (eval $ac_link) 2>conftest.er1
a848cd7e 32529 ac_status=$?
ac1cb8d3
VS
32530 grep -v '^ *+' conftest.er1 >conftest.err
32531 rm -f conftest.er1
32532 cat conftest.err >&5
a848cd7e
SC
32533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534 (exit $ac_status); } &&
6ebeb4c7 32535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32537 (eval $ac_try) 2>&5
32538 ac_status=$?
32539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540 (exit $ac_status); }; } &&
32541 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32543 (eval $ac_try) 2>&5
32544 ac_status=$?
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; }; then
32547 eval "$as_ac_var=yes"
32548else
32549 echo "$as_me: failed program was:" >&5
32550sed 's/^/| /' conftest.$ac_ext >&5
32551
32552eval "$as_ac_var=no"
32553fi
ac1cb8d3
VS
32554rm -f conftest.err conftest.$ac_objext \
32555 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32556fi
32557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32559if test `eval echo '${'$as_ac_var'}'` = yes; then
32560 cat >>confdefs.h <<_ACEOF
32561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32562_ACEOF
32563
32564fi
32565done
32566
32567
32568 if test "$ac_cv_func_sigaction" = "no"; then
32569 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
32570echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
32571 wxUSE_ON_FATAL_EXCEPTION=no
32572 fi
32573
32574 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32575
32576
32577 ac_ext=cc
32578ac_cpp='$CXXCPP $CPPFLAGS'
32579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32582
32583
32584 echo "$as_me:$LINENO: checking for sa_handler type" >&5
32585echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
32586if test "${wx_cv_type_sa_handler+set}" = set; then
32587 echo $ECHO_N "(cached) $ECHO_C" >&6
32588else
32589
32590 cat >conftest.$ac_ext <<_ACEOF
32591/* confdefs.h. */
32592_ACEOF
32593cat confdefs.h >>conftest.$ac_ext
32594cat >>conftest.$ac_ext <<_ACEOF
32595/* end confdefs.h. */
32596#include <signal.h>
32597int
32598main ()
32599{
32600
32601 extern void testSigHandler(int);
32602
32603 struct sigaction sa;
32604 sa.sa_handler = testSigHandler;
32605
32606 ;
32607 return 0;
32608}
32609_ACEOF
32610rm -f conftest.$ac_objext
32611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32612 (eval $ac_compile) 2>conftest.er1
a848cd7e 32613 ac_status=$?
ac1cb8d3
VS
32614 grep -v '^ *+' conftest.er1 >conftest.err
32615 rm -f conftest.er1
32616 cat conftest.err >&5
a848cd7e
SC
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); } &&
6ebeb4c7 32619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32621 (eval $ac_try) 2>&5
32622 ac_status=$?
32623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); }; } &&
32625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32627 (eval $ac_try) 2>&5
32628 ac_status=$?
32629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630 (exit $ac_status); }; }; then
32631
32632 wx_cv_type_sa_handler=int
32633
32634else
32635 echo "$as_me: failed program was:" >&5
32636sed 's/^/| /' conftest.$ac_ext >&5
32637
32638
32639 wx_cv_type_sa_handler=void
32640
32641fi
ac1cb8d3 32642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32643
32644fi
32645echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
32646echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
32647
32648 ac_ext=c
32649ac_cpp='$CPP $CPPFLAGS'
32650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32652ac_compiler_gnu=$ac_cv_c_compiler_gnu
32653
32654
32655 cat >>confdefs.h <<_ACEOF
32656#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
32657_ACEOF
32658
32659 fi
32660fi
32661
eaff0f0d
VZ
32662if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32663
32664
32665 ac_ext=cc
32666ac_cpp='$CXXCPP $CPPFLAGS'
32667ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32668ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32669ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32670
32671
32672 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
32673echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
32674if test "${wx_cv_func_backtrace+set}" = set; then
32675 echo $ECHO_N "(cached) $ECHO_C" >&6
32676else
32677
32678 cat >conftest.$ac_ext <<_ACEOF
32679/* confdefs.h. */
32680_ACEOF
32681cat confdefs.h >>conftest.$ac_ext
32682cat >>conftest.$ac_ext <<_ACEOF
32683/* end confdefs.h. */
32684#include <execinfo.h>
32685int
32686main ()
32687{
32688
32689 void *trace[1];
32690 char **messages;
32691
32692 backtrace(trace, 1);
32693 messages = backtrace_symbols(trace, 1);
32694
32695 ;
32696 return 0;
32697}
32698_ACEOF
32699rm -f conftest.$ac_objext
32700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32701 (eval $ac_compile) 2>conftest.er1
32702 ac_status=$?
32703 grep -v '^ *+' conftest.er1 >conftest.err
32704 rm -f conftest.er1
32705 cat conftest.err >&5
32706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32707 (exit $ac_status); } &&
6ebeb4c7 32708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32710 (eval $ac_try) 2>&5
32711 ac_status=$?
32712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713 (exit $ac_status); }; } &&
32714 { ac_try='test -s conftest.$ac_objext'
32715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32716 (eval $ac_try) 2>&5
32717 ac_status=$?
32718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719 (exit $ac_status); }; }; then
32720 wx_cv_func_backtrace=yes
32721else
32722 echo "$as_me: failed program was:" >&5
32723sed 's/^/| /' conftest.$ac_ext >&5
32724
32725wx_cv_func_backtrace=no
32726
32727fi
32728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32729
32730
32731fi
32732echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
32733echo "${ECHO_T}$wx_cv_func_backtrace" >&6
32734
32735
32736 if test "$wx_cv_func_backtrace" = "no"; then
32737 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
32738echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
32739 wxUSE_STACKWALKER=no
32740 else
32741 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
32742echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
32743if test "${wx_cv_func_cxa_demangle+set}" = set; then
32744 echo $ECHO_N "(cached) $ECHO_C" >&6
32745else
32746
32747 cat >conftest.$ac_ext <<_ACEOF
32748/* confdefs.h. */
32749_ACEOF
32750cat confdefs.h >>conftest.$ac_ext
32751cat >>conftest.$ac_ext <<_ACEOF
32752/* end confdefs.h. */
32753#include <cxxabi.h>
32754int
32755main ()
32756{
32757
32758 int rc;
32759 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
32760
32761 ;
32762 return 0;
32763}
32764_ACEOF
dfe0c803
JS
32765rm -f conftest.$ac_objext conftest$ac_exeext
32766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32767 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
32768 ac_status=$?
32769 grep -v '^ *+' conftest.er1 >conftest.err
32770 rm -f conftest.er1
32771 cat conftest.err >&5
32772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773 (exit $ac_status); } &&
6ebeb4c7 32774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32776 (eval $ac_try) 2>&5
32777 ac_status=$?
32778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779 (exit $ac_status); }; } &&
dfe0c803 32780 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
32781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32782 (eval $ac_try) 2>&5
32783 ac_status=$?
32784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785 (exit $ac_status); }; }; then
32786 wx_cv_func_cxa_demangle=yes
32787else
32788 echo "$as_me: failed program was:" >&5
32789sed 's/^/| /' conftest.$ac_ext >&5
32790
32791wx_cv_func_cxa_demangle=no
32792
32793fi
dfe0c803
JS
32794rm -f conftest.err conftest.$ac_objext \
32795 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
32796
32797
32798fi
32799echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
32800echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
32801
32802 if test "$wx_cv_func_cxa_demangle" = "yes"; then
32803 cat >>confdefs.h <<\_ACEOF
32804#define HAVE_CXA_DEMANGLE 1
32805_ACEOF
32806
32807 fi
32808 fi
32809
32810 ac_ext=c
32811ac_cpp='$CPP $CPPFLAGS'
32812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32814ac_compiler_gnu=$ac_cv_c_compiler_gnu
32815
32816fi
32817
898beab1
DE
32818if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
32819 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
32820echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
32821 wxUSE_STACKWALKER=no
32822fi
32823
32824
a848cd7e
SC
32825
32826
32827for ac_func in mkstemp mktemp
32828do
32829as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32830echo "$as_me:$LINENO: checking for $ac_func" >&5
32831echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32832if eval "test \"\${$as_ac_var+set}\" = set"; then
32833 echo $ECHO_N "(cached) $ECHO_C" >&6
32834else
32835 cat >conftest.$ac_ext <<_ACEOF
32836/* confdefs.h. */
32837_ACEOF
32838cat confdefs.h >>conftest.$ac_ext
32839cat >>conftest.$ac_ext <<_ACEOF
32840/* end confdefs.h. */
ac1cb8d3
VS
32841/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32843#define $ac_func innocuous_$ac_func
32844
a848cd7e
SC
32845/* System header to define __stub macros and hopefully few prototypes,
32846 which can conflict with char $ac_func (); below.
32847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32848 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32849
a848cd7e
SC
32850#ifdef __STDC__
32851# include <limits.h>
32852#else
32853# include <assert.h>
32854#endif
ac1cb8d3
VS
32855
32856#undef $ac_func
32857
a848cd7e
SC
32858/* Override any gcc2 internal prototype to avoid an error. */
32859#ifdef __cplusplus
32860extern "C"
32861{
32862#endif
32863/* We use char because int might match the return type of a gcc2
32864 builtin and then its argument prototype would still apply. */
32865char $ac_func ();
32866/* The GNU C library defines this for functions which it implements
32867 to always fail with ENOSYS. Some functions are actually named
32868 something starting with __ and the normal name is an alias. */
32869#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32870choke me
32871#else
32872char (*f) () = $ac_func;
32873#endif
32874#ifdef __cplusplus
32875}
32876#endif
32877
32878int
32879main ()
32880{
32881return f != $ac_func;
32882 ;
32883 return 0;
32884}
32885_ACEOF
32886rm -f conftest.$ac_objext conftest$ac_exeext
32887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32888 (eval $ac_link) 2>conftest.er1
a848cd7e 32889 ac_status=$?
ac1cb8d3
VS
32890 grep -v '^ *+' conftest.er1 >conftest.err
32891 rm -f conftest.er1
32892 cat conftest.err >&5
a848cd7e
SC
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); } &&
6ebeb4c7 32895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32897 (eval $ac_try) 2>&5
32898 ac_status=$?
32899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900 (exit $ac_status); }; } &&
32901 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32903 (eval $ac_try) 2>&5
32904 ac_status=$?
32905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906 (exit $ac_status); }; }; then
32907 eval "$as_ac_var=yes"
32908else
32909 echo "$as_me: failed program was:" >&5
32910sed 's/^/| /' conftest.$ac_ext >&5
32911
32912eval "$as_ac_var=no"
32913fi
ac1cb8d3
VS
32914rm -f conftest.err conftest.$ac_objext \
32915 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32916fi
32917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32918echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32919if test `eval echo '${'$as_ac_var'}'` = yes; then
32920 cat >>confdefs.h <<_ACEOF
32921#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32922_ACEOF
32923 break
32924fi
32925done
32926
32927
32928echo "$as_me:$LINENO: checking for statfs" >&5
32929echo $ECHO_N "checking for statfs... $ECHO_C" >&6
32930if test "${wx_cv_func_statfs+set}" = set; then
32931 echo $ECHO_N "(cached) $ECHO_C" >&6
32932else
32933 cat >conftest.$ac_ext <<_ACEOF
32934/* confdefs.h. */
32935_ACEOF
32936cat confdefs.h >>conftest.$ac_ext
32937cat >>conftest.$ac_ext <<_ACEOF
32938/* end confdefs.h. */
32939
32940 #if defined(__BSD__)
84ae7ca4
VZ
32941 #include <sys/param.h>
32942 #include <sys/mount.h>
a848cd7e 32943 #else
84ae7ca4 32944 #include <sys/vfs.h>
a848cd7e
SC
32945 #endif
32946
32947int
32948main ()
32949{
32950
32951 long l;
32952 struct statfs fs;
32953 statfs("/", &fs);
32954 l = fs.f_bsize;
32955 l += fs.f_blocks;
32956 l += fs.f_bavail;
32957
32958 ;
32959 return 0;
32960}
32961_ACEOF
32962rm -f conftest.$ac_objext
32963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32964 (eval $ac_compile) 2>conftest.er1
a848cd7e 32965 ac_status=$?
ac1cb8d3
VS
32966 grep -v '^ *+' conftest.er1 >conftest.err
32967 rm -f conftest.er1
32968 cat conftest.err >&5
a848cd7e
SC
32969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32970 (exit $ac_status); } &&
6ebeb4c7 32971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32973 (eval $ac_try) 2>&5
32974 ac_status=$?
32975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32976 (exit $ac_status); }; } &&
32977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32979 (eval $ac_try) 2>&5
32980 ac_status=$?
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); }; }; then
84ae7ca4 32983 wx_cv_func_statfs=yes
a848cd7e
SC
32984else
32985 echo "$as_me: failed program was:" >&5
32986sed 's/^/| /' conftest.$ac_ext >&5
32987
84ae7ca4 32988wx_cv_func_statfs=no
a848cd7e
SC
32989
32990fi
ac1cb8d3 32991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32992
32993fi
32994echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32995echo "${ECHO_T}$wx_cv_func_statfs" >&6
32996
32997if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
32998
32999
33000 ac_ext=cc
33001ac_cpp='$CXXCPP $CPPFLAGS'
33002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33005
33006 echo "$as_me:$LINENO: checking for statfs declaration" >&5
33007echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
33008if test "${wx_cv_func_statfs_decl+set}" = set; then
33009 echo $ECHO_N "(cached) $ECHO_C" >&6
33010else
0683aca6
VZ
33011 cat >conftest.$ac_ext <<_ACEOF
33012/* confdefs.h. */
33013_ACEOF
33014cat confdefs.h >>conftest.$ac_ext
33015cat >>conftest.$ac_ext <<_ACEOF
33016/* end confdefs.h. */
84ae7ca4 33017
0683aca6
VZ
33018 #if defined(__BSD__)
33019 #include <sys/param.h>
33020 #include <sys/mount.h>
33021 #else
33022 #include <sys/vfs.h>
33023 #endif
33024
33025int
33026main ()
33027{
33028
33029 struct statfs fs;
33030 statfs("", &fs);
33031
33032 ;
33033 return 0;
33034}
33035_ACEOF
33036rm -f conftest.$ac_objext
33037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33038 (eval $ac_compile) 2>conftest.er1
33039 ac_status=$?
33040 grep -v '^ *+' conftest.er1 >conftest.err
33041 rm -f conftest.er1
33042 cat conftest.err >&5
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); } &&
33045 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33047 (eval $ac_try) 2>&5
33048 ac_status=$?
33049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33050 (exit $ac_status); }; } &&
33051 { ac_try='test -s conftest.$ac_objext'
33052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33053 (eval $ac_try) 2>&5
33054 ac_status=$?
33055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056 (exit $ac_status); }; }; then
33057 wx_cv_func_statfs_decl=yes
33058else
33059 echo "$as_me: failed program was:" >&5
33060sed 's/^/| /' conftest.$ac_ext >&5
33061
33062wx_cv_func_statfs_decl=no
33063
33064fi
33065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
33066
33067fi
33068echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
33069echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
33070 ac_ext=c
33071ac_cpp='$CPP $CPPFLAGS'
33072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33074ac_compiler_gnu=$ac_cv_c_compiler_gnu
33075
33076
33077 if test "$wx_cv_func_statfs_decl" = "yes"; then
33078 cat >>confdefs.h <<\_ACEOF
33079#define HAVE_STATFS_DECL 1
33080_ACEOF
33081
33082 fi
33083
a848cd7e
SC
33084 wx_cv_type_statvfs_t="struct statfs"
33085 cat >>confdefs.h <<\_ACEOF
33086#define HAVE_STATFS 1
33087_ACEOF
33088
33089else
33090 echo "$as_me:$LINENO: checking for statvfs" >&5
33091echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
33092if test "${wx_cv_func_statvfs+set}" = set; then
33093 echo $ECHO_N "(cached) $ECHO_C" >&6
33094else
33095 cat >conftest.$ac_ext <<_ACEOF
33096/* confdefs.h. */
33097_ACEOF
33098cat confdefs.h >>conftest.$ac_ext
33099cat >>conftest.$ac_ext <<_ACEOF
33100/* end confdefs.h. */
33101
33102 #include <stddef.h>
33103 #include <sys/statvfs.h>
33104
33105int
33106main ()
33107{
33108
33109 statvfs("/", NULL);
33110
33111 ;
33112 return 0;
33113}
33114_ACEOF
33115rm -f conftest.$ac_objext
33116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33117 (eval $ac_compile) 2>conftest.er1
a848cd7e 33118 ac_status=$?
ac1cb8d3
VS
33119 grep -v '^ *+' conftest.er1 >conftest.err
33120 rm -f conftest.er1
33121 cat conftest.err >&5
a848cd7e
SC
33122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123 (exit $ac_status); } &&
6ebeb4c7 33124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33126 (eval $ac_try) 2>&5
33127 ac_status=$?
33128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129 (exit $ac_status); }; } &&
33130 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33132 (eval $ac_try) 2>&5
33133 ac_status=$?
33134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135 (exit $ac_status); }; }; then
33136 wx_cv_func_statvfs=yes
33137else
33138 echo "$as_me: failed program was:" >&5
33139sed 's/^/| /' conftest.$ac_ext >&5
33140
33141wx_cv_func_statvfs=no
33142
33143fi
ac1cb8d3 33144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33145
33146fi
33147echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
33148echo "${ECHO_T}$wx_cv_func_statvfs" >&6
33149
33150 if test "$wx_cv_func_statvfs" = "yes"; then
33151
33152
33153 ac_ext=cc
33154ac_cpp='$CXXCPP $CPPFLAGS'
33155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33158
33159
33160 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
33161echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
33162if test "${wx_cv_type_statvfs_t+set}" = set; then
33163 echo $ECHO_N "(cached) $ECHO_C" >&6
33164else
33165 cat >conftest.$ac_ext <<_ACEOF
33166/* confdefs.h. */
33167_ACEOF
33168cat confdefs.h >>conftest.$ac_ext
33169cat >>conftest.$ac_ext <<_ACEOF
33170/* end confdefs.h. */
33171
33172 #include <sys/statvfs.h>
33173
33174int
33175main ()
33176{
33177
33178 long l;
33179 statvfs_t fs;
33180 statvfs("/", &fs);
33181 l = fs.f_bsize;
33182 l += fs.f_blocks;
33183 l += fs.f_bavail;
33184
33185 ;
33186 return 0;
33187}
33188_ACEOF
33189rm -f conftest.$ac_objext
33190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33191 (eval $ac_compile) 2>conftest.er1
a848cd7e 33192 ac_status=$?
ac1cb8d3
VS
33193 grep -v '^ *+' conftest.er1 >conftest.err
33194 rm -f conftest.er1
33195 cat conftest.err >&5
a848cd7e
SC
33196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197 (exit $ac_status); } &&
6ebeb4c7 33198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33200 (eval $ac_try) 2>&5
33201 ac_status=$?
33202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203 (exit $ac_status); }; } &&
33204 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33206 (eval $ac_try) 2>&5
33207 ac_status=$?
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); }; }; then
33210 wx_cv_type_statvfs_t=statvfs_t
33211else
33212 echo "$as_me: failed program was:" >&5
33213sed 's/^/| /' conftest.$ac_ext >&5
33214
33215
33216 cat >conftest.$ac_ext <<_ACEOF
33217/* confdefs.h. */
33218_ACEOF
33219cat confdefs.h >>conftest.$ac_ext
33220cat >>conftest.$ac_ext <<_ACEOF
33221/* end confdefs.h. */
33222
33223 #include <sys/statvfs.h>
33224
33225int
33226main ()
33227{
33228
33229 long l;
33230 struct statvfs fs;
33231 statvfs("/", &fs);
33232 l = fs.f_bsize;
33233 l += fs.f_blocks;
33234 l += fs.f_bavail;
33235
33236 ;
33237 return 0;
33238}
33239_ACEOF
33240rm -f conftest.$ac_objext
33241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33242 (eval $ac_compile) 2>conftest.er1
a848cd7e 33243 ac_status=$?
ac1cb8d3
VS
33244 grep -v '^ *+' conftest.er1 >conftest.err
33245 rm -f conftest.er1
33246 cat conftest.err >&5
a848cd7e
SC
33247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248 (exit $ac_status); } &&
6ebeb4c7 33249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33251 (eval $ac_try) 2>&5
33252 ac_status=$?
33253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254 (exit $ac_status); }; } &&
33255 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33257 (eval $ac_try) 2>&5
33258 ac_status=$?
33259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260 (exit $ac_status); }; }; then
33261 wx_cv_type_statvfs_t="struct statvfs"
33262else
33263 echo "$as_me: failed program was:" >&5
33264sed 's/^/| /' conftest.$ac_ext >&5
33265
33266wx_cv_type_statvfs_t="unknown"
33267
33268fi
ac1cb8d3 33269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33270
33271
33272fi
ac1cb8d3 33273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33274
33275fi
33276echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
33277echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
33278
33279 ac_ext=c
33280ac_cpp='$CPP $CPPFLAGS'
33281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33283ac_compiler_gnu=$ac_cv_c_compiler_gnu
33284
33285
33286 if test "$wx_cv_type_statvfs_t" != "unknown"; then
33287 cat >>confdefs.h <<\_ACEOF
33288#define HAVE_STATVFS 1
33289_ACEOF
33290
33291 fi
33292 else
33293 wx_cv_type_statvfs_t="unknown"
33294 fi
33295fi
33296
33297if test "$wx_cv_type_statvfs_t" != "unknown"; then
33298 cat >>confdefs.h <<_ACEOF
33299#define WX_STATFS_T $wx_cv_type_statvfs_t
33300_ACEOF
33301
33302else
33303 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
33304echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
33305fi
33306
33307if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
33308
33309
33310for ac_func in fcntl flock
33311do
33312as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33313echo "$as_me:$LINENO: checking for $ac_func" >&5
33314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33315if eval "test \"\${$as_ac_var+set}\" = set"; then
33316 echo $ECHO_N "(cached) $ECHO_C" >&6
33317else
33318 cat >conftest.$ac_ext <<_ACEOF
33319/* confdefs.h. */
33320_ACEOF
33321cat confdefs.h >>conftest.$ac_ext
33322cat >>conftest.$ac_ext <<_ACEOF
33323/* end confdefs.h. */
ac1cb8d3
VS
33324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33326#define $ac_func innocuous_$ac_func
33327
a848cd7e
SC
33328/* System header to define __stub macros and hopefully few prototypes,
33329 which can conflict with char $ac_func (); below.
33330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33331 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33332
a848cd7e
SC
33333#ifdef __STDC__
33334# include <limits.h>
33335#else
33336# include <assert.h>
33337#endif
ac1cb8d3
VS
33338
33339#undef $ac_func
33340
a848cd7e
SC
33341/* Override any gcc2 internal prototype to avoid an error. */
33342#ifdef __cplusplus
33343extern "C"
33344{
33345#endif
33346/* We use char because int might match the return type of a gcc2
33347 builtin and then its argument prototype would still apply. */
33348char $ac_func ();
33349/* The GNU C library defines this for functions which it implements
33350 to always fail with ENOSYS. Some functions are actually named
33351 something starting with __ and the normal name is an alias. */
33352#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33353choke me
33354#else
33355char (*f) () = $ac_func;
33356#endif
33357#ifdef __cplusplus
33358}
33359#endif
33360
33361int
33362main ()
33363{
33364return f != $ac_func;
33365 ;
33366 return 0;
33367}
33368_ACEOF
33369rm -f conftest.$ac_objext conftest$ac_exeext
33370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33371 (eval $ac_link) 2>conftest.er1
a848cd7e 33372 ac_status=$?
ac1cb8d3
VS
33373 grep -v '^ *+' conftest.er1 >conftest.err
33374 rm -f conftest.er1
33375 cat conftest.err >&5
a848cd7e
SC
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); } &&
6ebeb4c7 33378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33380 (eval $ac_try) 2>&5
33381 ac_status=$?
33382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383 (exit $ac_status); }; } &&
33384 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33386 (eval $ac_try) 2>&5
33387 ac_status=$?
33388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389 (exit $ac_status); }; }; then
33390 eval "$as_ac_var=yes"
33391else
33392 echo "$as_me: failed program was:" >&5
33393sed 's/^/| /' conftest.$ac_ext >&5
33394
33395eval "$as_ac_var=no"
33396fi
ac1cb8d3
VS
33397rm -f conftest.err conftest.$ac_objext \
33398 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33399fi
33400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33401echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33402if test `eval echo '${'$as_ac_var'}'` = yes; then
33403 cat >>confdefs.h <<_ACEOF
33404#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33405_ACEOF
33406 break
33407fi
33408done
33409
33410
33411 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
33412 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
33413echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
33414 wxUSE_SNGLINST_CHECKER=no
33415 fi
33416fi
33417
33418
33419for ac_func in timegm
33420do
33421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33422echo "$as_me:$LINENO: checking for $ac_func" >&5
33423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33424if eval "test \"\${$as_ac_var+set}\" = set"; then
33425 echo $ECHO_N "(cached) $ECHO_C" >&6
33426else
33427 cat >conftest.$ac_ext <<_ACEOF
33428/* confdefs.h. */
33429_ACEOF
33430cat confdefs.h >>conftest.$ac_ext
33431cat >>conftest.$ac_ext <<_ACEOF
33432/* end confdefs.h. */
ac1cb8d3
VS
33433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33435#define $ac_func innocuous_$ac_func
33436
a848cd7e
SC
33437/* System header to define __stub macros and hopefully few prototypes,
33438 which can conflict with char $ac_func (); below.
33439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33440 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33441
a848cd7e
SC
33442#ifdef __STDC__
33443# include <limits.h>
33444#else
33445# include <assert.h>
33446#endif
ac1cb8d3
VS
33447
33448#undef $ac_func
33449
a848cd7e
SC
33450/* Override any gcc2 internal prototype to avoid an error. */
33451#ifdef __cplusplus
33452extern "C"
33453{
33454#endif
33455/* We use char because int might match the return type of a gcc2
33456 builtin and then its argument prototype would still apply. */
33457char $ac_func ();
33458/* The GNU C library defines this for functions which it implements
33459 to always fail with ENOSYS. Some functions are actually named
33460 something starting with __ and the normal name is an alias. */
33461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33462choke me
33463#else
33464char (*f) () = $ac_func;
33465#endif
33466#ifdef __cplusplus
33467}
33468#endif
33469
33470int
33471main ()
33472{
33473return f != $ac_func;
33474 ;
33475 return 0;
33476}
33477_ACEOF
33478rm -f conftest.$ac_objext conftest$ac_exeext
33479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33480 (eval $ac_link) 2>conftest.er1
a848cd7e 33481 ac_status=$?
ac1cb8d3
VS
33482 grep -v '^ *+' conftest.er1 >conftest.err
33483 rm -f conftest.er1
33484 cat conftest.err >&5
a848cd7e
SC
33485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486 (exit $ac_status); } &&
6ebeb4c7 33487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33489 (eval $ac_try) 2>&5
33490 ac_status=$?
33491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492 (exit $ac_status); }; } &&
33493 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33495 (eval $ac_try) 2>&5
33496 ac_status=$?
33497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33498 (exit $ac_status); }; }; then
33499 eval "$as_ac_var=yes"
33500else
33501 echo "$as_me: failed program was:" >&5
33502sed 's/^/| /' conftest.$ac_ext >&5
33503
33504eval "$as_ac_var=no"
33505fi
ac1cb8d3
VS
33506rm -f conftest.err conftest.$ac_objext \
33507 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33508fi
33509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33510echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33511if test `eval echo '${'$as_ac_var'}'` = yes; then
33512 cat >>confdefs.h <<_ACEOF
33513#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33514_ACEOF
33515
33516fi
33517done
33518
33519
33520
33521
33522for ac_func in putenv setenv
33523do
33524as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33525echo "$as_me:$LINENO: checking for $ac_func" >&5
33526echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33527if eval "test \"\${$as_ac_var+set}\" = set"; then
33528 echo $ECHO_N "(cached) $ECHO_C" >&6
33529else
33530 cat >conftest.$ac_ext <<_ACEOF
33531/* confdefs.h. */
33532_ACEOF
33533cat confdefs.h >>conftest.$ac_ext
33534cat >>conftest.$ac_ext <<_ACEOF
33535/* end confdefs.h. */
ac1cb8d3
VS
33536/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33538#define $ac_func innocuous_$ac_func
33539
a848cd7e
SC
33540/* System header to define __stub macros and hopefully few prototypes,
33541 which can conflict with char $ac_func (); below.
33542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33543 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33544
a848cd7e
SC
33545#ifdef __STDC__
33546# include <limits.h>
33547#else
33548# include <assert.h>
33549#endif
ac1cb8d3
VS
33550
33551#undef $ac_func
33552
a848cd7e
SC
33553/* Override any gcc2 internal prototype to avoid an error. */
33554#ifdef __cplusplus
33555extern "C"
33556{
33557#endif
33558/* We use char because int might match the return type of a gcc2
33559 builtin and then its argument prototype would still apply. */
33560char $ac_func ();
33561/* The GNU C library defines this for functions which it implements
33562 to always fail with ENOSYS. Some functions are actually named
33563 something starting with __ and the normal name is an alias. */
33564#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33565choke me
33566#else
33567char (*f) () = $ac_func;
33568#endif
33569#ifdef __cplusplus
33570}
33571#endif
33572
33573int
33574main ()
33575{
33576return f != $ac_func;
33577 ;
33578 return 0;
33579}
33580_ACEOF
33581rm -f conftest.$ac_objext conftest$ac_exeext
33582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33583 (eval $ac_link) 2>conftest.er1
a848cd7e 33584 ac_status=$?
ac1cb8d3
VS
33585 grep -v '^ *+' conftest.er1 >conftest.err
33586 rm -f conftest.er1
33587 cat conftest.err >&5
a848cd7e
SC
33588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589 (exit $ac_status); } &&
6ebeb4c7 33590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33592 (eval $ac_try) 2>&5
33593 ac_status=$?
33594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33595 (exit $ac_status); }; } &&
33596 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33598 (eval $ac_try) 2>&5
33599 ac_status=$?
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); }; }; then
33602 eval "$as_ac_var=yes"
33603else
33604 echo "$as_me: failed program was:" >&5
33605sed 's/^/| /' conftest.$ac_ext >&5
33606
33607eval "$as_ac_var=no"
33608fi
ac1cb8d3
VS
33609rm -f conftest.err conftest.$ac_objext \
33610 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33611fi
33612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33613echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33614if test `eval echo '${'$as_ac_var'}'` = yes; then
33615 cat >>confdefs.h <<_ACEOF
33616#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33617_ACEOF
33618 break
33619fi
33620done
33621
33622
33623HAVE_SOME_SLEEP_FUNC=0
33624if test "$USE_BEOS" = 1; then
33625 cat >>confdefs.h <<\_ACEOF
33626#define HAVE_SLEEP 1
33627_ACEOF
33628
33629 HAVE_SOME_SLEEP_FUNC=1
33630fi
33631
33632if test "$USE_DARWIN" = 1; then
33633 cat >>confdefs.h <<\_ACEOF
33634#define HAVE_USLEEP 1
33635_ACEOF
33636
33637 HAVE_SOME_SLEEP_FUNC=1
33638fi
33639
33640if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
33641 POSIX4_LINK=
33642
33643for ac_func in nanosleep
33644do
33645as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33646echo "$as_me:$LINENO: checking for $ac_func" >&5
33647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33648if eval "test \"\${$as_ac_var+set}\" = set"; then
33649 echo $ECHO_N "(cached) $ECHO_C" >&6
33650else
33651 cat >conftest.$ac_ext <<_ACEOF
33652/* confdefs.h. */
33653_ACEOF
33654cat confdefs.h >>conftest.$ac_ext
33655cat >>conftest.$ac_ext <<_ACEOF
33656/* end confdefs.h. */
ac1cb8d3
VS
33657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33659#define $ac_func innocuous_$ac_func
33660
a848cd7e
SC
33661/* System header to define __stub macros and hopefully few prototypes,
33662 which can conflict with char $ac_func (); below.
33663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33664 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33665
a848cd7e
SC
33666#ifdef __STDC__
33667# include <limits.h>
33668#else
33669# include <assert.h>
33670#endif
ac1cb8d3
VS
33671
33672#undef $ac_func
33673
a848cd7e
SC
33674/* Override any gcc2 internal prototype to avoid an error. */
33675#ifdef __cplusplus
33676extern "C"
33677{
33678#endif
33679/* We use char because int might match the return type of a gcc2
33680 builtin and then its argument prototype would still apply. */
33681char $ac_func ();
33682/* The GNU C library defines this for functions which it implements
33683 to always fail with ENOSYS. Some functions are actually named
33684 something starting with __ and the normal name is an alias. */
33685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33686choke me
33687#else
33688char (*f) () = $ac_func;
33689#endif
33690#ifdef __cplusplus
33691}
33692#endif
33693
33694int
33695main ()
33696{
33697return f != $ac_func;
33698 ;
33699 return 0;
33700}
33701_ACEOF
33702rm -f conftest.$ac_objext conftest$ac_exeext
33703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33704 (eval $ac_link) 2>conftest.er1
a848cd7e 33705 ac_status=$?
ac1cb8d3
VS
33706 grep -v '^ *+' conftest.er1 >conftest.err
33707 rm -f conftest.er1
33708 cat conftest.err >&5
a848cd7e
SC
33709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710 (exit $ac_status); } &&
6ebeb4c7 33711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33713 (eval $ac_try) 2>&5
33714 ac_status=$?
33715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716 (exit $ac_status); }; } &&
33717 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33719 (eval $ac_try) 2>&5
33720 ac_status=$?
33721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722 (exit $ac_status); }; }; then
33723 eval "$as_ac_var=yes"
33724else
33725 echo "$as_me: failed program was:" >&5
33726sed 's/^/| /' conftest.$ac_ext >&5
33727
33728eval "$as_ac_var=no"
33729fi
ac1cb8d3
VS
33730rm -f conftest.err conftest.$ac_objext \
33731 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33732fi
33733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33735if test `eval echo '${'$as_ac_var'}'` = yes; then
33736 cat >>confdefs.h <<_ACEOF
33737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33738_ACEOF
33739 cat >>confdefs.h <<\_ACEOF
33740#define HAVE_NANOSLEEP 1
33741_ACEOF
33742
33743else
33744
33745 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
33746echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
33747if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
33748 echo $ECHO_N "(cached) $ECHO_C" >&6
33749else
33750 ac_check_lib_save_LIBS=$LIBS
33751LIBS="-lposix4 $LIBS"
33752cat >conftest.$ac_ext <<_ACEOF
33753/* confdefs.h. */
33754_ACEOF
33755cat confdefs.h >>conftest.$ac_ext
33756cat >>conftest.$ac_ext <<_ACEOF
33757/* end confdefs.h. */
33758
33759/* Override any gcc2 internal prototype to avoid an error. */
33760#ifdef __cplusplus
33761extern "C"
33762#endif
33763/* We use char because int might match the return type of a gcc2
33764 builtin and then its argument prototype would still apply. */
33765char nanosleep ();
33766int
33767main ()
33768{
33769nanosleep ();
33770 ;
33771 return 0;
33772}
33773_ACEOF
33774rm -f conftest.$ac_objext conftest$ac_exeext
33775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33776 (eval $ac_link) 2>conftest.er1
a848cd7e 33777 ac_status=$?
ac1cb8d3
VS
33778 grep -v '^ *+' conftest.er1 >conftest.err
33779 rm -f conftest.er1
33780 cat conftest.err >&5
a848cd7e
SC
33781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782 (exit $ac_status); } &&
6ebeb4c7 33783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33785 (eval $ac_try) 2>&5
33786 ac_status=$?
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); }; } &&
33789 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33791 (eval $ac_try) 2>&5
33792 ac_status=$?
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); }; }; then
33795 ac_cv_lib_posix4_nanosleep=yes
33796else
33797 echo "$as_me: failed program was:" >&5
33798sed 's/^/| /' conftest.$ac_ext >&5
33799
33800ac_cv_lib_posix4_nanosleep=no
33801fi
ac1cb8d3
VS
33802rm -f conftest.err conftest.$ac_objext \
33803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33804LIBS=$ac_check_lib_save_LIBS
33805fi
33806echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
33807echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
33808if test $ac_cv_lib_posix4_nanosleep = yes; then
33809
33810 cat >>confdefs.h <<\_ACEOF
33811#define HAVE_NANOSLEEP 1
33812_ACEOF
33813
33814 POSIX4_LINK=" -lposix4"
33815
33816else
33817
33818
33819for ac_func in usleep
33820do
33821as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33822echo "$as_me:$LINENO: checking for $ac_func" >&5
33823echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33824if eval "test \"\${$as_ac_var+set}\" = set"; then
33825 echo $ECHO_N "(cached) $ECHO_C" >&6
33826else
33827 cat >conftest.$ac_ext <<_ACEOF
33828/* confdefs.h. */
33829_ACEOF
33830cat confdefs.h >>conftest.$ac_ext
33831cat >>conftest.$ac_ext <<_ACEOF
33832/* end confdefs.h. */
ac1cb8d3
VS
33833/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33835#define $ac_func innocuous_$ac_func
33836
a848cd7e
SC
33837/* System header to define __stub macros and hopefully few prototypes,
33838 which can conflict with char $ac_func (); below.
33839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33840 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33841
a848cd7e
SC
33842#ifdef __STDC__
33843# include <limits.h>
33844#else
33845# include <assert.h>
33846#endif
ac1cb8d3
VS
33847
33848#undef $ac_func
33849
a848cd7e
SC
33850/* Override any gcc2 internal prototype to avoid an error. */
33851#ifdef __cplusplus
33852extern "C"
33853{
33854#endif
33855/* We use char because int might match the return type of a gcc2
33856 builtin and then its argument prototype would still apply. */
33857char $ac_func ();
33858/* The GNU C library defines this for functions which it implements
33859 to always fail with ENOSYS. Some functions are actually named
33860 something starting with __ and the normal name is an alias. */
33861#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33862choke me
33863#else
33864char (*f) () = $ac_func;
33865#endif
33866#ifdef __cplusplus
33867}
33868#endif
33869
33870int
33871main ()
33872{
33873return f != $ac_func;
33874 ;
33875 return 0;
33876}
33877_ACEOF
33878rm -f conftest.$ac_objext conftest$ac_exeext
33879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33880 (eval $ac_link) 2>conftest.er1
a848cd7e 33881 ac_status=$?
ac1cb8d3
VS
33882 grep -v '^ *+' conftest.er1 >conftest.err
33883 rm -f conftest.er1
33884 cat conftest.err >&5
a848cd7e
SC
33885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886 (exit $ac_status); } &&
6ebeb4c7 33887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33889 (eval $ac_try) 2>&5
33890 ac_status=$?
33891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33892 (exit $ac_status); }; } &&
33893 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33895 (eval $ac_try) 2>&5
33896 ac_status=$?
33897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33898 (exit $ac_status); }; }; then
33899 eval "$as_ac_var=yes"
33900else
33901 echo "$as_me: failed program was:" >&5
33902sed 's/^/| /' conftest.$ac_ext >&5
33903
33904eval "$as_ac_var=no"
33905fi
ac1cb8d3
VS
33906rm -f conftest.err conftest.$ac_objext \
33907 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33908fi
33909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33911if test `eval echo '${'$as_ac_var'}'` = yes; then
33912 cat >>confdefs.h <<_ACEOF
33913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33914_ACEOF
33915 cat >>confdefs.h <<\_ACEOF
33916#define HAVE_USLEEP 1
33917_ACEOF
33918
33919else
33920 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
33921echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
33922
33923fi
33924done
33925
33926
33927
33928fi
33929
33930
33931
33932fi
33933done
33934
33935fi
33936
33937
33938
33939for ac_func in uname gethostname
33940do
33941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33942echo "$as_me:$LINENO: checking for $ac_func" >&5
33943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33944if eval "test \"\${$as_ac_var+set}\" = set"; then
33945 echo $ECHO_N "(cached) $ECHO_C" >&6
33946else
33947 cat >conftest.$ac_ext <<_ACEOF
33948/* confdefs.h. */
33949_ACEOF
33950cat confdefs.h >>conftest.$ac_ext
33951cat >>conftest.$ac_ext <<_ACEOF
33952/* end confdefs.h. */
ac1cb8d3
VS
33953/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33955#define $ac_func innocuous_$ac_func
33956
a848cd7e
SC
33957/* System header to define __stub macros and hopefully few prototypes,
33958 which can conflict with char $ac_func (); below.
33959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33960 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33961
a848cd7e
SC
33962#ifdef __STDC__
33963# include <limits.h>
33964#else
33965# include <assert.h>
33966#endif
ac1cb8d3
VS
33967
33968#undef $ac_func
33969
a848cd7e
SC
33970/* Override any gcc2 internal prototype to avoid an error. */
33971#ifdef __cplusplus
33972extern "C"
33973{
33974#endif
33975/* We use char because int might match the return type of a gcc2
33976 builtin and then its argument prototype would still apply. */
33977char $ac_func ();
33978/* The GNU C library defines this for functions which it implements
33979 to always fail with ENOSYS. Some functions are actually named
33980 something starting with __ and the normal name is an alias. */
33981#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33982choke me
33983#else
33984char (*f) () = $ac_func;
33985#endif
33986#ifdef __cplusplus
33987}
33988#endif
33989
33990int
33991main ()
33992{
33993return f != $ac_func;
33994 ;
33995 return 0;
33996}
33997_ACEOF
33998rm -f conftest.$ac_objext conftest$ac_exeext
33999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34000 (eval $ac_link) 2>conftest.er1
a848cd7e 34001 ac_status=$?
ac1cb8d3
VS
34002 grep -v '^ *+' conftest.er1 >conftest.err
34003 rm -f conftest.er1
34004 cat conftest.err >&5
a848cd7e
SC
34005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006 (exit $ac_status); } &&
6ebeb4c7 34007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34009 (eval $ac_try) 2>&5
34010 ac_status=$?
34011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34012 (exit $ac_status); }; } &&
34013 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34015 (eval $ac_try) 2>&5
34016 ac_status=$?
34017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34018 (exit $ac_status); }; }; then
34019 eval "$as_ac_var=yes"
34020else
34021 echo "$as_me: failed program was:" >&5
34022sed 's/^/| /' conftest.$ac_ext >&5
34023
34024eval "$as_ac_var=no"
34025fi
ac1cb8d3
VS
34026rm -f conftest.err conftest.$ac_objext \
34027 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34028fi
34029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34030echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34031if test `eval echo '${'$as_ac_var'}'` = yes; then
34032 cat >>confdefs.h <<_ACEOF
34033#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34034_ACEOF
34035 break
34036fi
34037done
34038
34039
34040
34041
34042ac_ext=cc
34043ac_cpp='$CXXCPP $CPPFLAGS'
34044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34047
34048
34049
34050for ac_func in strtok_r
34051do
34052as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34053echo "$as_me:$LINENO: checking for $ac_func" >&5
34054echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34055if eval "test \"\${$as_ac_var+set}\" = set"; then
34056 echo $ECHO_N "(cached) $ECHO_C" >&6
34057else
34058 cat >conftest.$ac_ext <<_ACEOF
34059/* confdefs.h. */
34060_ACEOF
34061cat confdefs.h >>conftest.$ac_ext
34062cat >>conftest.$ac_ext <<_ACEOF
34063/* end confdefs.h. */
ac1cb8d3
VS
34064/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34066#define $ac_func innocuous_$ac_func
34067
a848cd7e
SC
34068/* System header to define __stub macros and hopefully few prototypes,
34069 which can conflict with char $ac_func (); below.
34070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34071 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34072
a848cd7e
SC
34073#ifdef __STDC__
34074# include <limits.h>
34075#else
34076# include <assert.h>
34077#endif
ac1cb8d3
VS
34078
34079#undef $ac_func
34080
a848cd7e
SC
34081/* Override any gcc2 internal prototype to avoid an error. */
34082#ifdef __cplusplus
34083extern "C"
34084{
34085#endif
34086/* We use char because int might match the return type of a gcc2
34087 builtin and then its argument prototype would still apply. */
34088char $ac_func ();
34089/* The GNU C library defines this for functions which it implements
34090 to always fail with ENOSYS. Some functions are actually named
34091 something starting with __ and the normal name is an alias. */
34092#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34093choke me
34094#else
34095char (*f) () = $ac_func;
34096#endif
34097#ifdef __cplusplus
34098}
34099#endif
34100
34101int
34102main ()
34103{
34104return f != $ac_func;
34105 ;
34106 return 0;
34107}
34108_ACEOF
34109rm -f conftest.$ac_objext conftest$ac_exeext
34110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34111 (eval $ac_link) 2>conftest.er1
a848cd7e 34112 ac_status=$?
ac1cb8d3
VS
34113 grep -v '^ *+' conftest.er1 >conftest.err
34114 rm -f conftest.er1
34115 cat conftest.err >&5
a848cd7e
SC
34116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117 (exit $ac_status); } &&
6ebeb4c7 34118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34120 (eval $ac_try) 2>&5
34121 ac_status=$?
34122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34123 (exit $ac_status); }; } &&
34124 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34126 (eval $ac_try) 2>&5
34127 ac_status=$?
34128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129 (exit $ac_status); }; }; then
34130 eval "$as_ac_var=yes"
34131else
34132 echo "$as_me: failed program was:" >&5
34133sed 's/^/| /' conftest.$ac_ext >&5
34134
34135eval "$as_ac_var=no"
34136fi
ac1cb8d3
VS
34137rm -f conftest.err conftest.$ac_objext \
34138 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34139fi
34140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34141echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34142if test `eval echo '${'$as_ac_var'}'` = yes; then
34143 cat >>confdefs.h <<_ACEOF
34144#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34145_ACEOF
34146
34147fi
34148done
34149
34150
34151ac_ext=c
34152ac_cpp='$CPP $CPPFLAGS'
34153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34155ac_compiler_gnu=$ac_cv_c_compiler_gnu
34156
34157
34158INET_LINK=
34159
34160for ac_func in inet_addr
34161do
34162as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34163echo "$as_me:$LINENO: checking for $ac_func" >&5
34164echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34165if eval "test \"\${$as_ac_var+set}\" = set"; then
34166 echo $ECHO_N "(cached) $ECHO_C" >&6
34167else
34168 cat >conftest.$ac_ext <<_ACEOF
34169/* confdefs.h. */
34170_ACEOF
34171cat confdefs.h >>conftest.$ac_ext
34172cat >>conftest.$ac_ext <<_ACEOF
34173/* end confdefs.h. */
ac1cb8d3
VS
34174/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34176#define $ac_func innocuous_$ac_func
34177
a848cd7e
SC
34178/* System header to define __stub macros and hopefully few prototypes,
34179 which can conflict with char $ac_func (); below.
34180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34181 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34182
a848cd7e
SC
34183#ifdef __STDC__
34184# include <limits.h>
34185#else
34186# include <assert.h>
34187#endif
ac1cb8d3
VS
34188
34189#undef $ac_func
34190
a848cd7e
SC
34191/* Override any gcc2 internal prototype to avoid an error. */
34192#ifdef __cplusplus
34193extern "C"
34194{
34195#endif
34196/* We use char because int might match the return type of a gcc2
34197 builtin and then its argument prototype would still apply. */
34198char $ac_func ();
34199/* The GNU C library defines this for functions which it implements
34200 to always fail with ENOSYS. Some functions are actually named
34201 something starting with __ and the normal name is an alias. */
34202#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34203choke me
34204#else
34205char (*f) () = $ac_func;
34206#endif
34207#ifdef __cplusplus
34208}
34209#endif
34210
34211int
34212main ()
34213{
34214return f != $ac_func;
34215 ;
34216 return 0;
34217}
34218_ACEOF
34219rm -f conftest.$ac_objext conftest$ac_exeext
34220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34221 (eval $ac_link) 2>conftest.er1
a848cd7e 34222 ac_status=$?
ac1cb8d3
VS
34223 grep -v '^ *+' conftest.er1 >conftest.err
34224 rm -f conftest.er1
34225 cat conftest.err >&5
a848cd7e
SC
34226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34227 (exit $ac_status); } &&
6ebeb4c7 34228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34230 (eval $ac_try) 2>&5
34231 ac_status=$?
34232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34233 (exit $ac_status); }; } &&
34234 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34236 (eval $ac_try) 2>&5
34237 ac_status=$?
34238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34239 (exit $ac_status); }; }; then
34240 eval "$as_ac_var=yes"
34241else
34242 echo "$as_me: failed program was:" >&5
34243sed 's/^/| /' conftest.$ac_ext >&5
34244
34245eval "$as_ac_var=no"
34246fi
ac1cb8d3
VS
34247rm -f conftest.err conftest.$ac_objext \
34248 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34249fi
34250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34251echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34252if test `eval echo '${'$as_ac_var'}'` = yes; then
34253 cat >>confdefs.h <<_ACEOF
34254#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34255_ACEOF
34256 cat >>confdefs.h <<\_ACEOF
34257#define HAVE_INET_ADDR 1
34258_ACEOF
34259
34260else
34261
34262 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
34263echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
34264if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
34265 echo $ECHO_N "(cached) $ECHO_C" >&6
34266else
34267 ac_check_lib_save_LIBS=$LIBS
34268LIBS="-lnsl $LIBS"
34269cat >conftest.$ac_ext <<_ACEOF
34270/* confdefs.h. */
34271_ACEOF
34272cat confdefs.h >>conftest.$ac_ext
34273cat >>conftest.$ac_ext <<_ACEOF
34274/* end confdefs.h. */
34275
34276/* Override any gcc2 internal prototype to avoid an error. */
34277#ifdef __cplusplus
34278extern "C"
34279#endif
34280/* We use char because int might match the return type of a gcc2
34281 builtin and then its argument prototype would still apply. */
34282char inet_addr ();
34283int
34284main ()
34285{
34286inet_addr ();
34287 ;
34288 return 0;
34289}
34290_ACEOF
34291rm -f conftest.$ac_objext conftest$ac_exeext
34292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34293 (eval $ac_link) 2>conftest.er1
a848cd7e 34294 ac_status=$?
ac1cb8d3
VS
34295 grep -v '^ *+' conftest.er1 >conftest.err
34296 rm -f conftest.er1
34297 cat conftest.err >&5
a848cd7e
SC
34298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34299 (exit $ac_status); } &&
6ebeb4c7 34300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34302 (eval $ac_try) 2>&5
34303 ac_status=$?
34304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34305 (exit $ac_status); }; } &&
34306 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34308 (eval $ac_try) 2>&5
34309 ac_status=$?
34310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34311 (exit $ac_status); }; }; then
34312 ac_cv_lib_nsl_inet_addr=yes
34313else
34314 echo "$as_me: failed program was:" >&5
34315sed 's/^/| /' conftest.$ac_ext >&5
34316
34317ac_cv_lib_nsl_inet_addr=no
34318fi
ac1cb8d3
VS
34319rm -f conftest.err conftest.$ac_objext \
34320 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34321LIBS=$ac_check_lib_save_LIBS
34322fi
34323echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
34324echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
34325if test $ac_cv_lib_nsl_inet_addr = yes; then
34326 INET_LINK="nsl"
34327else
34328
34329 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
34330echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
34331if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
34332 echo $ECHO_N "(cached) $ECHO_C" >&6
34333else
34334 ac_check_lib_save_LIBS=$LIBS
34335LIBS="-lresolv $LIBS"
34336cat >conftest.$ac_ext <<_ACEOF
34337/* confdefs.h. */
34338_ACEOF
34339cat confdefs.h >>conftest.$ac_ext
34340cat >>conftest.$ac_ext <<_ACEOF
34341/* end confdefs.h. */
34342
34343/* Override any gcc2 internal prototype to avoid an error. */
34344#ifdef __cplusplus
34345extern "C"
34346#endif
34347/* We use char because int might match the return type of a gcc2
34348 builtin and then its argument prototype would still apply. */
34349char inet_addr ();
34350int
34351main ()
34352{
34353inet_addr ();
34354 ;
34355 return 0;
34356}
34357_ACEOF
34358rm -f conftest.$ac_objext conftest$ac_exeext
34359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34360 (eval $ac_link) 2>conftest.er1
a848cd7e 34361 ac_status=$?
ac1cb8d3
VS
34362 grep -v '^ *+' conftest.er1 >conftest.err
34363 rm -f conftest.er1
34364 cat conftest.err >&5
a848cd7e
SC
34365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34366 (exit $ac_status); } &&
6ebeb4c7 34367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34369 (eval $ac_try) 2>&5
34370 ac_status=$?
34371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34372 (exit $ac_status); }; } &&
34373 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34375 (eval $ac_try) 2>&5
34376 ac_status=$?
34377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378 (exit $ac_status); }; }; then
34379 ac_cv_lib_resolv_inet_addr=yes
34380else
34381 echo "$as_me: failed program was:" >&5
34382sed 's/^/| /' conftest.$ac_ext >&5
34383
34384ac_cv_lib_resolv_inet_addr=no
34385fi
ac1cb8d3
VS
34386rm -f conftest.err conftest.$ac_objext \
34387 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34388LIBS=$ac_check_lib_save_LIBS
34389fi
34390echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
34391echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
34392if test $ac_cv_lib_resolv_inet_addr = yes; then
34393 INET_LINK="resolv"
34394else
34395
34396 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
34397echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
34398if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
34399 echo $ECHO_N "(cached) $ECHO_C" >&6
34400else
34401 ac_check_lib_save_LIBS=$LIBS
34402LIBS="-lsocket $LIBS"
34403cat >conftest.$ac_ext <<_ACEOF
34404/* confdefs.h. */
34405_ACEOF
34406cat confdefs.h >>conftest.$ac_ext
34407cat >>conftest.$ac_ext <<_ACEOF
34408/* end confdefs.h. */
34409
34410/* Override any gcc2 internal prototype to avoid an error. */
34411#ifdef __cplusplus
34412extern "C"
34413#endif
34414/* We use char because int might match the return type of a gcc2
34415 builtin and then its argument prototype would still apply. */
34416char inet_addr ();
34417int
34418main ()
34419{
34420inet_addr ();
34421 ;
34422 return 0;
34423}
34424_ACEOF
34425rm -f conftest.$ac_objext conftest$ac_exeext
34426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34427 (eval $ac_link) 2>conftest.er1
a848cd7e 34428 ac_status=$?
ac1cb8d3
VS
34429 grep -v '^ *+' conftest.er1 >conftest.err
34430 rm -f conftest.er1
34431 cat conftest.err >&5
a848cd7e
SC
34432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34433 (exit $ac_status); } &&
6ebeb4c7 34434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34436 (eval $ac_try) 2>&5
34437 ac_status=$?
34438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439 (exit $ac_status); }; } &&
34440 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34442 (eval $ac_try) 2>&5
34443 ac_status=$?
34444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34445 (exit $ac_status); }; }; then
34446 ac_cv_lib_socket_inet_addr=yes
34447else
34448 echo "$as_me: failed program was:" >&5
34449sed 's/^/| /' conftest.$ac_ext >&5
34450
34451ac_cv_lib_socket_inet_addr=no
34452fi
ac1cb8d3
VS
34453rm -f conftest.err conftest.$ac_objext \
34454 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34455LIBS=$ac_check_lib_save_LIBS
34456fi
34457echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
34458echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
34459if test $ac_cv_lib_socket_inet_addr = yes; then
34460 INET_LINK="socket"
34461
34462fi
34463
34464
34465
34466fi
34467
34468
34469
34470fi
34471
34472
34473
34474fi
34475done
34476
34477
34478
34479for ac_func in inet_aton
34480do
34481as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34482echo "$as_me:$LINENO: checking for $ac_func" >&5
34483echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34484if eval "test \"\${$as_ac_var+set}\" = set"; then
34485 echo $ECHO_N "(cached) $ECHO_C" >&6
34486else
34487 cat >conftest.$ac_ext <<_ACEOF
34488/* confdefs.h. */
34489_ACEOF
34490cat confdefs.h >>conftest.$ac_ext
34491cat >>conftest.$ac_ext <<_ACEOF
34492/* end confdefs.h. */
ac1cb8d3
VS
34493/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34495#define $ac_func innocuous_$ac_func
34496
a848cd7e
SC
34497/* System header to define __stub macros and hopefully few prototypes,
34498 which can conflict with char $ac_func (); below.
34499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34500 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34501
a848cd7e
SC
34502#ifdef __STDC__
34503# include <limits.h>
34504#else
34505# include <assert.h>
34506#endif
ac1cb8d3
VS
34507
34508#undef $ac_func
34509
a848cd7e
SC
34510/* Override any gcc2 internal prototype to avoid an error. */
34511#ifdef __cplusplus
34512extern "C"
34513{
34514#endif
34515/* We use char because int might match the return type of a gcc2
34516 builtin and then its argument prototype would still apply. */
34517char $ac_func ();
34518/* The GNU C library defines this for functions which it implements
34519 to always fail with ENOSYS. Some functions are actually named
34520 something starting with __ and the normal name is an alias. */
34521#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34522choke me
34523#else
34524char (*f) () = $ac_func;
34525#endif
34526#ifdef __cplusplus
34527}
34528#endif
34529
34530int
34531main ()
34532{
34533return f != $ac_func;
34534 ;
34535 return 0;
34536}
34537_ACEOF
34538rm -f conftest.$ac_objext conftest$ac_exeext
34539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34540 (eval $ac_link) 2>conftest.er1
a848cd7e 34541 ac_status=$?
ac1cb8d3
VS
34542 grep -v '^ *+' conftest.er1 >conftest.err
34543 rm -f conftest.er1
34544 cat conftest.err >&5
a848cd7e
SC
34545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34546 (exit $ac_status); } &&
6ebeb4c7 34547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34549 (eval $ac_try) 2>&5
34550 ac_status=$?
34551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34552 (exit $ac_status); }; } &&
34553 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34555 (eval $ac_try) 2>&5
34556 ac_status=$?
34557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34558 (exit $ac_status); }; }; then
34559 eval "$as_ac_var=yes"
34560else
34561 echo "$as_me: failed program was:" >&5
34562sed 's/^/| /' conftest.$ac_ext >&5
34563
34564eval "$as_ac_var=no"
34565fi
ac1cb8d3
VS
34566rm -f conftest.err conftest.$ac_objext \
34567 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34568fi
34569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34570echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34571if test `eval echo '${'$as_ac_var'}'` = yes; then
34572 cat >>confdefs.h <<_ACEOF
34573#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34574_ACEOF
34575 cat >>confdefs.h <<\_ACEOF
34576#define HAVE_INET_ATON 1
34577_ACEOF
34578
34579else
34580
34581 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
34582echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
34583echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
34584if eval "test \"\${$as_ac_Lib+set}\" = set"; then
34585 echo $ECHO_N "(cached) $ECHO_C" >&6
34586else
34587 ac_check_lib_save_LIBS=$LIBS
34588LIBS="-l$INET_LINK $LIBS"
34589cat >conftest.$ac_ext <<_ACEOF
34590/* confdefs.h. */
34591_ACEOF
34592cat confdefs.h >>conftest.$ac_ext
34593cat >>conftest.$ac_ext <<_ACEOF
34594/* end confdefs.h. */
34595
34596/* Override any gcc2 internal prototype to avoid an error. */
34597#ifdef __cplusplus
34598extern "C"
34599#endif
34600/* We use char because int might match the return type of a gcc2
34601 builtin and then its argument prototype would still apply. */
34602char inet_aton ();
34603int
34604main ()
34605{
34606inet_aton ();
34607 ;
34608 return 0;
34609}
34610_ACEOF
34611rm -f conftest.$ac_objext conftest$ac_exeext
34612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34613 (eval $ac_link) 2>conftest.er1
a848cd7e 34614 ac_status=$?
ac1cb8d3
VS
34615 grep -v '^ *+' conftest.er1 >conftest.err
34616 rm -f conftest.er1
34617 cat conftest.err >&5
a848cd7e
SC
34618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619 (exit $ac_status); } &&
6ebeb4c7 34620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34622 (eval $ac_try) 2>&5
34623 ac_status=$?
34624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34625 (exit $ac_status); }; } &&
34626 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34628 (eval $ac_try) 2>&5
34629 ac_status=$?
34630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631 (exit $ac_status); }; }; then
34632 eval "$as_ac_Lib=yes"
34633else
34634 echo "$as_me: failed program was:" >&5
34635sed 's/^/| /' conftest.$ac_ext >&5
34636
34637eval "$as_ac_Lib=no"
34638fi
ac1cb8d3
VS
34639rm -f conftest.err conftest.$ac_objext \
34640 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34641LIBS=$ac_check_lib_save_LIBS
34642fi
34643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
34644echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
34645if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34646 cat >>confdefs.h <<\_ACEOF
34647#define HAVE_INET_ATON 1
34648_ACEOF
34649
34650fi
34651
34652
34653fi
34654done
34655
34656
34657if test "x$INET_LINK" != "x"; then
34658 cat >>confdefs.h <<\_ACEOF
34659#define HAVE_INET_ADDR 1
34660_ACEOF
34661
34662 INET_LINK=" -l$INET_LINK"
34663fi
34664
34665fi
34666
34667
34668
34669EXTRALIBS_ESD=
34670echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
34671echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
34672if test "${ac_cv_lib_esd_esd_close+set}" = set; then
34673 echo $ECHO_N "(cached) $ECHO_C" >&6
34674else
34675 ac_check_lib_save_LIBS=$LIBS
34676LIBS="-lesd $LIBS"
34677cat >conftest.$ac_ext <<_ACEOF
34678/* confdefs.h. */
34679_ACEOF
34680cat confdefs.h >>conftest.$ac_ext
34681cat >>conftest.$ac_ext <<_ACEOF
34682/* end confdefs.h. */
34683
34684/* Override any gcc2 internal prototype to avoid an error. */
34685#ifdef __cplusplus
34686extern "C"
34687#endif
34688/* We use char because int might match the return type of a gcc2
34689 builtin and then its argument prototype would still apply. */
34690char esd_close ();
34691int
34692main ()
34693{
34694esd_close ();
34695 ;
34696 return 0;
34697}
34698_ACEOF
34699rm -f conftest.$ac_objext conftest$ac_exeext
34700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34701 (eval $ac_link) 2>conftest.er1
a848cd7e 34702 ac_status=$?
ac1cb8d3
VS
34703 grep -v '^ *+' conftest.er1 >conftest.err
34704 rm -f conftest.er1
34705 cat conftest.err >&5
a848cd7e
SC
34706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707 (exit $ac_status); } &&
6ebeb4c7 34708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34710 (eval $ac_try) 2>&5
34711 ac_status=$?
34712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713 (exit $ac_status); }; } &&
34714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34716 (eval $ac_try) 2>&5
34717 ac_status=$?
34718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719 (exit $ac_status); }; }; then
34720 ac_cv_lib_esd_esd_close=yes
34721else
34722 echo "$as_me: failed program was:" >&5
34723sed 's/^/| /' conftest.$ac_ext >&5
34724
34725ac_cv_lib_esd_esd_close=no
34726fi
ac1cb8d3
VS
34727rm -f conftest.err conftest.$ac_objext \
34728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34729LIBS=$ac_check_lib_save_LIBS
34730fi
34731echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
34732echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
34733if test $ac_cv_lib_esd_esd_close = yes; then
34734
34735
34736for ac_header in esd.h
34737do
34738as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34739if eval "test \"\${$as_ac_Header+set}\" = set"; then
34740 echo "$as_me:$LINENO: checking for $ac_header" >&5
34741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34742if eval "test \"\${$as_ac_Header+set}\" = set"; then
34743 echo $ECHO_N "(cached) $ECHO_C" >&6
34744fi
34745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34747else
34748 # Is the header compilable?
34749echo "$as_me:$LINENO: checking $ac_header usability" >&5
34750echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34751cat >conftest.$ac_ext <<_ACEOF
34752/* confdefs.h. */
34753_ACEOF
34754cat confdefs.h >>conftest.$ac_ext
34755cat >>conftest.$ac_ext <<_ACEOF
34756/* end confdefs.h. */
34757$ac_includes_default
34758#include <$ac_header>
34759_ACEOF
34760rm -f conftest.$ac_objext
34761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34762 (eval $ac_compile) 2>conftest.er1
a848cd7e 34763 ac_status=$?
ac1cb8d3
VS
34764 grep -v '^ *+' conftest.er1 >conftest.err
34765 rm -f conftest.er1
34766 cat conftest.err >&5
a848cd7e
SC
34767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34768 (exit $ac_status); } &&
6ebeb4c7 34769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34771 (eval $ac_try) 2>&5
34772 ac_status=$?
34773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34774 (exit $ac_status); }; } &&
34775 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
34781 ac_header_compiler=yes
34782else
34783 echo "$as_me: failed program was:" >&5
34784sed 's/^/| /' conftest.$ac_ext >&5
34785
34786ac_header_compiler=no
34787fi
ac1cb8d3 34788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34789echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34790echo "${ECHO_T}$ac_header_compiler" >&6
34791
34792# Is the header present?
34793echo "$as_me:$LINENO: checking $ac_header presence" >&5
34794echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34795cat >conftest.$ac_ext <<_ACEOF
34796/* confdefs.h. */
34797_ACEOF
34798cat confdefs.h >>conftest.$ac_ext
34799cat >>conftest.$ac_ext <<_ACEOF
34800/* end confdefs.h. */
34801#include <$ac_header>
34802_ACEOF
34803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34805 ac_status=$?
34806 grep -v '^ *+' conftest.er1 >conftest.err
34807 rm -f conftest.er1
34808 cat conftest.err >&5
34809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34810 (exit $ac_status); } >/dev/null; then
34811 if test -s conftest.err; then
34812 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34814 else
34815 ac_cpp_err=
34816 fi
34817else
34818 ac_cpp_err=yes
34819fi
34820if test -z "$ac_cpp_err"; then
34821 ac_header_preproc=yes
34822else
34823 echo "$as_me: failed program was:" >&5
34824sed 's/^/| /' conftest.$ac_ext >&5
34825
34826 ac_header_preproc=no
34827fi
34828rm -f conftest.err conftest.$ac_ext
34829echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34830echo "${ECHO_T}$ac_header_preproc" >&6
34831
34832# So? What about this header?
ac1cb8d3
VS
34833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34834 yes:no: )
a848cd7e
SC
34835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34836echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34838echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34839 ac_header_preproc=yes
a848cd7e 34840 ;;
ac1cb8d3 34841 no:yes:* )
a848cd7e
SC
34842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34843echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34845echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34847echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34849echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34853echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34854 (
34855 cat <<\_ASBOX
ac1cb8d3
VS
34856## ----------------------------------------- ##
34857## Report this to wx-dev@lists.wxwidgets.org ##
34858## ----------------------------------------- ##
a848cd7e
SC
34859_ASBOX
34860 ) |
34861 sed "s/^/$as_me: WARNING: /" >&2
34862 ;;
34863esac
34864echo "$as_me:$LINENO: checking for $ac_header" >&5
34865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34866if eval "test \"\${$as_ac_Header+set}\" = set"; then
34867 echo $ECHO_N "(cached) $ECHO_C" >&6
34868else
ac1cb8d3 34869 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34870fi
34871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34872echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34873
34874fi
34875if test `eval echo '${'$as_ac_Header'}'` = yes; then
34876 cat >>confdefs.h <<_ACEOF
34877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34878_ACEOF
34879
34880 EXTRALIBS_ESD="-lesd"
34881
34882fi
34883
34884done
34885
34886
34887fi
34888
34889
34890
34891echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
34892echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
34893cat >conftest.$ac_ext <<_ACEOF
34894/* confdefs.h. */
34895_ACEOF
34896cat confdefs.h >>conftest.$ac_ext
34897cat >>conftest.$ac_ext <<_ACEOF
34898/* end confdefs.h. */
34899#ifdef __linux__
34900 #include <linux/cdrom.h>
34901 #else
34902 /* For Solaris */
34903 #include <sys/cdio.h>
34904 #endif
34905
34906int
34907main ()
34908{
34909struct cdrom_tocentry entry, old_entry;
34910 ;
34911 return 0;
34912}
34913_ACEOF
34914rm -f conftest.$ac_objext
34915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34916 (eval $ac_compile) 2>conftest.er1
a848cd7e 34917 ac_status=$?
ac1cb8d3
VS
34918 grep -v '^ *+' conftest.er1 >conftest.err
34919 rm -f conftest.er1
34920 cat conftest.err >&5
a848cd7e
SC
34921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34922 (exit $ac_status); } &&
6ebeb4c7 34923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34925 (eval $ac_try) 2>&5
34926 ac_status=$?
34927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928 (exit $ac_status); }; } &&
34929 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34931 (eval $ac_try) 2>&5
34932 ac_status=$?
34933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934 (exit $ac_status); }; }; then
34935 echo "$as_me:$LINENO: result: yes" >&5
34936echo "${ECHO_T}yes" >&6
34937 cat >>confdefs.h <<\_ACEOF
34938#define HAVE_KNOWN_CDROM_INTERFACE 1
34939_ACEOF
34940
34941else
34942 echo "$as_me: failed program was:" >&5
34943sed 's/^/| /' conftest.$ac_ext >&5
34944
34945echo "$as_me:$LINENO: result: no" >&5
34946echo "${ECHO_T}no" >&6
34947fi
ac1cb8d3 34948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34949
34950
34951cat >confcache <<\_ACEOF
34952# This file is a shell script that caches the results of configure
34953# tests run on this system so they can be shared between configure
34954# scripts and configure runs, see configure's option --config-cache.
34955# It is not useful on other systems. If it contains results you don't
34956# want to keep, you may remove or edit it.
34957#
34958# config.status only pays attention to the cache file if you give it
34959# the --recheck option to rerun configure.
34960#
34961# `ac_cv_env_foo' variables (set or unset) will be overridden when
34962# loading this file, other *unset* `ac_cv_foo' will be assigned the
34963# following values.
34964
34965_ACEOF
34966
34967# The following way of writing the cache mishandles newlines in values,
34968# but we know of no workaround that is simple, portable, and efficient.
34969# So, don't put newlines in cache variables' values.
34970# Ultrix sh set writes to stderr and can't be redirected directly,
34971# and sets the high bit in the cache file unless we assign to the vars.
34972{
34973 (set) 2>&1 |
34974 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34975 *ac_space=\ *)
34976 # `set' does not quote correctly, so add quotes (double-quote
34977 # substitution turns \\\\ into \\, and sed turns \\ into \).
34978 sed -n \
ac1cb8d3
VS
34979 "s/'/'\\\\''/g;
34980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
34981 ;;
34982 *)
34983 # `set' quotes correctly as required by POSIX, so do not add quotes.
34984 sed -n \
ac1cb8d3 34985 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
34986 ;;
34987 esac;
34988} |
34989 sed '
34990 t clear
34991 : clear
34992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34993 t end
34994 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34995 : end' >>confcache
34996if diff $cache_file confcache >/dev/null 2>&1; then :; else
34997 if test -w $cache_file; then
34998 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34999 cat confcache >$cache_file
35000 else
35001 echo "not updating unwritable cache $cache_file"
35002 fi
35003fi
35004rm -f confcache
35005
35006
35007CPP_MT_FLAG=
35008if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35009
35010
35011 THREADS_LINK=
35012 THREADS_CFLAGS=
35013
35014 if test "$wxUSE_THREADS" = "yes" ; then
35015 if test "$USE_BEOS" = 1; then
35016 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
35017echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
35018 wxUSE_THREADS="no"
35019 fi
35020 fi
35021
35022 if test "$wxUSE_THREADS" = "yes" ; then
35023
35024
35025 THREAD_OPTS="-pthread"
35026 case "${host}" in
35027 *-*-solaris2* | *-*-sunos4* )
35028 if test "x$GCC" = "xyes"; then
35029 THREAD_OPTS="-pthreads $THREAD_OPTS"
35030 else
35031 THREAD_OPTS="-mt $THREAD_OPTS"
35032 fi
35033 ;;
35034 *-*-freebsd*)
35035 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
35036 ;;
35037 *-*-darwin* | *-*-cygwin* )
35038 THREAD_OPTS=""
35039 ;;
35040 *-*-aix*)
35041 THREAD_OPTS="pthreads"
35042 ;;
35043 *-hp-hpux* )
00421666
MW
35044 if test "x$GCC" = "xyes"; then
35045 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
35046 THREAD_OPTS=""
35047 else
efdf6afe 35048 THREAD_OPTS=""
a848cd7e
SC
35049 fi
35050 ;;
35051
35052 *-*-irix* )
35053 if test "x$GCC" = "xyes"; then
35054 THREAD_OPTS=""
35055 fi
35056 ;;
35057
35058 *-*-*UnixWare*)
35059 if test "x$GCC" != "xyes"; then
35060 THREAD_OPTS="-Ethread"
35061 fi
35062 ;;
35063 esac
35064
35065 THREAD_OPTS="$THREAD_OPTS pthread none"
35066
35067 THREADS_OK=no
35068 for flag in $THREAD_OPTS; do
35069 case $flag in
35070 none)
35071 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
35072echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
35073 ;;
35074
35075 -*)
35076 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
35077echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
35078 THREADS_CFLAGS="$flag"
35079 ;;
35080
35081 *)
35082 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
35083echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
35084 THREADS_LINK="-l$flag"
35085 ;;
35086 esac
35087
35088 save_LIBS="$LIBS"
35089 save_CFLAGS="$CFLAGS"
35090 LIBS="$THREADS_LINK $LIBS"
35091 CFLAGS="$THREADS_CFLAGS $CFLAGS"
35092
35093 cat >conftest.$ac_ext <<_ACEOF
35094/* confdefs.h. */
35095_ACEOF
35096cat confdefs.h >>conftest.$ac_ext
35097cat >>conftest.$ac_ext <<_ACEOF
35098/* end confdefs.h. */
35099#include <pthread.h>
35100int
35101main ()
35102{
35103pthread_create(0,0,0,0);
35104 ;
35105 return 0;
35106}
35107_ACEOF
35108rm -f conftest.$ac_objext conftest$ac_exeext
35109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35110 (eval $ac_link) 2>conftest.er1
a848cd7e 35111 ac_status=$?
ac1cb8d3
VS
35112 grep -v '^ *+' conftest.er1 >conftest.err
35113 rm -f conftest.er1
35114 cat conftest.err >&5
a848cd7e
SC
35115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116 (exit $ac_status); } &&
6ebeb4c7 35117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35119 (eval $ac_try) 2>&5
35120 ac_status=$?
35121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35122 (exit $ac_status); }; } &&
35123 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35125 (eval $ac_try) 2>&5
35126 ac_status=$?
35127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35128 (exit $ac_status); }; }; then
35129 THREADS_OK=yes
35130else
35131 echo "$as_me: failed program was:" >&5
35132sed 's/^/| /' conftest.$ac_ext >&5
35133
35134fi
ac1cb8d3
VS
35135rm -f conftest.err conftest.$ac_objext \
35136 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35137
35138 LIBS="$save_LIBS"
35139 CFLAGS="$save_CFLAGS"
35140
35141 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
35142echo "${ECHO_T}$THREADS_OK" >&6
35143 if test "x$THREADS_OK" = "xyes"; then
35144 break;
35145 fi
35146
35147 THREADS_LINK=""
35148 THREADS_CFLAGS=""
35149 done
35150
35151 if test "x$THREADS_OK" != "xyes"; then
35152 wxUSE_THREADS=no
35153 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
35154echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
35155 else
35156 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
35157 LIBS="$THREADS_LINK $LIBS"
35158
35159 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
35160echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
35161 flag=no
35162 case "${host}" in
35163 *-aix*)
35164 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
35165 flag="-D_THREAD_SAFE"
35166 ;;
35167 *-freebsd*)
35168 flag="-D_THREAD_SAFE"
35169 ;;
35170 *-hp-hpux* )
35171 flag="-D_REENTRANT"
35172 if test "x$GCC" != "xyes"; then
35173 flag="$flag -D_RWSTD_MULTI_THREAD"
35174 fi
35175 ;;
35176 *solaris* | alpha*-osf*)
35177 flag="-D_REENTRANT"
35178 ;;
35179 esac
35180 echo "$as_me:$LINENO: result: ${flag}" >&5
35181echo "${ECHO_T}${flag}" >&6
35182 if test "x$flag" != xno; then
35183 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
35184 fi
35185
35186 if test "x$THREADS_CFLAGS" != "x"; then
35187 CFLAGS="$CFLAGS $THREADS_CFLAGS"
35188 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
35189 fi
35190 fi
35191 fi
35192
35193 if test "$wxUSE_THREADS" = "yes" ; then
35194
35195for ac_func in thr_setconcurrency
35196do
35197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35198echo "$as_me:$LINENO: checking for $ac_func" >&5
35199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35200if eval "test \"\${$as_ac_var+set}\" = set"; then
35201 echo $ECHO_N "(cached) $ECHO_C" >&6
35202else
35203 cat >conftest.$ac_ext <<_ACEOF
35204/* confdefs.h. */
35205_ACEOF
35206cat confdefs.h >>conftest.$ac_ext
35207cat >>conftest.$ac_ext <<_ACEOF
35208/* end confdefs.h. */
ac1cb8d3
VS
35209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35211#define $ac_func innocuous_$ac_func
35212
a848cd7e
SC
35213/* System header to define __stub macros and hopefully few prototypes,
35214 which can conflict with char $ac_func (); below.
35215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35216 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35217
a848cd7e
SC
35218#ifdef __STDC__
35219# include <limits.h>
35220#else
35221# include <assert.h>
35222#endif
ac1cb8d3
VS
35223
35224#undef $ac_func
35225
a848cd7e
SC
35226/* Override any gcc2 internal prototype to avoid an error. */
35227#ifdef __cplusplus
35228extern "C"
35229{
35230#endif
35231/* We use char because int might match the return type of a gcc2
35232 builtin and then its argument prototype would still apply. */
35233char $ac_func ();
35234/* The GNU C library defines this for functions which it implements
35235 to always fail with ENOSYS. Some functions are actually named
35236 something starting with __ and the normal name is an alias. */
35237#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35238choke me
35239#else
35240char (*f) () = $ac_func;
35241#endif
35242#ifdef __cplusplus
35243}
35244#endif
35245
35246int
35247main ()
35248{
35249return f != $ac_func;
35250 ;
35251 return 0;
35252}
35253_ACEOF
35254rm -f conftest.$ac_objext conftest$ac_exeext
35255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35256 (eval $ac_link) 2>conftest.er1
a848cd7e 35257 ac_status=$?
ac1cb8d3
VS
35258 grep -v '^ *+' conftest.er1 >conftest.err
35259 rm -f conftest.er1
35260 cat conftest.err >&5
a848cd7e
SC
35261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262 (exit $ac_status); } &&
6ebeb4c7 35263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35265 (eval $ac_try) 2>&5
35266 ac_status=$?
35267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35268 (exit $ac_status); }; } &&
35269 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35271 (eval $ac_try) 2>&5
35272 ac_status=$?
35273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35274 (exit $ac_status); }; }; then
35275 eval "$as_ac_var=yes"
35276else
35277 echo "$as_me: failed program was:" >&5
35278sed 's/^/| /' conftest.$ac_ext >&5
35279
35280eval "$as_ac_var=no"
35281fi
ac1cb8d3
VS
35282rm -f conftest.err conftest.$ac_objext \
35283 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35284fi
35285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35286echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35287if test `eval echo '${'$as_ac_var'}'` = yes; then
35288 cat >>confdefs.h <<_ACEOF
35289#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35290_ACEOF
35291
35292fi
35293done
35294
35295
6ebeb4c7
VZ
35296 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
35297echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
35298if test "${wx_cv_func_pthread_cleanup+set}" = set; then
35299 echo $ECHO_N "(cached) $ECHO_C" >&6
35300else
35301
35302 cat >conftest.$ac_ext <<_ACEOF
35303/* confdefs.h. */
35304_ACEOF
35305cat confdefs.h >>conftest.$ac_ext
35306cat >>conftest.$ac_ext <<_ACEOF
35307/* end confdefs.h. */
35308#include <pthread.h>
35309 void ThreadCleanupFunc(void *p);
35310
35311int
35312main ()
35313{
35314
35315 void *p;
35316 pthread_cleanup_push(ThreadCleanupFunc, p);
35317 pthread_cleanup_pop(0);
35318
35319 ;
35320 return 0;
35321}
35322_ACEOF
35323rm -f conftest.$ac_objext
35324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35325 (eval $ac_compile) 2>conftest.er1
35326 ac_status=$?
35327 grep -v '^ *+' conftest.er1 >conftest.err
35328 rm -f conftest.er1
35329 cat conftest.err >&5
35330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35331 (exit $ac_status); } &&
35332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35334 (eval $ac_try) 2>&5
35335 ac_status=$?
35336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337 (exit $ac_status); }; } &&
35338 { ac_try='test -s conftest.$ac_objext'
35339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35340 (eval $ac_try) 2>&5
35341 ac_status=$?
35342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343 (exit $ac_status); }; }; then
35344
35345 wx_cv_func_pthread_cleanup=yes
35346
35347else
35348 echo "$as_me: failed program was:" >&5
35349sed 's/^/| /' conftest.$ac_ext >&5
35350
35351
35352 wx_cv_func_pthread_cleanup=no
35353
35354
35355fi
35356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35357
35358fi
35359echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
35360echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
35361 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
35362 cat >>confdefs.h <<\_ACEOF
35363#define wxHAVE_PTHREAD_CLEANUP 1
35364_ACEOF
35365
35366 fi
35367
a848cd7e
SC
35368
35369for ac_header in sched.h
35370do
35371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35372if eval "test \"\${$as_ac_Header+set}\" = set"; then
35373 echo "$as_me:$LINENO: checking for $ac_header" >&5
35374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35375if eval "test \"\${$as_ac_Header+set}\" = set"; then
35376 echo $ECHO_N "(cached) $ECHO_C" >&6
35377fi
35378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35380else
35381 # Is the header compilable?
35382echo "$as_me:$LINENO: checking $ac_header usability" >&5
35383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35384cat >conftest.$ac_ext <<_ACEOF
35385/* confdefs.h. */
35386_ACEOF
35387cat confdefs.h >>conftest.$ac_ext
35388cat >>conftest.$ac_ext <<_ACEOF
35389/* end confdefs.h. */
35390$ac_includes_default
35391#include <$ac_header>
35392_ACEOF
35393rm -f conftest.$ac_objext
35394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35395 (eval $ac_compile) 2>conftest.er1
a848cd7e 35396 ac_status=$?
ac1cb8d3
VS
35397 grep -v '^ *+' conftest.er1 >conftest.err
35398 rm -f conftest.er1
35399 cat conftest.err >&5
a848cd7e
SC
35400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35401 (exit $ac_status); } &&
6ebeb4c7 35402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35404 (eval $ac_try) 2>&5
35405 ac_status=$?
35406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407 (exit $ac_status); }; } &&
35408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35410 (eval $ac_try) 2>&5
35411 ac_status=$?
35412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35413 (exit $ac_status); }; }; then
35414 ac_header_compiler=yes
35415else
35416 echo "$as_me: failed program was:" >&5
35417sed 's/^/| /' conftest.$ac_ext >&5
35418
35419ac_header_compiler=no
35420fi
ac1cb8d3 35421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35422echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35423echo "${ECHO_T}$ac_header_compiler" >&6
35424
35425# Is the header present?
35426echo "$as_me:$LINENO: checking $ac_header presence" >&5
35427echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35428cat >conftest.$ac_ext <<_ACEOF
35429/* confdefs.h. */
35430_ACEOF
35431cat confdefs.h >>conftest.$ac_ext
35432cat >>conftest.$ac_ext <<_ACEOF
35433/* end confdefs.h. */
35434#include <$ac_header>
35435_ACEOF
35436if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35438 ac_status=$?
35439 grep -v '^ *+' conftest.er1 >conftest.err
35440 rm -f conftest.er1
35441 cat conftest.err >&5
35442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35443 (exit $ac_status); } >/dev/null; then
35444 if test -s conftest.err; then
35445 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35447 else
35448 ac_cpp_err=
35449 fi
35450else
35451 ac_cpp_err=yes
35452fi
35453if test -z "$ac_cpp_err"; then
35454 ac_header_preproc=yes
35455else
35456 echo "$as_me: failed program was:" >&5
35457sed 's/^/| /' conftest.$ac_ext >&5
35458
35459 ac_header_preproc=no
35460fi
35461rm -f conftest.err conftest.$ac_ext
35462echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35463echo "${ECHO_T}$ac_header_preproc" >&6
35464
35465# So? What about this header?
ac1cb8d3
VS
35466case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35467 yes:no: )
a848cd7e
SC
35468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35469echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35471echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35472 ac_header_preproc=yes
a848cd7e 35473 ;;
ac1cb8d3 35474 no:yes:* )
a848cd7e
SC
35475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35476echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35478echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35480echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35482echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35484echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35486echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35487 (
35488 cat <<\_ASBOX
ac1cb8d3
VS
35489## ----------------------------------------- ##
35490## Report this to wx-dev@lists.wxwidgets.org ##
35491## ----------------------------------------- ##
a848cd7e
SC
35492_ASBOX
35493 ) |
35494 sed "s/^/$as_me: WARNING: /" >&2
35495 ;;
35496esac
35497echo "$as_me:$LINENO: checking for $ac_header" >&5
35498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35499if eval "test \"\${$as_ac_Header+set}\" = set"; then
35500 echo $ECHO_N "(cached) $ECHO_C" >&6
35501else
ac1cb8d3 35502 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35503fi
35504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35505echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35506
35507fi
35508if test `eval echo '${'$as_ac_Header'}'` = yes; then
35509 cat >>confdefs.h <<_ACEOF
35510#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35511_ACEOF
35512
35513fi
35514
35515done
35516
35517 if test "$ac_cv_header_sched_h" = "yes"; then
35518 echo "$as_me:$LINENO: checking for sched_yield" >&5
35519echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
35520if test "${ac_cv_func_sched_yield+set}" = set; then
35521 echo $ECHO_N "(cached) $ECHO_C" >&6
35522else
35523 cat >conftest.$ac_ext <<_ACEOF
35524/* confdefs.h. */
35525_ACEOF
35526cat confdefs.h >>conftest.$ac_ext
35527cat >>conftest.$ac_ext <<_ACEOF
35528/* end confdefs.h. */
ac1cb8d3
VS
35529/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
35530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35531#define sched_yield innocuous_sched_yield
35532
a848cd7e
SC
35533/* System header to define __stub macros and hopefully few prototypes,
35534 which can conflict with char sched_yield (); below.
35535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35536 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35537
a848cd7e
SC
35538#ifdef __STDC__
35539# include <limits.h>
35540#else
35541# include <assert.h>
35542#endif
ac1cb8d3
VS
35543
35544#undef sched_yield
35545
a848cd7e
SC
35546/* Override any gcc2 internal prototype to avoid an error. */
35547#ifdef __cplusplus
35548extern "C"
35549{
35550#endif
35551/* We use char because int might match the return type of a gcc2
35552 builtin and then its argument prototype would still apply. */
35553char sched_yield ();
35554/* The GNU C library defines this for functions which it implements
35555 to always fail with ENOSYS. Some functions are actually named
35556 something starting with __ and the normal name is an alias. */
35557#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
35558choke me
35559#else
35560char (*f) () = sched_yield;
35561#endif
35562#ifdef __cplusplus
35563}
35564#endif
35565
35566int
35567main ()
35568{
35569return f != sched_yield;
35570 ;
35571 return 0;
35572}
35573_ACEOF
35574rm -f conftest.$ac_objext conftest$ac_exeext
35575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35576 (eval $ac_link) 2>conftest.er1
a848cd7e 35577 ac_status=$?
ac1cb8d3
VS
35578 grep -v '^ *+' conftest.er1 >conftest.err
35579 rm -f conftest.er1
35580 cat conftest.err >&5
a848cd7e
SC
35581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35582 (exit $ac_status); } &&
6ebeb4c7 35583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35585 (eval $ac_try) 2>&5
35586 ac_status=$?
35587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35588 (exit $ac_status); }; } &&
35589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35591 (eval $ac_try) 2>&5
35592 ac_status=$?
35593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35594 (exit $ac_status); }; }; then
35595 ac_cv_func_sched_yield=yes
35596else
35597 echo "$as_me: failed program was:" >&5
35598sed 's/^/| /' conftest.$ac_ext >&5
35599
35600ac_cv_func_sched_yield=no
35601fi
ac1cb8d3
VS
35602rm -f conftest.err conftest.$ac_objext \
35603 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35604fi
35605echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
35606echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
35607if test $ac_cv_func_sched_yield = yes; then
35608 cat >>confdefs.h <<\_ACEOF
35609#define HAVE_SCHED_YIELD 1
35610_ACEOF
35611
35612else
35613
35614 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
35615echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
35616if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
35617 echo $ECHO_N "(cached) $ECHO_C" >&6
35618else
35619 ac_check_lib_save_LIBS=$LIBS
35620LIBS="-lposix4 $LIBS"
35621cat >conftest.$ac_ext <<_ACEOF
35622/* confdefs.h. */
35623_ACEOF
35624cat confdefs.h >>conftest.$ac_ext
35625cat >>conftest.$ac_ext <<_ACEOF
35626/* end confdefs.h. */
35627
35628/* Override any gcc2 internal prototype to avoid an error. */
35629#ifdef __cplusplus
35630extern "C"
35631#endif
35632/* We use char because int might match the return type of a gcc2
35633 builtin and then its argument prototype would still apply. */
35634char sched_yield ();
35635int
35636main ()
35637{
35638sched_yield ();
35639 ;
35640 return 0;
35641}
35642_ACEOF
35643rm -f conftest.$ac_objext conftest$ac_exeext
35644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35645 (eval $ac_link) 2>conftest.er1
a848cd7e 35646 ac_status=$?
ac1cb8d3
VS
35647 grep -v '^ *+' conftest.er1 >conftest.err
35648 rm -f conftest.er1
35649 cat conftest.err >&5
a848cd7e
SC
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); } &&
6ebeb4c7 35652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35654 (eval $ac_try) 2>&5
35655 ac_status=$?
35656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35657 (exit $ac_status); }; } &&
35658 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35660 (eval $ac_try) 2>&5
35661 ac_status=$?
35662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35663 (exit $ac_status); }; }; then
35664 ac_cv_lib_posix4_sched_yield=yes
35665else
35666 echo "$as_me: failed program was:" >&5
35667sed 's/^/| /' conftest.$ac_ext >&5
35668
35669ac_cv_lib_posix4_sched_yield=no
35670fi
ac1cb8d3
VS
35671rm -f conftest.err conftest.$ac_objext \
35672 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35673LIBS=$ac_check_lib_save_LIBS
35674fi
35675echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
35676echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
35677if test $ac_cv_lib_posix4_sched_yield = yes; then
35678 cat >>confdefs.h <<\_ACEOF
35679#define HAVE_SCHED_YIELD 1
35680_ACEOF
35681 POSIX4_LINK=" -lposix4"
35682else
35683 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
35684echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
35685
35686fi
35687
35688
35689
35690fi
35691
35692 fi
35693
35694 HAVE_PRIOR_FUNCS=0
35695 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
35696echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
35697if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
35698 echo $ECHO_N "(cached) $ECHO_C" >&6
35699else
35700 cat >conftest.$ac_ext <<_ACEOF
35701/* confdefs.h. */
35702_ACEOF
35703cat confdefs.h >>conftest.$ac_ext
35704cat >>conftest.$ac_ext <<_ACEOF
35705/* end confdefs.h. */
ac1cb8d3
VS
35706/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
35707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35708#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
35709
a848cd7e
SC
35710/* System header to define __stub macros and hopefully few prototypes,
35711 which can conflict with char pthread_attr_getschedpolicy (); below.
35712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35713 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35714
a848cd7e
SC
35715#ifdef __STDC__
35716# include <limits.h>
35717#else
35718# include <assert.h>
35719#endif
ac1cb8d3
VS
35720
35721#undef pthread_attr_getschedpolicy
35722
a848cd7e
SC
35723/* Override any gcc2 internal prototype to avoid an error. */
35724#ifdef __cplusplus
35725extern "C"
35726{
35727#endif
35728/* We use char because int might match the return type of a gcc2
35729 builtin and then its argument prototype would still apply. */
35730char pthread_attr_getschedpolicy ();
35731/* The GNU C library defines this for functions which it implements
35732 to always fail with ENOSYS. Some functions are actually named
35733 something starting with __ and the normal name is an alias. */
35734#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
35735choke me
35736#else
35737char (*f) () = pthread_attr_getschedpolicy;
35738#endif
35739#ifdef __cplusplus
35740}
35741#endif
35742
35743int
35744main ()
35745{
35746return f != pthread_attr_getschedpolicy;
35747 ;
35748 return 0;
35749}
35750_ACEOF
35751rm -f conftest.$ac_objext conftest$ac_exeext
35752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35753 (eval $ac_link) 2>conftest.er1
a848cd7e 35754 ac_status=$?
ac1cb8d3
VS
35755 grep -v '^ *+' conftest.er1 >conftest.err
35756 rm -f conftest.er1
35757 cat conftest.err >&5
a848cd7e
SC
35758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759 (exit $ac_status); } &&
6ebeb4c7 35760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35762 (eval $ac_try) 2>&5
35763 ac_status=$?
35764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35765 (exit $ac_status); }; } &&
35766 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35768 (eval $ac_try) 2>&5
35769 ac_status=$?
35770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771 (exit $ac_status); }; }; then
35772 ac_cv_func_pthread_attr_getschedpolicy=yes
35773else
35774 echo "$as_me: failed program was:" >&5
35775sed 's/^/| /' conftest.$ac_ext >&5
35776
35777ac_cv_func_pthread_attr_getschedpolicy=no
35778fi
ac1cb8d3
VS
35779rm -f conftest.err conftest.$ac_objext \
35780 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35781fi
35782echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
35783echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
35784if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
35785 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
35786echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
35787if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
35788 echo $ECHO_N "(cached) $ECHO_C" >&6
35789else
35790 cat >conftest.$ac_ext <<_ACEOF
35791/* confdefs.h. */
35792_ACEOF
35793cat confdefs.h >>conftest.$ac_ext
35794cat >>conftest.$ac_ext <<_ACEOF
35795/* end confdefs.h. */
ac1cb8d3
VS
35796/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
35797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35798#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
35799
a848cd7e
SC
35800/* System header to define __stub macros and hopefully few prototypes,
35801 which can conflict with char pthread_attr_setschedparam (); below.
35802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35803 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35804
a848cd7e
SC
35805#ifdef __STDC__
35806# include <limits.h>
35807#else
35808# include <assert.h>
35809#endif
ac1cb8d3
VS
35810
35811#undef pthread_attr_setschedparam
35812
a848cd7e
SC
35813/* Override any gcc2 internal prototype to avoid an error. */
35814#ifdef __cplusplus
35815extern "C"
35816{
35817#endif
35818/* We use char because int might match the return type of a gcc2
35819 builtin and then its argument prototype would still apply. */
35820char pthread_attr_setschedparam ();
35821/* The GNU C library defines this for functions which it implements
35822 to always fail with ENOSYS. Some functions are actually named
35823 something starting with __ and the normal name is an alias. */
35824#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
35825choke me
35826#else
35827char (*f) () = pthread_attr_setschedparam;
35828#endif
35829#ifdef __cplusplus
35830}
35831#endif
35832
35833int
35834main ()
35835{
35836return f != pthread_attr_setschedparam;
35837 ;
35838 return 0;
35839}
35840_ACEOF
35841rm -f conftest.$ac_objext conftest$ac_exeext
35842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35843 (eval $ac_link) 2>conftest.er1
a848cd7e 35844 ac_status=$?
ac1cb8d3
VS
35845 grep -v '^ *+' conftest.er1 >conftest.err
35846 rm -f conftest.er1
35847 cat conftest.err >&5
a848cd7e
SC
35848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35849 (exit $ac_status); } &&
6ebeb4c7 35850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35852 (eval $ac_try) 2>&5
35853 ac_status=$?
35854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855 (exit $ac_status); }; } &&
35856 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35858 (eval $ac_try) 2>&5
35859 ac_status=$?
35860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35861 (exit $ac_status); }; }; then
35862 ac_cv_func_pthread_attr_setschedparam=yes
35863else
35864 echo "$as_me: failed program was:" >&5
35865sed 's/^/| /' conftest.$ac_ext >&5
35866
35867ac_cv_func_pthread_attr_setschedparam=no
35868fi
ac1cb8d3
VS
35869rm -f conftest.err conftest.$ac_objext \
35870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35871fi
35872echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
35873echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
35874if test $ac_cv_func_pthread_attr_setschedparam = yes; then
35875 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
35876echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
35877if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
35878 echo $ECHO_N "(cached) $ECHO_C" >&6
35879else
35880 cat >conftest.$ac_ext <<_ACEOF
35881/* confdefs.h. */
35882_ACEOF
35883cat confdefs.h >>conftest.$ac_ext
35884cat >>conftest.$ac_ext <<_ACEOF
35885/* end confdefs.h. */
ac1cb8d3
VS
35886/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
35887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35888#define sched_get_priority_max innocuous_sched_get_priority_max
35889
a848cd7e
SC
35890/* System header to define __stub macros and hopefully few prototypes,
35891 which can conflict with char sched_get_priority_max (); below.
35892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35893 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35894
a848cd7e
SC
35895#ifdef __STDC__
35896# include <limits.h>
35897#else
35898# include <assert.h>
35899#endif
ac1cb8d3
VS
35900
35901#undef sched_get_priority_max
35902
a848cd7e
SC
35903/* Override any gcc2 internal prototype to avoid an error. */
35904#ifdef __cplusplus
35905extern "C"
35906{
35907#endif
35908/* We use char because int might match the return type of a gcc2
35909 builtin and then its argument prototype would still apply. */
35910char sched_get_priority_max ();
35911/* The GNU C library defines this for functions which it implements
35912 to always fail with ENOSYS. Some functions are actually named
35913 something starting with __ and the normal name is an alias. */
35914#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
35915choke me
35916#else
35917char (*f) () = sched_get_priority_max;
35918#endif
35919#ifdef __cplusplus
35920}
35921#endif
35922
35923int
35924main ()
35925{
35926return f != sched_get_priority_max;
35927 ;
35928 return 0;
35929}
35930_ACEOF
35931rm -f conftest.$ac_objext conftest$ac_exeext
35932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35933 (eval $ac_link) 2>conftest.er1
a848cd7e 35934 ac_status=$?
ac1cb8d3
VS
35935 grep -v '^ *+' conftest.er1 >conftest.err
35936 rm -f conftest.er1
35937 cat conftest.err >&5
a848cd7e
SC
35938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35939 (exit $ac_status); } &&
6ebeb4c7 35940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35942 (eval $ac_try) 2>&5
35943 ac_status=$?
35944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35945 (exit $ac_status); }; } &&
35946 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35948 (eval $ac_try) 2>&5
35949 ac_status=$?
35950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35951 (exit $ac_status); }; }; then
35952 ac_cv_func_sched_get_priority_max=yes
35953else
35954 echo "$as_me: failed program was:" >&5
35955sed 's/^/| /' conftest.$ac_ext >&5
35956
35957ac_cv_func_sched_get_priority_max=no
35958fi
ac1cb8d3
VS
35959rm -f conftest.err conftest.$ac_objext \
35960 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35961fi
35962echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
35963echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
35964if test $ac_cv_func_sched_get_priority_max = yes; then
35965 HAVE_PRIOR_FUNCS=1
35966else
35967 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
35968echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
35969if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
35970 echo $ECHO_N "(cached) $ECHO_C" >&6
35971else
35972 ac_check_lib_save_LIBS=$LIBS
35973LIBS="-lposix4 $LIBS"
35974cat >conftest.$ac_ext <<_ACEOF
35975/* confdefs.h. */
35976_ACEOF
35977cat confdefs.h >>conftest.$ac_ext
35978cat >>conftest.$ac_ext <<_ACEOF
35979/* end confdefs.h. */
35980
35981/* Override any gcc2 internal prototype to avoid an error. */
35982#ifdef __cplusplus
35983extern "C"
35984#endif
35985/* We use char because int might match the return type of a gcc2
35986 builtin and then its argument prototype would still apply. */
35987char sched_get_priority_max ();
35988int
35989main ()
35990{
35991sched_get_priority_max ();
35992 ;
35993 return 0;
35994}
35995_ACEOF
35996rm -f conftest.$ac_objext conftest$ac_exeext
35997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35998 (eval $ac_link) 2>conftest.er1
a848cd7e 35999 ac_status=$?
ac1cb8d3
VS
36000 grep -v '^ *+' conftest.er1 >conftest.err
36001 rm -f conftest.er1
36002 cat conftest.err >&5
a848cd7e
SC
36003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36004 (exit $ac_status); } &&
6ebeb4c7 36005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36007 (eval $ac_try) 2>&5
36008 ac_status=$?
36009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36010 (exit $ac_status); }; } &&
36011 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36013 (eval $ac_try) 2>&5
36014 ac_status=$?
36015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36016 (exit $ac_status); }; }; then
36017 ac_cv_lib_posix4_sched_get_priority_max=yes
36018else
36019 echo "$as_me: failed program was:" >&5
36020sed 's/^/| /' conftest.$ac_ext >&5
36021
36022ac_cv_lib_posix4_sched_get_priority_max=no
36023fi
ac1cb8d3
VS
36024rm -f conftest.err conftest.$ac_objext \
36025 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36026LIBS=$ac_check_lib_save_LIBS
36027fi
36028echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
36029echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
36030if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
36031
36032 HAVE_PRIOR_FUNCS=1
36033 POSIX4_LINK=" -lposix4"
36034
36035fi
36036
36037
36038fi
36039
36040
36041fi
36042
36043
36044fi
36045
36046
36047 if test "$HAVE_PRIOR_FUNCS" = 1; then
36048 cat >>confdefs.h <<\_ACEOF
36049#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
36050_ACEOF
36051
36052 else
36053 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
36054echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
36055 fi
36056
36057 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
36058echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
36059if test "${ac_cv_func_pthread_cancel+set}" = set; then
36060 echo $ECHO_N "(cached) $ECHO_C" >&6
36061else
36062 cat >conftest.$ac_ext <<_ACEOF
36063/* confdefs.h. */
36064_ACEOF
36065cat confdefs.h >>conftest.$ac_ext
36066cat >>conftest.$ac_ext <<_ACEOF
36067/* end confdefs.h. */
ac1cb8d3
VS
36068/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
36069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36070#define pthread_cancel innocuous_pthread_cancel
36071
a848cd7e
SC
36072/* System header to define __stub macros and hopefully few prototypes,
36073 which can conflict with char pthread_cancel (); below.
36074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36075 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36076
a848cd7e
SC
36077#ifdef __STDC__
36078# include <limits.h>
36079#else
36080# include <assert.h>
36081#endif
ac1cb8d3
VS
36082
36083#undef pthread_cancel
36084
a848cd7e
SC
36085/* Override any gcc2 internal prototype to avoid an error. */
36086#ifdef __cplusplus
36087extern "C"
36088{
36089#endif
36090/* We use char because int might match the return type of a gcc2
36091 builtin and then its argument prototype would still apply. */
36092char pthread_cancel ();
36093/* The GNU C library defines this for functions which it implements
36094 to always fail with ENOSYS. Some functions are actually named
36095 something starting with __ and the normal name is an alias. */
36096#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
36097choke me
36098#else
36099char (*f) () = pthread_cancel;
36100#endif
36101#ifdef __cplusplus
36102}
36103#endif
36104
36105int
36106main ()
36107{
36108return f != pthread_cancel;
36109 ;
36110 return 0;
36111}
36112_ACEOF
36113rm -f conftest.$ac_objext conftest$ac_exeext
36114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36115 (eval $ac_link) 2>conftest.er1
a848cd7e 36116 ac_status=$?
ac1cb8d3
VS
36117 grep -v '^ *+' conftest.er1 >conftest.err
36118 rm -f conftest.er1
36119 cat conftest.err >&5
a848cd7e
SC
36120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36121 (exit $ac_status); } &&
6ebeb4c7 36122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36124 (eval $ac_try) 2>&5
36125 ac_status=$?
36126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36127 (exit $ac_status); }; } &&
36128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36130 (eval $ac_try) 2>&5
36131 ac_status=$?
36132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36133 (exit $ac_status); }; }; then
36134 ac_cv_func_pthread_cancel=yes
36135else
36136 echo "$as_me: failed program was:" >&5
36137sed 's/^/| /' conftest.$ac_ext >&5
36138
36139ac_cv_func_pthread_cancel=no
36140fi
ac1cb8d3
VS
36141rm -f conftest.err conftest.$ac_objext \
36142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36143fi
36144echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
36145echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
36146if test $ac_cv_func_pthread_cancel = yes; then
36147 cat >>confdefs.h <<\_ACEOF
36148#define HAVE_PTHREAD_CANCEL 1
36149_ACEOF
36150
36151else
36152 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
36153echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
36154fi
36155
36156
abc736fd
MW
36157 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
36158echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
36159if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
36160 echo $ECHO_N "(cached) $ECHO_C" >&6
36161else
36162 cat >conftest.$ac_ext <<_ACEOF
36163/* confdefs.h. */
36164_ACEOF
36165cat confdefs.h >>conftest.$ac_ext
36166cat >>conftest.$ac_ext <<_ACEOF
36167/* end confdefs.h. */
36168/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
36169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36170#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
36171
36172/* System header to define __stub macros and hopefully few prototypes,
36173 which can conflict with char pthread_attr_setstacksize (); below.
36174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36175 <limits.h> exists even on freestanding compilers. */
36176
36177#ifdef __STDC__
36178# include <limits.h>
36179#else
36180# include <assert.h>
36181#endif
36182
36183#undef pthread_attr_setstacksize
36184
36185/* Override any gcc2 internal prototype to avoid an error. */
36186#ifdef __cplusplus
36187extern "C"
36188{
36189#endif
36190/* We use char because int might match the return type of a gcc2
36191 builtin and then its argument prototype would still apply. */
36192char pthread_attr_setstacksize ();
36193/* The GNU C library defines this for functions which it implements
36194 to always fail with ENOSYS. Some functions are actually named
36195 something starting with __ and the normal name is an alias. */
36196#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
36197choke me
36198#else
36199char (*f) () = pthread_attr_setstacksize;
36200#endif
36201#ifdef __cplusplus
36202}
36203#endif
36204
36205int
36206main ()
36207{
36208return f != pthread_attr_setstacksize;
36209 ;
36210 return 0;
36211}
36212_ACEOF
36213rm -f conftest.$ac_objext conftest$ac_exeext
36214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36215 (eval $ac_link) 2>conftest.er1
36216 ac_status=$?
36217 grep -v '^ *+' conftest.er1 >conftest.err
36218 rm -f conftest.er1
36219 cat conftest.err >&5
36220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36221 (exit $ac_status); } &&
6ebeb4c7 36222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
36223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36224 (eval $ac_try) 2>&5
36225 ac_status=$?
36226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36227 (exit $ac_status); }; } &&
36228 { ac_try='test -s conftest$ac_exeext'
36229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36230 (eval $ac_try) 2>&5
36231 ac_status=$?
36232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36233 (exit $ac_status); }; }; then
36234 ac_cv_func_pthread_attr_setstacksize=yes
36235else
36236 echo "$as_me: failed program was:" >&5
36237sed 's/^/| /' conftest.$ac_ext >&5
36238
36239ac_cv_func_pthread_attr_setstacksize=no
36240fi
36241rm -f conftest.err conftest.$ac_objext \
36242 conftest$ac_exeext conftest.$ac_ext
36243fi
36244echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
36245echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
36246if test $ac_cv_func_pthread_attr_setstacksize = yes; then
36247 cat >>confdefs.h <<\_ACEOF
36248#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
36249_ACEOF
36250
36251fi
36252
a848cd7e
SC
36253
36254
36255 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
36256echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
36257if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
36258 echo $ECHO_N "(cached) $ECHO_C" >&6
36259else
36260
36261 cat >conftest.$ac_ext <<_ACEOF
36262/* confdefs.h. */
36263_ACEOF
36264cat confdefs.h >>conftest.$ac_ext
36265cat >>conftest.$ac_ext <<_ACEOF
36266/* end confdefs.h. */
36267#include <pthread.h>
36268int
36269main ()
36270{
36271
36272 pthread_mutexattr_t attr;
36273 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
36274
36275 ;
36276 return 0;
36277}
36278_ACEOF
36279rm -f conftest.$ac_objext
36280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36281 (eval $ac_compile) 2>conftest.er1
a848cd7e 36282 ac_status=$?
ac1cb8d3
VS
36283 grep -v '^ *+' conftest.er1 >conftest.err
36284 rm -f conftest.er1
36285 cat conftest.err >&5
a848cd7e
SC
36286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36287 (exit $ac_status); } &&
6ebeb4c7 36288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36290 (eval $ac_try) 2>&5
36291 ac_status=$?
36292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36293 (exit $ac_status); }; } &&
36294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36296 (eval $ac_try) 2>&5
36297 ac_status=$?
36298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36299 (exit $ac_status); }; }; then
36300
36301 wx_cv_type_pthread_mutexattr_t=yes
36302
36303else
36304 echo "$as_me: failed program was:" >&5
36305sed 's/^/| /' conftest.$ac_ext >&5
36306
36307
36308 wx_cv_type_pthread_mutexattr_t=no
36309
36310
36311fi
ac1cb8d3 36312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36313
36314fi
36315echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
36316echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
36317
36318 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
36319 cat >>confdefs.h <<\_ACEOF
36320#define HAVE_PTHREAD_MUTEXATTR_T 1
36321_ACEOF
36322
36323 else
36324 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
36325echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
36326if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
36327 echo $ECHO_N "(cached) $ECHO_C" >&6
36328else
36329
36330 cat >conftest.$ac_ext <<_ACEOF
36331/* confdefs.h. */
36332_ACEOF
36333cat confdefs.h >>conftest.$ac_ext
36334cat >>conftest.$ac_ext <<_ACEOF
36335/* end confdefs.h. */
36336#include <pthread.h>
36337int
36338main ()
36339{
36340
36341 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
36342
36343 ;
36344 return 0;
36345}
36346_ACEOF
36347rm -f conftest.$ac_objext
36348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36349 (eval $ac_compile) 2>conftest.er1
a848cd7e 36350 ac_status=$?
ac1cb8d3
VS
36351 grep -v '^ *+' conftest.er1 >conftest.err
36352 rm -f conftest.er1
36353 cat conftest.err >&5
a848cd7e
SC
36354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36355 (exit $ac_status); } &&
6ebeb4c7 36356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36358 (eval $ac_try) 2>&5
36359 ac_status=$?
36360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36361 (exit $ac_status); }; } &&
36362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36364 (eval $ac_try) 2>&5
36365 ac_status=$?
36366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36367 (exit $ac_status); }; }; then
36368
36369 wx_cv_type_pthread_rec_mutex_init=yes
36370
36371else
36372 echo "$as_me: failed program was:" >&5
36373sed 's/^/| /' conftest.$ac_ext >&5
36374
36375
36376 wx_cv_type_pthread_rec_mutex_init=no
36377
36378
36379fi
ac1cb8d3 36380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36381
36382fi
36383echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
36384echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
36385 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
36386 cat >>confdefs.h <<\_ACEOF
36387#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
36388_ACEOF
36389
36390 else
36391 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
36392echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
36393 fi
36394 fi
36395 fi
36396
36397else
36398 if test "$wxUSE_THREADS" = "yes" ; then
36399 case "${host}" in
36400 *-*-mingw32* )
36401 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
36402echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
36403if test "${wx_cv_cflags_mthread+set}" = set; then
36404 echo $ECHO_N "(cached) $ECHO_C" >&6
36405else
36406
36407 CFLAGS_OLD="$CFLAGS"
36408 CFLAGS="$CFLAGS -mthreads"
36409 cat >conftest.$ac_ext <<_ACEOF
36410/* confdefs.h. */
36411_ACEOF
36412cat confdefs.h >>conftest.$ac_ext
36413cat >>conftest.$ac_ext <<_ACEOF
36414/* end confdefs.h. */
36415
36416int
36417main ()
36418{
36419
36420 ;
36421 return 0;
36422}
36423_ACEOF
36424rm -f conftest.$ac_objext
36425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36426 (eval $ac_compile) 2>conftest.er1
a848cd7e 36427 ac_status=$?
ac1cb8d3
VS
36428 grep -v '^ *+' conftest.er1 >conftest.err
36429 rm -f conftest.er1
36430 cat conftest.err >&5
a848cd7e
SC
36431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36432 (exit $ac_status); } &&
6ebeb4c7 36433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36435 (eval $ac_try) 2>&5
36436 ac_status=$?
36437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36438 (exit $ac_status); }; } &&
36439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36441 (eval $ac_try) 2>&5
36442 ac_status=$?
36443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36444 (exit $ac_status); }; }; then
36445 wx_cv_cflags_mthread=yes
36446else
36447 echo "$as_me: failed program was:" >&5
36448sed 's/^/| /' conftest.$ac_ext >&5
36449
36450wx_cv_cflags_mthread=no
36451
36452fi
ac1cb8d3 36453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36454
36455
36456fi
36457echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
36458echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
36459
36460 if test "$wx_cv_cflags_mthread" = "yes"; then
36461 CXXFLAGS="$CXXFLAGS -mthreads"
36462 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
36463 LDFLAGS="$LDFLAGS -mthreads"
36464 else
36465 CFLAGS="$CFLAGS_OLD"
36466 fi
36467 ;;
36468 *-pc-os2*emx )
36469 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
36470 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
36471 LDFLAGS="$LDFLAGS -Zmt"
36472 ;;
36473 esac
36474 fi
36475fi
36476
36477if test "$wxUSE_THREADS" = "yes"; then
36478 cat >>confdefs.h <<\_ACEOF
36479#define wxUSE_THREADS 1
36480_ACEOF
36481
36482
36483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
36484else
36485 if test "$ac_cv_func_strtok_r" = "yes"; then
36486 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
36487echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
36488 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
36489 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
36490 echo "$as_me:$LINENO: result: yes" >&5
36491echo "${ECHO_T}yes" >&6
36492 else
36493 echo "$as_me:$LINENO: result: no" >&5
36494echo "${ECHO_T}no" >&6
36495 fi
36496 fi
36497fi
36498
36499if test "$WXGTK20" = 1 ; then
36500 cat >>confdefs.h <<_ACEOF
36501#define __WXGTK20__ $WXGTK20
36502_ACEOF
36503
36504 WXGTK12=1
36505fi
36506
36507if test "$WXGTK12" = 1 ; then
36508 cat >>confdefs.h <<_ACEOF
36509#define __WXGTK12__ $WXGTK12
36510_ACEOF
36511
36512fi
36513
36514if test "$WXGTK127" = 1 ; then
36515 cat >>confdefs.h <<_ACEOF
36516#define __WXGTK127__ $WXGTK127
36517_ACEOF
36518
36519fi
36520
36521if test "$WXGPE" = 1 ; then
36522 cat >>confdefs.h <<_ACEOF
36523#define __WXGPE__ $WXGPE
36524_ACEOF
36525
36526fi
36527
36528WXDEBUG=
36529
36530if test "$wxUSE_DEBUG_INFO" = "yes" ; then
36531 WXDEBUG="-g"
36532 wxUSE_OPTIMISE=no
36533fi
36534
36535if test "$wxUSE_DEBUG_GDB" = "yes" ; then
36536 wxUSE_DEBUG_INFO=yes
18228ab4
MW
36537 if test "$GCC" = yes; then
36538 WXDEBUG="-ggdb"
36539 fi
a848cd7e
SC
36540fi
36541
36542if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
36543 cat >>confdefs.h <<\_ACEOF
36544#define WXDEBUG 1
36545_ACEOF
36546
36547 WXDEBUG_DEFINE="-D__WXDEBUG__"
36548else
36549 if test "$wxUSE_GTK" = 1 ; then
36550 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
36551 fi
36552fi
36553
36554if test "$wxUSE_MEM_TRACING" = "yes" ; then
36555 cat >>confdefs.h <<\_ACEOF
36556#define wxUSE_MEMORY_TRACING 1
36557_ACEOF
36558
36559 cat >>confdefs.h <<\_ACEOF
36560#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
36561_ACEOF
36562
36563 cat >>confdefs.h <<\_ACEOF
36564#define wxUSE_DEBUG_NEW_ALWAYS 1
36565_ACEOF
36566
36567 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
36568fi
36569
36570if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 36571 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
36572fi
36573
36574PROFILE=
36575if test "$wxUSE_PROFILE" = "yes" ; then
36576 PROFILE=" -pg"
36577fi
36578
36579CODE_GEN_FLAGS=
36580CODE_GEN_FLAGS_CXX=
36581if test "$GCC" = "yes" ; then
36582 if test "$wxUSE_NO_RTTI" = "yes" ; then
36583 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
36584 fi
36585 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36586 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
36587 fi
36588 if test "$wxUSE_PERMISSIVE" = "yes" ; then
36589 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
36590 fi
36591
36592 case "${host}" in
36593 powerpc*-*-aix* )
36594 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
36595 ;;
36596 *-hppa* )
36597 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
36598 ;;
36599 esac
36600fi
36601
36602OPTIMISE=
36603if test "$wxUSE_OPTIMISE" = "no" ; then
36604 if test "$GCC" = yes ; then
36605 OPTIMISE="-O0"
36606 fi
36607else
36608 if test "$GCC" = yes ; then
36609 OPTIMISE="-O2"
36610
36611 case "${host}" in
36612 i586-*-*|i686-*-* )
36613 OPTIMISE="${OPTIMISE} "
36614 ;;
36615 esac
36616 else
36617 OPTIMISE="-O"
36618 fi
36619fi
36620
36621
36622if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
36623 cat >>confdefs.h <<\_ACEOF
36624#define WXWIN_COMPATIBILITY_2_2 1
36625_ACEOF
36626
36627
36628 WXWIN_COMPATIBILITY_2_4="yes"
36629fi
36630
36631if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
36632 cat >>confdefs.h <<\_ACEOF
36633#define WXWIN_COMPATIBILITY_2_4 1
36634_ACEOF
36635
36636fi
36637
36638
36639if test "$wxUSE_GUI" = "yes"; then
881bfcd6 36640 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36641#define wxUSE_GUI 1
36642_ACEOF
36643
36644
370fd4c2 36645 fi
a848cd7e
SC
36646
36647
36648if test "$wxUSE_UNIX" = "yes"; then
36649 cat >>confdefs.h <<\_ACEOF
36650#define wxUSE_UNIX 1
36651_ACEOF
36652
36653fi
36654
36655
36656if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36657
36658 HAVE_DL_FUNCS=0
36659 HAVE_SHL_FUNCS=0
36660 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36661 if test "$USE_DARWIN" = 1; then
36662 HAVE_DL_FUNCS=1
47a7e797
MW
36663 elif test "$USE_DOS" = 1; then
36664 HAVE_DL_FUNCS=0
a848cd7e
SC
36665 else
36666
36667for ac_func in dlopen
36668do
36669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36670echo "$as_me:$LINENO: checking for $ac_func" >&5
36671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36672if eval "test \"\${$as_ac_var+set}\" = set"; then
36673 echo $ECHO_N "(cached) $ECHO_C" >&6
36674else
36675 cat >conftest.$ac_ext <<_ACEOF
36676/* confdefs.h. */
36677_ACEOF
36678cat confdefs.h >>conftest.$ac_ext
36679cat >>conftest.$ac_ext <<_ACEOF
36680/* end confdefs.h. */
ac1cb8d3
VS
36681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36683#define $ac_func innocuous_$ac_func
36684
a848cd7e
SC
36685/* System header to define __stub macros and hopefully few prototypes,
36686 which can conflict with char $ac_func (); below.
36687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36688 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36689
a848cd7e
SC
36690#ifdef __STDC__
36691# include <limits.h>
36692#else
36693# include <assert.h>
36694#endif
ac1cb8d3
VS
36695
36696#undef $ac_func
36697
a848cd7e
SC
36698/* Override any gcc2 internal prototype to avoid an error. */
36699#ifdef __cplusplus
36700extern "C"
36701{
36702#endif
36703/* We use char because int might match the return type of a gcc2
36704 builtin and then its argument prototype would still apply. */
36705char $ac_func ();
36706/* The GNU C library defines this for functions which it implements
36707 to always fail with ENOSYS. Some functions are actually named
36708 something starting with __ and the normal name is an alias. */
36709#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36710choke me
36711#else
36712char (*f) () = $ac_func;
36713#endif
36714#ifdef __cplusplus
36715}
36716#endif
36717
36718int
36719main ()
36720{
36721return f != $ac_func;
36722 ;
36723 return 0;
36724}
36725_ACEOF
36726rm -f conftest.$ac_objext conftest$ac_exeext
36727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36728 (eval $ac_link) 2>conftest.er1
a848cd7e 36729 ac_status=$?
ac1cb8d3
VS
36730 grep -v '^ *+' conftest.er1 >conftest.err
36731 rm -f conftest.er1
36732 cat conftest.err >&5
a848cd7e
SC
36733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36734 (exit $ac_status); } &&
6ebeb4c7 36735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36737 (eval $ac_try) 2>&5
36738 ac_status=$?
36739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36740 (exit $ac_status); }; } &&
36741 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36743 (eval $ac_try) 2>&5
36744 ac_status=$?
36745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36746 (exit $ac_status); }; }; then
36747 eval "$as_ac_var=yes"
36748else
36749 echo "$as_me: failed program was:" >&5
36750sed 's/^/| /' conftest.$ac_ext >&5
36751
36752eval "$as_ac_var=no"
36753fi
ac1cb8d3
VS
36754rm -f conftest.err conftest.$ac_objext \
36755 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36756fi
36757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36758echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36759if test `eval echo '${'$as_ac_var'}'` = yes; then
36760 cat >>confdefs.h <<_ACEOF
36761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36762_ACEOF
36763
36764 cat >>confdefs.h <<\_ACEOF
36765#define HAVE_DLOPEN 1
36766_ACEOF
36767
36768 HAVE_DL_FUNCS=1
36769
36770else
36771
36772 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36773echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
36774if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36775 echo $ECHO_N "(cached) $ECHO_C" >&6
36776else
36777 ac_check_lib_save_LIBS=$LIBS
36778LIBS="-ldl $LIBS"
36779cat >conftest.$ac_ext <<_ACEOF
36780/* confdefs.h. */
36781_ACEOF
36782cat confdefs.h >>conftest.$ac_ext
36783cat >>conftest.$ac_ext <<_ACEOF
36784/* end confdefs.h. */
36785
36786/* Override any gcc2 internal prototype to avoid an error. */
36787#ifdef __cplusplus
36788extern "C"
36789#endif
36790/* We use char because int might match the return type of a gcc2
36791 builtin and then its argument prototype would still apply. */
36792char dlopen ();
36793int
36794main ()
36795{
36796dlopen ();
36797 ;
36798 return 0;
36799}
36800_ACEOF
36801rm -f conftest.$ac_objext conftest$ac_exeext
36802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36803 (eval $ac_link) 2>conftest.er1
a848cd7e 36804 ac_status=$?
ac1cb8d3
VS
36805 grep -v '^ *+' conftest.er1 >conftest.err
36806 rm -f conftest.er1
36807 cat conftest.err >&5
a848cd7e
SC
36808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809 (exit $ac_status); } &&
6ebeb4c7 36810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36812 (eval $ac_try) 2>&5
36813 ac_status=$?
36814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36815 (exit $ac_status); }; } &&
36816 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36818 (eval $ac_try) 2>&5
36819 ac_status=$?
36820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36821 (exit $ac_status); }; }; then
36822 ac_cv_lib_dl_dlopen=yes
36823else
36824 echo "$as_me: failed program was:" >&5
36825sed 's/^/| /' conftest.$ac_ext >&5
36826
36827ac_cv_lib_dl_dlopen=no
36828fi
ac1cb8d3
VS
36829rm -f conftest.err conftest.$ac_objext \
36830 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36831LIBS=$ac_check_lib_save_LIBS
36832fi
36833echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36834echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
36835if test $ac_cv_lib_dl_dlopen = yes; then
36836
36837 cat >>confdefs.h <<\_ACEOF
36838#define HAVE_DLOPEN 1
36839_ACEOF
36840
36841 HAVE_DL_FUNCS=1
36842 DL_LINK=" -ldl$DL_LINK"
36843
36844else
36845
36846
36847for ac_func in shl_load
36848do
36849as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36850echo "$as_me:$LINENO: checking for $ac_func" >&5
36851echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36852if eval "test \"\${$as_ac_var+set}\" = set"; then
36853 echo $ECHO_N "(cached) $ECHO_C" >&6
36854else
36855 cat >conftest.$ac_ext <<_ACEOF
36856/* confdefs.h. */
36857_ACEOF
36858cat confdefs.h >>conftest.$ac_ext
36859cat >>conftest.$ac_ext <<_ACEOF
36860/* end confdefs.h. */
ac1cb8d3
VS
36861/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36863#define $ac_func innocuous_$ac_func
36864
a848cd7e
SC
36865/* System header to define __stub macros and hopefully few prototypes,
36866 which can conflict with char $ac_func (); below.
36867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36868 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36869
a848cd7e
SC
36870#ifdef __STDC__
36871# include <limits.h>
36872#else
36873# include <assert.h>
36874#endif
ac1cb8d3
VS
36875
36876#undef $ac_func
36877
a848cd7e
SC
36878/* Override any gcc2 internal prototype to avoid an error. */
36879#ifdef __cplusplus
36880extern "C"
36881{
36882#endif
36883/* We use char because int might match the return type of a gcc2
36884 builtin and then its argument prototype would still apply. */
36885char $ac_func ();
36886/* The GNU C library defines this for functions which it implements
36887 to always fail with ENOSYS. Some functions are actually named
36888 something starting with __ and the normal name is an alias. */
36889#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36890choke me
36891#else
36892char (*f) () = $ac_func;
36893#endif
36894#ifdef __cplusplus
36895}
36896#endif
36897
36898int
36899main ()
36900{
36901return f != $ac_func;
36902 ;
36903 return 0;
36904}
36905_ACEOF
36906rm -f conftest.$ac_objext conftest$ac_exeext
36907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36908 (eval $ac_link) 2>conftest.er1
a848cd7e 36909 ac_status=$?
ac1cb8d3
VS
36910 grep -v '^ *+' conftest.er1 >conftest.err
36911 rm -f conftest.er1
36912 cat conftest.err >&5
a848cd7e
SC
36913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36914 (exit $ac_status); } &&
6ebeb4c7 36915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36917 (eval $ac_try) 2>&5
36918 ac_status=$?
36919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36920 (exit $ac_status); }; } &&
36921 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36923 (eval $ac_try) 2>&5
36924 ac_status=$?
36925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36926 (exit $ac_status); }; }; then
36927 eval "$as_ac_var=yes"
36928else
36929 echo "$as_me: failed program was:" >&5
36930sed 's/^/| /' conftest.$ac_ext >&5
36931
36932eval "$as_ac_var=no"
36933fi
ac1cb8d3
VS
36934rm -f conftest.err conftest.$ac_objext \
36935 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36936fi
36937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36938echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36939if test `eval echo '${'$as_ac_var'}'` = yes; then
36940 cat >>confdefs.h <<_ACEOF
36941#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36942_ACEOF
36943
36944 cat >>confdefs.h <<\_ACEOF
36945#define HAVE_SHL_LOAD 1
36946_ACEOF
36947
36948 HAVE_SHL_FUNCS=1
36949
36950else
36951
36952 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
36953echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
36954if test "${ac_cv_lib_shl_load_dld+set}" = set; then
36955 echo $ECHO_N "(cached) $ECHO_C" >&6
36956else
36957 ac_check_lib_save_LIBS=$LIBS
36958LIBS="-lshl_load $LIBS"
36959cat >conftest.$ac_ext <<_ACEOF
36960/* confdefs.h. */
36961_ACEOF
36962cat confdefs.h >>conftest.$ac_ext
36963cat >>conftest.$ac_ext <<_ACEOF
36964/* end confdefs.h. */
36965
36966/* Override any gcc2 internal prototype to avoid an error. */
36967#ifdef __cplusplus
36968extern "C"
36969#endif
36970/* We use char because int might match the return type of a gcc2
36971 builtin and then its argument prototype would still apply. */
36972char dld ();
36973int
36974main ()
36975{
36976dld ();
36977 ;
36978 return 0;
36979}
36980_ACEOF
36981rm -f conftest.$ac_objext conftest$ac_exeext
36982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36983 (eval $ac_link) 2>conftest.er1
a848cd7e 36984 ac_status=$?
ac1cb8d3
VS
36985 grep -v '^ *+' conftest.er1 >conftest.err
36986 rm -f conftest.er1
36987 cat conftest.err >&5
a848cd7e
SC
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'
ac1cb8d3
VS
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'
a848cd7e
SC
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_lib_shl_load_dld=yes
37003else
37004 echo "$as_me: failed program was:" >&5
37005sed 's/^/| /' conftest.$ac_ext >&5
37006
37007ac_cv_lib_shl_load_dld=no
37008fi
ac1cb8d3
VS
37009rm -f conftest.err conftest.$ac_objext \
37010 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37011LIBS=$ac_check_lib_save_LIBS
37012fi
37013echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
37014echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
37015if test $ac_cv_lib_shl_load_dld = yes; then
37016
37017 HAVE_SHL_FUNCS=1
37018 DL_LINK=" -ldld$DL_LINK"
37019
37020fi
37021
37022
37023fi
37024done
37025
37026
37027fi
37028
37029
37030fi
37031done
37032
37033
37034 if test "$HAVE_DL_FUNCS" = 1; then
37035
37036for ac_func in dlerror
37037do
37038as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37039echo "$as_me:$LINENO: checking for $ac_func" >&5
37040echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37041if eval "test \"\${$as_ac_var+set}\" = set"; then
37042 echo $ECHO_N "(cached) $ECHO_C" >&6
37043else
37044 cat >conftest.$ac_ext <<_ACEOF
37045/* confdefs.h. */
37046_ACEOF
37047cat confdefs.h >>conftest.$ac_ext
37048cat >>conftest.$ac_ext <<_ACEOF
37049/* end confdefs.h. */
ac1cb8d3
VS
37050/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37052#define $ac_func innocuous_$ac_func
37053
a848cd7e
SC
37054/* System header to define __stub macros and hopefully few prototypes,
37055 which can conflict with char $ac_func (); below.
37056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37057 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37058
a848cd7e
SC
37059#ifdef __STDC__
37060# include <limits.h>
37061#else
37062# include <assert.h>
37063#endif
ac1cb8d3
VS
37064
37065#undef $ac_func
37066
a848cd7e
SC
37067/* Override any gcc2 internal prototype to avoid an error. */
37068#ifdef __cplusplus
37069extern "C"
37070{
37071#endif
37072/* We use char because int might match the return type of a gcc2
37073 builtin and then its argument prototype would still apply. */
37074char $ac_func ();
37075/* The GNU C library defines this for functions which it implements
37076 to always fail with ENOSYS. Some functions are actually named
37077 something starting with __ and the normal name is an alias. */
37078#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37079choke me
37080#else
37081char (*f) () = $ac_func;
37082#endif
37083#ifdef __cplusplus
37084}
37085#endif
37086
37087int
37088main ()
37089{
37090return f != $ac_func;
37091 ;
37092 return 0;
37093}
37094_ACEOF
37095rm -f conftest.$ac_objext conftest$ac_exeext
37096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37097 (eval $ac_link) 2>conftest.er1
a848cd7e 37098 ac_status=$?
ac1cb8d3
VS
37099 grep -v '^ *+' conftest.er1 >conftest.err
37100 rm -f conftest.er1
37101 cat conftest.err >&5
a848cd7e
SC
37102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37103 (exit $ac_status); } &&
6ebeb4c7 37104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37106 (eval $ac_try) 2>&5
37107 ac_status=$?
37108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37109 (exit $ac_status); }; } &&
37110 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37112 (eval $ac_try) 2>&5
37113 ac_status=$?
37114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37115 (exit $ac_status); }; }; then
37116 eval "$as_ac_var=yes"
37117else
37118 echo "$as_me: failed program was:" >&5
37119sed 's/^/| /' conftest.$ac_ext >&5
37120
37121eval "$as_ac_var=no"
37122fi
ac1cb8d3
VS
37123rm -f conftest.err conftest.$ac_objext \
37124 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37125fi
37126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37127echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37128if test `eval echo '${'$as_ac_var'}'` = yes; then
37129 cat >>confdefs.h <<_ACEOF
37130#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37131_ACEOF
37132 cat >>confdefs.h <<\_ACEOF
37133#define HAVE_DLERROR 1
37134_ACEOF
37135
37136else
37137
37138 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
37139echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
37140if test "${ac_cv_lib_dl_dlerror+set}" = set; then
37141 echo $ECHO_N "(cached) $ECHO_C" >&6
37142else
37143 ac_check_lib_save_LIBS=$LIBS
37144LIBS="-ldl $LIBS"
37145cat >conftest.$ac_ext <<_ACEOF
37146/* confdefs.h. */
37147_ACEOF
37148cat confdefs.h >>conftest.$ac_ext
37149cat >>conftest.$ac_ext <<_ACEOF
37150/* end confdefs.h. */
37151
37152/* Override any gcc2 internal prototype to avoid an error. */
37153#ifdef __cplusplus
37154extern "C"
37155#endif
37156/* We use char because int might match the return type of a gcc2
37157 builtin and then its argument prototype would still apply. */
37158char dlerror ();
37159int
37160main ()
37161{
37162dlerror ();
37163 ;
37164 return 0;
37165}
37166_ACEOF
37167rm -f conftest.$ac_objext conftest$ac_exeext
37168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37169 (eval $ac_link) 2>conftest.er1
a848cd7e 37170 ac_status=$?
ac1cb8d3
VS
37171 grep -v '^ *+' conftest.er1 >conftest.err
37172 rm -f conftest.er1
37173 cat conftest.err >&5
a848cd7e
SC
37174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175 (exit $ac_status); } &&
6ebeb4c7 37176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37178 (eval $ac_try) 2>&5
37179 ac_status=$?
37180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181 (exit $ac_status); }; } &&
37182 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37184 (eval $ac_try) 2>&5
37185 ac_status=$?
37186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37187 (exit $ac_status); }; }; then
37188 ac_cv_lib_dl_dlerror=yes
37189else
37190 echo "$as_me: failed program was:" >&5
37191sed 's/^/| /' conftest.$ac_ext >&5
37192
37193ac_cv_lib_dl_dlerror=no
37194fi
ac1cb8d3
VS
37195rm -f conftest.err conftest.$ac_objext \
37196 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37197LIBS=$ac_check_lib_save_LIBS
37198fi
37199echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
37200echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
37201if test $ac_cv_lib_dl_dlerror = yes; then
37202 cat >>confdefs.h <<\_ACEOF
37203#define HAVE_DLERROR 1
37204_ACEOF
37205
37206fi
37207
37208
37209
37210fi
37211done
37212
37213 fi
37214 fi
37215
37216 if test "$HAVE_DL_FUNCS" = 0; then
37217 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 37218 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
37219 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
37220echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
37221 wxUSE_DYNAMIC_LOADER=no
37222 wxUSE_DYNLIB_CLASS=no
37223 else
37224 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
37225echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
37226 fi
37227 fi
37228 fi
37229 fi
37230fi
37231
37232if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
37233 cat >>confdefs.h <<\_ACEOF
37234#define wxUSE_DYNAMIC_LOADER 1
37235_ACEOF
37236
37237fi
37238if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
37239 cat >>confdefs.h <<\_ACEOF
37240#define wxUSE_DYNLIB_CLASS 1
37241_ACEOF
37242
37243fi
37244
37245
37246
37247if test "$wxUSE_PLUGINS" = "yes" ; then
37248 if test "$wxUSE_SHARED" = "no" ; then
37249 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
37250echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
37251 wxUSE_PLUGINS=no
37252 fi
37253 if test "$wxUSE_MONOLITHIC" = "yes" ; then
37254 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
37255echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
37256 wxUSE_PLUGINS=no
37257 fi
37258 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
37259 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
37260echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
37261 wxUSE_PLUGINS=no
37262 fi
37263 if test "$wxUSE_PLUGINS" = "yes" ; then
37264 cat >>confdefs.h <<\_ACEOF
37265#define wxUSE_PLUGINS 1
37266_ACEOF
37267
37268 fi
37269fi
37270
37271
37272if test "$wxUSE_STL" = "yes"; then
37273 cat >>confdefs.h <<\_ACEOF
37274#define wxUSE_STL 1
37275_ACEOF
37276
37277fi
37278
37279if test "$wxUSE_APPLE_IEEE" = "yes"; then
37280 cat >>confdefs.h <<\_ACEOF
37281#define wxUSE_APPLE_IEEE 1
37282_ACEOF
37283
37284fi
37285
37286if test "$wxUSE_TIMER" = "yes"; then
37287 cat >>confdefs.h <<\_ACEOF
37288#define wxUSE_TIMER 1
37289_ACEOF
37290
37291fi
37292
9c112555 37293if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
37294 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
37295echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
37296if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 37297 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 37298else
d12aef51
VZ
37299
37300 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
37301/* confdefs.h. */
37302_ACEOF
37303cat confdefs.h >>conftest.$ac_ext
37304cat >>conftest.$ac_ext <<_ACEOF
37305/* end confdefs.h. */
d12aef51
VZ
37306
37307 #include <sys/soundcard.h>
37308
37309int
37310main ()
37311{
37312
37313 ioctl(0, SNDCTL_DSP_SYNC, 0);
37314
37315 ;
37316 return 0;
37317}
a848cd7e 37318_ACEOF
d12aef51
VZ
37319rm -f conftest.$ac_objext conftest$ac_exeext
37320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37321 (eval $ac_link) 2>conftest.er1
a848cd7e 37322 ac_status=$?
ac1cb8d3
VS
37323 grep -v '^ *+' conftest.er1 >conftest.err
37324 rm -f conftest.er1
37325 cat conftest.err >&5
a848cd7e
SC
37326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37327 (exit $ac_status); } &&
6ebeb4c7 37328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37330 (eval $ac_try) 2>&5
37331 ac_status=$?
37332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37333 (exit $ac_status); }; } &&
d12aef51 37334 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37336 (eval $ac_try) 2>&5
37337 ac_status=$?
37338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339 (exit $ac_status); }; }; then
d12aef51 37340 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
37341else
37342 echo "$as_me: failed program was:" >&5
37343sed 's/^/| /' conftest.$ac_ext >&5
37344
a848cd7e 37345
d12aef51
VZ
37346 saveLibs="$LIBS"
37347 LIBS="$saveLibs -lossaudio"
37348 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
37349/* confdefs.h. */
37350_ACEOF
37351cat confdefs.h >>conftest.$ac_ext
37352cat >>conftest.$ac_ext <<_ACEOF
37353/* end confdefs.h. */
d12aef51
VZ
37354
37355 #include <sys/soundcard.h>
37356
37357int
37358main ()
37359{
37360
37361 ioctl(0, SNDCTL_DSP_SYNC, 0);
37362
37363 ;
37364 return 0;
37365}
a848cd7e 37366_ACEOF
d12aef51
VZ
37367rm -f conftest.$ac_objext conftest$ac_exeext
37368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37369 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
37370 ac_status=$?
37371 grep -v '^ *+' conftest.er1 >conftest.err
37372 rm -f conftest.er1
37373 cat conftest.err >&5
37374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51
VZ
37375 (exit $ac_status); } &&
37376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37378 (eval $ac_try) 2>&5
37379 ac_status=$?
37380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37381 (exit $ac_status); }; } &&
37382 { ac_try='test -s conftest$ac_exeext'
37383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37384 (eval $ac_try) 2>&5
37385 ac_status=$?
37386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37387 (exit $ac_status); }; }; then
37388 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
37389else
37390 echo "$as_me: failed program was:" >&5
37391sed 's/^/| /' conftest.$ac_ext >&5
37392
a848cd7e 37393
d12aef51
VZ
37394 LIBS="$saveLibs"
37395 ac_cv_header_sys_soundcard=no
37396
37397
a848cd7e 37398fi
d12aef51
VZ
37399rm -f conftest.err conftest.$ac_objext \
37400 conftest$ac_exeext conftest.$ac_ext
37401
a848cd7e
SC
37402
37403fi
d12aef51
VZ
37404rm -f conftest.err conftest.$ac_objext \
37405 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37406
37407fi
d12aef51
VZ
37408echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
37409echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 37410
d12aef51
VZ
37411 if test "$ac_cv_header_sys_soundcard" = "yes"; then
37412 cat >>confdefs.h <<\_ACEOF
37413#define HAVE_SYS_SOUNDCARD_H 1
37414_ACEOF
a848cd7e 37415
d12aef51
VZ
37416 else
37417 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
37418 fi
9c112555
MW
37419fi
37420WITH_PLUGIN_SDL=0
37421if test "$wxUSE_SOUND" = "yes"; then
37422 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
37423 if test "$wxUSE_LIBSDL" != "no"; then
37424
37425# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
37426if test "${with_sdl_prefix+set}" = set; then
37427 withval="$with_sdl_prefix"
37428 sdl_prefix="$withval"
37429else
37430 sdl_prefix=""
37431fi;
37432
37433# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
37434if test "${with_sdl_exec_prefix+set}" = set; then
37435 withval="$with_sdl_exec_prefix"
37436 sdl_exec_prefix="$withval"
37437else
37438 sdl_exec_prefix=""
37439fi;
37440# Check whether --enable-sdltest or --disable-sdltest was given.
37441if test "${enable_sdltest+set}" = set; then
37442 enableval="$enable_sdltest"
37443
37444else
37445 enable_sdltest=yes
37446fi;
37447
37448 if test x$sdl_exec_prefix != x ; then
37449 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
37450 if test x${SDL_CONFIG+set} != xset ; then
37451 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
37452 fi
37453 fi
37454 if test x$sdl_prefix != x ; then
37455 sdl_args="$sdl_args --prefix=$sdl_prefix"
37456 if test x${SDL_CONFIG+set} != xset ; then
37457 SDL_CONFIG=$sdl_prefix/bin/sdl-config
37458 fi
37459 fi
37460
37461
37462 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
37463 # Extract the first word of "sdl-config", so it can be a program name with args.
37464set dummy sdl-config; ac_word=$2
37465echo "$as_me:$LINENO: checking for $ac_word" >&5
37466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37467if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
37468 echo $ECHO_N "(cached) $ECHO_C" >&6
37469else
37470 case $SDL_CONFIG in
37471 [\\/]* | ?:[\\/]*)
37472 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
37473 ;;
37474 *)
37475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37476for as_dir in $PATH
37477do
37478 IFS=$as_save_IFS
37479 test -z "$as_dir" && as_dir=.
37480 for ac_exec_ext in '' $ac_executable_extensions; do
37481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37482 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37484 break 2
37485 fi
37486done
37487done
37488
37489 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
37490 ;;
37491esac
37492fi
37493SDL_CONFIG=$ac_cv_path_SDL_CONFIG
37494
37495if test -n "$SDL_CONFIG"; then
37496 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
37497echo "${ECHO_T}$SDL_CONFIG" >&6
37498else
37499 echo "$as_me:$LINENO: result: no" >&5
37500echo "${ECHO_T}no" >&6
37501fi
37502
37503 min_sdl_version=1.2.0
37504 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
37505echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
37506 no_sdl=""
37507 if test "$SDL_CONFIG" = "no" ; then
37508 no_sdl=yes
37509 else
37510 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
37511 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
37512
37513 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
37514 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
37515 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
37516 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
37517 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
37518 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
37519 if test "x$enable_sdltest" = "xyes" ; then
37520 ac_save_CFLAGS="$CFLAGS"
94acd38e 37521 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
37522 ac_save_LIBS="$LIBS"
37523 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37524 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37525 LIBS="$LIBS $SDL_LIBS"
37526 rm -f conf.sdltest
37527 if test "$cross_compiling" = yes; then
37528 echo $ac_n "cross compiling; assumed OK... $ac_c"
37529else
37530 cat >conftest.$ac_ext <<_ACEOF
37531/* confdefs.h. */
37532_ACEOF
37533cat confdefs.h >>conftest.$ac_ext
37534cat >>conftest.$ac_ext <<_ACEOF
37535/* end confdefs.h. */
37536
37537#include <stdio.h>
37538#include <stdlib.h>
37539#include <string.h>
37540#include "SDL.h"
37541
37542char*
37543my_strdup (char *str)
37544{
37545 char *new_str;
37546
37547 if (str)
37548 {
37549 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
37550 strcpy (new_str, str);
37551 }
37552 else
37553 new_str = NULL;
37554
37555 return new_str;
37556}
37557
37558int main (int argc, char *argv[])
37559{
37560 int major, minor, micro;
37561 char *tmp_version;
37562
37563 /* This hangs on some systems (?)
37564 system ("touch conf.sdltest");
37565 */
37566 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
37567
37568 /* HP/UX 9 (%@#!) writes to sscanf strings */
37569 tmp_version = my_strdup("$min_sdl_version");
37570 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
37571 printf("%s, bad version string\n", "$min_sdl_version");
37572 exit(1);
37573 }
37574
37575 if (($sdl_major_version > major) ||
37576 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
37577 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
37578 {
37579 return 0;
37580 }
37581 else
37582 {
37583 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
37584 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
37585 printf("*** best to upgrade to the required version.\n");
37586 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
37587 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
37588 printf("*** config.cache before re-running configure\n");
37589 return 1;
37590 }
37591}
37592
37593
37594_ACEOF
37595rm -f conftest$ac_exeext
37596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37597 (eval $ac_link) 2>&5
37598 ac_status=$?
37599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37602 (eval $ac_try) 2>&5
37603 ac_status=$?
37604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37605 (exit $ac_status); }; }; then
37606 :
37607else
37608 echo "$as_me: program exited with status $ac_status" >&5
37609echo "$as_me: failed program was:" >&5
37610sed 's/^/| /' conftest.$ac_ext >&5
37611
37612( exit $ac_status )
37613no_sdl=yes
37614fi
ac1cb8d3 37615rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37616fi
37617 CFLAGS="$ac_save_CFLAGS"
94acd38e 37618 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37619 LIBS="$ac_save_LIBS"
37620 fi
37621 fi
37622 if test "x$no_sdl" = x ; then
37623 echo "$as_me:$LINENO: result: yes" >&5
37624echo "${ECHO_T}yes" >&6
37625
37626 EXTRALIBS_SDL="$SDL_LIBS"
37627 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
37628 cat >>confdefs.h <<\_ACEOF
37629#define wxUSE_LIBSDL 1
37630_ACEOF
37631
37632
37633 else
37634 echo "$as_me:$LINENO: result: no" >&5
37635echo "${ECHO_T}no" >&6
37636 if test "$SDL_CONFIG" = "no" ; then
37637 echo "*** The sdl-config script installed by SDL could not be found"
37638 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
37639 echo "*** your path, or set the SDL_CONFIG environment variable to the"
37640 echo "*** full path to sdl-config."
37641 else
37642 if test -f conf.sdltest ; then
37643 :
37644 else
37645 echo "*** Could not run SDL test program, checking why..."
37646 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37647 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37648 LIBS="$LIBS $SDL_LIBS"
37649 cat >conftest.$ac_ext <<_ACEOF
37650/* confdefs.h. */
37651_ACEOF
37652cat confdefs.h >>conftest.$ac_ext
37653cat >>conftest.$ac_ext <<_ACEOF
37654/* end confdefs.h. */
37655
37656#include <stdio.h>
37657#include "SDL.h"
37658
37659int main(int argc, char *argv[])
37660{ return 0; }
37661#undef main
37662#define main K_and_R_C_main
37663
37664int
37665main ()
37666{
37667 return 0;
37668 ;
37669 return 0;
37670}
37671_ACEOF
37672rm -f conftest.$ac_objext conftest$ac_exeext
37673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37674 (eval $ac_link) 2>conftest.er1
a848cd7e 37675 ac_status=$?
ac1cb8d3
VS
37676 grep -v '^ *+' conftest.er1 >conftest.err
37677 rm -f conftest.er1
37678 cat conftest.err >&5
a848cd7e
SC
37679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37680 (exit $ac_status); } &&
6ebeb4c7 37681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37683 (eval $ac_try) 2>&5
37684 ac_status=$?
37685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37686 (exit $ac_status); }; } &&
37687 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37689 (eval $ac_try) 2>&5
37690 ac_status=$?
37691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37692 (exit $ac_status); }; }; then
37693 echo "*** The test program compiled, but did not run. This usually means"
37694 echo "*** that the run-time linker is not finding SDL or finding the wrong"
37695 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
37696 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
37697 echo "*** to the installed location Also, make sure you have run ldconfig if that"
37698 echo "*** is required on your system"
37699 echo "***"
37700 echo "*** If you have an old version installed, it is best to remove it, although"
37701 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
37702else
37703 echo "$as_me: failed program was:" >&5
37704sed 's/^/| /' conftest.$ac_ext >&5
37705
37706 echo "*** The test program failed to compile or link. See the file config.log for the"
37707 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
37708 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
37709 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
37710fi
ac1cb8d3
VS
37711rm -f conftest.err conftest.$ac_objext \
37712 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37713 CFLAGS="$ac_save_CFLAGS"
94acd38e 37714 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37715 LIBS="$ac_save_LIBS"
37716 fi
37717 fi
37718 SDL_CFLAGS=""
37719 SDL_LIBS=""
37720 wxUSE_LIBSDL="no"
37721 fi
37722
37723
37724 rm -f conf.sdltest
37725
37726 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
37727 WITH_PLUGIN_SDL=1
37728 fi
37729 fi
37730 fi
37731
37732 cat >>confdefs.h <<\_ACEOF
37733#define wxUSE_SOUND 1
37734_ACEOF
37735
37736 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
37737fi
37738
d1c38808
VZ
37739if test "$WXGTK20" = 1; then
37740 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37741 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
37742
37743
37744 succeeded=no
37745
37746 if test -z "$PKG_CONFIG"; then
37747 # Extract the first word of "pkg-config", so it can be a program name with args.
37748set dummy pkg-config; ac_word=$2
37749echo "$as_me:$LINENO: checking for $ac_word" >&5
37750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37751if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37752 echo $ECHO_N "(cached) $ECHO_C" >&6
37753else
37754 case $PKG_CONFIG in
37755 [\\/]* | ?:[\\/]*)
37756 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37757 ;;
37758 *)
37759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37760for as_dir in $PATH
37761do
37762 IFS=$as_save_IFS
37763 test -z "$as_dir" && as_dir=.
37764 for ac_exec_ext in '' $ac_executable_extensions; do
37765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37766 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37768 break 2
37769 fi
37770done
37771done
37772
37773 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
37774 ;;
37775esac
37776fi
37777PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37778
37779if test -n "$PKG_CONFIG"; then
37780 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37781echo "${ECHO_T}$PKG_CONFIG" >&6
37782else
37783 echo "$as_me:$LINENO: result: no" >&5
37784echo "${ECHO_T}no" >&6
37785fi
37786
37787 fi
37788
37789 if test "$PKG_CONFIG" = "no" ; then
37790 echo "*** The pkg-config script could not be found. Make sure it is"
37791 echo "*** in your path, or set the PKG_CONFIG environment variable"
37792 echo "*** to the full path to pkg-config."
37793 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
37794 else
37795 PKG_CONFIG_MIN_VERSION=0.9.0
37796 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
37797 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
37798echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 37799
ffa762ff 37800 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
37801 echo "$as_me:$LINENO: result: yes" >&5
37802echo "${ECHO_T}yes" >&6
37803 succeeded=yes
37804
37805 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
37806echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 37807 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37808 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
37809echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
37810
37811 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
37812echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 37813 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37814 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
37815echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
37816 else
37817 LIBGNOMEPRINTUI_CFLAGS=""
37818 LIBGNOMEPRINTUI_LIBS=""
37819 ## If we have a custom action on failure, don't print errors, but
37820 ## do set a variable so people can do so.
ffa762ff 37821 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37822
37823 fi
37824
37825
37826
37827 else
37828 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
37829 echo "*** See http://www.freedesktop.org/software/pkgconfig"
37830 fi
37831 fi
37832
37833 if test $succeeded = yes; then
37834
d1c38808
VZ
37835 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
37836 cat >>confdefs.h <<\_ACEOF
37837#define wxUSE_LIBGNOMEPRINT 1
37838_ACEOF
37839
37840
37841 else
37842
37843 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
37844echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
37845 wxUSE_LIBGNOMEPRINT="no"
37846
37847
37848 fi
37849
37850 fi
37851 fi
37852fi
37853
37854
a848cd7e
SC
37855if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
37856 cat >>confdefs.h <<\_ACEOF
37857#define wxUSE_CMDLINE_PARSER 1
37858_ACEOF
37859
37860fi
37861
37862if test "$wxUSE_STOPWATCH" = "yes"; then
37863 cat >>confdefs.h <<\_ACEOF
37864#define wxUSE_STOPWATCH 1
37865_ACEOF
37866
37867fi
37868
37869if test "$wxUSE_DATETIME" = "yes"; then
37870 cat >>confdefs.h <<\_ACEOF
37871#define wxUSE_DATETIME 1
37872_ACEOF
37873
37874fi
37875
37876if test "$wxUSE_FILE" = "yes"; then
37877 cat >>confdefs.h <<\_ACEOF
37878#define wxUSE_FILE 1
37879_ACEOF
37880
37881fi
37882
37883if test "$wxUSE_FFILE" = "yes"; then
37884 cat >>confdefs.h <<\_ACEOF
37885#define wxUSE_FFILE 1
37886_ACEOF
37887
37888fi
37889
37890if test "$wxUSE_FILESYSTEM" = "yes"; then
37891 cat >>confdefs.h <<\_ACEOF
37892#define wxUSE_FILESYSTEM 1
37893_ACEOF
37894
37895fi
37896
37897if test "$wxUSE_FS_ZIP" = "yes"; then
37898 cat >>confdefs.h <<\_ACEOF
37899#define wxUSE_FS_ZIP 1
37900_ACEOF
37901
37902fi
37903
9e8e867f 37904if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 37905 cat >>confdefs.h <<\_ACEOF
9e8e867f 37906#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
37907_ACEOF
37908
37909fi
37910
37911if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 37912 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
37913 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
37914echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
37915 elif test "$wxUSE_ZLIB" = "no"; then
37916 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
37917echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
37918 else
37919 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37920#define wxUSE_ZIPSTREAM 1
37921_ACEOF
37922
81f90336 37923 fi
a848cd7e
SC
37924fi
37925
a848cd7e 37926if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
37927 if test "$USE_UNIX" != 1; then
37928 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
37929echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
37930 wxUSE_ON_FATAL_EXCEPTION=no
37931 else
37932 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37933#define wxUSE_ON_FATAL_EXCEPTION 1
37934_ACEOF
37935
18228ab4 37936 fi
a848cd7e
SC
37937fi
37938
eaff0f0d
VZ
37939if test "$wxUSE_STACKWALKER" = "yes"; then
37940 cat >>confdefs.h <<\_ACEOF
37941#define wxUSE_STACKWALKER 1
37942_ACEOF
37943
37944fi
37945
36b6448c 37946if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
37947 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
37948 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
37949echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
37950 wxUSE_DEBUGREPORT=no
37951 else
37952 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
37953#define wxUSE_DEBUGREPORT 1
37954_ACEOF
37955
21dfc162
MW
37956 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37957 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
37958 fi
dfe0c803 37959 fi
36b6448c
VZ
37960fi
37961
a848cd7e
SC
37962if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37963 cat >>confdefs.h <<\_ACEOF
37964#define wxUSE_SNGLINST_CHECKER 1
37965_ACEOF
37966
37967fi
37968
37969if test "$wxUSE_BUSYINFO" = "yes"; then
37970 cat >>confdefs.h <<\_ACEOF
37971#define wxUSE_BUSYINFO 1
37972_ACEOF
37973
37974fi
37975
37976if test "$wxUSE_STD_IOSTREAM" = "yes"; then
37977 cat >>confdefs.h <<\_ACEOF
37978#define wxUSE_STD_IOSTREAM 1
37979_ACEOF
37980
37981fi
37982
59746b65
MW
37983if test "$wxUSE_STD_STRING" = "yes"; then
37984 cat >>confdefs.h <<\_ACEOF
37985#define wxUSE_STD_STRING 1
37986_ACEOF
37987
37988fi
37989
07158944
VZ
37990if test "$wxUSE_STDPATHS" = "yes"; then
37991 cat >>confdefs.h <<\_ACEOF
37992#define wxUSE_STDPATHS 1
37993_ACEOF
37994
37995fi
37996
a848cd7e
SC
37997if test "$wxUSE_TEXTBUFFER" = "yes"; then
37998 cat >>confdefs.h <<\_ACEOF
37999#define wxUSE_TEXTBUFFER 1
38000_ACEOF
38001
38002fi
38003
38004if test "$wxUSE_TEXTFILE" = "yes"; then
38005 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
38006 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
38007echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
38008 else
38009 cat >>confdefs.h <<\_ACEOF
38010#define wxUSE_TEXTFILE 1
38011_ACEOF
38012
38013 fi
38014fi
38015
38016if test "$wxUSE_CONFIG" = "yes" ; then
38017 if test "$wxUSE_TEXTFILE" != "yes"; then
38018 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
38019echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
38020 else
38021 cat >>confdefs.h <<\_ACEOF
38022#define wxUSE_CONFIG 1
89be85c2
VS
38023_ACEOF
38024
38025 cat >>confdefs.h <<\_ACEOF
38026#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
38027_ACEOF
38028
38029 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
38030 fi
38031fi
38032
38033if test "$wxUSE_INTL" = "yes" ; then
38034 if test "$wxUSE_FILE" != "yes"; then
38035 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
38036echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
38037 else
38038 cat >>confdefs.h <<\_ACEOF
38039#define wxUSE_INTL 1
38040_ACEOF
38041
38042 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
38043 GUIDIST="$GUIDIST INTL_DIST"
38044 fi
38045fi
38046
38047if test "$wxUSE_LOG" = "yes"; then
38048 cat >>confdefs.h <<\_ACEOF
38049#define wxUSE_LOG 1
38050_ACEOF
38051
38052
38053 if test "$wxUSE_LOGGUI" = "yes"; then
38054 cat >>confdefs.h <<\_ACEOF
38055#define wxUSE_LOGGUI 1
38056_ACEOF
38057
38058 fi
38059
38060 if test "$wxUSE_LOGWINDOW" = "yes"; then
38061 cat >>confdefs.h <<\_ACEOF
38062#define wxUSE_LOGWINDOW 1
38063_ACEOF
38064
38065 fi
38066
38067 if test "$wxUSE_LOGDIALOG" = "yes"; then
38068 cat >>confdefs.h <<\_ACEOF
38069#define wxUSE_LOG_DIALOG 1
38070_ACEOF
38071
38072 fi
0b78747f
MW
38073
38074 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
38075fi
38076
38077if test "$wxUSE_LONGLONG" = "yes"; then
38078 cat >>confdefs.h <<\_ACEOF
38079#define wxUSE_LONGLONG 1
38080_ACEOF
38081
38082fi
38083
38084if test "$wxUSE_GEOMETRY" = "yes"; then
38085 cat >>confdefs.h <<\_ACEOF
38086#define wxUSE_GEOMETRY 1
38087_ACEOF
38088
38089fi
38090
a848cd7e
SC
38091if test "$wxUSE_STREAMS" = "yes" ; then
38092 cat >>confdefs.h <<\_ACEOF
38093#define wxUSE_STREAMS 1
38094_ACEOF
38095
38096fi
38097
38098
38099if test "$wxUSE_DATETIME" = "yes"; then
38100
38101for ac_func in strptime
38102do
38103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38104echo "$as_me:$LINENO: checking for $ac_func" >&5
38105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38106if eval "test \"\${$as_ac_var+set}\" = set"; then
38107 echo $ECHO_N "(cached) $ECHO_C" >&6
38108else
38109 cat >conftest.$ac_ext <<_ACEOF
38110/* confdefs.h. */
38111_ACEOF
38112cat confdefs.h >>conftest.$ac_ext
38113cat >>conftest.$ac_ext <<_ACEOF
38114/* end confdefs.h. */
ac1cb8d3
VS
38115/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38117#define $ac_func innocuous_$ac_func
38118
a848cd7e
SC
38119/* System header to define __stub macros and hopefully few prototypes,
38120 which can conflict with char $ac_func (); below.
38121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38122 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38123
a848cd7e
SC
38124#ifdef __STDC__
38125# include <limits.h>
38126#else
38127# include <assert.h>
38128#endif
ac1cb8d3
VS
38129
38130#undef $ac_func
38131
a848cd7e
SC
38132/* Override any gcc2 internal prototype to avoid an error. */
38133#ifdef __cplusplus
38134extern "C"
38135{
38136#endif
38137/* We use char because int might match the return type of a gcc2
38138 builtin and then its argument prototype would still apply. */
38139char $ac_func ();
38140/* The GNU C library defines this for functions which it implements
38141 to always fail with ENOSYS. Some functions are actually named
38142 something starting with __ and the normal name is an alias. */
38143#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38144choke me
38145#else
38146char (*f) () = $ac_func;
38147#endif
38148#ifdef __cplusplus
38149}
38150#endif
38151
38152int
38153main ()
38154{
38155return f != $ac_func;
38156 ;
38157 return 0;
38158}
38159_ACEOF
38160rm -f conftest.$ac_objext conftest$ac_exeext
38161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38162 (eval $ac_link) 2>conftest.er1
a848cd7e 38163 ac_status=$?
ac1cb8d3
VS
38164 grep -v '^ *+' conftest.er1 >conftest.err
38165 rm -f conftest.er1
38166 cat conftest.err >&5
a848cd7e
SC
38167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168 (exit $ac_status); } &&
6ebeb4c7 38169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38171 (eval $ac_try) 2>&5
38172 ac_status=$?
38173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38174 (exit $ac_status); }; } &&
38175 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38177 (eval $ac_try) 2>&5
38178 ac_status=$?
38179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38180 (exit $ac_status); }; }; then
38181 eval "$as_ac_var=yes"
38182else
38183 echo "$as_me: failed program was:" >&5
38184sed 's/^/| /' conftest.$ac_ext >&5
38185
38186eval "$as_ac_var=no"
38187fi
ac1cb8d3
VS
38188rm -f conftest.err conftest.$ac_objext \
38189 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38190fi
38191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38192echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38193if test `eval echo '${'$as_ac_var'}'` = yes; then
38194 cat >>confdefs.h <<_ACEOF
38195#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38196_ACEOF
38197
38198fi
38199done
38200
38201
38202 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
38203echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
38204if test "${wx_cv_var_timezone+set}" = set; then
38205 echo $ECHO_N "(cached) $ECHO_C" >&6
38206else
38207
38208 cat >conftest.$ac_ext <<_ACEOF
38209/* confdefs.h. */
38210_ACEOF
38211cat confdefs.h >>conftest.$ac_ext
38212cat >>conftest.$ac_ext <<_ACEOF
38213/* end confdefs.h. */
38214
38215 #include <time.h>
38216
38217int
38218main ()
38219{
38220
38221 int tz;
38222 tz = timezone;
38223
38224 ;
38225 return 0;
38226}
38227_ACEOF
38228rm -f conftest.$ac_objext
38229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38230 (eval $ac_compile) 2>conftest.er1
a848cd7e 38231 ac_status=$?
ac1cb8d3
VS
38232 grep -v '^ *+' conftest.er1 >conftest.err
38233 rm -f conftest.er1
38234 cat conftest.err >&5
a848cd7e
SC
38235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38236 (exit $ac_status); } &&
6ebeb4c7 38237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38239 (eval $ac_try) 2>&5
38240 ac_status=$?
38241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38242 (exit $ac_status); }; } &&
38243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38245 (eval $ac_try) 2>&5
38246 ac_status=$?
38247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38248 (exit $ac_status); }; }; then
38249
38250 wx_cv_var_timezone=timezone
38251
38252else
38253 echo "$as_me: failed program was:" >&5
38254sed 's/^/| /' conftest.$ac_ext >&5
38255
38256
38257 cat >conftest.$ac_ext <<_ACEOF
38258/* confdefs.h. */
38259_ACEOF
38260cat confdefs.h >>conftest.$ac_ext
38261cat >>conftest.$ac_ext <<_ACEOF
38262/* end confdefs.h. */
38263
38264 #include <time.h>
38265
38266int
38267main ()
38268{
38269
38270 int tz;
38271 tz = _timezone;
38272
38273 ;
38274 return 0;
38275}
38276_ACEOF
38277rm -f conftest.$ac_objext
38278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38279 (eval $ac_compile) 2>conftest.er1
a848cd7e 38280 ac_status=$?
ac1cb8d3
VS
38281 grep -v '^ *+' conftest.er1 >conftest.err
38282 rm -f conftest.er1
38283 cat conftest.err >&5
a848cd7e
SC
38284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38285 (exit $ac_status); } &&
6ebeb4c7 38286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38288 (eval $ac_try) 2>&5
38289 ac_status=$?
38290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291 (exit $ac_status); }; } &&
38292 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38294 (eval $ac_try) 2>&5
38295 ac_status=$?
38296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38297 (exit $ac_status); }; }; then
38298
38299 wx_cv_var_timezone=_timezone
38300
38301else
38302 echo "$as_me: failed program was:" >&5
38303sed 's/^/| /' conftest.$ac_ext >&5
38304
38305
38306 cat >conftest.$ac_ext <<_ACEOF
38307/* confdefs.h. */
38308_ACEOF
38309cat confdefs.h >>conftest.$ac_ext
38310cat >>conftest.$ac_ext <<_ACEOF
38311/* end confdefs.h. */
38312
38313 #include <time.h>
38314
38315int
38316main ()
38317{
38318
38319 int tz;
38320 tz = __timezone;
38321
38322 ;
38323 return 0;
38324}
38325_ACEOF
38326rm -f conftest.$ac_objext
38327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38328 (eval $ac_compile) 2>conftest.er1
a848cd7e 38329 ac_status=$?
ac1cb8d3
VS
38330 grep -v '^ *+' conftest.er1 >conftest.err
38331 rm -f conftest.er1
38332 cat conftest.err >&5
a848cd7e
SC
38333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38334 (exit $ac_status); } &&
6ebeb4c7 38335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38337 (eval $ac_try) 2>&5
38338 ac_status=$?
38339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38340 (exit $ac_status); }; } &&
38341 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38343 (eval $ac_try) 2>&5
38344 ac_status=$?
38345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38346 (exit $ac_status); }; }; then
38347
38348 wx_cv_var_timezone=__timezone
38349
38350else
38351 echo "$as_me: failed program was:" >&5
38352sed 's/^/| /' conftest.$ac_ext >&5
38353
38354
38355 if test "$USE_DOS" = 0 ; then
38356 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
38357echo "$as_me: WARNING: no timezone variable" >&2;}
38358 fi
38359
38360
38361fi
ac1cb8d3 38362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38363
38364
38365fi
ac1cb8d3 38366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38367
38368
38369fi
ac1cb8d3 38370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38371
38372
38373fi
38374echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
38375echo "${ECHO_T}$wx_cv_var_timezone" >&6
38376
38377 if test "x$wx_cv_var_timezone" != x ; then
38378 cat >>confdefs.h <<_ACEOF
38379#define WX_TIMEZONE $wx_cv_var_timezone
38380_ACEOF
38381
38382 fi
38383
38384
38385for ac_func in localtime
38386do
38387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38388echo "$as_me:$LINENO: checking for $ac_func" >&5
38389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38390if eval "test \"\${$as_ac_var+set}\" = set"; then
38391 echo $ECHO_N "(cached) $ECHO_C" >&6
38392else
38393 cat >conftest.$ac_ext <<_ACEOF
38394/* confdefs.h. */
38395_ACEOF
38396cat confdefs.h >>conftest.$ac_ext
38397cat >>conftest.$ac_ext <<_ACEOF
38398/* end confdefs.h. */
ac1cb8d3
VS
38399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38401#define $ac_func innocuous_$ac_func
38402
a848cd7e
SC
38403/* System header to define __stub macros and hopefully few prototypes,
38404 which can conflict with char $ac_func (); below.
38405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38406 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38407
a848cd7e
SC
38408#ifdef __STDC__
38409# include <limits.h>
38410#else
38411# include <assert.h>
38412#endif
ac1cb8d3
VS
38413
38414#undef $ac_func
38415
a848cd7e
SC
38416/* Override any gcc2 internal prototype to avoid an error. */
38417#ifdef __cplusplus
38418extern "C"
38419{
38420#endif
38421/* We use char because int might match the return type of a gcc2
38422 builtin and then its argument prototype would still apply. */
38423char $ac_func ();
38424/* The GNU C library defines this for functions which it implements
38425 to always fail with ENOSYS. Some functions are actually named
38426 something starting with __ and the normal name is an alias. */
38427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38428choke me
38429#else
38430char (*f) () = $ac_func;
38431#endif
38432#ifdef __cplusplus
38433}
38434#endif
38435
38436int
38437main ()
38438{
38439return f != $ac_func;
38440 ;
38441 return 0;
38442}
38443_ACEOF
38444rm -f conftest.$ac_objext conftest$ac_exeext
38445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38446 (eval $ac_link) 2>conftest.er1
a848cd7e 38447 ac_status=$?
ac1cb8d3
VS
38448 grep -v '^ *+' conftest.er1 >conftest.err
38449 rm -f conftest.er1
38450 cat conftest.err >&5
a848cd7e
SC
38451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38452 (exit $ac_status); } &&
6ebeb4c7 38453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38455 (eval $ac_try) 2>&5
38456 ac_status=$?
38457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38458 (exit $ac_status); }; } &&
38459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38461 (eval $ac_try) 2>&5
38462 ac_status=$?
38463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38464 (exit $ac_status); }; }; then
38465 eval "$as_ac_var=yes"
38466else
38467 echo "$as_me: failed program was:" >&5
38468sed 's/^/| /' conftest.$ac_ext >&5
38469
38470eval "$as_ac_var=no"
38471fi
ac1cb8d3
VS
38472rm -f conftest.err conftest.$ac_objext \
38473 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38474fi
38475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38476echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38477if test `eval echo '${'$as_ac_var'}'` = yes; then
38478 cat >>confdefs.h <<_ACEOF
38479#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38480_ACEOF
38481
38482fi
38483done
38484
38485
38486 if test "$ac_cv_func_localtime" = "yes"; then
38487 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
38488echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
38489if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
38490 echo $ECHO_N "(cached) $ECHO_C" >&6
38491else
38492
38493 cat >conftest.$ac_ext <<_ACEOF
38494/* confdefs.h. */
38495_ACEOF
38496cat confdefs.h >>conftest.$ac_ext
38497cat >>conftest.$ac_ext <<_ACEOF
38498/* end confdefs.h. */
38499
38500 #include <time.h>
38501
38502int
38503main ()
38504{
38505
38506 struct tm tm;
38507 tm.tm_gmtoff++;
38508
38509 ;
38510 return 0;
38511}
38512_ACEOF
38513rm -f conftest.$ac_objext
38514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38515 (eval $ac_compile) 2>conftest.er1
a848cd7e 38516 ac_status=$?
ac1cb8d3
VS
38517 grep -v '^ *+' conftest.er1 >conftest.err
38518 rm -f conftest.er1
38519 cat conftest.err >&5
a848cd7e
SC
38520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521 (exit $ac_status); } &&
6ebeb4c7 38522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38524 (eval $ac_try) 2>&5
38525 ac_status=$?
38526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527 (exit $ac_status); }; } &&
38528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38530 (eval $ac_try) 2>&5
38531 ac_status=$?
38532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38533 (exit $ac_status); }; }; then
38534
38535 wx_cv_struct_tm_has_gmtoff=yes
38536
38537else
38538 echo "$as_me: failed program was:" >&5
38539sed 's/^/| /' conftest.$ac_ext >&5
38540
38541wx_cv_struct_tm_has_gmtoff=no
38542
38543fi
ac1cb8d3 38544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38545
38546fi
38547echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
38548echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
38549 fi
38550
38551 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
38552 cat >>confdefs.h <<\_ACEOF
38553#define WX_GMTOFF_IN_TM 1
38554_ACEOF
38555
38556 fi
38557
38558
38559
38560for ac_func in gettimeofday ftime
38561do
38562as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38563echo "$as_me:$LINENO: checking for $ac_func" >&5
38564echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38565if eval "test \"\${$as_ac_var+set}\" = set"; then
38566 echo $ECHO_N "(cached) $ECHO_C" >&6
38567else
38568 cat >conftest.$ac_ext <<_ACEOF
38569/* confdefs.h. */
38570_ACEOF
38571cat confdefs.h >>conftest.$ac_ext
38572cat >>conftest.$ac_ext <<_ACEOF
38573/* end confdefs.h. */
ac1cb8d3
VS
38574/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38576#define $ac_func innocuous_$ac_func
38577
a848cd7e
SC
38578/* System header to define __stub macros and hopefully few prototypes,
38579 which can conflict with char $ac_func (); below.
38580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38581 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38582
a848cd7e
SC
38583#ifdef __STDC__
38584# include <limits.h>
38585#else
38586# include <assert.h>
38587#endif
ac1cb8d3
VS
38588
38589#undef $ac_func
38590
a848cd7e
SC
38591/* Override any gcc2 internal prototype to avoid an error. */
38592#ifdef __cplusplus
38593extern "C"
38594{
38595#endif
38596/* We use char because int might match the return type of a gcc2
38597 builtin and then its argument prototype would still apply. */
38598char $ac_func ();
38599/* The GNU C library defines this for functions which it implements
38600 to always fail with ENOSYS. Some functions are actually named
38601 something starting with __ and the normal name is an alias. */
38602#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38603choke me
38604#else
38605char (*f) () = $ac_func;
38606#endif
38607#ifdef __cplusplus
38608}
38609#endif
38610
38611int
38612main ()
38613{
38614return f != $ac_func;
38615 ;
38616 return 0;
38617}
38618_ACEOF
38619rm -f conftest.$ac_objext conftest$ac_exeext
38620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38621 (eval $ac_link) 2>conftest.er1
a848cd7e 38622 ac_status=$?
ac1cb8d3
VS
38623 grep -v '^ *+' conftest.er1 >conftest.err
38624 rm -f conftest.er1
38625 cat conftest.err >&5
a848cd7e
SC
38626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38627 (exit $ac_status); } &&
6ebeb4c7 38628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38630 (eval $ac_try) 2>&5
38631 ac_status=$?
38632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38633 (exit $ac_status); }; } &&
38634 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38636 (eval $ac_try) 2>&5
38637 ac_status=$?
38638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38639 (exit $ac_status); }; }; then
38640 eval "$as_ac_var=yes"
38641else
38642 echo "$as_me: failed program was:" >&5
38643sed 's/^/| /' conftest.$ac_ext >&5
38644
38645eval "$as_ac_var=no"
38646fi
ac1cb8d3
VS
38647rm -f conftest.err conftest.$ac_objext \
38648 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38649fi
38650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38651echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38652if test `eval echo '${'$as_ac_var'}'` = yes; then
38653 cat >>confdefs.h <<_ACEOF
38654#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38655_ACEOF
38656 break
38657fi
38658done
38659
38660
38661 if test "$ac_cv_func_gettimeofday" = "yes"; then
38662 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
38663echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
38664if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
38665 echo $ECHO_N "(cached) $ECHO_C" >&6
38666else
38667
38668
38669
38670 ac_ext=cc
38671ac_cpp='$CXXCPP $CPPFLAGS'
38672ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38673ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38674ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38675
38676
38677 cat >conftest.$ac_ext <<_ACEOF
38678/* confdefs.h. */
38679_ACEOF
38680cat confdefs.h >>conftest.$ac_ext
38681cat >>conftest.$ac_ext <<_ACEOF
38682/* end confdefs.h. */
38683
38684 #include <sys/time.h>
38685 #include <unistd.h>
38686
38687int
38688main ()
38689{
38690
38691 struct timeval tv;
38692 gettimeofday(&tv, NULL);
38693
38694 ;
38695 return 0;
38696}
38697_ACEOF
38698rm -f conftest.$ac_objext
38699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38700 (eval $ac_compile) 2>conftest.er1
a848cd7e 38701 ac_status=$?
ac1cb8d3
VS
38702 grep -v '^ *+' conftest.er1 >conftest.err
38703 rm -f conftest.er1
38704 cat conftest.err >&5
a848cd7e
SC
38705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38706 (exit $ac_status); } &&
6ebeb4c7 38707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38709 (eval $ac_try) 2>&5
38710 ac_status=$?
38711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38712 (exit $ac_status); }; } &&
38713 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38715 (eval $ac_try) 2>&5
38716 ac_status=$?
38717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38718 (exit $ac_status); }; }; then
38719 wx_cv_func_gettimeofday_has_2_args=yes
38720else
38721 echo "$as_me: failed program was:" >&5
38722sed 's/^/| /' conftest.$ac_ext >&5
38723
38724cat >conftest.$ac_ext <<_ACEOF
38725/* confdefs.h. */
38726_ACEOF
38727cat confdefs.h >>conftest.$ac_ext
38728cat >>conftest.$ac_ext <<_ACEOF
38729/* end confdefs.h. */
38730
38731 #include <sys/time.h>
38732 #include <unistd.h>
38733
38734int
38735main ()
38736{
38737
38738 struct timeval tv;
38739 gettimeofday(&tv);
38740
38741 ;
38742 return 0;
38743}
38744_ACEOF
38745rm -f conftest.$ac_objext
38746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38747 (eval $ac_compile) 2>conftest.er1
a848cd7e 38748 ac_status=$?
ac1cb8d3
VS
38749 grep -v '^ *+' conftest.er1 >conftest.err
38750 rm -f conftest.er1
38751 cat conftest.err >&5
a848cd7e
SC
38752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38753 (exit $ac_status); } &&
6ebeb4c7 38754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38756 (eval $ac_try) 2>&5
38757 ac_status=$?
38758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38759 (exit $ac_status); }; } &&
38760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38762 (eval $ac_try) 2>&5
38763 ac_status=$?
38764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38765 (exit $ac_status); }; }; then
38766 wx_cv_func_gettimeofday_has_2_args=no
38767else
38768 echo "$as_me: failed program was:" >&5
38769sed 's/^/| /' conftest.$ac_ext >&5
38770
38771
38772 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
38773echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
38774 wx_cv_func_gettimeofday_has_2_args=unknown
38775
38776
38777fi
ac1cb8d3 38778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38779
38780fi
ac1cb8d3 38781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38782 ac_ext=c
38783ac_cpp='$CPP $CPPFLAGS'
38784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38786ac_compiler_gnu=$ac_cv_c_compiler_gnu
38787
38788
38789fi
38790echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
38791echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
38792
38793 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
38794 cat >>confdefs.h <<\_ACEOF
38795#define WX_GETTIMEOFDAY_NO_TZ 1
38796_ACEOF
38797
38798 fi
38799 fi
38800
38801 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
38802fi
38803
38804
38805if test "$wxUSE_SOCKETS" = "yes"; then
38806 if test "$wxUSE_MGL" = "1"; then
38807 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
38808echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
38809 wxUSE_SOCKETS="no"
38810 fi
38811fi
38812
38813if test "$wxUSE_SOCKETS" = "yes"; then
38814 if test "$TOOLKIT" != "MSW"; then
38815 echo "$as_me:$LINENO: checking for socket" >&5
38816echo $ECHO_N "checking for socket... $ECHO_C" >&6
38817if test "${ac_cv_func_socket+set}" = set; then
38818 echo $ECHO_N "(cached) $ECHO_C" >&6
38819else
38820 cat >conftest.$ac_ext <<_ACEOF
38821/* confdefs.h. */
38822_ACEOF
38823cat confdefs.h >>conftest.$ac_ext
38824cat >>conftest.$ac_ext <<_ACEOF
38825/* end confdefs.h. */
ac1cb8d3
VS
38826/* Define socket to an innocuous variant, in case <limits.h> declares socket.
38827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38828#define socket innocuous_socket
38829
a848cd7e
SC
38830/* System header to define __stub macros and hopefully few prototypes,
38831 which can conflict with char socket (); below.
38832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38833 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38834
a848cd7e
SC
38835#ifdef __STDC__
38836# include <limits.h>
38837#else
38838# include <assert.h>
38839#endif
ac1cb8d3
VS
38840
38841#undef socket
38842
a848cd7e
SC
38843/* Override any gcc2 internal prototype to avoid an error. */
38844#ifdef __cplusplus
38845extern "C"
38846{
38847#endif
38848/* We use char because int might match the return type of a gcc2
38849 builtin and then its argument prototype would still apply. */
38850char socket ();
38851/* The GNU C library defines this for functions which it implements
38852 to always fail with ENOSYS. Some functions are actually named
38853 something starting with __ and the normal name is an alias. */
38854#if defined (__stub_socket) || defined (__stub___socket)
38855choke me
38856#else
38857char (*f) () = socket;
38858#endif
38859#ifdef __cplusplus
38860}
38861#endif
38862
38863int
38864main ()
38865{
38866return f != socket;
38867 ;
38868 return 0;
38869}
38870_ACEOF
38871rm -f conftest.$ac_objext conftest$ac_exeext
38872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38873 (eval $ac_link) 2>conftest.er1
a848cd7e 38874 ac_status=$?
ac1cb8d3
VS
38875 grep -v '^ *+' conftest.er1 >conftest.err
38876 rm -f conftest.er1
38877 cat conftest.err >&5
a848cd7e
SC
38878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38879 (exit $ac_status); } &&
6ebeb4c7 38880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38882 (eval $ac_try) 2>&5
38883 ac_status=$?
38884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38885 (exit $ac_status); }; } &&
38886 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38888 (eval $ac_try) 2>&5
38889 ac_status=$?
38890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38891 (exit $ac_status); }; }; then
38892 ac_cv_func_socket=yes
38893else
38894 echo "$as_me: failed program was:" >&5
38895sed 's/^/| /' conftest.$ac_ext >&5
38896
38897ac_cv_func_socket=no
38898fi
ac1cb8d3
VS
38899rm -f conftest.err conftest.$ac_objext \
38900 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38901fi
38902echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
38903echo "${ECHO_T}$ac_cv_func_socket" >&6
38904if test $ac_cv_func_socket = yes; then
38905 :
38906else
38907
38908 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38909echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
38910if test "${ac_cv_lib_socket_socket+set}" = set; then
38911 echo $ECHO_N "(cached) $ECHO_C" >&6
38912else
38913 ac_check_lib_save_LIBS=$LIBS
38914LIBS="-lsocket $LIBS"
38915cat >conftest.$ac_ext <<_ACEOF
38916/* confdefs.h. */
38917_ACEOF
38918cat confdefs.h >>conftest.$ac_ext
38919cat >>conftest.$ac_ext <<_ACEOF
38920/* end confdefs.h. */
38921
38922/* Override any gcc2 internal prototype to avoid an error. */
38923#ifdef __cplusplus
38924extern "C"
38925#endif
38926/* We use char because int might match the return type of a gcc2
38927 builtin and then its argument prototype would still apply. */
38928char socket ();
38929int
38930main ()
38931{
38932socket ();
38933 ;
38934 return 0;
38935}
38936_ACEOF
38937rm -f conftest.$ac_objext conftest$ac_exeext
38938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38939 (eval $ac_link) 2>conftest.er1
a848cd7e 38940 ac_status=$?
ac1cb8d3
VS
38941 grep -v '^ *+' conftest.er1 >conftest.err
38942 rm -f conftest.er1
38943 cat conftest.err >&5
a848cd7e
SC
38944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38945 (exit $ac_status); } &&
6ebeb4c7 38946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38948 (eval $ac_try) 2>&5
38949 ac_status=$?
38950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38951 (exit $ac_status); }; } &&
38952 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38954 (eval $ac_try) 2>&5
38955 ac_status=$?
38956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38957 (exit $ac_status); }; }; then
38958 ac_cv_lib_socket_socket=yes
38959else
38960 echo "$as_me: failed program was:" >&5
38961sed 's/^/| /' conftest.$ac_ext >&5
38962
38963ac_cv_lib_socket_socket=no
38964fi
ac1cb8d3
VS
38965rm -f conftest.err conftest.$ac_objext \
38966 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38967LIBS=$ac_check_lib_save_LIBS
38968fi
38969echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38970echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
38971if test $ac_cv_lib_socket_socket = yes; then
38972 if test "$INET_LINK" != " -lsocket"; then
38973 INET_LINK="$INET_LINK -lsocket"
38974 fi
38975else
38976
38977 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
38978echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
38979 wxUSE_SOCKETS=no
38980
38981
38982fi
38983
38984
38985
38986fi
38987
38988 fi
38989fi
38990
38991if test "$wxUSE_SOCKETS" = "yes" ; then
38992 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
38993 ac_ext=cc
38994ac_cpp='$CXXCPP $CPPFLAGS'
38995ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38996ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38997ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38998
38999 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
39000echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
39001if test "${wx_cv_type_getsockname3+set}" = set; then
39002 echo $ECHO_N "(cached) $ECHO_C" >&6
39003else
39004
39005 cat >conftest.$ac_ext <<_ACEOF
39006/* confdefs.h. */
39007_ACEOF
39008cat confdefs.h >>conftest.$ac_ext
39009cat >>conftest.$ac_ext <<_ACEOF
39010/* end confdefs.h. */
39011
39012 #include <sys/types.h>
39013 #include <sys/socket.h>
39014
39015int
39016main ()
39017{
39018
39019 socklen_t len;
39020 getsockname(0, 0, &len);
39021
39022 ;
39023 return 0;
39024}
39025_ACEOF
39026rm -f conftest.$ac_objext
39027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39028 (eval $ac_compile) 2>conftest.er1
a848cd7e 39029 ac_status=$?
ac1cb8d3
VS
39030 grep -v '^ *+' conftest.er1 >conftest.err
39031 rm -f conftest.er1
39032 cat conftest.err >&5
a848cd7e
SC
39033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39034 (exit $ac_status); } &&
6ebeb4c7 39035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39037 (eval $ac_try) 2>&5
39038 ac_status=$?
39039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39040 (exit $ac_status); }; } &&
39041 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39043 (eval $ac_try) 2>&5
39044 ac_status=$?
39045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39046 (exit $ac_status); }; }; then
39047 wx_cv_type_getsockname3=socklen_t
39048else
39049 echo "$as_me: failed program was:" >&5
39050sed 's/^/| /' conftest.$ac_ext >&5
39051
39052
39053 CFLAGS_OLD="$CFLAGS"
39054 if test "$GCC" = yes ; then
39055 CFLAGS="$CFLAGS -Werror"
39056 fi
39057
39058 cat >conftest.$ac_ext <<_ACEOF
39059/* confdefs.h. */
39060_ACEOF
39061cat confdefs.h >>conftest.$ac_ext
39062cat >>conftest.$ac_ext <<_ACEOF
39063/* end confdefs.h. */
39064
39065 #include <sys/types.h>
39066 #include <sys/socket.h>
39067
39068int
39069main ()
39070{
39071
39072 size_t len;
39073 getsockname(0, 0, &len);
39074
39075 ;
39076 return 0;
39077}
39078_ACEOF
39079rm -f conftest.$ac_objext
39080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39081 (eval $ac_compile) 2>conftest.er1
a848cd7e 39082 ac_status=$?
ac1cb8d3
VS
39083 grep -v '^ *+' conftest.er1 >conftest.err
39084 rm -f conftest.er1
39085 cat conftest.err >&5
a848cd7e
SC
39086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39087 (exit $ac_status); } &&
6ebeb4c7 39088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39090 (eval $ac_try) 2>&5
39091 ac_status=$?
39092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39093 (exit $ac_status); }; } &&
39094 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39096 (eval $ac_try) 2>&5
39097 ac_status=$?
39098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39099 (exit $ac_status); }; }; then
39100 wx_cv_type_getsockname3=size_t
39101else
39102 echo "$as_me: failed program was:" >&5
39103sed 's/^/| /' conftest.$ac_ext >&5
39104
39105cat >conftest.$ac_ext <<_ACEOF
39106/* confdefs.h. */
39107_ACEOF
39108cat confdefs.h >>conftest.$ac_ext
39109cat >>conftest.$ac_ext <<_ACEOF
39110/* end confdefs.h. */
39111
39112 #include <sys/types.h>
39113 #include <sys/socket.h>
39114
39115int
39116main ()
39117{
39118
39119 int len;
39120 getsockname(0, 0, &len);
39121
39122 ;
39123 return 0;
39124}
39125_ACEOF
39126rm -f conftest.$ac_objext
39127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39128 (eval $ac_compile) 2>conftest.er1
a848cd7e 39129 ac_status=$?
ac1cb8d3
VS
39130 grep -v '^ *+' conftest.er1 >conftest.err
39131 rm -f conftest.er1
39132 cat conftest.err >&5
a848cd7e
SC
39133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39134 (exit $ac_status); } &&
6ebeb4c7 39135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39137 (eval $ac_try) 2>&5
39138 ac_status=$?
39139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39140 (exit $ac_status); }; } &&
39141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39143 (eval $ac_try) 2>&5
39144 ac_status=$?
39145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146 (exit $ac_status); }; }; then
39147 wx_cv_type_getsockname3=int
39148else
39149 echo "$as_me: failed program was:" >&5
39150sed 's/^/| /' conftest.$ac_ext >&5
39151
39152wx_cv_type_getsockname3=unknown
39153
39154fi
ac1cb8d3 39155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39156
39157fi
ac1cb8d3 39158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39159
39160 CFLAGS="$CFLAGS_OLD"
39161
39162
39163fi
ac1cb8d3 39164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39165
39166fi
39167echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
39168echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
39169
39170 if test "$wx_cv_type_getsockname3" = "unknown"; then
39171 wxUSE_SOCKETS=no
39172 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
39173echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
39174 else
39175 cat >>confdefs.h <<_ACEOF
9e03e02d 39176#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
39177_ACEOF
39178
39179 fi
39180 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
39181echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
39182if test "${wx_cv_type_getsockopt5+set}" = set; then
39183 echo $ECHO_N "(cached) $ECHO_C" >&6
39184else
39185
39186 cat >conftest.$ac_ext <<_ACEOF
39187/* confdefs.h. */
39188_ACEOF
39189cat confdefs.h >>conftest.$ac_ext
39190cat >>conftest.$ac_ext <<_ACEOF
39191/* end confdefs.h. */
39192
39193 #include <sys/types.h>
39194 #include <sys/socket.h>
39195
39196int
39197main ()
39198{
39199
39200 socklen_t len;
39201 getsockopt(0, 0, 0, 0, &len);
39202
39203 ;
39204 return 0;
39205}
39206_ACEOF
39207rm -f conftest.$ac_objext
39208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39209 (eval $ac_compile) 2>conftest.er1
39210 ac_status=$?
39211 grep -v '^ *+' conftest.er1 >conftest.err
39212 rm -f conftest.er1
39213 cat conftest.err >&5
39214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39215 (exit $ac_status); } &&
6ebeb4c7 39216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
39217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39218 (eval $ac_try) 2>&5
39219 ac_status=$?
39220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39221 (exit $ac_status); }; } &&
39222 { ac_try='test -s conftest.$ac_objext'
39223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39224 (eval $ac_try) 2>&5
39225 ac_status=$?
39226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39227 (exit $ac_status); }; }; then
39228 wx_cv_type_getsockopt5=socklen_t
39229else
39230 echo "$as_me: failed program was:" >&5
39231sed 's/^/| /' conftest.$ac_ext >&5
39232
39233
39234 CFLAGS_OLD="$CFLAGS"
39235 if test "$GCC" = yes ; then
39236 CFLAGS="$CFLAGS -Werror"
39237 fi
39238
39239 cat >conftest.$ac_ext <<_ACEOF
39240/* confdefs.h. */
39241_ACEOF
39242cat confdefs.h >>conftest.$ac_ext
39243cat >>conftest.$ac_ext <<_ACEOF
39244/* end confdefs.h. */
39245
39246 #include <sys/types.h>
39247 #include <sys/socket.h>
39248
39249int
39250main ()
39251{
39252
39253 size_t len;
39254 getsockopt(0, 0, 0, 0, &len);
39255
39256 ;
39257 return 0;
39258}
39259_ACEOF
39260rm -f conftest.$ac_objext
39261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39262 (eval $ac_compile) 2>conftest.er1
39263 ac_status=$?
39264 grep -v '^ *+' conftest.er1 >conftest.err
39265 rm -f conftest.er1
39266 cat conftest.err >&5
39267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39268 (exit $ac_status); } &&
6ebeb4c7 39269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
39270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39271 (eval $ac_try) 2>&5
39272 ac_status=$?
39273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39274 (exit $ac_status); }; } &&
39275 { ac_try='test -s conftest.$ac_objext'
39276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39277 (eval $ac_try) 2>&5
39278 ac_status=$?
39279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39280 (exit $ac_status); }; }; then
39281 wx_cv_type_getsockopt5=size_t
39282else
39283 echo "$as_me: failed program was:" >&5
39284sed 's/^/| /' conftest.$ac_ext >&5
39285
39286cat >conftest.$ac_ext <<_ACEOF
39287/* confdefs.h. */
39288_ACEOF
39289cat confdefs.h >>conftest.$ac_ext
39290cat >>conftest.$ac_ext <<_ACEOF
39291/* end confdefs.h. */
39292
39293 #include <sys/types.h>
39294 #include <sys/socket.h>
39295
39296int
39297main ()
39298{
39299
39300 int len;
39301 getsockopt(0, 0, 0, 0, &len);
39302
39303 ;
39304 return 0;
39305}
39306_ACEOF
39307rm -f conftest.$ac_objext
39308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39309 (eval $ac_compile) 2>conftest.er1
39310 ac_status=$?
39311 grep -v '^ *+' conftest.er1 >conftest.err
39312 rm -f conftest.er1
39313 cat conftest.err >&5
39314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39315 (exit $ac_status); } &&
6ebeb4c7 39316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
39317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39318 (eval $ac_try) 2>&5
39319 ac_status=$?
39320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39321 (exit $ac_status); }; } &&
39322 { ac_try='test -s conftest.$ac_objext'
39323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39324 (eval $ac_try) 2>&5
39325 ac_status=$?
39326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39327 (exit $ac_status); }; }; then
39328 wx_cv_type_getsockopt5=int
39329else
39330 echo "$as_me: failed program was:" >&5
39331sed 's/^/| /' conftest.$ac_ext >&5
39332
39333wx_cv_type_getsockopt5=unknown
39334
39335fi
39336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39337
39338fi
39339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39340
39341 CFLAGS="$CFLAGS_OLD"
39342
39343
39344fi
39345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39346
39347fi
39348echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
39349echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
39350
39351 if test "$wx_cv_type_getsockopt5" = "unknown"; then
39352 wxUSE_SOCKETS=no
39353 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
39354echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
39355 else
39356 cat >>confdefs.h <<_ACEOF
39357#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
39358_ACEOF
39359
39360 fi
4d4ff94c
VZ
39361 ac_ext=c
39362ac_cpp='$CPP $CPPFLAGS'
39363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39365ac_compiler_gnu=$ac_cv_c_compiler_gnu
39366
a848cd7e
SC
39367 fi
39368fi
39369
39370if test "$wxUSE_SOCKETS" = "yes" ; then
39371 cat >>confdefs.h <<\_ACEOF
39372#define wxUSE_SOCKETS 1
39373_ACEOF
39374
39375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
39376fi
39377
39378if test "$wxUSE_PROTOCOL" = "yes"; then
39379 if test "$wxUSE_SOCKETS" != "yes"; then
39380 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
39381echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
39382 wxUSE_PROTOCOL=no
39383 fi
39384fi
39385
39386if test "$wxUSE_PROTOCOL" = "yes"; then
39387 cat >>confdefs.h <<\_ACEOF
39388#define wxUSE_PROTOCOL 1
39389_ACEOF
39390
39391
39392 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
39393 cat >>confdefs.h <<\_ACEOF
39394#define wxUSE_PROTOCOL_HTTP 1
39395_ACEOF
39396
39397 fi
39398 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
39399 cat >>confdefs.h <<\_ACEOF
39400#define wxUSE_PROTOCOL_FTP 1
39401_ACEOF
39402
39403 fi
39404 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
39405 cat >>confdefs.h <<\_ACEOF
39406#define wxUSE_PROTOCOL_FILE 1
39407_ACEOF
39408
39409 fi
39410else
39411 if test "$wxUSE_FS_INET" = "yes"; then
39412 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
39413echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
39414 wxUSE_FS_INET="no"
39415 fi
39416fi
39417
39418if test "$wxUSE_URL" = "yes"; then
39419 if test "$wxUSE_PROTOCOL" != "yes"; then
39420 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
39421echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
39422 wxUSE_URL=no
39423 fi
39424 if test "$wxUSE_URL" = "yes"; then
39425 cat >>confdefs.h <<\_ACEOF
39426#define wxUSE_URL 1
39427_ACEOF
39428
39429 fi
39430fi
39431
39432if test "$wxUSE_FS_INET" = "yes"; then
39433 cat >>confdefs.h <<\_ACEOF
39434#define wxUSE_FS_INET 1
39435_ACEOF
39436
39437fi
39438
39439
ee45c548
MW
39440if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
39441 wxUSE_JOYSTICK=no
39442
39443 if test "$TOOLKIT" = "MSW"; then
39444 wxUSE_JOYSTICK=yes
39445
39446 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
39447 if test "$USE_DARWIN" = 1; then
39448 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
39449echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
39450 ac_ext=cc
39451ac_cpp='$CXXCPP $CPPFLAGS'
39452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39455
39456 cat >conftest.$ac_ext <<_ACEOF
39457/* confdefs.h. */
39458_ACEOF
39459cat confdefs.h >>conftest.$ac_ext
39460cat >>conftest.$ac_ext <<_ACEOF
39461/* end confdefs.h. */
39462 #include <IOKit/hid/IOHIDLib.h>
39463int
39464main ()
39465{
39466 IOHIDQueueInterface *qi = NULL;
39467 IOHIDCallbackFunction cb = NULL;
39468 qi->setEventCallout(NULL, cb, NULL, NULL);
39469 ;
39470 return 0;
39471}
39472_ACEOF
39473rm -f conftest.$ac_objext
39474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39475 (eval $ac_compile) 2>conftest.er1
39476 ac_status=$?
39477 grep -v '^ *+' conftest.er1 >conftest.err
39478 rm -f conftest.er1
39479 cat conftest.err >&5
39480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39481 (exit $ac_status); } &&
6ebeb4c7 39482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
39483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39484 (eval $ac_try) 2>&5
39485 ac_status=$?
39486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39487 (exit $ac_status); }; } &&
39488 { ac_try='test -s conftest.$ac_objext'
39489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39490 (eval $ac_try) 2>&5
39491 ac_status=$?
39492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39493 (exit $ac_status); }; }; then
39494 wxUSE_JOYSTICK=yes
a848cd7e 39495
ee45c548
MW
39496else
39497 echo "$as_me: failed program was:" >&5
39498sed 's/^/| /' conftest.$ac_ext >&5
39499
39500fi
39501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39502 ac_ext=c
39503ac_cpp='$CPP $CPPFLAGS'
39504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39506ac_compiler_gnu=$ac_cv_c_compiler_gnu
39507
39508 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
39509echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
39510 fi
39511
39512 else
a848cd7e
SC
39513
39514for ac_header in linux/joystick.h
39515do
39516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39517if eval "test \"\${$as_ac_Header+set}\" = set"; then
39518 echo "$as_me:$LINENO: checking for $ac_header" >&5
39519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39520if eval "test \"\${$as_ac_Header+set}\" = set"; then
39521 echo $ECHO_N "(cached) $ECHO_C" >&6
39522fi
39523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39525else
39526 # Is the header compilable?
39527echo "$as_me:$LINENO: checking $ac_header usability" >&5
39528echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39529cat >conftest.$ac_ext <<_ACEOF
39530/* confdefs.h. */
39531_ACEOF
39532cat confdefs.h >>conftest.$ac_ext
39533cat >>conftest.$ac_ext <<_ACEOF
39534/* end confdefs.h. */
39535$ac_includes_default
39536#include <$ac_header>
39537_ACEOF
39538rm -f conftest.$ac_objext
39539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39540 (eval $ac_compile) 2>conftest.er1
a848cd7e 39541 ac_status=$?
ac1cb8d3
VS
39542 grep -v '^ *+' conftest.er1 >conftest.err
39543 rm -f conftest.er1
39544 cat conftest.err >&5
a848cd7e
SC
39545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39546 (exit $ac_status); } &&
6ebeb4c7 39547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39549 (eval $ac_try) 2>&5
39550 ac_status=$?
39551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39552 (exit $ac_status); }; } &&
39553 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39555 (eval $ac_try) 2>&5
39556 ac_status=$?
39557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39558 (exit $ac_status); }; }; then
39559 ac_header_compiler=yes
39560else
39561 echo "$as_me: failed program was:" >&5
39562sed 's/^/| /' conftest.$ac_ext >&5
39563
39564ac_header_compiler=no
39565fi
ac1cb8d3 39566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39567echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39568echo "${ECHO_T}$ac_header_compiler" >&6
39569
39570# Is the header present?
39571echo "$as_me:$LINENO: checking $ac_header presence" >&5
39572echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39573cat >conftest.$ac_ext <<_ACEOF
39574/* confdefs.h. */
39575_ACEOF
39576cat confdefs.h >>conftest.$ac_ext
39577cat >>conftest.$ac_ext <<_ACEOF
39578/* end confdefs.h. */
39579#include <$ac_header>
39580_ACEOF
39581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39583 ac_status=$?
39584 grep -v '^ *+' conftest.er1 >conftest.err
39585 rm -f conftest.er1
39586 cat conftest.err >&5
39587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39588 (exit $ac_status); } >/dev/null; then
39589 if test -s conftest.err; then
39590 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39592 else
39593 ac_cpp_err=
39594 fi
39595else
39596 ac_cpp_err=yes
39597fi
39598if test -z "$ac_cpp_err"; then
39599 ac_header_preproc=yes
39600else
39601 echo "$as_me: failed program was:" >&5
39602sed 's/^/| /' conftest.$ac_ext >&5
39603
39604 ac_header_preproc=no
39605fi
39606rm -f conftest.err conftest.$ac_ext
39607echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39608echo "${ECHO_T}$ac_header_preproc" >&6
39609
39610# So? What about this header?
ac1cb8d3
VS
39611case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39612 yes:no: )
a848cd7e
SC
39613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39614echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39616echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39617 ac_header_preproc=yes
a848cd7e 39618 ;;
ac1cb8d3 39619 no:yes:* )
a848cd7e
SC
39620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39621echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39623echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39625echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39627echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39629echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39631echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39632 (
39633 cat <<\_ASBOX
ac1cb8d3
VS
39634## ----------------------------------------- ##
39635## Report this to wx-dev@lists.wxwidgets.org ##
39636## ----------------------------------------- ##
a848cd7e
SC
39637_ASBOX
39638 ) |
39639 sed "s/^/$as_me: WARNING: /" >&2
39640 ;;
39641esac
39642echo "$as_me:$LINENO: checking for $ac_header" >&5
39643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39644if eval "test \"\${$as_ac_Header+set}\" = set"; then
39645 echo $ECHO_N "(cached) $ECHO_C" >&6
39646else
ac1cb8d3 39647 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39648fi
39649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39650echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39651
39652fi
39653if test `eval echo '${'$as_ac_Header'}'` = yes; then
39654 cat >>confdefs.h <<_ACEOF
39655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39656_ACEOF
ee45c548 39657 wxUSE_JOYSTICK=yes
a848cd7e
SC
39658fi
39659
39660done
39661
ee45c548 39662 fi
4cb1d3da 39663
ee45c548
MW
39664 if test "$wxUSE_JOYSTICK" = "yes"; then
39665 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39666#define wxUSE_JOYSTICK 1
39667_ACEOF
39668
ee45c548
MW
39669 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
39670 else
39671 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
39672echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
39673 fi
39674fi
39675
39676
39677
39678if test "$wxUSE_FONTMAP" = "yes" ; then
39679 cat >>confdefs.h <<\_ACEOF
39680#define wxUSE_FONTMAP 1
39681_ACEOF
39682
39683fi
39684
39685if test "$wxUSE_UNICODE" = "yes" ; then
39686 cat >>confdefs.h <<\_ACEOF
39687#define wxUSE_UNICODE 1
39688_ACEOF
39689
39690
39691 if test "$USE_WIN32" != 1; then
39692 wxUSE_UNICODE_MSLU=no
39693 fi
39694
39695 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
39696 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
39697echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
39698if test "${ac_cv_lib_unicows_main+set}" = set; then
39699 echo $ECHO_N "(cached) $ECHO_C" >&6
39700else
39701 ac_check_lib_save_LIBS=$LIBS
39702LIBS="-lunicows $LIBS"
39703cat >conftest.$ac_ext <<_ACEOF
39704/* confdefs.h. */
39705_ACEOF
39706cat confdefs.h >>conftest.$ac_ext
39707cat >>conftest.$ac_ext <<_ACEOF
39708/* end confdefs.h. */
39709
39710
39711int
39712main ()
39713{
39714main ();
39715 ;
39716 return 0;
39717}
39718_ACEOF
39719rm -f conftest.$ac_objext conftest$ac_exeext
39720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39721 (eval $ac_link) 2>conftest.er1
a848cd7e 39722 ac_status=$?
ac1cb8d3
VS
39723 grep -v '^ *+' conftest.er1 >conftest.err
39724 rm -f conftest.er1
39725 cat conftest.err >&5
a848cd7e
SC
39726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39727 (exit $ac_status); } &&
6ebeb4c7 39728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39730 (eval $ac_try) 2>&5
39731 ac_status=$?
39732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39733 (exit $ac_status); }; } &&
39734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39736 (eval $ac_try) 2>&5
39737 ac_status=$?
39738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39739 (exit $ac_status); }; }; then
39740 ac_cv_lib_unicows_main=yes
39741else
39742 echo "$as_me: failed program was:" >&5
39743sed 's/^/| /' conftest.$ac_ext >&5
39744
39745ac_cv_lib_unicows_main=no
39746fi
ac1cb8d3
VS
39747rm -f conftest.err conftest.$ac_objext \
39748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39749LIBS=$ac_check_lib_save_LIBS
39750fi
39751echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
39752echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
39753if test $ac_cv_lib_unicows_main = yes; then
39754
39755 cat >>confdefs.h <<\_ACEOF
39756#define wxUSE_UNICODE_MSLU 1
39757_ACEOF
39758
39759
39760else
39761
39762 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39763 Applications will only run on Windows NT/2000/XP!" >&5
39764echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39765 Applications will only run on Windows NT/2000/XP!" >&2;}
39766 wxUSE_UNICODE_MSLU=no
39767
39768fi
39769
39770 fi
39771fi
39772
39773if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
39774 cat >>confdefs.h <<\_ACEOF
39775#define wxUSE_EXPERIMENTAL_PRINTF 1
39776_ACEOF
39777
39778fi
39779
39780
39781if test "$wxUSE_POSTSCRIPT" = "yes" ; then
39782 cat >>confdefs.h <<\_ACEOF
39783#define wxUSE_POSTSCRIPT 1
39784_ACEOF
39785
39786fi
39787
39788cat >>confdefs.h <<\_ACEOF
39789#define wxUSE_AFM_FOR_POSTSCRIPT 1
39790_ACEOF
39791
39792
39793cat >>confdefs.h <<\_ACEOF
39794#define wxUSE_NORMALIZED_PS_FONTS 1
39795_ACEOF
39796
39797
39798
39799if test "$wxUSE_CONSTRAINTS" = "yes"; then
39800 cat >>confdefs.h <<\_ACEOF
39801#define wxUSE_CONSTRAINTS 1
39802_ACEOF
39803
39804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
39805fi
39806
8a7b1113
VZ
39807if test "$wxUSE_MDI" = "yes"; then
39808 cat >>confdefs.h <<\_ACEOF
39809#define wxUSE_MDI 1
39810_ACEOF
39811
39812
39813 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39814 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39815#define wxUSE_MDI_ARCHITECTURE 1
39816_ACEOF
39817
8a7b1113
VZ
39818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
39819 fi
a848cd7e
SC
39820fi
39821
39822if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
39823 cat >>confdefs.h <<\_ACEOF
39824#define wxUSE_DOC_VIEW_ARCHITECTURE 1
39825_ACEOF
39826
39827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
39828 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
39830 fi
39831fi
39832
39833if test "$wxUSE_HELP" = "yes"; then
39834 cat >>confdefs.h <<\_ACEOF
39835#define wxUSE_HELP 1
39836_ACEOF
39837
39838 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
39839
39840 if test "$wxUSE_MSW" = 1; then
39841 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
39842 cat >>confdefs.h <<\_ACEOF
39843#define wxUSE_MS_HTML_HELP 1
39844_ACEOF
39845
39846 fi
39847 fi
39848
39849 if test "$wxUSE_WXHTML_HELP" = "yes"; then
39850 if test "$wxUSE_HTML" = "yes"; then
39851 cat >>confdefs.h <<\_ACEOF
39852#define wxUSE_WXHTML_HELP 1
39853_ACEOF
39854
39855 else
39856 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
39857echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
39858 wxUSE_WXHTML_HELP=no
39859 fi
39860 fi
39861fi
39862
39863if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39864 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39865 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
39866echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
39867 else
39868 cat >>confdefs.h <<\_ACEOF
39869#define wxUSE_PRINTING_ARCHITECTURE 1
39870_ACEOF
39871
39872 fi
39873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
39874fi
39875
39876if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
39877 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
39878echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
39879 { (exit 1); exit 1; }; }
39880fi
39881
39882
efdf6afe
VZ
39883if test "$wxUSE_METAFILE" = "yes"; then
39884 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
39885 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
39886echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
39887 wxUSE_METAFILE=no
39888 fi
39889fi
39890
39891
a848cd7e
SC
39892if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
39893 -o "$wxUSE_CLIPBOARD" = "yes" \
39894 -o "$wxUSE_OLE" = "yes" \
39895 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
39896
39897for ac_header in ole2.h
39898do
39899as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39900if eval "test \"\${$as_ac_Header+set}\" = set"; then
39901 echo "$as_me:$LINENO: checking for $ac_header" >&5
39902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39903if eval "test \"\${$as_ac_Header+set}\" = set"; then
39904 echo $ECHO_N "(cached) $ECHO_C" >&6
39905fi
39906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39907echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39908else
39909 # Is the header compilable?
39910echo "$as_me:$LINENO: checking $ac_header usability" >&5
39911echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39912cat >conftest.$ac_ext <<_ACEOF
39913/* confdefs.h. */
39914_ACEOF
39915cat confdefs.h >>conftest.$ac_ext
39916cat >>conftest.$ac_ext <<_ACEOF
39917/* end confdefs.h. */
39918$ac_includes_default
39919#include <$ac_header>
39920_ACEOF
39921rm -f conftest.$ac_objext
39922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39923 (eval $ac_compile) 2>conftest.er1
a848cd7e 39924 ac_status=$?
ac1cb8d3
VS
39925 grep -v '^ *+' conftest.er1 >conftest.err
39926 rm -f conftest.er1
39927 cat conftest.err >&5
a848cd7e
SC
39928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39929 (exit $ac_status); } &&
6ebeb4c7 39930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39932 (eval $ac_try) 2>&5
39933 ac_status=$?
39934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39935 (exit $ac_status); }; } &&
39936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39938 (eval $ac_try) 2>&5
39939 ac_status=$?
39940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39941 (exit $ac_status); }; }; then
39942 ac_header_compiler=yes
39943else
39944 echo "$as_me: failed program was:" >&5
39945sed 's/^/| /' conftest.$ac_ext >&5
39946
39947ac_header_compiler=no
39948fi
ac1cb8d3 39949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39950echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39951echo "${ECHO_T}$ac_header_compiler" >&6
39952
39953# Is the header present?
39954echo "$as_me:$LINENO: checking $ac_header presence" >&5
39955echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39956cat >conftest.$ac_ext <<_ACEOF
39957/* confdefs.h. */
39958_ACEOF
39959cat confdefs.h >>conftest.$ac_ext
39960cat >>conftest.$ac_ext <<_ACEOF
39961/* end confdefs.h. */
39962#include <$ac_header>
39963_ACEOF
39964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39966 ac_status=$?
39967 grep -v '^ *+' conftest.er1 >conftest.err
39968 rm -f conftest.er1
39969 cat conftest.err >&5
39970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39971 (exit $ac_status); } >/dev/null; then
39972 if test -s conftest.err; then
39973 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39975 else
39976 ac_cpp_err=
39977 fi
39978else
39979 ac_cpp_err=yes
39980fi
39981if test -z "$ac_cpp_err"; then
39982 ac_header_preproc=yes
39983else
39984 echo "$as_me: failed program was:" >&5
39985sed 's/^/| /' conftest.$ac_ext >&5
39986
39987 ac_header_preproc=no
39988fi
39989rm -f conftest.err conftest.$ac_ext
39990echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39991echo "${ECHO_T}$ac_header_preproc" >&6
39992
39993# So? What about this header?
ac1cb8d3
VS
39994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39995 yes:no: )
a848cd7e
SC
39996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40000 ac_header_preproc=yes
a848cd7e 40001 ;;
ac1cb8d3 40002 no:yes:* )
a848cd7e
SC
40003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
40005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40006echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40010echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
40011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
40013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
40015 (
40016 cat <<\_ASBOX
ac1cb8d3
VS
40017## ----------------------------------------- ##
40018## Report this to wx-dev@lists.wxwidgets.org ##
40019## ----------------------------------------- ##
a848cd7e
SC
40020_ASBOX
40021 ) |
40022 sed "s/^/$as_me: WARNING: /" >&2
40023 ;;
40024esac
40025echo "$as_me:$LINENO: checking for $ac_header" >&5
40026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40027if eval "test \"\${$as_ac_Header+set}\" = set"; then
40028 echo $ECHO_N "(cached) $ECHO_C" >&6
40029else
ac1cb8d3 40030 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
40031fi
40032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40034
40035fi
40036if test `eval echo '${'$as_ac_Header'}'` = yes; then
40037 cat >>confdefs.h <<_ACEOF
40038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40039_ACEOF
40040
40041fi
40042
40043done
40044
40045
40046 if test "$ac_cv_header_ole2_h" = "yes" ; then
40047 if test "$GCC" = yes ; then
40048
40049
40050 ac_ext=cc
40051ac_cpp='$CXXCPP $CPPFLAGS'
40052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40055
40056
40057 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
40058echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
40059 cat >conftest.$ac_ext <<_ACEOF
40060/* confdefs.h. */
40061_ACEOF
40062cat confdefs.h >>conftest.$ac_ext
40063cat >>conftest.$ac_ext <<_ACEOF
40064/* end confdefs.h. */
40065#include <windows.h>
40066 #include <ole2.h>
40067int
40068main ()
40069{
40070
40071 ;
40072 return 0;
40073}
40074_ACEOF
40075rm -f conftest.$ac_objext
40076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40077 (eval $ac_compile) 2>conftest.er1
a848cd7e 40078 ac_status=$?
ac1cb8d3
VS
40079 grep -v '^ *+' conftest.er1 >conftest.err
40080 rm -f conftest.er1
40081 cat conftest.err >&5
a848cd7e
SC
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'
ac1cb8d3
VS
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'
a848cd7e
SC
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 echo "$as_me:$LINENO: result: no" >&5
40097echo "${ECHO_T}no" >&6
40098else
40099 echo "$as_me: failed program was:" >&5
40100sed 's/^/| /' conftest.$ac_ext >&5
40101
40102echo "$as_me:$LINENO: result: yes" >&5
40103echo "${ECHO_T}yes" >&6
40104 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
40105fi
ac1cb8d3 40106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40107 ac_ext=c
40108ac_cpp='$CPP $CPPFLAGS'
40109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40111ac_compiler_gnu=$ac_cv_c_compiler_gnu
40112
a848cd7e
SC
40113 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
40114 if test "$wxUSE_OLE" = "yes" ; then
40115 cat >>confdefs.h <<\_ACEOF
40116#define wxUSE_OLE 1
40117_ACEOF
40118
0b78747f 40119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
40120 fi
40121 fi
40122
40123 if test "$wxUSE_DATAOBJ" = "yes" ; then
40124 cat >>confdefs.h <<\_ACEOF
40125#define wxUSE_DATAOBJ 1
40126_ACEOF
40127
40128 fi
40129 else
40130 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
40131echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
40132
40133 wxUSE_CLIPBOARD=no
40134 wxUSE_DRAG_AND_DROP=no
40135 wxUSE_DATAOBJ=no
40136 wxUSE_OLE=no
40137 fi
40138
40139 if test "$wxUSE_METAFILE" = "yes"; then
40140 cat >>confdefs.h <<\_ACEOF
40141#define wxUSE_METAFILE 1
40142_ACEOF
40143
40144
40145 cat >>confdefs.h <<\_ACEOF
40146#define wxUSE_ENH_METAFILE 1
40147_ACEOF
40148
40149 fi
40150fi
40151
40152if test "$wxUSE_IPC" = "yes"; then
0b78747f 40153 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
40154 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
40155echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 40156 wxUSE_IPC=no
a848cd7e
SC
40157 fi
40158
0b78747f
MW
40159 if test "$wxUSE_IPC" = "yes"; then
40160 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40161#define wxUSE_IPC 1
40162_ACEOF
40163
0b78747f
MW
40164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
40165 fi
a848cd7e
SC
40166fi
40167
eb730a0c 40168if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
40169 if test "$wxUSE_MGL" = 1; then
40170 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
40171echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
40172 wxUSE_DATAOBJ=no
40173 else
40174 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
40175#define wxUSE_DATAOBJ 1
40176_ACEOF
40177
2113bc77 40178 fi
eb730a0c
JS
40179else
40180 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
40181echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
40182 wxUSE_CLIPBOARD=no
40183 wxUSE_DRAG_AND_DROP=no
40184fi
40185
a848cd7e
SC
40186if test "$wxUSE_CLIPBOARD" = "yes"; then
40187 if test "$wxUSE_MGL" = 1; then
40188 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
40189echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
40190 wxUSE_CLIPBOARD=no
40191 fi
40192
40193 if test "$wxUSE_CLIPBOARD" = "yes"; then
40194 cat >>confdefs.h <<\_ACEOF
40195#define wxUSE_CLIPBOARD 1
40196_ACEOF
40197
a848cd7e
SC
40198 fi
40199fi
40200
40201if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
40202 if test "$wxUSE_GTK" = 1; then
40203 if test "$WXGTK12" != 1; then
40204 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
40205echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
40206 wxUSE_DRAG_AND_DROP=no
40207 fi
40208 fi
40209
40210 if test "$wxUSE_MOTIF" = 1; then
40211 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
40212echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
40213 wxUSE_DRAG_AND_DROP=no
40214 fi
40215
40216 if test "$wxUSE_X11" = 1; then
40217 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
40218echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
40219 wxUSE_DRAG_AND_DROP=no
40220 fi
40221
40222 if test "$wxUSE_MGL" = 1; then
40223 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
40224echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
40225 wxUSE_DRAG_AND_DROP=no
40226 fi
40227
40228 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
40229 cat >>confdefs.h <<\_ACEOF
40230#define wxUSE_DRAG_AND_DROP 1
40231_ACEOF
40232
40233 fi
40234
40235fi
40236
40237if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
40238 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
40239fi
40240
40241if test "$wxUSE_SPLINES" = "yes" ; then
40242 cat >>confdefs.h <<\_ACEOF
40243#define wxUSE_SPLINES 1
40244_ACEOF
40245
40246fi
40247
fbe2ca43
SN
40248if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
40249 cat >>confdefs.h <<\_ACEOF
40250#define wxUSE_MOUSEWHEEL 1
40251_ACEOF
40252
40253fi
40254
a848cd7e
SC
40255
40256USES_CONTROLS=0
40257if test "$wxUSE_CONTROLS" = "yes"; then
40258 USES_CONTROLS=1
40259fi
40260
40261if test "$wxUSE_ACCEL" = "yes"; then
40262 cat >>confdefs.h <<\_ACEOF
40263#define wxUSE_ACCEL 1
40264_ACEOF
40265
40266 USES_CONTROLS=1
40267fi
40268
40269if test "$wxUSE_BUTTON" = "yes"; then
40270 cat >>confdefs.h <<\_ACEOF
40271#define wxUSE_BUTTON 1
40272_ACEOF
40273
40274 USES_CONTROLS=1
40275fi
40276
40277if test "$wxUSE_BMPBUTTON" = "yes"; then
40278 cat >>confdefs.h <<\_ACEOF
40279#define wxUSE_BMPBUTTON 1
40280_ACEOF
40281
40282 USES_CONTROLS=1
40283fi
40284
40285if test "$wxUSE_CALCTRL" = "yes"; then
40286 cat >>confdefs.h <<\_ACEOF
40287#define wxUSE_CALENDARCTRL 1
40288_ACEOF
40289
40290 USES_CONTROLS=1
40291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
40292fi
40293
40294if test "$wxUSE_CARET" = "yes"; then
40295 cat >>confdefs.h <<\_ACEOF
40296#define wxUSE_CARET 1
40297_ACEOF
40298
40299 USES_CONTROLS=1
40300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
40301fi
40302
40303if test "$wxUSE_COMBOBOX" = "yes"; then
40304 cat >>confdefs.h <<\_ACEOF
40305#define wxUSE_COMBOBOX 1
40306_ACEOF
40307
40308 USES_CONTROLS=1
40309fi
40310
40311if test "$wxUSE_CHOICE" = "yes"; then
40312 cat >>confdefs.h <<\_ACEOF
40313#define wxUSE_CHOICE 1
40314_ACEOF
40315
40316 USES_CONTROLS=1
40317fi
40318
92bbdbcd
WS
40319if test "$wxUSE_CHOICEBOOK" = "yes"; then
40320 cat >>confdefs.h <<\_ACEOF
40321#define wxUSE_CHOICEBOOK 1
40322_ACEOF
40323
40324 USES_CONTROLS=1
40325fi
40326
a848cd7e
SC
40327if test "$wxUSE_CHECKBOX" = "yes"; then
40328 cat >>confdefs.h <<\_ACEOF
40329#define wxUSE_CHECKBOX 1
40330_ACEOF
40331
40332 USES_CONTROLS=1
40333fi
40334
40335if test "$wxUSE_CHECKLST" = "yes"; then
40336 cat >>confdefs.h <<\_ACEOF
40337#define wxUSE_CHECKLISTBOX 1
40338_ACEOF
40339
40340 USES_CONTROLS=1
40341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
40342fi
40343
da98e9be
VZ
40344if test "$wxUSE_DATEPICKCTRL" = "yes"; then
40345 cat >>confdefs.h <<\_ACEOF
40346#define wxUSE_DATEPICKCTRL 1
40347_ACEOF
40348
40349 USES_CONTROLS=1
40350fi
40351
a848cd7e
SC
40352if test "$wxUSE_DISPLAY" = "yes"; then
40353 cat >>confdefs.h <<\_ACEOF
40354#define wxUSE_DISPLAY 1
40355_ACEOF
40356
0b78747f 40357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
40358fi
40359
40360if test "$wxUSE_GAUGE" = "yes"; then
40361 cat >>confdefs.h <<\_ACEOF
40362#define wxUSE_GAUGE 1
40363_ACEOF
40364
40365 USES_CONTROLS=1
40366fi
40367
40368if test "$wxUSE_GRID" = "yes"; then
40369 cat >>confdefs.h <<\_ACEOF
40370#define wxUSE_GRID 1
40371_ACEOF
40372
40373 USES_CONTROLS=1
40374 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
40375fi
40376
40377if test "$wxUSE_IMAGLIST" = "yes"; then
40378 cat >>confdefs.h <<\_ACEOF
40379#define wxUSE_IMAGLIST 1
40380_ACEOF
40381
40382fi
40383
40384if test "$wxUSE_LISTBOOK" = "yes"; then
40385 cat >>confdefs.h <<\_ACEOF
40386#define wxUSE_LISTBOOK 1
40387_ACEOF
40388
40389 USES_CONTROLS=1
40390fi
40391
40392if test "$wxUSE_LISTBOX" = "yes"; then
40393 cat >>confdefs.h <<\_ACEOF
40394#define wxUSE_LISTBOX 1
40395_ACEOF
40396
40397 USES_CONTROLS=1
0b78747f 40398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
40399fi
40400
40401if test "$wxUSE_LISTCTRL" = "yes"; then
40402 if test "$wxUSE_IMAGLIST" = "yes"; then
40403 cat >>confdefs.h <<\_ACEOF
40404#define wxUSE_LISTCTRL 1
40405_ACEOF
40406
40407 USES_CONTROLS=1
40408 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
40409 else
40410 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
40411echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
40412 fi
40413fi
40414
40415if test "$wxUSE_NOTEBOOK" = "yes"; then
40416 cat >>confdefs.h <<\_ACEOF
40417#define wxUSE_NOTEBOOK 1
40418_ACEOF
40419
40420 USES_CONTROLS=1
40421 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
40422fi
40423
40424
40425if test "$wxUSE_RADIOBOX" = "yes"; then
40426 cat >>confdefs.h <<\_ACEOF
40427#define wxUSE_RADIOBOX 1
40428_ACEOF
40429
40430 USES_CONTROLS=1
40431fi
40432
40433if test "$wxUSE_RADIOBTN" = "yes"; then
40434 cat >>confdefs.h <<\_ACEOF
40435#define wxUSE_RADIOBTN 1
40436_ACEOF
40437
40438 USES_CONTROLS=1
40439fi
40440
40441if test "$wxUSE_SASH" = "yes"; then
40442 cat >>confdefs.h <<\_ACEOF
40443#define wxUSE_SASH 1
40444_ACEOF
40445
40446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
40447fi
40448
40449if test "$wxUSE_SCROLLBAR" = "yes"; then
40450 cat >>confdefs.h <<\_ACEOF
40451#define wxUSE_SCROLLBAR 1
40452_ACEOF
40453
40454 USES_CONTROLS=1
40455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
40456fi
40457
40458if test "$wxUSE_SLIDER" = "yes"; then
40459 cat >>confdefs.h <<\_ACEOF
40460#define wxUSE_SLIDER 1
40461_ACEOF
40462
40463 USES_CONTROLS=1
40464fi
40465
40466if test "$wxUSE_SPINBTN" = "yes"; then
40467 cat >>confdefs.h <<\_ACEOF
40468#define wxUSE_SPINBTN 1
40469_ACEOF
40470
40471 USES_CONTROLS=1
40472fi
40473
40474if test "$wxUSE_SPINCTRL" = "yes"; then
40475 cat >>confdefs.h <<\_ACEOF
40476#define wxUSE_SPINCTRL 1
40477_ACEOF
40478
40479 USES_CONTROLS=1
40480fi
40481
40482if test "$wxUSE_SPLITTER" = "yes"; then
40483 cat >>confdefs.h <<\_ACEOF
40484#define wxUSE_SPLITTER 1
40485_ACEOF
40486
40487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
40488fi
40489
40490if test "$wxUSE_STATBMP" = "yes"; then
40491 cat >>confdefs.h <<\_ACEOF
40492#define wxUSE_STATBMP 1
40493_ACEOF
40494
40495 USES_CONTROLS=1
40496fi
40497
40498if test "$wxUSE_STATBOX" = "yes"; then
40499 cat >>confdefs.h <<\_ACEOF
40500#define wxUSE_STATBOX 1
40501_ACEOF
40502
40503 USES_CONTROLS=1
40504fi
40505
40506if test "$wxUSE_STATTEXT" = "yes"; then
40507 cat >>confdefs.h <<\_ACEOF
40508#define wxUSE_STATTEXT 1
40509_ACEOF
40510
40511 USES_CONTROLS=1
40512fi
40513
40514if test "$wxUSE_STATLINE" = "yes"; then
40515 cat >>confdefs.h <<\_ACEOF
40516#define wxUSE_STATLINE 1
40517_ACEOF
40518
40519 USES_CONTROLS=1
40520fi
40521
40522if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
40523 cat >>confdefs.h <<\_ACEOF
40524#define wxUSE_NATIVE_STATUSBAR 1
40525_ACEOF
40526
a848cd7e
SC
40527 cat >>confdefs.h <<\_ACEOF
40528#define wxUSE_STATUSBAR 1
40529_ACEOF
40530
40531 USES_CONTROLS=1
40532
40533 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
40534fi
40535
40536if test "$wxUSE_TABDIALOG" = "yes"; then
40537 cat >>confdefs.h <<\_ACEOF
40538#define wxUSE_TAB_DIALOG 1
40539_ACEOF
40540
a848cd7e
SC
40541fi
40542
40543if test "$wxUSE_TEXTCTRL" = "yes"; then
40544 cat >>confdefs.h <<\_ACEOF
40545#define wxUSE_TEXTCTRL 1
40546_ACEOF
40547
40548 USES_CONTROLS=1
40549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
40550fi
40551
40552if test "$wxUSE_TOGGLEBTN" = "yes"; then
40553 if test "$wxUSE_COCOA" = 1 ; then
40554 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
40555echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
40556 wxUSE_TOGGLEBTN=no
40557 fi
40558 if test "$wxUSE_UNIVERSAL" = "yes"; then
40559 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
40560echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
40561 wxUSE_TOGGLEBTN=no
40562 fi
40563
40564 if test "$wxUSE_TOGGLEBTN" = "yes"; then
40565 cat >>confdefs.h <<\_ACEOF
40566#define wxUSE_TOGGLEBTN 1
40567_ACEOF
40568
40569 USES_CONTROLS=1
40570 fi
40571fi
40572
40573if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
40574 cat >>confdefs.h <<\_ACEOF
40575#define wxUSE_TOOLBAR_SIMPLE 1
40576_ACEOF
40577
40578 wxUSE_TOOLBAR="yes"
40579 USES_CONTROLS=1
40580fi
40581
40582if test "$wxUSE_TOOLBAR" = "yes"; then
40583 cat >>confdefs.h <<\_ACEOF
40584#define wxUSE_TOOLBAR 1
40585_ACEOF
40586
40587 USES_CONTROLS=1
40588
40589 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
40590 wxUSE_TOOLBAR_NATIVE="yes"
40591 fi
40592
40593 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
40594 cat >>confdefs.h <<\_ACEOF
40595#define wxUSE_TOOLBAR_NATIVE 1
40596_ACEOF
40597
40598 USES_CONTROLS=1
40599 fi
40600
40601 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
40602fi
40603
40604if test "$wxUSE_TOOLTIPS" = "yes"; then
40605 if test "$wxUSE_MOTIF" = 1; then
40606 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
40607echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
40608 else
40609 if test "$wxUSE_UNIVERSAL" = "yes"; then
40610 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
40611echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
40612 else
40613 cat >>confdefs.h <<\_ACEOF
40614#define wxUSE_TOOLTIPS 1
40615_ACEOF
40616
40617 fi
40618 fi
40619fi
40620
40621if test "$wxUSE_TREECTRL" = "yes"; then
40622 if test "$wxUSE_IMAGLIST" = "yes"; then
40623 cat >>confdefs.h <<\_ACEOF
40624#define wxUSE_TREECTRL 1
40625_ACEOF
40626
40627 USES_CONTROLS=1
40628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
40629 else
40630 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
40631echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
40632 fi
40633fi
40634
40635if test "$wxUSE_POPUPWIN" = "yes"; then
40636 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40637 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
40638echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
40639 else
40640 if test "$wxUSE_PM" = 1; then
40641 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
40642echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
40643 else
40644 cat >>confdefs.h <<\_ACEOF
40645#define wxUSE_POPUPWIN 1
40646_ACEOF
40647
0b78747f 40648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
40649
40650 USES_CONTROLS=1
40651 fi
40652 fi
40653fi
40654
0dcd06dd 40655if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
40656 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40657 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
40658echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
40659 else
40660 cat >>confdefs.h <<\_ACEOF
40661#define wxUSE_DIALUP_MANAGER 1
40662_ACEOF
40663
40664 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
40665 fi
40666fi
40667
a848cd7e
SC
40668if test "$wxUSE_TIPWINDOW" = "yes"; then
40669 if test "$wxUSE_PM" = 1; then
40670 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
40671echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
40672 else
40673 cat >>confdefs.h <<\_ACEOF
40674#define wxUSE_TIPWINDOW 1
40675_ACEOF
40676
40677 fi
40678fi
40679
40680if test "$USES_CONTROLS" = 1; then
40681 cat >>confdefs.h <<\_ACEOF
40682#define wxUSE_CONTROLS 1
40683_ACEOF
40684
40685fi
40686
40687
40688if test "$wxUSE_ACCESSIBILITY" = "yes"; then
40689 cat >>confdefs.h <<\_ACEOF
40690#define wxUSE_ACCESSIBILITY 1
40691_ACEOF
40692
40693 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
40694fi
40695
38b4a946
VZ
40696if test "$wxUSE_DC_CACHEING" = "yes"; then
40697 cat >>confdefs.h <<\_ACEOF
40698#define wxUSE_DC_CACHEING 1
40699_ACEOF
40700
40701fi
40702
a848cd7e
SC
40703if test "$wxUSE_DRAGIMAGE" = "yes"; then
40704 cat >>confdefs.h <<\_ACEOF
40705#define wxUSE_DRAGIMAGE 1
40706_ACEOF
40707
40708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
40709fi
40710
40711if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
40712 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40713 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
40714echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
40715 else
40716 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40717#define wxUSE_EXCEPTIONS 1
40718_ACEOF
40719
07bea8f0
VS
40720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
40721 fi
a848cd7e
SC
40722fi
40723
40724USE_HTML=0
40725if test "$wxUSE_HTML" = "yes"; then
40726 cat >>confdefs.h <<\_ACEOF
40727#define wxUSE_HTML 1
40728_ACEOF
40729
40730 USE_HTML=1
40731 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
40732 if test "$wxUSE_MAC" = 1; then
40733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
40734 fi
a848cd7e 40735fi
646b6ec1 40736if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 40737 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
40738 old_CPPFLAGS="$CPPFLAGS"
40739 CPPFLAGS="$CPPFLAGS -x objective-c++"
40740 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
40741echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
40742if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
40743 echo $ECHO_N "(cached) $ECHO_C" >&6
40744else
40745 cat >conftest.$ac_ext <<_ACEOF
40746/* confdefs.h. */
40747_ACEOF
40748cat confdefs.h >>conftest.$ac_ext
40749cat >>conftest.$ac_ext <<_ACEOF
40750/* end confdefs.h. */
40751#include <Carbon/Carbon.h>
40752
40753#include <WebKit/HIWebView.h>
40754_ACEOF
40755rm -f conftest.$ac_objext
40756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40757 (eval $ac_compile) 2>conftest.er1
40758 ac_status=$?
40759 grep -v '^ *+' conftest.er1 >conftest.err
40760 rm -f conftest.er1
40761 cat conftest.err >&5
40762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40763 (exit $ac_status); } &&
6ebeb4c7 40764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
40765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40766 (eval $ac_try) 2>&5
40767 ac_status=$?
40768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40769 (exit $ac_status); }; } &&
40770 { ac_try='test -s conftest.$ac_objext'
40771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40772 (eval $ac_try) 2>&5
40773 ac_status=$?
40774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40775 (exit $ac_status); }; }; then
40776 ac_cv_header_WebKit_HIWebView_h=yes
40777else
40778 echo "$as_me: failed program was:" >&5
40779sed 's/^/| /' conftest.$ac_ext >&5
40780
40781ac_cv_header_WebKit_HIWebView_h=no
40782fi
40783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40784fi
40785echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
40786echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
40787if test $ac_cv_header_WebKit_HIWebView_h = yes; then
40788
40789 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
40790#define wxUSE_WEBKIT 1
40791_ACEOF
40792
07bea8f0
VS
40793 WEBKIT_LINK="-framework WebKit"
40794
40795else
40796
40797 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
40798echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
40799 wxUSE_WEBKIT=no
40800
646b6ec1
VS
40801fi
40802
07bea8f0
VS
40803
40804 CPPFLAGS="$old_CPPFLAGS"
40805 elif test "$wxUSE_COCOA" = 1; then
40806 cat >>confdefs.h <<\_ACEOF
40807#define wxUSE_WEBKIT 1
40808_ACEOF
40809
40810 else
40811 wxUSE_WEBKIT=no
40812 fi
40813fi
40814
9a8f0513
VS
40815USE_XRC=0
40816if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
40817 if test "$wxUSE_XML" != "yes"; then
40818 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
40819echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
40820 wxUSE_XRC=no
40821 else
40822 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
40823#define wxUSE_XRC 1
40824_ACEOF
40825
d2ebf0b7
VS
40826 USE_XRC=1
40827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
40828 fi
9a8f0513 40829fi
07bea8f0 40830
a848cd7e
SC
40831if test "$wxUSE_MENUS" = "yes"; then
40832 cat >>confdefs.h <<\_ACEOF
40833#define wxUSE_MENUS 1
40834_ACEOF
40835
40836 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
40837fi
40838
40839if test "$wxUSE_METAFILE" = "yes"; then
40840 cat >>confdefs.h <<\_ACEOF
40841#define wxUSE_METAFILE 1
40842_ACEOF
40843
40844fi
40845
40846if test "$wxUSE_MIMETYPE" = "yes"; then
40847 cat >>confdefs.h <<\_ACEOF
40848#define wxUSE_MIMETYPE 1
40849_ACEOF
40850
40851fi
40852
40853if test "$wxUSE_MINIFRAME" = "yes"; then
40854 cat >>confdefs.h <<\_ACEOF
40855#define wxUSE_MINIFRAME 1
40856_ACEOF
40857
40858 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
40859fi
40860
40861if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
40862 cat >>confdefs.h <<\_ACEOF
40863#define wxUSE_SYSTEM_OPTIONS 1
40864_ACEOF
40865
40866 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 40867 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
40868 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
40869 fi
40870fi
40871
40872
40873if test "$wxUSE_VALIDATORS" = "yes"; then
40874 cat >>confdefs.h <<\_ACEOF
40875#define wxUSE_VALIDATORS 1
40876_ACEOF
40877
40878 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
40879fi
40880
40881if test "$wxUSE_PALETTE" = "yes" ; then
40882 cat >>confdefs.h <<\_ACEOF
40883#define wxUSE_PALETTE 1
40884_ACEOF
40885
40886fi
40887
40888if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
40889 LIBS=" -lunicows $LIBS"
40890fi
40891
40892
40893if test "$wxUSE_IMAGE" = "yes" ; then
40894 cat >>confdefs.h <<\_ACEOF
40895#define wxUSE_IMAGE 1
40896_ACEOF
40897
40898
40899 if test "$wxUSE_GIF" = "yes" ; then
40900 cat >>confdefs.h <<\_ACEOF
40901#define wxUSE_GIF 1
40902_ACEOF
40903
40904 fi
40905
40906 if test "$wxUSE_PCX" = "yes" ; then
40907 cat >>confdefs.h <<\_ACEOF
40908#define wxUSE_PCX 1
40909_ACEOF
40910
40911 fi
40912
40913 if test "$wxUSE_IFF" = "yes" ; then
40914 cat >>confdefs.h <<\_ACEOF
40915#define wxUSE_IFF 1
40916_ACEOF
40917
40918 fi
40919
40920 if test "$wxUSE_PNM" = "yes" ; then
40921 cat >>confdefs.h <<\_ACEOF
40922#define wxUSE_PNM 1
40923_ACEOF
40924
40925 fi
40926
40927 if test "$wxUSE_XPM" = "yes" ; then
40928 cat >>confdefs.h <<\_ACEOF
40929#define wxUSE_XPM 1
40930_ACEOF
40931
40932 fi
40933
40934 if test "$wxUSE_ICO_CUR" = "yes" ; then
40935 cat >>confdefs.h <<\_ACEOF
40936#define wxUSE_ICO_CUR 1
40937_ACEOF
40938
40939 fi
40940fi
40941
40942
40943if test "$wxUSE_CHOICEDLG" = "yes"; then
40944 cat >>confdefs.h <<\_ACEOF
40945#define wxUSE_CHOICEDLG 1
40946_ACEOF
40947
40948fi
40949
40950if test "$wxUSE_COLOURDLG" = "yes"; then
40951 cat >>confdefs.h <<\_ACEOF
40952#define wxUSE_COLOURDLG 1
40953_ACEOF
40954
40955fi
40956
40957if test "$wxUSE_FILEDLG" = "yes"; then
40958 cat >>confdefs.h <<\_ACEOF
40959#define wxUSE_FILEDLG 1
40960_ACEOF
40961
40962fi
40963
40964if test "$wxUSE_FINDREPLDLG" = "yes"; then
40965 cat >>confdefs.h <<\_ACEOF
40966#define wxUSE_FINDREPLDLG 1
40967_ACEOF
40968
40969fi
40970
40971if test "$wxUSE_FONTDLG" = "yes"; then
40972 cat >>confdefs.h <<\_ACEOF
40973#define wxUSE_FONTDLG 1
40974_ACEOF
40975
40976fi
40977
40978if test "$wxUSE_DIRDLG" = "yes"; then
40979 if test "$wxUSE_TREECTRL" != "yes"; then
40980 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
40981echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
40982 else
40983 cat >>confdefs.h <<\_ACEOF
40984#define wxUSE_DIRDLG 1
40985_ACEOF
40986
40987 fi
40988fi
40989
40990if test "$wxUSE_MSGDLG" = "yes"; then
40991 cat >>confdefs.h <<\_ACEOF
40992#define wxUSE_MSGDLG 1
40993_ACEOF
40994
40995fi
40996
40997if test "$wxUSE_NUMBERDLG" = "yes"; then
40998 cat >>confdefs.h <<\_ACEOF
40999#define wxUSE_NUMBERDLG 1
41000_ACEOF
41001
41002fi
41003
41004if test "$wxUSE_PROGRESSDLG" = "yes"; then
41005 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41006 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
41007echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
41008 else
41009 cat >>confdefs.h <<\_ACEOF
41010#define wxUSE_PROGRESSDLG 1
41011_ACEOF
41012
41013 fi
41014fi
41015
41016if test "$wxUSE_SPLASH" = "yes"; then
41017 cat >>confdefs.h <<\_ACEOF
41018#define wxUSE_SPLASH 1
41019_ACEOF
41020
2057db16 41021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
41022fi
41023
41024if test "$wxUSE_STARTUP_TIPS" = "yes"; then
41025 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41026 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
41027echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
41028 else
41029 cat >>confdefs.h <<\_ACEOF
41030#define wxUSE_STARTUP_TIPS 1
41031_ACEOF
41032
41033 fi
41034fi
41035
41036if test "$wxUSE_TEXTDLG" = "yes"; then
41037 cat >>confdefs.h <<\_ACEOF
41038#define wxUSE_TEXTDLG 1
41039_ACEOF
41040
41041fi
41042
41043if test "$wxUSE_WIZARDDLG" = "yes"; then
41044 cat >>confdefs.h <<\_ACEOF
41045#define wxUSE_WIZARDDLG 1
41046_ACEOF
41047
41048 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
41049fi
41050
41051
ce756cb0 41052if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
41053 if test "$wxUSE_GTK" = 1; then
41054 wxUSE_GSTREAMER="yes"
41055
ce756cb0 41056
dae87f93 41057 succeeded=no
ce756cb0 41058
dae87f93
RN
41059 if test -z "$PKG_CONFIG"; then
41060 # Extract the first word of "pkg-config", so it can be a program name with args.
41061set dummy pkg-config; ac_word=$2
41062echo "$as_me:$LINENO: checking for $ac_word" >&5
41063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41064if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41065 echo $ECHO_N "(cached) $ECHO_C" >&6
41066else
41067 case $PKG_CONFIG in
41068 [\\/]* | ?:[\\/]*)
41069 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41070 ;;
41071 *)
41072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41073for as_dir in $PATH
41074do
41075 IFS=$as_save_IFS
41076 test -z "$as_dir" && as_dir=.
41077 for ac_exec_ext in '' $ac_executable_extensions; do
41078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41079 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41081 break 2
41082 fi
41083done
41084done
41085
41086 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41087 ;;
41088esac
41089fi
41090PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41091
41092if test -n "$PKG_CONFIG"; then
41093 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41094echo "${ECHO_T}$PKG_CONFIG" >&6
41095else
41096 echo "$as_me:$LINENO: result: no" >&5
41097echo "${ECHO_T}no" >&6
41098fi
41099
41100 fi
41101
41102 if test "$PKG_CONFIG" = "no" ; then
41103 echo "*** The pkg-config script could not be found. Make sure it is"
41104 echo "*** in your path, or set the PKG_CONFIG environment variable"
41105 echo "*** to the full path to pkg-config."
41106 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41107 else
41108 PKG_CONFIG_MIN_VERSION=0.9.0
41109 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41110 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
41111echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
41112
41113 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
41114 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 41115echo "${ECHO_T}yes" >&6
dae87f93 41116 succeeded=yes
ce756cb0 41117
dae87f93
RN
41118 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
41119echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
41120 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
41121 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
41122echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
41123
41124 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
41125echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
41126 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
41127 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
41128echo "${ECHO_T}$GSTREAMER_LIBS" >&6
41129 else
41130 GSTREAMER_CFLAGS=""
41131 GSTREAMER_LIBS=""
41132 ## If we have a custom action on failure, don't print errors, but
41133 ## do set a variable so people can do so.
41134 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 41135
dae87f93
RN
41136 fi
41137
41138
41139
41140 else
41141 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41142 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41143 fi
41144 fi
41145
41146 if test $succeeded = yes; then
41147
41148 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
41149 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 41150
ce756cb0 41151 else
dae87f93
RN
41152
41153 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
41154echo "$as_me: WARNING: GStreamer installation not found" >&2;}
41155 wxUSE_GSTREAMER="no"
41156
41157 fi
41158
41159
41160
41161
41162
41163 if test "x$GST_INSPECT" == "x"; then
41164 # Extract the first word of "gst-inspect", so it can be a program name with args.
41165set dummy gst-inspect; ac_word=$2
41166echo "$as_me:$LINENO: checking for $ac_word" >&5
41167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41168if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
41169 echo $ECHO_N "(cached) $ECHO_C" >&6
41170else
41171 if test -n "$GST_INSPECT"; then
41172 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
41173else
41174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41175for as_dir in $PATH
41176do
41177 IFS=$as_save_IFS
41178 test -z "$as_dir" && as_dir=.
41179 for ac_exec_ext in '' $ac_executable_extensions; do
41180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41181 ac_cv_prog_GST_INSPECT="gst-inspect"
41182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41183 break 2
ce756cb0 41184 fi
dae87f93
RN
41185done
41186done
41187
41188fi
41189fi
41190GST_INSPECT=$ac_cv_prog_GST_INSPECT
41191if test -n "$GST_INSPECT"; then
41192 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
41193echo "${ECHO_T}$GST_INSPECT" >&6
41194else
41195 echo "$as_me:$LINENO: result: no" >&5
41196echo "${ECHO_T}no" >&6
41197fi
41198
41199 fi
41200
41201 if test "x$GST_INSPECT" != "x"; then
41202 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
41203echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
41204 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
41205 echo "$as_me:$LINENO: result: found." >&5
41206echo "${ECHO_T}found." >&6
ce756cb0 41207
ce756cb0 41208 else
dae87f93
RN
41209 echo "$as_me:$LINENO: result: not found." >&5
41210echo "${ECHO_T}not found." >&6
41211
41212 wxUSE_GSTREAMER="no"
41213 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
41214echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
41215
41216 fi
41217 fi
41218
41219
41220 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
41221echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
41222if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
41223 echo $ECHO_N "(cached) $ECHO_C" >&6
41224else
41225 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
41226/* confdefs.h. */
41227_ACEOF
41228cat confdefs.h >>conftest.$ac_ext
41229cat >>conftest.$ac_ext <<_ACEOF
41230/* end confdefs.h. */
dae87f93 41231#include <gst/gst.h>
ce756cb0 41232
dae87f93 41233#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
41234_ACEOF
41235rm -f conftest.$ac_objext
41236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41237 (eval $ac_compile) 2>conftest.er1
41238 ac_status=$?
41239 grep -v '^ *+' conftest.er1 >conftest.err
41240 rm -f conftest.er1
41241 cat conftest.err >&5
41242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41243 (exit $ac_status); } &&
6ebeb4c7 41244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
41245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41246 (eval $ac_try) 2>&5
41247 ac_status=$?
41248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41249 (exit $ac_status); }; } &&
41250 { ac_try='test -s conftest.$ac_objext'
41251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41252 (eval $ac_try) 2>&5
41253 ac_status=$?
41254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41255 (exit $ac_status); }; }; then
dae87f93 41256 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
41257else
41258 echo "$as_me: failed program was:" >&5
41259sed 's/^/| /' conftest.$ac_ext >&5
41260
dae87f93 41261ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
41262fi
41263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
41264fi
41265echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
41266echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
41267if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
41268 :
41269else
ce756cb0 41270
dae87f93
RN
41271 wxUSE_GSTREAMER="no"
41272 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
41273echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 41274
dae87f93 41275fi
ce756cb0 41276
dae87f93
RN
41277
41278
41279 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
41280echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
41281
41282ac_find_libraries=
41283for ac_dir in $SEARCH_LIB /usr/lib;
41284 do
3eca31dc 41285 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
41286 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
41287 ac_find_libraries=$ac_dir
41288 break 2
41289 fi
41290 done
41291 done
41292
ce756cb0 41293
dae87f93
RN
41294 if test "$ac_find_libraries" = "" ; then
41295 echo "$as_me:$LINENO: result: no" >&5
41296echo "${ECHO_T}no" >&6
41297 wxUSE_GSTREAMER="no"
41298 else
41299 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 41300echo "${ECHO_T}yes" >&6
dae87f93 41301 fi
ce756cb0 41302
dae87f93
RN
41303 if test "$wxUSE_GSTREAMER" = "yes"; then
41304 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
41305#define wxUSE_GSTREAMER 1
41306_ACEOF
41307
dae87f93
RN
41308 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
41309echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
41310 fi
41311 fi
41312 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
41313 cat >>confdefs.h <<\_ACEOF
41314#define wxUSE_MEDIACTRL 1
41315_ACEOF
41316
41317fi
41318
41319
a848cd7e
SC
41320if test "$cross_compiling" = "yes"; then
41321 OSINFO="\"$host\""
41322else
41323 OSINFO=`uname -s -r -m`
41324 OSINFO="\"$OSINFO\""
41325fi
41326
41327cat >>confdefs.h <<_ACEOF
41328#define WXWIN_OS_DESCRIPTION $OSINFO
41329_ACEOF
41330
41331
41332
41333if test "x$prefix" != "xNONE"; then
41334 wxPREFIX=$prefix
41335else
41336 wxPREFIX=$ac_default_prefix
41337fi
41338
41339cat >>confdefs.h <<_ACEOF
41340#define wxINSTALL_PREFIX "$wxPREFIX"
41341_ACEOF
41342
41343
a848cd7e
SC
41344
41345
41346CORE_BASE_LIBS="net base"
41347CORE_GUI_LIBS="adv core"
41348
41349if test "$wxUSE_XML" = "yes" ; then
41350 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
41351fi
41352if test "$wxUSE_ODBC" != "no" ; then
41353 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
41354 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
41355fi
41356if test "$wxUSE_HTML" = "yes" ; then
41357 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
41358fi
61639efb
VZ
41359if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41360 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
41361fi
9a8f0513
VS
41362if test "$wxUSE_XRC" = "yes" ; then
41363 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
41364fi
a848cd7e
SC
41365
41366if test "$wxUSE_GUI" != "yes"; then
41367 CORE_GUI_LIBS=""
41368fi
41369
41370
41371
41372
41373
41374
41375
41376
41377if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 41378 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
41379 if test "$USE_DARWIN" = 1; then
41380 LDFLAGS="$LDFLAGS -framework QuickTime"
41381 else
41382 LDFLAGS="$LDFLAGS -lQuickTimeLib"
41383 fi
07bea8f0 41384 fi
5dcf30a0 41385 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
41386 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
41387 else
41388 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 41389 fi
a848cd7e
SC
41390fi
41391if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 41392 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
41393 if test "$wxUSE_MEDIACTRL" = "yes"; then
41394 LDFLAGS="$LDFLAGS -framework QuickTime"
41395 fi
a848cd7e 41396fi
19b27e78
MW
41397if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
41398 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
41399fi
a848cd7e
SC
41400
41401
41402LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
41403
41404have_cos=0
41405have_floor=0
41406
41407for ac_func in cos
41408do
41409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41410echo "$as_me:$LINENO: checking for $ac_func" >&5
41411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41412if eval "test \"\${$as_ac_var+set}\" = set"; then
41413 echo $ECHO_N "(cached) $ECHO_C" >&6
41414else
41415 cat >conftest.$ac_ext <<_ACEOF
41416/* confdefs.h. */
41417_ACEOF
41418cat confdefs.h >>conftest.$ac_ext
41419cat >>conftest.$ac_ext <<_ACEOF
41420/* end confdefs.h. */
ac1cb8d3
VS
41421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41423#define $ac_func innocuous_$ac_func
41424
a848cd7e
SC
41425/* System header to define __stub macros and hopefully few prototypes,
41426 which can conflict with char $ac_func (); below.
41427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41428 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41429
a848cd7e
SC
41430#ifdef __STDC__
41431# include <limits.h>
41432#else
41433# include <assert.h>
41434#endif
ac1cb8d3
VS
41435
41436#undef $ac_func
41437
a848cd7e
SC
41438/* Override any gcc2 internal prototype to avoid an error. */
41439#ifdef __cplusplus
41440extern "C"
41441{
41442#endif
41443/* We use char because int might match the return type of a gcc2
41444 builtin and then its argument prototype would still apply. */
41445char $ac_func ();
41446/* The GNU C library defines this for functions which it implements
41447 to always fail with ENOSYS. Some functions are actually named
41448 something starting with __ and the normal name is an alias. */
41449#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41450choke me
41451#else
41452char (*f) () = $ac_func;
41453#endif
41454#ifdef __cplusplus
41455}
41456#endif
41457
41458int
41459main ()
41460{
41461return f != $ac_func;
41462 ;
41463 return 0;
41464}
41465_ACEOF
41466rm -f conftest.$ac_objext conftest$ac_exeext
41467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41468 (eval $ac_link) 2>conftest.er1
a848cd7e 41469 ac_status=$?
ac1cb8d3
VS
41470 grep -v '^ *+' conftest.er1 >conftest.err
41471 rm -f conftest.er1
41472 cat conftest.err >&5
a848cd7e
SC
41473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41474 (exit $ac_status); } &&
6ebeb4c7 41475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41477 (eval $ac_try) 2>&5
41478 ac_status=$?
41479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41480 (exit $ac_status); }; } &&
41481 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41483 (eval $ac_try) 2>&5
41484 ac_status=$?
41485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41486 (exit $ac_status); }; }; then
41487 eval "$as_ac_var=yes"
41488else
41489 echo "$as_me: failed program was:" >&5
41490sed 's/^/| /' conftest.$ac_ext >&5
41491
41492eval "$as_ac_var=no"
41493fi
ac1cb8d3
VS
41494rm -f conftest.err conftest.$ac_objext \
41495 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41496fi
41497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41498echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41499if test `eval echo '${'$as_ac_var'}'` = yes; then
41500 cat >>confdefs.h <<_ACEOF
41501#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41502_ACEOF
41503 have_cos=1
41504fi
41505done
41506
41507
41508for ac_func in floor
41509do
41510as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41511echo "$as_me:$LINENO: checking for $ac_func" >&5
41512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41513if eval "test \"\${$as_ac_var+set}\" = set"; then
41514 echo $ECHO_N "(cached) $ECHO_C" >&6
41515else
41516 cat >conftest.$ac_ext <<_ACEOF
41517/* confdefs.h. */
41518_ACEOF
41519cat confdefs.h >>conftest.$ac_ext
41520cat >>conftest.$ac_ext <<_ACEOF
41521/* end confdefs.h. */
ac1cb8d3
VS
41522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41524#define $ac_func innocuous_$ac_func
41525
a848cd7e
SC
41526/* System header to define __stub macros and hopefully few prototypes,
41527 which can conflict with char $ac_func (); below.
41528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41529 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41530
a848cd7e
SC
41531#ifdef __STDC__
41532# include <limits.h>
41533#else
41534# include <assert.h>
41535#endif
ac1cb8d3
VS
41536
41537#undef $ac_func
41538
a848cd7e
SC
41539/* Override any gcc2 internal prototype to avoid an error. */
41540#ifdef __cplusplus
41541extern "C"
41542{
41543#endif
41544/* We use char because int might match the return type of a gcc2
41545 builtin and then its argument prototype would still apply. */
41546char $ac_func ();
41547/* The GNU C library defines this for functions which it implements
41548 to always fail with ENOSYS. Some functions are actually named
41549 something starting with __ and the normal name is an alias. */
41550#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41551choke me
41552#else
41553char (*f) () = $ac_func;
41554#endif
41555#ifdef __cplusplus
41556}
41557#endif
41558
41559int
41560main ()
41561{
41562return f != $ac_func;
41563 ;
41564 return 0;
41565}
41566_ACEOF
41567rm -f conftest.$ac_objext conftest$ac_exeext
41568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41569 (eval $ac_link) 2>conftest.er1
a848cd7e 41570 ac_status=$?
ac1cb8d3
VS
41571 grep -v '^ *+' conftest.er1 >conftest.err
41572 rm -f conftest.er1
41573 cat conftest.err >&5
a848cd7e
SC
41574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41575 (exit $ac_status); } &&
6ebeb4c7 41576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41578 (eval $ac_try) 2>&5
41579 ac_status=$?
41580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41581 (exit $ac_status); }; } &&
41582 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41584 (eval $ac_try) 2>&5
41585 ac_status=$?
41586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41587 (exit $ac_status); }; }; then
41588 eval "$as_ac_var=yes"
41589else
41590 echo "$as_me: failed program was:" >&5
41591sed 's/^/| /' conftest.$ac_ext >&5
41592
41593eval "$as_ac_var=no"
41594fi
ac1cb8d3
VS
41595rm -f conftest.err conftest.$ac_objext \
41596 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41597fi
41598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41599echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41600if test `eval echo '${'$as_ac_var'}'` = yes; then
41601 cat >>confdefs.h <<_ACEOF
41602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41603_ACEOF
41604 have_floor=1
41605fi
41606done
41607
41608echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
41609echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
41610if test "$have_cos" = 1 -a "$have_floor" = 1; then
41611 echo "$as_me:$LINENO: result: yes" >&5
41612echo "${ECHO_T}yes" >&6
41613else
41614 echo "$as_me:$LINENO: result: no" >&5
41615echo "${ECHO_T}no" >&6
41616 LIBS="$LIBS -lm"
41617 # use different functions to avoid configure caching
41618 have_sin=0
41619 have_ceil=0
41620
41621for ac_func in sin
41622do
41623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41624echo "$as_me:$LINENO: checking for $ac_func" >&5
41625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41626if eval "test \"\${$as_ac_var+set}\" = set"; then
41627 echo $ECHO_N "(cached) $ECHO_C" >&6
41628else
41629 cat >conftest.$ac_ext <<_ACEOF
41630/* confdefs.h. */
41631_ACEOF
41632cat confdefs.h >>conftest.$ac_ext
41633cat >>conftest.$ac_ext <<_ACEOF
41634/* end confdefs.h. */
ac1cb8d3
VS
41635/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41637#define $ac_func innocuous_$ac_func
41638
a848cd7e
SC
41639/* System header to define __stub macros and hopefully few prototypes,
41640 which can conflict with char $ac_func (); below.
41641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41642 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41643
a848cd7e
SC
41644#ifdef __STDC__
41645# include <limits.h>
41646#else
41647# include <assert.h>
41648#endif
ac1cb8d3
VS
41649
41650#undef $ac_func
41651
a848cd7e
SC
41652/* Override any gcc2 internal prototype to avoid an error. */
41653#ifdef __cplusplus
41654extern "C"
41655{
41656#endif
41657/* We use char because int might match the return type of a gcc2
41658 builtin and then its argument prototype would still apply. */
41659char $ac_func ();
41660/* The GNU C library defines this for functions which it implements
41661 to always fail with ENOSYS. Some functions are actually named
41662 something starting with __ and the normal name is an alias. */
41663#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41664choke me
41665#else
41666char (*f) () = $ac_func;
41667#endif
41668#ifdef __cplusplus
41669}
41670#endif
41671
41672int
41673main ()
41674{
41675return f != $ac_func;
41676 ;
41677 return 0;
41678}
41679_ACEOF
41680rm -f conftest.$ac_objext conftest$ac_exeext
41681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41682 (eval $ac_link) 2>conftest.er1
a848cd7e 41683 ac_status=$?
ac1cb8d3
VS
41684 grep -v '^ *+' conftest.er1 >conftest.err
41685 rm -f conftest.er1
41686 cat conftest.err >&5
a848cd7e
SC
41687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41688 (exit $ac_status); } &&
6ebeb4c7 41689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41691 (eval $ac_try) 2>&5
41692 ac_status=$?
41693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41694 (exit $ac_status); }; } &&
41695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41697 (eval $ac_try) 2>&5
41698 ac_status=$?
41699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41700 (exit $ac_status); }; }; then
41701 eval "$as_ac_var=yes"
41702else
41703 echo "$as_me: failed program was:" >&5
41704sed 's/^/| /' conftest.$ac_ext >&5
41705
41706eval "$as_ac_var=no"
41707fi
ac1cb8d3
VS
41708rm -f conftest.err conftest.$ac_objext \
41709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41710fi
41711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41712echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41713if test `eval echo '${'$as_ac_var'}'` = yes; then
41714 cat >>confdefs.h <<_ACEOF
41715#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41716_ACEOF
41717 have_sin=1
41718fi
41719done
41720
41721
41722for ac_func in ceil
41723do
41724as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41725echo "$as_me:$LINENO: checking for $ac_func" >&5
41726echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41727if eval "test \"\${$as_ac_var+set}\" = set"; then
41728 echo $ECHO_N "(cached) $ECHO_C" >&6
41729else
41730 cat >conftest.$ac_ext <<_ACEOF
41731/* confdefs.h. */
41732_ACEOF
41733cat confdefs.h >>conftest.$ac_ext
41734cat >>conftest.$ac_ext <<_ACEOF
41735/* end confdefs.h. */
ac1cb8d3
VS
41736/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41738#define $ac_func innocuous_$ac_func
41739
a848cd7e
SC
41740/* System header to define __stub macros and hopefully few prototypes,
41741 which can conflict with char $ac_func (); below.
41742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41743 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41744
a848cd7e
SC
41745#ifdef __STDC__
41746# include <limits.h>
41747#else
41748# include <assert.h>
41749#endif
ac1cb8d3
VS
41750
41751#undef $ac_func
41752
a848cd7e
SC
41753/* Override any gcc2 internal prototype to avoid an error. */
41754#ifdef __cplusplus
41755extern "C"
41756{
41757#endif
41758/* We use char because int might match the return type of a gcc2
41759 builtin and then its argument prototype would still apply. */
41760char $ac_func ();
41761/* The GNU C library defines this for functions which it implements
41762 to always fail with ENOSYS. Some functions are actually named
41763 something starting with __ and the normal name is an alias. */
41764#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41765choke me
41766#else
41767char (*f) () = $ac_func;
41768#endif
41769#ifdef __cplusplus
41770}
41771#endif
41772
41773int
41774main ()
41775{
41776return f != $ac_func;
41777 ;
41778 return 0;
41779}
41780_ACEOF
41781rm -f conftest.$ac_objext conftest$ac_exeext
41782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41783 (eval $ac_link) 2>conftest.er1
a848cd7e 41784 ac_status=$?
ac1cb8d3
VS
41785 grep -v '^ *+' conftest.er1 >conftest.err
41786 rm -f conftest.er1
41787 cat conftest.err >&5
a848cd7e
SC
41788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41789 (exit $ac_status); } &&
6ebeb4c7 41790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41792 (eval $ac_try) 2>&5
41793 ac_status=$?
41794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41795 (exit $ac_status); }; } &&
41796 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41798 (eval $ac_try) 2>&5
41799 ac_status=$?
41800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41801 (exit $ac_status); }; }; then
41802 eval "$as_ac_var=yes"
41803else
41804 echo "$as_me: failed program was:" >&5
41805sed 's/^/| /' conftest.$ac_ext >&5
41806
41807eval "$as_ac_var=no"
41808fi
ac1cb8d3
VS
41809rm -f conftest.err conftest.$ac_objext \
41810 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41811fi
41812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41813echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41814if test `eval echo '${'$as_ac_var'}'` = yes; then
41815 cat >>confdefs.h <<_ACEOF
41816#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41817_ACEOF
41818 have_ceil=1
41819fi
41820done
41821
41822 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
41823echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
41824 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
41825 echo "$as_me:$LINENO: result: yes" >&5
41826echo "${ECHO_T}yes" >&6
41827 else
41828 echo "$as_me:$LINENO: result: no" >&5
41829echo "${ECHO_T}no" >&6
41830 # not sure we should warn the user, crash, etc.
41831 fi
41832fi
41833
41834if test "$wxUSE_GUI" = "yes"; then
41835
41836
8bce5cda
MW
41837 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
41838 dynamic erase event exec font image minimal mobile \
41839 mobile/wxedit mobile/styles propsize render \
41840 richedit rotate shaped vscroll widgets"
a848cd7e
SC
41841
41842 if test "$wxUSE_MONOLITHIC" != "yes"; then
41843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
41844 fi
0b78747f 41845 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
41846 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
41847 if test "$wxUSE_UNIVERSAL" != "yes"; then
41848 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
41849 fi
41850 fi
41851 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
41852 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 41853 fi
a848cd7e
SC
41854else
41855 SAMPLES_SUBDIRS="console"
41856fi
41857
41858
ceec2216 41859INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
41860-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
41861
41862if test "$GXX" = yes ; then
6ebeb4c7 41863 CWARNINGS="-Wall -Wundef"
5294a27e 41864 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
6ebeb4c7 41865fi
a848cd7e
SC
41866
41867EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
41868
0c3c69fc 41869CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 41870CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 41871CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 41872
95986553
DE
41873if test "x$MWCC" = "xyes"; then
41874
41875 CC="$CC -cwd source -I-"
41876 CXX="$CXX -cwd source -I-"
41877fi
41878
a848cd7e 41879
0c3c69fc 41880LIBS=`echo $LIBS`
a848cd7e
SC
41881EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
41882EXTRALIBS_XML="$EXPAT_LINK"
41883EXTRALIBS_HTML="$MSPACK_LINK"
41884EXTRALIBS_ODBC="$ODBC_LINK"
41885if test "$wxUSE_GUI" = "yes"; then
2e350179 41886 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
41887fi
41888if test "$wxUSE_OPENGL" = "yes"; then
41889 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
41890fi
41891
41892LDFLAGS="$LDFLAGS $PROFILE"
41893
41894if test "$wxUSE_GTK" = 1; then
41895 WXCONFIG_INCLUDE=
41896else
41897 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
41898fi
41899
41900WXCONFIG_EXTRALIBS="$LIBS"
41901
41902if test "$wxUSE_REGEX" = "builtin" ; then
74802184 41903 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
41904fi
41905if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 41906 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
41907fi
41908if test "$wxUSE_ODBC" = "builtin" ; then
74802184 41909 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
41910fi
41911if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 41912 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
41913fi
41914if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 41915 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
41916fi
41917if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 41918 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
41919fi
41920if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 41921 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
41922fi
41923
41924for i in $wxconfig_3rdparty ; do
74802184 41925 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
41926done
41927
41928
41929if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
41930 WXUNIV=1
41931else
41932 WXUNIV=0
41933fi
41934
41935
41936
41937
41938
41939
41940
41941
41942
41943if test $wxUSE_MONOLITHIC = "yes" ; then
41944 MONOLITHIC=1
41945else
41946 MONOLITHIC=0
41947fi
41948
41949if test $wxUSE_PLUGINS = "yes" ; then
41950 USE_PLUGINS=1
41951else
41952 USE_PLUGINS=0
41953fi
41954
41955if test $wxUSE_ODBC != "no" ; then
41956 USE_ODBC=1
41957else
41958 USE_ODBC=0
41959fi
41960
16358932
VZ
41961if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41962 USE_QA=1
41963else
41964 USE_QA=0
41965fi
41966
a848cd7e
SC
41967if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
41968 OFFICIAL_BUILD=1
41969else
41970 OFFICIAL_BUILD=0
41971fi
41972
41973
41974
41975
41976
41977
41978
41979
41980
41981
41982
41983
41984
41985
41986
41987
41988
41989
41990
ceec2216 41991
d1c38808 41992
a848cd7e
SC
41993
41994
41995TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
41996
41997
41998
41999
42000
42001
42002
42003
4d4ff94c
VZ
42004case "$TOOLKIT" in
42005 GTK)
42006 TOOLKIT_USER="GTK+"
42007 if test "$WXGTK20" = 1; then
42008 TOOLKIT_USER="$TOOLKIT_USER 2"
42009 fi
9a8f0513 42010 ;;
4d4ff94c
VZ
42011
42012 *)
42013 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 42014 ;;
4d4ff94c 42015esac
a848cd7e 42016
fb00f58d
JS
42017if test "$wxUSE_WINE" = "yes"; then
42018 BAKEFILE_FORCE_PLATFORM=win32
42019fi
42020
9a8f0513 42021
1e9e8aba
DE
42022
42023
a848cd7e
SC
42024 if test "x$BAKEFILE_HOST" = "x"; then
42025 BAKEFILE_HOST="${host}"
42026 fi
42027
42028 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
42029
42030 if test -n "$ac_tool_prefix"; then
42031 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
42032set dummy ${ac_tool_prefix}ranlib; ac_word=$2
42033echo "$as_me:$LINENO: checking for $ac_word" >&5
42034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42035if test "${ac_cv_prog_RANLIB+set}" = set; then
42036 echo $ECHO_N "(cached) $ECHO_C" >&6
42037else
42038 if test -n "$RANLIB"; then
42039 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
42040else
42041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42042for as_dir in $PATH
42043do
42044 IFS=$as_save_IFS
42045 test -z "$as_dir" && as_dir=.
42046 for ac_exec_ext in '' $ac_executable_extensions; do
42047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42048 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
42049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42050 break 2
42051 fi
42052done
42053done
42054
42055fi
42056fi
42057RANLIB=$ac_cv_prog_RANLIB
42058if test -n "$RANLIB"; then
42059 echo "$as_me:$LINENO: result: $RANLIB" >&5
42060echo "${ECHO_T}$RANLIB" >&6
42061else
42062 echo "$as_me:$LINENO: result: no" >&5
42063echo "${ECHO_T}no" >&6
42064fi
42065
42066fi
42067if test -z "$ac_cv_prog_RANLIB"; then
42068 ac_ct_RANLIB=$RANLIB
42069 # Extract the first word of "ranlib", so it can be a program name with args.
42070set dummy ranlib; ac_word=$2
42071echo "$as_me:$LINENO: checking for $ac_word" >&5
42072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42073if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
42074 echo $ECHO_N "(cached) $ECHO_C" >&6
42075else
42076 if test -n "$ac_ct_RANLIB"; then
42077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
42078else
42079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42080for as_dir in $PATH
42081do
42082 IFS=$as_save_IFS
42083 test -z "$as_dir" && as_dir=.
42084 for ac_exec_ext in '' $ac_executable_extensions; do
42085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42086 ac_cv_prog_ac_ct_RANLIB="ranlib"
42087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42088 break 2
42089 fi
42090done
42091done
42092
42093 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
42094fi
42095fi
42096ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
42097if test -n "$ac_ct_RANLIB"; then
42098 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
42099echo "${ECHO_T}$ac_ct_RANLIB" >&6
42100else
42101 echo "$as_me:$LINENO: result: no" >&5
42102echo "${ECHO_T}no" >&6
42103fi
42104
42105 RANLIB=$ac_ct_RANLIB
42106else
42107 RANLIB="$ac_cv_prog_RANLIB"
42108fi
42109
42110 # Find a good install program. We prefer a C program (faster),
42111# so one script is as good as another. But avoid the broken or
42112# incompatible versions:
42113# SysV /etc/install, /usr/sbin/install
42114# SunOS /usr/etc/install
42115# IRIX /sbin/install
42116# AIX /bin/install
42117# AmigaOS /C/install, which installs bootblocks on floppy discs
42118# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
42119# AFS /usr/afsws/bin/install, which mishandles nonexistent args
42120# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 42121# OS/2's system install, which has a completely different semantic
a848cd7e
SC
42122# ./install, which can be erroneously created by make from ./install.sh.
42123echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
42124echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
42125if test -z "$INSTALL"; then
42126if test "${ac_cv_path_install+set}" = set; then
42127 echo $ECHO_N "(cached) $ECHO_C" >&6
42128else
42129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42130for as_dir in $PATH
42131do
42132 IFS=$as_save_IFS
42133 test -z "$as_dir" && as_dir=.
42134 # Account for people who put trailing slashes in PATH elements.
42135case $as_dir/ in
42136 ./ | .// | /cC/* | \
42137 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 42138 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
42139 /usr/ucb/* ) ;;
42140 *)
42141 # OSF1 and SCO ODT 3.0 have their own names for install.
42142 # Don't use installbsd from OSF since it installs stuff as root
42143 # by default.
42144 for ac_prog in ginstall scoinst install; do
42145 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
42146 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
42147 if test $ac_prog = install &&
42148 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
42149 # AIX install. It has an incompatible calling convention.
42150 :
42151 elif test $ac_prog = install &&
42152 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
42153 # program-specific install script used by HP pwplus--don't use.
42154 :
42155 else
42156 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
42157 break 3
42158 fi
42159 fi
a848cd7e
SC
42160 done
42161 done
42162 ;;
42163esac
42164done
42165
42166
42167fi
42168 if test "${ac_cv_path_install+set}" = set; then
42169 INSTALL=$ac_cv_path_install
42170 else
42171 # As a last resort, use the slow shell script. We don't cache a
42172 # path for INSTALL within a source directory, because that will
42173 # break other packages using the cache if that directory is
42174 # removed, or if the path is relative.
42175 INSTALL=$ac_install_sh
42176 fi
42177fi
42178echo "$as_me:$LINENO: result: $INSTALL" >&5
42179echo "${ECHO_T}$INSTALL" >&6
42180
42181# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
42182# It thinks the first close brace ends the variable substitution.
42183test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
42184
42185test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
42186
42187test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
42188
42189 echo "$as_me:$LINENO: checking whether ln -s works" >&5
42190echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
42191LN_S=$as_ln_s
42192if test "$LN_S" = "ln -s"; then
42193 echo "$as_me:$LINENO: result: yes" >&5
42194echo "${ECHO_T}yes" >&6
42195else
42196 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
42197echo "${ECHO_T}no, using $LN_S" >&6
42198fi
42199
42200
42201 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
42202echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 42203set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
42204if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
42205 echo $ECHO_N "(cached) $ECHO_C" >&6
42206else
42207 cat >conftest.make <<\_ACEOF
42208all:
42209 @echo 'ac_maketemp="$(MAKE)"'
42210_ACEOF
42211# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
42212eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
42213if test -n "$ac_maketemp"; then
42214 eval ac_cv_prog_make_${ac_make}_set=yes
42215else
42216 eval ac_cv_prog_make_${ac_make}_set=no
42217fi
42218rm -f conftest.make
42219fi
42220if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
42221 echo "$as_me:$LINENO: result: yes" >&5
42222echo "${ECHO_T}yes" >&6
42223 SET_MAKE=
42224else
42225 echo "$as_me:$LINENO: result: no" >&5
42226echo "${ECHO_T}no" >&6
42227 SET_MAKE="MAKE=${MAKE-make}"
42228fi
42229
42230
42231
42232 if test -n "$ac_tool_prefix"; then
42233 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
42234set dummy ${ac_tool_prefix}ar; ac_word=$2
42235echo "$as_me:$LINENO: checking for $ac_word" >&5
42236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42237if test "${ac_cv_prog_AR+set}" = set; then
42238 echo $ECHO_N "(cached) $ECHO_C" >&6
42239else
42240 if test -n "$AR"; then
42241 ac_cv_prog_AR="$AR" # Let the user override the test.
42242else
42243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42244for as_dir in $PATH
42245do
42246 IFS=$as_save_IFS
42247 test -z "$as_dir" && as_dir=.
42248 for ac_exec_ext in '' $ac_executable_extensions; do
42249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42250 ac_cv_prog_AR="${ac_tool_prefix}ar"
42251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42252 break 2
42253 fi
42254done
42255done
42256
42257fi
42258fi
42259AR=$ac_cv_prog_AR
42260if test -n "$AR"; then
42261 echo "$as_me:$LINENO: result: $AR" >&5
42262echo "${ECHO_T}$AR" >&6
42263else
42264 echo "$as_me:$LINENO: result: no" >&5
42265echo "${ECHO_T}no" >&6
42266fi
42267
42268fi
42269if test -z "$ac_cv_prog_AR"; then
42270 ac_ct_AR=$AR
42271 # Extract the first word of "ar", so it can be a program name with args.
42272set dummy ar; ac_word=$2
42273echo "$as_me:$LINENO: checking for $ac_word" >&5
42274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42275if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
42276 echo $ECHO_N "(cached) $ECHO_C" >&6
42277else
42278 if test -n "$ac_ct_AR"; then
42279 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42280else
42281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42282for as_dir in $PATH
42283do
42284 IFS=$as_save_IFS
42285 test -z "$as_dir" && as_dir=.
42286 for ac_exec_ext in '' $ac_executable_extensions; do
42287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42288 ac_cv_prog_ac_ct_AR="ar"
42289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42290 break 2
42291 fi
42292done
42293done
42294
42295 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
42296fi
42297fi
42298ac_ct_AR=$ac_cv_prog_ac_ct_AR
42299if test -n "$ac_ct_AR"; then
42300 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
42301echo "${ECHO_T}$ac_ct_AR" >&6
42302else
42303 echo "$as_me:$LINENO: result: no" >&5
42304echo "${ECHO_T}no" >&6
42305fi
42306
42307 AR=$ac_ct_AR
42308else
42309 AR="$ac_cv_prog_AR"
42310fi
42311
42312 if test -n "$ac_tool_prefix"; then
42313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
42314set dummy ${ac_tool_prefix}strip; ac_word=$2
42315echo "$as_me:$LINENO: checking for $ac_word" >&5
42316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42317if test "${ac_cv_prog_STRIP+set}" = set; then
42318 echo $ECHO_N "(cached) $ECHO_C" >&6
42319else
42320 if test -n "$STRIP"; then
42321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
42322else
42323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42324for as_dir in $PATH
42325do
42326 IFS=$as_save_IFS
42327 test -z "$as_dir" && as_dir=.
42328 for ac_exec_ext in '' $ac_executable_extensions; do
42329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
42331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42332 break 2
42333 fi
42334done
42335done
42336
42337fi
42338fi
42339STRIP=$ac_cv_prog_STRIP
42340if test -n "$STRIP"; then
42341 echo "$as_me:$LINENO: result: $STRIP" >&5
42342echo "${ECHO_T}$STRIP" >&6
42343else
42344 echo "$as_me:$LINENO: result: no" >&5
42345echo "${ECHO_T}no" >&6
42346fi
42347
42348fi
42349if test -z "$ac_cv_prog_STRIP"; then
42350 ac_ct_STRIP=$STRIP
42351 # Extract the first word of "strip", so it can be a program name with args.
42352set dummy strip; ac_word=$2
42353echo "$as_me:$LINENO: checking for $ac_word" >&5
42354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42355if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
42356 echo $ECHO_N "(cached) $ECHO_C" >&6
42357else
42358 if test -n "$ac_ct_STRIP"; then
42359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
42360else
42361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42362for as_dir in $PATH
42363do
42364 IFS=$as_save_IFS
42365 test -z "$as_dir" && as_dir=.
42366 for ac_exec_ext in '' $ac_executable_extensions; do
42367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42368 ac_cv_prog_ac_ct_STRIP="strip"
42369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42370 break 2
42371 fi
42372done
42373done
42374
42375 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
42376fi
42377fi
42378ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
42379if test -n "$ac_ct_STRIP"; then
42380 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
42381echo "${ECHO_T}$ac_ct_STRIP" >&6
42382else
42383 echo "$as_me:$LINENO: result: no" >&5
42384echo "${ECHO_T}no" >&6
42385fi
42386
42387 STRIP=$ac_ct_STRIP
42388else
42389 STRIP="$ac_cv_prog_STRIP"
42390fi
42391
42392 if test -n "$ac_tool_prefix"; then
42393 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
42394set dummy ${ac_tool_prefix}nm; ac_word=$2
42395echo "$as_me:$LINENO: checking for $ac_word" >&5
42396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42397if test "${ac_cv_prog_NM+set}" = set; then
42398 echo $ECHO_N "(cached) $ECHO_C" >&6
42399else
42400 if test -n "$NM"; then
42401 ac_cv_prog_NM="$NM" # Let the user override the test.
42402else
42403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42404for as_dir in $PATH
42405do
42406 IFS=$as_save_IFS
42407 test -z "$as_dir" && as_dir=.
42408 for ac_exec_ext in '' $ac_executable_extensions; do
42409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42410 ac_cv_prog_NM="${ac_tool_prefix}nm"
42411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42412 break 2
42413 fi
42414done
42415done
42416
42417fi
42418fi
42419NM=$ac_cv_prog_NM
42420if test -n "$NM"; then
42421 echo "$as_me:$LINENO: result: $NM" >&5
42422echo "${ECHO_T}$NM" >&6
42423else
42424 echo "$as_me:$LINENO: result: no" >&5
42425echo "${ECHO_T}no" >&6
42426fi
42427
42428fi
42429if test -z "$ac_cv_prog_NM"; then
42430 ac_ct_NM=$NM
42431 # Extract the first word of "nm", so it can be a program name with args.
42432set dummy nm; ac_word=$2
42433echo "$as_me:$LINENO: checking for $ac_word" >&5
42434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42435if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
42436 echo $ECHO_N "(cached) $ECHO_C" >&6
42437else
42438 if test -n "$ac_ct_NM"; then
42439 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
42440else
42441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42442for as_dir in $PATH
42443do
42444 IFS=$as_save_IFS
42445 test -z "$as_dir" && as_dir=.
42446 for ac_exec_ext in '' $ac_executable_extensions; do
42447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42448 ac_cv_prog_ac_ct_NM="nm"
42449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42450 break 2
42451 fi
42452done
42453done
42454
42455 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
42456fi
42457fi
42458ac_ct_NM=$ac_cv_prog_ac_ct_NM
42459if test -n "$ac_ct_NM"; then
42460 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
42461echo "${ECHO_T}$ac_ct_NM" >&6
42462else
42463 echo "$as_me:$LINENO: result: no" >&5
42464echo "${ECHO_T}no" >&6
42465fi
42466
42467 NM=$ac_ct_NM
42468else
42469 NM="$ac_cv_prog_NM"
42470fi
42471
42472
42473 case ${BAKEFILE_HOST} in
42474 *-hp-hpux* )
1e9e8aba 42475 INSTALL_DIR="mkdir -p"
a848cd7e
SC
42476 ;;
42477 *) INSTALL_DIR="$INSTALL -d"
42478 ;;
42479 esac
42480
42481
42482 LDFLAGS_GUI=
42483 case ${BAKEFILE_HOST} in
42484 *-*-cygwin* | *-*-mingw32* )
42485 LDFLAGS_GUI="-mwindows"
42486 esac
42487
42488
42489 fi
42490
42491 echo "$as_me:$LINENO: checking if make is GNU make" >&5
42492echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
42493if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
42494 echo $ECHO_N "(cached) $ECHO_C" >&6
42495else
42496
42497 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
42498 egrep -s GNU > /dev/null); then
42499 bakefile_cv_prog_makeisgnu="yes"
42500 else
42501 bakefile_cv_prog_makeisgnu="no"
42502 fi
42503
42504fi
42505echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
42506echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
42507
42508 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
42509 IF_GNU_MAKE=""
42510 else
42511 IF_GNU_MAKE="#"
42512 fi
42513
42514
42515
42516 PLATFORM_UNIX=0
42517 PLATFORM_WIN32=0
42518 PLATFORM_MSDOS=0
42519 PLATFORM_MAC=0
1e9e8aba 42520 PLATFORM_MACOS=0
a848cd7e
SC
42521 PLATFORM_MACOSX=0
42522 PLATFORM_OS2=0
1e9e8aba 42523 PLATFORM_BEOS=0
a848cd7e
SC
42524
42525 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
42526 case "${BAKEFILE_HOST}" in
810b94f0 42527 *-*-mingw32* )
a848cd7e
SC
42528 PLATFORM_WIN32=1
42529 ;;
42530 *-pc-msdosdjgpp )
42531 PLATFORM_MSDOS=1
42532 ;;
42533 *-pc-os2_emx | *-pc-os2-emx )
42534 PLATFORM_OS2=1
42535 ;;
47bd5406 42536 *-*-darwin* )
a848cd7e
SC
42537 PLATFORM_MAC=1
42538 PLATFORM_MACOSX=1
42539 ;;
1e9e8aba
DE
42540 *-*-beos* )
42541 PLATFORM_BEOS=1
42542 ;;
42543 powerpc-apple-macos* )
42544 PLATFORM_MAC=1
42545 PLATFORM_MACOS=1
42546 ;;
a848cd7e
SC
42547 * )
42548 PLATFORM_UNIX=1
42549 ;;
42550 esac
42551 else
42552 case "$BAKEFILE_FORCE_PLATFORM" in
42553 win32 )
42554 PLATFORM_WIN32=1
42555 ;;
42556 msdos )
42557 PLATFORM_MSDOS=1
42558 ;;
42559 os2 )
42560 PLATFORM_OS2=1
42561 ;;
42562 darwin )
42563 PLATFORM_MAC=1
42564 PLATFORM_MACOSX=1
42565 ;;
42566 unix )
42567 PLATFORM_UNIX=1
42568 ;;
1e9e8aba
DE
42569 beos )
42570 PLATFORM_BEOS=1
42571 ;;
a848cd7e
SC
42572 * )
42573 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
42574echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
42575 { (exit 1); exit 1; }; }
42576 ;;
42577 esac
42578 fi
42579
42580
42581
42582
42583
42584
42585
42586
42587
1e9e8aba
DE
42588
42589
a848cd7e
SC
42590 # Check whether --enable-omf or --disable-omf was given.
42591if test "${enable_omf+set}" = set; then
42592 enableval="$enable_omf"
42593 bk_os2_use_omf="$enableval"
42594fi;
42595
42596 case "${BAKEFILE_HOST}" in
42597 *-*-darwin* )
47bd5406
VZ
42598 if test "x$GCC" = "xyes"; then
42599 CFLAGS="$CFLAGS -fno-common"
42600 CXXFLAGS="$CXXFLAGS -fno-common"
42601 fi
42602 if test "x$XLCC" = "xyes"; then
42603 CFLAGS="$CFLAGS -qnocommon"
42604 CXXFLAGS="$CXXFLAGS -qnocommon"
42605 fi
a848cd7e
SC
42606 ;;
42607
42608 *-pc-os2_emx | *-pc-os2-emx )
42609 if test "x$bk_os2_use_omf" = "xyes" ; then
42610 AR=emxomfar
42611 RANLIB=:
42612 LDFLAGS="-Zomf $LDFLAGS"
42613 CFLAGS="-Zomf $CFLAGS"
42614 CXXFLAGS="-Zomf $CXXFLAGS"
42615 OS2_LIBEXT="lib"
42616 else
42617 OS2_LIBEXT="a"
42618 fi
42619 ;;
1e9e8aba
DE
42620
42621 i*86-*-beos* )
42622 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
42623 ;;
a848cd7e
SC
42624 esac
42625
42626
42627 SO_SUFFIX="so"
42628 SO_SUFFIX_MODULE="so"
42629 EXEEXT=""
42630 LIBPREFIX="lib"
42631 LIBEXT=".a"
42632 DLLPREFIX="lib"
42633 DLLPREFIX_MODULE=""
42634 DLLIMP_SUFFIX=""
810b94f0 42635 dlldir="$libdir"
a848cd7e
SC
42636
42637 case "${BAKEFILE_HOST}" in
42638 *-hp-hpux* )
42639 SO_SUFFIX="sl"
42640 SO_SUFFIX_MODULE="sl"
42641 ;;
42642 *-*-aix* )
42643 SO_SUFFIX="a"
42644 SO_SUFFIX_MODULE="a"
42645 ;;
810b94f0
MW
42646 *-*-cygwin* )
42647 SO_SUFFIX="dll"
42648 SO_SUFFIX_MODULE="dll"
42649 DLLIMP_SUFFIX="dll.a"
42650 EXEEXT=".exe"
42651 DLLPREFIX="cyg"
42652 dlldir="$bindir"
42653 ;;
42654 *-*-mingw32* )
a848cd7e
SC
42655 SO_SUFFIX="dll"
42656 SO_SUFFIX_MODULE="dll"
42657 DLLIMP_SUFFIX="dll.a"
42658 EXEEXT=".exe"
42659 DLLPREFIX=""
810b94f0 42660 dlldir="$bindir"
a848cd7e
SC
42661 ;;
42662 *-pc-msdosdjgpp )
42663 EXEEXT=".exe"
42664 DLLPREFIX=""
810b94f0 42665 dlldir="$bindir"
a848cd7e
SC
42666 ;;
42667 *-pc-os2_emx | *-pc-os2-emx )
42668 SO_SUFFIX="dll"
42669 SO_SUFFIX_MODULE="dll"
42670 DLLIMP_SUFFIX=$OS2_LIBEXT
42671 EXEEXT=".exe"
42672 DLLPREFIX=""
42673 LIBPREFIX=""
42674 LIBEXT=".$OS2_LIBEXT"
810b94f0 42675 dlldir="$bindir"
a848cd7e 42676 ;;
47bd5406 42677 *-*-darwin* )
a848cd7e
SC
42678 SO_SUFFIX="dylib"
42679 SO_SUFFIX_MODULE="bundle"
42680 ;;
42681 esac
42682
42683 if test "x$DLLIMP_SUFFIX" = "x" ; then
42684 DLLIMP_SUFFIX="$SO_SUFFIX"
42685 fi
42686
42687
42688
42689
42690
42691
42692
42693
42694
42695
42696
810b94f0 42697
1e9e8aba
DE
42698 PIC_FLAG=""
42699 if test "x$GCC" = "xyes"; then
a848cd7e
SC
42700 PIC_FLAG="-fPIC"
42701 fi
42702
1e9e8aba
DE
42703 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
42704 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 42705 WINDOWS_IMPLIB=0
1e9e8aba 42706
a848cd7e
SC
42707 case "${BAKEFILE_HOST}" in
42708 *-hp-hpux* )
1e9e8aba 42709 if test "x$GCC" != "xyes"; then
a848cd7e
SC
42710 LDFLAGS="$LDFLAGS -L/usr/lib"
42711
42712 SHARED_LD_CC="${CC} -b -o"
42713 SHARED_LD_CXX="${CXX} -b -o"
42714 PIC_FLAG="+Z"
42715 fi
42716 ;;
42717
42718 *-*-linux* )
42719 if test "x$GCC" != "xyes"; then
42720 echo "$as_me:$LINENO: checking for Intel compiler" >&5
42721echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
42722if test "${bakefile_cv_prog_icc+set}" = set; then
42723 echo $ECHO_N "(cached) $ECHO_C" >&6
42724else
42725
42726 cat >conftest.$ac_ext <<_ACEOF
42727/* confdefs.h. */
42728_ACEOF
42729cat confdefs.h >>conftest.$ac_ext
42730cat >>conftest.$ac_ext <<_ACEOF
42731/* end confdefs.h. */
42732
42733int
42734main ()
42735{
42736
42737 #ifndef __INTEL_COMPILER
42738 #error Not icc
42739 #endif
42740
42741 ;
42742 return 0;
42743}
42744_ACEOF
42745rm -f conftest.$ac_objext
42746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42747 (eval $ac_compile) 2>conftest.er1
a848cd7e 42748 ac_status=$?
ac1cb8d3
VS
42749 grep -v '^ *+' conftest.er1 >conftest.err
42750 rm -f conftest.er1
42751 cat conftest.err >&5
a848cd7e
SC
42752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42753 (exit $ac_status); } &&
6ebeb4c7 42754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42756 (eval $ac_try) 2>&5
42757 ac_status=$?
42758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42759 (exit $ac_status); }; } &&
42760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42762 (eval $ac_try) 2>&5
42763 ac_status=$?
42764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42765 (exit $ac_status); }; }; then
42766 bakefile_cv_prog_icc=yes
42767else
42768 echo "$as_me: failed program was:" >&5
42769sed 's/^/| /' conftest.$ac_ext >&5
42770
42771bakefile_cv_prog_icc=no
42772
42773fi
ac1cb8d3 42774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42775
42776fi
42777echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
42778echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
42779 if test "$bakefile_cv_prog_icc" = "yes"; then
42780 PIC_FLAG="-KPIC"
42781 fi
42782 fi
42783 ;;
42784
42785 *-*-solaris2* )
42786 if test "x$GCC" != xyes ; then
42787 SHARED_LD_CC="${CC} -G -o"
42788 SHARED_LD_CXX="${CXX} -G -o"
42789 PIC_FLAG="-KPIC"
42790 fi
42791 ;;
42792
42793 *-*-darwin* )
42794
42795 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
42796echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
42797if test "${wx_cv_gcc31+set}" = set; then
42798 echo $ECHO_N "(cached) $ECHO_C" >&6
42799else
42800
42801 cat >conftest.$ac_ext <<_ACEOF
42802/* confdefs.h. */
42803_ACEOF
42804cat confdefs.h >>conftest.$ac_ext
42805cat >>conftest.$ac_ext <<_ACEOF
42806/* end confdefs.h. */
42807
42808int
42809main ()
42810{
42811
42812 #if (__GNUC__ < 3) || \
42813 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
42814 #error old gcc
42815 #endif
42816
42817 ;
42818 return 0;
42819}
42820_ACEOF
42821rm -f conftest.$ac_objext
42822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42823 (eval $ac_compile) 2>conftest.er1
a848cd7e 42824 ac_status=$?
ac1cb8d3
VS
42825 grep -v '^ *+' conftest.er1 >conftest.err
42826 rm -f conftest.er1
42827 cat conftest.err >&5
a848cd7e
SC
42828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42829 (exit $ac_status); } &&
6ebeb4c7 42830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42832 (eval $ac_try) 2>&5
42833 ac_status=$?
42834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42835 (exit $ac_status); }; } &&
42836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42838 (eval $ac_try) 2>&5
42839 ac_status=$?
42840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42841 (exit $ac_status); }; }; then
42842
42843 wx_cv_gcc31=yes
42844
42845else
42846 echo "$as_me: failed program was:" >&5
42847sed 's/^/| /' conftest.$ac_ext >&5
42848
42849
42850 wx_cv_gcc31=no
42851
42852
42853fi
ac1cb8d3 42854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42855
42856fi
42857echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
42858echo "${ECHO_T}$wx_cv_gcc31" >&6
42859 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
42860
42861D='$'
42862cat <<EOF >shared-ld-sh
a848cd7e
SC
42863#!/bin/sh
42864#-----------------------------------------------------------------------------
42865#-- Name: distrib/mac/shared-ld-sh
42866#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
42867#-- Author: Gilles Depeyrot
42868#-- Copyright: (c) 2002 Gilles Depeyrot
42869#-- Licence: any use permitted
42870#-----------------------------------------------------------------------------
42871
42872verbose=0
42873args=""
42874objects=""
42875linking_flag="-dynamiclib"
810b94f0 42876ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 42877
473276a9
VS
42878while test ${D}# -gt 0; do
42879 case ${D}1 in
a848cd7e
SC
42880
42881 -v)
42882 verbose=1
42883 ;;
42884
42885 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
42886 # collect these options and values
473276a9 42887 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
42888 shift
42889 ;;
42890
810b94f0
MW
42891 -s|-Wl,*)
42892 # collect these load args
42893 ldargs="${D}{ldargs} ${D}1"
2113bc77 42894 ;;
810b94f0
MW
42895
42896 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 42897 # collect these options
473276a9 42898 args="${D}{args} ${D}1"
a848cd7e
SC
42899 ;;
42900
42901 -dynamiclib|-bundle)
473276a9 42902 linking_flag="${D}1"
a848cd7e
SC
42903 ;;
42904
42905 -*)
473276a9 42906 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
42907 exit 1
42908 ;;
42909
42910 *.o | *.a | *.dylib)
42911 # collect object files
473276a9 42912 objects="${D}{objects} ${D}1"
a848cd7e
SC
42913 ;;
42914
42915 *)
473276a9 42916 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
42917 exit 1
42918 ;;
42919
42920 esac
42921 shift
42922done
42923
810b94f0
MW
42924status=0
42925
a848cd7e
SC
42926#
42927# Link one module containing all the others
42928#
473276a9 42929if test ${D}{verbose} = 1; then
810b94f0 42930 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 42931fi
810b94f0 42932c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 42933status=${D}?
a848cd7e
SC
42934
42935#
810b94f0
MW
42936# Link the shared library from the single module created, but only if the
42937# previous command didn't fail:
a848cd7e 42938#
810b94f0
MW
42939if test ${D}{status} = 0; then
42940 if test ${D}{verbose} = 1; then
42941 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
42942 fi
42943 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
42944 status=${D}?
a848cd7e
SC
42945fi
42946
42947#
42948# Remove intermediate module
42949#
473276a9 42950rm -f master.${D}${D}.o
a848cd7e 42951
810b94f0 42952exit ${D}status
a848cd7e 42953EOF
473276a9 42954
a848cd7e
SC
42955 chmod +x shared-ld-sh
42956
42957 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
42958 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
42959 SHARED_LD_CXX="$SHARED_LD_CC"
42960 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
42961 else
42962 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
42963 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
42964 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
42965 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
42966 fi
42967
47bd5406
VZ
42968 if test "x$GCC" == "xyes"; then
42969 PIC_FLAG="-dynamic -fPIC"
42970 fi
42971 if test "x$XLCC" = "xyes"; then
42972 PIC_FLAG="-dynamic -DPIC"
42973 fi
a848cd7e
SC
42974 ;;
42975
42976 *-*-aix* )
42977 if test "x$GCC" != "xyes"; then
42978 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
42979set dummy makeC++SharedLib; ac_word=$2
42980echo "$as_me:$LINENO: checking for $ac_word" >&5
42981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42982if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
42983 echo $ECHO_N "(cached) $ECHO_C" >&6
42984else
42985 if test -n "$AIX_CXX_LD"; then
42986 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
42987else
42988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42989for as_dir in $PATH
42990do
42991 IFS=$as_save_IFS
42992 test -z "$as_dir" && as_dir=.
42993 for ac_exec_ext in '' $ac_executable_extensions; do
42994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42995 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
42996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42997 break 2
42998 fi
42999done
43000done
43001
43002 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
43003fi
43004fi
43005AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
43006if test -n "$AIX_CXX_LD"; then
43007 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
43008echo "${ECHO_T}$AIX_CXX_LD" >&6
43009else
43010 echo "$as_me:$LINENO: result: no" >&5
43011echo "${ECHO_T}no" >&6
43012fi
43013
43014 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
43015 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
43016 fi
43017 ;;
43018
43019 *-*-beos* )
1e9e8aba
DE
43020 SHARED_LD_CC="${LD} -nostart -o"
43021 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
43022 ;;
43023
43024 *-*-irix* )
43025 if test "x$GCC" != "xyes"; then
43026 PIC_FLAG="-KPIC"
43027 fi
43028 ;;
43029
43030 *-*-cygwin* | *-*-mingw32* )
43031 PIC_FLAG=""
1e9e8aba
DE
43032 SHARED_LD_CC="\$(CC) -shared -o"
43033 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 43034 WINDOWS_IMPLIB=1
a848cd7e
SC
43035 ;;
43036
43037 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
43038 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43039 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 43040 PIC_FLAG=""
473276a9
VS
43041
43042D='$'
43043cat <<EOF >dllar.sh
43044#!/bin/sh
43045#
43046# dllar - a tool to build both a .dll and an .a file
43047# from a set of object (.o) files for EMX/OS2.
43048#
43049# Written by Andrew Zabolotny, bit@freya.etu.ru
43050# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
43051#
43052# This script will accept a set of files on the command line.
43053# All the public symbols from the .o files will be exported into
43054# a .DEF file, then linker will be run (through gcc) against them to
43055# build a shared library consisting of all given .o files. All libraries
43056# (.a) will be first decompressed into component .o files then act as
43057# described above. You can optionally give a description (-d "description")
43058# which will be put into .DLL. To see the list of accepted options (as well
43059# as command-line format) simply run this program without options. The .DLL
43060# is built to be imported by name (there is no guarantee that new versions
43061# of the library you build will have same ordinals for same symbols).
43062#
43063# dllar is free software; you can redistribute it and/or modify
43064# it under the terms of the GNU General Public License as published by
43065# the Free Software Foundation; either version 2, or (at your option)
43066# any later version.
43067#
43068# dllar is distributed in the hope that it will be useful,
43069# but WITHOUT ANY WARRANTY; without even the implied warranty of
43070# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43071# GNU General Public License for more details.
43072#
43073# You should have received a copy of the GNU General Public License
43074# along with dllar; see the file COPYING. If not, write to the Free
43075# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
43076# 02111-1307, USA.
43077
43078# To successfuly run this program you will need:
43079# - Current drive should have LFN support (HPFS, ext2, network, etc)
43080# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
43081# - gcc
43082# (used to build the .dll)
43083# - emxexp
43084# (used to create .def file from .o files)
43085# - emximp
43086# (used to create .a file from .def file)
43087# - GNU text utilites (cat, sort, uniq)
43088# used to process emxexp output
43089# - GNU file utilities (mv, rm)
43090# - GNU sed
43091# - lxlite (optional, see flag below)
43092# (used for general .dll cleanup)
43093#
43094
43095flag_USE_LXLITE=1;
43096
43097#
43098# helper functions
43099# basnam, variant of basename, which does _not_ remove the path, _iff_
43100# second argument (suffix to remove) is given
43101basnam(){
43102 case ${D}# in
43103 1)
1e9e8aba 43104 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
43105 ;;
43106 2)
43107 echo ${D}1 | sed 's/'${D}2'${D}//'
43108 ;;
43109 *)
43110 echo "error in basnam ${D}*"
43111 exit 8
43112 ;;
43113 esac
43114}
43115
43116# Cleanup temporary files and output
43117CleanUp() {
43118 cd ${D}curDir
43119 for i in ${D}inputFiles ; do
43120 case ${D}i in
43121 *!)
43122 rm -rf \`basnam ${D}i !\`
43123 ;;
43124 *)
43125 ;;
43126 esac
43127 done
43128
43129 # Kill result in case of failure as there is just to many stupid make/nmake
43130 # things out there which doesn't do this.
1e9e8aba 43131 if [ ${D}# -eq 0 ]; then
473276a9
VS
43132 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
43133 fi
43134}
43135
43136# Print usage and exit script with rc=1.
43137PrintHelp() {
b1d22ded
DE
43138 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
43139 echo ' [-name-mangler-script script.sh]'
43140 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
43141 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
43142 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 43143 echo ' [*.o] [*.a]'
473276a9
VS
43144 echo '*> "output_file" should have no extension.'
43145 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
43146 echo ' The import library name is derived from this and is set to "name".a,'
43147 echo ' unless overridden by -import'
43148 echo '*> "importlib_name" should have no extension.'
43149 echo ' If it has the .o, or .a extension, it is automatically removed.'
43150 echo ' This name is used as the import library name and may be longer and'
43151 echo ' more descriptive than the DLL name which has to follow the old '
43152 echo ' 8.3 convention of FAT.'
b1d22ded
DE
43153 echo '*> "script.sh may be given to override the output_file name by a'
43154 echo ' different name. It is mainly useful if the regular make process'
43155 echo ' of some package does not take into account OS/2 restriction of'
43156 echo ' DLL name lengths. It takes the importlib name as input and is'
43157 echo ' supposed to procude a shorter name as output. The script should'
43158 echo ' expect to get importlib_name without extension and should produce'
43159 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
43160 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
43161 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
43162 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
43163 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
43164 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
43165 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
43166 echo ' If the last character of a symbol is "*", all symbols beginning'
43167 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 43168 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 43169 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 43170 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 43171 echo ' C runtime DLLs.'
b1d22ded 43172 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
43173 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
43174 echo ' unchanged to GCC at the end of command line.'
43175 echo '*> If you create a DLL from a library and you do not specify -o,'
43176 echo ' the basename for DLL and import library will be set to library name,'
43177 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
43178 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
43179 echo ' library will be renamed into gcc_s.a.'
43180 echo '--------'
43181 echo 'Example:'
43182 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
43183 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
43184 CleanUp
43185 exit 1
43186}
43187
43188# Execute a command.
43189# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
43190# @Uses Whatever CleanUp() uses.
43191doCommand() {
43192 echo "${D}*"
43193 eval ${D}*
43194 rcCmd=${D}?
43195
1e9e8aba 43196 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
43197 echo "command failed, exit code="${D}rcCmd
43198 CleanUp
43199 exit ${D}rcCmd
43200 fi
43201}
43202
43203# main routine
43204# setup globals
43205cmdLine=${D}*
43206outFile=""
43207outimpFile=""
43208inputFiles=""
b1d22ded 43209renameScript=""
473276a9
VS
43210description=""
43211CC=gcc.exe
43212CFLAGS="-s -Zcrtdll"
43213EXTRA_CFLAGS=""
43214EXPORT_BY_ORDINALS=0
43215exclude_symbols=""
43216library_flags=""
43217curDir=\`pwd\`
43218curDirS=curDir
43219case ${D}curDirS in
43220*/)
43221 ;;
43222*)
43223 curDirS=${D}{curDirS}"/"
43224 ;;
43225esac
43226# Parse commandline
43227libsToLink=0
b1d22ded 43228omfLinking=0
1e9e8aba 43229while [ ${D}1 ]; do
473276a9
VS
43230 case ${D}1 in
43231 -ord*)
43232 EXPORT_BY_ORDINALS=1;
43233 ;;
43234 -o*)
43235 shift
43236 outFile=${D}1
43237 ;;
43238 -i*)
43239 shift
43240 outimpFile=${D}1
43241 ;;
b1d22ded
DE
43242 -name-mangler-script)
43243 shift
43244 renameScript=${D}1
43245 ;;
473276a9
VS
43246 -d*)
43247 shift
43248 description=${D}1
43249 ;;
43250 -f*)
43251 shift
43252 CFLAGS=${D}1
43253 ;;
43254 -c*)
43255 shift
43256 CC=${D}1
43257 ;;
43258 -h*)
43259 PrintHelp
43260 ;;
43261 -ex*)
43262 shift
43263 exclude_symbols=${D}{exclude_symbols}${D}1" "
43264 ;;
43265 -libf*)
43266 shift
43267 library_flags=${D}{library_flags}${D}1" "
43268 ;;
43269 -nocrt*)
43270 CFLAGS="-s"
43271 ;;
43272 -nolxl*)
43273 flag_USE_LXLITE=0
43274 ;;
43275 -* | /*)
43276 case ${D}1 in
43277 -L* | -l*)
43278 libsToLink=1
43279 ;;
b1d22ded
DE
43280 -Zomf)
43281 omfLinking=1
43282 ;;
473276a9
VS
43283 *)
43284 ;;
43285 esac
43286 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
43287 ;;
b1d22ded
DE
43288 *.dll)
43289 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
43290 if [ ${D}omfLinking -eq 1 ]; then
43291 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
43292 else
43293 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
43294 fi
43295 ;;
473276a9
VS
43296 *)
43297 found=0;
1e9e8aba 43298 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
43299 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
43300 else
43301 for file in ${D}1 ; do
1e9e8aba 43302 if [ -f ${D}file ]; then
473276a9
VS
43303 inputFiles="${D}{inputFiles} ${D}file"
43304 found=1
43305 fi
43306 done
1e9e8aba 43307 if [ ${D}found -eq 0 ]; then
473276a9
VS
43308 echo "ERROR: No file(s) found: "${D}1
43309 exit 8
43310 fi
43311 fi
43312 ;;
43313 esac
43314 shift
43315done # iterate cmdline words
43316
43317#
1e9e8aba 43318if [ -z "${D}inputFiles" ]; then
473276a9
VS
43319 echo "dllar: no input files"
43320 PrintHelp
43321fi
43322
43323# Now extract all .o files from .a files
43324newInputFiles=""
43325for file in ${D}inputFiles ; do
43326 case ${D}file in
43327 *.a | *.lib)
43328 case ${D}file in
43329 *.a)
43330 suffix=".a"
43331 AR="ar"
43332 ;;
43333 *.lib)
43334 suffix=".lib"
43335 AR="emxomfar"
43336 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
43337 ;;
43338 *)
43339 ;;
43340 esac
43341 dirname=\`basnam ${D}file ${D}suffix\`"_%"
43342 mkdir ${D}dirname
1e9e8aba 43343 if [ ${D}? -ne 0 ]; then
473276a9
VS
43344 echo "Failed to create subdirectory ./${D}dirname"
43345 CleanUp
43346 exit 8;
43347 fi
43348 # Append '!' to indicate archive
43349 newInputFiles="${D}newInputFiles ${D}{dirname}!"
43350 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
43351 cd ${D}curDir
43352 found=0;
43353 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 43354 if [ -f ${D}subfile ]; then
473276a9 43355 found=1
1e9e8aba 43356 if [ -s ${D}subfile ]; then
473276a9
VS
43357 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
43358 newInputFiles="${D}newInputFiles ${D}subfile"
43359 fi
43360 fi
43361 done
1e9e8aba
DE
43362 if [ ${D}found -eq 0 ]; then
43363 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
43364 fi
43365 ;;
43366 *)
43367 newInputFiles="${D}{newInputFiles} ${D}file"
43368 ;;
43369 esac
43370done
43371inputFiles="${D}newInputFiles"
43372
43373# Output filename(s).
43374do_backup=0;
1e9e8aba 43375if [ -z ${D}outFile ]; then
473276a9
VS
43376 do_backup=1;
43377 set outFile ${D}inputFiles; outFile=${D}2
43378fi
43379
43380# If it is an archive, remove the '!' and the '_%' suffixes
43381case ${D}outFile in
43382*_%!)
43383 outFile=\`basnam ${D}outFile _%!\`
43384 ;;
43385*)
43386 ;;
43387esac
43388case ${D}outFile in
43389*.dll)
43390 outFile=\`basnam ${D}outFile .dll\`
43391 ;;
43392*.DLL)
43393 outFile=\`basnam ${D}outFile .DLL\`
43394 ;;
43395*.o)
43396 outFile=\`basnam ${D}outFile .o\`
43397 ;;
43398*.obj)
43399 outFile=\`basnam ${D}outFile .obj\`
43400 ;;
43401*.a)
43402 outFile=\`basnam ${D}outFile .a\`
43403 ;;
43404*.lib)
43405 outFile=\`basnam ${D}outFile .lib\`
43406 ;;
43407*)
43408 ;;
43409esac
43410case ${D}outimpFile in
43411*.a)
43412 outimpFile=\`basnam ${D}outimpFile .a\`
43413 ;;
43414*.lib)
43415 outimpFile=\`basnam ${D}outimpFile .lib\`
43416 ;;
43417*)
43418 ;;
43419esac
1e9e8aba 43420if [ -z ${D}outimpFile ]; then
473276a9
VS
43421 outimpFile=${D}outFile
43422fi
43423defFile="${D}{outFile}.def"
43424arcFile="${D}{outimpFile}.a"
43425arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
43426
43427#create ${D}dllFile as something matching 8.3 restrictions,
43428if [ -z ${D}renameScript ] ; then
43429 dllFile="${D}outFile"
43430else
43431 dllFile=\`${D}renameScript ${D}outimpFile\`
43432fi
473276a9 43433
1e9e8aba
DE
43434if [ ${D}do_backup -ne 0 ] ; then
43435 if [ -f ${D}arcFile ] ; then
473276a9
VS
43436 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
43437 fi
1e9e8aba 43438 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
43439 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
43440 fi
43441fi
43442
43443# Extract public symbols from all the object files.
43444tmpdefFile=${D}{defFile}_%
43445rm -f ${D}tmpdefFile
43446for file in ${D}inputFiles ; do
43447 case ${D}file in
43448 *!)
43449 ;;
43450 *)
43451 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
43452 ;;
43453 esac
43454done
43455
43456# Create the def file.
43457rm -f ${D}defFile
43458echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
43459dllFile="${D}{dllFile}.dll"
43460if [ ! -z ${D}description ]; then
1e9e8aba 43461 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
43462fi
43463echo "EXPORTS" >> ${D}defFile
43464
43465doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
43466grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
43467
43468# Checks if the export is ok or not.
43469for word in ${D}exclude_symbols; do
43470 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
43471 mv ${D}{tmpdefFile}% ${D}tmpdefFile
43472done
43473
43474
1e9e8aba
DE
43475if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
43476 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
43477 sed '
43478 N
43479 : loop
1e9e8aba 43480 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
43481 t loop
43482 ' > ${D}{tmpdefFile}%
43483 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
43484else
43485 rm -f ${D}{tmpdefFile}%
43486fi
43487cat ${D}tmpdefFile >> ${D}defFile
43488rm -f ${D}tmpdefFile
43489
43490# Do linking, create implib, and apply lxlite.
43491gccCmdl="";
43492for file in ${D}inputFiles ; do
43493 case ${D}file in
43494 *!)
43495 ;;
43496 *)
43497 gccCmdl="${D}gccCmdl ${D}file"
43498 ;;
43499 esac
43500done
43501doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
43502touch "${D}{outFile}.dll"
43503
43504doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 43505if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 43506 add_flags="";
1e9e8aba 43507 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
43508 add_flags="-ynd"
43509 fi
43510 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
43511fi
43512doCommand "emxomf -s -l ${D}arcFile"
43513
43514# Successful exit.
43515CleanUp 1
43516exit 0
43517EOF
43518
43519 chmod +x dllar.sh
a848cd7e
SC
43520 ;;
43521
1e9e8aba 43522 powerpc-apple-macos* | \
a848cd7e
SC
43523 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
43524 *-*-sunos4* | \
43525 *-*-osf* | \
43526 *-*-dgux5* | \
47a7e797
MW
43527 *-*-sysv5* | \
43528 *-pc-msdosdjgpp )
a848cd7e
SC
43529 ;;
43530
43531 *)
43532 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
43533echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
43534 { (exit 1); exit 1; }; }
43535 esac
43536
2057db16
VS
43537 if test "x$PIC_FLAG" != "x" ; then
43538 PIC_FLAG="$PIC_FLAG -DPIC"
43539 fi
43540
a848cd7e
SC
43541 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
43542 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
43543 fi
43544 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
43545 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
43546 fi
43547
43548
43549
43550
43551
43552
43553
43554
810b94f0 43555
a848cd7e
SC
43556 USE_SOVERSION=0
43557 USE_SOVERLINUX=0
43558 USE_SOVERSOLARIS=0
810b94f0 43559 USE_SOVERCYGWIN=0
a848cd7e
SC
43560 USE_SOSYMLINKS=0
43561 USE_MACVERSION=0
43562 SONAME_FLAG=
43563
43564 case "${BAKEFILE_HOST}" in
b1d22ded 43565 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
43566 SONAME_FLAG="-Wl,-soname,"
43567 USE_SOVERSION=1
43568 USE_SOVERLINUX=1
43569 USE_SOSYMLINKS=1
43570 ;;
43571
a848cd7e
SC
43572 *-*-solaris2* )
43573 SONAME_FLAG="-h "
43574 USE_SOVERSION=1
43575 USE_SOVERSOLARIS=1
43576 USE_SOSYMLINKS=1
43577 ;;
43578
43579 *-*-darwin* )
43580 USE_MACVERSION=1
43581 USE_SOVERSION=1
43582 USE_SOSYMLINKS=1
43583 ;;
810b94f0
MW
43584
43585 *-*-cygwin* )
43586 USE_SOVERSION=1
43587 USE_SOVERCYGWIN=1
43588 ;;
a848cd7e
SC
43589 esac
43590
43591
43592
43593
43594
43595
43596
43597
43598
810b94f0 43599
a848cd7e
SC
43600 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
43601echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
43602 DEPS_TRACKING=0
43603
43604 if test "x$GCC" = "xyes"; then
43605 DEPSMODE=gcc
43606 DEPS_TRACKING=1
43607 case "${BAKEFILE_HOST}" in
47bd5406 43608 *-*-darwin* )
a848cd7e
SC
43609 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
43610 ;;
43611 * )
43612 DEPSFLAG_GCC="-MMD"
43613 ;;
43614 esac
43615 echo "$as_me:$LINENO: result: gcc" >&5
43616echo "${ECHO_T}gcc" >&6
b1d22ded 43617 elif test "x$MWCC" = "xyes"; then
81f90336 43618 DEPSMODE=mwcc
b1d22ded 43619 DEPS_TRACKING=1
81f90336 43620 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
43621 echo "$as_me:$LINENO: result: mwcc" >&5
43622echo "${ECHO_T}mwcc" >&6
a9e5b1f0
MW
43623 elif test "x$SUNCC" = "xyes"; then
43624 DEPSMODE=suncc
43625 DEPS_TRACKING=1
43626 DEPSFLAG_SUNCC="-xM1"
43627 echo "$as_me:$LINENO: result: suncc" >&5
43628echo "${ECHO_T}suncc" >&6
a848cd7e
SC
43629 else
43630 echo "$as_me:$LINENO: result: none" >&5
43631echo "${ECHO_T}none" >&6
43632 fi
43633
43634 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
43635
43636D='$'
43637cat <<EOF >bk-deps
a848cd7e
SC
43638#!/bin/sh
43639
43640# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43641# script. It is used to track C/C++ files dependencies in portable way.
43642#
43643# Permission is given to use this file in any way.
43644
473276a9 43645DEPSMODE=${DEPSMODE}
a848cd7e 43646DEPSDIR=.deps
473276a9 43647DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 43648DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a9e5b1f0 43649DEPSFLAG_SUNCC="${DEPSFLAG_SUNCC}"
a848cd7e 43650
473276a9 43651mkdir -p ${D}DEPSDIR
a848cd7e 43652
473276a9
VS
43653if test ${D}DEPSMODE = gcc ; then
43654 ${D}* ${D}{DEPSFLAG_GCC}
43655 status=${D}?
43656 if test ${D}{status} != 0 ; then
43657 exit ${D}{status}
a848cd7e
SC
43658 fi
43659 # move created file to the location we want it in:
473276a9
VS
43660 while test ${D}# -gt 0; do
43661 case "${D}1" in
a848cd7e
SC
43662 -o )
43663 shift
473276a9 43664 objfile=${D}1
a848cd7e
SC
43665 ;;
43666 -* )
43667 ;;
43668 * )
473276a9 43669 srcfile=${D}1
a848cd7e
SC
43670 ;;
43671 esac
43672 shift
43673 done
1e9e8aba
DE
43674 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
43675 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
43676 if test -f ${D}depfile ; then
43677 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43678 rm -f ${D}depfile
a848cd7e 43679 else
1e9e8aba 43680 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
43681 if test -f ${D}depfile ; then
43682 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43683 rm -f ${D}depfile
a848cd7e
SC
43684 fi
43685 fi
43686 exit 0
81f90336
MW
43687elif test ${D}DEPSMODE = mwcc ; then
43688 ${D}*
43689 status=${D}?
43690 if test ${D}{status} != 0 ; then
43691 exit ${D}{status}
43692 fi
43693 # Run mwcc again with -MM and redirect into the dep file we want
43694 # NOTE: We can't use shift here because we need ${D}* to be valid
43695 prevarg=
43696 for arg in ${D}* ; do
43697 if test "${D}prevarg" = "-o"; then
43698 objfile=${D}arg
43699 else
43700 case "${D}arg" in
43701 -* )
43702 ;;
43703 * )
43704 srcfile=${D}arg
43705 ;;
43706 esac
43707 fi
43708 prevarg="${D}arg"
43709 done
43710 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
43711 exit 0
a9e5b1f0
MW
43712elif test ${D}DEPSMODE = suncc; then
43713 ${D}* || exit
43714 # Run compiler again with deps flag and redirect into the dep file.
43715 # It doesn't work if the '-o FILE' option is used, but without it the
43716 # dependency file will contain the wrong name for the object. So it is
43717 # removed from the command line, and the dep file is fixed with sed.
43718 cmd=""
43719 while test ${D}# -gt 0; do
43720 case "${D}1" in
43721 -o )
43722 shift
43723 objfile=${D}1
43724 ;;
43725 * )
43726 eval arg${D}#=\\${D}1
43727 cmd="${D}cmd \\${D}arg${D}#"
43728 ;;
43729 esac
43730 shift
43731 done
43732 eval "${D}cmd ${D}DEPSFLAG_SUNCC" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
43733 exit 0
a848cd7e 43734else
473276a9
VS
43735 ${D}*
43736 exit ${D}?
a848cd7e
SC
43737fi
43738EOF
473276a9 43739
a848cd7e
SC
43740 chmod +x bk-deps
43741 fi
43742
43743
43744
43745
43746 RESCOMP=
43747 SETFILE=
43748
43749 case ${BAKEFILE_HOST} in
43750 *-*-cygwin* | *-*-mingw32* )
43751 if test "$build" != "$host" ; then
43752 RESCOMP=$host_alias-windres
43753 else
43754 # Extract the first word of "windres", so it can be a program name with args.
43755set dummy windres; ac_word=$2
43756echo "$as_me:$LINENO: checking for $ac_word" >&5
43757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43758if test "${ac_cv_prog_RESCOMP+set}" = set; then
43759 echo $ECHO_N "(cached) $ECHO_C" >&6
43760else
43761 if test -n "$RESCOMP"; then
43762 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43763else
43764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43765for as_dir in $PATH
43766do
43767 IFS=$as_save_IFS
43768 test -z "$as_dir" && as_dir=.
43769 for ac_exec_ext in '' $ac_executable_extensions; do
43770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43771 ac_cv_prog_RESCOMP="windres"
43772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43773 break 2
43774 fi
43775done
43776done
43777
43778 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
43779fi
43780fi
43781RESCOMP=$ac_cv_prog_RESCOMP
43782if test -n "$RESCOMP"; then
43783 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43784echo "${ECHO_T}$RESCOMP" >&6
43785else
43786 echo "$as_me:$LINENO: result: no" >&5
43787echo "${ECHO_T}no" >&6
43788fi
43789
43790 fi
43791 ;;
43792
1e9e8aba 43793 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
43794 # Extract the first word of "Rez", so it can be a program name with args.
43795set dummy Rez; ac_word=$2
43796echo "$as_me:$LINENO: checking for $ac_word" >&5
43797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43798if test "${ac_cv_prog_RESCOMP+set}" = set; then
43799 echo $ECHO_N "(cached) $ECHO_C" >&6
43800else
43801 if test -n "$RESCOMP"; then
43802 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43803else
43804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43805for as_dir in $PATH
43806do
43807 IFS=$as_save_IFS
43808 test -z "$as_dir" && as_dir=.
43809 for ac_exec_ext in '' $ac_executable_extensions; do
43810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43811 ac_cv_prog_RESCOMP="Rez"
43812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43813 break 2
43814 fi
43815done
43816done
43817
43818 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
43819fi
43820fi
43821RESCOMP=$ac_cv_prog_RESCOMP
43822if test -n "$RESCOMP"; then
43823 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43824echo "${ECHO_T}$RESCOMP" >&6
43825else
43826 echo "$as_me:$LINENO: result: no" >&5
43827echo "${ECHO_T}no" >&6
43828fi
43829
43830 # Extract the first word of "SetFile", so it can be a program name with args.
43831set dummy SetFile; ac_word=$2
43832echo "$as_me:$LINENO: checking for $ac_word" >&5
43833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43834if test "${ac_cv_prog_SETFILE+set}" = set; then
43835 echo $ECHO_N "(cached) $ECHO_C" >&6
43836else
43837 if test -n "$SETFILE"; then
43838 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
43839else
43840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43841for as_dir in $PATH
43842do
43843 IFS=$as_save_IFS
43844 test -z "$as_dir" && as_dir=.
43845 for ac_exec_ext in '' $ac_executable_extensions; do
43846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43847 ac_cv_prog_SETFILE="SetFile"
43848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43849 break 2
43850 fi
43851done
43852done
43853
43854 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
43855fi
43856fi
43857SETFILE=$ac_cv_prog_SETFILE
43858if test -n "$SETFILE"; then
43859 echo "$as_me:$LINENO: result: $SETFILE" >&5
43860echo "${ECHO_T}$SETFILE" >&6
43861else
43862 echo "$as_me:$LINENO: result: no" >&5
43863echo "${ECHO_T}no" >&6
43864fi
43865
43866 ;;
43867 esac
43868
43869
43870
43871
43872
c9469659 43873 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 43874
dcc1b6ad 43875
c9469659 43876BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 43877
646b6ec1 43878
74b84332 43879
a848cd7e
SC
43880 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
43881if test "${enable_precomp_headers+set}" = set; then
43882 enableval="$enable_precomp_headers"
43883 bk_use_pch="$enableval"
43884fi;
43885
43886 GCC_PCH=0
43887
43888 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
43889 if test "x$GCC" = "xyes"; then
43890 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
43891echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
43892 cat >conftest.$ac_ext <<_ACEOF
43893/* confdefs.h. */
43894_ACEOF
43895cat confdefs.h >>conftest.$ac_ext
43896cat >>conftest.$ac_ext <<_ACEOF
43897/* end confdefs.h. */
43898
43899int
43900main ()
43901{
43902
43903 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
43904 #error "no pch support"
43905 #endif
43906 #if (__GNUC__ < 3)
43907 #error "no pch support"
43908 #endif
43909 #if (__GNUC__ == 3) && \
43910 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
43911 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
43912 #error "no pch support"
43913 #endif
43914
43915 ;
43916 return 0;
43917}
43918_ACEOF
43919rm -f conftest.$ac_objext
43920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43921 (eval $ac_compile) 2>conftest.er1
a848cd7e 43922 ac_status=$?
ac1cb8d3
VS
43923 grep -v '^ *+' conftest.er1 >conftest.err
43924 rm -f conftest.er1
43925 cat conftest.err >&5
a848cd7e
SC
43926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43927 (exit $ac_status); } &&
6ebeb4c7 43928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43930 (eval $ac_try) 2>&5
43931 ac_status=$?
43932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43933 (exit $ac_status); }; } &&
43934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43936 (eval $ac_try) 2>&5
43937 ac_status=$?
43938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43939 (exit $ac_status); }; }; then
43940
43941 echo "$as_me:$LINENO: result: yes" >&5
43942echo "${ECHO_T}yes" >&6
a848cd7e
SC
43943 GCC_PCH=1
43944
43945else
43946 echo "$as_me: failed program was:" >&5
43947sed 's/^/| /' conftest.$ac_ext >&5
43948
43949
43950 echo "$as_me:$LINENO: result: no" >&5
43951echo "${ECHO_T}no" >&6
43952
43953fi
ac1cb8d3 43954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43955 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
43956
43957D='$'
43958cat <<EOF >bk-make-pch
a848cd7e
SC
43959#!/bin/sh
43960
43961# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43962# script. It is used to generated precompiled headers.
43963#
43964# Permission is given to use this file in any way.
43965
1e9e8aba
DE
43966outfile="${D}{1}"
43967header="${D}{2}"
a848cd7e
SC
43968shift
43969shift
43970
43971compiler=
43972headerfile=
1e9e8aba
DE
43973while test ${D}{#} -gt 0; do
43974 case "${D}{1}" in
a848cd7e 43975 -I* )
1e9e8aba
DE
43976 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
43977 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
43978 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
43979 fi
43980 ;;
43981 esac
1e9e8aba 43982 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
43983 shift
43984done
43985
1e9e8aba
DE
43986if test "x${D}{headerfile}" = "x" ; then
43987 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 43988else
1e9e8aba
DE
43989 if test -f ${D}{outfile} ; then
43990 rm -f ${D}{outfile}
a848cd7e 43991 else
1e9e8aba 43992 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 43993 fi
1e9e8aba 43994 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
43995 mkdir -p .deps
43996 # can do this because gcc is >= 3.4:
1e9e8aba
DE
43997 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
43998 exit ${D}{?}
a848cd7e
SC
43999fi
44000EOF
1e9e8aba 44001
a848cd7e
SC
44002 chmod +x bk-make-pch
44003 fi
44004 fi
44005 fi
44006
44007
44008
a848cd7e
SC
44009 COND_BUILD_DEBUG="#"
44010 if test "x$BUILD" = "xdebug" ; then
44011 COND_BUILD_DEBUG=""
44012 fi
44013
44014 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
44015 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
44016 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
44017 fi
44018
44019 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
44020 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
44021 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
44022 fi
44023
44024 COND_BUILD_DEBUG_UNICODE_0="#"
44025 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
44026 COND_BUILD_DEBUG_UNICODE_0=""
44027 fi
44028
44029 COND_BUILD_DEBUG_UNICODE_1="#"
44030 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
44031 COND_BUILD_DEBUG_UNICODE_1=""
44032 fi
44033
44034 COND_BUILD_RELEASE="#"
44035 if test "x$BUILD" = "xrelease" ; then
44036 COND_BUILD_RELEASE=""
44037 fi
44038
44039 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
44040 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
44041 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
44042 fi
44043
44044 COND_BUILD_RELEASE_UNICODE_0="#"
44045 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
44046 COND_BUILD_RELEASE_UNICODE_0=""
44047 fi
44048
44049 COND_BUILD_RELEASE_UNICODE_1="#"
44050 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
44051 COND_BUILD_RELEASE_UNICODE_1=""
44052 fi
44053
44054 COND_DEBUG_FLAG_1="#"
44055 if test "x$DEBUG_FLAG" = "x1" ; then
44056 COND_DEBUG_FLAG_1=""
44057 fi
44058
44059 COND_DEBUG_INFO_0="#"
44060 if test "x$DEBUG_INFO" = "x0" ; then
44061 COND_DEBUG_INFO_0=""
44062 fi
44063
44064 COND_DEBUG_INFO_1="#"
44065 if test "x$DEBUG_INFO" = "x1" ; then
44066 COND_DEBUG_INFO_1=""
44067 fi
44068
44069 COND_DEPS_TRACKING_0="#"
44070 if test "x$DEPS_TRACKING" = "x0" ; then
44071 COND_DEPS_TRACKING_0=""
44072 fi
44073
44074 COND_DEPS_TRACKING_1="#"
44075 if test "x$DEPS_TRACKING" = "x1" ; then
44076 COND_DEPS_TRACKING_1=""
44077 fi
44078
44079 COND_GCC_PCH_1="#"
44080 if test "x$GCC_PCH" = "x1" ; then
44081 COND_GCC_PCH_1=""
44082 fi
44083
44084 COND_MONOLITHIC_0="#"
44085 if test "x$MONOLITHIC" = "x0" ; then
44086 COND_MONOLITHIC_0=""
44087 fi
44088
44089 COND_MONOLITHIC_0_SHARED_0="#"
44090 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
44091 COND_MONOLITHIC_0_SHARED_0=""
44092 fi
44093
44094 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
44095 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
44096 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
44097 fi
44098
90970d69
DE
44099 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
44100 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
44101 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
44102 fi
44103
a848cd7e
SC
44104 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
44105 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
44106 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
44107 fi
44108
6671c68b
VZ
44109 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
44110 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
44111 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
44112 fi
44113
a848cd7e
SC
44114 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
44115 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
44116 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
44117 fi
44118
ceec2216
RL
44119 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
44120 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
44121 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
44122 fi
44123
a848cd7e
SC
44124 COND_MONOLITHIC_0_SHARED_1="#"
44125 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
44126 COND_MONOLITHIC_0_SHARED_1=""
44127 fi
44128
44129 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
44130 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
44131 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
44132 fi
44133
90970d69
DE
44134 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
44135 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
44136 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
44137 fi
44138
a848cd7e
SC
44139 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
44140 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
44141 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
44142 fi
44143
6671c68b
VZ
44144 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
44145 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
44146 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
44147 fi
44148
a848cd7e
SC
44149 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
44150 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
44151 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
44152 fi
44153
ceec2216
RL
44154 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
44155 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
44156 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
44157 fi
44158
a848cd7e
SC
44159 COND_MONOLITHIC_0_USE_ODBC_1="#"
44160 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
44161 COND_MONOLITHIC_0_USE_ODBC_1=""
44162 fi
44163
44164 COND_MONOLITHIC_1="#"
44165 if test "x$MONOLITHIC" = "x1" ; then
44166 COND_MONOLITHIC_1=""
44167 fi
44168
44169 COND_MONOLITHIC_1_SHARED_0="#"
44170 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
44171 COND_MONOLITHIC_1_SHARED_0=""
44172 fi
44173
44174 COND_MONOLITHIC_1_SHARED_1="#"
44175 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
44176 COND_MONOLITHIC_1_SHARED_1=""
44177 fi
44178
44179 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
44180 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
44181 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
44182 fi
44183
44184 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
44185 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
44186 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
44187 fi
44188
eb730a0c
JS
44189 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
44190 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
44191 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
44192 fi
44193
a848cd7e
SC
44194 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
44195 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
44196 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
44197 fi
44198
44199 COND_PLATFORM_MACOSX_1="#"
44200 if test "x$PLATFORM_MACOSX" = "x1" ; then
44201 COND_PLATFORM_MACOSX_1=""
44202 fi
44203
a30f955f
VS
44204 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
44205 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
44206 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
44207 fi
44208
a848cd7e
SC
44209 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
44210 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
44211 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
44212 fi
44213
44214 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
44215 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
44216 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
44217 fi
44218
44219 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
44220 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
44221 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
44222 fi
44223
fc480dc1
DE
44224 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
44225 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
44226 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
44227 fi
44228
1e9e8aba
DE
44229 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
44230 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44231 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
44232 fi
44233
ebee3cd0
VS
44234 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
44235 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
44236 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
44237 fi
44238
44239 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
44240 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
44241 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
44242 fi
44243
a848cd7e
SC
44244 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
44245 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
44246 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
44247 fi
44248
44249 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
44250 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
44251 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
44252 fi
44253
b48a2016
DE
44254 COND_PLATFORM_MACOS_1="#"
44255 if test "x$PLATFORM_MACOS" = "x1" ; then
44256 COND_PLATFORM_MACOS_1=""
44257 fi
44258
083508af
MW
44259 COND_PLATFORM_MAC_1="#"
44260 if test "x$PLATFORM_MAC" = "x1" ; then
44261 COND_PLATFORM_MAC_1=""
44262 fi
44263
83d8eb47
MW
44264 COND_PLATFORM_MSDOS_1="#"
44265 if test "x$PLATFORM_MSDOS" = "x1" ; then
44266 COND_PLATFORM_MSDOS_1=""
44267 fi
44268
a848cd7e
SC
44269 COND_PLATFORM_OS2_1="#"
44270 if test "x$PLATFORM_OS2" = "x1" ; then
44271 COND_PLATFORM_OS2_1=""
44272 fi
44273
44274 COND_PLATFORM_UNIX_0="#"
44275 if test "x$PLATFORM_UNIX" = "x0" ; then
44276 COND_PLATFORM_UNIX_0=""
44277 fi
44278
44279 COND_PLATFORM_UNIX_1="#"
44280 if test "x$PLATFORM_UNIX" = "x1" ; then
44281 COND_PLATFORM_UNIX_1=""
44282 fi
44283
44284 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
44285 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
44286 COND_PLATFORM_UNIX_1_USE_GUI_1=""
44287 fi
44288
44289 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
44290 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
44291 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
44292 fi
44293
44294 COND_PLATFORM_WIN32_0="#"
44295 if test "x$PLATFORM_WIN32" = "x0" ; then
44296 COND_PLATFORM_WIN32_0=""
44297 fi
44298
44299 COND_PLATFORM_WIN32_1="#"
44300 if test "x$PLATFORM_WIN32" = "x1" ; then
44301 COND_PLATFORM_WIN32_1=""
44302 fi
44303
44304 COND_SHARED_0="#"
44305 if test "x$SHARED" = "x0" ; then
44306 COND_SHARED_0=""
44307 fi
44308
083508af
MW
44309 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
44310 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
44311 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
44312 fi
44313
44314 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
44315 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
44316 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
44317 fi
44318
44319 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
44320 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
44321 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
44322 fi
44323
a848cd7e
SC
44324 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
44325 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
44326 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
44327 fi
44328
44329 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
44330 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44331 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
44332 fi
44333
44334 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
44335 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44336 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
44337 fi
44338
44339 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
44340 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44341 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
44342 fi
44343
083508af
MW
44344 COND_SHARED_0_USE_XRC_1="#"
44345 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
44346 COND_SHARED_0_USE_XRC_1=""
44347 fi
44348
a848cd7e
SC
44349 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
44350 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
44351 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
44352 fi
44353
44354 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
44355 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
44356 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
44357 fi
44358
44359 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
44360 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
44361 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
44362 fi
44363
44364 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
44365 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
44366 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
44367 fi
44368
44369 COND_SHARED_1="#"
44370 if test "x$SHARED" = "x1" ; then
44371 COND_SHARED_1=""
44372 fi
44373
44374 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
44375 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
44376 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
44377 fi
44378
083508af
MW
44379 COND_SHARED_1_USE_XRC_1="#"
44380 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
44381 COND_SHARED_1_USE_XRC_1=""
44382 fi
44383
a30f955f
VS
44384 COND_TOOLKIT_="#"
44385 if test "x$TOOLKIT" = "x" ; then
44386 COND_TOOLKIT_=""
44387 fi
44388
a848cd7e
SC
44389 COND_TOOLKIT_COCOA="#"
44390 if test "x$TOOLKIT" = "xCOCOA" ; then
44391 COND_TOOLKIT_COCOA=""
44392 fi
44393
a49baeab
DE
44394 COND_TOOLKIT_COCOA_USE_GUI_1="#"
44395 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
44396 COND_TOOLKIT_COCOA_USE_GUI_1=""
44397 fi
44398
a848cd7e
SC
44399 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
44400 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44401 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
44402 fi
44403
44404 COND_TOOLKIT_GTK="#"
44405 if test "x$TOOLKIT" = "xGTK" ; then
44406 COND_TOOLKIT_GTK=""
44407 fi
44408
44409 COND_TOOLKIT_GTK_USE_GUI_1="#"
44410 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
44411 COND_TOOLKIT_GTK_USE_GUI_1=""
44412 fi
44413
44414 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
44415 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44416 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
44417 fi
44418
44419 COND_TOOLKIT_MAC="#"
44420 if test "x$TOOLKIT" = "xMAC" ; then
44421 COND_TOOLKIT_MAC=""
44422 fi
44423
44424 COND_TOOLKIT_MAC_USE_GUI_1="#"
44425 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
44426 COND_TOOLKIT_MAC_USE_GUI_1=""
44427 fi
44428
44429 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
44430 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44431 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
44432 fi
44433
44434 COND_TOOLKIT_MGL="#"
44435 if test "x$TOOLKIT" = "xMGL" ; then
44436 COND_TOOLKIT_MGL=""
44437 fi
44438
44439 COND_TOOLKIT_MGL_USE_GUI_1="#"
44440 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
44441 COND_TOOLKIT_MGL_USE_GUI_1=""
44442 fi
44443
44444 COND_TOOLKIT_MOTIF="#"
44445 if test "x$TOOLKIT" = "xMOTIF" ; then
44446 COND_TOOLKIT_MOTIF=""
44447 fi
44448
44449 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
44450 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
44451 COND_TOOLKIT_MOTIF_USE_GUI_1=""
44452 fi
44453
44454 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
44455 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44456 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
44457 fi
44458
44459 COND_TOOLKIT_MSW="#"
44460 if test "x$TOOLKIT" = "xMSW" ; then
44461 COND_TOOLKIT_MSW=""
44462 fi
44463
44464 COND_TOOLKIT_MSW_USE_GUI_1="#"
44465 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
44466 COND_TOOLKIT_MSW_USE_GUI_1=""
44467 fi
44468
44469 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
44470 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44471 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
44472 fi
44473
44474 COND_TOOLKIT_PM="#"
44475 if test "x$TOOLKIT" = "xPM" ; then
44476 COND_TOOLKIT_PM=""
44477 fi
44478
44479 COND_TOOLKIT_PM_USE_GUI_1="#"
44480 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
44481 COND_TOOLKIT_PM_USE_GUI_1=""
44482 fi
44483
44484 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
44485 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44486 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
44487 fi
44488
3fd9c298
DE
44489 COND_TOOLKIT_WINCE="#"
44490 if test "x$TOOLKIT" = "xWINCE" ; then
44491 COND_TOOLKIT_WINCE=""
44492 fi
44493
44494 COND_TOOLKIT_WINCE_USE_GUI_1="#"
44495 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
44496 COND_TOOLKIT_WINCE_USE_GUI_1=""
44497 fi
44498
44499 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
44500 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44501 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
44502 fi
44503
a848cd7e
SC
44504 COND_TOOLKIT_X11="#"
44505 if test "x$TOOLKIT" = "xX11" ; then
44506 COND_TOOLKIT_X11=""
44507 fi
44508
44509 COND_TOOLKIT_X11_USE_GUI_1="#"
44510 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
44511 COND_TOOLKIT_X11_USE_GUI_1=""
44512 fi
44513
44514 COND_UNICODE_1="#"
44515 if test "x$UNICODE" = "x1" ; then
44516 COND_UNICODE_1=""
44517 fi
44518
44519 COND_USE_EXCEPTIONS_0="#"
44520 if test "x$USE_EXCEPTIONS" = "x0" ; then
44521 COND_USE_EXCEPTIONS_0=""
44522 fi
44523
44524 COND_USE_EXCEPTIONS_1="#"
44525 if test "x$USE_EXCEPTIONS" = "x1" ; then
44526 COND_USE_EXCEPTIONS_1=""
44527 fi
44528
44529 COND_USE_GUI_0="#"
44530 if test "x$USE_GUI" = "x0" ; then
44531 COND_USE_GUI_0=""
44532 fi
44533
44534 COND_USE_GUI_1="#"
44535 if test "x$USE_GUI" = "x1" ; then
44536 COND_USE_GUI_1=""
44537 fi
44538
44539 COND_USE_GUI_1_WXUNIV_0="#"
44540 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44541 COND_USE_GUI_1_WXUNIV_0=""
44542 fi
44543
44544 COND_USE_GUI_1_WXUNIV_1="#"
44545 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
44546 COND_USE_GUI_1_WXUNIV_1=""
44547 fi
44548
44549 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
44550 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44551 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
44552 fi
44553
44554 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
44555 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44556 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
44557 fi
44558
44559 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
44560 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44561 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
44562 fi
44563
083508af
MW
44564 COND_USE_ODBC_1="#"
44565 if test "x$USE_ODBC" = "x1" ; then
44566 COND_USE_ODBC_1=""
44567 fi
44568
44569 COND_USE_OPENGL_1="#"
44570 if test "x$USE_OPENGL" = "x1" ; then
44571 COND_USE_OPENGL_1=""
44572 fi
44573
a848cd7e
SC
44574 COND_USE_PLUGINS_0="#"
44575 if test "x$USE_PLUGINS" = "x0" ; then
44576 COND_USE_PLUGINS_0=""
44577 fi
44578
0b78747f
MW
44579 COND_USE_RTTI_0="#"
44580 if test "x$USE_RTTI" = "x0" ; then
44581 COND_USE_RTTI_0=""
44582 fi
44583
44584 COND_USE_RTTI_1="#"
44585 if test "x$USE_RTTI" = "x1" ; then
44586 COND_USE_RTTI_1=""
44587 fi
44588
a848cd7e
SC
44589 COND_USE_SOSYMLINKS_1="#"
44590 if test "x$USE_SOSYMLINKS" = "x1" ; then
44591 COND_USE_SOSYMLINKS_1=""
44592 fi
44593
eb730a0c
JS
44594 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
44595 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
44596 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
44597 fi
44598
a848cd7e
SC
44599 COND_USE_SOVERLINUX_1="#"
44600 if test "x$USE_SOVERLINUX" = "x1" ; then
44601 COND_USE_SOVERLINUX_1=""
44602 fi
44603
44604 COND_USE_SOVERSION_0="#"
44605 if test "x$USE_SOVERSION" = "x0" ; then
44606 COND_USE_SOVERSION_0=""
44607 fi
44608
44609 COND_USE_SOVERSOLARIS_1="#"
44610 if test "x$USE_SOVERSOLARIS" = "x1" ; then
44611 COND_USE_SOVERSOLARIS_1=""
44612 fi
44613
0b78747f
MW
44614 COND_USE_THREADS_0="#"
44615 if test "x$USE_THREADS" = "x0" ; then
44616 COND_USE_THREADS_0=""
44617 fi
44618
44619 COND_USE_THREADS_1="#"
44620 if test "x$USE_THREADS" = "x1" ; then
44621 COND_USE_THREADS_1=""
44622 fi
44623
a13a7f89
RL
44624 COND_USE_XRC_1="#"
44625 if test "x$USE_XRC" = "x1" ; then
44626 COND_USE_XRC_1=""
44627 fi
44628
eb730a0c
JS
44629 COND_WINDOWS_IMPLIB_1="#"
44630 if test "x$WINDOWS_IMPLIB" = "x1" ; then
44631 COND_WINDOWS_IMPLIB_1=""
44632 fi
44633
a848cd7e
SC
44634 COND_WITH_PLUGIN_SDL_1="#"
44635 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
44636 COND_WITH_PLUGIN_SDL_1=""
44637 fi
44638
1e6eb025
VZ
44639 COND_WXUNIV_0="#"
44640 if test "x$WXUNIV" = "x0" ; then
44641 COND_WXUNIV_0=""
44642 fi
44643
a848cd7e
SC
44644 COND_WXUNIV_1="#"
44645 if test "x$WXUNIV" = "x1" ; then
44646 COND_WXUNIV_1=""
44647 fi
44648
44649 COND_WXUSE_EXPAT_BUILTIN="#"
44650 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
44651 COND_WXUSE_EXPAT_BUILTIN=""
44652 fi
44653
44654 COND_WXUSE_LIBJPEG_BUILTIN="#"
44655 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44656 COND_WXUSE_LIBJPEG_BUILTIN=""
44657 fi
44658
44659 COND_WXUSE_LIBPNG_BUILTIN="#"
44660 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44661 COND_WXUSE_LIBPNG_BUILTIN=""
44662 fi
44663
44664 COND_WXUSE_LIBTIFF_BUILTIN="#"
44665 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44666 COND_WXUSE_LIBTIFF_BUILTIN=""
44667 fi
44668
44669 COND_WXUSE_ODBC_BUILTIN="#"
44670 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
44671 COND_WXUSE_ODBC_BUILTIN=""
44672 fi
44673
44674 COND_WXUSE_REGEX_BUILTIN="#"
44675 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
44676 COND_WXUSE_REGEX_BUILTIN=""
44677 fi
44678
44679 COND_WXUSE_ZLIB_BUILTIN="#"
44680 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
44681 COND_WXUSE_ZLIB_BUILTIN=""
44682 fi
44683
44684
44685
810b94f0
MW
44686 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
44687 { { 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
44688echo "$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;}
44689 { (exit 1); exit 1; }; }
44690 fi
44691
2057db16
VS
44692 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
44693 { { 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
44694echo "$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;}
44695 { (exit 1); exit 1; }; }
44696 fi
44697
a848cd7e 44698
fb00f58d
JS
44699if test "$wxUSE_WINE" = "yes"; then
44700 RESCOMP=wrc
44701fi
44702
ceec2216
RL
44703if test "$wxUSE_SHARED" = "yes"; then
44704
44705 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
44706 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
44707
5b674b9d
DE
44708 case "${host}" in
44709 *-pc-os2_emx | *-pc-os2-emx )
44710 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44711 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44712 cp -p ${srcdir}/src/os2/dllnames.sh .
44713 cp -p ${srcdir}/src/os2/dllar.sh .
44714 ;;
44715 esac
ceec2216
RL
44716else
44717
44718 EXE_LINKER="$CXX -o"
44719
44720fi
69120ee4
VZ
44721if test "$wxUSE_OMF" = "yes"; then
44722 case "${host}" in
44723 *-pc-os2_emx | *-pc-os2-emx )
44724 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
44725 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44726 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44727 ;;
44728 esac
44729fi
a848cd7e 44730
ddd14b14
RR
44731GCC_PRAGMA_FLAGS=""
44732PCH_FLAGS=""
87dd70d3 44733
c08ebc62 44734if test $GCC_PCH = 1 ; then
ddd14b14 44735 PCH_FLAGS="-DWX_PRECOMP"
87ae5038
RR
44736 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44737else
44738 if test "$GCC" = yes; then
44739 echo "$as_me:$LINENO: checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA" >&5
87dd70d3 44740echo $ECHO_N "checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44741 cat >conftest.$ac_ext <<_ACEOF
87dd70d3
RR
44742/* confdefs.h. */
44743_ACEOF
44744cat confdefs.h >>conftest.$ac_ext
44745cat >>conftest.$ac_ext <<_ACEOF
44746/* end confdefs.h. */
44747
44748int
44749main ()
44750{
44751#if (__GNUC__ < 4)
04e525a0 44752 Not GCC 4.0 or greater
87ae5038 44753 #endif
87dd70d3
RR
44754
44755 ;
44756 return 0;
44757}
44758_ACEOF
44759rm -f conftest.$ac_objext
44760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44761 (eval $ac_compile) 2>conftest.er1
44762 ac_status=$?
44763 grep -v '^ *+' conftest.er1 >conftest.err
44764 rm -f conftest.er1
44765 cat conftest.err >&5
44766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44767 (exit $ac_status); } &&
6ebeb4c7 44768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
87dd70d3
RR
44769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44770 (eval $ac_try) 2>&5
44771 ac_status=$?
44772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44773 (exit $ac_status); }; } &&
44774 { ac_try='test -s conftest.$ac_objext'
44775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44776 (eval $ac_try) 2>&5
44777 ac_status=$?
44778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44779 (exit $ac_status); }; }; then
44780 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44781 echo "$as_me:$LINENO: result: yes" >&5
87dd70d3
RR
44782echo "${ECHO_T}yes" >&6
44783else
44784 echo "$as_me: failed program was:" >&5
44785sed 's/^/| /' conftest.$ac_ext >&5
44786
44787echo "$as_me:$LINENO: result: no" >&5
44788echo "${ECHO_T}no" >&6
87ae5038 44789 case "${host}" in
cfda0ea8 44790 *-*-darwin* )
87ae5038
RR
44791 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44792 ;;
44793 *-*-mingw32* )
44794 if test "$wxUSE_STL" = "yes" -o \
ddd14b14
RR
44795 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
44796 "$wxUSE_NO_RTTI" != "yes"; then
87ae5038 44797 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 44798echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44799 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
44800/* confdefs.h. */
44801_ACEOF
44802cat confdefs.h >>conftest.$ac_ext
44803cat >>conftest.$ac_ext <<_ACEOF
44804/* end confdefs.h. */
44805
44806int
44807main ()
44808{
44809#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
04e525a0 44810 Not GCC 3.2 or greater
87ae5038 44811 #endif
ddd14b14
RR
44812
44813 ;
44814 return 0;
44815}
44816_ACEOF
44817rm -f conftest.$ac_objext
44818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44819 (eval $ac_compile) 2>conftest.er1
44820 ac_status=$?
44821 grep -v '^ *+' conftest.er1 >conftest.err
44822 rm -f conftest.er1
44823 cat conftest.err >&5
44824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44825 (exit $ac_status); } &&
6ebeb4c7 44826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
44827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44828 (eval $ac_try) 2>&5
44829 ac_status=$?
44830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44831 (exit $ac_status); }; } &&
44832 { ac_try='test -s conftest.$ac_objext'
44833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44834 (eval $ac_try) 2>&5
44835 ac_status=$?
44836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44837 (exit $ac_status); }; }; then
44838 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44839 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
44840echo "${ECHO_T}yes" >&6
44841else
44842 echo "$as_me: failed program was:" >&5
44843sed 's/^/| /' conftest.$ac_ext >&5
44844
44845echo "$as_me:$LINENO: result: no" >&5
44846echo "${ECHO_T}no" >&6
3314e67b 44847fi
ddd14b14 44848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
44849 fi
44850 ;;
44851 *-pc-os2_emx | *-pc-os2-emx )
44852 if test "$wxUSE_STL" = "yes"; then
44853 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 44854echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44855 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
44856/* confdefs.h. */
44857_ACEOF
44858cat confdefs.h >>conftest.$ac_ext
44859cat >>conftest.$ac_ext <<_ACEOF
44860/* end confdefs.h. */
44861
44862int
44863main ()
44864{
44865#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
04e525a0 44866 Not GCC 3.2 or greater
87ae5038 44867 #endif
ddd14b14
RR
44868
44869 ;
44870 return 0;
44871}
44872_ACEOF
44873rm -f conftest.$ac_objext
44874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44875 (eval $ac_compile) 2>conftest.er1
44876 ac_status=$?
44877 grep -v '^ *+' conftest.er1 >conftest.err
44878 rm -f conftest.er1
44879 cat conftest.err >&5
44880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44881 (exit $ac_status); } &&
6ebeb4c7 44882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
44883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44884 (eval $ac_try) 2>&5
44885 ac_status=$?
44886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44887 (exit $ac_status); }; } &&
44888 { ac_try='test -s conftest.$ac_objext'
44889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44890 (eval $ac_try) 2>&5
44891 ac_status=$?
44892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44893 (exit $ac_status); }; }; then
44894 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44895 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
44896echo "${ECHO_T}yes" >&6
44897else
44898 echo "$as_me: failed program was:" >&5
44899sed 's/^/| /' conftest.$ac_ext >&5
bea8e651 44900
ddd14b14
RR
44901echo "$as_me:$LINENO: result: no" >&5
44902echo "${ECHO_T}no" >&6
44903fi
44904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
44905 fi
44906 ;;
44907 esac
44908
44909fi
44910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44911 fi
ddd14b14
RR
44912fi
44913CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
44914
44915
44916SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
44917
44918
44919
44920
44921
44922
44923
44924
44925
44926
44927
44928
44929
44930
44931
44932
44933
44934
44935
44936
44937
44938
44939
44940
44941
44942
44943
44944
44945
44946
44947
44948
44949
44950
44951
44952
44953
44954
44955
44956
44957
44958
a848cd7e
SC
44959
44960
44961
44962
44963
44964
44965
44966
44967
44968
44969
44970
44971
44972
44973
44974
44975
44976
ddd14b14 44977
a848cd7e
SC
44978
44979
44980echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
44981echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 44982set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
44983if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
44984 echo $ECHO_N "(cached) $ECHO_C" >&6
44985else
44986 cat >conftest.make <<\_ACEOF
44987all:
44988 @echo 'ac_maketemp="$(MAKE)"'
44989_ACEOF
44990# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
44991eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
44992if test -n "$ac_maketemp"; then
44993 eval ac_cv_prog_make_${ac_make}_set=yes
44994else
44995 eval ac_cv_prog_make_${ac_make}_set=no
44996fi
44997rm -f conftest.make
44998fi
44999if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45000 echo "$as_me:$LINENO: result: yes" >&5
45001echo "${ECHO_T}yes" >&6
45002 SET_MAKE=
45003else
45004 echo "$as_me:$LINENO: result: no" >&5
45005echo "${ECHO_T}no" >&6
45006 SET_MAKE="MAKE=${MAKE-make}"
45007fi
45008
45009
a848cd7e 45010
ceec2216
RL
45011 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
45012
a848cd7e 45013
ceec2216 45014 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 45015
a848cd7e 45016
ceec2216 45017 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 45018
ceec2216
RL
45019
45020 ac_config_files="$ac_config_files version-script Makefile"
45021
45022
45023 ac_config_commands="$ac_config_commands wx-config
45024 "
a848cd7e
SC
45025
45026
9103d280
RL
45027
45028
a848cd7e
SC
45029if test "$wxUSE_GUI" = "yes"; then
45030 SUBDIRS="samples demos utils contrib"
45031else SUBDIRS="samples utils"
45032fi
45033
45034
45035
45036# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
45037if test "${with_cppunit_prefix+set}" = set; then
45038 withval="$with_cppunit_prefix"
45039 cppunit_config_prefix="$withval"
45040else
45041 cppunit_config_prefix=""
45042fi;
45043
45044# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
45045if test "${with_cppunit_exec_prefix+set}" = set; then
45046 withval="$with_cppunit_exec_prefix"
45047 cppunit_config_exec_prefix="$withval"
45048else
45049 cppunit_config_exec_prefix=""
45050fi;
45051
45052 if test x$cppunit_config_exec_prefix != x ; then
45053 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
45054 if test x${CPPUNIT_CONFIG+set} != xset ; then
45055 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
45056 fi
45057 fi
45058 if test x$cppunit_config_prefix != x ; then
45059 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
45060 if test x${CPPUNIT_CONFIG+set} != xset ; then
45061 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
45062 fi
45063 fi
45064
45065 # Extract the first word of "cppunit-config", so it can be a program name with args.
45066set dummy cppunit-config; ac_word=$2
45067echo "$as_me:$LINENO: checking for $ac_word" >&5
45068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45069if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
45070 echo $ECHO_N "(cached) $ECHO_C" >&6
45071else
45072 case $CPPUNIT_CONFIG in
45073 [\\/]* | ?:[\\/]*)
45074 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
45075 ;;
45076 *)
45077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45078for as_dir in $PATH
45079do
45080 IFS=$as_save_IFS
45081 test -z "$as_dir" && as_dir=.
45082 for ac_exec_ext in '' $ac_executable_extensions; do
45083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45084 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45086 break 2
45087 fi
45088done
45089done
45090
45091 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
45092 ;;
45093esac
45094fi
45095CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
45096
45097if test -n "$CPPUNIT_CONFIG"; then
45098 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
45099echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
45100else
45101 echo "$as_me:$LINENO: result: no" >&5
45102echo "${ECHO_T}no" >&6
45103fi
45104
45105 cppunit_version_min=1.8.0
45106
45107 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
45108echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
45109 no_cppunit=""
45110 if test "$CPPUNIT_CONFIG" = "no" ; then
45111 no_cppunit=yes
45112 else
45113 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
45114 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
45115 cppunit_version=`$CPPUNIT_CONFIG --version`
45116
45117 cppunit_major_version=`echo $cppunit_version | \
45118 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45119 cppunit_minor_version=`echo $cppunit_version | \
45120 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45121 cppunit_micro_version=`echo $cppunit_version | \
45122 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45123
45124 cppunit_major_min=`echo $cppunit_version_min | \
45125 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45126 cppunit_minor_min=`echo $cppunit_version_min | \
45127 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45128 cppunit_micro_min=`echo $cppunit_version_min | \
45129 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45130
45131 cppunit_version_proper=`expr \
45132 $cppunit_major_version \> $cppunit_major_min \| \
45133 $cppunit_major_version \= $cppunit_major_min \& \
45134 $cppunit_minor_version \> $cppunit_minor_min \| \
45135 $cppunit_major_version \= $cppunit_major_min \& \
45136 $cppunit_minor_version \= $cppunit_minor_min \& \
45137 $cppunit_micro_version \>= $cppunit_micro_min `
45138
45139 if test "$cppunit_version_proper" = "1" ; then
45140 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
45141echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
45142 else
45143 echo "$as_me:$LINENO: result: no" >&5
45144echo "${ECHO_T}no" >&6
45145 no_cppunit=yes
45146 fi
45147 fi
45148
45149 if test "x$no_cppunit" = x ; then
c2218763 45150 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
45151 else
45152 CPPUNIT_CFLAGS=""
45153 CPPUNIT_LIBS=""
c2218763 45154 :
a848cd7e
SC
45155 fi
45156
45157
45158
45159
45160
45161for subdir in `echo $SUBDIRS`; do
45162 if test -d ${srcdir}/${subdir} ; then
45163 if test "$wxUSE_GUI" = "yes"; then
45164 if test ${subdir} = "samples"; then
45165 makefiles="samples/Makefile.in $makefiles"
45166 for sample in `echo $SAMPLES_SUBDIRS`; do
45167 if test -d $srcdir/samples/$sample; then
45168 makefiles="samples/$sample/Makefile.in $makefiles"
45169 fi
45170 done
9c112555
MW
45171 else
45172 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
45173 eval "disabled=\$$disabled_var"
45174 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
45175 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
45176 fi
45177 else if test ${subdir} = "samples"; then
45178 makefiles="samples/Makefile.in samples/console/Makefile.in"
45179 elif test ${subdir} = "utils"; then
6537ccf8
VS
45180 makefiles=""
45181 for util in HelpGen tex2rtf ; do
45182 if test -d $srcdir/utils/$util ; then
45183 makefiles="utils/$util/Makefile.in \
45184 utils/$util/src/Makefile.in \
45185 $makefiles"
45186 fi
45187 done
a848cd7e
SC
45188 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
45189 fi
45190 fi
45191
45192 for mkin in $makefiles ; do
45193 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
45194 ac_config_files="$ac_config_files $mk"
45195
45196 done
45197 fi
45198done
45199
45200
45201cat >confcache <<\_ACEOF
45202# This file is a shell script that caches the results of configure
45203# tests run on this system so they can be shared between configure
45204# scripts and configure runs, see configure's option --config-cache.
45205# It is not useful on other systems. If it contains results you don't
45206# want to keep, you may remove or edit it.
45207#
45208# config.status only pays attention to the cache file if you give it
45209# the --recheck option to rerun configure.
45210#
45211# `ac_cv_env_foo' variables (set or unset) will be overridden when
45212# loading this file, other *unset* `ac_cv_foo' will be assigned the
45213# following values.
45214
45215_ACEOF
45216
45217# The following way of writing the cache mishandles newlines in values,
45218# but we know of no workaround that is simple, portable, and efficient.
45219# So, don't put newlines in cache variables' values.
45220# Ultrix sh set writes to stderr and can't be redirected directly,
45221# and sets the high bit in the cache file unless we assign to the vars.
45222{
45223 (set) 2>&1 |
45224 case `(ac_space=' '; set | grep ac_space) 2>&1` in
45225 *ac_space=\ *)
45226 # `set' does not quote correctly, so add quotes (double-quote
45227 # substitution turns \\\\ into \\, and sed turns \\ into \).
45228 sed -n \
ac1cb8d3
VS
45229 "s/'/'\\\\''/g;
45230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
45231 ;;
45232 *)
45233 # `set' quotes correctly as required by POSIX, so do not add quotes.
45234 sed -n \
ac1cb8d3 45235 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
45236 ;;
45237 esac;
45238} |
45239 sed '
45240 t clear
45241 : clear
45242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45243 t end
45244 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45245 : end' >>confcache
45246if diff $cache_file confcache >/dev/null 2>&1; then :; else
45247 if test -w $cache_file; then
45248 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
45249 cat confcache >$cache_file
45250 else
45251 echo "not updating unwritable cache $cache_file"
45252 fi
45253fi
45254rm -f confcache
45255
45256test "x$prefix" = xNONE && prefix=$ac_default_prefix
45257# Let make expand exec_prefix.
45258test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45259
45260# VPATH may cause trouble with some makes, so we remove $(srcdir),
45261# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45262# trailing colons and then remove the whole line if VPATH becomes empty
45263# (actually we leave an empty line to preserve line numbers).
45264if test "x$srcdir" = x.; then
ac1cb8d3 45265 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
45266s/:*\$(srcdir):*/:/;
45267s/:*\${srcdir}:*/:/;
45268s/:*@srcdir@:*/:/;
ac1cb8d3 45269s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 45270s/:*$//;
ac1cb8d3 45271s/^[^=]*=[ ]*$//;
a848cd7e
SC
45272}'
45273fi
45274
45275DEFS=-DHAVE_CONFIG_H
45276
45277ac_libobjs=
45278ac_ltlibobjs=
45279for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45280 # 1. Remove the extension, and $U if already installed.
45281 ac_i=`echo "$ac_i" |
ac1cb8d3 45282 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
45283 # 2. Add them.
45284 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
45285 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
45286done
45287LIBOBJS=$ac_libobjs
45288
45289LTLIBOBJS=$ac_ltlibobjs
45290
45291
45292
45293: ${CONFIG_STATUS=./config.status}
45294ac_clean_files_save=$ac_clean_files
45295ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45296{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45297echo "$as_me: creating $CONFIG_STATUS" >&6;}
45298cat >$CONFIG_STATUS <<_ACEOF
45299#! $SHELL
45300# Generated by $as_me.
45301# Run this file to recreate the current configuration.
45302# Compiler output produced by configure, useful for debugging
45303# configure, is in config.log if it exists.
45304
45305debug=false
45306ac_cs_recheck=false
45307ac_cs_silent=false
45308SHELL=\${CONFIG_SHELL-$SHELL}
45309_ACEOF
45310
45311cat >>$CONFIG_STATUS <<\_ACEOF
45312## --------------------- ##
45313## M4sh Initialization. ##
45314## --------------------- ##
45315
45316# Be Bourne compatible
45317if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
45318 emulate sh
45319 NULLCMD=:
45320 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
45321 # is contrary to our usage. Disable this feature.
45322 alias -g '${1+"$@"}'='"$@"'
45323elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
45324 set -o posix
45325fi
ac1cb8d3 45326DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
45327
45328# Support unset when possible.
ac1cb8d3 45329if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
45330 as_unset=unset
45331else
45332 as_unset=false
45333fi
45334
45335
45336# Work around bugs in pre-3.0 UWIN ksh.
45337$as_unset ENV MAIL MAILPATH
45338PS1='$ '
45339PS2='> '
45340PS4='+ '
45341
45342# NLS nuisances.
45343for as_var in \
45344 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45345 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45346 LC_TELEPHONE LC_TIME
45347do
ac1cb8d3 45348 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
45349 eval $as_var=C; export $as_var
45350 else
45351 $as_unset $as_var
45352 fi
45353done
45354
45355# Required to use basename.
45356if expr a : '\(a\)' >/dev/null 2>&1; then
45357 as_expr=expr
45358else
45359 as_expr=false
45360fi
45361
45362if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45363 as_basename=basename
45364else
45365 as_basename=false
45366fi
45367
45368
45369# Name of the executable.
45370as_me=`$as_basename "$0" ||
45371$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45372 X"$0" : 'X\(//\)$' \| \
45373 X"$0" : 'X\(/\)$' \| \
45374 . : '\(.\)' 2>/dev/null ||
45375echo X/"$0" |
45376 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45377 /^X\/\(\/\/\)$/{ s//\1/; q; }
45378 /^X\/\(\/\).*/{ s//\1/; q; }
45379 s/.*/./; q'`
45380
45381
45382# PATH needs CR, and LINENO needs CR and PATH.
45383# Avoid depending upon Character Ranges.
45384as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45385as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45386as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45387as_cr_digits='0123456789'
45388as_cr_alnum=$as_cr_Letters$as_cr_digits
45389
45390# The user is always right.
45391if test "${PATH_SEPARATOR+set}" != set; then
45392 echo "#! /bin/sh" >conf$$.sh
45393 echo "exit 0" >>conf$$.sh
45394 chmod +x conf$$.sh
45395 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45396 PATH_SEPARATOR=';'
45397 else
45398 PATH_SEPARATOR=:
45399 fi
45400 rm -f conf$$.sh
45401fi
45402
45403
45404 as_lineno_1=$LINENO
45405 as_lineno_2=$LINENO
45406 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45407 test "x$as_lineno_1" != "x$as_lineno_2" &&
45408 test "x$as_lineno_3" = "x$as_lineno_2" || {
45409 # Find who we are. Look in the path if we contain no path at all
45410 # relative or not.
45411 case $0 in
45412 *[\\/]* ) as_myself=$0 ;;
45413 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45414for as_dir in $PATH
45415do
45416 IFS=$as_save_IFS
45417 test -z "$as_dir" && as_dir=.
45418 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45419done
45420
45421 ;;
45422 esac
45423 # We did not find ourselves, most probably we were run as `sh COMMAND'
45424 # in which case we are not to be found in the path.
45425 if test "x$as_myself" = x; then
45426 as_myself=$0
45427 fi
45428 if test ! -f "$as_myself"; then
45429 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45430echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45431 { (exit 1); exit 1; }; }
45432 fi
45433 case $CONFIG_SHELL in
45434 '')
45435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45436for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45437do
45438 IFS=$as_save_IFS
45439 test -z "$as_dir" && as_dir=.
45440 for as_base in sh bash ksh sh5; do
45441 case $as_dir in
45442 /*)
45443 if ("$as_dir/$as_base" -c '
45444 as_lineno_1=$LINENO
45445 as_lineno_2=$LINENO
45446 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45447 test "x$as_lineno_1" != "x$as_lineno_2" &&
45448 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45449 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45450 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45451 CONFIG_SHELL=$as_dir/$as_base
45452 export CONFIG_SHELL
45453 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45454 fi;;
45455 esac
45456 done
45457done
45458;;
45459 esac
45460
45461 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45462 # uniformly replaced by the line number. The first 'sed' inserts a
45463 # line-number line before each line; the second 'sed' does the real
45464 # work. The second script uses 'N' to pair each line-number line
45465 # with the numbered line, and appends trailing '-' during
45466 # substitution so that $LINENO is not a special case at line end.
45467 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45468 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45469 sed '=' <$as_myself |
45470 sed '
45471 N
45472 s,$,-,
45473 : loop
45474 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45475 t loop
45476 s,-$,,
45477 s,^['$as_cr_digits']*\n,,
45478 ' >$as_me.lineno &&
45479 chmod +x $as_me.lineno ||
45480 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45481echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45482 { (exit 1); exit 1; }; }
45483
45484 # Don't try to exec as it changes $[0], causing all sort of problems
45485 # (the dirname of $[0] is not the place where we might find the
45486 # original and so on. Autoconf is especially sensible to this).
45487 . ./$as_me.lineno
45488 # Exit status is that of the last command.
45489 exit
45490}
45491
45492
45493case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45494 *c*,-n*) ECHO_N= ECHO_C='
45495' ECHO_T=' ' ;;
45496 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45497 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45498esac
45499
45500if expr a : '\(a\)' >/dev/null 2>&1; then
45501 as_expr=expr
45502else
45503 as_expr=false
45504fi
45505
45506rm -f conf$$ conf$$.exe conf$$.file
45507echo >conf$$.file
45508if ln -s conf$$.file conf$$ 2>/dev/null; then
45509 # We could just check for DJGPP; but this test a) works b) is more generic
45510 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45511 if test -f conf$$.exe; then
45512 # Don't use ln at all; we don't have any links
45513 as_ln_s='cp -p'
45514 else
45515 as_ln_s='ln -s'
45516 fi
45517elif ln conf$$.file conf$$ 2>/dev/null; then
45518 as_ln_s=ln
45519else
45520 as_ln_s='cp -p'
45521fi
45522rm -f conf$$ conf$$.exe conf$$.file
45523
45524if mkdir -p . 2>/dev/null; then
45525 as_mkdir_p=:
45526else
ac1cb8d3 45527 test -d ./-p && rmdir ./-p
a848cd7e
SC
45528 as_mkdir_p=false
45529fi
45530
45531as_executable_p="test -f"
45532
45533# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 45534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45535
45536# Sed expression to map a string onto a valid variable name.
ac1cb8d3 45537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45538
45539
45540# IFS
45541# We need space, tab and new line, in precisely that order.
45542as_nl='
45543'
45544IFS=" $as_nl"
45545
45546# CDPATH.
45547$as_unset CDPATH
45548
45549exec 6>&1
45550
45551# Open the log real soon, to keep \$[0] and so on meaningful, and to
45552# report actual input values of CONFIG_FILES etc. instead of their
45553# values after options handling. Logging --version etc. is OK.
45554exec 5>>config.log
45555{
45556 echo
45557 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45558## Running $as_me. ##
45559_ASBOX
45560} >&5
45561cat >&5 <<_CSEOF
45562
eb730a0c 45563This file was extended by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 45564generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
45565
45566 CONFIG_FILES = $CONFIG_FILES
45567 CONFIG_HEADERS = $CONFIG_HEADERS
45568 CONFIG_LINKS = $CONFIG_LINKS
45569 CONFIG_COMMANDS = $CONFIG_COMMANDS
45570 $ $0 $@
45571
45572_CSEOF
45573echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45574echo >&5
45575_ACEOF
45576
45577# Files that config.status was made for.
45578if test -n "$ac_config_files"; then
45579 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45580fi
45581
45582if test -n "$ac_config_headers"; then
45583 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45584fi
45585
45586if test -n "$ac_config_links"; then
45587 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45588fi
45589
45590if test -n "$ac_config_commands"; then
45591 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45592fi
45593
45594cat >>$CONFIG_STATUS <<\_ACEOF
45595
45596ac_cs_usage="\
45597\`$as_me' instantiates files from templates according to the
45598current configuration.
45599
45600Usage: $0 [OPTIONS] [FILE]...
45601
45602 -h, --help print this help, then exit
45603 -V, --version print version number, then exit
45604 -q, --quiet do not print progress messages
45605 -d, --debug don't remove temporary files
45606 --recheck update $as_me by reconfiguring in the same conditions
45607 --file=FILE[:TEMPLATE]
ac1cb8d3 45608 instantiate the configuration file FILE
a848cd7e 45609 --header=FILE[:TEMPLATE]
ac1cb8d3 45610 instantiate the configuration header FILE
a848cd7e
SC
45611
45612Configuration files:
45613$config_files
45614
45615Configuration headers:
45616$config_headers
45617
45618Configuration commands:
45619$config_commands
45620
45621Report bugs to <bug-autoconf@gnu.org>."
45622_ACEOF
45623
45624cat >>$CONFIG_STATUS <<_ACEOF
45625ac_cs_version="\\
eb730a0c 45626wxWidgets config.status 2.6.2
ac1cb8d3 45627configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
45628 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45629
ac1cb8d3 45630Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
45631This config.status script is free software; the Free Software Foundation
45632gives unlimited permission to copy, distribute and modify it."
45633srcdir=$srcdir
45634INSTALL="$INSTALL"
45635_ACEOF
45636
45637cat >>$CONFIG_STATUS <<\_ACEOF
45638# If no file are specified by the user, then we need to provide default
45639# value. By we need to know if files were specified by the user.
45640ac_need_defaults=:
45641while test $# != 0
45642do
45643 case $1 in
45644 --*=*)
45645 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45646 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45647 ac_shift=:
45648 ;;
45649 -*)
45650 ac_option=$1
45651 ac_optarg=$2
45652 ac_shift=shift
45653 ;;
45654 *) # This is not an option, so the user has probably given explicit
45655 # arguments.
45656 ac_option=$1
45657 ac_need_defaults=false;;
45658 esac
45659
45660 case $ac_option in
45661 # Handling of the options.
45662_ACEOF
45663cat >>$CONFIG_STATUS <<\_ACEOF
45664 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45665 ac_cs_recheck=: ;;
45666 --version | --vers* | -V )
45667 echo "$ac_cs_version"; exit 0 ;;
45668 --he | --h)
45669 # Conflict between --help and --header
45670 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45671Try \`$0 --help' for more information." >&5
45672echo "$as_me: error: ambiguous option: $1
45673Try \`$0 --help' for more information." >&2;}
45674 { (exit 1); exit 1; }; };;
45675 --help | --hel | -h )
45676 echo "$ac_cs_usage"; exit 0 ;;
45677 --debug | --d* | -d )
45678 debug=: ;;
45679 --file | --fil | --fi | --f )
45680 $ac_shift
45681 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45682 ac_need_defaults=false;;
45683 --header | --heade | --head | --hea )
45684 $ac_shift
45685 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45686 ac_need_defaults=false;;
45687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45688 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45689 ac_cs_silent=: ;;
45690
45691 # This is an error.
45692 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45693Try \`$0 --help' for more information." >&5
45694echo "$as_me: error: unrecognized option: $1
45695Try \`$0 --help' for more information." >&2;}
45696 { (exit 1); exit 1; }; } ;;
45697
45698 *) ac_config_targets="$ac_config_targets $1" ;;
45699
45700 esac
45701 shift
45702done
45703
45704ac_configure_extra_args=
45705
45706if $ac_cs_silent; then
45707 exec 6>/dev/null
45708 ac_configure_extra_args="$ac_configure_extra_args --silent"
45709fi
45710
45711_ACEOF
45712cat >>$CONFIG_STATUS <<_ACEOF
45713if \$ac_cs_recheck; then
45714 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45715 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45716fi
45717
45718_ACEOF
45719
45720cat >>$CONFIG_STATUS <<_ACEOF
45721#
45722# INIT-COMMANDS section.
45723#
45724
ceec2216
RL
45725 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45726 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45727 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45728 LN_S="${LN_S}"
a848cd7e
SC
45729
45730
45731_ACEOF
45732
45733
45734
45735cat >>$CONFIG_STATUS <<\_ACEOF
45736for ac_config_target in $ac_config_targets
45737do
45738 case "$ac_config_target" in
45739 # Handling of arguments.
ceec2216
RL
45740 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
45741 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
45742 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
45743 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45744 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
45745 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
45746 "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
45747 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45748echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45749 { (exit 1); exit 1; }; };;
45750 esac
45751done
45752
45753# If the user did not use the arguments to specify the items to instantiate,
45754# then the envvar interface is used. Set only those that are not.
45755# We use the long form for the default assignment because of an extremely
45756# bizarre bug on SunOS 4.1.3.
45757if $ac_need_defaults; then
45758 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45759 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45760 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45761fi
45762
45763# Have a temporary directory for convenience. Make it in the build tree
45764# simply because there is no reason to put it here, and in addition,
45765# creating and moving files from /tmp can sometimes cause problems.
45766# Create a temporary directory, and hook for its removal unless debugging.
45767$debug ||
45768{
45769 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45770 trap '{ (exit 1); exit 1; }' 1 2 13 15
45771}
45772
45773# Create a (secure) tmp directory for tmp files.
45774
45775{
45776 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45777 test -n "$tmp" && test -d "$tmp"
45778} ||
45779{
45780 tmp=./confstat$$-$RANDOM
45781 (umask 077 && mkdir $tmp)
45782} ||
45783{
45784 echo "$me: cannot create a temporary directory in ." >&2
45785 { (exit 1); exit 1; }
45786}
45787
45788_ACEOF
45789
45790cat >>$CONFIG_STATUS <<_ACEOF
45791
45792#
45793# CONFIG_FILES section.
45794#
45795
45796# No need to generate the scripts if there are no CONFIG_FILES.
45797# This happens for instance when ./config.status config.h
45798if test -n "\$CONFIG_FILES"; then
45799 # Protect against being on the right side of a sed subst in config.status.
45800 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45801 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45802s,@SHELL@,$SHELL,;t t
45803s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45804s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45805s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45806s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45807s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45808s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45809s,@exec_prefix@,$exec_prefix,;t t
45810s,@prefix@,$prefix,;t t
45811s,@program_transform_name@,$program_transform_name,;t t
45812s,@bindir@,$bindir,;t t
45813s,@sbindir@,$sbindir,;t t
45814s,@libexecdir@,$libexecdir,;t t
45815s,@datadir@,$datadir,;t t
45816s,@sysconfdir@,$sysconfdir,;t t
45817s,@sharedstatedir@,$sharedstatedir,;t t
45818s,@localstatedir@,$localstatedir,;t t
45819s,@libdir@,$libdir,;t t
45820s,@includedir@,$includedir,;t t
45821s,@oldincludedir@,$oldincludedir,;t t
45822s,@infodir@,$infodir,;t t
45823s,@mandir@,$mandir,;t t
45824s,@build_alias@,$build_alias,;t t
45825s,@host_alias@,$host_alias,;t t
45826s,@target_alias@,$target_alias,;t t
45827s,@DEFS@,$DEFS,;t t
45828s,@ECHO_C@,$ECHO_C,;t t
45829s,@ECHO_N@,$ECHO_N,;t t
45830s,@ECHO_T@,$ECHO_T,;t t
45831s,@LIBS@,$LIBS,;t t
45832s,@build@,$build,;t t
45833s,@build_cpu@,$build_cpu,;t t
45834s,@build_vendor@,$build_vendor,;t t
45835s,@build_os@,$build_os,;t t
45836s,@host@,$host,;t t
45837s,@host_cpu@,$host_cpu,;t t
45838s,@host_vendor@,$host_vendor,;t t
45839s,@host_os@,$host_os,;t t
45840s,@target@,$target,;t t
45841s,@target_cpu@,$target_cpu,;t t
45842s,@target_vendor@,$target_vendor,;t t
45843s,@target_os@,$target_os,;t t
45844s,@CC@,$CC,;t t
45845s,@CFLAGS@,$CFLAGS,;t t
45846s,@LDFLAGS@,$LDFLAGS,;t t
45847s,@CPPFLAGS@,$CPPFLAGS,;t t
45848s,@ac_ct_CC@,$ac_ct_CC,;t t
45849s,@EXEEXT@,$EXEEXT,;t t
45850s,@OBJEXT@,$OBJEXT,;t t
45851s,@CPP@,$CPP,;t t
45852s,@EGREP@,$EGREP,;t t
45853s,@CXX@,$CXX,;t t
45854s,@CXXFLAGS@,$CXXFLAGS,;t t
45855s,@ac_ct_CXX@,$ac_ct_CXX,;t t
45856s,@RANLIB@,$RANLIB,;t t
45857s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45858s,@AR@,$AR,;t t
45859s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45860s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45861s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45862s,@STRIP@,$STRIP,;t t
45863s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
45864s,@LN_S@,$LN_S,;t t
45865s,@CXXCPP@,$CXXCPP,;t t
45866s,@subdirs@,$subdirs,;t t
45867s,@PKG_CONFIG@,$PKG_CONFIG,;t t
45868s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
45869s,@GTK_LIBS@,$GTK_LIBS,;t t
45870s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
45871s,@X_CFLAGS@,$X_CFLAGS,;t t
45872s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
45873s,@X_LIBS@,$X_LIBS,;t t
45874s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
45875s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
45876s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
45877s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
45878s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
45879s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
45880s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
45881s,@RESCOMP@,$RESCOMP,;t t
45882s,@DEREZ@,$DEREZ,;t t
45883s,@SETFILE@,$SETFILE,;t t
45884s,@LIBICONV@,$LIBICONV,;t t
45885s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
45886s,@SDL_CONFIG@,$SDL_CONFIG,;t t
45887s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
45888s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
45889s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
45890s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
45891s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
45892s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
45893s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
45894s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
45895s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
45896s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
45897s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
45898s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
45899s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
45900s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
45901s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
45902s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
45903s,@VENDOR@,$VENDOR,;t t
45904s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
45905s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
45906s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
45907s,@WXUNIV@,$WXUNIV,;t t
45908s,@MONOLITHIC@,$MONOLITHIC,;t t
45909s,@USE_PLUGINS@,$USE_PLUGINS,;t t
45910s,@EXTRALIBS@,$EXTRALIBS,;t t
45911s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
45912s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
45913s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
45914s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
45915s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
45916s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
45917s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 45918s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
45919s,@UNICODE@,$UNICODE,;t t
45920s,@BUILD@,$BUILD,;t t
45921s,@DEBUG_INFO@,$DEBUG_INFO,;t t
45922s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
45923s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
45924s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
45925s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
45926s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
45927s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
45928s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
45929s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
45930s,@SET_MAKE@,$SET_MAKE,;t t
45931s,@MAKE_SET@,$MAKE_SET,;t t
45932s,@ac_ct_AR@,$ac_ct_AR,;t t
45933s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45934s,@NM@,$NM,;t t
45935s,@ac_ct_NM@,$ac_ct_NM,;t t
45936s,@INSTALL_DIR@,$INSTALL_DIR,;t t
45937s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
45938s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
45939s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
45940s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
45941s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 45942s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
45943s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
45944s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 45945s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
45946s,@SO_SUFFIX@,$SO_SUFFIX,;t t
45947s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
45948s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
45949s,@LIBPREFIX@,$LIBPREFIX,;t t
45950s,@LIBEXT@,$LIBEXT,;t t
45951s,@DLLPREFIX@,$DLLPREFIX,;t t
45952s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 45953s,@dlldir@,$dlldir,;t t
a848cd7e
SC
45954s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
45955s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
45956s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
45957s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
45958s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
45959s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 45960s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
45961s,@USE_SOVERSION@,$USE_SOVERSION,;t t
45962s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
45963s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 45964s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
45965s,@USE_MACVERSION@,$USE_MACVERSION,;t t
45966s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
45967s,@SONAME_FLAG@,$SONAME_FLAG,;t t
45968s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45969s,@GCC_PCH@,$GCC_PCH,;t t
45970s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
45971s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
45972s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
45973s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
45974s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
45975s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
45976s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
45977s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
45978s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
45979s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
45980s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
45981s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
45982s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
45983s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45984s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
45985s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
45986s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
45987s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 45988s,@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 45989s,@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 45990s,@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 45991s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 45992s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45993s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
45994s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 45995s,@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 45996s,@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 45997s,@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 45998s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 45999s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
46000s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
46001s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
46002s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
46003s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
46004s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
46005s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 46006s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
46007s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
46008s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 46009s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
46010s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
46011s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
46012s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 46013s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 46014s,@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
46015s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
46016s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
46017s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
46018s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 46019s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 46020s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 46021s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
46022s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
46023s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
46024s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
46025s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
46026s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
46027s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
46028s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
46029s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
46030s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
46031s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
46032s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
46033s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
46034s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
46035s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
46036s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 46037s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
46038s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
46039s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
46040s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
46041s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
46042s,@COND_SHARED_1@,$COND_SHARED_1,;t t
46043s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 46044s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 46045s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 46046s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 46047s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
46048s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
46049s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
46050s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
46051s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
46052s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
46053s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
46054s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
46055s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
46056s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
46057s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
46058s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
46059s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
46060s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
46061s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
46062s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
46063s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
46064s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
46065s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
46066s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
46067s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
46068s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
46069s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
46070s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
46071s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
46072s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
46073s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
46074s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
46075s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
46076s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
46077s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
46078s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
46079s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
46080s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
46081s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
46082s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 46083s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
46084s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
46085s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 46086s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 46087s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
46088s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
46089s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
46090s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
46091s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
46092s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 46093s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 46094s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 46095s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 46096s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
46097s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
46098s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
46099s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
46100s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
46101s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
46102s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
46103s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
46104s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 46105s,@SHARED@,$SHARED,;t t
a848cd7e
SC
46106s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
46107s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
46108s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
46109s,@USE_GUI@,$USE_GUI,;t t
46110s,@AFMINSTALL@,$AFMINSTALL,;t t
46111s,@WIN32INSTALL@,$WIN32INSTALL,;t t
46112s,@TOOLKIT@,$TOOLKIT,;t t
46113s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 46114s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 46115s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
46116s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
46117s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 46118s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
46119s,@WIDGET_SET@,$WIDGET_SET,;t t
46120s,@WX_RELEASE@,$WX_RELEASE,;t t
46121s,@WX_VERSION@,$WX_VERSION,;t t
46122s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
46123s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
46124s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 46125s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
46126s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
46127s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
46128s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
46129s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 46130s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
46131s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
46132s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 46133s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 46134s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
46135s,@DISTDIR@,$DISTDIR,;t t
46136s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
46137s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
46138s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
46139s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
46140s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
46141s,@RESFLAGS@,$RESFLAGS,;t t
46142s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
46143s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
46144s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
46145s,@LIBWXMACRES@,$LIBWXMACRES,;t t
46146s,@MACRESCOMP@,$MACRESCOMP,;t t
46147s,@MACSETFILE@,$MACSETFILE,;t t
46148s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
46149s,@GCC@,$GCC,;t t
a848cd7e 46150s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
46151s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
46152s,@LIBOBJS@,$LIBOBJS,;t t
46153s,@LTLIBOBJS@,$LTLIBOBJS,;t t
46154CEOF
46155
46156_ACEOF
46157
46158 cat >>$CONFIG_STATUS <<\_ACEOF
46159 # Split the substitutions into bite-sized pieces for seds with
46160 # small command number limits, like on Digital OSF/1 and HP-UX.
46161 ac_max_sed_lines=48
46162 ac_sed_frag=1 # Number of current file.
46163 ac_beg=1 # First line for current file.
46164 ac_end=$ac_max_sed_lines # Line after last line for current file.
46165 ac_more_lines=:
46166 ac_sed_cmds=
46167 while $ac_more_lines; do
46168 if test $ac_beg -gt 1; then
46169 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46170 else
46171 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46172 fi
46173 if test ! -s $tmp/subs.frag; then
46174 ac_more_lines=false
46175 else
46176 # The purpose of the label and of the branching condition is to
46177 # speed up the sed processing (if there are no `@' at all, there
46178 # is no need to browse any of the substitutions).
46179 # These are the two extra sed commands mentioned above.
46180 (echo ':t
46181 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
46182 if test -z "$ac_sed_cmds"; then
ac1cb8d3 46183 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 46184 else
ac1cb8d3 46185 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
46186 fi
46187 ac_sed_frag=`expr $ac_sed_frag + 1`
46188 ac_beg=$ac_end
46189 ac_end=`expr $ac_end + $ac_max_sed_lines`
46190 fi
46191 done
46192 if test -z "$ac_sed_cmds"; then
46193 ac_sed_cmds=cat
46194 fi
46195fi # test -n "$CONFIG_FILES"
46196
46197_ACEOF
46198cat >>$CONFIG_STATUS <<\_ACEOF
46199for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
46200 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46201 case $ac_file in
46202 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
46203 cat >$tmp/stdin
46204 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46205 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 46206 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 46207 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
46208 * ) ac_file_in=$ac_file.in ;;
46209 esac
46210
46211 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
46212 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46213$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46214 X"$ac_file" : 'X\(//\)[^/]' \| \
46215 X"$ac_file" : 'X\(//\)$' \| \
46216 X"$ac_file" : 'X\(/\)' \| \
46217 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46218echo X"$ac_file" |
46219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46220 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46221 /^X\(\/\/\)$/{ s//\1/; q; }
46222 /^X\(\/\).*/{ s//\1/; q; }
46223 s/.*/./; q'`
46224 { if $as_mkdir_p; then
46225 mkdir -p "$ac_dir"
46226 else
46227 as_dir="$ac_dir"
46228 as_dirs=
46229 while test ! -d "$as_dir"; do
46230 as_dirs="$as_dir $as_dirs"
46231 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46232$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46233 X"$as_dir" : 'X\(//\)[^/]' \| \
46234 X"$as_dir" : 'X\(//\)$' \| \
46235 X"$as_dir" : 'X\(/\)' \| \
46236 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46237echo X"$as_dir" |
46238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46239 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46240 /^X\(\/\/\)$/{ s//\1/; q; }
46241 /^X\(\/\).*/{ s//\1/; q; }
46242 s/.*/./; q'`
46243 done
46244 test ! -n "$as_dirs" || mkdir $as_dirs
46245 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46246echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46247 { (exit 1); exit 1; }; }; }
46248
46249 ac_builddir=.
46250
46251if test "$ac_dir" != .; then
46252 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46253 # A "../" for each directory in $ac_dir_suffix.
46254 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46255else
46256 ac_dir_suffix= ac_top_builddir=
46257fi
46258
46259case $srcdir in
46260 .) # No --srcdir option. We are building in place.
46261 ac_srcdir=.
46262 if test -z "$ac_top_builddir"; then
46263 ac_top_srcdir=.
46264 else
46265 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46266 fi ;;
46267 [\\/]* | ?:[\\/]* ) # Absolute path.
46268 ac_srcdir=$srcdir$ac_dir_suffix;
46269 ac_top_srcdir=$srcdir ;;
46270 *) # Relative path.
46271 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46272 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46273esac
ac1cb8d3
VS
46274
46275# Do not use `cd foo && pwd` to compute absolute paths, because
46276# the directories may not exist.
46277case `pwd` in
46278.) ac_abs_builddir="$ac_dir";;
46279*)
46280 case "$ac_dir" in
46281 .) ac_abs_builddir=`pwd`;;
46282 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46283 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46284 esac;;
46285esac
46286case $ac_abs_builddir in
46287.) ac_abs_top_builddir=${ac_top_builddir}.;;
46288*)
46289 case ${ac_top_builddir}. in
46290 .) ac_abs_top_builddir=$ac_abs_builddir;;
46291 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46292 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46293 esac;;
46294esac
46295case $ac_abs_builddir in
46296.) ac_abs_srcdir=$ac_srcdir;;
46297*)
46298 case $ac_srcdir in
46299 .) ac_abs_srcdir=$ac_abs_builddir;;
46300 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46301 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46302 esac;;
46303esac
46304case $ac_abs_builddir in
46305.) ac_abs_top_srcdir=$ac_top_srcdir;;
46306*)
46307 case $ac_top_srcdir in
46308 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46309 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46310 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46311 esac;;
46312esac
a848cd7e
SC
46313
46314
46315 case $INSTALL in
46316 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46317 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
46318 esac
46319
a848cd7e
SC
46320 # Let's still pretend it is `configure' which instantiates (i.e., don't
46321 # use $as_me), people would be surprised to read:
46322 # /* config.h. Generated by config.status. */
46323 if test x"$ac_file" = x-; then
46324 configure_input=
46325 else
46326 configure_input="$ac_file. "
46327 fi
46328 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 46329 sed 's,.*/,,'` by configure."
a848cd7e
SC
46330
46331 # First look for the input files in the build tree, otherwise in the
46332 # src tree.
46333 ac_file_inputs=`IFS=:
46334 for f in $ac_file_in; do
46335 case $f in
46336 -) echo $tmp/stdin ;;
46337 [\\/$]*)
ac1cb8d3
VS
46338 # Absolute (can't be DOS-style, as IFS=:)
46339 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46340echo "$as_me: error: cannot find input file: $f" >&2;}
46341 { (exit 1); exit 1; }; }
ac1cb8d3 46342 echo "$f";;
a848cd7e 46343 *) # Relative
ac1cb8d3
VS
46344 if test -f "$f"; then
46345 # Build tree
46346 echo "$f"
46347 elif test -f "$srcdir/$f"; then
46348 # Source tree
46349 echo "$srcdir/$f"
46350 else
46351 # /dev/null tree
46352 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46353echo "$as_me: error: cannot find input file: $f" >&2;}
46354 { (exit 1); exit 1; }; }
ac1cb8d3 46355 fi;;
a848cd7e
SC
46356 esac
46357 done` || { (exit 1); exit 1; }
6ebeb4c7
VZ
46358
46359 if test x"$ac_file" != x-; then
46360 { echo "$as_me:$LINENO: creating $ac_file" >&5
46361echo "$as_me: creating $ac_file" >&6;}
46362 rm -f "$ac_file"
46363 fi
a848cd7e
SC
46364_ACEOF
46365cat >>$CONFIG_STATUS <<_ACEOF
46366 sed "$ac_vpsub
46367$extrasub
46368_ACEOF
46369cat >>$CONFIG_STATUS <<\_ACEOF
46370:t
46371/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46372s,@configure_input@,$configure_input,;t t
46373s,@srcdir@,$ac_srcdir,;t t
46374s,@abs_srcdir@,$ac_abs_srcdir,;t t
46375s,@top_srcdir@,$ac_top_srcdir,;t t
46376s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
46377s,@builddir@,$ac_builddir,;t t
46378s,@abs_builddir@,$ac_abs_builddir,;t t
46379s,@top_builddir@,$ac_top_builddir,;t t
46380s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
46381s,@INSTALL@,$ac_INSTALL,;t t
46382" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
46383 rm -f $tmp/stdin
46384 if test x"$ac_file" != x-; then
46385 mv $tmp/out $ac_file
46386 else
46387 cat $tmp/out
46388 rm -f $tmp/out
46389 fi
46390
ceec2216
RL
46391 # Run the commands associated with the file.
46392 case $ac_file in
46393 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
46394 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
46395 esac
a848cd7e
SC
46396done
46397_ACEOF
46398cat >>$CONFIG_STATUS <<\_ACEOF
46399
46400#
46401# CONFIG_HEADER section.
46402#
46403
46404# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
46405# NAME is the cpp macro being defined and VALUE is the value it is being given.
46406#
46407# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
46408ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
46409ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
46410ac_dC=' '
46411ac_dD=',;t'
46412# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 46413ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
46414ac_uB='$,\1#\2define\3'
46415ac_uC=' '
46416ac_uD=',;t'
46417
46418for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
46419 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46420 case $ac_file in
46421 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
46422 cat >$tmp/stdin
46423 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46424 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 46425 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 46426 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
46427 * ) ac_file_in=$ac_file.in ;;
46428 esac
46429
46430 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
46431echo "$as_me: creating $ac_file" >&6;}
46432
46433 # First look for the input files in the build tree, otherwise in the
46434 # src tree.
46435 ac_file_inputs=`IFS=:
46436 for f in $ac_file_in; do
46437 case $f in
46438 -) echo $tmp/stdin ;;
46439 [\\/$]*)
ac1cb8d3
VS
46440 # Absolute (can't be DOS-style, as IFS=:)
46441 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46442echo "$as_me: error: cannot find input file: $f" >&2;}
46443 { (exit 1); exit 1; }; }
ac1cb8d3
VS
46444 # Do quote $f, to prevent DOS paths from being IFS'd.
46445 echo "$f";;
a848cd7e 46446 *) # Relative
ac1cb8d3
VS
46447 if test -f "$f"; then
46448 # Build tree
46449 echo "$f"
46450 elif test -f "$srcdir/$f"; then
46451 # Source tree
46452 echo "$srcdir/$f"
46453 else
46454 # /dev/null tree
46455 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46456echo "$as_me: error: cannot find input file: $f" >&2;}
46457 { (exit 1); exit 1; }; }
ac1cb8d3 46458 fi;;
a848cd7e
SC
46459 esac
46460 done` || { (exit 1); exit 1; }
46461 # Remove the trailing spaces.
ac1cb8d3 46462 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
46463
46464_ACEOF
46465
46466# Transform confdefs.h into two sed scripts, `conftest.defines' and
46467# `conftest.undefs', that substitutes the proper values into
46468# config.h.in to produce config.h. The first handles `#define'
46469# templates, and the second `#undef' templates.
46470# And first: Protect against being on the right side of a sed subst in
46471# config.status. Protect against being in an unquoted here document
46472# in config.status.
46473rm -f conftest.defines conftest.undefs
46474# Using a here document instead of a string reduces the quoting nightmare.
46475# Putting comments in sed scripts is not portable.
46476#
46477# `end' is used to avoid that the second main sed command (meant for
46478# 0-ary CPP macros) applies to n-ary macro definitions.
46479# See the Autoconf documentation for `clear'.
46480cat >confdef2sed.sed <<\_ACEOF
46481s/[\\&,]/\\&/g
46482s,[\\$`],\\&,g
46483t clear
46484: clear
ac1cb8d3 46485s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 46486t end
ac1cb8d3 46487s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
46488: end
46489_ACEOF
46490# If some macros were called several times there might be several times
46491# the same #defines, which is useless. Nevertheless, we may not want to
46492# sort them, since we want the *last* AC-DEFINE to be honored.
46493uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46494sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46495rm -f confdef2sed.sed
46496
46497# This sed command replaces #undef with comments. This is necessary, for
46498# example, in the case of _POSIX_SOURCE, which is predefined and required
46499# on some systems where configure will not decide to define it.
46500cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 46501s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
46502_ACEOF
46503
46504# Break up conftest.defines because some shells have a limit on the size
46505# of here documents, and old seds have small limits too (100 cmds).
46506echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 46507echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
46508echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46509echo ' :' >>$CONFIG_STATUS
46510rm -f conftest.tail
46511while grep . conftest.defines >/dev/null
46512do
46513 # Write a limited-size here document to $tmp/defines.sed.
46514 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46515 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 46516 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
46517 # Work around the forget-to-reset-the-flag bug.
46518 echo 't clr' >>$CONFIG_STATUS
46519 echo ': clr' >>$CONFIG_STATUS
46520 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46521 echo 'CEOF
46522 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46523 rm -f $tmp/in
46524 mv $tmp/out $tmp/in
46525' >>$CONFIG_STATUS
46526 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46527 rm -f conftest.defines
46528 mv conftest.tail conftest.defines
46529done
46530rm -f conftest.defines
46531echo ' fi # grep' >>$CONFIG_STATUS
46532echo >>$CONFIG_STATUS
46533
46534# Break up conftest.undefs because some shells have a limit on the size
46535# of here documents, and old seds have small limits too (100 cmds).
46536echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46537rm -f conftest.tail
46538while grep . conftest.undefs >/dev/null
46539do
46540 # Write a limited-size here document to $tmp/undefs.sed.
46541 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46542 # Speed up: don't consider the non `#undef'
ac1cb8d3 46543 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
46544 # Work around the forget-to-reset-the-flag bug.
46545 echo 't clr' >>$CONFIG_STATUS
46546 echo ': clr' >>$CONFIG_STATUS
46547 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46548 echo 'CEOF
46549 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46550 rm -f $tmp/in
46551 mv $tmp/out $tmp/in
46552' >>$CONFIG_STATUS
46553 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46554 rm -f conftest.undefs
46555 mv conftest.tail conftest.undefs
46556done
46557rm -f conftest.undefs
46558
46559cat >>$CONFIG_STATUS <<\_ACEOF
46560 # Let's still pretend it is `configure' which instantiates (i.e., don't
46561 # use $as_me), people would be surprised to read:
46562 # /* config.h. Generated by config.status. */
46563 if test x"$ac_file" = x-; then
46564 echo "/* Generated by configure. */" >$tmp/config.h
46565 else
46566 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46567 fi
46568 cat $tmp/in >>$tmp/config.h
46569 rm -f $tmp/in
46570 if test x"$ac_file" != x-; then
46571 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46572 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46573echo "$as_me: $ac_file is unchanged" >&6;}
46574 else
46575 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46576$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46577 X"$ac_file" : 'X\(//\)[^/]' \| \
46578 X"$ac_file" : 'X\(//\)$' \| \
46579 X"$ac_file" : 'X\(/\)' \| \
46580 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46581echo X"$ac_file" |
46582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46584 /^X\(\/\/\)$/{ s//\1/; q; }
46585 /^X\(\/\).*/{ s//\1/; q; }
46586 s/.*/./; q'`
46587 { if $as_mkdir_p; then
46588 mkdir -p "$ac_dir"
46589 else
46590 as_dir="$ac_dir"
46591 as_dirs=
46592 while test ! -d "$as_dir"; do
46593 as_dirs="$as_dir $as_dirs"
46594 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46595$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46596 X"$as_dir" : 'X\(//\)[^/]' \| \
46597 X"$as_dir" : 'X\(//\)$' \| \
46598 X"$as_dir" : 'X\(/\)' \| \
46599 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46600echo X"$as_dir" |
46601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46603 /^X\(\/\/\)$/{ s//\1/; q; }
46604 /^X\(\/\).*/{ s//\1/; q; }
46605 s/.*/./; q'`
46606 done
46607 test ! -n "$as_dirs" || mkdir $as_dirs
46608 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46609echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46610 { (exit 1); exit 1; }; }; }
46611
46612 rm -f $ac_file
46613 mv $tmp/config.h $ac_file
46614 fi
46615 else
46616 cat $tmp/config.h
46617 rm -f $tmp/config.h
46618 fi
46619done
46620_ACEOF
46621cat >>$CONFIG_STATUS <<\_ACEOF
46622
46623#
46624# CONFIG_COMMANDS section.
46625#
46626for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46627 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46628 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46629 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46630$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46631 X"$ac_dest" : 'X\(//\)[^/]' \| \
46632 X"$ac_dest" : 'X\(//\)$' \| \
46633 X"$ac_dest" : 'X\(/\)' \| \
46634 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46635echo X"$ac_dest" |
46636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46638 /^X\(\/\/\)$/{ s//\1/; q; }
46639 /^X\(\/\).*/{ s//\1/; q; }
46640 s/.*/./; q'`
ac1cb8d3
VS
46641 { if $as_mkdir_p; then
46642 mkdir -p "$ac_dir"
46643 else
46644 as_dir="$ac_dir"
46645 as_dirs=
46646 while test ! -d "$as_dir"; do
46647 as_dirs="$as_dir $as_dirs"
46648 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46649$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46650 X"$as_dir" : 'X\(//\)[^/]' \| \
46651 X"$as_dir" : 'X\(//\)$' \| \
46652 X"$as_dir" : 'X\(/\)' \| \
46653 . : '\(.\)' 2>/dev/null ||
46654echo X"$as_dir" |
46655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46656 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46657 /^X\(\/\/\)$/{ s//\1/; q; }
46658 /^X\(\/\).*/{ s//\1/; q; }
46659 s/.*/./; q'`
46660 done
46661 test ! -n "$as_dirs" || mkdir $as_dirs
46662 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46663echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46664 { (exit 1); exit 1; }; }; }
46665
a848cd7e
SC
46666 ac_builddir=.
46667
46668if test "$ac_dir" != .; then
46669 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46670 # A "../" for each directory in $ac_dir_suffix.
46671 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46672else
46673 ac_dir_suffix= ac_top_builddir=
46674fi
46675
46676case $srcdir in
46677 .) # No --srcdir option. We are building in place.
46678 ac_srcdir=.
46679 if test -z "$ac_top_builddir"; then
46680 ac_top_srcdir=.
46681 else
46682 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46683 fi ;;
46684 [\\/]* | ?:[\\/]* ) # Absolute path.
46685 ac_srcdir=$srcdir$ac_dir_suffix;
46686 ac_top_srcdir=$srcdir ;;
46687 *) # Relative path.
46688 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46689 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46690esac
ac1cb8d3
VS
46691
46692# Do not use `cd foo && pwd` to compute absolute paths, because
46693# the directories may not exist.
46694case `pwd` in
46695.) ac_abs_builddir="$ac_dir";;
46696*)
46697 case "$ac_dir" in
46698 .) ac_abs_builddir=`pwd`;;
46699 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46700 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46701 esac;;
46702esac
46703case $ac_abs_builddir in
46704.) ac_abs_top_builddir=${ac_top_builddir}.;;
46705*)
46706 case ${ac_top_builddir}. in
46707 .) ac_abs_top_builddir=$ac_abs_builddir;;
46708 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46709 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46710 esac;;
46711esac
46712case $ac_abs_builddir in
46713.) ac_abs_srcdir=$ac_srcdir;;
46714*)
46715 case $ac_srcdir in
46716 .) ac_abs_srcdir=$ac_abs_builddir;;
46717 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46718 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46719 esac;;
46720esac
46721case $ac_abs_builddir in
46722.) ac_abs_top_srcdir=$ac_top_srcdir;;
46723*)
46724 case $ac_top_srcdir in
46725 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46726 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46727 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46728 esac;;
46729esac
a848cd7e
SC
46730
46731
46732 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46733echo "$as_me: executing $ac_dest commands" >&6;}
46734 case $ac_dest in
ceec2216
RL
46735 wx-config ) rm -f wx-config
46736 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
46737 ;;
a848cd7e
SC
46738 esac
46739done
46740_ACEOF
46741
46742cat >>$CONFIG_STATUS <<\_ACEOF
46743
46744{ (exit 0); exit 0; }
46745_ACEOF
46746chmod +x $CONFIG_STATUS
46747ac_clean_files=$ac_clean_files_save
46748
46749
46750# configure is writing to config.log, and then calls config.status.
46751# config.status does its own redirection, appending to config.log.
46752# Unfortunately, on DOS this fails, as config.log is still kept open
46753# by configure, so config.status won't be able to write to it; its
46754# output is simply discarded. So we exec the FD to /dev/null,
46755# effectively closing config.log, so it can be properly (re)opened and
46756# appended to by config.status. When coming back to configure, we
46757# need to make the FD available again.
46758if test "$no_create" != yes; then
46759 ac_cs_success=:
46760 ac_config_status_args=
46761 test "$silent" = yes &&
46762 ac_config_status_args="$ac_config_status_args --quiet"
46763 exec 5>/dev/null
46764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46765 exec 5>>config.log
46766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46767 # would make configure fail if this is the last instruction.
46768 $ac_cs_success || { (exit 1); exit 1; }
46769fi
46770
46771#
46772# CONFIG_SUBDIRS section.
46773#
46774if test "$no_recursion" != yes; then
46775
46776 # Remove --cache-file and --srcdir arguments so they do not pile up.
46777 ac_sub_configure_args=
46778 ac_prev=
46779 for ac_arg in $ac_configure_args; do
46780 if test -n "$ac_prev"; then
46781 ac_prev=
46782 continue
46783 fi
46784 case $ac_arg in
46785 -cache-file | --cache-file | --cache-fil | --cache-fi \
46786 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
46787 ac_prev=cache_file ;;
46788 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
46789 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
46790 | --c=*)
46791 ;;
46792 --config-cache | -C)
46793 ;;
46794 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
46795 ac_prev=srcdir ;;
46796 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
46797 ;;
46798 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
46799 ac_prev=prefix ;;
46800 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
46801 ;;
46802 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
46803 esac
46804 done
46805
46806 # Always prepend --prefix to ensure using the same prefix
46807 # in subdir configurations.
46808 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
46809
46810 ac_popdir=`pwd`
46811 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
46812
46813 # Do not complain, so a configure script can configure whichever
46814 # parts of a large source tree are present.
46815 test -d $srcdir/$ac_dir || continue
46816
46817 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
46818echo "$as_me: configuring in $ac_dir" >&6;}
46819 { if $as_mkdir_p; then
46820 mkdir -p "$ac_dir"
46821 else
46822 as_dir="$ac_dir"
46823 as_dirs=
46824 while test ! -d "$as_dir"; do
46825 as_dirs="$as_dir $as_dirs"
46826 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46827$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46828 X"$as_dir" : 'X\(//\)[^/]' \| \
46829 X"$as_dir" : 'X\(//\)$' \| \
46830 X"$as_dir" : 'X\(/\)' \| \
46831 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46832echo X"$as_dir" |
46833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46834 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46835 /^X\(\/\/\)$/{ s//\1/; q; }
46836 /^X\(\/\).*/{ s//\1/; q; }
46837 s/.*/./; q'`
46838 done
46839 test ! -n "$as_dirs" || mkdir $as_dirs
46840 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46841echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46842 { (exit 1); exit 1; }; }; }
46843
46844 ac_builddir=.
46845
46846if test "$ac_dir" != .; then
46847 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46848 # A "../" for each directory in $ac_dir_suffix.
46849 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46850else
46851 ac_dir_suffix= ac_top_builddir=
46852fi
46853
46854case $srcdir in
46855 .) # No --srcdir option. We are building in place.
46856 ac_srcdir=.
46857 if test -z "$ac_top_builddir"; then
46858 ac_top_srcdir=.
46859 else
46860 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46861 fi ;;
46862 [\\/]* | ?:[\\/]* ) # Absolute path.
46863 ac_srcdir=$srcdir$ac_dir_suffix;
46864 ac_top_srcdir=$srcdir ;;
46865 *) # Relative path.
46866 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46867 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46868esac
ac1cb8d3
VS
46869
46870# Do not use `cd foo && pwd` to compute absolute paths, because
46871# the directories may not exist.
46872case `pwd` in
46873.) ac_abs_builddir="$ac_dir";;
46874*)
46875 case "$ac_dir" in
46876 .) ac_abs_builddir=`pwd`;;
46877 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46878 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46879 esac;;
46880esac
46881case $ac_abs_builddir in
46882.) ac_abs_top_builddir=${ac_top_builddir}.;;
46883*)
46884 case ${ac_top_builddir}. in
46885 .) ac_abs_top_builddir=$ac_abs_builddir;;
46886 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46887 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46888 esac;;
46889esac
46890case $ac_abs_builddir in
46891.) ac_abs_srcdir=$ac_srcdir;;
46892*)
46893 case $ac_srcdir in
46894 .) ac_abs_srcdir=$ac_abs_builddir;;
46895 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46896 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46897 esac;;
46898esac
46899case $ac_abs_builddir in
46900.) ac_abs_top_srcdir=$ac_top_srcdir;;
46901*)
46902 case $ac_top_srcdir in
46903 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46904 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46905 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46906 esac;;
46907esac
a848cd7e
SC
46908
46909
46910 cd $ac_dir
46911
46912 # Check for guested configure; otherwise get Cygnus style configure.
46913 if test -f $ac_srcdir/configure.gnu; then
46914 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
46915 elif test -f $ac_srcdir/configure; then
46916 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
46917 elif test -f $ac_srcdir/configure.in; then
46918 ac_sub_configure=$ac_configure
46919 else
46920 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
46921echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
46922 ac_sub_configure=
46923 fi
46924
46925 # The recursion is here.
46926 if test -n "$ac_sub_configure"; then
46927 # Make the cache file name correct relative to the subdirectory.
46928 case $cache_file in
46929 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
46930 *) # Relative path.
ac1cb8d3 46931 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
46932 esac
46933
46934 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
46935echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
46936 # The eval makes quoting arguments work.
46937 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
46938 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
46939 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
46940echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
46941 { (exit 1); exit 1; }; }
46942 fi
46943
6ebeb4c7 46944 cd "$ac_popdir"
a848cd7e
SC
46945 done
46946fi
46947
46948
46949echo
77ffb593 46950echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 46951echo ""
4d4ff94c 46952echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 46953echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 46954
77ffb593
JS
46955echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
46956echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
46957echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 46958
77ffb593
JS
46959echo " What level of wxWidgets compatibility should be enabled?"
46960echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
46961echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 46962
77ffb593 46963echo " Which libraries should wxWidgets use?"
a848cd7e
SC
46964echo " jpeg ${wxUSE_LIBJPEG-none}"
46965echo " png ${wxUSE_LIBPNG-none}"
46966echo " regex ${wxUSE_REGEX}"
46967echo " tiff ${wxUSE_LIBTIFF-none}"
46968if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
46969echo " xpm ${wxUSE_LIBXPM-none}"
46970fi
46971echo " zlib ${wxUSE_ZLIB}"
46972echo " odbc ${wxUSE_ODBC}"
46973echo " expat ${wxUSE_EXPAT}"
46974echo " libmspack ${wxUSE_LIBMSPACK}"
46975echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 46976echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
46977
46978echo ""
46979