]> git.saurik.com Git - wxWidgets.git/blame - configure
ltest files from bakefile add HP aCC dependencies support
[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.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
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'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
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"
0ee4059d 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP RESCOMP ac_ct_RESCOMP DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_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_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
dd8df4fc 797\`configure' configures wxWidgets 2.7.0 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
dd8df4fc 863 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
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)
1c14217d 1057 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1058 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1059 --with-motif use Motif/Lesstif
1060 --with-mac use Mac OS X
1061 --with-cocoa use Cocoa
1062 --with-wine use Wine
1063 --with-msw use MS-Windows
1064 --with-pm use OS/2 Presentation Manager
1065 --with-mgl use SciTech MGL
1066 --with-microwin use MicroWindows
1067 --with-x11 use X11
1068 --with-libpng use libpng (PNG image format)
1069 --with-libjpeg use libjpeg (JPEG file format)
1070 --with-libtiff use libtiff (TIFF file format)
1071 --with-libxpm use libxpm (XPM file format)
1072 --with-libmspack use libmspack (CHM help files loading)
1073 --with-sdl use SDL for audio on Unix
d51253e8 1074 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1075 --with-opengl use OpenGL (or Mesa)
1076 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1077 --with-regex enable support for wxRegEx class
1078 --with-zlib use zlib for LZW compression
1079 --with-odbc use the IODBC and wxODBC classes
1080 --with-expat enable XML support using expat parser
ceec2216 1081 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1082 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1083 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1084 --with-x use the X Window System
1085 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1086 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1087 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1088 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1089 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1090
1091Some influential environment variables:
dcc1b6ad
VS
1092 CC C compiler command
1093 CFLAGS C compiler flags
1094 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1095 nonstandard directory <lib dir>
1096 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1097 headers in a nonstandard directory <include dir>
1098 CPP C preprocessor
1099 CXX C++ compiler command
1100 CXXFLAGS C++ compiler flags
1101 CXXCPP C++ preprocessor
a848cd7e
SC
1102
1103Use these variables to override the choices made by `configure' or to help
1104it to find libraries and programs with nonstandard names/locations.
1105
77ffb593 1106Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1107_ACEOF
1108fi
1109
1110if test "$ac_init_help" = "recursive"; then
1111 # If there are subdirs, report their specific --help.
1112 ac_popdir=`pwd`
1113 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1114 test -d $ac_dir || continue
1115 ac_builddir=.
1116
1117if test "$ac_dir" != .; then
1118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1119 # A "../" for each directory in $ac_dir_suffix.
1120 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1121else
1122 ac_dir_suffix= ac_top_builddir=
1123fi
1124
1125case $srcdir in
1126 .) # No --srcdir option. We are building in place.
1127 ac_srcdir=.
1128 if test -z "$ac_top_builddir"; then
1129 ac_top_srcdir=.
1130 else
1131 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1132 fi ;;
1133 [\\/]* | ?:[\\/]* ) # Absolute path.
1134 ac_srcdir=$srcdir$ac_dir_suffix;
1135 ac_top_srcdir=$srcdir ;;
1136 *) # Relative path.
1137 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1138 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1139esac
ac1cb8d3
VS
1140
1141# Do not use `cd foo && pwd` to compute absolute paths, because
1142# the directories may not exist.
1143case `pwd` in
1144.) ac_abs_builddir="$ac_dir";;
1145*)
1146 case "$ac_dir" in
1147 .) ac_abs_builddir=`pwd`;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1149 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1150 esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_top_builddir=${ac_top_builddir}.;;
1154*)
1155 case ${ac_top_builddir}. in
1156 .) ac_abs_top_builddir=$ac_abs_builddir;;
1157 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1159 esac;;
1160esac
1161case $ac_abs_builddir in
1162.) ac_abs_srcdir=$ac_srcdir;;
1163*)
1164 case $ac_srcdir in
1165 .) ac_abs_srcdir=$ac_abs_builddir;;
1166 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1167 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1168 esac;;
1169esac
1170case $ac_abs_builddir in
1171.) ac_abs_top_srcdir=$ac_top_srcdir;;
1172*)
1173 case $ac_top_srcdir in
1174 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1175 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1177 esac;;
1178esac
a848cd7e
SC
1179
1180 cd $ac_dir
1181 # Check for guested configure; otherwise get Cygnus style configure.
1182 if test -f $ac_srcdir/configure.gnu; then
1183 echo
1184 $SHELL $ac_srcdir/configure.gnu --help=recursive
1185 elif test -f $ac_srcdir/configure; then
1186 echo
1187 $SHELL $ac_srcdir/configure --help=recursive
1188 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1189 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1190 echo
1191 $ac_configure --help
1192 else
1193 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1194 fi
6ebeb4c7 1195 cd "$ac_popdir"
a848cd7e
SC
1196 done
1197fi
1198
1199test -n "$ac_init_help" && exit 0
1200if $ac_init_version; then
1201 cat <<\_ACEOF
dd8df4fc 1202wxWidgets configure 2.7.0
ac1cb8d3 1203generated by GNU Autoconf 2.59
a848cd7e 1204
ac1cb8d3 1205Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1206This configure script is free software; the Free Software Foundation
1207gives unlimited permission to copy, distribute and modify it.
1208_ACEOF
1209 exit 0
1210fi
1211exec 5>config.log
1212cat >&5 <<_ACEOF
1213This file contains any messages produced by compilers while
1214running configure, to aid debugging if configure makes a mistake.
1215
dd8df4fc 1216It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1217generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1218
1219 $ $0 $@
1220
1221_ACEOF
1222{
1223cat <<_ASUNAME
1224## --------- ##
1225## Platform. ##
1226## --------- ##
1227
1228hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1229uname -m = `(uname -m) 2>/dev/null || echo unknown`
1230uname -r = `(uname -r) 2>/dev/null || echo unknown`
1231uname -s = `(uname -s) 2>/dev/null || echo unknown`
1232uname -v = `(uname -v) 2>/dev/null || echo unknown`
1233
1234/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1235/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1236
1237/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1238/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1239/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1240hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1241/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1242/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1243/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1244
1245_ASUNAME
1246
1247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1248for as_dir in $PATH
1249do
1250 IFS=$as_save_IFS
1251 test -z "$as_dir" && as_dir=.
1252 echo "PATH: $as_dir"
1253done
1254
1255} >&5
1256
1257cat >&5 <<_ACEOF
1258
1259
1260## ----------- ##
1261## Core tests. ##
1262## ----------- ##
1263
1264_ACEOF
1265
1266
1267# Keep a trace of the command line.
1268# Strip out --no-create and --no-recursion so they do not pile up.
1269# Strip out --silent because we don't want to record it for future runs.
1270# Also quote any args containing shell meta-characters.
1271# Make two passes to allow for proper duplicate-argument suppression.
1272ac_configure_args=
1273ac_configure_args0=
1274ac_configure_args1=
1275ac_sep=
1276ac_must_keep_next=false
1277for ac_pass in 1 2
1278do
1279 for ac_arg
1280 do
1281 case $ac_arg in
1282 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1283 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1284 | -silent | --silent | --silen | --sile | --sil)
1285 continue ;;
1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1288 esac
1289 case $ac_pass in
1290 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1291 2)
1292 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1293 if test $ac_must_keep_next = true; then
ac1cb8d3 1294 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1295 else
ac1cb8d3
VS
1296 case $ac_arg in
1297 *=* | --config-cache | -C | -disable-* | --disable-* \
1298 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1299 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1300 | -with-* | --with-* | -without-* | --without-* | --x)
1301 case "$ac_configure_args0 " in
1302 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1303 esac
1304 ;;
1305 -* ) ac_must_keep_next=true ;;
1306 esac
a848cd7e
SC
1307 fi
1308 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1309 # Get rid of the leading space.
1310 ac_sep=" "
1311 ;;
1312 esac
1313 done
1314done
1315$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1316$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1317
1318# When interrupted or exit'd, cleanup temporary files, and complete
1319# config.log. We remove comments because anyway the quotes in there
1320# would cause problems or look ugly.
1321# WARNING: Be sure not to use single quotes in there, as some shells,
1322# such as our DU 5.0 friend, will then `close' the trap.
1323trap 'exit_status=$?
1324 # Save into config.log some information that might help in debugging.
1325 {
1326 echo
1327
1328 cat <<\_ASBOX
1329## ---------------- ##
1330## Cache variables. ##
1331## ---------------- ##
1332_ASBOX
1333 echo
1334 # The following way of writing the cache mishandles newlines in values,
1335{
1336 (set) 2>&1 |
1337 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1338 *ac_space=\ *)
1339 sed -n \
ac1cb8d3
VS
1340 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1342 ;;
1343 *)
1344 sed -n \
ac1cb8d3 1345 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1346 ;;
1347 esac;
1348}
1349 echo
1350
1351 cat <<\_ASBOX
1352## ----------------- ##
1353## Output variables. ##
1354## ----------------- ##
1355_ASBOX
1356 echo
1357 for ac_var in $ac_subst_vars
1358 do
1359 eval ac_val=$`echo $ac_var`
1360 echo "$ac_var='"'"'$ac_val'"'"'"
1361 done | sort
1362 echo
1363
1364 if test -n "$ac_subst_files"; then
1365 cat <<\_ASBOX
1366## ------------- ##
1367## Output files. ##
1368## ------------- ##
1369_ASBOX
1370 echo
1371 for ac_var in $ac_subst_files
1372 do
1373 eval ac_val=$`echo $ac_var`
ac1cb8d3 1374 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1375 done | sort
1376 echo
1377 fi
1378
1379 if test -s confdefs.h; then
1380 cat <<\_ASBOX
1381## ----------- ##
1382## confdefs.h. ##
1383## ----------- ##
1384_ASBOX
1385 echo
1386 sed "/^$/d" confdefs.h | sort
1387 echo
1388 fi
1389 test "$ac_signal" != 0 &&
1390 echo "$as_me: caught signal $ac_signal"
1391 echo "$as_me: exit $exit_status"
1392 } >&5
ac1cb8d3 1393 rm -f core *.core &&
a848cd7e
SC
1394 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1395 exit $exit_status
1396 ' 0
1397for ac_signal in 1 2 13 15; do
1398 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1399done
1400ac_signal=0
1401
1402# confdefs.h avoids OS command line length limits that DEFS can exceed.
1403rm -rf conftest* confdefs.h
1404# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1405echo >confdefs.h
1406
1407# Predefined preprocessor variables.
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_NAME "$PACKAGE_NAME"
1411_ACEOF
1412
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1416_ACEOF
1417
1418
1419cat >>confdefs.h <<_ACEOF
1420#define PACKAGE_VERSION "$PACKAGE_VERSION"
1421_ACEOF
1422
1423
1424cat >>confdefs.h <<_ACEOF
1425#define PACKAGE_STRING "$PACKAGE_STRING"
1426_ACEOF
1427
1428
1429cat >>confdefs.h <<_ACEOF
1430#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1431_ACEOF
1432
1433
1434# Let the site file select an alternate cache file if it wants to.
1435# Prefer explicitly selected file to automatically selected ones.
1436if test -z "$CONFIG_SITE"; then
1437 if test "x$prefix" != xNONE; then
1438 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1439 else
1440 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1441 fi
1442fi
1443for ac_site_file in $CONFIG_SITE; do
1444 if test -r "$ac_site_file"; then
1445 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1446echo "$as_me: loading site script $ac_site_file" >&6;}
1447 sed 's/^/| /' "$ac_site_file" >&5
1448 . "$ac_site_file"
1449 fi
1450done
1451
1452if test -r "$cache_file"; then
1453 # Some versions of bash will fail to source /dev/null (special
1454 # files actually), so we avoid doing that.
1455 if test -f "$cache_file"; then
1456 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1457echo "$as_me: loading cache $cache_file" >&6;}
1458 case $cache_file in
1459 [\\/]* | ?:[\\/]* ) . $cache_file;;
1460 *) . ./$cache_file;;
1461 esac
1462 fi
1463else
1464 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1465echo "$as_me: creating cache $cache_file" >&6;}
1466 >$cache_file
1467fi
1468
1469# Check that the precious variables saved in the cache have kept the same
1470# value.
1471ac_cache_corrupted=false
1472for ac_var in `(set) 2>&1 |
ac1cb8d3 1473 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1474 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1475 eval ac_new_set=\$ac_env_${ac_var}_set
1476 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1477 eval ac_new_val="\$ac_env_${ac_var}_value"
1478 case $ac_old_set,$ac_new_set in
1479 set,)
1480 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1481echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1482 ac_cache_corrupted=: ;;
1483 ,set)
1484 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1485echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1486 ac_cache_corrupted=: ;;
1487 ,);;
1488 *)
1489 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1490 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1491echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1492 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1493echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1494 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1495echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1496 ac_cache_corrupted=:
a848cd7e
SC
1497 fi;;
1498 esac
1499 # Pass precious variables to config.status.
1500 if test "$ac_new_set" = set; then
1501 case $ac_new_val in
1502 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1503 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1504 *) ac_arg=$ac_var=$ac_new_val ;;
1505 esac
1506 case " $ac_configure_args " in
1507 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1508 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1509 esac
1510 fi
1511done
1512if $ac_cache_corrupted; then
1513 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1514echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1515 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1516echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1517 { (exit 1); exit 1; }; }
1518fi
1519
1520ac_ext=c
1521ac_cpp='$CPP $CPPFLAGS'
1522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1554
1555ac_aux_dir=
1556for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1557 if test -f $ac_dir/install-sh; then
1558 ac_aux_dir=$ac_dir
1559 ac_install_sh="$ac_aux_dir/install-sh -c"
1560 break
1561 elif test -f $ac_dir/install.sh; then
1562 ac_aux_dir=$ac_dir
1563 ac_install_sh="$ac_aux_dir/install.sh -c"
1564 break
1565 elif test -f $ac_dir/shtool; then
1566 ac_aux_dir=$ac_dir
1567 ac_install_sh="$ac_aux_dir/shtool install -c"
1568 break
1569 fi
1570done
1571if test -z "$ac_aux_dir"; then
1572 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1573echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1574 { (exit 1); exit 1; }; }
1575fi
1576ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1577ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1578ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1579
1580# Make sure we can run config.sub.
1581$ac_config_sub sun4 >/dev/null 2>&1 ||
1582 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1583echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1584 { (exit 1); exit 1; }; }
1585
1586echo "$as_me:$LINENO: checking build system type" >&5
1587echo $ECHO_N "checking build system type... $ECHO_C" >&6
1588if test "${ac_cv_build+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590else
1591 ac_cv_build_alias=$build_alias
1592test -z "$ac_cv_build_alias" &&
1593 ac_cv_build_alias=`$ac_config_guess`
1594test -z "$ac_cv_build_alias" &&
1595 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1596echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1597 { (exit 1); exit 1; }; }
1598ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1599 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1600echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1601 { (exit 1); exit 1; }; }
1602
1603fi
1604echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1605echo "${ECHO_T}$ac_cv_build" >&6
1606build=$ac_cv_build
1607build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1608build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1609build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1610
1611
1612echo "$as_me:$LINENO: checking host system type" >&5
1613echo $ECHO_N "checking host system type... $ECHO_C" >&6
1614if test "${ac_cv_host+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1616else
1617 ac_cv_host_alias=$host_alias
1618test -z "$ac_cv_host_alias" &&
1619 ac_cv_host_alias=$ac_cv_build_alias
1620ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1621 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1622echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1623 { (exit 1); exit 1; }; }
1624
1625fi
1626echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1627echo "${ECHO_T}$ac_cv_host" >&6
1628host=$ac_cv_host
1629host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1630host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1631host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1632
1633
1634echo "$as_me:$LINENO: checking target system type" >&5
1635echo $ECHO_N "checking target system type... $ECHO_C" >&6
1636if test "${ac_cv_target+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1638else
1639 ac_cv_target_alias=$target_alias
1640test "x$ac_cv_target_alias" = "x" &&
1641 ac_cv_target_alias=$ac_cv_host_alias
1642ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1643 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1644echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1645 { (exit 1); exit 1; }; }
1646
1647fi
1648echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1649echo "${ECHO_T}$ac_cv_target" >&6
1650target=$ac_cv_target
1651target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654
1655
1656# The aliases save the names the user supplied, while $host etc.
1657# will get canonicalized.
1658test -n "$target_alias" &&
1659 test "$program_prefix$program_suffix$program_transform_name" = \
1660 NONENONEs,x,x, &&
1661 program_prefix=${target_alias}-
1662
1663
1664
ceec2216 1665wx_major_version_number=2
dd8df4fc
VZ
1666wx_minor_version_number=7
1667wx_release_number=0
1668wx_subrelease_number=0
a848cd7e 1669
ceec2216
RL
1670WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1671WX_VERSION=$WX_RELEASE.$wx_release_number
1672WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1673
ceec2216 1674WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1675
a848cd7e
SC
1676
1677
1678
1679USE_UNIX=1
1680USE_OS2=0
1681USE_WIN32=0
1682USE_DOS=0
1683USE_BEOS=0
1684USE_MAC=0
1685
1686USE_AIX=
1687USE_BSD= USE_DARWIN= USE_FREEBSD=
1688USE_GNU= USE_HPUX=
1689USE_LINUX=
1690USE_NETBSD=
1691USE_OPENBSD=
1692USE_OSF= USE_SGI=
1693USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1694USE_ULTRIX=
1695USE_UNIXWARE=
1696
1697USE_ALPHA=
1698
1699NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1700
1701ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1702
1703DEFAULT_wxUSE_COCOA=0
1704DEFAULT_wxUSE_GTK=0
1705DEFAULT_wxUSE_MAC=0
1706DEFAULT_wxUSE_MGL=0
1707DEFAULT_wxUSE_MICROWIN=0
1708DEFAULT_wxUSE_MOTIF=0
1709DEFAULT_wxUSE_MSW=0
1710DEFAULT_wxUSE_PM=0
1711DEFAULT_wxUSE_X11=0
1712
1713DEFAULT_DEFAULT_wxUSE_COCOA=0
1714DEFAULT_DEFAULT_wxUSE_GTK=0
1715DEFAULT_DEFAULT_wxUSE_MAC=0
1716DEFAULT_DEFAULT_wxUSE_MGL=0
1717DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1718DEFAULT_DEFAULT_wxUSE_MOTIF=0
1719DEFAULT_DEFAULT_wxUSE_MSW=0
1720DEFAULT_DEFAULT_wxUSE_PM=0
1721DEFAULT_DEFAULT_wxUSE_X11=0
1722
1723PROGRAM_EXT=
1724SO_SUFFIX=so
1725SAMPLES_RPATH_FLAG=
1726SAMPLES_RPATH_POSTLINK=
1727
a03b8b04
RD
1728DEFAULT_STD_FLAG=yes
1729
a848cd7e
SC
1730case "${host}" in
1731 *-hp-hpux* )
1732 USE_HPUX=1
1733 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1734 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1735 SO_SUFFIX=sl
1736 cat >>confdefs.h <<\_ACEOF
1737#define __HPUX__ 1
1738_ACEOF
1739
1740 ;;
1741 *-*-linux* )
1742 USE_LINUX=1
1743 cat >>confdefs.h <<\_ACEOF
1744#define __LINUX__ 1
1745_ACEOF
1746
1747 TMP=`uname -m`
1748 if test "x$TMP" = "xalpha"; then
1749 USE_ALPHA=1
1750 cat >>confdefs.h <<\_ACEOF
1751#define __ALPHA__ 1
1752_ACEOF
1753
1754 fi
1755 DEFAULT_DEFAULT_wxUSE_GTK=1
1756 ;;
1757 *-*-gnu* | *-*-k*bsd*-gnu )
1758 USE_GNU=1
1759 TMP=`uname -m`
1760 if test "x$TMP" = "xalpha"; then
1761 USE_ALPHA=1
1762 cat >>confdefs.h <<\_ACEOF
1763#define __ALPHA__ 1
1764_ACEOF
1765
1766 fi
1767 DEFAULT_DEFAULT_wxUSE_GTK=1
1768 ;;
1769 *-*-irix5* | *-*-irix6* )
1770 USE_SGI=1
1771 USE_SVR4=1
1772 cat >>confdefs.h <<\_ACEOF
1773#define __SGI__ 1
1774_ACEOF
1775
1776 cat >>confdefs.h <<\_ACEOF
1777#define __SVR4__ 1
1778_ACEOF
1779
1780 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1781 ;;
1782 *-*-solaris2* )
1783 USE_SUN=1
1784 USE_SOLARIS=1
1785 USE_SVR4=1
1786 cat >>confdefs.h <<\_ACEOF
1787#define __SUN__ 1
1788_ACEOF
1789
1790 cat >>confdefs.h <<\_ACEOF
1791#define __SOLARIS__ 1
1792_ACEOF
1793
1794 cat >>confdefs.h <<\_ACEOF
1795#define __SVR4__ 1
1796_ACEOF
1797
1798 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1799 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1800 ;;
1801 *-*-sunos4* )
1802 USE_SUN=1
1803 USE_SUNOS=1
1804 USE_BSD=1
1805 cat >>confdefs.h <<\_ACEOF
1806#define __SUN__ 1
1807_ACEOF
1808
1809 cat >>confdefs.h <<\_ACEOF
1810#define __SUNOS__ 1
1811_ACEOF
1812
1813 cat >>confdefs.h <<\_ACEOF
1814#define __BSD__ 1
1815_ACEOF
1816
1817 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1818 ;;
1819 *-*-freebsd*)
1820 USE_BSD=1
1821 USE_FREEBSD=1
1822 cat >>confdefs.h <<\_ACEOF
1823#define __FREEBSD__ 1
1824_ACEOF
1825
1826 cat >>confdefs.h <<\_ACEOF
1827#define __BSD__ 1
1828_ACEOF
1829
1830 DEFAULT_DEFAULT_wxUSE_GTK=1
1831 ;;
1832 *-*-openbsd*)
1833 USE_BSD=1
1834 USE_OPENBSD=1
1835 cat >>confdefs.h <<\_ACEOF
1836#define __OPENBSD__ 1
1837_ACEOF
1838
1839 cat >>confdefs.h <<\_ACEOF
1840#define __BSD__ 1
1841_ACEOF
1842
1843 DEFAULT_DEFAULT_wxUSE_GTK=1
1844 ;;
1845 *-*-netbsd*)
1846 USE_BSD=1
1847 USE_NETBSD=1
1848 cat >>confdefs.h <<\_ACEOF
1849#define __NETBSD__ 1
1850_ACEOF
1851
1852 cat >>confdefs.h <<\_ACEOF
1853#define __BSD__ 1
1854_ACEOF
1855
1856 DEFAULT_DEFAULT_wxUSE_GTK=1
1857 ;;
1858 *-*-osf* )
1859 USE_ALPHA=1
1860 USE_OSF=1
1861 cat >>confdefs.h <<\_ACEOF
1862#define __ALPHA__ 1
1863_ACEOF
1864
1865 cat >>confdefs.h <<\_ACEOF
1866#define __OSF__ 1
1867_ACEOF
1868
1869 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1870 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1871 ;;
1872 *-*-dgux5* )
1873 USE_ALPHA=1
1874 USE_SVR4=1
1875 cat >>confdefs.h <<\_ACEOF
1876#define __ALPHA__ 1
1877_ACEOF
1878
1879 cat >>confdefs.h <<\_ACEOF
1880#define __SVR4__ 1
1881_ACEOF
1882
1883 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1884 ;;
1885 *-*-sysv5* )
1886 USE_SYSV=1
1887 USE_SVR4=1
1888 cat >>confdefs.h <<\_ACEOF
1889#define __SYSV__ 1
1890_ACEOF
1891
1892 cat >>confdefs.h <<\_ACEOF
1893#define __SVR4__ 1
1894_ACEOF
1895
1896 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1897 ;;
1898 *-*-aix* )
1899 USE_AIX=1
1900 USE_SYSV=1
1901 USE_SVR4=1
1902 SO_SUFFIX=a
1903 cat >>confdefs.h <<\_ACEOF
1904#define __AIX__ 1
1905_ACEOF
1906
1907 cat >>confdefs.h <<\_ACEOF
1908#define __SYSV__ 1
1909_ACEOF
1910
1911 cat >>confdefs.h <<\_ACEOF
1912#define __SVR4__ 1
1913_ACEOF
1914
1915 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1916 ;;
1917
1918 *-*-*UnixWare*)
1919 USE_SYSV=1
1920 USE_SVR4=1
1921 USE_UNIXWARE=1
1922 cat >>confdefs.h <<\_ACEOF
1923#define __UNIXWARE__ 1
1924_ACEOF
1925
1926 ;;
1927
1928 *-*-cygwin* | *-*-mingw32* )
1929 SO_SUFFIX=dll
1930 PROGRAM_EXT=".exe"
a848cd7e 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
1c14217d
VZ
2569 withstring=without
2570 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2571echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2572 no_cache=0
2573
2574# Check whether --with-subdirs or --without-subdirs was given.
2575if test "${with_subdirs+set}" = set; then
2576 withval="$with_subdirs"
2577
2578 if test "$withval" = yes; then
2579 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2580 else
2581 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2582 fi
2583
2584else
2585
2586 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2587 if test "x$LINE" != x ; then
2588 eval "DEFAULT_$LINE"
2589 else
2590 no_cache=1
2591 fi
2592
2593 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2594
2595fi;
2596
2597 eval "$ac_cv_use_subdirs"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxWITH_SUBDIRS" = yes; then
2603 echo "$as_me:$LINENO: result: yes" >&5
2604echo "${ECHO_T}yes" >&6
2605 else
2606 echo "$as_me:$LINENO: result: no" >&5
2607echo "${ECHO_T}no" >&6
2608 fi
2609
2610
a848cd7e
SC
2611if test "$wxUSE_GUI" = "yes"; then
2612
2613
2614 enablestring=
2615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2616echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2617 no_cache=0
2618 # Check whether --enable-universal or --disable-universal was given.
2619if test "${enable_universal+set}" = set; then
2620 enableval="$enable_universal"
2621
2622 if test "$enableval" = yes; then
2623 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2624 else
2625 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2626 fi
2627
2628else
2629
2630 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2631 if test "x$LINE" != x ; then
2632 eval "DEFAULT_$LINE"
2633 else
2634 no_cache=1
2635 fi
2636
2637 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2638
2639fi;
2640
2641 eval "$ac_cv_use_universal"
2642 if test "$no_cache" != 1; then
2643 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2644 fi
2645
2646 if test "$wxUSE_UNIVERSAL" = yes; then
2647 echo "$as_me:$LINENO: result: yes" >&5
2648echo "${ECHO_T}yes" >&6
2649 else
2650 echo "$as_me:$LINENO: result: no" >&5
2651echo "${ECHO_T}no" >&6
2652 fi
2653
2654
2655# Check whether --with-gtk or --without-gtk was given.
2656if test "${with_gtk+set}" = set; then
2657 withval="$with_gtk"
2658 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2659fi;
2660
2661# Check whether --with-motif or --without-motif was given.
2662if test "${with_motif+set}" = set; then
2663 withval="$with_motif"
2664 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2665fi;
2666
2667# Check whether --with-mac or --without-mac was given.
2668if test "${with_mac+set}" = set; then
2669 withval="$with_mac"
c228d3a4 2670 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2671fi;
2672
2673# Check whether --with-cocoa or --without-cocoa was given.
2674if test "${with_cocoa+set}" = set; then
2675 withval="$with_cocoa"
c228d3a4 2676 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2677fi;
2678
2679# Check whether --with-wine or --without-wine was given.
2680if test "${with_wine+set}" = set; then
2681 withval="$with_wine"
2682 wxUSE_WINE="$withval" CACHE_WINE=1
2683fi;
2684
2685# Check whether --with-msw or --without-msw was given.
2686if test "${with_msw+set}" = set; then
2687 withval="$with_msw"
2688 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2689fi;
2690
2691# Check whether --with-pm or --without-pm was given.
2692if test "${with_pm+set}" = set; then
2693 withval="$with_pm"
2694 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2695fi;
2696
2697# Check whether --with-mgl or --without-mgl was given.
2698if test "${with_mgl+set}" = set; then
2699 withval="$with_mgl"
2700 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2701fi;
2702
2703# Check whether --with-microwin or --without-microwin was given.
2704if test "${with_microwin+set}" = set; then
2705 withval="$with_microwin"
2706 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2707fi;
2708
2709# Check whether --with-x11 or --without-x11 was given.
2710if test "${with_x11+set}" = set; then
2711 withval="$with_x11"
2712 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2713fi;
2714
2715 enablestring=
2716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2717echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2718 no_cache=0
2719 # Check whether --enable-nanox or --disable-nanox was given.
2720if test "${enable_nanox+set}" = set; then
2721 enableval="$enable_nanox"
2722
2723 if test "$enableval" = yes; then
2724 ac_cv_use_nanox='wxUSE_NANOX=yes'
2725 else
2726 ac_cv_use_nanox='wxUSE_NANOX=no'
2727 fi
2728
2729else
2730
2731 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2732 if test "x$LINE" != x ; then
2733 eval "DEFAULT_$LINE"
2734 else
2735 no_cache=1
2736 fi
2737
2738 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2739
2740fi;
2741
2742 eval "$ac_cv_use_nanox"
2743 if test "$no_cache" != 1; then
2744 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2745 fi
2746
2747 if test "$wxUSE_NANOX" = yes; then
2748 echo "$as_me:$LINENO: result: yes" >&5
2749echo "${ECHO_T}yes" >&6
2750 else
2751 echo "$as_me:$LINENO: result: no" >&5
2752echo "${ECHO_T}no" >&6
2753 fi
2754
2755
f34ca037
MW
2756# Check whether --enable-gtk2 or --disable-gtk2 was given.
2757if test "${enable_gtk2+set}" = set; then
2758 enableval="$enable_gtk2"
2759 wxUSE_GTK2="$enableval"
2760fi;
a848cd7e 2761
a848cd7e
SC
2762 enablestring=
2763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2764echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2765 no_cache=0
2766 # Check whether --enable-gpe or --disable-gpe was given.
2767if test "${enable_gpe+set}" = set; then
2768 enableval="$enable_gpe"
2769
2770 if test "$enableval" = yes; then
2771 ac_cv_use_gpe='wxUSE_GPE=yes'
2772 else
2773 ac_cv_use_gpe='wxUSE_GPE=no'
2774 fi
2775
2776else
2777
2778 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2779 if test "x$LINE" != x ; then
2780 eval "DEFAULT_$LINE"
2781 else
2782 no_cache=1
2783 fi
2784
2785 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2786
2787fi;
2788
2789 eval "$ac_cv_use_gpe"
2790 if test "$no_cache" != 1; then
2791 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2792 fi
2793
2794 if test "$wxUSE_GPE" = yes; then
2795 echo "$as_me:$LINENO: result: yes" >&5
2796echo "${ECHO_T}yes" >&6
2797 else
2798 echo "$as_me:$LINENO: result: no" >&5
2799echo "${ECHO_T}no" >&6
2800 fi
2801
2802
2803
2804 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2805echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2806 no_cache=0
2807
2808# Check whether --with-libpng or --without-libpng was given.
2809if test "${with_libpng+set}" = set; then
2810 withval="$with_libpng"
2811
2812 if test "$withval" = yes; then
2813 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2814 elif test "$withval" = no; then
2815 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2816 elif test "$withval" = sys; then
2817 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2818 elif test "$withval" = builtin; then
2819 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2820 else
2821 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2822echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2823 { (exit 1); exit 1; }; }
2824 fi
2825
2826else
2827
2828 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2829 if test "x$LINE" != x ; then
2830 eval "DEFAULT_$LINE"
2831 else
2832 no_cache=1
2833 fi
2834
2835 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2836
2837fi;
2838
2839 eval "$ac_cv_use_libpng"
2840 if test "$no_cache" != 1; then
2841 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2842 fi
2843
2844 if test "$wxUSE_LIBPNG" = yes; then
2845 echo "$as_me:$LINENO: result: yes" >&5
2846echo "${ECHO_T}yes" >&6
2847 elif test "$wxUSE_LIBPNG" = no; then
2848 echo "$as_me:$LINENO: result: no" >&5
2849echo "${ECHO_T}no" >&6
2850 elif test "$wxUSE_LIBPNG" = sys; then
2851 echo "$as_me:$LINENO: result: system version" >&5
2852echo "${ECHO_T}system version" >&6
2853 elif test "$wxUSE_LIBPNG" = builtin; then
2854 echo "$as_me:$LINENO: result: builtin version" >&5
2855echo "${ECHO_T}builtin version" >&6
2856 else
2857 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2858echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2859 { (exit 1); exit 1; }; }
2860 fi
2861
2862
2863 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2864echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2865 no_cache=0
2866
2867# Check whether --with-libjpeg or --without-libjpeg was given.
2868if test "${with_libjpeg+set}" = set; then
2869 withval="$with_libjpeg"
2870
2871 if test "$withval" = yes; then
2872 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2873 elif test "$withval" = no; then
2874 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2875 elif test "$withval" = sys; then
2876 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2877 elif test "$withval" = builtin; then
2878 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2879 else
2880 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2881echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2882 { (exit 1); exit 1; }; }
2883 fi
2884
2885else
2886
2887 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2888 if test "x$LINE" != x ; then
2889 eval "DEFAULT_$LINE"
2890 else
2891 no_cache=1
2892 fi
2893
2894 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2895
2896fi;
2897
2898 eval "$ac_cv_use_libjpeg"
2899 if test "$no_cache" != 1; then
2900 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2901 fi
2902
2903 if test "$wxUSE_LIBJPEG" = yes; then
2904 echo "$as_me:$LINENO: result: yes" >&5
2905echo "${ECHO_T}yes" >&6
2906 elif test "$wxUSE_LIBJPEG" = no; then
2907 echo "$as_me:$LINENO: result: no" >&5
2908echo "${ECHO_T}no" >&6
2909 elif test "$wxUSE_LIBJPEG" = sys; then
2910 echo "$as_me:$LINENO: result: system version" >&5
2911echo "${ECHO_T}system version" >&6
2912 elif test "$wxUSE_LIBJPEG" = builtin; then
2913 echo "$as_me:$LINENO: result: builtin version" >&5
2914echo "${ECHO_T}builtin version" >&6
2915 else
2916 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2917echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2918 { (exit 1); exit 1; }; }
2919 fi
2920
2921
2922 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2923echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2924 no_cache=0
2925
2926# Check whether --with-libtiff or --without-libtiff was given.
2927if test "${with_libtiff+set}" = set; then
2928 withval="$with_libtiff"
2929
2930 if test "$withval" = yes; then
2931 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2932 elif test "$withval" = no; then
2933 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2934 elif test "$withval" = sys; then
2935 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2936 elif test "$withval" = builtin; then
2937 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2938 else
2939 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2940echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2941 { (exit 1); exit 1; }; }
2942 fi
2943
2944else
2945
2946 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2947 if test "x$LINE" != x ; then
2948 eval "DEFAULT_$LINE"
2949 else
2950 no_cache=1
2951 fi
2952
2953 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2954
2955fi;
2956
2957 eval "$ac_cv_use_libtiff"
2958 if test "$no_cache" != 1; then
2959 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2960 fi
2961
2962 if test "$wxUSE_LIBTIFF" = yes; then
2963 echo "$as_me:$LINENO: result: yes" >&5
2964echo "${ECHO_T}yes" >&6
2965 elif test "$wxUSE_LIBTIFF" = no; then
2966 echo "$as_me:$LINENO: result: no" >&5
2967echo "${ECHO_T}no" >&6
2968 elif test "$wxUSE_LIBTIFF" = sys; then
2969 echo "$as_me:$LINENO: result: system version" >&5
2970echo "${ECHO_T}system version" >&6
2971 elif test "$wxUSE_LIBTIFF" = builtin; then
2972 echo "$as_me:$LINENO: result: builtin version" >&5
2973echo "${ECHO_T}builtin version" >&6
2974 else
2975 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2976echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2977 { (exit 1); exit 1; }; }
2978 fi
2979
2980
2981 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2982echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2983 no_cache=0
2984
2985# Check whether --with-libxpm or --without-libxpm was given.
2986if test "${with_libxpm+set}" = set; then
2987 withval="$with_libxpm"
2988
2989 if test "$withval" = yes; then
2990 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2991 elif test "$withval" = no; then
2992 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2993 elif test "$withval" = sys; then
2994 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2995 elif test "$withval" = builtin; then
2996 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2997 else
2998 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2999echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3000 { (exit 1); exit 1; }; }
3001 fi
3002
3003else
3004
3005 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3006 if test "x$LINE" != x ; then
3007 eval "DEFAULT_$LINE"
3008 else
3009 no_cache=1
3010 fi
3011
3012 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3013
3014fi;
3015
3016 eval "$ac_cv_use_libxpm"
3017 if test "$no_cache" != 1; then
3018 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3019 fi
3020
3021 if test "$wxUSE_LIBXPM" = yes; then
3022 echo "$as_me:$LINENO: result: yes" >&5
3023echo "${ECHO_T}yes" >&6
3024 elif test "$wxUSE_LIBXPM" = no; then
3025 echo "$as_me:$LINENO: result: no" >&5
3026echo "${ECHO_T}no" >&6
3027 elif test "$wxUSE_LIBXPM" = sys; then
3028 echo "$as_me:$LINENO: result: system version" >&5
3029echo "${ECHO_T}system version" >&6
3030 elif test "$wxUSE_LIBXPM" = builtin; then
3031 echo "$as_me:$LINENO: result: builtin version" >&5
3032echo "${ECHO_T}builtin version" >&6
3033 else
3034 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3035echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3036 { (exit 1); exit 1; }; }
3037 fi
3038
3039
1c14217d
VZ
3040 withstring=
3041 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3042echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3043 no_cache=0
3044
3045# Check whether --with-libmspack or --without-libmspack was given.
3046if test "${with_libmspack+set}" = set; then
3047 withval="$with_libmspack"
3048
3049 if test "$withval" = yes; then
3050 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3051 else
3052 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3053 fi
3054
3055else
3056
3057 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3058 if test "x$LINE" != x ; then
3059 eval "DEFAULT_$LINE"
3060 else
3061 no_cache=1
3062 fi
3063
3064 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3065
3066fi;
3067
3068 eval "$ac_cv_use_libmspack"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_LIBMSPACK" = yes; then
3074 echo "$as_me:$LINENO: result: yes" >&5
3075echo "${ECHO_T}yes" >&6
3076 else
3077 echo "$as_me:$LINENO: result: no" >&5
3078echo "${ECHO_T}no" >&6
3079 fi
3080
3081
1c14217d
VZ
3082 withstring=
3083 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3084echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3085 no_cache=0
3086
3087# Check whether --with-sdl or --without-sdl was given.
3088if test "${with_sdl+set}" = set; then
3089 withval="$with_sdl"
3090
3091 if test "$withval" = yes; then
3092 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3093 else
3094 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3095 fi
3096
3097else
3098
3099 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3100 if test "x$LINE" != x ; then
3101 eval "DEFAULT_$LINE"
3102 else
3103 no_cache=1
3104 fi
3105
3106 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3107
3108fi;
3109
3110 eval "$ac_cv_use_sdl"
3111 if test "$no_cache" != 1; then
3112 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3113 fi
3114
3115 if test "$wxUSE_LIBSDL" = yes; then
3116 echo "$as_me:$LINENO: result: yes" >&5
3117echo "${ECHO_T}yes" >&6
3118 else
3119 echo "$as_me:$LINENO: result: no" >&5
3120echo "${ECHO_T}no" >&6
3121 fi
3122
3123
1c14217d
VZ
3124 withstring=
3125 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3126echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3127 no_cache=0
3128
3129# Check whether --with-gnomeprint or --without-gnomeprint was given.
3130if test "${with_gnomeprint+set}" = set; then
3131 withval="$with_gnomeprint"
3132
3133 if test "$withval" = yes; then
3134 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3135 else
3136 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3137 fi
3138
3139else
3140
3141 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3142 if test "x$LINE" != x ; then
3143 eval "DEFAULT_$LINE"
3144 else
3145 no_cache=1
3146 fi
3147
3148 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3149
3150fi;
3151
3152 eval "$ac_cv_use_gnomeprint"
3153 if test "$no_cache" != 1; then
3154 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3155 fi
3156
3157 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3158 echo "$as_me:$LINENO: result: yes" >&5
3159echo "${ECHO_T}yes" >&6
3160 else
3161 echo "$as_me:$LINENO: result: no" >&5
3162echo "${ECHO_T}no" >&6
3163 fi
3164
3165
1c14217d
VZ
3166 withstring=
3167 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3168echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3169 no_cache=0
3170
3171# Check whether --with-opengl or --without-opengl was given.
3172if test "${with_opengl+set}" = set; then
3173 withval="$with_opengl"
3174
3175 if test "$withval" = yes; then
3176 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3177 else
3178 ac_cv_use_opengl='wxUSE_OPENGL=no'
3179 fi
3180
3181else
3182
3183 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3184 if test "x$LINE" != x ; then
3185 eval "DEFAULT_$LINE"
3186 else
3187 no_cache=1
3188 fi
3189
3190 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3191
3192fi;
3193
3194 eval "$ac_cv_use_opengl"
3195 if test "$no_cache" != 1; then
3196 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3197 fi
3198
3199 if test "$wxUSE_OPENGL" = yes; then
3200 echo "$as_me:$LINENO: result: yes" >&5
3201echo "${ECHO_T}yes" >&6
3202 else
3203 echo "$as_me:$LINENO: result: no" >&5
3204echo "${ECHO_T}no" >&6
3205 fi
3206
3207
3208fi
3209
3210
1c14217d
VZ
3211 withstring=
3212 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3213echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3214 no_cache=0
3215
3216# Check whether --with-dmalloc or --without-dmalloc was given.
3217if test "${with_dmalloc+set}" = set; then
3218 withval="$with_dmalloc"
3219
3220 if test "$withval" = yes; then
3221 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3222 else
3223 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3224 fi
3225
3226else
3227
3228 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3229 if test "x$LINE" != x ; then
3230 eval "DEFAULT_$LINE"
3231 else
3232 no_cache=1
3233 fi
3234
3235 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3236
3237fi;
3238
3239 eval "$ac_cv_use_dmalloc"
3240 if test "$no_cache" != 1; then
3241 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3242 fi
3243
3244 if test "$wxUSE_DMALLOC" = yes; then
3245 echo "$as_me:$LINENO: result: yes" >&5
3246echo "${ECHO_T}yes" >&6
3247 else
3248 echo "$as_me:$LINENO: result: no" >&5
3249echo "${ECHO_T}no" >&6
3250 fi
3251
3252
3253 echo "$as_me:$LINENO: checking for --with-regex" >&5
3254echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3255 no_cache=0
3256
3257# Check whether --with-regex or --without-regex was given.
3258if test "${with_regex+set}" = set; then
3259 withval="$with_regex"
3260
3261 if test "$withval" = yes; then
3262 ac_cv_use_regex='wxUSE_REGEX=yes'
3263 elif test "$withval" = no; then
3264 ac_cv_use_regex='wxUSE_REGEX=no'
3265 elif test "$withval" = sys; then
3266 ac_cv_use_regex='wxUSE_REGEX=sys'
3267 elif test "$withval" = builtin; then
3268 ac_cv_use_regex='wxUSE_REGEX=builtin'
3269 else
3270 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3271echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3272 { (exit 1); exit 1; }; }
3273 fi
3274
3275else
3276
3277 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3278 if test "x$LINE" != x ; then
3279 eval "DEFAULT_$LINE"
3280 else
3281 no_cache=1
3282 fi
3283
3284 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3285
3286fi;
3287
3288 eval "$ac_cv_use_regex"
3289 if test "$no_cache" != 1; then
3290 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3291 fi
3292
3293 if test "$wxUSE_REGEX" = yes; then
3294 echo "$as_me:$LINENO: result: yes" >&5
3295echo "${ECHO_T}yes" >&6
3296 elif test "$wxUSE_REGEX" = no; then
3297 echo "$as_me:$LINENO: result: no" >&5
3298echo "${ECHO_T}no" >&6
3299 elif test "$wxUSE_REGEX" = sys; then
3300 echo "$as_me:$LINENO: result: system version" >&5
3301echo "${ECHO_T}system version" >&6
3302 elif test "$wxUSE_REGEX" = builtin; then
3303 echo "$as_me:$LINENO: result: builtin version" >&5
3304echo "${ECHO_T}builtin version" >&6
3305 else
3306 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3307echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3308 { (exit 1); exit 1; }; }
3309 fi
3310
3311
3312 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3313echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3314 no_cache=0
3315
3316# Check whether --with-zlib or --without-zlib was given.
3317if test "${with_zlib+set}" = set; then
3318 withval="$with_zlib"
3319
3320 if test "$withval" = yes; then
3321 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3322 elif test "$withval" = no; then
3323 ac_cv_use_zlib='wxUSE_ZLIB=no'
3324 elif test "$withval" = sys; then
3325 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3326 elif test "$withval" = builtin; then
3327 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3328 else
3329 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3330echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3331 { (exit 1); exit 1; }; }
3332 fi
3333
3334else
3335
3336 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3337 if test "x$LINE" != x ; then
3338 eval "DEFAULT_$LINE"
3339 else
3340 no_cache=1
3341 fi
3342
3343 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3344
3345fi;
3346
3347 eval "$ac_cv_use_zlib"
3348 if test "$no_cache" != 1; then
3349 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3350 fi
3351
3352 if test "$wxUSE_ZLIB" = yes; then
3353 echo "$as_me:$LINENO: result: yes" >&5
3354echo "${ECHO_T}yes" >&6
3355 elif test "$wxUSE_ZLIB" = no; then
3356 echo "$as_me:$LINENO: result: no" >&5
3357echo "${ECHO_T}no" >&6
3358 elif test "$wxUSE_ZLIB" = sys; then
3359 echo "$as_me:$LINENO: result: system version" >&5
3360echo "${ECHO_T}system version" >&6
3361 elif test "$wxUSE_ZLIB" = builtin; then
3362 echo "$as_me:$LINENO: result: builtin version" >&5
3363echo "${ECHO_T}builtin version" >&6
3364 else
3365 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3366echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3367 { (exit 1); exit 1; }; }
3368 fi
3369
3370
3371 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3372echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3373 no_cache=0
3374
3375# Check whether --with-odbc or --without-odbc was given.
3376if test "${with_odbc+set}" = set; then
3377 withval="$with_odbc"
3378
3379 if test "$withval" = yes; then
3380 ac_cv_use_odbc='wxUSE_ODBC=yes'
3381 elif test "$withval" = no; then
3382 ac_cv_use_odbc='wxUSE_ODBC=no'
3383 elif test "$withval" = sys; then
3384 ac_cv_use_odbc='wxUSE_ODBC=sys'
3385 elif test "$withval" = builtin; then
3386 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3387 else
3388 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3389echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3390 { (exit 1); exit 1; }; }
3391 fi
3392
3393else
3394
3395 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3396 if test "x$LINE" != x ; then
3397 eval "DEFAULT_$LINE"
3398 else
3399 no_cache=1
3400 fi
3401
3402 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3403
3404fi;
3405
3406 eval "$ac_cv_use_odbc"
3407 if test "$no_cache" != 1; then
3408 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3409 fi
3410
3411 if test "$wxUSE_ODBC" = yes; then
3412 echo "$as_me:$LINENO: result: yes" >&5
3413echo "${ECHO_T}yes" >&6
3414 elif test "$wxUSE_ODBC" = no; then
3415 echo "$as_me:$LINENO: result: no" >&5
3416echo "${ECHO_T}no" >&6
3417 elif test "$wxUSE_ODBC" = sys; then
3418 echo "$as_me:$LINENO: result: system version" >&5
3419echo "${ECHO_T}system version" >&6
3420 elif test "$wxUSE_ODBC" = builtin; then
3421 echo "$as_me:$LINENO: result: builtin version" >&5
3422echo "${ECHO_T}builtin version" >&6
3423 else
3424 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3425echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3426 { (exit 1); exit 1; }; }
3427 fi
3428
3429
3430 echo "$as_me:$LINENO: checking for --with-expat" >&5
3431echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3432 no_cache=0
3433
3434# Check whether --with-expat or --without-expat was given.
3435if test "${with_expat+set}" = set; then
3436 withval="$with_expat"
3437
3438 if test "$withval" = yes; then
3439 ac_cv_use_expat='wxUSE_EXPAT=yes'
3440 elif test "$withval" = no; then
3441 ac_cv_use_expat='wxUSE_EXPAT=no'
3442 elif test "$withval" = sys; then
3443 ac_cv_use_expat='wxUSE_EXPAT=sys'
3444 elif test "$withval" = builtin; then
3445 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3446 else
3447 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3448echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3449 { (exit 1); exit 1; }; }
3450 fi
3451
3452else
3453
3454 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3455 if test "x$LINE" != x ; then
3456 eval "DEFAULT_$LINE"
3457 else
3458 no_cache=1
3459 fi
3460
3461 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3462
3463fi;
3464
3465 eval "$ac_cv_use_expat"
3466 if test "$no_cache" != 1; then
3467 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3468 fi
3469
3470 if test "$wxUSE_EXPAT" = yes; then
3471 echo "$as_me:$LINENO: result: yes" >&5
3472echo "${ECHO_T}yes" >&6
3473 elif test "$wxUSE_EXPAT" = no; then
3474 echo "$as_me:$LINENO: result: no" >&5
3475echo "${ECHO_T}no" >&6
3476 elif test "$wxUSE_EXPAT" = sys; then
3477 echo "$as_me:$LINENO: result: system version" >&5
3478echo "${ECHO_T}system version" >&6
3479 elif test "$wxUSE_EXPAT" = builtin; then
3480 echo "$as_me:$LINENO: result: builtin version" >&5
3481echo "${ECHO_T}builtin version" >&6
3482 else
3483 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3484echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3485 { (exit 1); exit 1; }; }
3486 fi
3487
3488
3489
3490
3491 enablestring=
3492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3493echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3494 no_cache=0
3495 # Check whether --enable-shared or --disable-shared was given.
3496if test "${enable_shared+set}" = set; then
3497 enableval="$enable_shared"
3498
3499 if test "$enableval" = yes; then
3500 ac_cv_use_shared='wxUSE_SHARED=yes'
3501 else
3502 ac_cv_use_shared='wxUSE_SHARED=no'
3503 fi
3504
3505else
3506
3507 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3508 if test "x$LINE" != x ; then
3509 eval "DEFAULT_$LINE"
3510 else
3511 no_cache=1
3512 fi
3513
3514 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3515
3516fi;
3517
3518 eval "$ac_cv_use_shared"
3519 if test "$no_cache" != 1; then
3520 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3521 fi
3522
3523 if test "$wxUSE_SHARED" = yes; then
3524 echo "$as_me:$LINENO: result: yes" >&5
3525echo "${ECHO_T}yes" >&6
3526 else
3527 echo "$as_me:$LINENO: result: no" >&5
3528echo "${ECHO_T}no" >&6
3529 fi
3530
3531
3532 enablestring=
3533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3534echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3535 no_cache=0
3536 # Check whether --enable-optimise or --disable-optimise was given.
3537if test "${enable_optimise+set}" = set; then
3538 enableval="$enable_optimise"
3539
3540 if test "$enableval" = yes; then
3541 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3542 else
3543 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3544 fi
3545
3546else
3547
3548 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3549 if test "x$LINE" != x ; then
3550 eval "DEFAULT_$LINE"
3551 else
3552 no_cache=1
3553 fi
3554
3555 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3556
3557fi;
3558
3559 eval "$ac_cv_use_optimise"
3560 if test "$no_cache" != 1; then
3561 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3562 fi
3563
3564 if test "$wxUSE_OPTIMISE" = yes; then
3565 echo "$as_me:$LINENO: result: yes" >&5
3566echo "${ECHO_T}yes" >&6
3567 else
3568 echo "$as_me:$LINENO: result: no" >&5
3569echo "${ECHO_T}no" >&6
3570 fi
3571
3572
3573 enablestring=
3574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3575echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3576 no_cache=0
3577 # Check whether --enable-debug or --disable-debug was given.
3578if test "${enable_debug+set}" = set; then
3579 enableval="$enable_debug"
3580
3581 if test "$enableval" = yes; then
3582 ac_cv_use_debug='wxUSE_DEBUG=yes'
3583 else
3584 ac_cv_use_debug='wxUSE_DEBUG=no'
3585 fi
3586
3587else
3588
3589 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3590 if test "x$LINE" != x ; then
3591 eval "DEFAULT_$LINE"
3592 else
3593 no_cache=1
3594 fi
3595
3596 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3597
3598fi;
3599
3600 eval "$ac_cv_use_debug"
3601 if test "$no_cache" != 1; then
3602 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3603 fi
3604
3605 if test "$wxUSE_DEBUG" = yes; then
3606 echo "$as_me:$LINENO: result: yes" >&5
3607echo "${ECHO_T}yes" >&6
3608 else
3609 echo "$as_me:$LINENO: result: no" >&5
3610echo "${ECHO_T}no" >&6
3611 fi
3612
3613
3614 enablestring=
3615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3616echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3617 no_cache=0
3618 # Check whether --enable-stl or --disable-stl was given.
3619if test "${enable_stl+set}" = set; then
3620 enableval="$enable_stl"
3621
3622 if test "$enableval" = yes; then
3623 ac_cv_use_stl='wxUSE_STL=yes'
3624 else
3625 ac_cv_use_stl='wxUSE_STL=no'
3626 fi
3627
3628else
3629
3630 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3631 if test "x$LINE" != x ; then
3632 eval "DEFAULT_$LINE"
3633 else
3634 no_cache=1
3635 fi
3636
3637 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3638
3639fi;
3640
3641 eval "$ac_cv_use_stl"
3642 if test "$no_cache" != 1; then
3643 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3644 fi
3645
3646 if test "$wxUSE_STL" = yes; then
3647 echo "$as_me:$LINENO: result: yes" >&5
3648echo "${ECHO_T}yes" >&6
3649 else
3650 echo "$as_me:$LINENO: result: no" >&5
3651echo "${ECHO_T}no" >&6
3652 fi
3653
3654if test "$USE_OS2" = "1"; then
69120ee4 3655 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3656
3657 enablestring=
3658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3659echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3660 no_cache=0
3661 # Check whether --enable-omf or --disable-omf was given.
3662if test "${enable_omf+set}" = set; then
3663 enableval="$enable_omf"
3664
3665 if test "$enableval" = yes; then
3666 ac_cv_use_omf='wxUSE_OMF=yes'
3667 else
3668 ac_cv_use_omf='wxUSE_OMF=no'
3669 fi
3670
3671else
3672
3673 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3674 if test "x$LINE" != x ; then
3675 eval "DEFAULT_$LINE"
3676 else
3677 no_cache=1
3678 fi
3679
3680 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3681
3682fi;
3683
3684 eval "$ac_cv_use_omf"
3685 if test "$no_cache" != 1; then
3686 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3687 fi
3688
3689 if test "$wxUSE_OMF" = yes; then
3690 echo "$as_me:$LINENO: result: yes" >&5
3691echo "${ECHO_T}yes" >&6
3692 else
3693 echo "$as_me:$LINENO: result: no" >&5
3694echo "${ECHO_T}no" >&6
3695 fi
3696
3697fi
3698
3699if test "$wxUSE_DEBUG" = "yes"; then
3700 DEFAULT_wxUSE_DEBUG_FLAG=yes
3701 DEFAULT_wxUSE_DEBUG_INFO=yes
3702 BUILD=debug
3703elif test "$wxUSE_DEBUG" = "no"; then
3704 DEFAULT_wxUSE_DEBUG_FLAG=no
3705 DEFAULT_wxUSE_DEBUG_INFO=no
3706 BUILD=release
3707fi
3708
3709
3710 enablestring=
3711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3712echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3713 no_cache=0
3714 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3715if test "${enable_debug_flag+set}" = set; then
3716 enableval="$enable_debug_flag"
3717
3718 if test "$enableval" = yes; then
3719 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3720 else
3721 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3722 fi
3723
3724else
3725
3726 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3727 if test "x$LINE" != x ; then
3728 eval "DEFAULT_$LINE"
3729 else
3730 no_cache=1
3731 fi
3732
3733 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3734
3735fi;
3736
3737 eval "$ac_cv_use_debug_flag"
3738 if test "$no_cache" != 1; then
3739 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3740 fi
3741
3742 if test "$wxUSE_DEBUG_FLAG" = yes; then
3743 echo "$as_me:$LINENO: result: yes" >&5
3744echo "${ECHO_T}yes" >&6
3745 else
3746 echo "$as_me:$LINENO: result: no" >&5
3747echo "${ECHO_T}no" >&6
3748 fi
3749
3750
3751 enablestring=
3752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3753echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3754 no_cache=0
3755 # Check whether --enable-debug_info or --disable-debug_info was given.
3756if test "${enable_debug_info+set}" = set; then
3757 enableval="$enable_debug_info"
3758
3759 if test "$enableval" = yes; then
3760 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3761 else
3762 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3763 fi
3764
3765else
3766
3767 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3768 if test "x$LINE" != x ; then
3769 eval "DEFAULT_$LINE"
3770 else
3771 no_cache=1
3772 fi
3773
3774 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3775
3776fi;
3777
3778 eval "$ac_cv_use_debug_info"
3779 if test "$no_cache" != 1; then
3780 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3781 fi
3782
3783 if test "$wxUSE_DEBUG_INFO" = yes; then
3784 echo "$as_me:$LINENO: result: yes" >&5
3785echo "${ECHO_T}yes" >&6
3786 else
3787 echo "$as_me:$LINENO: result: no" >&5
3788echo "${ECHO_T}no" >&6
3789 fi
3790
3791
3792 enablestring=
3793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3794echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3795 no_cache=0
3796 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3797if test "${enable_debug_gdb+set}" = set; then
3798 enableval="$enable_debug_gdb"
3799
3800 if test "$enableval" = yes; then
3801 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3802 else
3803 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3804 fi
3805
3806else
3807
3808 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3809 if test "x$LINE" != x ; then
3810 eval "DEFAULT_$LINE"
3811 else
3812 no_cache=1
3813 fi
3814
3815 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3816
3817fi;
3818
3819 eval "$ac_cv_use_debug_gdb"
3820 if test "$no_cache" != 1; then
3821 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3822 fi
3823
3824 if test "$wxUSE_DEBUG_GDB" = yes; then
3825 echo "$as_me:$LINENO: result: yes" >&5
3826echo "${ECHO_T}yes" >&6
3827 else
3828 echo "$as_me:$LINENO: result: no" >&5
3829echo "${ECHO_T}no" >&6
3830 fi
3831
3832
3833 enablestring=
3834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3835echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3836 no_cache=0
3837 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3838if test "${enable_debug_cntxt+set}" = set; then
3839 enableval="$enable_debug_cntxt"
3840
3841 if test "$enableval" = yes; then
3842 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3843 else
3844 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3845 fi
3846
3847else
3848
3849 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3850 if test "x$LINE" != x ; then
3851 eval "DEFAULT_$LINE"
3852 else
3853 no_cache=1
3854 fi
3855
3856 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3857
3858fi;
3859
3860 eval "$ac_cv_use_debug_cntxt"
3861 if test "$no_cache" != 1; then
3862 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3863 fi
3864
3865 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3866 echo "$as_me:$LINENO: result: yes" >&5
3867echo "${ECHO_T}yes" >&6
3868 else
3869 echo "$as_me:$LINENO: result: no" >&5
3870echo "${ECHO_T}no" >&6
3871 fi
3872
3873
3874 enablestring=
3875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3876echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3877 no_cache=0
3878 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3879if test "${enable_mem_tracing+set}" = set; then
3880 enableval="$enable_mem_tracing"
3881
3882 if test "$enableval" = yes; then
3883 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3884 else
3885 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3886 fi
3887
3888else
3889
3890 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3891 if test "x$LINE" != x ; then
3892 eval "DEFAULT_$LINE"
3893 else
3894 no_cache=1
3895 fi
3896
3897 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3898
3899fi;
3900
3901 eval "$ac_cv_use_mem_tracing"
3902 if test "$no_cache" != 1; then
3903 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3904 fi
3905
3906 if test "$wxUSE_MEM_TRACING" = yes; then
3907 echo "$as_me:$LINENO: result: yes" >&5
3908echo "${ECHO_T}yes" >&6
3909 else
3910 echo "$as_me:$LINENO: result: no" >&5
3911echo "${ECHO_T}no" >&6
3912 fi
3913
3914
3915 enablestring=
3916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3917echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3918 no_cache=0
3919 # Check whether --enable-profile or --disable-profile was given.
3920if test "${enable_profile+set}" = set; then
3921 enableval="$enable_profile"
3922
3923 if test "$enableval" = yes; then
3924 ac_cv_use_profile='wxUSE_PROFILE=yes'
3925 else
3926 ac_cv_use_profile='wxUSE_PROFILE=no'
3927 fi
3928
3929else
3930
3931 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3932 if test "x$LINE" != x ; then
3933 eval "DEFAULT_$LINE"
3934 else
3935 no_cache=1
3936 fi
3937
3938 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3939
3940fi;
3941
3942 eval "$ac_cv_use_profile"
3943 if test "$no_cache" != 1; then
3944 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3945 fi
3946
3947 if test "$wxUSE_PROFILE" = yes; then
3948 echo "$as_me:$LINENO: result: yes" >&5
3949echo "${ECHO_T}yes" >&6
3950 else
3951 echo "$as_me:$LINENO: result: no" >&5
3952echo "${ECHO_T}no" >&6
3953 fi
3954
3955
3956 enablestring=
3957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3958echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3959 no_cache=0
3960 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3961if test "${enable_no_rtti+set}" = set; then
3962 enableval="$enable_no_rtti"
3963
3964 if test "$enableval" = yes; then
3965 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3966 else
3967 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3968 fi
3969
3970else
3971
3972 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3973 if test "x$LINE" != x ; then
3974 eval "DEFAULT_$LINE"
3975 else
3976 no_cache=1
3977 fi
3978
3979 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3980
3981fi;
3982
3983 eval "$ac_cv_use_no_rtti"
3984 if test "$no_cache" != 1; then
3985 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3986 fi
3987
3988 if test "$wxUSE_NO_RTTI" = yes; then
3989 echo "$as_me:$LINENO: result: yes" >&5
3990echo "${ECHO_T}yes" >&6
3991 else
3992 echo "$as_me:$LINENO: result: no" >&5
3993echo "${ECHO_T}no" >&6
3994 fi
3995
3996
3997 enablestring=
3998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3999echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4000 no_cache=0
4001 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4002if test "${enable_no_exceptions+set}" = set; then
4003 enableval="$enable_no_exceptions"
4004
4005 if test "$enableval" = yes; then
4006 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4007 else
4008 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4009 fi
4010
4011else
4012
4013 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4014 if test "x$LINE" != x ; then
4015 eval "DEFAULT_$LINE"
4016 else
4017 no_cache=1
4018 fi
4019
4020 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4021
4022fi;
4023
4024 eval "$ac_cv_use_no_exceptions"
4025 if test "$no_cache" != 1; then
4026 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4027 fi
4028
4029 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4030 echo "$as_me:$LINENO: result: yes" >&5
4031echo "${ECHO_T}yes" >&6
4032 else
4033 echo "$as_me:$LINENO: result: no" >&5
4034echo "${ECHO_T}no" >&6
4035 fi
4036
4037
4038 enablestring=
4039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4040echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4041 no_cache=0
4042 # Check whether --enable-permissive or --disable-permissive was given.
4043if test "${enable_permissive+set}" = set; then
4044 enableval="$enable_permissive"
4045
4046 if test "$enableval" = yes; then
4047 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4048 else
4049 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4050 fi
4051
4052else
4053
4054 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4055 if test "x$LINE" != x ; then
4056 eval "DEFAULT_$LINE"
4057 else
4058 no_cache=1
4059 fi
4060
4061 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4062
4063fi;
4064
4065 eval "$ac_cv_use_permissive"
4066 if test "$no_cache" != 1; then
4067 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4068 fi
4069
4070 if test "$wxUSE_PERMISSIVE" = yes; then
4071 echo "$as_me:$LINENO: result: yes" >&5
4072echo "${ECHO_T}yes" >&6
4073 else
4074 echo "$as_me:$LINENO: result: no" >&5
4075echo "${ECHO_T}no" >&6
4076 fi
4077
4078
4079 enablestring=
4080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4081echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4082 no_cache=0
4083 # Check whether --enable-no_deps or --disable-no_deps was given.
4084if test "${enable_no_deps+set}" = set; then
4085 enableval="$enable_no_deps"
4086
4087 if test "$enableval" = yes; then
4088 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4089 else
4090 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4091 fi
4092
4093else
4094
4095 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4096 if test "x$LINE" != x ; then
4097 eval "DEFAULT_$LINE"
4098 else
4099 no_cache=1
4100 fi
4101
4102 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4103
4104fi;
4105
4106 eval "$ac_cv_use_no_deps"
4107 if test "$no_cache" != 1; then
4108 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4109 fi
4110
4111 if test "$wxUSE_NO_DEPS" = yes; then
4112 echo "$as_me:$LINENO: result: yes" >&5
4113echo "${ECHO_T}yes" >&6
4114 else
4115 echo "$as_me:$LINENO: result: no" >&5
4116echo "${ECHO_T}no" >&6
4117 fi
4118
4119
4120
4121 enablestring=
4122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4123echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4124 no_cache=0
4125 # Check whether --enable-compat22 or --disable-compat22 was given.
4126if test "${enable_compat22+set}" = set; then
4127 enableval="$enable_compat22"
4128
4129 if test "$enableval" = yes; then
4130 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4131 else
4132 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4133 fi
4134
4135else
4136
4137 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4138 if test "x$LINE" != x ; then
4139 eval "DEFAULT_$LINE"
4140 else
4141 no_cache=1
4142 fi
4143
4144 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4145
4146fi;
4147
4148 eval "$ac_cv_use_compat22"
4149 if test "$no_cache" != 1; then
4150 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4151 fi
4152
4153 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4154 echo "$as_me:$LINENO: result: yes" >&5
4155echo "${ECHO_T}yes" >&6
4156 else
4157 echo "$as_me:$LINENO: result: no" >&5
4158echo "${ECHO_T}no" >&6
4159 fi
4160
4161
4162 enablestring=disable
4163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4164echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4165 no_cache=0
4166 # Check whether --enable-compat24 or --disable-compat24 was given.
4167if test "${enable_compat24+set}" = set; then
4168 enableval="$enable_compat24"
4169
4170 if test "$enableval" = yes; then
4171 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4172 else
4173 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4174 fi
4175
4176else
4177
4178 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4179 if test "x$LINE" != x ; then
4180 eval "DEFAULT_$LINE"
4181 else
4182 no_cache=1
4183 fi
4184
4185 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4186
4187fi;
4188
4189 eval "$ac_cv_use_compat24"
4190 if test "$no_cache" != 1; then
4191 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4192 fi
4193
4194 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4195 echo "$as_me:$LINENO: result: yes" >&5
4196echo "${ECHO_T}yes" >&6
4197 else
4198 echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6
4200 fi
4201
4202
ffa0583f
RL
4203
4204 enablestring=
4205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4206echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4207 no_cache=0
4208 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4209if test "${enable_rpath+set}" = set; then
4210 enableval="$enable_rpath"
ffa0583f
RL
4211
4212 if test "$enableval" = yes; then
4213 ac_cv_use_rpath='wxUSE_RPATH=yes'
4214 else
4215 ac_cv_use_rpath='wxUSE_RPATH=no'
4216 fi
4217
4218else
4219
4220 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4221 if test "x$LINE" != x ; then
4222 eval "DEFAULT_$LINE"
4223 else
4224 no_cache=1
4225 fi
4226
4227 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4228
a848cd7e
SC
4229fi;
4230
ffa0583f
RL
4231 eval "$ac_cv_use_rpath"
4232 if test "$no_cache" != 1; then
4233 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4234 fi
4235
4236 if test "$wxUSE_RPATH" = yes; then
4237 echo "$as_me:$LINENO: result: yes" >&5
4238echo "${ECHO_T}yes" >&6
4239 else
4240 echo "$as_me:$LINENO: result: no" >&5
4241echo "${ECHO_T}no" >&6
4242 fi
4243
a848cd7e
SC
4244
4245
4246
4247
4248 enablestring=
4249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4250echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4251 no_cache=0
4252 # Check whether --enable-intl or --disable-intl was given.
4253if test "${enable_intl+set}" = set; then
4254 enableval="$enable_intl"
4255
4256 if test "$enableval" = yes; then
4257 ac_cv_use_intl='wxUSE_INTL=yes'
4258 else
4259 ac_cv_use_intl='wxUSE_INTL=no'
4260 fi
4261
4262else
4263
4264 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4265 if test "x$LINE" != x ; then
4266 eval "DEFAULT_$LINE"
4267 else
4268 no_cache=1
4269 fi
4270
4271 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4272
4273fi;
4274
4275 eval "$ac_cv_use_intl"
4276 if test "$no_cache" != 1; then
4277 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4278 fi
4279
4280 if test "$wxUSE_INTL" = yes; then
4281 echo "$as_me:$LINENO: result: yes" >&5
4282echo "${ECHO_T}yes" >&6
4283 else
4284 echo "$as_me:$LINENO: result: no" >&5
4285echo "${ECHO_T}no" >&6
4286 fi
4287
4288
4289 enablestring=
4290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4291echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4292 no_cache=0
4293 # Check whether --enable-config or --disable-config was given.
4294if test "${enable_config+set}" = set; then
4295 enableval="$enable_config"
4296
4297 if test "$enableval" = yes; then
4298 ac_cv_use_config='wxUSE_CONFIG=yes'
4299 else
4300 ac_cv_use_config='wxUSE_CONFIG=no'
4301 fi
4302
4303else
4304
4305 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4306 if test "x$LINE" != x ; then
4307 eval "DEFAULT_$LINE"
4308 else
4309 no_cache=1
4310 fi
4311
4312 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4313
4314fi;
4315
4316 eval "$ac_cv_use_config"
4317 if test "$no_cache" != 1; then
4318 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4319 fi
4320
4321 if test "$wxUSE_CONFIG" = yes; then
4322 echo "$as_me:$LINENO: result: yes" >&5
4323echo "${ECHO_T}yes" >&6
4324 else
4325 echo "$as_me:$LINENO: result: no" >&5
4326echo "${ECHO_T}no" >&6
4327 fi
4328
4329
4330
4331 enablestring=
4332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4333echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4334 no_cache=0
4335 # Check whether --enable-protocols or --disable-protocols was given.
4336if test "${enable_protocols+set}" = set; then
4337 enableval="$enable_protocols"
4338
4339 if test "$enableval" = yes; then
4340 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4341 else
4342 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4343 fi
4344
4345else
4346
4347 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4348 if test "x$LINE" != x ; then
4349 eval "DEFAULT_$LINE"
4350 else
4351 no_cache=1
4352 fi
4353
4354 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4355
4356fi;
4357
4358 eval "$ac_cv_use_protocols"
4359 if test "$no_cache" != 1; then
4360 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4361 fi
4362
4363 if test "$wxUSE_PROTOCOL" = yes; then
4364 echo "$as_me:$LINENO: result: yes" >&5
4365echo "${ECHO_T}yes" >&6
4366 else
4367 echo "$as_me:$LINENO: result: no" >&5
4368echo "${ECHO_T}no" >&6
4369 fi
4370
4371
4372 enablestring=
4373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4374echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4375 no_cache=0
4376 # Check whether --enable-ftp or --disable-ftp was given.
4377if test "${enable_ftp+set}" = set; then
4378 enableval="$enable_ftp"
4379
4380 if test "$enableval" = yes; then
4381 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4382 else
4383 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4384 fi
4385
4386else
4387
4388 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4389 if test "x$LINE" != x ; then
4390 eval "DEFAULT_$LINE"
4391 else
4392 no_cache=1
4393 fi
4394
4395 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4396
4397fi;
4398
4399 eval "$ac_cv_use_ftp"
4400 if test "$no_cache" != 1; then
4401 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4402 fi
4403
4404 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4405 echo "$as_me:$LINENO: result: yes" >&5
4406echo "${ECHO_T}yes" >&6
4407 else
4408 echo "$as_me:$LINENO: result: no" >&5
4409echo "${ECHO_T}no" >&6
4410 fi
4411
4412
4413 enablestring=
4414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4415echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4416 no_cache=0
4417 # Check whether --enable-http or --disable-http was given.
4418if test "${enable_http+set}" = set; then
4419 enableval="$enable_http"
4420
4421 if test "$enableval" = yes; then
4422 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4423 else
4424 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4425 fi
4426
4427else
4428
4429 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4430 if test "x$LINE" != x ; then
4431 eval "DEFAULT_$LINE"
4432 else
4433 no_cache=1
4434 fi
4435
4436 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4437
4438fi;
4439
4440 eval "$ac_cv_use_http"
4441 if test "$no_cache" != 1; then
4442 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4443 fi
4444
4445 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4446 echo "$as_me:$LINENO: result: yes" >&5
4447echo "${ECHO_T}yes" >&6
4448 else
4449 echo "$as_me:$LINENO: result: no" >&5
4450echo "${ECHO_T}no" >&6
4451 fi
4452
4453
4454 enablestring=
4455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4456echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4457 no_cache=0
4458 # Check whether --enable-fileproto or --disable-fileproto was given.
4459if test "${enable_fileproto+set}" = set; then
4460 enableval="$enable_fileproto"
4461
4462 if test "$enableval" = yes; then
4463 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4464 else
4465 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4466 fi
4467
4468else
4469
4470 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4471 if test "x$LINE" != x ; then
4472 eval "DEFAULT_$LINE"
4473 else
4474 no_cache=1
4475 fi
4476
4477 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4478
4479fi;
4480
4481 eval "$ac_cv_use_fileproto"
4482 if test "$no_cache" != 1; then
4483 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4484 fi
4485
4486 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4487 echo "$as_me:$LINENO: result: yes" >&5
4488echo "${ECHO_T}yes" >&6
4489 else
4490 echo "$as_me:$LINENO: result: no" >&5
4491echo "${ECHO_T}no" >&6
4492 fi
4493
4494
4495 enablestring=
4496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4497echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4498 no_cache=0
4499 # Check whether --enable-sockets or --disable-sockets was given.
4500if test "${enable_sockets+set}" = set; then
4501 enableval="$enable_sockets"
4502
4503 if test "$enableval" = yes; then
4504 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4505 else
4506 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4507 fi
4508
4509else
4510
4511 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
4518 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4519
4520fi;
4521
4522 eval "$ac_cv_use_sockets"
4523 if test "$no_cache" != 1; then
4524 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4525 fi
4526
4527 if test "$wxUSE_SOCKETS" = yes; then
4528 echo "$as_me:$LINENO: result: yes" >&5
4529echo "${ECHO_T}yes" >&6
4530 else
4531 echo "$as_me:$LINENO: result: no" >&5
4532echo "${ECHO_T}no" >&6
4533 fi
4534
4535
4536 enablestring=
4537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4538echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4539 no_cache=0
4540 # Check whether --enable-ole or --disable-ole was given.
4541if test "${enable_ole+set}" = set; then
4542 enableval="$enable_ole"
4543
4544 if test "$enableval" = yes; then
4545 ac_cv_use_ole='wxUSE_OLE=yes'
4546 else
4547 ac_cv_use_ole='wxUSE_OLE=no'
4548 fi
4549
4550else
4551
4552 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4553 if test "x$LINE" != x ; then
4554 eval "DEFAULT_$LINE"
4555 else
4556 no_cache=1
4557 fi
4558
4559 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4560
4561fi;
4562
4563 eval "$ac_cv_use_ole"
4564 if test "$no_cache" != 1; then
4565 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4566 fi
4567
4568 if test "$wxUSE_OLE" = yes; then
4569 echo "$as_me:$LINENO: result: yes" >&5
4570echo "${ECHO_T}yes" >&6
4571 else
4572 echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6
4574 fi
4575
4576
4577 enablestring=
4578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4579echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4580 no_cache=0
4581 # Check whether --enable-dataobj or --disable-dataobj was given.
4582if test "${enable_dataobj+set}" = set; then
4583 enableval="$enable_dataobj"
4584
4585 if test "$enableval" = yes; then
4586 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4587 else
4588 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4589 fi
4590
4591else
4592
4593 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4601
4602fi;
4603
4604 eval "$ac_cv_use_dataobj"
4605 if test "$no_cache" != 1; then
4606 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4607 fi
4608
4609 if test "$wxUSE_DATAOBJ" = yes; then
4610 echo "$as_me:$LINENO: result: yes" >&5
4611echo "${ECHO_T}yes" >&6
4612 else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615 fi
4616
4617
4618
4619 enablestring=
4620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4621echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4622 no_cache=0
4623 # Check whether --enable-ipc or --disable-ipc was given.
4624if test "${enable_ipc+set}" = set; then
4625 enableval="$enable_ipc"
4626
4627 if test "$enableval" = yes; then
4628 ac_cv_use_ipc='wxUSE_IPC=yes'
4629 else
4630 ac_cv_use_ipc='wxUSE_IPC=no'
4631 fi
4632
4633else
4634
4635 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4636 if test "x$LINE" != x ; then
4637 eval "DEFAULT_$LINE"
4638 else
4639 no_cache=1
4640 fi
4641
4642 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4643
4644fi;
4645
4646 eval "$ac_cv_use_ipc"
4647 if test "$no_cache" != 1; then
4648 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4649 fi
4650
4651 if test "$wxUSE_IPC" = yes; then
4652 echo "$as_me:$LINENO: result: yes" >&5
4653echo "${ECHO_T}yes" >&6
4654 else
4655 echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6
4657 fi
4658
4659
4660
4661 enablestring=
4662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4663echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4664 no_cache=0
4665 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4666if test "${enable_apple_ieee+set}" = set; then
4667 enableval="$enable_apple_ieee"
4668
4669 if test "$enableval" = yes; then
4670 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4671 else
4672 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4673 fi
4674
4675else
4676
4677 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4678 if test "x$LINE" != x ; then
4679 eval "DEFAULT_$LINE"
4680 else
4681 no_cache=1
4682 fi
4683
4684 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4685
4686fi;
4687
4688 eval "$ac_cv_use_apple_ieee"
4689 if test "$no_cache" != 1; then
4690 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4691 fi
4692
4693 if test "$wxUSE_APPLE_IEEE" = yes; then
4694 echo "$as_me:$LINENO: result: yes" >&5
4695echo "${ECHO_T}yes" >&6
4696 else
4697 echo "$as_me:$LINENO: result: no" >&5
4698echo "${ECHO_T}no" >&6
4699 fi
4700
4701
81f90336
MW
4702 enablestring=
4703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4704echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4705 no_cache=0
4706 # Check whether --enable-arcstream or --disable-arcstream was given.
4707if test "${enable_arcstream+set}" = set; then
4708 enableval="$enable_arcstream"
4709
4710 if test "$enableval" = yes; then
9e8e867f 4711 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4712 else
9e8e867f 4713 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4714 fi
4715
4716else
4717
9e8e867f 4718 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4719 if test "x$LINE" != x ; then
4720 eval "DEFAULT_$LINE"
4721 else
4722 no_cache=1
4723 fi
4724
9e8e867f 4725 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4726
4727fi;
4728
4729 eval "$ac_cv_use_arcstream"
4730 if test "$no_cache" != 1; then
4731 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4732 fi
4733
9e8e867f 4734 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4735 echo "$as_me:$LINENO: result: yes" >&5
4736echo "${ECHO_T}yes" >&6
4737 else
4738 echo "$as_me:$LINENO: result: no" >&5
4739echo "${ECHO_T}no" >&6
4740 fi
4741
4742
a848cd7e 4743 enablestring=
36b6448c
VZ
4744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4745echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4746 no_cache=0
36b6448c
VZ
4747 # Check whether --enable-backtrace or --disable-backtrace was given.
4748if test "${enable_backtrace+set}" = set; then
4749 enableval="$enable_backtrace"
a848cd7e
SC
4750
4751 if test "$enableval" = yes; then
36b6448c 4752 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4753 else
36b6448c 4754 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4755 fi
4756
4757else
4758
36b6448c 4759 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4760 if test "x$LINE" != x ; then
4761 eval "DEFAULT_$LINE"
4762 else
4763 no_cache=1
4764 fi
4765
36b6448c 4766 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4767
4768fi;
4769
36b6448c 4770 eval "$ac_cv_use_backtrace"
a848cd7e 4771 if test "$no_cache" != 1; then
36b6448c 4772 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4773 fi
4774
36b6448c 4775 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4776 echo "$as_me:$LINENO: result: yes" >&5
4777echo "${ECHO_T}yes" >&6
4778 else
4779 echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6
4781 fi
4782
4783
eaff0f0d 4784 enablestring=
36b6448c
VZ
4785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4786echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4787 no_cache=0
36b6448c
VZ
4788 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4789if test "${enable_catch_segvs+set}" = set; then
4790 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4791
4792 if test "$enableval" = yes; then
36b6448c 4793 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4794 else
36b6448c 4795 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4796 fi
4797
4798else
4799
36b6448c 4800 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4801 if test "x$LINE" != x ; then
4802 eval "DEFAULT_$LINE"
4803 else
4804 no_cache=1
4805 fi
4806
36b6448c 4807 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4808
4809fi;
4810
36b6448c 4811 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4812 if test "$no_cache" != 1; then
36b6448c 4813 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4814 fi
4815
36b6448c 4816 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4817 echo "$as_me:$LINENO: result: yes" >&5
4818echo "${ECHO_T}yes" >&6
4819 else
4820 echo "$as_me:$LINENO: result: no" >&5
4821echo "${ECHO_T}no" >&6
4822 fi
4823
4824
a848cd7e
SC
4825 enablestring=
4826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4827echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4828 no_cache=0
4829 # Check whether --enable-cmdline or --disable-cmdline was given.
4830if test "${enable_cmdline+set}" = set; then
4831 enableval="$enable_cmdline"
4832
4833 if test "$enableval" = yes; then
4834 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4835 else
4836 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4837 fi
4838
4839else
4840
4841 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4842 if test "x$LINE" != x ; then
4843 eval "DEFAULT_$LINE"
4844 else
4845 no_cache=1
4846 fi
4847
4848 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4849
4850fi;
4851
4852 eval "$ac_cv_use_cmdline"
4853 if test "$no_cache" != 1; then
4854 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4855 fi
4856
4857 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4858 echo "$as_me:$LINENO: result: yes" >&5
4859echo "${ECHO_T}yes" >&6
4860 else
4861 echo "$as_me:$LINENO: result: no" >&5
4862echo "${ECHO_T}no" >&6
4863 fi
4864
4865
4866 enablestring=
4867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4868echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4869 no_cache=0
4870 # Check whether --enable-datetime or --disable-datetime was given.
4871if test "${enable_datetime+set}" = set; then
4872 enableval="$enable_datetime"
4873
4874 if test "$enableval" = yes; then
4875 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4876 else
4877 ac_cv_use_datetime='wxUSE_DATETIME=no'
4878 fi
4879
4880else
4881
4882 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4883 if test "x$LINE" != x ; then
4884 eval "DEFAULT_$LINE"
4885 else
4886 no_cache=1
4887 fi
4888
4889 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4890
4891fi;
4892
4893 eval "$ac_cv_use_datetime"
4894 if test "$no_cache" != 1; then
4895 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4896 fi
4897
4898 if test "$wxUSE_DATETIME" = yes; then
4899 echo "$as_me:$LINENO: result: yes" >&5
4900echo "${ECHO_T}yes" >&6
4901 else
4902 echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6
4904 fi
4905
4906
36b6448c
VZ
4907 enablestring=
4908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4909echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4910 no_cache=0
4911 # Check whether --enable-debugreport or --disable-debugreport was given.
4912if test "${enable_debugreport+set}" = set; then
4913 enableval="$enable_debugreport"
4914
4915 if test "$enableval" = yes; then
4916 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4917 else
4918 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4919 fi
4920
4921else
4922
4923 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4924 if test "x$LINE" != x ; then
4925 eval "DEFAULT_$LINE"
4926 else
4927 no_cache=1
4928 fi
4929
4930 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4931
4932fi;
4933
4934 eval "$ac_cv_use_debugreport"
4935 if test "$no_cache" != 1; then
4936 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4937 fi
4938
4939 if test "$wxUSE_DEBUGREPORT" = yes; then
4940 echo "$as_me:$LINENO: result: yes" >&5
4941echo "${ECHO_T}yes" >&6
4942 else
4943 echo "$as_me:$LINENO: result: no" >&5
4944echo "${ECHO_T}no" >&6
4945 fi
4946
4947
a848cd7e
SC
4948 enablestring=
4949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4950echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4951 no_cache=0
4952 # Check whether --enable-dialupman or --disable-dialupman was given.
4953if test "${enable_dialupman+set}" = set; then
4954 enableval="$enable_dialupman"
4955
4956 if test "$enableval" = yes; then
4957 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4958 else
4959 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4960 fi
4961
4962else
4963
4964 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4965 if test "x$LINE" != x ; then
4966 eval "DEFAULT_$LINE"
4967 else
4968 no_cache=1
4969 fi
4970
4971 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4972
4973fi;
4974
4975 eval "$ac_cv_use_dialupman"
4976 if test "$no_cache" != 1; then
4977 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4978 fi
4979
4980 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4981 echo "$as_me:$LINENO: result: yes" >&5
4982echo "${ECHO_T}yes" >&6
4983 else
4984 echo "$as_me:$LINENO: result: no" >&5
4985echo "${ECHO_T}no" >&6
4986 fi
4987
4988
4989 enablestring=
4990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4991echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4992 no_cache=0
4993 # Check whether --enable-dynlib or --disable-dynlib was given.
4994if test "${enable_dynlib+set}" = set; then
4995 enableval="$enable_dynlib"
4996
4997 if test "$enableval" = yes; then
4998 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4999 else
5000 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5001 fi
5002
5003else
5004
5005 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5006 if test "x$LINE" != x ; then
5007 eval "DEFAULT_$LINE"
5008 else
5009 no_cache=1
5010 fi
5011
5012 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5013
5014fi;
5015
5016 eval "$ac_cv_use_dynlib"
5017 if test "$no_cache" != 1; then
5018 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5019 fi
5020
5021 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5022 echo "$as_me:$LINENO: result: yes" >&5
5023echo "${ECHO_T}yes" >&6
5024 else
5025 echo "$as_me:$LINENO: result: no" >&5
5026echo "${ECHO_T}no" >&6
5027 fi
5028
5029
5030 enablestring=
5031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5032echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5033 no_cache=0
5034 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5035if test "${enable_dynamicloader+set}" = set; then
5036 enableval="$enable_dynamicloader"
5037
5038 if test "$enableval" = yes; then
5039 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5040 else
5041 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5042 fi
5043
5044else
5045
5046 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5047 if test "x$LINE" != x ; then
5048 eval "DEFAULT_$LINE"
5049 else
5050 no_cache=1
5051 fi
5052
5053 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5054
5055fi;
5056
5057 eval "$ac_cv_use_dynamicloader"
5058 if test "$no_cache" != 1; then
5059 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5060 fi
5061
5062 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5063 echo "$as_me:$LINENO: result: yes" >&5
5064echo "${ECHO_T}yes" >&6
5065 else
5066 echo "$as_me:$LINENO: result: no" >&5
5067echo "${ECHO_T}no" >&6
5068 fi
5069
5070
5071 enablestring=
5072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5073echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5074 no_cache=0
5075 # Check whether --enable-exceptions or --disable-exceptions was given.
5076if test "${enable_exceptions+set}" = set; then
5077 enableval="$enable_exceptions"
5078
5079 if test "$enableval" = yes; then
5080 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5081 else
5082 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5083 fi
5084
5085else
5086
5087 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5088 if test "x$LINE" != x ; then
5089 eval "DEFAULT_$LINE"
5090 else
5091 no_cache=1
5092 fi
5093
5094 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5095
5096fi;
5097
5098 eval "$ac_cv_use_exceptions"
5099 if test "$no_cache" != 1; then
5100 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5101 fi
5102
5103 if test "$wxUSE_EXCEPTIONS" = yes; then
5104 echo "$as_me:$LINENO: result: yes" >&5
5105echo "${ECHO_T}yes" >&6
5106 else
5107 echo "$as_me:$LINENO: result: no" >&5
5108echo "${ECHO_T}no" >&6
5109 fi
5110
5111
5112 enablestring=
5113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5114echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5115 no_cache=0
5116 # Check whether --enable-ffile or --disable-ffile was given.
5117if test "${enable_ffile+set}" = set; then
5118 enableval="$enable_ffile"
5119
5120 if test "$enableval" = yes; then
5121 ac_cv_use_ffile='wxUSE_FFILE=yes'
5122 else
5123 ac_cv_use_ffile='wxUSE_FFILE=no'
5124 fi
5125
5126else
5127
5128 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5129 if test "x$LINE" != x ; then
5130 eval "DEFAULT_$LINE"
5131 else
5132 no_cache=1
5133 fi
5134
5135 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5136
5137fi;
5138
5139 eval "$ac_cv_use_ffile"
5140 if test "$no_cache" != 1; then
5141 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5142 fi
5143
5144 if test "$wxUSE_FFILE" = yes; then
5145 echo "$as_me:$LINENO: result: yes" >&5
5146echo "${ECHO_T}yes" >&6
5147 else
5148 echo "$as_me:$LINENO: result: no" >&5
5149echo "${ECHO_T}no" >&6
5150 fi
5151
5152
5153 enablestring=
5154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5155echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5156 no_cache=0
5157 # Check whether --enable-file or --disable-file was given.
5158if test "${enable_file+set}" = set; then
5159 enableval="$enable_file"
5160
5161 if test "$enableval" = yes; then
5162 ac_cv_use_file='wxUSE_FILE=yes'
5163 else
5164 ac_cv_use_file='wxUSE_FILE=no'
5165 fi
5166
5167else
5168
5169 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5170 if test "x$LINE" != x ; then
5171 eval "DEFAULT_$LINE"
5172 else
5173 no_cache=1
5174 fi
5175
5176 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5177
5178fi;
5179
5180 eval "$ac_cv_use_file"
5181 if test "$no_cache" != 1; then
5182 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5183 fi
5184
5185 if test "$wxUSE_FILE" = yes; then
5186 echo "$as_me:$LINENO: result: yes" >&5
5187echo "${ECHO_T}yes" >&6
5188 else
5189 echo "$as_me:$LINENO: result: no" >&5
5190echo "${ECHO_T}no" >&6
5191 fi
5192
5193
5194 enablestring=
5195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5196echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5197 no_cache=0
5198 # Check whether --enable-filesystem or --disable-filesystem was given.
5199if test "${enable_filesystem+set}" = set; then
5200 enableval="$enable_filesystem"
5201
5202 if test "$enableval" = yes; then
5203 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5204 else
5205 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5206 fi
5207
5208else
5209
5210 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5211 if test "x$LINE" != x ; then
5212 eval "DEFAULT_$LINE"
5213 else
5214 no_cache=1
5215 fi
5216
5217 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5218
5219fi;
5220
5221 eval "$ac_cv_use_filesystem"
5222 if test "$no_cache" != 1; then
5223 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5224 fi
5225
5226 if test "$wxUSE_FILESYSTEM" = yes; then
5227 echo "$as_me:$LINENO: result: yes" >&5
5228echo "${ECHO_T}yes" >&6
5229 else
5230 echo "$as_me:$LINENO: result: no" >&5
5231echo "${ECHO_T}no" >&6
5232 fi
5233
5234
5235 enablestring=
5236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5237echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5238 no_cache=0
5239 # Check whether --enable-fontmap or --disable-fontmap was given.
5240if test "${enable_fontmap+set}" = set; then
5241 enableval="$enable_fontmap"
5242
5243 if test "$enableval" = yes; then
5244 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5245 else
5246 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5247 fi
5248
5249else
5250
5251 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5252 if test "x$LINE" != x ; then
5253 eval "DEFAULT_$LINE"
5254 else
5255 no_cache=1
5256 fi
5257
5258 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5259
5260fi;
5261
5262 eval "$ac_cv_use_fontmap"
5263 if test "$no_cache" != 1; then
5264 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5265 fi
5266
5267 if test "$wxUSE_FONTMAP" = yes; then
5268 echo "$as_me:$LINENO: result: yes" >&5
5269echo "${ECHO_T}yes" >&6
5270 else
5271 echo "$as_me:$LINENO: result: no" >&5
5272echo "${ECHO_T}no" >&6
5273 fi
5274
5275
5276 enablestring=
5277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5278echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5279 no_cache=0
5280 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5281if test "${enable_fs_inet+set}" = set; then
5282 enableval="$enable_fs_inet"
5283
5284 if test "$enableval" = yes; then
5285 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5286 else
5287 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5288 fi
5289
5290else
5291
5292 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5293 if test "x$LINE" != x ; then
5294 eval "DEFAULT_$LINE"
5295 else
5296 no_cache=1
5297 fi
5298
5299 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5300
5301fi;
5302
5303 eval "$ac_cv_use_fs_inet"
5304 if test "$no_cache" != 1; then
5305 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5306 fi
5307
5308 if test "$wxUSE_FS_INET" = yes; then
5309 echo "$as_me:$LINENO: result: yes" >&5
5310echo "${ECHO_T}yes" >&6
5311 else
5312 echo "$as_me:$LINENO: result: no" >&5
5313echo "${ECHO_T}no" >&6
5314 fi
5315
5316
5317 enablestring=
5318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5319echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5320 no_cache=0
5321 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5322if test "${enable_fs_zip+set}" = set; then
5323 enableval="$enable_fs_zip"
5324
5325 if test "$enableval" = yes; then
5326 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5327 else
5328 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5329 fi
5330
5331else
5332
5333 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5334 if test "x$LINE" != x ; then
5335 eval "DEFAULT_$LINE"
5336 else
5337 no_cache=1
5338 fi
5339
5340 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5341
5342fi;
5343
5344 eval "$ac_cv_use_fs_zip"
5345 if test "$no_cache" != 1; then
5346 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5347 fi
5348
5349 if test "$wxUSE_FS_ZIP" = yes; then
5350 echo "$as_me:$LINENO: result: yes" >&5
5351echo "${ECHO_T}yes" >&6
5352 else
5353 echo "$as_me:$LINENO: result: no" >&5
5354echo "${ECHO_T}no" >&6
5355 fi
5356
5357
5358 enablestring=
5359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5360echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5361 no_cache=0
5362 # Check whether --enable-geometry or --disable-geometry was given.
5363if test "${enable_geometry+set}" = set; then
5364 enableval="$enable_geometry"
5365
5366 if test "$enableval" = yes; then
5367 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5368 else
5369 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5370 fi
5371
5372else
5373
5374 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5375 if test "x$LINE" != x ; then
5376 eval "DEFAULT_$LINE"
5377 else
5378 no_cache=1
5379 fi
5380
5381 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5382
5383fi;
5384
5385 eval "$ac_cv_use_geometry"
5386 if test "$no_cache" != 1; then
5387 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5388 fi
5389
5390 if test "$wxUSE_GEOMETRY" = yes; then
5391 echo "$as_me:$LINENO: result: yes" >&5
5392echo "${ECHO_T}yes" >&6
5393 else
5394 echo "$as_me:$LINENO: result: no" >&5
5395echo "${ECHO_T}no" >&6
5396 fi
5397
5398
5399 enablestring=
5400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5401echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5402 no_cache=0
5403 # Check whether --enable-log or --disable-log was given.
5404if test "${enable_log+set}" = set; then
5405 enableval="$enable_log"
5406
5407 if test "$enableval" = yes; then
5408 ac_cv_use_log='wxUSE_LOG=yes'
5409 else
5410 ac_cv_use_log='wxUSE_LOG=no'
5411 fi
5412
5413else
5414
5415 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5416 if test "x$LINE" != x ; then
5417 eval "DEFAULT_$LINE"
5418 else
5419 no_cache=1
5420 fi
5421
5422 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5423
5424fi;
5425
5426 eval "$ac_cv_use_log"
5427 if test "$no_cache" != 1; then
5428 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5429 fi
5430
5431 if test "$wxUSE_LOG" = yes; then
5432 echo "$as_me:$LINENO: result: yes" >&5
5433echo "${ECHO_T}yes" >&6
5434 else
5435 echo "$as_me:$LINENO: result: no" >&5
5436echo "${ECHO_T}no" >&6
5437 fi
5438
5439
5440 enablestring=
5441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5442echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5443 no_cache=0
5444 # Check whether --enable-longlong or --disable-longlong was given.
5445if test "${enable_longlong+set}" = set; then
5446 enableval="$enable_longlong"
5447
5448 if test "$enableval" = yes; then
5449 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5450 else
5451 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5452 fi
5453
5454else
5455
5456 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5457 if test "x$LINE" != x ; then
5458 eval "DEFAULT_$LINE"
5459 else
5460 no_cache=1
5461 fi
5462
5463 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5464
5465fi;
5466
5467 eval "$ac_cv_use_longlong"
5468 if test "$no_cache" != 1; then
5469 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5470 fi
5471
5472 if test "$wxUSE_LONGLONG" = yes; then
5473 echo "$as_me:$LINENO: result: yes" >&5
5474echo "${ECHO_T}yes" >&6
5475 else
5476 echo "$as_me:$LINENO: result: no" >&5
5477echo "${ECHO_T}no" >&6
5478 fi
5479
5480
5481 enablestring=
5482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5483echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5484 no_cache=0
5485 # Check whether --enable-mimetype or --disable-mimetype was given.
5486if test "${enable_mimetype+set}" = set; then
5487 enableval="$enable_mimetype"
5488
5489 if test "$enableval" = yes; then
5490 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5491 else
5492 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5493 fi
5494
5495else
5496
5497 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5498 if test "x$LINE" != x ; then
5499 eval "DEFAULT_$LINE"
5500 else
5501 no_cache=1
5502 fi
5503
5504 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5505
5506fi;
5507
5508 eval "$ac_cv_use_mimetype"
5509 if test "$no_cache" != 1; then
5510 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5511 fi
5512
5513 if test "$wxUSE_MIMETYPE" = yes; then
5514 echo "$as_me:$LINENO: result: yes" >&5
5515echo "${ECHO_T}yes" >&6
5516 else
5517 echo "$as_me:$LINENO: result: no" >&5
5518echo "${ECHO_T}no" >&6
5519 fi
5520
5521
5522 enablestring=
5523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5524echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5525 no_cache=0
5526 # Check whether --enable-mslu or --disable-mslu was given.
5527if test "${enable_mslu+set}" = set; then
5528 enableval="$enable_mslu"
5529
5530 if test "$enableval" = yes; then
5531 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5532 else
5533 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5534 fi
5535
5536else
5537
5538 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5539 if test "x$LINE" != x ; then
5540 eval "DEFAULT_$LINE"
5541 else
5542 no_cache=1
5543 fi
5544
5545 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5546
5547fi;
5548
5549 eval "$ac_cv_use_mslu"
5550 if test "$no_cache" != 1; then
5551 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5552 fi
5553
5554 if test "$wxUSE_UNICODE_MSLU" = yes; then
5555 echo "$as_me:$LINENO: result: yes" >&5
5556echo "${ECHO_T}yes" >&6
5557 else
5558 echo "$as_me:$LINENO: result: no" >&5
5559echo "${ECHO_T}no" >&6
5560 fi
5561
5562
5563 enablestring=
5564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5565echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5566 no_cache=0
5567 # Check whether --enable-snglinst or --disable-snglinst was given.
5568if test "${enable_snglinst+set}" = set; then
5569 enableval="$enable_snglinst"
5570
5571 if test "$enableval" = yes; then
5572 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5573 else
5574 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5575 fi
5576
5577else
5578
5579 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5580 if test "x$LINE" != x ; then
5581 eval "DEFAULT_$LINE"
5582 else
5583 no_cache=1
5584 fi
5585
5586 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5587
5588fi;
5589
5590 eval "$ac_cv_use_snglinst"
5591 if test "$no_cache" != 1; then
5592 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5593 fi
5594
5595 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5596 echo "$as_me:$LINENO: result: yes" >&5
5597echo "${ECHO_T}yes" >&6
5598 else
5599 echo "$as_me:$LINENO: result: no" >&5
5600echo "${ECHO_T}no" >&6
5601 fi
5602
5603
5604 enablestring=
07158944
VZ
5605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5606echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5607 no_cache=0
07158944
VZ
5608 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5609if test "${enable_std_iostreams+set}" = set; then
5610 enableval="$enable_std_iostreams"
a848cd7e
SC
5611
5612 if test "$enableval" = yes; then
07158944 5613 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5614 else
07158944 5615 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5616 fi
5617
5618else
5619
07158944 5620 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5621 if test "x$LINE" != x ; then
5622 eval "DEFAULT_$LINE"
5623 else
5624 no_cache=1
5625 fi
5626
07158944 5627 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5628
5629fi;
5630
07158944 5631 eval "$ac_cv_use_std_iostreams"
a848cd7e 5632 if test "$no_cache" != 1; then
07158944 5633 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5634 fi
5635
07158944 5636 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5637 echo "$as_me:$LINENO: result: yes" >&5
5638echo "${ECHO_T}yes" >&6
5639 else
5640 echo "$as_me:$LINENO: result: no" >&5
5641echo "${ECHO_T}no" >&6
5642 fi
5643
5644
59746b65
MW
5645 enablestring=
5646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5647echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5648 no_cache=0
5649 # Check whether --enable-std_string or --disable-std_string was given.
5650if test "${enable_std_string+set}" = set; then
5651 enableval="$enable_std_string"
5652
5653 if test "$enableval" = yes; then
5654 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5655 else
5656 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5657 fi
5658
5659else
5660
5661 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5662 if test "x$LINE" != x ; then
5663 eval "DEFAULT_$LINE"
5664 else
5665 no_cache=1
5666 fi
5667
5668 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5669
5670fi;
5671
5672 eval "$ac_cv_use_std_string"
5673 if test "$no_cache" != 1; then
5674 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5675 fi
5676
5677 if test "$wxUSE_STD_STRING" = yes; then
5678 echo "$as_me:$LINENO: result: yes" >&5
5679echo "${ECHO_T}yes" >&6
5680 else
5681 echo "$as_me:$LINENO: result: no" >&5
5682echo "${ECHO_T}no" >&6
5683 fi
5684
5685
a848cd7e 5686 enablestring=
07158944
VZ
5687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5688echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5689 no_cache=0
07158944
VZ
5690 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5691if test "${enable_stdpaths+set}" = set; then
5692 enableval="$enable_stdpaths"
a848cd7e
SC
5693
5694 if test "$enableval" = yes; then
07158944 5695 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5696 else
07158944 5697 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5698 fi
5699
5700else
5701
07158944 5702 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5703 if test "x$LINE" != x ; then
5704 eval "DEFAULT_$LINE"
5705 else
5706 no_cache=1
5707 fi
5708
07158944 5709 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5710
5711fi;
5712
07158944 5713 eval "$ac_cv_use_stdpaths"
a848cd7e 5714 if test "$no_cache" != 1; then
07158944 5715 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5716 fi
5717
07158944 5718 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5719 echo "$as_me:$LINENO: result: yes" >&5
5720echo "${ECHO_T}yes" >&6
5721 else
5722 echo "$as_me:$LINENO: result: no" >&5
5723echo "${ECHO_T}no" >&6
5724 fi
5725
5726
5727 enablestring=
5728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5729echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5730 no_cache=0
5731 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5732if test "${enable_stopwatch+set}" = set; then
5733 enableval="$enable_stopwatch"
5734
5735 if test "$enableval" = yes; then
5736 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5737 else
5738 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5739 fi
5740
5741else
5742
5743 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5744 if test "x$LINE" != x ; then
5745 eval "DEFAULT_$LINE"
5746 else
5747 no_cache=1
5748 fi
5749
5750 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5751
5752fi;
5753
5754 eval "$ac_cv_use_stopwatch"
5755 if test "$no_cache" != 1; then
5756 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5757 fi
5758
5759 if test "$wxUSE_STOPWATCH" = yes; then
5760 echo "$as_me:$LINENO: result: yes" >&5
5761echo "${ECHO_T}yes" >&6
5762 else
5763 echo "$as_me:$LINENO: result: no" >&5
5764echo "${ECHO_T}no" >&6
5765 fi
5766
5767
07158944
VZ
5768 enablestring=
5769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5770echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5771 no_cache=0
5772 # Check whether --enable-streams or --disable-streams was given.
5773if test "${enable_streams+set}" = set; then
5774 enableval="$enable_streams"
5775
5776 if test "$enableval" = yes; then
5777 ac_cv_use_streams='wxUSE_STREAMS=yes'
5778 else
5779 ac_cv_use_streams='wxUSE_STREAMS=no'
5780 fi
5781
5782else
5783
5784 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5785 if test "x$LINE" != x ; then
5786 eval "DEFAULT_$LINE"
5787 else
5788 no_cache=1
5789 fi
5790
5791 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5792
5793fi;
5794
5795 eval "$ac_cv_use_streams"
5796 if test "$no_cache" != 1; then
5797 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5798 fi
5799
5800 if test "$wxUSE_STREAMS" = yes; then
5801 echo "$as_me:$LINENO: result: yes" >&5
5802echo "${ECHO_T}yes" >&6
5803 else
5804 echo "$as_me:$LINENO: result: no" >&5
5805echo "${ECHO_T}no" >&6
5806 fi
5807
5808
a848cd7e
SC
5809 enablestring=
5810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5811echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5812 no_cache=0
5813 # Check whether --enable-system_options or --disable-system_options was given.
5814if test "${enable_system_options+set}" = set; then
5815 enableval="$enable_system_options"
5816
5817 if test "$enableval" = yes; then
5818 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5819 else
5820 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5821 fi
5822
5823else
5824
5825 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5826 if test "x$LINE" != x ; then
5827 eval "DEFAULT_$LINE"
5828 else
5829 no_cache=1
5830 fi
5831
5832 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5833
5834fi;
5835
5836 eval "$ac_cv_use_system_options"
5837 if test "$no_cache" != 1; then
5838 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5839 fi
5840
5841 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5842 echo "$as_me:$LINENO: result: yes" >&5
5843echo "${ECHO_T}yes" >&6
5844 else
5845 echo "$as_me:$LINENO: result: no" >&5
5846echo "${ECHO_T}no" >&6
5847 fi
5848
5849
5850 enablestring=
5851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5852echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5853 no_cache=0
5854 # Check whether --enable-textbuf or --disable-textbuf was given.
5855if test "${enable_textbuf+set}" = set; then
5856 enableval="$enable_textbuf"
5857
5858 if test "$enableval" = yes; then
5859 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5860 else
5861 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5862 fi
5863
5864else
5865
5866 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5867 if test "x$LINE" != x ; then
5868 eval "DEFAULT_$LINE"
5869 else
5870 no_cache=1
5871 fi
5872
5873 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5874
5875fi;
5876
5877 eval "$ac_cv_use_textbuf"
5878 if test "$no_cache" != 1; then
5879 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5880 fi
5881
5882 if test "$wxUSE_TEXTBUFFER" = yes; then
5883 echo "$as_me:$LINENO: result: yes" >&5
5884echo "${ECHO_T}yes" >&6
5885 else
5886 echo "$as_me:$LINENO: result: no" >&5
5887echo "${ECHO_T}no" >&6
5888 fi
5889
5890
5891 enablestring=
5892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5893echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5894 no_cache=0
5895 # Check whether --enable-textfile or --disable-textfile was given.
5896if test "${enable_textfile+set}" = set; then
5897 enableval="$enable_textfile"
5898
5899 if test "$enableval" = yes; then
5900 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5901 else
5902 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5903 fi
5904
5905else
5906
5907 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5908 if test "x$LINE" != x ; then
5909 eval "DEFAULT_$LINE"
5910 else
5911 no_cache=1
5912 fi
5913
5914 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5915
5916fi;
5917
5918 eval "$ac_cv_use_textfile"
5919 if test "$no_cache" != 1; then
5920 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5921 fi
5922
5923 if test "$wxUSE_TEXTFILE" = yes; then
5924 echo "$as_me:$LINENO: result: yes" >&5
5925echo "${ECHO_T}yes" >&6
5926 else
5927 echo "$as_me:$LINENO: result: no" >&5
5928echo "${ECHO_T}no" >&6
5929 fi
5930
5931
5932 enablestring=
5933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5934echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5935 no_cache=0
5936 # Check whether --enable-timer or --disable-timer was given.
5937if test "${enable_timer+set}" = set; then
5938 enableval="$enable_timer"
5939
5940 if test "$enableval" = yes; then
5941 ac_cv_use_timer='wxUSE_TIMER=yes'
5942 else
5943 ac_cv_use_timer='wxUSE_TIMER=no'
5944 fi
5945
5946else
5947
5948 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5949 if test "x$LINE" != x ; then
5950 eval "DEFAULT_$LINE"
5951 else
5952 no_cache=1
5953 fi
5954
5955 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5956
5957fi;
5958
5959 eval "$ac_cv_use_timer"
5960 if test "$no_cache" != 1; then
5961 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5962 fi
5963
5964 if test "$wxUSE_TIMER" = yes; then
5965 echo "$as_me:$LINENO: result: yes" >&5
5966echo "${ECHO_T}yes" >&6
5967 else
5968 echo "$as_me:$LINENO: result: no" >&5
5969echo "${ECHO_T}no" >&6
5970 fi
5971
5972
5973 enablestring=
5974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5975echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5976 no_cache=0
5977 # Check whether --enable-unicode or --disable-unicode was given.
5978if test "${enable_unicode+set}" = set; then
5979 enableval="$enable_unicode"
5980
5981 if test "$enableval" = yes; then
5982 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5983 else
5984 ac_cv_use_unicode='wxUSE_UNICODE=no'
5985 fi
5986
5987else
5988
5989 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5990 if test "x$LINE" != x ; then
5991 eval "DEFAULT_$LINE"
5992 else
5993 no_cache=1
5994 fi
5995
5996 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5997
5998fi;
5999
6000 eval "$ac_cv_use_unicode"
6001 if test "$no_cache" != 1; then
6002 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6003 fi
6004
6005 if test "$wxUSE_UNICODE" = yes; then
6006 echo "$as_me:$LINENO: result: yes" >&5
6007echo "${ECHO_T}yes" >&6
6008 else
6009 echo "$as_me:$LINENO: result: no" >&5
6010echo "${ECHO_T}no" >&6
6011 fi
6012
6013
6014 enablestring=
6015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6016echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6017 no_cache=0
6018 # Check whether --enable-sound or --disable-sound was given.
6019if test "${enable_sound+set}" = set; then
6020 enableval="$enable_sound"
6021
6022 if test "$enableval" = yes; then
6023 ac_cv_use_sound='wxUSE_SOUND=yes'
6024 else
6025 ac_cv_use_sound='wxUSE_SOUND=no'
6026 fi
6027
6028else
6029
6030 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6031 if test "x$LINE" != x ; then
6032 eval "DEFAULT_$LINE"
6033 else
6034 no_cache=1
6035 fi
6036
6037 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6038
6039fi;
6040
6041 eval "$ac_cv_use_sound"
6042 if test "$no_cache" != 1; then
6043 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6044 fi
6045
6046 if test "$wxUSE_SOUND" = yes; then
6047 echo "$as_me:$LINENO: result: yes" >&5
6048echo "${ECHO_T}yes" >&6
6049 else
6050 echo "$as_me:$LINENO: result: no" >&5
6051echo "${ECHO_T}no" >&6
6052 fi
6053
6054
3b57de8b
RL
6055 enablestring=
6056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6057echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6058 no_cache=0
6059 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6060if test "${enable_mediactrl+set}" = set; then
6061 enableval="$enable_mediactrl"
6062
6063 if test "$enableval" = yes; then
6064 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6065 else
6066 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6067 fi
6068
6069else
6070
6071 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6072 if test "x$LINE" != x ; then
6073 eval "DEFAULT_$LINE"
6074 else
6075 no_cache=1
6076 fi
6077
6078 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6079
6080fi;
6081
6082 eval "$ac_cv_use_mediactrl"
6083 if test "$no_cache" != 1; then
6084 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6085 fi
6086
6087 if test "$wxUSE_MEDIACTRL" = yes; then
6088 echo "$as_me:$LINENO: result: yes" >&5
6089echo "${ECHO_T}yes" >&6
6090 else
6091 echo "$as_me:$LINENO: result: no" >&5
6092echo "${ECHO_T}no" >&6
6093 fi
6094
6095
a848cd7e
SC
6096 enablestring=
6097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6098echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6099 no_cache=0
6100 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6101if test "${enable_wxprintfv+set}" = set; then
6102 enableval="$enable_wxprintfv"
6103
6104 if test "$enableval" = yes; then
6105 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6106 else
6107 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6108 fi
6109
6110else
6111
6112 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6113 if test "x$LINE" != x ; then
6114 eval "DEFAULT_$LINE"
6115 else
6116 no_cache=1
6117 fi
6118
6119 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6120
6121fi;
6122
6123 eval "$ac_cv_use_wxprintfv"
6124 if test "$no_cache" != 1; then
6125 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6126 fi
6127
6128 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6129 echo "$as_me:$LINENO: result: yes" >&5
6130echo "${ECHO_T}yes" >&6
6131 else
6132 echo "$as_me:$LINENO: result: no" >&5
6133echo "${ECHO_T}no" >&6
6134 fi
6135
6136
6137 enablestring=
6138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6139echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6140 no_cache=0
6141 # Check whether --enable-zipstream or --disable-zipstream was given.
6142if test "${enable_zipstream+set}" = set; then
6143 enableval="$enable_zipstream"
6144
6145 if test "$enableval" = yes; then
6146 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6147 else
6148 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6149 fi
6150
6151else
6152
6153 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6154 if test "x$LINE" != x ; then
6155 eval "DEFAULT_$LINE"
6156 else
6157 no_cache=1
6158 fi
6159
6160 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6161
6162fi;
6163
6164 eval "$ac_cv_use_zipstream"
6165 if test "$no_cache" != 1; then
6166 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6167 fi
6168
6169 if test "$wxUSE_ZIPSTREAM" = yes; then
6170 echo "$as_me:$LINENO: result: yes" >&5
6171echo "${ECHO_T}yes" >&6
6172 else
6173 echo "$as_me:$LINENO: result: no" >&5
6174echo "${ECHO_T}no" >&6
6175 fi
6176
6177
a848cd7e
SC
6178
6179 enablestring=
6180 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6181echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6182 no_cache=0
6183 # Check whether --enable-url or --disable-url was given.
6184if test "${enable_url+set}" = set; then
6185 enableval="$enable_url"
6186
6187 if test "$enableval" = yes; then
6188 ac_cv_use_url='wxUSE_URL=yes'
6189 else
6190 ac_cv_use_url='wxUSE_URL=no'
6191 fi
6192
6193else
6194
6195 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6196 if test "x$LINE" != x ; then
6197 eval "DEFAULT_$LINE"
6198 else
6199 no_cache=1
6200 fi
6201
6202 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6203
6204fi;
6205
6206 eval "$ac_cv_use_url"
6207 if test "$no_cache" != 1; then
6208 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6209 fi
6210
6211 if test "$wxUSE_URL" = yes; then
6212 echo "$as_me:$LINENO: result: yes" >&5
6213echo "${ECHO_T}yes" >&6
6214 else
6215 echo "$as_me:$LINENO: result: no" >&5
6216echo "${ECHO_T}no" >&6
6217 fi
6218
6219
6220 enablestring=
6221 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6222echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6223 no_cache=0
6224 # Check whether --enable-protocol or --disable-protocol was given.
6225if test "${enable_protocol+set}" = set; then
6226 enableval="$enable_protocol"
6227
6228 if test "$enableval" = yes; then
6229 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6230 else
6231 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6232 fi
6233
6234else
6235
6236 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6237 if test "x$LINE" != x ; then
6238 eval "DEFAULT_$LINE"
6239 else
6240 no_cache=1
6241 fi
6242
6243 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6244
6245fi;
6246
6247 eval "$ac_cv_use_protocol"
6248 if test "$no_cache" != 1; then
6249 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6250 fi
6251
6252 if test "$wxUSE_PROTOCOL" = yes; then
6253 echo "$as_me:$LINENO: result: yes" >&5
6254echo "${ECHO_T}yes" >&6
6255 else
6256 echo "$as_me:$LINENO: result: no" >&5
6257echo "${ECHO_T}no" >&6
6258 fi
6259
6260
6261 enablestring=
6262 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6263echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6264 no_cache=0
6265 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6266if test "${enable_protocol_http+set}" = set; then
6267 enableval="$enable_protocol_http"
6268
6269 if test "$enableval" = yes; then
6270 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6271 else
6272 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6273 fi
6274
6275else
6276
6277 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6278 if test "x$LINE" != x ; then
6279 eval "DEFAULT_$LINE"
6280 else
6281 no_cache=1
6282 fi
6283
6284 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6285
6286fi;
6287
6288 eval "$ac_cv_use_protocol_http"
6289 if test "$no_cache" != 1; then
6290 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6291 fi
6292
6293 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6294 echo "$as_me:$LINENO: result: yes" >&5
6295echo "${ECHO_T}yes" >&6
6296 else
6297 echo "$as_me:$LINENO: result: no" >&5
6298echo "${ECHO_T}no" >&6
6299 fi
6300
6301
6302 enablestring=
6303 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6304echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6305 no_cache=0
6306 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6307if test "${enable_protocol_ftp+set}" = set; then
6308 enableval="$enable_protocol_ftp"
6309
6310 if test "$enableval" = yes; then
6311 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6312 else
6313 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6314 fi
6315
6316else
6317
6318 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6319 if test "x$LINE" != x ; then
6320 eval "DEFAULT_$LINE"
6321 else
6322 no_cache=1
6323 fi
6324
6325 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6326
6327fi;
6328
6329 eval "$ac_cv_use_protocol_ftp"
6330 if test "$no_cache" != 1; then
6331 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6332 fi
6333
6334 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6335 echo "$as_me:$LINENO: result: yes" >&5
6336echo "${ECHO_T}yes" >&6
6337 else
6338 echo "$as_me:$LINENO: result: no" >&5
6339echo "${ECHO_T}no" >&6
6340 fi
6341
6342
6343 enablestring=
6344 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6345echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6346 no_cache=0
6347 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6348if test "${enable_protocol_file+set}" = set; then
6349 enableval="$enable_protocol_file"
6350
6351 if test "$enableval" = yes; then
6352 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6353 else
6354 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6355 fi
6356
6357else
6358
6359 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6360 if test "x$LINE" != x ; then
6361 eval "DEFAULT_$LINE"
6362 else
6363 no_cache=1
6364 fi
6365
6366 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6367
6368fi;
6369
6370 eval "$ac_cv_use_protocol_file"
6371 if test "$no_cache" != 1; then
6372 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6373 fi
6374
6375 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6376 echo "$as_me:$LINENO: result: yes" >&5
6377echo "${ECHO_T}yes" >&6
6378 else
6379 echo "$as_me:$LINENO: result: no" >&5
6380echo "${ECHO_T}no" >&6
6381 fi
6382
6383
6384
6385
6386
6387 enablestring=
6388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6389echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6390 no_cache=0
6391 # Check whether --enable-threads or --disable-threads was given.
6392if test "${enable_threads+set}" = set; then
6393 enableval="$enable_threads"
6394
6395 if test "$enableval" = yes; then
6396 ac_cv_use_threads='wxUSE_THREADS=yes'
6397 else
6398 ac_cv_use_threads='wxUSE_THREADS=no'
6399 fi
6400
6401else
6402
6403 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6404 if test "x$LINE" != x ; then
6405 eval "DEFAULT_$LINE"
6406 else
6407 no_cache=1
6408 fi
6409
6410 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6411
6412fi;
6413
6414 eval "$ac_cv_use_threads"
6415 if test "$no_cache" != 1; then
6416 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6417 fi
6418
6419 if test "$wxUSE_THREADS" = yes; then
6420 echo "$as_me:$LINENO: result: yes" >&5
6421echo "${ECHO_T}yes" >&6
6422 else
6423 echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6
6425 fi
6426
6427
6428if test "$wxUSE_GUI" = "yes"; then
6429
6430
6431
6432 enablestring=
6433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6434echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6435 no_cache=0
6436 # Check whether --enable-docview or --disable-docview was given.
6437if test "${enable_docview+set}" = set; then
6438 enableval="$enable_docview"
6439
6440 if test "$enableval" = yes; then
6441 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6442 else
6443 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6444 fi
6445
6446else
6447
6448 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6449 if test "x$LINE" != x ; then
6450 eval "DEFAULT_$LINE"
6451 else
6452 no_cache=1
6453 fi
6454
6455 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6456
6457fi;
6458
6459 eval "$ac_cv_use_docview"
6460 if test "$no_cache" != 1; then
6461 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6462 fi
6463
6464 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6465 echo "$as_me:$LINENO: result: yes" >&5
6466echo "${ECHO_T}yes" >&6
6467 else
6468 echo "$as_me:$LINENO: result: no" >&5
6469echo "${ECHO_T}no" >&6
6470 fi
6471
6472
6473 enablestring=
6474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6475echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6476 no_cache=0
6477 # Check whether --enable-help or --disable-help was given.
6478if test "${enable_help+set}" = set; then
6479 enableval="$enable_help"
6480
6481 if test "$enableval" = yes; then
6482 ac_cv_use_help='wxUSE_HELP=yes'
6483 else
6484 ac_cv_use_help='wxUSE_HELP=no'
6485 fi
6486
6487else
6488
6489 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6490 if test "x$LINE" != x ; then
6491 eval "DEFAULT_$LINE"
6492 else
6493 no_cache=1
6494 fi
6495
6496 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6497
6498fi;
6499
6500 eval "$ac_cv_use_help"
6501 if test "$no_cache" != 1; then
6502 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6503 fi
6504
6505 if test "$wxUSE_HELP" = yes; then
6506 echo "$as_me:$LINENO: result: yes" >&5
6507echo "${ECHO_T}yes" >&6
6508 else
6509 echo "$as_me:$LINENO: result: no" >&5
6510echo "${ECHO_T}no" >&6
6511 fi
6512
6513
6514 enablestring=
6515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6516echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6517 no_cache=0
6518 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6519if test "${enable_mshtmlhelp+set}" = set; then
6520 enableval="$enable_mshtmlhelp"
6521
6522 if test "$enableval" = yes; then
6523 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6524 else
6525 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6526 fi
6527
6528else
6529
6530 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6531 if test "x$LINE" != x ; then
6532 eval "DEFAULT_$LINE"
6533 else
6534 no_cache=1
6535 fi
6536
6537 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6538
6539fi;
6540
6541 eval "$ac_cv_use_mshtmlhelp"
6542 if test "$no_cache" != 1; then
6543 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6544 fi
6545
6546 if test "$wxUSE_MS_HTML_HELP" = yes; then
6547 echo "$as_me:$LINENO: result: yes" >&5
6548echo "${ECHO_T}yes" >&6
6549 else
6550 echo "$as_me:$LINENO: result: no" >&5
6551echo "${ECHO_T}no" >&6
6552 fi
6553
6554
6555 enablestring=
6556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6557echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6558 no_cache=0
6559 # Check whether --enable-html or --disable-html was given.
6560if test "${enable_html+set}" = set; then
6561 enableval="$enable_html"
6562
6563 if test "$enableval" = yes; then
6564 ac_cv_use_html='wxUSE_HTML=yes'
6565 else
6566 ac_cv_use_html='wxUSE_HTML=no'
6567 fi
6568
6569else
6570
6571 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6572 if test "x$LINE" != x ; then
6573 eval "DEFAULT_$LINE"
6574 else
6575 no_cache=1
6576 fi
6577
6578 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6579
6580fi;
6581
6582 eval "$ac_cv_use_html"
6583 if test "$no_cache" != 1; then
6584 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6585 fi
6586
6587 if test "$wxUSE_HTML" = yes; then
6588 echo "$as_me:$LINENO: result: yes" >&5
6589echo "${ECHO_T}yes" >&6
6590 else
6591 echo "$as_me:$LINENO: result: no" >&5
6592echo "${ECHO_T}no" >&6
6593 fi
6594
6595
6596 enablestring=
6597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6598echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6599 no_cache=0
6600 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6601if test "${enable_htmlhelp+set}" = set; then
6602 enableval="$enable_htmlhelp"
6603
6604 if test "$enableval" = yes; then
6605 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6606 else
6607 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6608 fi
6609
6610else
6611
6612 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6613 if test "x$LINE" != x ; then
6614 eval "DEFAULT_$LINE"
6615 else
6616 no_cache=1
6617 fi
6618
6619 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6620
6621fi;
6622
6623 eval "$ac_cv_use_htmlhelp"
6624 if test "$no_cache" != 1; then
6625 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6626 fi
6627
6628 if test "$wxUSE_WXHTML_HELP" = yes; then
6629 echo "$as_me:$LINENO: result: yes" >&5
6630echo "${ECHO_T}yes" >&6
6631 else
6632 echo "$as_me:$LINENO: result: no" >&5
6633echo "${ECHO_T}no" >&6
6634 fi
6635
6636
9a8f0513
VS
6637 enablestring=
6638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6639echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6640 no_cache=0
6641 # Check whether --enable-xrc or --disable-xrc was given.
6642if test "${enable_xrc+set}" = set; then
6643 enableval="$enable_xrc"
6644
6645 if test "$enableval" = yes; then
6646 ac_cv_use_xrc='wxUSE_XRC=yes'
6647 else
6648 ac_cv_use_xrc='wxUSE_XRC=no'
6649 fi
6650
6651else
6652
6653 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6654 if test "x$LINE" != x ; then
6655 eval "DEFAULT_$LINE"
6656 else
6657 no_cache=1
6658 fi
6659
6660 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6661
6662fi;
6663
6664 eval "$ac_cv_use_xrc"
6665 if test "$no_cache" != 1; then
6666 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6667 fi
6668
6669 if test "$wxUSE_XRC" = yes; then
6670 echo "$as_me:$LINENO: result: yes" >&5
6671echo "${ECHO_T}yes" >&6
6672 else
6673 echo "$as_me:$LINENO: result: no" >&5
6674echo "${ECHO_T}no" >&6
6675 fi
6676
6677
a848cd7e
SC
6678 enablestring=
6679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6680echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6681 no_cache=0
6682 # Check whether --enable-constraints or --disable-constraints was given.
6683if test "${enable_constraints+set}" = set; then
6684 enableval="$enable_constraints"
6685
6686 if test "$enableval" = yes; then
6687 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6688 else
6689 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6690 fi
6691
6692else
6693
6694 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6695 if test "x$LINE" != x ; then
6696 eval "DEFAULT_$LINE"
6697 else
6698 no_cache=1
6699 fi
6700
6701 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6702
6703fi;
6704
6705 eval "$ac_cv_use_constraints"
6706 if test "$no_cache" != 1; then
6707 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6708 fi
6709
6710 if test "$wxUSE_CONSTRAINTS" = yes; then
6711 echo "$as_me:$LINENO: result: yes" >&5
6712echo "${ECHO_T}yes" >&6
6713 else
6714 echo "$as_me:$LINENO: result: no" >&5
6715echo "${ECHO_T}no" >&6
6716 fi
6717
6718
6719 enablestring=
6720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6721echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6722 no_cache=0
6723 # Check whether --enable-printarch or --disable-printarch was given.
6724if test "${enable_printarch+set}" = set; then
6725 enableval="$enable_printarch"
6726
6727 if test "$enableval" = yes; then
6728 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6729 else
6730 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6731 fi
6732
6733else
6734
6735 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6736 if test "x$LINE" != x ; then
6737 eval "DEFAULT_$LINE"
6738 else
6739 no_cache=1
6740 fi
6741
6742 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6743
6744fi;
6745
6746 eval "$ac_cv_use_printarch"
6747 if test "$no_cache" != 1; then
6748 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6749 fi
6750
6751 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6752 echo "$as_me:$LINENO: result: yes" >&5
6753echo "${ECHO_T}yes" >&6
6754 else
6755 echo "$as_me:$LINENO: result: no" >&5
6756echo "${ECHO_T}no" >&6
6757 fi
6758
6759
6760 enablestring=
6761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6762echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6763 no_cache=0
6764 # Check whether --enable-mdi or --disable-mdi was given.
6765if test "${enable_mdi+set}" = set; then
6766 enableval="$enable_mdi"
6767
6768 if test "$enableval" = yes; then
8a7b1113 6769 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6770 else
8a7b1113 6771 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6772 fi
6773
6774else
6775
8a7b1113 6776 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6777 if test "x$LINE" != x ; then
6778 eval "DEFAULT_$LINE"
6779 else
6780 no_cache=1
6781 fi
6782
8a7b1113 6783 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6784
6785fi;
6786
6787 eval "$ac_cv_use_mdi"
6788 if test "$no_cache" != 1; then
6789 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6790 fi
6791
8a7b1113
VZ
6792 if test "$wxUSE_MDI" = yes; then
6793 echo "$as_me:$LINENO: result: yes" >&5
6794echo "${ECHO_T}yes" >&6
6795 else
6796 echo "$as_me:$LINENO: result: no" >&5
6797echo "${ECHO_T}no" >&6
6798 fi
6799
6800
6801 enablestring=
6802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6803echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6804 no_cache=0
6805 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6806if test "${enable_mdidoc+set}" = set; then
6807 enableval="$enable_mdidoc"
6808
6809 if test "$enableval" = yes; then
6810 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6811 else
6812 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6813 fi
6814
6815else
6816
6817 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6818 if test "x$LINE" != x ; then
6819 eval "DEFAULT_$LINE"
6820 else
6821 no_cache=1
6822 fi
6823
6824 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6825
6826fi;
6827
6828 eval "$ac_cv_use_mdidoc"
6829 if test "$no_cache" != 1; then
6830 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6831 fi
6832
a848cd7e
SC
6833 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6834 echo "$as_me:$LINENO: result: yes" >&5
6835echo "${ECHO_T}yes" >&6
6836 else
6837 echo "$as_me:$LINENO: result: no" >&5
6838echo "${ECHO_T}no" >&6
6839 fi
6840
6841
6842 enablestring=
6843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6844echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6845 no_cache=0
6846 # Check whether --enable-loggui or --disable-loggui was given.
6847if test "${enable_loggui+set}" = set; then
6848 enableval="$enable_loggui"
6849
6850 if test "$enableval" = yes; then
6851 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6852 else
6853 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6854 fi
6855
6856else
6857
6858 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6859 if test "x$LINE" != x ; then
6860 eval "DEFAULT_$LINE"
6861 else
6862 no_cache=1
6863 fi
6864
6865 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6866
6867fi;
6868
6869 eval "$ac_cv_use_loggui"
6870 if test "$no_cache" != 1; then
6871 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6872 fi
6873
6874 if test "$wxUSE_LOGGUI" = yes; then
6875 echo "$as_me:$LINENO: result: yes" >&5
6876echo "${ECHO_T}yes" >&6
6877 else
6878 echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6
6880 fi
6881
6882
6883 enablestring=
6884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6885echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6886 no_cache=0
6887 # Check whether --enable-logwin or --disable-logwin was given.
6888if test "${enable_logwin+set}" = set; then
6889 enableval="$enable_logwin"
6890
6891 if test "$enableval" = yes; then
6892 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6893 else
6894 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6895 fi
6896
6897else
6898
6899 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6900 if test "x$LINE" != x ; then
6901 eval "DEFAULT_$LINE"
6902 else
6903 no_cache=1
6904 fi
6905
6906 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6907
6908fi;
6909
6910 eval "$ac_cv_use_logwin"
6911 if test "$no_cache" != 1; then
6912 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6913 fi
6914
6915 if test "$wxUSE_LOGWINDOW" = yes; then
6916 echo "$as_me:$LINENO: result: yes" >&5
6917echo "${ECHO_T}yes" >&6
6918 else
6919 echo "$as_me:$LINENO: result: no" >&5
6920echo "${ECHO_T}no" >&6
6921 fi
6922
6923
6924 enablestring=
6925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6926echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6927 no_cache=0
6928 # Check whether --enable-logdialog or --disable-logdialog was given.
6929if test "${enable_logdialog+set}" = set; then
6930 enableval="$enable_logdialog"
6931
6932 if test "$enableval" = yes; then
6933 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6934 else
6935 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6936 fi
6937
6938else
6939
6940 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6941 if test "x$LINE" != x ; then
6942 eval "DEFAULT_$LINE"
6943 else
6944 no_cache=1
6945 fi
6946
6947 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6948
6949fi;
6950
6951 eval "$ac_cv_use_logdialog"
6952 if test "$no_cache" != 1; then
6953 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6954 fi
6955
6956 if test "$wxUSE_LOGDIALOG" = yes; then
6957 echo "$as_me:$LINENO: result: yes" >&5
6958echo "${ECHO_T}yes" >&6
6959 else
6960 echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6
6962 fi
6963
6964
646b6ec1
VS
6965 enablestring=
6966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6967echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6968 no_cache=0
6969 # Check whether --enable-webkit or --disable-webkit was given.
6970if test "${enable_webkit+set}" = set; then
6971 enableval="$enable_webkit"
6972
6973 if test "$enableval" = yes; then
6974 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6975 else
6976 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6977 fi
6978
6979else
6980
6981 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6989
6990fi;
6991
6992 eval "$ac_cv_use_webkit"
6993 if test "$no_cache" != 1; then
6994 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6995 fi
6996
6997 if test "$wxUSE_WEBKIT" = yes; then
6998 echo "$as_me:$LINENO: result: yes" >&5
6999echo "${ECHO_T}yes" >&6
7000 else
7001 echo "$as_me:$LINENO: result: no" >&5
7002echo "${ECHO_T}no" >&6
7003 fi
7004
7005
a848cd7e
SC
7006
7007 enablestring=
7008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7009echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7010 no_cache=0
7011 # Check whether --enable-postscript or --disable-postscript was given.
7012if test "${enable_postscript+set}" = set; then
7013 enableval="$enable_postscript"
7014
7015 if test "$enableval" = yes; then
7016 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7017 else
7018 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7019 fi
7020
7021else
7022
7023 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7024 if test "x$LINE" != x ; then
7025 eval "DEFAULT_$LINE"
7026 else
7027 no_cache=1
7028 fi
7029
7030 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7031
7032fi;
7033
7034 eval "$ac_cv_use_postscript"
7035 if test "$no_cache" != 1; then
7036 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7037 fi
7038
7039 if test "$wxUSE_POSTSCRIPT" = yes; then
7040 echo "$as_me:$LINENO: result: yes" >&5
7041echo "${ECHO_T}yes" >&6
7042 else
7043 echo "$as_me:$LINENO: result: no" >&5
7044echo "${ECHO_T}no" >&6
7045 fi
7046
7047
7048
7049
7050
7051 enablestring=
7052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7053echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7054 no_cache=0
7055 # Check whether --enable-prologio or --disable-prologio was given.
7056if test "${enable_prologio+set}" = set; then
7057 enableval="$enable_prologio"
7058
7059 if test "$enableval" = yes; then
7060 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7061 else
7062 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7063 fi
7064
7065else
7066
7067 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7068 if test "x$LINE" != x ; then
7069 eval "DEFAULT_$LINE"
7070 else
7071 no_cache=1
7072 fi
7073
7074 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7075
7076fi;
7077
7078 eval "$ac_cv_use_prologio"
7079 if test "$no_cache" != 1; then
7080 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7081 fi
7082
7083 if test "$wxUSE_PROLOGIO" = yes; then
7084 echo "$as_me:$LINENO: result: yes" >&5
7085echo "${ECHO_T}yes" >&6
7086 else
7087 echo "$as_me:$LINENO: result: no" >&5
7088echo "${ECHO_T}no" >&6
7089 fi
7090
7091
7092 enablestring=
7093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7094echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7095 no_cache=0
7096 # Check whether --enable-resources or --disable-resources was given.
7097if test "${enable_resources+set}" = set; then
7098 enableval="$enable_resources"
7099
7100 if test "$enableval" = yes; then
7101 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7102 else
7103 ac_cv_use_resources='wxUSE_RESOURCES=no'
7104 fi
7105
7106else
7107
7108 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7109 if test "x$LINE" != x ; then
7110 eval "DEFAULT_$LINE"
7111 else
7112 no_cache=1
7113 fi
7114
7115 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7116
7117fi;
7118
7119 eval "$ac_cv_use_resources"
7120 if test "$no_cache" != 1; then
7121 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7122 fi
7123
7124 if test "$wxUSE_RESOURCES" = yes; then
7125 echo "$as_me:$LINENO: result: yes" >&5
7126echo "${ECHO_T}yes" >&6
7127 else
7128 echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6
7130 fi
7131
7132
7133
7134
7135 enablestring=
7136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7137echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7138 no_cache=0
7139 # Check whether --enable-clipboard or --disable-clipboard was given.
7140if test "${enable_clipboard+set}" = set; then
7141 enableval="$enable_clipboard"
7142
7143 if test "$enableval" = yes; then
7144 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7145 else
7146 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7147 fi
7148
7149else
7150
7151 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7152 if test "x$LINE" != x ; then
7153 eval "DEFAULT_$LINE"
7154 else
7155 no_cache=1
7156 fi
7157
7158 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7159
7160fi;
7161
7162 eval "$ac_cv_use_clipboard"
7163 if test "$no_cache" != 1; then
7164 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7165 fi
7166
7167 if test "$wxUSE_CLIPBOARD" = yes; then
7168 echo "$as_me:$LINENO: result: yes" >&5
7169echo "${ECHO_T}yes" >&6
7170 else
7171 echo "$as_me:$LINENO: result: no" >&5
7172echo "${ECHO_T}no" >&6
7173 fi
7174
7175
7176 enablestring=
7177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7178echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7179 no_cache=0
7180 # Check whether --enable-dnd or --disable-dnd was given.
7181if test "${enable_dnd+set}" = set; then
7182 enableval="$enable_dnd"
7183
7184 if test "$enableval" = yes; then
7185 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7186 else
7187 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7188 fi
7189
7190else
7191
7192 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7193 if test "x$LINE" != x ; then
7194 eval "DEFAULT_$LINE"
7195 else
7196 no_cache=1
7197 fi
7198
7199 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7200
7201fi;
7202
7203 eval "$ac_cv_use_dnd"
7204 if test "$no_cache" != 1; then
7205 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7206 fi
7207
7208 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7209 echo "$as_me:$LINENO: result: yes" >&5
7210echo "${ECHO_T}yes" >&6
7211 else
7212 echo "$as_me:$LINENO: result: no" >&5
7213echo "${ECHO_T}no" >&6
7214 fi
7215
7216
7217 enablestring=
7218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7219echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7220 no_cache=0
7221 # Check whether --enable-metafile or --disable-metafile was given.
7222if test "${enable_metafile+set}" = set; then
7223 enableval="$enable_metafile"
7224
7225 if test "$enableval" = yes; then
7226 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7227 else
7228 ac_cv_use_metafile='wxUSE_METAFILE=no'
7229 fi
7230
7231else
7232
7233 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7234 if test "x$LINE" != x ; then
7235 eval "DEFAULT_$LINE"
7236 else
7237 no_cache=1
7238 fi
7239
7240 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7241
7242fi;
7243
7244 eval "$ac_cv_use_metafile"
7245 if test "$no_cache" != 1; then
7246 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7247 fi
7248
7249 if test "$wxUSE_METAFILE" = yes; then
7250 echo "$as_me:$LINENO: result: yes" >&5
7251echo "${ECHO_T}yes" >&6
7252 else
7253 echo "$as_me:$LINENO: result: no" >&5
7254echo "${ECHO_T}no" >&6
7255 fi
7256
7257
7258
7259
7260
7261 enablestring=
7262 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7263echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7264 no_cache=0
7265 # Check whether --enable-controls or --disable-controls was given.
7266if test "${enable_controls+set}" = set; then
7267 enableval="$enable_controls"
7268
7269 if test "$enableval" = yes; then
7270 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7271 else
7272 ac_cv_use_controls='wxUSE_CONTROLS=no'
7273 fi
7274
7275else
7276
7277 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7278 if test "x$LINE" != x ; then
7279 eval "DEFAULT_$LINE"
7280 else
7281 no_cache=1
7282 fi
7283
7284 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7285
7286fi;
7287
7288 eval "$ac_cv_use_controls"
7289 if test "$no_cache" != 1; then
7290 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7291 fi
7292
7293 if test "$wxUSE_CONTROLS" = yes; then
7294 echo "$as_me:$LINENO: result: yes" >&5
7295echo "${ECHO_T}yes" >&6
7296 else
7297 echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6
7299 fi
7300
7301
7302if test "$wxUSE_CONTROLS" = "yes"; then
7303 DEFAULT_wxUSE_ACCEL=yes
7304 DEFAULT_wxUSE_BMPBUTTON=yes
7305 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7306 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7307 DEFAULT_wxUSE_CARET=yes
7308 DEFAULT_wxUSE_COMBOBOX=yes
7309 DEFAULT_wxUSE_CHECKBOX=yes
7310 DEFAULT_wxUSE_CHECKLISTBOX=yes
7311 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7312 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7313 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7314 DEFAULT_wxUSE_GAUGE=yes
7315 DEFAULT_wxUSE_GRID=yes
7316 DEFAULT_wxUSE_IMAGLIST=yes
7317 DEFAULT_wxUSE_LISTBOOK=yes
7318 DEFAULT_wxUSE_LISTBOX=yes
7319 DEFAULT_wxUSE_LISTCTRL=yes
7320 DEFAULT_wxUSE_NOTEBOOK=yes
7321 DEFAULT_wxUSE_RADIOBOX=yes
7322 DEFAULT_wxUSE_RADIOBTN=yes
7323 DEFAULT_wxUSE_SASH=yes
7324 DEFAULT_wxUSE_SCROLLBAR=yes
7325 DEFAULT_wxUSE_SLIDER=yes
7326 DEFAULT_wxUSE_SPINBTN=yes
7327 DEFAULT_wxUSE_SPINCTRL=yes
7328 DEFAULT_wxUSE_SPLITTER=yes
7329 DEFAULT_wxUSE_STATBMP=yes
7330 DEFAULT_wxUSE_STATBOX=yes
7331 DEFAULT_wxUSE_STATLINE=yes
7332 DEFAULT_wxUSE_STATUSBAR=yes
7333 DEFAULT_wxUSE_TAB_DIALOG=yes
7334 DEFAULT_wxUSE_TOGGLEBTN=yes
7335 DEFAULT_wxUSE_TOOLBAR=yes
7336 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7337 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7338 DEFAULT_wxUSE_TOOLTIPS=yes
7339 DEFAULT_wxUSE_TREECTRL=yes
7340 DEFAULT_wxUSE_POPUPWIN=yes
7341 DEFAULT_wxUSE_TIPWINDOW=yes
7342elif test "$wxUSE_CONTROLS" = "no"; then
7343 DEFAULT_wxUSE_ACCEL=no
7344 DEFAULT_wxUSE_BMPBUTTON=no
7345 DEFAULT_wxUSE_BUTTON=no
7346 DEFAULT_wxUSE_CALCTRL=no
7347 DEFAULT_wxUSE_CARET=no
7348 DEFAULT_wxUSE_COMBOBOX=no
7349 DEFAULT_wxUSE_CHECKBOX=no
7350 DEFAULT_wxUSE_CHECKLISTBOX=no
7351 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7352 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7353 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7354 DEFAULT_wxUSE_GAUGE=no
7355 DEFAULT_wxUSE_GRID=no
7356 DEFAULT_wxUSE_IMAGLIST=no
7357 DEFAULT_wxUSE_LISTBOOK=no
7358 DEFAULT_wxUSE_LISTBOX=no
7359 DEFAULT_wxUSE_LISTCTRL=no
7360 DEFAULT_wxUSE_NOTEBOOK=no
7361 DEFAULT_wxUSE_RADIOBOX=no
7362 DEFAULT_wxUSE_RADIOBTN=no
7363 DEFAULT_wxUSE_SASH=no
7364 DEFAULT_wxUSE_SCROLLBAR=no
7365 DEFAULT_wxUSE_SLIDER=no
7366 DEFAULT_wxUSE_SPINBTN=no
7367 DEFAULT_wxUSE_SPINCTRL=no
7368 DEFAULT_wxUSE_SPLITTER=no
7369 DEFAULT_wxUSE_STATBMP=no
7370 DEFAULT_wxUSE_STATBOX=no
7371 DEFAULT_wxUSE_STATLINE=no
7372 DEFAULT_wxUSE_STATUSBAR=no
7373 DEFAULT_wxUSE_TAB_DIALOG=no
7374 DEFAULT_wxUSE_TOGGLEBTN=no
7375 DEFAULT_wxUSE_TOOLBAR=no
7376 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7377 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7378 DEFAULT_wxUSE_TOOLTIPS=no
7379 DEFAULT_wxUSE_TREECTRL=no
7380 DEFAULT_wxUSE_POPUPWIN=no
7381 DEFAULT_wxUSE_TIPWINDOW=no
7382fi
7383
a848cd7e
SC
7384
7385 enablestring=
7386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7387echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7388 no_cache=0
7389 # Check whether --enable-accel or --disable-accel was given.
7390if test "${enable_accel+set}" = set; then
7391 enableval="$enable_accel"
7392
7393 if test "$enableval" = yes; then
7394 ac_cv_use_accel='wxUSE_ACCEL=yes'
7395 else
7396 ac_cv_use_accel='wxUSE_ACCEL=no'
7397 fi
7398
7399else
7400
7401 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7402 if test "x$LINE" != x ; then
7403 eval "DEFAULT_$LINE"
7404 else
7405 no_cache=1
7406 fi
7407
7408 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7409
7410fi;
7411
7412 eval "$ac_cv_use_accel"
7413 if test "$no_cache" != 1; then
7414 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7415 fi
7416
7417 if test "$wxUSE_ACCEL" = yes; then
7418 echo "$as_me:$LINENO: result: yes" >&5
7419echo "${ECHO_T}yes" >&6
7420 else
7421 echo "$as_me:$LINENO: result: no" >&5
7422echo "${ECHO_T}no" >&6
7423 fi
7424
7425
7426 enablestring=
7427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7428echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7429 no_cache=0
7430 # Check whether --enable-button or --disable-button was given.
7431if test "${enable_button+set}" = set; then
7432 enableval="$enable_button"
7433
7434 if test "$enableval" = yes; then
7435 ac_cv_use_button='wxUSE_BUTTON=yes'
7436 else
7437 ac_cv_use_button='wxUSE_BUTTON=no'
7438 fi
7439
7440else
7441
7442 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7443 if test "x$LINE" != x ; then
7444 eval "DEFAULT_$LINE"
7445 else
7446 no_cache=1
7447 fi
7448
7449 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7450
7451fi;
7452
7453 eval "$ac_cv_use_button"
7454 if test "$no_cache" != 1; then
7455 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7456 fi
7457
7458 if test "$wxUSE_BUTTON" = yes; then
7459 echo "$as_me:$LINENO: result: yes" >&5
7460echo "${ECHO_T}yes" >&6
7461 else
7462 echo "$as_me:$LINENO: result: no" >&5
7463echo "${ECHO_T}no" >&6
7464 fi
7465
7466
7467 enablestring=
7468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7469echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7470 no_cache=0
7471 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7472if test "${enable_bmpbutton+set}" = set; then
7473 enableval="$enable_bmpbutton"
7474
7475 if test "$enableval" = yes; then
7476 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7477 else
7478 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7479 fi
7480
7481else
7482
7483 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7484 if test "x$LINE" != x ; then
7485 eval "DEFAULT_$LINE"
7486 else
7487 no_cache=1
7488 fi
7489
7490 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7491
7492fi;
7493
7494 eval "$ac_cv_use_bmpbutton"
7495 if test "$no_cache" != 1; then
7496 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7497 fi
7498
7499 if test "$wxUSE_BMPBUTTON" = yes; then
7500 echo "$as_me:$LINENO: result: yes" >&5
7501echo "${ECHO_T}yes" >&6
7502 else
7503 echo "$as_me:$LINENO: result: no" >&5
7504echo "${ECHO_T}no" >&6
7505 fi
7506
7507
7508 enablestring=
7509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7510echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7511 no_cache=0
7512 # Check whether --enable-calendar or --disable-calendar was given.
7513if test "${enable_calendar+set}" = set; then
7514 enableval="$enable_calendar"
7515
7516 if test "$enableval" = yes; then
7517 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7518 else
7519 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7520 fi
7521
7522else
7523
7524 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7525 if test "x$LINE" != x ; then
7526 eval "DEFAULT_$LINE"
7527 else
7528 no_cache=1
7529 fi
7530
7531 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7532
7533fi;
7534
7535 eval "$ac_cv_use_calendar"
7536 if test "$no_cache" != 1; then
7537 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7538 fi
7539
7540 if test "$wxUSE_CALCTRL" = yes; then
7541 echo "$as_me:$LINENO: result: yes" >&5
7542echo "${ECHO_T}yes" >&6
7543 else
7544 echo "$as_me:$LINENO: result: no" >&5
7545echo "${ECHO_T}no" >&6
7546 fi
7547
7548
7549 enablestring=
7550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7551echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7552 no_cache=0
7553 # Check whether --enable-caret or --disable-caret was given.
7554if test "${enable_caret+set}" = set; then
7555 enableval="$enable_caret"
7556
7557 if test "$enableval" = yes; then
7558 ac_cv_use_caret='wxUSE_CARET=yes'
7559 else
7560 ac_cv_use_caret='wxUSE_CARET=no'
7561 fi
7562
7563else
7564
7565 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7566 if test "x$LINE" != x ; then
7567 eval "DEFAULT_$LINE"
7568 else
7569 no_cache=1
7570 fi
7571
7572 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7573
7574fi;
7575
7576 eval "$ac_cv_use_caret"
7577 if test "$no_cache" != 1; then
7578 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7579 fi
7580
7581 if test "$wxUSE_CARET" = yes; then
7582 echo "$as_me:$LINENO: result: yes" >&5
7583echo "${ECHO_T}yes" >&6
7584 else
7585 echo "$as_me:$LINENO: result: no" >&5
7586echo "${ECHO_T}no" >&6
7587 fi
7588
7589
7590 enablestring=
7591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7592echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7593 no_cache=0
7594 # Check whether --enable-checkbox or --disable-checkbox was given.
7595if test "${enable_checkbox+set}" = set; then
7596 enableval="$enable_checkbox"
7597
7598 if test "$enableval" = yes; then
7599 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7600 else
7601 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7602 fi
7603
7604else
7605
7606 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7607 if test "x$LINE" != x ; then
7608 eval "DEFAULT_$LINE"
7609 else
7610 no_cache=1
7611 fi
7612
7613 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7614
7615fi;
7616
7617 eval "$ac_cv_use_checkbox"
7618 if test "$no_cache" != 1; then
7619 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7620 fi
7621
7622 if test "$wxUSE_CHECKBOX" = yes; then
7623 echo "$as_me:$LINENO: result: yes" >&5
7624echo "${ECHO_T}yes" >&6
7625 else
7626 echo "$as_me:$LINENO: result: no" >&5
7627echo "${ECHO_T}no" >&6
7628 fi
7629
7630
7631 enablestring=
7632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7633echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7634 no_cache=0
7635 # Check whether --enable-checklst or --disable-checklst was given.
7636if test "${enable_checklst+set}" = set; then
7637 enableval="$enable_checklst"
7638
7639 if test "$enableval" = yes; then
7640 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7641 else
7642 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7643 fi
7644
7645else
7646
7647 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7648 if test "x$LINE" != x ; then
7649 eval "DEFAULT_$LINE"
7650 else
7651 no_cache=1
7652 fi
7653
7654 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7655
7656fi;
7657
7658 eval "$ac_cv_use_checklst"
7659 if test "$no_cache" != 1; then
7660 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7661 fi
7662
7663 if test "$wxUSE_CHECKLST" = yes; then
7664 echo "$as_me:$LINENO: result: yes" >&5
7665echo "${ECHO_T}yes" >&6
7666 else
7667 echo "$as_me:$LINENO: result: no" >&5
7668echo "${ECHO_T}no" >&6
7669 fi
7670
7671
7672 enablestring=
7673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7674echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7675 no_cache=0
7676 # Check whether --enable-choice or --disable-choice was given.
7677if test "${enable_choice+set}" = set; then
7678 enableval="$enable_choice"
7679
7680 if test "$enableval" = yes; then
7681 ac_cv_use_choice='wxUSE_CHOICE=yes'
7682 else
7683 ac_cv_use_choice='wxUSE_CHOICE=no'
7684 fi
7685
7686else
7687
7688 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7689 if test "x$LINE" != x ; then
7690 eval "DEFAULT_$LINE"
7691 else
7692 no_cache=1
7693 fi
7694
7695 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7696
7697fi;
7698
7699 eval "$ac_cv_use_choice"
7700 if test "$no_cache" != 1; then
7701 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7702 fi
7703
7704 if test "$wxUSE_CHOICE" = yes; then
7705 echo "$as_me:$LINENO: result: yes" >&5
7706echo "${ECHO_T}yes" >&6
7707 else
7708 echo "$as_me:$LINENO: result: no" >&5
7709echo "${ECHO_T}no" >&6
7710 fi
7711
7712
92bbdbcd
WS
7713 enablestring=
7714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7715echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7716 no_cache=0
7717 # Check whether --enable-choicebook or --disable-choicebook was given.
7718if test "${enable_choicebook+set}" = set; then
7719 enableval="$enable_choicebook"
7720
7721 if test "$enableval" = yes; then
7722 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7723 else
7724 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7725 fi
7726
7727else
7728
7729 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7730 if test "x$LINE" != x ; then
7731 eval "DEFAULT_$LINE"
7732 else
7733 no_cache=1
7734 fi
7735
7736 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7737
7738fi;
7739
7740 eval "$ac_cv_use_choicebook"
7741 if test "$no_cache" != 1; then
7742 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7743 fi
7744
7745 if test "$wxUSE_CHOICEBOOK" = yes; then
7746 echo "$as_me:$LINENO: result: yes" >&5
7747echo "${ECHO_T}yes" >&6
7748 else
7749 echo "$as_me:$LINENO: result: no" >&5
7750echo "${ECHO_T}no" >&6
7751 fi
7752
7753
a848cd7e
SC
7754 enablestring=
7755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7756echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7757 no_cache=0
7758 # Check whether --enable-combobox or --disable-combobox was given.
7759if test "${enable_combobox+set}" = set; then
7760 enableval="$enable_combobox"
7761
7762 if test "$enableval" = yes; then
7763 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7764 else
7765 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7766 fi
7767
7768else
7769
7770 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7771 if test "x$LINE" != x ; then
7772 eval "DEFAULT_$LINE"
7773 else
7774 no_cache=1
7775 fi
7776
7777 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7778
7779fi;
7780
7781 eval "$ac_cv_use_combobox"
7782 if test "$no_cache" != 1; then
7783 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7784 fi
7785
7786 if test "$wxUSE_COMBOBOX" = yes; then
7787 echo "$as_me:$LINENO: result: yes" >&5
7788echo "${ECHO_T}yes" >&6
7789 else
7790 echo "$as_me:$LINENO: result: no" >&5
7791echo "${ECHO_T}no" >&6
7792 fi
7793
7794
da98e9be
VZ
7795 enablestring=
7796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7797echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7798 no_cache=0
7799 # Check whether --enable-datepick or --disable-datepick was given.
7800if test "${enable_datepick+set}" = set; then
7801 enableval="$enable_datepick"
7802
7803 if test "$enableval" = yes; then
7804 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7805 else
7806 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7807 fi
7808
7809else
7810
7811 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7812 if test "x$LINE" != x ; then
7813 eval "DEFAULT_$LINE"
7814 else
7815 no_cache=1
7816 fi
7817
7818 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7819
7820fi;
7821
7822 eval "$ac_cv_use_datepick"
7823 if test "$no_cache" != 1; then
7824 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7825 fi
7826
7827 if test "$wxUSE_DATEPICKCTRL" = yes; then
7828 echo "$as_me:$LINENO: result: yes" >&5
7829echo "${ECHO_T}yes" >&6
7830 else
7831 echo "$as_me:$LINENO: result: no" >&5
7832echo "${ECHO_T}no" >&6
7833 fi
7834
7835
a848cd7e
SC
7836 enablestring=
7837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7838echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7839 no_cache=0
7840 # Check whether --enable-display or --disable-display was given.
7841if test "${enable_display+set}" = set; then
7842 enableval="$enable_display"
7843
7844 if test "$enableval" = yes; then
7845 ac_cv_use_display='wxUSE_DISPLAY=yes'
7846 else
7847 ac_cv_use_display='wxUSE_DISPLAY=no'
7848 fi
7849
7850else
7851
7852 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7853 if test "x$LINE" != x ; then
7854 eval "DEFAULT_$LINE"
7855 else
7856 no_cache=1
7857 fi
7858
7859 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7860
7861fi;
7862
7863 eval "$ac_cv_use_display"
7864 if test "$no_cache" != 1; then
7865 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7866 fi
7867
7868 if test "$wxUSE_DISPLAY" = yes; then
7869 echo "$as_me:$LINENO: result: yes" >&5
7870echo "${ECHO_T}yes" >&6
7871 else
7872 echo "$as_me:$LINENO: result: no" >&5
7873echo "${ECHO_T}no" >&6
7874 fi
7875
7876
7877 enablestring=
7878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7879echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7880 no_cache=0
7881 # Check whether --enable-gauge or --disable-gauge was given.
7882if test "${enable_gauge+set}" = set; then
7883 enableval="$enable_gauge"
7884
7885 if test "$enableval" = yes; then
7886 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7887 else
7888 ac_cv_use_gauge='wxUSE_GAUGE=no'
7889 fi
7890
7891else
7892
7893 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7894 if test "x$LINE" != x ; then
7895 eval "DEFAULT_$LINE"
7896 else
7897 no_cache=1
7898 fi
7899
7900 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7901
7902fi;
7903
7904 eval "$ac_cv_use_gauge"
7905 if test "$no_cache" != 1; then
7906 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7907 fi
7908
7909 if test "$wxUSE_GAUGE" = yes; then
7910 echo "$as_me:$LINENO: result: yes" >&5
7911echo "${ECHO_T}yes" >&6
7912 else
7913 echo "$as_me:$LINENO: result: no" >&5
7914echo "${ECHO_T}no" >&6
7915 fi
7916
7917
7918 enablestring=
7919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7920echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7921 no_cache=0
7922 # Check whether --enable-grid or --disable-grid was given.
7923if test "${enable_grid+set}" = set; then
7924 enableval="$enable_grid"
7925
7926 if test "$enableval" = yes; then
7927 ac_cv_use_grid='wxUSE_GRID=yes'
7928 else
7929 ac_cv_use_grid='wxUSE_GRID=no'
7930 fi
7931
7932else
7933
7934 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7935 if test "x$LINE" != x ; then
7936 eval "DEFAULT_$LINE"
7937 else
7938 no_cache=1
7939 fi
7940
7941 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7942
7943fi;
7944
7945 eval "$ac_cv_use_grid"
7946 if test "$no_cache" != 1; then
7947 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7948 fi
7949
7950 if test "$wxUSE_GRID" = yes; then
7951 echo "$as_me:$LINENO: result: yes" >&5
7952echo "${ECHO_T}yes" >&6
7953 else
7954 echo "$as_me:$LINENO: result: no" >&5
7955echo "${ECHO_T}no" >&6
7956 fi
7957
7958
7959 enablestring=
7960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7961echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7962 no_cache=0
7963 # Check whether --enable-imaglist or --disable-imaglist was given.
7964if test "${enable_imaglist+set}" = set; then
7965 enableval="$enable_imaglist"
7966
7967 if test "$enableval" = yes; then
7968 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7969 else
7970 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7971 fi
7972
7973else
7974
7975 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7976 if test "x$LINE" != x ; then
7977 eval "DEFAULT_$LINE"
7978 else
7979 no_cache=1
7980 fi
7981
7982 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7983
7984fi;
7985
7986 eval "$ac_cv_use_imaglist"
7987 if test "$no_cache" != 1; then
7988 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7989 fi
7990
7991 if test "$wxUSE_IMAGLIST" = yes; then
7992 echo "$as_me:$LINENO: result: yes" >&5
7993echo "${ECHO_T}yes" >&6
7994 else
7995 echo "$as_me:$LINENO: result: no" >&5
7996echo "${ECHO_T}no" >&6
7997 fi
7998
7999
8000 enablestring=
8001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8002echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8003 no_cache=0
8004 # Check whether --enable-listbook or --disable-listbook was given.
8005if test "${enable_listbook+set}" = set; then
8006 enableval="$enable_listbook"
8007
8008 if test "$enableval" = yes; then
8009 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8010 else
8011 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8012 fi
8013
8014else
8015
8016 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8017 if test "x$LINE" != x ; then
8018 eval "DEFAULT_$LINE"
8019 else
8020 no_cache=1
8021 fi
8022
8023 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8024
8025fi;
8026
8027 eval "$ac_cv_use_listbook"
8028 if test "$no_cache" != 1; then
8029 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8030 fi
8031
8032 if test "$wxUSE_LISTBOOK" = yes; then
8033 echo "$as_me:$LINENO: result: yes" >&5
8034echo "${ECHO_T}yes" >&6
8035 else
8036 echo "$as_me:$LINENO: result: no" >&5
8037echo "${ECHO_T}no" >&6
8038 fi
8039
8040
8041 enablestring=
8042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8043echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8044 no_cache=0
8045 # Check whether --enable-listbox or --disable-listbox was given.
8046if test "${enable_listbox+set}" = set; then
8047 enableval="$enable_listbox"
8048
8049 if test "$enableval" = yes; then
8050 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8051 else
8052 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8053 fi
8054
8055else
8056
8057 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8058 if test "x$LINE" != x ; then
8059 eval "DEFAULT_$LINE"
8060 else
8061 no_cache=1
8062 fi
8063
8064 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8065
8066fi;
8067
8068 eval "$ac_cv_use_listbox"
8069 if test "$no_cache" != 1; then
8070 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8071 fi
8072
8073 if test "$wxUSE_LISTBOX" = yes; then
8074 echo "$as_me:$LINENO: result: yes" >&5
8075echo "${ECHO_T}yes" >&6
8076 else
8077 echo "$as_me:$LINENO: result: no" >&5
8078echo "${ECHO_T}no" >&6
8079 fi
8080
8081
8082 enablestring=
8083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8084echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8085 no_cache=0
8086 # Check whether --enable-listctrl or --disable-listctrl was given.
8087if test "${enable_listctrl+set}" = set; then
8088 enableval="$enable_listctrl"
8089
8090 if test "$enableval" = yes; then
8091 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8092 else
8093 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8094 fi
8095
8096else
8097
8098 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8099 if test "x$LINE" != x ; then
8100 eval "DEFAULT_$LINE"
8101 else
8102 no_cache=1
8103 fi
8104
8105 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8106
8107fi;
8108
8109 eval "$ac_cv_use_listctrl"
8110 if test "$no_cache" != 1; then
8111 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8112 fi
8113
8114 if test "$wxUSE_LISTCTRL" = yes; then
8115 echo "$as_me:$LINENO: result: yes" >&5
8116echo "${ECHO_T}yes" >&6
8117 else
8118 echo "$as_me:$LINENO: result: no" >&5
8119echo "${ECHO_T}no" >&6
8120 fi
8121
8122
8123 enablestring=
8124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8125echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8126 no_cache=0
8127 # Check whether --enable-notebook or --disable-notebook was given.
8128if test "${enable_notebook+set}" = set; then
8129 enableval="$enable_notebook"
8130
8131 if test "$enableval" = yes; then
8132 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8133 else
8134 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8135 fi
8136
8137else
8138
8139 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8140 if test "x$LINE" != x ; then
8141 eval "DEFAULT_$LINE"
8142 else
8143 no_cache=1
8144 fi
8145
8146 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8147
8148fi;
8149
8150 eval "$ac_cv_use_notebook"
8151 if test "$no_cache" != 1; then
8152 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8153 fi
8154
8155 if test "$wxUSE_NOTEBOOK" = yes; then
8156 echo "$as_me:$LINENO: result: yes" >&5
8157echo "${ECHO_T}yes" >&6
8158 else
8159 echo "$as_me:$LINENO: result: no" >&5
8160echo "${ECHO_T}no" >&6
8161 fi
8162
8163
8164 enablestring=
8165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8166echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8167 no_cache=0
8168 # Check whether --enable-radiobox or --disable-radiobox was given.
8169if test "${enable_radiobox+set}" = set; then
8170 enableval="$enable_radiobox"
8171
8172 if test "$enableval" = yes; then
8173 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8174 else
8175 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8176 fi
8177
8178else
8179
8180 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8181 if test "x$LINE" != x ; then
8182 eval "DEFAULT_$LINE"
8183 else
8184 no_cache=1
8185 fi
8186
8187 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8188
8189fi;
8190
8191 eval "$ac_cv_use_radiobox"
8192 if test "$no_cache" != 1; then
8193 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8194 fi
8195
8196 if test "$wxUSE_RADIOBOX" = yes; then
8197 echo "$as_me:$LINENO: result: yes" >&5
8198echo "${ECHO_T}yes" >&6
8199 else
8200 echo "$as_me:$LINENO: result: no" >&5
8201echo "${ECHO_T}no" >&6
8202 fi
8203
8204
8205 enablestring=
8206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8207echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8208 no_cache=0
8209 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8210if test "${enable_radiobtn+set}" = set; then
8211 enableval="$enable_radiobtn"
8212
8213 if test "$enableval" = yes; then
8214 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8215 else
8216 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8217 fi
8218
8219else
8220
8221 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8222 if test "x$LINE" != x ; then
8223 eval "DEFAULT_$LINE"
8224 else
8225 no_cache=1
8226 fi
8227
8228 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8229
8230fi;
8231
8232 eval "$ac_cv_use_radiobtn"
8233 if test "$no_cache" != 1; then
8234 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8235 fi
8236
8237 if test "$wxUSE_RADIOBTN" = yes; then
8238 echo "$as_me:$LINENO: result: yes" >&5
8239echo "${ECHO_T}yes" >&6
8240 else
8241 echo "$as_me:$LINENO: result: no" >&5
8242echo "${ECHO_T}no" >&6
8243 fi
8244
8245
8246 enablestring=
8247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8248echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8249 no_cache=0
8250 # Check whether --enable-sash or --disable-sash was given.
8251if test "${enable_sash+set}" = set; then
8252 enableval="$enable_sash"
8253
8254 if test "$enableval" = yes; then
8255 ac_cv_use_sash='wxUSE_SASH=yes'
8256 else
8257 ac_cv_use_sash='wxUSE_SASH=no'
8258 fi
8259
8260else
8261
8262 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8263 if test "x$LINE" != x ; then
8264 eval "DEFAULT_$LINE"
8265 else
8266 no_cache=1
8267 fi
8268
8269 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8270
8271fi;
8272
8273 eval "$ac_cv_use_sash"
8274 if test "$no_cache" != 1; then
8275 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8276 fi
8277
8278 if test "$wxUSE_SASH" = yes; then
8279 echo "$as_me:$LINENO: result: yes" >&5
8280echo "${ECHO_T}yes" >&6
8281 else
8282 echo "$as_me:$LINENO: result: no" >&5
8283echo "${ECHO_T}no" >&6
8284 fi
8285
8286
8287 enablestring=
8288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8289echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8290 no_cache=0
8291 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8292if test "${enable_scrollbar+set}" = set; then
8293 enableval="$enable_scrollbar"
8294
8295 if test "$enableval" = yes; then
8296 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8297 else
8298 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8299 fi
8300
8301else
8302
8303 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8304 if test "x$LINE" != x ; then
8305 eval "DEFAULT_$LINE"
8306 else
8307 no_cache=1
8308 fi
8309
8310 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8311
8312fi;
8313
8314 eval "$ac_cv_use_scrollbar"
8315 if test "$no_cache" != 1; then
8316 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8317 fi
8318
8319 if test "$wxUSE_SCROLLBAR" = yes; then
8320 echo "$as_me:$LINENO: result: yes" >&5
8321echo "${ECHO_T}yes" >&6
8322 else
8323 echo "$as_me:$LINENO: result: no" >&5
8324echo "${ECHO_T}no" >&6
8325 fi
8326
8327
8328 enablestring=
8329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8330echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8331 no_cache=0
8332 # Check whether --enable-slider or --disable-slider was given.
8333if test "${enable_slider+set}" = set; then
8334 enableval="$enable_slider"
8335
8336 if test "$enableval" = yes; then
8337 ac_cv_use_slider='wxUSE_SLIDER=yes'
8338 else
8339 ac_cv_use_slider='wxUSE_SLIDER=no'
8340 fi
8341
8342else
8343
8344 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8345 if test "x$LINE" != x ; then
8346 eval "DEFAULT_$LINE"
8347 else
8348 no_cache=1
8349 fi
8350
8351 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8352
8353fi;
8354
8355 eval "$ac_cv_use_slider"
8356 if test "$no_cache" != 1; then
8357 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8358 fi
8359
8360 if test "$wxUSE_SLIDER" = yes; then
8361 echo "$as_me:$LINENO: result: yes" >&5
8362echo "${ECHO_T}yes" >&6
8363 else
8364 echo "$as_me:$LINENO: result: no" >&5
8365echo "${ECHO_T}no" >&6
8366 fi
8367
8368
8369 enablestring=
8370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8371echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8372 no_cache=0
8373 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8374if test "${enable_spinbtn+set}" = set; then
8375 enableval="$enable_spinbtn"
8376
8377 if test "$enableval" = yes; then
8378 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8379 else
8380 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8381 fi
8382
8383else
8384
8385 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8386 if test "x$LINE" != x ; then
8387 eval "DEFAULT_$LINE"
8388 else
8389 no_cache=1
8390 fi
8391
8392 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8393
8394fi;
8395
8396 eval "$ac_cv_use_spinbtn"
8397 if test "$no_cache" != 1; then
8398 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8399 fi
8400
8401 if test "$wxUSE_SPINBTN" = yes; then
8402 echo "$as_me:$LINENO: result: yes" >&5
8403echo "${ECHO_T}yes" >&6
8404 else
8405 echo "$as_me:$LINENO: result: no" >&5
8406echo "${ECHO_T}no" >&6
8407 fi
8408
8409
8410 enablestring=
8411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8412echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8413 no_cache=0
8414 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8415if test "${enable_spinctrl+set}" = set; then
8416 enableval="$enable_spinctrl"
8417
8418 if test "$enableval" = yes; then
8419 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8420 else
8421 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8422 fi
8423
8424else
8425
8426 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8427 if test "x$LINE" != x ; then
8428 eval "DEFAULT_$LINE"
8429 else
8430 no_cache=1
8431 fi
8432
8433 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8434
8435fi;
8436
8437 eval "$ac_cv_use_spinctrl"
8438 if test "$no_cache" != 1; then
8439 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8440 fi
8441
8442 if test "$wxUSE_SPINCTRL" = yes; then
8443 echo "$as_me:$LINENO: result: yes" >&5
8444echo "${ECHO_T}yes" >&6
8445 else
8446 echo "$as_me:$LINENO: result: no" >&5
8447echo "${ECHO_T}no" >&6
8448 fi
8449
8450
8451 enablestring=
8452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8453echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8454 no_cache=0
8455 # Check whether --enable-splitter or --disable-splitter was given.
8456if test "${enable_splitter+set}" = set; then
8457 enableval="$enable_splitter"
8458
8459 if test "$enableval" = yes; then
8460 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8461 else
8462 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8463 fi
8464
8465else
8466
8467 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8468 if test "x$LINE" != x ; then
8469 eval "DEFAULT_$LINE"
8470 else
8471 no_cache=1
8472 fi
8473
8474 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8475
8476fi;
8477
8478 eval "$ac_cv_use_splitter"
8479 if test "$no_cache" != 1; then
8480 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8481 fi
8482
8483 if test "$wxUSE_SPLITTER" = yes; then
8484 echo "$as_me:$LINENO: result: yes" >&5
8485echo "${ECHO_T}yes" >&6
8486 else
8487 echo "$as_me:$LINENO: result: no" >&5
8488echo "${ECHO_T}no" >&6
8489 fi
8490
8491
8492 enablestring=
8493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8494echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8495 no_cache=0
8496 # Check whether --enable-statbmp or --disable-statbmp was given.
8497if test "${enable_statbmp+set}" = set; then
8498 enableval="$enable_statbmp"
8499
8500 if test "$enableval" = yes; then
8501 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8502 else
8503 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8504 fi
8505
8506else
8507
8508 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8509 if test "x$LINE" != x ; then
8510 eval "DEFAULT_$LINE"
8511 else
8512 no_cache=1
8513 fi
8514
8515 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8516
8517fi;
8518
8519 eval "$ac_cv_use_statbmp"
8520 if test "$no_cache" != 1; then
8521 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8522 fi
8523
8524 if test "$wxUSE_STATBMP" = yes; then
8525 echo "$as_me:$LINENO: result: yes" >&5
8526echo "${ECHO_T}yes" >&6
8527 else
8528 echo "$as_me:$LINENO: result: no" >&5
8529echo "${ECHO_T}no" >&6
8530 fi
8531
8532
8533 enablestring=
8534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8535echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8536 no_cache=0
8537 # Check whether --enable-statbox or --disable-statbox was given.
8538if test "${enable_statbox+set}" = set; then
8539 enableval="$enable_statbox"
8540
8541 if test "$enableval" = yes; then
8542 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8543 else
8544 ac_cv_use_statbox='wxUSE_STATBOX=no'
8545 fi
8546
8547else
8548
8549 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8550 if test "x$LINE" != x ; then
8551 eval "DEFAULT_$LINE"
8552 else
8553 no_cache=1
8554 fi
8555
8556 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8557
8558fi;
8559
8560 eval "$ac_cv_use_statbox"
8561 if test "$no_cache" != 1; then
8562 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8563 fi
8564
8565 if test "$wxUSE_STATBOX" = yes; then
8566 echo "$as_me:$LINENO: result: yes" >&5
8567echo "${ECHO_T}yes" >&6
8568 else
8569 echo "$as_me:$LINENO: result: no" >&5
8570echo "${ECHO_T}no" >&6
8571 fi
8572
8573
8574 enablestring=
8575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8576echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8577 no_cache=0
8578 # Check whether --enable-statline or --disable-statline was given.
8579if test "${enable_statline+set}" = set; then
8580 enableval="$enable_statline"
8581
8582 if test "$enableval" = yes; then
8583 ac_cv_use_statline='wxUSE_STATLINE=yes'
8584 else
8585 ac_cv_use_statline='wxUSE_STATLINE=no'
8586 fi
8587
8588else
8589
8590 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8591 if test "x$LINE" != x ; then
8592 eval "DEFAULT_$LINE"
8593 else
8594 no_cache=1
8595 fi
8596
8597 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8598
8599fi;
8600
8601 eval "$ac_cv_use_statline"
8602 if test "$no_cache" != 1; then
8603 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8604 fi
8605
8606 if test "$wxUSE_STATLINE" = yes; then
8607 echo "$as_me:$LINENO: result: yes" >&5
8608echo "${ECHO_T}yes" >&6
8609 else
8610 echo "$as_me:$LINENO: result: no" >&5
8611echo "${ECHO_T}no" >&6
8612 fi
8613
8614
8615 enablestring=
8616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8617echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8618 no_cache=0
8619 # Check whether --enable-stattext or --disable-stattext was given.
8620if test "${enable_stattext+set}" = set; then
8621 enableval="$enable_stattext"
8622
8623 if test "$enableval" = yes; then
8624 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8625 else
8626 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8627 fi
8628
8629else
8630
8631 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8632 if test "x$LINE" != x ; then
8633 eval "DEFAULT_$LINE"
8634 else
8635 no_cache=1
8636 fi
8637
8638 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8639
8640fi;
8641
8642 eval "$ac_cv_use_stattext"
8643 if test "$no_cache" != 1; then
8644 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8645 fi
8646
8647 if test "$wxUSE_STATTEXT" = yes; then
8648 echo "$as_me:$LINENO: result: yes" >&5
8649echo "${ECHO_T}yes" >&6
8650 else
8651 echo "$as_me:$LINENO: result: no" >&5
8652echo "${ECHO_T}no" >&6
8653 fi
8654
8655
8656 enablestring=
8657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8658echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8659 no_cache=0
8660 # Check whether --enable-statusbar or --disable-statusbar was given.
8661if test "${enable_statusbar+set}" = set; then
8662 enableval="$enable_statusbar"
8663
8664 if test "$enableval" = yes; then
8665 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8666 else
8667 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8668 fi
8669
8670else
8671
8672 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8673 if test "x$LINE" != x ; then
8674 eval "DEFAULT_$LINE"
8675 else
8676 no_cache=1
8677 fi
8678
8679 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8680
8681fi;
8682
8683 eval "$ac_cv_use_statusbar"
8684 if test "$no_cache" != 1; then
8685 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8686 fi
8687
8688 if test "$wxUSE_STATUSBAR" = yes; then
8689 echo "$as_me:$LINENO: result: yes" >&5
8690echo "${ECHO_T}yes" >&6
8691 else
8692 echo "$as_me:$LINENO: result: no" >&5
8693echo "${ECHO_T}no" >&6
8694 fi
8695
8696
8697 enablestring=
8698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8699echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8700 no_cache=0
8701 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8702if test "${enable_tabdialog+set}" = set; then
8703 enableval="$enable_tabdialog"
8704
8705 if test "$enableval" = yes; then
8706 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8707 else
8708 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8709 fi
8710
8711else
8712
8713 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8714 if test "x$LINE" != x ; then
8715 eval "DEFAULT_$LINE"
8716 else
8717 no_cache=1
8718 fi
8719
8720 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8721
8722fi;
8723
8724 eval "$ac_cv_use_tabdialog"
8725 if test "$no_cache" != 1; then
8726 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8727 fi
8728
8729 if test "$wxUSE_TABDIALOG" = yes; then
8730 echo "$as_me:$LINENO: result: yes" >&5
8731echo "${ECHO_T}yes" >&6
8732 else
8733 echo "$as_me:$LINENO: result: no" >&5
8734echo "${ECHO_T}no" >&6
8735 fi
8736
8737
8738 enablestring=
8739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8740echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8741 no_cache=0
8742 # Check whether --enable-textctrl or --disable-textctrl was given.
8743if test "${enable_textctrl+set}" = set; then
8744 enableval="$enable_textctrl"
8745
8746 if test "$enableval" = yes; then
8747 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8748 else
8749 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8750 fi
8751
8752else
8753
8754 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8755 if test "x$LINE" != x ; then
8756 eval "DEFAULT_$LINE"
8757 else
8758 no_cache=1
8759 fi
8760
8761 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8762
8763fi;
8764
8765 eval "$ac_cv_use_textctrl"
8766 if test "$no_cache" != 1; then
8767 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8768 fi
8769
8770 if test "$wxUSE_TEXTCTRL" = yes; then
8771 echo "$as_me:$LINENO: result: yes" >&5
8772echo "${ECHO_T}yes" >&6
8773 else
8774 echo "$as_me:$LINENO: result: no" >&5
8775echo "${ECHO_T}no" >&6
8776 fi
8777
8778
8779 enablestring=
8780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8781echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8782 no_cache=0
8783 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8784if test "${enable_togglebtn+set}" = set; then
8785 enableval="$enable_togglebtn"
8786
8787 if test "$enableval" = yes; then
8788 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8789 else
8790 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8791 fi
8792
8793else
8794
8795 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8796 if test "x$LINE" != x ; then
8797 eval "DEFAULT_$LINE"
8798 else
8799 no_cache=1
8800 fi
8801
8802 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8803
8804fi;
8805
8806 eval "$ac_cv_use_togglebtn"
8807 if test "$no_cache" != 1; then
8808 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8809 fi
8810
8811 if test "$wxUSE_TOGGLEBTN" = yes; then
8812 echo "$as_me:$LINENO: result: yes" >&5
8813echo "${ECHO_T}yes" >&6
8814 else
8815 echo "$as_me:$LINENO: result: no" >&5
8816echo "${ECHO_T}no" >&6
8817 fi
8818
8819
8820 enablestring=
8821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8822echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8823 no_cache=0
8824 # Check whether --enable-toolbar or --disable-toolbar was given.
8825if test "${enable_toolbar+set}" = set; then
8826 enableval="$enable_toolbar"
8827
8828 if test "$enableval" = yes; then
8829 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8830 else
8831 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8832 fi
8833
8834else
8835
8836 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8837 if test "x$LINE" != x ; then
8838 eval "DEFAULT_$LINE"
8839 else
8840 no_cache=1
8841 fi
8842
8843 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8844
8845fi;
8846
8847 eval "$ac_cv_use_toolbar"
8848 if test "$no_cache" != 1; then
8849 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8850 fi
8851
8852 if test "$wxUSE_TOOLBAR" = yes; then
8853 echo "$as_me:$LINENO: result: yes" >&5
8854echo "${ECHO_T}yes" >&6
8855 else
8856 echo "$as_me:$LINENO: result: no" >&5
8857echo "${ECHO_T}no" >&6
8858 fi
8859
8860
8861 enablestring=
8862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8863echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8864 no_cache=0
8865 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8866if test "${enable_tbarnative+set}" = set; then
8867 enableval="$enable_tbarnative"
8868
8869 if test "$enableval" = yes; then
8870 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8871 else
8872 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8873 fi
8874
8875else
8876
8877 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8878 if test "x$LINE" != x ; then
8879 eval "DEFAULT_$LINE"
8880 else
8881 no_cache=1
8882 fi
8883
8884 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8885
8886fi;
8887
8888 eval "$ac_cv_use_tbarnative"
8889 if test "$no_cache" != 1; then
8890 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8891 fi
8892
8893 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8894 echo "$as_me:$LINENO: result: yes" >&5
8895echo "${ECHO_T}yes" >&6
8896 else
8897 echo "$as_me:$LINENO: result: no" >&5
8898echo "${ECHO_T}no" >&6
8899 fi
8900
8901
8902 enablestring=
8903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8904echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8905 no_cache=0
8906 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8907if test "${enable_tbarsmpl+set}" = set; then
8908 enableval="$enable_tbarsmpl"
8909
8910 if test "$enableval" = yes; then
8911 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8912 else
8913 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8914 fi
8915
8916else
8917
8918 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8919 if test "x$LINE" != x ; then
8920 eval "DEFAULT_$LINE"
8921 else
8922 no_cache=1
8923 fi
8924
8925 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8926
8927fi;
8928
8929 eval "$ac_cv_use_tbarsmpl"
8930 if test "$no_cache" != 1; then
8931 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8932 fi
8933
8934 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8935 echo "$as_me:$LINENO: result: yes" >&5
8936echo "${ECHO_T}yes" >&6
8937 else
8938 echo "$as_me:$LINENO: result: no" >&5
8939echo "${ECHO_T}no" >&6
8940 fi
8941
8942
8943 enablestring=
8944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8945echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8946 no_cache=0
8947 # Check whether --enable-treectrl or --disable-treectrl was given.
8948if test "${enable_treectrl+set}" = set; then
8949 enableval="$enable_treectrl"
8950
8951 if test "$enableval" = yes; then
8952 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8953 else
8954 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8955 fi
8956
8957else
8958
8959 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8960 if test "x$LINE" != x ; then
8961 eval "DEFAULT_$LINE"
8962 else
8963 no_cache=1
8964 fi
8965
8966 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8967
8968fi;
8969
8970 eval "$ac_cv_use_treectrl"
8971 if test "$no_cache" != 1; then
8972 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8973 fi
8974
8975 if test "$wxUSE_TREECTRL" = yes; then
8976 echo "$as_me:$LINENO: result: yes" >&5
8977echo "${ECHO_T}yes" >&6
8978 else
8979 echo "$as_me:$LINENO: result: no" >&5
8980echo "${ECHO_T}no" >&6
8981 fi
8982
8983
8984 enablestring=
8985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8986echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8987 no_cache=0
8988 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8989if test "${enable_tipwindow+set}" = set; then
8990 enableval="$enable_tipwindow"
8991
8992 if test "$enableval" = yes; then
8993 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8994 else
8995 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8996 fi
8997
8998else
8999
9000 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9001 if test "x$LINE" != x ; then
9002 eval "DEFAULT_$LINE"
9003 else
9004 no_cache=1
9005 fi
9006
9007 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9008
9009fi;
9010
9011 eval "$ac_cv_use_tipwindow"
9012 if test "$no_cache" != 1; then
9013 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9014 fi
9015
9016 if test "$wxUSE_TIPWINDOW" = yes; then
9017 echo "$as_me:$LINENO: result: yes" >&5
9018echo "${ECHO_T}yes" >&6
9019 else
9020 echo "$as_me:$LINENO: result: no" >&5
9021echo "${ECHO_T}no" >&6
9022 fi
9023
9024
9025 enablestring=
9026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9027echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9028 no_cache=0
9029 # Check whether --enable-popupwin or --disable-popupwin was given.
9030if test "${enable_popupwin+set}" = set; then
9031 enableval="$enable_popupwin"
9032
9033 if test "$enableval" = yes; then
9034 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9035 else
9036 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9037 fi
9038
9039else
9040
9041 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9042 if test "x$LINE" != x ; then
9043 eval "DEFAULT_$LINE"
9044 else
9045 no_cache=1
9046 fi
9047
9048 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9049
9050fi;
9051
9052 eval "$ac_cv_use_popupwin"
9053 if test "$no_cache" != 1; then
9054 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9055 fi
9056
9057 if test "$wxUSE_POPUPWIN" = yes; then
9058 echo "$as_me:$LINENO: result: yes" >&5
9059echo "${ECHO_T}yes" >&6
9060 else
9061 echo "$as_me:$LINENO: result: no" >&5
9062echo "${ECHO_T}no" >&6
9063 fi
9064
9065
9066
9067
9068 enablestring=
9069 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9070echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9071 no_cache=0
9072 # Check whether --enable-commondlg or --disable-commondlg was given.
9073if test "${enable_commondlg+set}" = set; then
9074 enableval="$enable_commondlg"
9075
9076 if test "$enableval" = yes; then
9077 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9078 else
9079 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9080 fi
9081
9082else
9083
9084 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9085 if test "x$LINE" != x ; then
9086 eval "DEFAULT_$LINE"
9087 else
9088 no_cache=1
9089 fi
9090
9091 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9092
9093fi;
9094
9095 eval "$ac_cv_use_commondlg"
9096 if test "$no_cache" != 1; then
9097 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9098 fi
9099
9100 if test "$wxUSE_COMMONDLGS" = yes; then
9101 echo "$as_me:$LINENO: result: yes" >&5
9102echo "${ECHO_T}yes" >&6
9103 else
9104 echo "$as_me:$LINENO: result: no" >&5
9105echo "${ECHO_T}no" >&6
9106 fi
9107
9108
9109 enablestring=
9110 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9111echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9112 no_cache=0
9113 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9114if test "${enable_choicedlg+set}" = set; then
9115 enableval="$enable_choicedlg"
9116
9117 if test "$enableval" = yes; then
9118 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9119 else
9120 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9121 fi
9122
9123else
9124
9125 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9126 if test "x$LINE" != x ; then
9127 eval "DEFAULT_$LINE"
9128 else
9129 no_cache=1
9130 fi
9131
9132 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9133
9134fi;
9135
9136 eval "$ac_cv_use_choicedlg"
9137 if test "$no_cache" != 1; then
9138 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9139 fi
9140
9141 if test "$wxUSE_CHOICEDLG" = yes; then
9142 echo "$as_me:$LINENO: result: yes" >&5
9143echo "${ECHO_T}yes" >&6
9144 else
9145 echo "$as_me:$LINENO: result: no" >&5
9146echo "${ECHO_T}no" >&6
9147 fi
9148
9149
9150 enablestring=
9151 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9152echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9153 no_cache=0
9154 # Check whether --enable-coldlg or --disable-coldlg was given.
9155if test "${enable_coldlg+set}" = set; then
9156 enableval="$enable_coldlg"
9157
9158 if test "$enableval" = yes; then
9159 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9160 else
9161 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9162 fi
9163
9164else
9165
9166 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9167 if test "x$LINE" != x ; then
9168 eval "DEFAULT_$LINE"
9169 else
9170 no_cache=1
9171 fi
9172
9173 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9174
9175fi;
9176
9177 eval "$ac_cv_use_coldlg"
9178 if test "$no_cache" != 1; then
9179 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9180 fi
9181
9182 if test "$wxUSE_COLOURDLG" = yes; then
9183 echo "$as_me:$LINENO: result: yes" >&5
9184echo "${ECHO_T}yes" >&6
9185 else
9186 echo "$as_me:$LINENO: result: no" >&5
9187echo "${ECHO_T}no" >&6
9188 fi
9189
9190
9191 enablestring=
9192 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9193echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9194 no_cache=0
9195 # Check whether --enable-filedlg or --disable-filedlg was given.
9196if test "${enable_filedlg+set}" = set; then
9197 enableval="$enable_filedlg"
9198
9199 if test "$enableval" = yes; then
9200 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9201 else
9202 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9203 fi
9204
9205else
9206
9207 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9208 if test "x$LINE" != x ; then
9209 eval "DEFAULT_$LINE"
9210 else
9211 no_cache=1
9212 fi
9213
9214 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9215
9216fi;
9217
9218 eval "$ac_cv_use_filedlg"
9219 if test "$no_cache" != 1; then
9220 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9221 fi
9222
9223 if test "$wxUSE_FILEDLG" = yes; then
9224 echo "$as_me:$LINENO: result: yes" >&5
9225echo "${ECHO_T}yes" >&6
9226 else
9227 echo "$as_me:$LINENO: result: no" >&5
9228echo "${ECHO_T}no" >&6
9229 fi
9230
9231
9232 enablestring=
9233 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9234echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9235 no_cache=0
9236 # Check whether --enable-finddlg or --disable-finddlg was given.
9237if test "${enable_finddlg+set}" = set; then
9238 enableval="$enable_finddlg"
9239
9240 if test "$enableval" = yes; then
9241 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9242 else
9243 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9244 fi
9245
9246else
9247
9248 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9249 if test "x$LINE" != x ; then
9250 eval "DEFAULT_$LINE"
9251 else
9252 no_cache=1
9253 fi
9254
9255 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9256
9257fi;
9258
9259 eval "$ac_cv_use_finddlg"
9260 if test "$no_cache" != 1; then
9261 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9262 fi
9263
9264 if test "$wxUSE_FINDREPLDLG" = yes; then
9265 echo "$as_me:$LINENO: result: yes" >&5
9266echo "${ECHO_T}yes" >&6
9267 else
9268 echo "$as_me:$LINENO: result: no" >&5
9269echo "${ECHO_T}no" >&6
9270 fi
9271
9272
9273 enablestring=
9274 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9275echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9276 no_cache=0
9277 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9278if test "${enable_fontdlg+set}" = set; then
9279 enableval="$enable_fontdlg"
9280
9281 if test "$enableval" = yes; then
9282 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9283 else
9284 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9285 fi
9286
9287else
9288
9289 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9290 if test "x$LINE" != x ; then
9291 eval "DEFAULT_$LINE"
9292 else
9293 no_cache=1
9294 fi
9295
9296 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9297
9298fi;
9299
9300 eval "$ac_cv_use_fontdlg"
9301 if test "$no_cache" != 1; then
9302 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9303 fi
9304
9305 if test "$wxUSE_FONTDLG" = yes; then
9306 echo "$as_me:$LINENO: result: yes" >&5
9307echo "${ECHO_T}yes" >&6
9308 else
9309 echo "$as_me:$LINENO: result: no" >&5
9310echo "${ECHO_T}no" >&6
9311 fi
9312
9313
9314 enablestring=
9315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9316echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9317 no_cache=0
9318 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9319if test "${enable_dirdlg+set}" = set; then
9320 enableval="$enable_dirdlg"
9321
9322 if test "$enableval" = yes; then
9323 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9324 else
9325 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9326 fi
9327
9328else
9329
9330 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9331 if test "x$LINE" != x ; then
9332 eval "DEFAULT_$LINE"
9333 else
9334 no_cache=1
9335 fi
9336
9337 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9338
9339fi;
9340
9341 eval "$ac_cv_use_dirdlg"
9342 if test "$no_cache" != 1; then
9343 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9344 fi
9345
9346 if test "$wxUSE_DIRDLG" = yes; then
9347 echo "$as_me:$LINENO: result: yes" >&5
9348echo "${ECHO_T}yes" >&6
9349 else
9350 echo "$as_me:$LINENO: result: no" >&5
9351echo "${ECHO_T}no" >&6
9352 fi
9353
9354
9355 enablestring=
9356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9357echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9358 no_cache=0
9359 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9360if test "${enable_msgdlg+set}" = set; then
9361 enableval="$enable_msgdlg"
9362
9363 if test "$enableval" = yes; then
9364 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9365 else
9366 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9367 fi
9368
9369else
9370
9371 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9372 if test "x$LINE" != x ; then
9373 eval "DEFAULT_$LINE"
9374 else
9375 no_cache=1
9376 fi
9377
9378 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9379
9380fi;
9381
9382 eval "$ac_cv_use_msgdlg"
9383 if test "$no_cache" != 1; then
9384 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9385 fi
9386
9387 if test "$wxUSE_MSGDLG" = yes; then
9388 echo "$as_me:$LINENO: result: yes" >&5
9389echo "${ECHO_T}yes" >&6
9390 else
9391 echo "$as_me:$LINENO: result: no" >&5
9392echo "${ECHO_T}no" >&6
9393 fi
9394
9395
9396 enablestring=
9397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9398echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9399 no_cache=0
9400 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9401if test "${enable_numberdlg+set}" = set; then
9402 enableval="$enable_numberdlg"
9403
9404 if test "$enableval" = yes; then
9405 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9406 else
9407 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9408 fi
9409
9410else
9411
9412 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9413 if test "x$LINE" != x ; then
9414 eval "DEFAULT_$LINE"
9415 else
9416 no_cache=1
9417 fi
9418
9419 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9420
9421fi;
9422
9423 eval "$ac_cv_use_numberdlg"
9424 if test "$no_cache" != 1; then
9425 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9426 fi
9427
9428 if test "$wxUSE_NUMBERDLG" = yes; then
9429 echo "$as_me:$LINENO: result: yes" >&5
9430echo "${ECHO_T}yes" >&6
9431 else
9432 echo "$as_me:$LINENO: result: no" >&5
9433echo "${ECHO_T}no" >&6
9434 fi
9435
9436
9437 enablestring=
9438 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9439echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9440 no_cache=0
9441 # Check whether --enable-splash or --disable-splash was given.
9442if test "${enable_splash+set}" = set; then
9443 enableval="$enable_splash"
9444
9445 if test "$enableval" = yes; then
9446 ac_cv_use_splash='wxUSE_SPLASH=yes'
9447 else
9448 ac_cv_use_splash='wxUSE_SPLASH=no'
9449 fi
9450
9451else
9452
9453 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9454 if test "x$LINE" != x ; then
9455 eval "DEFAULT_$LINE"
9456 else
9457 no_cache=1
9458 fi
9459
9460 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9461
9462fi;
9463
9464 eval "$ac_cv_use_splash"
9465 if test "$no_cache" != 1; then
9466 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9467 fi
9468
9469 if test "$wxUSE_SPLASH" = yes; then
9470 echo "$as_me:$LINENO: result: yes" >&5
9471echo "${ECHO_T}yes" >&6
9472 else
9473 echo "$as_me:$LINENO: result: no" >&5
9474echo "${ECHO_T}no" >&6
9475 fi
9476
9477
9478 enablestring=
9479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9480echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9481 no_cache=0
9482 # Check whether --enable-textdlg or --disable-textdlg was given.
9483if test "${enable_textdlg+set}" = set; then
9484 enableval="$enable_textdlg"
9485
9486 if test "$enableval" = yes; then
9487 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9488 else
9489 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9490 fi
9491
9492else
9493
9494 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9495 if test "x$LINE" != x ; then
9496 eval "DEFAULT_$LINE"
9497 else
9498 no_cache=1
9499 fi
9500
9501 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9502
9503fi;
9504
9505 eval "$ac_cv_use_textdlg"
9506 if test "$no_cache" != 1; then
9507 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9508 fi
9509
9510 if test "$wxUSE_TEXTDLG" = yes; then
9511 echo "$as_me:$LINENO: result: yes" >&5
9512echo "${ECHO_T}yes" >&6
9513 else
9514 echo "$as_me:$LINENO: result: no" >&5
9515echo "${ECHO_T}no" >&6
9516 fi
9517
9518
9519 enablestring=
9520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9521echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9522 no_cache=0
9523 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9524if test "${enable_tipdlg+set}" = set; then
9525 enableval="$enable_tipdlg"
9526
9527 if test "$enableval" = yes; then
9528 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9529 else
9530 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9531 fi
9532
9533else
9534
9535 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9536 if test "x$LINE" != x ; then
9537 eval "DEFAULT_$LINE"
9538 else
9539 no_cache=1
9540 fi
9541
9542 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9543
9544fi;
9545
9546 eval "$ac_cv_use_tipdlg"
9547 if test "$no_cache" != 1; then
9548 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9549 fi
9550
9551 if test "$wxUSE_STARTUP_TIPS" = yes; then
9552 echo "$as_me:$LINENO: result: yes" >&5
9553echo "${ECHO_T}yes" >&6
9554 else
9555 echo "$as_me:$LINENO: result: no" >&5
9556echo "${ECHO_T}no" >&6
9557 fi
9558
9559
9560 enablestring=
9561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9562echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9563 no_cache=0
9564 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9565if test "${enable_progressdlg+set}" = set; then
9566 enableval="$enable_progressdlg"
9567
9568 if test "$enableval" = yes; then
9569 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9570 else
9571 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9572 fi
9573
9574else
9575
9576 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9577 if test "x$LINE" != x ; then
9578 eval "DEFAULT_$LINE"
9579 else
9580 no_cache=1
9581 fi
9582
9583 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9584
9585fi;
9586
9587 eval "$ac_cv_use_progressdlg"
9588 if test "$no_cache" != 1; then
9589 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9590 fi
9591
9592 if test "$wxUSE_PROGRESSDLG" = yes; then
9593 echo "$as_me:$LINENO: result: yes" >&5
9594echo "${ECHO_T}yes" >&6
9595 else
9596 echo "$as_me:$LINENO: result: no" >&5
9597echo "${ECHO_T}no" >&6
9598 fi
9599
9600
9601 enablestring=
9602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9603echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9604 no_cache=0
9605 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9606if test "${enable_wizarddlg+set}" = set; then
9607 enableval="$enable_wizarddlg"
9608
9609 if test "$enableval" = yes; then
9610 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9611 else
9612 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9613 fi
9614
9615else
9616
9617 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9618 if test "x$LINE" != x ; then
9619 eval "DEFAULT_$LINE"
9620 else
9621 no_cache=1
9622 fi
9623
9624 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9625
9626fi;
9627
9628 eval "$ac_cv_use_wizarddlg"
9629 if test "$no_cache" != 1; then
9630 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9631 fi
9632
9633 if test "$wxUSE_WIZARDDLG" = yes; then
9634 echo "$as_me:$LINENO: result: yes" >&5
9635echo "${ECHO_T}yes" >&6
9636 else
9637 echo "$as_me:$LINENO: result: no" >&5
9638echo "${ECHO_T}no" >&6
9639 fi
9640
9641
9642
9643
9644 enablestring=
9645 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9646echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9647 no_cache=0
9648 # Check whether --enable-menus or --disable-menus was given.
9649if test "${enable_menus+set}" = set; then
9650 enableval="$enable_menus"
9651
9652 if test "$enableval" = yes; then
9653 ac_cv_use_menus='wxUSE_MENUS=yes'
9654 else
9655 ac_cv_use_menus='wxUSE_MENUS=no'
9656 fi
9657
9658else
9659
9660 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9661 if test "x$LINE" != x ; then
9662 eval "DEFAULT_$LINE"
9663 else
9664 no_cache=1
9665 fi
9666
9667 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9668
9669fi;
9670
9671 eval "$ac_cv_use_menus"
9672 if test "$no_cache" != 1; then
9673 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9674 fi
9675
9676 if test "$wxUSE_MENUS" = yes; then
9677 echo "$as_me:$LINENO: result: yes" >&5
9678echo "${ECHO_T}yes" >&6
9679 else
9680 echo "$as_me:$LINENO: result: no" >&5
9681echo "${ECHO_T}no" >&6
9682 fi
9683
9684
9685 enablestring=
9686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9687echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9688 no_cache=0
9689 # Check whether --enable-miniframe or --disable-miniframe was given.
9690if test "${enable_miniframe+set}" = set; then
9691 enableval="$enable_miniframe"
9692
9693 if test "$enableval" = yes; then
9694 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9695 else
9696 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9697 fi
9698
9699else
9700
9701 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9702 if test "x$LINE" != x ; then
9703 eval "DEFAULT_$LINE"
9704 else
9705 no_cache=1
9706 fi
9707
9708 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9709
9710fi;
9711
9712 eval "$ac_cv_use_miniframe"
9713 if test "$no_cache" != 1; then
9714 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9715 fi
9716
9717 if test "$wxUSE_MINIFRAME" = yes; then
9718 echo "$as_me:$LINENO: result: yes" >&5
9719echo "${ECHO_T}yes" >&6
9720 else
9721 echo "$as_me:$LINENO: result: no" >&5
9722echo "${ECHO_T}no" >&6
9723 fi
9724
9725
9726 enablestring=
9727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9728echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9729 no_cache=0
9730 # Check whether --enable-tooltips or --disable-tooltips was given.
9731if test "${enable_tooltips+set}" = set; then
9732 enableval="$enable_tooltips"
9733
9734 if test "$enableval" = yes; then
9735 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9736 else
9737 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9738 fi
9739
9740else
9741
9742 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9743 if test "x$LINE" != x ; then
9744 eval "DEFAULT_$LINE"
9745 else
9746 no_cache=1
9747 fi
9748
9749 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9750
9751fi;
9752
9753 eval "$ac_cv_use_tooltips"
9754 if test "$no_cache" != 1; then
9755 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9756 fi
9757
9758 if test "$wxUSE_TOOLTIPS" = yes; then
9759 echo "$as_me:$LINENO: result: yes" >&5
9760echo "${ECHO_T}yes" >&6
9761 else
9762 echo "$as_me:$LINENO: result: no" >&5
9763echo "${ECHO_T}no" >&6
9764 fi
9765
9766
9767 enablestring=
9768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9769echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9770 no_cache=0
9771 # Check whether --enable-splines or --disable-splines was given.
9772if test "${enable_splines+set}" = set; then
9773 enableval="$enable_splines"
9774
9775 if test "$enableval" = yes; then
9776 ac_cv_use_splines='wxUSE_SPLINES=yes'
9777 else
9778 ac_cv_use_splines='wxUSE_SPLINES=no'
9779 fi
9780
9781else
9782
9783 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9784 if test "x$LINE" != x ; then
9785 eval "DEFAULT_$LINE"
9786 else
9787 no_cache=1
9788 fi
9789
9790 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9791
9792fi;
9793
9794 eval "$ac_cv_use_splines"
9795 if test "$no_cache" != 1; then
9796 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9797 fi
9798
9799 if test "$wxUSE_SPLINES" = yes; then
9800 echo "$as_me:$LINENO: result: yes" >&5
9801echo "${ECHO_T}yes" >&6
9802 else
9803 echo "$as_me:$LINENO: result: no" >&5
9804echo "${ECHO_T}no" >&6
9805 fi
9806
9807
fbe2ca43
SN
9808 enablestring=
9809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9810echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9811 no_cache=0
9812 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9813if test "${enable_mousewheel+set}" = set; then
9814 enableval="$enable_mousewheel"
9815
9816 if test "$enableval" = yes; then
9817 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9818 else
9819 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9820 fi
9821
9822else
9823
9824 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9825 if test "x$LINE" != x ; then
9826 eval "DEFAULT_$LINE"
9827 else
9828 no_cache=1
9829 fi
9830
9831 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9832
9833fi;
9834
9835 eval "$ac_cv_use_mousewheel"
9836 if test "$no_cache" != 1; then
9837 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9838 fi
9839
9840 if test "$wxUSE_MOUSEWHEEL" = yes; then
9841 echo "$as_me:$LINENO: result: yes" >&5
9842echo "${ECHO_T}yes" >&6
9843 else
9844 echo "$as_me:$LINENO: result: no" >&5
9845echo "${ECHO_T}no" >&6
9846 fi
9847
9848
a848cd7e
SC
9849 enablestring=
9850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9851echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9852 no_cache=0
9853 # Check whether --enable-validators or --disable-validators was given.
9854if test "${enable_validators+set}" = set; then
9855 enableval="$enable_validators"
9856
9857 if test "$enableval" = yes; then
9858 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9859 else
9860 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9861 fi
9862
9863else
9864
9865 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9866 if test "x$LINE" != x ; then
9867 eval "DEFAULT_$LINE"
9868 else
9869 no_cache=1
9870 fi
9871
9872 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9873
9874fi;
9875
9876 eval "$ac_cv_use_validators"
9877 if test "$no_cache" != 1; then
9878 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9879 fi
9880
9881 if test "$wxUSE_VALIDATORS" = yes; then
9882 echo "$as_me:$LINENO: result: yes" >&5
9883echo "${ECHO_T}yes" >&6
9884 else
9885 echo "$as_me:$LINENO: result: no" >&5
9886echo "${ECHO_T}no" >&6
9887 fi
9888
9889
9890 enablestring=
9891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9892echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9893 no_cache=0
9894 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9895if test "${enable_busyinfo+set}" = set; then
9896 enableval="$enable_busyinfo"
9897
9898 if test "$enableval" = yes; then
9899 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9900 else
9901 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9902 fi
9903
9904else
9905
9906 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9907 if test "x$LINE" != x ; then
9908 eval "DEFAULT_$LINE"
9909 else
9910 no_cache=1
9911 fi
9912
9913 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9914
9915fi;
9916
9917 eval "$ac_cv_use_busyinfo"
9918 if test "$no_cache" != 1; then
9919 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9920 fi
9921
9922 if test "$wxUSE_BUSYINFO" = yes; then
9923 echo "$as_me:$LINENO: result: yes" >&5
9924echo "${ECHO_T}yes" >&6
9925 else
9926 echo "$as_me:$LINENO: result: no" >&5
9927echo "${ECHO_T}no" >&6
9928 fi
9929
9930
9931 enablestring=
9932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9933echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9934 no_cache=0
9935 # Check whether --enable-joystick or --disable-joystick was given.
9936if test "${enable_joystick+set}" = set; then
9937 enableval="$enable_joystick"
9938
9939 if test "$enableval" = yes; then
9940 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9941 else
9942 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9943 fi
9944
9945else
9946
9947 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9948 if test "x$LINE" != x ; then
9949 eval "DEFAULT_$LINE"
9950 else
9951 no_cache=1
9952 fi
9953
9954 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9955
9956fi;
9957
9958 eval "$ac_cv_use_joystick"
9959 if test "$no_cache" != 1; then
9960 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9961 fi
9962
9963 if test "$wxUSE_JOYSTICK" = yes; then
9964 echo "$as_me:$LINENO: result: yes" >&5
9965echo "${ECHO_T}yes" >&6
9966 else
9967 echo "$as_me:$LINENO: result: no" >&5
9968echo "${ECHO_T}no" >&6
9969 fi
9970
9971
9972 enablestring=
9973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9974echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9975 no_cache=0
9976 # Check whether --enable-metafile or --disable-metafile was given.
9977if test "${enable_metafile+set}" = set; then
9978 enableval="$enable_metafile"
9979
9980 if test "$enableval" = yes; then
9981 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9982 else
9983 ac_cv_use_metafile='wxUSE_METAFILE=no'
9984 fi
9985
9986else
9987
9988 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9989 if test "x$LINE" != x ; then
9990 eval "DEFAULT_$LINE"
9991 else
9992 no_cache=1
9993 fi
9994
9995 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9996
9997fi;
9998
9999 eval "$ac_cv_use_metafile"
10000 if test "$no_cache" != 1; then
10001 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10002 fi
10003
10004 if test "$wxUSE_METAFILE" = yes; then
10005 echo "$as_me:$LINENO: result: yes" >&5
10006echo "${ECHO_T}yes" >&6
10007 else
10008 echo "$as_me:$LINENO: result: no" >&5
10009echo "${ECHO_T}no" >&6
10010 fi
10011
10012
10013 enablestring=
10014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10015echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10016 no_cache=0
10017 # Check whether --enable-dragimage or --disable-dragimage was given.
10018if test "${enable_dragimage+set}" = set; then
10019 enableval="$enable_dragimage"
10020
10021 if test "$enableval" = yes; then
10022 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10023 else
10024 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10025 fi
10026
10027else
10028
10029 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10030 if test "x$LINE" != x ; then
10031 eval "DEFAULT_$LINE"
10032 else
10033 no_cache=1
10034 fi
10035
10036 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10037
10038fi;
10039
10040 eval "$ac_cv_use_dragimage"
10041 if test "$no_cache" != 1; then
10042 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10043 fi
10044
10045 if test "$wxUSE_DRAGIMAGE" = yes; then
10046 echo "$as_me:$LINENO: result: yes" >&5
10047echo "${ECHO_T}yes" >&6
10048 else
10049 echo "$as_me:$LINENO: result: no" >&5
10050echo "${ECHO_T}no" >&6
10051 fi
10052
10053
10054 enablestring=
10055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10056echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10057 no_cache=0
10058 # Check whether --enable-accessibility or --disable-accessibility was given.
10059if test "${enable_accessibility+set}" = set; then
10060 enableval="$enable_accessibility"
10061
10062 if test "$enableval" = yes; then
10063 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10064 else
10065 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10066 fi
10067
10068else
10069
10070 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10071 if test "x$LINE" != x ; then
10072 eval "DEFAULT_$LINE"
10073 else
10074 no_cache=1
10075 fi
10076
10077 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10078
10079fi;
10080
10081 eval "$ac_cv_use_accessibility"
10082 if test "$no_cache" != 1; then
10083 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10084 fi
10085
10086 if test "$wxUSE_ACCESSIBILITY" = yes; then
10087 echo "$as_me:$LINENO: result: yes" >&5
10088echo "${ECHO_T}yes" >&6
10089 else
10090 echo "$as_me:$LINENO: result: no" >&5
10091echo "${ECHO_T}no" >&6
10092 fi
10093
10094
38b4a946
VZ
10095if test "$wxUSE_MSW" = "1"; then
10096
10097 enablestring=
10098 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10099echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10100 no_cache=0
10101 # Check whether --enable-dccache or --disable-dccache was given.
10102if test "${enable_dccache+set}" = set; then
10103 enableval="$enable_dccache"
10104
10105 if test "$enableval" = yes; then
10106 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10107 else
10108 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10109 fi
10110
10111else
10112
10113 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10114 if test "x$LINE" != x ; then
10115 eval "DEFAULT_$LINE"
10116 else
10117 no_cache=1
10118 fi
10119
10120 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10121
10122fi;
10123
10124 eval "$ac_cv_use_dccache"
10125 if test "$no_cache" != 1; then
10126 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10127 fi
10128
10129 if test "$wxUSE_DC_CACHEING" = yes; then
10130 echo "$as_me:$LINENO: result: yes" >&5
10131echo "${ECHO_T}yes" >&6
10132 else
10133 echo "$as_me:$LINENO: result: no" >&5
10134echo "${ECHO_T}no" >&6
10135 fi
10136
10137fi
10138
a848cd7e
SC
10139
10140
10141 enablestring=
10142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10143echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10144 no_cache=0
10145 # Check whether --enable-palette or --disable-palette was given.
10146if test "${enable_palette+set}" = set; then
10147 enableval="$enable_palette"
10148
10149 if test "$enableval" = yes; then
10150 ac_cv_use_palette='wxUSE_PALETTE=yes'
10151 else
10152 ac_cv_use_palette='wxUSE_PALETTE=no'
10153 fi
10154
10155else
10156
10157 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10158 if test "x$LINE" != x ; then
10159 eval "DEFAULT_$LINE"
10160 else
10161 no_cache=1
10162 fi
10163
10164 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10165
10166fi;
10167
10168 eval "$ac_cv_use_palette"
10169 if test "$no_cache" != 1; then
10170 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10171 fi
10172
10173 if test "$wxUSE_PALETTE" = yes; then
10174 echo "$as_me:$LINENO: result: yes" >&5
10175echo "${ECHO_T}yes" >&6
10176 else
10177 echo "$as_me:$LINENO: result: no" >&5
10178echo "${ECHO_T}no" >&6
10179 fi
10180
10181
10182 enablestring=
10183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10184echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10185 no_cache=0
10186 # Check whether --enable-image or --disable-image was given.
10187if test "${enable_image+set}" = set; then
10188 enableval="$enable_image"
10189
10190 if test "$enableval" = yes; then
10191 ac_cv_use_image='wxUSE_IMAGE=yes'
10192 else
10193 ac_cv_use_image='wxUSE_IMAGE=no'
10194 fi
10195
10196else
10197
10198 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10199 if test "x$LINE" != x ; then
10200 eval "DEFAULT_$LINE"
10201 else
10202 no_cache=1
10203 fi
10204
10205 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10206
10207fi;
10208
10209 eval "$ac_cv_use_image"
10210 if test "$no_cache" != 1; then
10211 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10212 fi
10213
10214 if test "$wxUSE_IMAGE" = yes; then
10215 echo "$as_me:$LINENO: result: yes" >&5
10216echo "${ECHO_T}yes" >&6
10217 else
10218 echo "$as_me:$LINENO: result: no" >&5
10219echo "${ECHO_T}no" >&6
10220 fi
10221
10222
10223 enablestring=
10224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10225echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10226 no_cache=0
10227 # Check whether --enable-gif or --disable-gif was given.
10228if test "${enable_gif+set}" = set; then
10229 enableval="$enable_gif"
10230
10231 if test "$enableval" = yes; then
10232 ac_cv_use_gif='wxUSE_GIF=yes'
10233 else
10234 ac_cv_use_gif='wxUSE_GIF=no'
10235 fi
10236
10237else
10238
10239 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10240 if test "x$LINE" != x ; then
10241 eval "DEFAULT_$LINE"
10242 else
10243 no_cache=1
10244 fi
10245
10246 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10247
10248fi;
10249
10250 eval "$ac_cv_use_gif"
10251 if test "$no_cache" != 1; then
10252 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10253 fi
10254
10255 if test "$wxUSE_GIF" = yes; then
10256 echo "$as_me:$LINENO: result: yes" >&5
10257echo "${ECHO_T}yes" >&6
10258 else
10259 echo "$as_me:$LINENO: result: no" >&5
10260echo "${ECHO_T}no" >&6
10261 fi
10262
10263
10264 enablestring=
10265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10266echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10267 no_cache=0
10268 # Check whether --enable-pcx or --disable-pcx was given.
10269if test "${enable_pcx+set}" = set; then
10270 enableval="$enable_pcx"
10271
10272 if test "$enableval" = yes; then
10273 ac_cv_use_pcx='wxUSE_PCX=yes'
10274 else
10275 ac_cv_use_pcx='wxUSE_PCX=no'
10276 fi
10277
10278else
10279
10280 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10281 if test "x$LINE" != x ; then
10282 eval "DEFAULT_$LINE"
10283 else
10284 no_cache=1
10285 fi
10286
10287 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10288
10289fi;
10290
10291 eval "$ac_cv_use_pcx"
10292 if test "$no_cache" != 1; then
10293 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10294 fi
10295
10296 if test "$wxUSE_PCX" = yes; then
10297 echo "$as_me:$LINENO: result: yes" >&5
10298echo "${ECHO_T}yes" >&6
10299 else
10300 echo "$as_me:$LINENO: result: no" >&5
10301echo "${ECHO_T}no" >&6
10302 fi
10303
10304
10305 enablestring=
10306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10307echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10308 no_cache=0
10309 # Check whether --enable-iff or --disable-iff was given.
10310if test "${enable_iff+set}" = set; then
10311 enableval="$enable_iff"
10312
10313 if test "$enableval" = yes; then
10314 ac_cv_use_iff='wxUSE_IFF=yes'
10315 else
10316 ac_cv_use_iff='wxUSE_IFF=no'
10317 fi
10318
10319else
10320
10321 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10322 if test "x$LINE" != x ; then
10323 eval "DEFAULT_$LINE"
10324 else
10325 no_cache=1
10326 fi
10327
10328 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10329
10330fi;
10331
10332 eval "$ac_cv_use_iff"
10333 if test "$no_cache" != 1; then
10334 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10335 fi
10336
10337 if test "$wxUSE_IFF" = yes; then
10338 echo "$as_me:$LINENO: result: yes" >&5
10339echo "${ECHO_T}yes" >&6
10340 else
10341 echo "$as_me:$LINENO: result: no" >&5
10342echo "${ECHO_T}no" >&6
10343 fi
10344
10345
10346 enablestring=
10347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10348echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10349 no_cache=0
10350 # Check whether --enable-pnm or --disable-pnm was given.
10351if test "${enable_pnm+set}" = set; then
10352 enableval="$enable_pnm"
10353
10354 if test "$enableval" = yes; then
10355 ac_cv_use_pnm='wxUSE_PNM=yes'
10356 else
10357 ac_cv_use_pnm='wxUSE_PNM=no'
10358 fi
10359
10360else
10361
10362 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10363 if test "x$LINE" != x ; then
10364 eval "DEFAULT_$LINE"
10365 else
10366 no_cache=1
10367 fi
10368
10369 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10370
10371fi;
10372
10373 eval "$ac_cv_use_pnm"
10374 if test "$no_cache" != 1; then
10375 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10376 fi
10377
10378 if test "$wxUSE_PNM" = yes; then
10379 echo "$as_me:$LINENO: result: yes" >&5
10380echo "${ECHO_T}yes" >&6
10381 else
10382 echo "$as_me:$LINENO: result: no" >&5
10383echo "${ECHO_T}no" >&6
10384 fi
10385
10386
10387 enablestring=
10388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10389echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10390 no_cache=0
10391 # Check whether --enable-xpm or --disable-xpm was given.
10392if test "${enable_xpm+set}" = set; then
10393 enableval="$enable_xpm"
10394
10395 if test "$enableval" = yes; then
10396 ac_cv_use_xpm='wxUSE_XPM=yes'
10397 else
10398 ac_cv_use_xpm='wxUSE_XPM=no'
10399 fi
10400
10401else
10402
10403 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10404 if test "x$LINE" != x ; then
10405 eval "DEFAULT_$LINE"
10406 else
10407 no_cache=1
10408 fi
10409
10410 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10411
10412fi;
10413
10414 eval "$ac_cv_use_xpm"
10415 if test "$no_cache" != 1; then
10416 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10417 fi
10418
10419 if test "$wxUSE_XPM" = yes; then
10420 echo "$as_me:$LINENO: result: yes" >&5
10421echo "${ECHO_T}yes" >&6
10422 else
10423 echo "$as_me:$LINENO: result: no" >&5
10424echo "${ECHO_T}no" >&6
10425 fi
10426
10427
10428 enablestring=
10429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10430echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10431 no_cache=0
10432 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10433if test "${enable_ico_cur+set}" = set; then
10434 enableval="$enable_ico_cur"
10435
10436 if test "$enableval" = yes; then
10437 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10438 else
10439 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10440 fi
10441
10442else
10443
10444 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10445 if test "x$LINE" != x ; then
10446 eval "DEFAULT_$LINE"
10447 else
10448 no_cache=1
10449 fi
10450
10451 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10452
10453fi;
10454
10455 eval "$ac_cv_use_ico_cur"
10456 if test "$no_cache" != 1; then
10457 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10458 fi
10459
10460 if test "$wxUSE_ICO_CUR" = yes; then
10461 echo "$as_me:$LINENO: result: yes" >&5
10462echo "${ECHO_T}yes" >&6
10463 else
10464 echo "$as_me:$LINENO: result: no" >&5
10465echo "${ECHO_T}no" >&6
10466 fi
10467
10468
10469fi
10470
10471
10472
ceec2216
RL
10473# Check whether --with-flavour or --without-flavour was given.
10474if test "${with_flavour+set}" = set; then
10475 withval="$with_flavour"
10476 WX_FLAVOUR="$withval"
10477fi;
10478
10479
10480
a848cd7e
SC
10481 enablestring=
10482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10483echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10484 no_cache=0
10485 # Check whether --enable-official_build or --disable-official_build was given.
10486if test "${enable_official_build+set}" = set; then
10487 enableval="$enable_official_build"
10488
10489 if test "$enableval" = yes; then
10490 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10491 else
10492 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10493 fi
10494
10495else
10496
10497 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10498 if test "x$LINE" != x ; then
10499 eval "DEFAULT_$LINE"
10500 else
10501 no_cache=1
10502 fi
10503
10504 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10505
10506fi;
10507
10508 eval "$ac_cv_use_official_build"
10509 if test "$no_cache" != 1; then
10510 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10511 fi
10512
10513 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10514 echo "$as_me:$LINENO: result: yes" >&5
10515echo "${ECHO_T}yes" >&6
10516 else
10517 echo "$as_me:$LINENO: result: no" >&5
10518echo "${ECHO_T}no" >&6
10519 fi
10520
10521# Check whether --enable-vendor or --disable-vendor was given.
10522if test "${enable_vendor+set}" = set; then
10523 enableval="$enable_vendor"
10524 VENDOR="$enableval"
10525fi;
10526if test "x$VENDOR" = "x"; then
10527 VENDOR="custom"
10528fi
10529
a848cd7e
SC
10530
10531
10532
10533 echo "saving argument cache $wx_arg_cache_file"
10534 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10535
10536
10537
10538echo "$as_me:$LINENO: checking for toolkit" >&5
10539echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10540
10541# In Wine, we need to default to MSW, not GTK or MOTIF
10542if test "$wxUSE_WINE" = "yes"; then
10543 DEFAULT_DEFAULT_wxUSE_GTK=0
10544 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10545 DEFAULT_DEFAULT_wxUSE_MSW=1
10546 wxUSE_SHARED=no
10547fi
10548
f597b41c 10549
a848cd7e
SC
10550if test "$wxUSE_GUI" = "yes"; then
10551
10552 if test "$USE_BEOS" = 1; then
10553 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10554echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10555 { (exit 1); exit 1; }; }
10556 fi
10557
10558 if test "$TOOLKIT_GIVEN" = 1; then
10559 for toolkit in `echo $ALL_TOOLKITS`; do
10560 var=wxUSE_$toolkit
10561 eval "value=\$${var}"
f34ca037
MW
10562 if test "x$value" = "xno"; then
10563 eval "$var=0"
10564 elif test "x$value" != "x"; then
10565 eval "$var=1"
10566 fi
10567
10568 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10569 eval "wx${toolkit}_VERSION=$value"
10570 fi
a848cd7e
SC
10571 done
10572 else
10573 for toolkit in `echo $ALL_TOOLKITS`; do
10574 if test "$has_toolkit_in_cache" != 1; then
10575 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10576 else
10577 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10578
10579 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10580 if test "x$version" != "x"; then
10581 eval "wx${toolkit}_VERSION=$version"
10582 fi
a848cd7e
SC
10583 fi
10584 eval "wxUSE_$toolkit=\$${var}"
10585 done
10586 fi
10587
10588 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10589 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10590 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10591
10592 case "${host}" in
10593 *-pc-os2_emx | *-pc-os2-emx )
10594 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10595 esac
10596
10597 case "$NUM_TOOLKITS" in
10598 1)
10599 ;;
10600 0)
10601 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10602echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10603 { (exit 1); exit 1; }; }
10604 ;;
10605 *)
10606 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10607echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10608 { (exit 1); exit 1; }; }
10609 esac
10610
f34ca037
MW
10611 # to be removed when --disable-gtk2 isn't needed
10612 if test "x$wxUSE_GTK2" = "xyes"; then
10613 wxGTK_VERSION=2
10614 elif test "x$wxUSE_GTK2" = "xno"; then
10615 wxGTK_VERSION=1
10616 fi
10617
a848cd7e
SC
10618 for toolkit in `echo $ALL_TOOLKITS`; do
10619 var=wxUSE_$toolkit
10620 eval "value=\$${var}"
10621 if test "x$value" != x; then
10622 cache_var=CACHE_$toolkit
10623 eval "cache=\$${cache_var}"
10624 if test "$cache" = 1; then
10625 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10626 eval "version=\$wx${toolkit}_VERSION"
10627 if test "x$version" != "x"; then
10628 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10629 fi
a848cd7e
SC
10630 fi
10631 if test "$value" = 1; then
10632 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10633 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10634echo "${ECHO_T}$toolkit_echo" >&6
10635 fi
10636 fi
10637 done
10638else
10639 if test "x$host_alias" != "x"; then
10640 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10641echo "${ECHO_T}base ($host_alias hosted) only" >&6
10642 else
10643 echo "$as_me:$LINENO: result: base only" >&5
10644echo "${ECHO_T}base only" >&6
10645 fi
10646fi
10647
10648wants_win32=0
10649doesnt_want_win32=0
10650case "${host}" in
10651 *-*-cygwin*)
10652 if test "$wxUSE_MSW" = 1 ; then
10653 wants_win32=1
7275146d 10654 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10655 else
10656 doesnt_want_win32=1
10657 fi
10658 ;;
10659 *-*-mingw*)
10660 wants_win32=1
10661 ;;
10662esac
10663
10664if test "$wxUSE_WINE" = "yes"; then
10665 wants_win32=1
10666 CC=winegcc
10667 CXX=wineg++
a848cd7e
SC
10668 LDFLAGS_GUI="-mwindows"
10669fi
10670
10671if test "$wants_win32" = 1 ; then
10672 USE_UNIX=0
10673 USE_WIN32=1
10674 cat >>confdefs.h <<\_ACEOF
10675#define __WIN32__ 1
10676_ACEOF
10677
10678 cat >>confdefs.h <<\_ACEOF
10679#define __WIN95__ 1
10680_ACEOF
10681
10682 cat >>confdefs.h <<\_ACEOF
10683#define __WINDOWS__ 1
10684_ACEOF
10685
10686 cat >>confdefs.h <<\_ACEOF
10687#define __GNUWIN32__ 1
10688_ACEOF
10689
10690 cat >>confdefs.h <<\_ACEOF
10691#define STRICT 1
10692_ACEOF
10693
10694 cat >>confdefs.h <<\_ACEOF
10695#define WINVER 0x0400
10696_ACEOF
10697
10698fi
10699if test "$doesnt_want_win32" = 1 ; then
10700 USE_UNIX=1
10701 USE_WIN32=0
10702fi
10703
10704if test "$USE_UNIX" = 1 ; then
10705 wxUSE_UNIX=yes
10706 cat >>confdefs.h <<\_ACEOF
10707#define __UNIX__ 1
10708_ACEOF
10709
10710fi
10711
10712
10713cat >confcache <<\_ACEOF
10714# This file is a shell script that caches the results of configure
10715# tests run on this system so they can be shared between configure
10716# scripts and configure runs, see configure's option --config-cache.
10717# It is not useful on other systems. If it contains results you don't
10718# want to keep, you may remove or edit it.
10719#
10720# config.status only pays attention to the cache file if you give it
10721# the --recheck option to rerun configure.
10722#
10723# `ac_cv_env_foo' variables (set or unset) will be overridden when
10724# loading this file, other *unset* `ac_cv_foo' will be assigned the
10725# following values.
10726
10727_ACEOF
10728
10729# The following way of writing the cache mishandles newlines in values,
10730# but we know of no workaround that is simple, portable, and efficient.
10731# So, don't put newlines in cache variables' values.
10732# Ultrix sh set writes to stderr and can't be redirected directly,
10733# and sets the high bit in the cache file unless we assign to the vars.
10734{
10735 (set) 2>&1 |
10736 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10737 *ac_space=\ *)
10738 # `set' does not quote correctly, so add quotes (double-quote
10739 # substitution turns \\\\ into \\, and sed turns \\ into \).
10740 sed -n \
ac1cb8d3
VS
10741 "s/'/'\\\\''/g;
10742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10743 ;;
10744 *)
10745 # `set' quotes correctly as required by POSIX, so do not add quotes.
10746 sed -n \
ac1cb8d3 10747 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10748 ;;
10749 esac;
10750} |
10751 sed '
10752 t clear
10753 : clear
10754 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10755 t end
10756 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10757 : end' >>confcache
10758if diff $cache_file confcache >/dev/null 2>&1; then :; else
10759 if test -w $cache_file; then
10760 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10761 cat confcache >$cache_file
10762 else
10763 echo "not updating unwritable cache $cache_file"
10764 fi
10765fi
10766rm -f confcache
10767
a848cd7e 10768CFLAGS=${CFLAGS:=}
6dcfc289
DE
10769
10770
10771 ac_ext=c
a848cd7e
SC
10772ac_cpp='$CPP $CPPFLAGS'
10773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10775ac_compiler_gnu=$ac_cv_c_compiler_gnu
10776if test -n "$ac_tool_prefix"; then
10777 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10778set dummy ${ac_tool_prefix}gcc; ac_word=$2
10779echo "$as_me:$LINENO: checking for $ac_word" >&5
10780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10781if test "${ac_cv_prog_CC+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10783else
10784 if test -n "$CC"; then
10785 ac_cv_prog_CC="$CC" # Let the user override the test.
10786else
10787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10788for as_dir in $PATH
10789do
10790 IFS=$as_save_IFS
10791 test -z "$as_dir" && as_dir=.
10792 for ac_exec_ext in '' $ac_executable_extensions; do
10793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10794 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10796 break 2
10797 fi
10798done
10799done
10800
10801fi
10802fi
10803CC=$ac_cv_prog_CC
10804if test -n "$CC"; then
10805 echo "$as_me:$LINENO: result: $CC" >&5
10806echo "${ECHO_T}$CC" >&6
10807else
10808 echo "$as_me:$LINENO: result: no" >&5
10809echo "${ECHO_T}no" >&6
10810fi
10811
10812fi
10813if test -z "$ac_cv_prog_CC"; then
10814 ac_ct_CC=$CC
10815 # Extract the first word of "gcc", so it can be a program name with args.
10816set dummy gcc; ac_word=$2
10817echo "$as_me:$LINENO: checking for $ac_word" >&5
10818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10819if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10821else
10822 if test -n "$ac_ct_CC"; then
10823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10824else
10825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10826for as_dir in $PATH
10827do
10828 IFS=$as_save_IFS
10829 test -z "$as_dir" && as_dir=.
10830 for ac_exec_ext in '' $ac_executable_extensions; do
10831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10832 ac_cv_prog_ac_ct_CC="gcc"
10833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10834 break 2
10835 fi
10836done
10837done
10838
10839fi
10840fi
10841ac_ct_CC=$ac_cv_prog_ac_ct_CC
10842if test -n "$ac_ct_CC"; then
10843 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10844echo "${ECHO_T}$ac_ct_CC" >&6
10845else
10846 echo "$as_me:$LINENO: result: no" >&5
10847echo "${ECHO_T}no" >&6
10848fi
10849
10850 CC=$ac_ct_CC
10851else
10852 CC="$ac_cv_prog_CC"
10853fi
10854
10855if test -z "$CC"; then
10856 if test -n "$ac_tool_prefix"; then
10857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10858set dummy ${ac_tool_prefix}cc; ac_word=$2
10859echo "$as_me:$LINENO: checking for $ac_word" >&5
10860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10861if test "${ac_cv_prog_CC+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10863else
10864 if test -n "$CC"; then
10865 ac_cv_prog_CC="$CC" # Let the user override the test.
10866else
10867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868for as_dir in $PATH
10869do
10870 IFS=$as_save_IFS
10871 test -z "$as_dir" && as_dir=.
10872 for ac_exec_ext in '' $ac_executable_extensions; do
10873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10874 ac_cv_prog_CC="${ac_tool_prefix}cc"
10875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10876 break 2
10877 fi
10878done
10879done
10880
10881fi
10882fi
10883CC=$ac_cv_prog_CC
10884if test -n "$CC"; then
10885 echo "$as_me:$LINENO: result: $CC" >&5
10886echo "${ECHO_T}$CC" >&6
10887else
10888 echo "$as_me:$LINENO: result: no" >&5
10889echo "${ECHO_T}no" >&6
10890fi
10891
10892fi
10893if test -z "$ac_cv_prog_CC"; then
10894 ac_ct_CC=$CC
10895 # Extract the first word of "cc", so it can be a program name with args.
10896set dummy cc; ac_word=$2
10897echo "$as_me:$LINENO: checking for $ac_word" >&5
10898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10899if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10901else
10902 if test -n "$ac_ct_CC"; then
10903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10904else
10905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906for as_dir in $PATH
10907do
10908 IFS=$as_save_IFS
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10912 ac_cv_prog_ac_ct_CC="cc"
10913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10914 break 2
10915 fi
10916done
10917done
10918
10919fi
10920fi
10921ac_ct_CC=$ac_cv_prog_ac_ct_CC
10922if test -n "$ac_ct_CC"; then
10923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10924echo "${ECHO_T}$ac_ct_CC" >&6
10925else
10926 echo "$as_me:$LINENO: result: no" >&5
10927echo "${ECHO_T}no" >&6
10928fi
10929
10930 CC=$ac_ct_CC
10931else
10932 CC="$ac_cv_prog_CC"
10933fi
10934
10935fi
10936if test -z "$CC"; then
10937 # Extract the first word of "cc", so it can be a program name with args.
10938set dummy cc; ac_word=$2
10939echo "$as_me:$LINENO: checking for $ac_word" >&5
10940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10941if test "${ac_cv_prog_CC+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10943else
10944 if test -n "$CC"; then
10945 ac_cv_prog_CC="$CC" # Let the user override the test.
10946else
10947 ac_prog_rejected=no
10948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10949for as_dir in $PATH
10950do
10951 IFS=$as_save_IFS
10952 test -z "$as_dir" && as_dir=.
10953 for ac_exec_ext in '' $ac_executable_extensions; do
10954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10956 ac_prog_rejected=yes
10957 continue
10958 fi
10959 ac_cv_prog_CC="cc"
10960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 break 2
10962 fi
10963done
10964done
10965
10966if test $ac_prog_rejected = yes; then
10967 # We found a bogon in the path, so make sure we never use it.
10968 set dummy $ac_cv_prog_CC
10969 shift
10970 if test $# != 0; then
10971 # We chose a different compiler from the bogus one.
10972 # However, it has the same basename, so the bogon will be chosen
10973 # first if we set CC to just the basename; use the full file name.
10974 shift
10975 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10976 fi
10977fi
10978fi
10979fi
10980CC=$ac_cv_prog_CC
10981if test -n "$CC"; then
10982 echo "$as_me:$LINENO: result: $CC" >&5
10983echo "${ECHO_T}$CC" >&6
10984else
10985 echo "$as_me:$LINENO: result: no" >&5
10986echo "${ECHO_T}no" >&6
10987fi
10988
10989fi
10990if test -z "$CC"; then
10991 if test -n "$ac_tool_prefix"; then
10992 for ac_prog in cl
10993 do
10994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10995set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10996echo "$as_me:$LINENO: checking for $ac_word" >&5
10997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10998if test "${ac_cv_prog_CC+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000else
11001 if test -n "$CC"; then
11002 ac_cv_prog_CC="$CC" # Let the user override the test.
11003else
11004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005for as_dir in $PATH
11006do
11007 IFS=$as_save_IFS
11008 test -z "$as_dir" && as_dir=.
11009 for ac_exec_ext in '' $ac_executable_extensions; do
11010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11013 break 2
11014 fi
11015done
11016done
11017
11018fi
11019fi
11020CC=$ac_cv_prog_CC
11021if test -n "$CC"; then
11022 echo "$as_me:$LINENO: result: $CC" >&5
11023echo "${ECHO_T}$CC" >&6
11024else
11025 echo "$as_me:$LINENO: result: no" >&5
11026echo "${ECHO_T}no" >&6
11027fi
11028
11029 test -n "$CC" && break
11030 done
11031fi
11032if test -z "$CC"; then
11033 ac_ct_CC=$CC
11034 for ac_prog in cl
11035do
11036 # Extract the first word of "$ac_prog", so it can be a program name with args.
11037set dummy $ac_prog; ac_word=$2
11038echo "$as_me:$LINENO: checking for $ac_word" >&5
11039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11040if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11042else
11043 if test -n "$ac_ct_CC"; then
11044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11045else
11046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047for as_dir in $PATH
11048do
11049 IFS=$as_save_IFS
11050 test -z "$as_dir" && as_dir=.
11051 for ac_exec_ext in '' $ac_executable_extensions; do
11052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11053 ac_cv_prog_ac_ct_CC="$ac_prog"
11054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11055 break 2
11056 fi
11057done
11058done
11059
11060fi
11061fi
11062ac_ct_CC=$ac_cv_prog_ac_ct_CC
11063if test -n "$ac_ct_CC"; then
11064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11065echo "${ECHO_T}$ac_ct_CC" >&6
11066else
11067 echo "$as_me:$LINENO: result: no" >&5
11068echo "${ECHO_T}no" >&6
11069fi
11070
11071 test -n "$ac_ct_CC" && break
11072done
11073
11074 CC=$ac_ct_CC
11075fi
11076
11077fi
11078
11079
11080test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11081See \`config.log' for more details." >&5
11082echo "$as_me: error: no acceptable C compiler found in \$PATH
11083See \`config.log' for more details." >&2;}
11084 { (exit 1); exit 1; }; }
11085
11086# Provide some information about the compiler.
11087echo "$as_me:$LINENO:" \
11088 "checking for C compiler version" >&5
11089ac_compiler=`set X $ac_compile; echo $2`
11090{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11091 (eval $ac_compiler --version </dev/null >&5) 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }
11095{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11096 (eval $ac_compiler -v </dev/null >&5) 2>&5
11097 ac_status=$?
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }
11100{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11101 (eval $ac_compiler -V </dev/null >&5) 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }
11105
11106cat >conftest.$ac_ext <<_ACEOF
11107/* confdefs.h. */
11108_ACEOF
11109cat confdefs.h >>conftest.$ac_ext
11110cat >>conftest.$ac_ext <<_ACEOF
11111/* end confdefs.h. */
11112
11113int
11114main ()
11115{
11116
11117 ;
11118 return 0;
11119}
11120_ACEOF
11121ac_clean_files_save=$ac_clean_files
11122ac_clean_files="$ac_clean_files a.out a.exe b.out"
11123# Try to create an executable without -o first, disregard a.out.
11124# It will help us diagnose broken compilers, and finding out an intuition
11125# of exeext.
ac1cb8d3
VS
11126echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11127echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11128ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11129if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11130 (eval $ac_link_default) 2>&5
11131 ac_status=$?
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; then
11134 # Find the output, starting from the most likely. This scheme is
11135# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11136# resort.
11137
11138# Be careful to initialize this variable, since it used to be cached.
11139# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11140ac_cv_exeext=
11141# b.out is created by i960 compilers.
11142for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11143do
11144 test -f "$ac_file" || continue
11145 case $ac_file in
11146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11147 ;;
a848cd7e 11148 conftest.$ac_ext )
ac1cb8d3
VS
11149 # This is the source file.
11150 ;;
a848cd7e 11151 [ab].out )
ac1cb8d3
VS
11152 # We found the default executable, but exeext='' is most
11153 # certainly right.
11154 break;;
a848cd7e 11155 *.* )
ac1cb8d3
VS
11156 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11157 # FIXME: I believe we export ac_cv_exeext for Libtool,
11158 # but it would be cool to find out if it's true. Does anybody
11159 # maintain Libtool? --akim.
11160 export ac_cv_exeext
11161 break;;
a848cd7e 11162 * )
ac1cb8d3 11163 break;;
a848cd7e
SC
11164 esac
11165done
11166else
11167 echo "$as_me: failed program was:" >&5
11168sed 's/^/| /' conftest.$ac_ext >&5
11169
11170{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11171See \`config.log' for more details." >&5
11172echo "$as_me: error: C compiler cannot create executables
11173See \`config.log' for more details." >&2;}
11174 { (exit 77); exit 77; }; }
11175fi
11176
11177ac_exeext=$ac_cv_exeext
11178echo "$as_me:$LINENO: result: $ac_file" >&5
11179echo "${ECHO_T}$ac_file" >&6
11180
11181# Check the compiler produces executables we can run. If not, either
11182# the compiler is broken, or we cross compile.
11183echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11184echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11185# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11186# If not cross compiling, check that we can run a simple program.
11187if test "$cross_compiling" != yes; then
11188 if { ac_try='./$ac_file'
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 cross_compiling=no
11195 else
11196 if test "$cross_compiling" = maybe; then
11197 cross_compiling=yes
11198 else
11199 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11200If you meant to cross compile, use \`--host'.
11201See \`config.log' for more details." >&5
11202echo "$as_me: error: cannot run C compiled programs.
11203If you meant to cross compile, use \`--host'.
11204See \`config.log' for more details." >&2;}
11205 { (exit 1); exit 1; }; }
11206 fi
11207 fi
11208fi
11209echo "$as_me:$LINENO: result: yes" >&5
11210echo "${ECHO_T}yes" >&6
11211
11212rm -f a.out a.exe conftest$ac_cv_exeext b.out
11213ac_clean_files=$ac_clean_files_save
11214# Check the compiler produces executables we can run. If not, either
11215# the compiler is broken, or we cross compile.
11216echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11217echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11218echo "$as_me:$LINENO: result: $cross_compiling" >&5
11219echo "${ECHO_T}$cross_compiling" >&6
11220
11221echo "$as_me:$LINENO: checking for suffix of executables" >&5
11222echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11224 (eval $ac_link) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; then
11228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11229# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11230# work properly (i.e., refer to `conftest.exe'), while it won't with
11231# `rm'.
11232for ac_file in conftest.exe conftest conftest.*; do
11233 test -f "$ac_file" || continue
11234 case $ac_file in
11235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11237 export ac_cv_exeext
11238 break;;
a848cd7e
SC
11239 * ) break;;
11240 esac
11241done
11242else
11243 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11244See \`config.log' for more details." >&5
11245echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11246See \`config.log' for more details." >&2;}
11247 { (exit 1); exit 1; }; }
11248fi
11249
11250rm -f conftest$ac_cv_exeext
11251echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11252echo "${ECHO_T}$ac_cv_exeext" >&6
11253
11254rm -f conftest.$ac_ext
11255EXEEXT=$ac_cv_exeext
11256ac_exeext=$EXEEXT
11257echo "$as_me:$LINENO: checking for suffix of object files" >&5
11258echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11259if test "${ac_cv_objext+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11261else
11262 cat >conftest.$ac_ext <<_ACEOF
11263/* confdefs.h. */
11264_ACEOF
11265cat confdefs.h >>conftest.$ac_ext
11266cat >>conftest.$ac_ext <<_ACEOF
11267/* end confdefs.h. */
11268
11269int
11270main ()
11271{
11272
11273 ;
11274 return 0;
11275}
11276_ACEOF
11277rm -f conftest.o conftest.obj
11278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11279 (eval $ac_compile) 2>&5
11280 ac_status=$?
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; then
11283 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11284 case $ac_file in
11285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11286 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11287 break;;
11288 esac
11289done
11290else
11291 echo "$as_me: failed program was:" >&5
11292sed 's/^/| /' conftest.$ac_ext >&5
11293
11294{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11295See \`config.log' for more details." >&5
11296echo "$as_me: error: cannot compute suffix of object files: cannot compile
11297See \`config.log' for more details." >&2;}
11298 { (exit 1); exit 1; }; }
11299fi
11300
11301rm -f conftest.$ac_cv_objext conftest.$ac_ext
11302fi
11303echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11304echo "${ECHO_T}$ac_cv_objext" >&6
11305OBJEXT=$ac_cv_objext
11306ac_objext=$OBJEXT
11307echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11308echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11309if test "${ac_cv_c_compiler_gnu+set}" = set; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11311else
11312 cat >conftest.$ac_ext <<_ACEOF
11313/* confdefs.h. */
11314_ACEOF
11315cat confdefs.h >>conftest.$ac_ext
11316cat >>conftest.$ac_ext <<_ACEOF
11317/* end confdefs.h. */
11318
11319int
11320main ()
11321{
11322#ifndef __GNUC__
11323 choke me
11324#endif
11325
11326 ;
11327 return 0;
11328}
11329_ACEOF
11330rm -f conftest.$ac_objext
11331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11332 (eval $ac_compile) 2>conftest.er1
a848cd7e 11333 ac_status=$?
ac1cb8d3
VS
11334 grep -v '^ *+' conftest.er1 >conftest.err
11335 rm -f conftest.er1
11336 cat conftest.err >&5
a848cd7e
SC
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
6ebeb4c7 11339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; } &&
11345 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_compiler_gnu=yes
11352else
11353 echo "$as_me: failed program was:" >&5
11354sed 's/^/| /' conftest.$ac_ext >&5
11355
11356ac_compiler_gnu=no
11357fi
ac1cb8d3 11358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11359ac_cv_c_compiler_gnu=$ac_compiler_gnu
11360
11361fi
11362echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11363echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11364GCC=`test $ac_compiler_gnu = yes && echo yes`
11365ac_test_CFLAGS=${CFLAGS+set}
11366ac_save_CFLAGS=$CFLAGS
1c14217d 11367CFLAGS="-g"
a848cd7e
SC
11368echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11369echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11370if test "${ac_cv_prog_cc_g+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11372else
11373 cat >conftest.$ac_ext <<_ACEOF
11374/* confdefs.h. */
11375_ACEOF
11376cat confdefs.h >>conftest.$ac_ext
11377cat >>conftest.$ac_ext <<_ACEOF
11378/* end confdefs.h. */
11379
11380int
11381main ()
11382{
11383
11384 ;
11385 return 0;
11386}
11387_ACEOF
11388rm -f conftest.$ac_objext
11389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11390 (eval $ac_compile) 2>conftest.er1
a848cd7e 11391 ac_status=$?
ac1cb8d3
VS
11392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
a848cd7e
SC
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
6ebeb4c7 11397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11400 ac_status=$?
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; } &&
11403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 ac_cv_prog_cc_g=yes
11410else
11411 echo "$as_me: failed program was:" >&5
11412sed 's/^/| /' conftest.$ac_ext >&5
11413
11414ac_cv_prog_cc_g=no
11415fi
ac1cb8d3 11416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11417fi
11418echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11419echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11420if test "$ac_test_CFLAGS" = set; then
11421 CFLAGS=$ac_save_CFLAGS
11422elif test $ac_cv_prog_cc_g = yes; then
11423 if test "$GCC" = yes; then
11424 CFLAGS="-g -O2"
11425 else
11426 CFLAGS="-g"
11427 fi
11428else
11429 if test "$GCC" = yes; then
11430 CFLAGS="-O2"
11431 else
11432 CFLAGS=
11433 fi
11434fi
11435echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11436echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11437if test "${ac_cv_prog_cc_stdc+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11439else
11440 ac_cv_prog_cc_stdc=no
11441ac_save_CC=$CC
11442cat >conftest.$ac_ext <<_ACEOF
11443/* confdefs.h. */
11444_ACEOF
11445cat confdefs.h >>conftest.$ac_ext
11446cat >>conftest.$ac_ext <<_ACEOF
11447/* end confdefs.h. */
11448#include <stdarg.h>
11449#include <stdio.h>
11450#include <sys/types.h>
11451#include <sys/stat.h>
11452/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11453struct buf { int x; };
11454FILE * (*rcsopen) (struct buf *, struct stat *, int);
11455static char *e (p, i)
11456 char **p;
11457 int i;
11458{
11459 return p[i];
11460}
11461static char *f (char * (*g) (char **, int), char **p, ...)
11462{
11463 char *s;
11464 va_list v;
11465 va_start (v,p);
11466 s = g (p, va_arg (v,int));
11467 va_end (v);
11468 return s;
11469}
ac1cb8d3
VS
11470
11471/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11472 function prototypes and stuff, but not '\xHH' hex character constants.
11473 These don't provoke an error unfortunately, instead are silently treated
11474 as 'x'. The following induces an error, until -std1 is added to get
11475 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11476 array size at least. It's necessary to write '\x00'==0 to get something
11477 that's true only with -std1. */
11478int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11479
a848cd7e
SC
11480int test (int i, double x);
11481struct s1 {int (*f) (int a);};
11482struct s2 {int (*f) (double a);};
11483int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11484int argc;
11485char **argv;
11486int
11487main ()
11488{
11489return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11490 ;
11491 return 0;
11492}
11493_ACEOF
11494# Don't try gcc -ansi; that turns off useful extensions and
11495# breaks some systems' header files.
11496# AIX -qlanglvl=ansi
11497# Ultrix and OSF/1 -std1
11498# HP-UX 10.20 and later -Ae
11499# HP-UX older versions -Aa -D_HPUX_SOURCE
11500# SVR4 -Xc -D__EXTENSIONS__
11501for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11502do
11503 CC="$ac_save_CC $ac_arg"
11504 rm -f conftest.$ac_objext
11505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11506 (eval $ac_compile) 2>conftest.er1
a848cd7e 11507 ac_status=$?
ac1cb8d3
VS
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
a848cd7e
SC
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
6ebeb4c7 11513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515 (eval $ac_try) 2>&5
11516 ac_status=$?
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); }; } &&
11519 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; }; then
11525 ac_cv_prog_cc_stdc=$ac_arg
11526break
11527else
11528 echo "$as_me: failed program was:" >&5
11529sed 's/^/| /' conftest.$ac_ext >&5
11530
11531fi
ac1cb8d3 11532rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11533done
11534rm -f conftest.$ac_ext conftest.$ac_objext
11535CC=$ac_save_CC
11536
11537fi
11538
11539case "x$ac_cv_prog_cc_stdc" in
11540 x|xno)
11541 echo "$as_me:$LINENO: result: none needed" >&5
11542echo "${ECHO_T}none needed" >&6 ;;
11543 *)
11544 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11545echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11546 CC="$CC $ac_cv_prog_cc_stdc" ;;
11547esac
11548
11549# Some people use a C++ compiler to compile C. Since we use `exit',
11550# in C++ we need to declare it. In case someone uses the same compiler
11551# for both compiling C and C++ we need to have the C++ compiler decide
11552# the declaration of exit, since it's the most demanding environment.
11553cat >conftest.$ac_ext <<_ACEOF
11554#ifndef __cplusplus
11555 choke me
11556#endif
11557_ACEOF
11558rm -f conftest.$ac_objext
11559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11560 (eval $ac_compile) 2>conftest.er1
a848cd7e 11561 ac_status=$?
ac1cb8d3
VS
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
a848cd7e
SC
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
6ebeb4c7 11567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; } &&
11573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 for ac_declaration in \
ac1cb8d3 11580 '' \
a848cd7e
SC
11581 'extern "C" void std::exit (int) throw (); using std::exit;' \
11582 'extern "C" void std::exit (int); using std::exit;' \
11583 'extern "C" void exit (int) throw ();' \
11584 'extern "C" void exit (int);' \
11585 'void exit (int);'
11586do
11587 cat >conftest.$ac_ext <<_ACEOF
11588/* confdefs.h. */
11589_ACEOF
11590cat confdefs.h >>conftest.$ac_ext
11591cat >>conftest.$ac_ext <<_ACEOF
11592/* end confdefs.h. */
de59c161 11593$ac_declaration
ac1cb8d3 11594#include <stdlib.h>
a848cd7e
SC
11595int
11596main ()
11597{
11598exit (42);
11599 ;
11600 return 0;
11601}
11602_ACEOF
11603rm -f conftest.$ac_objext
11604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11605 (eval $ac_compile) 2>conftest.er1
a848cd7e 11606 ac_status=$?
ac1cb8d3
VS
11607 grep -v '^ *+' conftest.er1 >conftest.err
11608 rm -f conftest.er1
11609 cat conftest.err >&5
a848cd7e
SC
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
6ebeb4c7 11612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; } &&
11618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 :
11625else
11626 echo "$as_me: failed program was:" >&5
11627sed 's/^/| /' conftest.$ac_ext >&5
11628
11629continue
11630fi
ac1cb8d3 11631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11632 cat >conftest.$ac_ext <<_ACEOF
11633/* confdefs.h. */
11634_ACEOF
11635cat confdefs.h >>conftest.$ac_ext
11636cat >>conftest.$ac_ext <<_ACEOF
11637/* end confdefs.h. */
11638$ac_declaration
11639int
11640main ()
11641{
11642exit (42);
11643 ;
11644 return 0;
11645}
11646_ACEOF
11647rm -f conftest.$ac_objext
11648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11649 (eval $ac_compile) 2>conftest.er1
a848cd7e 11650 ac_status=$?
ac1cb8d3
VS
11651 grep -v '^ *+' conftest.er1 >conftest.err
11652 rm -f conftest.er1
11653 cat conftest.err >&5
a848cd7e
SC
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } &&
6ebeb4c7 11656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; } &&
11662 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 break
11669else
11670 echo "$as_me: failed program was:" >&5
11671sed 's/^/| /' conftest.$ac_ext >&5
11672
11673fi
ac1cb8d3 11674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11675done
11676rm -f conftest*
11677if test -n "$ac_declaration"; then
11678 echo '#ifdef __cplusplus' >>confdefs.h
11679 echo $ac_declaration >>confdefs.h
11680 echo '#endif' >>confdefs.h
11681fi
11682
11683else
11684 echo "$as_me: failed program was:" >&5
11685sed 's/^/| /' conftest.$ac_ext >&5
11686
11687fi
ac1cb8d3 11688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11689ac_ext=c
11690ac_cpp='$CPP $CPPFLAGS'
11691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11693ac_compiler_gnu=$ac_cv_c_compiler_gnu
11694
ab0ad5f1
VZ
11695
11696
11697 ac_ext=c
11698ac_cpp='$CPP $CPPFLAGS'
11699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11701ac_compiler_gnu=$ac_cv_c_compiler_gnu
11702
11703 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11704echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11705if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11707else
11708 cat >conftest.$ac_ext <<_ACEOF
11709/* confdefs.h. */
11710_ACEOF
11711cat confdefs.h >>conftest.$ac_ext
11712cat >>conftest.$ac_ext <<_ACEOF
11713/* end confdefs.h. */
11714
11715int
11716main ()
11717{
11718
11719 #ifndef __INTEL_COMPILER
11720 choke me
11721 #endif
11722
11723 ;
11724 return 0;
11725}
11726_ACEOF
11727rm -f conftest.$ac_objext
11728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11729 (eval $ac_compile) 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; } &&
11742 { ac_try='test -s conftest.$ac_objext'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; }; then
11748 bakefile_cv_c_compiler___INTEL_COMPILER=yes
11749else
11750 echo "$as_me: failed program was:" >&5
11751sed 's/^/| /' conftest.$ac_ext >&5
11752
11753bakefile_cv_c_compiler___INTEL_COMPILER=no
11754
11755fi
11756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11757
11758
11759fi
11760echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11761echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
11762 ac_ext=c
11763ac_cpp='$CPP $CPPFLAGS'
11764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11766ac_compiler_gnu=$ac_cv_c_compiler_gnu
11767
11768 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
11769 :; INTELCC=yes
11770 else
11771 :;
11772 fi
11773
11774
11775 if test "x$GCC" != "xyes"; then
11776 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11777echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11778if test "${wx_cv_c_exto+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11780else
11781 cat >conftest.$ac_ext <<_ACEOF
11782/* confdefs.h. */
11783_ACEOF
11784cat confdefs.h >>conftest.$ac_ext
11785cat >>conftest.$ac_ext <<_ACEOF
11786/* end confdefs.h. */
11787
11788int
11789main ()
11790{
11791
11792 ;
11793 return 0;
11794}
11795_ACEOF
11796rm -f conftest.$ac_objext conftest.$ac_ext.o
11797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11798 (eval $ac_compile) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; then
11802 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11803 case $ac_file in
11804 conftest.$ac_ext.o)
11805 wx_cv_c_exto="-ext o"
11806 ;;
11807 *)
11808 ;;
11809 esac
11810done
11811else
11812 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11813See \`config.log' for more details." >&5
11814echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11815See \`config.log' for more details." >&2;}
11816 { (exit 1); exit 1; }; }
11817
11818fi
11819
11820rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11821
11822fi
11823echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11824echo "${ECHO_T}$wx_cv_c_exto" >&6
11825if test "x$wx_cv_c_exto" '!=' "x"; then
11826 if test "c" = "c"; then
11827 CFLAGS="$wx_cv_c_exto $CFLAGS"
11828 fi
11829 if test "c" = "cxx"; then
11830 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11831 fi
11832fi
11833
ab0ad5f1
VZ
11834 if test "x$wx_cv_c_exto" '!=' "x"; then
11835 unset ac_cv_prog_cc_g
11836 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11837ac_save_CFLAGS=$CFLAGS
1c14217d 11838CFLAGS="-g"
480ccd21
DE
11839echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11840echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11841if test "${ac_cv_prog_cc_g+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843else
11844 cat >conftest.$ac_ext <<_ACEOF
11845/* confdefs.h. */
11846_ACEOF
11847cat confdefs.h >>conftest.$ac_ext
11848cat >>conftest.$ac_ext <<_ACEOF
11849/* end confdefs.h. */
11850
11851int
11852main ()
11853{
11854
11855 ;
11856 return 0;
11857}
11858_ACEOF
11859rm -f conftest.$ac_objext
11860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11861 (eval $ac_compile) 2>conftest.er1
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
6ebeb4c7 11868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11871 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; } &&
11874 { ac_try='test -s conftest.$ac_objext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 ac_cv_prog_cc_g=yes
11881else
11882 echo "$as_me: failed program was:" >&5
11883sed 's/^/| /' conftest.$ac_ext >&5
11884
11885ac_cv_prog_cc_g=no
11886fi
11887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11888fi
11889echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11890echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11891if test "$ac_test_CFLAGS" = set; then
11892 CFLAGS=$ac_save_CFLAGS
11893elif test $ac_cv_prog_cc_g = yes; then
11894 if test "$GCC" = yes; then
11895 CFLAGS="-g -O2"
11896 else
11897 CFLAGS="-g"
11898 fi
11899else
11900 if test "$GCC" = yes; then
11901 CFLAGS="-O2"
11902 else
11903 CFLAGS=
11904 fi
11905fi
ab0ad5f1
VZ
11906 fi
11907 ac_ext=c
95986553
DE
11908ac_cpp='$CPP $CPPFLAGS'
11909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11911ac_compiler_gnu=$ac_cv_c_compiler_gnu
11912
11913echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11914echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11915if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11917else
11918 cat >conftest.$ac_ext <<_ACEOF
11919/* confdefs.h. */
11920_ACEOF
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h. */
11924
11925int
11926main ()
11927{
11928#ifndef __MWERKS__
11929 choke me
11930#endif
11931
11932 ;
11933 return 0;
11934}
11935_ACEOF
11936rm -f conftest.$ac_objext
11937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11938 (eval $ac_compile) 2>conftest.er1
11939 ac_status=$?
11940 grep -v '^ *+' conftest.er1 >conftest.err
11941 rm -f conftest.er1
11942 cat conftest.err >&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } &&
6ebeb4c7 11945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; } &&
11951 { ac_try='test -s conftest.$ac_objext'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 bakefile_compiler_mwerks=yes
11958else
11959 echo "$as_me: failed program was:" >&5
11960sed 's/^/| /' conftest.$ac_ext >&5
11961
11962bakefile_compiler_mwerks=no
11963fi
11964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11965 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11966
11967fi
11968echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11969echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11970
0e6fa1d9 11971MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11972ac_ext=c
11973ac_cpp='$CPP $CPPFLAGS'
11974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11976ac_compiler_gnu=$ac_cv_c_compiler_gnu
11977
11978
ab0ad5f1 11979 ac_ext=c
9273ffba
DE
11980ac_cpp='$CPP $CPPFLAGS'
11981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11983ac_compiler_gnu=$ac_cv_c_compiler_gnu
11984
11985echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11986echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11987if test "${wx_cv_c_compiler_xlc+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989else
11990 cat >conftest.$ac_ext <<_ACEOF
11991/* confdefs.h. */
11992_ACEOF
11993cat confdefs.h >>conftest.$ac_ext
11994cat >>conftest.$ac_ext <<_ACEOF
11995/* end confdefs.h. */
11996
11997int
11998main ()
11999{
12000#ifndef __xlC__
12001 choke me
12002#endif
12003
12004 ;
12005 return 0;
12006}
12007_ACEOF
12008rm -f conftest.$ac_objext
12009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12010 (eval $ac_compile) 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } &&
6ebeb4c7 12017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019 (eval $ac_try) 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; } &&
12023 { ac_try='test -s conftest.$ac_objext'
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12026 ac_status=$?
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 wx_compiler_xlc=yes
12030else
12031 echo "$as_me: failed program was:" >&5
12032sed 's/^/| /' conftest.$ac_ext >&5
12033
12034wx_compiler_xlc=no
12035fi
12036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12037 wx_cv_c_compiler_xlc=$wx_compiler_xlc
12038
12039fi
12040echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
12041echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
12042
0e6fa1d9 12043XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12044ac_ext=c
12045ac_cpp='$CPP $CPPFLAGS'
12046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12048ac_compiler_gnu=$ac_cv_c_compiler_gnu
12049
12050
a848cd7e 12051
6dcfc289 12052
0ad5d837
VZ
12053 ac_ext=c
12054ac_cpp='$CPP $CPPFLAGS'
12055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12057ac_compiler_gnu=$ac_cv_c_compiler_gnu
12058
12059 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12060echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12061if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12063else
12064 cat >conftest.$ac_ext <<_ACEOF
12065/* confdefs.h. */
12066_ACEOF
12067cat confdefs.h >>conftest.$ac_ext
12068cat >>conftest.$ac_ext <<_ACEOF
12069/* end confdefs.h. */
12070
12071int
12072main ()
12073{
12074
12075 #ifndef _SGI_COMPILER_VERSION
12076 choke me
12077 #endif
12078
12079 ;
12080 return 0;
12081}
12082_ACEOF
12083rm -f conftest.$ac_objext
12084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12085 (eval $ac_compile) 2>conftest.er1
12086 ac_status=$?
12087 grep -v '^ *+' conftest.er1 >conftest.err
12088 rm -f conftest.er1
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } &&
12092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; } &&
12098 { ac_try='test -s conftest.$ac_objext'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12101 ac_status=$?
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12105else
12106 echo "$as_me: failed program was:" >&5
12107sed 's/^/| /' conftest.$ac_ext >&5
12108
12109bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12110
12111fi
12112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12113
12114
12115fi
12116echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12117echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12118 ac_ext=c
12119ac_cpp='$CPP $CPPFLAGS'
12120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12122ac_compiler_gnu=$ac_cv_c_compiler_gnu
12123
12124 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12125 :; SGICC=yes
12126 else
12127 :;
12128 fi
12129
12130
12131
12132
a9e5b1f0
MW
12133 ac_ext=c
12134ac_cpp='$CPP $CPPFLAGS'
12135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12137ac_compiler_gnu=$ac_cv_c_compiler_gnu
12138
12139 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12140echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12141if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12143else
12144 cat >conftest.$ac_ext <<_ACEOF
12145/* confdefs.h. */
12146_ACEOF
12147cat confdefs.h >>conftest.$ac_ext
12148cat >>conftest.$ac_ext <<_ACEOF
12149/* end confdefs.h. */
12150
12151int
12152main ()
12153{
12154
12155 #ifndef __SUNPRO_C
12156 choke me
12157 #endif
12158
12159 ;
12160 return 0;
12161}
12162_ACEOF
12163rm -f conftest.$ac_objext
12164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12165 (eval $ac_compile) 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } &&
6ebeb4c7 12172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest.$ac_objext'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 bakefile_cv_c_compiler___SUNPRO_C=yes
12185else
12186 echo "$as_me: failed program was:" >&5
12187sed 's/^/| /' conftest.$ac_ext >&5
12188
12189bakefile_cv_c_compiler___SUNPRO_C=no
12190
12191fi
12192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12193
12194
12195fi
12196echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12197echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12198 ac_ext=c
12199ac_cpp='$CPP $CPPFLAGS'
12200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12202ac_compiler_gnu=$ac_cv_c_compiler_gnu
12203
12204 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12205 :; SUNCC=yes
12206 else
12207 :;
12208 fi
12209
12210
ab0ad5f1 12211 fi
a9e5b1f0
MW
12212
12213
a848cd7e
SC
12214ac_ext=c
12215ac_cpp='$CPP $CPPFLAGS'
12216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12218ac_compiler_gnu=$ac_cv_c_compiler_gnu
12219echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12220echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12221# On Suns, sometimes $CPP names a directory.
12222if test -n "$CPP" && test -d "$CPP"; then
12223 CPP=
12224fi
12225if test -z "$CPP"; then
12226 if test "${ac_cv_prog_CPP+set}" = set; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12228else
12229 # Double quotes because CPP needs to be expanded
12230 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12231 do
12232 ac_preproc_ok=false
12233for ac_c_preproc_warn_flag in '' yes
12234do
12235 # Use a header file that comes with gcc, so configuring glibc
12236 # with a fresh cross-compiler works.
12237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12238 # <limits.h> exists even on freestanding compilers.
12239 # On the NeXT, cc -E runs the code through the compiler's parser,
12240 # not just through cpp. "Syntax error" is here to catch this case.
12241 cat >conftest.$ac_ext <<_ACEOF
12242/* confdefs.h. */
12243_ACEOF
12244cat confdefs.h >>conftest.$ac_ext
12245cat >>conftest.$ac_ext <<_ACEOF
12246/* end confdefs.h. */
12247#ifdef __STDC__
12248# include <limits.h>
12249#else
12250# include <assert.h>
12251#endif
ac1cb8d3 12252 Syntax error
a848cd7e
SC
12253_ACEOF
12254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12256 ac_status=$?
12257 grep -v '^ *+' conftest.er1 >conftest.err
12258 rm -f conftest.er1
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } >/dev/null; then
12262 if test -s conftest.err; then
12263 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12265 else
12266 ac_cpp_err=
12267 fi
12268else
12269 ac_cpp_err=yes
12270fi
12271if test -z "$ac_cpp_err"; then
12272 :
12273else
12274 echo "$as_me: failed program was:" >&5
12275sed 's/^/| /' conftest.$ac_ext >&5
12276
12277 # Broken: fails on valid input.
12278continue
12279fi
12280rm -f conftest.err conftest.$ac_ext
12281
12282 # OK, works on sane cases. Now check whether non-existent headers
12283 # can be detected and how.
12284 cat >conftest.$ac_ext <<_ACEOF
12285/* confdefs.h. */
12286_ACEOF
12287cat confdefs.h >>conftest.$ac_ext
12288cat >>conftest.$ac_ext <<_ACEOF
12289/* end confdefs.h. */
12290#include <ac_nonexistent.h>
12291_ACEOF
12292if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12294 ac_status=$?
12295 grep -v '^ *+' conftest.er1 >conftest.err
12296 rm -f conftest.er1
12297 cat conftest.err >&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } >/dev/null; then
12300 if test -s conftest.err; then
12301 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12303 else
12304 ac_cpp_err=
12305 fi
12306else
12307 ac_cpp_err=yes
12308fi
12309if test -z "$ac_cpp_err"; then
12310 # Broken: success on invalid input.
12311continue
12312else
12313 echo "$as_me: failed program was:" >&5
12314sed 's/^/| /' conftest.$ac_ext >&5
12315
12316 # Passes both tests.
12317ac_preproc_ok=:
12318break
12319fi
12320rm -f conftest.err conftest.$ac_ext
12321
12322done
12323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12324rm -f conftest.err conftest.$ac_ext
12325if $ac_preproc_ok; then
12326 break
12327fi
12328
12329 done
12330 ac_cv_prog_CPP=$CPP
12331
12332fi
12333 CPP=$ac_cv_prog_CPP
12334else
12335 ac_cv_prog_CPP=$CPP
12336fi
12337echo "$as_me:$LINENO: result: $CPP" >&5
12338echo "${ECHO_T}$CPP" >&6
12339ac_preproc_ok=false
12340for ac_c_preproc_warn_flag in '' yes
12341do
12342 # Use a header file that comes with gcc, so configuring glibc
12343 # with a fresh cross-compiler works.
12344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12345 # <limits.h> exists even on freestanding compilers.
12346 # On the NeXT, cc -E runs the code through the compiler's parser,
12347 # not just through cpp. "Syntax error" is here to catch this case.
12348 cat >conftest.$ac_ext <<_ACEOF
12349/* confdefs.h. */
12350_ACEOF
12351cat confdefs.h >>conftest.$ac_ext
12352cat >>conftest.$ac_ext <<_ACEOF
12353/* end confdefs.h. */
12354#ifdef __STDC__
12355# include <limits.h>
12356#else
12357# include <assert.h>
12358#endif
ac1cb8d3 12359 Syntax error
a848cd7e
SC
12360_ACEOF
12361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12363 ac_status=$?
12364 grep -v '^ *+' conftest.er1 >conftest.err
12365 rm -f conftest.er1
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } >/dev/null; then
12369 if test -s conftest.err; then
12370 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12372 else
12373 ac_cpp_err=
12374 fi
12375else
12376 ac_cpp_err=yes
12377fi
12378if test -z "$ac_cpp_err"; then
12379 :
12380else
12381 echo "$as_me: failed program was:" >&5
12382sed 's/^/| /' conftest.$ac_ext >&5
12383
12384 # Broken: fails on valid input.
12385continue
12386fi
12387rm -f conftest.err conftest.$ac_ext
12388
12389 # OK, works on sane cases. Now check whether non-existent headers
12390 # can be detected and how.
12391 cat >conftest.$ac_ext <<_ACEOF
12392/* confdefs.h. */
12393_ACEOF
12394cat confdefs.h >>conftest.$ac_ext
12395cat >>conftest.$ac_ext <<_ACEOF
12396/* end confdefs.h. */
12397#include <ac_nonexistent.h>
12398_ACEOF
12399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12401 ac_status=$?
12402 grep -v '^ *+' conftest.er1 >conftest.err
12403 rm -f conftest.er1
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } >/dev/null; then
12407 if test -s conftest.err; then
12408 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12410 else
12411 ac_cpp_err=
12412 fi
12413else
12414 ac_cpp_err=yes
12415fi
12416if test -z "$ac_cpp_err"; then
12417 # Broken: success on invalid input.
12418continue
12419else
12420 echo "$as_me: failed program was:" >&5
12421sed 's/^/| /' conftest.$ac_ext >&5
12422
12423 # Passes both tests.
12424ac_preproc_ok=:
12425break
12426fi
12427rm -f conftest.err conftest.$ac_ext
12428
12429done
12430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12431rm -f conftest.err conftest.$ac_ext
12432if $ac_preproc_ok; then
12433 :
12434else
12435 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12436See \`config.log' for more details." >&5
12437echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12438See \`config.log' for more details." >&2;}
12439 { (exit 1); exit 1; }; }
12440fi
12441
12442ac_ext=c
12443ac_cpp='$CPP $CPPFLAGS'
12444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12446ac_compiler_gnu=$ac_cv_c_compiler_gnu
12447
12448
12449echo "$as_me:$LINENO: checking for egrep" >&5
12450echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12451if test "${ac_cv_prog_egrep+set}" = set; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12453else
12454 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12455 then ac_cv_prog_egrep='grep -E'
12456 else ac_cv_prog_egrep='egrep'
12457 fi
12458fi
12459echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12460echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12461 EGREP=$ac_cv_prog_egrep
12462
12463
12464if test $ac_cv_c_compiler_gnu = yes; then
12465 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12466echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12467if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12469else
12470 ac_pattern="Autoconf.*'x'"
12471 cat >conftest.$ac_ext <<_ACEOF
12472/* confdefs.h. */
12473_ACEOF
12474cat confdefs.h >>conftest.$ac_ext
12475cat >>conftest.$ac_ext <<_ACEOF
12476/* end confdefs.h. */
12477#include <sgtty.h>
12478Autoconf TIOCGETP
12479_ACEOF
12480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12481 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12482 ac_cv_prog_gcc_traditional=yes
12483else
12484 ac_cv_prog_gcc_traditional=no
12485fi
12486rm -f conftest*
12487
12488
12489 if test $ac_cv_prog_gcc_traditional = no; then
12490 cat >conftest.$ac_ext <<_ACEOF
12491/* confdefs.h. */
12492_ACEOF
12493cat confdefs.h >>conftest.$ac_ext
12494cat >>conftest.$ac_ext <<_ACEOF
12495/* end confdefs.h. */
12496#include <termio.h>
12497Autoconf TCGETA
12498_ACEOF
12499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12500 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12501 ac_cv_prog_gcc_traditional=yes
12502fi
12503rm -f conftest*
12504
12505 fi
12506fi
12507echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12508echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12509 if test $ac_cv_prog_gcc_traditional = yes; then
12510 CC="$CC -traditional"
12511 fi
12512fi
12513
12514
12515
12516
12517ac_ext=cc
12518ac_cpp='$CXXCPP $CPPFLAGS'
12519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12522
12523
12524CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12525
12526
12527 ac_ext=cc
a848cd7e
SC
12528ac_cpp='$CXXCPP $CPPFLAGS'
12529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12532if test -n "$ac_tool_prefix"; then
12533 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12534 do
12535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12536set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12537echo "$as_me:$LINENO: checking for $ac_word" >&5
12538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12539if test "${ac_cv_prog_CXX+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12541else
12542 if test -n "$CXX"; then
12543 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12544else
12545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546for as_dir in $PATH
12547do
12548 IFS=$as_save_IFS
12549 test -z "$as_dir" && as_dir=.
12550 for ac_exec_ext in '' $ac_executable_extensions; do
12551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12552 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12554 break 2
12555 fi
12556done
12557done
12558
12559fi
12560fi
12561CXX=$ac_cv_prog_CXX
12562if test -n "$CXX"; then
12563 echo "$as_me:$LINENO: result: $CXX" >&5
12564echo "${ECHO_T}$CXX" >&6
12565else
12566 echo "$as_me:$LINENO: result: no" >&5
12567echo "${ECHO_T}no" >&6
12568fi
12569
12570 test -n "$CXX" && break
12571 done
12572fi
12573if test -z "$CXX"; then
12574 ac_ct_CXX=$CXX
12575 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12576do
12577 # Extract the first word of "$ac_prog", so it can be a program name with args.
12578set dummy $ac_prog; ac_word=$2
12579echo "$as_me:$LINENO: checking for $ac_word" >&5
12580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12581if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12583else
12584 if test -n "$ac_ct_CXX"; then
12585 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12586else
12587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588for as_dir in $PATH
12589do
12590 IFS=$as_save_IFS
12591 test -z "$as_dir" && as_dir=.
12592 for ac_exec_ext in '' $ac_executable_extensions; do
12593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12594 ac_cv_prog_ac_ct_CXX="$ac_prog"
12595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12596 break 2
12597 fi
12598done
12599done
12600
12601fi
12602fi
12603ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12604if test -n "$ac_ct_CXX"; then
12605 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12606echo "${ECHO_T}$ac_ct_CXX" >&6
12607else
12608 echo "$as_me:$LINENO: result: no" >&5
12609echo "${ECHO_T}no" >&6
12610fi
12611
12612 test -n "$ac_ct_CXX" && break
12613done
12614test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12615
12616 CXX=$ac_ct_CXX
12617fi
12618
12619
12620# Provide some information about the compiler.
12621echo "$as_me:$LINENO:" \
12622 "checking for C++ compiler version" >&5
12623ac_compiler=`set X $ac_compile; echo $2`
12624{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12625 (eval $ac_compiler --version </dev/null >&5) 2>&5
12626 ac_status=$?
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }
12629{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12630 (eval $ac_compiler -v </dev/null >&5) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }
12634{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12635 (eval $ac_compiler -V </dev/null >&5) 2>&5
12636 ac_status=$?
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }
12639
12640echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12641echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12642if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12644else
12645 cat >conftest.$ac_ext <<_ACEOF
12646/* confdefs.h. */
12647_ACEOF
12648cat confdefs.h >>conftest.$ac_ext
12649cat >>conftest.$ac_ext <<_ACEOF
12650/* end confdefs.h. */
12651
12652int
12653main ()
12654{
12655#ifndef __GNUC__
12656 choke me
12657#endif
12658
12659 ;
12660 return 0;
12661}
12662_ACEOF
12663rm -f conftest.$ac_objext
12664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12665 (eval $ac_compile) 2>conftest.er1
a848cd7e 12666 ac_status=$?
ac1cb8d3
VS
12667 grep -v '^ *+' conftest.er1 >conftest.err
12668 rm -f conftest.er1
12669 cat conftest.err >&5
a848cd7e
SC
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
6ebeb4c7 12672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; } &&
12678 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; }; then
12684 ac_compiler_gnu=yes
12685else
12686 echo "$as_me: failed program was:" >&5
12687sed 's/^/| /' conftest.$ac_ext >&5
12688
12689ac_compiler_gnu=no
12690fi
ac1cb8d3 12691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12692ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12693
12694fi
12695echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12696echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12697GXX=`test $ac_compiler_gnu = yes && echo yes`
12698ac_test_CXXFLAGS=${CXXFLAGS+set}
12699ac_save_CXXFLAGS=$CXXFLAGS
12700CXXFLAGS="-g"
12701echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12702echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12703if test "${ac_cv_prog_cxx_g+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12705else
12706 cat >conftest.$ac_ext <<_ACEOF
12707/* confdefs.h. */
12708_ACEOF
12709cat confdefs.h >>conftest.$ac_ext
12710cat >>conftest.$ac_ext <<_ACEOF
12711/* end confdefs.h. */
12712
12713int
12714main ()
12715{
12716
12717 ;
12718 return 0;
12719}
12720_ACEOF
12721rm -f conftest.$ac_objext
12722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12723 (eval $ac_compile) 2>conftest.er1
a848cd7e 12724 ac_status=$?
ac1cb8d3
VS
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
a848cd7e
SC
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
6ebeb4c7 12730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; } &&
12736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_cv_prog_cxx_g=yes
12743else
12744 echo "$as_me: failed program was:" >&5
12745sed 's/^/| /' conftest.$ac_ext >&5
12746
12747ac_cv_prog_cxx_g=no
12748fi
ac1cb8d3 12749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12750fi
12751echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12752echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12753if test "$ac_test_CXXFLAGS" = set; then
12754 CXXFLAGS=$ac_save_CXXFLAGS
12755elif test $ac_cv_prog_cxx_g = yes; then
12756 if test "$GXX" = yes; then
1c14217d 12757 CXXFLAGS="-g -O2"
a848cd7e 12758 else
1c14217d 12759 CXXFLAGS="-g"
a848cd7e
SC
12760 fi
12761else
12762 if test "$GXX" = yes; then
12763 CXXFLAGS="-O2"
12764 else
12765 CXXFLAGS=
12766 fi
12767fi
12768for ac_declaration in \
ac1cb8d3 12769 '' \
a848cd7e
SC
12770 'extern "C" void std::exit (int) throw (); using std::exit;' \
12771 'extern "C" void std::exit (int); using std::exit;' \
12772 'extern "C" void exit (int) throw ();' \
12773 'extern "C" void exit (int);' \
12774 'void exit (int);'
12775do
12776 cat >conftest.$ac_ext <<_ACEOF
12777/* confdefs.h. */
12778_ACEOF
12779cat confdefs.h >>conftest.$ac_ext
12780cat >>conftest.$ac_ext <<_ACEOF
12781/* end confdefs.h. */
de59c161 12782$ac_declaration
ac1cb8d3 12783#include <stdlib.h>
a848cd7e
SC
12784int
12785main ()
12786{
12787exit (42);
12788 ;
12789 return 0;
12790}
12791_ACEOF
12792rm -f conftest.$ac_objext
12793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12794 (eval $ac_compile) 2>conftest.er1
a848cd7e 12795 ac_status=$?
ac1cb8d3
VS
12796 grep -v '^ *+' conftest.er1 >conftest.err
12797 rm -f conftest.er1
12798 cat conftest.err >&5
a848cd7e
SC
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
6ebeb4c7 12801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; } &&
12807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12810 ac_status=$?
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 :
12814else
12815 echo "$as_me: failed program was:" >&5
12816sed 's/^/| /' conftest.$ac_ext >&5
12817
12818continue
12819fi
ac1cb8d3 12820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12821 cat >conftest.$ac_ext <<_ACEOF
12822/* confdefs.h. */
12823_ACEOF
12824cat confdefs.h >>conftest.$ac_ext
12825cat >>conftest.$ac_ext <<_ACEOF
12826/* end confdefs.h. */
12827$ac_declaration
12828int
12829main ()
12830{
12831exit (42);
12832 ;
12833 return 0;
12834}
12835_ACEOF
12836rm -f conftest.$ac_objext
12837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12838 (eval $ac_compile) 2>conftest.er1
a848cd7e 12839 ac_status=$?
ac1cb8d3
VS
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
a848cd7e
SC
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
6ebeb4c7 12845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 break
12858else
12859 echo "$as_me: failed program was:" >&5
12860sed 's/^/| /' conftest.$ac_ext >&5
12861
12862fi
ac1cb8d3 12863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12864done
12865rm -f conftest*
12866if test -n "$ac_declaration"; then
12867 echo '#ifdef __cplusplus' >>confdefs.h
12868 echo $ac_declaration >>confdefs.h
12869 echo '#endif' >>confdefs.h
12870fi
12871
12872ac_ext=cc
12873ac_cpp='$CXXCPP $CPPFLAGS'
12874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12877
ab0ad5f1
VZ
12878
12879
12880 ac_ext=cc
12881ac_cpp='$CXXCPP $CPPFLAGS'
12882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12885
12886 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
12887echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
12888if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890else
12891 cat >conftest.$ac_ext <<_ACEOF
12892/* confdefs.h. */
12893_ACEOF
12894cat confdefs.h >>conftest.$ac_ext
12895cat >>conftest.$ac_ext <<_ACEOF
12896/* end confdefs.h. */
12897
12898int
12899main ()
12900{
12901
12902 #ifndef __INTEL_COMPILER
12903 choke me
12904 #endif
12905
12906 ;
12907 return 0;
12908}
12909_ACEOF
12910rm -f conftest.$ac_objext
12911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12912 (eval $ac_compile) 2>conftest.er1
12913 ac_status=$?
12914 grep -v '^ *+' conftest.er1 >conftest.err
12915 rm -f conftest.er1
12916 cat conftest.err >&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; } &&
12925 { ac_try='test -s conftest.$ac_objext'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12928 ac_status=$?
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; }; then
12931 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
12932else
12933 echo "$as_me: failed program was:" >&5
12934sed 's/^/| /' conftest.$ac_ext >&5
12935
12936bakefile_cv_cxx_compiler___INTEL_COMPILER=no
12937
12938fi
12939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12940
12941
12942fi
12943echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
12944echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
12945 ac_ext=cc
12946ac_cpp='$CXXCPP $CPPFLAGS'
12947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12950
12951 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
12952 :; INTELCXX=yes
12953 else
12954 :;
12955 fi
12956
12957
12958 if test "x$GXX" != "xyes"; then
12959 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12960echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12961if test "${wx_cv_cxx_exto+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12963else
12964 cat >conftest.$ac_ext <<_ACEOF
12965/* confdefs.h. */
12966_ACEOF
12967cat confdefs.h >>conftest.$ac_ext
12968cat >>conftest.$ac_ext <<_ACEOF
12969/* end confdefs.h. */
12970
12971int
12972main ()
12973{
12974
12975 ;
12976 return 0;
12977}
12978_ACEOF
12979rm -f conftest.$ac_objext conftest.$ac_ext.o
12980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12981 (eval $ac_compile) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; then
12985 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12986 case $ac_file in
12987 conftest.$ac_ext.o)
12988 wx_cv_cxx_exto="-ext o"
12989 ;;
12990 *)
12991 ;;
12992 esac
12993done
12994else
12995 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12996See \`config.log' for more details." >&5
12997echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12998See \`config.log' for more details." >&2;}
12999 { (exit 1); exit 1; }; }
13000
13001fi
13002
13003rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13004
13005fi
13006echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
13007echo "${ECHO_T}$wx_cv_cxx_exto" >&6
13008if test "x$wx_cv_cxx_exto" '!=' "x"; then
13009 if test "cxx" = "c"; then
13010 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
13011 fi
13012 if test "cxx" = "cxx"; then
13013 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
13014 fi
13015fi
13016
ab0ad5f1
VZ
13017 if test "x$wx_cv_cxx_exto" '!=' "x"; then
13018 unset ac_cv_prog_cxx_g
13019 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
13020ac_save_CXXFLAGS=$CXXFLAGS
13021CXXFLAGS="-g"
13022echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13023echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13024if test "${ac_cv_prog_cxx_g+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13026else
13027 cat >conftest.$ac_ext <<_ACEOF
13028/* confdefs.h. */
13029_ACEOF
13030cat confdefs.h >>conftest.$ac_ext
13031cat >>conftest.$ac_ext <<_ACEOF
13032/* end confdefs.h. */
13033
13034int
13035main ()
13036{
13037
13038 ;
13039 return 0;
13040}
13041_ACEOF
13042rm -f conftest.$ac_objext
13043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13044 (eval $ac_compile) 2>conftest.er1
13045 ac_status=$?
13046 grep -v '^ *+' conftest.er1 >conftest.err
13047 rm -f conftest.er1
13048 cat conftest.err >&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } &&
6ebeb4c7 13051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053 (eval $ac_try) 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; } &&
13057 { ac_try='test -s conftest.$ac_objext'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13063 ac_cv_prog_cxx_g=yes
13064else
13065 echo "$as_me: failed program was:" >&5
13066sed 's/^/| /' conftest.$ac_ext >&5
13067
13068ac_cv_prog_cxx_g=no
13069fi
13070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13071fi
13072echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13073echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13074if test "$ac_test_CXXFLAGS" = set; then
13075 CXXFLAGS=$ac_save_CXXFLAGS
13076elif test $ac_cv_prog_cxx_g = yes; then
13077 if test "$GXX" = yes; then
1c14217d 13078 CXXFLAGS="-g -O2"
480ccd21 13079 else
1c14217d 13080 CXXFLAGS="-g"
480ccd21
DE
13081 fi
13082else
13083 if test "$GXX" = yes; then
13084 CXXFLAGS="-O2"
13085 else
13086 CXXFLAGS=
13087 fi
13088fi
ab0ad5f1
VZ
13089 fi
13090 ac_ext=cc
95986553
DE
13091ac_cpp='$CXXCPP $CPPFLAGS'
13092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13095
13096echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13097echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13098if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13100else
13101 cat >conftest.$ac_ext <<_ACEOF
13102/* confdefs.h. */
13103_ACEOF
13104cat confdefs.h >>conftest.$ac_ext
13105cat >>conftest.$ac_ext <<_ACEOF
13106/* end confdefs.h. */
13107
13108int
13109main ()
13110{
13111#ifndef __MWERKS__
13112 choke me
13113#endif
13114
13115 ;
13116 return 0;
13117}
13118_ACEOF
13119rm -f conftest.$ac_objext
13120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13121 (eval $ac_compile) 2>conftest.er1
13122 ac_status=$?
13123 grep -v '^ *+' conftest.er1 >conftest.err
13124 rm -f conftest.er1
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } &&
6ebeb4c7 13128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13131 ac_status=$?
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; } &&
13134 { ac_try='test -s conftest.$ac_objext'
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13137 ac_status=$?
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }; then
13140 bakefile_compiler_mwerks=yes
13141else
13142 echo "$as_me: failed program was:" >&5
13143sed 's/^/| /' conftest.$ac_ext >&5
13144
13145bakefile_compiler_mwerks=no
13146fi
13147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13148 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13149
13150fi
13151echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13152echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13153
0e6fa1d9 13154MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13155ac_ext=cc
13156ac_cpp='$CXXCPP $CPPFLAGS'
13157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13160
13161
ab0ad5f1 13162 ac_ext=cc
9273ffba
DE
13163ac_cpp='$CXXCPP $CPPFLAGS'
13164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13167
13168echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13169echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
13170if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13172else
13173 cat >conftest.$ac_ext <<_ACEOF
13174/* confdefs.h. */
13175_ACEOF
13176cat confdefs.h >>conftest.$ac_ext
13177cat >>conftest.$ac_ext <<_ACEOF
13178/* end confdefs.h. */
13179
13180int
13181main ()
13182{
13183#ifndef __xlC__
13184 choke me
13185#endif
13186
13187 ;
13188 return 0;
13189}
13190_ACEOF
13191rm -f conftest.$ac_objext
13192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13193 (eval $ac_compile) 2>conftest.er1
13194 ac_status=$?
13195 grep -v '^ *+' conftest.er1 >conftest.err
13196 rm -f conftest.er1
13197 cat conftest.err >&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } &&
6ebeb4c7 13200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13203 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; } &&
13206 { ac_try='test -s conftest.$ac_objext'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13209 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; }; then
13212 wx_compiler_xlc=yes
13213else
13214 echo "$as_me: failed program was:" >&5
13215sed 's/^/| /' conftest.$ac_ext >&5
13216
13217wx_compiler_xlc=no
13218fi
13219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13220 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
13221
13222fi
13223echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
13224echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
13225
0e6fa1d9 13226XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13227ac_ext=cc
13228ac_cpp='$CXXCPP $CPPFLAGS'
13229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13232
13233
95986553 13234
6dcfc289 13235
0ad5d837
VZ
13236 ac_ext=cc
13237ac_cpp='$CXXCPP $CPPFLAGS'
13238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13241
13242 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13243echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13244if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13245 echo $ECHO_N "(cached) $ECHO_C" >&6
13246else
13247 cat >conftest.$ac_ext <<_ACEOF
13248/* confdefs.h. */
13249_ACEOF
13250cat confdefs.h >>conftest.$ac_ext
13251cat >>conftest.$ac_ext <<_ACEOF
13252/* end confdefs.h. */
13253
13254int
13255main ()
13256{
13257
13258 #ifndef _SGI_COMPILER_VERSION
13259 choke me
13260 #endif
13261
13262 ;
13263 return 0;
13264}
13265_ACEOF
13266rm -f conftest.$ac_objext
13267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13268 (eval $ac_compile) 2>conftest.er1
13269 ac_status=$?
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
13275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; } &&
13281 { ac_try='test -s conftest.$ac_objext'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13284 ac_status=$?
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13287 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13288else
13289 echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
13292bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13293
13294fi
13295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13296
13297
13298fi
13299echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13300echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13301 ac_ext=cc
13302ac_cpp='$CXXCPP $CPPFLAGS'
13303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13306
13307 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13308 :; SGICXX=yes
13309 else
13310 :;
13311 fi
13312
13313
13314
13315
a9e5b1f0
MW
13316 ac_ext=cc
13317ac_cpp='$CXXCPP $CPPFLAGS'
13318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13321
13322 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
13323echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
13324if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13326else
13327 cat >conftest.$ac_ext <<_ACEOF
13328/* confdefs.h. */
13329_ACEOF
13330cat confdefs.h >>conftest.$ac_ext
13331cat >>conftest.$ac_ext <<_ACEOF
13332/* end confdefs.h. */
13333
13334int
13335main ()
13336{
13337
13338 #ifndef __SUNPRO_CC
13339 choke me
13340 #endif
13341
13342 ;
13343 return 0;
13344}
13345_ACEOF
13346rm -f conftest.$ac_objext
13347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13348 (eval $ac_compile) 2>conftest.er1
13349 ac_status=$?
13350 grep -v '^ *+' conftest.er1 >conftest.err
13351 rm -f conftest.er1
13352 cat conftest.err >&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); } &&
6ebeb4c7 13355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; } &&
13361 { ac_try='test -s conftest.$ac_objext'
13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; }; then
13367 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13368else
13369 echo "$as_me: failed program was:" >&5
13370sed 's/^/| /' conftest.$ac_ext >&5
13371
13372bakefile_cv_cxx_compiler___SUNPRO_CC=no
13373
13374fi
13375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13376
13377
13378fi
13379echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13380echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13381 ac_ext=cc
13382ac_cpp='$CXXCPP $CPPFLAGS'
13383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13386
13387 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13388 :; SUNCXX=yes
13389 else
13390 :;
13391 fi
13392
13393
ab0ad5f1 13394 fi
a9e5b1f0
MW
13395
13396
a848cd7e
SC
13397ac_ext=c
13398ac_cpp='$CPP $CPPFLAGS'
13399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13401ac_compiler_gnu=$ac_cv_c_compiler_gnu
13402
13403
a848cd7e
SC
13404if test -n "$ac_tool_prefix"; then
13405 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13406set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13407echo "$as_me:$LINENO: checking for $ac_word" >&5
13408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13409if test "${ac_cv_prog_RANLIB+set}" = set; then
13410 echo $ECHO_N "(cached) $ECHO_C" >&6
13411else
13412 if test -n "$RANLIB"; then
13413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13414else
13415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13416for as_dir in $PATH
13417do
13418 IFS=$as_save_IFS
13419 test -z "$as_dir" && as_dir=.
13420 for ac_exec_ext in '' $ac_executable_extensions; do
13421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13424 break 2
13425 fi
13426done
13427done
13428
13429fi
13430fi
13431RANLIB=$ac_cv_prog_RANLIB
13432if test -n "$RANLIB"; then
13433 echo "$as_me:$LINENO: result: $RANLIB" >&5
13434echo "${ECHO_T}$RANLIB" >&6
13435else
13436 echo "$as_me:$LINENO: result: no" >&5
13437echo "${ECHO_T}no" >&6
13438fi
13439
13440fi
13441if test -z "$ac_cv_prog_RANLIB"; then
13442 ac_ct_RANLIB=$RANLIB
13443 # Extract the first word of "ranlib", so it can be a program name with args.
13444set dummy ranlib; ac_word=$2
13445echo "$as_me:$LINENO: checking for $ac_word" >&5
13446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13447if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449else
13450 if test -n "$ac_ct_RANLIB"; then
13451 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13452else
13453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13454for as_dir in $PATH
13455do
13456 IFS=$as_save_IFS
13457 test -z "$as_dir" && as_dir=.
13458 for ac_exec_ext in '' $ac_executable_extensions; do
13459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13460 ac_cv_prog_ac_ct_RANLIB="ranlib"
13461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13462 break 2
13463 fi
13464done
13465done
13466
13467 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13468fi
13469fi
13470ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13471if test -n "$ac_ct_RANLIB"; then
13472 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13473echo "${ECHO_T}$ac_ct_RANLIB" >&6
13474else
13475 echo "$as_me:$LINENO: result: no" >&5
13476echo "${ECHO_T}no" >&6
13477fi
13478
13479 RANLIB=$ac_ct_RANLIB
13480else
13481 RANLIB="$ac_cv_prog_RANLIB"
13482fi
13483
13484
8c80d384
DE
13485if test -n "$ac_tool_prefix"; then
13486 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13487set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
13488echo "$as_me:$LINENO: checking for $ac_word" >&5
13489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13490if test "${ac_cv_prog_AR+set}" = set; then
13491 echo $ECHO_N "(cached) $ECHO_C" >&6
13492else
13493 if test -n "$AR"; then
13494 ac_cv_prog_AR="$AR" # Let the user override the test.
13495else
13496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497for as_dir in $PATH
13498do
13499 IFS=$as_save_IFS
13500 test -z "$as_dir" && as_dir=.
13501 for ac_exec_ext in '' $ac_executable_extensions; do
13502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 13503 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
13504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13505 break 2
13506 fi
13507done
13508done
13509
13510fi
13511fi
13512AR=$ac_cv_prog_AR
13513if test -n "$AR"; then
13514 echo "$as_me:$LINENO: result: $AR" >&5
13515echo "${ECHO_T}$AR" >&6
13516else
13517 echo "$as_me:$LINENO: result: no" >&5
13518echo "${ECHO_T}no" >&6
13519fi
13520
8c80d384
DE
13521fi
13522if test -z "$ac_cv_prog_AR"; then
13523 ac_ct_AR=$AR
13524 # Extract the first word of "ar", so it can be a program name with args.
13525set dummy ar; ac_word=$2
13526echo "$as_me:$LINENO: checking for $ac_word" >&5
13527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13528if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13530else
13531 if test -n "$ac_ct_AR"; then
13532 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13533else
13534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535for as_dir in $PATH
13536do
13537 IFS=$as_save_IFS
13538 test -z "$as_dir" && as_dir=.
13539 for ac_exec_ext in '' $ac_executable_extensions; do
13540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13541 ac_cv_prog_ac_ct_AR="ar"
13542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13543 break 2
13544 fi
13545done
13546done
13547
13548fi
13549fi
13550ac_ct_AR=$ac_cv_prog_ac_ct_AR
13551if test -n "$ac_ct_AR"; then
13552 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13553echo "${ECHO_T}$ac_ct_AR" >&6
13554else
13555 echo "$as_me:$LINENO: result: no" >&5
13556echo "${ECHO_T}no" >&6
13557fi
13558
13559 AR=$ac_ct_AR
13560else
13561 AR="$ac_cv_prog_AR"
13562fi
13563
a848cd7e 13564if test "x$AR" = "x" ; then
77ffb593
JS
13565 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13566echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13567 { (exit 1); exit 1; }; }
13568fi
13569
13570# Find a good install program. We prefer a C program (faster),
13571# so one script is as good as another. But avoid the broken or
13572# incompatible versions:
13573# SysV /etc/install, /usr/sbin/install
13574# SunOS /usr/etc/install
13575# IRIX /sbin/install
13576# AIX /bin/install
13577# AmigaOS /C/install, which installs bootblocks on floppy discs
13578# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13579# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13580# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13581# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13582# ./install, which can be erroneously created by make from ./install.sh.
13583echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13584echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13585if test -z "$INSTALL"; then
13586if test "${ac_cv_path_install+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588else
13589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590for as_dir in $PATH
13591do
13592 IFS=$as_save_IFS
13593 test -z "$as_dir" && as_dir=.
13594 # Account for people who put trailing slashes in PATH elements.
13595case $as_dir/ in
13596 ./ | .// | /cC/* | \
13597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13598 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13599 /usr/ucb/* ) ;;
13600 *)
13601 # OSF1 and SCO ODT 3.0 have their own names for install.
13602 # Don't use installbsd from OSF since it installs stuff as root
13603 # by default.
13604 for ac_prog in ginstall scoinst install; do
13605 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13606 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13607 if test $ac_prog = install &&
13608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13609 # AIX install. It has an incompatible calling convention.
13610 :
13611 elif test $ac_prog = install &&
13612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13613 # program-specific install script used by HP pwplus--don't use.
13614 :
13615 else
13616 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13617 break 3
13618 fi
13619 fi
a848cd7e
SC
13620 done
13621 done
13622 ;;
13623esac
13624done
13625
13626
13627fi
13628 if test "${ac_cv_path_install+set}" = set; then
13629 INSTALL=$ac_cv_path_install
13630 else
13631 # As a last resort, use the slow shell script. We don't cache a
13632 # path for INSTALL within a source directory, because that will
13633 # break other packages using the cache if that directory is
13634 # removed, or if the path is relative.
13635 INSTALL=$ac_install_sh
13636 fi
13637fi
13638echo "$as_me:$LINENO: result: $INSTALL" >&5
13639echo "${ECHO_T}$INSTALL" >&6
13640
13641# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13642# It thinks the first close brace ends the variable substitution.
13643test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13644
13645test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13646
13647test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13648
13649
13650case ${INSTALL} in
13651 /* ) # Absolute
13652 ;;
13653 ?:* ) # Drive letter, considered as absolute.
13654 ;;
13655 *)
13656 INSTALL=`pwd`/${INSTALL} ;;
13657esac
13658
a848cd7e
SC
13659
13660case "${host}" in
13661
cfda0ea8 13662 *-*-darwin* )
a848cd7e
SC
13663 INSTALL_PROGRAM="cp -fp"
13664 INSTALL_DATA="cp -fp"
13665 ;;
13666 *)
13667 ;;
13668esac
13669
8c80d384
DE
13670if test -n "$ac_tool_prefix"; then
13671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13672set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
13673echo "$as_me:$LINENO: checking for $ac_word" >&5
13674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13675if test "${ac_cv_prog_STRIP+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13677else
13678 if test -n "$STRIP"; then
13679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13680else
13681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13682for as_dir in $PATH
13683do
13684 IFS=$as_save_IFS
13685 test -z "$as_dir" && as_dir=.
13686 for ac_exec_ext in '' $ac_executable_extensions; do
13687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 13688 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
13689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13690 break 2
13691 fi
13692done
13693done
13694
a848cd7e
SC
13695fi
13696fi
13697STRIP=$ac_cv_prog_STRIP
13698if test -n "$STRIP"; then
13699 echo "$as_me:$LINENO: result: $STRIP" >&5
13700echo "${ECHO_T}$STRIP" >&6
13701else
13702 echo "$as_me:$LINENO: result: no" >&5
13703echo "${ECHO_T}no" >&6
13704fi
13705
8c80d384
DE
13706fi
13707if test -z "$ac_cv_prog_STRIP"; then
13708 ac_ct_STRIP=$STRIP
13709 # Extract the first word of "strip", so it can be a program name with args.
13710set dummy strip; ac_word=$2
13711echo "$as_me:$LINENO: checking for $ac_word" >&5
13712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13713if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13714 echo $ECHO_N "(cached) $ECHO_C" >&6
13715else
13716 if test -n "$ac_ct_STRIP"; then
13717 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13718else
13719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720for as_dir in $PATH
13721do
13722 IFS=$as_save_IFS
13723 test -z "$as_dir" && as_dir=.
13724 for ac_exec_ext in '' $ac_executable_extensions; do
13725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13726 ac_cv_prog_ac_ct_STRIP="strip"
13727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13728 break 2
13729 fi
13730done
13731done
13732
13733 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
13734fi
13735fi
13736ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13737if test -n "$ac_ct_STRIP"; then
13738 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13739echo "${ECHO_T}$ac_ct_STRIP" >&6
13740else
13741 echo "$as_me:$LINENO: result: no" >&5
13742echo "${ECHO_T}no" >&6
13743fi
13744
13745 STRIP=$ac_ct_STRIP
13746else
13747 STRIP="$ac_cv_prog_STRIP"
13748fi
13749
13750
13751if test "$wxUSE_WINE" = "yes"; then
13752 if test -n "$ac_tool_prefix"; then
13753 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
13754set dummy ${ac_tool_prefix}wrc; ac_word=$2
13755echo "$as_me:$LINENO: checking for $ac_word" >&5
13756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13757if test "${ac_cv_prog_RESCOMP+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13759else
13760 if test -n "$RESCOMP"; then
13761 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13762else
13763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13764for as_dir in $PATH
13765do
13766 IFS=$as_save_IFS
13767 test -z "$as_dir" && as_dir=.
13768 for ac_exec_ext in '' $ac_executable_extensions; do
13769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13770 ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc"
13771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13772 break 2
13773 fi
13774done
13775done
13776
13777fi
13778fi
13779RESCOMP=$ac_cv_prog_RESCOMP
13780if test -n "$RESCOMP"; then
13781 echo "$as_me:$LINENO: result: $RESCOMP" >&5
13782echo "${ECHO_T}$RESCOMP" >&6
13783else
13784 echo "$as_me:$LINENO: result: no" >&5
13785echo "${ECHO_T}no" >&6
13786fi
13787
13788fi
13789if test -z "$ac_cv_prog_RESCOMP"; then
13790 ac_ct_RESCOMP=$RESCOMP
13791 # Extract the first word of "wrc", so it can be a program name with args.
13792set dummy wrc; ac_word=$2
13793echo "$as_me:$LINENO: checking for $ac_word" >&5
13794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13795if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13797else
13798 if test -n "$ac_ct_RESCOMP"; then
13799 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
13800else
13801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802for as_dir in $PATH
13803do
13804 IFS=$as_save_IFS
13805 test -z "$as_dir" && as_dir=.
13806 for ac_exec_ext in '' $ac_executable_extensions; do
13807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13808 ac_cv_prog_ac_ct_RESCOMP="wrc"
13809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13810 break 2
13811 fi
13812done
13813done
13814
13815fi
13816fi
13817ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
13818if test -n "$ac_ct_RESCOMP"; then
13819 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
13820echo "${ECHO_T}$ac_ct_RESCOMP" >&6
13821else
13822 echo "$as_me:$LINENO: result: no" >&5
13823echo "${ECHO_T}no" >&6
13824fi
13825
13826 RESCOMP=$ac_ct_RESCOMP
13827else
13828 RESCOMP="$ac_cv_prog_RESCOMP"
13829fi
13830
13831else
13832 case "${host}" in
13833 *-*-cygwin* | *-*-mingw32* )
13834 if test -n "$ac_tool_prefix"; then
13835 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13836set dummy ${ac_tool_prefix}windres; ac_word=$2
13837echo "$as_me:$LINENO: checking for $ac_word" >&5
13838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13839if test "${ac_cv_prog_RESCOMP+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13841else
13842 if test -n "$RESCOMP"; then
13843 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13844else
13845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846for as_dir in $PATH
13847do
13848 IFS=$as_save_IFS
13849 test -z "$as_dir" && as_dir=.
13850 for ac_exec_ext in '' $ac_executable_extensions; do
13851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13852 ac_cv_prog_RESCOMP="${ac_tool_prefix}windres"
13853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13854 break 2
13855 fi
13856done
13857done
13858
13859fi
13860fi
13861RESCOMP=$ac_cv_prog_RESCOMP
13862if test -n "$RESCOMP"; then
13863 echo "$as_me:$LINENO: result: $RESCOMP" >&5
13864echo "${ECHO_T}$RESCOMP" >&6
13865else
13866 echo "$as_me:$LINENO: result: no" >&5
13867echo "${ECHO_T}no" >&6
13868fi
13869
13870fi
13871if test -z "$ac_cv_prog_RESCOMP"; then
13872 ac_ct_RESCOMP=$RESCOMP
13873 # Extract the first word of "windres", so it can be a program name with args.
13874set dummy windres; ac_word=$2
13875echo "$as_me:$LINENO: checking for $ac_word" >&5
13876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13877if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
13879else
13880 if test -n "$ac_ct_RESCOMP"; then
13881 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
13882else
13883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13884for as_dir in $PATH
13885do
13886 IFS=$as_save_IFS
13887 test -z "$as_dir" && as_dir=.
13888 for ac_exec_ext in '' $ac_executable_extensions; do
13889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13890 ac_cv_prog_ac_ct_RESCOMP="windres"
13891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13892 break 2
13893 fi
13894done
13895done
13896
13897fi
13898fi
13899ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
13900if test -n "$ac_ct_RESCOMP"; then
13901 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
13902echo "${ECHO_T}$ac_ct_RESCOMP" >&6
13903else
13904 echo "$as_me:$LINENO: result: no" >&5
13905echo "${ECHO_T}no" >&6
13906fi
13907
13908 RESCOMP=$ac_ct_RESCOMP
13909else
13910 RESCOMP="$ac_cv_prog_RESCOMP"
13911fi
13912
13913 if test -n "$ac_tool_prefix"; then
13914 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13915set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13916echo "$as_me:$LINENO: checking for $ac_word" >&5
13917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13918if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13920else
13921 if test -n "$DLLTOOL"; then
13922 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13923else
13924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925for as_dir in $PATH
13926do
13927 IFS=$as_save_IFS
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13931 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13933 break 2
13934 fi
13935done
13936done
13937
13938fi
13939fi
13940DLLTOOL=$ac_cv_prog_DLLTOOL
13941if test -n "$DLLTOOL"; then
13942 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13943echo "${ECHO_T}$DLLTOOL" >&6
13944else
13945 echo "$as_me:$LINENO: result: no" >&5
13946echo "${ECHO_T}no" >&6
13947fi
13948
13949fi
13950if test -z "$ac_cv_prog_DLLTOOL"; then
13951 ac_ct_DLLTOOL=$DLLTOOL
13952 # Extract the first word of "dlltool", so it can be a program name with args.
13953set dummy dlltool; ac_word=$2
13954echo "$as_me:$LINENO: checking for $ac_word" >&5
13955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13956if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13958else
13959 if test -n "$ac_ct_DLLTOOL"; then
13960 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13961else
13962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13963for as_dir in $PATH
13964do
13965 IFS=$as_save_IFS
13966 test -z "$as_dir" && as_dir=.
13967 for ac_exec_ext in '' $ac_executable_extensions; do
13968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13969 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13971 break 2
13972 fi
13973done
13974done
13975
13976fi
13977fi
13978ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13979if test -n "$ac_ct_DLLTOOL"; then
13980 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13981echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13982else
13983 echo "$as_me:$LINENO: result: no" >&5
13984echo "${ECHO_T}no" >&6
13985fi
13986
13987 DLLTOOL=$ac_ct_DLLTOOL
13988else
13989 DLLTOOL="$ac_cv_prog_DLLTOOL"
13990fi
13991
13992 ;;
13993 esac
13994fi
a848cd7e
SC
13995
13996echo "$as_me:$LINENO: checking if make is GNU make" >&5
13997echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13998if test "${wx_cv_prog_makeisgnu+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14000else
14001
14002 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14003 egrep -s GNU > /dev/null); then
14004 wx_cv_prog_makeisgnu="yes"
14005 else
14006 wx_cv_prog_makeisgnu="no"
14007 fi
14008
14009fi
14010echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14011echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14012
14013if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14014 IF_GNU_MAKE=""
14015else
14016 IF_GNU_MAKE="#"
14017fi
14018
14019
14020
14021if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14022echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14023echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14024if test "${wx_cv_prog_makevpath+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14026else
14027
14028cat - << EOF > confMake
14029check : file
14030 cp \$? \$@
14031 cp \$? final_file
14032EOF
14033
14034if test ! -d sub ; then
14035 mkdir sub
14036fi
14037echo dummy > sub/file
14038${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14039RESULT=$?
14040rm -f sub/file check final_file confMake
14041rmdir sub
14042if test "$RESULT" = 0; then
14043 wx_cv_prog_makevpath="yes"
14044else
14045 wx_cv_prog_makevpath="no"
14046fi
14047
14048fi
14049echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14050echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14051
14052if test "x$wx_cv_prog_makevpath" != "xyes"; then
14053{ { echo "$as_me:$LINENO: error:
14054You need a make-utility that is able to use the variable
14055VPATH correctly.
14056If your version of make does not support VPATH correctly,
14057please install GNU-make (possibly as gmake), and start
14058configure with the following command:
14059export MAKE=gmake; ./configure for sh-type shells
14060setenv MAKE gmake; ./configure for csh-type shells
14061Also please do remember to use gmake in this case every time
14062you are trying to compile.
14063" >&5
14064echo "$as_me: error:
14065You need a make-utility that is able to use the variable
14066VPATH correctly.
14067If your version of make does not support VPATH correctly,
14068please install GNU-make (possibly as gmake), and start
14069configure with the following command:
14070export MAKE=gmake; ./configure for sh-type shells
14071setenv MAKE gmake; ./configure for csh-type shells
14072Also please do remember to use gmake in this case every time
14073you are trying to compile.
14074" >&2;}
14075 { (exit 1); exit 1; }; }
14076fi fi
14077echo "$as_me:$LINENO: checking whether ln -s works" >&5
14078echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14079LN_S=$as_ln_s
14080if test "$LN_S" = "ln -s"; then
14081 echo "$as_me:$LINENO: result: yes" >&5
14082echo "${ECHO_T}yes" >&6
14083else
14084 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14085echo "${ECHO_T}no, using $LN_S" >&6
14086fi
14087
14088
14089
2113bc77 14090if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
14091 CXXFLAGS="$CXXFLAGS -qunique"
14092fi
14093
4d7ec9f1
DE
14094case "${host}" in
14095 powerpc-*-darwin* )
14096 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14097echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14098 cat >conftest.$ac_ext <<_ACEOF
14099/* confdefs.h. */
14100_ACEOF
14101cat confdefs.h >>conftest.$ac_ext
14102cat >>conftest.$ac_ext <<_ACEOF
14103/* end confdefs.h. */
14104
14105int
14106main ()
14107{
14108#ifndef __POWERPC__
14109 choke me for lack of PowerPC
14110#endif
14111
14112 ;
14113 return 0;
14114}
14115_ACEOF
14116rm -f conftest.$ac_objext
14117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14118 (eval $ac_compile) 2>conftest.er1
14119 ac_status=$?
14120 grep -v '^ *+' conftest.er1 >conftest.err
14121 rm -f conftest.er1
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } &&
6ebeb4c7 14125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; } &&
14131 { ac_try='test -s conftest.$ac_objext'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
14137 echo "$as_me:$LINENO: result: yes" >&5
14138echo "${ECHO_T}yes" >&6
14139else
14140 echo "$as_me: failed program was:" >&5
14141sed 's/^/| /' conftest.$ac_ext >&5
14142
14143echo "$as_me:$LINENO: result: no" >&5
14144echo "${ECHO_T}no" >&6
14145 cat >>confdefs.h <<\_ACEOF
14146#define __POWERPC__ 1
14147_ACEOF
14148
14149
14150fi
14151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14152 ;;
14153esac
14154
14155case "${host}" in
14156 *-*-darwin* )
4d7ec9f1
DE
14157 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14158echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14159 cat >conftest.$ac_ext <<_ACEOF
14160/* confdefs.h. */
14161_ACEOF
14162cat confdefs.h >>conftest.$ac_ext
14163cat >>conftest.$ac_ext <<_ACEOF
14164/* end confdefs.h. */
14165#include <CoreFoundation/CFBase.h>
14166
14167int
14168main ()
14169{
14170
14171 ;
14172 return 0;
14173}
14174_ACEOF
14175rm -f conftest.$ac_objext
14176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14177 (eval $ac_compile) 2>conftest.er1
14178 ac_status=$?
14179 grep -v '^ *+' conftest.er1 >conftest.err
14180 rm -f conftest.er1
14181 cat conftest.err >&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } &&
6ebeb4c7 14184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest.$ac_objext'
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 echo "$as_me:$LINENO: result: yes" >&5
14197echo "${ECHO_T}yes" >&6
14198else
14199 echo "$as_me: failed program was:" >&5
14200sed 's/^/| /' conftest.$ac_ext >&5
14201
14202echo "$as_me:$LINENO: result: no" >&5
14203echo "${ECHO_T}no" >&6
14204 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14205echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14206 cat >conftest.$ac_ext <<_ACEOF
14207/* confdefs.h. */
14208_ACEOF
14209cat confdefs.h >>conftest.$ac_ext
14210cat >>conftest.$ac_ext <<_ACEOF
14211/* end confdefs.h. */
14212#define __CF_USE_FRAMEWORK_INCLUDES__
14213#include <CoreFoundation/CFBase.h>
14214
14215int
14216main ()
14217{
14218
14219 ;
14220 return 0;
14221}
14222_ACEOF
14223rm -f conftest.$ac_objext
14224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14225 (eval $ac_compile) 2>conftest.er1
14226 ac_status=$?
14227 grep -v '^ *+' conftest.er1 >conftest.err
14228 rm -f conftest.er1
14229 cat conftest.err >&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } &&
6ebeb4c7 14232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234 (eval $ac_try) 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }; } &&
14238 { ac_try='test -s conftest.$ac_objext'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }; then
14244 echo "$as_me:$LINENO: result: yes" >&5
14245echo "${ECHO_T}yes" >&6
14246 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
14247else
14248 echo "$as_me: failed program was:" >&5
14249sed 's/^/| /' conftest.$ac_ext >&5
14250
14251{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
14252See \`config.log' for more details." >&5
14253echo "$as_me: error: no. CoreFoundation not available.
14254See \`config.log' for more details." >&2;}
14255 { (exit 1); exit 1; }; }
14256
14257fi
14258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14259
14260
14261fi
14262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14263 ;;
14264esac
14265
a848cd7e
SC
14266case "${host}" in
14267 *-pc-os2_emx | *-pc-os2-emx )
14268 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
14269 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
14270echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
14271if test "${ac_cv_lib_cExt_drand48+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14273else
14274 ac_check_lib_save_LIBS=$LIBS
14275LIBS="-lcExt $LIBS"
14276cat >conftest.$ac_ext <<_ACEOF
14277/* confdefs.h. */
14278_ACEOF
14279cat confdefs.h >>conftest.$ac_ext
14280cat >>conftest.$ac_ext <<_ACEOF
14281/* end confdefs.h. */
14282
14283/* Override any gcc2 internal prototype to avoid an error. */
14284#ifdef __cplusplus
14285extern "C"
14286#endif
14287/* We use char because int might match the return type of a gcc2
14288 builtin and then its argument prototype would still apply. */
14289char drand48 ();
14290int
14291main ()
14292{
14293drand48 ();
14294 ;
14295 return 0;
14296}
14297_ACEOF
14298rm -f conftest.$ac_objext conftest$ac_exeext
14299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14300 (eval $ac_link) 2>conftest.er1
a848cd7e 14301 ac_status=$?
ac1cb8d3
VS
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
a848cd7e
SC
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
6ebeb4c7 14307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14310 ac_status=$?
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; } &&
14313 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14316 ac_status=$?
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; }; then
14319 ac_cv_lib_cExt_drand48=yes
14320else
14321 echo "$as_me: failed program was:" >&5
14322sed 's/^/| /' conftest.$ac_ext >&5
14323
14324ac_cv_lib_cExt_drand48=no
14325fi
ac1cb8d3
VS
14326rm -f conftest.err conftest.$ac_objext \
14327 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14328LIBS=$ac_check_lib_save_LIBS
14329fi
14330echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
14331echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
14332if test $ac_cv_lib_cExt_drand48 = yes; then
14333 LIBS="$LIBS -lcExt"
14334fi
14335
14336 else
14337 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
14338 fi
69120ee4
VZ
14339 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
14340echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
14341if test "${wx_cv_gccversion+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14343else
14344
391a765e
VS
14345 if test "$cross_compiling" = yes; then
14346 wx_cv_gccversion="EMX2"
14347
14348else
14349 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
14350/* confdefs.h. */
14351_ACEOF
14352cat confdefs.h >>conftest.$ac_ext
14353cat >>conftest.$ac_ext <<_ACEOF
14354/* end confdefs.h. */
14355
391a765e 14356 #include <stdio.h>
a848cd7e 14357
391a765e
VS
14358 int main()
14359 {
14360 FILE *f=fopen("conftestval", "w");
14361 if (!f) exit(1);
14362 fprintf(f,
a848cd7e 14363 #if (__GNUC__ < 3)
391a765e
VS
14364 "EMX2"
14365 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
14366 "EMX3"
14367 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
14368 "Innotek5"
14369 #else
14370 "Innotek6"
a848cd7e 14371 #endif
391a765e
VS
14372 );
14373 exit(0);
14374 }
a848cd7e 14375
a848cd7e 14376_ACEOF
391a765e
VS
14377rm -f conftest$ac_exeext
14378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14379 (eval $ac_link) 2>&5
ac1cb8d3
VS
14380 ac_status=$?
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 14382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
14383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14385 ac_status=$?
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; }; then
391a765e 14388 wx_cv_gccversion=`cat conftestval`
a848cd7e 14389else
391a765e
VS
14390 echo "$as_me: program exited with status $ac_status" >&5
14391echo "$as_me: failed program was:" >&5
a848cd7e
SC
14392sed 's/^/| /' conftest.$ac_ext >&5
14393
391a765e
VS
14394( exit $ac_status )
14395wx_cv_gccversion="EMX2"
a848cd7e 14396fi
391a765e 14397rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 14398fi
a848cd7e
SC
14399
14400fi
14401echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
14402echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 14403 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
14404 LIBS="$LIBS -lstdcpp"
14405 LDFLAGS="$LDFLAGS -Zsysv-signals"
14406 else
391a765e 14407 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 14408 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
14409 LDFLAGS="$LDFLAGS -Zsysv-signals"
14410 else
14411 LIBS="$LIBS -lstdc++"
14412 fi
14413 fi
94acd38e
DE
14414 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
14415 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
14416echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
14417 wxUSE_OMF=yes
2da0c077 14418 enable_omf=yes
a848cd7e
SC
14419 fi
14420 ;;
14421 *)
14422
14423
14424
14425 ac_ext=cc
14426ac_cpp='$CXXCPP $CPPFLAGS'
14427ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14428ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14429ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14430
14431
95986553 14432 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
14433echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
14434if test "${ac_cv_string_strcasecmp+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436else
14437
14438 cat >conftest.$ac_ext <<_ACEOF
14439/* confdefs.h. */
14440_ACEOF
14441cat confdefs.h >>conftest.$ac_ext
14442cat >>conftest.$ac_ext <<_ACEOF
14443/* end confdefs.h. */
14444
14445 #include <string.h>
14446
14447int
14448main ()
14449{
14450
14451 strcasecmp("foo", "bar");
14452
14453 ;
14454 return 0;
14455}
14456_ACEOF
14457rm -f conftest.$ac_objext conftest$ac_exeext
14458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14459 (eval $ac_link) 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_cxx_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_exeext'
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_cv_string_strcasecmp=yes
14479else
14480 echo "$as_me: failed program was:" >&5
14481sed 's/^/| /' conftest.$ac_ext >&5
14482
14483ac_cv_string_strcasecmp=no
14484
14485fi
ac1cb8d3
VS
14486rm -f conftest.err conftest.$ac_objext \
14487 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14488
14489fi
14490echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
14491echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
14492
14493 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
14494 cat >>confdefs.h <<\_ACEOF
14495#define HAVE_STRCASECMP_IN_STRING_H 1
14496_ACEOF
14497
14498 else
14499 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
14500echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
14501if test "${ac_cv_strings_strcasecmp+set}" = set; then
14502 echo $ECHO_N "(cached) $ECHO_C" >&6
14503else
14504
14505 cat >conftest.$ac_ext <<_ACEOF
14506/* confdefs.h. */
14507_ACEOF
14508cat confdefs.h >>conftest.$ac_ext
14509cat >>conftest.$ac_ext <<_ACEOF
14510/* end confdefs.h. */
14511
14512 #include <strings.h>
14513
14514int
14515main ()
14516{
14517
14518 strcasecmp("foo", "bar");
14519
14520 ;
14521 return 0;
14522}
14523_ACEOF
14524rm -f conftest.$ac_objext conftest$ac_exeext
14525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14526 (eval $ac_link) 2>conftest.er1
a848cd7e 14527 ac_status=$?
ac1cb8d3
VS
14528 grep -v '^ *+' conftest.er1 >conftest.err
14529 rm -f conftest.er1
14530 cat conftest.err >&5
a848cd7e
SC
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
6ebeb4c7 14533 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; } &&
14539 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14542 ac_status=$?
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }; then
14545 ac_cv_strings_strcasecmp=yes
14546else
14547 echo "$as_me: failed program was:" >&5
14548sed 's/^/| /' conftest.$ac_ext >&5
14549
14550ac_cv_strings_strcasecmp=no
14551
14552fi
ac1cb8d3
VS
14553rm -f conftest.err conftest.$ac_objext \
14554 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14555
14556fi
14557echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
14558echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
14559
0c3c69fc 14560 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
14561 cat >>confdefs.h <<\_ACEOF
14562#define HAVE_STRCASECMP_IN_STRINGS_H 1
14563_ACEOF
14564
14565 else
14566 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
14567echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
14568 { (exit 1); exit 1; }; }
14569 fi
14570 fi
14571
14572 ac_ext=c
14573ac_cpp='$CPP $CPPFLAGS'
14574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14576ac_compiler_gnu=$ac_cv_c_compiler_gnu
14577
14578 ;;
14579esac
14580
14581
14582echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14583echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14584if test "${ac_cv_header_stdc+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14586else
14587 cat >conftest.$ac_ext <<_ACEOF
14588/* confdefs.h. */
14589_ACEOF
14590cat confdefs.h >>conftest.$ac_ext
14591cat >>conftest.$ac_ext <<_ACEOF
14592/* end confdefs.h. */
14593#include <stdlib.h>
14594#include <stdarg.h>
14595#include <string.h>
14596#include <float.h>
14597
14598int
14599main ()
14600{
14601
14602 ;
14603 return 0;
14604}
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_cv_header_stdc=yes
14628else
14629 echo "$as_me: failed program was:" >&5
14630sed 's/^/| /' conftest.$ac_ext >&5
14631
14632ac_cv_header_stdc=no
14633fi
ac1cb8d3 14634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14635
14636if test $ac_cv_header_stdc = yes; then
14637 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14638 cat >conftest.$ac_ext <<_ACEOF
14639/* confdefs.h. */
14640_ACEOF
14641cat confdefs.h >>conftest.$ac_ext
14642cat >>conftest.$ac_ext <<_ACEOF
14643/* end confdefs.h. */
14644#include <string.h>
14645
14646_ACEOF
14647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14648 $EGREP "memchr" >/dev/null 2>&1; then
14649 :
14650else
14651 ac_cv_header_stdc=no
14652fi
14653rm -f conftest*
14654
14655fi
14656
14657if test $ac_cv_header_stdc = yes; then
14658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14659 cat >conftest.$ac_ext <<_ACEOF
14660/* confdefs.h. */
14661_ACEOF
14662cat confdefs.h >>conftest.$ac_ext
14663cat >>conftest.$ac_ext <<_ACEOF
14664/* end confdefs.h. */
14665#include <stdlib.h>
14666
14667_ACEOF
14668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14669 $EGREP "free" >/dev/null 2>&1; then
14670 :
14671else
14672 ac_cv_header_stdc=no
14673fi
14674rm -f conftest*
14675
14676fi
14677
14678if test $ac_cv_header_stdc = yes; then
14679 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14680 if test "$cross_compiling" = yes; then
14681 :
14682else
14683 cat >conftest.$ac_ext <<_ACEOF
14684/* confdefs.h. */
14685_ACEOF
14686cat confdefs.h >>conftest.$ac_ext
14687cat >>conftest.$ac_ext <<_ACEOF
14688/* end confdefs.h. */
14689#include <ctype.h>
14690#if ((' ' & 0x0FF) == 0x020)
14691# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14692# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14693#else
14694# define ISLOWER(c) \
ac1cb8d3
VS
14695 (('a' <= (c) && (c) <= 'i') \
14696 || ('j' <= (c) && (c) <= 'r') \
14697 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
14698# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14699#endif
14700
14701#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14702int
14703main ()
14704{
14705 int i;
14706 for (i = 0; i < 256; i++)
14707 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 14708 || toupper (i) != TOUPPER (i))
a848cd7e
SC
14709 exit(2);
14710 exit (0);
14711}
14712_ACEOF
14713rm -f conftest$ac_exeext
14714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14715 (eval $ac_link) 2>&5
14716 ac_status=$?
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 :
14725else
14726 echo "$as_me: program exited with status $ac_status" >&5
14727echo "$as_me: failed program was:" >&5
14728sed 's/^/| /' conftest.$ac_ext >&5
14729
14730( exit $ac_status )
14731ac_cv_header_stdc=no
14732fi
ac1cb8d3 14733rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14734fi
14735fi
14736fi
14737echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14738echo "${ECHO_T}$ac_cv_header_stdc" >&6
14739if test $ac_cv_header_stdc = yes; then
14740
14741cat >>confdefs.h <<\_ACEOF
14742#define STDC_HEADERS 1
14743_ACEOF
14744
14745fi
14746
14747# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 14758 inttypes.h stdint.h unistd.h
a848cd7e
SC
14759do
14760as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14761echo "$as_me:$LINENO: checking for $ac_header" >&5
14762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14763if eval "test \"\${$as_ac_Header+set}\" = set"; then
14764 echo $ECHO_N "(cached) $ECHO_C" >&6
14765else
14766 cat >conftest.$ac_ext <<_ACEOF
14767/* confdefs.h. */
14768_ACEOF
14769cat confdefs.h >>conftest.$ac_ext
14770cat >>conftest.$ac_ext <<_ACEOF
14771/* end confdefs.h. */
14772$ac_includes_default
14773
14774#include <$ac_header>
14775_ACEOF
14776rm -f conftest.$ac_objext
14777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14778 (eval $ac_compile) 2>conftest.er1
a848cd7e 14779 ac_status=$?
ac1cb8d3
VS
14780 grep -v '^ *+' conftest.er1 >conftest.err
14781 rm -f conftest.er1
14782 cat conftest.err >&5
a848cd7e
SC
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } &&
6ebeb4c7 14785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14797 eval "$as_ac_Header=yes"
14798else
14799 echo "$as_me: failed program was:" >&5
14800sed 's/^/| /' conftest.$ac_ext >&5
14801
14802eval "$as_ac_Header=no"
14803fi
ac1cb8d3 14804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14805fi
14806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14807echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14808if test `eval echo '${'$as_ac_Header'}'` = yes; then
14809 cat >>confdefs.h <<_ACEOF
14810#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14811_ACEOF
14812
14813fi
14814
14815done
14816
14817
14818
14819for ac_header in stdlib.h
14820do
14821as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14822if eval "test \"\${$as_ac_Header+set}\" = set"; then
14823 echo "$as_me:$LINENO: checking for $ac_header" >&5
14824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14825if eval "test \"\${$as_ac_Header+set}\" = set"; then
14826 echo $ECHO_N "(cached) $ECHO_C" >&6
14827fi
14828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14830else
14831 # Is the header compilable?
14832echo "$as_me:$LINENO: checking $ac_header usability" >&5
14833echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14834cat >conftest.$ac_ext <<_ACEOF
14835/* confdefs.h. */
14836_ACEOF
14837cat confdefs.h >>conftest.$ac_ext
14838cat >>conftest.$ac_ext <<_ACEOF
14839/* end confdefs.h. */
14840$ac_includes_default
14841#include <$ac_header>
14842_ACEOF
14843rm -f conftest.$ac_objext
14844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14845 (eval $ac_compile) 2>conftest.er1
a848cd7e 14846 ac_status=$?
ac1cb8d3
VS
14847 grep -v '^ *+' conftest.er1 >conftest.err
14848 rm -f conftest.er1
14849 cat conftest.err >&5
a848cd7e
SC
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } &&
6ebeb4c7 14852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14854 (eval $ac_try) 2>&5
14855 ac_status=$?
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); }; } &&
14858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14861 ac_status=$?
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }; then
14864 ac_header_compiler=yes
14865else
14866 echo "$as_me: failed program was:" >&5
14867sed 's/^/| /' conftest.$ac_ext >&5
14868
14869ac_header_compiler=no
14870fi
ac1cb8d3 14871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14872echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14873echo "${ECHO_T}$ac_header_compiler" >&6
14874
14875# Is the header present?
14876echo "$as_me:$LINENO: checking $ac_header presence" >&5
14877echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14878cat >conftest.$ac_ext <<_ACEOF
14879/* confdefs.h. */
14880_ACEOF
14881cat confdefs.h >>conftest.$ac_ext
14882cat >>conftest.$ac_ext <<_ACEOF
14883/* end confdefs.h. */
14884#include <$ac_header>
14885_ACEOF
14886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14888 ac_status=$?
14889 grep -v '^ *+' conftest.er1 >conftest.err
14890 rm -f conftest.er1
14891 cat conftest.err >&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } >/dev/null; then
14894 if test -s conftest.err; then
14895 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14897 else
14898 ac_cpp_err=
14899 fi
14900else
14901 ac_cpp_err=yes
14902fi
14903if test -z "$ac_cpp_err"; then
14904 ac_header_preproc=yes
14905else
14906 echo "$as_me: failed program was:" >&5
14907sed 's/^/| /' conftest.$ac_ext >&5
14908
14909 ac_header_preproc=no
14910fi
14911rm -f conftest.err conftest.$ac_ext
14912echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14913echo "${ECHO_T}$ac_header_preproc" >&6
14914
14915# So? What about this header?
ac1cb8d3
VS
14916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14917 yes:no: )
a848cd7e
SC
14918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14919echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14921echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14922 ac_header_preproc=yes
a848cd7e 14923 ;;
ac1cb8d3 14924 no:yes:* )
a848cd7e
SC
14925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14928echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14930echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14932echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14936echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14937 (
14938 cat <<\_ASBOX
ac1cb8d3
VS
14939## ----------------------------------------- ##
14940## Report this to wx-dev@lists.wxwidgets.org ##
14941## ----------------------------------------- ##
a848cd7e
SC
14942_ASBOX
14943 ) |
14944 sed "s/^/$as_me: WARNING: /" >&2
14945 ;;
14946esac
14947echo "$as_me:$LINENO: checking for $ac_header" >&5
14948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14949if eval "test \"\${$as_ac_Header+set}\" = set"; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951else
ac1cb8d3 14952 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14953fi
14954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14956
14957fi
14958if test `eval echo '${'$as_ac_Header'}'` = yes; then
14959 cat >>confdefs.h <<_ACEOF
14960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14961_ACEOF
14962
14963fi
14964
14965done
14966
14967
14968for ac_header in malloc.h
14969do
14970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14971if eval "test \"\${$as_ac_Header+set}\" = set"; then
14972 echo "$as_me:$LINENO: checking for $ac_header" >&5
14973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14974if eval "test \"\${$as_ac_Header+set}\" = set"; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14976fi
14977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14979else
14980 # Is the header compilable?
14981echo "$as_me:$LINENO: checking $ac_header usability" >&5
14982echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14983cat >conftest.$ac_ext <<_ACEOF
14984/* confdefs.h. */
14985_ACEOF
14986cat confdefs.h >>conftest.$ac_ext
14987cat >>conftest.$ac_ext <<_ACEOF
14988/* end confdefs.h. */
14989$ac_includes_default
14990#include <$ac_header>
14991_ACEOF
14992rm -f conftest.$ac_objext
14993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14994 (eval $ac_compile) 2>conftest.er1
a848cd7e 14995 ac_status=$?
ac1cb8d3
VS
14996 grep -v '^ *+' conftest.er1 >conftest.err
14997 rm -f conftest.er1
14998 cat conftest.err >&5
a848cd7e
SC
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } &&
6ebeb4c7 15001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; } &&
15007 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15010 ac_status=$?
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; }; then
15013 ac_header_compiler=yes
15014else
15015 echo "$as_me: failed program was:" >&5
15016sed 's/^/| /' conftest.$ac_ext >&5
15017
15018ac_header_compiler=no
15019fi
ac1cb8d3 15020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15021echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15022echo "${ECHO_T}$ac_header_compiler" >&6
15023
15024# Is the header present?
15025echo "$as_me:$LINENO: checking $ac_header presence" >&5
15026echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15027cat >conftest.$ac_ext <<_ACEOF
15028/* confdefs.h. */
15029_ACEOF
15030cat confdefs.h >>conftest.$ac_ext
15031cat >>conftest.$ac_ext <<_ACEOF
15032/* end confdefs.h. */
15033#include <$ac_header>
15034_ACEOF
15035if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15037 ac_status=$?
15038 grep -v '^ *+' conftest.er1 >conftest.err
15039 rm -f conftest.er1
15040 cat conftest.err >&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } >/dev/null; then
15043 if test -s conftest.err; then
15044 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15046 else
15047 ac_cpp_err=
15048 fi
15049else
15050 ac_cpp_err=yes
15051fi
15052if test -z "$ac_cpp_err"; then
15053 ac_header_preproc=yes
15054else
15055 echo "$as_me: failed program was:" >&5
15056sed 's/^/| /' conftest.$ac_ext >&5
15057
15058 ac_header_preproc=no
15059fi
15060rm -f conftest.err conftest.$ac_ext
15061echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15062echo "${ECHO_T}$ac_header_preproc" >&6
15063
15064# So? What about this header?
ac1cb8d3
VS
15065case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15066 yes:no: )
a848cd7e
SC
15067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15068echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15070echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15071 ac_header_preproc=yes
a848cd7e 15072 ;;
ac1cb8d3 15073 no:yes:* )
a848cd7e
SC
15074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15075echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15077echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15079echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15081echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15083echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15085echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15086 (
15087 cat <<\_ASBOX
ac1cb8d3
VS
15088## ----------------------------------------- ##
15089## Report this to wx-dev@lists.wxwidgets.org ##
15090## ----------------------------------------- ##
a848cd7e
SC
15091_ASBOX
15092 ) |
15093 sed "s/^/$as_me: WARNING: /" >&2
15094 ;;
15095esac
15096echo "$as_me:$LINENO: checking for $ac_header" >&5
15097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15098if eval "test \"\${$as_ac_Header+set}\" = set"; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15100else
ac1cb8d3 15101 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15102fi
15103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15104echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15105
15106fi
15107if test `eval echo '${'$as_ac_Header'}'` = yes; then
15108 cat >>confdefs.h <<_ACEOF
15109#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15110_ACEOF
15111
15112fi
15113
15114done
15115
15116
15117for ac_header in unistd.h
15118do
15119as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15120if eval "test \"\${$as_ac_Header+set}\" = set"; then
15121 echo "$as_me:$LINENO: checking for $ac_header" >&5
15122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15123if eval "test \"\${$as_ac_Header+set}\" = set"; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15125fi
15126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15128else
15129 # Is the header compilable?
15130echo "$as_me:$LINENO: checking $ac_header usability" >&5
15131echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15132cat >conftest.$ac_ext <<_ACEOF
15133/* confdefs.h. */
15134_ACEOF
15135cat confdefs.h >>conftest.$ac_ext
15136cat >>conftest.$ac_ext <<_ACEOF
15137/* end confdefs.h. */
15138$ac_includes_default
15139#include <$ac_header>
15140_ACEOF
15141rm -f conftest.$ac_objext
15142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15143 (eval $ac_compile) 2>conftest.er1
a848cd7e 15144 ac_status=$?
ac1cb8d3
VS
15145 grep -v '^ *+' conftest.er1 >conftest.err
15146 rm -f conftest.er1
15147 cat conftest.err >&5
a848cd7e
SC
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } &&
6ebeb4c7 15150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; } &&
15156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15158 (eval $ac_try) 2>&5
15159 ac_status=$?
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); }; }; then
15162 ac_header_compiler=yes
15163else
15164 echo "$as_me: failed program was:" >&5
15165sed 's/^/| /' conftest.$ac_ext >&5
15166
15167ac_header_compiler=no
15168fi
ac1cb8d3 15169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15170echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15171echo "${ECHO_T}$ac_header_compiler" >&6
15172
15173# Is the header present?
15174echo "$as_me:$LINENO: checking $ac_header presence" >&5
15175echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15176cat >conftest.$ac_ext <<_ACEOF
15177/* confdefs.h. */
15178_ACEOF
15179cat confdefs.h >>conftest.$ac_ext
15180cat >>conftest.$ac_ext <<_ACEOF
15181/* end confdefs.h. */
15182#include <$ac_header>
15183_ACEOF
15184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15186 ac_status=$?
15187 grep -v '^ *+' conftest.er1 >conftest.err
15188 rm -f conftest.er1
15189 cat conftest.err >&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); } >/dev/null; then
15192 if test -s conftest.err; then
15193 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15195 else
15196 ac_cpp_err=
15197 fi
15198else
15199 ac_cpp_err=yes
15200fi
15201if test -z "$ac_cpp_err"; then
15202 ac_header_preproc=yes
15203else
15204 echo "$as_me: failed program was:" >&5
15205sed 's/^/| /' conftest.$ac_ext >&5
15206
15207 ac_header_preproc=no
15208fi
15209rm -f conftest.err conftest.$ac_ext
15210echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15211echo "${ECHO_T}$ac_header_preproc" >&6
15212
15213# So? What about this header?
ac1cb8d3
VS
15214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15215 yes:no: )
a848cd7e
SC
15216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15220 ac_header_preproc=yes
a848cd7e 15221 ;;
ac1cb8d3 15222 no:yes:* )
a848cd7e
SC
15223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15226echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15230echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15235 (
15236 cat <<\_ASBOX
ac1cb8d3
VS
15237## ----------------------------------------- ##
15238## Report this to wx-dev@lists.wxwidgets.org ##
15239## ----------------------------------------- ##
a848cd7e
SC
15240_ASBOX
15241 ) |
15242 sed "s/^/$as_me: WARNING: /" >&2
15243 ;;
15244esac
15245echo "$as_me:$LINENO: checking for $ac_header" >&5
15246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15247if eval "test \"\${$as_ac_Header+set}\" = set"; then
15248 echo $ECHO_N "(cached) $ECHO_C" >&6
15249else
ac1cb8d3 15250 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15251fi
15252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15254
15255fi
15256if test `eval echo '${'$as_ac_Header'}'` = yes; then
15257 cat >>confdefs.h <<_ACEOF
15258#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15259_ACEOF
15260
15261fi
15262
15263done
15264
15265
15266for ac_header in wchar.h
15267do
15268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15269if eval "test \"\${$as_ac_Header+set}\" = set"; then
15270 echo "$as_me:$LINENO: checking for $ac_header" >&5
15271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15272if eval "test \"\${$as_ac_Header+set}\" = set"; then
15273 echo $ECHO_N "(cached) $ECHO_C" >&6
15274fi
15275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15276echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15277else
15278 # Is the header compilable?
15279echo "$as_me:$LINENO: checking $ac_header usability" >&5
15280echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15281cat >conftest.$ac_ext <<_ACEOF
15282/* confdefs.h. */
15283_ACEOF
15284cat confdefs.h >>conftest.$ac_ext
15285cat >>conftest.$ac_ext <<_ACEOF
15286/* end confdefs.h. */
15287$ac_includes_default
15288#include <$ac_header>
15289_ACEOF
15290rm -f conftest.$ac_objext
15291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15292 (eval $ac_compile) 2>conftest.er1
a848cd7e 15293 ac_status=$?
ac1cb8d3
VS
15294 grep -v '^ *+' conftest.er1 >conftest.err
15295 rm -f conftest.er1
15296 cat conftest.err >&5
a848cd7e
SC
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } &&
6ebeb4c7 15299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15301 (eval $ac_try) 2>&5
15302 ac_status=$?
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); }; } &&
15305 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15308 ac_status=$?
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }; then
15311 ac_header_compiler=yes
15312else
15313 echo "$as_me: failed program was:" >&5
15314sed 's/^/| /' conftest.$ac_ext >&5
15315
15316ac_header_compiler=no
15317fi
ac1cb8d3 15318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15319echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15320echo "${ECHO_T}$ac_header_compiler" >&6
15321
15322# Is the header present?
15323echo "$as_me:$LINENO: checking $ac_header presence" >&5
15324echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15325cat >conftest.$ac_ext <<_ACEOF
15326/* confdefs.h. */
15327_ACEOF
15328cat confdefs.h >>conftest.$ac_ext
15329cat >>conftest.$ac_ext <<_ACEOF
15330/* end confdefs.h. */
15331#include <$ac_header>
15332_ACEOF
15333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15335 ac_status=$?
15336 grep -v '^ *+' conftest.er1 >conftest.err
15337 rm -f conftest.er1
15338 cat conftest.err >&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } >/dev/null; then
15341 if test -s conftest.err; then
15342 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15344 else
15345 ac_cpp_err=
15346 fi
15347else
15348 ac_cpp_err=yes
15349fi
15350if test -z "$ac_cpp_err"; then
15351 ac_header_preproc=yes
15352else
15353 echo "$as_me: failed program was:" >&5
15354sed 's/^/| /' conftest.$ac_ext >&5
15355
15356 ac_header_preproc=no
15357fi
15358rm -f conftest.err conftest.$ac_ext
15359echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15360echo "${ECHO_T}$ac_header_preproc" >&6
15361
15362# So? What about this header?
ac1cb8d3
VS
15363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15364 yes:no: )
a848cd7e
SC
15365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15366echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15368echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15369 ac_header_preproc=yes
a848cd7e 15370 ;;
ac1cb8d3 15371 no:yes:* )
a848cd7e
SC
15372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15373echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15375echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15377echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15379echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15381echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15383echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15384 (
15385 cat <<\_ASBOX
ac1cb8d3
VS
15386## ----------------------------------------- ##
15387## Report this to wx-dev@lists.wxwidgets.org ##
15388## ----------------------------------------- ##
a848cd7e
SC
15389_ASBOX
15390 ) |
15391 sed "s/^/$as_me: WARNING: /" >&2
15392 ;;
15393esac
15394echo "$as_me:$LINENO: checking for $ac_header" >&5
15395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15396if eval "test \"\${$as_ac_Header+set}\" = set"; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15398else
ac1cb8d3 15399 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15400fi
15401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15403
15404fi
15405if test `eval echo '${'$as_ac_Header'}'` = yes; then
15406 cat >>confdefs.h <<_ACEOF
15407#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15408_ACEOF
15409
15410fi
15411
15412done
15413
15414
15415if test "$ac_cv_header_wchar_h" != "yes"; then
15416
15417for ac_header in wcstr.h
15418do
15419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15420if eval "test \"\${$as_ac_Header+set}\" = set"; then
15421 echo "$as_me:$LINENO: checking for $ac_header" >&5
15422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15423if eval "test \"\${$as_ac_Header+set}\" = set"; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15425fi
15426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15428else
15429 # Is the header compilable?
15430echo "$as_me:$LINENO: checking $ac_header usability" >&5
15431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15432cat >conftest.$ac_ext <<_ACEOF
15433/* confdefs.h. */
15434_ACEOF
15435cat confdefs.h >>conftest.$ac_ext
15436cat >>conftest.$ac_ext <<_ACEOF
15437/* end confdefs.h. */
15438$ac_includes_default
15439#include <$ac_header>
15440_ACEOF
15441rm -f conftest.$ac_objext
15442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15443 (eval $ac_compile) 2>conftest.er1
a848cd7e 15444 ac_status=$?
ac1cb8d3
VS
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
a848cd7e
SC
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
6ebeb4c7 15450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15453 ac_status=$?
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; } &&
15456 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15459 ac_status=$?
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; }; then
15462 ac_header_compiler=yes
15463else
15464 echo "$as_me: failed program was:" >&5
15465sed 's/^/| /' conftest.$ac_ext >&5
15466
15467ac_header_compiler=no
15468fi
ac1cb8d3 15469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15470echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15471echo "${ECHO_T}$ac_header_compiler" >&6
15472
15473# Is the header present?
15474echo "$as_me:$LINENO: checking $ac_header presence" >&5
15475echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15476cat >conftest.$ac_ext <<_ACEOF
15477/* confdefs.h. */
15478_ACEOF
15479cat confdefs.h >>conftest.$ac_ext
15480cat >>conftest.$ac_ext <<_ACEOF
15481/* end confdefs.h. */
15482#include <$ac_header>
15483_ACEOF
15484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15486 ac_status=$?
15487 grep -v '^ *+' conftest.er1 >conftest.err
15488 rm -f conftest.er1
15489 cat conftest.err >&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } >/dev/null; then
15492 if test -s conftest.err; then
15493 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15495 else
15496 ac_cpp_err=
15497 fi
15498else
15499 ac_cpp_err=yes
15500fi
15501if test -z "$ac_cpp_err"; then
15502 ac_header_preproc=yes
15503else
15504 echo "$as_me: failed program was:" >&5
15505sed 's/^/| /' conftest.$ac_ext >&5
15506
15507 ac_header_preproc=no
15508fi
15509rm -f conftest.err conftest.$ac_ext
15510echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15511echo "${ECHO_T}$ac_header_preproc" >&6
15512
15513# So? What about this header?
ac1cb8d3
VS
15514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15515 yes:no: )
a848cd7e
SC
15516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15517echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15519echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15520 ac_header_preproc=yes
a848cd7e 15521 ;;
ac1cb8d3 15522 no:yes:* )
a848cd7e
SC
15523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15524echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15526echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15528echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15530echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15534echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15535 (
15536 cat <<\_ASBOX
ac1cb8d3
VS
15537## ----------------------------------------- ##
15538## Report this to wx-dev@lists.wxwidgets.org ##
15539## ----------------------------------------- ##
a848cd7e
SC
15540_ASBOX
15541 ) |
15542 sed "s/^/$as_me: WARNING: /" >&2
15543 ;;
15544esac
15545echo "$as_me:$LINENO: checking for $ac_header" >&5
15546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15547if eval "test \"\${$as_ac_Header+set}\" = set"; then
15548 echo $ECHO_N "(cached) $ECHO_C" >&6
15549else
ac1cb8d3 15550 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15551fi
15552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15553echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15554
15555fi
15556if test `eval echo '${'$as_ac_Header'}'` = yes; then
15557 cat >>confdefs.h <<_ACEOF
15558#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15559_ACEOF
15560
15561fi
15562
15563done
15564
15565fi
15566
15567
15568for ac_header in fnmatch.h
15569do
15570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15571if eval "test \"\${$as_ac_Header+set}\" = set"; then
15572 echo "$as_me:$LINENO: checking for $ac_header" >&5
15573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15574if eval "test \"\${$as_ac_Header+set}\" = set"; then
15575 echo $ECHO_N "(cached) $ECHO_C" >&6
15576fi
15577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15579else
15580 # Is the header compilable?
15581echo "$as_me:$LINENO: checking $ac_header usability" >&5
15582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15583cat >conftest.$ac_ext <<_ACEOF
15584/* confdefs.h. */
15585_ACEOF
15586cat confdefs.h >>conftest.$ac_ext
15587cat >>conftest.$ac_ext <<_ACEOF
15588/* end confdefs.h. */
15589$ac_includes_default
15590#include <$ac_header>
15591_ACEOF
15592rm -f conftest.$ac_objext
15593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15594 (eval $ac_compile) 2>conftest.er1
a848cd7e 15595 ac_status=$?
ac1cb8d3
VS
15596 grep -v '^ *+' conftest.er1 >conftest.err
15597 rm -f conftest.er1
15598 cat conftest.err >&5
a848cd7e
SC
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } &&
6ebeb4c7 15601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15604 ac_status=$?
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; } &&
15607 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15610 ac_status=$?
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; }; then
15613 ac_header_compiler=yes
15614else
15615 echo "$as_me: failed program was:" >&5
15616sed 's/^/| /' conftest.$ac_ext >&5
15617
15618ac_header_compiler=no
15619fi
ac1cb8d3 15620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15621echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15622echo "${ECHO_T}$ac_header_compiler" >&6
15623
15624# Is the header present?
15625echo "$as_me:$LINENO: checking $ac_header presence" >&5
15626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15627cat >conftest.$ac_ext <<_ACEOF
15628/* confdefs.h. */
15629_ACEOF
15630cat confdefs.h >>conftest.$ac_ext
15631cat >>conftest.$ac_ext <<_ACEOF
15632/* end confdefs.h. */
15633#include <$ac_header>
15634_ACEOF
15635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15637 ac_status=$?
15638 grep -v '^ *+' conftest.er1 >conftest.err
15639 rm -f conftest.er1
15640 cat conftest.err >&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } >/dev/null; then
15643 if test -s conftest.err; then
15644 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15646 else
15647 ac_cpp_err=
15648 fi
15649else
15650 ac_cpp_err=yes
15651fi
15652if test -z "$ac_cpp_err"; then
15653 ac_header_preproc=yes
15654else
15655 echo "$as_me: failed program was:" >&5
15656sed 's/^/| /' conftest.$ac_ext >&5
15657
15658 ac_header_preproc=no
15659fi
15660rm -f conftest.err conftest.$ac_ext
15661echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15662echo "${ECHO_T}$ac_header_preproc" >&6
15663
15664# So? What about this header?
ac1cb8d3
VS
15665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15666 yes:no: )
a848cd7e
SC
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15670echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15671 ac_header_preproc=yes
a848cd7e 15672 ;;
ac1cb8d3 15673 no:yes:* )
a848cd7e
SC
15674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15677echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15679echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15681echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15685echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15686 (
15687 cat <<\_ASBOX
ac1cb8d3
VS
15688## ----------------------------------------- ##
15689## Report this to wx-dev@lists.wxwidgets.org ##
15690## ----------------------------------------- ##
a848cd7e
SC
15691_ASBOX
15692 ) |
15693 sed "s/^/$as_me: WARNING: /" >&2
15694 ;;
15695esac
15696echo "$as_me:$LINENO: checking for $ac_header" >&5
15697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15698if eval "test \"\${$as_ac_Header+set}\" = set"; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15700else
ac1cb8d3 15701 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15702fi
15703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15704echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15705
15706fi
15707if test `eval echo '${'$as_ac_Header'}'` = yes; then
15708 cat >>confdefs.h <<_ACEOF
15709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15710_ACEOF
15711
15712fi
15713
15714done
15715
15716
a848cd7e
SC
15717
15718for ac_header in langinfo.h
15719do
15720as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15721if eval "test \"\${$as_ac_Header+set}\" = set"; then
15722 echo "$as_me:$LINENO: checking for $ac_header" >&5
15723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15724if eval "test \"\${$as_ac_Header+set}\" = set"; then
15725 echo $ECHO_N "(cached) $ECHO_C" >&6
15726fi
15727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15729else
15730 # Is the header compilable?
15731echo "$as_me:$LINENO: checking $ac_header usability" >&5
15732echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15733cat >conftest.$ac_ext <<_ACEOF
15734/* confdefs.h. */
15735_ACEOF
15736cat confdefs.h >>conftest.$ac_ext
15737cat >>conftest.$ac_ext <<_ACEOF
15738/* end confdefs.h. */
15739$ac_includes_default
15740#include <$ac_header>
15741_ACEOF
15742rm -f conftest.$ac_objext
15743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15744 (eval $ac_compile) 2>conftest.er1
a848cd7e 15745 ac_status=$?
ac1cb8d3
VS
15746 grep -v '^ *+' conftest.er1 >conftest.err
15747 rm -f conftest.er1
15748 cat conftest.err >&5
a848cd7e
SC
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } &&
6ebeb4c7 15751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15753 (eval $ac_try) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); }; } &&
15757 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; }; then
15763 ac_header_compiler=yes
15764else
15765 echo "$as_me: failed program was:" >&5
15766sed 's/^/| /' conftest.$ac_ext >&5
15767
15768ac_header_compiler=no
15769fi
ac1cb8d3 15770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15771echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15772echo "${ECHO_T}$ac_header_compiler" >&6
15773
15774# Is the header present?
15775echo "$as_me:$LINENO: checking $ac_header presence" >&5
15776echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15777cat >conftest.$ac_ext <<_ACEOF
15778/* confdefs.h. */
15779_ACEOF
15780cat confdefs.h >>conftest.$ac_ext
15781cat >>conftest.$ac_ext <<_ACEOF
15782/* end confdefs.h. */
15783#include <$ac_header>
15784_ACEOF
15785if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15787 ac_status=$?
15788 grep -v '^ *+' conftest.er1 >conftest.err
15789 rm -f conftest.er1
15790 cat conftest.err >&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } >/dev/null; then
15793 if test -s conftest.err; then
15794 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15796 else
15797 ac_cpp_err=
15798 fi
15799else
15800 ac_cpp_err=yes
15801fi
15802if test -z "$ac_cpp_err"; then
15803 ac_header_preproc=yes
15804else
15805 echo "$as_me: failed program was:" >&5
15806sed 's/^/| /' conftest.$ac_ext >&5
15807
15808 ac_header_preproc=no
15809fi
15810rm -f conftest.err conftest.$ac_ext
15811echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15812echo "${ECHO_T}$ac_header_preproc" >&6
15813
15814# So? What about this header?
ac1cb8d3
VS
15815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15816 yes:no: )
a848cd7e
SC
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15818echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15820echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15821 ac_header_preproc=yes
a848cd7e 15822 ;;
ac1cb8d3 15823 no:yes:* )
a848cd7e
SC
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15825echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15827echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15829echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15831echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15833echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15835echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15836 (
15837 cat <<\_ASBOX
ac1cb8d3
VS
15838## ----------------------------------------- ##
15839## Report this to wx-dev@lists.wxwidgets.org ##
15840## ----------------------------------------- ##
a848cd7e
SC
15841_ASBOX
15842 ) |
15843 sed "s/^/$as_me: WARNING: /" >&2
15844 ;;
15845esac
15846echo "$as_me:$LINENO: checking for $ac_header" >&5
15847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15848if eval "test \"\${$as_ac_Header+set}\" = set"; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15850else
ac1cb8d3 15851 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15852fi
15853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15854echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15855
15856fi
15857if test `eval echo '${'$as_ac_Header'}'` = yes; then
15858 cat >>confdefs.h <<_ACEOF
15859#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15860_ACEOF
15861
15862fi
15863
15864done
15865
15866
15867case "${host}" in
15868 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15869 if test $ac_cv_header_langinfo_h = "yes" \
15870 -a \( "$wx_cv_gccversion" = "EMX2" \
15871 -o "$wx_cv_gccversion" = "EMX3" \
15872 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15873 LIBS="$LIBS -lintl"
15874 fi
15875 ;;
15876esac
15877
a848cd7e
SC
15878
15879echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15880echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15881if test "${ac_cv_c_const+set}" = set; then
15882 echo $ECHO_N "(cached) $ECHO_C" >&6
15883else
15884 cat >conftest.$ac_ext <<_ACEOF
15885/* confdefs.h. */
15886_ACEOF
15887cat confdefs.h >>conftest.$ac_ext
15888cat >>conftest.$ac_ext <<_ACEOF
15889/* end confdefs.h. */
15890
15891int
15892main ()
15893{
15894/* FIXME: Include the comments suggested by Paul. */
15895#ifndef __cplusplus
15896 /* Ultrix mips cc rejects this. */
15897 typedef int charset[2];
15898 const charset x;
15899 /* SunOS 4.1.1 cc rejects this. */
15900 char const *const *ccp;
15901 char **p;
15902 /* NEC SVR4.0.2 mips cc rejects this. */
15903 struct point {int x, y;};
15904 static struct point const zero = {0,0};
15905 /* AIX XL C 1.02.0.0 rejects this.
15906 It does not let you subtract one const X* pointer from another in
15907 an arm of an if-expression whose if-part is not a constant
15908 expression */
15909 const char *g = "string";
15910 ccp = &g + (g ? g-g : 0);
15911 /* HPUX 7.0 cc rejects these. */
15912 ++ccp;
15913 p = (char**) ccp;
15914 ccp = (char const *const *) p;
15915 { /* SCO 3.2v4 cc rejects this. */
15916 char *t;
15917 char const *s = 0 ? (char *) 0 : (char const *) 0;
15918
15919 *t++ = 0;
15920 }
15921 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15922 int x[] = {25, 17};
15923 const int *foo = &x[0];
15924 ++foo;
15925 }
15926 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15927 typedef const int *iptr;
15928 iptr p = 0;
15929 ++p;
15930 }
15931 { /* AIX XL C 1.02.0.0 rejects this saying
15932 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15933 struct s { int j; const int *ap[3]; };
15934 struct s *b; b->j = 5;
15935 }
15936 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15937 const int foo = 10;
15938 }
15939#endif
15940
15941 ;
15942 return 0;
15943}
15944_ACEOF
15945rm -f conftest.$ac_objext
15946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15947 (eval $ac_compile) 2>conftest.er1
a848cd7e 15948 ac_status=$?
ac1cb8d3
VS
15949 grep -v '^ *+' conftest.er1 >conftest.err
15950 rm -f conftest.er1
15951 cat conftest.err >&5
a848cd7e
SC
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
6ebeb4c7 15954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; } &&
15960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15963 ac_status=$?
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15966 ac_cv_c_const=yes
15967else
15968 echo "$as_me: failed program was:" >&5
15969sed 's/^/| /' conftest.$ac_ext >&5
15970
15971ac_cv_c_const=no
15972fi
ac1cb8d3 15973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15974fi
15975echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15976echo "${ECHO_T}$ac_cv_c_const" >&6
15977if test $ac_cv_c_const = no; then
15978
15979cat >>confdefs.h <<\_ACEOF
15980#define const
15981_ACEOF
15982
15983fi
15984
15985echo "$as_me:$LINENO: checking for inline" >&5
15986echo $ECHO_N "checking for inline... $ECHO_C" >&6
15987if test "${ac_cv_c_inline+set}" = set; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15989else
15990 ac_cv_c_inline=no
15991for ac_kw in inline __inline__ __inline; do
15992 cat >conftest.$ac_ext <<_ACEOF
15993/* confdefs.h. */
15994_ACEOF
15995cat confdefs.h >>conftest.$ac_ext
15996cat >>conftest.$ac_ext <<_ACEOF
15997/* end confdefs.h. */
15998#ifndef __cplusplus
15999typedef int foo_t;
16000static $ac_kw foo_t static_foo () {return 0; }
16001$ac_kw foo_t foo () {return 0; }
16002#endif
16003
16004_ACEOF
16005rm -f conftest.$ac_objext
16006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16007 (eval $ac_compile) 2>conftest.er1
a848cd7e 16008 ac_status=$?
ac1cb8d3
VS
16009 grep -v '^ *+' conftest.er1 >conftest.err
16010 rm -f conftest.er1
16011 cat conftest.err >&5
a848cd7e
SC
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); } &&
6ebeb4c7 16014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
16020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
16026 ac_cv_c_inline=$ac_kw; break
16027else
16028 echo "$as_me: failed program was:" >&5
16029sed 's/^/| /' conftest.$ac_ext >&5
16030
16031fi
ac1cb8d3 16032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16033done
16034
16035fi
16036echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16037echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16038
16039
a848cd7e
SC
16040case $ac_cv_c_inline in
16041 inline | yes) ;;
ac1cb8d3
VS
16042 *)
16043 case $ac_cv_c_inline in
16044 no) ac_val=;;
16045 *) ac_val=$ac_cv_c_inline;;
16046 esac
16047 cat >>confdefs.h <<_ACEOF
16048#ifndef __cplusplus
16049#define inline $ac_val
16050#endif
de59c161 16051_ACEOF
ac1cb8d3 16052 ;;
a848cd7e
SC
16053esac
16054
16055
16056echo "$as_me:$LINENO: checking for char" >&5
16057echo $ECHO_N "checking for char... $ECHO_C" >&6
16058if test "${ac_cv_type_char+set}" = set; then
16059 echo $ECHO_N "(cached) $ECHO_C" >&6
16060else
16061 cat >conftest.$ac_ext <<_ACEOF
16062/* confdefs.h. */
16063_ACEOF
16064cat confdefs.h >>conftest.$ac_ext
16065cat >>conftest.$ac_ext <<_ACEOF
16066/* end confdefs.h. */
16067$ac_includes_default
16068int
16069main ()
16070{
16071if ((char *) 0)
16072 return 0;
16073if (sizeof (char))
16074 return 0;
16075 ;
16076 return 0;
16077}
16078_ACEOF
16079rm -f conftest.$ac_objext
16080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16081 (eval $ac_compile) 2>conftest.er1
a848cd7e 16082 ac_status=$?
ac1cb8d3
VS
16083 grep -v '^ *+' conftest.er1 >conftest.err
16084 rm -f conftest.er1
16085 cat conftest.err >&5
a848cd7e
SC
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } &&
6ebeb4c7 16088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16090 (eval $ac_try) 2>&5
16091 ac_status=$?
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); }; } &&
16094 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; }; then
16100 ac_cv_type_char=yes
16101else
16102 echo "$as_me: failed program was:" >&5
16103sed 's/^/| /' conftest.$ac_ext >&5
16104
16105ac_cv_type_char=no
16106fi
ac1cb8d3 16107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16108fi
16109echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16110echo "${ECHO_T}$ac_cv_type_char" >&6
16111
16112echo "$as_me:$LINENO: checking size of char" >&5
16113echo $ECHO_N "checking size of char... $ECHO_C" >&6
16114if test "${ac_cv_sizeof_char+set}" = set; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
16116else
16117 if test "$ac_cv_type_char" = yes; then
16118 # The cast to unsigned long works around a bug in the HP C Compiler
16119 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16120 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16121 # This bug is HP SR number 8606223364.
16122 if test "$cross_compiling" = yes; then
16123 # Depending upon the size, compute the lo and hi bounds.
16124cat >conftest.$ac_ext <<_ACEOF
16125/* confdefs.h. */
16126_ACEOF
16127cat confdefs.h >>conftest.$ac_ext
16128cat >>conftest.$ac_ext <<_ACEOF
16129/* end confdefs.h. */
16130$ac_includes_default
16131int
16132main ()
16133{
16134static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16135test_array [0] = 0
16136
16137 ;
16138 return 0;
16139}
16140_ACEOF
16141rm -f conftest.$ac_objext
16142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16143 (eval $ac_compile) 2>conftest.er1
a848cd7e 16144 ac_status=$?
ac1cb8d3
VS
16145 grep -v '^ *+' conftest.er1 >conftest.err
16146 rm -f conftest.er1
16147 cat conftest.err >&5
a848cd7e
SC
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } &&
6ebeb4c7 16150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
16156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 ac_lo=0 ac_mid=0
16163 while :; do
16164 cat >conftest.$ac_ext <<_ACEOF
16165/* confdefs.h. */
16166_ACEOF
16167cat confdefs.h >>conftest.$ac_ext
16168cat >>conftest.$ac_ext <<_ACEOF
16169/* end confdefs.h. */
16170$ac_includes_default
16171int
16172main ()
16173{
16174static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16175test_array [0] = 0
16176
16177 ;
16178 return 0;
16179}
16180_ACEOF
16181rm -f conftest.$ac_objext
16182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16183 (eval $ac_compile) 2>conftest.er1
a848cd7e 16184 ac_status=$?
ac1cb8d3
VS
16185 grep -v '^ *+' conftest.er1 >conftest.err
16186 rm -f conftest.er1
16187 cat conftest.err >&5
a848cd7e
SC
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } &&
6ebeb4c7 16190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192 (eval $ac_try) 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; } &&
16196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16199 ac_status=$?
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; }; then
16202 ac_hi=$ac_mid; break
16203else
16204 echo "$as_me: failed program was:" >&5
16205sed 's/^/| /' conftest.$ac_ext >&5
16206
16207ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16208 if test $ac_lo -le $ac_mid; then
16209 ac_lo= ac_hi=
16210 break
16211 fi
16212 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16213fi
ac1cb8d3 16214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16215 done
16216else
16217 echo "$as_me: failed program was:" >&5
16218sed 's/^/| /' conftest.$ac_ext >&5
16219
16220cat >conftest.$ac_ext <<_ACEOF
16221/* confdefs.h. */
16222_ACEOF
16223cat confdefs.h >>conftest.$ac_ext
16224cat >>conftest.$ac_ext <<_ACEOF
16225/* end confdefs.h. */
16226$ac_includes_default
16227int
16228main ()
16229{
16230static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16231test_array [0] = 0
16232
16233 ;
16234 return 0;
16235}
16236_ACEOF
16237rm -f conftest.$ac_objext
16238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16239 (eval $ac_compile) 2>conftest.er1
a848cd7e 16240 ac_status=$?
ac1cb8d3
VS
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
a848cd7e
SC
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } &&
6ebeb4c7 16246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248 (eval $ac_try) 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; } &&
16252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; }; then
16258 ac_hi=-1 ac_mid=-1
16259 while :; do
16260 cat >conftest.$ac_ext <<_ACEOF
16261/* confdefs.h. */
16262_ACEOF
16263cat confdefs.h >>conftest.$ac_ext
16264cat >>conftest.$ac_ext <<_ACEOF
16265/* end confdefs.h. */
16266$ac_includes_default
16267int
16268main ()
16269{
16270static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16271test_array [0] = 0
16272
16273 ;
16274 return 0;
16275}
16276_ACEOF
16277rm -f conftest.$ac_objext
16278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16279 (eval $ac_compile) 2>conftest.er1
a848cd7e 16280 ac_status=$?
ac1cb8d3
VS
16281 grep -v '^ *+' conftest.er1 >conftest.err
16282 rm -f conftest.er1
16283 cat conftest.err >&5
a848cd7e
SC
16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } &&
6ebeb4c7 16286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16289 ac_status=$?
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; } &&
16292 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16295 ac_status=$?
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; }; then
16298 ac_lo=$ac_mid; break
16299else
16300 echo "$as_me: failed program was:" >&5
16301sed 's/^/| /' conftest.$ac_ext >&5
16302
16303ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16304 if test $ac_mid -le $ac_hi; then
16305 ac_lo= ac_hi=
16306 break
16307 fi
16308 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16309fi
ac1cb8d3 16310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16311 done
16312else
16313 echo "$as_me: failed program was:" >&5
16314sed 's/^/| /' conftest.$ac_ext >&5
16315
16316ac_lo= ac_hi=
16317fi
ac1cb8d3 16318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16319fi
ac1cb8d3 16320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16321# Binary search between lo and hi bounds.
16322while test "x$ac_lo" != "x$ac_hi"; do
16323 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16324 cat >conftest.$ac_ext <<_ACEOF
16325/* confdefs.h. */
16326_ACEOF
16327cat confdefs.h >>conftest.$ac_ext
16328cat >>conftest.$ac_ext <<_ACEOF
16329/* end confdefs.h. */
16330$ac_includes_default
16331int
16332main ()
16333{
16334static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16335test_array [0] = 0
16336
16337 ;
16338 return 0;
16339}
16340_ACEOF
16341rm -f conftest.$ac_objext
16342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16343 (eval $ac_compile) 2>conftest.er1
a848cd7e 16344 ac_status=$?
ac1cb8d3
VS
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
a848cd7e
SC
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
6ebeb4c7 16350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16353 ac_status=$?
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } &&
16356 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358 (eval $ac_try) 2>&5
16359 ac_status=$?
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; }; then
16362 ac_hi=$ac_mid
16363else
16364 echo "$as_me: failed program was:" >&5
16365sed 's/^/| /' conftest.$ac_ext >&5
16366
16367ac_lo=`expr '(' $ac_mid ')' + 1`
16368fi
ac1cb8d3 16369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16370done
16371case $ac_lo in
16372?*) ac_cv_sizeof_char=$ac_lo;;
16373'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16374See \`config.log' for more details." >&5
16375echo "$as_me: error: cannot compute sizeof (char), 77
16376See \`config.log' for more details." >&2;}
16377 { (exit 1); exit 1; }; } ;;
16378esac
16379else
16380 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16381 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16382echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16383 { (exit 1); exit 1; }; }
16384else
16385 cat >conftest.$ac_ext <<_ACEOF
16386/* confdefs.h. */
16387_ACEOF
16388cat confdefs.h >>conftest.$ac_ext
16389cat >>conftest.$ac_ext <<_ACEOF
16390/* end confdefs.h. */
16391$ac_includes_default
16392long longval () { return (long) (sizeof (char)); }
16393unsigned long ulongval () { return (long) (sizeof (char)); }
16394#include <stdio.h>
16395#include <stdlib.h>
16396int
16397main ()
16398{
16399
16400 FILE *f = fopen ("conftest.val", "w");
16401 if (! f)
16402 exit (1);
16403 if (((long) (sizeof (char))) < 0)
16404 {
16405 long i = longval ();
16406 if (i != ((long) (sizeof (char))))
16407 exit (1);
16408 fprintf (f, "%ld\n", i);
16409 }
16410 else
16411 {
16412 unsigned long i = ulongval ();
16413 if (i != ((long) (sizeof (char))))
16414 exit (1);
16415 fprintf (f, "%lu\n", i);
16416 }
16417 exit (ferror (f) || fclose (f) != 0);
16418
16419 ;
16420 return 0;
16421}
16422_ACEOF
16423rm -f conftest$ac_exeext
16424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16425 (eval $ac_link) 2>&5
16426 ac_status=$?
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16430 (eval $ac_try) 2>&5
16431 ac_status=$?
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); }; }; then
16434 ac_cv_sizeof_char=`cat conftest.val`
16435else
16436 echo "$as_me: program exited with status $ac_status" >&5
16437echo "$as_me: failed program was:" >&5
16438sed 's/^/| /' conftest.$ac_ext >&5
16439
16440( exit $ac_status )
16441{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16442See \`config.log' for more details." >&5
16443echo "$as_me: error: cannot compute sizeof (char), 77
16444See \`config.log' for more details." >&2;}
16445 { (exit 1); exit 1; }; }
16446fi
ac1cb8d3 16447rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16448fi
16449fi
16450rm -f conftest.val
16451else
16452 ac_cv_sizeof_char=0
16453fi
16454fi
16455echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16456echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16457cat >>confdefs.h <<_ACEOF
16458#define SIZEOF_CHAR $ac_cv_sizeof_char
16459_ACEOF
16460
16461
16462echo "$as_me:$LINENO: checking for short" >&5
16463echo $ECHO_N "checking for short... $ECHO_C" >&6
16464if test "${ac_cv_type_short+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16466else
16467 cat >conftest.$ac_ext <<_ACEOF
16468/* confdefs.h. */
16469_ACEOF
16470cat confdefs.h >>conftest.$ac_ext
16471cat >>conftest.$ac_ext <<_ACEOF
16472/* end confdefs.h. */
16473$ac_includes_default
16474int
16475main ()
16476{
16477if ((short *) 0)
16478 return 0;
16479if (sizeof (short))
16480 return 0;
16481 ;
16482 return 0;
16483}
16484_ACEOF
16485rm -f conftest.$ac_objext
16486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16487 (eval $ac_compile) 2>conftest.er1
a848cd7e 16488 ac_status=$?
ac1cb8d3
VS
16489 grep -v '^ *+' conftest.er1 >conftest.err
16490 rm -f conftest.er1
16491 cat conftest.err >&5
a848cd7e
SC
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } &&
6ebeb4c7 16494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496 (eval $ac_try) 2>&5
16497 ac_status=$?
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; } &&
16500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
16506 ac_cv_type_short=yes
16507else
16508 echo "$as_me: failed program was:" >&5
16509sed 's/^/| /' conftest.$ac_ext >&5
16510
16511ac_cv_type_short=no
16512fi
ac1cb8d3 16513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16514fi
16515echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16516echo "${ECHO_T}$ac_cv_type_short" >&6
16517
16518echo "$as_me:$LINENO: checking size of short" >&5
16519echo $ECHO_N "checking size of short... $ECHO_C" >&6
16520if test "${ac_cv_sizeof_short+set}" = set; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16522else
16523 if test "$ac_cv_type_short" = yes; then
16524 # The cast to unsigned long works around a bug in the HP C Compiler
16525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16526 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16527 # This bug is HP SR number 8606223364.
16528 if test "$cross_compiling" = yes; then
16529 # Depending upon the size, compute the lo and hi bounds.
16530cat >conftest.$ac_ext <<_ACEOF
16531/* confdefs.h. */
16532_ACEOF
16533cat confdefs.h >>conftest.$ac_ext
16534cat >>conftest.$ac_ext <<_ACEOF
16535/* end confdefs.h. */
16536$ac_includes_default
16537int
16538main ()
16539{
16540static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16541test_array [0] = 0
16542
16543 ;
16544 return 0;
16545}
16546_ACEOF
16547rm -f conftest.$ac_objext
16548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16549 (eval $ac_compile) 2>conftest.er1
a848cd7e 16550 ac_status=$?
ac1cb8d3
VS
16551 grep -v '^ *+' conftest.er1 >conftest.err
16552 rm -f conftest.er1
16553 cat conftest.err >&5
a848cd7e
SC
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } &&
6ebeb4c7 16556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
16562 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16564 (eval $ac_try) 2>&5
16565 ac_status=$?
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; }; then
16568 ac_lo=0 ac_mid=0
16569 while :; do
16570 cat >conftest.$ac_ext <<_ACEOF
16571/* confdefs.h. */
16572_ACEOF
16573cat confdefs.h >>conftest.$ac_ext
16574cat >>conftest.$ac_ext <<_ACEOF
16575/* end confdefs.h. */
16576$ac_includes_default
16577int
16578main ()
16579{
16580static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16581test_array [0] = 0
16582
16583 ;
16584 return 0;
16585}
16586_ACEOF
16587rm -f conftest.$ac_objext
16588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16589 (eval $ac_compile) 2>conftest.er1
a848cd7e 16590 ac_status=$?
ac1cb8d3
VS
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
a848cd7e
SC
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } &&
6ebeb4c7 16596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16598 (eval $ac_try) 2>&5
16599 ac_status=$?
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; } &&
16602 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16605 ac_status=$?
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); }; }; then
16608 ac_hi=$ac_mid; break
16609else
16610 echo "$as_me: failed program was:" >&5
16611sed 's/^/| /' conftest.$ac_ext >&5
16612
16613ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16614 if test $ac_lo -le $ac_mid; then
16615 ac_lo= ac_hi=
16616 break
16617 fi
16618 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16619fi
ac1cb8d3 16620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16621 done
16622else
16623 echo "$as_me: failed program was:" >&5
16624sed 's/^/| /' conftest.$ac_ext >&5
16625
16626cat >conftest.$ac_ext <<_ACEOF
16627/* confdefs.h. */
16628_ACEOF
16629cat confdefs.h >>conftest.$ac_ext
16630cat >>conftest.$ac_ext <<_ACEOF
16631/* end confdefs.h. */
16632$ac_includes_default
16633int
16634main ()
16635{
16636static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16637test_array [0] = 0
16638
16639 ;
16640 return 0;
16641}
16642_ACEOF
16643rm -f conftest.$ac_objext
16644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16645 (eval $ac_compile) 2>conftest.er1
a848cd7e 16646 ac_status=$?
ac1cb8d3
VS
16647 grep -v '^ *+' conftest.er1 >conftest.err
16648 rm -f conftest.er1
16649 cat conftest.err >&5
a848cd7e
SC
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
6ebeb4c7 16652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; } &&
16658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_hi=-1 ac_mid=-1
16665 while :; do
16666 cat >conftest.$ac_ext <<_ACEOF
16667/* confdefs.h. */
16668_ACEOF
16669cat confdefs.h >>conftest.$ac_ext
16670cat >>conftest.$ac_ext <<_ACEOF
16671/* end confdefs.h. */
16672$ac_includes_default
16673int
16674main ()
16675{
16676static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16677test_array [0] = 0
16678
16679 ;
16680 return 0;
16681}
16682_ACEOF
16683rm -f conftest.$ac_objext
16684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16685 (eval $ac_compile) 2>conftest.er1
a848cd7e 16686 ac_status=$?
ac1cb8d3
VS
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
a848cd7e
SC
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } &&
6ebeb4c7 16692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694 (eval $ac_try) 2>&5
16695 ac_status=$?
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; } &&
16698 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700 (eval $ac_try) 2>&5
16701 ac_status=$?
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; }; then
16704 ac_lo=$ac_mid; break
16705else
16706 echo "$as_me: failed program was:" >&5
16707sed 's/^/| /' conftest.$ac_ext >&5
16708
16709ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16710 if test $ac_mid -le $ac_hi; then
16711 ac_lo= ac_hi=
16712 break
16713 fi
16714 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16715fi
ac1cb8d3 16716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16717 done
16718else
16719 echo "$as_me: failed program was:" >&5
16720sed 's/^/| /' conftest.$ac_ext >&5
16721
16722ac_lo= ac_hi=
16723fi
ac1cb8d3 16724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16725fi
ac1cb8d3 16726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16727# Binary search between lo and hi bounds.
16728while test "x$ac_lo" != "x$ac_hi"; do
16729 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16730 cat >conftest.$ac_ext <<_ACEOF
16731/* confdefs.h. */
16732_ACEOF
16733cat confdefs.h >>conftest.$ac_ext
16734cat >>conftest.$ac_ext <<_ACEOF
16735/* end confdefs.h. */
16736$ac_includes_default
16737int
16738main ()
16739{
16740static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16741test_array [0] = 0
16742
16743 ;
16744 return 0;
16745}
16746_ACEOF
16747rm -f conftest.$ac_objext
16748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16749 (eval $ac_compile) 2>conftest.er1
a848cd7e 16750 ac_status=$?
ac1cb8d3
VS
16751 grep -v '^ *+' conftest.er1 >conftest.err
16752 rm -f conftest.er1
16753 cat conftest.err >&5
a848cd7e
SC
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } &&
6ebeb4c7 16756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758 (eval $ac_try) 2>&5
16759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; } &&
16762 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16765 ac_status=$?
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; }; then
16768 ac_hi=$ac_mid
16769else
16770 echo "$as_me: failed program was:" >&5
16771sed 's/^/| /' conftest.$ac_ext >&5
16772
16773ac_lo=`expr '(' $ac_mid ')' + 1`
16774fi
ac1cb8d3 16775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16776done
16777case $ac_lo in
16778?*) ac_cv_sizeof_short=$ac_lo;;
16779'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16780See \`config.log' for more details." >&5
16781echo "$as_me: error: cannot compute sizeof (short), 77
16782See \`config.log' for more details." >&2;}
16783 { (exit 1); exit 1; }; } ;;
16784esac
16785else
16786 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16787 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16788echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16789 { (exit 1); exit 1; }; }
16790else
16791 cat >conftest.$ac_ext <<_ACEOF
16792/* confdefs.h. */
16793_ACEOF
16794cat confdefs.h >>conftest.$ac_ext
16795cat >>conftest.$ac_ext <<_ACEOF
16796/* end confdefs.h. */
16797$ac_includes_default
16798long longval () { return (long) (sizeof (short)); }
16799unsigned long ulongval () { return (long) (sizeof (short)); }
16800#include <stdio.h>
16801#include <stdlib.h>
16802int
16803main ()
16804{
16805
16806 FILE *f = fopen ("conftest.val", "w");
16807 if (! f)
16808 exit (1);
16809 if (((long) (sizeof (short))) < 0)
16810 {
16811 long i = longval ();
16812 if (i != ((long) (sizeof (short))))
16813 exit (1);
16814 fprintf (f, "%ld\n", i);
16815 }
16816 else
16817 {
16818 unsigned long i = ulongval ();
16819 if (i != ((long) (sizeof (short))))
16820 exit (1);
16821 fprintf (f, "%lu\n", i);
16822 }
16823 exit (ferror (f) || fclose (f) != 0);
16824
16825 ;
16826 return 0;
16827}
16828_ACEOF
16829rm -f conftest$ac_exeext
16830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16831 (eval $ac_link) 2>&5
16832 ac_status=$?
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16836 (eval $ac_try) 2>&5
16837 ac_status=$?
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; }; then
16840 ac_cv_sizeof_short=`cat conftest.val`
16841else
16842 echo "$as_me: program exited with status $ac_status" >&5
16843echo "$as_me: failed program was:" >&5
16844sed 's/^/| /' conftest.$ac_ext >&5
16845
16846( exit $ac_status )
16847{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16848See \`config.log' for more details." >&5
16849echo "$as_me: error: cannot compute sizeof (short), 77
16850See \`config.log' for more details." >&2;}
16851 { (exit 1); exit 1; }; }
16852fi
ac1cb8d3 16853rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16854fi
16855fi
16856rm -f conftest.val
16857else
16858 ac_cv_sizeof_short=0
16859fi
16860fi
16861echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16862echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16863cat >>confdefs.h <<_ACEOF
16864#define SIZEOF_SHORT $ac_cv_sizeof_short
16865_ACEOF
16866
16867
16868echo "$as_me:$LINENO: checking for void *" >&5
16869echo $ECHO_N "checking for void *... $ECHO_C" >&6
16870if test "${ac_cv_type_void_p+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16872else
16873 cat >conftest.$ac_ext <<_ACEOF
16874/* confdefs.h. */
16875_ACEOF
16876cat confdefs.h >>conftest.$ac_ext
16877cat >>conftest.$ac_ext <<_ACEOF
16878/* end confdefs.h. */
16879$ac_includes_default
16880int
16881main ()
16882{
16883if ((void * *) 0)
16884 return 0;
16885if (sizeof (void *))
16886 return 0;
16887 ;
16888 return 0;
16889}
16890_ACEOF
16891rm -f conftest.$ac_objext
16892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16893 (eval $ac_compile) 2>conftest.er1
a848cd7e 16894 ac_status=$?
ac1cb8d3
VS
16895 grep -v '^ *+' conftest.er1 >conftest.err
16896 rm -f conftest.er1
16897 cat conftest.err >&5
a848cd7e
SC
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } &&
6ebeb4c7 16900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16902 (eval $ac_try) 2>&5
16903 ac_status=$?
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; } &&
16906 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908 (eval $ac_try) 2>&5
16909 ac_status=$?
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; }; then
16912 ac_cv_type_void_p=yes
16913else
16914 echo "$as_me: failed program was:" >&5
16915sed 's/^/| /' conftest.$ac_ext >&5
16916
16917ac_cv_type_void_p=no
16918fi
ac1cb8d3 16919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16920fi
16921echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16922echo "${ECHO_T}$ac_cv_type_void_p" >&6
16923
16924echo "$as_me:$LINENO: checking size of void *" >&5
16925echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16926if test "${ac_cv_sizeof_void_p+set}" = set; then
16927 echo $ECHO_N "(cached) $ECHO_C" >&6
16928else
16929 if test "$ac_cv_type_void_p" = yes; then
16930 # The cast to unsigned long works around a bug in the HP C Compiler
16931 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16932 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16933 # This bug is HP SR number 8606223364.
16934 if test "$cross_compiling" = yes; then
16935 # Depending upon the size, compute the lo and hi bounds.
16936cat >conftest.$ac_ext <<_ACEOF
16937/* confdefs.h. */
16938_ACEOF
16939cat confdefs.h >>conftest.$ac_ext
16940cat >>conftest.$ac_ext <<_ACEOF
16941/* end confdefs.h. */
16942$ac_includes_default
16943int
16944main ()
16945{
16946static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16947test_array [0] = 0
16948
16949 ;
16950 return 0;
16951}
16952_ACEOF
16953rm -f conftest.$ac_objext
16954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16955 (eval $ac_compile) 2>conftest.er1
a848cd7e 16956 ac_status=$?
ac1cb8d3
VS
16957 grep -v '^ *+' conftest.er1 >conftest.err
16958 rm -f conftest.er1
16959 cat conftest.err >&5
a848cd7e
SC
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
6ebeb4c7 16962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
16968 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970 (eval $ac_try) 2>&5
16971 ac_status=$?
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; }; then
16974 ac_lo=0 ac_mid=0
16975 while :; do
16976 cat >conftest.$ac_ext <<_ACEOF
16977/* confdefs.h. */
16978_ACEOF
16979cat confdefs.h >>conftest.$ac_ext
16980cat >>conftest.$ac_ext <<_ACEOF
16981/* end confdefs.h. */
16982$ac_includes_default
16983int
16984main ()
16985{
16986static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16987test_array [0] = 0
16988
16989 ;
16990 return 0;
16991}
16992_ACEOF
16993rm -f conftest.$ac_objext
16994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16995 (eval $ac_compile) 2>conftest.er1
a848cd7e 16996 ac_status=$?
ac1cb8d3
VS
16997 grep -v '^ *+' conftest.er1 >conftest.err
16998 rm -f conftest.er1
16999 cat conftest.err >&5
a848cd7e
SC
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); } &&
6ebeb4c7 17002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004 (eval $ac_try) 2>&5
17005 ac_status=$?
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; } &&
17008 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17010 (eval $ac_try) 2>&5
17011 ac_status=$?
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17014 ac_hi=$ac_mid; break
17015else
17016 echo "$as_me: failed program was:" >&5
17017sed 's/^/| /' conftest.$ac_ext >&5
17018
17019ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17020 if test $ac_lo -le $ac_mid; then
17021 ac_lo= ac_hi=
17022 break
17023 fi
17024 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17025fi
ac1cb8d3 17026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17027 done
17028else
17029 echo "$as_me: failed program was:" >&5
17030sed 's/^/| /' conftest.$ac_ext >&5
17031
17032cat >conftest.$ac_ext <<_ACEOF
17033/* confdefs.h. */
17034_ACEOF
17035cat confdefs.h >>conftest.$ac_ext
17036cat >>conftest.$ac_ext <<_ACEOF
17037/* end confdefs.h. */
17038$ac_includes_default
17039int
17040main ()
17041{
17042static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17043test_array [0] = 0
17044
17045 ;
17046 return 0;
17047}
17048_ACEOF
17049rm -f conftest.$ac_objext
17050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17051 (eval $ac_compile) 2>conftest.er1
a848cd7e 17052 ac_status=$?
ac1cb8d3
VS
17053 grep -v '^ *+' conftest.er1 >conftest.err
17054 rm -f conftest.er1
17055 cat conftest.err >&5
a848cd7e
SC
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } &&
6ebeb4c7 17058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 ac_hi=-1 ac_mid=-1
17071 while :; do
17072 cat >conftest.$ac_ext <<_ACEOF
17073/* confdefs.h. */
17074_ACEOF
17075cat confdefs.h >>conftest.$ac_ext
17076cat >>conftest.$ac_ext <<_ACEOF
17077/* end confdefs.h. */
17078$ac_includes_default
17079int
17080main ()
17081{
17082static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17083test_array [0] = 0
17084
17085 ;
17086 return 0;
17087}
17088_ACEOF
17089rm -f conftest.$ac_objext
17090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17091 (eval $ac_compile) 2>conftest.er1
a848cd7e 17092 ac_status=$?
ac1cb8d3
VS
17093 grep -v '^ *+' conftest.er1 >conftest.err
17094 rm -f conftest.er1
17095 cat conftest.err >&5
a848cd7e
SC
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } &&
6ebeb4c7 17098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; } &&
17104 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17106 (eval $ac_try) 2>&5
17107 ac_status=$?
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; }; then
17110 ac_lo=$ac_mid; break
17111else
17112 echo "$as_me: failed program was:" >&5
17113sed 's/^/| /' conftest.$ac_ext >&5
17114
17115ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17116 if test $ac_mid -le $ac_hi; then
17117 ac_lo= ac_hi=
17118 break
17119 fi
17120 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17121fi
ac1cb8d3 17122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17123 done
17124else
17125 echo "$as_me: failed program was:" >&5
17126sed 's/^/| /' conftest.$ac_ext >&5
17127
17128ac_lo= ac_hi=
17129fi
ac1cb8d3 17130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17131fi
ac1cb8d3 17132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17133# Binary search between lo and hi bounds.
17134while test "x$ac_lo" != "x$ac_hi"; do
17135 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17136 cat >conftest.$ac_ext <<_ACEOF
17137/* confdefs.h. */
17138_ACEOF
17139cat confdefs.h >>conftest.$ac_ext
17140cat >>conftest.$ac_ext <<_ACEOF
17141/* end confdefs.h. */
17142$ac_includes_default
17143int
17144main ()
17145{
17146static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17147test_array [0] = 0
17148
17149 ;
17150 return 0;
17151}
17152_ACEOF
17153rm -f conftest.$ac_objext
17154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17155 (eval $ac_compile) 2>conftest.er1
a848cd7e 17156 ac_status=$?
ac1cb8d3
VS
17157 grep -v '^ *+' conftest.er1 >conftest.err
17158 rm -f conftest.er1
17159 cat conftest.err >&5
a848cd7e
SC
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } &&
6ebeb4c7 17162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; } &&
17168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170 (eval $ac_try) 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; }; then
17174 ac_hi=$ac_mid
17175else
17176 echo "$as_me: failed program was:" >&5
17177sed 's/^/| /' conftest.$ac_ext >&5
17178
17179ac_lo=`expr '(' $ac_mid ')' + 1`
17180fi
ac1cb8d3 17181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17182done
17183case $ac_lo in
17184?*) ac_cv_sizeof_void_p=$ac_lo;;
17185'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17186See \`config.log' for more details." >&5
17187echo "$as_me: error: cannot compute sizeof (void *), 77
17188See \`config.log' for more details." >&2;}
17189 { (exit 1); exit 1; }; } ;;
17190esac
17191else
17192 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17193 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17194echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17195 { (exit 1); exit 1; }; }
17196else
17197 cat >conftest.$ac_ext <<_ACEOF
17198/* confdefs.h. */
17199_ACEOF
17200cat confdefs.h >>conftest.$ac_ext
17201cat >>conftest.$ac_ext <<_ACEOF
17202/* end confdefs.h. */
17203$ac_includes_default
17204long longval () { return (long) (sizeof (void *)); }
17205unsigned long ulongval () { return (long) (sizeof (void *)); }
17206#include <stdio.h>
17207#include <stdlib.h>
17208int
17209main ()
17210{
17211
17212 FILE *f = fopen ("conftest.val", "w");
17213 if (! f)
17214 exit (1);
17215 if (((long) (sizeof (void *))) < 0)
17216 {
17217 long i = longval ();
17218 if (i != ((long) (sizeof (void *))))
17219 exit (1);
17220 fprintf (f, "%ld\n", i);
17221 }
17222 else
17223 {
17224 unsigned long i = ulongval ();
17225 if (i != ((long) (sizeof (void *))))
17226 exit (1);
17227 fprintf (f, "%lu\n", i);
17228 }
17229 exit (ferror (f) || fclose (f) != 0);
17230
17231 ;
17232 return 0;
17233}
17234_ACEOF
17235rm -f conftest$ac_exeext
17236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17237 (eval $ac_link) 2>&5
17238 ac_status=$?
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242 (eval $ac_try) 2>&5
17243 ac_status=$?
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; }; then
17246 ac_cv_sizeof_void_p=`cat conftest.val`
17247else
17248 echo "$as_me: program exited with status $ac_status" >&5
17249echo "$as_me: failed program was:" >&5
17250sed 's/^/| /' conftest.$ac_ext >&5
17251
17252( exit $ac_status )
17253{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17254See \`config.log' for more details." >&5
17255echo "$as_me: error: cannot compute sizeof (void *), 77
17256See \`config.log' for more details." >&2;}
17257 { (exit 1); exit 1; }; }
17258fi
ac1cb8d3 17259rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17260fi
17261fi
17262rm -f conftest.val
17263else
17264 ac_cv_sizeof_void_p=0
17265fi
17266fi
17267echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17268echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17269cat >>confdefs.h <<_ACEOF
17270#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17271_ACEOF
17272
17273
17274echo "$as_me:$LINENO: checking for int" >&5
17275echo $ECHO_N "checking for int... $ECHO_C" >&6
17276if test "${ac_cv_type_int+set}" = set; then
17277 echo $ECHO_N "(cached) $ECHO_C" >&6
17278else
17279 cat >conftest.$ac_ext <<_ACEOF
17280/* confdefs.h. */
17281_ACEOF
17282cat confdefs.h >>conftest.$ac_ext
17283cat >>conftest.$ac_ext <<_ACEOF
17284/* end confdefs.h. */
17285$ac_includes_default
17286int
17287main ()
17288{
17289if ((int *) 0)
17290 return 0;
17291if (sizeof (int))
17292 return 0;
17293 ;
17294 return 0;
17295}
17296_ACEOF
17297rm -f conftest.$ac_objext
17298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17299 (eval $ac_compile) 2>conftest.er1
a848cd7e 17300 ac_status=$?
ac1cb8d3
VS
17301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
a848cd7e
SC
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } &&
6ebeb4c7 17306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; } &&
17312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17315 ac_status=$?
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; }; then
17318 ac_cv_type_int=yes
17319else
17320 echo "$as_me: failed program was:" >&5
17321sed 's/^/| /' conftest.$ac_ext >&5
17322
17323ac_cv_type_int=no
17324fi
ac1cb8d3 17325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17326fi
17327echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17328echo "${ECHO_T}$ac_cv_type_int" >&6
17329
17330echo "$as_me:$LINENO: checking size of int" >&5
17331echo $ECHO_N "checking size of int... $ECHO_C" >&6
17332if test "${ac_cv_sizeof_int+set}" = set; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17334else
17335 if test "$ac_cv_type_int" = yes; then
17336 # The cast to unsigned long works around a bug in the HP C Compiler
17337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17339 # This bug is HP SR number 8606223364.
17340 if test "$cross_compiling" = yes; then
17341 # Depending upon the size, compute the lo and hi bounds.
17342cat >conftest.$ac_ext <<_ACEOF
17343/* confdefs.h. */
17344_ACEOF
17345cat confdefs.h >>conftest.$ac_ext
17346cat >>conftest.$ac_ext <<_ACEOF
17347/* end confdefs.h. */
17348$ac_includes_default
17349int
17350main ()
17351{
17352static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17353test_array [0] = 0
17354
17355 ;
17356 return 0;
17357}
17358_ACEOF
17359rm -f conftest.$ac_objext
17360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17361 (eval $ac_compile) 2>conftest.er1
a848cd7e 17362 ac_status=$?
ac1cb8d3
VS
17363 grep -v '^ *+' conftest.er1 >conftest.err
17364 rm -f conftest.er1
17365 cat conftest.err >&5
a848cd7e
SC
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } &&
6ebeb4c7 17368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380 ac_lo=0 ac_mid=0
17381 while :; do
17382 cat >conftest.$ac_ext <<_ACEOF
17383/* confdefs.h. */
17384_ACEOF
17385cat confdefs.h >>conftest.$ac_ext
17386cat >>conftest.$ac_ext <<_ACEOF
17387/* end confdefs.h. */
17388$ac_includes_default
17389int
17390main ()
17391{
17392static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17393test_array [0] = 0
17394
17395 ;
17396 return 0;
17397}
17398_ACEOF
17399rm -f conftest.$ac_objext
17400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17401 (eval $ac_compile) 2>conftest.er1
a848cd7e 17402 ac_status=$?
ac1cb8d3
VS
17403 grep -v '^ *+' conftest.er1 >conftest.err
17404 rm -f conftest.er1
17405 cat conftest.err >&5
a848cd7e
SC
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); } &&
6ebeb4c7 17408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17410 (eval $ac_try) 2>&5
17411 ac_status=$?
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); }; } &&
17414 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17417 ac_status=$?
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; }; then
17420 ac_hi=$ac_mid; break
17421else
17422 echo "$as_me: failed program was:" >&5
17423sed 's/^/| /' conftest.$ac_ext >&5
17424
17425ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17426 if test $ac_lo -le $ac_mid; then
17427 ac_lo= ac_hi=
17428 break
17429 fi
17430 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17431fi
ac1cb8d3 17432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17433 done
17434else
17435 echo "$as_me: failed program was:" >&5
17436sed 's/^/| /' conftest.$ac_ext >&5
17437
17438cat >conftest.$ac_ext <<_ACEOF
17439/* confdefs.h. */
17440_ACEOF
17441cat confdefs.h >>conftest.$ac_ext
17442cat >>conftest.$ac_ext <<_ACEOF
17443/* end confdefs.h. */
17444$ac_includes_default
17445int
17446main ()
17447{
17448static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17449test_array [0] = 0
17450
17451 ;
17452 return 0;
17453}
17454_ACEOF
17455rm -f conftest.$ac_objext
17456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17457 (eval $ac_compile) 2>conftest.er1
a848cd7e 17458 ac_status=$?
ac1cb8d3
VS
17459 grep -v '^ *+' conftest.er1 >conftest.err
17460 rm -f conftest.er1
17461 cat conftest.err >&5
a848cd7e
SC
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } &&
6ebeb4c7 17464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17473 ac_status=$?
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17476 ac_hi=-1 ac_mid=-1
17477 while :; do
17478 cat >conftest.$ac_ext <<_ACEOF
17479/* confdefs.h. */
17480_ACEOF
17481cat confdefs.h >>conftest.$ac_ext
17482cat >>conftest.$ac_ext <<_ACEOF
17483/* end confdefs.h. */
17484$ac_includes_default
17485int
17486main ()
17487{
17488static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17489test_array [0] = 0
17490
17491 ;
17492 return 0;
17493}
17494_ACEOF
17495rm -f conftest.$ac_objext
17496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17497 (eval $ac_compile) 2>conftest.er1
a848cd7e 17498 ac_status=$?
ac1cb8d3
VS
17499 grep -v '^ *+' conftest.er1 >conftest.err
17500 rm -f conftest.er1
17501 cat conftest.err >&5
a848cd7e
SC
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } &&
6ebeb4c7 17504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506 (eval $ac_try) 2>&5
17507 ac_status=$?
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; } &&
17510 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
17516 ac_lo=$ac_mid; break
17517else
17518 echo "$as_me: failed program was:" >&5
17519sed 's/^/| /' conftest.$ac_ext >&5
17520
17521ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17522 if test $ac_mid -le $ac_hi; then
17523 ac_lo= ac_hi=
17524 break
17525 fi
17526 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17527fi
ac1cb8d3 17528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17529 done
17530else
17531 echo "$as_me: failed program was:" >&5
17532sed 's/^/| /' conftest.$ac_ext >&5
17533
17534ac_lo= ac_hi=
17535fi
ac1cb8d3 17536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17537fi
ac1cb8d3 17538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17539# Binary search between lo and hi bounds.
17540while test "x$ac_lo" != "x$ac_hi"; do
17541 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17542 cat >conftest.$ac_ext <<_ACEOF
17543/* confdefs.h. */
17544_ACEOF
17545cat confdefs.h >>conftest.$ac_ext
17546cat >>conftest.$ac_ext <<_ACEOF
17547/* end confdefs.h. */
17548$ac_includes_default
17549int
17550main ()
17551{
17552static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17553test_array [0] = 0
17554
17555 ;
17556 return 0;
17557}
17558_ACEOF
17559rm -f conftest.$ac_objext
17560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17561 (eval $ac_compile) 2>conftest.er1
a848cd7e 17562 ac_status=$?
ac1cb8d3
VS
17563 grep -v '^ *+' conftest.er1 >conftest.err
17564 rm -f conftest.er1
17565 cat conftest.err >&5
a848cd7e
SC
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
6ebeb4c7 17568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17571 ac_status=$?
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; } &&
17574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 ac_hi=$ac_mid
17581else
17582 echo "$as_me: failed program was:" >&5
17583sed 's/^/| /' conftest.$ac_ext >&5
17584
17585ac_lo=`expr '(' $ac_mid ')' + 1`
17586fi
ac1cb8d3 17587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17588done
17589case $ac_lo in
17590?*) ac_cv_sizeof_int=$ac_lo;;
17591'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17592See \`config.log' for more details." >&5
17593echo "$as_me: error: cannot compute sizeof (int), 77
17594See \`config.log' for more details." >&2;}
17595 { (exit 1); exit 1; }; } ;;
17596esac
17597else
17598 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17599 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17600echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17601 { (exit 1); exit 1; }; }
17602else
17603 cat >conftest.$ac_ext <<_ACEOF
17604/* confdefs.h. */
17605_ACEOF
17606cat confdefs.h >>conftest.$ac_ext
17607cat >>conftest.$ac_ext <<_ACEOF
17608/* end confdefs.h. */
17609$ac_includes_default
17610long longval () { return (long) (sizeof (int)); }
17611unsigned long ulongval () { return (long) (sizeof (int)); }
17612#include <stdio.h>
17613#include <stdlib.h>
17614int
17615main ()
17616{
17617
17618 FILE *f = fopen ("conftest.val", "w");
17619 if (! f)
17620 exit (1);
17621 if (((long) (sizeof (int))) < 0)
17622 {
17623 long i = longval ();
17624 if (i != ((long) (sizeof (int))))
17625 exit (1);
17626 fprintf (f, "%ld\n", i);
17627 }
17628 else
17629 {
17630 unsigned long i = ulongval ();
17631 if (i != ((long) (sizeof (int))))
17632 exit (1);
17633 fprintf (f, "%lu\n", i);
17634 }
17635 exit (ferror (f) || fclose (f) != 0);
17636
17637 ;
17638 return 0;
17639}
17640_ACEOF
17641rm -f conftest$ac_exeext
17642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17643 (eval $ac_link) 2>&5
17644 ac_status=$?
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
17652 ac_cv_sizeof_int=`cat conftest.val`
17653else
17654 echo "$as_me: program exited with status $ac_status" >&5
17655echo "$as_me: failed program was:" >&5
17656sed 's/^/| /' conftest.$ac_ext >&5
17657
17658( exit $ac_status )
17659{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17660See \`config.log' for more details." >&5
17661echo "$as_me: error: cannot compute sizeof (int), 77
17662See \`config.log' for more details." >&2;}
17663 { (exit 1); exit 1; }; }
17664fi
ac1cb8d3 17665rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17666fi
17667fi
17668rm -f conftest.val
17669else
17670 ac_cv_sizeof_int=0
17671fi
17672fi
17673echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17674echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17675cat >>confdefs.h <<_ACEOF
17676#define SIZEOF_INT $ac_cv_sizeof_int
17677_ACEOF
17678
17679
17680echo "$as_me:$LINENO: checking for long" >&5
17681echo $ECHO_N "checking for long... $ECHO_C" >&6
17682if test "${ac_cv_type_long+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17684else
17685 cat >conftest.$ac_ext <<_ACEOF
17686/* confdefs.h. */
17687_ACEOF
17688cat confdefs.h >>conftest.$ac_ext
17689cat >>conftest.$ac_ext <<_ACEOF
17690/* end confdefs.h. */
17691$ac_includes_default
17692int
17693main ()
17694{
17695if ((long *) 0)
17696 return 0;
17697if (sizeof (long))
17698 return 0;
17699 ;
17700 return 0;
17701}
17702_ACEOF
17703rm -f conftest.$ac_objext
17704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17705 (eval $ac_compile) 2>conftest.er1
a848cd7e 17706 ac_status=$?
ac1cb8d3
VS
17707 grep -v '^ *+' conftest.er1 >conftest.err
17708 rm -f conftest.er1
17709 cat conftest.err >&5
a848cd7e
SC
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
6ebeb4c7 17712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17715 ac_status=$?
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; } &&
17718 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17721 ac_status=$?
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; }; then
17724 ac_cv_type_long=yes
17725else
17726 echo "$as_me: failed program was:" >&5
17727sed 's/^/| /' conftest.$ac_ext >&5
17728
17729ac_cv_type_long=no
17730fi
ac1cb8d3 17731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17732fi
17733echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17734echo "${ECHO_T}$ac_cv_type_long" >&6
17735
17736echo "$as_me:$LINENO: checking size of long" >&5
17737echo $ECHO_N "checking size of long... $ECHO_C" >&6
17738if test "${ac_cv_sizeof_long+set}" = set; then
17739 echo $ECHO_N "(cached) $ECHO_C" >&6
17740else
17741 if test "$ac_cv_type_long" = yes; then
17742 # The cast to unsigned long works around a bug in the HP C Compiler
17743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17744 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17745 # This bug is HP SR number 8606223364.
17746 if test "$cross_compiling" = yes; then
17747 # Depending upon the size, compute the lo and hi bounds.
17748cat >conftest.$ac_ext <<_ACEOF
17749/* confdefs.h. */
17750_ACEOF
17751cat confdefs.h >>conftest.$ac_ext
17752cat >>conftest.$ac_ext <<_ACEOF
17753/* end confdefs.h. */
17754$ac_includes_default
17755int
17756main ()
17757{
17758static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17759test_array [0] = 0
17760
17761 ;
17762 return 0;
17763}
17764_ACEOF
17765rm -f conftest.$ac_objext
17766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17767 (eval $ac_compile) 2>conftest.er1
a848cd7e 17768 ac_status=$?
ac1cb8d3
VS
17769 grep -v '^ *+' conftest.er1 >conftest.err
17770 rm -f conftest.er1
17771 cat conftest.err >&5
a848cd7e
SC
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
6ebeb4c7 17774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786 ac_lo=0 ac_mid=0
17787 while :; do
17788 cat >conftest.$ac_ext <<_ACEOF
17789/* confdefs.h. */
17790_ACEOF
17791cat confdefs.h >>conftest.$ac_ext
17792cat >>conftest.$ac_ext <<_ACEOF
17793/* end confdefs.h. */
17794$ac_includes_default
17795int
17796main ()
17797{
17798static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17799test_array [0] = 0
17800
17801 ;
17802 return 0;
17803}
17804_ACEOF
17805rm -f conftest.$ac_objext
17806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17807 (eval $ac_compile) 2>conftest.er1
a848cd7e 17808 ac_status=$?
ac1cb8d3
VS
17809 grep -v '^ *+' conftest.er1 >conftest.err
17810 rm -f conftest.er1
17811 cat conftest.err >&5
a848cd7e
SC
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
6ebeb4c7 17814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; } &&
17820 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; }; then
17826 ac_hi=$ac_mid; break
17827else
17828 echo "$as_me: failed program was:" >&5
17829sed 's/^/| /' conftest.$ac_ext >&5
17830
17831ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17832 if test $ac_lo -le $ac_mid; then
17833 ac_lo= ac_hi=
17834 break
17835 fi
17836 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17837fi
ac1cb8d3 17838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17839 done
17840else
17841 echo "$as_me: failed program was:" >&5
17842sed 's/^/| /' conftest.$ac_ext >&5
17843
17844cat >conftest.$ac_ext <<_ACEOF
17845/* confdefs.h. */
17846_ACEOF
17847cat confdefs.h >>conftest.$ac_ext
17848cat >>conftest.$ac_ext <<_ACEOF
17849/* end confdefs.h. */
17850$ac_includes_default
17851int
17852main ()
17853{
17854static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17855test_array [0] = 0
17856
17857 ;
17858 return 0;
17859}
17860_ACEOF
17861rm -f conftest.$ac_objext
17862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17863 (eval $ac_compile) 2>conftest.er1
a848cd7e 17864 ac_status=$?
ac1cb8d3
VS
17865 grep -v '^ *+' conftest.er1 >conftest.err
17866 rm -f conftest.er1
17867 cat conftest.err >&5
a848cd7e
SC
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } &&
6ebeb4c7 17870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; } &&
17876 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 ac_hi=-1 ac_mid=-1
17883 while :; do
17884 cat >conftest.$ac_ext <<_ACEOF
17885/* confdefs.h. */
17886_ACEOF
17887cat confdefs.h >>conftest.$ac_ext
17888cat >>conftest.$ac_ext <<_ACEOF
17889/* end confdefs.h. */
17890$ac_includes_default
17891int
17892main ()
17893{
17894static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17895test_array [0] = 0
17896
17897 ;
17898 return 0;
17899}
17900_ACEOF
17901rm -f conftest.$ac_objext
17902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17903 (eval $ac_compile) 2>conftest.er1
a848cd7e 17904 ac_status=$?
ac1cb8d3
VS
17905 grep -v '^ *+' conftest.er1 >conftest.err
17906 rm -f conftest.er1
17907 cat conftest.err >&5
a848cd7e
SC
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } &&
6ebeb4c7 17910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17913 ac_status=$?
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
17922 ac_lo=$ac_mid; break
17923else
17924 echo "$as_me: failed program was:" >&5
17925sed 's/^/| /' conftest.$ac_ext >&5
17926
17927ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17928 if test $ac_mid -le $ac_hi; then
17929 ac_lo= ac_hi=
17930 break
17931 fi
17932 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17933fi
ac1cb8d3 17934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17935 done
17936else
17937 echo "$as_me: failed program was:" >&5
17938sed 's/^/| /' conftest.$ac_ext >&5
17939
17940ac_lo= ac_hi=
17941fi
ac1cb8d3 17942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17943fi
ac1cb8d3 17944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17945# Binary search between lo and hi bounds.
17946while test "x$ac_lo" != "x$ac_hi"; do
17947 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17948 cat >conftest.$ac_ext <<_ACEOF
17949/* confdefs.h. */
17950_ACEOF
17951cat confdefs.h >>conftest.$ac_ext
17952cat >>conftest.$ac_ext <<_ACEOF
17953/* end confdefs.h. */
17954$ac_includes_default
17955int
17956main ()
17957{
17958static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17959test_array [0] = 0
17960
17961 ;
17962 return 0;
17963}
17964_ACEOF
17965rm -f conftest.$ac_objext
17966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17967 (eval $ac_compile) 2>conftest.er1
a848cd7e 17968 ac_status=$?
ac1cb8d3
VS
17969 grep -v '^ *+' conftest.er1 >conftest.err
17970 rm -f conftest.er1
17971 cat conftest.err >&5
a848cd7e
SC
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } &&
6ebeb4c7 17974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17976 (eval $ac_try) 2>&5
17977 ac_status=$?
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; } &&
17980 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982 (eval $ac_try) 2>&5
17983 ac_status=$?
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; }; then
17986 ac_hi=$ac_mid
17987else
17988 echo "$as_me: failed program was:" >&5
17989sed 's/^/| /' conftest.$ac_ext >&5
17990
17991ac_lo=`expr '(' $ac_mid ')' + 1`
17992fi
ac1cb8d3 17993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17994done
17995case $ac_lo in
17996?*) ac_cv_sizeof_long=$ac_lo;;
17997'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17998See \`config.log' for more details." >&5
17999echo "$as_me: error: cannot compute sizeof (long), 77
18000See \`config.log' for more details." >&2;}
18001 { (exit 1); exit 1; }; } ;;
18002esac
18003else
18004 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18005 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18006echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18007 { (exit 1); exit 1; }; }
18008else
18009 cat >conftest.$ac_ext <<_ACEOF
18010/* confdefs.h. */
18011_ACEOF
18012cat confdefs.h >>conftest.$ac_ext
18013cat >>conftest.$ac_ext <<_ACEOF
18014/* end confdefs.h. */
18015$ac_includes_default
18016long longval () { return (long) (sizeof (long)); }
18017unsigned long ulongval () { return (long) (sizeof (long)); }
18018#include <stdio.h>
18019#include <stdlib.h>
18020int
18021main ()
18022{
18023
18024 FILE *f = fopen ("conftest.val", "w");
18025 if (! f)
18026 exit (1);
18027 if (((long) (sizeof (long))) < 0)
18028 {
18029 long i = longval ();
18030 if (i != ((long) (sizeof (long))))
18031 exit (1);
18032 fprintf (f, "%ld\n", i);
18033 }
18034 else
18035 {
18036 unsigned long i = ulongval ();
18037 if (i != ((long) (sizeof (long))))
18038 exit (1);
18039 fprintf (f, "%lu\n", i);
18040 }
18041 exit (ferror (f) || fclose (f) != 0);
18042
18043 ;
18044 return 0;
18045}
18046_ACEOF
18047rm -f conftest$ac_exeext
18048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049 (eval $ac_link) 2>&5
18050 ac_status=$?
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18054 (eval $ac_try) 2>&5
18055 ac_status=$?
18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); }; }; then
18058 ac_cv_sizeof_long=`cat conftest.val`
18059else
18060 echo "$as_me: program exited with status $ac_status" >&5
18061echo "$as_me: failed program was:" >&5
18062sed 's/^/| /' conftest.$ac_ext >&5
18063
18064( exit $ac_status )
18065{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18066See \`config.log' for more details." >&5
18067echo "$as_me: error: cannot compute sizeof (long), 77
18068See \`config.log' for more details." >&2;}
18069 { (exit 1); exit 1; }; }
18070fi
ac1cb8d3 18071rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18072fi
18073fi
18074rm -f conftest.val
18075else
18076 ac_cv_sizeof_long=0
18077fi
18078fi
18079echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18080echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18081cat >>confdefs.h <<_ACEOF
18082#define SIZEOF_LONG $ac_cv_sizeof_long
18083_ACEOF
18084
18085
18086echo "$as_me:$LINENO: checking for size_t" >&5
18087echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18088if test "${ac_cv_type_size_t+set}" = set; then
18089 echo $ECHO_N "(cached) $ECHO_C" >&6
18090else
18091 cat >conftest.$ac_ext <<_ACEOF
18092/* confdefs.h. */
18093_ACEOF
18094cat confdefs.h >>conftest.$ac_ext
18095cat >>conftest.$ac_ext <<_ACEOF
18096/* end confdefs.h. */
18097$ac_includes_default
18098int
18099main ()
18100{
18101if ((size_t *) 0)
18102 return 0;
18103if (sizeof (size_t))
18104 return 0;
18105 ;
18106 return 0;
18107}
18108_ACEOF
18109rm -f conftest.$ac_objext
18110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18111 (eval $ac_compile) 2>conftest.er1
a848cd7e 18112 ac_status=$?
ac1cb8d3
VS
18113 grep -v '^ *+' conftest.er1 >conftest.err
18114 rm -f conftest.er1
18115 cat conftest.err >&5
a848cd7e
SC
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
6ebeb4c7 18118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120 (eval $ac_try) 2>&5
18121 ac_status=$?
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; } &&
18124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130 ac_cv_type_size_t=yes
18131else
18132 echo "$as_me: failed program was:" >&5
18133sed 's/^/| /' conftest.$ac_ext >&5
18134
18135ac_cv_type_size_t=no
18136fi
ac1cb8d3 18137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18138fi
18139echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18140echo "${ECHO_T}$ac_cv_type_size_t" >&6
18141
18142echo "$as_me:$LINENO: checking size of size_t" >&5
18143echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18144if test "${ac_cv_sizeof_size_t+set}" = set; then
18145 echo $ECHO_N "(cached) $ECHO_C" >&6
18146else
18147 if test "$ac_cv_type_size_t" = yes; then
18148 # The cast to unsigned long works around a bug in the HP C Compiler
18149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18151 # This bug is HP SR number 8606223364.
18152 if test "$cross_compiling" = yes; then
18153 # Depending upon the size, compute the lo and hi bounds.
18154cat >conftest.$ac_ext <<_ACEOF
18155/* confdefs.h. */
18156_ACEOF
18157cat confdefs.h >>conftest.$ac_ext
18158cat >>conftest.$ac_ext <<_ACEOF
18159/* end confdefs.h. */
18160$ac_includes_default
18161int
18162main ()
18163{
18164static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18165test_array [0] = 0
18166
18167 ;
18168 return 0;
18169}
18170_ACEOF
18171rm -f conftest.$ac_objext
18172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18173 (eval $ac_compile) 2>conftest.er1
a848cd7e 18174 ac_status=$?
ac1cb8d3
VS
18175 grep -v '^ *+' conftest.er1 >conftest.err
18176 rm -f conftest.er1
18177 cat conftest.err >&5
a848cd7e
SC
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); } &&
6ebeb4c7 18180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18182 (eval $ac_try) 2>&5
18183 ac_status=$?
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; } &&
18186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188 (eval $ac_try) 2>&5
18189 ac_status=$?
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; }; then
18192 ac_lo=0 ac_mid=0
18193 while :; do
18194 cat >conftest.$ac_ext <<_ACEOF
18195/* confdefs.h. */
18196_ACEOF
18197cat confdefs.h >>conftest.$ac_ext
18198cat >>conftest.$ac_ext <<_ACEOF
18199/* end confdefs.h. */
18200$ac_includes_default
18201int
18202main ()
18203{
18204static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18205test_array [0] = 0
18206
18207 ;
18208 return 0;
18209}
18210_ACEOF
18211rm -f conftest.$ac_objext
18212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18213 (eval $ac_compile) 2>conftest.er1
a848cd7e 18214 ac_status=$?
ac1cb8d3
VS
18215 grep -v '^ *+' conftest.er1 >conftest.err
18216 rm -f conftest.er1
18217 cat conftest.err >&5
a848cd7e
SC
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } &&
6ebeb4c7 18220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18222 (eval $ac_try) 2>&5
18223 ac_status=$?
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; } &&
18226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228 (eval $ac_try) 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; }; then
18232 ac_hi=$ac_mid; break
18233else
18234 echo "$as_me: failed program was:" >&5
18235sed 's/^/| /' conftest.$ac_ext >&5
18236
18237ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18238 if test $ac_lo -le $ac_mid; then
18239 ac_lo= ac_hi=
18240 break
18241 fi
18242 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18243fi
ac1cb8d3 18244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18245 done
18246else
18247 echo "$as_me: failed program was:" >&5
18248sed 's/^/| /' conftest.$ac_ext >&5
18249
18250cat >conftest.$ac_ext <<_ACEOF
18251/* confdefs.h. */
18252_ACEOF
18253cat confdefs.h >>conftest.$ac_ext
18254cat >>conftest.$ac_ext <<_ACEOF
18255/* end confdefs.h. */
18256$ac_includes_default
18257int
18258main ()
18259{
18260static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18261test_array [0] = 0
18262
18263 ;
18264 return 0;
18265}
18266_ACEOF
18267rm -f conftest.$ac_objext
18268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18269 (eval $ac_compile) 2>conftest.er1
a848cd7e 18270 ac_status=$?
ac1cb8d3
VS
18271 grep -v '^ *+' conftest.er1 >conftest.err
18272 rm -f conftest.er1
18273 cat conftest.err >&5
a848cd7e
SC
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } &&
6ebeb4c7 18276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278 (eval $ac_try) 2>&5
18279 ac_status=$?
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); }; } &&
18282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; }; then
18288 ac_hi=-1 ac_mid=-1
18289 while :; do
18290 cat >conftest.$ac_ext <<_ACEOF
18291/* confdefs.h. */
18292_ACEOF
18293cat confdefs.h >>conftest.$ac_ext
18294cat >>conftest.$ac_ext <<_ACEOF
18295/* end confdefs.h. */
18296$ac_includes_default
18297int
18298main ()
18299{
18300static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18301test_array [0] = 0
18302
18303 ;
18304 return 0;
18305}
18306_ACEOF
18307rm -f conftest.$ac_objext
18308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18309 (eval $ac_compile) 2>conftest.er1
a848cd7e 18310 ac_status=$?
ac1cb8d3
VS
18311 grep -v '^ *+' conftest.er1 >conftest.err
18312 rm -f conftest.er1
18313 cat conftest.err >&5
a848cd7e
SC
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } &&
6ebeb4c7 18316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; } &&
18322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324 (eval $ac_try) 2>&5
18325 ac_status=$?
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); }; }; then
18328 ac_lo=$ac_mid; break
18329else
18330 echo "$as_me: failed program was:" >&5
18331sed 's/^/| /' conftest.$ac_ext >&5
18332
18333ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18334 if test $ac_mid -le $ac_hi; then
18335 ac_lo= ac_hi=
18336 break
18337 fi
18338 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18339fi
ac1cb8d3 18340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18341 done
18342else
18343 echo "$as_me: failed program was:" >&5
18344sed 's/^/| /' conftest.$ac_ext >&5
18345
18346ac_lo= ac_hi=
18347fi
ac1cb8d3 18348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18349fi
ac1cb8d3 18350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18351# Binary search between lo and hi bounds.
18352while test "x$ac_lo" != "x$ac_hi"; do
18353 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18354 cat >conftest.$ac_ext <<_ACEOF
18355/* confdefs.h. */
18356_ACEOF
18357cat confdefs.h >>conftest.$ac_ext
18358cat >>conftest.$ac_ext <<_ACEOF
18359/* end confdefs.h. */
18360$ac_includes_default
18361int
18362main ()
18363{
18364static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18365test_array [0] = 0
18366
18367 ;
18368 return 0;
18369}
18370_ACEOF
18371rm -f conftest.$ac_objext
18372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18373 (eval $ac_compile) 2>conftest.er1
a848cd7e 18374 ac_status=$?
ac1cb8d3
VS
18375 grep -v '^ *+' conftest.er1 >conftest.err
18376 rm -f conftest.er1
18377 cat conftest.err >&5
a848cd7e
SC
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); } &&
6ebeb4c7 18380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18382 (eval $ac_try) 2>&5
18383 ac_status=$?
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); }; } &&
18386 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18388 (eval $ac_try) 2>&5
18389 ac_status=$?
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; }; then
18392 ac_hi=$ac_mid
18393else
18394 echo "$as_me: failed program was:" >&5
18395sed 's/^/| /' conftest.$ac_ext >&5
18396
18397ac_lo=`expr '(' $ac_mid ')' + 1`
18398fi
ac1cb8d3 18399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18400done
18401case $ac_lo in
18402?*) ac_cv_sizeof_size_t=$ac_lo;;
18403'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18404See \`config.log' for more details." >&5
18405echo "$as_me: error: cannot compute sizeof (size_t), 77
18406See \`config.log' for more details." >&2;}
18407 { (exit 1); exit 1; }; } ;;
18408esac
18409else
18410 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18411 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18412echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18413 { (exit 1); exit 1; }; }
18414else
18415 cat >conftest.$ac_ext <<_ACEOF
18416/* confdefs.h. */
18417_ACEOF
18418cat confdefs.h >>conftest.$ac_ext
18419cat >>conftest.$ac_ext <<_ACEOF
18420/* end confdefs.h. */
18421$ac_includes_default
18422long longval () { return (long) (sizeof (size_t)); }
18423unsigned long ulongval () { return (long) (sizeof (size_t)); }
18424#include <stdio.h>
18425#include <stdlib.h>
18426int
18427main ()
18428{
18429
18430 FILE *f = fopen ("conftest.val", "w");
18431 if (! f)
18432 exit (1);
18433 if (((long) (sizeof (size_t))) < 0)
18434 {
18435 long i = longval ();
18436 if (i != ((long) (sizeof (size_t))))
18437 exit (1);
18438 fprintf (f, "%ld\n", i);
18439 }
18440 else
18441 {
18442 unsigned long i = ulongval ();
18443 if (i != ((long) (sizeof (size_t))))
18444 exit (1);
18445 fprintf (f, "%lu\n", i);
18446 }
18447 exit (ferror (f) || fclose (f) != 0);
18448
18449 ;
18450 return 0;
18451}
18452_ACEOF
18453rm -f conftest$ac_exeext
18454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18455 (eval $ac_link) 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; }; then
18464 ac_cv_sizeof_size_t=`cat conftest.val`
18465else
18466 echo "$as_me: program exited with status $ac_status" >&5
18467echo "$as_me: failed program was:" >&5
18468sed 's/^/| /' conftest.$ac_ext >&5
18469
18470( exit $ac_status )
18471{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18472See \`config.log' for more details." >&5
18473echo "$as_me: error: cannot compute sizeof (size_t), 77
18474See \`config.log' for more details." >&2;}
18475 { (exit 1); exit 1; }; }
18476fi
ac1cb8d3 18477rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18478fi
18479fi
18480rm -f conftest.val
18481else
18482 ac_cv_sizeof_size_t=0
18483fi
18484fi
18485echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18486echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18487cat >>confdefs.h <<_ACEOF
18488#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18489_ACEOF
18490
18491
18492
18493case "${host}" in
18494 arm-*-linux* )
18495 echo "$as_me:$LINENO: checking for long long" >&5
18496echo $ECHO_N "checking for long long... $ECHO_C" >&6
18497if test "${ac_cv_type_long_long+set}" = set; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18499else
18500 cat >conftest.$ac_ext <<_ACEOF
18501/* confdefs.h. */
18502_ACEOF
18503cat confdefs.h >>conftest.$ac_ext
18504cat >>conftest.$ac_ext <<_ACEOF
18505/* end confdefs.h. */
18506$ac_includes_default
18507int
18508main ()
18509{
18510if ((long long *) 0)
18511 return 0;
18512if (sizeof (long long))
18513 return 0;
18514 ;
18515 return 0;
18516}
18517_ACEOF
18518rm -f conftest.$ac_objext
18519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18520 (eval $ac_compile) 2>conftest.er1
a848cd7e 18521 ac_status=$?
ac1cb8d3
VS
18522 grep -v '^ *+' conftest.er1 >conftest.err
18523 rm -f conftest.er1
18524 cat conftest.err >&5
a848cd7e
SC
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } &&
6ebeb4c7 18527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529 (eval $ac_try) 2>&5
18530 ac_status=$?
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; } &&
18533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535 (eval $ac_try) 2>&5
18536 ac_status=$?
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; }; then
18539 ac_cv_type_long_long=yes
18540else
18541 echo "$as_me: failed program was:" >&5
18542sed 's/^/| /' conftest.$ac_ext >&5
18543
18544ac_cv_type_long_long=no
18545fi
ac1cb8d3 18546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18547fi
18548echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18549echo "${ECHO_T}$ac_cv_type_long_long" >&6
18550
18551echo "$as_me:$LINENO: checking size of long long" >&5
18552echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18553if test "${ac_cv_sizeof_long_long+set}" = set; then
18554 echo $ECHO_N "(cached) $ECHO_C" >&6
18555else
18556 if test "$ac_cv_type_long_long" = yes; then
18557 # The cast to unsigned long works around a bug in the HP C Compiler
18558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18560 # This bug is HP SR number 8606223364.
18561 if test "$cross_compiling" = yes; then
18562 # Depending upon the size, compute the lo and hi bounds.
18563cat >conftest.$ac_ext <<_ACEOF
18564/* confdefs.h. */
18565_ACEOF
18566cat confdefs.h >>conftest.$ac_ext
18567cat >>conftest.$ac_ext <<_ACEOF
18568/* end confdefs.h. */
18569$ac_includes_default
18570int
18571main ()
18572{
18573static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18574test_array [0] = 0
18575
18576 ;
18577 return 0;
18578}
18579_ACEOF
18580rm -f conftest.$ac_objext
18581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18582 (eval $ac_compile) 2>conftest.er1
a848cd7e 18583 ac_status=$?
ac1cb8d3
VS
18584 grep -v '^ *+' conftest.er1 >conftest.err
18585 rm -f conftest.er1
18586 cat conftest.err >&5
a848cd7e
SC
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); } &&
6ebeb4c7 18589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18591 (eval $ac_try) 2>&5
18592 ac_status=$?
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; } &&
18595 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_lo=0 ac_mid=0
18602 while :; do
18603 cat >conftest.$ac_ext <<_ACEOF
18604/* confdefs.h. */
18605_ACEOF
18606cat confdefs.h >>conftest.$ac_ext
18607cat >>conftest.$ac_ext <<_ACEOF
18608/* end confdefs.h. */
18609$ac_includes_default
18610int
18611main ()
18612{
18613static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18614test_array [0] = 0
18615
18616 ;
18617 return 0;
18618}
18619_ACEOF
18620rm -f conftest.$ac_objext
18621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18622 (eval $ac_compile) 2>conftest.er1
a848cd7e 18623 ac_status=$?
ac1cb8d3
VS
18624 grep -v '^ *+' conftest.er1 >conftest.err
18625 rm -f conftest.er1
18626 cat conftest.err >&5
a848cd7e
SC
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } &&
6ebeb4c7 18629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; } &&
18635 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637 (eval $ac_try) 2>&5
18638 ac_status=$?
18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640 (exit $ac_status); }; }; then
18641 ac_hi=$ac_mid; break
18642else
18643 echo "$as_me: failed program was:" >&5
18644sed 's/^/| /' conftest.$ac_ext >&5
18645
18646ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18647 if test $ac_lo -le $ac_mid; then
18648 ac_lo= ac_hi=
18649 break
18650 fi
18651 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18652fi
ac1cb8d3 18653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18654 done
18655else
18656 echo "$as_me: failed program was:" >&5
18657sed 's/^/| /' conftest.$ac_ext >&5
18658
18659cat >conftest.$ac_ext <<_ACEOF
18660/* confdefs.h. */
18661_ACEOF
18662cat confdefs.h >>conftest.$ac_ext
18663cat >>conftest.$ac_ext <<_ACEOF
18664/* end confdefs.h. */
18665$ac_includes_default
18666int
18667main ()
18668{
18669static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18670test_array [0] = 0
18671
18672 ;
18673 return 0;
18674}
18675_ACEOF
18676rm -f conftest.$ac_objext
18677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18678 (eval $ac_compile) 2>conftest.er1
a848cd7e 18679 ac_status=$?
ac1cb8d3
VS
18680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
a848cd7e
SC
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } &&
6ebeb4c7 18685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18688 ac_status=$?
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; } &&
18691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; }; then
18697 ac_hi=-1 ac_mid=-1
18698 while :; do
18699 cat >conftest.$ac_ext <<_ACEOF
18700/* confdefs.h. */
18701_ACEOF
18702cat confdefs.h >>conftest.$ac_ext
18703cat >>conftest.$ac_ext <<_ACEOF
18704/* end confdefs.h. */
18705$ac_includes_default
18706int
18707main ()
18708{
18709static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18710test_array [0] = 0
18711
18712 ;
18713 return 0;
18714}
18715_ACEOF
18716rm -f conftest.$ac_objext
18717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18718 (eval $ac_compile) 2>conftest.er1
a848cd7e 18719 ac_status=$?
ac1cb8d3
VS
18720 grep -v '^ *+' conftest.er1 >conftest.err
18721 rm -f conftest.er1
18722 cat conftest.err >&5
a848cd7e
SC
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); } &&
6ebeb4c7 18725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727 (eval $ac_try) 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; } &&
18731 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; }; then
18737 ac_lo=$ac_mid; break
18738else
18739 echo "$as_me: failed program was:" >&5
18740sed 's/^/| /' conftest.$ac_ext >&5
18741
18742ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18743 if test $ac_mid -le $ac_hi; then
18744 ac_lo= ac_hi=
18745 break
18746 fi
18747 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18748fi
ac1cb8d3 18749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18750 done
18751else
18752 echo "$as_me: failed program was:" >&5
18753sed 's/^/| /' conftest.$ac_ext >&5
18754
18755ac_lo= ac_hi=
18756fi
ac1cb8d3 18757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18758fi
ac1cb8d3 18759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18760# Binary search between lo and hi bounds.
18761while test "x$ac_lo" != "x$ac_hi"; do
18762 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18763 cat >conftest.$ac_ext <<_ACEOF
18764/* confdefs.h. */
18765_ACEOF
18766cat confdefs.h >>conftest.$ac_ext
18767cat >>conftest.$ac_ext <<_ACEOF
18768/* end confdefs.h. */
18769$ac_includes_default
18770int
18771main ()
18772{
18773static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18774test_array [0] = 0
18775
18776 ;
18777 return 0;
18778}
18779_ACEOF
18780rm -f conftest.$ac_objext
18781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18782 (eval $ac_compile) 2>conftest.er1
a848cd7e 18783 ac_status=$?
ac1cb8d3
VS
18784 grep -v '^ *+' conftest.er1 >conftest.err
18785 rm -f conftest.er1
18786 cat conftest.err >&5
a848cd7e
SC
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } &&
6ebeb4c7 18789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791 (eval $ac_try) 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797 (eval $ac_try) 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 ac_hi=$ac_mid
18802else
18803 echo "$as_me: failed program was:" >&5
18804sed 's/^/| /' conftest.$ac_ext >&5
18805
18806ac_lo=`expr '(' $ac_mid ')' + 1`
18807fi
ac1cb8d3 18808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18809done
18810case $ac_lo in
18811?*) ac_cv_sizeof_long_long=$ac_lo;;
18812'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18813See \`config.log' for more details." >&5
18814echo "$as_me: error: cannot compute sizeof (long long), 77
18815See \`config.log' for more details." >&2;}
18816 { (exit 1); exit 1; }; } ;;
18817esac
18818else
18819 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18820 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18821echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18822 { (exit 1); exit 1; }; }
18823else
18824 cat >conftest.$ac_ext <<_ACEOF
18825/* confdefs.h. */
18826_ACEOF
18827cat confdefs.h >>conftest.$ac_ext
18828cat >>conftest.$ac_ext <<_ACEOF
18829/* end confdefs.h. */
18830$ac_includes_default
18831long longval () { return (long) (sizeof (long long)); }
18832unsigned long ulongval () { return (long) (sizeof (long long)); }
18833#include <stdio.h>
18834#include <stdlib.h>
18835int
18836main ()
18837{
18838
18839 FILE *f = fopen ("conftest.val", "w");
18840 if (! f)
18841 exit (1);
18842 if (((long) (sizeof (long long))) < 0)
18843 {
18844 long i = longval ();
18845 if (i != ((long) (sizeof (long long))))
18846 exit (1);
18847 fprintf (f, "%ld\n", i);
18848 }
18849 else
18850 {
18851 unsigned long i = ulongval ();
18852 if (i != ((long) (sizeof (long long))))
18853 exit (1);
18854 fprintf (f, "%lu\n", i);
18855 }
18856 exit (ferror (f) || fclose (f) != 0);
18857
18858 ;
18859 return 0;
18860}
18861_ACEOF
18862rm -f conftest$ac_exeext
18863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18864 (eval $ac_link) 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869 (eval $ac_try) 2>&5
18870 ac_status=$?
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; }; then
18873 ac_cv_sizeof_long_long=`cat conftest.val`
18874else
18875 echo "$as_me: program exited with status $ac_status" >&5
18876echo "$as_me: failed program was:" >&5
18877sed 's/^/| /' conftest.$ac_ext >&5
18878
18879( exit $ac_status )
18880{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18881See \`config.log' for more details." >&5
18882echo "$as_me: error: cannot compute sizeof (long long), 77
18883See \`config.log' for more details." >&2;}
18884 { (exit 1); exit 1; }; }
18885fi
ac1cb8d3 18886rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18887fi
18888fi
18889rm -f conftest.val
18890else
18891 ac_cv_sizeof_long_long=0
18892fi
18893fi
18894echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18895echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18896cat >>confdefs.h <<_ACEOF
18897#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18898_ACEOF
18899
18900
18901 ;;
18902 *-hp-hpux* )
18903 echo "$as_me:$LINENO: checking for long long" >&5
18904echo $ECHO_N "checking for long long... $ECHO_C" >&6
18905if test "${ac_cv_type_long_long+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18907else
18908 cat >conftest.$ac_ext <<_ACEOF
18909/* confdefs.h. */
18910_ACEOF
18911cat confdefs.h >>conftest.$ac_ext
18912cat >>conftest.$ac_ext <<_ACEOF
18913/* end confdefs.h. */
18914$ac_includes_default
18915int
18916main ()
18917{
18918if ((long long *) 0)
18919 return 0;
18920if (sizeof (long long))
18921 return 0;
18922 ;
18923 return 0;
18924}
18925_ACEOF
18926rm -f conftest.$ac_objext
18927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18928 (eval $ac_compile) 2>conftest.er1
a848cd7e 18929 ac_status=$?
ac1cb8d3
VS
18930 grep -v '^ *+' conftest.er1 >conftest.err
18931 rm -f conftest.er1
18932 cat conftest.err >&5
a848cd7e
SC
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); } &&
6ebeb4c7 18935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18938 ac_status=$?
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18947 ac_cv_type_long_long=yes
18948else
18949 echo "$as_me: failed program was:" >&5
18950sed 's/^/| /' conftest.$ac_ext >&5
18951
18952ac_cv_type_long_long=no
18953fi
ac1cb8d3 18954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18955fi
18956echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18957echo "${ECHO_T}$ac_cv_type_long_long" >&6
18958
18959echo "$as_me:$LINENO: checking size of long long" >&5
18960echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18961if test "${ac_cv_sizeof_long_long+set}" = set; then
18962 echo $ECHO_N "(cached) $ECHO_C" >&6
18963else
18964 if test "$ac_cv_type_long_long" = yes; then
18965 # The cast to unsigned long works around a bug in the HP C Compiler
18966 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18967 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18968 # This bug is HP SR number 8606223364.
18969 if test "$cross_compiling" = yes; then
18970 # Depending upon the size, compute the lo and hi bounds.
18971cat >conftest.$ac_ext <<_ACEOF
18972/* confdefs.h. */
18973_ACEOF
18974cat confdefs.h >>conftest.$ac_ext
18975cat >>conftest.$ac_ext <<_ACEOF
18976/* end confdefs.h. */
18977$ac_includes_default
18978int
18979main ()
18980{
18981static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18982test_array [0] = 0
18983
18984 ;
18985 return 0;
18986}
18987_ACEOF
18988rm -f conftest.$ac_objext
18989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18990 (eval $ac_compile) 2>conftest.er1
a848cd7e 18991 ac_status=$?
ac1cb8d3
VS
18992 grep -v '^ *+' conftest.er1 >conftest.err
18993 rm -f conftest.er1
18994 cat conftest.err >&5
a848cd7e
SC
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } &&
6ebeb4c7 18997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19000 ac_status=$?
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; } &&
19003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005 (eval $ac_try) 2>&5
19006 ac_status=$?
19007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008 (exit $ac_status); }; }; then
19009 ac_lo=0 ac_mid=0
19010 while :; do
19011 cat >conftest.$ac_ext <<_ACEOF
19012/* confdefs.h. */
19013_ACEOF
19014cat confdefs.h >>conftest.$ac_ext
19015cat >>conftest.$ac_ext <<_ACEOF
19016/* end confdefs.h. */
19017$ac_includes_default
19018int
19019main ()
19020{
19021static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19022test_array [0] = 0
19023
19024 ;
19025 return 0;
19026}
19027_ACEOF
19028rm -f conftest.$ac_objext
19029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19030 (eval $ac_compile) 2>conftest.er1
a848cd7e 19031 ac_status=$?
ac1cb8d3
VS
19032 grep -v '^ *+' conftest.er1 >conftest.err
19033 rm -f conftest.er1
19034 cat conftest.err >&5
a848cd7e
SC
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
6ebeb4c7 19037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039 (eval $ac_try) 2>&5
19040 ac_status=$?
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; } &&
19043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19045 (eval $ac_try) 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; }; then
19049 ac_hi=$ac_mid; break
19050else
19051 echo "$as_me: failed program was:" >&5
19052sed 's/^/| /' conftest.$ac_ext >&5
19053
19054ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19055 if test $ac_lo -le $ac_mid; then
19056 ac_lo= ac_hi=
19057 break
19058 fi
19059 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19060fi
ac1cb8d3 19061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19062 done
19063else
19064 echo "$as_me: failed program was:" >&5
19065sed 's/^/| /' conftest.$ac_ext >&5
19066
19067cat >conftest.$ac_ext <<_ACEOF
19068/* confdefs.h. */
19069_ACEOF
19070cat confdefs.h >>conftest.$ac_ext
19071cat >>conftest.$ac_ext <<_ACEOF
19072/* end confdefs.h. */
19073$ac_includes_default
19074int
19075main ()
19076{
19077static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19078test_array [0] = 0
19079
19080 ;
19081 return 0;
19082}
19083_ACEOF
19084rm -f conftest.$ac_objext
19085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19086 (eval $ac_compile) 2>conftest.er1
a848cd7e 19087 ac_status=$?
ac1cb8d3
VS
19088 grep -v '^ *+' conftest.er1 >conftest.err
19089 rm -f conftest.er1
19090 cat conftest.err >&5
a848cd7e
SC
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); } &&
6ebeb4c7 19093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
19099 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19101 (eval $ac_try) 2>&5
19102 ac_status=$?
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); }; }; then
19105 ac_hi=-1 ac_mid=-1
19106 while :; do
19107 cat >conftest.$ac_ext <<_ACEOF
19108/* confdefs.h. */
19109_ACEOF
19110cat confdefs.h >>conftest.$ac_ext
19111cat >>conftest.$ac_ext <<_ACEOF
19112/* end confdefs.h. */
19113$ac_includes_default
19114int
19115main ()
19116{
19117static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19118test_array [0] = 0
19119
19120 ;
19121 return 0;
19122}
19123_ACEOF
19124rm -f conftest.$ac_objext
19125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19126 (eval $ac_compile) 2>conftest.er1
a848cd7e 19127 ac_status=$?
ac1cb8d3
VS
19128 grep -v '^ *+' conftest.er1 >conftest.err
19129 rm -f conftest.er1
19130 cat conftest.err >&5
a848cd7e
SC
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } &&
6ebeb4c7 19133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19136 ac_status=$?
19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; } &&
19139 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141 (eval $ac_try) 2>&5
19142 ac_status=$?
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); }; }; then
19145 ac_lo=$ac_mid; break
19146else
19147 echo "$as_me: failed program was:" >&5
19148sed 's/^/| /' conftest.$ac_ext >&5
19149
19150ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19151 if test $ac_mid -le $ac_hi; then
19152 ac_lo= ac_hi=
19153 break
19154 fi
19155 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19156fi
ac1cb8d3 19157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19158 done
19159else
19160 echo "$as_me: failed program was:" >&5
19161sed 's/^/| /' conftest.$ac_ext >&5
19162
19163ac_lo= ac_hi=
19164fi
ac1cb8d3 19165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19166fi
ac1cb8d3 19167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19168# Binary search between lo and hi bounds.
19169while test "x$ac_lo" != "x$ac_hi"; do
19170 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19171 cat >conftest.$ac_ext <<_ACEOF
19172/* confdefs.h. */
19173_ACEOF
19174cat confdefs.h >>conftest.$ac_ext
19175cat >>conftest.$ac_ext <<_ACEOF
19176/* end confdefs.h. */
19177$ac_includes_default
19178int
19179main ()
19180{
19181static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19182test_array [0] = 0
19183
19184 ;
19185 return 0;
19186}
19187_ACEOF
19188rm -f conftest.$ac_objext
19189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19190 (eval $ac_compile) 2>conftest.er1
a848cd7e 19191 ac_status=$?
ac1cb8d3
VS
19192 grep -v '^ *+' conftest.er1 >conftest.err
19193 rm -f conftest.er1
19194 cat conftest.err >&5
a848cd7e
SC
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
6ebeb4c7 19197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19209 ac_hi=$ac_mid
19210else
19211 echo "$as_me: failed program was:" >&5
19212sed 's/^/| /' conftest.$ac_ext >&5
19213
19214ac_lo=`expr '(' $ac_mid ')' + 1`
19215fi
ac1cb8d3 19216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19217done
19218case $ac_lo in
19219?*) ac_cv_sizeof_long_long=$ac_lo;;
19220'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19221See \`config.log' for more details." >&5
19222echo "$as_me: error: cannot compute sizeof (long long), 77
19223See \`config.log' for more details." >&2;}
19224 { (exit 1); exit 1; }; } ;;
19225esac
19226else
19227 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19228 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19229echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19230 { (exit 1); exit 1; }; }
19231else
19232 cat >conftest.$ac_ext <<_ACEOF
19233/* confdefs.h. */
19234_ACEOF
19235cat confdefs.h >>conftest.$ac_ext
19236cat >>conftest.$ac_ext <<_ACEOF
19237/* end confdefs.h. */
19238$ac_includes_default
19239long longval () { return (long) (sizeof (long long)); }
19240unsigned long ulongval () { return (long) (sizeof (long long)); }
19241#include <stdio.h>
19242#include <stdlib.h>
19243int
19244main ()
19245{
19246
19247 FILE *f = fopen ("conftest.val", "w");
19248 if (! f)
19249 exit (1);
19250 if (((long) (sizeof (long long))) < 0)
19251 {
19252 long i = longval ();
19253 if (i != ((long) (sizeof (long long))))
19254 exit (1);
19255 fprintf (f, "%ld\n", i);
19256 }
19257 else
19258 {
19259 unsigned long i = ulongval ();
19260 if (i != ((long) (sizeof (long long))))
19261 exit (1);
19262 fprintf (f, "%lu\n", i);
19263 }
19264 exit (ferror (f) || fclose (f) != 0);
19265
19266 ;
19267 return 0;
19268}
19269_ACEOF
19270rm -f conftest$ac_exeext
19271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19272 (eval $ac_link) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277 (eval $ac_try) 2>&5
19278 ac_status=$?
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; }; then
19281 ac_cv_sizeof_long_long=`cat conftest.val`
19282else
19283 echo "$as_me: program exited with status $ac_status" >&5
19284echo "$as_me: failed program was:" >&5
19285sed 's/^/| /' conftest.$ac_ext >&5
19286
19287( exit $ac_status )
19288{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19289See \`config.log' for more details." >&5
19290echo "$as_me: error: cannot compute sizeof (long long), 77
19291See \`config.log' for more details." >&2;}
19292 { (exit 1); exit 1; }; }
19293fi
ac1cb8d3 19294rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19295fi
19296fi
19297rm -f conftest.val
19298else
19299 ac_cv_sizeof_long_long=0
19300fi
19301fi
19302echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19303echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19304cat >>confdefs.h <<_ACEOF
19305#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19306_ACEOF
19307
19308
19309 if test "$ac_cv_sizeof_long_long" != "0"; then
19310 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
19311 fi
19312 ;;
19313 * )
19314 echo "$as_me:$LINENO: checking for long long" >&5
19315echo $ECHO_N "checking for long long... $ECHO_C" >&6
19316if test "${ac_cv_type_long_long+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19318else
19319 cat >conftest.$ac_ext <<_ACEOF
19320/* confdefs.h. */
19321_ACEOF
19322cat confdefs.h >>conftest.$ac_ext
19323cat >>conftest.$ac_ext <<_ACEOF
19324/* end confdefs.h. */
19325$ac_includes_default
19326int
19327main ()
19328{
19329if ((long long *) 0)
19330 return 0;
19331if (sizeof (long long))
19332 return 0;
19333 ;
19334 return 0;
19335}
19336_ACEOF
19337rm -f conftest.$ac_objext
19338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19339 (eval $ac_compile) 2>conftest.er1
a848cd7e 19340 ac_status=$?
ac1cb8d3
VS
19341 grep -v '^ *+' conftest.er1 >conftest.err
19342 rm -f conftest.er1
19343 cat conftest.err >&5
a848cd7e
SC
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } &&
6ebeb4c7 19346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19348 (eval $ac_try) 2>&5
19349 ac_status=$?
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); }; } &&
19352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 ac_cv_type_long_long=yes
19359else
19360 echo "$as_me: failed program was:" >&5
19361sed 's/^/| /' conftest.$ac_ext >&5
19362
19363ac_cv_type_long_long=no
19364fi
ac1cb8d3 19365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19366fi
19367echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19368echo "${ECHO_T}$ac_cv_type_long_long" >&6
19369
19370echo "$as_me:$LINENO: checking size of long long" >&5
19371echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19372if test "${ac_cv_sizeof_long_long+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19374else
19375 if test "$ac_cv_type_long_long" = yes; then
19376 # The cast to unsigned long works around a bug in the HP C Compiler
19377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19379 # This bug is HP SR number 8606223364.
19380 if test "$cross_compiling" = yes; then
19381 # Depending upon the size, compute the lo and hi bounds.
19382cat >conftest.$ac_ext <<_ACEOF
19383/* confdefs.h. */
19384_ACEOF
19385cat confdefs.h >>conftest.$ac_ext
19386cat >>conftest.$ac_ext <<_ACEOF
19387/* end confdefs.h. */
19388$ac_includes_default
19389int
19390main ()
19391{
19392static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19393test_array [0] = 0
19394
19395 ;
19396 return 0;
19397}
19398_ACEOF
19399rm -f conftest.$ac_objext
19400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19401 (eval $ac_compile) 2>conftest.er1
a848cd7e 19402 ac_status=$?
ac1cb8d3
VS
19403 grep -v '^ *+' conftest.er1 >conftest.err
19404 rm -f conftest.er1
19405 cat conftest.err >&5
a848cd7e
SC
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } &&
6ebeb4c7 19408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19411 ac_status=$?
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; } &&
19414 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19417 ac_status=$?
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; }; then
19420 ac_lo=0 ac_mid=0
19421 while :; do
19422 cat >conftest.$ac_ext <<_ACEOF
19423/* confdefs.h. */
19424_ACEOF
19425cat confdefs.h >>conftest.$ac_ext
19426cat >>conftest.$ac_ext <<_ACEOF
19427/* end confdefs.h. */
19428$ac_includes_default
19429int
19430main ()
19431{
19432static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19433test_array [0] = 0
19434
19435 ;
19436 return 0;
19437}
19438_ACEOF
19439rm -f conftest.$ac_objext
19440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19441 (eval $ac_compile) 2>conftest.er1
a848cd7e 19442 ac_status=$?
ac1cb8d3
VS
19443 grep -v '^ *+' conftest.er1 >conftest.err
19444 rm -f conftest.er1
19445 cat conftest.err >&5
a848cd7e
SC
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
6ebeb4c7 19448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19460 ac_hi=$ac_mid; break
19461else
19462 echo "$as_me: failed program was:" >&5
19463sed 's/^/| /' conftest.$ac_ext >&5
19464
19465ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19466 if test $ac_lo -le $ac_mid; then
19467 ac_lo= ac_hi=
19468 break
19469 fi
19470 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19471fi
ac1cb8d3 19472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19473 done
19474else
19475 echo "$as_me: failed program was:" >&5
19476sed 's/^/| /' conftest.$ac_ext >&5
19477
19478cat >conftest.$ac_ext <<_ACEOF
19479/* confdefs.h. */
19480_ACEOF
19481cat confdefs.h >>conftest.$ac_ext
19482cat >>conftest.$ac_ext <<_ACEOF
19483/* end confdefs.h. */
19484$ac_includes_default
19485int
19486main ()
19487{
19488static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19489test_array [0] = 0
19490
19491 ;
19492 return 0;
19493}
19494_ACEOF
19495rm -f conftest.$ac_objext
19496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19497 (eval $ac_compile) 2>conftest.er1
a848cd7e 19498 ac_status=$?
ac1cb8d3
VS
19499 grep -v '^ *+' conftest.er1 >conftest.err
19500 rm -f conftest.er1
19501 cat conftest.err >&5
a848cd7e
SC
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } &&
6ebeb4c7 19504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; } &&
19510 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19513 ac_status=$?
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
19516 ac_hi=-1 ac_mid=-1
19517 while :; do
19518 cat >conftest.$ac_ext <<_ACEOF
19519/* confdefs.h. */
19520_ACEOF
19521cat confdefs.h >>conftest.$ac_ext
19522cat >>conftest.$ac_ext <<_ACEOF
19523/* end confdefs.h. */
19524$ac_includes_default
19525int
19526main ()
19527{
19528static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19529test_array [0] = 0
19530
19531 ;
19532 return 0;
19533}
19534_ACEOF
19535rm -f conftest.$ac_objext
19536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19537 (eval $ac_compile) 2>conftest.er1
a848cd7e 19538 ac_status=$?
ac1cb8d3
VS
19539 grep -v '^ *+' conftest.er1 >conftest.err
19540 rm -f conftest.er1
19541 cat conftest.err >&5
a848cd7e
SC
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } &&
6ebeb4c7 19544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546 (eval $ac_try) 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; } &&
19550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; }; then
19556 ac_lo=$ac_mid; break
19557else
19558 echo "$as_me: failed program was:" >&5
19559sed 's/^/| /' conftest.$ac_ext >&5
19560
19561ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19562 if test $ac_mid -le $ac_hi; then
19563 ac_lo= ac_hi=
19564 break
19565 fi
19566 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19567fi
ac1cb8d3 19568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19569 done
19570else
19571 echo "$as_me: failed program was:" >&5
19572sed 's/^/| /' conftest.$ac_ext >&5
19573
19574ac_lo= ac_hi=
19575fi
ac1cb8d3 19576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19577fi
ac1cb8d3 19578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19579# Binary search between lo and hi bounds.
19580while test "x$ac_lo" != "x$ac_hi"; do
19581 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19582 cat >conftest.$ac_ext <<_ACEOF
19583/* confdefs.h. */
19584_ACEOF
19585cat confdefs.h >>conftest.$ac_ext
19586cat >>conftest.$ac_ext <<_ACEOF
19587/* end confdefs.h. */
19588$ac_includes_default
19589int
19590main ()
19591{
19592static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19593test_array [0] = 0
19594
19595 ;
19596 return 0;
19597}
19598_ACEOF
19599rm -f conftest.$ac_objext
19600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19601 (eval $ac_compile) 2>conftest.er1
a848cd7e 19602 ac_status=$?
ac1cb8d3
VS
19603 grep -v '^ *+' conftest.er1 >conftest.err
19604 rm -f conftest.er1
19605 cat conftest.err >&5
a848cd7e
SC
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); } &&
6ebeb4c7 19608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; } &&
19614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616 (eval $ac_try) 2>&5
19617 ac_status=$?
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; }; then
19620 ac_hi=$ac_mid
19621else
19622 echo "$as_me: failed program was:" >&5
19623sed 's/^/| /' conftest.$ac_ext >&5
19624
19625ac_lo=`expr '(' $ac_mid ')' + 1`
19626fi
ac1cb8d3 19627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19628done
19629case $ac_lo in
19630?*) ac_cv_sizeof_long_long=$ac_lo;;
19631'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19632See \`config.log' for more details." >&5
19633echo "$as_me: error: cannot compute sizeof (long long), 77
19634See \`config.log' for more details." >&2;}
19635 { (exit 1); exit 1; }; } ;;
19636esac
19637else
19638 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19639 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19640echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19641 { (exit 1); exit 1; }; }
19642else
19643 cat >conftest.$ac_ext <<_ACEOF
19644/* confdefs.h. */
19645_ACEOF
19646cat confdefs.h >>conftest.$ac_ext
19647cat >>conftest.$ac_ext <<_ACEOF
19648/* end confdefs.h. */
19649$ac_includes_default
19650long longval () { return (long) (sizeof (long long)); }
19651unsigned long ulongval () { return (long) (sizeof (long long)); }
19652#include <stdio.h>
19653#include <stdlib.h>
19654int
19655main ()
19656{
19657
19658 FILE *f = fopen ("conftest.val", "w");
19659 if (! f)
19660 exit (1);
19661 if (((long) (sizeof (long long))) < 0)
19662 {
19663 long i = longval ();
19664 if (i != ((long) (sizeof (long long))))
19665 exit (1);
19666 fprintf (f, "%ld\n", i);
19667 }
19668 else
19669 {
19670 unsigned long i = ulongval ();
19671 if (i != ((long) (sizeof (long long))))
19672 exit (1);
19673 fprintf (f, "%lu\n", i);
19674 }
19675 exit (ferror (f) || fclose (f) != 0);
19676
19677 ;
19678 return 0;
19679}
19680_ACEOF
19681rm -f conftest$ac_exeext
19682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19683 (eval $ac_link) 2>&5
19684 ac_status=$?
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; }; then
19692 ac_cv_sizeof_long_long=`cat conftest.val`
19693else
19694 echo "$as_me: program exited with status $ac_status" >&5
19695echo "$as_me: failed program was:" >&5
19696sed 's/^/| /' conftest.$ac_ext >&5
19697
19698( exit $ac_status )
19699{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19700See \`config.log' for more details." >&5
19701echo "$as_me: error: cannot compute sizeof (long long), 77
19702See \`config.log' for more details." >&2;}
19703 { (exit 1); exit 1; }; }
19704fi
ac1cb8d3 19705rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19706fi
19707fi
19708rm -f conftest.val
19709else
19710 ac_cv_sizeof_long_long=0
19711fi
19712fi
19713echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19714echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19715cat >>confdefs.h <<_ACEOF
19716#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19717_ACEOF
19718
19719
19720esac
19721
238ecede
MW
19722echo "$as_me:$LINENO: checking for wchar_t" >&5
19723echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19724if test "${ac_cv_type_wchar_t+set}" = set; then
19725 echo $ECHO_N "(cached) $ECHO_C" >&6
19726else
19727 cat >conftest.$ac_ext <<_ACEOF
19728/* confdefs.h. */
19729_ACEOF
19730cat confdefs.h >>conftest.$ac_ext
19731cat >>conftest.$ac_ext <<_ACEOF
19732/* end confdefs.h. */
19733
83d8eb47
MW
19734 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19735 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19736 # error "fake wchar_t"
19737 #endif
19738 #ifdef HAVE_WCHAR_H
19739 # ifdef __CYGWIN__
19740 # include <stddef.h>
19741 # endif
19742 # include <wchar.h>
19743 #endif
19744 #ifdef HAVE_STDLIB_H
19745 # include <stdlib.h>
19746 #endif
19747 #include <stdio.h>
19748
19749
19750
19751int
19752main ()
19753{
19754if ((wchar_t *) 0)
19755 return 0;
19756if (sizeof (wchar_t))
19757 return 0;
19758 ;
19759 return 0;
19760}
19761_ACEOF
19762rm -f conftest.$ac_objext
19763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19764 (eval $ac_compile) 2>conftest.er1
19765 ac_status=$?
19766 grep -v '^ *+' conftest.er1 >conftest.err
19767 rm -f conftest.er1
19768 cat conftest.err >&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } &&
6ebeb4c7 19771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19774 ac_status=$?
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; } &&
19777 { ac_try='test -s conftest.$ac_objext'
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; }; then
19783 ac_cv_type_wchar_t=yes
19784else
19785 echo "$as_me: failed program was:" >&5
19786sed 's/^/| /' conftest.$ac_ext >&5
19787
19788ac_cv_type_wchar_t=no
19789fi
19790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19791fi
19792echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19793echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19794
a848cd7e
SC
19795echo "$as_me:$LINENO: checking size of wchar_t" >&5
19796echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19797if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19798 echo $ECHO_N "(cached) $ECHO_C" >&6
19799else
238ecede
MW
19800 if test "$ac_cv_type_wchar_t" = yes; then
19801 # The cast to unsigned long works around a bug in the HP C Compiler
19802 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19803 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19804 # This bug is HP SR number 8606223364.
19805 if test "$cross_compiling" = yes; then
19806 # Depending upon the size, compute the lo and hi bounds.
19807cat >conftest.$ac_ext <<_ACEOF
19808/* confdefs.h. */
19809_ACEOF
19810cat confdefs.h >>conftest.$ac_ext
19811cat >>conftest.$ac_ext <<_ACEOF
19812/* end confdefs.h. */
19813
83d8eb47
MW
19814 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19815 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19816 # error "fake wchar_t"
19817 #endif
19818 #ifdef HAVE_WCHAR_H
19819 # ifdef __CYGWIN__
19820 # include <stddef.h>
19821 # endif
19822 # include <wchar.h>
19823 #endif
19824 #ifdef HAVE_STDLIB_H
19825 # include <stdlib.h>
19826 #endif
19827 #include <stdio.h>
19828
19829
19830
19831int
19832main ()
19833{
19834static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19835test_array [0] = 0
19836
19837 ;
19838 return 0;
19839}
19840_ACEOF
19841rm -f conftest.$ac_objext
19842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19843 (eval $ac_compile) 2>conftest.er1
19844 ac_status=$?
19845 grep -v '^ *+' conftest.er1 >conftest.err
19846 rm -f conftest.er1
19847 cat conftest.err >&5
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); } &&
6ebeb4c7 19850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; } &&
19856 { ac_try='test -s conftest.$ac_objext'
19857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19859 ac_status=$?
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; }; then
19862 ac_lo=0 ac_mid=0
19863 while :; do
19864 cat >conftest.$ac_ext <<_ACEOF
19865/* confdefs.h. */
19866_ACEOF
19867cat confdefs.h >>conftest.$ac_ext
19868cat >>conftest.$ac_ext <<_ACEOF
19869/* end confdefs.h. */
19870
83d8eb47
MW
19871 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19872 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19873 # error "fake wchar_t"
19874 #endif
19875 #ifdef HAVE_WCHAR_H
19876 # ifdef __CYGWIN__
19877 # include <stddef.h>
19878 # endif
19879 # include <wchar.h>
19880 #endif
19881 #ifdef HAVE_STDLIB_H
19882 # include <stdlib.h>
19883 #endif
19884 #include <stdio.h>
19885
19886
19887
19888int
19889main ()
19890{
19891static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19892test_array [0] = 0
19893
19894 ;
19895 return 0;
19896}
19897_ACEOF
19898rm -f conftest.$ac_objext
19899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19900 (eval $ac_compile) 2>conftest.er1
19901 ac_status=$?
19902 grep -v '^ *+' conftest.er1 >conftest.err
19903 rm -f conftest.er1
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } &&
6ebeb4c7 19907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909 (eval $ac_try) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; } &&
19913 { ac_try='test -s conftest.$ac_objext'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19916 ac_status=$?
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; }; then
19919 ac_hi=$ac_mid; break
19920else
19921 echo "$as_me: failed program was:" >&5
19922sed 's/^/| /' conftest.$ac_ext >&5
19923
19924ac_lo=`expr $ac_mid + 1`
19925 if test $ac_lo -le $ac_mid; then
19926 ac_lo= ac_hi=
19927 break
19928 fi
19929 ac_mid=`expr 2 '*' $ac_mid + 1`
19930fi
19931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19932 done
19933else
19934 echo "$as_me: failed program was:" >&5
19935sed 's/^/| /' conftest.$ac_ext >&5
19936
19937cat >conftest.$ac_ext <<_ACEOF
19938/* confdefs.h. */
19939_ACEOF
19940cat confdefs.h >>conftest.$ac_ext
19941cat >>conftest.$ac_ext <<_ACEOF
19942/* end confdefs.h. */
19943
83d8eb47
MW
19944 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19945 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19946 # error "fake wchar_t"
19947 #endif
19948 #ifdef HAVE_WCHAR_H
19949 # ifdef __CYGWIN__
19950 # include <stddef.h>
19951 # endif
19952 # include <wchar.h>
19953 #endif
19954 #ifdef HAVE_STDLIB_H
19955 # include <stdlib.h>
19956 #endif
19957 #include <stdio.h>
19958
19959
19960
19961int
19962main ()
19963{
19964static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19965test_array [0] = 0
19966
19967 ;
19968 return 0;
19969}
19970_ACEOF
19971rm -f conftest.$ac_objext
19972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19973 (eval $ac_compile) 2>conftest.er1
19974 ac_status=$?
19975 grep -v '^ *+' conftest.er1 >conftest.err
19976 rm -f conftest.er1
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } &&
6ebeb4c7 19980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19983 ac_status=$?
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; } &&
19986 { ac_try='test -s conftest.$ac_objext'
19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988 (eval $ac_try) 2>&5
19989 ac_status=$?
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; }; then
19992 ac_hi=-1 ac_mid=-1
19993 while :; do
19994 cat >conftest.$ac_ext <<_ACEOF
19995/* confdefs.h. */
19996_ACEOF
19997cat confdefs.h >>conftest.$ac_ext
19998cat >>conftest.$ac_ext <<_ACEOF
19999/* end confdefs.h. */
20000
83d8eb47
MW
20001 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20002 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20003 # error "fake wchar_t"
20004 #endif
20005 #ifdef HAVE_WCHAR_H
20006 # ifdef __CYGWIN__
20007 # include <stddef.h>
20008 # endif
20009 # include <wchar.h>
20010 #endif
20011 #ifdef HAVE_STDLIB_H
20012 # include <stdlib.h>
20013 #endif
20014 #include <stdio.h>
20015
20016
20017
20018int
20019main ()
20020{
20021static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20022test_array [0] = 0
20023
20024 ;
20025 return 0;
20026}
20027_ACEOF
20028rm -f conftest.$ac_objext
20029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20030 (eval $ac_compile) 2>conftest.er1
20031 ac_status=$?
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } &&
6ebeb4c7 20037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039 (eval $ac_try) 2>&5
20040 ac_status=$?
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; } &&
20043 { ac_try='test -s conftest.$ac_objext'
20044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; }; then
20049 ac_lo=$ac_mid; break
20050else
20051 echo "$as_me: failed program was:" >&5
20052sed 's/^/| /' conftest.$ac_ext >&5
20053
20054ac_hi=`expr '(' $ac_mid ')' - 1`
20055 if test $ac_mid -le $ac_hi; then
20056 ac_lo= ac_hi=
20057 break
20058 fi
20059 ac_mid=`expr 2 '*' $ac_mid`
20060fi
20061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20062 done
20063else
20064 echo "$as_me: failed program was:" >&5
20065sed 's/^/| /' conftest.$ac_ext >&5
20066
20067ac_lo= ac_hi=
20068fi
20069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20070fi
20071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20072# Binary search between lo and hi bounds.
20073while test "x$ac_lo" != "x$ac_hi"; do
20074 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20075 cat >conftest.$ac_ext <<_ACEOF
20076/* confdefs.h. */
20077_ACEOF
20078cat confdefs.h >>conftest.$ac_ext
20079cat >>conftest.$ac_ext <<_ACEOF
20080/* end confdefs.h. */
20081
83d8eb47
MW
20082 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20083 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20084 # error "fake wchar_t"
20085 #endif
20086 #ifdef HAVE_WCHAR_H
20087 # ifdef __CYGWIN__
20088 # include <stddef.h>
20089 # endif
20090 # include <wchar.h>
20091 #endif
20092 #ifdef HAVE_STDLIB_H
20093 # include <stdlib.h>
20094 #endif
20095 #include <stdio.h>
a848cd7e 20096
a848cd7e 20097
a848cd7e 20098
238ecede
MW
20099int
20100main ()
20101{
20102static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20103test_array [0] = 0
a848cd7e 20104
238ecede
MW
20105 ;
20106 return 0;
20107}
20108_ACEOF
20109rm -f conftest.$ac_objext
20110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20111 (eval $ac_compile) 2>conftest.er1
20112 ac_status=$?
20113 grep -v '^ *+' conftest.er1 >conftest.err
20114 rm -f conftest.er1
20115 cat conftest.err >&5
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } &&
6ebeb4c7 20118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120 (eval $ac_try) 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; } &&
20124 { ac_try='test -s conftest.$ac_objext'
20125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126 (eval $ac_try) 2>&5
20127 ac_status=$?
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; }; then
20130 ac_hi=$ac_mid
20131else
20132 echo "$as_me: failed program was:" >&5
20133sed 's/^/| /' conftest.$ac_ext >&5
20134
20135ac_lo=`expr '(' $ac_mid ')' + 1`
20136fi
20137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20138done
20139case $ac_lo in
20140?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20141'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20142See \`config.log' for more details." >&5
20143echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20144See \`config.log' for more details." >&2;}
20145 { (exit 1); exit 1; }; } ;;
20146esac
20147else
20148 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
20149 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20150echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 20151 { (exit 1); exit 1; }; }
a848cd7e
SC
20152else
20153 cat >conftest.$ac_ext <<_ACEOF
20154/* confdefs.h. */
20155_ACEOF
20156cat confdefs.h >>conftest.$ac_ext
20157cat >>conftest.$ac_ext <<_ACEOF
20158/* end confdefs.h. */
20159
83d8eb47
MW
20160 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20161 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20162 # error "fake wchar_t"
20163 #endif
20164 #ifdef HAVE_WCHAR_H
20165 # ifdef __CYGWIN__
20166 # include <stddef.h>
20167 # endif
20168 # include <wchar.h>
20169 #endif
20170 #ifdef HAVE_STDLIB_H
20171 # include <stdlib.h>
20172 #endif
20173 #include <stdio.h>
20174
20175
20176
20177long longval () { return (long) (sizeof (wchar_t)); }
20178unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20179#include <stdio.h>
20180#include <stdlib.h>
20181int
20182main ()
20183{
a848cd7e 20184
238ecede
MW
20185 FILE *f = fopen ("conftest.val", "w");
20186 if (! f)
20187 exit (1);
20188 if (((long) (sizeof (wchar_t))) < 0)
20189 {
20190 long i = longval ();
20191 if (i != ((long) (sizeof (wchar_t))))
20192 exit (1);
20193 fprintf (f, "%ld\n", i);
20194 }
20195 else
20196 {
20197 unsigned long i = ulongval ();
20198 if (i != ((long) (sizeof (wchar_t))))
20199 exit (1);
20200 fprintf (f, "%lu\n", i);
20201 }
20202 exit (ferror (f) || fclose (f) != 0);
20203
20204 ;
20205 return 0;
20206}
a848cd7e
SC
20207_ACEOF
20208rm -f conftest$ac_exeext
20209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20210 (eval $ac_link) 2>&5
20211 ac_status=$?
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; }; then
238ecede 20219 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
20220else
20221 echo "$as_me: program exited with status $ac_status" >&5
20222echo "$as_me: failed program was:" >&5
20223sed 's/^/| /' conftest.$ac_ext >&5
20224
20225( exit $ac_status )
238ecede
MW
20226{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20227See \`config.log' for more details." >&5
20228echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20229See \`config.log' for more details." >&2;}
20230 { (exit 1); exit 1; }; }
a848cd7e 20231fi
ac1cb8d3 20232rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 20233fi
a848cd7e 20234fi
238ecede
MW
20235rm -f conftest.val
20236else
20237 ac_cv_sizeof_wchar_t=0
20238fi
20239fi
20240echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20241echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 20242cat >>confdefs.h <<_ACEOF
238ecede 20243#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
20244_ACEOF
20245
20246
47a7e797
MW
20247if test "$ac_cv_sizeof_wchar_t" != "0"; then
20248 wxUSE_WCHAR_T=yes
20249else
20250 wxUSE_WCHAR_T=no
20251fi
238ecede 20252
ba3d13e1
VZ
20253echo "$as_me:$LINENO: checking for va_copy" >&5
20254echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20255if test "${wx_cv_func_va_copy+set}" = set; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20257else
20258
20259 cat >conftest.$ac_ext <<_ACEOF
20260
20261 #include <stdarg.h>
20262 void foo(char *f, ...)
20263 {
20264 va_list ap1, ap2;
20265 va_start(ap1, f);
20266 va_copy(ap2, ap1);
20267 va_end(ap2);
20268 va_end(ap1);
20269 }
5886b072
VZ
20270 int main()
20271 {
b902e639
VZ
20272 foo("hi", 17);
20273 return 0;
5886b072 20274 }
ba3d13e1
VZ
20275_ACEOF
20276rm -f conftest.$ac_objext conftest$ac_exeext
20277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20278 (eval $ac_link) 2>conftest.er1
20279 ac_status=$?
20280 grep -v '^ *+' conftest.er1 >conftest.err
20281 rm -f conftest.er1
20282 cat conftest.err >&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } &&
6ebeb4c7 20285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287 (eval $ac_try) 2>&5
20288 ac_status=$?
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; } &&
20291 { ac_try='test -s conftest$ac_exeext'
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 wx_cv_func_va_copy=yes
20298else
20299 echo "$as_me: failed program was:" >&5
20300sed 's/^/| /' conftest.$ac_ext >&5
20301
20302wx_cv_func_va_copy=no
20303
20304fi
20305rm -f conftest.err conftest.$ac_objext \
20306 conftest$ac_exeext conftest.$ac_ext
20307
20308
20309fi
20310echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20311echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20312
20313if test $wx_cv_func_va_copy = "yes"; then
20314 cat >>confdefs.h <<\_ACEOF
20315#define HAVE_VA_COPY 1
20316_ACEOF
20317
20318else
20319 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20320echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20321if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20323else
20324
20325 if test "$cross_compiling" = yes; then
20326 wx_cv_type_va_list_lvalue=yes
20327
20328else
20329 cat >conftest.$ac_ext <<_ACEOF
20330
20331 #include <stdarg.h>
20332 int foo(char *f, ...)
20333 {
20334 va_list ap1, ap2;
20335 va_start(ap1, f);
20336 ap2 = ap1;
20337 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20338 return 1;
20339 va_end(ap2);
20340 va_end(ap1);
20341 return 0;
20342 }
20343 int main()
20344 {
20345 return foo("hi", 17);
20346 }
20347_ACEOF
20348rm -f conftest$ac_exeext
20349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20350 (eval $ac_link) 2>&5
20351 ac_status=$?
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20356 ac_status=$?
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; }; then
20359 wx_cv_type_va_list_lvalue=yes
20360else
20361 echo "$as_me: program exited with status $ac_status" >&5
20362echo "$as_me: failed program was:" >&5
20363sed 's/^/| /' conftest.$ac_ext >&5
20364
20365( exit $ac_status )
20366wx_cv_type_va_list_lvalue=no
20367fi
20368rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20369fi
20370
20371
20372fi
20373echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
20374echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
20375
20376 if test $wx_cv_type_va_list_lvalue != "yes"; then
20377 cat >>confdefs.h <<\_ACEOF
20378#define VA_LIST_IS_ARRAY 1
20379_ACEOF
20380
20381 fi
20382fi
20383
a848cd7e
SC
20384# Check whether --enable-largefile or --disable-largefile was given.
20385if test "${enable_largefile+set}" = set; then
20386 enableval="$enable_largefile"
20387
20388fi;
20389if test "$enable_largefile" != no; then
20390 wx_largefile=no
20391
20392 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20393echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20394if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20395 echo $ECHO_N "(cached) $ECHO_C" >&6
20396else
20397
20398 cat >conftest.$ac_ext <<_ACEOF
20399/* confdefs.h. */
20400_ACEOF
20401cat confdefs.h >>conftest.$ac_ext
20402cat >>conftest.$ac_ext <<_ACEOF
20403/* end confdefs.h. */
20404#define _FILE_OFFSET_BITS 64
20405 #include <sys/types.h>
20406int
20407main ()
20408{
20409typedef struct {
20410 unsigned int field: sizeof(off_t) == 8;
20411} wxlf;
20412
20413 ;
20414 return 0;
20415}
20416_ACEOF
20417rm -f conftest.$ac_objext
20418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20419 (eval $ac_compile) 2>conftest.er1
a848cd7e 20420 ac_status=$?
ac1cb8d3
VS
20421 grep -v '^ *+' conftest.er1 >conftest.err
20422 rm -f conftest.er1
20423 cat conftest.err >&5
a848cd7e
SC
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); } &&
6ebeb4c7 20426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20429 ac_status=$?
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; } &&
20432 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434 (eval $ac_try) 2>&5
20435 ac_status=$?
20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); }; }; then
20438 ac_cv_sys_file_offset_bits=64
20439else
20440 echo "$as_me: failed program was:" >&5
20441sed 's/^/| /' conftest.$ac_ext >&5
20442
20443ac_cv_sys_file_offset_bits=no
20444fi
ac1cb8d3 20445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20446
20447
20448fi
20449echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20450echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20451
20452 if test "$ac_cv_sys_file_offset_bits" != no; then
20453 wx_largefile=yes
20454 cat >>confdefs.h <<_ACEOF
20455#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20456_ACEOF
20457
20458 fi
20459
20460 if test "x$wx_largefile" != "xyes"; then
20461
20462 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20463echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20464if test "${ac_cv_sys_large_files+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20466else
20467
20468 cat >conftest.$ac_ext <<_ACEOF
20469/* confdefs.h. */
20470_ACEOF
20471cat confdefs.h >>conftest.$ac_ext
20472cat >>conftest.$ac_ext <<_ACEOF
20473/* end confdefs.h. */
20474#define _LARGE_FILES 1
20475 #include <sys/types.h>
20476int
20477main ()
20478{
20479typedef struct {
20480 unsigned int field: sizeof(off_t) == 8;
20481} wxlf;
20482
20483 ;
20484 return 0;
20485}
20486_ACEOF
20487rm -f conftest.$ac_objext
20488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20489 (eval $ac_compile) 2>conftest.er1
a848cd7e 20490 ac_status=$?
ac1cb8d3
VS
20491 grep -v '^ *+' conftest.er1 >conftest.err
20492 rm -f conftest.er1
20493 cat conftest.err >&5
a848cd7e
SC
20494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } &&
6ebeb4c7 20496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20499 ac_status=$?
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; } &&
20502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; }; then
20508 ac_cv_sys_large_files=1
20509else
20510 echo "$as_me: failed program was:" >&5
20511sed 's/^/| /' conftest.$ac_ext >&5
20512
20513ac_cv_sys_large_files=no
20514fi
ac1cb8d3 20515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20516
20517
20518fi
20519echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20520echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20521
20522 if test "$ac_cv_sys_large_files" != no; then
20523 wx_largefile=yes
20524 cat >>confdefs.h <<_ACEOF
20525#define _LARGE_FILES $ac_cv_sys_large_files
20526_ACEOF
20527
20528 fi
20529
20530 fi
20531
20532 echo "$as_me:$LINENO: checking if large file support is available" >&5
20533echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20534 if test "x$wx_largefile" = "xyes"; then
20535 cat >>confdefs.h <<\_ACEOF
20536#define HAVE_LARGEFILE_SUPPORT 1
20537_ACEOF
20538
20539 fi
20540 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20541echo "${ECHO_T}$wx_largefile" >&6
20542fi
20543
5b674b9d
DE
20544
20545if test "x$wx_largefile" = "xyes"; then
20546 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20547 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
20548
20549 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
20550 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
20551echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
20552if test "${wx_cv_STDC_EXT_required+set}" = set; then
20553 echo $ECHO_N "(cached) $ECHO_C" >&6
20554else
20555
20556
20557
20558 ac_ext=cc
20559ac_cpp='$CXXCPP $CPPFLAGS'
20560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20563
20564 cat >conftest.$ac_ext <<_ACEOF
20565/* confdefs.h. */
20566_ACEOF
20567cat confdefs.h >>conftest.$ac_ext
20568cat >>conftest.$ac_ext <<_ACEOF
20569/* end confdefs.h. */
20570
20571int
20572main ()
20573{
20574
20575 #ifndef __STDC_EXT__
20576 choke me
20577 #endif
20578
20579 ;
20580 return 0;
20581}
20582_ACEOF
20583rm -f conftest.$ac_objext
20584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20585 (eval $ac_compile) 2>conftest.er1
20586 ac_status=$?
20587 grep -v '^ *+' conftest.er1 >conftest.err
20588 rm -f conftest.er1
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } &&
20592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594 (eval $ac_try) 2>&5
20595 ac_status=$?
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; } &&
20598 { ac_try='test -s conftest.$ac_objext'
20599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20601 ac_status=$?
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); }; }; then
20604 wx_cv_STDC_EXT_required=no
20605else
20606 echo "$as_me: failed program was:" >&5
20607sed 's/^/| /' conftest.$ac_ext >&5
20608
20609wx_cv_STDC_EXT_required=yes
20610
20611fi
20612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20613 ac_ext=c
20614ac_cpp='$CPP $CPPFLAGS'
20615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617ac_compiler_gnu=$ac_cv_c_compiler_gnu
20618
20619
20620
20621fi
20622echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
20623echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
20624 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
20625 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__"
20626 fi
20627 fi
5b674b9d
DE
20628 else
20629 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20630 fi
20631 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20632echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20633if test "${ac_cv_sys_largefile_source+set}" = set; then
20634 echo $ECHO_N "(cached) $ECHO_C" >&6
20635else
20636 while :; do
20637 ac_cv_sys_largefile_source=no
20638 cat >conftest.$ac_ext <<_ACEOF
20639/* confdefs.h. */
20640_ACEOF
20641cat confdefs.h >>conftest.$ac_ext
20642cat >>conftest.$ac_ext <<_ACEOF
20643/* end confdefs.h. */
20644#include <stdio.h>
20645int
20646main ()
20647{
20648return !fseeko;
20649 ;
20650 return 0;
20651}
20652_ACEOF
20653rm -f conftest.$ac_objext
20654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20655 (eval $ac_compile) 2>conftest.er1
20656 ac_status=$?
20657 grep -v '^ *+' conftest.er1 >conftest.err
20658 rm -f conftest.er1
20659 cat conftest.err >&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } &&
6ebeb4c7 20662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20664 (eval $ac_try) 2>&5
20665 ac_status=$?
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); }; } &&
20668 { ac_try='test -s conftest.$ac_objext'
20669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20671 ac_status=$?
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
20674 break
20675else
20676 echo "$as_me: failed program was:" >&5
20677sed 's/^/| /' conftest.$ac_ext >&5
20678
20679fi
20680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20681 cat >conftest.$ac_ext <<_ACEOF
20682/* confdefs.h. */
20683_ACEOF
20684cat confdefs.h >>conftest.$ac_ext
20685cat >>conftest.$ac_ext <<_ACEOF
20686/* end confdefs.h. */
20687#define _LARGEFILE_SOURCE 1
20688#include <stdio.h>
20689int
20690main ()
20691{
20692return !fseeko;
20693 ;
20694 return 0;
20695}
20696_ACEOF
20697rm -f conftest.$ac_objext
20698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20699 (eval $ac_compile) 2>conftest.er1
20700 ac_status=$?
20701 grep -v '^ *+' conftest.er1 >conftest.err
20702 rm -f conftest.er1
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } &&
6ebeb4c7 20706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20708 (eval $ac_try) 2>&5
20709 ac_status=$?
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; } &&
20712 { ac_try='test -s conftest.$ac_objext'
20713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20714 (eval $ac_try) 2>&5
20715 ac_status=$?
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; }; then
20718 ac_cv_sys_largefile_source=1; break
20719else
20720 echo "$as_me: failed program was:" >&5
20721sed 's/^/| /' conftest.$ac_ext >&5
20722
20723fi
20724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20725 break
20726done
20727fi
20728echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20729echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20730if test "$ac_cv_sys_largefile_source" != no; then
20731
20732cat >>confdefs.h <<_ACEOF
20733#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20734_ACEOF
20735
20736fi
20737rm -f conftest*
20738
20739# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20740# in glibc 2.1.3, but that breaks too many other things.
20741# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20742echo "$as_me:$LINENO: checking for fseeko" >&5
20743echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20744if test "${ac_cv_func_fseeko+set}" = set; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20746else
20747 cat >conftest.$ac_ext <<_ACEOF
20748/* confdefs.h. */
20749_ACEOF
20750cat confdefs.h >>conftest.$ac_ext
20751cat >>conftest.$ac_ext <<_ACEOF
20752/* end confdefs.h. */
20753#include <stdio.h>
20754int
20755main ()
20756{
20757return fseeko && fseeko (stdin, 0, 0);
20758 ;
20759 return 0;
20760}
20761_ACEOF
20762rm -f conftest.$ac_objext conftest$ac_exeext
20763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20764 (eval $ac_link) 2>conftest.er1
20765 ac_status=$?
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } &&
6ebeb4c7 20771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20774 ac_status=$?
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; } &&
20777 { ac_try='test -s conftest$ac_exeext'
20778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20780 ac_status=$?
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; }; then
20783 ac_cv_func_fseeko=yes
20784else
20785 echo "$as_me: failed program was:" >&5
20786sed 's/^/| /' conftest.$ac_ext >&5
20787
20788ac_cv_func_fseeko=no
20789fi
20790rm -f conftest.err conftest.$ac_objext \
20791 conftest$ac_exeext conftest.$ac_ext
20792fi
20793echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20794echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20795if test $ac_cv_func_fseeko = yes; then
20796
20797cat >>confdefs.h <<\_ACEOF
20798#define HAVE_FSEEKO 1
20799_ACEOF
20800
20801fi
20802
5b674b9d
DE
20803 if test "$ac_cv_sys_largefile_source" != no; then
20804 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20805 fi
20806 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20807fi
20808
20809echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20810echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20811if test "${ac_cv_c_bigendian+set}" = set; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20813else
20814 ac_cv_c_bigendian=unknown
20815# See if sys/param.h defines the BYTE_ORDER macro.
20816cat >conftest.$ac_ext <<_ACEOF
20817/* confdefs.h. */
20818_ACEOF
20819cat confdefs.h >>conftest.$ac_ext
20820cat >>conftest.$ac_ext <<_ACEOF
20821/* end confdefs.h. */
20822#include <sys/types.h>
20823#include <sys/param.h>
20824int
20825main ()
20826{
20827
20828#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20829 bogus endian macros
20830#endif
20831 ;
20832 return 0;
20833}
20834_ACEOF
20835rm -f conftest.$ac_objext
20836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20837 (eval $ac_compile) 2>conftest.er1
a848cd7e 20838 ac_status=$?
ac1cb8d3
VS
20839 grep -v '^ *+' conftest.er1 >conftest.err
20840 rm -f conftest.er1
20841 cat conftest.err >&5
a848cd7e
SC
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
6ebeb4c7 20844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846 (eval $ac_try) 2>&5
20847 ac_status=$?
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); }; } &&
20850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20852 (eval $ac_try) 2>&5
20853 ac_status=$?
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); }; }; then
20856 # It does; now see whether it defined to BIG_ENDIAN or not.
20857cat >conftest.$ac_ext <<_ACEOF
20858/* confdefs.h. */
20859_ACEOF
20860cat confdefs.h >>conftest.$ac_ext
20861cat >>conftest.$ac_ext <<_ACEOF
20862/* end confdefs.h. */
20863#include <sys/types.h>
20864#include <sys/param.h>
20865int
20866main ()
20867{
20868
20869#if BYTE_ORDER != BIG_ENDIAN
20870 not big endian
20871#endif
20872 ;
20873 return 0;
20874}
20875_ACEOF
20876rm -f conftest.$ac_objext
20877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20878 (eval $ac_compile) 2>conftest.er1
a848cd7e 20879 ac_status=$?
ac1cb8d3
VS
20880 grep -v '^ *+' conftest.er1 >conftest.err
20881 rm -f conftest.er1
20882 cat conftest.err >&5
a848cd7e
SC
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } &&
6ebeb4c7 20885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887 (eval $ac_try) 2>&5
20888 ac_status=$?
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; } &&
20891 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20893 (eval $ac_try) 2>&5
20894 ac_status=$?
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); }; }; then
20897 ac_cv_c_bigendian=yes
20898else
20899 echo "$as_me: failed program was:" >&5
20900sed 's/^/| /' conftest.$ac_ext >&5
20901
20902ac_cv_c_bigendian=no
20903fi
ac1cb8d3 20904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20905else
20906 echo "$as_me: failed program was:" >&5
20907sed 's/^/| /' conftest.$ac_ext >&5
20908
20909fi
ac1cb8d3 20910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20911if test $ac_cv_c_bigendian = unknown; then
20912if test "$cross_compiling" = yes; then
20913 ac_cv_c_bigendian=unknown
20914else
20915 cat >conftest.$ac_ext <<_ACEOF
20916/* confdefs.h. */
20917_ACEOF
20918cat confdefs.h >>conftest.$ac_ext
20919cat >>conftest.$ac_ext <<_ACEOF
20920/* end confdefs.h. */
20921main () {
20922 /* Are we little or big endian? From Harbison&Steele. */
20923 union
20924 {
20925 long l;
20926 char c[sizeof (long)];
20927 } u;
20928 u.l = 1;
20929 exit (u.c[sizeof (long) - 1] == 1);
20930}
20931_ACEOF
20932rm -f conftest$ac_exeext
20933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20934 (eval $ac_link) 2>&5
20935 ac_status=$?
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20939 (eval $ac_try) 2>&5
20940 ac_status=$?
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); }; }; then
20943 ac_cv_c_bigendian=no
20944else
20945 echo "$as_me: program exited with status $ac_status" >&5
20946echo "$as_me: failed program was:" >&5
20947sed 's/^/| /' conftest.$ac_ext >&5
20948
20949( exit $ac_status )
20950ac_cv_c_bigendian=yes
20951fi
ac1cb8d3 20952rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20953fi
20954fi
20955fi
20956echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20957echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20958if test $ac_cv_c_bigendian = unknown; then
20959 { 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
20960echo "$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;}
20961fi
20962if test $ac_cv_c_bigendian = yes; then
20963 cat >>confdefs.h <<\_ACEOF
20964#define WORDS_BIGENDIAN 1
20965_ACEOF
20966
20967fi
20968
20969
20970ac_ext=cc
20971ac_cpp='$CXXCPP $CPPFLAGS'
20972ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20973ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20974ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20975echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20976echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20977if test -z "$CXXCPP"; then
20978 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20980else
20981 # Double quotes because CXXCPP needs to be expanded
20982 for CXXCPP in "$CXX -E" "/lib/cpp"
20983 do
20984 ac_preproc_ok=false
20985for ac_cxx_preproc_warn_flag in '' yes
20986do
20987 # Use a header file that comes with gcc, so configuring glibc
20988 # with a fresh cross-compiler works.
20989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20990 # <limits.h> exists even on freestanding compilers.
20991 # On the NeXT, cc -E runs the code through the compiler's parser,
20992 # not just through cpp. "Syntax error" is here to catch this case.
20993 cat >conftest.$ac_ext <<_ACEOF
20994/* confdefs.h. */
20995_ACEOF
20996cat confdefs.h >>conftest.$ac_ext
20997cat >>conftest.$ac_ext <<_ACEOF
20998/* end confdefs.h. */
20999#ifdef __STDC__
21000# include <limits.h>
21001#else
21002# include <assert.h>
21003#endif
ac1cb8d3 21004 Syntax error
a848cd7e
SC
21005_ACEOF
21006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21008 ac_status=$?
21009 grep -v '^ *+' conftest.er1 >conftest.err
21010 rm -f conftest.er1
21011 cat conftest.err >&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); } >/dev/null; then
21014 if test -s conftest.err; then
21015 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21016 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21017 else
21018 ac_cpp_err=
21019 fi
21020else
21021 ac_cpp_err=yes
21022fi
21023if test -z "$ac_cpp_err"; then
21024 :
21025else
21026 echo "$as_me: failed program was:" >&5
21027sed 's/^/| /' conftest.$ac_ext >&5
21028
21029 # Broken: fails on valid input.
21030continue
21031fi
21032rm -f conftest.err conftest.$ac_ext
21033
21034 # OK, works on sane cases. Now check whether non-existent headers
21035 # can be detected and how.
21036 cat >conftest.$ac_ext <<_ACEOF
21037/* confdefs.h. */
21038_ACEOF
21039cat confdefs.h >>conftest.$ac_ext
21040cat >>conftest.$ac_ext <<_ACEOF
21041/* end confdefs.h. */
21042#include <ac_nonexistent.h>
21043_ACEOF
21044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21046 ac_status=$?
21047 grep -v '^ *+' conftest.er1 >conftest.err
21048 rm -f conftest.er1
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } >/dev/null; then
21052 if test -s conftest.err; then
21053 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21054 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21055 else
21056 ac_cpp_err=
21057 fi
21058else
21059 ac_cpp_err=yes
21060fi
21061if test -z "$ac_cpp_err"; then
21062 # Broken: success on invalid input.
21063continue
21064else
21065 echo "$as_me: failed program was:" >&5
21066sed 's/^/| /' conftest.$ac_ext >&5
21067
21068 # Passes both tests.
21069ac_preproc_ok=:
21070break
21071fi
21072rm -f conftest.err conftest.$ac_ext
21073
21074done
21075# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21076rm -f conftest.err conftest.$ac_ext
21077if $ac_preproc_ok; then
21078 break
21079fi
21080
21081 done
21082 ac_cv_prog_CXXCPP=$CXXCPP
21083
21084fi
21085 CXXCPP=$ac_cv_prog_CXXCPP
21086else
21087 ac_cv_prog_CXXCPP=$CXXCPP
21088fi
21089echo "$as_me:$LINENO: result: $CXXCPP" >&5
21090echo "${ECHO_T}$CXXCPP" >&6
21091ac_preproc_ok=false
21092for ac_cxx_preproc_warn_flag in '' yes
21093do
21094 # Use a header file that comes with gcc, so configuring glibc
21095 # with a fresh cross-compiler works.
21096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21097 # <limits.h> exists even on freestanding compilers.
21098 # On the NeXT, cc -E runs the code through the compiler's parser,
21099 # not just through cpp. "Syntax error" is here to catch this case.
21100 cat >conftest.$ac_ext <<_ACEOF
21101/* confdefs.h. */
21102_ACEOF
21103cat confdefs.h >>conftest.$ac_ext
21104cat >>conftest.$ac_ext <<_ACEOF
21105/* end confdefs.h. */
21106#ifdef __STDC__
21107# include <limits.h>
21108#else
21109# include <assert.h>
21110#endif
ac1cb8d3 21111 Syntax error
a848cd7e
SC
21112_ACEOF
21113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21115 ac_status=$?
21116 grep -v '^ *+' conftest.er1 >conftest.err
21117 rm -f conftest.er1
21118 cat conftest.err >&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } >/dev/null; then
21121 if test -s conftest.err; then
21122 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21123 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21124 else
21125 ac_cpp_err=
21126 fi
21127else
21128 ac_cpp_err=yes
21129fi
21130if test -z "$ac_cpp_err"; then
21131 :
21132else
21133 echo "$as_me: failed program was:" >&5
21134sed 's/^/| /' conftest.$ac_ext >&5
21135
21136 # Broken: fails on valid input.
21137continue
21138fi
21139rm -f conftest.err conftest.$ac_ext
21140
21141 # OK, works on sane cases. Now check whether non-existent headers
21142 # can be detected and how.
21143 cat >conftest.$ac_ext <<_ACEOF
21144/* confdefs.h. */
21145_ACEOF
21146cat confdefs.h >>conftest.$ac_ext
21147cat >>conftest.$ac_ext <<_ACEOF
21148/* end confdefs.h. */
21149#include <ac_nonexistent.h>
21150_ACEOF
21151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21153 ac_status=$?
21154 grep -v '^ *+' conftest.er1 >conftest.err
21155 rm -f conftest.er1
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } >/dev/null; then
21159 if test -s conftest.err; then
21160 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21161 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21162 else
21163 ac_cpp_err=
21164 fi
21165else
21166 ac_cpp_err=yes
21167fi
21168if test -z "$ac_cpp_err"; then
21169 # Broken: success on invalid input.
21170continue
21171else
21172 echo "$as_me: failed program was:" >&5
21173sed 's/^/| /' conftest.$ac_ext >&5
21174
21175 # Passes both tests.
21176ac_preproc_ok=:
21177break
21178fi
21179rm -f conftest.err conftest.$ac_ext
21180
21181done
21182# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21183rm -f conftest.err conftest.$ac_ext
21184if $ac_preproc_ok; then
21185 :
21186else
21187 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21188See \`config.log' for more details." >&5
21189echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21190See \`config.log' for more details." >&2;}
21191 { (exit 1); exit 1; }; }
21192fi
21193
21194ac_ext=cc
21195ac_cpp='$CXXCPP $CPPFLAGS'
21196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21199
21200
21201
21202
21203
21204 ac_ext=cc
21205ac_cpp='$CXXCPP $CPPFLAGS'
21206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21209
21210
21211
21212for ac_header in iostream
21213do
21214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21215if eval "test \"\${$as_ac_Header+set}\" = set"; then
21216 echo "$as_me:$LINENO: checking for $ac_header" >&5
21217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21218if eval "test \"\${$as_ac_Header+set}\" = set"; then
21219 echo $ECHO_N "(cached) $ECHO_C" >&6
21220fi
21221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21223else
21224 # Is the header compilable?
21225echo "$as_me:$LINENO: checking $ac_header usability" >&5
21226echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21227cat >conftest.$ac_ext <<_ACEOF
21228/* confdefs.h. */
21229_ACEOF
21230cat confdefs.h >>conftest.$ac_ext
21231cat >>conftest.$ac_ext <<_ACEOF
21232/* end confdefs.h. */
21233$ac_includes_default
21234#include <$ac_header>
21235_ACEOF
21236rm -f conftest.$ac_objext
21237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21238 (eval $ac_compile) 2>conftest.er1
a848cd7e 21239 ac_status=$?
ac1cb8d3
VS
21240 grep -v '^ *+' conftest.er1 >conftest.err
21241 rm -f conftest.er1
21242 cat conftest.err >&5
a848cd7e
SC
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } &&
6ebeb4c7 21245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; } &&
21251 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21254 ac_status=$?
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; }; then
21257 ac_header_compiler=yes
21258else
21259 echo "$as_me: failed program was:" >&5
21260sed 's/^/| /' conftest.$ac_ext >&5
21261
21262ac_header_compiler=no
21263fi
ac1cb8d3 21264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21265echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21266echo "${ECHO_T}$ac_header_compiler" >&6
21267
21268# Is the header present?
21269echo "$as_me:$LINENO: checking $ac_header presence" >&5
21270echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21271cat >conftest.$ac_ext <<_ACEOF
21272/* confdefs.h. */
21273_ACEOF
21274cat confdefs.h >>conftest.$ac_ext
21275cat >>conftest.$ac_ext <<_ACEOF
21276/* end confdefs.h. */
21277#include <$ac_header>
21278_ACEOF
21279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21281 ac_status=$?
21282 grep -v '^ *+' conftest.er1 >conftest.err
21283 rm -f conftest.er1
21284 cat conftest.err >&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); } >/dev/null; then
21287 if test -s conftest.err; then
21288 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21289 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21290 else
21291 ac_cpp_err=
21292 fi
21293else
21294 ac_cpp_err=yes
21295fi
21296if test -z "$ac_cpp_err"; then
21297 ac_header_preproc=yes
21298else
21299 echo "$as_me: failed program was:" >&5
21300sed 's/^/| /' conftest.$ac_ext >&5
21301
21302 ac_header_preproc=no
21303fi
21304rm -f conftest.err conftest.$ac_ext
21305echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21306echo "${ECHO_T}$ac_header_preproc" >&6
21307
21308# So? What about this header?
ac1cb8d3
VS
21309case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21310 yes:no: )
a848cd7e
SC
21311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21312echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21314echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21315 ac_header_preproc=yes
a848cd7e 21316 ;;
ac1cb8d3 21317 no:yes:* )
a848cd7e
SC
21318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21319echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21321echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21323echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21325echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21327echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21329echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21330 (
21331 cat <<\_ASBOX
ac1cb8d3
VS
21332## ----------------------------------------- ##
21333## Report this to wx-dev@lists.wxwidgets.org ##
21334## ----------------------------------------- ##
a848cd7e
SC
21335_ASBOX
21336 ) |
21337 sed "s/^/$as_me: WARNING: /" >&2
21338 ;;
21339esac
21340echo "$as_me:$LINENO: checking for $ac_header" >&5
21341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21342if eval "test \"\${$as_ac_Header+set}\" = set"; then
21343 echo $ECHO_N "(cached) $ECHO_C" >&6
21344else
ac1cb8d3 21345 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
21346fi
21347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21349
21350fi
21351if test `eval echo '${'$as_ac_Header'}'` = yes; then
21352 cat >>confdefs.h <<_ACEOF
21353#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21354_ACEOF
21355
21356fi
21357
21358done
21359
21360
21361 if test "$ac_cv_header_iostream" = "yes" ; then
21362 :
21363 else
21364 cat >>confdefs.h <<\_ACEOF
21365#define wxUSE_IOSTREAMH 1
21366_ACEOF
21367
21368 fi
21369
21370 ac_ext=c
21371ac_cpp='$CPP $CPPFLAGS'
21372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21374ac_compiler_gnu=$ac_cv_c_compiler_gnu
21375
21376
21377
21378
21379 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
21380echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
21381if test "${wx_cv_cpp_bool+set}" = set; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21383else
21384
21385
21386
21387 ac_ext=cc
21388ac_cpp='$CXXCPP $CPPFLAGS'
21389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21392
21393
21394 cat >conftest.$ac_ext <<_ACEOF
21395/* confdefs.h. */
21396_ACEOF
21397cat confdefs.h >>conftest.$ac_ext
21398cat >>conftest.$ac_ext <<_ACEOF
21399/* end confdefs.h. */
21400
21401
21402int
21403main ()
21404{
21405
21406 bool b = true;
21407
21408 return 0;
21409
21410 ;
21411 return 0;
21412}
21413_ACEOF
21414rm -f conftest.$ac_objext
21415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21416 (eval $ac_compile) 2>conftest.er1
a848cd7e 21417 ac_status=$?
ac1cb8d3
VS
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
a848cd7e
SC
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } &&
6ebeb4c7 21423 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21425 (eval $ac_try) 2>&5
21426 ac_status=$?
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); }; } &&
21429 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21431 (eval $ac_try) 2>&5
21432 ac_status=$?
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; }; then
21435
21436 wx_cv_cpp_bool=yes
21437
21438else
21439 echo "$as_me: failed program was:" >&5
21440sed 's/^/| /' conftest.$ac_ext >&5
21441
21442
21443 wx_cv_cpp_bool=no
21444
21445
21446fi
ac1cb8d3 21447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21448
21449 ac_ext=c
21450ac_cpp='$CPP $CPPFLAGS'
21451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21453ac_compiler_gnu=$ac_cv_c_compiler_gnu
21454
21455
21456fi
21457echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
21458echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21459
21460 if test "$wx_cv_cpp_bool" = "yes"; then
21461 cat >>confdefs.h <<\_ACEOF
21462#define HAVE_BOOL 1
21463_ACEOF
21464
21465 fi
21466
21467
21468
21469 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
21470echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
21471if test "${wx_cv_explicit+set}" = set; then
21472 echo $ECHO_N "(cached) $ECHO_C" >&6
21473else
21474
21475
21476
21477 ac_ext=cc
21478ac_cpp='$CXXCPP $CPPFLAGS'
21479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21482
21483
21484 cat >conftest.$ac_ext <<_ACEOF
21485/* confdefs.h. */
21486_ACEOF
21487cat confdefs.h >>conftest.$ac_ext
21488cat >>conftest.$ac_ext <<_ACEOF
21489/* end confdefs.h. */
21490
21491 class Foo { public: explicit Foo(int) {} };
21492
21493int
21494main ()
21495{
21496
21497 return 0;
21498
21499 ;
21500 return 0;
21501}
21502_ACEOF
21503rm -f conftest.$ac_objext
21504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21505 (eval $ac_compile) 2>conftest.er1
a848cd7e 21506 ac_status=$?
ac1cb8d3
VS
21507 grep -v '^ *+' conftest.er1 >conftest.err
21508 rm -f conftest.er1
21509 cat conftest.err >&5
a848cd7e
SC
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } &&
6ebeb4c7 21512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21515 ac_status=$?
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; } &&
21518 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520 (eval $ac_try) 2>&5
21521 ac_status=$?
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; }; then
21524
21525 cat >conftest.$ac_ext <<_ACEOF
21526/* confdefs.h. */
21527_ACEOF
21528cat confdefs.h >>conftest.$ac_ext
21529cat >>conftest.$ac_ext <<_ACEOF
21530/* end confdefs.h. */
21531
21532 class Foo { public: explicit Foo(int) {} };
21533 static void TakeFoo(const Foo& foo) { }
21534
21535int
21536main ()
21537{
21538
21539 TakeFoo(17);
21540 return 0;
21541
21542 ;
21543 return 0;
21544}
21545_ACEOF
21546rm -f conftest.$ac_objext
21547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21548 (eval $ac_compile) 2>conftest.er1
a848cd7e 21549 ac_status=$?
ac1cb8d3
VS
21550 grep -v '^ *+' conftest.er1 >conftest.err
21551 rm -f conftest.er1
21552 cat conftest.err >&5
a848cd7e
SC
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } &&
6ebeb4c7 21555 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 (eval $ac_try) 2>&5
21558 ac_status=$?
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; } &&
21561 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563 (eval $ac_try) 2>&5
21564 ac_status=$?
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); }; }; then
21567 wx_cv_explicit=no
21568else
21569 echo "$as_me: failed program was:" >&5
21570sed 's/^/| /' conftest.$ac_ext >&5
21571
21572wx_cv_explicit=yes
21573
21574fi
ac1cb8d3 21575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21576
21577else
21578 echo "$as_me: failed program was:" >&5
21579sed 's/^/| /' conftest.$ac_ext >&5
21580
21581wx_cv_explicit=no
21582
21583fi
ac1cb8d3 21584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21585
21586 ac_ext=c
21587ac_cpp='$CPP $CPPFLAGS'
21588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21590ac_compiler_gnu=$ac_cv_c_compiler_gnu
21591
21592
21593fi
21594echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21595echo "${ECHO_T}$wx_cv_explicit" >&6
21596
21597 if test "$wx_cv_explicit" = "yes"; then
21598 cat >>confdefs.h <<\_ACEOF
21599#define HAVE_EXPLICIT 1
21600_ACEOF
21601
21602 fi
21603
21604
21605echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21606echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21607if test "${ac_cv_cxx_const_cast+set}" = set; then
21608 echo $ECHO_N "(cached) $ECHO_C" >&6
21609else
21610
21611
21612 ac_ext=cc
21613ac_cpp='$CXXCPP $CPPFLAGS'
21614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21617
21618 cat >conftest.$ac_ext <<_ACEOF
21619/* confdefs.h. */
21620_ACEOF
21621cat confdefs.h >>conftest.$ac_ext
21622cat >>conftest.$ac_ext <<_ACEOF
21623/* end confdefs.h. */
21624
21625int
21626main ()
21627{
21628int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21629 ;
21630 return 0;
21631}
21632_ACEOF
21633rm -f conftest.$ac_objext
21634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21635 (eval $ac_compile) 2>conftest.er1
a848cd7e 21636 ac_status=$?
ac1cb8d3
VS
21637 grep -v '^ *+' conftest.er1 >conftest.err
21638 rm -f conftest.er1
21639 cat conftest.err >&5
a848cd7e
SC
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); } &&
6ebeb4c7 21642 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21645 ac_status=$?
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; } &&
21648 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21650 (eval $ac_try) 2>&5
21651 ac_status=$?
21652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); }; }; then
21654 ac_cv_cxx_const_cast=yes
21655else
21656 echo "$as_me: failed program was:" >&5
21657sed 's/^/| /' conftest.$ac_ext >&5
21658
21659ac_cv_cxx_const_cast=no
21660fi
ac1cb8d3 21661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21662 ac_ext=c
21663ac_cpp='$CPP $CPPFLAGS'
21664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21666ac_compiler_gnu=$ac_cv_c_compiler_gnu
21667
21668
21669fi
21670echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21671echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21672if test "$ac_cv_cxx_const_cast" = yes; then
21673
21674cat >>confdefs.h <<\_ACEOF
21675#define HAVE_CONST_CAST
21676_ACEOF
21677
21678fi
21679
7714864e
RL
21680echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21681echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21682if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21683 echo $ECHO_N "(cached) $ECHO_C" >&6
21684else
21685
21686
21687 ac_ext=cc
21688ac_cpp='$CXXCPP $CPPFLAGS'
21689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21692
21693 cat >conftest.$ac_ext <<_ACEOF
21694/* confdefs.h. */
21695_ACEOF
21696cat confdefs.h >>conftest.$ac_ext
21697cat >>conftest.$ac_ext <<_ACEOF
21698/* end confdefs.h. */
21699#include <typeinfo>
21700class Base { public : Base () {} virtual void f () = 0;};
21701class Derived : public Base { public : Derived () {} virtual void f () {} };
21702class Unrelated { public : Unrelated () {} };
21703int g (Unrelated&) { return 0; }
21704int
21705main ()
21706{
21707
21708Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21709 ;
21710 return 0;
21711}
21712_ACEOF
21713rm -f conftest.$ac_objext
21714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21715 (eval $ac_compile) 2>conftest.er1
21716 ac_status=$?
21717 grep -v '^ *+' conftest.er1 >conftest.err
21718 rm -f conftest.er1
21719 cat conftest.err >&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); } &&
6ebeb4c7 21722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21725 ac_status=$?
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; } &&
21728 { ac_try='test -s conftest.$ac_objext'
21729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730 (eval $ac_try) 2>&5
21731 ac_status=$?
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); }; }; then
21734 ac_cv_cxx_reinterpret_cast=yes
21735else
21736 echo "$as_me: failed program was:" >&5
21737sed 's/^/| /' conftest.$ac_ext >&5
21738
21739ac_cv_cxx_reinterpret_cast=no
21740fi
21741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21742 ac_ext=c
21743ac_cpp='$CPP $CPPFLAGS'
21744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21746ac_compiler_gnu=$ac_cv_c_compiler_gnu
21747
21748
21749fi
21750echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21751echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21752if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21753
21754cat >>confdefs.h <<\_ACEOF
21755#define HAVE_REINTERPRET_CAST
21756_ACEOF
21757
21758fi
21759
a848cd7e
SC
21760echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21761echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21762if test "${ac_cv_cxx_static_cast+set}" = set; then
21763 echo $ECHO_N "(cached) $ECHO_C" >&6
21764else
21765
21766
21767 ac_ext=cc
21768ac_cpp='$CXXCPP $CPPFLAGS'
21769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21772
21773 cat >conftest.$ac_ext <<_ACEOF
21774/* confdefs.h. */
21775_ACEOF
21776cat confdefs.h >>conftest.$ac_ext
21777cat >>conftest.$ac_ext <<_ACEOF
21778/* end confdefs.h. */
21779#include <typeinfo>
21780class Base { public : Base () {} virtual void f () = 0; };
21781class Derived : public Base { public : Derived () {} virtual void f () {} };
21782int g (Derived&) { return 0; }
21783int
21784main ()
21785{
21786
21787Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21788 ;
21789 return 0;
21790}
21791_ACEOF
21792rm -f conftest.$ac_objext
21793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21794 (eval $ac_compile) 2>conftest.er1
a848cd7e 21795 ac_status=$?
ac1cb8d3
VS
21796 grep -v '^ *+' conftest.er1 >conftest.err
21797 rm -f conftest.er1
21798 cat conftest.err >&5
a848cd7e
SC
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } &&
6ebeb4c7 21801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803 (eval $ac_try) 2>&5
21804 ac_status=$?
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); }; } &&
21807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21810 ac_status=$?
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; }; then
21813 ac_cv_cxx_static_cast=yes
21814else
21815 echo "$as_me: failed program was:" >&5
21816sed 's/^/| /' conftest.$ac_ext >&5
21817
21818ac_cv_cxx_static_cast=no
21819fi
ac1cb8d3 21820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21821 ac_ext=c
21822ac_cpp='$CPP $CPPFLAGS'
21823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21825ac_compiler_gnu=$ac_cv_c_compiler_gnu
21826
21827
21828fi
21829echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21830echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21831if test "$ac_cv_cxx_static_cast" = yes; then
21832
21833cat >>confdefs.h <<\_ACEOF
21834#define HAVE_STATIC_CAST
21835_ACEOF
21836
21837fi
21838
21839
3c28b7cb
MW
21840if test "x$SUNCXX" = xyes; then
21841 CXXFLAGS="$CXXFLAGS -features=tmplife"
21842fi
21843
9122d155
VZ
21844if test "x$SUNCC" = xyes; then
21845 CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN"
21846fi
21847
0ad5d837
VZ
21848if test "x$SGICC" = "xyes"; then
21849 CFLAGS="$CFLAGS -woff 3970"
21850fi
21851if test "x$SGICXX" = "xyes"; then
21852 CXXFLAGS="$CXXFLAGS -woff 3970"
21853fi
21854
f56c22b4 21855if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21856 ac_ext=cc
21857ac_cpp='$CXXCPP $CPPFLAGS'
21858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21861
21862
f56c22b4
MW
21863 if test "$wxUSE_UNICODE" = "yes"; then
21864 std_string="std::wstring"
21865 char_type="wchar_t"
21866 else
21867 std_string="std::string"
21868 char_type="char"
21869 fi
21870
21871 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21872echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21873 cat >conftest.$ac_ext <<_ACEOF
21874/* confdefs.h. */
21875_ACEOF
21876cat confdefs.h >>conftest.$ac_ext
21877cat >>conftest.$ac_ext <<_ACEOF
21878/* end confdefs.h. */
21879#include <string>
a848cd7e
SC
21880int
21881main ()
21882{
f56c22b4 21883$std_string foo;
a848cd7e
SC
21884 ;
21885 return 0;
21886}
21887_ACEOF
21888rm -f conftest.$ac_objext
21889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21890 (eval $ac_compile) 2>conftest.er1
a848cd7e 21891 ac_status=$?
ac1cb8d3
VS
21892 grep -v '^ *+' conftest.er1 >conftest.err
21893 rm -f conftest.er1
21894 cat conftest.err >&5
a848cd7e
SC
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); } &&
6ebeb4c7 21897 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899 (eval $ac_try) 2>&5
21900 ac_status=$?
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; } &&
21903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905 (eval $ac_try) 2>&5
21906 ac_status=$?
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); }; }; then
21909 echo "$as_me:$LINENO: result: yes" >&5
21910echo "${ECHO_T}yes" >&6
0a08f02a
MB
21911 cat >>confdefs.h <<\_ACEOF
21912#define HAVE_STD_WSTRING 1
21913_ACEOF
21914
a848cd7e
SC
21915else
21916 echo "$as_me: failed program was:" >&5
21917sed 's/^/| /' conftest.$ac_ext >&5
21918
21919echo "$as_me:$LINENO: result: no" >&5
21920echo "${ECHO_T}no" >&6
f56c22b4
MW
21921 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21922echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21923 cat >conftest.$ac_ext <<_ACEOF
21924/* confdefs.h. */
21925_ACEOF
21926cat confdefs.h >>conftest.$ac_ext
21927cat >>conftest.$ac_ext <<_ACEOF
21928/* end confdefs.h. */
21929
21930 #ifdef HAVE_WCHAR_H
21931 # ifdef __CYGWIN__
21932 # include <stddef.h>
21933 # endif
21934 # include <wchar.h>
21935 #endif
21936 #ifdef HAVE_STDLIB_H
21937 # include <stdlib.h>
21938 #endif
21939 #include <stdio.h>
21940 #include <string>
21941
21942int
21943main ()
21944{
f56c22b4
MW
21945std::basic_string<$char_type> foo;
21946 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21947 ;
21948 return 0;
21949}
21950_ACEOF
21951rm -f conftest.$ac_objext
21952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21953 (eval $ac_compile) 2>conftest.er1
21954 ac_status=$?
21955 grep -v '^ *+' conftest.er1 >conftest.err
21956 rm -f conftest.er1
21957 cat conftest.err >&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } &&
6ebeb4c7 21960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
21961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962 (eval $ac_try) 2>&5
21963 ac_status=$?
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); }; } &&
21966 { ac_try='test -s conftest.$ac_objext'
21967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968 (eval $ac_try) 2>&5
21969 ac_status=$?
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); }; }; then
21972 echo "$as_me:$LINENO: result: yes" >&5
21973echo "${ECHO_T}yes" >&6
21974else
21975 echo "$as_me: failed program was:" >&5
21976sed 's/^/| /' conftest.$ac_ext >&5
21977
21978echo "$as_me:$LINENO: result: no" >&5
21979echo "${ECHO_T}no" >&6
f56c22b4 21980 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21981 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21982echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21983 { (exit 1); exit 1; }; }
21984 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21985 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21986echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21987 { (exit 1); exit 1; }; }
f56c22b4
MW
21988 else
21989 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21990echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21991 wxUSE_STD_STRING=no
21992 fi
21993
0a08f02a 21994
a848cd7e 21995fi
ac1cb8d3 21996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21997
0a08f02a
MB
21998fi
21999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22000
22001 ac_ext=c
22002ac_cpp='$CPP $CPPFLAGS'
22003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
22005ac_compiler_gnu=$ac_cv_c_compiler_gnu
22006
22007fi
22008
22009if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22010 ac_ext=cc
22011ac_cpp='$CXXCPP $CPPFLAGS'
22012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22015
22016
22017 echo "$as_me:$LINENO: checking for std::istream" >&5
22018echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22019if test "${ac_cv_type_std__istream+set}" = set; then
22020 echo $ECHO_N "(cached) $ECHO_C" >&6
22021else
22022 cat >conftest.$ac_ext <<_ACEOF
22023/* confdefs.h. */
22024_ACEOF
22025cat confdefs.h >>conftest.$ac_ext
22026cat >>conftest.$ac_ext <<_ACEOF
22027/* end confdefs.h. */
22028#include <iostream>
22029
22030int
22031main ()
22032{
22033if ((std::istream *) 0)
22034 return 0;
22035if (sizeof (std::istream))
22036 return 0;
22037 ;
22038 return 0;
22039}
22040_ACEOF
22041rm -f conftest.$ac_objext
22042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22043 (eval $ac_compile) 2>conftest.er1
22044 ac_status=$?
22045 grep -v '^ *+' conftest.er1 >conftest.err
22046 rm -f conftest.er1
22047 cat conftest.err >&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); } &&
6ebeb4c7 22050 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22052 (eval $ac_try) 2>&5
22053 ac_status=$?
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; } &&
22056 { ac_try='test -s conftest.$ac_objext'
22057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058 (eval $ac_try) 2>&5
22059 ac_status=$?
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; }; then
22062 ac_cv_type_std__istream=yes
22063else
22064 echo "$as_me: failed program was:" >&5
22065sed 's/^/| /' conftest.$ac_ext >&5
22066
22067ac_cv_type_std__istream=no
22068fi
22069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22070fi
22071echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22072echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22073if test $ac_cv_type_std__istream = yes; then
22074
22075cat >>confdefs.h <<_ACEOF
22076#define HAVE_STD__ISTREAM 1
22077_ACEOF
22078
22079
22080else
22081 wxUSE_STD_IOSTREAM=no
22082fi
22083echo "$as_me:$LINENO: checking for std::ostream" >&5
22084echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22085if test "${ac_cv_type_std__ostream+set}" = set; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22087else
22088 cat >conftest.$ac_ext <<_ACEOF
22089/* confdefs.h. */
22090_ACEOF
22091cat confdefs.h >>conftest.$ac_ext
22092cat >>conftest.$ac_ext <<_ACEOF
22093/* end confdefs.h. */
22094#include <iostream>
22095
22096int
22097main ()
22098{
22099if ((std::ostream *) 0)
22100 return 0;
22101if (sizeof (std::ostream))
22102 return 0;
22103 ;
22104 return 0;
22105}
22106_ACEOF
22107rm -f conftest.$ac_objext
22108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22109 (eval $ac_compile) 2>conftest.er1
22110 ac_status=$?
22111 grep -v '^ *+' conftest.er1 >conftest.err
22112 rm -f conftest.er1
22113 cat conftest.err >&5
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); } &&
6ebeb4c7 22116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118 (eval $ac_try) 2>&5
22119 ac_status=$?
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; } &&
22122 { ac_try='test -s conftest.$ac_objext'
22123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124 (eval $ac_try) 2>&5
22125 ac_status=$?
22126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127 (exit $ac_status); }; }; then
22128 ac_cv_type_std__ostream=yes
22129else
22130 echo "$as_me: failed program was:" >&5
22131sed 's/^/| /' conftest.$ac_ext >&5
22132
22133ac_cv_type_std__ostream=no
22134fi
22135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22136fi
22137echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22138echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22139if test $ac_cv_type_std__ostream = yes; then
22140
22141cat >>confdefs.h <<_ACEOF
22142#define HAVE_STD__OSTREAM 1
22143_ACEOF
22144
22145
22146else
22147 wxUSE_STD_IOSTREAM=no
22148fi
22149
22150
22151 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
22152 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22153 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22154echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22155 { (exit 1); exit 1; }; }
22156 else
22157 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 22158echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 22159 fi
f56c22b4
MW
22160 fi
22161
22162 ac_ext=c
22163ac_cpp='$CPP $CPPFLAGS'
22164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
22166ac_compiler_gnu=$ac_cv_c_compiler_gnu
22167
22168fi
22169
22170if test "$wxUSE_STL" = "yes"; then
22171 ac_ext=cc
22172ac_cpp='$CXXCPP $CPPFLAGS'
22173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22176
22177
22178 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
22179echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
22180 cat >conftest.$ac_ext <<_ACEOF
22181/* confdefs.h. */
22182_ACEOF
22183cat confdefs.h >>conftest.$ac_ext
22184cat >>conftest.$ac_ext <<_ACEOF
22185/* end confdefs.h. */
22186#include <string>
0a08f02a
MB
22187 #include <functional>
22188 #include <algorithm>
22189 #include <vector>
22190 #include <list>
a848cd7e
SC
22191int
22192main ()
22193{
0a08f02a
MB
22194std::vector<int> moo;
22195 std::list<int> foo;
22196 std::vector<int>::iterator it =
22197 std::find_if(moo.begin(), moo.end(),
22198 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
22199 ;
22200 return 0;
22201}
22202_ACEOF
22203rm -f conftest.$ac_objext
22204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22205 (eval $ac_compile) 2>conftest.er1
a848cd7e 22206 ac_status=$?
ac1cb8d3
VS
22207 grep -v '^ *+' conftest.er1 >conftest.err
22208 rm -f conftest.er1
22209 cat conftest.err >&5
a848cd7e
SC
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } &&
6ebeb4c7 22212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22214 (eval $ac_try) 2>&5
22215 ac_status=$?
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); }; } &&
22218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22220 (eval $ac_try) 2>&5
22221 ac_status=$?
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); }; }; then
22224 echo "$as_me:$LINENO: result: yes" >&5
22225echo "${ECHO_T}yes" >&6
a848cd7e
SC
22226else
22227 echo "$as_me: failed program was:" >&5
22228sed 's/^/| /' conftest.$ac_ext >&5
22229
22230echo "$as_me:$LINENO: result: no" >&5
22231echo "${ECHO_T}no" >&6
0a08f02a
MB
22232 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
22233echo "$as_me: error: Basic STL functionality missing" >&2;}
22234 { (exit 1); exit 1; }; }
a848cd7e 22235fi
ac1cb8d3 22236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22237
22238 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
22239echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
22240 cat >conftest.$ac_ext <<_ACEOF
22241/* confdefs.h. */
22242_ACEOF
22243cat confdefs.h >>conftest.$ac_ext
22244cat >>conftest.$ac_ext <<_ACEOF
22245/* end confdefs.h. */
22246#include <string>
22247int
22248main ()
22249{
22250std::string foo, bar;
22251 foo.compare(bar);
22252 foo.compare(1, 1, bar);
22253 foo.compare(1, 1, bar, 1, 1);
22254 foo.compare("");
22255 foo.compare(1, 1, "");
22256 foo.compare(1, 1, "", 2);
22257 ;
22258 return 0;
22259}
22260_ACEOF
22261rm -f conftest.$ac_objext
22262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22263 (eval $ac_compile) 2>conftest.er1
a848cd7e 22264 ac_status=$?
ac1cb8d3
VS
22265 grep -v '^ *+' conftest.er1 >conftest.err
22266 rm -f conftest.er1
22267 cat conftest.err >&5
a848cd7e
SC
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } &&
6ebeb4c7 22270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272 (eval $ac_try) 2>&5
22273 ac_status=$?
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); }; } &&
22276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22279 ac_status=$?
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; }; then
22282 echo "$as_me:$LINENO: result: yes" >&5
22283echo "${ECHO_T}yes" >&6
22284 cat >>confdefs.h <<\_ACEOF
22285#define HAVE_STD_STRING_COMPARE 1
22286_ACEOF
22287
22288else
22289 echo "$as_me: failed program was:" >&5
22290sed 's/^/| /' conftest.$ac_ext >&5
22291
22292echo "$as_me:$LINENO: result: no" >&5
22293echo "${ECHO_T}no" >&6
22294fi
ac1cb8d3 22295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22296
22297 if test "${ac_cv_header_hash_map+set}" = set; then
22298 echo "$as_me:$LINENO: checking for hash_map" >&5
22299echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22300if test "${ac_cv_header_hash_map+set}" = set; then
22301 echo $ECHO_N "(cached) $ECHO_C" >&6
22302fi
22303echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22304echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22305else
22306 # Is the header compilable?
22307echo "$as_me:$LINENO: checking hash_map usability" >&5
22308echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
22309cat >conftest.$ac_ext <<_ACEOF
22310/* confdefs.h. */
22311_ACEOF
22312cat confdefs.h >>conftest.$ac_ext
22313cat >>conftest.$ac_ext <<_ACEOF
22314/* end confdefs.h. */
22315$ac_includes_default
22316#include <hash_map>
22317_ACEOF
22318rm -f conftest.$ac_objext
22319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22320 (eval $ac_compile) 2>conftest.er1
bdcade0a 22321 ac_status=$?
ac1cb8d3
VS
22322 grep -v '^ *+' conftest.er1 >conftest.err
22323 rm -f conftest.er1
22324 cat conftest.err >&5
bdcade0a
MB
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } &&
6ebeb4c7 22327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; } &&
22333 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22336 ac_status=$?
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
22339 ac_header_compiler=yes
22340else
22341 echo "$as_me: failed program was:" >&5
22342sed 's/^/| /' conftest.$ac_ext >&5
22343
22344ac_header_compiler=no
22345fi
ac1cb8d3 22346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22347echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22348echo "${ECHO_T}$ac_header_compiler" >&6
22349
22350# Is the header present?
22351echo "$as_me:$LINENO: checking hash_map presence" >&5
22352echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
22353cat >conftest.$ac_ext <<_ACEOF
22354/* confdefs.h. */
22355_ACEOF
22356cat confdefs.h >>conftest.$ac_ext
22357cat >>conftest.$ac_ext <<_ACEOF
22358/* end confdefs.h. */
22359#include <hash_map>
22360_ACEOF
22361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22363 ac_status=$?
22364 grep -v '^ *+' conftest.er1 >conftest.err
22365 rm -f conftest.er1
22366 cat conftest.err >&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); } >/dev/null; then
22369 if test -s conftest.err; then
22370 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22371 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22372 else
22373 ac_cpp_err=
22374 fi
22375else
22376 ac_cpp_err=yes
22377fi
22378if test -z "$ac_cpp_err"; then
22379 ac_header_preproc=yes
22380else
22381 echo "$as_me: failed program was:" >&5
22382sed 's/^/| /' conftest.$ac_ext >&5
22383
22384 ac_header_preproc=no
22385fi
22386rm -f conftest.err conftest.$ac_ext
22387echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22388echo "${ECHO_T}$ac_header_preproc" >&6
22389
22390# So? What about this header?
ac1cb8d3
VS
22391case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22392 yes:no: )
bdcade0a
MB
22393 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22394echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22395 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
22396echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
22397 ac_header_preproc=yes
bdcade0a 22398 ;;
ac1cb8d3 22399 no:yes:* )
bdcade0a
MB
22400 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
22401echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22402 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
22403echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
22404 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
22405echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
22406 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
22407echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22408 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
22409echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22410 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
22411echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22412 (
22413 cat <<\_ASBOX
ac1cb8d3
VS
22414## ----------------------------------------- ##
22415## Report this to wx-dev@lists.wxwidgets.org ##
22416## ----------------------------------------- ##
bdcade0a
MB
22417_ASBOX
22418 ) |
22419 sed "s/^/$as_me: WARNING: /" >&2
22420 ;;
22421esac
22422echo "$as_me:$LINENO: checking for hash_map" >&5
22423echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22424if test "${ac_cv_header_hash_map+set}" = set; then
22425 echo $ECHO_N "(cached) $ECHO_C" >&6
22426else
22427 ac_cv_header_hash_map=$ac_header_preproc
22428fi
22429echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22430echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22431
22432fi
22433if test $ac_cv_header_hash_map = yes; then
22434 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22435echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22436 cat >conftest.$ac_ext <<_ACEOF
22437/* confdefs.h. */
22438_ACEOF
22439cat confdefs.h >>conftest.$ac_ext
22440cat >>conftest.$ac_ext <<_ACEOF
22441/* end confdefs.h. */
22442#include <hash_map>
22443 #include <hash_set>
22444int
22445main ()
22446{
22447std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
22448 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
22449 ;
22450 return 0;
22451}
22452_ACEOF
22453rm -f conftest.$ac_objext
22454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22455 (eval $ac_compile) 2>conftest.er1
bdcade0a 22456 ac_status=$?
ac1cb8d3
VS
22457 grep -v '^ *+' conftest.er1 >conftest.err
22458 rm -f conftest.er1
22459 cat conftest.err >&5
bdcade0a
MB
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } &&
6ebeb4c7 22462 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464 (eval $ac_try) 2>&5
22465 ac_status=$?
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; } &&
22468 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22470 (eval $ac_try) 2>&5
22471 ac_status=$?
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); }; }; then
22474 echo "$as_me:$LINENO: result: yes" >&5
22475echo "${ECHO_T}yes" >&6
22476 cat >>confdefs.h <<\_ACEOF
22477#define HAVE_HASH_MAP 1
22478_ACEOF
22479
22480 cat >>confdefs.h <<\_ACEOF
22481#define HAVE_STD_HASH_MAP 1
22482_ACEOF
22483
22484else
22485 echo "$as_me: failed program was:" >&5
22486sed 's/^/| /' conftest.$ac_ext >&5
22487
22488echo "$as_me:$LINENO: result: no" >&5
22489echo "${ECHO_T}no" >&6
22490fi
ac1cb8d3 22491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22492
22493fi
22494
22495
22496
22497 if test "${ac_cv_header_ext_hash_map+set}" = set; then
22498 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22499echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22500if test "${ac_cv_header_ext_hash_map+set}" = set; then
22501 echo $ECHO_N "(cached) $ECHO_C" >&6
22502fi
22503echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22504echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22505else
22506 # Is the header compilable?
22507echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
22508echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
22509cat >conftest.$ac_ext <<_ACEOF
22510/* confdefs.h. */
22511_ACEOF
22512cat confdefs.h >>conftest.$ac_ext
22513cat >>conftest.$ac_ext <<_ACEOF
22514/* end confdefs.h. */
22515$ac_includes_default
22516#include <ext/hash_map>
22517_ACEOF
22518rm -f conftest.$ac_objext
22519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22520 (eval $ac_compile) 2>conftest.er1
bdcade0a 22521 ac_status=$?
ac1cb8d3
VS
22522 grep -v '^ *+' conftest.er1 >conftest.err
22523 rm -f conftest.er1
22524 cat conftest.err >&5
bdcade0a
MB
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); } &&
6ebeb4c7 22527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529 (eval $ac_try) 2>&5
22530 ac_status=$?
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; } &&
22533 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535 (eval $ac_try) 2>&5
22536 ac_status=$?
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); }; }; then
22539 ac_header_compiler=yes
22540else
22541 echo "$as_me: failed program was:" >&5
22542sed 's/^/| /' conftest.$ac_ext >&5
22543
22544ac_header_compiler=no
22545fi
ac1cb8d3 22546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22547echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22548echo "${ECHO_T}$ac_header_compiler" >&6
22549
22550# Is the header present?
22551echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
22552echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
22553cat >conftest.$ac_ext <<_ACEOF
22554/* confdefs.h. */
22555_ACEOF
22556cat confdefs.h >>conftest.$ac_ext
22557cat >>conftest.$ac_ext <<_ACEOF
22558/* end confdefs.h. */
22559#include <ext/hash_map>
22560_ACEOF
22561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22563 ac_status=$?
22564 grep -v '^ *+' conftest.er1 >conftest.err
22565 rm -f conftest.er1
22566 cat conftest.err >&5
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); } >/dev/null; then
22569 if test -s conftest.err; then
22570 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22571 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22572 else
22573 ac_cpp_err=
22574 fi
22575else
22576 ac_cpp_err=yes
22577fi
22578if test -z "$ac_cpp_err"; then
22579 ac_header_preproc=yes
22580else
22581 echo "$as_me: failed program was:" >&5
22582sed 's/^/| /' conftest.$ac_ext >&5
22583
22584 ac_header_preproc=no
22585fi
22586rm -f conftest.err conftest.$ac_ext
22587echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22588echo "${ECHO_T}$ac_header_preproc" >&6
22589
22590# So? What about this header?
ac1cb8d3
VS
22591case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22592 yes:no: )
bdcade0a
MB
22593 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22594echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22595 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22596echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22597 ac_header_preproc=yes
bdcade0a 22598 ;;
ac1cb8d3 22599 no:yes:* )
bdcade0a
MB
22600 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22601echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22602 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22603echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22604 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22605echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22606 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22607echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22608 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22609echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22610 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22611echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22612 (
22613 cat <<\_ASBOX
ac1cb8d3
VS
22614## ----------------------------------------- ##
22615## Report this to wx-dev@lists.wxwidgets.org ##
22616## ----------------------------------------- ##
bdcade0a
MB
22617_ASBOX
22618 ) |
22619 sed "s/^/$as_me: WARNING: /" >&2
22620 ;;
22621esac
22622echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22623echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22624if test "${ac_cv_header_ext_hash_map+set}" = set; then
22625 echo $ECHO_N "(cached) $ECHO_C" >&6
22626else
22627 ac_cv_header_ext_hash_map=$ac_header_preproc
22628fi
22629echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22630echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22631
22632fi
22633if test $ac_cv_header_ext_hash_map = yes; then
22634 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22635echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22636 cat >conftest.$ac_ext <<_ACEOF
22637/* confdefs.h. */
22638_ACEOF
22639cat confdefs.h >>conftest.$ac_ext
22640cat >>conftest.$ac_ext <<_ACEOF
22641/* end confdefs.h. */
22642#include <ext/hash_map>
22643 #include <ext/hash_set>
22644int
22645main ()
22646{
22647__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22648 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22649 ;
22650 return 0;
22651}
22652_ACEOF
22653rm -f conftest.$ac_objext
22654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22655 (eval $ac_compile) 2>conftest.er1
bdcade0a 22656 ac_status=$?
ac1cb8d3
VS
22657 grep -v '^ *+' conftest.er1 >conftest.err
22658 rm -f conftest.er1
22659 cat conftest.err >&5
bdcade0a
MB
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); } &&
6ebeb4c7 22662 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664 (eval $ac_try) 2>&5
22665 ac_status=$?
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); }; } &&
22668 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22670 (eval $ac_try) 2>&5
22671 ac_status=$?
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); }; }; then
22674 echo "$as_me:$LINENO: result: yes" >&5
22675echo "${ECHO_T}yes" >&6
22676 cat >>confdefs.h <<\_ACEOF
22677#define HAVE_EXT_HASH_MAP 1
22678_ACEOF
22679
22680 cat >>confdefs.h <<\_ACEOF
22681#define HAVE_GNU_CXX_HASH_MAP 1
22682_ACEOF
22683
22684else
22685 echo "$as_me: failed program was:" >&5
22686sed 's/^/| /' conftest.$ac_ext >&5
22687
22688echo "$as_me:$LINENO: result: no" >&5
22689echo "${ECHO_T}no" >&6
22690fi
ac1cb8d3 22691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22692
22693fi
22694
22695
a848cd7e
SC
22696
22697 ac_ext=c
22698ac_cpp='$CPP $CPPFLAGS'
22699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22701ac_compiler_gnu=$ac_cv_c_compiler_gnu
22702
22703fi
22704
22705
22706SEARCH_INCLUDE="\
22707 /usr/local/include \
22708 \
22709 /usr/Motif-2.1/include \
22710 /usr/Motif-1.2/include \
22711 /usr/include/Motif1.2 \
a848cd7e
SC
22712 \
22713 /usr/dt/include \
22714 /usr/openwin/include \
22715 \
22716 /usr/include/Xm \
22717 \
22718 /usr/X11R6/include \
22719 /usr/X11R6.4/include \
22720 /usr/X11R5/include \
22721 /usr/X11R4/include \
22722 \
22723 /usr/include/X11R6 \
22724 /usr/include/X11R5 \
22725 /usr/include/X11R4 \
22726 \
22727 /usr/local/X11R6/include \
22728 /usr/local/X11R5/include \
22729 /usr/local/X11R4/include \
22730 \
22731 /usr/local/include/X11R6 \
22732 /usr/local/include/X11R5 \
22733 /usr/local/include/X11R4 \
22734 \
22735 /usr/X11/include \
22736 /usr/include/X11 \
22737 /usr/local/X11/include \
22738 /usr/local/include/X11 \
22739 \
a848cd7e 22740 /usr/XFree86/include/X11 \
e051b34e
MW
22741 /usr/pkg/include \
22742 \
a848cd7e
SC
22743 /usr/openwin/share/include"
22744
6f9cf1e6 22745echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 22746echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
22747
22748case "${host}" in
22749 *-*-irix6* )
22750 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
22751 echo $ECHO_N "(cached) $ECHO_C" >&6
22752else
22753
c687b303
VZ
22754 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
22755 for e in a so sl dylib dll.a; do
22756 libc="$d/libc.$e"
22757 if test -f $libc; then
22758 save_LIBS="$LIBS"
22759 LIBS="$libc"
22760 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
22761int main() { return 0; }
22762_ACEOF
22763rm -f conftest.$ac_objext conftest$ac_exeext
22764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22765 (eval $ac_link) 2>conftest.er1
22766 ac_status=$?
22767 grep -v '^ *+' conftest.er1 >conftest.err
22768 rm -f conftest.er1
22769 cat conftest.err >&5
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); } &&
22772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774 (eval $ac_try) 2>&5
22775 ac_status=$?
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); }; } &&
22778 { ac_try='test -s conftest$ac_exeext'
22779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22780 (eval $ac_try) 2>&5
22781 ac_status=$?
22782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783 (exit $ac_status); }; }; then
22784 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
22785else
22786 echo "$as_me: failed program was:" >&5
22787sed 's/^/| /' conftest.$ac_ext >&5
22788
22789fi
22790rm -f conftest.err conftest.$ac_objext \
22791 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
22792 LIBS="$save_LIBS"
22793 if test "x$wx_cv_std_libpath" != "x"; then
22794 break 2
22795 fi
22796 fi
22797 done
22798 done
22799 if test "x$wx_cv_std_libpath" = "x"; then
22800 wx_cv_std_libpath="lib"
0ad5d837 22801 fi
0ad5d837
VZ
22802
22803
22804fi
6f9cf1e6
MW
22805
22806 ;;
22807
22808 *-*-solaris2* )
22809 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
22810 wx_cv_std_libpath="lib/64"
22811 else
22812 wx_cv_std_libpath="lib"
22813 fi
22814 ;;
22815
22816 *-*-linux* )
22817 if test "$ac_cv_sizeof_void_p" = 8 -a \
22818 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
22819 wx_cv_std_libpath="lib64"
22820 else
22821 wx_cv_std_libpath="lib"
22822 fi
c687b303
VZ
22823 ;;
22824
22825 *)
22826 wx_cv_std_libpath="lib";
22827 ;;
22828esac
0ad5d837 22829
6f9cf1e6
MW
22830echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
22831echo "${ECHO_T}$wx_cv_std_libpath" >&6
22832
22833SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 22834
3eca31dc
MW
22835if test "$build" != "$host" -a "$GCC" = yes; then
22836 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
22837 cross_root=`dirname $cross_root`
22838 cross_root=`dirname $cross_root`
22839
22840 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22841 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22842
22843 if test -z "$PKG_CONFIG_PATH"; then
22844 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
22845 export PKG_CONFIG_PATH
22846 fi
22847
22848 if test -z "$x_includes" -o "$x_includes" = NONE; then
22849
22850ac_find_includes=
22851for ac_dir in $SEARCH_INCLUDE /usr/include;
22852 do
22853 if test -f "$ac_dir/X11/Intrinsic.h"; then
22854 ac_find_includes=$ac_dir
22855 break
22856 fi
22857 done
22858
22859 x_includes=$ac_find_includes
22860 fi
22861 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
22862
0ad5d837
VZ
22863 ac_find_libraries=
22864 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
22865 do
22866 for ac_extension in a so sl dylib dll.a; do
22867 if test -f "$ac_dir/libXt.$ac_extension"; then
22868 ac_find_libraries=$ac_dir
22869 break 2
22870 fi
22871 done
22872 done
22873
22874 x_libraries=$ac_find_libraries
22875 fi
22876 fi
22877fi
22878
a848cd7e
SC
22879
22880cat >confcache <<\_ACEOF
22881# This file is a shell script that caches the results of configure
22882# tests run on this system so they can be shared between configure
22883# scripts and configure runs, see configure's option --config-cache.
22884# It is not useful on other systems. If it contains results you don't
22885# want to keep, you may remove or edit it.
22886#
22887# config.status only pays attention to the cache file if you give it
22888# the --recheck option to rerun configure.
22889#
22890# `ac_cv_env_foo' variables (set or unset) will be overridden when
22891# loading this file, other *unset* `ac_cv_foo' will be assigned the
22892# following values.
22893
22894_ACEOF
22895
22896# The following way of writing the cache mishandles newlines in values,
22897# but we know of no workaround that is simple, portable, and efficient.
22898# So, don't put newlines in cache variables' values.
22899# Ultrix sh set writes to stderr and can't be redirected directly,
22900# and sets the high bit in the cache file unless we assign to the vars.
22901{
22902 (set) 2>&1 |
22903 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22904 *ac_space=\ *)
22905 # `set' does not quote correctly, so add quotes (double-quote
22906 # substitution turns \\\\ into \\, and sed turns \\ into \).
22907 sed -n \
ac1cb8d3
VS
22908 "s/'/'\\\\''/g;
22909 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22910 ;;
22911 *)
22912 # `set' quotes correctly as required by POSIX, so do not add quotes.
22913 sed -n \
ac1cb8d3 22914 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22915 ;;
22916 esac;
22917} |
22918 sed '
22919 t clear
22920 : clear
22921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22922 t end
22923 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22924 : end' >>confcache
22925if diff $cache_file confcache >/dev/null 2>&1; then :; else
22926 if test -w $cache_file; then
22927 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22928 cat confcache >$cache_file
22929 else
22930 echo "not updating unwritable cache $cache_file"
22931 fi
22932fi
22933rm -f confcache
22934
22935if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22936 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22937echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22938if test "${wx_cv_lib_glibc21+set}" = set; then
22939 echo $ECHO_N "(cached) $ECHO_C" >&6
22940else
22941
22942 cat >conftest.$ac_ext <<_ACEOF
22943/* confdefs.h. */
22944_ACEOF
22945cat confdefs.h >>conftest.$ac_ext
22946cat >>conftest.$ac_ext <<_ACEOF
22947/* end confdefs.h. */
22948#include <features.h>
22949int
22950main ()
22951{
22952
22953 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 22954 not glibc 2.1
a848cd7e
SC
22955 #endif
22956
22957 ;
22958 return 0;
22959}
22960_ACEOF
22961rm -f conftest.$ac_objext
22962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22963 (eval $ac_compile) 2>conftest.er1
a848cd7e 22964 ac_status=$?
ac1cb8d3
VS
22965 grep -v '^ *+' conftest.er1 >conftest.err
22966 rm -f conftest.er1
22967 cat conftest.err >&5
a848cd7e
SC
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } &&
6ebeb4c7 22970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22972 (eval $ac_try) 2>&5
22973 ac_status=$?
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); }; } &&
22976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22978 (eval $ac_try) 2>&5
22979 ac_status=$?
22980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981 (exit $ac_status); }; }; then
22982
22983 wx_cv_lib_glibc21=yes
22984
22985else
22986 echo "$as_me: failed program was:" >&5
22987sed 's/^/| /' conftest.$ac_ext >&5
22988
22989
22990 wx_cv_lib_glibc21=no
22991
22992
22993fi
ac1cb8d3 22994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22995
22996fi
22997echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22998echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22999 if test "$wx_cv_lib_glibc21" = "yes"; then
23000 cat >>confdefs.h <<\_ACEOF
23001#define wxHAVE_GLIBC2 1
23002_ACEOF
23003
23004 fi
23005fi
23006
23007if test "x$wx_cv_lib_glibc21" = "xyes"; then
23008 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23009 cat >>confdefs.h <<\_ACEOF
23010#define _GNU_SOURCE 1
23011_ACEOF
23012
23013 fi
23014fi
23015
23016
23017
23018if test "$wxUSE_REGEX" != "no"; then
23019 cat >>confdefs.h <<\_ACEOF
23020#define wxUSE_REGEX 1
23021_ACEOF
23022
23023
23024 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23025 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23026echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23027 wxUSE_REGEX=builtin
23028 fi
23029
23030 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23031 if test "${ac_cv_header_regex_h+set}" = set; then
23032 echo "$as_me:$LINENO: checking for regex.h" >&5
23033echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23034if test "${ac_cv_header_regex_h+set}" = set; then
23035 echo $ECHO_N "(cached) $ECHO_C" >&6
23036fi
23037echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23038echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23039else
23040 # Is the header compilable?
23041echo "$as_me:$LINENO: checking regex.h usability" >&5
23042echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23043cat >conftest.$ac_ext <<_ACEOF
23044/* confdefs.h. */
23045_ACEOF
23046cat confdefs.h >>conftest.$ac_ext
23047cat >>conftest.$ac_ext <<_ACEOF
23048/* end confdefs.h. */
23049$ac_includes_default
23050#include <regex.h>
23051_ACEOF
23052rm -f conftest.$ac_objext
23053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23054 (eval $ac_compile) 2>conftest.er1
a848cd7e 23055 ac_status=$?
ac1cb8d3
VS
23056 grep -v '^ *+' conftest.er1 >conftest.err
23057 rm -f conftest.er1
23058 cat conftest.err >&5
a848cd7e
SC
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); } &&
6ebeb4c7 23061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23063 (eval $ac_try) 2>&5
23064 ac_status=$?
23065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); }; } &&
23067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23069 (eval $ac_try) 2>&5
23070 ac_status=$?
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); }; }; then
23073 ac_header_compiler=yes
23074else
23075 echo "$as_me: failed program was:" >&5
23076sed 's/^/| /' conftest.$ac_ext >&5
23077
23078ac_header_compiler=no
23079fi
ac1cb8d3 23080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23081echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23082echo "${ECHO_T}$ac_header_compiler" >&6
23083
23084# Is the header present?
23085echo "$as_me:$LINENO: checking regex.h presence" >&5
23086echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23087cat >conftest.$ac_ext <<_ACEOF
23088/* confdefs.h. */
23089_ACEOF
23090cat confdefs.h >>conftest.$ac_ext
23091cat >>conftest.$ac_ext <<_ACEOF
23092/* end confdefs.h. */
23093#include <regex.h>
23094_ACEOF
23095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23097 ac_status=$?
23098 grep -v '^ *+' conftest.er1 >conftest.err
23099 rm -f conftest.er1
23100 cat conftest.err >&5
23101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102 (exit $ac_status); } >/dev/null; then
23103 if test -s conftest.err; then
23104 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23106 else
23107 ac_cpp_err=
23108 fi
23109else
23110 ac_cpp_err=yes
23111fi
23112if test -z "$ac_cpp_err"; then
23113 ac_header_preproc=yes
23114else
23115 echo "$as_me: failed program was:" >&5
23116sed 's/^/| /' conftest.$ac_ext >&5
23117
23118 ac_header_preproc=no
23119fi
23120rm -f conftest.err conftest.$ac_ext
23121echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23122echo "${ECHO_T}$ac_header_preproc" >&6
23123
23124# So? What about this header?
ac1cb8d3
VS
23125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23126 yes:no: )
a848cd7e
SC
23127 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23128echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23129 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23130echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23131 ac_header_preproc=yes
a848cd7e 23132 ;;
ac1cb8d3 23133 no:yes:* )
a848cd7e
SC
23134 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23135echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23136 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23137echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23138 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23139echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23140 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23141echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23142 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23143echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23144 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23145echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23146 (
23147 cat <<\_ASBOX
ac1cb8d3
VS
23148## ----------------------------------------- ##
23149## Report this to wx-dev@lists.wxwidgets.org ##
23150## ----------------------------------------- ##
a848cd7e
SC
23151_ASBOX
23152 ) |
23153 sed "s/^/$as_me: WARNING: /" >&2
23154 ;;
23155esac
23156echo "$as_me:$LINENO: checking for regex.h" >&5
23157echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23158if test "${ac_cv_header_regex_h+set}" = set; then
23159 echo $ECHO_N "(cached) $ECHO_C" >&6
23160else
23161 ac_cv_header_regex_h=$ac_header_preproc
23162fi
23163echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23164echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23165
23166fi
23167if test $ac_cv_header_regex_h = yes; then
23168
23169for ac_func in regcomp
23170do
23171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23172echo "$as_me:$LINENO: checking for $ac_func" >&5
23173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23174if eval "test \"\${$as_ac_var+set}\" = set"; then
23175 echo $ECHO_N "(cached) $ECHO_C" >&6
23176else
23177 cat >conftest.$ac_ext <<_ACEOF
23178/* confdefs.h. */
23179_ACEOF
23180cat confdefs.h >>conftest.$ac_ext
23181cat >>conftest.$ac_ext <<_ACEOF
23182/* end confdefs.h. */
ac1cb8d3
VS
23183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23185#define $ac_func innocuous_$ac_func
23186
a848cd7e
SC
23187/* System header to define __stub macros and hopefully few prototypes,
23188 which can conflict with char $ac_func (); below.
23189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23190 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23191
a848cd7e
SC
23192#ifdef __STDC__
23193# include <limits.h>
23194#else
23195# include <assert.h>
23196#endif
ac1cb8d3
VS
23197
23198#undef $ac_func
23199
a848cd7e
SC
23200/* Override any gcc2 internal prototype to avoid an error. */
23201#ifdef __cplusplus
23202extern "C"
23203{
23204#endif
23205/* We use char because int might match the return type of a gcc2
23206 builtin and then its argument prototype would still apply. */
23207char $ac_func ();
23208/* The GNU C library defines this for functions which it implements
23209 to always fail with ENOSYS. Some functions are actually named
23210 something starting with __ and the normal name is an alias. */
23211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23212choke me
23213#else
23214char (*f) () = $ac_func;
23215#endif
23216#ifdef __cplusplus
23217}
23218#endif
23219
23220int
23221main ()
23222{
23223return f != $ac_func;
23224 ;
23225 return 0;
23226}
23227_ACEOF
23228rm -f conftest.$ac_objext conftest$ac_exeext
23229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23230 (eval $ac_link) 2>conftest.er1
a848cd7e 23231 ac_status=$?
ac1cb8d3
VS
23232 grep -v '^ *+' conftest.er1 >conftest.err
23233 rm -f conftest.er1
23234 cat conftest.err >&5
a848cd7e
SC
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); } &&
6ebeb4c7 23237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23239 (eval $ac_try) 2>&5
23240 ac_status=$?
23241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242 (exit $ac_status); }; } &&
23243 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245 (eval $ac_try) 2>&5
23246 ac_status=$?
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); }; }; then
23249 eval "$as_ac_var=yes"
23250else
23251 echo "$as_me: failed program was:" >&5
23252sed 's/^/| /' conftest.$ac_ext >&5
23253
23254eval "$as_ac_var=no"
23255fi
ac1cb8d3
VS
23256rm -f conftest.err conftest.$ac_objext \
23257 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23258fi
23259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23260echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23261if test `eval echo '${'$as_ac_var'}'` = yes; then
23262 cat >>confdefs.h <<_ACEOF
23263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23264_ACEOF
23265
23266fi
23267done
23268
23269fi
23270
23271
23272
23273 if test "x$ac_cv_func_regcomp" != "xyes"; then
23274 if test "$wxUSE_REGEX" = "sys" ; then
23275 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
23276echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
23277 { (exit 1); exit 1; }; }
23278 else
23279 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
23280echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
23281 wxUSE_REGEX=builtin
23282 fi
23283 else
23284 wxUSE_REGEX=sys
23285 cat >>confdefs.h <<\_ACEOF
23286#define WX_NO_REGEX_ADVANCED 1
23287_ACEOF
23288
23289 fi
23290 fi
23291fi
23292
23293
23294ZLIB_LINK=
23295if test "$wxUSE_ZLIB" != "no" ; then
23296 cat >>confdefs.h <<\_ACEOF
23297#define wxUSE_ZLIB 1
23298_ACEOF
23299
23300
23301 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
23302 if test "$USE_DARWIN" = 1; then
23303 system_zlib_h_ok="yes"
23304 else
23305 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
23306echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
23307if test "${ac_cv_header_zlib_h+set}" = set; then
23308 echo $ECHO_N "(cached) $ECHO_C" >&6
23309else
23310 if test "$cross_compiling" = yes; then
23311 unset ac_cv_header_zlib_h
23312
23313else
23314 cat >conftest.$ac_ext <<_ACEOF
23315/* confdefs.h. */
23316_ACEOF
23317cat confdefs.h >>conftest.$ac_ext
23318cat >>conftest.$ac_ext <<_ACEOF
23319/* end confdefs.h. */
23320
23321 #include <zlib.h>
23322 #include <stdio.h>
23323
23324 int main()
23325 {
23326 FILE *f=fopen("conftestval", "w");
23327 if (!f) exit(1);
23328 fprintf(f, "%s",
23329 ZLIB_VERSION[0] == '1' &&
23330 (ZLIB_VERSION[2] > '1' ||
23331 (ZLIB_VERSION[2] == '1' &&
23332 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
23333 exit(0);
23334 }
23335
23336_ACEOF
23337rm -f conftest$ac_exeext
23338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23339 (eval $ac_link) 2>&5
23340 ac_status=$?
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23344 (eval $ac_try) 2>&5
23345 ac_status=$?
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; }; then
23348 ac_cv_header_zlib_h=`cat conftestval`
23349else
23350 echo "$as_me: program exited with status $ac_status" >&5
23351echo "$as_me: failed program was:" >&5
23352sed 's/^/| /' conftest.$ac_ext >&5
23353
23354( exit $ac_status )
23355ac_cv_header_zlib_h=no
23356fi
ac1cb8d3 23357rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23358fi
23359
23360fi
23361echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23362echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23363 if test "${ac_cv_header_zlib_h+set}" = set; then
23364 echo "$as_me:$LINENO: checking for zlib.h" >&5
23365echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23366if test "${ac_cv_header_zlib_h+set}" = set; then
23367 echo $ECHO_N "(cached) $ECHO_C" >&6
23368fi
23369echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23370echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23371else
23372 # Is the header compilable?
23373echo "$as_me:$LINENO: checking zlib.h usability" >&5
23374echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
23375cat >conftest.$ac_ext <<_ACEOF
23376/* confdefs.h. */
23377_ACEOF
23378cat confdefs.h >>conftest.$ac_ext
23379cat >>conftest.$ac_ext <<_ACEOF
23380/* end confdefs.h. */
23381$ac_includes_default
23382#include <zlib.h>
23383_ACEOF
23384rm -f conftest.$ac_objext
23385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23386 (eval $ac_compile) 2>conftest.er1
a848cd7e 23387 ac_status=$?
ac1cb8d3
VS
23388 grep -v '^ *+' conftest.er1 >conftest.err
23389 rm -f conftest.er1
23390 cat conftest.err >&5
a848cd7e
SC
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); } &&
6ebeb4c7 23393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23395 (eval $ac_try) 2>&5
23396 ac_status=$?
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); }; } &&
23399 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23401 (eval $ac_try) 2>&5
23402 ac_status=$?
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); }; }; then
23405 ac_header_compiler=yes
23406else
23407 echo "$as_me: failed program was:" >&5
23408sed 's/^/| /' conftest.$ac_ext >&5
23409
23410ac_header_compiler=no
23411fi
ac1cb8d3 23412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23413echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23414echo "${ECHO_T}$ac_header_compiler" >&6
23415
23416# Is the header present?
23417echo "$as_me:$LINENO: checking zlib.h presence" >&5
23418echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
23419cat >conftest.$ac_ext <<_ACEOF
23420/* confdefs.h. */
23421_ACEOF
23422cat confdefs.h >>conftest.$ac_ext
23423cat >>conftest.$ac_ext <<_ACEOF
23424/* end confdefs.h. */
23425#include <zlib.h>
23426_ACEOF
23427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23429 ac_status=$?
23430 grep -v '^ *+' conftest.er1 >conftest.err
23431 rm -f conftest.er1
23432 cat conftest.err >&5
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); } >/dev/null; then
23435 if test -s conftest.err; then
23436 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23438 else
23439 ac_cpp_err=
23440 fi
23441else
23442 ac_cpp_err=yes
23443fi
23444if test -z "$ac_cpp_err"; then
23445 ac_header_preproc=yes
23446else
23447 echo "$as_me: failed program was:" >&5
23448sed 's/^/| /' conftest.$ac_ext >&5
23449
23450 ac_header_preproc=no
23451fi
23452rm -f conftest.err conftest.$ac_ext
23453echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23454echo "${ECHO_T}$ac_header_preproc" >&6
23455
23456# So? What about this header?
ac1cb8d3
VS
23457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23458 yes:no: )
a848cd7e
SC
23459 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
23460echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23461 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
23462echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
23463 ac_header_preproc=yes
a848cd7e 23464 ;;
ac1cb8d3 23465 no:yes:* )
a848cd7e
SC
23466 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
23467echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23468 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
23469echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
23470 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
23471echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
23472 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
23473echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23474 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
23475echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23476 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
23477echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23478 (
23479 cat <<\_ASBOX
ac1cb8d3
VS
23480## ----------------------------------------- ##
23481## Report this to wx-dev@lists.wxwidgets.org ##
23482## ----------------------------------------- ##
a848cd7e
SC
23483_ASBOX
23484 ) |
23485 sed "s/^/$as_me: WARNING: /" >&2
23486 ;;
23487esac
23488echo "$as_me:$LINENO: checking for zlib.h" >&5
23489echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23490if test "${ac_cv_header_zlib_h+set}" = set; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23492else
23493 ac_cv_header_zlib_h=$ac_header_preproc
23494fi
23495echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23496echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23497
23498fi
23499
23500
23501
23502 system_zlib_h_ok=$ac_cv_header_zlib_h
23503 fi
23504
23505 if test "$system_zlib_h_ok" = "yes"; then
23506 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
23507echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
23508if test "${ac_cv_lib_z_deflate+set}" = set; then
23509 echo $ECHO_N "(cached) $ECHO_C" >&6
23510else
23511 ac_check_lib_save_LIBS=$LIBS
23512LIBS="-lz $LIBS"
23513cat >conftest.$ac_ext <<_ACEOF
23514/* confdefs.h. */
23515_ACEOF
23516cat confdefs.h >>conftest.$ac_ext
23517cat >>conftest.$ac_ext <<_ACEOF
23518/* end confdefs.h. */
23519
23520/* Override any gcc2 internal prototype to avoid an error. */
23521#ifdef __cplusplus
23522extern "C"
23523#endif
23524/* We use char because int might match the return type of a gcc2
23525 builtin and then its argument prototype would still apply. */
23526char deflate ();
23527int
23528main ()
23529{
23530deflate ();
23531 ;
23532 return 0;
23533}
23534_ACEOF
23535rm -f conftest.$ac_objext conftest$ac_exeext
23536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23537 (eval $ac_link) 2>conftest.er1
a848cd7e 23538 ac_status=$?
ac1cb8d3
VS
23539 grep -v '^ *+' conftest.er1 >conftest.err
23540 rm -f conftest.er1
23541 cat conftest.err >&5
a848cd7e
SC
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } &&
6ebeb4c7 23544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23546 (eval $ac_try) 2>&5
23547 ac_status=$?
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); }; } &&
23550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552 (eval $ac_try) 2>&5
23553 ac_status=$?
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); }; }; then
23556 ac_cv_lib_z_deflate=yes
23557else
23558 echo "$as_me: failed program was:" >&5
23559sed 's/^/| /' conftest.$ac_ext >&5
23560
23561ac_cv_lib_z_deflate=no
23562fi
ac1cb8d3
VS
23563rm -f conftest.err conftest.$ac_objext \
23564 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23565LIBS=$ac_check_lib_save_LIBS
23566fi
23567echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
23568echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
23569if test $ac_cv_lib_z_deflate = yes; then
23570 ZLIB_LINK=" -lz"
23571fi
23572
23573 fi
23574
23575 if test "x$ZLIB_LINK" = "x" ; then
23576 if test "$wxUSE_ZLIB" = "sys" ; then
23577 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
23578echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
23579 { (exit 1); exit 1; }; }
23580 else
23581 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
23582echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
23583 wxUSE_ZLIB=builtin
23584 fi
23585 else
23586 wxUSE_ZLIB=sys
23587 fi
23588 fi
23589fi
23590
23591
23592PNG_LINK=
23593if test "$wxUSE_LIBPNG" != "no" ; then
23594 cat >>confdefs.h <<\_ACEOF
23595#define wxUSE_LIBPNG 1
23596_ACEOF
23597
23598
23599 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
23600 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
23601echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
23602 wxUSE_LIBPNG=sys
23603 fi
23604
23605 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
23606 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
23607echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
23608 wxUSE_LIBPNG=builtin
23609 fi
23610
23611 if test "$wxUSE_MGL" != 1 ; then
23612 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
23613 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
23614echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
23615if test "${ac_cv_header_png_h+set}" = set; then
23616 echo $ECHO_N "(cached) $ECHO_C" >&6
23617else
23618 if test "$cross_compiling" = yes; then
23619 unset ac_cv_header_png_h
23620
23621else
23622 cat >conftest.$ac_ext <<_ACEOF
23623/* confdefs.h. */
23624_ACEOF
23625cat confdefs.h >>conftest.$ac_ext
23626cat >>conftest.$ac_ext <<_ACEOF
23627/* end confdefs.h. */
23628
23629 #include <png.h>
23630 #include <stdio.h>
23631
23632 int main()
23633 {
23634 FILE *f=fopen("conftestval", "w");
23635 if (!f) exit(1);
23636 fprintf(f, "%s",
23637 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23638 exit(0);
23639 }
23640
23641_ACEOF
23642rm -f conftest$ac_exeext
23643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23644 (eval $ac_link) 2>&5
23645 ac_status=$?
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649 (eval $ac_try) 2>&5
23650 ac_status=$?
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); }; }; then
23653 ac_cv_header_png_h=`cat conftestval`
23654else
23655 echo "$as_me: program exited with status $ac_status" >&5
23656echo "$as_me: failed program was:" >&5
23657sed 's/^/| /' conftest.$ac_ext >&5
23658
23659( exit $ac_status )
23660ac_cv_header_png_h=no
23661fi
ac1cb8d3 23662rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23663fi
23664
23665fi
23666echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23667echo "${ECHO_T}$ac_cv_header_png_h" >&6
23668 if test "${ac_cv_header_png_h+set}" = set; then
23669 echo "$as_me:$LINENO: checking for png.h" >&5
23670echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23671if test "${ac_cv_header_png_h+set}" = set; then
23672 echo $ECHO_N "(cached) $ECHO_C" >&6
23673fi
23674echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23675echo "${ECHO_T}$ac_cv_header_png_h" >&6
23676else
23677 # Is the header compilable?
23678echo "$as_me:$LINENO: checking png.h usability" >&5
23679echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23680cat >conftest.$ac_ext <<_ACEOF
23681/* confdefs.h. */
23682_ACEOF
23683cat confdefs.h >>conftest.$ac_ext
23684cat >>conftest.$ac_ext <<_ACEOF
23685/* end confdefs.h. */
23686$ac_includes_default
23687#include <png.h>
23688_ACEOF
23689rm -f conftest.$ac_objext
23690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23691 (eval $ac_compile) 2>conftest.er1
a848cd7e 23692 ac_status=$?
ac1cb8d3
VS
23693 grep -v '^ *+' conftest.er1 >conftest.err
23694 rm -f conftest.er1
23695 cat conftest.err >&5
a848cd7e
SC
23696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697 (exit $ac_status); } &&
6ebeb4c7 23698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23700 (eval $ac_try) 2>&5
23701 ac_status=$?
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); }; } &&
23704 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23706 (eval $ac_try) 2>&5
23707 ac_status=$?
23708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); }; }; then
23710 ac_header_compiler=yes
23711else
23712 echo "$as_me: failed program was:" >&5
23713sed 's/^/| /' conftest.$ac_ext >&5
23714
23715ac_header_compiler=no
23716fi
ac1cb8d3 23717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23718echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23719echo "${ECHO_T}$ac_header_compiler" >&6
23720
23721# Is the header present?
23722echo "$as_me:$LINENO: checking png.h presence" >&5
23723echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23724cat >conftest.$ac_ext <<_ACEOF
23725/* confdefs.h. */
23726_ACEOF
23727cat confdefs.h >>conftest.$ac_ext
23728cat >>conftest.$ac_ext <<_ACEOF
23729/* end confdefs.h. */
23730#include <png.h>
23731_ACEOF
23732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23734 ac_status=$?
23735 grep -v '^ *+' conftest.er1 >conftest.err
23736 rm -f conftest.er1
23737 cat conftest.err >&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } >/dev/null; then
23740 if test -s conftest.err; then
23741 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23743 else
23744 ac_cpp_err=
23745 fi
23746else
23747 ac_cpp_err=yes
23748fi
23749if test -z "$ac_cpp_err"; then
23750 ac_header_preproc=yes
23751else
23752 echo "$as_me: failed program was:" >&5
23753sed 's/^/| /' conftest.$ac_ext >&5
23754
23755 ac_header_preproc=no
23756fi
23757rm -f conftest.err conftest.$ac_ext
23758echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23759echo "${ECHO_T}$ac_header_preproc" >&6
23760
23761# So? What about this header?
ac1cb8d3
VS
23762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23763 yes:no: )
a848cd7e
SC
23764 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23765echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23766 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23767echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23768 ac_header_preproc=yes
a848cd7e 23769 ;;
ac1cb8d3 23770 no:yes:* )
a848cd7e
SC
23771 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23772echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23773 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23774echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23775 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23776echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23777 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23778echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23779 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23780echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23781 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23782echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23783 (
23784 cat <<\_ASBOX
ac1cb8d3
VS
23785## ----------------------------------------- ##
23786## Report this to wx-dev@lists.wxwidgets.org ##
23787## ----------------------------------------- ##
a848cd7e
SC
23788_ASBOX
23789 ) |
23790 sed "s/^/$as_me: WARNING: /" >&2
23791 ;;
23792esac
23793echo "$as_me:$LINENO: checking for png.h" >&5
23794echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23795if test "${ac_cv_header_png_h+set}" = set; then
23796 echo $ECHO_N "(cached) $ECHO_C" >&6
23797else
23798 ac_cv_header_png_h=$ac_header_preproc
23799fi
23800echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23801echo "${ECHO_T}$ac_cv_header_png_h" >&6
23802
23803fi
23804
23805
23806
23807 if test "$ac_cv_header_png_h" = "yes"; then
23808 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23809echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23810if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23811 echo $ECHO_N "(cached) $ECHO_C" >&6
23812else
23813 ac_check_lib_save_LIBS=$LIBS
23814LIBS="-lpng -lz -lm $LIBS"
23815cat >conftest.$ac_ext <<_ACEOF
23816/* confdefs.h. */
23817_ACEOF
23818cat confdefs.h >>conftest.$ac_ext
23819cat >>conftest.$ac_ext <<_ACEOF
23820/* end confdefs.h. */
23821
23822/* Override any gcc2 internal prototype to avoid an error. */
23823#ifdef __cplusplus
23824extern "C"
23825#endif
23826/* We use char because int might match the return type of a gcc2
23827 builtin and then its argument prototype would still apply. */
23828char png_check_sig ();
23829int
23830main ()
23831{
23832png_check_sig ();
23833 ;
23834 return 0;
23835}
23836_ACEOF
23837rm -f conftest.$ac_objext conftest$ac_exeext
23838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23839 (eval $ac_link) 2>conftest.er1
a848cd7e 23840 ac_status=$?
ac1cb8d3
VS
23841 grep -v '^ *+' conftest.er1 >conftest.err
23842 rm -f conftest.er1
23843 cat conftest.err >&5
a848cd7e
SC
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); } &&
6ebeb4c7 23846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23848 (eval $ac_try) 2>&5
23849 ac_status=$?
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); }; } &&
23852 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23854 (eval $ac_try) 2>&5
23855 ac_status=$?
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); }; }; then
23858 ac_cv_lib_png_png_check_sig=yes
23859else
23860 echo "$as_me: failed program was:" >&5
23861sed 's/^/| /' conftest.$ac_ext >&5
23862
23863ac_cv_lib_png_png_check_sig=no
23864fi
ac1cb8d3
VS
23865rm -f conftest.err conftest.$ac_objext \
23866 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23867LIBS=$ac_check_lib_save_LIBS
23868fi
23869echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23870echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23871if test $ac_cv_lib_png_png_check_sig = yes; then
23872 PNG_LINK=" -lpng -lz"
23873fi
23874
23875 fi
23876
23877 if test "x$PNG_LINK" = "x" ; then
23878 if test "$wxUSE_LIBPNG" = "sys" ; then
23879 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23880echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23881 { (exit 1); exit 1; }; }
23882 else
23883 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23884echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23885 wxUSE_LIBPNG=builtin
23886 fi
23887 else
23888 wxUSE_LIBPNG=sys
23889 fi
23890 fi
23891 fi
23892
23893 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23894fi
23895
23896
23897JPEG_LINK=
23898if test "$wxUSE_LIBJPEG" != "no" ; then
23899 cat >>confdefs.h <<\_ACEOF
23900#define wxUSE_LIBJPEG 1
23901_ACEOF
23902
23903
23904 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23905 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23906echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23907 wxUSE_LIBJPEG=sys
23908 fi
23909
23910 if test "$wxUSE_MGL" != 1 ; then
23911 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23912 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23913echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23914 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23915 echo $ECHO_N "(cached) $ECHO_C" >&6
23916else
23917 cat >conftest.$ac_ext <<_ACEOF
23918/* confdefs.h. */
23919_ACEOF
23920cat confdefs.h >>conftest.$ac_ext
23921cat >>conftest.$ac_ext <<_ACEOF
23922/* end confdefs.h. */
23923
23924 #undef HAVE_STDLIB_H
23925 #include <stdio.h>
23926 #include <jpeglib.h>
23927
23928int
23929main ()
23930{
23931
23932
23933 ;
23934 return 0;
23935}
23936_ACEOF
23937rm -f conftest.$ac_objext
23938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23939 (eval $ac_compile) 2>conftest.er1
a848cd7e 23940 ac_status=$?
ac1cb8d3
VS
23941 grep -v '^ *+' conftest.er1 >conftest.err
23942 rm -f conftest.er1
23943 cat conftest.err >&5
a848cd7e
SC
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); } &&
6ebeb4c7 23946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23948 (eval $ac_try) 2>&5
23949 ac_status=$?
23950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); }; } &&
23952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23954 (eval $ac_try) 2>&5
23955 ac_status=$?
23956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957 (exit $ac_status); }; }; then
23958 ac_cv_header_jpeglib_h=yes
23959else
23960 echo "$as_me: failed program was:" >&5
23961sed 's/^/| /' conftest.$ac_ext >&5
23962
23963ac_cv_header_jpeglib_h=no
23964
23965fi
ac1cb8d3 23966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23967
23968fi
23969
23970 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23971echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23972
23973 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23974 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23975echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23976if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23977 echo $ECHO_N "(cached) $ECHO_C" >&6
23978else
23979 ac_check_lib_save_LIBS=$LIBS
23980LIBS="-ljpeg $LIBS"
23981cat >conftest.$ac_ext <<_ACEOF
23982/* confdefs.h. */
23983_ACEOF
23984cat confdefs.h >>conftest.$ac_ext
23985cat >>conftest.$ac_ext <<_ACEOF
23986/* end confdefs.h. */
23987
23988/* Override any gcc2 internal prototype to avoid an error. */
23989#ifdef __cplusplus
23990extern "C"
23991#endif
23992/* We use char because int might match the return type of a gcc2
23993 builtin and then its argument prototype would still apply. */
23994char jpeg_read_header ();
23995int
23996main ()
23997{
23998jpeg_read_header ();
23999 ;
24000 return 0;
24001}
24002_ACEOF
24003rm -f conftest.$ac_objext conftest$ac_exeext
24004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24005 (eval $ac_link) 2>conftest.er1
a848cd7e 24006 ac_status=$?
ac1cb8d3
VS
24007 grep -v '^ *+' conftest.er1 >conftest.err
24008 rm -f conftest.er1
24009 cat conftest.err >&5
a848cd7e
SC
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); } &&
6ebeb4c7 24012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014 (eval $ac_try) 2>&5
24015 ac_status=$?
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; } &&
24018 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24020 (eval $ac_try) 2>&5
24021 ac_status=$?
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); }; }; then
24024 ac_cv_lib_jpeg_jpeg_read_header=yes
24025else
24026 echo "$as_me: failed program was:" >&5
24027sed 's/^/| /' conftest.$ac_ext >&5
24028
24029ac_cv_lib_jpeg_jpeg_read_header=no
24030fi
ac1cb8d3
VS
24031rm -f conftest.err conftest.$ac_objext \
24032 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24033LIBS=$ac_check_lib_save_LIBS
24034fi
24035echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24036echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24037if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24038 JPEG_LINK=" -ljpeg"
24039fi
24040
24041 fi
24042
24043 if test "x$JPEG_LINK" = "x" ; then
24044 if test "$wxUSE_LIBJPEG" = "sys" ; then
24045 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24046echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24047 { (exit 1); exit 1; }; }
24048 else
24049 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24050echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24051 wxUSE_LIBJPEG=builtin
24052 fi
24053 else
24054 wxUSE_LIBJPEG=sys
24055 fi
24056 fi
24057 fi
24058fi
24059
24060
24061TIFF_LINK=
24062TIFF_PREREQ_LINKS=-lm
24063if test "$wxUSE_LIBTIFF" != "no" ; then
24064 cat >>confdefs.h <<\_ACEOF
24065#define wxUSE_LIBTIFF 1
24066_ACEOF
24067
24068
24069 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24070 if test "$wxUSE_LIBJPEG" = "sys"; then
24071 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24072 fi
24073 if test "$wxUSE_ZLIB" = "sys"; then
24074 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24075 fi
24076 if test "${ac_cv_header_tiffio_h+set}" = set; then
24077 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24078echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24079if test "${ac_cv_header_tiffio_h+set}" = set; then
24080 echo $ECHO_N "(cached) $ECHO_C" >&6
24081fi
24082echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24083echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24084else
24085 # Is the header compilable?
24086echo "$as_me:$LINENO: checking tiffio.h usability" >&5
24087echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
24088cat >conftest.$ac_ext <<_ACEOF
24089/* confdefs.h. */
24090_ACEOF
24091cat confdefs.h >>conftest.$ac_ext
24092cat >>conftest.$ac_ext <<_ACEOF
24093/* end confdefs.h. */
24094$ac_includes_default
24095#include <tiffio.h>
24096_ACEOF
24097rm -f conftest.$ac_objext
24098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24099 (eval $ac_compile) 2>conftest.er1
a848cd7e 24100 ac_status=$?
ac1cb8d3
VS
24101 grep -v '^ *+' conftest.er1 >conftest.err
24102 rm -f conftest.er1
24103 cat conftest.err >&5
a848cd7e
SC
24104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105 (exit $ac_status); } &&
6ebeb4c7 24106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24108 (eval $ac_try) 2>&5
24109 ac_status=$?
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); }; } &&
24112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24114 (eval $ac_try) 2>&5
24115 ac_status=$?
24116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 (exit $ac_status); }; }; then
24118 ac_header_compiler=yes
24119else
24120 echo "$as_me: failed program was:" >&5
24121sed 's/^/| /' conftest.$ac_ext >&5
24122
24123ac_header_compiler=no
24124fi
ac1cb8d3 24125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24126echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24127echo "${ECHO_T}$ac_header_compiler" >&6
24128
24129# Is the header present?
24130echo "$as_me:$LINENO: checking tiffio.h presence" >&5
24131echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
24132cat >conftest.$ac_ext <<_ACEOF
24133/* confdefs.h. */
24134_ACEOF
24135cat confdefs.h >>conftest.$ac_ext
24136cat >>conftest.$ac_ext <<_ACEOF
24137/* end confdefs.h. */
24138#include <tiffio.h>
24139_ACEOF
24140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24142 ac_status=$?
24143 grep -v '^ *+' conftest.er1 >conftest.err
24144 rm -f conftest.er1
24145 cat conftest.err >&5
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); } >/dev/null; then
24148 if test -s conftest.err; then
24149 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24151 else
24152 ac_cpp_err=
24153 fi
24154else
24155 ac_cpp_err=yes
24156fi
24157if test -z "$ac_cpp_err"; then
24158 ac_header_preproc=yes
24159else
24160 echo "$as_me: failed program was:" >&5
24161sed 's/^/| /' conftest.$ac_ext >&5
24162
24163 ac_header_preproc=no
24164fi
24165rm -f conftest.err conftest.$ac_ext
24166echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24167echo "${ECHO_T}$ac_header_preproc" >&6
24168
24169# So? What about this header?
ac1cb8d3
VS
24170case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24171 yes:no: )
a848cd7e
SC
24172 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24173echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24174 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
24175echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
24176 ac_header_preproc=yes
a848cd7e 24177 ;;
ac1cb8d3 24178 no:yes:* )
a848cd7e
SC
24179 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
24180echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24181 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
24182echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
24183 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
24184echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
24185 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
24186echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24187 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
24188echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24189 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
24190echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24191 (
24192 cat <<\_ASBOX
ac1cb8d3
VS
24193## ----------------------------------------- ##
24194## Report this to wx-dev@lists.wxwidgets.org ##
24195## ----------------------------------------- ##
a848cd7e
SC
24196_ASBOX
24197 ) |
24198 sed "s/^/$as_me: WARNING: /" >&2
24199 ;;
24200esac
24201echo "$as_me:$LINENO: checking for tiffio.h" >&5
24202echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24203if test "${ac_cv_header_tiffio_h+set}" = set; then
24204 echo $ECHO_N "(cached) $ECHO_C" >&6
24205else
24206 ac_cv_header_tiffio_h=$ac_header_preproc
24207fi
24208echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24209echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24210
24211fi
24212if test $ac_cv_header_tiffio_h = yes; then
24213
24214 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
24215echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
24216if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
24217 echo $ECHO_N "(cached) $ECHO_C" >&6
24218else
24219 ac_check_lib_save_LIBS=$LIBS
24220LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
24221cat >conftest.$ac_ext <<_ACEOF
24222/* confdefs.h. */
24223_ACEOF
24224cat confdefs.h >>conftest.$ac_ext
24225cat >>conftest.$ac_ext <<_ACEOF
24226/* end confdefs.h. */
24227
24228/* Override any gcc2 internal prototype to avoid an error. */
24229#ifdef __cplusplus
24230extern "C"
24231#endif
24232/* We use char because int might match the return type of a gcc2
24233 builtin and then its argument prototype would still apply. */
24234char TIFFError ();
24235int
24236main ()
24237{
24238TIFFError ();
24239 ;
24240 return 0;
24241}
24242_ACEOF
24243rm -f conftest.$ac_objext conftest$ac_exeext
24244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24245 (eval $ac_link) 2>conftest.er1
a848cd7e 24246 ac_status=$?
ac1cb8d3
VS
24247 grep -v '^ *+' conftest.er1 >conftest.err
24248 rm -f conftest.er1
24249 cat conftest.err >&5
a848cd7e
SC
24250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24251 (exit $ac_status); } &&
6ebeb4c7 24252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24254 (eval $ac_try) 2>&5
24255 ac_status=$?
24256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); }; } &&
24258 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24260 (eval $ac_try) 2>&5
24261 ac_status=$?
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); }; }; then
24264 ac_cv_lib_tiff_TIFFError=yes
24265else
24266 echo "$as_me: failed program was:" >&5
24267sed 's/^/| /' conftest.$ac_ext >&5
24268
24269ac_cv_lib_tiff_TIFFError=no
24270fi
ac1cb8d3
VS
24271rm -f conftest.err conftest.$ac_objext \
24272 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24273LIBS=$ac_check_lib_save_LIBS
24274fi
24275echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
24276echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
24277if test $ac_cv_lib_tiff_TIFFError = yes; then
24278 TIFF_LINK=" -ltiff"
24279fi
24280
24281
24282
24283fi
24284
24285
24286
24287 if test "x$TIFF_LINK" = "x" ; then
24288 if test "$wxUSE_LIBTIFF" = "sys" ; then
24289 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
24290echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
24291 { (exit 1); exit 1; }; }
24292 else
24293 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
24294echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
24295 wxUSE_LIBTIFF=builtin
24296 fi
24297 else
24298 wxUSE_LIBTIFF=sys
24299 fi
24300 fi
24301fi
24302
24303
47a7e797
MW
24304if test "$wxUSE_WCHAR_T" != "yes"; then
24305 if test "$wxUSE_EXPAT" != "no"; then
24306 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
24307echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
24308 wxUSE_EXPAT=no
24309 fi
24310 if test "$wxUSE_XML" != "no"; then
24311 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
24312echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
24313 wxUSE_XML=no
24314 fi
24315fi
24316
a848cd7e
SC
24317if test "$wxUSE_EXPAT" != "no"; then
24318 wxUSE_XML=yes
24319 cat >>confdefs.h <<\_ACEOF
24320#define wxUSE_EXPAT 1
24321_ACEOF
24322
24323 cat >>confdefs.h <<\_ACEOF
24324#define wxUSE_XML 1
24325_ACEOF
24326
24327
24328 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
24329 if test "${ac_cv_header_expat_h+set}" = set; then
24330 echo "$as_me:$LINENO: checking for expat.h" >&5
24331echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24332if test "${ac_cv_header_expat_h+set}" = set; then
24333 echo $ECHO_N "(cached) $ECHO_C" >&6
24334fi
24335echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24336echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24337else
24338 # Is the header compilable?
24339echo "$as_me:$LINENO: checking expat.h usability" >&5
24340echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
24341cat >conftest.$ac_ext <<_ACEOF
24342/* confdefs.h. */
24343_ACEOF
24344cat confdefs.h >>conftest.$ac_ext
24345cat >>conftest.$ac_ext <<_ACEOF
24346/* end confdefs.h. */
24347$ac_includes_default
24348#include <expat.h>
24349_ACEOF
24350rm -f conftest.$ac_objext
24351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24352 (eval $ac_compile) 2>conftest.er1
a848cd7e 24353 ac_status=$?
ac1cb8d3
VS
24354 grep -v '^ *+' conftest.er1 >conftest.err
24355 rm -f conftest.er1
24356 cat conftest.err >&5
a848cd7e
SC
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); } &&
6ebeb4c7 24359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24361 (eval $ac_try) 2>&5
24362 ac_status=$?
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); }; } &&
24365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24367 (eval $ac_try) 2>&5
24368 ac_status=$?
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); }; }; then
24371 ac_header_compiler=yes
24372else
24373 echo "$as_me: failed program was:" >&5
24374sed 's/^/| /' conftest.$ac_ext >&5
24375
24376ac_header_compiler=no
24377fi
ac1cb8d3 24378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24380echo "${ECHO_T}$ac_header_compiler" >&6
24381
24382# Is the header present?
24383echo "$as_me:$LINENO: checking expat.h presence" >&5
24384echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
24385cat >conftest.$ac_ext <<_ACEOF
24386/* confdefs.h. */
24387_ACEOF
24388cat confdefs.h >>conftest.$ac_ext
24389cat >>conftest.$ac_ext <<_ACEOF
24390/* end confdefs.h. */
24391#include <expat.h>
24392_ACEOF
24393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24395 ac_status=$?
24396 grep -v '^ *+' conftest.er1 >conftest.err
24397 rm -f conftest.er1
24398 cat conftest.err >&5
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); } >/dev/null; then
24401 if test -s conftest.err; then
24402 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24404 else
24405 ac_cpp_err=
24406 fi
24407else
24408 ac_cpp_err=yes
24409fi
24410if test -z "$ac_cpp_err"; then
24411 ac_header_preproc=yes
24412else
24413 echo "$as_me: failed program was:" >&5
24414sed 's/^/| /' conftest.$ac_ext >&5
24415
24416 ac_header_preproc=no
24417fi
24418rm -f conftest.err conftest.$ac_ext
24419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24420echo "${ECHO_T}$ac_header_preproc" >&6
24421
24422# So? What about this header?
ac1cb8d3
VS
24423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24424 yes:no: )
a848cd7e
SC
24425 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
24426echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24427 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
24428echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
24429 ac_header_preproc=yes
a848cd7e 24430 ;;
ac1cb8d3 24431 no:yes:* )
a848cd7e
SC
24432 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
24433echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24434 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
24435echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
24436 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
24437echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
24438 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
24439echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24440 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
24441echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24442 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
24443echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24444 (
24445 cat <<\_ASBOX
ac1cb8d3
VS
24446## ----------------------------------------- ##
24447## Report this to wx-dev@lists.wxwidgets.org ##
24448## ----------------------------------------- ##
a848cd7e
SC
24449_ASBOX
24450 ) |
24451 sed "s/^/$as_me: WARNING: /" >&2
24452 ;;
24453esac
24454echo "$as_me:$LINENO: checking for expat.h" >&5
24455echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24456if test "${ac_cv_header_expat_h+set}" = set; then
24457 echo $ECHO_N "(cached) $ECHO_C" >&6
24458else
24459 ac_cv_header_expat_h=$ac_header_preproc
24460fi
24461echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24462echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24463
24464fi
24465if test $ac_cv_header_expat_h = yes; then
24466 found_expat_h=1
24467fi
24468
24469
24470 if test "x$found_expat_h" = "x1"; then
24471 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
24472echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
24473if test "${wx_cv_expat_is_not_broken+set}" = set; then
24474 echo $ECHO_N "(cached) $ECHO_C" >&6
24475else
24476
24477
24478
24479 ac_ext=cc
24480ac_cpp='$CXXCPP $CPPFLAGS'
24481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24484
24485 cat >conftest.$ac_ext <<_ACEOF
24486/* confdefs.h. */
24487_ACEOF
24488cat confdefs.h >>conftest.$ac_ext
24489cat >>conftest.$ac_ext <<_ACEOF
24490/* end confdefs.h. */
24491#include <expat.h>
24492int
24493main ()
24494{
24495
24496 ;
24497 return 0;
24498}
24499_ACEOF
24500rm -f conftest.$ac_objext
24501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24502 (eval $ac_compile) 2>conftest.er1
a848cd7e 24503 ac_status=$?
ac1cb8d3
VS
24504 grep -v '^ *+' conftest.er1 >conftest.err
24505 rm -f conftest.er1
24506 cat conftest.err >&5
a848cd7e
SC
24507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24508 (exit $ac_status); } &&
6ebeb4c7 24509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24511 (eval $ac_try) 2>&5
24512 ac_status=$?
24513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514 (exit $ac_status); }; } &&
24515 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24517 (eval $ac_try) 2>&5
24518 ac_status=$?
24519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520 (exit $ac_status); }; }; then
24521 wx_cv_expat_is_not_broken=yes
24522else
24523 echo "$as_me: failed program was:" >&5
24524sed 's/^/| /' conftest.$ac_ext >&5
24525
24526wx_cv_expat_is_not_broken=no
24527
24528fi
ac1cb8d3 24529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24530 ac_ext=c
24531ac_cpp='$CPP $CPPFLAGS'
24532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24534ac_compiler_gnu=$ac_cv_c_compiler_gnu
24535
24536
24537
24538fi
24539echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
24540echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
24541 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
24542 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
24543echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
24544if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
24545 echo $ECHO_N "(cached) $ECHO_C" >&6
24546else
24547 ac_check_lib_save_LIBS=$LIBS
24548LIBS="-lexpat $LIBS"
24549cat >conftest.$ac_ext <<_ACEOF
24550/* confdefs.h. */
24551_ACEOF
24552cat confdefs.h >>conftest.$ac_ext
24553cat >>conftest.$ac_ext <<_ACEOF
24554/* end confdefs.h. */
24555
24556/* Override any gcc2 internal prototype to avoid an error. */
24557#ifdef __cplusplus
24558extern "C"
24559#endif
24560/* We use char because int might match the return type of a gcc2
24561 builtin and then its argument prototype would still apply. */
24562char XML_ParserCreate ();
24563int
24564main ()
24565{
24566XML_ParserCreate ();
24567 ;
24568 return 0;
24569}
24570_ACEOF
24571rm -f conftest.$ac_objext conftest$ac_exeext
24572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24573 (eval $ac_link) 2>conftest.er1
a848cd7e 24574 ac_status=$?
ac1cb8d3
VS
24575 grep -v '^ *+' conftest.er1 >conftest.err
24576 rm -f conftest.er1
24577 cat conftest.err >&5
a848cd7e
SC
24578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579 (exit $ac_status); } &&
6ebeb4c7 24580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24582 (eval $ac_try) 2>&5
24583 ac_status=$?
24584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); }; } &&
24586 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24588 (eval $ac_try) 2>&5
24589 ac_status=$?
24590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591 (exit $ac_status); }; }; then
24592 ac_cv_lib_expat_XML_ParserCreate=yes
24593else
24594 echo "$as_me: failed program was:" >&5
24595sed 's/^/| /' conftest.$ac_ext >&5
24596
24597ac_cv_lib_expat_XML_ParserCreate=no
24598fi
ac1cb8d3
VS
24599rm -f conftest.err conftest.$ac_objext \
24600 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24601LIBS=$ac_check_lib_save_LIBS
24602fi
24603echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
24604echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
24605if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
24606 EXPAT_LINK=" -lexpat"
24607fi
24608
24609 fi
24610 fi
24611 if test "x$EXPAT_LINK" = "x" ; then
24612 if test "$wxUSE_EXPAT" = "sys" ; then
24613 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
24614echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
24615 { (exit 1); exit 1; }; }
24616 else
24617 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
24618echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
24619 wxUSE_EXPAT=builtin
24620 fi
24621 else
24622 wxUSE_EXPAT=sys
24623 fi
24624 fi
24625 if test "$wxUSE_EXPAT" = "builtin" ; then
24626
24627
24628subdirs="$subdirs src/expat"
24629
24630 fi
24631fi
24632
24633
24634
24635if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24636 if test "${ac_cv_header_mspack_h+set}" = set; then
24637 echo "$as_me:$LINENO: checking for mspack.h" >&5
24638echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24639if test "${ac_cv_header_mspack_h+set}" = set; then
24640 echo $ECHO_N "(cached) $ECHO_C" >&6
24641fi
24642echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24643echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24644else
24645 # Is the header compilable?
24646echo "$as_me:$LINENO: checking mspack.h usability" >&5
24647echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24648cat >conftest.$ac_ext <<_ACEOF
24649/* confdefs.h. */
24650_ACEOF
24651cat confdefs.h >>conftest.$ac_ext
24652cat >>conftest.$ac_ext <<_ACEOF
24653/* end confdefs.h. */
24654$ac_includes_default
24655#include <mspack.h>
24656_ACEOF
24657rm -f conftest.$ac_objext
24658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24659 (eval $ac_compile) 2>conftest.er1
a848cd7e 24660 ac_status=$?
ac1cb8d3
VS
24661 grep -v '^ *+' conftest.er1 >conftest.err
24662 rm -f conftest.er1
24663 cat conftest.err >&5
a848cd7e
SC
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); } &&
6ebeb4c7 24666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24668 (eval $ac_try) 2>&5
24669 ac_status=$?
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); }; } &&
24672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24674 (eval $ac_try) 2>&5
24675 ac_status=$?
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; }; then
24678 ac_header_compiler=yes
24679else
24680 echo "$as_me: failed program was:" >&5
24681sed 's/^/| /' conftest.$ac_ext >&5
24682
24683ac_header_compiler=no
24684fi
ac1cb8d3 24685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24686echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24687echo "${ECHO_T}$ac_header_compiler" >&6
24688
24689# Is the header present?
24690echo "$as_me:$LINENO: checking mspack.h presence" >&5
24691echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24692cat >conftest.$ac_ext <<_ACEOF
24693/* confdefs.h. */
24694_ACEOF
24695cat confdefs.h >>conftest.$ac_ext
24696cat >>conftest.$ac_ext <<_ACEOF
24697/* end confdefs.h. */
24698#include <mspack.h>
24699_ACEOF
24700if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24702 ac_status=$?
24703 grep -v '^ *+' conftest.er1 >conftest.err
24704 rm -f conftest.er1
24705 cat conftest.err >&5
24706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707 (exit $ac_status); } >/dev/null; then
24708 if test -s conftest.err; then
24709 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24711 else
24712 ac_cpp_err=
24713 fi
24714else
24715 ac_cpp_err=yes
24716fi
24717if test -z "$ac_cpp_err"; then
24718 ac_header_preproc=yes
24719else
24720 echo "$as_me: failed program was:" >&5
24721sed 's/^/| /' conftest.$ac_ext >&5
24722
24723 ac_header_preproc=no
24724fi
24725rm -f conftest.err conftest.$ac_ext
24726echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24727echo "${ECHO_T}$ac_header_preproc" >&6
24728
24729# So? What about this header?
ac1cb8d3
VS
24730case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24731 yes:no: )
a848cd7e
SC
24732 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24733echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24734 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24735echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24736 ac_header_preproc=yes
a848cd7e 24737 ;;
ac1cb8d3 24738 no:yes:* )
a848cd7e
SC
24739 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24740echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24741 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24742echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24743 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24744echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24745 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24746echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24747 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24748echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24749 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24750echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24751 (
24752 cat <<\_ASBOX
ac1cb8d3
VS
24753## ----------------------------------------- ##
24754## Report this to wx-dev@lists.wxwidgets.org ##
24755## ----------------------------------------- ##
a848cd7e
SC
24756_ASBOX
24757 ) |
24758 sed "s/^/$as_me: WARNING: /" >&2
24759 ;;
24760esac
24761echo "$as_me:$LINENO: checking for mspack.h" >&5
24762echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24763if test "${ac_cv_header_mspack_h+set}" = set; then
24764 echo $ECHO_N "(cached) $ECHO_C" >&6
24765else
24766 ac_cv_header_mspack_h=$ac_header_preproc
24767fi
24768echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24769echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24770
24771fi
24772if test $ac_cv_header_mspack_h = yes; then
24773 found_mspack_h=1
24774fi
24775
24776
24777 if test "x$found_mspack_h" = "x1"; then
24778 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24779echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24780if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24781 echo $ECHO_N "(cached) $ECHO_C" >&6
24782else
24783 ac_check_lib_save_LIBS=$LIBS
24784LIBS="-lmspack $LIBS"
24785cat >conftest.$ac_ext <<_ACEOF
24786/* confdefs.h. */
24787_ACEOF
24788cat confdefs.h >>conftest.$ac_ext
24789cat >>conftest.$ac_ext <<_ACEOF
24790/* end confdefs.h. */
24791
24792/* Override any gcc2 internal prototype to avoid an error. */
24793#ifdef __cplusplus
24794extern "C"
24795#endif
24796/* We use char because int might match the return type of a gcc2
24797 builtin and then its argument prototype would still apply. */
24798char mspack_create_chm_decompressor ();
24799int
24800main ()
24801{
24802mspack_create_chm_decompressor ();
24803 ;
24804 return 0;
24805}
24806_ACEOF
24807rm -f conftest.$ac_objext conftest$ac_exeext
24808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24809 (eval $ac_link) 2>conftest.er1
a848cd7e 24810 ac_status=$?
ac1cb8d3
VS
24811 grep -v '^ *+' conftest.er1 >conftest.err
24812 rm -f conftest.er1
24813 cat conftest.err >&5
a848cd7e
SC
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } &&
6ebeb4c7 24816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818 (eval $ac_try) 2>&5
24819 ac_status=$?
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); }; } &&
24822 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24824 (eval $ac_try) 2>&5
24825 ac_status=$?
24826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827 (exit $ac_status); }; }; then
24828 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24829else
24830 echo "$as_me: failed program was:" >&5
24831sed 's/^/| /' conftest.$ac_ext >&5
24832
24833ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24834fi
ac1cb8d3
VS
24835rm -f conftest.err conftest.$ac_objext \
24836 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24837LIBS=$ac_check_lib_save_LIBS
24838fi
24839echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24840echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24841if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24842 MSPACK_LINK=" -lmspack"
24843fi
24844
24845 fi
24846 if test "x$MSPACK_LINK" = "x" ; then
24847 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24848 fi
24849fi
24850
24851if test "$wxUSE_LIBMSPACK" != "no"; then
24852 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24853#define wxUSE_LIBMSPACK 1
24854_ACEOF
24855
a848cd7e
SC
24856fi
24857
24858
24859
24860AFMINSTALL=
24861WIN32INSTALL=
24862
24863TOOLKIT=
24864TOOLKIT_INCLUDE=
24865WIDGET_SET=
24866
24867if test "$USE_WIN32" = 1 ; then
24868
24869for ac_header in w32api.h
24870do
24871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24872if eval "test \"\${$as_ac_Header+set}\" = set"; then
24873 echo "$as_me:$LINENO: checking for $ac_header" >&5
24874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24875if eval "test \"\${$as_ac_Header+set}\" = set"; then
24876 echo $ECHO_N "(cached) $ECHO_C" >&6
24877fi
24878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24879echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24880else
24881 # Is the header compilable?
24882echo "$as_me:$LINENO: checking $ac_header usability" >&5
24883echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24884cat >conftest.$ac_ext <<_ACEOF
24885/* confdefs.h. */
24886_ACEOF
24887cat confdefs.h >>conftest.$ac_ext
24888cat >>conftest.$ac_ext <<_ACEOF
24889/* end confdefs.h. */
24890$ac_includes_default
24891#include <$ac_header>
24892_ACEOF
24893rm -f conftest.$ac_objext
24894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24895 (eval $ac_compile) 2>conftest.er1
a848cd7e 24896 ac_status=$?
ac1cb8d3
VS
24897 grep -v '^ *+' conftest.er1 >conftest.err
24898 rm -f conftest.er1
24899 cat conftest.err >&5
a848cd7e
SC
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); } &&
6ebeb4c7 24902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904 (eval $ac_try) 2>&5
24905 ac_status=$?
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); }; } &&
24908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910 (eval $ac_try) 2>&5
24911 ac_status=$?
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); }; }; then
24914 ac_header_compiler=yes
24915else
24916 echo "$as_me: failed program was:" >&5
24917sed 's/^/| /' conftest.$ac_ext >&5
24918
24919ac_header_compiler=no
24920fi
ac1cb8d3 24921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24922echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24923echo "${ECHO_T}$ac_header_compiler" >&6
24924
24925# Is the header present?
24926echo "$as_me:$LINENO: checking $ac_header presence" >&5
24927echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24928cat >conftest.$ac_ext <<_ACEOF
24929/* confdefs.h. */
24930_ACEOF
24931cat confdefs.h >>conftest.$ac_ext
24932cat >>conftest.$ac_ext <<_ACEOF
24933/* end confdefs.h. */
24934#include <$ac_header>
24935_ACEOF
24936if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24938 ac_status=$?
24939 grep -v '^ *+' conftest.er1 >conftest.err
24940 rm -f conftest.er1
24941 cat conftest.err >&5
24942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943 (exit $ac_status); } >/dev/null; then
24944 if test -s conftest.err; then
24945 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24947 else
24948 ac_cpp_err=
24949 fi
24950else
24951 ac_cpp_err=yes
24952fi
24953if test -z "$ac_cpp_err"; then
24954 ac_header_preproc=yes
24955else
24956 echo "$as_me: failed program was:" >&5
24957sed 's/^/| /' conftest.$ac_ext >&5
24958
24959 ac_header_preproc=no
24960fi
24961rm -f conftest.err conftest.$ac_ext
24962echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24963echo "${ECHO_T}$ac_header_preproc" >&6
24964
24965# So? What about this header?
ac1cb8d3
VS
24966case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24967 yes:no: )
a848cd7e
SC
24968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24969echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24971echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24972 ac_header_preproc=yes
a848cd7e 24973 ;;
ac1cb8d3 24974 no:yes:* )
a848cd7e
SC
24975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24976echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24978echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24979 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24980echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24981 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24982echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24984echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24985 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24986echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24987 (
24988 cat <<\_ASBOX
ac1cb8d3
VS
24989## ----------------------------------------- ##
24990## Report this to wx-dev@lists.wxwidgets.org ##
24991## ----------------------------------------- ##
a848cd7e
SC
24992_ASBOX
24993 ) |
24994 sed "s/^/$as_me: WARNING: /" >&2
24995 ;;
24996esac
24997echo "$as_me:$LINENO: checking for $ac_header" >&5
24998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24999if eval "test \"\${$as_ac_Header+set}\" = set"; then
25000 echo $ECHO_N "(cached) $ECHO_C" >&6
25001else
ac1cb8d3 25002 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
25003fi
25004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25005echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25006
25007fi
25008if test `eval echo '${'$as_ac_Header'}'` = yes; then
25009 cat >>confdefs.h <<_ACEOF
25010#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25011_ACEOF
25012
25013fi
25014
25015done
25016
25017 if test "${ac_cv_header_windows_h+set}" = set; then
25018 echo "$as_me:$LINENO: checking for windows.h" >&5
25019echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25020if test "${ac_cv_header_windows_h+set}" = set; then
25021 echo $ECHO_N "(cached) $ECHO_C" >&6
25022fi
25023echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25024echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25025else
25026 # Is the header compilable?
25027echo "$as_me:$LINENO: checking windows.h usability" >&5
25028echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25029cat >conftest.$ac_ext <<_ACEOF
25030/* confdefs.h. */
25031_ACEOF
25032cat confdefs.h >>conftest.$ac_ext
25033cat >>conftest.$ac_ext <<_ACEOF
25034/* end confdefs.h. */
25035$ac_includes_default
25036#include <windows.h>
25037_ACEOF
25038rm -f conftest.$ac_objext
25039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25040 (eval $ac_compile) 2>conftest.er1
a848cd7e 25041 ac_status=$?
ac1cb8d3
VS
25042 grep -v '^ *+' conftest.er1 >conftest.err
25043 rm -f conftest.er1
25044 cat conftest.err >&5
a848cd7e
SC
25045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046 (exit $ac_status); } &&
6ebeb4c7 25047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25049 (eval $ac_try) 2>&5
25050 ac_status=$?
25051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); }; } &&
25053 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25055 (eval $ac_try) 2>&5
25056 ac_status=$?
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); }; }; then
25059 ac_header_compiler=yes
25060else
25061 echo "$as_me: failed program was:" >&5
25062sed 's/^/| /' conftest.$ac_ext >&5
25063
25064ac_header_compiler=no
25065fi
ac1cb8d3 25066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25067echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25068echo "${ECHO_T}$ac_header_compiler" >&6
25069
25070# Is the header present?
25071echo "$as_me:$LINENO: checking windows.h presence" >&5
25072echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25073cat >conftest.$ac_ext <<_ACEOF
25074/* confdefs.h. */
25075_ACEOF
25076cat confdefs.h >>conftest.$ac_ext
25077cat >>conftest.$ac_ext <<_ACEOF
25078/* end confdefs.h. */
25079#include <windows.h>
25080_ACEOF
25081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25083 ac_status=$?
25084 grep -v '^ *+' conftest.er1 >conftest.err
25085 rm -f conftest.er1
25086 cat conftest.err >&5
25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } >/dev/null; then
25089 if test -s conftest.err; then
25090 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25092 else
25093 ac_cpp_err=
25094 fi
25095else
25096 ac_cpp_err=yes
25097fi
25098if test -z "$ac_cpp_err"; then
25099 ac_header_preproc=yes
25100else
25101 echo "$as_me: failed program was:" >&5
25102sed 's/^/| /' conftest.$ac_ext >&5
25103
25104 ac_header_preproc=no
25105fi
25106rm -f conftest.err conftest.$ac_ext
25107echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25108echo "${ECHO_T}$ac_header_preproc" >&6
25109
25110# So? What about this header?
ac1cb8d3
VS
25111case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25112 yes:no: )
a848cd7e
SC
25113 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
25114echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25115 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
25116echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
25117 ac_header_preproc=yes
a848cd7e 25118 ;;
ac1cb8d3 25119 no:yes:* )
a848cd7e
SC
25120 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
25121echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25122 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
25123echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
25124 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
25125echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
25126 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
25127echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25128 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
25129echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25130 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
25131echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25132 (
25133 cat <<\_ASBOX
ac1cb8d3
VS
25134## ----------------------------------------- ##
25135## Report this to wx-dev@lists.wxwidgets.org ##
25136## ----------------------------------------- ##
a848cd7e
SC
25137_ASBOX
25138 ) |
25139 sed "s/^/$as_me: WARNING: /" >&2
25140 ;;
25141esac
25142echo "$as_me:$LINENO: checking for windows.h" >&5
25143echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25144if test "${ac_cv_header_windows_h+set}" = set; then
25145 echo $ECHO_N "(cached) $ECHO_C" >&6
25146else
25147 ac_cv_header_windows_h=$ac_header_preproc
25148fi
25149echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25150echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25151
25152fi
25153if test $ac_cv_header_windows_h = yes; then
25154 :
25155else
25156
25157 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
25158echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
25159 { (exit 1); exit 1; }; }
25160
25161fi
25162
25163
25164
25165 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
25166
25167 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
25168 LIBS="$LIBS -loleacc"
25169 fi
25170
25171 case "${host}" in
25172 *-*-cygwin* )
25173 LIBS="$LIBS -lkernel32 -luser32"
25174 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
25175 esac
25176
25177 if test "$wxUSE_ODBC" = "sys" ; then
25178 wxUSE_ODBC = "yes"
25179 fi
25180 if test "$wxUSE_ODBC" = "yes" ; then
25181 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
25182 cat >>confdefs.h <<\_ACEOF
25183#define wxUSE_ODBC 1
25184_ACEOF
25185
25186 fi
25187
25188 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
25189 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
25190
25191 WIN32INSTALL=win32install
25192fi
25193
25194if test "$wxUSE_GUI" = "yes"; then
25195 USE_GUI=1
25196
25197 GUI_TK_LIBRARY=
25198
25199 WXGTK12=
25200 WXGTK127=
25201 WXGTK20=
25202 WXGPE=
25203
207bc66c
RN
25204 if test "$wxUSE_COCOA" = 1 ; then
25205 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
25206 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
25207echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
25208 wxUSE_PRINTING_ARCHITECTURE=no
25209 fi
25210 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
25211 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
25212echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
25213 wxUSE_DRAG_AND_DROP=no
25214 fi
25215 if test "$wxUSE_DRAGIMAGE" = "yes"; then
25216 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
25217echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
25218 wxUSE_DRAGIMAGE=no
25219 fi
25220 fi
25221
a848cd7e
SC
25222 if test "$wxUSE_MSW" = 1 ; then
25223 TOOLKIT=MSW
25224 GUIDIST=MSW_DIST
25225
ceec2216 25226 case "${host}" in
a848cd7e
SC
25227 *-*-mingw32* )
25228 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
25229 esac
25230 fi
25231
25232 if test "$wxUSE_GTK" = 1; then
25233 echo "$as_me:$LINENO: checking for GTK+ version" >&5
25234echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
25235
25236 gtk_version_cached=1
25237 if test "${wx_cv_lib_gtk+set}" = set; then
25238 echo $ECHO_N "(cached) $ECHO_C" >&6
25239else
25240
25241 gtk_version_cached=0
25242 echo "$as_me:$LINENO: result: " >&5
25243echo "${ECHO_T}" >&6
25244
25245 GTK_MODULES=
25246 if test "$wxUSE_THREADS" = "yes"; then
25247 GTK_MODULES=gthread
25248 fi
25249
f597b41c 25250 wx_cv_lib_gtk=
5001df0d
MW
25251 if test "x$wxGTK_VERSION" != "x1"
25252 then
25253 case "${host}" in
25254 *-*-solaris2* )
25255 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
25256 enable_gtktest=no
25257 fi
25258 esac
25259
a848cd7e
SC
25260 # Check whether --enable-gtktest or --disable-gtktest was given.
25261if test "${enable_gtktest+set}" = set; then
25262 enableval="$enable_gtktest"
25263
25264else
25265 enable_gtktest=yes
25266fi;
25267
25268 pkg_config_args=gtk+-2.0
25269 for module in . $GTK_MODULES
25270 do
25271 case "$module" in
25272 gthread)
25273 pkg_config_args="$pkg_config_args gthread-2.0"
25274 ;;
25275 esac
25276 done
25277
25278 no_gtk=""
25279
25280 # Extract the first word of "pkg-config", so it can be a program name with args.
25281set dummy pkg-config; ac_word=$2
25282echo "$as_me:$LINENO: checking for $ac_word" >&5
25283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25284if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25285 echo $ECHO_N "(cached) $ECHO_C" >&6
25286else
25287 case $PKG_CONFIG in
25288 [\\/]* | ?:[\\/]*)
25289 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25290 ;;
25291 *)
25292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25293for as_dir in $PATH
25294do
25295 IFS=$as_save_IFS
25296 test -z "$as_dir" && as_dir=.
25297 for ac_exec_ext in '' $ac_executable_extensions; do
25298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25299 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25301 break 2
25302 fi
25303done
25304done
25305
25306 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25307 ;;
25308esac
25309fi
25310PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25311
25312if test -n "$PKG_CONFIG"; then
25313 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25314echo "${ECHO_T}$PKG_CONFIG" >&6
25315else
25316 echo "$as_me:$LINENO: result: no" >&5
25317echo "${ECHO_T}no" >&6
25318fi
25319
25320
25321 if test x$PKG_CONFIG != xno ; then
25322 if pkg-config --atleast-pkgconfig-version 0.7 ; then
25323 :
25324 else
c2218763 25325 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
25326 no_gtk=yes
25327 PKG_CONFIG=no
25328 fi
25329 else
25330 no_gtk=yes
25331 fi
25332
25333 min_gtk_version=2.0.0
25334 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
25335echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
25336
25337 if test x$PKG_CONFIG != xno ; then
25338 ## don't try to run the test against uninstalled libtool libs
25339 if $PKG_CONFIG --uninstalled $pkg_config_args; then
25340 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
25341 enable_gtktest=no
25342 fi
25343
25344 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
25345 :
25346 else
25347 no_gtk=yes
25348 fi
25349 fi
25350
25351 if test x"$no_gtk" = x ; then
25352 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
25353 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
25354 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25355 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25356 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25357 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25358 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
25359 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25360 if test "x$enable_gtktest" = "xyes" ; then
25361 ac_save_CFLAGS="$CFLAGS"
25362 ac_save_LIBS="$LIBS"
25363 CFLAGS="$CFLAGS $GTK_CFLAGS"
25364 LIBS="$GTK_LIBS $LIBS"
25365 rm -f conf.gtktest
25366 if test "$cross_compiling" = yes; then
25367 echo $ac_n "cross compiling; assumed OK... $ac_c"
25368else
25369 cat >conftest.$ac_ext <<_ACEOF
25370/* confdefs.h. */
25371_ACEOF
25372cat confdefs.h >>conftest.$ac_ext
25373cat >>conftest.$ac_ext <<_ACEOF
25374/* end confdefs.h. */
25375
25376#include <gtk/gtk.h>
25377#include <stdio.h>
25378#include <stdlib.h>
25379
25380int
25381main ()
25382{
25383 int major, minor, micro;
25384 char *tmp_version;
25385
25386 system ("touch conf.gtktest");
25387
25388 /* HP/UX 9 (%@#!) writes to sscanf strings */
25389 tmp_version = g_strdup("$min_gtk_version");
25390 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25391 printf("%s, bad version string\n", "$min_gtk_version");
25392 exit(1);
25393 }
25394
25395 if ((gtk_major_version != $gtk_config_major_version) ||
25396 (gtk_minor_version != $gtk_config_minor_version) ||
25397 (gtk_micro_version != $gtk_config_micro_version))
25398 {
25399 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25400 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25401 gtk_major_version, gtk_minor_version, gtk_micro_version);
25402 printf ("*** was found! If pkg-config was correct, then it is best\n");
25403 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25404 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25405 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25406 printf("*** required on your system.\n");
25407 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
25408 printf("*** to point to the correct configuration files\n");
25409 }
25410 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25411 (gtk_minor_version != GTK_MINOR_VERSION) ||
25412 (gtk_micro_version != GTK_MICRO_VERSION))
25413 {
25414 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25415 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25416 printf("*** library (version %d.%d.%d)\n",
25417 gtk_major_version, gtk_minor_version, gtk_micro_version);
25418 }
25419 else
25420 {
25421 if ((gtk_major_version > major) ||
25422 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25423 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25424 {
25425 return 0;
25426 }
25427 else
25428 {
25429 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25430 gtk_major_version, gtk_minor_version, gtk_micro_version);
25431 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25432 major, minor, micro);
25433 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25434 printf("***\n");
25435 printf("*** If you have already installed a sufficiently new version, this error\n");
25436 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
25437 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25438 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
25439 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
25440 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25441 printf("*** so that the correct libraries are found at run-time))\n");
25442 }
25443 }
25444 return 1;
25445}
25446
25447_ACEOF
25448rm -f conftest$ac_exeext
25449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25450 (eval $ac_link) 2>&5
25451 ac_status=$?
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25455 (eval $ac_try) 2>&5
25456 ac_status=$?
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); }; }; then
25459 :
25460else
25461 echo "$as_me: program exited with status $ac_status" >&5
25462echo "$as_me: failed program was:" >&5
25463sed 's/^/| /' conftest.$ac_ext >&5
25464
25465( exit $ac_status )
25466no_gtk=yes
25467fi
ac1cb8d3 25468rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25469fi
25470 CFLAGS="$ac_save_CFLAGS"
25471 LIBS="$ac_save_LIBS"
25472 fi
25473 fi
25474 if test "x$no_gtk" = x ; then
25475 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
25476echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
25477 wx_cv_lib_gtk=2.0
25478 else
25479 echo "$as_me:$LINENO: result: no" >&5
25480echo "${ECHO_T}no" >&6
25481 if test "$PKG_CONFIG" = "no" ; then
25482 echo "*** A new enough version of pkg-config was not found."
25483 echo "*** See http://pkgconfig.sourceforge.net"
25484 else
25485 if test -f conf.gtktest ; then
25486 :
25487 else
25488 echo "*** Could not run GTK+ test program, checking why..."
25489 ac_save_CFLAGS="$CFLAGS"
25490 ac_save_LIBS="$LIBS"
25491 CFLAGS="$CFLAGS $GTK_CFLAGS"
25492 LIBS="$LIBS $GTK_LIBS"
25493 cat >conftest.$ac_ext <<_ACEOF
25494/* confdefs.h. */
25495_ACEOF
25496cat confdefs.h >>conftest.$ac_ext
25497cat >>conftest.$ac_ext <<_ACEOF
25498/* end confdefs.h. */
25499
25500#include <gtk/gtk.h>
25501#include <stdio.h>
25502
25503int
25504main ()
25505{
25506 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25507 ;
25508 return 0;
25509}
25510_ACEOF
25511rm -f conftest.$ac_objext conftest$ac_exeext
25512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25513 (eval $ac_link) 2>conftest.er1
a848cd7e 25514 ac_status=$?
ac1cb8d3
VS
25515 grep -v '^ *+' conftest.er1 >conftest.err
25516 rm -f conftest.er1
25517 cat conftest.err >&5
a848cd7e
SC
25518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519 (exit $ac_status); } &&
6ebeb4c7 25520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25522 (eval $ac_try) 2>&5
25523 ac_status=$?
25524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525 (exit $ac_status); }; } &&
25526 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25528 (eval $ac_try) 2>&5
25529 ac_status=$?
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); }; }; then
25532 echo "*** The test program compiled, but did not run. This usually means"
25533 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
25534 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
25535 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25536 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25537 echo "*** is required on your system"
25538 echo "***"
25539 echo "*** If you have an old version installed, it is best to remove it, although"
25540 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25541else
25542 echo "$as_me: failed program was:" >&5
25543sed 's/^/| /' conftest.$ac_ext >&5
25544
25545 echo "*** The test program failed to compile or link. See the file config.log for the"
25546 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
25547fi
ac1cb8d3
VS
25548rm -f conftest.err conftest.$ac_objext \
25549 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25550 CFLAGS="$ac_save_CFLAGS"
25551 LIBS="$ac_save_LIBS"
25552 fi
25553 fi
25554 GTK_CFLAGS=""
25555 GTK_LIBS=""
25556 :
25557 fi
25558
25559
25560 rm -f conf.gtktest
25561
5001df0d
MW
25562
25563 case "${host}" in
25564 *-*-solaris2* )
25565 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
25566 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
25567 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
25568 fi
25569 if test "$wxUSE_SHARED" != "yes"; then
25570 GTK_LIBS="$GTK_LIBS -lX11"
25571 fi
25572 esac
f597b41c
MW
25573 fi
25574
f34ca037
MW
25575 if test -z "$wx_cv_lib_gtk"; then
25576 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
25577
25578# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25579if test "${with_gtk_prefix+set}" = set; then
25580 withval="$with_gtk_prefix"
25581 gtk_config_prefix="$withval"
25582else
25583 gtk_config_prefix=""
25584fi;
25585
25586# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25587if test "${with_gtk_exec_prefix+set}" = set; then
25588 withval="$with_gtk_exec_prefix"
25589 gtk_config_exec_prefix="$withval"
25590else
25591 gtk_config_exec_prefix=""
25592fi;
25593# Check whether --enable-gtktest or --disable-gtktest was given.
25594if test "${enable_gtktest+set}" = set; then
25595 enableval="$enable_gtktest"
25596
25597else
25598 enable_gtktest=yes
25599fi;
25600
25601 for module in . $GTK_MODULES
25602 do
25603 case "$module" in
25604 gthread)
25605 gtk_config_args="$gtk_config_args gthread"
25606 ;;
25607 esac
25608 done
25609
25610 if test x$gtk_config_exec_prefix != x ; then
25611 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25612 if test x${GTK_CONFIG+set} != xset ; then
25613 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25614 fi
25615 fi
25616 if test x$gtk_config_prefix != x ; then
25617 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25618 if test x${GTK_CONFIG+set} != xset ; then
25619 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25620 fi
25621 fi
25622
25623 # Extract the first word of "gtk-config", so it can be a program name with args.
25624set dummy gtk-config; ac_word=$2
25625echo "$as_me:$LINENO: checking for $ac_word" >&5
25626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25627if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25628 echo $ECHO_N "(cached) $ECHO_C" >&6
25629else
25630 case $GTK_CONFIG in
25631 [\\/]* | ?:[\\/]*)
25632 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25633 ;;
25634 *)
25635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25636for as_dir in $PATH
25637do
25638 IFS=$as_save_IFS
25639 test -z "$as_dir" && as_dir=.
25640 for ac_exec_ext in '' $ac_executable_extensions; do
25641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25642 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25644 break 2
25645 fi
25646done
25647done
25648
25649 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25650 ;;
25651esac
25652fi
25653GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25654
25655if test -n "$GTK_CONFIG"; then
25656 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25657echo "${ECHO_T}$GTK_CONFIG" >&6
25658else
25659 echo "$as_me:$LINENO: result: no" >&5
25660echo "${ECHO_T}no" >&6
25661fi
25662
25663 min_gtk_version=1.2.7
25664 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25665echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25666 no_gtk=""
25667 if test "$GTK_CONFIG" = "no" ; then
25668 no_gtk=yes
25669 else
25670 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25671 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25672 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25673 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25674 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25675 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25676 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25677 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25678 if test "x$enable_gtktest" = "xyes" ; then
25679 ac_save_CFLAGS="$CFLAGS"
25680 ac_save_LIBS="$LIBS"
25681 CFLAGS="$CFLAGS $GTK_CFLAGS"
25682 LIBS="$GTK_LIBS $LIBS"
25683 rm -f conf.gtktest
25684 if test "$cross_compiling" = yes; then
25685 echo $ac_n "cross compiling; assumed OK... $ac_c"
25686else
25687 cat >conftest.$ac_ext <<_ACEOF
25688/* confdefs.h. */
25689_ACEOF
25690cat confdefs.h >>conftest.$ac_ext
25691cat >>conftest.$ac_ext <<_ACEOF
25692/* end confdefs.h. */
25693
25694#include <gtk/gtk.h>
25695#include <stdio.h>
25696#include <stdlib.h>
25697
25698int
25699main ()
25700{
25701 int major, minor, micro;
25702 char *tmp_version;
25703
25704 system ("touch conf.gtktest");
25705
25706 /* HP/UX 9 (%@#!) writes to sscanf strings */
25707 tmp_version = g_strdup("$min_gtk_version");
25708 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25709 printf("%s, bad version string\n", "$min_gtk_version");
25710 exit(1);
25711 }
25712
25713 if ((gtk_major_version != $gtk_config_major_version) ||
25714 (gtk_minor_version != $gtk_config_minor_version) ||
25715 (gtk_micro_version != $gtk_config_micro_version))
25716 {
25717 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25718 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25719 gtk_major_version, gtk_minor_version, gtk_micro_version);
25720 printf ("*** was found! If gtk-config was correct, then it is best\n");
25721 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25722 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25723 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25724 printf("*** required on your system.\n");
25725 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25726 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25727 printf("*** before re-running configure\n");
25728 }
25729#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25730 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25731 (gtk_minor_version != GTK_MINOR_VERSION) ||
25732 (gtk_micro_version != GTK_MICRO_VERSION))
25733 {
25734 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25735 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25736 printf("*** library (version %d.%d.%d)\n",
25737 gtk_major_version, gtk_minor_version, gtk_micro_version);
25738 }
25739#endif /* defined (GTK_MAJOR_VERSION) ... */
25740 else
25741 {
25742 if ((gtk_major_version > major) ||
25743 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25744 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25745 {
25746 return 0;
25747 }
25748 else
25749 {
25750 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25751 gtk_major_version, gtk_minor_version, gtk_micro_version);
25752 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25753 major, minor, micro);
25754 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25755 printf("***\n");
25756 printf("*** If you have already installed a sufficiently new version, this error\n");
25757 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25758 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25759 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25760 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25761 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25762 printf("*** so that the correct libraries are found at run-time))\n");
25763 }
25764 }
25765 return 1;
25766}
25767
25768_ACEOF
25769rm -f conftest$ac_exeext
25770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25771 (eval $ac_link) 2>&5
25772 ac_status=$?
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25776 (eval $ac_try) 2>&5
25777 ac_status=$?
25778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779 (exit $ac_status); }; }; then
25780 :
25781else
25782 echo "$as_me: program exited with status $ac_status" >&5
25783echo "$as_me: failed program was:" >&5
25784sed 's/^/| /' conftest.$ac_ext >&5
25785
25786( exit $ac_status )
25787no_gtk=yes
25788fi
ac1cb8d3 25789rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25790fi
25791 CFLAGS="$ac_save_CFLAGS"
25792 LIBS="$ac_save_LIBS"
25793 fi
25794 fi
25795 if test "x$no_gtk" = x ; then
25796 echo "$as_me:$LINENO: result: yes" >&5
25797echo "${ECHO_T}yes" >&6
25798 wx_cv_lib_gtk=1.2.7
25799 else
25800 echo "$as_me:$LINENO: result: no" >&5
25801echo "${ECHO_T}no" >&6
25802 if test "$GTK_CONFIG" = "no" ; then
25803 echo "*** The gtk-config script installed by GTK could not be found"
25804 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25805 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25806 echo "*** full path to gtk-config."
25807 else
25808 if test -f conf.gtktest ; then
25809 :
25810 else
25811 echo "*** Could not run GTK test program, checking why..."
25812 CFLAGS="$CFLAGS $GTK_CFLAGS"
25813 LIBS="$LIBS $GTK_LIBS"
25814 cat >conftest.$ac_ext <<_ACEOF
25815/* confdefs.h. */
25816_ACEOF
25817cat confdefs.h >>conftest.$ac_ext
25818cat >>conftest.$ac_ext <<_ACEOF
25819/* end confdefs.h. */
25820
25821#include <gtk/gtk.h>
25822#include <stdio.h>
25823
25824int
25825main ()
25826{
25827 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25828 ;
25829 return 0;
25830}
25831_ACEOF
25832rm -f conftest.$ac_objext conftest$ac_exeext
25833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25834 (eval $ac_link) 2>conftest.er1
a848cd7e 25835 ac_status=$?
ac1cb8d3
VS
25836 grep -v '^ *+' conftest.er1 >conftest.err
25837 rm -f conftest.er1
25838 cat conftest.err >&5
a848cd7e
SC
25839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840 (exit $ac_status); } &&
6ebeb4c7 25841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843 (eval $ac_try) 2>&5
25844 ac_status=$?
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; } &&
25847 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849 (eval $ac_try) 2>&5
25850 ac_status=$?
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); }; }; then
25853 echo "*** The test program compiled, but did not run. This usually means"
25854 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25855 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25856 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25857 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25858 echo "*** is required on your system"
25859 echo "***"
25860 echo "*** If you have an old version installed, it is best to remove it, although"
25861 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25862 echo "***"
25863 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25864 echo "*** came with the system with the command"
25865 echo "***"
25866 echo "*** rpm --erase --nodeps gtk gtk-devel"
25867else
25868 echo "$as_me: failed program was:" >&5
25869sed 's/^/| /' conftest.$ac_ext >&5
25870
25871 echo "*** The test program failed to compile or link. See the file config.log for the"
25872 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25873 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25874 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25875fi
ac1cb8d3
VS
25876rm -f conftest.err conftest.$ac_objext \
25877 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25878 CFLAGS="$ac_save_CFLAGS"
25879 LIBS="$ac_save_LIBS"
25880 fi
25881 fi
25882 GTK_CFLAGS=""
25883 GTK_LIBS=""
25884 :
25885 fi
25886
25887
25888 rm -f conf.gtktest
25889
25890
f34ca037 25891 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25892
25893# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25894if test "${with_gtk_prefix+set}" = set; then
25895 withval="$with_gtk_prefix"
25896 gtk_config_prefix="$withval"
25897else
25898 gtk_config_prefix=""
25899fi;
25900
25901# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25902if test "${with_gtk_exec_prefix+set}" = set; then
25903 withval="$with_gtk_exec_prefix"
25904 gtk_config_exec_prefix="$withval"
25905else
25906 gtk_config_exec_prefix=""
25907fi;
25908# Check whether --enable-gtktest or --disable-gtktest was given.
25909if test "${enable_gtktest+set}" = set; then
25910 enableval="$enable_gtktest"
25911
25912else
25913 enable_gtktest=yes
25914fi;
25915
25916 for module in . $GTK_MODULES
25917 do
25918 case "$module" in
25919 gthread)
25920 gtk_config_args="$gtk_config_args gthread"
25921 ;;
25922 esac
25923 done
25924
25925 if test x$gtk_config_exec_prefix != x ; then
25926 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25927 if test x${GTK_CONFIG+set} != xset ; then
25928 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25929 fi
25930 fi
25931 if test x$gtk_config_prefix != x ; then
25932 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25933 if test x${GTK_CONFIG+set} != xset ; then
25934 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25935 fi
25936 fi
25937
25938 # Extract the first word of "gtk-config", so it can be a program name with args.
25939set dummy gtk-config; ac_word=$2
25940echo "$as_me:$LINENO: checking for $ac_word" >&5
25941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25942if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25943 echo $ECHO_N "(cached) $ECHO_C" >&6
25944else
25945 case $GTK_CONFIG in
25946 [\\/]* | ?:[\\/]*)
25947 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25948 ;;
25949 *)
25950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25951for as_dir in $PATH
25952do
25953 IFS=$as_save_IFS
25954 test -z "$as_dir" && as_dir=.
25955 for ac_exec_ext in '' $ac_executable_extensions; do
25956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25957 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25959 break 2
25960 fi
25961done
25962done
25963
25964 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25965 ;;
25966esac
25967fi
25968GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25969
25970if test -n "$GTK_CONFIG"; then
25971 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25972echo "${ECHO_T}$GTK_CONFIG" >&6
25973else
25974 echo "$as_me:$LINENO: result: no" >&5
25975echo "${ECHO_T}no" >&6
25976fi
25977
25978 min_gtk_version=1.2.3
25979 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25980echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25981 no_gtk=""
25982 if test "$GTK_CONFIG" = "no" ; then
25983 no_gtk=yes
25984 else
25985 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25986 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25987 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25988 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25989 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25990 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25991 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25992 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25993 if test "x$enable_gtktest" = "xyes" ; then
25994 ac_save_CFLAGS="$CFLAGS"
25995 ac_save_LIBS="$LIBS"
25996 CFLAGS="$CFLAGS $GTK_CFLAGS"
25997 LIBS="$GTK_LIBS $LIBS"
25998 rm -f conf.gtktest
25999 if test "$cross_compiling" = yes; then
26000 echo $ac_n "cross compiling; assumed OK... $ac_c"
26001else
26002 cat >conftest.$ac_ext <<_ACEOF
26003/* confdefs.h. */
26004_ACEOF
26005cat confdefs.h >>conftest.$ac_ext
26006cat >>conftest.$ac_ext <<_ACEOF
26007/* end confdefs.h. */
26008
26009#include <gtk/gtk.h>
26010#include <stdio.h>
26011#include <stdlib.h>
26012
26013int
26014main ()
26015{
26016 int major, minor, micro;
26017 char *tmp_version;
26018
26019 system ("touch conf.gtktest");
26020
26021 /* HP/UX 9 (%@#!) writes to sscanf strings */
26022 tmp_version = g_strdup("$min_gtk_version");
26023 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26024 printf("%s, bad version string\n", "$min_gtk_version");
26025 exit(1);
26026 }
26027
26028 if ((gtk_major_version != $gtk_config_major_version) ||
26029 (gtk_minor_version != $gtk_config_minor_version) ||
26030 (gtk_micro_version != $gtk_config_micro_version))
26031 {
26032 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26033 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26034 gtk_major_version, gtk_minor_version, gtk_micro_version);
26035 printf ("*** was found! If gtk-config was correct, then it is best\n");
26036 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26037 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26038 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26039 printf("*** required on your system.\n");
26040 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26041 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26042 printf("*** before re-running configure\n");
26043 }
26044#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26045 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26046 (gtk_minor_version != GTK_MINOR_VERSION) ||
26047 (gtk_micro_version != GTK_MICRO_VERSION))
26048 {
26049 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26050 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26051 printf("*** library (version %d.%d.%d)\n",
26052 gtk_major_version, gtk_minor_version, gtk_micro_version);
26053 }
26054#endif /* defined (GTK_MAJOR_VERSION) ... */
26055 else
26056 {
26057 if ((gtk_major_version > major) ||
26058 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26059 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26060 {
26061 return 0;
26062 }
26063 else
26064 {
26065 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26066 gtk_major_version, gtk_minor_version, gtk_micro_version);
26067 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26068 major, minor, micro);
26069 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26070 printf("***\n");
26071 printf("*** If you have already installed a sufficiently new version, this error\n");
26072 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26073 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26074 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26075 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26076 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26077 printf("*** so that the correct libraries are found at run-time))\n");
26078 }
26079 }
26080 return 1;
26081}
26082
26083_ACEOF
26084rm -f conftest$ac_exeext
26085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26086 (eval $ac_link) 2>&5
26087 ac_status=$?
26088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26091 (eval $ac_try) 2>&5
26092 ac_status=$?
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); }; }; then
26095 :
26096else
26097 echo "$as_me: program exited with status $ac_status" >&5
26098echo "$as_me: failed program was:" >&5
26099sed 's/^/| /' conftest.$ac_ext >&5
26100
26101( exit $ac_status )
26102no_gtk=yes
26103fi
ac1cb8d3 26104rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26105fi
26106 CFLAGS="$ac_save_CFLAGS"
26107 LIBS="$ac_save_LIBS"
26108 fi
26109 fi
26110 if test "x$no_gtk" = x ; then
26111 echo "$as_me:$LINENO: result: yes" >&5
26112echo "${ECHO_T}yes" >&6
26113 wx_cv_lib_gtk=1.2.3
26114 else
26115 echo "$as_me:$LINENO: result: no" >&5
26116echo "${ECHO_T}no" >&6
26117 if test "$GTK_CONFIG" = "no" ; then
26118 echo "*** The gtk-config script installed by GTK could not be found"
26119 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26120 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26121 echo "*** full path to gtk-config."
26122 else
26123 if test -f conf.gtktest ; then
26124 :
26125 else
26126 echo "*** Could not run GTK test program, checking why..."
26127 CFLAGS="$CFLAGS $GTK_CFLAGS"
26128 LIBS="$LIBS $GTK_LIBS"
26129 cat >conftest.$ac_ext <<_ACEOF
26130/* confdefs.h. */
26131_ACEOF
26132cat confdefs.h >>conftest.$ac_ext
26133cat >>conftest.$ac_ext <<_ACEOF
26134/* end confdefs.h. */
26135
26136#include <gtk/gtk.h>
26137#include <stdio.h>
26138
26139int
26140main ()
26141{
26142 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26143 ;
26144 return 0;
26145}
26146_ACEOF
26147rm -f conftest.$ac_objext conftest$ac_exeext
26148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26149 (eval $ac_link) 2>conftest.er1
a848cd7e 26150 ac_status=$?
ac1cb8d3
VS
26151 grep -v '^ *+' conftest.er1 >conftest.err
26152 rm -f conftest.er1
26153 cat conftest.err >&5
a848cd7e
SC
26154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155 (exit $ac_status); } &&
6ebeb4c7 26156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26158 (eval $ac_try) 2>&5
26159 ac_status=$?
26160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161 (exit $ac_status); }; } &&
26162 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26164 (eval $ac_try) 2>&5
26165 ac_status=$?
26166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167 (exit $ac_status); }; }; then
26168 echo "*** The test program compiled, but did not run. This usually means"
26169 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26170 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26171 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26172 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26173 echo "*** is required on your system"
26174 echo "***"
26175 echo "*** If you have an old version installed, it is best to remove it, although"
26176 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26177 echo "***"
26178 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26179 echo "*** came with the system with the command"
26180 echo "***"
26181 echo "*** rpm --erase --nodeps gtk gtk-devel"
26182else
26183 echo "$as_me: failed program was:" >&5
26184sed 's/^/| /' conftest.$ac_ext >&5
26185
26186 echo "*** The test program failed to compile or link. See the file config.log for the"
26187 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26188 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26189 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26190fi
ac1cb8d3
VS
26191rm -f conftest.err conftest.$ac_objext \
26192 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26193 CFLAGS="$ac_save_CFLAGS"
26194 LIBS="$ac_save_LIBS"
26195 fi
26196 fi
26197 GTK_CFLAGS=""
26198 GTK_LIBS=""
26199 :
26200 fi
26201
26202
26203 rm -f conf.gtktest
26204
f34ca037 26205 fi
a848cd7e
SC
26206 fi
26207 fi
26208
26209 if test -z "$wx_cv_lib_gtk"; then
26210 wx_cv_lib_gtk=none
26211 else
26212 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 26213 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
26214 fi
26215
26216
26217fi
26218
26219
26220 if test "$gtk_version_cached" = 1; then
26221 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
26222echo "${ECHO_T}$wx_cv_lib_gtk" >&6
26223 fi
26224
26225 case "$wx_cv_lib_gtk" in
26226 2.0) WXGTK20=1
26227 TOOLKIT_VERSION=2
26228 ;;
26229 1.2.7) WXGTK127=1
26230 WXGTK12=1
26231 ;;
26232 1.2.3) WXGTK12=1
26233 ;;
26234 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
26235The development files for GTK+ were not found. For GTK+ 2, please
26236ensure that pkg-config is in the path and that gtk+-2.0.pc is
26237installed. For GTK+ 1.2 please check that gtk-config is in the path,
26238and that the version is 1.2.3 or above. Also check that the
26239libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26240--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26241 " >&5
26242echo "$as_me: error:
f597b41c
MW
26243The development files for GTK+ were not found. For GTK+ 2, please
26244ensure that pkg-config is in the path and that gtk+-2.0.pc is
26245installed. For GTK+ 1.2 please check that gtk-config is in the path,
26246and that the version is 1.2.3 or above. Also check that the
26247libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26248--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26249 " >&2;}
26250 { (exit 1); exit 1; }; }
26251 ;;
26252 esac
26253
26254 if test "$WXGTK20" = 1; then
304205f1
VS
26255 save_CFLAGS="$CFLAGS"
26256 save_LIBS="$LIBS"
9d271838 26257 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 26258 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 26259
d12aef51
VZ
26260 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
26261echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
26262 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
26263/* confdefs.h. */
26264_ACEOF
26265cat confdefs.h >>conftest.$ac_ext
26266cat >>conftest.$ac_ext <<_ACEOF
26267/* end confdefs.h. */
304205f1 26268
d12aef51 26269 #include <gtk/gtk.h>
304205f1 26270
d12aef51
VZ
26271int
26272main ()
26273{
304205f1 26274
d12aef51 26275 void *f = gtk_icon_size_lookup;
abc736fd
MW
26276
26277 ;
26278 return 0;
26279}
26280_ACEOF
26281rm -f conftest.$ac_objext
26282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26283 (eval $ac_compile) 2>conftest.er1
26284 ac_status=$?
26285 grep -v '^ *+' conftest.er1 >conftest.err
26286 rm -f conftest.er1
26287 cat conftest.err >&5
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'
abc736fd
MW
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_objext'
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
26303 echo "$as_me:$LINENO: result: no" >&5
26304echo "${ECHO_T}no" >&6
26305
26306else
26307 echo "$as_me: failed program was:" >&5
26308sed 's/^/| /' conftest.$ac_ext >&5
26309
26310
26311 cat >>confdefs.h <<\_ACEOF
26312#define NEED_GTK_ICON_SIZE_LOOKUP 1
26313_ACEOF
26314
26315 echo "$as_me:$LINENO: result: yes" >&5
26316echo "${ECHO_T}yes" >&6
26317
26318fi
26319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26320
9755e73b
VS
26321 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
26322echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
26323 cat >conftest.$ac_ext <<_ACEOF
26324/* confdefs.h. */
26325_ACEOF
26326cat confdefs.h >>conftest.$ac_ext
26327cat >>conftest.$ac_ext <<_ACEOF
26328/* end confdefs.h. */
26329
26330 #include <gtk/gtk.h>
26331
26332int
26333main ()
26334{
26335
26336 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 26337 Not GTK+ 2.4
9755e73b
VS
26338 #endif
26339
26340 ;
26341 return 0;
26342}
26343_ACEOF
26344rm -f conftest.$ac_objext
26345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26346 (eval $ac_compile) 2>conftest.er1
26347 ac_status=$?
26348 grep -v '^ *+' conftest.er1 >conftest.err
26349 rm -f conftest.er1
26350 cat conftest.err >&5
26351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); } &&
6ebeb4c7 26353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
26354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26355 (eval $ac_try) 2>&5
26356 ac_status=$?
26357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); }; } &&
26359 { ac_try='test -s conftest.$ac_objext'
26360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26361 (eval $ac_try) 2>&5
26362 ac_status=$?
26363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364 (exit $ac_status); }; }; then
26365
26366 cat >>confdefs.h <<\_ACEOF
26367#define __WXGTK24__ 1
26368_ACEOF
26369
26370 echo "$as_me:$LINENO: result: yes" >&5
26371echo "${ECHO_T}yes" >&6
26372
26373else
26374 echo "$as_me: failed program was:" >&5
26375sed 's/^/| /' conftest.$ac_ext >&5
26376
26377
26378 echo "$as_me:$LINENO: result: no" >&5
26379echo "${ECHO_T}no" >&6
26380
26381fi
26382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26383
304205f1
VS
26384 CFLAGS="$save_CFLAGS"
26385 LIBS="$save_LIBS"
a848cd7e
SC
26386 else
26387 if test "$wxUSE_UNICODE" = "yes"; then
26388 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
26389echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
26390 wxUSE_UNICODE=no
26391 fi
26392 fi
26393
26394 if test "$USE_DARWIN" != 1; then
26395
26396for ac_func in poll
26397do
26398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26399echo "$as_me:$LINENO: checking for $ac_func" >&5
26400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26401if eval "test \"\${$as_ac_var+set}\" = set"; then
26402 echo $ECHO_N "(cached) $ECHO_C" >&6
26403else
26404 cat >conftest.$ac_ext <<_ACEOF
26405/* confdefs.h. */
26406_ACEOF
26407cat confdefs.h >>conftest.$ac_ext
26408cat >>conftest.$ac_ext <<_ACEOF
26409/* end confdefs.h. */
ac1cb8d3
VS
26410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26412#define $ac_func innocuous_$ac_func
26413
a848cd7e
SC
26414/* System header to define __stub macros and hopefully few prototypes,
26415 which can conflict with char $ac_func (); below.
26416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26417 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26418
a848cd7e
SC
26419#ifdef __STDC__
26420# include <limits.h>
26421#else
26422# include <assert.h>
26423#endif
ac1cb8d3
VS
26424
26425#undef $ac_func
26426
a848cd7e
SC
26427/* Override any gcc2 internal prototype to avoid an error. */
26428#ifdef __cplusplus
26429extern "C"
26430{
26431#endif
26432/* We use char because int might match the return type of a gcc2
26433 builtin and then its argument prototype would still apply. */
26434char $ac_func ();
26435/* The GNU C library defines this for functions which it implements
26436 to always fail with ENOSYS. Some functions are actually named
26437 something starting with __ and the normal name is an alias. */
26438#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26439choke me
26440#else
26441char (*f) () = $ac_func;
26442#endif
26443#ifdef __cplusplus
26444}
26445#endif
26446
26447int
26448main ()
26449{
26450return f != $ac_func;
26451 ;
26452 return 0;
26453}
26454_ACEOF
26455rm -f conftest.$ac_objext conftest$ac_exeext
26456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26457 (eval $ac_link) 2>conftest.er1
a848cd7e 26458 ac_status=$?
ac1cb8d3
VS
26459 grep -v '^ *+' conftest.er1 >conftest.err
26460 rm -f conftest.er1
26461 cat conftest.err >&5
a848cd7e
SC
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); } &&
6ebeb4c7 26464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466 (eval $ac_try) 2>&5
26467 ac_status=$?
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); }; } &&
26470 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26472 (eval $ac_try) 2>&5
26473 ac_status=$?
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); }; }; then
26476 eval "$as_ac_var=yes"
26477else
26478 echo "$as_me: failed program was:" >&5
26479sed 's/^/| /' conftest.$ac_ext >&5
26480
26481eval "$as_ac_var=no"
26482fi
ac1cb8d3
VS
26483rm -f conftest.err conftest.$ac_objext \
26484 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26485fi
26486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26487echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26488if test `eval echo '${'$as_ac_var'}'` = yes; then
26489 cat >>confdefs.h <<_ACEOF
26490#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26491_ACEOF
26492
26493fi
26494done
26495
26496 fi
26497
26498 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
26499 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
26500
26501 AFMINSTALL=afminstall
26502 TOOLKIT=GTK
26503 GUIDIST=GTK_DIST
26504
26505 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
26506echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
26507if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
26508 echo $ECHO_N "(cached) $ECHO_C" >&6
26509else
26510 ac_check_lib_save_LIBS=$LIBS
26511LIBS="-lgdk $LIBS"
26512cat >conftest.$ac_ext <<_ACEOF
26513/* confdefs.h. */
26514_ACEOF
26515cat confdefs.h >>conftest.$ac_ext
26516cat >>conftest.$ac_ext <<_ACEOF
26517/* end confdefs.h. */
26518
26519/* Override any gcc2 internal prototype to avoid an error. */
26520#ifdef __cplusplus
26521extern "C"
26522#endif
26523/* We use char because int might match the return type of a gcc2
26524 builtin and then its argument prototype would still apply. */
26525char gdk_im_open ();
26526int
26527main ()
26528{
26529gdk_im_open ();
26530 ;
26531 return 0;
26532}
26533_ACEOF
26534rm -f conftest.$ac_objext conftest$ac_exeext
26535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26536 (eval $ac_link) 2>conftest.er1
a848cd7e 26537 ac_status=$?
ac1cb8d3
VS
26538 grep -v '^ *+' conftest.er1 >conftest.err
26539 rm -f conftest.er1
26540 cat conftest.err >&5
a848cd7e
SC
26541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542 (exit $ac_status); } &&
6ebeb4c7 26543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26545 (eval $ac_try) 2>&5
26546 ac_status=$?
26547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548 (exit $ac_status); }; } &&
26549 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26551 (eval $ac_try) 2>&5
26552 ac_status=$?
26553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554 (exit $ac_status); }; }; then
26555 ac_cv_lib_gdk_gdk_im_open=yes
26556else
26557 echo "$as_me: failed program was:" >&5
26558sed 's/^/| /' conftest.$ac_ext >&5
26559
26560ac_cv_lib_gdk_gdk_im_open=no
26561fi
ac1cb8d3
VS
26562rm -f conftest.err conftest.$ac_objext \
26563 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26564LIBS=$ac_check_lib_save_LIBS
26565fi
26566echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
26567echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
26568if test $ac_cv_lib_gdk_gdk_im_open = yes; then
26569 cat >>confdefs.h <<\_ACEOF
26570#define HAVE_XIM 1
26571_ACEOF
26572
26573fi
26574
26575
26576
26577 if test "$wxUSE_GPE" = "yes"; then
26578 echo "$as_me:$LINENO: checking for gpewidget library" >&5
26579echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
26580
0ad5d837
VZ
26581 ac_find_libraries=
26582 for ac_dir in $SEARCH_LIB;
a848cd7e 26583 do
3eca31dc 26584 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
26585 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26586 ac_find_libraries=$ac_dir
26587 break 2
26588 fi
26589 done
26590 done
26591
26592 if test "$ac_find_libraries" != "" ; then
26593
0ad5d837 26594 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
26595 ac_path_to_link=""
26596 else
0ad5d837
VZ
26597 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26598 result=$?
26599 if test $result = 0; then
26600 ac_path_to_link=""
26601 else
26602 ac_path_to_link=" -L$ac_find_libraries"
26603 fi
a848cd7e
SC
26604 fi
26605
26606 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26607 WXGPE=1
0ad5d837
VZ
26608 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
26609echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
26610 else
26611 echo "$as_me:$LINENO: result: not found" >&5
26612echo "${ECHO_T}not found" >&6
26613 fi
26614
26615 fi
26616 fi
26617
26618 if test "$wxUSE_MGL" = 1; then
26619 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26620echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26621 if test "x$MGL_ROOT" = x ; then
26622 echo "$as_me:$LINENO: result: not found" >&5
26623echo "${ECHO_T}not found" >&6
26624 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26625echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26626 { (exit 1); exit 1; }; }
26627 else
26628 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26629echo "${ECHO_T}$MGL_ROOT" >&6
26630 fi
26631
26632 echo "$as_me:$LINENO: checking for libmgl location" >&5
26633echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26634 case "${host}" in
26635 *-*-linux* )
26636 if test "x$wxUSE_SHARED" = xyes ; then
26637 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26638 else
26639 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26640 fi
26641 ;;
26642 *-pc-msdosdjgpp )
26643 mgl_os_candidates="dos32/dj2"
26644 ;;
26645 *)
26646 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26647echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26648 { (exit 1); exit 1; }; }
26649 esac
26650
26651 mgl_lib_type=""
26652 mgl_os=""
26653
26654 for mgl_os_i in $mgl_os_candidates ; do
26655 if test "x$mgl_os" = x ; then
26656 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26657 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26658 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26659 mgl_lib_type=debug
26660 mgl_os=$mgl_os_i
26661 fi
26662 fi
26663 if test "x$mgl_lib_type" = x ; then
26664 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26665 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26666 mgl_lib_type=release
26667 mgl_os=$mgl_os_i
26668 fi
26669 fi
26670 fi
26671 done
26672
26673 if test "x$mgl_os" = x ; then
26674 echo "$as_me:$LINENO: result: not found" >&5
26675echo "${ECHO_T}not found" >&6
26676 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26677echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26678 { (exit 1); exit 1; }; }
26679 fi
26680 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26681echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26682
26683 wxUSE_UNIVERSAL="yes"
26684
26685 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26686 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26687
26688 AFMINSTALL=afminstall
26689 TOOLKIT=MGL
26690 GUIDIST=MGL_DIST
26691 fi
26692
26693 if test "$wxUSE_MICROWIN" = 1; then
26694 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26695echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26696 if test "x$MICROWINDOWS" = x ; then
26697 echo "$as_me:$LINENO: result: not found" >&5
26698echo "${ECHO_T}not found" >&6
26699 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26700echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26701 { (exit 1); exit 1; }; }
26702 else
26703 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26704echo "${ECHO_T}$MICROWINDOWS" >&6
26705 fi
26706
26707 if test -f $MICROWINDOWS/lib/libmwin.a; then
26708 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26709echo "${ECHO_T}MicroWindows' libraries found." >&6
26710 else
26711 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26712echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26713 { (exit 1); exit 1; }; }
26714 fi
26715
26716 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26717 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26718
26719 wxUSE_UNIVERSAL="yes"
26720
26721 AFMINSTALL=afminstall
26722 TOOLKIT=MICROWIN
26723 GUIDIST=MICROWIN_DIST
26724
26725 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26726 fi
26727
74b84332 26728 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6ebeb4c7
VZ
26729
26730if test "x$ac_path_x_has_been_run" != xyes; then
26731 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26732echo $ECHO_N "checking for X... $ECHO_C" >&6
26733
6ebeb4c7 26734ac_path_x_has_been_run=yes
a848cd7e
SC
26735
26736# Check whether --with-x or --without-x was given.
26737if test "${with_x+set}" = set; then
26738 withval="$with_x"
26739
26740fi;
26741# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26742if test "x$with_x" = xno; then
26743 # The user explicitly disabled X.
26744 have_x=disabled
26745else
26746 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26747 # Both variables are already set.
26748 have_x=yes
26749 else
26750 if test "${ac_cv_have_x+set}" = set; then
26751 echo $ECHO_N "(cached) $ECHO_C" >&6
26752else
26753 # One or both of the vars are not set, and there is no cached value.
26754ac_x_includes=no ac_x_libraries=no
26755rm -fr conftest.dir
26756if mkdir conftest.dir; then
26757 cd conftest.dir
26758 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26759 cat >Imakefile <<'_ACEOF'
26760acfindx:
26761 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26762_ACEOF
26763 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26764 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26765 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26766 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26767 for ac_extension in a so sl; do
26768 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26769 test -f $ac_im_libdir/libX11.$ac_extension; then
26770 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26771 fi
26772 done
26773 # Screen out bogus values from the imake configuration. They are
26774 # bogus both because they are the default anyway, and because
26775 # using them would break gcc on systems where it needs fixed includes.
26776 case $ac_im_incroot in
26777 /usr/include) ;;
26778 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26779 esac
26780 case $ac_im_usrlibdir in
26781 /usr/lib | /lib) ;;
26782 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26783 esac
26784 fi
26785 cd ..
26786 rm -fr conftest.dir
26787fi
26788
26789# Standard set of common directories for X headers.
26790# Check X11 before X11Rn because it is often a symlink to the current release.
26791ac_x_header_dirs='
26792/usr/X11/include
26793/usr/X11R6/include
26794/usr/X11R5/include
26795/usr/X11R4/include
26796
26797/usr/include/X11
26798/usr/include/X11R6
26799/usr/include/X11R5
26800/usr/include/X11R4
26801
26802/usr/local/X11/include
26803/usr/local/X11R6/include
26804/usr/local/X11R5/include
26805/usr/local/X11R4/include
26806
26807/usr/local/include/X11
26808/usr/local/include/X11R6
26809/usr/local/include/X11R5
26810/usr/local/include/X11R4
26811
26812/usr/X386/include
26813/usr/x386/include
26814/usr/XFree86/include/X11
26815
26816/usr/include
26817/usr/local/include
26818/usr/unsupported/include
26819/usr/athena/include
26820/usr/local/x11r5/include
26821/usr/lpp/Xamples/include
26822
26823/usr/openwin/include
26824/usr/openwin/share/include'
26825
26826if test "$ac_x_includes" = no; then
6ebeb4c7 26827 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
26828 # First, try using that file with no special directory specified.
26829 cat >conftest.$ac_ext <<_ACEOF
26830/* confdefs.h. */
26831_ACEOF
26832cat confdefs.h >>conftest.$ac_ext
26833cat >>conftest.$ac_ext <<_ACEOF
26834/* end confdefs.h. */
26835#include <X11/Intrinsic.h>
26836_ACEOF
26837if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26839 ac_status=$?
26840 grep -v '^ *+' conftest.er1 >conftest.err
26841 rm -f conftest.er1
26842 cat conftest.err >&5
26843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844 (exit $ac_status); } >/dev/null; then
26845 if test -s conftest.err; then
26846 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26847 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26848 else
26849 ac_cpp_err=
26850 fi
26851else
26852 ac_cpp_err=yes
26853fi
26854if test -z "$ac_cpp_err"; then
26855 # We can compile using X headers with no special include directory.
26856ac_x_includes=
26857else
26858 echo "$as_me: failed program was:" >&5
26859sed 's/^/| /' conftest.$ac_ext >&5
26860
26861 for ac_dir in $ac_x_header_dirs; do
26862 if test -r "$ac_dir/X11/Intrinsic.h"; then
26863 ac_x_includes=$ac_dir
26864 break
26865 fi
26866done
26867fi
26868rm -f conftest.err conftest.$ac_ext
26869fi # $ac_x_includes = no
26870
26871if test "$ac_x_libraries" = no; then
26872 # Check for the libraries.
26873 # See if we find them without any special options.
26874 # Don't add to $LIBS permanently.
26875 ac_save_LIBS=$LIBS
26876 LIBS="-lXt $LIBS"
26877 cat >conftest.$ac_ext <<_ACEOF
26878/* confdefs.h. */
26879_ACEOF
26880cat confdefs.h >>conftest.$ac_ext
26881cat >>conftest.$ac_ext <<_ACEOF
26882/* end confdefs.h. */
26883#include <X11/Intrinsic.h>
26884int
26885main ()
26886{
26887XtMalloc (0)
26888 ;
26889 return 0;
26890}
26891_ACEOF
26892rm -f conftest.$ac_objext conftest$ac_exeext
26893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26894 (eval $ac_link) 2>conftest.er1
a848cd7e 26895 ac_status=$?
ac1cb8d3
VS
26896 grep -v '^ *+' conftest.er1 >conftest.err
26897 rm -f conftest.er1
26898 cat conftest.err >&5
a848cd7e
SC
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); } &&
6ebeb4c7 26901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26903 (eval $ac_try) 2>&5
26904 ac_status=$?
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); }; } &&
26907 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26909 (eval $ac_try) 2>&5
26910 ac_status=$?
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); }; }; then
26913 LIBS=$ac_save_LIBS
26914# We can link X programs with no special library path.
26915ac_x_libraries=
26916else
26917 echo "$as_me: failed program was:" >&5
26918sed 's/^/| /' conftest.$ac_ext >&5
26919
26920LIBS=$ac_save_LIBS
26921for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26922do
26923 # Don't even attempt the hair of trying to link an X program!
26924 for ac_extension in a so sl; do
26925 if test -r $ac_dir/libXt.$ac_extension; then
26926 ac_x_libraries=$ac_dir
26927 break 2
26928 fi
26929 done
26930done
26931fi
ac1cb8d3
VS
26932rm -f conftest.err conftest.$ac_objext \
26933 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26934fi # $ac_x_libraries = no
26935
26936if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26937 # Didn't find X anywhere. Cache the known absence of X.
26938 ac_cv_have_x="have_x=no"
26939else
26940 # Record where we found X for the cache.
26941 ac_cv_have_x="have_x=yes \
ac1cb8d3 26942 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26943fi
26944fi
26945
26946 fi
26947 eval "$ac_cv_have_x"
26948fi # $with_x != no
26949
26950if test "$have_x" != yes; then
26951 echo "$as_me:$LINENO: result: $have_x" >&5
26952echo "${ECHO_T}$have_x" >&6
26953 no_x=yes
26954else
26955 # If each of the values was on the command line, it overrides each guess.
26956 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26957 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26958 # Update the cache value to reflect the command line values.
26959 ac_cv_have_x="have_x=yes \
26960 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6ebeb4c7
VZ
26961 # It might be that x_includes is empty (headers are found in the
26962 # standard search path. Then output the corresponding message
26963 ac_out_x_includes=$x_includes
26964 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26965 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26966echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26967fi
26968
6ebeb4c7 26969fi
a848cd7e
SC
26970if test "$no_x" = yes; then
26971 # Not all programs may use this symbol, but it does not hurt to define it.
26972
26973cat >>confdefs.h <<\_ACEOF
26974#define X_DISPLAY_MISSING 1
26975_ACEOF
26976
26977 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26978else
26979 if test -n "$x_includes"; then
26980 X_CFLAGS="$X_CFLAGS -I$x_includes"
26981 fi
26982
26983 # It would also be nice to do this for all -L options, not just this one.
26984 if test -n "$x_libraries"; then
26985 X_LIBS="$X_LIBS -L$x_libraries"
26986 # For Solaris; some versions of Sun CC require a space after -R and
26987 # others require no space. Words are not sufficient . . . .
26988 case `(uname -sr) 2>/dev/null` in
26989 "SunOS 5"*)
26990 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26991echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26992 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26993 cat >conftest.$ac_ext <<_ACEOF
26994/* confdefs.h. */
26995_ACEOF
26996cat confdefs.h >>conftest.$ac_ext
26997cat >>conftest.$ac_ext <<_ACEOF
26998/* end confdefs.h. */
26999
27000int
27001main ()
27002{
27003
27004 ;
27005 return 0;
27006}
27007_ACEOF
27008rm -f conftest.$ac_objext conftest$ac_exeext
27009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27010 (eval $ac_link) 2>conftest.er1
a848cd7e 27011 ac_status=$?
ac1cb8d3
VS
27012 grep -v '^ *+' conftest.er1 >conftest.err
27013 rm -f conftest.er1
27014 cat conftest.err >&5
a848cd7e
SC
27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); } &&
6ebeb4c7 27017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27019 (eval $ac_try) 2>&5
27020 ac_status=$?
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); }; } &&
27023 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27025 (eval $ac_try) 2>&5
27026 ac_status=$?
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); }; }; then
27029 ac_R_nospace=yes
27030else
27031 echo "$as_me: failed program was:" >&5
27032sed 's/^/| /' conftest.$ac_ext >&5
27033
27034ac_R_nospace=no
27035fi
ac1cb8d3
VS
27036rm -f conftest.err conftest.$ac_objext \
27037 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27038 if test $ac_R_nospace = yes; then
27039 echo "$as_me:$LINENO: result: no" >&5
27040echo "${ECHO_T}no" >&6
27041 X_LIBS="$X_LIBS -R$x_libraries"
27042 else
27043 LIBS="$ac_xsave_LIBS -R $x_libraries"
27044 cat >conftest.$ac_ext <<_ACEOF
27045/* confdefs.h. */
27046_ACEOF
27047cat confdefs.h >>conftest.$ac_ext
27048cat >>conftest.$ac_ext <<_ACEOF
27049/* end confdefs.h. */
27050
27051int
27052main ()
27053{
27054
27055 ;
27056 return 0;
27057}
27058_ACEOF
27059rm -f conftest.$ac_objext conftest$ac_exeext
27060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27061 (eval $ac_link) 2>conftest.er1
a848cd7e 27062 ac_status=$?
ac1cb8d3
VS
27063 grep -v '^ *+' conftest.er1 >conftest.err
27064 rm -f conftest.er1
27065 cat conftest.err >&5
a848cd7e
SC
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); } &&
6ebeb4c7 27068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27070 (eval $ac_try) 2>&5
27071 ac_status=$?
27072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073 (exit $ac_status); }; } &&
27074 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27076 (eval $ac_try) 2>&5
27077 ac_status=$?
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); }; }; then
27080 ac_R_space=yes
27081else
27082 echo "$as_me: failed program was:" >&5
27083sed 's/^/| /' conftest.$ac_ext >&5
27084
27085ac_R_space=no
27086fi
ac1cb8d3
VS
27087rm -f conftest.err conftest.$ac_objext \
27088 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27089 if test $ac_R_space = yes; then
27090 echo "$as_me:$LINENO: result: yes" >&5
27091echo "${ECHO_T}yes" >&6
27092 X_LIBS="$X_LIBS -R $x_libraries"
27093 else
27094 echo "$as_me:$LINENO: result: neither works" >&5
27095echo "${ECHO_T}neither works" >&6
27096 fi
27097 fi
27098 LIBS=$ac_xsave_LIBS
27099 esac
27100 fi
27101
27102 # Check for system-dependent libraries X programs must link with.
27103 # Do this before checking for the system-independent R6 libraries
27104 # (-lICE), since we may need -lsocket or whatever for X linking.
27105
27106 if test "$ISC" = yes; then
27107 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27108 else
27109 # Martyn Johnson says this is needed for Ultrix, if the X
27110 # libraries were built with DECnet support. And Karl Berry says
27111 # the Alpha needs dnet_stub (dnet does not exist).
27112 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27113 cat >conftest.$ac_ext <<_ACEOF
27114/* confdefs.h. */
27115_ACEOF
27116cat confdefs.h >>conftest.$ac_ext
27117cat >>conftest.$ac_ext <<_ACEOF
27118/* end confdefs.h. */
27119
27120/* Override any gcc2 internal prototype to avoid an error. */
27121#ifdef __cplusplus
27122extern "C"
27123#endif
27124/* We use char because int might match the return type of a gcc2
27125 builtin and then its argument prototype would still apply. */
27126char XOpenDisplay ();
27127int
27128main ()
27129{
27130XOpenDisplay ();
27131 ;
27132 return 0;
27133}
27134_ACEOF
27135rm -f conftest.$ac_objext conftest$ac_exeext
27136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27137 (eval $ac_link) 2>conftest.er1
a848cd7e 27138 ac_status=$?
ac1cb8d3
VS
27139 grep -v '^ *+' conftest.er1 >conftest.err
27140 rm -f conftest.er1
27141 cat conftest.err >&5
a848cd7e
SC
27142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); } &&
6ebeb4c7 27144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27146 (eval $ac_try) 2>&5
27147 ac_status=$?
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); }; } &&
27150 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27152 (eval $ac_try) 2>&5
27153 ac_status=$?
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); }; }; then
27156 :
27157else
27158 echo "$as_me: failed program was:" >&5
27159sed 's/^/| /' conftest.$ac_ext >&5
27160
27161echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27162echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
27163if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27164 echo $ECHO_N "(cached) $ECHO_C" >&6
27165else
27166 ac_check_lib_save_LIBS=$LIBS
27167LIBS="-ldnet $LIBS"
27168cat >conftest.$ac_ext <<_ACEOF
27169/* confdefs.h. */
27170_ACEOF
27171cat confdefs.h >>conftest.$ac_ext
27172cat >>conftest.$ac_ext <<_ACEOF
27173/* end confdefs.h. */
27174
27175/* Override any gcc2 internal prototype to avoid an error. */
27176#ifdef __cplusplus
27177extern "C"
27178#endif
27179/* We use char because int might match the return type of a gcc2
27180 builtin and then its argument prototype would still apply. */
27181char dnet_ntoa ();
27182int
27183main ()
27184{
27185dnet_ntoa ();
27186 ;
27187 return 0;
27188}
27189_ACEOF
27190rm -f conftest.$ac_objext conftest$ac_exeext
27191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27192 (eval $ac_link) 2>conftest.er1
a848cd7e 27193 ac_status=$?
ac1cb8d3
VS
27194 grep -v '^ *+' conftest.er1 >conftest.err
27195 rm -f conftest.er1
27196 cat conftest.err >&5
a848cd7e
SC
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); } &&
6ebeb4c7 27199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27201 (eval $ac_try) 2>&5
27202 ac_status=$?
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); }; } &&
27205 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27207 (eval $ac_try) 2>&5
27208 ac_status=$?
27209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210 (exit $ac_status); }; }; then
27211 ac_cv_lib_dnet_dnet_ntoa=yes
27212else
27213 echo "$as_me: failed program was:" >&5
27214sed 's/^/| /' conftest.$ac_ext >&5
27215
27216ac_cv_lib_dnet_dnet_ntoa=no
27217fi
ac1cb8d3
VS
27218rm -f conftest.err conftest.$ac_objext \
27219 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27220LIBS=$ac_check_lib_save_LIBS
27221fi
27222echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27223echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
27224if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27225 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27226fi
27227
27228 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27229 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27230echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
27231if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27232 echo $ECHO_N "(cached) $ECHO_C" >&6
27233else
27234 ac_check_lib_save_LIBS=$LIBS
27235LIBS="-ldnet_stub $LIBS"
27236cat >conftest.$ac_ext <<_ACEOF
27237/* confdefs.h. */
27238_ACEOF
27239cat confdefs.h >>conftest.$ac_ext
27240cat >>conftest.$ac_ext <<_ACEOF
27241/* end confdefs.h. */
27242
27243/* Override any gcc2 internal prototype to avoid an error. */
27244#ifdef __cplusplus
27245extern "C"
27246#endif
27247/* We use char because int might match the return type of a gcc2
27248 builtin and then its argument prototype would still apply. */
27249char dnet_ntoa ();
27250int
27251main ()
27252{
27253dnet_ntoa ();
27254 ;
27255 return 0;
27256}
27257_ACEOF
27258rm -f conftest.$ac_objext conftest$ac_exeext
27259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27260 (eval $ac_link) 2>conftest.er1
a848cd7e 27261 ac_status=$?
ac1cb8d3
VS
27262 grep -v '^ *+' conftest.er1 >conftest.err
27263 rm -f conftest.er1
27264 cat conftest.err >&5
a848cd7e
SC
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); } &&
6ebeb4c7 27267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27269 (eval $ac_try) 2>&5
27270 ac_status=$?
27271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272 (exit $ac_status); }; } &&
27273 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27275 (eval $ac_try) 2>&5
27276 ac_status=$?
27277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278 (exit $ac_status); }; }; then
27279 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27280else
27281 echo "$as_me: failed program was:" >&5
27282sed 's/^/| /' conftest.$ac_ext >&5
27283
27284ac_cv_lib_dnet_stub_dnet_ntoa=no
27285fi
ac1cb8d3
VS
27286rm -f conftest.err conftest.$ac_objext \
27287 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27288LIBS=$ac_check_lib_save_LIBS
27289fi
27290echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27291echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
27292if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27293 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27294fi
27295
27296 fi
27297fi
ac1cb8d3
VS
27298rm -f conftest.err conftest.$ac_objext \
27299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27300 LIBS="$ac_xsave_LIBS"
27301
27302 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27303 # to get the SysV transport functions.
27304 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27305 # needs -lnsl.
27306 # The nsl library prevents programs from opening the X display
27307 # on Irix 5.2, according to T.E. Dickey.
27308 # The functions gethostbyname, getservbyname, and inet_addr are
27309 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27310 echo "$as_me:$LINENO: checking for gethostbyname" >&5
27311echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
27312if test "${ac_cv_func_gethostbyname+set}" = set; then
27313 echo $ECHO_N "(cached) $ECHO_C" >&6
27314else
27315 cat >conftest.$ac_ext <<_ACEOF
27316/* confdefs.h. */
27317_ACEOF
27318cat confdefs.h >>conftest.$ac_ext
27319cat >>conftest.$ac_ext <<_ACEOF
27320/* end confdefs.h. */
ac1cb8d3
VS
27321/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27323#define gethostbyname innocuous_gethostbyname
27324
a848cd7e
SC
27325/* System header to define __stub macros and hopefully few prototypes,
27326 which can conflict with char gethostbyname (); below.
27327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27328 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27329
a848cd7e
SC
27330#ifdef __STDC__
27331# include <limits.h>
27332#else
27333# include <assert.h>
27334#endif
ac1cb8d3
VS
27335
27336#undef gethostbyname
27337
a848cd7e
SC
27338/* Override any gcc2 internal prototype to avoid an error. */
27339#ifdef __cplusplus
27340extern "C"
27341{
27342#endif
27343/* We use char because int might match the return type of a gcc2
27344 builtin and then its argument prototype would still apply. */
27345char gethostbyname ();
27346/* The GNU C library defines this for functions which it implements
27347 to always fail with ENOSYS. Some functions are actually named
27348 something starting with __ and the normal name is an alias. */
27349#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
27350choke me
27351#else
27352char (*f) () = gethostbyname;
27353#endif
27354#ifdef __cplusplus
27355}
27356#endif
27357
27358int
27359main ()
27360{
27361return f != gethostbyname;
27362 ;
27363 return 0;
27364}
27365_ACEOF
27366rm -f conftest.$ac_objext conftest$ac_exeext
27367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27368 (eval $ac_link) 2>conftest.er1
a848cd7e 27369 ac_status=$?
ac1cb8d3
VS
27370 grep -v '^ *+' conftest.er1 >conftest.err
27371 rm -f conftest.er1
27372 cat conftest.err >&5
a848cd7e
SC
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); } &&
6ebeb4c7 27375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27377 (eval $ac_try) 2>&5
27378 ac_status=$?
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); }; } &&
27381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27383 (eval $ac_try) 2>&5
27384 ac_status=$?
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); }; }; then
27387 ac_cv_func_gethostbyname=yes
27388else
27389 echo "$as_me: failed program was:" >&5
27390sed 's/^/| /' conftest.$ac_ext >&5
27391
27392ac_cv_func_gethostbyname=no
27393fi
ac1cb8d3
VS
27394rm -f conftest.err conftest.$ac_objext \
27395 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27396fi
27397echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
27398echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
27399
27400 if test $ac_cv_func_gethostbyname = no; then
27401 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
27402echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
27403if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
27404 echo $ECHO_N "(cached) $ECHO_C" >&6
27405else
27406 ac_check_lib_save_LIBS=$LIBS
27407LIBS="-lnsl $LIBS"
27408cat >conftest.$ac_ext <<_ACEOF
27409/* confdefs.h. */
27410_ACEOF
27411cat confdefs.h >>conftest.$ac_ext
27412cat >>conftest.$ac_ext <<_ACEOF
27413/* end confdefs.h. */
27414
27415/* Override any gcc2 internal prototype to avoid an error. */
27416#ifdef __cplusplus
27417extern "C"
27418#endif
27419/* We use char because int might match the return type of a gcc2
27420 builtin and then its argument prototype would still apply. */
27421char gethostbyname ();
27422int
27423main ()
27424{
27425gethostbyname ();
27426 ;
27427 return 0;
27428}
27429_ACEOF
27430rm -f conftest.$ac_objext conftest$ac_exeext
27431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
27432 (eval $ac_link) 2>conftest.er1
27433 ac_status=$?
27434 grep -v '^ *+' conftest.er1 >conftest.err
27435 rm -f conftest.er1
27436 cat conftest.err >&5
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); } &&
6ebeb4c7 27439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27441 (eval $ac_try) 2>&5
27442 ac_status=$?
27443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444 (exit $ac_status); }; } &&
27445 { ac_try='test -s conftest$ac_exeext'
27446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27447 (eval $ac_try) 2>&5
27448 ac_status=$?
27449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450 (exit $ac_status); }; }; then
27451 ac_cv_lib_nsl_gethostbyname=yes
27452else
27453 echo "$as_me: failed program was:" >&5
27454sed 's/^/| /' conftest.$ac_ext >&5
27455
27456ac_cv_lib_nsl_gethostbyname=no
27457fi
27458rm -f conftest.err conftest.$ac_objext \
27459 conftest$ac_exeext conftest.$ac_ext
27460LIBS=$ac_check_lib_save_LIBS
27461fi
27462echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
27463echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
27464if test $ac_cv_lib_nsl_gethostbyname = yes; then
27465 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27466fi
27467
27468 if test $ac_cv_lib_nsl_gethostbyname = no; then
27469 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
27470echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
27471if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
27472 echo $ECHO_N "(cached) $ECHO_C" >&6
27473else
27474 ac_check_lib_save_LIBS=$LIBS
27475LIBS="-lbsd $LIBS"
27476cat >conftest.$ac_ext <<_ACEOF
27477/* confdefs.h. */
27478_ACEOF
27479cat confdefs.h >>conftest.$ac_ext
27480cat >>conftest.$ac_ext <<_ACEOF
27481/* end confdefs.h. */
27482
27483/* Override any gcc2 internal prototype to avoid an error. */
27484#ifdef __cplusplus
27485extern "C"
27486#endif
27487/* We use char because int might match the return type of a gcc2
27488 builtin and then its argument prototype would still apply. */
27489char gethostbyname ();
27490int
27491main ()
27492{
27493gethostbyname ();
27494 ;
27495 return 0;
27496}
27497_ACEOF
27498rm -f conftest.$ac_objext conftest$ac_exeext
27499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27500 (eval $ac_link) 2>conftest.er1
a848cd7e 27501 ac_status=$?
ac1cb8d3
VS
27502 grep -v '^ *+' conftest.er1 >conftest.err
27503 rm -f conftest.er1
27504 cat conftest.err >&5
a848cd7e
SC
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); } &&
6ebeb4c7 27507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
27508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27509 (eval $ac_try) 2>&5
27510 ac_status=$?
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
27512 (exit $ac_status); }; } &&
27513 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515 (eval $ac_try) 2>&5
27516 ac_status=$?
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); }; }; then
27519 ac_cv_lib_bsd_gethostbyname=yes
27520else
27521 echo "$as_me: failed program was:" >&5
27522sed 's/^/| /' conftest.$ac_ext >&5
27523
27524ac_cv_lib_bsd_gethostbyname=no
27525fi
ac1cb8d3
VS
27526rm -f conftest.err conftest.$ac_objext \
27527 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27528LIBS=$ac_check_lib_save_LIBS
27529fi
27530echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
27531echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
27532if test $ac_cv_lib_bsd_gethostbyname = yes; then
27533 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27534fi
27535
27536 fi
27537 fi
27538
27539 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27540 # socket/setsockopt and other routines are undefined under SCO ODT
27541 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27542 # on later versions), says Simon Leinen: it contains gethostby*
27543 # variants that don't use the name server (or something). -lsocket
27544 # must be given before -lnsl if both are needed. We assume that
27545 # if connect needs -lnsl, so does gethostbyname.
27546 echo "$as_me:$LINENO: checking for connect" >&5
27547echo $ECHO_N "checking for connect... $ECHO_C" >&6
27548if test "${ac_cv_func_connect+set}" = set; then
27549 echo $ECHO_N "(cached) $ECHO_C" >&6
27550else
27551 cat >conftest.$ac_ext <<_ACEOF
27552/* confdefs.h. */
27553_ACEOF
27554cat confdefs.h >>conftest.$ac_ext
27555cat >>conftest.$ac_ext <<_ACEOF
27556/* end confdefs.h. */
ac1cb8d3
VS
27557/* Define connect to an innocuous variant, in case <limits.h> declares connect.
27558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27559#define connect innocuous_connect
27560
a848cd7e
SC
27561/* System header to define __stub macros and hopefully few prototypes,
27562 which can conflict with char connect (); below.
27563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27564 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27565
a848cd7e
SC
27566#ifdef __STDC__
27567# include <limits.h>
27568#else
27569# include <assert.h>
27570#endif
ac1cb8d3
VS
27571
27572#undef connect
27573
a848cd7e
SC
27574/* Override any gcc2 internal prototype to avoid an error. */
27575#ifdef __cplusplus
27576extern "C"
27577{
27578#endif
27579/* We use char because int might match the return type of a gcc2
27580 builtin and then its argument prototype would still apply. */
27581char connect ();
27582/* The GNU C library defines this for functions which it implements
27583 to always fail with ENOSYS. Some functions are actually named
27584 something starting with __ and the normal name is an alias. */
27585#if defined (__stub_connect) || defined (__stub___connect)
27586choke me
27587#else
27588char (*f) () = connect;
27589#endif
27590#ifdef __cplusplus
27591}
27592#endif
27593
27594int
27595main ()
27596{
27597return f != connect;
27598 ;
27599 return 0;
27600}
27601_ACEOF
27602rm -f conftest.$ac_objext conftest$ac_exeext
27603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27604 (eval $ac_link) 2>conftest.er1
a848cd7e 27605 ac_status=$?
ac1cb8d3
VS
27606 grep -v '^ *+' conftest.er1 >conftest.err
27607 rm -f conftest.er1
27608 cat conftest.err >&5
a848cd7e
SC
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); } &&
6ebeb4c7 27611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27613 (eval $ac_try) 2>&5
27614 ac_status=$?
27615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); }; } &&
27617 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27619 (eval $ac_try) 2>&5
27620 ac_status=$?
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); }; }; then
27623 ac_cv_func_connect=yes
27624else
27625 echo "$as_me: failed program was:" >&5
27626sed 's/^/| /' conftest.$ac_ext >&5
27627
27628ac_cv_func_connect=no
27629fi
ac1cb8d3
VS
27630rm -f conftest.err conftest.$ac_objext \
27631 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27632fi
27633echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27634echo "${ECHO_T}$ac_cv_func_connect" >&6
27635
27636 if test $ac_cv_func_connect = no; then
27637 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27638echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27639if test "${ac_cv_lib_socket_connect+set}" = set; then
27640 echo $ECHO_N "(cached) $ECHO_C" >&6
27641else
27642 ac_check_lib_save_LIBS=$LIBS
27643LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27644cat >conftest.$ac_ext <<_ACEOF
27645/* confdefs.h. */
27646_ACEOF
27647cat confdefs.h >>conftest.$ac_ext
27648cat >>conftest.$ac_ext <<_ACEOF
27649/* end confdefs.h. */
27650
27651/* Override any gcc2 internal prototype to avoid an error. */
27652#ifdef __cplusplus
27653extern "C"
27654#endif
27655/* We use char because int might match the return type of a gcc2
27656 builtin and then its argument prototype would still apply. */
27657char connect ();
27658int
27659main ()
27660{
27661connect ();
27662 ;
27663 return 0;
27664}
27665_ACEOF
27666rm -f conftest.$ac_objext conftest$ac_exeext
27667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27668 (eval $ac_link) 2>conftest.er1
a848cd7e 27669 ac_status=$?
ac1cb8d3
VS
27670 grep -v '^ *+' conftest.er1 >conftest.err
27671 rm -f conftest.er1
27672 cat conftest.err >&5
a848cd7e
SC
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); } &&
6ebeb4c7 27675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27677 (eval $ac_try) 2>&5
27678 ac_status=$?
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; } &&
27681 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27683 (eval $ac_try) 2>&5
27684 ac_status=$?
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); }; }; then
27687 ac_cv_lib_socket_connect=yes
27688else
27689 echo "$as_me: failed program was:" >&5
27690sed 's/^/| /' conftest.$ac_ext >&5
27691
27692ac_cv_lib_socket_connect=no
27693fi
ac1cb8d3
VS
27694rm -f conftest.err conftest.$ac_objext \
27695 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27696LIBS=$ac_check_lib_save_LIBS
27697fi
27698echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27699echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27700if test $ac_cv_lib_socket_connect = yes; then
27701 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27702fi
27703
27704 fi
27705
27706 # Guillermo Gomez says -lposix is necessary on A/UX.
27707 echo "$as_me:$LINENO: checking for remove" >&5
27708echo $ECHO_N "checking for remove... $ECHO_C" >&6
27709if test "${ac_cv_func_remove+set}" = set; then
27710 echo $ECHO_N "(cached) $ECHO_C" >&6
27711else
27712 cat >conftest.$ac_ext <<_ACEOF
27713/* confdefs.h. */
27714_ACEOF
27715cat confdefs.h >>conftest.$ac_ext
27716cat >>conftest.$ac_ext <<_ACEOF
27717/* end confdefs.h. */
ac1cb8d3
VS
27718/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27720#define remove innocuous_remove
27721
a848cd7e
SC
27722/* System header to define __stub macros and hopefully few prototypes,
27723 which can conflict with char remove (); below.
27724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27725 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27726
a848cd7e
SC
27727#ifdef __STDC__
27728# include <limits.h>
27729#else
27730# include <assert.h>
27731#endif
ac1cb8d3
VS
27732
27733#undef remove
27734
a848cd7e
SC
27735/* Override any gcc2 internal prototype to avoid an error. */
27736#ifdef __cplusplus
27737extern "C"
27738{
27739#endif
27740/* We use char because int might match the return type of a gcc2
27741 builtin and then its argument prototype would still apply. */
27742char remove ();
27743/* The GNU C library defines this for functions which it implements
27744 to always fail with ENOSYS. Some functions are actually named
27745 something starting with __ and the normal name is an alias. */
27746#if defined (__stub_remove) || defined (__stub___remove)
27747choke me
27748#else
27749char (*f) () = remove;
27750#endif
27751#ifdef __cplusplus
27752}
27753#endif
27754
27755int
27756main ()
27757{
27758return f != remove;
27759 ;
27760 return 0;
27761}
27762_ACEOF
27763rm -f conftest.$ac_objext conftest$ac_exeext
27764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27765 (eval $ac_link) 2>conftest.er1
a848cd7e 27766 ac_status=$?
ac1cb8d3
VS
27767 grep -v '^ *+' conftest.er1 >conftest.err
27768 rm -f conftest.er1
27769 cat conftest.err >&5
a848cd7e
SC
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); } &&
6ebeb4c7 27772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27774 (eval $ac_try) 2>&5
27775 ac_status=$?
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); }; } &&
27778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27780 (eval $ac_try) 2>&5
27781 ac_status=$?
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); }; }; then
27784 ac_cv_func_remove=yes
27785else
27786 echo "$as_me: failed program was:" >&5
27787sed 's/^/| /' conftest.$ac_ext >&5
27788
27789ac_cv_func_remove=no
27790fi
ac1cb8d3
VS
27791rm -f conftest.err conftest.$ac_objext \
27792 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27793fi
27794echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27795echo "${ECHO_T}$ac_cv_func_remove" >&6
27796
27797 if test $ac_cv_func_remove = no; then
27798 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27799echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27800if test "${ac_cv_lib_posix_remove+set}" = set; then
27801 echo $ECHO_N "(cached) $ECHO_C" >&6
27802else
27803 ac_check_lib_save_LIBS=$LIBS
27804LIBS="-lposix $LIBS"
27805cat >conftest.$ac_ext <<_ACEOF
27806/* confdefs.h. */
27807_ACEOF
27808cat confdefs.h >>conftest.$ac_ext
27809cat >>conftest.$ac_ext <<_ACEOF
27810/* end confdefs.h. */
27811
27812/* Override any gcc2 internal prototype to avoid an error. */
27813#ifdef __cplusplus
27814extern "C"
27815#endif
27816/* We use char because int might match the return type of a gcc2
27817 builtin and then its argument prototype would still apply. */
27818char remove ();
27819int
27820main ()
27821{
27822remove ();
27823 ;
27824 return 0;
27825}
27826_ACEOF
27827rm -f conftest.$ac_objext conftest$ac_exeext
27828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27829 (eval $ac_link) 2>conftest.er1
a848cd7e 27830 ac_status=$?
ac1cb8d3
VS
27831 grep -v '^ *+' conftest.er1 >conftest.err
27832 rm -f conftest.er1
27833 cat conftest.err >&5
a848cd7e
SC
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835 (exit $ac_status); } &&
6ebeb4c7 27836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27838 (eval $ac_try) 2>&5
27839 ac_status=$?
27840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841 (exit $ac_status); }; } &&
27842 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27844 (eval $ac_try) 2>&5
27845 ac_status=$?
27846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); }; }; then
27848 ac_cv_lib_posix_remove=yes
27849else
27850 echo "$as_me: failed program was:" >&5
27851sed 's/^/| /' conftest.$ac_ext >&5
27852
27853ac_cv_lib_posix_remove=no
27854fi
ac1cb8d3
VS
27855rm -f conftest.err conftest.$ac_objext \
27856 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27857LIBS=$ac_check_lib_save_LIBS
27858fi
27859echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27860echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27861if test $ac_cv_lib_posix_remove = yes; then
27862 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27863fi
27864
27865 fi
27866
27867 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27868 echo "$as_me:$LINENO: checking for shmat" >&5
27869echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27870if test "${ac_cv_func_shmat+set}" = set; then
27871 echo $ECHO_N "(cached) $ECHO_C" >&6
27872else
27873 cat >conftest.$ac_ext <<_ACEOF
27874/* confdefs.h. */
27875_ACEOF
27876cat confdefs.h >>conftest.$ac_ext
27877cat >>conftest.$ac_ext <<_ACEOF
27878/* end confdefs.h. */
ac1cb8d3
VS
27879/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27881#define shmat innocuous_shmat
27882
a848cd7e
SC
27883/* System header to define __stub macros and hopefully few prototypes,
27884 which can conflict with char shmat (); below.
27885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27886 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27887
a848cd7e
SC
27888#ifdef __STDC__
27889# include <limits.h>
27890#else
27891# include <assert.h>
27892#endif
ac1cb8d3
VS
27893
27894#undef shmat
27895
a848cd7e
SC
27896/* Override any gcc2 internal prototype to avoid an error. */
27897#ifdef __cplusplus
27898extern "C"
27899{
27900#endif
27901/* We use char because int might match the return type of a gcc2
27902 builtin and then its argument prototype would still apply. */
27903char shmat ();
27904/* The GNU C library defines this for functions which it implements
27905 to always fail with ENOSYS. Some functions are actually named
27906 something starting with __ and the normal name is an alias. */
27907#if defined (__stub_shmat) || defined (__stub___shmat)
27908choke me
27909#else
27910char (*f) () = shmat;
27911#endif
27912#ifdef __cplusplus
27913}
27914#endif
27915
27916int
27917main ()
27918{
27919return f != shmat;
27920 ;
27921 return 0;
27922}
27923_ACEOF
27924rm -f conftest.$ac_objext conftest$ac_exeext
27925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27926 (eval $ac_link) 2>conftest.er1
a848cd7e 27927 ac_status=$?
ac1cb8d3
VS
27928 grep -v '^ *+' conftest.er1 >conftest.err
27929 rm -f conftest.er1
27930 cat conftest.err >&5
a848cd7e
SC
27931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932 (exit $ac_status); } &&
6ebeb4c7 27933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27935 (eval $ac_try) 2>&5
27936 ac_status=$?
27937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27938 (exit $ac_status); }; } &&
27939 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27941 (eval $ac_try) 2>&5
27942 ac_status=$?
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); }; }; then
27945 ac_cv_func_shmat=yes
27946else
27947 echo "$as_me: failed program was:" >&5
27948sed 's/^/| /' conftest.$ac_ext >&5
27949
27950ac_cv_func_shmat=no
27951fi
ac1cb8d3
VS
27952rm -f conftest.err conftest.$ac_objext \
27953 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27954fi
27955echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27956echo "${ECHO_T}$ac_cv_func_shmat" >&6
27957
27958 if test $ac_cv_func_shmat = no; then
27959 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27960echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27961if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27962 echo $ECHO_N "(cached) $ECHO_C" >&6
27963else
27964 ac_check_lib_save_LIBS=$LIBS
27965LIBS="-lipc $LIBS"
27966cat >conftest.$ac_ext <<_ACEOF
27967/* confdefs.h. */
27968_ACEOF
27969cat confdefs.h >>conftest.$ac_ext
27970cat >>conftest.$ac_ext <<_ACEOF
27971/* end confdefs.h. */
27972
27973/* Override any gcc2 internal prototype to avoid an error. */
27974#ifdef __cplusplus
27975extern "C"
27976#endif
27977/* We use char because int might match the return type of a gcc2
27978 builtin and then its argument prototype would still apply. */
27979char shmat ();
27980int
27981main ()
27982{
27983shmat ();
27984 ;
27985 return 0;
27986}
27987_ACEOF
27988rm -f conftest.$ac_objext conftest$ac_exeext
27989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27990 (eval $ac_link) 2>conftest.er1
a848cd7e 27991 ac_status=$?
ac1cb8d3
VS
27992 grep -v '^ *+' conftest.er1 >conftest.err
27993 rm -f conftest.er1
27994 cat conftest.err >&5
a848cd7e
SC
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); } &&
6ebeb4c7 27997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27999 (eval $ac_try) 2>&5
28000 ac_status=$?
28001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002 (exit $ac_status); }; } &&
28003 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28005 (eval $ac_try) 2>&5
28006 ac_status=$?
28007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008 (exit $ac_status); }; }; then
28009 ac_cv_lib_ipc_shmat=yes
28010else
28011 echo "$as_me: failed program was:" >&5
28012sed 's/^/| /' conftest.$ac_ext >&5
28013
28014ac_cv_lib_ipc_shmat=no
28015fi
ac1cb8d3
VS
28016rm -f conftest.err conftest.$ac_objext \
28017 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28018LIBS=$ac_check_lib_save_LIBS
28019fi
28020echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28021echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28022if test $ac_cv_lib_ipc_shmat = yes; then
28023 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28024fi
28025
28026 fi
28027 fi
28028
28029 # Check for libraries that X11R6 Xt/Xaw programs need.
28030 ac_save_LDFLAGS=$LDFLAGS
28031 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28032 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28033 # check for ICE first), but we must link in the order -lSM -lICE or
28034 # we get undefined symbols. So assume we have SM if we have ICE.
28035 # These have to be linked with before -lX11, unlike the other
28036 # libraries we check for below, so use a different variable.
28037 # John Interrante, Karl Berry
28038 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28039echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28040if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28041 echo $ECHO_N "(cached) $ECHO_C" >&6
28042else
28043 ac_check_lib_save_LIBS=$LIBS
28044LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28045cat >conftest.$ac_ext <<_ACEOF
28046/* confdefs.h. */
28047_ACEOF
28048cat confdefs.h >>conftest.$ac_ext
28049cat >>conftest.$ac_ext <<_ACEOF
28050/* end confdefs.h. */
28051
28052/* Override any gcc2 internal prototype to avoid an error. */
28053#ifdef __cplusplus
28054extern "C"
28055#endif
28056/* We use char because int might match the return type of a gcc2
28057 builtin and then its argument prototype would still apply. */
28058char IceConnectionNumber ();
28059int
28060main ()
28061{
28062IceConnectionNumber ();
28063 ;
28064 return 0;
28065}
28066_ACEOF
28067rm -f conftest.$ac_objext conftest$ac_exeext
28068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28069 (eval $ac_link) 2>conftest.er1
a848cd7e 28070 ac_status=$?
ac1cb8d3
VS
28071 grep -v '^ *+' conftest.er1 >conftest.err
28072 rm -f conftest.er1
28073 cat conftest.err >&5
a848cd7e
SC
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); } &&
6ebeb4c7 28076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28078 (eval $ac_try) 2>&5
28079 ac_status=$?
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); }; } &&
28082 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28084 (eval $ac_try) 2>&5
28085 ac_status=$?
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); }; }; then
28088 ac_cv_lib_ICE_IceConnectionNumber=yes
28089else
28090 echo "$as_me: failed program was:" >&5
28091sed 's/^/| /' conftest.$ac_ext >&5
28092
28093ac_cv_lib_ICE_IceConnectionNumber=no
28094fi
ac1cb8d3
VS
28095rm -f conftest.err conftest.$ac_objext \
28096 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28097LIBS=$ac_check_lib_save_LIBS
28098fi
28099echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28100echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28101if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28102 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28103fi
28104
28105 LDFLAGS=$ac_save_LDFLAGS
28106
28107fi
28108
28109
28110 if test "$no_x" = "yes"; then
89d90d6d
VZ
28111 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
28112echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
28113 { (exit 1); exit 1; }; }
a848cd7e
SC
28114 fi
28115
74b84332
VS
28116 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
28117 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
28118 AFMINSTALL=afminstall
28119 COMPILED_X_PROGRAM=0
28120
74b84332
VS
28121 fi
28122
28123 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
28124 if test "$wxUSE_NANOX" = "yes"; then
28125 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
28126echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
28127 if test "x$MICROWIN" = x ; then
28128 echo "$as_me:$LINENO: result: not found" >&5
28129echo "${ECHO_T}not found" >&6
28130 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
28131echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
28132 { (exit 1); exit 1; }; }
28133 else
28134 echo "$as_me:$LINENO: result: $MICROWIN" >&5
28135echo "${ECHO_T}$MICROWIN" >&6
28136 cat >>confdefs.h <<\_ACEOF
28137#define wxUSE_NANOX 1
28138_ACEOF
28139
28140 fi
28141 fi
28142
28143 if test "$wxUSE_UNICODE" = "yes"; then
28144
28145 succeeded=no
28146
28147 if test -z "$PKG_CONFIG"; then
28148 # Extract the first word of "pkg-config", so it can be a program name with args.
28149set dummy pkg-config; ac_word=$2
28150echo "$as_me:$LINENO: checking for $ac_word" >&5
28151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28152if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28153 echo $ECHO_N "(cached) $ECHO_C" >&6
28154else
28155 case $PKG_CONFIG in
28156 [\\/]* | ?:[\\/]*)
28157 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28158 ;;
28159 *)
28160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28161for as_dir in $PATH
28162do
28163 IFS=$as_save_IFS
28164 test -z "$as_dir" && as_dir=.
28165 for ac_exec_ext in '' $ac_executable_extensions; do
28166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28167 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28169 break 2
28170 fi
28171done
28172done
28173
28174 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28175 ;;
28176esac
28177fi
28178PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28179
28180if test -n "$PKG_CONFIG"; then
28181 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28182echo "${ECHO_T}$PKG_CONFIG" >&6
28183else
28184 echo "$as_me:$LINENO: result: no" >&5
28185echo "${ECHO_T}no" >&6
28186fi
28187
28188 fi
28189
28190 if test "$PKG_CONFIG" = "no" ; then
28191 echo "*** The pkg-config script could not be found. Make sure it is"
28192 echo "*** in your path, or set the PKG_CONFIG environment variable"
28193 echo "*** to the full path to pkg-config."
28194 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28195 else
28196 PKG_CONFIG_MIN_VERSION=0.9.0
28197 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28198 echo "$as_me:$LINENO: checking for pangox" >&5
28199echo $ECHO_N "checking for pangox... $ECHO_C" >&6
28200
28201 if $PKG_CONFIG --exists "pangox" ; then
28202 echo "$as_me:$LINENO: result: yes" >&5
28203echo "${ECHO_T}yes" >&6
28204 succeeded=yes
28205
28206 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
28207echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
28208 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
28209 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
28210echo "${ECHO_T}$PANGOX_CFLAGS" >&6
28211
28212 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
28213echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
28214 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
28215 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
28216echo "${ECHO_T}$PANGOX_LIBS" >&6
28217 else
28218 PANGOX_CFLAGS=""
28219 PANGOX_LIBS=""
28220 ## If we have a custom action on failure, don't print errors, but
28221 ## do set a variable so people can do so.
28222 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
28223
28224 fi
28225
28226
28227
28228 else
28229 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28230 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28231 fi
28232 fi
28233
28234 if test $succeeded = yes; then
28235
28236 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
28237 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
28238
28239 else
28240
28241 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
28242echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
28243 { (exit 1); exit 1; }; }
28244
28245
28246 fi
28247
28248
28249 succeeded=no
28250
28251 if test -z "$PKG_CONFIG"; then
28252 # Extract the first word of "pkg-config", so it can be a program name with args.
28253set dummy pkg-config; ac_word=$2
28254echo "$as_me:$LINENO: checking for $ac_word" >&5
28255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28256if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28257 echo $ECHO_N "(cached) $ECHO_C" >&6
28258else
28259 case $PKG_CONFIG in
28260 [\\/]* | ?:[\\/]*)
28261 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28262 ;;
28263 *)
28264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28265for as_dir in $PATH
28266do
28267 IFS=$as_save_IFS
28268 test -z "$as_dir" && as_dir=.
28269 for ac_exec_ext in '' $ac_executable_extensions; do
28270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28271 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28273 break 2
28274 fi
28275done
28276done
28277
28278 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28279 ;;
28280esac
28281fi
28282PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28283
28284if test -n "$PKG_CONFIG"; then
28285 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28286echo "${ECHO_T}$PKG_CONFIG" >&6
28287else
28288 echo "$as_me:$LINENO: result: no" >&5
28289echo "${ECHO_T}no" >&6
28290fi
28291
28292 fi
28293
28294 if test "$PKG_CONFIG" = "no" ; then
28295 echo "*** The pkg-config script could not be found. Make sure it is"
28296 echo "*** in your path, or set the PKG_CONFIG environment variable"
28297 echo "*** to the full path to pkg-config."
28298 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28299 else
28300 PKG_CONFIG_MIN_VERSION=0.9.0
28301 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28302 echo "$as_me:$LINENO: checking for pangoft2" >&5
28303echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
28304
28305 if $PKG_CONFIG --exists "pangoft2" ; then
28306 echo "$as_me:$LINENO: result: yes" >&5
28307echo "${ECHO_T}yes" >&6
28308 succeeded=yes
28309
28310 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
28311echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
28312 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
28313 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
28314echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
28315
28316 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
28317echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
28318 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
28319 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
28320echo "${ECHO_T}$PANGOFT2_LIBS" >&6
28321 else
28322 PANGOFT2_CFLAGS=""
28323 PANGOFT2_LIBS=""
28324 ## If we have a custom action on failure, don't print errors, but
28325 ## do set a variable so people can do so.
28326 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
28327
28328 fi
28329
28330
28331
28332 else
28333 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28334 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28335 fi
28336 fi
28337
28338 if test $succeeded = yes; then
28339
28340 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
28341 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
28342
28343 else
28344
28345 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
28346echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
28347 wxUSE_PRINTING_ARCHITECTURE="no"
28348
28349
28350 fi
28351
28352
28353 succeeded=no
28354
28355 if test -z "$PKG_CONFIG"; then
28356 # Extract the first word of "pkg-config", so it can be a program name with args.
28357set dummy pkg-config; ac_word=$2
28358echo "$as_me:$LINENO: checking for $ac_word" >&5
28359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28360if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28361 echo $ECHO_N "(cached) $ECHO_C" >&6
28362else
28363 case $PKG_CONFIG in
28364 [\\/]* | ?:[\\/]*)
28365 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28366 ;;
28367 *)
28368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28369for as_dir in $PATH
28370do
28371 IFS=$as_save_IFS
28372 test -z "$as_dir" && as_dir=.
28373 for ac_exec_ext in '' $ac_executable_extensions; do
28374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28375 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28377 break 2
28378 fi
28379done
28380done
28381
28382 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28383 ;;
28384esac
28385fi
28386PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28387
28388if test -n "$PKG_CONFIG"; then
28389 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28390echo "${ECHO_T}$PKG_CONFIG" >&6
28391else
28392 echo "$as_me:$LINENO: result: no" >&5
28393echo "${ECHO_T}no" >&6
28394fi
28395
28396 fi
28397
28398 if test "$PKG_CONFIG" = "no" ; then
28399 echo "*** The pkg-config script could not be found. Make sure it is"
28400 echo "*** in your path, or set the PKG_CONFIG environment variable"
28401 echo "*** to the full path to pkg-config."
28402 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28403 else
28404 PKG_CONFIG_MIN_VERSION=0.9.0
28405 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28406 echo "$as_me:$LINENO: checking for pangoxft" >&5
28407echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
28408
28409 if $PKG_CONFIG --exists "pangoxft" ; then
28410 echo "$as_me:$LINENO: result: yes" >&5
28411echo "${ECHO_T}yes" >&6
28412 succeeded=yes
28413
28414 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
28415echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
28416 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
28417 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
28418echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
28419
28420 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
28421echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
28422 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
28423 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
28424echo "${ECHO_T}$PANGOXFT_LIBS" >&6
28425 else
28426 PANGOXFT_CFLAGS=""
28427 PANGOXFT_LIBS=""
28428 ## If we have a custom action on failure, don't print errors, but
28429 ## do set a variable so people can do so.
28430 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
28431
28432 fi
28433
28434
28435
28436 else
28437 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28438 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28439 fi
28440 fi
28441
28442 if test $succeeded = yes; then
28443
4ae1af05
MB
28444 cat >>confdefs.h <<\_ACEOF
28445#define HAVE_PANGO_XFT 1
28446_ACEOF
28447
a848cd7e
SC
28448 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
28449 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
28450
28451 else
28452
28453 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
28454echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
28455
28456
28457 fi
28458
304205f1
VS
28459 save_CFLAGS="$CFLAGS"
28460 save_LIBS="$LIBS"
28461 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
28462 LIBS="$LIBS $PANGOX_LIBS"
28463
28464for ac_func in pango_font_family_is_monospace
28465do
28466as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28467echo "$as_me:$LINENO: checking for $ac_func" >&5
28468echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28469if eval "test \"\${$as_ac_var+set}\" = set"; then
28470 echo $ECHO_N "(cached) $ECHO_C" >&6
28471else
28472 cat >conftest.$ac_ext <<_ACEOF
28473/* confdefs.h. */
28474_ACEOF
28475cat confdefs.h >>conftest.$ac_ext
28476cat >>conftest.$ac_ext <<_ACEOF
28477/* end confdefs.h. */
28478/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28480#define $ac_func innocuous_$ac_func
28481
28482/* System header to define __stub macros and hopefully few prototypes,
28483 which can conflict with char $ac_func (); below.
28484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28485 <limits.h> exists even on freestanding compilers. */
28486
28487#ifdef __STDC__
28488# include <limits.h>
28489#else
28490# include <assert.h>
28491#endif
28492
28493#undef $ac_func
28494
28495/* Override any gcc2 internal prototype to avoid an error. */
28496#ifdef __cplusplus
28497extern "C"
28498{
28499#endif
28500/* We use char because int might match the return type of a gcc2
28501 builtin and then its argument prototype would still apply. */
28502char $ac_func ();
28503/* The GNU C library defines this for functions which it implements
28504 to always fail with ENOSYS. Some functions are actually named
28505 something starting with __ and the normal name is an alias. */
28506#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28507choke me
28508#else
28509char (*f) () = $ac_func;
28510#endif
28511#ifdef __cplusplus
28512}
28513#endif
28514
28515int
28516main ()
28517{
28518return f != $ac_func;
28519 ;
28520 return 0;
28521}
28522_ACEOF
28523rm -f conftest.$ac_objext conftest$ac_exeext
28524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28525 (eval $ac_link) 2>conftest.er1
28526 ac_status=$?
28527 grep -v '^ *+' conftest.er1 >conftest.err
28528 rm -f conftest.er1
28529 cat conftest.err >&5
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); } &&
6ebeb4c7 28532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
28533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28534 (eval $ac_try) 2>&5
28535 ac_status=$?
28536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); }; } &&
28538 { ac_try='test -s conftest$ac_exeext'
28539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28540 (eval $ac_try) 2>&5
28541 ac_status=$?
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); }; }; then
28544 eval "$as_ac_var=yes"
28545else
28546 echo "$as_me: failed program was:" >&5
28547sed 's/^/| /' conftest.$ac_ext >&5
28548
28549eval "$as_ac_var=no"
28550fi
28551rm -f conftest.err conftest.$ac_objext \
28552 conftest$ac_exeext conftest.$ac_ext
28553fi
28554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28555echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28556if test `eval echo '${'$as_ac_var'}'` = yes; then
28557 cat >>confdefs.h <<_ACEOF
28558#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28559_ACEOF
28560
28561fi
28562done
28563
28564 CFLAGS="$save_CFLAGS"
28565 LIBS="$save_LIBS"
a848cd7e
SC
28566 fi
28567
28568 wxUSE_UNIVERSAL="yes"
28569
28570 if test "$wxUSE_NANOX" = "yes"; then
28571 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
28572 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"
28573 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
28574 else
28575 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
28576 fi
28577
a848cd7e
SC
28578 TOOLKIT=X11
28579 GUIDIST=X11_DIST
28580 fi
28581
28582 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28583 if test "$wxUSE_UNICODE" = "yes"; then
28584 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28585echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28586 { (exit 1); exit 1; }; }
28587 fi
28588
74b84332
VS
28589 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28590echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28591
74b84332
VS
28592ac_find_includes=
28593for ac_dir in $SEARCH_INCLUDE /usr/include;
28594 do
28595 if test -f "$ac_dir/Xm/Xm.h"; then
28596 ac_find_includes=$ac_dir
28597 break
28598 fi
28599 done
a848cd7e 28600
74b84332
VS
28601 if test "$ac_find_includes" != "" ; then
28602 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28603echo "${ECHO_T}found in $ac_find_includes" >&6
28604
28605 if test "x$ac_find_includes" = "x/usr/include"; then
28606 ac_path_to_include=""
28607 else
28608 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28609 result=$?
28610 if test $result = 0; then
28611 ac_path_to_include=""
28612 else
28613 ac_path_to_include=" -I$ac_find_includes"
28614 fi
a848cd7e
SC
28615 fi
28616
74b84332
VS
28617 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28618 else
e051b34e
MW
28619 save_CFLAGS=$CFLAGS
28620 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28621
74b84332 28622 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28623/* confdefs.h. */
28624_ACEOF
28625cat confdefs.h >>conftest.$ac_ext
28626cat >>conftest.$ac_ext <<_ACEOF
28627/* end confdefs.h. */
28628
74b84332
VS
28629 #include <Xm/Xm.h>
28630
a848cd7e
SC
28631int
28632main ()
28633{
28634
74b84332
VS
28635 int version;
28636 version = xmUseVersion;
28637
a848cd7e
SC
28638 ;
28639 return 0;
28640}
28641_ACEOF
74b84332
VS
28642rm -f conftest.$ac_objext
28643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28644 (eval $ac_compile) 2>conftest.er1
a848cd7e 28645 ac_status=$?
ac1cb8d3
VS
28646 grep -v '^ *+' conftest.er1 >conftest.err
28647 rm -f conftest.er1
28648 cat conftest.err >&5
a848cd7e
SC
28649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28650 (exit $ac_status); } &&
6ebeb4c7 28651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28653 (eval $ac_try) 2>&5
28654 ac_status=$?
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 (exit $ac_status); }; } &&
74b84332 28657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28659 (eval $ac_try) 2>&5
28660 ac_status=$?
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); }; }; then
74b84332
VS
28663
28664 echo "$as_me:$LINENO: result: found in default search path" >&5
28665echo "${ECHO_T}found in default search path" >&6
28666 COMPILED_X_PROGRAM=1
28667
a848cd7e
SC
28668else
28669 echo "$as_me: failed program was:" >&5
28670sed 's/^/| /' conftest.$ac_ext >&5
28671
a848cd7e 28672
74b84332
VS
28673 echo "$as_me:$LINENO: result: no" >&5
28674echo "${ECHO_T}no" >&6
e051b34e
MW
28675 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
28676echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 28677 { (exit 1); exit 1; }; }
a848cd7e 28678
a848cd7e 28679
a848cd7e 28680fi
74b84332 28681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
28682
28683 CFLAGS=$save_CFLAGS
74b84332
VS
28684 fi
28685
0ad5d837
VZ
28686
28687 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
28688echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28689
0ad5d837
VZ
28690 ac_find_libraries=
28691 for ac_dir in $SEARCH_LIB;
74b84332 28692 do
3eca31dc 28693 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
28694 if test -f "$ac_dir/libXm.$ac_extension"; then
28695 ac_find_libraries=$ac_dir
28696 break 2
a848cd7e 28697 fi
74b84332
VS
28698 done
28699 done
a848cd7e 28700
0ad5d837
VZ
28701
28702 if test "x$ac_find_libraries" != "x" ; then
28703 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28704echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 28705
74b84332 28706
0ad5d837 28707 if test "$ac_find_libraries" = "default location"; then
74b84332 28708 ac_path_to_link=""
a848cd7e 28709 else
0ad5d837
VZ
28710 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28711 result=$?
28712 if test $result = 0; then
28713 ac_path_to_link=""
28714 else
28715 ac_path_to_link=" -L$ac_find_libraries"
28716 fi
74b84332
VS
28717 fi
28718
0ad5d837
VZ
28719 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28720 else
28721 save_CFLAGS=$CFLAGS
28722 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
6f9cf1e6
MW
28723 save_LIBS="$LIBS"
28724 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 28725
0ad5d837 28726 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28727/* confdefs.h. */
28728_ACEOF
28729cat confdefs.h >>conftest.$ac_ext
28730cat >>conftest.$ac_ext <<_ACEOF
28731/* end confdefs.h. */
28732
0ad5d837 28733 #include <Xm/Xm.h>
74b84332 28734
a848cd7e
SC
28735int
28736main ()
28737{
74b84332 28738
0ad5d837
VZ
28739 int version;
28740 version = xmUseVersion;
74b84332 28741
a848cd7e
SC
28742 ;
28743 return 0;
28744}
28745_ACEOF
0ad5d837
VZ
28746rm -f conftest.$ac_objext conftest$ac_exeext
28747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28748 (eval $ac_link) 2>conftest.er1
a848cd7e 28749 ac_status=$?
ac1cb8d3
VS
28750 grep -v '^ *+' conftest.er1 >conftest.err
28751 rm -f conftest.er1
28752 cat conftest.err >&5
a848cd7e
SC
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); } &&
6ebeb4c7 28755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28757 (eval $ac_try) 2>&5
28758 ac_status=$?
28759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760 (exit $ac_status); }; } &&
0ad5d837 28761 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28763 (eval $ac_try) 2>&5
28764 ac_status=$?
28765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766 (exit $ac_status); }; }; then
74b84332 28767
0ad5d837 28768 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 28769echo "${ECHO_T}found in default search path" >&6
0ad5d837 28770 COMPILED_X_PROGRAM=1
74b84332 28771
a848cd7e
SC
28772else
28773 echo "$as_me: failed program was:" >&5
28774sed 's/^/| /' conftest.$ac_ext >&5
28775
74b84332 28776
6f9cf1e6 28777 echo "$as_me:$LINENO: result: no" >&5
74b84332 28778echo "${ECHO_T}no" >&6
6f9cf1e6 28779 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
28780echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28781 { (exit 1); exit 1; }; }
28782
28783
28784fi
0ad5d837
VZ
28785rm -f conftest.err conftest.$ac_objext \
28786 conftest$ac_exeext conftest.$ac_ext
74b84332 28787
0ad5d837 28788 CFLAGS=$save_CFLAGS
6f9cf1e6 28789 LIBS="$save_LIBS"
74b84332
VS
28790 fi
28791
28792 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28793echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28794 libp_link=""
28795 libsm_ice_link=""
28796 libs_found=0
28797 for libp in "" " -lXp"; do
28798 if test "$libs_found" = "0"; then
28799 for libsm_ice in "" " -lSM -lICE"; do
28800 if test "$libs_found" = "0"; then
28801 save_LIBS="$LIBS"
28802 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28803 save_CFLAGS=$CFLAGS
28804 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28805
28806 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28807/* confdefs.h. */
28808_ACEOF
28809cat confdefs.h >>conftest.$ac_ext
28810cat >>conftest.$ac_ext <<_ACEOF
28811/* end confdefs.h. */
28812
74b84332
VS
28813 #include <Xm/Xm.h>
28814 #include <Xm/List.h>
28815
a848cd7e
SC
28816int
28817main ()
28818{
74b84332
VS
28819
28820 XmString string = NULL;
28821 Widget w = NULL;
28822 int position = 0;
28823 XmListAddItem(w, string, position);
28824
a848cd7e
SC
28825 ;
28826 return 0;
28827}
28828_ACEOF
28829rm -f conftest.$ac_objext conftest$ac_exeext
28830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28831 (eval $ac_link) 2>conftest.er1
a848cd7e 28832 ac_status=$?
ac1cb8d3
VS
28833 grep -v '^ *+' conftest.er1 >conftest.err
28834 rm -f conftest.er1
28835 cat conftest.err >&5
a848cd7e
SC
28836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837 (exit $ac_status); } &&
6ebeb4c7 28838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28840 (eval $ac_try) 2>&5
28841 ac_status=$?
28842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843 (exit $ac_status); }; } &&
28844 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28846 (eval $ac_try) 2>&5
28847 ac_status=$?
28848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849 (exit $ac_status); }; }; then
28850
28851 libp_link="$libp"
28852 libsm_ice_link="$libsm_ice"
28853 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28854echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28855 libs_found=1
28856
28857else
28858 echo "$as_me: failed program was:" >&5
28859sed 's/^/| /' conftest.$ac_ext >&5
28860
28861
28862
28863fi
ac1cb8d3
VS
28864rm -f conftest.err conftest.$ac_objext \
28865 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28866
28867 LIBS="$save_LIBS"
28868 CFLAGS=$save_CFLAGS
28869 fi
28870 done
28871 fi
28872 done
28873
28874 if test "$libs_found" = "0"; then
28875 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28876echo "${ECHO_T}can't find the right libraries" >&6
28877 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28878echo "$as_me: error: can't link a simple motif program" >&2;}
28879 { (exit 1); exit 1; }; }
28880 fi
28881
62fa8b3a
MW
28882 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
28883echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
28884if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
28885 echo $ECHO_N "(cached) $ECHO_C" >&6
28886else
28887 ac_check_lib_save_LIBS=$LIBS
28888LIBS="-lSgm $LIBS"
28889cat >conftest.$ac_ext <<_ACEOF
28890/* confdefs.h. */
28891_ACEOF
28892cat confdefs.h >>conftest.$ac_ext
28893cat >>conftest.$ac_ext <<_ACEOF
28894/* end confdefs.h. */
28895
28896/* Override any gcc2 internal prototype to avoid an error. */
28897#ifdef __cplusplus
28898extern "C"
28899#endif
28900/* We use char because int might match the return type of a gcc2
28901 builtin and then its argument prototype would still apply. */
28902char SgCreateList ();
28903int
28904main ()
28905{
28906SgCreateList ();
28907 ;
28908 return 0;
28909}
28910_ACEOF
28911rm -f conftest.$ac_objext conftest$ac_exeext
28912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28913 (eval $ac_link) 2>conftest.er1
28914 ac_status=$?
28915 grep -v '^ *+' conftest.er1 >conftest.err
28916 rm -f conftest.er1
28917 cat conftest.err >&5
28918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919 (exit $ac_status); } &&
28920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28922 (eval $ac_try) 2>&5
28923 ac_status=$?
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); }; } &&
28926 { ac_try='test -s conftest$ac_exeext'
28927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28928 (eval $ac_try) 2>&5
28929 ac_status=$?
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); }; }; then
28932 ac_cv_lib_Sgm_SgCreateList=yes
28933else
28934 echo "$as_me: failed program was:" >&5
28935sed 's/^/| /' conftest.$ac_ext >&5
28936
28937ac_cv_lib_Sgm_SgCreateList=no
28938fi
28939rm -f conftest.err conftest.$ac_objext \
28940 conftest$ac_exeext conftest.$ac_ext
28941LIBS=$ac_check_lib_save_LIBS
28942fi
28943echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
28944echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
28945if test $ac_cv_lib_Sgm_SgCreateList = yes; then
28946 libsgm_link=" -lSgm"
28947fi
28948
28949
a848cd7e
SC
28950 save_CFLAGS=$CFLAGS
28951 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
0ad5d837 28952
a848cd7e
SC
28953 echo "$as_me:$LINENO: checking for Motif 2" >&5
28954echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
28955if test "${wx_cv_lib_motif2+set}" = set; then
28956 echo $ECHO_N "(cached) $ECHO_C" >&6
28957else
28958 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28959/* confdefs.h. */
28960_ACEOF
28961cat confdefs.h >>conftest.$ac_ext
28962cat >>conftest.$ac_ext <<_ACEOF
28963/* end confdefs.h. */
28964
0ad5d837 28965 #include <Xm/Xm.h>
a848cd7e
SC
28966
28967int
28968main ()
28969{
28970
0ad5d837
VZ
28971 #if XmVersion < 2000
28972 Not Motif 2
28973 #endif
a848cd7e
SC
28974
28975 ;
28976 return 0;
28977}
28978_ACEOF
28979rm -f conftest.$ac_objext
28980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28981 (eval $ac_compile) 2>conftest.er1
a848cd7e 28982 ac_status=$?
ac1cb8d3
VS
28983 grep -v '^ *+' conftest.er1 >conftest.err
28984 rm -f conftest.er1
28985 cat conftest.err >&5
a848cd7e
SC
28986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987 (exit $ac_status); } &&
6ebeb4c7 28988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28990 (eval $ac_try) 2>&5
28991 ac_status=$?
28992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993 (exit $ac_status); }; } &&
28994 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28996 (eval $ac_try) 2>&5
28997 ac_status=$?
28998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999 (exit $ac_status); }; }; then
0ad5d837 29000 wx_cv_lib_motif2="yes"
a848cd7e
SC
29001else
29002 echo "$as_me: failed program was:" >&5
29003sed 's/^/| /' conftest.$ac_ext >&5
29004
0ad5d837
VZ
29005wx_cv_lib_motif2="no"
29006fi
29007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29008fi
29009echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29010echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29011 if test "$wx_cv_lib_motif2" = "yes"; then
29012 cat >>confdefs.h <<\_ACEOF
29013#define __WXMOTIF20__ 1
29014_ACEOF
a848cd7e 29015
0ad5d837
VZ
29016 else
29017 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29018#define __WXMOTIF20__ 0
29019_ACEOF
29020
0ad5d837 29021 fi
2113bc77
MW
29022
29023 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29024echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
29025if test "${wx_cv_lib_lesstif+set}" = set; then
29026 echo $ECHO_N "(cached) $ECHO_C" >&6
29027else
29028 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
29029/* confdefs.h. */
29030_ACEOF
29031cat confdefs.h >>conftest.$ac_ext
29032cat >>conftest.$ac_ext <<_ACEOF
29033/* end confdefs.h. */
29034
0ad5d837 29035 #include <Xm/Xm.h>
2113bc77
MW
29036
29037int
29038main ()
29039{
29040
0ad5d837
VZ
29041 #if !defined(LesstifVersion) || LesstifVersion <= 0
29042 Not Lesstif
29043 #endif
2113bc77
MW
29044
29045 ;
29046 return 0;
29047}
29048_ACEOF
29049rm -f conftest.$ac_objext
29050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29051 (eval $ac_compile) 2>conftest.er1
29052 ac_status=$?
29053 grep -v '^ *+' conftest.er1 >conftest.err
29054 rm -f conftest.er1
29055 cat conftest.err >&5
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); } &&
6ebeb4c7 29058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
29059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29060 (eval $ac_try) 2>&5
29061 ac_status=$?
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); }; } &&
29064 { ac_try='test -s conftest.$ac_objext'
29065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29066 (eval $ac_try) 2>&5
29067 ac_status=$?
29068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); }; }; then
0ad5d837 29070 wx_cv_lib_lesstif="yes"
2113bc77
MW
29071else
29072 echo "$as_me: failed program was:" >&5
29073sed 's/^/| /' conftest.$ac_ext >&5
29074
0ad5d837
VZ
29075wx_cv_lib_lesstif="no"
29076fi
29077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 29078
0ad5d837
VZ
29079fi
29080echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
29081echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
29082 if test "$wx_cv_lib_lesstif" = "yes"; then
29083 cat >>confdefs.h <<\_ACEOF
29084#define __WXLESSTIF__ 1
29085_ACEOF
29086
29087 else
29088 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
29089#define __WXLESSTIF__ 0
29090_ACEOF
29091
0ad5d837 29092 fi
2113bc77 29093
a848cd7e
SC
29094 CFLAGS=$save_CFLAGS
29095
62fa8b3a 29096 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
29097 TOOLKIT=MOTIF
29098 GUIDIST=MOTIF_DIST
29099 fi
29100
74b84332 29101 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
29102 if test "$wxUSE_LIBXPM" = "sys"; then
29103 echo "$as_me:$LINENO: checking for Xpm library" >&5
29104echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
29105
0ad5d837
VZ
29106 ac_find_libraries=
29107 for ac_dir in $SEARCH_LIB;
a848cd7e 29108 do
3eca31dc 29109 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29110 if test -f "$ac_dir/libXpm.$ac_extension"; then
29111 ac_find_libraries=$ac_dir
29112 break 2
29113 fi
29114 done
29115 done
29116
29117 if test "$ac_find_libraries" != "" ; then
29118
0ad5d837 29119 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29120 ac_path_to_link=""
29121 else
0ad5d837
VZ
29122 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29123 result=$?
29124 if test $result = 0; then
29125 ac_path_to_link=""
29126 else
29127 ac_path_to_link=" -L$ac_find_libraries"
29128 fi
a848cd7e
SC
29129 fi
29130
29131 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
29132 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29133echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29134
29135 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
29136echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
29137if test "${wx_cv_x11_xpm_h+set}" = set; then
29138 echo $ECHO_N "(cached) $ECHO_C" >&6
29139else
29140
29141 save_CFLAGS=$CFLAGS
29142 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29143
29144 cat >conftest.$ac_ext <<_ACEOF
29145/* confdefs.h. */
29146_ACEOF
29147cat confdefs.h >>conftest.$ac_ext
29148cat >>conftest.$ac_ext <<_ACEOF
29149/* end confdefs.h. */
29150
29151 #include <X11/xpm.h>
29152
29153int
29154main ()
29155{
29156
29157 int version;
29158 version = XpmLibraryVersion();
29159
29160 ;
29161 return 0;
29162}
29163_ACEOF
29164rm -f conftest.$ac_objext
29165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29166 (eval $ac_compile) 2>conftest.er1
a848cd7e 29167 ac_status=$?
ac1cb8d3
VS
29168 grep -v '^ *+' conftest.er1 >conftest.err
29169 rm -f conftest.er1
29170 cat conftest.err >&5
a848cd7e
SC
29171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172 (exit $ac_status); } &&
6ebeb4c7 29173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29175 (eval $ac_try) 2>&5
29176 ac_status=$?
29177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178 (exit $ac_status); }; } &&
29179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29181 (eval $ac_try) 2>&5
29182 ac_status=$?
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); }; }; then
29185 wx_cv_x11_xpm_h=yes
29186else
29187 echo "$as_me: failed program was:" >&5
29188sed 's/^/| /' conftest.$ac_ext >&5
29189
29190wx_cv_x11_xpm_h=no
29191
29192fi
ac1cb8d3 29193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29194
29195 CFLAGS=$save_CFLAGS
29196
29197
29198fi
29199echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
29200echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
29201
29202 if test $wx_cv_x11_xpm_h = "yes"; then
29203 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
29204 cat >>confdefs.h <<\_ACEOF
29205#define wxHAVE_LIB_XPM 1
29206_ACEOF
29207
29208 else
29209 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
29210echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
29211 fi
29212 fi
29213
29214 fi
29215
29216 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
29217echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
29218if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
29219 echo $ECHO_N "(cached) $ECHO_C" >&6
29220else
29221 ac_check_lib_save_LIBS=$LIBS
29222LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
29223cat >conftest.$ac_ext <<_ACEOF
29224/* confdefs.h. */
29225_ACEOF
29226cat confdefs.h >>conftest.$ac_ext
29227cat >>conftest.$ac_ext <<_ACEOF
29228/* end confdefs.h. */
29229
29230/* Override any gcc2 internal prototype to avoid an error. */
29231#ifdef __cplusplus
29232extern "C"
29233#endif
29234/* We use char because int might match the return type of a gcc2
29235 builtin and then its argument prototype would still apply. */
29236char XShapeQueryExtension ();
29237int
29238main ()
29239{
29240XShapeQueryExtension ();
29241 ;
29242 return 0;
29243}
29244_ACEOF
29245rm -f conftest.$ac_objext conftest$ac_exeext
29246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29247 (eval $ac_link) 2>conftest.er1
a848cd7e 29248 ac_status=$?
ac1cb8d3
VS
29249 grep -v '^ *+' conftest.er1 >conftest.err
29250 rm -f conftest.er1
29251 cat conftest.err >&5
a848cd7e
SC
29252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253 (exit $ac_status); } &&
6ebeb4c7 29254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29256 (eval $ac_try) 2>&5
29257 ac_status=$?
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); }; } &&
29260 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29262 (eval $ac_try) 2>&5
29263 ac_status=$?
29264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265 (exit $ac_status); }; }; then
29266 ac_cv_lib_Xext_XShapeQueryExtension=yes
29267else
29268 echo "$as_me: failed program was:" >&5
29269sed 's/^/| /' conftest.$ac_ext >&5
29270
29271ac_cv_lib_Xext_XShapeQueryExtension=no
29272fi
ac1cb8d3
VS
29273rm -f conftest.err conftest.$ac_objext \
29274 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29275LIBS=$ac_check_lib_save_LIBS
29276fi
29277echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
29278echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
29279if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
29280
29281 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
29282 wxHAVE_XEXT_LIB=1
29283
29284fi
29285
29286
29287 if test "$wxHAVE_XEXT_LIB" = 1; then
29288 save_CFLAGS="$CFLAGS"
29289 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29290
29291 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
29292echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
29293 cat >conftest.$ac_ext <<_ACEOF
29294/* confdefs.h. */
29295_ACEOF
29296cat confdefs.h >>conftest.$ac_ext
29297cat >>conftest.$ac_ext <<_ACEOF
29298/* end confdefs.h. */
29299
29300 #include <X11/Xlib.h>
29301 #include <X11/extensions/shape.h>
29302
29303int
29304main ()
29305{
29306
29307 int dummy1, dummy2;
29308 XShapeQueryExtension((Display*)NULL,
29309 (int*)NULL, (int*)NULL);
29310
29311 ;
29312 return 0;
29313}
29314_ACEOF
29315rm -f conftest.$ac_objext
29316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29317 (eval $ac_compile) 2>conftest.er1
a848cd7e 29318 ac_status=$?
ac1cb8d3
VS
29319 grep -v '^ *+' conftest.er1 >conftest.err
29320 rm -f conftest.er1
29321 cat conftest.err >&5
a848cd7e
SC
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); } &&
6ebeb4c7 29324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29326 (eval $ac_try) 2>&5
29327 ac_status=$?
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); }; } &&
29330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29332 (eval $ac_try) 2>&5
29333 ac_status=$?
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); }; }; then
29336
29337 cat >>confdefs.h <<\_ACEOF
29338#define HAVE_XSHAPE 1
29339_ACEOF
29340
29341 echo "$as_me:$LINENO: result: found" >&5
29342echo "${ECHO_T}found" >&6
29343
29344else
29345 echo "$as_me: failed program was:" >&5
29346sed 's/^/| /' conftest.$ac_ext >&5
29347
29348
29349 echo "$as_me:$LINENO: result: not found" >&5
29350echo "${ECHO_T}not found" >&6
29351
29352fi
ac1cb8d3 29353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29354 CFLAGS="$save_CFLAGS"
29355
29356 fi
29357 fi
29358
29359 if test "$wxUSE_MAC" = 1; then
29360 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
29361echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
29362 if test "$GCC" = yes; then
29363 echo "$as_me:$LINENO: result: gcc" >&5
29364echo "${ECHO_T}gcc" >&6
29365 CPPFLAGS_PASCAL="-fpascal-strings"
29366 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
29367 echo "$as_me:$LINENO: result: xlc" >&5
29368echo "${ECHO_T}xlc" >&6
29369 CPPFLAGS_PASCAL="-qmacpstr"
29370 else
29371 echo "$as_me:$LINENO: result: none" >&5
29372echo "${ECHO_T}none" >&6
29373 fi
29374
1e9e8aba
DE
29375 if test "x$wxUSE_UNIX" = "xyes"; then
29376 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
29377 else
29378 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
29379 fi
a848cd7e 29380
a848cd7e
SC
29381 TOOLKIT=MAC
29382 GUIDIST=MACX_DIST
dd21ced8 29383 WXBASEPORT="_carbon"
a848cd7e
SC
29384 fi
29385
29386 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
29387 TOOLKIT=COCOA
29388 GUIDIST=COCOA_DIST
29389 fi
29390
29391 if test "$wxUSE_PM" = 1; then
29392 TOOLKIT=PM
de59c161
RD
29393 GUIDIST=PM_DIST
29394 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
29395echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
29396if test "${wx_cv_spbcdata+set}" = set; then
29397 echo $ECHO_N "(cached) $ECHO_C" >&6
29398else
29399
29400 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
29401/* confdefs.h. */
29402_ACEOF
29403cat confdefs.h >>conftest.$ac_ext
29404cat >>conftest.$ac_ext <<_ACEOF
29405/* end confdefs.h. */
29406
29407 #define INCL_PM
29408 #include <os2.h>
29409
29410int
29411main ()
29412{
29413
29414 SPBCDATA test;
29415
29416 ;
29417 return 0;
29418}
29419_ACEOF
29420rm -f conftest.$ac_objext
29421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29422 (eval $ac_compile) 2>conftest.er1
de59c161 29423 ac_status=$?
ac1cb8d3
VS
29424 grep -v '^ *+' conftest.er1 >conftest.err
29425 rm -f conftest.er1
29426 cat conftest.err >&5
de59c161
RD
29427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428 (exit $ac_status); } &&
6ebeb4c7 29429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29431 (eval $ac_try) 2>&5
29432 ac_status=$?
29433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); }; } &&
29435 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
29436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29437 (eval $ac_try) 2>&5
29438 ac_status=$?
29439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29440 (exit $ac_status); }; }; then
29441 wx_cv_spbcdata=yes
29442else
29443 echo "$as_me: failed program was:" >&5
29444sed 's/^/| /' conftest.$ac_ext >&5
29445
29446wx_cv_spbcdata=no
29447
29448fi
ac1cb8d3 29449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
29450
29451
29452fi
29453echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
29454echo "${ECHO_T}$wx_cv_spbcdata" >&6
29455
29456 if test $wx_cv_spbcdata = "yes"; then
29457 cat >>confdefs.h <<\_ACEOF
29458#define HAVE_SPBCDATA 1
29459_ACEOF
29460
29461 fi
a848cd7e
SC
29462 fi
29463
29464 if test "$TOOLKIT" = "PM" ; then
29465 TOOLKIT_DIR="os2"
29466 else
29467 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
29468 fi
29469
a848cd7e 29470 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
29471 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
29472 WIDGET_SET=univ
a848cd7e
SC
29473 fi
29474
29475 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
29476 DISTDIR="wx\$(TOOLKIT)"
29477else
29478 USE_GUI=0
29479
29480 TOOLKIT_DIR="base"
29481
29482 if test "$USE_WIN32" = 1 ; then
a848cd7e 29483 TOOLKIT="MSW"
a848cd7e
SC
29484 fi
29485
a848cd7e
SC
29486 GUIDIST="BASE_DIST"
29487 DISTDIR="wxBase"
29488fi
29489
29490
d12aef51
VZ
29491if test "$wxUSE_GUI" = "yes"; then
29492 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
29493
29494for ac_header in X11/Xlib.h
29495do
29496as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29497if eval "test \"\${$as_ac_Header+set}\" = set"; then
29498 echo "$as_me:$LINENO: checking for $ac_header" >&5
29499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29500if eval "test \"\${$as_ac_Header+set}\" = set"; then
29501 echo $ECHO_N "(cached) $ECHO_C" >&6
29502fi
29503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29505else
29506 # Is the header compilable?
29507echo "$as_me:$LINENO: checking $ac_header usability" >&5
29508echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29509cat >conftest.$ac_ext <<_ACEOF
29510/* confdefs.h. */
29511_ACEOF
29512cat confdefs.h >>conftest.$ac_ext
29513cat >>conftest.$ac_ext <<_ACEOF
29514/* end confdefs.h. */
29515$ac_includes_default
29516#include <$ac_header>
29517_ACEOF
29518rm -f conftest.$ac_objext
29519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29520 (eval $ac_compile) 2>conftest.er1
29521 ac_status=$?
29522 grep -v '^ *+' conftest.er1 >conftest.err
29523 rm -f conftest.er1
29524 cat conftest.err >&5
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); } &&
29527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29529 (eval $ac_try) 2>&5
29530 ac_status=$?
29531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532 (exit $ac_status); }; } &&
29533 { ac_try='test -s conftest.$ac_objext'
29534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29535 (eval $ac_try) 2>&5
29536 ac_status=$?
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); }; }; then
29539 ac_header_compiler=yes
29540else
29541 echo "$as_me: failed program was:" >&5
29542sed 's/^/| /' conftest.$ac_ext >&5
29543
29544ac_header_compiler=no
29545fi
29546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29547echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29548echo "${ECHO_T}$ac_header_compiler" >&6
29549
29550# Is the header present?
29551echo "$as_me:$LINENO: checking $ac_header presence" >&5
29552echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29553cat >conftest.$ac_ext <<_ACEOF
29554/* confdefs.h. */
29555_ACEOF
29556cat confdefs.h >>conftest.$ac_ext
29557cat >>conftest.$ac_ext <<_ACEOF
29558/* end confdefs.h. */
29559#include <$ac_header>
29560_ACEOF
29561if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29563 ac_status=$?
29564 grep -v '^ *+' conftest.er1 >conftest.err
29565 rm -f conftest.er1
29566 cat conftest.err >&5
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); } >/dev/null; then
29569 if test -s conftest.err; then
29570 ac_cpp_err=$ac_c_preproc_warn_flag
29571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29572 else
29573 ac_cpp_err=
29574 fi
29575else
29576 ac_cpp_err=yes
29577fi
29578if test -z "$ac_cpp_err"; then
29579 ac_header_preproc=yes
29580else
29581 echo "$as_me: failed program was:" >&5
29582sed 's/^/| /' conftest.$ac_ext >&5
29583
29584 ac_header_preproc=no
29585fi
29586rm -f conftest.err conftest.$ac_ext
29587echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29588echo "${ECHO_T}$ac_header_preproc" >&6
29589
29590# So? What about this header?
29591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29592 yes:no: )
29593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29594echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29596echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29597 ac_header_preproc=yes
29598 ;;
29599 no:yes:* )
29600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29601echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29603echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29605echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29607echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29609echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29611echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29612 (
29613 cat <<\_ASBOX
29614## ----------------------------------------- ##
29615## Report this to wx-dev@lists.wxwidgets.org ##
29616## ----------------------------------------- ##
29617_ASBOX
29618 ) |
29619 sed "s/^/$as_me: WARNING: /" >&2
29620 ;;
29621esac
29622echo "$as_me:$LINENO: checking for $ac_header" >&5
29623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29624if eval "test \"\${$as_ac_Header+set}\" = set"; then
29625 echo $ECHO_N "(cached) $ECHO_C" >&6
29626else
29627 eval "$as_ac_Header=\$ac_header_preproc"
29628fi
29629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29631
29632fi
29633if test `eval echo '${'$as_ac_Header'}'` = yes; then
29634 cat >>confdefs.h <<_ACEOF
29635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29636_ACEOF
29637
29638fi
29639
29640done
29641
29642
29643for ac_header in X11/XKBlib.h
29644do
29645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29646echo "$as_me:$LINENO: checking for $ac_header" >&5
29647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29648if eval "test \"\${$as_ac_Header+set}\" = set"; then
29649 echo $ECHO_N "(cached) $ECHO_C" >&6
29650else
29651 cat >conftest.$ac_ext <<_ACEOF
29652/* confdefs.h. */
29653_ACEOF
29654cat confdefs.h >>conftest.$ac_ext
29655cat >>conftest.$ac_ext <<_ACEOF
29656/* end confdefs.h. */
29657
29658 #if HAVE_X11_XLIB_H
29659 #include <X11/Xlib.h>
29660 #endif
29661
29662
29663#include <$ac_header>
29664_ACEOF
29665rm -f conftest.$ac_objext
29666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29667 (eval $ac_compile) 2>conftest.er1
29668 ac_status=$?
29669 grep -v '^ *+' conftest.er1 >conftest.err
29670 rm -f conftest.er1
29671 cat conftest.err >&5
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); } &&
29674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29676 (eval $ac_try) 2>&5
29677 ac_status=$?
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); }; } &&
29680 { ac_try='test -s conftest.$ac_objext'
29681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29682 (eval $ac_try) 2>&5
29683 ac_status=$?
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); }; }; then
29686 eval "$as_ac_Header=yes"
29687else
29688 echo "$as_me: failed program was:" >&5
29689sed 's/^/| /' conftest.$ac_ext >&5
29690
29691eval "$as_ac_Header=no"
29692fi
29693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29694fi
29695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29697if test `eval echo '${'$as_ac_Header'}'` = yes; then
29698 cat >>confdefs.h <<_ACEOF
29699#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29700_ACEOF
29701
29702fi
29703
29704done
29705
29706 fi
29707fi
29708
a848cd7e
SC
29709
29710
29711IODBC_C_SRC=""
29712
29713
29714if test "$TOOLKIT" != "MSW" ; then
29715
29716 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
29717
29718 if test "${ac_cv_header_sql_h+set}" = set; then
29719 echo "$as_me:$LINENO: checking for sql.h" >&5
29720echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29721if test "${ac_cv_header_sql_h+set}" = set; then
29722 echo $ECHO_N "(cached) $ECHO_C" >&6
29723fi
29724echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29725echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29726else
29727 # Is the header compilable?
29728echo "$as_me:$LINENO: checking sql.h usability" >&5
29729echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
29730cat >conftest.$ac_ext <<_ACEOF
29731/* confdefs.h. */
29732_ACEOF
29733cat confdefs.h >>conftest.$ac_ext
29734cat >>conftest.$ac_ext <<_ACEOF
29735/* end confdefs.h. */
29736$ac_includes_default
29737#include <sql.h>
29738_ACEOF
29739rm -f conftest.$ac_objext
29740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29741 (eval $ac_compile) 2>conftest.er1
a848cd7e 29742 ac_status=$?
ac1cb8d3
VS
29743 grep -v '^ *+' conftest.er1 >conftest.err
29744 rm -f conftest.er1
29745 cat conftest.err >&5
a848cd7e
SC
29746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); } &&
6ebeb4c7 29748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29750 (eval $ac_try) 2>&5
29751 ac_status=$?
29752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753 (exit $ac_status); }; } &&
29754 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29756 (eval $ac_try) 2>&5
29757 ac_status=$?
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); }; }; then
29760 ac_header_compiler=yes
29761else
29762 echo "$as_me: failed program was:" >&5
29763sed 's/^/| /' conftest.$ac_ext >&5
29764
29765ac_header_compiler=no
29766fi
ac1cb8d3 29767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29768echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29769echo "${ECHO_T}$ac_header_compiler" >&6
29770
29771# Is the header present?
29772echo "$as_me:$LINENO: checking sql.h presence" >&5
29773echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
29774cat >conftest.$ac_ext <<_ACEOF
29775/* confdefs.h. */
29776_ACEOF
29777cat confdefs.h >>conftest.$ac_ext
29778cat >>conftest.$ac_ext <<_ACEOF
29779/* end confdefs.h. */
29780#include <sql.h>
29781_ACEOF
29782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29784 ac_status=$?
29785 grep -v '^ *+' conftest.er1 >conftest.err
29786 rm -f conftest.er1
29787 cat conftest.err >&5
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); } >/dev/null; then
29790 if test -s conftest.err; then
29791 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29793 else
29794 ac_cpp_err=
29795 fi
29796else
29797 ac_cpp_err=yes
29798fi
29799if test -z "$ac_cpp_err"; then
29800 ac_header_preproc=yes
29801else
29802 echo "$as_me: failed program was:" >&5
29803sed 's/^/| /' conftest.$ac_ext >&5
29804
29805 ac_header_preproc=no
29806fi
29807rm -f conftest.err conftest.$ac_ext
29808echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29809echo "${ECHO_T}$ac_header_preproc" >&6
29810
29811# So? What about this header?
ac1cb8d3
VS
29812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29813 yes:no: )
a848cd7e
SC
29814 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
29815echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29816 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
29817echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
29818 ac_header_preproc=yes
a848cd7e 29819 ;;
ac1cb8d3 29820 no:yes:* )
a848cd7e
SC
29821 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
29822echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29823 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
29824echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
29825 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
29826echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
29827 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
29828echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29829 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
29830echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29831 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
29832echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29833 (
29834 cat <<\_ASBOX
ac1cb8d3
VS
29835## ----------------------------------------- ##
29836## Report this to wx-dev@lists.wxwidgets.org ##
29837## ----------------------------------------- ##
a848cd7e
SC
29838_ASBOX
29839 ) |
29840 sed "s/^/$as_me: WARNING: /" >&2
29841 ;;
29842esac
29843echo "$as_me:$LINENO: checking for sql.h" >&5
29844echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29845if test "${ac_cv_header_sql_h+set}" = set; then
29846 echo $ECHO_N "(cached) $ECHO_C" >&6
29847else
29848 ac_cv_header_sql_h=$ac_header_preproc
29849fi
29850echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29851echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29852
29853fi
29854if test $ac_cv_header_sql_h = yes; then
29855 found_sql_h=1
29856fi
29857
29858
29859 if test "x$found_sql_h" = "x1" ; then
29860 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
29861echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
29862if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
29863 echo $ECHO_N "(cached) $ECHO_C" >&6
29864else
29865 ac_check_lib_save_LIBS=$LIBS
29866LIBS="-liodbc $LIBS"
29867cat >conftest.$ac_ext <<_ACEOF
29868/* confdefs.h. */
29869_ACEOF
29870cat confdefs.h >>conftest.$ac_ext
29871cat >>conftest.$ac_ext <<_ACEOF
29872/* end confdefs.h. */
29873
29874/* Override any gcc2 internal prototype to avoid an error. */
29875#ifdef __cplusplus
29876extern "C"
29877#endif
29878/* We use char because int might match the return type of a gcc2
29879 builtin and then its argument prototype would still apply. */
29880char SQLAllocEnv ();
29881int
29882main ()
29883{
29884SQLAllocEnv ();
29885 ;
29886 return 0;
29887}
29888_ACEOF
29889rm -f conftest.$ac_objext conftest$ac_exeext
29890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29891 (eval $ac_link) 2>conftest.er1
a848cd7e 29892 ac_status=$?
ac1cb8d3
VS
29893 grep -v '^ *+' conftest.er1 >conftest.err
29894 rm -f conftest.er1
29895 cat conftest.err >&5
a848cd7e
SC
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); } &&
6ebeb4c7 29898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29900 (eval $ac_try) 2>&5
29901 ac_status=$?
29902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903 (exit $ac_status); }; } &&
29904 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29906 (eval $ac_try) 2>&5
29907 ac_status=$?
29908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29909 (exit $ac_status); }; }; then
29910 ac_cv_lib_iodbc_SQLAllocEnv=yes
29911else
29912 echo "$as_me: failed program was:" >&5
29913sed 's/^/| /' conftest.$ac_ext >&5
29914
29915ac_cv_lib_iodbc_SQLAllocEnv=no
29916fi
ac1cb8d3
VS
29917rm -f conftest.err conftest.$ac_objext \
29918 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29919LIBS=$ac_check_lib_save_LIBS
29920fi
29921echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29922echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29923if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29924 ODBC_LINK=" -liodbc"
29925else
29926
29927 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29928echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29929if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29930 echo $ECHO_N "(cached) $ECHO_C" >&6
29931else
29932 ac_check_lib_save_LIBS=$LIBS
29933LIBS="-lunixodbc $LIBS"
29934cat >conftest.$ac_ext <<_ACEOF
29935/* confdefs.h. */
29936_ACEOF
29937cat confdefs.h >>conftest.$ac_ext
29938cat >>conftest.$ac_ext <<_ACEOF
29939/* end confdefs.h. */
29940
29941/* Override any gcc2 internal prototype to avoid an error. */
29942#ifdef __cplusplus
29943extern "C"
29944#endif
29945/* We use char because int might match the return type of a gcc2
29946 builtin and then its argument prototype would still apply. */
29947char SQLAllocEnv ();
29948int
29949main ()
29950{
29951SQLAllocEnv ();
29952 ;
29953 return 0;
29954}
29955_ACEOF
29956rm -f conftest.$ac_objext conftest$ac_exeext
29957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29958 (eval $ac_link) 2>conftest.er1
a848cd7e 29959 ac_status=$?
ac1cb8d3
VS
29960 grep -v '^ *+' conftest.er1 >conftest.err
29961 rm -f conftest.er1
29962 cat conftest.err >&5
a848cd7e
SC
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); } &&
6ebeb4c7 29965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29967 (eval $ac_try) 2>&5
29968 ac_status=$?
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); }; } &&
29971 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29973 (eval $ac_try) 2>&5
29974 ac_status=$?
29975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976 (exit $ac_status); }; }; then
29977 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29978else
29979 echo "$as_me: failed program was:" >&5
29980sed 's/^/| /' conftest.$ac_ext >&5
29981
29982ac_cv_lib_unixodbc_SQLAllocEnv=no
29983fi
ac1cb8d3
VS
29984rm -f conftest.err conftest.$ac_objext \
29985 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29986LIBS=$ac_check_lib_save_LIBS
29987fi
29988echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29989echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29990if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29991 ODBC_LINK=" -lunixodbc"
29992else
29993
29994 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29995echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29996if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29997 echo $ECHO_N "(cached) $ECHO_C" >&6
29998else
29999 ac_check_lib_save_LIBS=$LIBS
30000LIBS="-lodbc $LIBS"
30001cat >conftest.$ac_ext <<_ACEOF
30002/* confdefs.h. */
30003_ACEOF
30004cat confdefs.h >>conftest.$ac_ext
30005cat >>conftest.$ac_ext <<_ACEOF
30006/* end confdefs.h. */
30007
30008/* Override any gcc2 internal prototype to avoid an error. */
30009#ifdef __cplusplus
30010extern "C"
30011#endif
30012/* We use char because int might match the return type of a gcc2
30013 builtin and then its argument prototype would still apply. */
30014char SQLAllocEnv ();
30015int
30016main ()
30017{
30018SQLAllocEnv ();
30019 ;
30020 return 0;
30021}
30022_ACEOF
30023rm -f conftest.$ac_objext conftest$ac_exeext
30024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30025 (eval $ac_link) 2>conftest.er1
a848cd7e 30026 ac_status=$?
ac1cb8d3
VS
30027 grep -v '^ *+' conftest.er1 >conftest.err
30028 rm -f conftest.er1
30029 cat conftest.err >&5
a848cd7e
SC
30030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031 (exit $ac_status); } &&
6ebeb4c7 30032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30034 (eval $ac_try) 2>&5
30035 ac_status=$?
30036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30037 (exit $ac_status); }; } &&
30038 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30040 (eval $ac_try) 2>&5
30041 ac_status=$?
30042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043 (exit $ac_status); }; }; then
30044 ac_cv_lib_odbc_SQLAllocEnv=yes
30045else
30046 echo "$as_me: failed program was:" >&5
30047sed 's/^/| /' conftest.$ac_ext >&5
30048
30049ac_cv_lib_odbc_SQLAllocEnv=no
30050fi
ac1cb8d3
VS
30051rm -f conftest.err conftest.$ac_objext \
30052 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30053LIBS=$ac_check_lib_save_LIBS
30054fi
30055echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
30056echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
30057if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
30058 ODBC_LINK=" -lodbc"
30059fi
30060
30061
30062fi
30063
30064
30065fi
30066
30067 fi
30068 if test "x$ODBC_LINK" = "x" ; then
30069 if test "$wxUSE_ODBC" = "sys" ; then
30070 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
30071echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
30072 { (exit 1); exit 1; }; }
30073 else
30074 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
30075echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
30076 wxUSE_ODBC=builtin
30077 fi
30078 else
30079 wxUSE_ODBC=sys
30080 fi
30081 fi
a848cd7e 30082
2da0c077
RD
30083 if test "$wxUSE_ODBC" = "builtin" ; then
30084 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30085#define wxUSE_BUILTIN_IODBC 1
30086_ACEOF
30087
a848cd7e
SC
30088 fi
30089fi
30090
2da0c077
RD
30091if test "$wxUSE_ODBC" != "no" ; then
30092 cat >>confdefs.h <<\_ACEOF
30093#define wxUSE_ODBC 1
30094_ACEOF
30095
30096 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
30097
30098 WXODBCFLAG="-D_IODBC_"
30099fi
a848cd7e 30100
01cb68df 30101
a848cd7e 30102if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 30103 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
30104 echo "$as_me:$LINENO: checking for Xinerama" >&5
30105echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
30106
0ad5d837
VZ
30107 ac_find_libraries=
30108 for ac_dir in $SEARCH_LIB;
30109 do
30110 for ac_extension in a so sl dylib dll.a; do
30111 if test -f "$ac_dir/libXinerama.$ac_extension"; then
30112 ac_find_libraries=$ac_dir
30113 break 2
30114 fi
30115 done
30116 done
30117
a848cd7e
SC
30118 if test "$ac_find_libraries" != "" ; then
30119
0ad5d837 30120 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30121 ac_path_to_link=""
30122 else
0ad5d837
VZ
30123 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30124 result=$?
30125 if test $result = 0; then
30126 ac_path_to_link=""
30127 else
30128 ac_path_to_link=" -L$ac_find_libraries"
30129 fi
a848cd7e
SC
30130 fi
30131
30132 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30133 LDFLAGS="$LDFLAGS $ac_path_to_link"
30134 fi
30135 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
30136 echo "$as_me:$LINENO: result: yes" >&5
30137echo "${ECHO_T}yes" >&6
30138
30139 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
30140echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
30141
0ad5d837
VZ
30142 ac_find_libraries=
30143 for ac_dir in $SEARCH_LIB;
a848cd7e 30144 do
3eca31dc 30145 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30146 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
30147 ac_find_libraries=$ac_dir
30148 break 2
30149 fi
30150 done
30151 done
30152
30153 if test "$ac_find_libraries" != "" ; then
30154 echo "$as_me:$LINENO: result: yes" >&5
30155echo "${ECHO_T}yes" >&6
30156
30157for ac_header in X11/extensions/xf86vmode.h
30158do
30159as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30160echo "$as_me:$LINENO: checking for $ac_header" >&5
30161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30162if eval "test \"\${$as_ac_Header+set}\" = set"; then
30163 echo $ECHO_N "(cached) $ECHO_C" >&6
30164else
30165 cat >conftest.$ac_ext <<_ACEOF
30166/* confdefs.h. */
30167_ACEOF
30168cat confdefs.h >>conftest.$ac_ext
30169cat >>conftest.$ac_ext <<_ACEOF
30170/* end confdefs.h. */
30171
30172 #if HAVE_X11_XLIB_H
30173 #include <X11/Xlib.h>
30174 #endif
30175
30176
30177#include <$ac_header>
30178_ACEOF
30179rm -f conftest.$ac_objext
30180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30181 (eval $ac_compile) 2>conftest.er1
a848cd7e 30182 ac_status=$?
ac1cb8d3
VS
30183 grep -v '^ *+' conftest.er1 >conftest.err
30184 rm -f conftest.er1
30185 cat conftest.err >&5
a848cd7e
SC
30186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30187 (exit $ac_status); } &&
6ebeb4c7 30188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30190 (eval $ac_try) 2>&5
30191 ac_status=$?
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); }; } &&
30194 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30196 (eval $ac_try) 2>&5
30197 ac_status=$?
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); }; }; then
30200 eval "$as_ac_Header=yes"
30201else
30202 echo "$as_me: failed program was:" >&5
30203sed 's/^/| /' conftest.$ac_ext >&5
30204
30205eval "$as_ac_Header=no"
30206fi
ac1cb8d3 30207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30208fi
30209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30210echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30211if test `eval echo '${'$as_ac_Header'}'` = yes; then
30212 cat >>confdefs.h <<_ACEOF
30213#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30214_ACEOF
30215
30216 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
30217
30218fi
30219
30220done
30221
30222 else
30223 echo "$as_me:$LINENO: result: no" >&5
30224echo "${ECHO_T}no" >&6
30225 fi
30226
30227 else
30228 echo "$as_me:$LINENO: result: no" >&5
30229echo "${ECHO_T}no" >&6
dcc1b6ad
VS
30230 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
30231echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
30232 wxUSE_DISPLAY="no"
30233 fi
01cb68df
RG
30234 elif test "$wxUSE_MSW" = 1; then
30235
30236
30237for ac_header in multimon.h ddraw.h
30238do
30239as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 30240echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
30241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30242if eval "test \"\${$as_ac_Header+set}\" = set"; then
30243 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 30244else
5294a27e 30245 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
30246/* confdefs.h. */
30247_ACEOF
30248cat confdefs.h >>conftest.$ac_ext
30249cat >>conftest.$ac_ext <<_ACEOF
30250/* end confdefs.h. */
5294a27e
VZ
30251#include <windows.h>
30252
01cb68df
RG
30253#include <$ac_header>
30254_ACEOF
30255rm -f conftest.$ac_objext
30256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30257 (eval $ac_compile) 2>conftest.er1
01cb68df 30258 ac_status=$?
ac1cb8d3
VS
30259 grep -v '^ *+' conftest.er1 >conftest.err
30260 rm -f conftest.er1
30261 cat conftest.err >&5
01cb68df
RG
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); } &&
6ebeb4c7 30264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30266 (eval $ac_try) 2>&5
30267 ac_status=$?
30268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269 (exit $ac_status); }; } &&
30270 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
30271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30272 (eval $ac_try) 2>&5
30273 ac_status=$?
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); }; }; then
5294a27e 30276 eval "$as_ac_Header=yes"
01cb68df
RG
30277else
30278 echo "$as_me: failed program was:" >&5
30279sed 's/^/| /' conftest.$ac_ext >&5
30280
5294a27e 30281eval "$as_ac_Header=no"
01cb68df 30282fi
ac1cb8d3 30283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
30284fi
30285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30286echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
30287if test `eval echo '${'$as_ac_Header'}'` = yes; then
30288 cat >>confdefs.h <<_ACEOF
30289#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30290_ACEOF
30291
30292else
30293
5294a27e
VZ
30294 wxUSE_DISPLAY="no"
30295 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 30296echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
30297
30298fi
30299
30300done
30301
a848cd7e
SC
30302 fi
30303fi
30304
30305
30306USE_OPENGL=0
30307if test "$wxUSE_OPENGL" = "yes"; then
30308 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
30309 OPENGL_LIBS="-framework OpenGL -framework AGL"
30310 elif test "$wxUSE_MSW" = 1; then
30311 OPENGL_LIBS="-lopengl32 -lglu32"
30312 else
30313
30314
30315ac_find_includes=
30316for ac_dir in $SEARCH_INCLUDE /usr/include;
30317 do
30318 if test -f "$ac_dir/GL/gl.h"; then
30319 ac_find_includes=$ac_dir
30320 break
30321 fi
30322 done
30323
30324 if test "$ac_find_includes" != "" ; then
30325 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30326echo "${ECHO_T}found in $ac_find_includes" >&6
30327
30328 if test "x$ac_find_includes" = "x/usr/include"; then
30329 ac_path_to_include=""
30330 else
30331 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
30332 result=$?
30333 if test $result = 0; then
30334 ac_path_to_include=""
30335 else
30336 ac_path_to_include=" -I$ac_find_includes"
30337 fi
30338 fi
30339
30340 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
30341 fi
30342
30343 if test "${ac_cv_header_GL_gl_h+set}" = set; then
30344 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30345echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30346if test "${ac_cv_header_GL_gl_h+set}" = set; then
30347 echo $ECHO_N "(cached) $ECHO_C" >&6
30348fi
30349echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30350echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30351else
30352 # Is the header compilable?
30353echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
30354echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
30355cat >conftest.$ac_ext <<_ACEOF
30356/* confdefs.h. */
30357_ACEOF
30358cat confdefs.h >>conftest.$ac_ext
30359cat >>conftest.$ac_ext <<_ACEOF
30360/* end confdefs.h. */
30361$ac_includes_default
30362#include <GL/gl.h>
30363_ACEOF
30364rm -f conftest.$ac_objext
30365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30366 (eval $ac_compile) 2>conftest.er1
a848cd7e 30367 ac_status=$?
ac1cb8d3
VS
30368 grep -v '^ *+' conftest.er1 >conftest.err
30369 rm -f conftest.er1
30370 cat conftest.err >&5
a848cd7e
SC
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); } &&
6ebeb4c7 30373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30375 (eval $ac_try) 2>&5
30376 ac_status=$?
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); }; } &&
30379 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30381 (eval $ac_try) 2>&5
30382 ac_status=$?
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); }; }; then
30385 ac_header_compiler=yes
30386else
30387 echo "$as_me: failed program was:" >&5
30388sed 's/^/| /' conftest.$ac_ext >&5
30389
30390ac_header_compiler=no
30391fi
ac1cb8d3 30392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30393echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30394echo "${ECHO_T}$ac_header_compiler" >&6
30395
30396# Is the header present?
30397echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
30398echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
30399cat >conftest.$ac_ext <<_ACEOF
30400/* confdefs.h. */
30401_ACEOF
30402cat confdefs.h >>conftest.$ac_ext
30403cat >>conftest.$ac_ext <<_ACEOF
30404/* end confdefs.h. */
30405#include <GL/gl.h>
30406_ACEOF
30407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30409 ac_status=$?
30410 grep -v '^ *+' conftest.er1 >conftest.err
30411 rm -f conftest.er1
30412 cat conftest.err >&5
30413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30414 (exit $ac_status); } >/dev/null; then
30415 if test -s conftest.err; then
30416 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30418 else
30419 ac_cpp_err=
30420 fi
30421else
30422 ac_cpp_err=yes
30423fi
30424if test -z "$ac_cpp_err"; then
30425 ac_header_preproc=yes
30426else
30427 echo "$as_me: failed program was:" >&5
30428sed 's/^/| /' conftest.$ac_ext >&5
30429
30430 ac_header_preproc=no
30431fi
30432rm -f conftest.err conftest.$ac_ext
30433echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30434echo "${ECHO_T}$ac_header_preproc" >&6
30435
30436# So? What about this header?
ac1cb8d3
VS
30437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30438 yes:no: )
a848cd7e
SC
30439 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30440echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30441 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
30442echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
30443 ac_header_preproc=yes
a848cd7e 30444 ;;
ac1cb8d3 30445 no:yes:* )
a848cd7e
SC
30446 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
30447echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30448 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
30449echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
30450 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
30451echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
30452 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
30453echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30454 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
30455echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30456 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
30457echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30458 (
30459 cat <<\_ASBOX
ac1cb8d3
VS
30460## ----------------------------------------- ##
30461## Report this to wx-dev@lists.wxwidgets.org ##
30462## ----------------------------------------- ##
a848cd7e
SC
30463_ASBOX
30464 ) |
30465 sed "s/^/$as_me: WARNING: /" >&2
30466 ;;
30467esac
30468echo "$as_me:$LINENO: checking for GL/gl.h" >&5
30469echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
30470if test "${ac_cv_header_GL_gl_h+set}" = set; then
30471 echo $ECHO_N "(cached) $ECHO_C" >&6
30472else
30473 ac_cv_header_GL_gl_h=$ac_header_preproc
30474fi
30475echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
30476echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
30477
30478fi
30479if test $ac_cv_header_GL_gl_h = yes; then
30480
30481 found_gl=0
30482
30483 echo "$as_me:$LINENO: checking for -lGL" >&5
30484echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
30485
0ad5d837
VZ
30486 ac_find_libraries=
30487 for ac_dir in $SEARCH_LIB;
a848cd7e 30488 do
3eca31dc 30489 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30490 if test -f "$ac_dir/libGL.$ac_extension"; then
30491 ac_find_libraries=$ac_dir
30492 break 2
30493 fi
30494 done
30495 done
30496
30497 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
30498 echo "$as_me:$LINENO: result: yes" >&5
30499echo "${ECHO_T}yes" >&6
30500
a848cd7e 30501
0ad5d837 30502 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30503 ac_path_to_link=""
30504 else
0ad5d837
VZ
30505 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30506 result=$?
30507 if test $result = 0; then
30508 ac_path_to_link=""
30509 else
30510 ac_path_to_link=" -L$ac_find_libraries"
30511 fi
a848cd7e
SC
30512 fi
30513
30514 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30515 LDFLAGS_GL="$ac_path_to_link"
30516 fi
30517
69120ee4
VZ
30518 echo "$as_me:$LINENO: checking for -lGLU" >&5
30519echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 30520
0ad5d837
VZ
30521 ac_find_libraries=
30522 for ac_dir in $SEARCH_LIB;
30523 do
30524 for ac_extension in a so sl dylib dll.a; do
30525 if test -f "$ac_dir/libGLU.$ac_extension"; then
30526 ac_find_libraries=$ac_dir
30527 break 2
30528 fi
30529 done
30530 done
30531
a848cd7e
SC
30532 if test "$ac_find_libraries" != "" ; then
30533
0ad5d837 30534 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30535 ac_path_to_link=""
30536 else
0ad5d837
VZ
30537 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30538 result=$?
30539 if test $result = 0; then
30540 ac_path_to_link=""
30541 else
30542 ac_path_to_link=" -L$ac_find_libraries"
30543 fi
a848cd7e
SC
30544 fi
30545
30546 if test "$ac_path_to_link" != " -L/usr/lib" -a \
30547 "$ac_path_to_link" != "$LDFLAGS_GL"; then
30548 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
30549 fi
30550
30551 found_gl=1
30552 OPENGL_LIBS="-lGL -lGLU"
30553 echo "$as_me:$LINENO: result: yes" >&5
30554echo "${ECHO_T}yes" >&6
69120ee4
VZ
30555 else
30556 echo "$as_me:$LINENO: result: no" >&5
30557echo "${ECHO_T}no" >&6
a848cd7e 30558 fi
69120ee4
VZ
30559 else
30560 echo "$as_me:$LINENO: result: no" >&5
30561echo "${ECHO_T}no" >&6
a848cd7e
SC
30562 fi
30563
30564 if test "$found_gl" != 1; then
a848cd7e
SC
30565 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
30566echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
30567
0ad5d837
VZ
30568 ac_find_libraries=
30569 for ac_dir in $SEARCH_LIB;
a848cd7e 30570 do
3eca31dc 30571 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30572 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
30573 ac_find_libraries=$ac_dir
30574 break 2
30575 fi
30576 done
30577 done
30578
30579 if test "$ac_find_libraries" != "" ; then
30580
0ad5d837 30581 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30582 ac_path_to_link=""
30583 else
0ad5d837
VZ
30584 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30585 result=$?
30586 if test $result = 0; then
30587 ac_path_to_link=""
30588 else
30589 ac_path_to_link=" -L$ac_find_libraries"
30590 fi
a848cd7e
SC
30591 fi
30592
30593 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
30594 OPENGL_LIBS="-lMesaGL -lMesaGLU"
30595 echo "$as_me:$LINENO: result: yes" >&5
30596echo "${ECHO_T}yes" >&6
30597 else
30598 echo "$as_me:$LINENO: result: no" >&5
30599echo "${ECHO_T}no" >&6
30600 fi
30601 fi
30602
30603fi
30604
30605
30606
30607 if test "x$OPENGL_LIBS" = "x"; then
30608 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
30609echo "$as_me: error: OpenGL libraries not available" >&2;}
30610 { (exit 1); exit 1; }; }
30611 fi
30612 fi
30613
30614 if test "$wxUSE_OPENGL" = "yes"; then
30615 USE_OPENGL=1
30616 cat >>confdefs.h <<\_ACEOF
30617#define wxUSE_OPENGL 1
30618_ACEOF
30619
30620 cat >>confdefs.h <<\_ACEOF
30621#define wxUSE_GLCANVAS 1
30622_ACEOF
30623
30624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
30625 fi
30626fi
30627
a848cd7e
SC
30628
30629if test -n "$TOOLKIT" ; then
30630 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
30631fi
30632
a848cd7e
SC
30633
30634
30635if test "$wxUSE_SHARED" = "yes"; then
30636 case "${host}" in
30637 *-pc-msdosdjgpp )
30638 wxUSE_SHARED=no
30639 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
30640echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
30641 ;;
30642 esac
30643fi
30644
a848cd7e 30645if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
30646
30647
30648 found_versioning=no
30649
30650
30651 if test $found_versioning = no ; then
30652 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
30653echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
30654if test "${wx_cv_version_script+set}" = set; then
30655 echo $ECHO_N "(cached) $ECHO_C" >&6
30656else
30657
30658 echo "VER_1 { *; };" >conftest.sym
30659 echo "int main() { return 0; }" >conftest.cpp
30660
30661 if { ac_try='
30662 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30663 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
30664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30665 (eval $ac_try) 2>&5
30666 ac_status=$?
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); }; } ; then
30669 if test -s conftest.stderr ; then
30670 wx_cv_version_script=no
30671 else
30672 wx_cv_version_script=yes
30673 fi
30674 else
30675 wx_cv_version_script=no
30676 fi
e5d4b470
MW
30677
30678 if test $wx_cv_version_script = yes
30679 then
30680 echo "struct B { virtual ~B() { } }; \
30681 struct D : public B { }; \
30682 void F() { D d; }" > conftest.cpp
30683
30684 if { ac_try='
30685 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30686 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
30687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30688 (eval $ac_try) 2>&5
30689 ac_status=$?
30690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691 (exit $ac_status); }; } &&
30692 { ac_try='
30693 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30694 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
30695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30696 (eval $ac_try) 2>&5
30697 ac_status=$?
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); }; }
30700 then
30701 if { ac_try='
30702 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
30703 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
30704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30705 (eval $ac_try) 2>&5
30706 ac_status=$?
30707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30708 (exit $ac_status); }; }
30709 then
30710 wx_cv_version_script=yes
30711 else
30712 wx_cv_version_script=no
30713 fi
30714 fi
30715 fi
30716
a848cd7e 30717 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 30718 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
30719
30720fi
30721echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
30722echo "${ECHO_T}$wx_cv_version_script" >&6
30723 if test $wx_cv_version_script = yes ; then
30724 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
30725 fi
30726 fi
30727
30728
30729 case "${host}" in
30730 *-*-linux* | *-*-gnu* )
30731 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 30732 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 30733 ;;
a848cd7e
SC
30734
30735 *-*-solaris2* )
30736 if test "$GCC" = yes ; then
30737 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
30738
30739 saveLdflags="$LDFLAGS"
30740 LDFLAGS="$saveLdflags -Wl,-rpath,/"
30741 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
30742echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
30743 cat >conftest.$ac_ext <<_ACEOF
30744/* confdefs.h. */
30745_ACEOF
30746cat confdefs.h >>conftest.$ac_ext
30747cat >>conftest.$ac_ext <<_ACEOF
30748/* end confdefs.h. */
30749
30750int
30751main ()
30752{
30753
30754 ;
30755 return 0;
30756}
30757_ACEOF
30758rm -f conftest.$ac_objext conftest$ac_exeext
30759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30760 (eval $ac_link) 2>conftest.er1
a848cd7e 30761 ac_status=$?
ac1cb8d3
VS
30762 grep -v '^ *+' conftest.er1 >conftest.err
30763 rm -f conftest.er1
30764 cat conftest.err >&5
a848cd7e
SC
30765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766 (exit $ac_status); } &&
6ebeb4c7 30767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30769 (eval $ac_try) 2>&5
30770 ac_status=$?
30771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772 (exit $ac_status); }; } &&
30773 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30775 (eval $ac_try) 2>&5
30776 ac_status=$?
30777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778 (exit $ac_status); }; }; then
30779
30780 echo "$as_me:$LINENO: result: yes" >&5
30781echo "${ECHO_T}yes" >&6
30782 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 30783 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
30784
30785else
30786 echo "$as_me: failed program was:" >&5
30787sed 's/^/| /' conftest.$ac_ext >&5
30788
30789
30790 echo "$as_me:$LINENO: result: no" >&5
30791echo "${ECHO_T}no" >&6
30792 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
30793echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
30794 LDFLAGS="$saveLdflags -Wl,-R,/"
30795 cat >conftest.$ac_ext <<_ACEOF
30796/* confdefs.h. */
30797_ACEOF
30798cat confdefs.h >>conftest.$ac_ext
30799cat >>conftest.$ac_ext <<_ACEOF
30800/* end confdefs.h. */
30801
30802int
30803main ()
30804{
30805
30806 ;
30807 return 0;
30808}
30809_ACEOF
30810rm -f conftest.$ac_objext conftest$ac_exeext
30811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30812 (eval $ac_link) 2>conftest.er1
a848cd7e 30813 ac_status=$?
ac1cb8d3
VS
30814 grep -v '^ *+' conftest.er1 >conftest.err
30815 rm -f conftest.er1
30816 cat conftest.err >&5
a848cd7e
SC
30817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818 (exit $ac_status); } &&
6ebeb4c7 30819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30821 (eval $ac_try) 2>&5
30822 ac_status=$?
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); }; } &&
30825 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30827 (eval $ac_try) 2>&5
30828 ac_status=$?
30829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830 (exit $ac_status); }; }; then
30831
ffa0583f 30832 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 30833echo "${ECHO_T}yes" >&6
ffa0583f
RL
30834 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
30835 WXCONFIG_RPATH="-Wl,-R,\$libdir"
30836
a848cd7e
SC
30837else
30838 echo "$as_me: failed program was:" >&5
30839sed 's/^/| /' conftest.$ac_ext >&5
30840
30841
30842 echo "$as_me:$LINENO: result: no" >&5
30843echo "${ECHO_T}no" >&6
30844
30845fi
ac1cb8d3
VS
30846rm -f conftest.err conftest.$ac_objext \
30847 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30848
30849fi
ac1cb8d3
VS
30850rm -f conftest.err conftest.$ac_objext \
30851 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30852 LDFLAGS="$saveLdflags"
30853 else
a848cd7e 30854 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 30855 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
30856 fi
30857 ;;
30858
cfda0ea8 30859 *-*-darwin* )
0caebc27
MW
30860 install_name_tool=`which install_name_tool`
30861 if test "$install_name_tool" -a -x "$install_name_tool"; then
30862 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
30863 cat <<EOF >change-install-names
a848cd7e
SC
30864#!/bin/sh
30865libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
30866inst_cmd="install_name_tool "
30867for i in \${libnames} ; do
30868 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
30869done
30870\${inst_cmd} \${3}
30871EOF
0caebc27
MW
30872 chmod +x change-install-names
30873 fi
a848cd7e
SC
30874 ;;
30875
30876 *-*-cygwin* | *-*-mingw32* )
30877 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
30878 ;;
30879
81f90336
MW
30880 *-*-hpux* )
30881 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
30882 WXCONFIG_RPATH="-Wl,+b,\$libdir"
30883 ;;
30884
a848cd7e 30885 esac
ceec2216 30886
ffa0583f
RL
30887 if test $wxUSE_RPATH = "no"; then
30888 SAMPLES_RPATH_FLAG=''
30889 SAMPLES_RPATH_POSTLINK=''
30890 WXCONFIG_RPATH=''
30891 fi
30892
30893 SHARED=1
30894
30895else
30896
ceec2216
RL
30897 config_linkage_component="-static"
30898 SHARED=0
ffa0583f 30899
ceec2216 30900fi
a848cd7e 30901
a848cd7e 30902
ceec2216
RL
30903UNICODE=0
30904lib_unicode_suffix=
30905WX_CHARTYPE="ansi"
30906if test "$wxUSE_UNICODE" = "yes"; then
30907 lib_unicode_suffix=u
30908 WX_CHARTYPE="unicode"
30909 UNICODE=1
a848cd7e
SC
30910fi
30911
ceec2216
RL
30912lib_debug_suffix=
30913WX_DEBUGTYPE="release"
30914DEBUG_FLAG=0
30915if test "$wxUSE_DEBUG_FLAG" = "yes"; then
30916 lib_debug_suffix=d
30917 WX_DEBUGTYPE="debug"
30918 DEBUG_FLAG=1
30919fi
a848cd7e 30920
ceec2216
RL
30921WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
30922WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 30923
ceec2216
RL
30924DEBUG_INFO=0
30925if test "$wxUSE_DEBUG_INFO" = "yes"; then
30926 DEBUG_INFO=1
30927fi
a848cd7e 30928
ceec2216 30929WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30930
ceec2216 30931TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30932
ceec2216 30933TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30934
ceec2216
RL
30935if test "$cross_compiling" = "yes"; then
30936 HOST_SUFFIX="-$host_alias"
30937 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30938 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30939fi
30940
dd21ced8 30941WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30942if test "${TOOLKIT_DIR}" = "os2"; then
30943 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30944else
30945 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30946fi
ceec2216
RL
30947
30948
30949
1d1af5ea
DE
30950if test "$wxUSE_COCOA" = 1; then
30951
30952
30953 ac_ext=c
30954ac_cpp='$CPP $CPPFLAGS'
30955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30957ac_compiler_gnu=$ac_cv_c_compiler_gnu
30958
30959ac_ext=m
30960
30961 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30962echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30963 cat >conftest.$ac_ext <<_ACEOF
30964/* confdefs.h. */
30965_ACEOF
30966cat confdefs.h >>conftest.$ac_ext
30967cat >>conftest.$ac_ext <<_ACEOF
30968/* end confdefs.h. */
30969#include <AppKit/NSEvent.h>
30970#include <CoreFoundation/CoreFoundation.h>
30971
30972int
30973main ()
30974{
30975
30976 ;
30977 return 0;
30978}
30979_ACEOF
30980rm -f conftest.$ac_objext
30981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30982 (eval $ac_compile) 2>conftest.er1
30983 ac_status=$?
30984 grep -v '^ *+' conftest.er1 >conftest.err
30985 rm -f conftest.er1
30986 cat conftest.err >&5
30987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988 (exit $ac_status); } &&
6ebeb4c7 30989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30991 (eval $ac_try) 2>&5
30992 ac_status=$?
30993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994 (exit $ac_status); }; } &&
30995 { ac_try='test -s conftest.$ac_objext'
30996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30997 (eval $ac_try) 2>&5
30998 ac_status=$?
30999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000 (exit $ac_status); }; }; then
31001 echo "$as_me:$LINENO: result: no" >&5
31002echo "${ECHO_T}no" >&6
31003else
31004 echo "$as_me: failed program was:" >&5
31005sed 's/^/| /' conftest.$ac_ext >&5
31006
31007echo "$as_me:$LINENO: result: yes" >&5
31008echo "${ECHO_T}yes" >&6
31009 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31010echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
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. */
31017#define __Point__ 1
31018#include <AppKit/NSEvent.h>
31019#include <CoreFoundation/CoreFoundation.h>
31020
31021int
31022main ()
31023{
31024
31025 ;
31026 return 0;
31027}
31028_ACEOF
31029rm -f conftest.$ac_objext
31030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31031 (eval $ac_compile) 2>conftest.er1
31032 ac_status=$?
31033 grep -v '^ *+' conftest.er1 >conftest.err
31034 rm -f conftest.er1
31035 cat conftest.err >&5
31036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31037 (exit $ac_status); } &&
6ebeb4c7 31038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31040 (eval $ac_try) 2>&5
31041 ac_status=$?
31042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043 (exit $ac_status); }; } &&
31044 { ac_try='test -s conftest.$ac_objext'
31045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31046 (eval $ac_try) 2>&5
31047 ac_status=$?
31048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31049 (exit $ac_status); }; }; then
31050 echo "$as_me:$LINENO: result: yes" >&5
31051echo "${ECHO_T}yes" >&6
31052 cat >>confdefs.h <<\_ACEOF
31053#define __Point__ 1
31054_ACEOF
31055
31056
31057else
31058 echo "$as_me: failed program was:" >&5
31059sed 's/^/| /' conftest.$ac_ext >&5
31060
31061{ { echo "$as_me:$LINENO: error: no
31062See \`config.log' for more details." >&5
31063echo "$as_me: error: no
31064See \`config.log' for more details." >&2;}
31065 { (exit 1); exit 1; }; }
31066
31067fi
31068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31069
31070fi
31071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31072 ac_ext=c
31073ac_cpp='$CPP $CPPFLAGS'
31074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31076ac_compiler_gnu=$ac_cv_c_compiler_gnu
31077
31078fi
31079
a848cd7e 31080if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
31081 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31082 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 31083
a848cd7e 31084 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
31085
31086 # Extract the first word of "Rez", so it can be a program name with args.
31087set dummy Rez; ac_word=$2
31088echo "$as_me:$LINENO: checking for $ac_word" >&5
31089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31090if test "${ac_cv_prog_RESCOMP+set}" = set; then
31091 echo $ECHO_N "(cached) $ECHO_C" >&6
31092else
31093 if test -n "$RESCOMP"; then
31094 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
31095else
31096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31097for as_dir in $PATH
31098do
31099 IFS=$as_save_IFS
31100 test -z "$as_dir" && as_dir=.
31101 for ac_exec_ext in '' $ac_executable_extensions; do
31102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31103 ac_cv_prog_RESCOMP="Rez"
31104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31105 break 2
31106 fi
31107done
31108done
31109
31110 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
31111fi
31112fi
31113RESCOMP=$ac_cv_prog_RESCOMP
31114if test -n "$RESCOMP"; then
31115 echo "$as_me:$LINENO: result: $RESCOMP" >&5
31116echo "${ECHO_T}$RESCOMP" >&6
31117else
31118 echo "$as_me:$LINENO: result: no" >&5
31119echo "${ECHO_T}no" >&6
31120fi
31121
31122 # Extract the first word of "DeRez", so it can be a program name with args.
31123set dummy DeRez; ac_word=$2
31124echo "$as_me:$LINENO: checking for $ac_word" >&5
31125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31126if test "${ac_cv_prog_DEREZ+set}" = set; then
31127 echo $ECHO_N "(cached) $ECHO_C" >&6
31128else
31129 if test -n "$DEREZ"; then
31130 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
31131else
31132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31133for as_dir in $PATH
31134do
31135 IFS=$as_save_IFS
31136 test -z "$as_dir" && as_dir=.
31137 for ac_exec_ext in '' $ac_executable_extensions; do
31138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31139 ac_cv_prog_DEREZ="DeRez"
31140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31141 break 2
31142 fi
31143done
31144done
31145
31146 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
31147fi
31148fi
31149DEREZ=$ac_cv_prog_DEREZ
31150if test -n "$DEREZ"; then
31151 echo "$as_me:$LINENO: result: $DEREZ" >&5
31152echo "${ECHO_T}$DEREZ" >&6
31153else
31154 echo "$as_me:$LINENO: result: no" >&5
31155echo "${ECHO_T}no" >&6
31156fi
31157
31158 # Extract the first word of "SetFile", so it can be a program name with args.
31159set dummy SetFile; ac_word=$2
31160echo "$as_me:$LINENO: checking for $ac_word" >&5
31161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31162if test "${ac_cv_prog_SETFILE+set}" = set; then
31163 echo $ECHO_N "(cached) $ECHO_C" >&6
31164else
31165 if test -n "$SETFILE"; then
31166 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
31167else
31168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31169for as_dir in $PATH
31170do
31171 IFS=$as_save_IFS
31172 test -z "$as_dir" && as_dir=.
31173 for ac_exec_ext in '' $ac_executable_extensions; do
31174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31175 ac_cv_prog_SETFILE="SetFile"
31176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31177 break 2
31178 fi
31179done
31180done
31181
31182 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
31183fi
31184fi
31185SETFILE=$ac_cv_prog_SETFILE
31186if test -n "$SETFILE"; then
31187 echo "$as_me:$LINENO: result: $SETFILE" >&5
31188echo "${ECHO_T}$SETFILE" >&6
31189else
31190 echo "$as_me:$LINENO: result: no" >&5
31191echo "${ECHO_T}no" >&6
31192fi
31193
31194
31195 MACSETFILE="\$(SETFILE)"
31196
31197 if test "$wxUSE_MAC" = 1; then
1a79f136 31198 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 31199
1a79f136 31200 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
31201 else
31202 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
31203 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
31204 fi
31205else
ffa0583f
RL
31206 MACSETFILE="@true"
31207 MACRESWXCONFIG="@true"
a848cd7e
SC
31208
31209 if test "$wxUSE_PM" = 1; then
31210 MACRESCOMP="emxbind -ep"
31211 else
ffa0583f 31212 MACRESCOMP="@true"
a848cd7e
SC
31213 fi
31214fi
31215
31216
31217
31218echo "$as_me:$LINENO: checking for mode_t" >&5
31219echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31220if test "${ac_cv_type_mode_t+set}" = set; then
31221 echo $ECHO_N "(cached) $ECHO_C" >&6
31222else
31223 cat >conftest.$ac_ext <<_ACEOF
31224/* confdefs.h. */
31225_ACEOF
31226cat confdefs.h >>conftest.$ac_ext
31227cat >>conftest.$ac_ext <<_ACEOF
31228/* end confdefs.h. */
31229$ac_includes_default
31230int
31231main ()
31232{
31233if ((mode_t *) 0)
31234 return 0;
31235if (sizeof (mode_t))
31236 return 0;
31237 ;
31238 return 0;
31239}
31240_ACEOF
31241rm -f conftest.$ac_objext
31242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31243 (eval $ac_compile) 2>conftest.er1
a848cd7e 31244 ac_status=$?
ac1cb8d3
VS
31245 grep -v '^ *+' conftest.er1 >conftest.err
31246 rm -f conftest.er1
31247 cat conftest.err >&5
a848cd7e
SC
31248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); } &&
6ebeb4c7 31250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31252 (eval $ac_try) 2>&5
31253 ac_status=$?
31254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255 (exit $ac_status); }; } &&
31256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31258 (eval $ac_try) 2>&5
31259 ac_status=$?
31260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31261 (exit $ac_status); }; }; then
31262 ac_cv_type_mode_t=yes
31263else
31264 echo "$as_me: failed program was:" >&5
31265sed 's/^/| /' conftest.$ac_ext >&5
31266
31267ac_cv_type_mode_t=no
31268fi
ac1cb8d3 31269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31270fi
31271echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31272echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31273if test $ac_cv_type_mode_t = yes; then
31274 :
31275else
31276
31277cat >>confdefs.h <<_ACEOF
31278#define mode_t int
31279_ACEOF
31280
31281fi
31282
31283echo "$as_me:$LINENO: checking for off_t" >&5
31284echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31285if test "${ac_cv_type_off_t+set}" = set; then
31286 echo $ECHO_N "(cached) $ECHO_C" >&6
31287else
31288 cat >conftest.$ac_ext <<_ACEOF
31289/* confdefs.h. */
31290_ACEOF
31291cat confdefs.h >>conftest.$ac_ext
31292cat >>conftest.$ac_ext <<_ACEOF
31293/* end confdefs.h. */
31294$ac_includes_default
31295int
31296main ()
31297{
31298if ((off_t *) 0)
31299 return 0;
31300if (sizeof (off_t))
31301 return 0;
31302 ;
31303 return 0;
31304}
31305_ACEOF
31306rm -f conftest.$ac_objext
31307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31308 (eval $ac_compile) 2>conftest.er1
a848cd7e 31309 ac_status=$?
ac1cb8d3
VS
31310 grep -v '^ *+' conftest.er1 >conftest.err
31311 rm -f conftest.er1
31312 cat conftest.err >&5
a848cd7e
SC
31313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314 (exit $ac_status); } &&
6ebeb4c7 31315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31317 (eval $ac_try) 2>&5
31318 ac_status=$?
31319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320 (exit $ac_status); }; } &&
31321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31323 (eval $ac_try) 2>&5
31324 ac_status=$?
31325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326 (exit $ac_status); }; }; then
31327 ac_cv_type_off_t=yes
31328else
31329 echo "$as_me: failed program was:" >&5
31330sed 's/^/| /' conftest.$ac_ext >&5
31331
31332ac_cv_type_off_t=no
31333fi
ac1cb8d3 31334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31335fi
31336echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31337echo "${ECHO_T}$ac_cv_type_off_t" >&6
31338if test $ac_cv_type_off_t = yes; then
31339 :
31340else
31341
31342cat >>confdefs.h <<_ACEOF
31343#define off_t long
31344_ACEOF
31345
31346fi
31347
31348echo "$as_me:$LINENO: checking for pid_t" >&5
31349echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
31350if test "${ac_cv_type_pid_t+set}" = set; then
31351 echo $ECHO_N "(cached) $ECHO_C" >&6
31352else
31353 cat >conftest.$ac_ext <<_ACEOF
31354/* confdefs.h. */
31355_ACEOF
31356cat confdefs.h >>conftest.$ac_ext
31357cat >>conftest.$ac_ext <<_ACEOF
31358/* end confdefs.h. */
31359$ac_includes_default
31360int
31361main ()
31362{
31363if ((pid_t *) 0)
31364 return 0;
31365if (sizeof (pid_t))
31366 return 0;
31367 ;
31368 return 0;
31369}
31370_ACEOF
31371rm -f conftest.$ac_objext
31372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31373 (eval $ac_compile) 2>conftest.er1
a848cd7e 31374 ac_status=$?
ac1cb8d3
VS
31375 grep -v '^ *+' conftest.er1 >conftest.err
31376 rm -f conftest.er1
31377 cat conftest.err >&5
a848cd7e
SC
31378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379 (exit $ac_status); } &&
6ebeb4c7 31380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31382 (eval $ac_try) 2>&5
31383 ac_status=$?
31384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385 (exit $ac_status); }; } &&
31386 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31388 (eval $ac_try) 2>&5
31389 ac_status=$?
31390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391 (exit $ac_status); }; }; then
31392 ac_cv_type_pid_t=yes
31393else
31394 echo "$as_me: failed program was:" >&5
31395sed 's/^/| /' conftest.$ac_ext >&5
31396
31397ac_cv_type_pid_t=no
31398fi
ac1cb8d3 31399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31400fi
31401echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31402echo "${ECHO_T}$ac_cv_type_pid_t" >&6
31403if test $ac_cv_type_pid_t = yes; then
31404 :
31405else
31406
31407cat >>confdefs.h <<_ACEOF
31408#define pid_t int
31409_ACEOF
31410
31411fi
31412
31413echo "$as_me:$LINENO: checking for size_t" >&5
31414echo $ECHO_N "checking for size_t... $ECHO_C" >&6
31415if test "${ac_cv_type_size_t+set}" = set; then
31416 echo $ECHO_N "(cached) $ECHO_C" >&6
31417else
31418 cat >conftest.$ac_ext <<_ACEOF
31419/* confdefs.h. */
31420_ACEOF
31421cat confdefs.h >>conftest.$ac_ext
31422cat >>conftest.$ac_ext <<_ACEOF
31423/* end confdefs.h. */
31424$ac_includes_default
31425int
31426main ()
31427{
31428if ((size_t *) 0)
31429 return 0;
31430if (sizeof (size_t))
31431 return 0;
31432 ;
31433 return 0;
31434}
31435_ACEOF
31436rm -f conftest.$ac_objext
31437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31438 (eval $ac_compile) 2>conftest.er1
a848cd7e 31439 ac_status=$?
ac1cb8d3
VS
31440 grep -v '^ *+' conftest.er1 >conftest.err
31441 rm -f conftest.er1
31442 cat conftest.err >&5
a848cd7e
SC
31443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31444 (exit $ac_status); } &&
6ebeb4c7 31445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31447 (eval $ac_try) 2>&5
31448 ac_status=$?
31449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450 (exit $ac_status); }; } &&
31451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31453 (eval $ac_try) 2>&5
31454 ac_status=$?
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); }; }; then
31457 ac_cv_type_size_t=yes
31458else
31459 echo "$as_me: failed program was:" >&5
31460sed 's/^/| /' conftest.$ac_ext >&5
31461
31462ac_cv_type_size_t=no
31463fi
ac1cb8d3 31464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31465fi
31466echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31467echo "${ECHO_T}$ac_cv_type_size_t" >&6
31468if test $ac_cv_type_size_t = yes; then
31469 :
31470else
31471
31472cat >>confdefs.h <<_ACEOF
31473#define size_t unsigned
31474_ACEOF
31475
31476fi
31477
31478echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
31479echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
31480if test "${ac_cv_type_uid_t+set}" = set; then
31481 echo $ECHO_N "(cached) $ECHO_C" >&6
31482else
31483 cat >conftest.$ac_ext <<_ACEOF
31484/* confdefs.h. */
31485_ACEOF
31486cat confdefs.h >>conftest.$ac_ext
31487cat >>conftest.$ac_ext <<_ACEOF
31488/* end confdefs.h. */
31489#include <sys/types.h>
31490
31491_ACEOF
31492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31493 $EGREP "uid_t" >/dev/null 2>&1; then
31494 ac_cv_type_uid_t=yes
31495else
31496 ac_cv_type_uid_t=no
31497fi
31498rm -f conftest*
31499
31500fi
31501echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
31502echo "${ECHO_T}$ac_cv_type_uid_t" >&6
31503if test $ac_cv_type_uid_t = no; then
31504
31505cat >>confdefs.h <<\_ACEOF
31506#define uid_t int
31507_ACEOF
31508
31509
31510cat >>confdefs.h <<\_ACEOF
31511#define gid_t int
31512_ACEOF
31513
31514fi
31515
31516
d51253e8
RL
31517echo "$as_me:$LINENO: checking for ssize_t" >&5
31518echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
31519if test "${ac_cv_type_ssize_t+set}" = set; then
31520 echo $ECHO_N "(cached) $ECHO_C" >&6
31521else
31522 cat >conftest.$ac_ext <<_ACEOF
31523/* confdefs.h. */
31524_ACEOF
31525cat confdefs.h >>conftest.$ac_ext
31526cat >>conftest.$ac_ext <<_ACEOF
31527/* end confdefs.h. */
31528$ac_includes_default
31529int
31530main ()
31531{
31532if ((ssize_t *) 0)
31533 return 0;
31534if (sizeof (ssize_t))
31535 return 0;
31536 ;
31537 return 0;
31538}
31539_ACEOF
31540rm -f conftest.$ac_objext
31541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31542 (eval $ac_compile) 2>conftest.er1
31543 ac_status=$?
31544 grep -v '^ *+' conftest.er1 >conftest.err
31545 rm -f conftest.er1
31546 cat conftest.err >&5
31547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); } &&
6ebeb4c7 31549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
31550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31551 (eval $ac_try) 2>&5
31552 ac_status=$?
31553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31554 (exit $ac_status); }; } &&
31555 { ac_try='test -s conftest.$ac_objext'
31556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31557 (eval $ac_try) 2>&5
31558 ac_status=$?
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); }; }; then
31561 ac_cv_type_ssize_t=yes
31562else
31563 echo "$as_me: failed program was:" >&5
31564sed 's/^/| /' conftest.$ac_ext >&5
31565
31566ac_cv_type_ssize_t=no
31567fi
31568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31569fi
31570echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31571echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
31572if test $ac_cv_type_ssize_t = yes; then
31573
31574cat >>confdefs.h <<_ACEOF
31575#define HAVE_SSIZE_T 1
31576_ACEOF
31577
31578
31579fi
31580
31581
a848cd7e
SC
31582
31583
31584ac_ext=cc
31585ac_cpp='$CXXCPP $CPPFLAGS'
31586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31589
31590echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
31591echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
31592if test "${wx_cv_size_t_is_uint+set}" = set; then
31593 echo $ECHO_N "(cached) $ECHO_C" >&6
31594else
31595
31596 cat >conftest.$ac_ext <<_ACEOF
31597/* confdefs.h. */
31598_ACEOF
31599cat confdefs.h >>conftest.$ac_ext
31600cat >>conftest.$ac_ext <<_ACEOF
31601/* end confdefs.h. */
31602#include <stddef.h>
31603int
31604main ()
31605{
31606
31607 return 0; }
31608
31609 struct Foo { void foo(size_t); void foo(unsigned int); };
31610
31611 int bar() {
31612
31613 ;
31614 return 0;
31615}
31616_ACEOF
31617rm -f conftest.$ac_objext
31618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31619 (eval $ac_compile) 2>conftest.er1
a848cd7e 31620 ac_status=$?
ac1cb8d3
VS
31621 grep -v '^ *+' conftest.er1 >conftest.err
31622 rm -f conftest.er1
31623 cat conftest.err >&5
a848cd7e
SC
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); } &&
6ebeb4c7 31626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31628 (eval $ac_try) 2>&5
31629 ac_status=$?
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); }; } &&
31632 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31634 (eval $ac_try) 2>&5
31635 ac_status=$?
31636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637 (exit $ac_status); }; }; then
31638 wx_cv_size_t_is_uint=no
31639else
31640 echo "$as_me: failed program was:" >&5
31641sed 's/^/| /' conftest.$ac_ext >&5
31642
31643wx_cv_size_t_is_uint=yes
31644
31645fi
ac1cb8d3 31646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31647
31648
31649fi
31650echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
31651echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
31652
31653if test "$wx_cv_size_t_is_uint" = "yes"; then
31654 cat >>confdefs.h <<\_ACEOF
31655#define wxSIZE_T_IS_UINT 1
31656_ACEOF
31657
31658else
31659 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
31660echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
31661if test "${wx_cv_size_t_is_ulong+set}" = set; then
31662 echo $ECHO_N "(cached) $ECHO_C" >&6
31663else
31664 cat >conftest.$ac_ext <<_ACEOF
31665/* confdefs.h. */
31666_ACEOF
31667cat confdefs.h >>conftest.$ac_ext
31668cat >>conftest.$ac_ext <<_ACEOF
31669/* end confdefs.h. */
31670#include <stddef.h>
31671int
31672main ()
31673{
31674
31675 return 0; }
31676
31677 struct Foo { void foo(size_t); void foo(unsigned long); };
31678
31679 int bar() {
31680
31681 ;
31682 return 0;
31683}
31684_ACEOF
31685rm -f conftest.$ac_objext
31686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31687 (eval $ac_compile) 2>conftest.er1
a848cd7e 31688 ac_status=$?
ac1cb8d3
VS
31689 grep -v '^ *+' conftest.er1 >conftest.err
31690 rm -f conftest.er1
31691 cat conftest.err >&5
a848cd7e
SC
31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); } &&
6ebeb4c7 31694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31696 (eval $ac_try) 2>&5
31697 ac_status=$?
31698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); }; } &&
31700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31702 (eval $ac_try) 2>&5
31703 ac_status=$?
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); }; }; then
31706 wx_cv_size_t_is_ulong=no
31707else
31708 echo "$as_me: failed program was:" >&5
31709sed 's/^/| /' conftest.$ac_ext >&5
31710
31711wx_cv_size_t_is_ulong=yes
31712
31713fi
ac1cb8d3 31714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31715
31716fi
31717echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
31718echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
31719
31720 if test "$wx_cv_size_t_is_ulong" = "yes"; then
31721 cat >>confdefs.h <<\_ACEOF
31722#define wxSIZE_T_IS_ULONG 1
31723_ACEOF
31724
31725 fi
31726fi
31727
31728ac_ext=c
31729ac_cpp='$CPP $CPPFLAGS'
31730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31732ac_compiler_gnu=$ac_cv_c_compiler_gnu
31733
31734
31735
31736echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
31737echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
31738if test "${wx_cv_struct_pw_gecos+set}" = set; then
31739 echo $ECHO_N "(cached) $ECHO_C" >&6
31740else
31741
31742 cat >conftest.$ac_ext <<_ACEOF
31743/* confdefs.h. */
31744_ACEOF
31745cat confdefs.h >>conftest.$ac_ext
31746cat >>conftest.$ac_ext <<_ACEOF
31747/* end confdefs.h. */
31748#include <pwd.h>
31749int
31750main ()
31751{
31752
31753 char *p;
31754 struct passwd *pw;
31755 p = pw->pw_gecos;
31756
31757 ;
31758 return 0;
31759}
31760_ACEOF
31761rm -f conftest.$ac_objext
31762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31763 (eval $ac_compile) 2>conftest.er1
a848cd7e 31764 ac_status=$?
ac1cb8d3
VS
31765 grep -v '^ *+' conftest.er1 >conftest.err
31766 rm -f conftest.er1
31767 cat conftest.err >&5
a848cd7e
SC
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769 (exit $ac_status); } &&
6ebeb4c7 31770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31772 (eval $ac_try) 2>&5
31773 ac_status=$?
31774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775 (exit $ac_status); }; } &&
31776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31778 (eval $ac_try) 2>&5
31779 ac_status=$?
31780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781 (exit $ac_status); }; }; then
31782
31783 wx_cv_struct_pw_gecos=yes
31784
31785else
31786 echo "$as_me: failed program was:" >&5
31787sed 's/^/| /' conftest.$ac_ext >&5
31788
31789
31790 wx_cv_struct_pw_gecos=no
31791
31792
31793fi
ac1cb8d3 31794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31795
31796
31797fi
31798echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
31799echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
31800
31801if test "$wx_cv_struct_pw_gecos" = "yes"; then
31802 cat >>confdefs.h <<\_ACEOF
31803#define HAVE_PW_GECOS 1
31804_ACEOF
31805
31806fi
31807
31808
47a7e797 31809if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
31810 cat >>confdefs.h <<\_ACEOF
31811#define wxUSE_WCHAR_T 1
31812_ACEOF
31813
31814
31815 WCSLEN_FOUND=0
31816 WCHAR_LINK=
31817
31818for ac_func in wcslen
31819do
31820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31821echo "$as_me:$LINENO: checking for $ac_func" >&5
31822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31823if eval "test \"\${$as_ac_var+set}\" = set"; then
31824 echo $ECHO_N "(cached) $ECHO_C" >&6
31825else
31826 cat >conftest.$ac_ext <<_ACEOF
31827/* confdefs.h. */
31828_ACEOF
31829cat confdefs.h >>conftest.$ac_ext
31830cat >>conftest.$ac_ext <<_ACEOF
31831/* end confdefs.h. */
ac1cb8d3
VS
31832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31834#define $ac_func innocuous_$ac_func
31835
a848cd7e
SC
31836/* System header to define __stub macros and hopefully few prototypes,
31837 which can conflict with char $ac_func (); below.
31838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31839 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31840
a848cd7e
SC
31841#ifdef __STDC__
31842# include <limits.h>
31843#else
31844# include <assert.h>
31845#endif
ac1cb8d3
VS
31846
31847#undef $ac_func
31848
a848cd7e
SC
31849/* Override any gcc2 internal prototype to avoid an error. */
31850#ifdef __cplusplus
31851extern "C"
31852{
31853#endif
31854/* We use char because int might match the return type of a gcc2
31855 builtin and then its argument prototype would still apply. */
31856char $ac_func ();
31857/* The GNU C library defines this for functions which it implements
31858 to always fail with ENOSYS. Some functions are actually named
31859 something starting with __ and the normal name is an alias. */
31860#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31861choke me
31862#else
31863char (*f) () = $ac_func;
31864#endif
31865#ifdef __cplusplus
31866}
31867#endif
31868
31869int
31870main ()
31871{
31872return f != $ac_func;
31873 ;
31874 return 0;
31875}
31876_ACEOF
31877rm -f conftest.$ac_objext conftest$ac_exeext
31878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31879 (eval $ac_link) 2>conftest.er1
a848cd7e 31880 ac_status=$?
ac1cb8d3
VS
31881 grep -v '^ *+' conftest.er1 >conftest.err
31882 rm -f conftest.er1
31883 cat conftest.err >&5
a848cd7e
SC
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); } &&
6ebeb4c7 31886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31888 (eval $ac_try) 2>&5
31889 ac_status=$?
31890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891 (exit $ac_status); }; } &&
31892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894 (eval $ac_try) 2>&5
31895 ac_status=$?
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); }; }; then
31898 eval "$as_ac_var=yes"
31899else
31900 echo "$as_me: failed program was:" >&5
31901sed 's/^/| /' conftest.$ac_ext >&5
31902
31903eval "$as_ac_var=no"
31904fi
ac1cb8d3
VS
31905rm -f conftest.err conftest.$ac_objext \
31906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31907fi
31908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31909echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31910if test `eval echo '${'$as_ac_var'}'` = yes; then
31911 cat >>confdefs.h <<_ACEOF
31912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31913_ACEOF
31914 WCSLEN_FOUND=1
31915fi
31916done
31917
31918
31919 if test "$WCSLEN_FOUND" = 0; then
31920 if test "$TOOLKIT" = "MSW"; then
31921 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
31922echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
31923if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
31924 echo $ECHO_N "(cached) $ECHO_C" >&6
31925else
31926 ac_check_lib_save_LIBS=$LIBS
31927LIBS="-lmsvcrt $LIBS"
31928cat >conftest.$ac_ext <<_ACEOF
31929/* confdefs.h. */
31930_ACEOF
31931cat confdefs.h >>conftest.$ac_ext
31932cat >>conftest.$ac_ext <<_ACEOF
31933/* end confdefs.h. */
31934
31935/* Override any gcc2 internal prototype to avoid an error. */
31936#ifdef __cplusplus
31937extern "C"
31938#endif
31939/* We use char because int might match the return type of a gcc2
31940 builtin and then its argument prototype would still apply. */
31941char wcslen ();
31942int
31943main ()
31944{
31945wcslen ();
31946 ;
31947 return 0;
31948}
31949_ACEOF
31950rm -f conftest.$ac_objext conftest$ac_exeext
31951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31952 (eval $ac_link) 2>conftest.er1
a848cd7e 31953 ac_status=$?
ac1cb8d3
VS
31954 grep -v '^ *+' conftest.er1 >conftest.err
31955 rm -f conftest.er1
31956 cat conftest.err >&5
a848cd7e
SC
31957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); } &&
6ebeb4c7 31959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31961 (eval $ac_try) 2>&5
31962 ac_status=$?
31963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31964 (exit $ac_status); }; } &&
31965 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31967 (eval $ac_try) 2>&5
31968 ac_status=$?
31969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970 (exit $ac_status); }; }; then
31971 ac_cv_lib_msvcrt_wcslen=yes
31972else
31973 echo "$as_me: failed program was:" >&5
31974sed 's/^/| /' conftest.$ac_ext >&5
31975
31976ac_cv_lib_msvcrt_wcslen=no
31977fi
ac1cb8d3
VS
31978rm -f conftest.err conftest.$ac_objext \
31979 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31980LIBS=$ac_check_lib_save_LIBS
31981fi
31982echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31983echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31984if test $ac_cv_lib_msvcrt_wcslen = yes; then
31985 WCHAR_OK=1
31986fi
31987
31988 else
31989 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31990echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31991if test "${ac_cv_lib_w_wcslen+set}" = set; then
31992 echo $ECHO_N "(cached) $ECHO_C" >&6
31993else
31994 ac_check_lib_save_LIBS=$LIBS
31995LIBS="-lw $LIBS"
31996cat >conftest.$ac_ext <<_ACEOF
31997/* confdefs.h. */
31998_ACEOF
31999cat confdefs.h >>conftest.$ac_ext
32000cat >>conftest.$ac_ext <<_ACEOF
32001/* end confdefs.h. */
32002
32003/* Override any gcc2 internal prototype to avoid an error. */
32004#ifdef __cplusplus
32005extern "C"
32006#endif
32007/* We use char because int might match the return type of a gcc2
32008 builtin and then its argument prototype would still apply. */
32009char wcslen ();
32010int
32011main ()
32012{
32013wcslen ();
32014 ;
32015 return 0;
32016}
32017_ACEOF
32018rm -f conftest.$ac_objext conftest$ac_exeext
32019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32020 (eval $ac_link) 2>conftest.er1
a848cd7e 32021 ac_status=$?
ac1cb8d3
VS
32022 grep -v '^ *+' conftest.er1 >conftest.err
32023 rm -f conftest.er1
32024 cat conftest.err >&5
a848cd7e
SC
32025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32026 (exit $ac_status); } &&
6ebeb4c7 32027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32029 (eval $ac_try) 2>&5
32030 ac_status=$?
32031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032 (exit $ac_status); }; } &&
32033 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32035 (eval $ac_try) 2>&5
32036 ac_status=$?
32037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038 (exit $ac_status); }; }; then
32039 ac_cv_lib_w_wcslen=yes
32040else
32041 echo "$as_me: failed program was:" >&5
32042sed 's/^/| /' conftest.$ac_ext >&5
32043
32044ac_cv_lib_w_wcslen=no
32045fi
ac1cb8d3
VS
32046rm -f conftest.err conftest.$ac_objext \
32047 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32048LIBS=$ac_check_lib_save_LIBS
32049fi
32050echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
32051echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
32052if test $ac_cv_lib_w_wcslen = yes; then
32053
32054 WCHAR_LINK=" -lw"
32055 WCSLEN_FOUND=1
32056
32057fi
32058
32059 fi
32060 fi
32061
32062 if test "$WCSLEN_FOUND" = 1; then
32063 cat >>confdefs.h <<\_ACEOF
32064#define HAVE_WCSLEN 1
32065_ACEOF
32066
32067 fi
32068
efdf6afe 32069 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
32070 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
32071 fi
32072
efdf6afe
VZ
32073 echo "$as_me:$LINENO: checking for mbstate_t" >&5
32074echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
32075if test "${ac_cv_type_mbstate_t+set}" = set; then
32076 echo $ECHO_N "(cached) $ECHO_C" >&6
32077else
32078 cat >conftest.$ac_ext <<_ACEOF
32079/* confdefs.h. */
32080_ACEOF
32081cat confdefs.h >>conftest.$ac_ext
32082cat >>conftest.$ac_ext <<_ACEOF
32083/* end confdefs.h. */
32084#include <wchar.h>
32085
32086int
32087main ()
32088{
32089if ((mbstate_t *) 0)
32090 return 0;
32091if (sizeof (mbstate_t))
32092 return 0;
32093 ;
32094 return 0;
32095}
32096_ACEOF
32097rm -f conftest.$ac_objext
32098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32099 (eval $ac_compile) 2>conftest.er1
32100 ac_status=$?
32101 grep -v '^ *+' conftest.er1 >conftest.err
32102 rm -f conftest.er1
32103 cat conftest.err >&5
32104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105 (exit $ac_status); } &&
32106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32108 (eval $ac_try) 2>&5
32109 ac_status=$?
32110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); }; } &&
32112 { ac_try='test -s conftest.$ac_objext'
32113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32114 (eval $ac_try) 2>&5
32115 ac_status=$?
32116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117 (exit $ac_status); }; }; then
32118 ac_cv_type_mbstate_t=yes
32119else
32120 echo "$as_me: failed program was:" >&5
32121sed 's/^/| /' conftest.$ac_ext >&5
32122
32123ac_cv_type_mbstate_t=no
32124fi
32125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32126fi
32127echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32128echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
32129if test $ac_cv_type_mbstate_t = yes; then
32130
32131cat >>confdefs.h <<_ACEOF
32132#define HAVE_MBSTATE_T 1
32133_ACEOF
32134
a848cd7e
SC
32135
32136for ac_func in wcsrtombs
32137do
32138as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32139echo "$as_me:$LINENO: checking for $ac_func" >&5
32140echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32141if eval "test \"\${$as_ac_var+set}\" = set"; then
32142 echo $ECHO_N "(cached) $ECHO_C" >&6
32143else
32144 cat >conftest.$ac_ext <<_ACEOF
32145/* confdefs.h. */
32146_ACEOF
32147cat confdefs.h >>conftest.$ac_ext
32148cat >>conftest.$ac_ext <<_ACEOF
32149/* end confdefs.h. */
ac1cb8d3
VS
32150/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32152#define $ac_func innocuous_$ac_func
32153
a848cd7e
SC
32154/* System header to define __stub macros and hopefully few prototypes,
32155 which can conflict with char $ac_func (); below.
32156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32157 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32158
a848cd7e
SC
32159#ifdef __STDC__
32160# include <limits.h>
32161#else
32162# include <assert.h>
32163#endif
ac1cb8d3
VS
32164
32165#undef $ac_func
32166
a848cd7e
SC
32167/* Override any gcc2 internal prototype to avoid an error. */
32168#ifdef __cplusplus
32169extern "C"
32170{
32171#endif
32172/* We use char because int might match the return type of a gcc2
32173 builtin and then its argument prototype would still apply. */
32174char $ac_func ();
32175/* The GNU C library defines this for functions which it implements
32176 to always fail with ENOSYS. Some functions are actually named
32177 something starting with __ and the normal name is an alias. */
32178#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32179choke me
32180#else
32181char (*f) () = $ac_func;
32182#endif
32183#ifdef __cplusplus
32184}
32185#endif
32186
32187int
32188main ()
32189{
32190return f != $ac_func;
32191 ;
32192 return 0;
32193}
32194_ACEOF
32195rm -f conftest.$ac_objext conftest$ac_exeext
32196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32197 (eval $ac_link) 2>conftest.er1
a848cd7e 32198 ac_status=$?
ac1cb8d3
VS
32199 grep -v '^ *+' conftest.er1 >conftest.err
32200 rm -f conftest.er1
32201 cat conftest.err >&5
a848cd7e
SC
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); } &&
6ebeb4c7 32204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32206 (eval $ac_try) 2>&5
32207 ac_status=$?
32208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209 (exit $ac_status); }; } &&
32210 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32212 (eval $ac_try) 2>&5
32213 ac_status=$?
32214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215 (exit $ac_status); }; }; then
32216 eval "$as_ac_var=yes"
32217else
32218 echo "$as_me: failed program was:" >&5
32219sed 's/^/| /' conftest.$ac_ext >&5
32220
32221eval "$as_ac_var=no"
32222fi
ac1cb8d3
VS
32223rm -f conftest.err conftest.$ac_objext \
32224 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32225fi
32226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32227echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32228if test `eval echo '${'$as_ac_var'}'` = yes; then
32229 cat >>confdefs.h <<_ACEOF
32230#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32231_ACEOF
32232
32233fi
32234done
32235
efdf6afe
VZ
32236fi
32237
a848cd7e
SC
32238else
32239 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
32240echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
32241fi
32242
32243
32244
32245ac_ext=cc
32246ac_cpp='$CXXCPP $CPPFLAGS'
32247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32250
32251
32252
4a767dd5
VZ
32253
32254for ac_func in snprintf vsnprintf
a848cd7e
SC
32255do
32256as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32257echo "$as_me:$LINENO: checking for $ac_func" >&5
32258echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32259if eval "test \"\${$as_ac_var+set}\" = set"; then
32260 echo $ECHO_N "(cached) $ECHO_C" >&6
32261else
32262 cat >conftest.$ac_ext <<_ACEOF
32263/* confdefs.h. */
32264_ACEOF
32265cat confdefs.h >>conftest.$ac_ext
32266cat >>conftest.$ac_ext <<_ACEOF
32267/* end confdefs.h. */
ac1cb8d3
VS
32268/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32270#define $ac_func innocuous_$ac_func
32271
a848cd7e
SC
32272/* System header to define __stub macros and hopefully few prototypes,
32273 which can conflict with char $ac_func (); below.
32274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32275 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32276
a848cd7e
SC
32277#ifdef __STDC__
32278# include <limits.h>
32279#else
32280# include <assert.h>
32281#endif
ac1cb8d3
VS
32282
32283#undef $ac_func
32284
a848cd7e
SC
32285/* Override any gcc2 internal prototype to avoid an error. */
32286#ifdef __cplusplus
32287extern "C"
32288{
32289#endif
32290/* We use char because int might match the return type of a gcc2
32291 builtin and then its argument prototype would still apply. */
32292char $ac_func ();
32293/* The GNU C library defines this for functions which it implements
32294 to always fail with ENOSYS. Some functions are actually named
32295 something starting with __ and the normal name is an alias. */
32296#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32297choke me
32298#else
32299char (*f) () = $ac_func;
32300#endif
32301#ifdef __cplusplus
32302}
32303#endif
32304
32305int
32306main ()
32307{
32308return f != $ac_func;
32309 ;
32310 return 0;
32311}
32312_ACEOF
32313rm -f conftest.$ac_objext conftest$ac_exeext
32314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32315 (eval $ac_link) 2>conftest.er1
a848cd7e 32316 ac_status=$?
ac1cb8d3
VS
32317 grep -v '^ *+' conftest.er1 >conftest.err
32318 rm -f conftest.er1
32319 cat conftest.err >&5
a848cd7e
SC
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); } &&
6ebeb4c7 32322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32324 (eval $ac_try) 2>&5
32325 ac_status=$?
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); }; } &&
32328 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32330 (eval $ac_try) 2>&5
32331 ac_status=$?
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); }; }; then
32334 eval "$as_ac_var=yes"
32335else
32336 echo "$as_me: failed program was:" >&5
32337sed 's/^/| /' conftest.$ac_ext >&5
32338
32339eval "$as_ac_var=no"
32340fi
ac1cb8d3
VS
32341rm -f conftest.err conftest.$ac_objext \
32342 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32343fi
32344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32345echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32346if test `eval echo '${'$as_ac_var'}'` = yes; then
32347 cat >>confdefs.h <<_ACEOF
32348#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32349_ACEOF
32350
32351fi
32352done
32353
32354
32355if test "$ac_cv_func_vsnprintf" = "yes"; then
32356 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
32357echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
32358if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
32359 echo $ECHO_N "(cached) $ECHO_C" >&6
32360else
32361
efdf6afe 32362 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
32363/* confdefs.h. */
32364_ACEOF
32365cat confdefs.h >>conftest.$ac_ext
32366cat >>conftest.$ac_ext <<_ACEOF
32367/* end confdefs.h. */
32368
32369 #include <stdio.h>
32370 #include <stdarg.h>
efdf6afe
VZ
32371 #ifdef __MSL__
32372 #if __MSL__ >= 0x6000
32373 namespace std {}
32374 using namespace std;
32375 #endif
32376 #endif
a848cd7e
SC
32377
32378int
32379main ()
32380{
32381
32382 char *buf;
32383 va_list ap;
62fa8b3a 32384 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
32385
32386 ;
32387 return 0;
32388}
32389_ACEOF
32390rm -f conftest.$ac_objext
32391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32392 (eval $ac_compile) 2>conftest.er1
32393 ac_status=$?
32394 grep -v '^ *+' conftest.er1 >conftest.err
32395 rm -f conftest.er1
32396 cat conftest.err >&5
32397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398 (exit $ac_status); } &&
6ebeb4c7 32399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
32400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32401 (eval $ac_try) 2>&5
32402 ac_status=$?
32403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32404 (exit $ac_status); }; } &&
32405 { ac_try='test -s conftest.$ac_objext'
32406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32407 (eval $ac_try) 2>&5
32408 ac_status=$?
32409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410 (exit $ac_status); }; }; then
32411 wx_cv_func_vsnprintf_decl=yes
32412else
32413 echo "$as_me: failed program was:" >&5
32414sed 's/^/| /' conftest.$ac_ext >&5
32415
a848cd7e
SC
32416wx_cv_func_vsnprintf_decl=no
32417
32418fi
ac1cb8d3 32419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32420
32421
32422fi
32423echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
32424echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
32425
32426 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
32427 cat >>confdefs.h <<\_ACEOF
32428#define HAVE_VSNPRINTF_DECL 1
32429_ACEOF
32430
62fa8b3a
MW
32431
32432 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
32433echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
32434if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
32435 echo $ECHO_N "(cached) $ECHO_C" >&6
32436else
32437
32438 cat >conftest.$ac_ext <<_ACEOF
32439/* confdefs.h. */
32440_ACEOF
32441cat confdefs.h >>conftest.$ac_ext
32442cat >>conftest.$ac_ext <<_ACEOF
32443/* end confdefs.h. */
32444
32445 #include <stdio.h>
32446 #include <stdarg.h>
32447 #ifdef __MSL__
32448 #if __MSL__ >= 0x6000
32449 namespace std {}
32450 using namespace std;
32451 #endif
32452 #endif
32453
32454int
32455main ()
32456{
32457
32458 char *buf;
32459 va_list ap;
32460 const char *fmt = "%s";
32461 vsnprintf(buf, 10u, fmt, ap);
32462
32463 ;
32464 return 0;
32465}
32466_ACEOF
32467rm -f conftest.$ac_objext
32468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32469 (eval $ac_compile) 2>conftest.er1
32470 ac_status=$?
32471 grep -v '^ *+' conftest.er1 >conftest.err
32472 rm -f conftest.er1
32473 cat conftest.err >&5
32474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475 (exit $ac_status); } &&
32476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32478 (eval $ac_try) 2>&5
32479 ac_status=$?
32480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32481 (exit $ac_status); }; } &&
32482 { ac_try='test -s conftest.$ac_objext'
32483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32484 (eval $ac_try) 2>&5
32485 ac_status=$?
32486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487 (exit $ac_status); }; }; then
32488 wx_cv_func_broken_vsnprintf_decl=no
32489else
32490 echo "$as_me: failed program was:" >&5
32491sed 's/^/| /' conftest.$ac_ext >&5
32492
32493wx_cv_func_broken_vsnprintf_decl=yes
32494
32495fi
32496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32497
32498
32499fi
32500echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
32501echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
32502
32503 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
32504 cat >>confdefs.h <<\_ACEOF
32505#define HAVE_BROKEN_VSNPRINTF_DECL 1
32506_ACEOF
32507
32508 fi
a848cd7e
SC
32509 fi
32510fi
32511
4a767dd5
VZ
32512if test "$ac_cv_func_snprintf" = "yes"; then
32513 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
32514echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
32515if test "${wx_cv_func_snprintf_decl+set}" = set; then
32516 echo $ECHO_N "(cached) $ECHO_C" >&6
32517else
32518
32519 cat >conftest.$ac_ext <<_ACEOF
32520/* confdefs.h. */
32521_ACEOF
32522cat confdefs.h >>conftest.$ac_ext
32523cat >>conftest.$ac_ext <<_ACEOF
32524/* end confdefs.h. */
32525
32526 #include <stdio.h>
32527 #include <stdarg.h>
32528 #ifdef __MSL__
32529 #if __MSL__ >= 0x6000
32530 namespace std {}
32531 using namespace std;
32532 #endif
32533 #endif
32534
32535int
32536main ()
32537{
32538
32539 char *buf;
62fa8b3a 32540 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
32541
32542 ;
32543 return 0;
32544}
32545_ACEOF
32546rm -f conftest.$ac_objext
32547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32548 (eval $ac_compile) 2>conftest.er1
32549 ac_status=$?
32550 grep -v '^ *+' conftest.er1 >conftest.err
32551 rm -f conftest.er1
32552 cat conftest.err >&5
32553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); } &&
32555 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32557 (eval $ac_try) 2>&5
32558 ac_status=$?
32559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32560 (exit $ac_status); }; } &&
32561 { ac_try='test -s conftest.$ac_objext'
32562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32563 (eval $ac_try) 2>&5
32564 ac_status=$?
32565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32566 (exit $ac_status); }; }; then
32567 wx_cv_func_snprintf_decl=yes
32568else
32569 echo "$as_me: failed program was:" >&5
32570sed 's/^/| /' conftest.$ac_ext >&5
32571
32572wx_cv_func_snprintf_decl=no
32573
32574fi
32575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32576
32577
32578fi
32579echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
32580echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
32581
32582 if test "$wx_cv_func_snprintf_decl" = "yes"; then
32583 cat >>confdefs.h <<\_ACEOF
32584#define HAVE_SNPRINTF_DECL 1
32585_ACEOF
32586
62fa8b3a
MW
32587
32588 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
32589echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
32590if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
32591 echo $ECHO_N "(cached) $ECHO_C" >&6
32592else
32593
32594 cat >conftest.$ac_ext <<_ACEOF
32595/* confdefs.h. */
32596_ACEOF
32597cat confdefs.h >>conftest.$ac_ext
32598cat >>conftest.$ac_ext <<_ACEOF
32599/* end confdefs.h. */
32600
32601 #include <stdio.h>
32602 #include <stdarg.h>
32603 #ifdef __MSL__
32604 #if __MSL__ >= 0x6000
32605 namespace std {}
32606 using namespace std;
32607 #endif
32608 #endif
32609
32610int
32611main ()
32612{
32613
32614 char *buf;
32615 const char *fmt = "%s";
32616 snprintf(buf, 10u, fmt, "wx");
32617
32618 ;
32619 return 0;
32620}
32621_ACEOF
32622rm -f conftest.$ac_objext
32623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32624 (eval $ac_compile) 2>conftest.er1
32625 ac_status=$?
32626 grep -v '^ *+' conftest.er1 >conftest.err
32627 rm -f conftest.er1
32628 cat conftest.err >&5
32629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630 (exit $ac_status); } &&
32631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32633 (eval $ac_try) 2>&5
32634 ac_status=$?
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); }; } &&
32637 { ac_try='test -s conftest.$ac_objext'
32638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32639 (eval $ac_try) 2>&5
32640 ac_status=$?
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); }; }; then
32643 wx_cv_func_broken_snprintf_decl=no
32644else
32645 echo "$as_me: failed program was:" >&5
32646sed 's/^/| /' conftest.$ac_ext >&5
32647
32648wx_cv_func_broken_snprintf_decl=yes
32649
32650fi
32651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32652
32653
32654fi
32655echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
32656echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
32657
32658 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
32659 cat >>confdefs.h <<\_ACEOF
32660#define HAVE_BROKEN_SNPRINTF_DECL 1
32661_ACEOF
32662
32663 fi
4a767dd5
VZ
32664 fi
32665fi
32666
a848cd7e
SC
32667if test "$wxUSE_UNICODE" = yes; then
32668
32669
32670
fbe47c7b
VS
32671
32672
32673
32674for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
32675do
32676as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32677echo "$as_me:$LINENO: checking for $ac_func" >&5
32678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32679if eval "test \"\${$as_ac_var+set}\" = set"; then
32680 echo $ECHO_N "(cached) $ECHO_C" >&6
32681else
32682 cat >conftest.$ac_ext <<_ACEOF
32683/* confdefs.h. */
32684_ACEOF
32685cat confdefs.h >>conftest.$ac_ext
32686cat >>conftest.$ac_ext <<_ACEOF
32687/* end confdefs.h. */
ac1cb8d3
VS
32688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32690#define $ac_func innocuous_$ac_func
32691
a848cd7e
SC
32692/* System header to define __stub macros and hopefully few prototypes,
32693 which can conflict with char $ac_func (); below.
32694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32695 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32696
a848cd7e
SC
32697#ifdef __STDC__
32698# include <limits.h>
32699#else
32700# include <assert.h>
32701#endif
ac1cb8d3
VS
32702
32703#undef $ac_func
32704
a848cd7e
SC
32705/* Override any gcc2 internal prototype to avoid an error. */
32706#ifdef __cplusplus
32707extern "C"
32708{
32709#endif
32710/* We use char because int might match the return type of a gcc2
32711 builtin and then its argument prototype would still apply. */
32712char $ac_func ();
32713/* The GNU C library defines this for functions which it implements
32714 to always fail with ENOSYS. Some functions are actually named
32715 something starting with __ and the normal name is an alias. */
32716#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32717choke me
32718#else
32719char (*f) () = $ac_func;
32720#endif
32721#ifdef __cplusplus
32722}
32723#endif
32724
32725int
32726main ()
32727{
32728return f != $ac_func;
32729 ;
32730 return 0;
32731}
32732_ACEOF
32733rm -f conftest.$ac_objext conftest$ac_exeext
32734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32735 (eval $ac_link) 2>conftest.er1
a848cd7e 32736 ac_status=$?
ac1cb8d3
VS
32737 grep -v '^ *+' conftest.er1 >conftest.err
32738 rm -f conftest.er1
32739 cat conftest.err >&5
a848cd7e
SC
32740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32741 (exit $ac_status); } &&
6ebeb4c7 32742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32744 (eval $ac_try) 2>&5
32745 ac_status=$?
32746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747 (exit $ac_status); }; } &&
32748 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32750 (eval $ac_try) 2>&5
32751 ac_status=$?
32752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753 (exit $ac_status); }; }; then
32754 eval "$as_ac_var=yes"
32755else
32756 echo "$as_me: failed program was:" >&5
32757sed 's/^/| /' conftest.$ac_ext >&5
32758
32759eval "$as_ac_var=no"
32760fi
ac1cb8d3
VS
32761rm -f conftest.err conftest.$ac_objext \
32762 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32763fi
32764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32765echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32766if test `eval echo '${'$as_ac_var'}'` = yes; then
32767 cat >>confdefs.h <<_ACEOF
32768#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32769_ACEOF
32770
32771fi
32772done
32773
32774
32775 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
32776echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
32777 cat >conftest.$ac_ext <<_ACEOF
32778/* confdefs.h. */
32779_ACEOF
32780cat confdefs.h >>conftest.$ac_ext
32781cat >>conftest.$ac_ext <<_ACEOF
32782/* end confdefs.h. */
32783#include <wchar.h>
32784int
32785main ()
32786{
32787&_vsnwprintf;
32788 ;
32789 return 0;
32790}
32791_ACEOF
32792rm -f conftest.$ac_objext
32793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32794 (eval $ac_compile) 2>conftest.er1
a848cd7e 32795 ac_status=$?
ac1cb8d3
VS
32796 grep -v '^ *+' conftest.er1 >conftest.err
32797 rm -f conftest.er1
32798 cat conftest.err >&5
a848cd7e
SC
32799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800 (exit $ac_status); } &&
6ebeb4c7 32801 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32803 (eval $ac_try) 2>&5
32804 ac_status=$?
32805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806 (exit $ac_status); }; } &&
32807 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32809 (eval $ac_try) 2>&5
32810 ac_status=$?
32811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32812 (exit $ac_status); }; }; then
32813 echo "$as_me:$LINENO: result: yes" >&5
32814echo "${ECHO_T}yes" >&6
32815 cat >>confdefs.h <<\_ACEOF
32816#define HAVE__VSNWPRINTF 1
32817_ACEOF
32818
32819else
32820 echo "$as_me: failed program was:" >&5
32821sed 's/^/| /' conftest.$ac_ext >&5
32822
32823echo "$as_me:$LINENO: result: no" >&5
32824echo "${ECHO_T}no" >&6
32825fi
ac1cb8d3 32826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
32827fi
32828
32829ac_ext=c
32830ac_cpp='$CPP $CPPFLAGS'
32831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32833ac_compiler_gnu=$ac_cv_c_compiler_gnu
32834
32835
6ebeb4c7
VZ
32836if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
32837
32838for ac_func in fnmatch
32839do
32840as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32841echo "$as_me:$LINENO: checking for $ac_func" >&5
32842echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32843if eval "test \"\${$as_ac_var+set}\" = set"; then
32844 echo $ECHO_N "(cached) $ECHO_C" >&6
32845else
32846 cat >conftest.$ac_ext <<_ACEOF
32847/* confdefs.h. */
32848_ACEOF
32849cat confdefs.h >>conftest.$ac_ext
32850cat >>conftest.$ac_ext <<_ACEOF
32851/* end confdefs.h. */
32852/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32854#define $ac_func innocuous_$ac_func
32855
32856/* System header to define __stub macros and hopefully few prototypes,
32857 which can conflict with char $ac_func (); below.
32858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32859 <limits.h> exists even on freestanding compilers. */
32860
32861#ifdef __STDC__
32862# include <limits.h>
32863#else
32864# include <assert.h>
32865#endif
32866
32867#undef $ac_func
32868
32869/* Override any gcc2 internal prototype to avoid an error. */
32870#ifdef __cplusplus
32871extern "C"
32872{
32873#endif
32874/* We use char because int might match the return type of a gcc2
32875 builtin and then its argument prototype would still apply. */
32876char $ac_func ();
32877/* The GNU C library defines this for functions which it implements
32878 to always fail with ENOSYS. Some functions are actually named
32879 something starting with __ and the normal name is an alias. */
32880#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32881choke me
32882#else
32883char (*f) () = $ac_func;
32884#endif
32885#ifdef __cplusplus
32886}
32887#endif
32888
32889int
32890main ()
32891{
32892return f != $ac_func;
32893 ;
32894 return 0;
32895}
32896_ACEOF
32897rm -f conftest.$ac_objext conftest$ac_exeext
32898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32899 (eval $ac_link) 2>conftest.er1
32900 ac_status=$?
32901 grep -v '^ *+' conftest.er1 >conftest.err
32902 rm -f conftest.er1
32903 cat conftest.err >&5
32904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32905 (exit $ac_status); } &&
32906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32908 (eval $ac_try) 2>&5
32909 ac_status=$?
32910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32911 (exit $ac_status); }; } &&
32912 { ac_try='test -s conftest$ac_exeext'
32913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32914 (eval $ac_try) 2>&5
32915 ac_status=$?
32916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917 (exit $ac_status); }; }; then
32918 eval "$as_ac_var=yes"
32919else
32920 echo "$as_me: failed program was:" >&5
32921sed 's/^/| /' conftest.$ac_ext >&5
32922
32923eval "$as_ac_var=no"
32924fi
32925rm -f conftest.err conftest.$ac_objext \
32926 conftest$ac_exeext conftest.$ac_ext
32927fi
32928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32929echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32930if test `eval echo '${'$as_ac_var'}'` = yes; then
32931 cat >>confdefs.h <<_ACEOF
32932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32933_ACEOF
32934
32935fi
32936done
32937
32938fi
32939
32940if test "$wxUSE_FILE" = "yes"; then
32941
32942for ac_func in fsync
32943do
32944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32945echo "$as_me:$LINENO: checking for $ac_func" >&5
32946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32947if eval "test \"\${$as_ac_var+set}\" = set"; then
32948 echo $ECHO_N "(cached) $ECHO_C" >&6
32949else
32950 cat >conftest.$ac_ext <<_ACEOF
32951/* confdefs.h. */
32952_ACEOF
32953cat confdefs.h >>conftest.$ac_ext
32954cat >>conftest.$ac_ext <<_ACEOF
32955/* end confdefs.h. */
32956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32958#define $ac_func innocuous_$ac_func
32959
32960/* System header to define __stub macros and hopefully few prototypes,
32961 which can conflict with char $ac_func (); below.
32962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32963 <limits.h> exists even on freestanding compilers. */
32964
32965#ifdef __STDC__
32966# include <limits.h>
32967#else
32968# include <assert.h>
32969#endif
32970
32971#undef $ac_func
32972
32973/* Override any gcc2 internal prototype to avoid an error. */
32974#ifdef __cplusplus
32975extern "C"
32976{
32977#endif
32978/* We use char because int might match the return type of a gcc2
32979 builtin and then its argument prototype would still apply. */
32980char $ac_func ();
32981/* The GNU C library defines this for functions which it implements
32982 to always fail with ENOSYS. Some functions are actually named
32983 something starting with __ and the normal name is an alias. */
32984#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32985choke me
32986#else
32987char (*f) () = $ac_func;
32988#endif
32989#ifdef __cplusplus
32990}
32991#endif
32992
32993int
32994main ()
32995{
32996return f != $ac_func;
32997 ;
32998 return 0;
32999}
33000_ACEOF
33001rm -f conftest.$ac_objext conftest$ac_exeext
33002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33003 (eval $ac_link) 2>conftest.er1
33004 ac_status=$?
33005 grep -v '^ *+' conftest.er1 >conftest.err
33006 rm -f conftest.er1
33007 cat conftest.err >&5
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); } &&
33010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33012 (eval $ac_try) 2>&5
33013 ac_status=$?
33014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33015 (exit $ac_status); }; } &&
33016 { ac_try='test -s conftest$ac_exeext'
33017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33018 (eval $ac_try) 2>&5
33019 ac_status=$?
33020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33021 (exit $ac_status); }; }; then
33022 eval "$as_ac_var=yes"
33023else
33024 echo "$as_me: failed program was:" >&5
33025sed 's/^/| /' conftest.$ac_ext >&5
33026
33027eval "$as_ac_var=no"
33028fi
33029rm -f conftest.err conftest.$ac_objext \
33030 conftest$ac_exeext conftest.$ac_ext
33031fi
33032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33033echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33034if test `eval echo '${'$as_ac_var'}'` = yes; then
33035 cat >>confdefs.h <<_ACEOF
33036#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33037_ACEOF
33038
33039fi
33040done
33041
33042fi
a848cd7e
SC
33043
33044
33045if test "$TOOLKIT" != "MSW"; then
33046
33047
33048
33049
33050ac_ext=cc
33051ac_cpp='$CXXCPP $CPPFLAGS'
33052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33055
33056
33057
33058
33059# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
33060if test "${with_libiconv_prefix+set}" = set; then
33061 withval="$with_libiconv_prefix"
33062
33063 for dir in `echo "$withval" | tr : ' '`; do
33064 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
33065 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
33066 done
33067
33068fi;
33069
33070 echo "$as_me:$LINENO: checking for iconv" >&5
33071echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33072if test "${am_cv_func_iconv+set}" = set; then
33073 echo $ECHO_N "(cached) $ECHO_C" >&6
33074else
33075
33076 am_cv_func_iconv="no, consider installing GNU libiconv"
33077 am_cv_lib_iconv=no
33078 cat >conftest.$ac_ext <<_ACEOF
33079/* confdefs.h. */
33080_ACEOF
33081cat confdefs.h >>conftest.$ac_ext
33082cat >>conftest.$ac_ext <<_ACEOF
33083/* end confdefs.h. */
33084#include <stdlib.h>
33085#include <iconv.h>
33086int
33087main ()
33088{
33089iconv_t cd = iconv_open("","");
33090 iconv(cd,NULL,NULL,NULL,NULL);
33091 iconv_close(cd);
33092 ;
33093 return 0;
33094}
33095_ACEOF
33096rm -f conftest.$ac_objext conftest$ac_exeext
33097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33098 (eval $ac_link) 2>conftest.er1
a848cd7e 33099 ac_status=$?
ac1cb8d3
VS
33100 grep -v '^ *+' conftest.er1 >conftest.err
33101 rm -f conftest.er1
33102 cat conftest.err >&5
a848cd7e
SC
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); } &&
6ebeb4c7 33105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33107 (eval $ac_try) 2>&5
33108 ac_status=$?
33109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33110 (exit $ac_status); }; } &&
33111 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33113 (eval $ac_try) 2>&5
33114 ac_status=$?
33115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116 (exit $ac_status); }; }; then
33117 am_cv_func_iconv=yes
33118else
33119 echo "$as_me: failed program was:" >&5
33120sed 's/^/| /' conftest.$ac_ext >&5
33121
33122fi
ac1cb8d3
VS
33123rm -f conftest.err conftest.$ac_objext \
33124 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33125 if test "$am_cv_func_iconv" != yes; then
33126 am_save_LIBS="$LIBS"
33127 LIBS="$LIBS -liconv"
33128 cat >conftest.$ac_ext <<_ACEOF
33129/* confdefs.h. */
33130_ACEOF
33131cat confdefs.h >>conftest.$ac_ext
33132cat >>conftest.$ac_ext <<_ACEOF
33133/* end confdefs.h. */
33134#include <stdlib.h>
33135#include <iconv.h>
33136int
33137main ()
33138{
33139iconv_t cd = iconv_open("","");
33140 iconv(cd,NULL,NULL,NULL,NULL);
33141 iconv_close(cd);
33142 ;
33143 return 0;
33144}
33145_ACEOF
33146rm -f conftest.$ac_objext conftest$ac_exeext
33147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33148 (eval $ac_link) 2>conftest.er1
a848cd7e 33149 ac_status=$?
ac1cb8d3
VS
33150 grep -v '^ *+' conftest.er1 >conftest.err
33151 rm -f conftest.er1
33152 cat conftest.err >&5
a848cd7e
SC
33153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33154 (exit $ac_status); } &&
6ebeb4c7 33155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33157 (eval $ac_try) 2>&5
33158 ac_status=$?
33159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160 (exit $ac_status); }; } &&
33161 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33163 (eval $ac_try) 2>&5
33164 ac_status=$?
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); }; }; then
33167 am_cv_lib_iconv=yes
33168 am_cv_func_iconv=yes
33169else
33170 echo "$as_me: failed program was:" >&5
33171sed 's/^/| /' conftest.$ac_ext >&5
33172
33173fi
ac1cb8d3
VS
33174rm -f conftest.err conftest.$ac_objext \
33175 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33176 LIBS="$am_save_LIBS"
33177 fi
33178
33179fi
33180echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33181echo "${ECHO_T}$am_cv_func_iconv" >&6
33182 if test "$am_cv_func_iconv" = yes; then
33183
33184cat >>confdefs.h <<\_ACEOF
33185#define HAVE_ICONV 1
33186_ACEOF
33187
33188 echo "$as_me:$LINENO: checking if iconv needs const" >&5
33189echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
33190if test "${wx_cv_func_iconv_const+set}" = set; then
33191 echo $ECHO_N "(cached) $ECHO_C" >&6
33192else
33193 cat >conftest.$ac_ext <<_ACEOF
33194/* confdefs.h. */
33195_ACEOF
33196cat confdefs.h >>conftest.$ac_ext
33197cat >>conftest.$ac_ext <<_ACEOF
33198/* end confdefs.h. */
33199
33200#include <stdlib.h>
33201#include <iconv.h>
33202extern
33203#ifdef __cplusplus
33204"C"
33205#endif
33206#if defined(__STDC__) || defined(__cplusplus)
33207size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33208#else
33209size_t iconv();
33210#endif
33211
33212int
33213main ()
33214{
33215
33216 ;
33217 return 0;
33218}
33219_ACEOF
33220rm -f conftest.$ac_objext
33221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33222 (eval $ac_compile) 2>conftest.er1
a848cd7e 33223 ac_status=$?
ac1cb8d3
VS
33224 grep -v '^ *+' conftest.er1 >conftest.err
33225 rm -f conftest.er1
33226 cat conftest.err >&5
a848cd7e
SC
33227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); } &&
6ebeb4c7 33229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33231 (eval $ac_try) 2>&5
33232 ac_status=$?
33233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33234 (exit $ac_status); }; } &&
33235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33237 (eval $ac_try) 2>&5
33238 ac_status=$?
33239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240 (exit $ac_status); }; }; then
33241 wx_cv_func_iconv_const="no"
33242else
33243 echo "$as_me: failed program was:" >&5
33244sed 's/^/| /' conftest.$ac_ext >&5
33245
33246wx_cv_func_iconv_const="yes"
33247
33248fi
ac1cb8d3 33249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33250
33251fi
33252echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
33253echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
33254
33255 iconv_const=
33256 if test "x$wx_cv_func_iconv_const" = "xyes"; then
33257 iconv_const="const"
33258 fi
33259
33260
33261cat >>confdefs.h <<_ACEOF
33262#define ICONV_CONST $iconv_const
33263_ACEOF
33264
33265 fi
33266 LIBICONV=
33267 if test "$am_cv_lib_iconv" = yes; then
33268 LIBICONV="-liconv"
33269 fi
33270
33271
33272LIBS="$LIBICONV $LIBS"
33273ac_ext=c
33274ac_cpp='$CPP $CPPFLAGS'
33275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33277ac_compiler_gnu=$ac_cv_c_compiler_gnu
33278
33279
33280if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33281
33282for ac_func in sigaction
33283do
33284as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33285echo "$as_me:$LINENO: checking for $ac_func" >&5
33286echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33287if eval "test \"\${$as_ac_var+set}\" = set"; then
33288 echo $ECHO_N "(cached) $ECHO_C" >&6
33289else
33290 cat >conftest.$ac_ext <<_ACEOF
33291/* confdefs.h. */
33292_ACEOF
33293cat confdefs.h >>conftest.$ac_ext
33294cat >>conftest.$ac_ext <<_ACEOF
33295/* end confdefs.h. */
ac1cb8d3
VS
33296/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33298#define $ac_func innocuous_$ac_func
33299
a848cd7e
SC
33300/* System header to define __stub macros and hopefully few prototypes,
33301 which can conflict with char $ac_func (); below.
33302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33303 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33304
a848cd7e
SC
33305#ifdef __STDC__
33306# include <limits.h>
33307#else
33308# include <assert.h>
33309#endif
ac1cb8d3
VS
33310
33311#undef $ac_func
33312
a848cd7e
SC
33313/* Override any gcc2 internal prototype to avoid an error. */
33314#ifdef __cplusplus
33315extern "C"
33316{
33317#endif
33318/* We use char because int might match the return type of a gcc2
33319 builtin and then its argument prototype would still apply. */
33320char $ac_func ();
33321/* The GNU C library defines this for functions which it implements
33322 to always fail with ENOSYS. Some functions are actually named
33323 something starting with __ and the normal name is an alias. */
33324#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33325choke me
33326#else
33327char (*f) () = $ac_func;
33328#endif
33329#ifdef __cplusplus
33330}
33331#endif
33332
33333int
33334main ()
33335{
33336return f != $ac_func;
33337 ;
33338 return 0;
33339}
33340_ACEOF
33341rm -f conftest.$ac_objext conftest$ac_exeext
33342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33343 (eval $ac_link) 2>conftest.er1
a848cd7e 33344 ac_status=$?
ac1cb8d3
VS
33345 grep -v '^ *+' conftest.er1 >conftest.err
33346 rm -f conftest.er1
33347 cat conftest.err >&5
a848cd7e
SC
33348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33349 (exit $ac_status); } &&
6ebeb4c7 33350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33352 (eval $ac_try) 2>&5
33353 ac_status=$?
33354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33355 (exit $ac_status); }; } &&
33356 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33358 (eval $ac_try) 2>&5
33359 ac_status=$?
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); }; }; then
33362 eval "$as_ac_var=yes"
33363else
33364 echo "$as_me: failed program was:" >&5
33365sed 's/^/| /' conftest.$ac_ext >&5
33366
33367eval "$as_ac_var=no"
33368fi
ac1cb8d3
VS
33369rm -f conftest.err conftest.$ac_objext \
33370 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33371fi
33372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33373echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33374if test `eval echo '${'$as_ac_var'}'` = yes; then
33375 cat >>confdefs.h <<_ACEOF
33376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33377_ACEOF
33378
33379fi
33380done
33381
33382
33383 if test "$ac_cv_func_sigaction" = "no"; then
33384 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
33385echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
33386 wxUSE_ON_FATAL_EXCEPTION=no
33387 fi
33388
33389 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
33390
33391
33392 ac_ext=cc
33393ac_cpp='$CXXCPP $CPPFLAGS'
33394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33397
33398
33399 echo "$as_me:$LINENO: checking for sa_handler type" >&5
33400echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
33401if test "${wx_cv_type_sa_handler+set}" = set; then
33402 echo $ECHO_N "(cached) $ECHO_C" >&6
33403else
33404
33405 cat >conftest.$ac_ext <<_ACEOF
33406/* confdefs.h. */
33407_ACEOF
33408cat confdefs.h >>conftest.$ac_ext
33409cat >>conftest.$ac_ext <<_ACEOF
33410/* end confdefs.h. */
33411#include <signal.h>
33412int
33413main ()
33414{
33415
33416 extern void testSigHandler(int);
33417
33418 struct sigaction sa;
33419 sa.sa_handler = testSigHandler;
33420
33421 ;
33422 return 0;
33423}
33424_ACEOF
33425rm -f conftest.$ac_objext
33426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33427 (eval $ac_compile) 2>conftest.er1
a848cd7e 33428 ac_status=$?
ac1cb8d3
VS
33429 grep -v '^ *+' conftest.er1 >conftest.err
33430 rm -f conftest.er1
33431 cat conftest.err >&5
a848cd7e
SC
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); } &&
6ebeb4c7 33434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33436 (eval $ac_try) 2>&5
33437 ac_status=$?
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); }; } &&
33440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33442 (eval $ac_try) 2>&5
33443 ac_status=$?
33444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33445 (exit $ac_status); }; }; then
33446
33447 wx_cv_type_sa_handler=int
33448
33449else
33450 echo "$as_me: failed program was:" >&5
33451sed 's/^/| /' conftest.$ac_ext >&5
33452
33453
33454 wx_cv_type_sa_handler=void
33455
33456fi
ac1cb8d3 33457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33458
33459fi
33460echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
33461echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
33462
33463 ac_ext=c
33464ac_cpp='$CPP $CPPFLAGS'
33465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33467ac_compiler_gnu=$ac_cv_c_compiler_gnu
33468
33469
33470 cat >>confdefs.h <<_ACEOF
33471#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
33472_ACEOF
33473
33474 fi
33475fi
33476
eaff0f0d
VZ
33477if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33478
33479
33480 ac_ext=cc
33481ac_cpp='$CXXCPP $CPPFLAGS'
33482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33485
33486
33487 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
33488echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
33489if test "${wx_cv_func_backtrace+set}" = set; then
33490 echo $ECHO_N "(cached) $ECHO_C" >&6
33491else
33492
33493 cat >conftest.$ac_ext <<_ACEOF
33494/* confdefs.h. */
33495_ACEOF
33496cat confdefs.h >>conftest.$ac_ext
33497cat >>conftest.$ac_ext <<_ACEOF
33498/* end confdefs.h. */
33499#include <execinfo.h>
33500int
33501main ()
33502{
33503
33504 void *trace[1];
33505 char **messages;
33506
33507 backtrace(trace, 1);
33508 messages = backtrace_symbols(trace, 1);
33509
33510 ;
33511 return 0;
33512}
33513_ACEOF
33514rm -f conftest.$ac_objext
33515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33516 (eval $ac_compile) 2>conftest.er1
33517 ac_status=$?
33518 grep -v '^ *+' conftest.er1 >conftest.err
33519 rm -f conftest.er1
33520 cat conftest.err >&5
33521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522 (exit $ac_status); } &&
6ebeb4c7 33523 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
33524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33525 (eval $ac_try) 2>&5
33526 ac_status=$?
33527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33528 (exit $ac_status); }; } &&
33529 { ac_try='test -s conftest.$ac_objext'
33530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33531 (eval $ac_try) 2>&5
33532 ac_status=$?
33533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534 (exit $ac_status); }; }; then
33535 wx_cv_func_backtrace=yes
33536else
33537 echo "$as_me: failed program was:" >&5
33538sed 's/^/| /' conftest.$ac_ext >&5
33539
33540wx_cv_func_backtrace=no
33541
33542fi
33543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33544
33545
33546fi
33547echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
33548echo "${ECHO_T}$wx_cv_func_backtrace" >&6
33549
33550
33551 if test "$wx_cv_func_backtrace" = "no"; then
33552 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
33553echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
33554 wxUSE_STACKWALKER=no
33555 else
33556 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
33557echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
33558if test "${wx_cv_func_cxa_demangle+set}" = set; then
33559 echo $ECHO_N "(cached) $ECHO_C" >&6
33560else
33561
33562 cat >conftest.$ac_ext <<_ACEOF
33563/* confdefs.h. */
33564_ACEOF
33565cat confdefs.h >>conftest.$ac_ext
33566cat >>conftest.$ac_ext <<_ACEOF
33567/* end confdefs.h. */
33568#include <cxxabi.h>
33569int
33570main ()
33571{
33572
33573 int rc;
33574 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
33575
33576 ;
33577 return 0;
33578}
33579_ACEOF
dfe0c803
JS
33580rm -f conftest.$ac_objext conftest$ac_exeext
33581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33582 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
33583 ac_status=$?
33584 grep -v '^ *+' conftest.er1 >conftest.err
33585 rm -f conftest.er1
33586 cat conftest.err >&5
33587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588 (exit $ac_status); } &&
6ebeb4c7 33589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
33590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33591 (eval $ac_try) 2>&5
33592 ac_status=$?
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); }; } &&
dfe0c803 33595 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
33596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33597 (eval $ac_try) 2>&5
33598 ac_status=$?
33599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600 (exit $ac_status); }; }; then
33601 wx_cv_func_cxa_demangle=yes
33602else
33603 echo "$as_me: failed program was:" >&5
33604sed 's/^/| /' conftest.$ac_ext >&5
33605
33606wx_cv_func_cxa_demangle=no
33607
33608fi
dfe0c803
JS
33609rm -f conftest.err conftest.$ac_objext \
33610 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
33611
33612
33613fi
33614echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
33615echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
33616
33617 if test "$wx_cv_func_cxa_demangle" = "yes"; then
33618 cat >>confdefs.h <<\_ACEOF
33619#define HAVE_CXA_DEMANGLE 1
33620_ACEOF
33621
33622 fi
33623 fi
33624
33625 ac_ext=c
33626ac_cpp='$CPP $CPPFLAGS'
33627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33629ac_compiler_gnu=$ac_cv_c_compiler_gnu
33630
33631fi
33632
898beab1
DE
33633if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
33634 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
33635echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
33636 wxUSE_STACKWALKER=no
33637fi
33638
33639
a848cd7e
SC
33640
33641
33642for ac_func in mkstemp mktemp
33643do
33644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33645echo "$as_me:$LINENO: checking for $ac_func" >&5
33646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33647if eval "test \"\${$as_ac_var+set}\" = set"; then
33648 echo $ECHO_N "(cached) $ECHO_C" >&6
33649else
33650 cat >conftest.$ac_ext <<_ACEOF
33651/* confdefs.h. */
33652_ACEOF
33653cat confdefs.h >>conftest.$ac_ext
33654cat >>conftest.$ac_ext <<_ACEOF
33655/* end confdefs.h. */
ac1cb8d3
VS
33656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33658#define $ac_func innocuous_$ac_func
33659
a848cd7e
SC
33660/* System header to define __stub macros and hopefully few prototypes,
33661 which can conflict with char $ac_func (); below.
33662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33663 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33664
a848cd7e
SC
33665#ifdef __STDC__
33666# include <limits.h>
33667#else
33668# include <assert.h>
33669#endif
ac1cb8d3
VS
33670
33671#undef $ac_func
33672
a848cd7e
SC
33673/* Override any gcc2 internal prototype to avoid an error. */
33674#ifdef __cplusplus
33675extern "C"
33676{
33677#endif
33678/* We use char because int might match the return type of a gcc2
33679 builtin and then its argument prototype would still apply. */
33680char $ac_func ();
33681/* The GNU C library defines this for functions which it implements
33682 to always fail with ENOSYS. Some functions are actually named
33683 something starting with __ and the normal name is an alias. */
33684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33685choke me
33686#else
33687char (*f) () = $ac_func;
33688#endif
33689#ifdef __cplusplus
33690}
33691#endif
33692
33693int
33694main ()
33695{
33696return f != $ac_func;
33697 ;
33698 return 0;
33699}
33700_ACEOF
33701rm -f conftest.$ac_objext conftest$ac_exeext
33702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33703 (eval $ac_link) 2>conftest.er1
a848cd7e 33704 ac_status=$?
ac1cb8d3
VS
33705 grep -v '^ *+' conftest.er1 >conftest.err
33706 rm -f conftest.er1
33707 cat conftest.err >&5
a848cd7e
SC
33708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33709 (exit $ac_status); } &&
6ebeb4c7 33710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33712 (eval $ac_try) 2>&5
33713 ac_status=$?
33714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33715 (exit $ac_status); }; } &&
33716 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33718 (eval $ac_try) 2>&5
33719 ac_status=$?
33720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33721 (exit $ac_status); }; }; then
33722 eval "$as_ac_var=yes"
33723else
33724 echo "$as_me: failed program was:" >&5
33725sed 's/^/| /' conftest.$ac_ext >&5
33726
33727eval "$as_ac_var=no"
33728fi
ac1cb8d3
VS
33729rm -f conftest.err conftest.$ac_objext \
33730 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33731fi
33732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33733echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33734if test `eval echo '${'$as_ac_var'}'` = yes; then
33735 cat >>confdefs.h <<_ACEOF
33736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33737_ACEOF
33738 break
33739fi
33740done
33741
33742
33743echo "$as_me:$LINENO: checking for statfs" >&5
33744echo $ECHO_N "checking for statfs... $ECHO_C" >&6
33745if test "${wx_cv_func_statfs+set}" = set; then
33746 echo $ECHO_N "(cached) $ECHO_C" >&6
33747else
33748 cat >conftest.$ac_ext <<_ACEOF
33749/* confdefs.h. */
33750_ACEOF
33751cat confdefs.h >>conftest.$ac_ext
33752cat >>conftest.$ac_ext <<_ACEOF
33753/* end confdefs.h. */
33754
33755 #if defined(__BSD__)
84ae7ca4
VZ
33756 #include <sys/param.h>
33757 #include <sys/mount.h>
a848cd7e 33758 #else
84ae7ca4 33759 #include <sys/vfs.h>
a848cd7e
SC
33760 #endif
33761
33762int
33763main ()
33764{
33765
33766 long l;
33767 struct statfs fs;
33768 statfs("/", &fs);
33769 l = fs.f_bsize;
33770 l += fs.f_blocks;
33771 l += fs.f_bavail;
33772
33773 ;
33774 return 0;
33775}
33776_ACEOF
33777rm -f conftest.$ac_objext
33778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33779 (eval $ac_compile) 2>conftest.er1
a848cd7e 33780 ac_status=$?
ac1cb8d3
VS
33781 grep -v '^ *+' conftest.er1 >conftest.err
33782 rm -f conftest.er1
33783 cat conftest.err >&5
a848cd7e
SC
33784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785 (exit $ac_status); } &&
6ebeb4c7 33786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33788 (eval $ac_try) 2>&5
33789 ac_status=$?
33790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791 (exit $ac_status); }; } &&
33792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33794 (eval $ac_try) 2>&5
33795 ac_status=$?
33796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797 (exit $ac_status); }; }; then
84ae7ca4 33798 wx_cv_func_statfs=yes
a848cd7e
SC
33799else
33800 echo "$as_me: failed program was:" >&5
33801sed 's/^/| /' conftest.$ac_ext >&5
33802
84ae7ca4 33803wx_cv_func_statfs=no
a848cd7e
SC
33804
33805fi
ac1cb8d3 33806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33807
33808fi
33809echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
33810echo "${ECHO_T}$wx_cv_func_statfs" >&6
33811
33812if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
33813
33814
33815 ac_ext=cc
33816ac_cpp='$CXXCPP $CPPFLAGS'
33817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33820
33821 echo "$as_me:$LINENO: checking for statfs declaration" >&5
33822echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
33823if test "${wx_cv_func_statfs_decl+set}" = set; then
33824 echo $ECHO_N "(cached) $ECHO_C" >&6
33825else
0683aca6
VZ
33826 cat >conftest.$ac_ext <<_ACEOF
33827/* confdefs.h. */
33828_ACEOF
33829cat confdefs.h >>conftest.$ac_ext
33830cat >>conftest.$ac_ext <<_ACEOF
33831/* end confdefs.h. */
84ae7ca4 33832
0683aca6
VZ
33833 #if defined(__BSD__)
33834 #include <sys/param.h>
33835 #include <sys/mount.h>
33836 #else
33837 #include <sys/vfs.h>
33838 #endif
33839
33840int
33841main ()
33842{
33843
33844 struct statfs fs;
33845 statfs("", &fs);
33846
33847 ;
33848 return 0;
33849}
33850_ACEOF
33851rm -f conftest.$ac_objext
33852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33853 (eval $ac_compile) 2>conftest.er1
33854 ac_status=$?
33855 grep -v '^ *+' conftest.er1 >conftest.err
33856 rm -f conftest.er1
33857 cat conftest.err >&5
33858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33859 (exit $ac_status); } &&
33860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33862 (eval $ac_try) 2>&5
33863 ac_status=$?
33864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865 (exit $ac_status); }; } &&
33866 { ac_try='test -s conftest.$ac_objext'
33867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33868 (eval $ac_try) 2>&5
33869 ac_status=$?
33870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33871 (exit $ac_status); }; }; then
33872 wx_cv_func_statfs_decl=yes
33873else
33874 echo "$as_me: failed program was:" >&5
33875sed 's/^/| /' conftest.$ac_ext >&5
33876
33877wx_cv_func_statfs_decl=no
33878
33879fi
33880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
33881
33882fi
33883echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
33884echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
33885 ac_ext=c
33886ac_cpp='$CPP $CPPFLAGS'
33887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33889ac_compiler_gnu=$ac_cv_c_compiler_gnu
33890
33891
33892 if test "$wx_cv_func_statfs_decl" = "yes"; then
33893 cat >>confdefs.h <<\_ACEOF
33894#define HAVE_STATFS_DECL 1
33895_ACEOF
33896
33897 fi
33898
a848cd7e
SC
33899 wx_cv_type_statvfs_t="struct statfs"
33900 cat >>confdefs.h <<\_ACEOF
33901#define HAVE_STATFS 1
33902_ACEOF
33903
33904else
33905 echo "$as_me:$LINENO: checking for statvfs" >&5
33906echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
33907if test "${wx_cv_func_statvfs+set}" = set; then
33908 echo $ECHO_N "(cached) $ECHO_C" >&6
33909else
33910 cat >conftest.$ac_ext <<_ACEOF
33911/* confdefs.h. */
33912_ACEOF
33913cat confdefs.h >>conftest.$ac_ext
33914cat >>conftest.$ac_ext <<_ACEOF
33915/* end confdefs.h. */
33916
33917 #include <stddef.h>
33918 #include <sys/statvfs.h>
33919
33920int
33921main ()
33922{
33923
33924 statvfs("/", NULL);
33925
33926 ;
33927 return 0;
33928}
33929_ACEOF
33930rm -f conftest.$ac_objext
33931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33932 (eval $ac_compile) 2>conftest.er1
a848cd7e 33933 ac_status=$?
ac1cb8d3
VS
33934 grep -v '^ *+' conftest.er1 >conftest.err
33935 rm -f conftest.er1
33936 cat conftest.err >&5
a848cd7e
SC
33937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33938 (exit $ac_status); } &&
6ebeb4c7 33939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33941 (eval $ac_try) 2>&5
33942 ac_status=$?
33943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33944 (exit $ac_status); }; } &&
33945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33947 (eval $ac_try) 2>&5
33948 ac_status=$?
33949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33950 (exit $ac_status); }; }; then
33951 wx_cv_func_statvfs=yes
33952else
33953 echo "$as_me: failed program was:" >&5
33954sed 's/^/| /' conftest.$ac_ext >&5
33955
33956wx_cv_func_statvfs=no
33957
33958fi
ac1cb8d3 33959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33960
33961fi
33962echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
33963echo "${ECHO_T}$wx_cv_func_statvfs" >&6
33964
33965 if test "$wx_cv_func_statvfs" = "yes"; then
33966
33967
33968 ac_ext=cc
33969ac_cpp='$CXXCPP $CPPFLAGS'
33970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33973
33974
33975 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
33976echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
33977if test "${wx_cv_type_statvfs_t+set}" = set; then
33978 echo $ECHO_N "(cached) $ECHO_C" >&6
33979else
33980 cat >conftest.$ac_ext <<_ACEOF
33981/* confdefs.h. */
33982_ACEOF
33983cat confdefs.h >>conftest.$ac_ext
33984cat >>conftest.$ac_ext <<_ACEOF
33985/* end confdefs.h. */
33986
33987 #include <sys/statvfs.h>
33988
33989int
33990main ()
33991{
33992
33993 long l;
33994 statvfs_t fs;
33995 statvfs("/", &fs);
33996 l = fs.f_bsize;
33997 l += fs.f_blocks;
33998 l += fs.f_bavail;
33999
34000 ;
34001 return 0;
34002}
34003_ACEOF
34004rm -f conftest.$ac_objext
34005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34006 (eval $ac_compile) 2>conftest.er1
a848cd7e 34007 ac_status=$?
ac1cb8d3
VS
34008 grep -v '^ *+' conftest.er1 >conftest.err
34009 rm -f conftest.er1
34010 cat conftest.err >&5
a848cd7e
SC
34011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34012 (exit $ac_status); } &&
6ebeb4c7 34013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
34019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34021 (eval $ac_try) 2>&5
34022 ac_status=$?
34023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34024 (exit $ac_status); }; }; then
34025 wx_cv_type_statvfs_t=statvfs_t
34026else
34027 echo "$as_me: failed program was:" >&5
34028sed 's/^/| /' conftest.$ac_ext >&5
34029
34030
34031 cat >conftest.$ac_ext <<_ACEOF
34032/* confdefs.h. */
34033_ACEOF
34034cat confdefs.h >>conftest.$ac_ext
34035cat >>conftest.$ac_ext <<_ACEOF
34036/* end confdefs.h. */
34037
34038 #include <sys/statvfs.h>
34039
34040int
34041main ()
34042{
34043
34044 long l;
34045 struct statvfs fs;
34046 statvfs("/", &fs);
34047 l = fs.f_bsize;
34048 l += fs.f_blocks;
34049 l += fs.f_bavail;
34050
34051 ;
34052 return 0;
34053}
34054_ACEOF
34055rm -f conftest.$ac_objext
34056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34057 (eval $ac_compile) 2>conftest.er1
a848cd7e 34058 ac_status=$?
ac1cb8d3
VS
34059 grep -v '^ *+' conftest.er1 >conftest.err
34060 rm -f conftest.er1
34061 cat conftest.err >&5
a848cd7e
SC
34062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34063 (exit $ac_status); } &&
6ebeb4c7 34064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34066 (eval $ac_try) 2>&5
34067 ac_status=$?
34068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069 (exit $ac_status); }; } &&
34070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34072 (eval $ac_try) 2>&5
34073 ac_status=$?
34074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075 (exit $ac_status); }; }; then
34076 wx_cv_type_statvfs_t="struct statvfs"
34077else
34078 echo "$as_me: failed program was:" >&5
34079sed 's/^/| /' conftest.$ac_ext >&5
34080
34081wx_cv_type_statvfs_t="unknown"
34082
34083fi
ac1cb8d3 34084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34085
34086
34087fi
ac1cb8d3 34088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34089
34090fi
34091echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34092echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34093
34094 ac_ext=c
34095ac_cpp='$CPP $CPPFLAGS'
34096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34098ac_compiler_gnu=$ac_cv_c_compiler_gnu
34099
34100
34101 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34102 cat >>confdefs.h <<\_ACEOF
34103#define HAVE_STATVFS 1
34104_ACEOF
34105
34106 fi
34107 else
34108 wx_cv_type_statvfs_t="unknown"
34109 fi
34110fi
34111
34112if test "$wx_cv_type_statvfs_t" != "unknown"; then
34113 cat >>confdefs.h <<_ACEOF
34114#define WX_STATFS_T $wx_cv_type_statvfs_t
34115_ACEOF
34116
34117else
34118 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
34119echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
34120fi
34121
34122if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34123
34124
34125for ac_func in fcntl flock
34126do
34127as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34128echo "$as_me:$LINENO: checking for $ac_func" >&5
34129echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34130if eval "test \"\${$as_ac_var+set}\" = set"; then
34131 echo $ECHO_N "(cached) $ECHO_C" >&6
34132else
34133 cat >conftest.$ac_ext <<_ACEOF
34134/* confdefs.h. */
34135_ACEOF
34136cat confdefs.h >>conftest.$ac_ext
34137cat >>conftest.$ac_ext <<_ACEOF
34138/* end confdefs.h. */
ac1cb8d3
VS
34139/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34141#define $ac_func innocuous_$ac_func
34142
a848cd7e
SC
34143/* System header to define __stub macros and hopefully few prototypes,
34144 which can conflict with char $ac_func (); below.
34145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34146 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34147
a848cd7e
SC
34148#ifdef __STDC__
34149# include <limits.h>
34150#else
34151# include <assert.h>
34152#endif
ac1cb8d3
VS
34153
34154#undef $ac_func
34155
a848cd7e
SC
34156/* Override any gcc2 internal prototype to avoid an error. */
34157#ifdef __cplusplus
34158extern "C"
34159{
34160#endif
34161/* We use char because int might match the return type of a gcc2
34162 builtin and then its argument prototype would still apply. */
34163char $ac_func ();
34164/* The GNU C library defines this for functions which it implements
34165 to always fail with ENOSYS. Some functions are actually named
34166 something starting with __ and the normal name is an alias. */
34167#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34168choke me
34169#else
34170char (*f) () = $ac_func;
34171#endif
34172#ifdef __cplusplus
34173}
34174#endif
34175
34176int
34177main ()
34178{
34179return f != $ac_func;
34180 ;
34181 return 0;
34182}
34183_ACEOF
34184rm -f conftest.$ac_objext conftest$ac_exeext
34185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34186 (eval $ac_link) 2>conftest.er1
a848cd7e 34187 ac_status=$?
ac1cb8d3
VS
34188 grep -v '^ *+' conftest.er1 >conftest.err
34189 rm -f conftest.er1
34190 cat conftest.err >&5
a848cd7e
SC
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); } &&
6ebeb4c7 34193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34195 (eval $ac_try) 2>&5
34196 ac_status=$?
34197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34198 (exit $ac_status); }; } &&
34199 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34201 (eval $ac_try) 2>&5
34202 ac_status=$?
34203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204 (exit $ac_status); }; }; then
34205 eval "$as_ac_var=yes"
34206else
34207 echo "$as_me: failed program was:" >&5
34208sed 's/^/| /' conftest.$ac_ext >&5
34209
34210eval "$as_ac_var=no"
34211fi
ac1cb8d3
VS
34212rm -f conftest.err conftest.$ac_objext \
34213 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34214fi
34215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34216echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34217if test `eval echo '${'$as_ac_var'}'` = yes; then
34218 cat >>confdefs.h <<_ACEOF
34219#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34220_ACEOF
34221 break
34222fi
34223done
34224
34225
34226 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
34227 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
34228echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
34229 wxUSE_SNGLINST_CHECKER=no
34230 fi
34231fi
34232
34233
34234for ac_func in timegm
34235do
34236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34237echo "$as_me:$LINENO: checking for $ac_func" >&5
34238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34239if eval "test \"\${$as_ac_var+set}\" = set"; then
34240 echo $ECHO_N "(cached) $ECHO_C" >&6
34241else
34242 cat >conftest.$ac_ext <<_ACEOF
34243/* confdefs.h. */
34244_ACEOF
34245cat confdefs.h >>conftest.$ac_ext
34246cat >>conftest.$ac_ext <<_ACEOF
34247/* end confdefs.h. */
ac1cb8d3
VS
34248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34250#define $ac_func innocuous_$ac_func
34251
a848cd7e
SC
34252/* System header to define __stub macros and hopefully few prototypes,
34253 which can conflict with char $ac_func (); below.
34254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34255 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34256
a848cd7e
SC
34257#ifdef __STDC__
34258# include <limits.h>
34259#else
34260# include <assert.h>
34261#endif
ac1cb8d3
VS
34262
34263#undef $ac_func
34264
a848cd7e
SC
34265/* Override any gcc2 internal prototype to avoid an error. */
34266#ifdef __cplusplus
34267extern "C"
34268{
34269#endif
34270/* We use char because int might match the return type of a gcc2
34271 builtin and then its argument prototype would still apply. */
34272char $ac_func ();
34273/* The GNU C library defines this for functions which it implements
34274 to always fail with ENOSYS. Some functions are actually named
34275 something starting with __ and the normal name is an alias. */
34276#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34277choke me
34278#else
34279char (*f) () = $ac_func;
34280#endif
34281#ifdef __cplusplus
34282}
34283#endif
34284
34285int
34286main ()
34287{
34288return f != $ac_func;
34289 ;
34290 return 0;
34291}
34292_ACEOF
34293rm -f conftest.$ac_objext conftest$ac_exeext
34294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34295 (eval $ac_link) 2>conftest.er1
a848cd7e 34296 ac_status=$?
ac1cb8d3
VS
34297 grep -v '^ *+' conftest.er1 >conftest.err
34298 rm -f conftest.er1
34299 cat conftest.err >&5
a848cd7e
SC
34300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34301 (exit $ac_status); } &&
6ebeb4c7 34302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34304 (eval $ac_try) 2>&5
34305 ac_status=$?
34306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34307 (exit $ac_status); }; } &&
34308 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34310 (eval $ac_try) 2>&5
34311 ac_status=$?
34312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34313 (exit $ac_status); }; }; then
34314 eval "$as_ac_var=yes"
34315else
34316 echo "$as_me: failed program was:" >&5
34317sed 's/^/| /' conftest.$ac_ext >&5
34318
34319eval "$as_ac_var=no"
34320fi
ac1cb8d3
VS
34321rm -f conftest.err conftest.$ac_objext \
34322 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34323fi
34324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34325echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34326if test `eval echo '${'$as_ac_var'}'` = yes; then
34327 cat >>confdefs.h <<_ACEOF
34328#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34329_ACEOF
34330
34331fi
34332done
34333
34334
34335
34336
34337for ac_func in putenv setenv
34338do
34339as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34340echo "$as_me:$LINENO: checking for $ac_func" >&5
34341echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34342if eval "test \"\${$as_ac_var+set}\" = set"; then
34343 echo $ECHO_N "(cached) $ECHO_C" >&6
34344else
34345 cat >conftest.$ac_ext <<_ACEOF
34346/* confdefs.h. */
34347_ACEOF
34348cat confdefs.h >>conftest.$ac_ext
34349cat >>conftest.$ac_ext <<_ACEOF
34350/* end confdefs.h. */
ac1cb8d3
VS
34351/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34353#define $ac_func innocuous_$ac_func
34354
a848cd7e
SC
34355/* System header to define __stub macros and hopefully few prototypes,
34356 which can conflict with char $ac_func (); below.
34357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34358 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34359
a848cd7e
SC
34360#ifdef __STDC__
34361# include <limits.h>
34362#else
34363# include <assert.h>
34364#endif
ac1cb8d3
VS
34365
34366#undef $ac_func
34367
a848cd7e
SC
34368/* Override any gcc2 internal prototype to avoid an error. */
34369#ifdef __cplusplus
34370extern "C"
34371{
34372#endif
34373/* We use char because int might match the return type of a gcc2
34374 builtin and then its argument prototype would still apply. */
34375char $ac_func ();
34376/* The GNU C library defines this for functions which it implements
34377 to always fail with ENOSYS. Some functions are actually named
34378 something starting with __ and the normal name is an alias. */
34379#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34380choke me
34381#else
34382char (*f) () = $ac_func;
34383#endif
34384#ifdef __cplusplus
34385}
34386#endif
34387
34388int
34389main ()
34390{
34391return f != $ac_func;
34392 ;
34393 return 0;
34394}
34395_ACEOF
34396rm -f conftest.$ac_objext conftest$ac_exeext
34397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34398 (eval $ac_link) 2>conftest.er1
a848cd7e 34399 ac_status=$?
ac1cb8d3
VS
34400 grep -v '^ *+' conftest.er1 >conftest.err
34401 rm -f conftest.er1
34402 cat conftest.err >&5
a848cd7e
SC
34403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404 (exit $ac_status); } &&
6ebeb4c7 34405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34407 (eval $ac_try) 2>&5
34408 ac_status=$?
34409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410 (exit $ac_status); }; } &&
34411 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34413 (eval $ac_try) 2>&5
34414 ac_status=$?
34415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34416 (exit $ac_status); }; }; then
34417 eval "$as_ac_var=yes"
34418else
34419 echo "$as_me: failed program was:" >&5
34420sed 's/^/| /' conftest.$ac_ext >&5
34421
34422eval "$as_ac_var=no"
34423fi
ac1cb8d3
VS
34424rm -f conftest.err conftest.$ac_objext \
34425 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34426fi
34427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34428echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34429if test `eval echo '${'$as_ac_var'}'` = yes; then
34430 cat >>confdefs.h <<_ACEOF
34431#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34432_ACEOF
34433 break
34434fi
34435done
34436
34437
34438HAVE_SOME_SLEEP_FUNC=0
34439if test "$USE_BEOS" = 1; then
34440 cat >>confdefs.h <<\_ACEOF
34441#define HAVE_SLEEP 1
34442_ACEOF
34443
34444 HAVE_SOME_SLEEP_FUNC=1
34445fi
34446
34447if test "$USE_DARWIN" = 1; then
34448 cat >>confdefs.h <<\_ACEOF
34449#define HAVE_USLEEP 1
34450_ACEOF
34451
34452 HAVE_SOME_SLEEP_FUNC=1
34453fi
34454
34455if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
34456 POSIX4_LINK=
34457
34458for ac_func in nanosleep
34459do
34460as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34461echo "$as_me:$LINENO: checking for $ac_func" >&5
34462echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34463if eval "test \"\${$as_ac_var+set}\" = set"; then
34464 echo $ECHO_N "(cached) $ECHO_C" >&6
34465else
34466 cat >conftest.$ac_ext <<_ACEOF
34467/* confdefs.h. */
34468_ACEOF
34469cat confdefs.h >>conftest.$ac_ext
34470cat >>conftest.$ac_ext <<_ACEOF
34471/* end confdefs.h. */
ac1cb8d3
VS
34472/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34474#define $ac_func innocuous_$ac_func
34475
a848cd7e
SC
34476/* System header to define __stub macros and hopefully few prototypes,
34477 which can conflict with char $ac_func (); below.
34478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34479 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34480
a848cd7e
SC
34481#ifdef __STDC__
34482# include <limits.h>
34483#else
34484# include <assert.h>
34485#endif
ac1cb8d3
VS
34486
34487#undef $ac_func
34488
a848cd7e
SC
34489/* Override any gcc2 internal prototype to avoid an error. */
34490#ifdef __cplusplus
34491extern "C"
34492{
34493#endif
34494/* We use char because int might match the return type of a gcc2
34495 builtin and then its argument prototype would still apply. */
34496char $ac_func ();
34497/* The GNU C library defines this for functions which it implements
34498 to always fail with ENOSYS. Some functions are actually named
34499 something starting with __ and the normal name is an alias. */
34500#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34501choke me
34502#else
34503char (*f) () = $ac_func;
34504#endif
34505#ifdef __cplusplus
34506}
34507#endif
34508
34509int
34510main ()
34511{
34512return f != $ac_func;
34513 ;
34514 return 0;
34515}
34516_ACEOF
34517rm -f conftest.$ac_objext conftest$ac_exeext
34518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34519 (eval $ac_link) 2>conftest.er1
a848cd7e 34520 ac_status=$?
ac1cb8d3
VS
34521 grep -v '^ *+' conftest.er1 >conftest.err
34522 rm -f conftest.er1
34523 cat conftest.err >&5
a848cd7e
SC
34524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525 (exit $ac_status); } &&
6ebeb4c7 34526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34528 (eval $ac_try) 2>&5
34529 ac_status=$?
34530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34531 (exit $ac_status); }; } &&
34532 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34534 (eval $ac_try) 2>&5
34535 ac_status=$?
34536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537 (exit $ac_status); }; }; then
34538 eval "$as_ac_var=yes"
34539else
34540 echo "$as_me: failed program was:" >&5
34541sed 's/^/| /' conftest.$ac_ext >&5
34542
34543eval "$as_ac_var=no"
34544fi
ac1cb8d3
VS
34545rm -f conftest.err conftest.$ac_objext \
34546 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34547fi
34548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34549echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34550if test `eval echo '${'$as_ac_var'}'` = yes; then
34551 cat >>confdefs.h <<_ACEOF
34552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34553_ACEOF
34554 cat >>confdefs.h <<\_ACEOF
34555#define HAVE_NANOSLEEP 1
34556_ACEOF
34557
34558else
34559
34560 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
34561echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
34562if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
34563 echo $ECHO_N "(cached) $ECHO_C" >&6
34564else
34565 ac_check_lib_save_LIBS=$LIBS
34566LIBS="-lposix4 $LIBS"
34567cat >conftest.$ac_ext <<_ACEOF
34568/* confdefs.h. */
34569_ACEOF
34570cat confdefs.h >>conftest.$ac_ext
34571cat >>conftest.$ac_ext <<_ACEOF
34572/* end confdefs.h. */
34573
34574/* Override any gcc2 internal prototype to avoid an error. */
34575#ifdef __cplusplus
34576extern "C"
34577#endif
34578/* We use char because int might match the return type of a gcc2
34579 builtin and then its argument prototype would still apply. */
34580char nanosleep ();
34581int
34582main ()
34583{
34584nanosleep ();
34585 ;
34586 return 0;
34587}
34588_ACEOF
34589rm -f conftest.$ac_objext conftest$ac_exeext
34590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34591 (eval $ac_link) 2>conftest.er1
a848cd7e 34592 ac_status=$?
ac1cb8d3
VS
34593 grep -v '^ *+' conftest.er1 >conftest.err
34594 rm -f conftest.er1
34595 cat conftest.err >&5
a848cd7e
SC
34596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597 (exit $ac_status); } &&
6ebeb4c7 34598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34600 (eval $ac_try) 2>&5
34601 ac_status=$?
34602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34603 (exit $ac_status); }; } &&
34604 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34606 (eval $ac_try) 2>&5
34607 ac_status=$?
34608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609 (exit $ac_status); }; }; then
34610 ac_cv_lib_posix4_nanosleep=yes
34611else
34612 echo "$as_me: failed program was:" >&5
34613sed 's/^/| /' conftest.$ac_ext >&5
34614
34615ac_cv_lib_posix4_nanosleep=no
34616fi
ac1cb8d3
VS
34617rm -f conftest.err conftest.$ac_objext \
34618 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34619LIBS=$ac_check_lib_save_LIBS
34620fi
34621echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
34622echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
34623if test $ac_cv_lib_posix4_nanosleep = yes; then
34624
34625 cat >>confdefs.h <<\_ACEOF
34626#define HAVE_NANOSLEEP 1
34627_ACEOF
34628
34629 POSIX4_LINK=" -lposix4"
34630
34631else
34632
34633
34634for ac_func in usleep
34635do
34636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34637echo "$as_me:$LINENO: checking for $ac_func" >&5
34638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34639if eval "test \"\${$as_ac_var+set}\" = set"; then
34640 echo $ECHO_N "(cached) $ECHO_C" >&6
34641else
34642 cat >conftest.$ac_ext <<_ACEOF
34643/* confdefs.h. */
34644_ACEOF
34645cat confdefs.h >>conftest.$ac_ext
34646cat >>conftest.$ac_ext <<_ACEOF
34647/* end confdefs.h. */
ac1cb8d3
VS
34648/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34650#define $ac_func innocuous_$ac_func
34651
a848cd7e
SC
34652/* System header to define __stub macros and hopefully few prototypes,
34653 which can conflict with char $ac_func (); below.
34654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34655 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34656
a848cd7e
SC
34657#ifdef __STDC__
34658# include <limits.h>
34659#else
34660# include <assert.h>
34661#endif
ac1cb8d3
VS
34662
34663#undef $ac_func
34664
a848cd7e
SC
34665/* Override any gcc2 internal prototype to avoid an error. */
34666#ifdef __cplusplus
34667extern "C"
34668{
34669#endif
34670/* We use char because int might match the return type of a gcc2
34671 builtin and then its argument prototype would still apply. */
34672char $ac_func ();
34673/* The GNU C library defines this for functions which it implements
34674 to always fail with ENOSYS. Some functions are actually named
34675 something starting with __ and the normal name is an alias. */
34676#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34677choke me
34678#else
34679char (*f) () = $ac_func;
34680#endif
34681#ifdef __cplusplus
34682}
34683#endif
34684
34685int
34686main ()
34687{
34688return f != $ac_func;
34689 ;
34690 return 0;
34691}
34692_ACEOF
34693rm -f conftest.$ac_objext conftest$ac_exeext
34694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34695 (eval $ac_link) 2>conftest.er1
a848cd7e 34696 ac_status=$?
ac1cb8d3
VS
34697 grep -v '^ *+' conftest.er1 >conftest.err
34698 rm -f conftest.er1
34699 cat conftest.err >&5
a848cd7e
SC
34700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34701 (exit $ac_status); } &&
6ebeb4c7 34702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34704 (eval $ac_try) 2>&5
34705 ac_status=$?
34706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707 (exit $ac_status); }; } &&
34708 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
34714 eval "$as_ac_var=yes"
34715else
34716 echo "$as_me: failed program was:" >&5
34717sed 's/^/| /' conftest.$ac_ext >&5
34718
34719eval "$as_ac_var=no"
34720fi
ac1cb8d3
VS
34721rm -f conftest.err conftest.$ac_objext \
34722 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34723fi
34724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34725echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34726if test `eval echo '${'$as_ac_var'}'` = yes; then
34727 cat >>confdefs.h <<_ACEOF
34728#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34729_ACEOF
34730 cat >>confdefs.h <<\_ACEOF
34731#define HAVE_USLEEP 1
34732_ACEOF
34733
34734else
34735 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
34736echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
34737
34738fi
34739done
34740
34741
34742
34743fi
34744
34745
34746
34747fi
34748done
34749
34750fi
34751
34752
34753
34754for ac_func in uname gethostname
34755do
34756as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34757echo "$as_me:$LINENO: checking for $ac_func" >&5
34758echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34759if eval "test \"\${$as_ac_var+set}\" = set"; then
34760 echo $ECHO_N "(cached) $ECHO_C" >&6
34761else
34762 cat >conftest.$ac_ext <<_ACEOF
34763/* confdefs.h. */
34764_ACEOF
34765cat confdefs.h >>conftest.$ac_ext
34766cat >>conftest.$ac_ext <<_ACEOF
34767/* end confdefs.h. */
ac1cb8d3
VS
34768/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34770#define $ac_func innocuous_$ac_func
34771
a848cd7e
SC
34772/* System header to define __stub macros and hopefully few prototypes,
34773 which can conflict with char $ac_func (); below.
34774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34775 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34776
a848cd7e
SC
34777#ifdef __STDC__
34778# include <limits.h>
34779#else
34780# include <assert.h>
34781#endif
ac1cb8d3
VS
34782
34783#undef $ac_func
34784
a848cd7e
SC
34785/* Override any gcc2 internal prototype to avoid an error. */
34786#ifdef __cplusplus
34787extern "C"
34788{
34789#endif
34790/* We use char because int might match the return type of a gcc2
34791 builtin and then its argument prototype would still apply. */
34792char $ac_func ();
34793/* The GNU C library defines this for functions which it implements
34794 to always fail with ENOSYS. Some functions are actually named
34795 something starting with __ and the normal name is an alias. */
34796#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34797choke me
34798#else
34799char (*f) () = $ac_func;
34800#endif
34801#ifdef __cplusplus
34802}
34803#endif
34804
34805int
34806main ()
34807{
34808return f != $ac_func;
34809 ;
34810 return 0;
34811}
34812_ACEOF
34813rm -f conftest.$ac_objext conftest$ac_exeext
34814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34815 (eval $ac_link) 2>conftest.er1
a848cd7e 34816 ac_status=$?
ac1cb8d3
VS
34817 grep -v '^ *+' conftest.er1 >conftest.err
34818 rm -f conftest.er1
34819 cat conftest.err >&5
a848cd7e
SC
34820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821 (exit $ac_status); } &&
6ebeb4c7 34822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34824 (eval $ac_try) 2>&5
34825 ac_status=$?
34826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827 (exit $ac_status); }; } &&
34828 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34830 (eval $ac_try) 2>&5
34831 ac_status=$?
34832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833 (exit $ac_status); }; }; then
34834 eval "$as_ac_var=yes"
34835else
34836 echo "$as_me: failed program was:" >&5
34837sed 's/^/| /' conftest.$ac_ext >&5
34838
34839eval "$as_ac_var=no"
34840fi
ac1cb8d3
VS
34841rm -f conftest.err conftest.$ac_objext \
34842 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34843fi
34844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34845echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34846if test `eval echo '${'$as_ac_var'}'` = yes; then
34847 cat >>confdefs.h <<_ACEOF
34848#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34849_ACEOF
34850 break
34851fi
34852done
34853
34854
34855
34856
34857ac_ext=cc
34858ac_cpp='$CXXCPP $CPPFLAGS'
34859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34862
34863
34864
34865for ac_func in strtok_r
34866do
34867as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34868echo "$as_me:$LINENO: checking for $ac_func" >&5
34869echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34870if eval "test \"\${$as_ac_var+set}\" = set"; then
34871 echo $ECHO_N "(cached) $ECHO_C" >&6
34872else
34873 cat >conftest.$ac_ext <<_ACEOF
34874/* confdefs.h. */
34875_ACEOF
34876cat confdefs.h >>conftest.$ac_ext
34877cat >>conftest.$ac_ext <<_ACEOF
34878/* end confdefs.h. */
ac1cb8d3
VS
34879/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34881#define $ac_func innocuous_$ac_func
34882
a848cd7e
SC
34883/* System header to define __stub macros and hopefully few prototypes,
34884 which can conflict with char $ac_func (); below.
34885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34886 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34887
a848cd7e
SC
34888#ifdef __STDC__
34889# include <limits.h>
34890#else
34891# include <assert.h>
34892#endif
ac1cb8d3
VS
34893
34894#undef $ac_func
34895
a848cd7e
SC
34896/* Override any gcc2 internal prototype to avoid an error. */
34897#ifdef __cplusplus
34898extern "C"
34899{
34900#endif
34901/* We use char because int might match the return type of a gcc2
34902 builtin and then its argument prototype would still apply. */
34903char $ac_func ();
34904/* The GNU C library defines this for functions which it implements
34905 to always fail with ENOSYS. Some functions are actually named
34906 something starting with __ and the normal name is an alias. */
34907#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34908choke me
34909#else
34910char (*f) () = $ac_func;
34911#endif
34912#ifdef __cplusplus
34913}
34914#endif
34915
34916int
34917main ()
34918{
34919return f != $ac_func;
34920 ;
34921 return 0;
34922}
34923_ACEOF
34924rm -f conftest.$ac_objext conftest$ac_exeext
34925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34926 (eval $ac_link) 2>conftest.er1
a848cd7e 34927 ac_status=$?
ac1cb8d3
VS
34928 grep -v '^ *+' conftest.er1 >conftest.err
34929 rm -f conftest.er1
34930 cat conftest.err >&5
a848cd7e
SC
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); } &&
6ebeb4c7 34933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34935 (eval $ac_try) 2>&5
34936 ac_status=$?
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); }; } &&
34939 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34941 (eval $ac_try) 2>&5
34942 ac_status=$?
34943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34944 (exit $ac_status); }; }; then
34945 eval "$as_ac_var=yes"
34946else
34947 echo "$as_me: failed program was:" >&5
34948sed 's/^/| /' conftest.$ac_ext >&5
34949
34950eval "$as_ac_var=no"
34951fi
ac1cb8d3
VS
34952rm -f conftest.err conftest.$ac_objext \
34953 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34954fi
34955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34956echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34957if test `eval echo '${'$as_ac_var'}'` = yes; then
34958 cat >>confdefs.h <<_ACEOF
34959#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34960_ACEOF
34961
34962fi
34963done
34964
34965
34966ac_ext=c
34967ac_cpp='$CPP $CPPFLAGS'
34968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34970ac_compiler_gnu=$ac_cv_c_compiler_gnu
34971
34972
34973INET_LINK=
34974
34975for ac_func in inet_addr
34976do
34977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34978echo "$as_me:$LINENO: checking for $ac_func" >&5
34979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34980if eval "test \"\${$as_ac_var+set}\" = set"; then
34981 echo $ECHO_N "(cached) $ECHO_C" >&6
34982else
34983 cat >conftest.$ac_ext <<_ACEOF
34984/* confdefs.h. */
34985_ACEOF
34986cat confdefs.h >>conftest.$ac_ext
34987cat >>conftest.$ac_ext <<_ACEOF
34988/* end confdefs.h. */
ac1cb8d3
VS
34989/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34991#define $ac_func innocuous_$ac_func
34992
a848cd7e
SC
34993/* System header to define __stub macros and hopefully few prototypes,
34994 which can conflict with char $ac_func (); below.
34995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34996 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34997
a848cd7e
SC
34998#ifdef __STDC__
34999# include <limits.h>
35000#else
35001# include <assert.h>
35002#endif
ac1cb8d3
VS
35003
35004#undef $ac_func
35005
a848cd7e
SC
35006/* Override any gcc2 internal prototype to avoid an error. */
35007#ifdef __cplusplus
35008extern "C"
35009{
35010#endif
35011/* We use char because int might match the return type of a gcc2
35012 builtin and then its argument prototype would still apply. */
35013char $ac_func ();
35014/* The GNU C library defines this for functions which it implements
35015 to always fail with ENOSYS. Some functions are actually named
35016 something starting with __ and the normal name is an alias. */
35017#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35018choke me
35019#else
35020char (*f) () = $ac_func;
35021#endif
35022#ifdef __cplusplus
35023}
35024#endif
35025
35026int
35027main ()
35028{
35029return f != $ac_func;
35030 ;
35031 return 0;
35032}
35033_ACEOF
35034rm -f conftest.$ac_objext conftest$ac_exeext
35035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35036 (eval $ac_link) 2>conftest.er1
a848cd7e 35037 ac_status=$?
ac1cb8d3
VS
35038 grep -v '^ *+' conftest.er1 >conftest.err
35039 rm -f conftest.er1
35040 cat conftest.err >&5
a848cd7e
SC
35041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042 (exit $ac_status); } &&
6ebeb4c7 35043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35045 (eval $ac_try) 2>&5
35046 ac_status=$?
35047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35048 (exit $ac_status); }; } &&
35049 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35051 (eval $ac_try) 2>&5
35052 ac_status=$?
35053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35054 (exit $ac_status); }; }; then
35055 eval "$as_ac_var=yes"
35056else
35057 echo "$as_me: failed program was:" >&5
35058sed 's/^/| /' conftest.$ac_ext >&5
35059
35060eval "$as_ac_var=no"
35061fi
ac1cb8d3
VS
35062rm -f conftest.err conftest.$ac_objext \
35063 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35064fi
35065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35066echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35067if test `eval echo '${'$as_ac_var'}'` = yes; then
35068 cat >>confdefs.h <<_ACEOF
35069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35070_ACEOF
35071 cat >>confdefs.h <<\_ACEOF
35072#define HAVE_INET_ADDR 1
35073_ACEOF
35074
35075else
35076
35077 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
35078echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
35079if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
35080 echo $ECHO_N "(cached) $ECHO_C" >&6
35081else
35082 ac_check_lib_save_LIBS=$LIBS
35083LIBS="-lnsl $LIBS"
35084cat >conftest.$ac_ext <<_ACEOF
35085/* confdefs.h. */
35086_ACEOF
35087cat confdefs.h >>conftest.$ac_ext
35088cat >>conftest.$ac_ext <<_ACEOF
35089/* end confdefs.h. */
35090
35091/* Override any gcc2 internal prototype to avoid an error. */
35092#ifdef __cplusplus
35093extern "C"
35094#endif
35095/* We use char because int might match the return type of a gcc2
35096 builtin and then its argument prototype would still apply. */
35097char inet_addr ();
35098int
35099main ()
35100{
35101inet_addr ();
35102 ;
35103 return 0;
35104}
35105_ACEOF
35106rm -f conftest.$ac_objext conftest$ac_exeext
35107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35108 (eval $ac_link) 2>conftest.er1
a848cd7e 35109 ac_status=$?
ac1cb8d3
VS
35110 grep -v '^ *+' conftest.er1 >conftest.err
35111 rm -f conftest.er1
35112 cat conftest.err >&5
a848cd7e
SC
35113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35114 (exit $ac_status); } &&
6ebeb4c7 35115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35117 (eval $ac_try) 2>&5
35118 ac_status=$?
35119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35120 (exit $ac_status); }; } &&
35121 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35123 (eval $ac_try) 2>&5
35124 ac_status=$?
35125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126 (exit $ac_status); }; }; then
35127 ac_cv_lib_nsl_inet_addr=yes
35128else
35129 echo "$as_me: failed program was:" >&5
35130sed 's/^/| /' conftest.$ac_ext >&5
35131
35132ac_cv_lib_nsl_inet_addr=no
35133fi
ac1cb8d3
VS
35134rm -f conftest.err conftest.$ac_objext \
35135 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35136LIBS=$ac_check_lib_save_LIBS
35137fi
35138echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
35139echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
35140if test $ac_cv_lib_nsl_inet_addr = yes; then
35141 INET_LINK="nsl"
35142else
35143
35144 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
35145echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
35146if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
35147 echo $ECHO_N "(cached) $ECHO_C" >&6
35148else
35149 ac_check_lib_save_LIBS=$LIBS
35150LIBS="-lresolv $LIBS"
35151cat >conftest.$ac_ext <<_ACEOF
35152/* confdefs.h. */
35153_ACEOF
35154cat confdefs.h >>conftest.$ac_ext
35155cat >>conftest.$ac_ext <<_ACEOF
35156/* end confdefs.h. */
35157
35158/* Override any gcc2 internal prototype to avoid an error. */
35159#ifdef __cplusplus
35160extern "C"
35161#endif
35162/* We use char because int might match the return type of a gcc2
35163 builtin and then its argument prototype would still apply. */
35164char inet_addr ();
35165int
35166main ()
35167{
35168inet_addr ();
35169 ;
35170 return 0;
35171}
35172_ACEOF
35173rm -f conftest.$ac_objext conftest$ac_exeext
35174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35175 (eval $ac_link) 2>conftest.er1
a848cd7e 35176 ac_status=$?
ac1cb8d3
VS
35177 grep -v '^ *+' conftest.er1 >conftest.err
35178 rm -f conftest.er1
35179 cat conftest.err >&5
a848cd7e
SC
35180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35181 (exit $ac_status); } &&
6ebeb4c7 35182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35184 (eval $ac_try) 2>&5
35185 ac_status=$?
35186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187 (exit $ac_status); }; } &&
35188 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35190 (eval $ac_try) 2>&5
35191 ac_status=$?
35192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193 (exit $ac_status); }; }; then
35194 ac_cv_lib_resolv_inet_addr=yes
35195else
35196 echo "$as_me: failed program was:" >&5
35197sed 's/^/| /' conftest.$ac_ext >&5
35198
35199ac_cv_lib_resolv_inet_addr=no
35200fi
ac1cb8d3
VS
35201rm -f conftest.err conftest.$ac_objext \
35202 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35203LIBS=$ac_check_lib_save_LIBS
35204fi
35205echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
35206echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
35207if test $ac_cv_lib_resolv_inet_addr = yes; then
35208 INET_LINK="resolv"
35209else
35210
35211 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
35212echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
35213if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
35214 echo $ECHO_N "(cached) $ECHO_C" >&6
35215else
35216 ac_check_lib_save_LIBS=$LIBS
35217LIBS="-lsocket $LIBS"
35218cat >conftest.$ac_ext <<_ACEOF
35219/* confdefs.h. */
35220_ACEOF
35221cat confdefs.h >>conftest.$ac_ext
35222cat >>conftest.$ac_ext <<_ACEOF
35223/* end confdefs.h. */
35224
35225/* Override any gcc2 internal prototype to avoid an error. */
35226#ifdef __cplusplus
35227extern "C"
35228#endif
35229/* We use char because int might match the return type of a gcc2
35230 builtin and then its argument prototype would still apply. */
35231char inet_addr ();
35232int
35233main ()
35234{
35235inet_addr ();
35236 ;
35237 return 0;
35238}
35239_ACEOF
35240rm -f conftest.$ac_objext conftest$ac_exeext
35241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35242 (eval $ac_link) 2>conftest.er1
a848cd7e 35243 ac_status=$?
ac1cb8d3
VS
35244 grep -v '^ *+' conftest.er1 >conftest.err
35245 rm -f conftest.er1
35246 cat conftest.err >&5
a848cd7e
SC
35247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35248 (exit $ac_status); } &&
6ebeb4c7 35249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35251 (eval $ac_try) 2>&5
35252 ac_status=$?
35253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254 (exit $ac_status); }; } &&
35255 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35257 (eval $ac_try) 2>&5
35258 ac_status=$?
35259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35260 (exit $ac_status); }; }; then
35261 ac_cv_lib_socket_inet_addr=yes
35262else
35263 echo "$as_me: failed program was:" >&5
35264sed 's/^/| /' conftest.$ac_ext >&5
35265
35266ac_cv_lib_socket_inet_addr=no
35267fi
ac1cb8d3
VS
35268rm -f conftest.err conftest.$ac_objext \
35269 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35270LIBS=$ac_check_lib_save_LIBS
35271fi
35272echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
35273echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
35274if test $ac_cv_lib_socket_inet_addr = yes; then
35275 INET_LINK="socket"
35276
35277fi
35278
35279
35280
35281fi
35282
35283
35284
35285fi
35286
35287
35288
35289fi
35290done
35291
35292
35293
35294for ac_func in inet_aton
35295do
35296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35297echo "$as_me:$LINENO: checking for $ac_func" >&5
35298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35299if eval "test \"\${$as_ac_var+set}\" = set"; then
35300 echo $ECHO_N "(cached) $ECHO_C" >&6
35301else
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. */
ac1cb8d3
VS
35308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35310#define $ac_func innocuous_$ac_func
35311
a848cd7e
SC
35312/* System header to define __stub macros and hopefully few prototypes,
35313 which can conflict with char $ac_func (); below.
35314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35315 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35316
a848cd7e
SC
35317#ifdef __STDC__
35318# include <limits.h>
35319#else
35320# include <assert.h>
35321#endif
ac1cb8d3
VS
35322
35323#undef $ac_func
35324
a848cd7e
SC
35325/* Override any gcc2 internal prototype to avoid an error. */
35326#ifdef __cplusplus
35327extern "C"
35328{
35329#endif
35330/* We use char because int might match the return type of a gcc2
35331 builtin and then its argument prototype would still apply. */
35332char $ac_func ();
35333/* The GNU C library defines this for functions which it implements
35334 to always fail with ENOSYS. Some functions are actually named
35335 something starting with __ and the normal name is an alias. */
35336#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35337choke me
35338#else
35339char (*f) () = $ac_func;
35340#endif
35341#ifdef __cplusplus
35342}
35343#endif
35344
35345int
35346main ()
35347{
35348return f != $ac_func;
35349 ;
35350 return 0;
35351}
35352_ACEOF
35353rm -f conftest.$ac_objext conftest$ac_exeext
35354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35355 (eval $ac_link) 2>conftest.er1
a848cd7e 35356 ac_status=$?
ac1cb8d3
VS
35357 grep -v '^ *+' conftest.er1 >conftest.err
35358 rm -f conftest.er1
35359 cat conftest.err >&5
a848cd7e
SC
35360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35361 (exit $ac_status); } &&
6ebeb4c7 35362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35364 (eval $ac_try) 2>&5
35365 ac_status=$?
35366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35367 (exit $ac_status); }; } &&
35368 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35370 (eval $ac_try) 2>&5
35371 ac_status=$?
35372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35373 (exit $ac_status); }; }; then
35374 eval "$as_ac_var=yes"
35375else
35376 echo "$as_me: failed program was:" >&5
35377sed 's/^/| /' conftest.$ac_ext >&5
35378
35379eval "$as_ac_var=no"
35380fi
ac1cb8d3
VS
35381rm -f conftest.err conftest.$ac_objext \
35382 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35383fi
35384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35385echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35386if test `eval echo '${'$as_ac_var'}'` = yes; then
35387 cat >>confdefs.h <<_ACEOF
35388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35389_ACEOF
35390 cat >>confdefs.h <<\_ACEOF
35391#define HAVE_INET_ATON 1
35392_ACEOF
35393
35394else
35395
35396 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
35397echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
35398echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
35399if eval "test \"\${$as_ac_Lib+set}\" = set"; then
35400 echo $ECHO_N "(cached) $ECHO_C" >&6
35401else
35402 ac_check_lib_save_LIBS=$LIBS
35403LIBS="-l$INET_LINK $LIBS"
35404cat >conftest.$ac_ext <<_ACEOF
35405/* confdefs.h. */
35406_ACEOF
35407cat confdefs.h >>conftest.$ac_ext
35408cat >>conftest.$ac_ext <<_ACEOF
35409/* end confdefs.h. */
35410
35411/* Override any gcc2 internal prototype to avoid an error. */
35412#ifdef __cplusplus
35413extern "C"
35414#endif
35415/* We use char because int might match the return type of a gcc2
35416 builtin and then its argument prototype would still apply. */
35417char inet_aton ();
35418int
35419main ()
35420{
35421inet_aton ();
35422 ;
35423 return 0;
35424}
35425_ACEOF
35426rm -f conftest.$ac_objext conftest$ac_exeext
35427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35428 (eval $ac_link) 2>conftest.er1
a848cd7e 35429 ac_status=$?
ac1cb8d3
VS
35430 grep -v '^ *+' conftest.er1 >conftest.err
35431 rm -f conftest.er1
35432 cat conftest.err >&5
a848cd7e
SC
35433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434 (exit $ac_status); } &&
6ebeb4c7 35435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35437 (eval $ac_try) 2>&5
35438 ac_status=$?
35439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35440 (exit $ac_status); }; } &&
35441 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35443 (eval $ac_try) 2>&5
35444 ac_status=$?
35445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446 (exit $ac_status); }; }; then
35447 eval "$as_ac_Lib=yes"
35448else
35449 echo "$as_me: failed program was:" >&5
35450sed 's/^/| /' conftest.$ac_ext >&5
35451
35452eval "$as_ac_Lib=no"
35453fi
ac1cb8d3
VS
35454rm -f conftest.err conftest.$ac_objext \
35455 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35456LIBS=$ac_check_lib_save_LIBS
35457fi
35458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
35459echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
35460if test `eval echo '${'$as_ac_Lib'}'` = yes; then
35461 cat >>confdefs.h <<\_ACEOF
35462#define HAVE_INET_ATON 1
35463_ACEOF
35464
35465fi
35466
35467
35468fi
35469done
35470
35471
35472if test "x$INET_LINK" != "x"; then
35473 cat >>confdefs.h <<\_ACEOF
35474#define HAVE_INET_ADDR 1
35475_ACEOF
35476
35477 INET_LINK=" -l$INET_LINK"
35478fi
35479
35480fi
35481
35482
35483
35484EXTRALIBS_ESD=
35485echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
35486echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
35487if test "${ac_cv_lib_esd_esd_close+set}" = set; then
35488 echo $ECHO_N "(cached) $ECHO_C" >&6
35489else
35490 ac_check_lib_save_LIBS=$LIBS
35491LIBS="-lesd $LIBS"
35492cat >conftest.$ac_ext <<_ACEOF
35493/* confdefs.h. */
35494_ACEOF
35495cat confdefs.h >>conftest.$ac_ext
35496cat >>conftest.$ac_ext <<_ACEOF
35497/* end confdefs.h. */
35498
35499/* Override any gcc2 internal prototype to avoid an error. */
35500#ifdef __cplusplus
35501extern "C"
35502#endif
35503/* We use char because int might match the return type of a gcc2
35504 builtin and then its argument prototype would still apply. */
35505char esd_close ();
35506int
35507main ()
35508{
35509esd_close ();
35510 ;
35511 return 0;
35512}
35513_ACEOF
35514rm -f conftest.$ac_objext conftest$ac_exeext
35515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35516 (eval $ac_link) 2>conftest.er1
a848cd7e 35517 ac_status=$?
ac1cb8d3
VS
35518 grep -v '^ *+' conftest.er1 >conftest.err
35519 rm -f conftest.er1
35520 cat conftest.err >&5
a848cd7e
SC
35521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522 (exit $ac_status); } &&
6ebeb4c7 35523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35525 (eval $ac_try) 2>&5
35526 ac_status=$?
35527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35528 (exit $ac_status); }; } &&
35529 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35531 (eval $ac_try) 2>&5
35532 ac_status=$?
35533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35534 (exit $ac_status); }; }; then
35535 ac_cv_lib_esd_esd_close=yes
35536else
35537 echo "$as_me: failed program was:" >&5
35538sed 's/^/| /' conftest.$ac_ext >&5
35539
35540ac_cv_lib_esd_esd_close=no
35541fi
ac1cb8d3
VS
35542rm -f conftest.err conftest.$ac_objext \
35543 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35544LIBS=$ac_check_lib_save_LIBS
35545fi
35546echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
35547echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
35548if test $ac_cv_lib_esd_esd_close = yes; then
35549
35550
35551for ac_header in esd.h
35552do
35553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35554if eval "test \"\${$as_ac_Header+set}\" = set"; then
35555 echo "$as_me:$LINENO: checking for $ac_header" >&5
35556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35557if eval "test \"\${$as_ac_Header+set}\" = set"; then
35558 echo $ECHO_N "(cached) $ECHO_C" >&6
35559fi
35560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35562else
35563 # Is the header compilable?
35564echo "$as_me:$LINENO: checking $ac_header usability" >&5
35565echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35566cat >conftest.$ac_ext <<_ACEOF
35567/* confdefs.h. */
35568_ACEOF
35569cat confdefs.h >>conftest.$ac_ext
35570cat >>conftest.$ac_ext <<_ACEOF
35571/* end confdefs.h. */
35572$ac_includes_default
35573#include <$ac_header>
35574_ACEOF
35575rm -f conftest.$ac_objext
35576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35577 (eval $ac_compile) 2>conftest.er1
a848cd7e 35578 ac_status=$?
ac1cb8d3
VS
35579 grep -v '^ *+' conftest.er1 >conftest.err
35580 rm -f conftest.er1
35581 cat conftest.err >&5
a848cd7e
SC
35582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35583 (exit $ac_status); } &&
6ebeb4c7 35584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35586 (eval $ac_try) 2>&5
35587 ac_status=$?
35588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35589 (exit $ac_status); }; } &&
35590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35592 (eval $ac_try) 2>&5
35593 ac_status=$?
35594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595 (exit $ac_status); }; }; then
35596 ac_header_compiler=yes
35597else
35598 echo "$as_me: failed program was:" >&5
35599sed 's/^/| /' conftest.$ac_ext >&5
35600
35601ac_header_compiler=no
35602fi
ac1cb8d3 35603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35604echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35605echo "${ECHO_T}$ac_header_compiler" >&6
35606
35607# Is the header present?
35608echo "$as_me:$LINENO: checking $ac_header presence" >&5
35609echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35610cat >conftest.$ac_ext <<_ACEOF
35611/* confdefs.h. */
35612_ACEOF
35613cat confdefs.h >>conftest.$ac_ext
35614cat >>conftest.$ac_ext <<_ACEOF
35615/* end confdefs.h. */
35616#include <$ac_header>
35617_ACEOF
35618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35620 ac_status=$?
35621 grep -v '^ *+' conftest.er1 >conftest.err
35622 rm -f conftest.er1
35623 cat conftest.err >&5
35624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625 (exit $ac_status); } >/dev/null; then
35626 if test -s conftest.err; then
35627 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35629 else
35630 ac_cpp_err=
35631 fi
35632else
35633 ac_cpp_err=yes
35634fi
35635if test -z "$ac_cpp_err"; then
35636 ac_header_preproc=yes
35637else
35638 echo "$as_me: failed program was:" >&5
35639sed 's/^/| /' conftest.$ac_ext >&5
35640
35641 ac_header_preproc=no
35642fi
35643rm -f conftest.err conftest.$ac_ext
35644echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35645echo "${ECHO_T}$ac_header_preproc" >&6
35646
35647# So? What about this header?
ac1cb8d3
VS
35648case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35649 yes:no: )
a848cd7e
SC
35650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35651echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35653echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35654 ac_header_preproc=yes
a848cd7e 35655 ;;
ac1cb8d3 35656 no:yes:* )
a848cd7e
SC
35657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35658echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35660echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35662echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35664echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35666echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35668echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35669 (
35670 cat <<\_ASBOX
ac1cb8d3
VS
35671## ----------------------------------------- ##
35672## Report this to wx-dev@lists.wxwidgets.org ##
35673## ----------------------------------------- ##
a848cd7e
SC
35674_ASBOX
35675 ) |
35676 sed "s/^/$as_me: WARNING: /" >&2
35677 ;;
35678esac
35679echo "$as_me:$LINENO: checking for $ac_header" >&5
35680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35681if eval "test \"\${$as_ac_Header+set}\" = set"; then
35682 echo $ECHO_N "(cached) $ECHO_C" >&6
35683else
ac1cb8d3 35684 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35685fi
35686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35688
35689fi
35690if test `eval echo '${'$as_ac_Header'}'` = yes; then
35691 cat >>confdefs.h <<_ACEOF
35692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35693_ACEOF
35694
35695 EXTRALIBS_ESD="-lesd"
35696
35697fi
35698
35699done
35700
35701
35702fi
35703
35704
35705
35706echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
35707echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
35708cat >conftest.$ac_ext <<_ACEOF
35709/* confdefs.h. */
35710_ACEOF
35711cat confdefs.h >>conftest.$ac_ext
35712cat >>conftest.$ac_ext <<_ACEOF
35713/* end confdefs.h. */
35714#ifdef __linux__
35715 #include <linux/cdrom.h>
35716 #else
35717 /* For Solaris */
35718 #include <sys/cdio.h>
35719 #endif
35720
35721int
35722main ()
35723{
35724struct cdrom_tocentry entry, old_entry;
35725 ;
35726 return 0;
35727}
35728_ACEOF
35729rm -f conftest.$ac_objext
35730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35731 (eval $ac_compile) 2>conftest.er1
a848cd7e 35732 ac_status=$?
ac1cb8d3
VS
35733 grep -v '^ *+' conftest.er1 >conftest.err
35734 rm -f conftest.er1
35735 cat conftest.err >&5
a848cd7e
SC
35736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737 (exit $ac_status); } &&
6ebeb4c7 35738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35740 (eval $ac_try) 2>&5
35741 ac_status=$?
35742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743 (exit $ac_status); }; } &&
35744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35746 (eval $ac_try) 2>&5
35747 ac_status=$?
35748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35749 (exit $ac_status); }; }; then
35750 echo "$as_me:$LINENO: result: yes" >&5
35751echo "${ECHO_T}yes" >&6
35752 cat >>confdefs.h <<\_ACEOF
35753#define HAVE_KNOWN_CDROM_INTERFACE 1
35754_ACEOF
35755
35756else
35757 echo "$as_me: failed program was:" >&5
35758sed 's/^/| /' conftest.$ac_ext >&5
35759
35760echo "$as_me:$LINENO: result: no" >&5
35761echo "${ECHO_T}no" >&6
35762fi
ac1cb8d3 35763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35764
35765
35766cat >confcache <<\_ACEOF
35767# This file is a shell script that caches the results of configure
35768# tests run on this system so they can be shared between configure
35769# scripts and configure runs, see configure's option --config-cache.
35770# It is not useful on other systems. If it contains results you don't
35771# want to keep, you may remove or edit it.
35772#
35773# config.status only pays attention to the cache file if you give it
35774# the --recheck option to rerun configure.
35775#
35776# `ac_cv_env_foo' variables (set or unset) will be overridden when
35777# loading this file, other *unset* `ac_cv_foo' will be assigned the
35778# following values.
35779
35780_ACEOF
35781
35782# The following way of writing the cache mishandles newlines in values,
35783# but we know of no workaround that is simple, portable, and efficient.
35784# So, don't put newlines in cache variables' values.
35785# Ultrix sh set writes to stderr and can't be redirected directly,
35786# and sets the high bit in the cache file unless we assign to the vars.
35787{
35788 (set) 2>&1 |
35789 case `(ac_space=' '; set | grep ac_space) 2>&1` in
35790 *ac_space=\ *)
35791 # `set' does not quote correctly, so add quotes (double-quote
35792 # substitution turns \\\\ into \\, and sed turns \\ into \).
35793 sed -n \
ac1cb8d3
VS
35794 "s/'/'\\\\''/g;
35795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
35796 ;;
35797 *)
35798 # `set' quotes correctly as required by POSIX, so do not add quotes.
35799 sed -n \
ac1cb8d3 35800 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
35801 ;;
35802 esac;
35803} |
35804 sed '
35805 t clear
35806 : clear
35807 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35808 t end
35809 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35810 : end' >>confcache
35811if diff $cache_file confcache >/dev/null 2>&1; then :; else
35812 if test -w $cache_file; then
35813 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35814 cat confcache >$cache_file
35815 else
35816 echo "not updating unwritable cache $cache_file"
35817 fi
35818fi
35819rm -f confcache
35820
35821
35822CPP_MT_FLAG=
35823if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35824
35825
35826 THREADS_LINK=
35827 THREADS_CFLAGS=
35828
35829 if test "$wxUSE_THREADS" = "yes" ; then
35830 if test "$USE_BEOS" = 1; then
35831 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
35832echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
35833 wxUSE_THREADS="no"
35834 fi
35835 fi
35836
35837 if test "$wxUSE_THREADS" = "yes" ; then
35838
35839
35840 THREAD_OPTS="-pthread"
35841 case "${host}" in
35842 *-*-solaris2* | *-*-sunos4* )
35843 if test "x$GCC" = "xyes"; then
35844 THREAD_OPTS="-pthreads $THREAD_OPTS"
35845 else
35846 THREAD_OPTS="-mt $THREAD_OPTS"
35847 fi
35848 ;;
35849 *-*-freebsd*)
35850 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
35851 ;;
35852 *-*-darwin* | *-*-cygwin* )
35853 THREAD_OPTS=""
35854 ;;
35855 *-*-aix*)
35856 THREAD_OPTS="pthreads"
35857 ;;
35858 *-hp-hpux* )
00421666
MW
35859 if test "x$GCC" = "xyes"; then
35860 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
35861 THREAD_OPTS=""
35862 else
efdf6afe 35863 THREAD_OPTS=""
a848cd7e
SC
35864 fi
35865 ;;
35866
35867 *-*-irix* )
35868 if test "x$GCC" = "xyes"; then
35869 THREAD_OPTS=""
35870 fi
35871 ;;
35872
35873 *-*-*UnixWare*)
35874 if test "x$GCC" != "xyes"; then
35875 THREAD_OPTS="-Ethread"
35876 fi
35877 ;;
35878 esac
35879
35880 THREAD_OPTS="$THREAD_OPTS pthread none"
35881
35882 THREADS_OK=no
35883 for flag in $THREAD_OPTS; do
35884 case $flag in
35885 none)
35886 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
35887echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
35888 ;;
35889
35890 -*)
35891 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
35892echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
35893 THREADS_CFLAGS="$flag"
35894 ;;
35895
35896 *)
35897 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
35898echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
35899 THREADS_LINK="-l$flag"
35900 ;;
35901 esac
35902
35903 save_LIBS="$LIBS"
35904 save_CFLAGS="$CFLAGS"
35905 LIBS="$THREADS_LINK $LIBS"
35906 CFLAGS="$THREADS_CFLAGS $CFLAGS"
35907
35908 cat >conftest.$ac_ext <<_ACEOF
35909/* confdefs.h. */
35910_ACEOF
35911cat confdefs.h >>conftest.$ac_ext
35912cat >>conftest.$ac_ext <<_ACEOF
35913/* end confdefs.h. */
35914#include <pthread.h>
35915int
35916main ()
35917{
35918pthread_create(0,0,0,0);
35919 ;
35920 return 0;
35921}
35922_ACEOF
35923rm -f conftest.$ac_objext conftest$ac_exeext
35924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35925 (eval $ac_link) 2>conftest.er1
a848cd7e 35926 ac_status=$?
ac1cb8d3
VS
35927 grep -v '^ *+' conftest.er1 >conftest.err
35928 rm -f conftest.er1
35929 cat conftest.err >&5
a848cd7e
SC
35930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35931 (exit $ac_status); } &&
6ebeb4c7 35932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35934 (eval $ac_try) 2>&5
35935 ac_status=$?
35936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937 (exit $ac_status); }; } &&
35938 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35940 (eval $ac_try) 2>&5
35941 ac_status=$?
35942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35943 (exit $ac_status); }; }; then
35944 THREADS_OK=yes
35945else
35946 echo "$as_me: failed program was:" >&5
35947sed 's/^/| /' conftest.$ac_ext >&5
35948
35949fi
ac1cb8d3
VS
35950rm -f conftest.err conftest.$ac_objext \
35951 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35952
35953 LIBS="$save_LIBS"
35954 CFLAGS="$save_CFLAGS"
35955
35956 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
35957echo "${ECHO_T}$THREADS_OK" >&6
35958 if test "x$THREADS_OK" = "xyes"; then
35959 break;
35960 fi
35961
35962 THREADS_LINK=""
35963 THREADS_CFLAGS=""
35964 done
35965
35966 if test "x$THREADS_OK" != "xyes"; then
35967 wxUSE_THREADS=no
35968 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
35969echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
35970 else
35971 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
35972 LIBS="$THREADS_LINK $LIBS"
35973
35974 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
35975echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
35976 flag=no
35977 case "${host}" in
35978 *-aix*)
35979 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
35980 flag="-D_THREAD_SAFE"
35981 ;;
35982 *-freebsd*)
35983 flag="-D_THREAD_SAFE"
35984 ;;
35985 *-hp-hpux* )
35986 flag="-D_REENTRANT"
35987 if test "x$GCC" != "xyes"; then
35988 flag="$flag -D_RWSTD_MULTI_THREAD"
35989 fi
35990 ;;
35991 *solaris* | alpha*-osf*)
35992 flag="-D_REENTRANT"
35993 ;;
35994 esac
35995 echo "$as_me:$LINENO: result: ${flag}" >&5
35996echo "${ECHO_T}${flag}" >&6
35997 if test "x$flag" != xno; then
35998 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
35999 fi
36000
36001 if test "x$THREADS_CFLAGS" != "x"; then
36002 CFLAGS="$CFLAGS $THREADS_CFLAGS"
36003 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
36004 fi
36005 fi
36006 fi
36007
36008 if test "$wxUSE_THREADS" = "yes" ; then
36009
36010for ac_func in thr_setconcurrency
36011do
36012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36013echo "$as_me:$LINENO: checking for $ac_func" >&5
36014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36015if eval "test \"\${$as_ac_var+set}\" = set"; then
36016 echo $ECHO_N "(cached) $ECHO_C" >&6
36017else
36018 cat >conftest.$ac_ext <<_ACEOF
36019/* confdefs.h. */
36020_ACEOF
36021cat confdefs.h >>conftest.$ac_ext
36022cat >>conftest.$ac_ext <<_ACEOF
36023/* end confdefs.h. */
ac1cb8d3
VS
36024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36026#define $ac_func innocuous_$ac_func
36027
a848cd7e
SC
36028/* System header to define __stub macros and hopefully few prototypes,
36029 which can conflict with char $ac_func (); below.
36030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36031 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36032
a848cd7e
SC
36033#ifdef __STDC__
36034# include <limits.h>
36035#else
36036# include <assert.h>
36037#endif
ac1cb8d3
VS
36038
36039#undef $ac_func
36040
a848cd7e
SC
36041/* Override any gcc2 internal prototype to avoid an error. */
36042#ifdef __cplusplus
36043extern "C"
36044{
36045#endif
36046/* We use char because int might match the return type of a gcc2
36047 builtin and then its argument prototype would still apply. */
36048char $ac_func ();
36049/* The GNU C library defines this for functions which it implements
36050 to always fail with ENOSYS. Some functions are actually named
36051 something starting with __ and the normal name is an alias. */
36052#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36053choke me
36054#else
36055char (*f) () = $ac_func;
36056#endif
36057#ifdef __cplusplus
36058}
36059#endif
36060
36061int
36062main ()
36063{
36064return f != $ac_func;
36065 ;
36066 return 0;
36067}
36068_ACEOF
36069rm -f conftest.$ac_objext conftest$ac_exeext
36070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36071 (eval $ac_link) 2>conftest.er1
a848cd7e 36072 ac_status=$?
ac1cb8d3
VS
36073 grep -v '^ *+' conftest.er1 >conftest.err
36074 rm -f conftest.er1
36075 cat conftest.err >&5
a848cd7e
SC
36076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36077 (exit $ac_status); } &&
6ebeb4c7 36078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36080 (eval $ac_try) 2>&5
36081 ac_status=$?
36082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083 (exit $ac_status); }; } &&
36084 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36086 (eval $ac_try) 2>&5
36087 ac_status=$?
36088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36089 (exit $ac_status); }; }; then
36090 eval "$as_ac_var=yes"
36091else
36092 echo "$as_me: failed program was:" >&5
36093sed 's/^/| /' conftest.$ac_ext >&5
36094
36095eval "$as_ac_var=no"
36096fi
ac1cb8d3
VS
36097rm -f conftest.err conftest.$ac_objext \
36098 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36099fi
36100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36101echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36102if test `eval echo '${'$as_ac_var'}'` = yes; then
36103 cat >>confdefs.h <<_ACEOF
36104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36105_ACEOF
36106
36107fi
36108done
36109
36110
6ebeb4c7
VZ
36111 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
36112echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
36113if test "${wx_cv_func_pthread_cleanup+set}" = set; then
36114 echo $ECHO_N "(cached) $ECHO_C" >&6
36115else
36116
36117 cat >conftest.$ac_ext <<_ACEOF
36118/* confdefs.h. */
36119_ACEOF
36120cat confdefs.h >>conftest.$ac_ext
36121cat >>conftest.$ac_ext <<_ACEOF
36122/* end confdefs.h. */
36123#include <pthread.h>
36124 void ThreadCleanupFunc(void *p);
36125
36126int
36127main ()
36128{
36129
36130 void *p;
36131 pthread_cleanup_push(ThreadCleanupFunc, p);
36132 pthread_cleanup_pop(0);
36133
36134 ;
36135 return 0;
36136}
36137_ACEOF
36138rm -f conftest.$ac_objext
36139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36140 (eval $ac_compile) 2>conftest.er1
36141 ac_status=$?
36142 grep -v '^ *+' conftest.er1 >conftest.err
36143 rm -f conftest.er1
36144 cat conftest.err >&5
36145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36146 (exit $ac_status); } &&
36147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36149 (eval $ac_try) 2>&5
36150 ac_status=$?
36151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152 (exit $ac_status); }; } &&
36153 { ac_try='test -s conftest.$ac_objext'
36154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36155 (eval $ac_try) 2>&5
36156 ac_status=$?
36157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36158 (exit $ac_status); }; }; then
36159
36160 wx_cv_func_pthread_cleanup=yes
36161
36162else
36163 echo "$as_me: failed program was:" >&5
36164sed 's/^/| /' conftest.$ac_ext >&5
36165
36166
36167 wx_cv_func_pthread_cleanup=no
36168
36169
36170fi
36171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36172
36173fi
36174echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
36175echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
36176 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
36177 cat >>confdefs.h <<\_ACEOF
36178#define wxHAVE_PTHREAD_CLEANUP 1
36179_ACEOF
36180
36181 fi
36182
a848cd7e
SC
36183
36184for ac_header in sched.h
36185do
36186as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36187if eval "test \"\${$as_ac_Header+set}\" = set"; then
36188 echo "$as_me:$LINENO: checking for $ac_header" >&5
36189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36190if eval "test \"\${$as_ac_Header+set}\" = set"; then
36191 echo $ECHO_N "(cached) $ECHO_C" >&6
36192fi
36193echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36194echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36195else
36196 # Is the header compilable?
36197echo "$as_me:$LINENO: checking $ac_header usability" >&5
36198echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36199cat >conftest.$ac_ext <<_ACEOF
36200/* confdefs.h. */
36201_ACEOF
36202cat confdefs.h >>conftest.$ac_ext
36203cat >>conftest.$ac_ext <<_ACEOF
36204/* end confdefs.h. */
36205$ac_includes_default
36206#include <$ac_header>
36207_ACEOF
36208rm -f conftest.$ac_objext
36209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36210 (eval $ac_compile) 2>conftest.er1
a848cd7e 36211 ac_status=$?
ac1cb8d3
VS
36212 grep -v '^ *+' conftest.er1 >conftest.err
36213 rm -f conftest.er1
36214 cat conftest.err >&5
a848cd7e
SC
36215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36216 (exit $ac_status); } &&
6ebeb4c7 36217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36219 (eval $ac_try) 2>&5
36220 ac_status=$?
36221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36222 (exit $ac_status); }; } &&
36223 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36225 (eval $ac_try) 2>&5
36226 ac_status=$?
36227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228 (exit $ac_status); }; }; then
36229 ac_header_compiler=yes
36230else
36231 echo "$as_me: failed program was:" >&5
36232sed 's/^/| /' conftest.$ac_ext >&5
36233
36234ac_header_compiler=no
36235fi
ac1cb8d3 36236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36237echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36238echo "${ECHO_T}$ac_header_compiler" >&6
36239
36240# Is the header present?
36241echo "$as_me:$LINENO: checking $ac_header presence" >&5
36242echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36243cat >conftest.$ac_ext <<_ACEOF
36244/* confdefs.h. */
36245_ACEOF
36246cat confdefs.h >>conftest.$ac_ext
36247cat >>conftest.$ac_ext <<_ACEOF
36248/* end confdefs.h. */
36249#include <$ac_header>
36250_ACEOF
36251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36253 ac_status=$?
36254 grep -v '^ *+' conftest.er1 >conftest.err
36255 rm -f conftest.er1
36256 cat conftest.err >&5
36257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258 (exit $ac_status); } >/dev/null; then
36259 if test -s conftest.err; then
36260 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36262 else
36263 ac_cpp_err=
36264 fi
36265else
36266 ac_cpp_err=yes
36267fi
36268if test -z "$ac_cpp_err"; then
36269 ac_header_preproc=yes
36270else
36271 echo "$as_me: failed program was:" >&5
36272sed 's/^/| /' conftest.$ac_ext >&5
36273
36274 ac_header_preproc=no
36275fi
36276rm -f conftest.err conftest.$ac_ext
36277echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36278echo "${ECHO_T}$ac_header_preproc" >&6
36279
36280# So? What about this header?
ac1cb8d3
VS
36281case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36282 yes:no: )
a848cd7e
SC
36283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36284echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36286echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36287 ac_header_preproc=yes
a848cd7e 36288 ;;
ac1cb8d3 36289 no:yes:* )
a848cd7e
SC
36290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36291echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36293echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36295echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36297echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36299echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36301echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36302 (
36303 cat <<\_ASBOX
ac1cb8d3
VS
36304## ----------------------------------------- ##
36305## Report this to wx-dev@lists.wxwidgets.org ##
36306## ----------------------------------------- ##
a848cd7e
SC
36307_ASBOX
36308 ) |
36309 sed "s/^/$as_me: WARNING: /" >&2
36310 ;;
36311esac
36312echo "$as_me:$LINENO: checking for $ac_header" >&5
36313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36314if eval "test \"\${$as_ac_Header+set}\" = set"; then
36315 echo $ECHO_N "(cached) $ECHO_C" >&6
36316else
ac1cb8d3 36317 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36318fi
36319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36320echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36321
36322fi
36323if test `eval echo '${'$as_ac_Header'}'` = yes; then
36324 cat >>confdefs.h <<_ACEOF
36325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36326_ACEOF
36327
36328fi
36329
36330done
36331
36332 if test "$ac_cv_header_sched_h" = "yes"; then
36333 echo "$as_me:$LINENO: checking for sched_yield" >&5
36334echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
36335if test "${ac_cv_func_sched_yield+set}" = set; then
36336 echo $ECHO_N "(cached) $ECHO_C" >&6
36337else
36338 cat >conftest.$ac_ext <<_ACEOF
36339/* confdefs.h. */
36340_ACEOF
36341cat confdefs.h >>conftest.$ac_ext
36342cat >>conftest.$ac_ext <<_ACEOF
36343/* end confdefs.h. */
ac1cb8d3
VS
36344/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
36345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36346#define sched_yield innocuous_sched_yield
36347
a848cd7e
SC
36348/* System header to define __stub macros and hopefully few prototypes,
36349 which can conflict with char sched_yield (); below.
36350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36351 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36352
a848cd7e
SC
36353#ifdef __STDC__
36354# include <limits.h>
36355#else
36356# include <assert.h>
36357#endif
ac1cb8d3
VS
36358
36359#undef sched_yield
36360
a848cd7e
SC
36361/* Override any gcc2 internal prototype to avoid an error. */
36362#ifdef __cplusplus
36363extern "C"
36364{
36365#endif
36366/* We use char because int might match the return type of a gcc2
36367 builtin and then its argument prototype would still apply. */
36368char sched_yield ();
36369/* The GNU C library defines this for functions which it implements
36370 to always fail with ENOSYS. Some functions are actually named
36371 something starting with __ and the normal name is an alias. */
36372#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
36373choke me
36374#else
36375char (*f) () = sched_yield;
36376#endif
36377#ifdef __cplusplus
36378}
36379#endif
36380
36381int
36382main ()
36383{
36384return f != sched_yield;
36385 ;
36386 return 0;
36387}
36388_ACEOF
36389rm -f conftest.$ac_objext conftest$ac_exeext
36390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36391 (eval $ac_link) 2>conftest.er1
a848cd7e 36392 ac_status=$?
ac1cb8d3
VS
36393 grep -v '^ *+' conftest.er1 >conftest.err
36394 rm -f conftest.er1
36395 cat conftest.err >&5
a848cd7e
SC
36396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36397 (exit $ac_status); } &&
6ebeb4c7 36398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36400 (eval $ac_try) 2>&5
36401 ac_status=$?
36402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36403 (exit $ac_status); }; } &&
36404 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36406 (eval $ac_try) 2>&5
36407 ac_status=$?
36408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36409 (exit $ac_status); }; }; then
36410 ac_cv_func_sched_yield=yes
36411else
36412 echo "$as_me: failed program was:" >&5
36413sed 's/^/| /' conftest.$ac_ext >&5
36414
36415ac_cv_func_sched_yield=no
36416fi
ac1cb8d3
VS
36417rm -f conftest.err conftest.$ac_objext \
36418 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36419fi
36420echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
36421echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
36422if test $ac_cv_func_sched_yield = yes; then
36423 cat >>confdefs.h <<\_ACEOF
36424#define HAVE_SCHED_YIELD 1
36425_ACEOF
36426
36427else
36428
36429 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
36430echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
36431if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
36432 echo $ECHO_N "(cached) $ECHO_C" >&6
36433else
36434 ac_check_lib_save_LIBS=$LIBS
36435LIBS="-lposix4 $LIBS"
36436cat >conftest.$ac_ext <<_ACEOF
36437/* confdefs.h. */
36438_ACEOF
36439cat confdefs.h >>conftest.$ac_ext
36440cat >>conftest.$ac_ext <<_ACEOF
36441/* end confdefs.h. */
36442
36443/* Override any gcc2 internal prototype to avoid an error. */
36444#ifdef __cplusplus
36445extern "C"
36446#endif
36447/* We use char because int might match the return type of a gcc2
36448 builtin and then its argument prototype would still apply. */
36449char sched_yield ();
36450int
36451main ()
36452{
36453sched_yield ();
36454 ;
36455 return 0;
36456}
36457_ACEOF
36458rm -f conftest.$ac_objext conftest$ac_exeext
36459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36460 (eval $ac_link) 2>conftest.er1
a848cd7e 36461 ac_status=$?
ac1cb8d3
VS
36462 grep -v '^ *+' conftest.er1 >conftest.err
36463 rm -f conftest.er1
36464 cat conftest.err >&5
a848cd7e
SC
36465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36466 (exit $ac_status); } &&
6ebeb4c7 36467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36469 (eval $ac_try) 2>&5
36470 ac_status=$?
36471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36472 (exit $ac_status); }; } &&
36473 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36475 (eval $ac_try) 2>&5
36476 ac_status=$?
36477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36478 (exit $ac_status); }; }; then
36479 ac_cv_lib_posix4_sched_yield=yes
36480else
36481 echo "$as_me: failed program was:" >&5
36482sed 's/^/| /' conftest.$ac_ext >&5
36483
36484ac_cv_lib_posix4_sched_yield=no
36485fi
ac1cb8d3
VS
36486rm -f conftest.err conftest.$ac_objext \
36487 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36488LIBS=$ac_check_lib_save_LIBS
36489fi
36490echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
36491echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
36492if test $ac_cv_lib_posix4_sched_yield = yes; then
36493 cat >>confdefs.h <<\_ACEOF
36494#define HAVE_SCHED_YIELD 1
36495_ACEOF
36496 POSIX4_LINK=" -lposix4"
36497else
36498 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
36499echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
36500
36501fi
36502
36503
36504
36505fi
36506
36507 fi
36508
36509 HAVE_PRIOR_FUNCS=0
36510 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
36511echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
36512if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
36513 echo $ECHO_N "(cached) $ECHO_C" >&6
36514else
36515 cat >conftest.$ac_ext <<_ACEOF
36516/* confdefs.h. */
36517_ACEOF
36518cat confdefs.h >>conftest.$ac_ext
36519cat >>conftest.$ac_ext <<_ACEOF
36520/* end confdefs.h. */
ac1cb8d3
VS
36521/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
36522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36523#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
36524
a848cd7e
SC
36525/* System header to define __stub macros and hopefully few prototypes,
36526 which can conflict with char pthread_attr_getschedpolicy (); below.
36527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36528 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36529
a848cd7e
SC
36530#ifdef __STDC__
36531# include <limits.h>
36532#else
36533# include <assert.h>
36534#endif
ac1cb8d3
VS
36535
36536#undef pthread_attr_getschedpolicy
36537
a848cd7e
SC
36538/* Override any gcc2 internal prototype to avoid an error. */
36539#ifdef __cplusplus
36540extern "C"
36541{
36542#endif
36543/* We use char because int might match the return type of a gcc2
36544 builtin and then its argument prototype would still apply. */
36545char pthread_attr_getschedpolicy ();
36546/* The GNU C library defines this for functions which it implements
36547 to always fail with ENOSYS. Some functions are actually named
36548 something starting with __ and the normal name is an alias. */
36549#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
36550choke me
36551#else
36552char (*f) () = pthread_attr_getschedpolicy;
36553#endif
36554#ifdef __cplusplus
36555}
36556#endif
36557
36558int
36559main ()
36560{
36561return f != pthread_attr_getschedpolicy;
36562 ;
36563 return 0;
36564}
36565_ACEOF
36566rm -f conftest.$ac_objext conftest$ac_exeext
36567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36568 (eval $ac_link) 2>conftest.er1
a848cd7e 36569 ac_status=$?
ac1cb8d3
VS
36570 grep -v '^ *+' conftest.er1 >conftest.err
36571 rm -f conftest.er1
36572 cat conftest.err >&5
a848cd7e
SC
36573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36574 (exit $ac_status); } &&
6ebeb4c7 36575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36577 (eval $ac_try) 2>&5
36578 ac_status=$?
36579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36580 (exit $ac_status); }; } &&
36581 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36583 (eval $ac_try) 2>&5
36584 ac_status=$?
36585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36586 (exit $ac_status); }; }; then
36587 ac_cv_func_pthread_attr_getschedpolicy=yes
36588else
36589 echo "$as_me: failed program was:" >&5
36590sed 's/^/| /' conftest.$ac_ext >&5
36591
36592ac_cv_func_pthread_attr_getschedpolicy=no
36593fi
ac1cb8d3
VS
36594rm -f conftest.err conftest.$ac_objext \
36595 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36596fi
36597echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
36598echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
36599if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
36600 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
36601echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
36602if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
36603 echo $ECHO_N "(cached) $ECHO_C" >&6
36604else
36605 cat >conftest.$ac_ext <<_ACEOF
36606/* confdefs.h. */
36607_ACEOF
36608cat confdefs.h >>conftest.$ac_ext
36609cat >>conftest.$ac_ext <<_ACEOF
36610/* end confdefs.h. */
ac1cb8d3
VS
36611/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
36612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36613#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
36614
a848cd7e
SC
36615/* System header to define __stub macros and hopefully few prototypes,
36616 which can conflict with char pthread_attr_setschedparam (); below.
36617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36618 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36619
a848cd7e
SC
36620#ifdef __STDC__
36621# include <limits.h>
36622#else
36623# include <assert.h>
36624#endif
ac1cb8d3
VS
36625
36626#undef pthread_attr_setschedparam
36627
a848cd7e
SC
36628/* Override any gcc2 internal prototype to avoid an error. */
36629#ifdef __cplusplus
36630extern "C"
36631{
36632#endif
36633/* We use char because int might match the return type of a gcc2
36634 builtin and then its argument prototype would still apply. */
36635char pthread_attr_setschedparam ();
36636/* The GNU C library defines this for functions which it implements
36637 to always fail with ENOSYS. Some functions are actually named
36638 something starting with __ and the normal name is an alias. */
36639#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
36640choke me
36641#else
36642char (*f) () = pthread_attr_setschedparam;
36643#endif
36644#ifdef __cplusplus
36645}
36646#endif
36647
36648int
36649main ()
36650{
36651return f != pthread_attr_setschedparam;
36652 ;
36653 return 0;
36654}
36655_ACEOF
36656rm -f conftest.$ac_objext conftest$ac_exeext
36657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36658 (eval $ac_link) 2>conftest.er1
a848cd7e 36659 ac_status=$?
ac1cb8d3
VS
36660 grep -v '^ *+' conftest.er1 >conftest.err
36661 rm -f conftest.er1
36662 cat conftest.err >&5
a848cd7e
SC
36663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664 (exit $ac_status); } &&
6ebeb4c7 36665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36667 (eval $ac_try) 2>&5
36668 ac_status=$?
36669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36670 (exit $ac_status); }; } &&
36671 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36673 (eval $ac_try) 2>&5
36674 ac_status=$?
36675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36676 (exit $ac_status); }; }; then
36677 ac_cv_func_pthread_attr_setschedparam=yes
36678else
36679 echo "$as_me: failed program was:" >&5
36680sed 's/^/| /' conftest.$ac_ext >&5
36681
36682ac_cv_func_pthread_attr_setschedparam=no
36683fi
ac1cb8d3
VS
36684rm -f conftest.err conftest.$ac_objext \
36685 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36686fi
36687echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
36688echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
36689if test $ac_cv_func_pthread_attr_setschedparam = yes; then
36690 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
36691echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
36692if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
36693 echo $ECHO_N "(cached) $ECHO_C" >&6
36694else
36695 cat >conftest.$ac_ext <<_ACEOF
36696/* confdefs.h. */
36697_ACEOF
36698cat confdefs.h >>conftest.$ac_ext
36699cat >>conftest.$ac_ext <<_ACEOF
36700/* end confdefs.h. */
ac1cb8d3
VS
36701/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
36702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36703#define sched_get_priority_max innocuous_sched_get_priority_max
36704
a848cd7e
SC
36705/* System header to define __stub macros and hopefully few prototypes,
36706 which can conflict with char sched_get_priority_max (); below.
36707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36708 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36709
a848cd7e
SC
36710#ifdef __STDC__
36711# include <limits.h>
36712#else
36713# include <assert.h>
36714#endif
ac1cb8d3
VS
36715
36716#undef sched_get_priority_max
36717
a848cd7e
SC
36718/* Override any gcc2 internal prototype to avoid an error. */
36719#ifdef __cplusplus
36720extern "C"
36721{
36722#endif
36723/* We use char because int might match the return type of a gcc2
36724 builtin and then its argument prototype would still apply. */
36725char sched_get_priority_max ();
36726/* The GNU C library defines this for functions which it implements
36727 to always fail with ENOSYS. Some functions are actually named
36728 something starting with __ and the normal name is an alias. */
36729#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
36730choke me
36731#else
36732char (*f) () = sched_get_priority_max;
36733#endif
36734#ifdef __cplusplus
36735}
36736#endif
36737
36738int
36739main ()
36740{
36741return f != sched_get_priority_max;
36742 ;
36743 return 0;
36744}
36745_ACEOF
36746rm -f conftest.$ac_objext conftest$ac_exeext
36747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36748 (eval $ac_link) 2>conftest.er1
a848cd7e 36749 ac_status=$?
ac1cb8d3
VS
36750 grep -v '^ *+' conftest.er1 >conftest.err
36751 rm -f conftest.er1
36752 cat conftest.err >&5
a848cd7e
SC
36753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36754 (exit $ac_status); } &&
6ebeb4c7 36755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36757 (eval $ac_try) 2>&5
36758 ac_status=$?
36759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36760 (exit $ac_status); }; } &&
36761 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36763 (eval $ac_try) 2>&5
36764 ac_status=$?
36765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36766 (exit $ac_status); }; }; then
36767 ac_cv_func_sched_get_priority_max=yes
36768else
36769 echo "$as_me: failed program was:" >&5
36770sed 's/^/| /' conftest.$ac_ext >&5
36771
36772ac_cv_func_sched_get_priority_max=no
36773fi
ac1cb8d3
VS
36774rm -f conftest.err conftest.$ac_objext \
36775 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36776fi
36777echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
36778echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
36779if test $ac_cv_func_sched_get_priority_max = yes; then
36780 HAVE_PRIOR_FUNCS=1
36781else
36782 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
36783echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
36784if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
36785 echo $ECHO_N "(cached) $ECHO_C" >&6
36786else
36787 ac_check_lib_save_LIBS=$LIBS
36788LIBS="-lposix4 $LIBS"
36789cat >conftest.$ac_ext <<_ACEOF
36790/* confdefs.h. */
36791_ACEOF
36792cat confdefs.h >>conftest.$ac_ext
36793cat >>conftest.$ac_ext <<_ACEOF
36794/* end confdefs.h. */
36795
36796/* Override any gcc2 internal prototype to avoid an error. */
36797#ifdef __cplusplus
36798extern "C"
36799#endif
36800/* We use char because int might match the return type of a gcc2
36801 builtin and then its argument prototype would still apply. */
36802char sched_get_priority_max ();
36803int
36804main ()
36805{
36806sched_get_priority_max ();
36807 ;
36808 return 0;
36809}
36810_ACEOF
36811rm -f conftest.$ac_objext conftest$ac_exeext
36812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36813 (eval $ac_link) 2>conftest.er1
a848cd7e 36814 ac_status=$?
ac1cb8d3
VS
36815 grep -v '^ *+' conftest.er1 >conftest.err
36816 rm -f conftest.er1
36817 cat conftest.err >&5
a848cd7e
SC
36818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819 (exit $ac_status); } &&
6ebeb4c7 36820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36822 (eval $ac_try) 2>&5
36823 ac_status=$?
36824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825 (exit $ac_status); }; } &&
36826 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36828 (eval $ac_try) 2>&5
36829 ac_status=$?
36830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36831 (exit $ac_status); }; }; then
36832 ac_cv_lib_posix4_sched_get_priority_max=yes
36833else
36834 echo "$as_me: failed program was:" >&5
36835sed 's/^/| /' conftest.$ac_ext >&5
36836
36837ac_cv_lib_posix4_sched_get_priority_max=no
36838fi
ac1cb8d3
VS
36839rm -f conftest.err conftest.$ac_objext \
36840 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36841LIBS=$ac_check_lib_save_LIBS
36842fi
36843echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
36844echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
36845if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
36846
36847 HAVE_PRIOR_FUNCS=1
36848 POSIX4_LINK=" -lposix4"
36849
36850fi
36851
36852
36853fi
36854
36855
36856fi
36857
36858
36859fi
36860
36861
36862 if test "$HAVE_PRIOR_FUNCS" = 1; then
36863 cat >>confdefs.h <<\_ACEOF
36864#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
36865_ACEOF
36866
36867 else
36868 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
36869echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
36870 fi
36871
36872 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
36873echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
36874if test "${ac_cv_func_pthread_cancel+set}" = set; then
36875 echo $ECHO_N "(cached) $ECHO_C" >&6
36876else
36877 cat >conftest.$ac_ext <<_ACEOF
36878/* confdefs.h. */
36879_ACEOF
36880cat confdefs.h >>conftest.$ac_ext
36881cat >>conftest.$ac_ext <<_ACEOF
36882/* end confdefs.h. */
ac1cb8d3
VS
36883/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
36884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36885#define pthread_cancel innocuous_pthread_cancel
36886
a848cd7e
SC
36887/* System header to define __stub macros and hopefully few prototypes,
36888 which can conflict with char pthread_cancel (); below.
36889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36890 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36891
a848cd7e
SC
36892#ifdef __STDC__
36893# include <limits.h>
36894#else
36895# include <assert.h>
36896#endif
ac1cb8d3
VS
36897
36898#undef pthread_cancel
36899
a848cd7e
SC
36900/* Override any gcc2 internal prototype to avoid an error. */
36901#ifdef __cplusplus
36902extern "C"
36903{
36904#endif
36905/* We use char because int might match the return type of a gcc2
36906 builtin and then its argument prototype would still apply. */
36907char pthread_cancel ();
36908/* The GNU C library defines this for functions which it implements
36909 to always fail with ENOSYS. Some functions are actually named
36910 something starting with __ and the normal name is an alias. */
36911#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
36912choke me
36913#else
36914char (*f) () = pthread_cancel;
36915#endif
36916#ifdef __cplusplus
36917}
36918#endif
36919
36920int
36921main ()
36922{
36923return f != pthread_cancel;
36924 ;
36925 return 0;
36926}
36927_ACEOF
36928rm -f conftest.$ac_objext conftest$ac_exeext
36929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36930 (eval $ac_link) 2>conftest.er1
a848cd7e 36931 ac_status=$?
ac1cb8d3
VS
36932 grep -v '^ *+' conftest.er1 >conftest.err
36933 rm -f conftest.er1
36934 cat conftest.err >&5
a848cd7e
SC
36935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36936 (exit $ac_status); } &&
6ebeb4c7 36937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36939 (eval $ac_try) 2>&5
36940 ac_status=$?
36941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36942 (exit $ac_status); }; } &&
36943 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36945 (eval $ac_try) 2>&5
36946 ac_status=$?
36947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36948 (exit $ac_status); }; }; then
36949 ac_cv_func_pthread_cancel=yes
36950else
36951 echo "$as_me: failed program was:" >&5
36952sed 's/^/| /' conftest.$ac_ext >&5
36953
36954ac_cv_func_pthread_cancel=no
36955fi
ac1cb8d3
VS
36956rm -f conftest.err conftest.$ac_objext \
36957 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36958fi
36959echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
36960echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
36961if test $ac_cv_func_pthread_cancel = yes; then
36962 cat >>confdefs.h <<\_ACEOF
36963#define HAVE_PTHREAD_CANCEL 1
36964_ACEOF
36965
36966else
36967 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
36968echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
36969fi
36970
36971
abc736fd
MW
36972 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
36973echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
36974if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
36975 echo $ECHO_N "(cached) $ECHO_C" >&6
36976else
36977 cat >conftest.$ac_ext <<_ACEOF
36978/* confdefs.h. */
36979_ACEOF
36980cat confdefs.h >>conftest.$ac_ext
36981cat >>conftest.$ac_ext <<_ACEOF
36982/* end confdefs.h. */
36983/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
36984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36985#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
36986
36987/* System header to define __stub macros and hopefully few prototypes,
36988 which can conflict with char pthread_attr_setstacksize (); below.
36989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36990 <limits.h> exists even on freestanding compilers. */
36991
36992#ifdef __STDC__
36993# include <limits.h>
36994#else
36995# include <assert.h>
36996#endif
36997
36998#undef pthread_attr_setstacksize
36999
37000/* Override any gcc2 internal prototype to avoid an error. */
37001#ifdef __cplusplus
37002extern "C"
37003{
37004#endif
37005/* We use char because int might match the return type of a gcc2
37006 builtin and then its argument prototype would still apply. */
37007char pthread_attr_setstacksize ();
37008/* The GNU C library defines this for functions which it implements
37009 to always fail with ENOSYS. Some functions are actually named
37010 something starting with __ and the normal name is an alias. */
37011#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
37012choke me
37013#else
37014char (*f) () = pthread_attr_setstacksize;
37015#endif
37016#ifdef __cplusplus
37017}
37018#endif
37019
37020int
37021main ()
37022{
37023return f != pthread_attr_setstacksize;
37024 ;
37025 return 0;
37026}
37027_ACEOF
37028rm -f conftest.$ac_objext conftest$ac_exeext
37029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37030 (eval $ac_link) 2>conftest.er1
37031 ac_status=$?
37032 grep -v '^ *+' conftest.er1 >conftest.err
37033 rm -f conftest.er1
37034 cat conftest.err >&5
37035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37036 (exit $ac_status); } &&
6ebeb4c7 37037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
37038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37039 (eval $ac_try) 2>&5
37040 ac_status=$?
37041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37042 (exit $ac_status); }; } &&
37043 { ac_try='test -s conftest$ac_exeext'
37044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37045 (eval $ac_try) 2>&5
37046 ac_status=$?
37047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37048 (exit $ac_status); }; }; then
37049 ac_cv_func_pthread_attr_setstacksize=yes
37050else
37051 echo "$as_me: failed program was:" >&5
37052sed 's/^/| /' conftest.$ac_ext >&5
37053
37054ac_cv_func_pthread_attr_setstacksize=no
37055fi
37056rm -f conftest.err conftest.$ac_objext \
37057 conftest$ac_exeext conftest.$ac_ext
37058fi
37059echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
37060echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
37061if test $ac_cv_func_pthread_attr_setstacksize = yes; then
37062 cat >>confdefs.h <<\_ACEOF
37063#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
37064_ACEOF
37065
37066fi
37067
a848cd7e
SC
37068
37069
37070 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
37071echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
37072if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
37073 echo $ECHO_N "(cached) $ECHO_C" >&6
37074else
37075
37076 cat >conftest.$ac_ext <<_ACEOF
37077/* confdefs.h. */
37078_ACEOF
37079cat confdefs.h >>conftest.$ac_ext
37080cat >>conftest.$ac_ext <<_ACEOF
37081/* end confdefs.h. */
37082#include <pthread.h>
37083int
37084main ()
37085{
37086
37087 pthread_mutexattr_t attr;
37088 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37089
37090 ;
37091 return 0;
37092}
37093_ACEOF
37094rm -f conftest.$ac_objext
37095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37096 (eval $ac_compile) 2>conftest.er1
a848cd7e 37097 ac_status=$?
ac1cb8d3
VS
37098 grep -v '^ *+' conftest.er1 >conftest.err
37099 rm -f conftest.er1
37100 cat conftest.err >&5
a848cd7e
SC
37101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102 (exit $ac_status); } &&
6ebeb4c7 37103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37105 (eval $ac_try) 2>&5
37106 ac_status=$?
37107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37108 (exit $ac_status); }; } &&
37109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37111 (eval $ac_try) 2>&5
37112 ac_status=$?
37113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37114 (exit $ac_status); }; }; then
123dca7d 37115 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
37116else
37117 echo "$as_me: failed program was:" >&5
37118sed 's/^/| /' conftest.$ac_ext >&5
37119
123dca7d 37120wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
37121
37122fi
ac1cb8d3 37123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37124
37125fi
37126echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
37127echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
37128
37129 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
37130 cat >>confdefs.h <<\_ACEOF
37131#define HAVE_PTHREAD_MUTEXATTR_T 1
37132_ACEOF
37133
123dca7d
VZ
37134
37135 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
37136echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
37137if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
37138 echo $ECHO_N "(cached) $ECHO_C" >&6
37139else
37140
37141 cat >conftest.$ac_ext <<_ACEOF
37142/* confdefs.h. */
37143_ACEOF
37144cat confdefs.h >>conftest.$ac_ext
37145cat >>conftest.$ac_ext <<_ACEOF
37146/* end confdefs.h. */
37147#include <pthread.h>
37148int
37149main ()
37150{
37151
37152 pthread_mutexattr_t attr;
37153 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37154
37155 ;
37156 return 0;
37157}
37158_ACEOF
37159rm -f conftest.$ac_objext
37160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37161 (eval $ac_compile) 2>conftest.er1
37162 ac_status=$?
37163 grep -v '^ *+' conftest.er1 >conftest.err
37164 rm -f conftest.er1
37165 cat conftest.err >&5
37166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37167 (exit $ac_status); } &&
37168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37170 (eval $ac_try) 2>&5
37171 ac_status=$?
37172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173 (exit $ac_status); }; } &&
37174 { ac_try='test -s conftest.$ac_objext'
37175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37176 (eval $ac_try) 2>&5
37177 ac_status=$?
37178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37179 (exit $ac_status); }; }; then
37180 wx_cv_func_pthread_mutexattr_settype_decl=yes
37181else
37182 echo "$as_me: failed program was:" >&5
37183sed 's/^/| /' conftest.$ac_ext >&5
37184
37185wx_cv_func_pthread_mutexattr_settype_decl=no
37186
37187fi
37188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37189
37190fi
37191echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
37192echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
37193 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
37194 cat >>confdefs.h <<\_ACEOF
37195#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
37196_ACEOF
37197
37198 fi
a848cd7e
SC
37199 else
37200 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
37201echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
37202if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
37203 echo $ECHO_N "(cached) $ECHO_C" >&6
37204else
37205
37206 cat >conftest.$ac_ext <<_ACEOF
37207/* confdefs.h. */
37208_ACEOF
37209cat confdefs.h >>conftest.$ac_ext
37210cat >>conftest.$ac_ext <<_ACEOF
37211/* end confdefs.h. */
37212#include <pthread.h>
37213int
37214main ()
37215{
37216
37217 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
37218
37219 ;
37220 return 0;
37221}
37222_ACEOF
37223rm -f conftest.$ac_objext
37224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37225 (eval $ac_compile) 2>conftest.er1
a848cd7e 37226 ac_status=$?
ac1cb8d3
VS
37227 grep -v '^ *+' conftest.er1 >conftest.err
37228 rm -f conftest.er1
37229 cat conftest.err >&5
a848cd7e
SC
37230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37231 (exit $ac_status); } &&
6ebeb4c7 37232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37234 (eval $ac_try) 2>&5
37235 ac_status=$?
37236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37237 (exit $ac_status); }; } &&
37238 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37240 (eval $ac_try) 2>&5
37241 ac_status=$?
37242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37243 (exit $ac_status); }; }; then
37244
37245 wx_cv_type_pthread_rec_mutex_init=yes
37246
37247else
37248 echo "$as_me: failed program was:" >&5
37249sed 's/^/| /' conftest.$ac_ext >&5
37250
37251
37252 wx_cv_type_pthread_rec_mutex_init=no
37253
37254
37255fi
ac1cb8d3 37256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37257
37258fi
37259echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
37260echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
37261 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
37262 cat >>confdefs.h <<\_ACEOF
37263#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
37264_ACEOF
37265
37266 else
37267 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
37268echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
37269 fi
37270 fi
37271 fi
37272
37273else
37274 if test "$wxUSE_THREADS" = "yes" ; then
37275 case "${host}" in
37276 *-*-mingw32* )
37277 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
37278echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
37279if test "${wx_cv_cflags_mthread+set}" = set; then
37280 echo $ECHO_N "(cached) $ECHO_C" >&6
37281else
37282
37283 CFLAGS_OLD="$CFLAGS"
37284 CFLAGS="$CFLAGS -mthreads"
37285 cat >conftest.$ac_ext <<_ACEOF
37286/* confdefs.h. */
37287_ACEOF
37288cat confdefs.h >>conftest.$ac_ext
37289cat >>conftest.$ac_ext <<_ACEOF
37290/* end confdefs.h. */
37291
37292int
37293main ()
37294{
37295
37296 ;
37297 return 0;
37298}
37299_ACEOF
37300rm -f conftest.$ac_objext
37301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37302 (eval $ac_compile) 2>conftest.er1
a848cd7e 37303 ac_status=$?
ac1cb8d3
VS
37304 grep -v '^ *+' conftest.er1 >conftest.err
37305 rm -f conftest.er1
37306 cat conftest.err >&5
a848cd7e
SC
37307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37308 (exit $ac_status); } &&
6ebeb4c7 37309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37311 (eval $ac_try) 2>&5
37312 ac_status=$?
37313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37314 (exit $ac_status); }; } &&
37315 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37317 (eval $ac_try) 2>&5
37318 ac_status=$?
37319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320 (exit $ac_status); }; }; then
37321 wx_cv_cflags_mthread=yes
37322else
37323 echo "$as_me: failed program was:" >&5
37324sed 's/^/| /' conftest.$ac_ext >&5
37325
37326wx_cv_cflags_mthread=no
37327
37328fi
ac1cb8d3 37329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37330
37331
37332fi
37333echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
37334echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
37335
37336 if test "$wx_cv_cflags_mthread" = "yes"; then
37337 CXXFLAGS="$CXXFLAGS -mthreads"
37338 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
37339 LDFLAGS="$LDFLAGS -mthreads"
37340 else
37341 CFLAGS="$CFLAGS_OLD"
37342 fi
37343 ;;
37344 *-pc-os2*emx )
37345 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
37346 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
37347 LDFLAGS="$LDFLAGS -Zmt"
37348 ;;
37349 esac
37350 fi
37351fi
37352
37353if test "$wxUSE_THREADS" = "yes"; then
37354 cat >>confdefs.h <<\_ACEOF
37355#define wxUSE_THREADS 1
37356_ACEOF
37357
37358
37359 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
37360else
37361 if test "$ac_cv_func_strtok_r" = "yes"; then
37362 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
37363echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
37364 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
37365 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
37366 echo "$as_me:$LINENO: result: yes" >&5
37367echo "${ECHO_T}yes" >&6
37368 else
37369 echo "$as_me:$LINENO: result: no" >&5
37370echo "${ECHO_T}no" >&6
37371 fi
37372 fi
37373fi
37374
37375if test "$WXGTK20" = 1 ; then
37376 cat >>confdefs.h <<_ACEOF
37377#define __WXGTK20__ $WXGTK20
37378_ACEOF
37379
37380 WXGTK12=1
37381fi
37382
37383if test "$WXGTK12" = 1 ; then
37384 cat >>confdefs.h <<_ACEOF
37385#define __WXGTK12__ $WXGTK12
37386_ACEOF
37387
37388fi
37389
37390if test "$WXGTK127" = 1 ; then
37391 cat >>confdefs.h <<_ACEOF
37392#define __WXGTK127__ $WXGTK127
37393_ACEOF
37394
37395fi
37396
37397if test "$WXGPE" = 1 ; then
37398 cat >>confdefs.h <<_ACEOF
37399#define __WXGPE__ $WXGPE
37400_ACEOF
37401
37402fi
37403
37404WXDEBUG=
37405
37406if test "$wxUSE_DEBUG_INFO" = "yes" ; then
37407 WXDEBUG="-g"
37408 wxUSE_OPTIMISE=no
37409fi
37410
37411if test "$wxUSE_DEBUG_GDB" = "yes" ; then
37412 wxUSE_DEBUG_INFO=yes
18228ab4
MW
37413 if test "$GCC" = yes; then
37414 WXDEBUG="-ggdb"
37415 fi
a848cd7e
SC
37416fi
37417
37418if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
37419 cat >>confdefs.h <<\_ACEOF
37420#define WXDEBUG 1
37421_ACEOF
37422
37423 WXDEBUG_DEFINE="-D__WXDEBUG__"
37424else
37425 if test "$wxUSE_GTK" = 1 ; then
37426 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
37427 fi
37428fi
37429
37430if test "$wxUSE_MEM_TRACING" = "yes" ; then
37431 cat >>confdefs.h <<\_ACEOF
37432#define wxUSE_MEMORY_TRACING 1
37433_ACEOF
37434
37435 cat >>confdefs.h <<\_ACEOF
37436#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
37437_ACEOF
37438
37439 cat >>confdefs.h <<\_ACEOF
37440#define wxUSE_DEBUG_NEW_ALWAYS 1
37441_ACEOF
37442
37443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
37444fi
37445
37446if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 37447 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
37448fi
37449
37450PROFILE=
37451if test "$wxUSE_PROFILE" = "yes" ; then
37452 PROFILE=" -pg"
37453fi
37454
37455CODE_GEN_FLAGS=
37456CODE_GEN_FLAGS_CXX=
37457if test "$GCC" = "yes" ; then
37458 if test "$wxUSE_NO_RTTI" = "yes" ; then
37459 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
37460 fi
37461 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37462 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
37463 fi
37464 if test "$wxUSE_PERMISSIVE" = "yes" ; then
37465 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
37466 fi
37467
37468 case "${host}" in
37469 powerpc*-*-aix* )
37470 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
37471 ;;
37472 *-hppa* )
37473 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
37474 ;;
37475 esac
37476fi
37477
37478OPTIMISE=
37479if test "$wxUSE_OPTIMISE" = "no" ; then
37480 if test "$GCC" = yes ; then
37481 OPTIMISE="-O0"
37482 fi
37483else
37484 if test "$GCC" = yes ; then
37485 OPTIMISE="-O2"
37486
37487 case "${host}" in
37488 i586-*-*|i686-*-* )
37489 OPTIMISE="${OPTIMISE} "
37490 ;;
37491 esac
37492 else
37493 OPTIMISE="-O"
37494 fi
37495fi
37496
37497
37498if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
37499 cat >>confdefs.h <<\_ACEOF
37500#define WXWIN_COMPATIBILITY_2_2 1
37501_ACEOF
37502
37503
37504 WXWIN_COMPATIBILITY_2_4="yes"
37505fi
37506
37507if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
37508 cat >>confdefs.h <<\_ACEOF
37509#define WXWIN_COMPATIBILITY_2_4 1
37510_ACEOF
37511
37512fi
37513
37514
37515if test "$wxUSE_GUI" = "yes"; then
881bfcd6 37516 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37517#define wxUSE_GUI 1
37518_ACEOF
37519
37520
370fd4c2 37521 fi
a848cd7e
SC
37522
37523
37524if test "$wxUSE_UNIX" = "yes"; then
37525 cat >>confdefs.h <<\_ACEOF
37526#define wxUSE_UNIX 1
37527_ACEOF
37528
37529fi
37530
37531
37532if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37533
37534 HAVE_DL_FUNCS=0
37535 HAVE_SHL_FUNCS=0
37536 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
37537 if test "$USE_DARWIN" = 1; then
37538 HAVE_DL_FUNCS=1
47a7e797
MW
37539 elif test "$USE_DOS" = 1; then
37540 HAVE_DL_FUNCS=0
a848cd7e
SC
37541 else
37542
37543for ac_func in dlopen
37544do
37545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37546echo "$as_me:$LINENO: checking for $ac_func" >&5
37547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37548if eval "test \"\${$as_ac_var+set}\" = set"; then
37549 echo $ECHO_N "(cached) $ECHO_C" >&6
37550else
37551 cat >conftest.$ac_ext <<_ACEOF
37552/* confdefs.h. */
37553_ACEOF
37554cat confdefs.h >>conftest.$ac_ext
37555cat >>conftest.$ac_ext <<_ACEOF
37556/* end confdefs.h. */
ac1cb8d3
VS
37557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37559#define $ac_func innocuous_$ac_func
37560
a848cd7e
SC
37561/* System header to define __stub macros and hopefully few prototypes,
37562 which can conflict with char $ac_func (); below.
37563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37564 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37565
a848cd7e
SC
37566#ifdef __STDC__
37567# include <limits.h>
37568#else
37569# include <assert.h>
37570#endif
ac1cb8d3
VS
37571
37572#undef $ac_func
37573
a848cd7e
SC
37574/* Override any gcc2 internal prototype to avoid an error. */
37575#ifdef __cplusplus
37576extern "C"
37577{
37578#endif
37579/* We use char because int might match the return type of a gcc2
37580 builtin and then its argument prototype would still apply. */
37581char $ac_func ();
37582/* The GNU C library defines this for functions which it implements
37583 to always fail with ENOSYS. Some functions are actually named
37584 something starting with __ and the normal name is an alias. */
37585#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37586choke me
37587#else
37588char (*f) () = $ac_func;
37589#endif
37590#ifdef __cplusplus
37591}
37592#endif
37593
37594int
37595main ()
37596{
37597return f != $ac_func;
37598 ;
37599 return 0;
37600}
37601_ACEOF
37602rm -f conftest.$ac_objext conftest$ac_exeext
37603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37604 (eval $ac_link) 2>conftest.er1
a848cd7e 37605 ac_status=$?
ac1cb8d3
VS
37606 grep -v '^ *+' conftest.er1 >conftest.err
37607 rm -f conftest.er1
37608 cat conftest.err >&5
a848cd7e
SC
37609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37610 (exit $ac_status); } &&
6ebeb4c7 37611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37613 (eval $ac_try) 2>&5
37614 ac_status=$?
37615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37616 (exit $ac_status); }; } &&
37617 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37619 (eval $ac_try) 2>&5
37620 ac_status=$?
37621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37622 (exit $ac_status); }; }; then
37623 eval "$as_ac_var=yes"
37624else
37625 echo "$as_me: failed program was:" >&5
37626sed 's/^/| /' conftest.$ac_ext >&5
37627
37628eval "$as_ac_var=no"
37629fi
ac1cb8d3
VS
37630rm -f conftest.err conftest.$ac_objext \
37631 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37632fi
37633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37634echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37635if test `eval echo '${'$as_ac_var'}'` = yes; then
37636 cat >>confdefs.h <<_ACEOF
37637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37638_ACEOF
37639
37640 cat >>confdefs.h <<\_ACEOF
37641#define HAVE_DLOPEN 1
37642_ACEOF
37643
37644 HAVE_DL_FUNCS=1
37645
37646else
37647
37648 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
37649echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
37650if test "${ac_cv_lib_dl_dlopen+set}" = set; then
37651 echo $ECHO_N "(cached) $ECHO_C" >&6
37652else
37653 ac_check_lib_save_LIBS=$LIBS
37654LIBS="-ldl $LIBS"
37655cat >conftest.$ac_ext <<_ACEOF
37656/* confdefs.h. */
37657_ACEOF
37658cat confdefs.h >>conftest.$ac_ext
37659cat >>conftest.$ac_ext <<_ACEOF
37660/* end confdefs.h. */
37661
37662/* Override any gcc2 internal prototype to avoid an error. */
37663#ifdef __cplusplus
37664extern "C"
37665#endif
37666/* We use char because int might match the return type of a gcc2
37667 builtin and then its argument prototype would still apply. */
37668char dlopen ();
37669int
37670main ()
37671{
37672dlopen ();
37673 ;
37674 return 0;
37675}
37676_ACEOF
37677rm -f conftest.$ac_objext conftest$ac_exeext
37678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37679 (eval $ac_link) 2>conftest.er1
a848cd7e 37680 ac_status=$?
ac1cb8d3
VS
37681 grep -v '^ *+' conftest.er1 >conftest.err
37682 rm -f conftest.er1
37683 cat conftest.err >&5
a848cd7e
SC
37684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37685 (exit $ac_status); } &&
6ebeb4c7 37686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37688 (eval $ac_try) 2>&5
37689 ac_status=$?
37690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37691 (exit $ac_status); }; } &&
37692 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37694 (eval $ac_try) 2>&5
37695 ac_status=$?
37696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37697 (exit $ac_status); }; }; then
37698 ac_cv_lib_dl_dlopen=yes
37699else
37700 echo "$as_me: failed program was:" >&5
37701sed 's/^/| /' conftest.$ac_ext >&5
37702
37703ac_cv_lib_dl_dlopen=no
37704fi
ac1cb8d3
VS
37705rm -f conftest.err conftest.$ac_objext \
37706 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37707LIBS=$ac_check_lib_save_LIBS
37708fi
37709echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
37710echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
37711if test $ac_cv_lib_dl_dlopen = yes; then
37712
37713 cat >>confdefs.h <<\_ACEOF
37714#define HAVE_DLOPEN 1
37715_ACEOF
37716
37717 HAVE_DL_FUNCS=1
37718 DL_LINK=" -ldl$DL_LINK"
37719
37720else
37721
37722
37723for ac_func in shl_load
37724do
37725as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37726echo "$as_me:$LINENO: checking for $ac_func" >&5
37727echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37728if eval "test \"\${$as_ac_var+set}\" = set"; then
37729 echo $ECHO_N "(cached) $ECHO_C" >&6
37730else
37731 cat >conftest.$ac_ext <<_ACEOF
37732/* confdefs.h. */
37733_ACEOF
37734cat confdefs.h >>conftest.$ac_ext
37735cat >>conftest.$ac_ext <<_ACEOF
37736/* end confdefs.h. */
ac1cb8d3
VS
37737/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37739#define $ac_func innocuous_$ac_func
37740
a848cd7e
SC
37741/* System header to define __stub macros and hopefully few prototypes,
37742 which can conflict with char $ac_func (); below.
37743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37744 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37745
a848cd7e
SC
37746#ifdef __STDC__
37747# include <limits.h>
37748#else
37749# include <assert.h>
37750#endif
ac1cb8d3
VS
37751
37752#undef $ac_func
37753
a848cd7e
SC
37754/* Override any gcc2 internal prototype to avoid an error. */
37755#ifdef __cplusplus
37756extern "C"
37757{
37758#endif
37759/* We use char because int might match the return type of a gcc2
37760 builtin and then its argument prototype would still apply. */
37761char $ac_func ();
37762/* The GNU C library defines this for functions which it implements
37763 to always fail with ENOSYS. Some functions are actually named
37764 something starting with __ and the normal name is an alias. */
37765#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37766choke me
37767#else
37768char (*f) () = $ac_func;
37769#endif
37770#ifdef __cplusplus
37771}
37772#endif
37773
37774int
37775main ()
37776{
37777return f != $ac_func;
37778 ;
37779 return 0;
37780}
37781_ACEOF
37782rm -f conftest.$ac_objext conftest$ac_exeext
37783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37784 (eval $ac_link) 2>conftest.er1
a848cd7e 37785 ac_status=$?
ac1cb8d3
VS
37786 grep -v '^ *+' conftest.er1 >conftest.err
37787 rm -f conftest.er1
37788 cat conftest.err >&5
a848cd7e
SC
37789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37790 (exit $ac_status); } &&
6ebeb4c7 37791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37793 (eval $ac_try) 2>&5
37794 ac_status=$?
37795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37796 (exit $ac_status); }; } &&
37797 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37799 (eval $ac_try) 2>&5
37800 ac_status=$?
37801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802 (exit $ac_status); }; }; then
37803 eval "$as_ac_var=yes"
37804else
37805 echo "$as_me: failed program was:" >&5
37806sed 's/^/| /' conftest.$ac_ext >&5
37807
37808eval "$as_ac_var=no"
37809fi
ac1cb8d3
VS
37810rm -f conftest.err conftest.$ac_objext \
37811 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37812fi
37813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37814echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37815if test `eval echo '${'$as_ac_var'}'` = yes; then
37816 cat >>confdefs.h <<_ACEOF
37817#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37818_ACEOF
37819
37820 cat >>confdefs.h <<\_ACEOF
37821#define HAVE_SHL_LOAD 1
37822_ACEOF
37823
37824 HAVE_SHL_FUNCS=1
37825
37826else
37827
37828 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
37829echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
37830if test "${ac_cv_lib_shl_load_dld+set}" = set; then
37831 echo $ECHO_N "(cached) $ECHO_C" >&6
37832else
37833 ac_check_lib_save_LIBS=$LIBS
37834LIBS="-lshl_load $LIBS"
37835cat >conftest.$ac_ext <<_ACEOF
37836/* confdefs.h. */
37837_ACEOF
37838cat confdefs.h >>conftest.$ac_ext
37839cat >>conftest.$ac_ext <<_ACEOF
37840/* end confdefs.h. */
37841
37842/* Override any gcc2 internal prototype to avoid an error. */
37843#ifdef __cplusplus
37844extern "C"
37845#endif
37846/* We use char because int might match the return type of a gcc2
37847 builtin and then its argument prototype would still apply. */
37848char dld ();
37849int
37850main ()
37851{
37852dld ();
37853 ;
37854 return 0;
37855}
37856_ACEOF
37857rm -f conftest.$ac_objext conftest$ac_exeext
37858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37859 (eval $ac_link) 2>conftest.er1
a848cd7e 37860 ac_status=$?
ac1cb8d3
VS
37861 grep -v '^ *+' conftest.er1 >conftest.err
37862 rm -f conftest.er1
37863 cat conftest.err >&5
a848cd7e
SC
37864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37865 (exit $ac_status); } &&
6ebeb4c7 37866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37868 (eval $ac_try) 2>&5
37869 ac_status=$?
37870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37871 (exit $ac_status); }; } &&
37872 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37874 (eval $ac_try) 2>&5
37875 ac_status=$?
37876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37877 (exit $ac_status); }; }; then
37878 ac_cv_lib_shl_load_dld=yes
37879else
37880 echo "$as_me: failed program was:" >&5
37881sed 's/^/| /' conftest.$ac_ext >&5
37882
37883ac_cv_lib_shl_load_dld=no
37884fi
ac1cb8d3
VS
37885rm -f conftest.err conftest.$ac_objext \
37886 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37887LIBS=$ac_check_lib_save_LIBS
37888fi
37889echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
37890echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
37891if test $ac_cv_lib_shl_load_dld = yes; then
37892
37893 HAVE_SHL_FUNCS=1
37894 DL_LINK=" -ldld$DL_LINK"
37895
37896fi
37897
37898
37899fi
37900done
37901
37902
37903fi
37904
37905
37906fi
37907done
37908
37909
37910 if test "$HAVE_DL_FUNCS" = 1; then
37911
37912for ac_func in dlerror
37913do
37914as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37915echo "$as_me:$LINENO: checking for $ac_func" >&5
37916echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37917if eval "test \"\${$as_ac_var+set}\" = set"; then
37918 echo $ECHO_N "(cached) $ECHO_C" >&6
37919else
37920 cat >conftest.$ac_ext <<_ACEOF
37921/* confdefs.h. */
37922_ACEOF
37923cat confdefs.h >>conftest.$ac_ext
37924cat >>conftest.$ac_ext <<_ACEOF
37925/* end confdefs.h. */
ac1cb8d3
VS
37926/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37928#define $ac_func innocuous_$ac_func
37929
a848cd7e
SC
37930/* System header to define __stub macros and hopefully few prototypes,
37931 which can conflict with char $ac_func (); below.
37932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37933 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37934
a848cd7e
SC
37935#ifdef __STDC__
37936# include <limits.h>
37937#else
37938# include <assert.h>
37939#endif
ac1cb8d3
VS
37940
37941#undef $ac_func
37942
a848cd7e
SC
37943/* Override any gcc2 internal prototype to avoid an error. */
37944#ifdef __cplusplus
37945extern "C"
37946{
37947#endif
37948/* We use char because int might match the return type of a gcc2
37949 builtin and then its argument prototype would still apply. */
37950char $ac_func ();
37951/* The GNU C library defines this for functions which it implements
37952 to always fail with ENOSYS. Some functions are actually named
37953 something starting with __ and the normal name is an alias. */
37954#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37955choke me
37956#else
37957char (*f) () = $ac_func;
37958#endif
37959#ifdef __cplusplus
37960}
37961#endif
37962
37963int
37964main ()
37965{
37966return f != $ac_func;
37967 ;
37968 return 0;
37969}
37970_ACEOF
37971rm -f conftest.$ac_objext conftest$ac_exeext
37972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37973 (eval $ac_link) 2>conftest.er1
a848cd7e 37974 ac_status=$?
ac1cb8d3
VS
37975 grep -v '^ *+' conftest.er1 >conftest.err
37976 rm -f conftest.er1
37977 cat conftest.err >&5
a848cd7e
SC
37978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37979 (exit $ac_status); } &&
6ebeb4c7 37980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37982 (eval $ac_try) 2>&5
37983 ac_status=$?
37984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37985 (exit $ac_status); }; } &&
37986 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37988 (eval $ac_try) 2>&5
37989 ac_status=$?
37990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991 (exit $ac_status); }; }; then
37992 eval "$as_ac_var=yes"
37993else
37994 echo "$as_me: failed program was:" >&5
37995sed 's/^/| /' conftest.$ac_ext >&5
37996
37997eval "$as_ac_var=no"
37998fi
ac1cb8d3
VS
37999rm -f conftest.err conftest.$ac_objext \
38000 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38001fi
38002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38003echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38004if test `eval echo '${'$as_ac_var'}'` = yes; then
38005 cat >>confdefs.h <<_ACEOF
38006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38007_ACEOF
38008 cat >>confdefs.h <<\_ACEOF
38009#define HAVE_DLERROR 1
38010_ACEOF
38011
38012else
38013
38014 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
38015echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
38016if test "${ac_cv_lib_dl_dlerror+set}" = set; then
38017 echo $ECHO_N "(cached) $ECHO_C" >&6
38018else
38019 ac_check_lib_save_LIBS=$LIBS
38020LIBS="-ldl $LIBS"
38021cat >conftest.$ac_ext <<_ACEOF
38022/* confdefs.h. */
38023_ACEOF
38024cat confdefs.h >>conftest.$ac_ext
38025cat >>conftest.$ac_ext <<_ACEOF
38026/* end confdefs.h. */
38027
38028/* Override any gcc2 internal prototype to avoid an error. */
38029#ifdef __cplusplus
38030extern "C"
38031#endif
38032/* We use char because int might match the return type of a gcc2
38033 builtin and then its argument prototype would still apply. */
38034char dlerror ();
38035int
38036main ()
38037{
38038dlerror ();
38039 ;
38040 return 0;
38041}
38042_ACEOF
38043rm -f conftest.$ac_objext conftest$ac_exeext
38044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38045 (eval $ac_link) 2>conftest.er1
a848cd7e 38046 ac_status=$?
ac1cb8d3
VS
38047 grep -v '^ *+' conftest.er1 >conftest.err
38048 rm -f conftest.er1
38049 cat conftest.err >&5
a848cd7e
SC
38050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38051 (exit $ac_status); } &&
6ebeb4c7 38052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38054 (eval $ac_try) 2>&5
38055 ac_status=$?
38056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38057 (exit $ac_status); }; } &&
38058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38060 (eval $ac_try) 2>&5
38061 ac_status=$?
38062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38063 (exit $ac_status); }; }; then
38064 ac_cv_lib_dl_dlerror=yes
38065else
38066 echo "$as_me: failed program was:" >&5
38067sed 's/^/| /' conftest.$ac_ext >&5
38068
38069ac_cv_lib_dl_dlerror=no
38070fi
ac1cb8d3
VS
38071rm -f conftest.err conftest.$ac_objext \
38072 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38073LIBS=$ac_check_lib_save_LIBS
38074fi
38075echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
38076echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
38077if test $ac_cv_lib_dl_dlerror = yes; then
38078 cat >>confdefs.h <<\_ACEOF
38079#define HAVE_DLERROR 1
38080_ACEOF
38081
38082fi
38083
38084
38085
38086fi
38087done
38088
38089 fi
38090 fi
38091
38092 if test "$HAVE_DL_FUNCS" = 0; then
38093 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 38094 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
38095 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
38096echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
38097 wxUSE_DYNAMIC_LOADER=no
38098 wxUSE_DYNLIB_CLASS=no
38099 else
38100 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
38101echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
38102 fi
38103 fi
38104 fi
38105 fi
38106fi
38107
38108if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
38109 cat >>confdefs.h <<\_ACEOF
38110#define wxUSE_DYNAMIC_LOADER 1
38111_ACEOF
38112
38113fi
38114if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38115 cat >>confdefs.h <<\_ACEOF
38116#define wxUSE_DYNLIB_CLASS 1
38117_ACEOF
38118
38119fi
38120
38121
38122
38123if test "$wxUSE_PLUGINS" = "yes" ; then
38124 if test "$wxUSE_SHARED" = "no" ; then
38125 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
38126echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
38127 wxUSE_PLUGINS=no
38128 fi
38129 if test "$wxUSE_MONOLITHIC" = "yes" ; then
38130 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
38131echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
38132 wxUSE_PLUGINS=no
38133 fi
38134 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
38135 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
38136echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
38137 wxUSE_PLUGINS=no
38138 fi
38139 if test "$wxUSE_PLUGINS" = "yes" ; then
38140 cat >>confdefs.h <<\_ACEOF
38141#define wxUSE_PLUGINS 1
38142_ACEOF
38143
38144 fi
38145fi
38146
38147
38148if test "$wxUSE_STL" = "yes"; then
38149 cat >>confdefs.h <<\_ACEOF
38150#define wxUSE_STL 1
38151_ACEOF
38152
38153fi
38154
38155if test "$wxUSE_APPLE_IEEE" = "yes"; then
38156 cat >>confdefs.h <<\_ACEOF
38157#define wxUSE_APPLE_IEEE 1
38158_ACEOF
38159
38160fi
38161
38162if test "$wxUSE_TIMER" = "yes"; then
38163 cat >>confdefs.h <<\_ACEOF
38164#define wxUSE_TIMER 1
38165_ACEOF
38166
38167fi
38168
9c112555 38169if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
38170 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
38171echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
38172if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 38173 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 38174else
d12aef51
VZ
38175
38176 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38177/* confdefs.h. */
38178_ACEOF
38179cat confdefs.h >>conftest.$ac_ext
38180cat >>conftest.$ac_ext <<_ACEOF
38181/* end confdefs.h. */
d12aef51
VZ
38182
38183 #include <sys/soundcard.h>
38184
38185int
38186main ()
38187{
38188
38189 ioctl(0, SNDCTL_DSP_SYNC, 0);
38190
38191 ;
38192 return 0;
38193}
a848cd7e 38194_ACEOF
d12aef51
VZ
38195rm -f conftest.$ac_objext conftest$ac_exeext
38196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38197 (eval $ac_link) 2>conftest.er1
a848cd7e 38198 ac_status=$?
ac1cb8d3
VS
38199 grep -v '^ *+' conftest.er1 >conftest.err
38200 rm -f conftest.er1
38201 cat conftest.err >&5
a848cd7e
SC
38202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38203 (exit $ac_status); } &&
6ebeb4c7 38204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38206 (eval $ac_try) 2>&5
38207 ac_status=$?
38208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38209 (exit $ac_status); }; } &&
d12aef51 38210 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38212 (eval $ac_try) 2>&5
38213 ac_status=$?
38214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38215 (exit $ac_status); }; }; then
d12aef51 38216 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38217else
38218 echo "$as_me: failed program was:" >&5
38219sed 's/^/| /' conftest.$ac_ext >&5
38220
a848cd7e 38221
d12aef51
VZ
38222 saveLibs="$LIBS"
38223 LIBS="$saveLibs -lossaudio"
38224 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38225/* confdefs.h. */
38226_ACEOF
38227cat confdefs.h >>conftest.$ac_ext
38228cat >>conftest.$ac_ext <<_ACEOF
38229/* end confdefs.h. */
d12aef51
VZ
38230
38231 #include <sys/soundcard.h>
38232
38233int
38234main ()
38235{
38236
38237 ioctl(0, SNDCTL_DSP_SYNC, 0);
38238
38239 ;
38240 return 0;
38241}
a848cd7e 38242_ACEOF
d12aef51
VZ
38243rm -f conftest.$ac_objext conftest$ac_exeext
38244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38245 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
38246 ac_status=$?
38247 grep -v '^ *+' conftest.er1 >conftest.err
38248 rm -f conftest.er1
38249 cat conftest.err >&5
38250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51
VZ
38251 (exit $ac_status); } &&
38252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38254 (eval $ac_try) 2>&5
38255 ac_status=$?
38256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38257 (exit $ac_status); }; } &&
38258 { ac_try='test -s conftest$ac_exeext'
38259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38260 (eval $ac_try) 2>&5
38261 ac_status=$?
38262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38263 (exit $ac_status); }; }; then
38264 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38265else
38266 echo "$as_me: failed program was:" >&5
38267sed 's/^/| /' conftest.$ac_ext >&5
38268
a848cd7e 38269
d12aef51
VZ
38270 LIBS="$saveLibs"
38271 ac_cv_header_sys_soundcard=no
38272
38273
a848cd7e 38274fi
d12aef51
VZ
38275rm -f conftest.err conftest.$ac_objext \
38276 conftest$ac_exeext conftest.$ac_ext
38277
a848cd7e
SC
38278
38279fi
d12aef51
VZ
38280rm -f conftest.err conftest.$ac_objext \
38281 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38282
38283fi
d12aef51
VZ
38284echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
38285echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 38286
d12aef51
VZ
38287 if test "$ac_cv_header_sys_soundcard" = "yes"; then
38288 cat >>confdefs.h <<\_ACEOF
38289#define HAVE_SYS_SOUNDCARD_H 1
38290_ACEOF
a848cd7e 38291
d12aef51
VZ
38292 else
38293 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
38294 fi
9c112555
MW
38295fi
38296WITH_PLUGIN_SDL=0
38297if test "$wxUSE_SOUND" = "yes"; then
38298 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
38299 if test "$wxUSE_LIBSDL" != "no"; then
38300
38301# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
38302if test "${with_sdl_prefix+set}" = set; then
38303 withval="$with_sdl_prefix"
38304 sdl_prefix="$withval"
38305else
38306 sdl_prefix=""
38307fi;
38308
38309# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
38310if test "${with_sdl_exec_prefix+set}" = set; then
38311 withval="$with_sdl_exec_prefix"
38312 sdl_exec_prefix="$withval"
38313else
38314 sdl_exec_prefix=""
38315fi;
38316# Check whether --enable-sdltest or --disable-sdltest was given.
38317if test "${enable_sdltest+set}" = set; then
38318 enableval="$enable_sdltest"
38319
38320else
38321 enable_sdltest=yes
38322fi;
38323
38324 if test x$sdl_exec_prefix != x ; then
38325 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
38326 if test x${SDL_CONFIG+set} != xset ; then
38327 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
38328 fi
38329 fi
38330 if test x$sdl_prefix != x ; then
38331 sdl_args="$sdl_args --prefix=$sdl_prefix"
38332 if test x${SDL_CONFIG+set} != xset ; then
38333 SDL_CONFIG=$sdl_prefix/bin/sdl-config
38334 fi
38335 fi
38336
38337
38338 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
38339 # Extract the first word of "sdl-config", so it can be a program name with args.
38340set dummy sdl-config; ac_word=$2
38341echo "$as_me:$LINENO: checking for $ac_word" >&5
38342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38343if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
38344 echo $ECHO_N "(cached) $ECHO_C" >&6
38345else
38346 case $SDL_CONFIG in
38347 [\\/]* | ?:[\\/]*)
38348 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
38349 ;;
38350 *)
38351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38352for as_dir in $PATH
38353do
38354 IFS=$as_save_IFS
38355 test -z "$as_dir" && as_dir=.
38356 for ac_exec_ext in '' $ac_executable_extensions; do
38357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38358 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38360 break 2
38361 fi
38362done
38363done
38364
38365 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
38366 ;;
38367esac
38368fi
38369SDL_CONFIG=$ac_cv_path_SDL_CONFIG
38370
38371if test -n "$SDL_CONFIG"; then
38372 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
38373echo "${ECHO_T}$SDL_CONFIG" >&6
38374else
38375 echo "$as_me:$LINENO: result: no" >&5
38376echo "${ECHO_T}no" >&6
38377fi
38378
38379 min_sdl_version=1.2.0
38380 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
38381echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
38382 no_sdl=""
38383 if test "$SDL_CONFIG" = "no" ; then
38384 no_sdl=yes
38385 else
38386 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
38387 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
38388
38389 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
38390 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
38391 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
38392 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
38393 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
38394 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
38395 if test "x$enable_sdltest" = "xyes" ; then
38396 ac_save_CFLAGS="$CFLAGS"
94acd38e 38397 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
38398 ac_save_LIBS="$LIBS"
38399 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 38400 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
38401 LIBS="$LIBS $SDL_LIBS"
38402 rm -f conf.sdltest
38403 if test "$cross_compiling" = yes; then
38404 echo $ac_n "cross compiling; assumed OK... $ac_c"
38405else
38406 cat >conftest.$ac_ext <<_ACEOF
38407/* confdefs.h. */
38408_ACEOF
38409cat confdefs.h >>conftest.$ac_ext
38410cat >>conftest.$ac_ext <<_ACEOF
38411/* end confdefs.h. */
38412
38413#include <stdio.h>
38414#include <stdlib.h>
38415#include <string.h>
38416#include "SDL.h"
38417
38418char*
38419my_strdup (char *str)
38420{
38421 char *new_str;
38422
38423 if (str)
38424 {
38425 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
38426 strcpy (new_str, str);
38427 }
38428 else
38429 new_str = NULL;
38430
38431 return new_str;
38432}
38433
38434int main (int argc, char *argv[])
38435{
38436 int major, minor, micro;
38437 char *tmp_version;
38438
38439 /* This hangs on some systems (?)
38440 system ("touch conf.sdltest");
38441 */
38442 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
38443
38444 /* HP/UX 9 (%@#!) writes to sscanf strings */
38445 tmp_version = my_strdup("$min_sdl_version");
38446 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
38447 printf("%s, bad version string\n", "$min_sdl_version");
38448 exit(1);
38449 }
38450
38451 if (($sdl_major_version > major) ||
38452 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
38453 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
38454 {
38455 return 0;
38456 }
38457 else
38458 {
38459 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
38460 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
38461 printf("*** best to upgrade to the required version.\n");
38462 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
38463 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
38464 printf("*** config.cache before re-running configure\n");
38465 return 1;
38466 }
38467}
38468
38469
38470_ACEOF
38471rm -f conftest$ac_exeext
38472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38473 (eval $ac_link) 2>&5
38474 ac_status=$?
38475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38478 (eval $ac_try) 2>&5
38479 ac_status=$?
38480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38481 (exit $ac_status); }; }; then
38482 :
38483else
38484 echo "$as_me: program exited with status $ac_status" >&5
38485echo "$as_me: failed program was:" >&5
38486sed 's/^/| /' conftest.$ac_ext >&5
38487
38488( exit $ac_status )
38489no_sdl=yes
38490fi
ac1cb8d3 38491rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38492fi
38493 CFLAGS="$ac_save_CFLAGS"
94acd38e 38494 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
38495 LIBS="$ac_save_LIBS"
38496 fi
38497 fi
38498 if test "x$no_sdl" = x ; then
38499 echo "$as_me:$LINENO: result: yes" >&5
38500echo "${ECHO_T}yes" >&6
38501
38502 EXTRALIBS_SDL="$SDL_LIBS"
38503 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
38504 cat >>confdefs.h <<\_ACEOF
38505#define wxUSE_LIBSDL 1
38506_ACEOF
38507
38508
38509 else
38510 echo "$as_me:$LINENO: result: no" >&5
38511echo "${ECHO_T}no" >&6
38512 if test "$SDL_CONFIG" = "no" ; then
38513 echo "*** The sdl-config script installed by SDL could not be found"
38514 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
38515 echo "*** your path, or set the SDL_CONFIG environment variable to the"
38516 echo "*** full path to sdl-config."
38517 else
38518 if test -f conf.sdltest ; then
38519 :
38520 else
38521 echo "*** Could not run SDL test program, checking why..."
38522 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 38523 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
38524 LIBS="$LIBS $SDL_LIBS"
38525 cat >conftest.$ac_ext <<_ACEOF
38526/* confdefs.h. */
38527_ACEOF
38528cat confdefs.h >>conftest.$ac_ext
38529cat >>conftest.$ac_ext <<_ACEOF
38530/* end confdefs.h. */
38531
38532#include <stdio.h>
38533#include "SDL.h"
38534
38535int main(int argc, char *argv[])
38536{ return 0; }
38537#undef main
38538#define main K_and_R_C_main
38539
38540int
38541main ()
38542{
38543 return 0;
38544 ;
38545 return 0;
38546}
38547_ACEOF
38548rm -f conftest.$ac_objext conftest$ac_exeext
38549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38550 (eval $ac_link) 2>conftest.er1
a848cd7e 38551 ac_status=$?
ac1cb8d3
VS
38552 grep -v '^ *+' conftest.er1 >conftest.err
38553 rm -f conftest.er1
38554 cat conftest.err >&5
a848cd7e
SC
38555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38556 (exit $ac_status); } &&
6ebeb4c7 38557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38559 (eval $ac_try) 2>&5
38560 ac_status=$?
38561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38562 (exit $ac_status); }; } &&
38563 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38565 (eval $ac_try) 2>&5
38566 ac_status=$?
38567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38568 (exit $ac_status); }; }; then
38569 echo "*** The test program compiled, but did not run. This usually means"
38570 echo "*** that the run-time linker is not finding SDL or finding the wrong"
38571 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
38572 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
38573 echo "*** to the installed location Also, make sure you have run ldconfig if that"
38574 echo "*** is required on your system"
38575 echo "***"
38576 echo "*** If you have an old version installed, it is best to remove it, although"
38577 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
38578else
38579 echo "$as_me: failed program was:" >&5
38580sed 's/^/| /' conftest.$ac_ext >&5
38581
38582 echo "*** The test program failed to compile or link. See the file config.log for the"
38583 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
38584 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
38585 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
38586fi
ac1cb8d3
VS
38587rm -f conftest.err conftest.$ac_objext \
38588 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38589 CFLAGS="$ac_save_CFLAGS"
94acd38e 38590 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
38591 LIBS="$ac_save_LIBS"
38592 fi
38593 fi
38594 SDL_CFLAGS=""
38595 SDL_LIBS=""
38596 wxUSE_LIBSDL="no"
38597 fi
38598
38599
38600 rm -f conf.sdltest
38601
38602 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
38603 WITH_PLUGIN_SDL=1
38604 fi
38605 fi
38606 fi
38607
38608 cat >>confdefs.h <<\_ACEOF
38609#define wxUSE_SOUND 1
38610_ACEOF
38611
38612 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
38613fi
38614
d1c38808
VZ
38615if test "$WXGTK20" = 1; then
38616 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38617 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
38618
38619
38620 succeeded=no
38621
38622 if test -z "$PKG_CONFIG"; then
38623 # Extract the first word of "pkg-config", so it can be a program name with args.
38624set dummy pkg-config; ac_word=$2
38625echo "$as_me:$LINENO: checking for $ac_word" >&5
38626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38627if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
38628 echo $ECHO_N "(cached) $ECHO_C" >&6
38629else
38630 case $PKG_CONFIG in
38631 [\\/]* | ?:[\\/]*)
38632 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
38633 ;;
38634 *)
38635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38636for as_dir in $PATH
38637do
38638 IFS=$as_save_IFS
38639 test -z "$as_dir" && as_dir=.
38640 for ac_exec_ext in '' $ac_executable_extensions; do
38641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38642 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
38643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38644 break 2
38645 fi
38646done
38647done
38648
38649 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
38650 ;;
38651esac
38652fi
38653PKG_CONFIG=$ac_cv_path_PKG_CONFIG
38654
38655if test -n "$PKG_CONFIG"; then
38656 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
38657echo "${ECHO_T}$PKG_CONFIG" >&6
38658else
38659 echo "$as_me:$LINENO: result: no" >&5
38660echo "${ECHO_T}no" >&6
38661fi
38662
38663 fi
38664
38665 if test "$PKG_CONFIG" = "no" ; then
38666 echo "*** The pkg-config script could not be found. Make sure it is"
38667 echo "*** in your path, or set the PKG_CONFIG environment variable"
38668 echo "*** to the full path to pkg-config."
38669 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
38670 else
38671 PKG_CONFIG_MIN_VERSION=0.9.0
38672 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
38673 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
38674echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 38675
ffa762ff 38676 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
38677 echo "$as_me:$LINENO: result: yes" >&5
38678echo "${ECHO_T}yes" >&6
38679 succeeded=yes
38680
38681 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
38682echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 38683 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38684 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
38685echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
38686
38687 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
38688echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 38689 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38690 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
38691echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
38692 else
38693 LIBGNOMEPRINTUI_CFLAGS=""
38694 LIBGNOMEPRINTUI_LIBS=""
38695 ## If we have a custom action on failure, don't print errors, but
38696 ## do set a variable so people can do so.
ffa762ff 38697 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
38698
38699 fi
38700
38701
38702
38703 else
38704 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
38705 echo "*** See http://www.freedesktop.org/software/pkgconfig"
38706 fi
38707 fi
38708
38709 if test $succeeded = yes; then
38710
d1c38808
VZ
38711 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
38712 cat >>confdefs.h <<\_ACEOF
38713#define wxUSE_LIBGNOMEPRINT 1
38714_ACEOF
38715
38716
38717 else
38718
38719 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
38720echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
38721 wxUSE_LIBGNOMEPRINT="no"
38722
38723
38724 fi
38725
38726 fi
38727 fi
38728fi
38729
38730
a848cd7e
SC
38731if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
38732 cat >>confdefs.h <<\_ACEOF
38733#define wxUSE_CMDLINE_PARSER 1
38734_ACEOF
38735
38736fi
38737
38738if test "$wxUSE_STOPWATCH" = "yes"; then
38739 cat >>confdefs.h <<\_ACEOF
38740#define wxUSE_STOPWATCH 1
38741_ACEOF
38742
38743fi
38744
38745if test "$wxUSE_DATETIME" = "yes"; then
38746 cat >>confdefs.h <<\_ACEOF
38747#define wxUSE_DATETIME 1
38748_ACEOF
38749
38750fi
38751
38752if test "$wxUSE_FILE" = "yes"; then
38753 cat >>confdefs.h <<\_ACEOF
38754#define wxUSE_FILE 1
38755_ACEOF
38756
38757fi
38758
38759if test "$wxUSE_FFILE" = "yes"; then
38760 cat >>confdefs.h <<\_ACEOF
38761#define wxUSE_FFILE 1
38762_ACEOF
38763
38764fi
38765
38766if test "$wxUSE_FILESYSTEM" = "yes"; then
38767 cat >>confdefs.h <<\_ACEOF
38768#define wxUSE_FILESYSTEM 1
38769_ACEOF
38770
38771fi
38772
38773if test "$wxUSE_FS_ZIP" = "yes"; then
38774 cat >>confdefs.h <<\_ACEOF
38775#define wxUSE_FS_ZIP 1
38776_ACEOF
38777
38778fi
38779
9e8e867f 38780if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 38781 cat >>confdefs.h <<\_ACEOF
9e8e867f 38782#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
38783_ACEOF
38784
38785fi
38786
38787if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 38788 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
38789 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
38790echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
38791 elif test "$wxUSE_ZLIB" = "no"; then
38792 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
38793echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
38794 else
38795 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38796#define wxUSE_ZIPSTREAM 1
38797_ACEOF
38798
81f90336 38799 fi
a848cd7e
SC
38800fi
38801
a848cd7e 38802if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
38803 if test "$USE_UNIX" != 1; then
38804 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
38805echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
38806 wxUSE_ON_FATAL_EXCEPTION=no
38807 else
38808 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38809#define wxUSE_ON_FATAL_EXCEPTION 1
38810_ACEOF
38811
18228ab4 38812 fi
a848cd7e
SC
38813fi
38814
eaff0f0d
VZ
38815if test "$wxUSE_STACKWALKER" = "yes"; then
38816 cat >>confdefs.h <<\_ACEOF
38817#define wxUSE_STACKWALKER 1
38818_ACEOF
38819
38820fi
38821
36b6448c 38822if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
38823 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
38824 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
38825echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
38826 wxUSE_DEBUGREPORT=no
38827 else
38828 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
38829#define wxUSE_DEBUGREPORT 1
38830_ACEOF
38831
21dfc162
MW
38832 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
38833 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
38834 fi
dfe0c803 38835 fi
36b6448c
VZ
38836fi
38837
a848cd7e
SC
38838if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
38839 cat >>confdefs.h <<\_ACEOF
38840#define wxUSE_SNGLINST_CHECKER 1
38841_ACEOF
38842
38843fi
38844
38845if test "$wxUSE_BUSYINFO" = "yes"; then
38846 cat >>confdefs.h <<\_ACEOF
38847#define wxUSE_BUSYINFO 1
38848_ACEOF
38849
38850fi
38851
38852if test "$wxUSE_STD_IOSTREAM" = "yes"; then
38853 cat >>confdefs.h <<\_ACEOF
38854#define wxUSE_STD_IOSTREAM 1
38855_ACEOF
38856
38857fi
38858
59746b65
MW
38859if test "$wxUSE_STD_STRING" = "yes"; then
38860 cat >>confdefs.h <<\_ACEOF
38861#define wxUSE_STD_STRING 1
38862_ACEOF
38863
38864fi
38865
07158944
VZ
38866if test "$wxUSE_STDPATHS" = "yes"; then
38867 cat >>confdefs.h <<\_ACEOF
38868#define wxUSE_STDPATHS 1
38869_ACEOF
38870
38871fi
38872
a848cd7e
SC
38873if test "$wxUSE_TEXTBUFFER" = "yes"; then
38874 cat >>confdefs.h <<\_ACEOF
38875#define wxUSE_TEXTBUFFER 1
38876_ACEOF
38877
38878fi
38879
38880if test "$wxUSE_TEXTFILE" = "yes"; then
38881 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
38882 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
38883echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
38884 else
38885 cat >>confdefs.h <<\_ACEOF
38886#define wxUSE_TEXTFILE 1
38887_ACEOF
38888
38889 fi
38890fi
38891
38892if test "$wxUSE_CONFIG" = "yes" ; then
38893 if test "$wxUSE_TEXTFILE" != "yes"; then
38894 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
38895echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
38896 else
38897 cat >>confdefs.h <<\_ACEOF
38898#define wxUSE_CONFIG 1
89be85c2
VS
38899_ACEOF
38900
38901 cat >>confdefs.h <<\_ACEOF
38902#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
38903_ACEOF
38904
38905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
38906 fi
38907fi
38908
38909if test "$wxUSE_INTL" = "yes" ; then
38910 if test "$wxUSE_FILE" != "yes"; then
38911 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
38912echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
38913 else
38914 cat >>confdefs.h <<\_ACEOF
38915#define wxUSE_INTL 1
38916_ACEOF
38917
38918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
38919 GUIDIST="$GUIDIST INTL_DIST"
38920 fi
38921fi
38922
38923if test "$wxUSE_LOG" = "yes"; then
38924 cat >>confdefs.h <<\_ACEOF
38925#define wxUSE_LOG 1
38926_ACEOF
38927
38928
38929 if test "$wxUSE_LOGGUI" = "yes"; then
38930 cat >>confdefs.h <<\_ACEOF
38931#define wxUSE_LOGGUI 1
38932_ACEOF
38933
38934 fi
38935
38936 if test "$wxUSE_LOGWINDOW" = "yes"; then
38937 cat >>confdefs.h <<\_ACEOF
38938#define wxUSE_LOGWINDOW 1
38939_ACEOF
38940
38941 fi
38942
38943 if test "$wxUSE_LOGDIALOG" = "yes"; then
38944 cat >>confdefs.h <<\_ACEOF
38945#define wxUSE_LOG_DIALOG 1
38946_ACEOF
38947
38948 fi
0b78747f
MW
38949
38950 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
38951fi
38952
38953if test "$wxUSE_LONGLONG" = "yes"; then
38954 cat >>confdefs.h <<\_ACEOF
38955#define wxUSE_LONGLONG 1
38956_ACEOF
38957
38958fi
38959
38960if test "$wxUSE_GEOMETRY" = "yes"; then
38961 cat >>confdefs.h <<\_ACEOF
38962#define wxUSE_GEOMETRY 1
38963_ACEOF
38964
38965fi
38966
a848cd7e
SC
38967if test "$wxUSE_STREAMS" = "yes" ; then
38968 cat >>confdefs.h <<\_ACEOF
38969#define wxUSE_STREAMS 1
38970_ACEOF
38971
38972fi
38973
38974
38975if test "$wxUSE_DATETIME" = "yes"; then
38976
38977for ac_func in strptime
38978do
38979as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38980echo "$as_me:$LINENO: checking for $ac_func" >&5
38981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38982if eval "test \"\${$as_ac_var+set}\" = set"; then
38983 echo $ECHO_N "(cached) $ECHO_C" >&6
38984else
38985 cat >conftest.$ac_ext <<_ACEOF
38986/* confdefs.h. */
38987_ACEOF
38988cat confdefs.h >>conftest.$ac_ext
38989cat >>conftest.$ac_ext <<_ACEOF
38990/* end confdefs.h. */
ac1cb8d3
VS
38991/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38993#define $ac_func innocuous_$ac_func
38994
a848cd7e
SC
38995/* System header to define __stub macros and hopefully few prototypes,
38996 which can conflict with char $ac_func (); below.
38997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38998 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38999
a848cd7e
SC
39000#ifdef __STDC__
39001# include <limits.h>
39002#else
39003# include <assert.h>
39004#endif
ac1cb8d3
VS
39005
39006#undef $ac_func
39007
a848cd7e
SC
39008/* Override any gcc2 internal prototype to avoid an error. */
39009#ifdef __cplusplus
39010extern "C"
39011{
39012#endif
39013/* We use char because int might match the return type of a gcc2
39014 builtin and then its argument prototype would still apply. */
39015char $ac_func ();
39016/* The GNU C library defines this for functions which it implements
39017 to always fail with ENOSYS. Some functions are actually named
39018 something starting with __ and the normal name is an alias. */
39019#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39020choke me
39021#else
39022char (*f) () = $ac_func;
39023#endif
39024#ifdef __cplusplus
39025}
39026#endif
39027
39028int
39029main ()
39030{
39031return f != $ac_func;
39032 ;
39033 return 0;
39034}
39035_ACEOF
39036rm -f conftest.$ac_objext conftest$ac_exeext
39037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39038 (eval $ac_link) 2>conftest.er1
a848cd7e 39039 ac_status=$?
ac1cb8d3
VS
39040 grep -v '^ *+' conftest.er1 >conftest.err
39041 rm -f conftest.er1
39042 cat conftest.err >&5
a848cd7e
SC
39043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39044 (exit $ac_status); } &&
6ebeb4c7 39045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39047 (eval $ac_try) 2>&5
39048 ac_status=$?
39049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39050 (exit $ac_status); }; } &&
39051 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39053 (eval $ac_try) 2>&5
39054 ac_status=$?
39055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056 (exit $ac_status); }; }; then
39057 eval "$as_ac_var=yes"
39058else
39059 echo "$as_me: failed program was:" >&5
39060sed 's/^/| /' conftest.$ac_ext >&5
39061
39062eval "$as_ac_var=no"
39063fi
ac1cb8d3
VS
39064rm -f conftest.err conftest.$ac_objext \
39065 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39066fi
39067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39068echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39069if test `eval echo '${'$as_ac_var'}'` = yes; then
39070 cat >>confdefs.h <<_ACEOF
39071#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39072_ACEOF
39073
39074fi
39075done
39076
f536f005
VZ
39077 if test "$ac_cv_func_strptime" = "yes"; then
39078 echo "$as_me:$LINENO: checking for strptime declaration" >&5
39079echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
39080if test "${wx_cv_func_strptime_decl+set}" = set; then
39081 echo $ECHO_N "(cached) $ECHO_C" >&6
39082else
39083
39084
39085
39086 ac_ext=cc
39087ac_cpp='$CXXCPP $CPPFLAGS'
39088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39091
39092 cat >conftest.$ac_ext <<_ACEOF
39093/* confdefs.h. */
39094_ACEOF
39095cat confdefs.h >>conftest.$ac_ext
39096cat >>conftest.$ac_ext <<_ACEOF
39097/* end confdefs.h. */
39098
39099 #include <time.h>
39100
39101int
39102main ()
39103{
39104
39105 struct tm t;
39106 strptime("foo", "bar", &t);
39107
39108 ;
39109 return 0;
39110}
39111_ACEOF
39112rm -f conftest.$ac_objext
39113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39114 (eval $ac_compile) 2>conftest.er1
39115 ac_status=$?
39116 grep -v '^ *+' conftest.er1 >conftest.err
39117 rm -f conftest.er1
39118 cat conftest.err >&5
39119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39120 (exit $ac_status); } &&
39121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39123 (eval $ac_try) 2>&5
39124 ac_status=$?
39125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39126 (exit $ac_status); }; } &&
39127 { ac_try='test -s conftest.$ac_objext'
39128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39129 (eval $ac_try) 2>&5
39130 ac_status=$?
39131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39132 (exit $ac_status); }; }; then
39133 wx_cv_func_strptime_decl=yes
39134else
39135 echo "$as_me: failed program was:" >&5
39136sed 's/^/| /' conftest.$ac_ext >&5
39137
39138wx_cv_func_strptime_decl=no
39139
39140fi
39141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39142 ac_ext=c
39143ac_cpp='$CPP $CPPFLAGS'
39144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39146ac_compiler_gnu=$ac_cv_c_compiler_gnu
39147
39148
39149
39150fi
39151echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
39152echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
39153 fi
39154 if test "$wx_cv_func_strptime_decl" = "yes"; then
39155 cat >>confdefs.h <<\_ACEOF
39156#define HAVE_STRPTIME_DECL 1
39157_ACEOF
39158
39159 fi
a848cd7e
SC
39160
39161 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
39162echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
39163if test "${wx_cv_var_timezone+set}" = set; then
39164 echo $ECHO_N "(cached) $ECHO_C" >&6
39165else
39166
39167 cat >conftest.$ac_ext <<_ACEOF
39168/* confdefs.h. */
39169_ACEOF
39170cat confdefs.h >>conftest.$ac_ext
39171cat >>conftest.$ac_ext <<_ACEOF
39172/* end confdefs.h. */
39173
39174 #include <time.h>
39175
39176int
39177main ()
39178{
39179
39180 int tz;
39181 tz = timezone;
39182
39183 ;
39184 return 0;
39185}
39186_ACEOF
39187rm -f conftest.$ac_objext
39188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39189 (eval $ac_compile) 2>conftest.er1
a848cd7e 39190 ac_status=$?
ac1cb8d3
VS
39191 grep -v '^ *+' conftest.er1 >conftest.err
39192 rm -f conftest.er1
39193 cat conftest.err >&5
a848cd7e
SC
39194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39195 (exit $ac_status); } &&
6ebeb4c7 39196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39198 (eval $ac_try) 2>&5
39199 ac_status=$?
39200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39201 (exit $ac_status); }; } &&
39202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39204 (eval $ac_try) 2>&5
39205 ac_status=$?
39206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39207 (exit $ac_status); }; }; then
39208
39209 wx_cv_var_timezone=timezone
39210
39211else
39212 echo "$as_me: failed program was:" >&5
39213sed 's/^/| /' conftest.$ac_ext >&5
39214
39215
39216 cat >conftest.$ac_ext <<_ACEOF
39217/* confdefs.h. */
39218_ACEOF
39219cat confdefs.h >>conftest.$ac_ext
39220cat >>conftest.$ac_ext <<_ACEOF
39221/* end confdefs.h. */
39222
39223 #include <time.h>
39224
39225int
39226main ()
39227{
39228
39229 int tz;
39230 tz = _timezone;
39231
39232 ;
39233 return 0;
39234}
39235_ACEOF
39236rm -f conftest.$ac_objext
39237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39238 (eval $ac_compile) 2>conftest.er1
a848cd7e 39239 ac_status=$?
ac1cb8d3
VS
39240 grep -v '^ *+' conftest.er1 >conftest.err
39241 rm -f conftest.er1
39242 cat conftest.err >&5
a848cd7e
SC
39243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39244 (exit $ac_status); } &&
6ebeb4c7 39245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39247 (eval $ac_try) 2>&5
39248 ac_status=$?
39249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39250 (exit $ac_status); }; } &&
39251 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39253 (eval $ac_try) 2>&5
39254 ac_status=$?
39255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39256 (exit $ac_status); }; }; then
39257
39258 wx_cv_var_timezone=_timezone
39259
39260else
39261 echo "$as_me: failed program was:" >&5
39262sed 's/^/| /' conftest.$ac_ext >&5
39263
39264
39265 cat >conftest.$ac_ext <<_ACEOF
39266/* confdefs.h. */
39267_ACEOF
39268cat confdefs.h >>conftest.$ac_ext
39269cat >>conftest.$ac_ext <<_ACEOF
39270/* end confdefs.h. */
39271
39272 #include <time.h>
39273
39274int
39275main ()
39276{
39277
39278 int tz;
39279 tz = __timezone;
39280
39281 ;
39282 return 0;
39283}
39284_ACEOF
39285rm -f conftest.$ac_objext
39286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39287 (eval $ac_compile) 2>conftest.er1
a848cd7e 39288 ac_status=$?
ac1cb8d3
VS
39289 grep -v '^ *+' conftest.er1 >conftest.err
39290 rm -f conftest.er1
39291 cat conftest.err >&5
a848cd7e
SC
39292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39293 (exit $ac_status); } &&
6ebeb4c7 39294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39296 (eval $ac_try) 2>&5
39297 ac_status=$?
39298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39299 (exit $ac_status); }; } &&
39300 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39302 (eval $ac_try) 2>&5
39303 ac_status=$?
39304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39305 (exit $ac_status); }; }; then
39306
39307 wx_cv_var_timezone=__timezone
39308
39309else
39310 echo "$as_me: failed program was:" >&5
39311sed 's/^/| /' conftest.$ac_ext >&5
39312
39313
39314 if test "$USE_DOS" = 0 ; then
39315 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
39316echo "$as_me: WARNING: no timezone variable" >&2;}
39317 fi
39318
39319
39320fi
ac1cb8d3 39321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39322
39323
39324fi
ac1cb8d3 39325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39326
39327
39328fi
ac1cb8d3 39329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39330
39331
39332fi
39333echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
39334echo "${ECHO_T}$wx_cv_var_timezone" >&6
39335
39336 if test "x$wx_cv_var_timezone" != x ; then
39337 cat >>confdefs.h <<_ACEOF
39338#define WX_TIMEZONE $wx_cv_var_timezone
39339_ACEOF
39340
39341 fi
39342
39343
39344for ac_func in localtime
39345do
39346as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39347echo "$as_me:$LINENO: checking for $ac_func" >&5
39348echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39349if eval "test \"\${$as_ac_var+set}\" = set"; then
39350 echo $ECHO_N "(cached) $ECHO_C" >&6
39351else
39352 cat >conftest.$ac_ext <<_ACEOF
39353/* confdefs.h. */
39354_ACEOF
39355cat confdefs.h >>conftest.$ac_ext
39356cat >>conftest.$ac_ext <<_ACEOF
39357/* end confdefs.h. */
ac1cb8d3
VS
39358/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39360#define $ac_func innocuous_$ac_func
39361
a848cd7e
SC
39362/* System header to define __stub macros and hopefully few prototypes,
39363 which can conflict with char $ac_func (); below.
39364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39365 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39366
a848cd7e
SC
39367#ifdef __STDC__
39368# include <limits.h>
39369#else
39370# include <assert.h>
39371#endif
ac1cb8d3
VS
39372
39373#undef $ac_func
39374
a848cd7e
SC
39375/* Override any gcc2 internal prototype to avoid an error. */
39376#ifdef __cplusplus
39377extern "C"
39378{
39379#endif
39380/* We use char because int might match the return type of a gcc2
39381 builtin and then its argument prototype would still apply. */
39382char $ac_func ();
39383/* The GNU C library defines this for functions which it implements
39384 to always fail with ENOSYS. Some functions are actually named
39385 something starting with __ and the normal name is an alias. */
39386#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39387choke me
39388#else
39389char (*f) () = $ac_func;
39390#endif
39391#ifdef __cplusplus
39392}
39393#endif
39394
39395int
39396main ()
39397{
39398return f != $ac_func;
39399 ;
39400 return 0;
39401}
39402_ACEOF
39403rm -f conftest.$ac_objext conftest$ac_exeext
39404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39405 (eval $ac_link) 2>conftest.er1
a848cd7e 39406 ac_status=$?
ac1cb8d3
VS
39407 grep -v '^ *+' conftest.er1 >conftest.err
39408 rm -f conftest.er1
39409 cat conftest.err >&5
a848cd7e
SC
39410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39411 (exit $ac_status); } &&
6ebeb4c7 39412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39414 (eval $ac_try) 2>&5
39415 ac_status=$?
39416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39417 (exit $ac_status); }; } &&
39418 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39420 (eval $ac_try) 2>&5
39421 ac_status=$?
39422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39423 (exit $ac_status); }; }; then
39424 eval "$as_ac_var=yes"
39425else
39426 echo "$as_me: failed program was:" >&5
39427sed 's/^/| /' conftest.$ac_ext >&5
39428
39429eval "$as_ac_var=no"
39430fi
ac1cb8d3
VS
39431rm -f conftest.err conftest.$ac_objext \
39432 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39433fi
39434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39435echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39436if test `eval echo '${'$as_ac_var'}'` = yes; then
39437 cat >>confdefs.h <<_ACEOF
39438#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39439_ACEOF
39440
39441fi
39442done
39443
39444
39445 if test "$ac_cv_func_localtime" = "yes"; then
39446 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
39447echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
39448if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
39449 echo $ECHO_N "(cached) $ECHO_C" >&6
39450else
39451
39452 cat >conftest.$ac_ext <<_ACEOF
39453/* confdefs.h. */
39454_ACEOF
39455cat confdefs.h >>conftest.$ac_ext
39456cat >>conftest.$ac_ext <<_ACEOF
39457/* end confdefs.h. */
39458
39459 #include <time.h>
39460
39461int
39462main ()
39463{
39464
39465 struct tm tm;
39466 tm.tm_gmtoff++;
39467
39468 ;
39469 return 0;
39470}
39471_ACEOF
39472rm -f conftest.$ac_objext
39473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39474 (eval $ac_compile) 2>conftest.er1
a848cd7e 39475 ac_status=$?
ac1cb8d3
VS
39476 grep -v '^ *+' conftest.er1 >conftest.err
39477 rm -f conftest.er1
39478 cat conftest.err >&5
a848cd7e
SC
39479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39480 (exit $ac_status); } &&
6ebeb4c7 39481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39483 (eval $ac_try) 2>&5
39484 ac_status=$?
39485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39486 (exit $ac_status); }; } &&
39487 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39489 (eval $ac_try) 2>&5
39490 ac_status=$?
39491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39492 (exit $ac_status); }; }; then
39493
39494 wx_cv_struct_tm_has_gmtoff=yes
39495
39496else
39497 echo "$as_me: failed program was:" >&5
39498sed 's/^/| /' conftest.$ac_ext >&5
39499
39500wx_cv_struct_tm_has_gmtoff=no
39501
39502fi
ac1cb8d3 39503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39504
39505fi
39506echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
39507echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
39508 fi
39509
39510 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
39511 cat >>confdefs.h <<\_ACEOF
39512#define WX_GMTOFF_IN_TM 1
39513_ACEOF
39514
39515 fi
39516
39517
39518
39519for ac_func in gettimeofday ftime
39520do
39521as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39522echo "$as_me:$LINENO: checking for $ac_func" >&5
39523echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39524if eval "test \"\${$as_ac_var+set}\" = set"; then
39525 echo $ECHO_N "(cached) $ECHO_C" >&6
39526else
39527 cat >conftest.$ac_ext <<_ACEOF
39528/* confdefs.h. */
39529_ACEOF
39530cat confdefs.h >>conftest.$ac_ext
39531cat >>conftest.$ac_ext <<_ACEOF
39532/* end confdefs.h. */
ac1cb8d3
VS
39533/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39535#define $ac_func innocuous_$ac_func
39536
a848cd7e
SC
39537/* System header to define __stub macros and hopefully few prototypes,
39538 which can conflict with char $ac_func (); below.
39539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39540 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39541
a848cd7e
SC
39542#ifdef __STDC__
39543# include <limits.h>
39544#else
39545# include <assert.h>
39546#endif
ac1cb8d3
VS
39547
39548#undef $ac_func
39549
a848cd7e
SC
39550/* Override any gcc2 internal prototype to avoid an error. */
39551#ifdef __cplusplus
39552extern "C"
39553{
39554#endif
39555/* We use char because int might match the return type of a gcc2
39556 builtin and then its argument prototype would still apply. */
39557char $ac_func ();
39558/* The GNU C library defines this for functions which it implements
39559 to always fail with ENOSYS. Some functions are actually named
39560 something starting with __ and the normal name is an alias. */
39561#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39562choke me
39563#else
39564char (*f) () = $ac_func;
39565#endif
39566#ifdef __cplusplus
39567}
39568#endif
39569
39570int
39571main ()
39572{
39573return f != $ac_func;
39574 ;
39575 return 0;
39576}
39577_ACEOF
39578rm -f conftest.$ac_objext conftest$ac_exeext
39579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39580 (eval $ac_link) 2>conftest.er1
a848cd7e 39581 ac_status=$?
ac1cb8d3
VS
39582 grep -v '^ *+' conftest.er1 >conftest.err
39583 rm -f conftest.er1
39584 cat conftest.err >&5
a848cd7e
SC
39585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39586 (exit $ac_status); } &&
6ebeb4c7 39587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39589 (eval $ac_try) 2>&5
39590 ac_status=$?
39591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592 (exit $ac_status); }; } &&
39593 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39595 (eval $ac_try) 2>&5
39596 ac_status=$?
39597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39598 (exit $ac_status); }; }; then
39599 eval "$as_ac_var=yes"
39600else
39601 echo "$as_me: failed program was:" >&5
39602sed 's/^/| /' conftest.$ac_ext >&5
39603
39604eval "$as_ac_var=no"
39605fi
ac1cb8d3
VS
39606rm -f conftest.err conftest.$ac_objext \
39607 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39608fi
39609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39610echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39611if test `eval echo '${'$as_ac_var'}'` = yes; then
39612 cat >>confdefs.h <<_ACEOF
39613#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39614_ACEOF
39615 break
39616fi
39617done
39618
39619
39620 if test "$ac_cv_func_gettimeofday" = "yes"; then
39621 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
39622echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
39623if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
39624 echo $ECHO_N "(cached) $ECHO_C" >&6
39625else
39626
39627
39628
39629 ac_ext=cc
39630ac_cpp='$CXXCPP $CPPFLAGS'
39631ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39632ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39633ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39634
39635
39636 cat >conftest.$ac_ext <<_ACEOF
39637/* confdefs.h. */
39638_ACEOF
39639cat confdefs.h >>conftest.$ac_ext
39640cat >>conftest.$ac_ext <<_ACEOF
39641/* end confdefs.h. */
39642
39643 #include <sys/time.h>
39644 #include <unistd.h>
39645
39646int
39647main ()
39648{
39649
39650 struct timeval tv;
39651 gettimeofday(&tv, NULL);
39652
39653 ;
39654 return 0;
39655}
39656_ACEOF
39657rm -f conftest.$ac_objext
39658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39659 (eval $ac_compile) 2>conftest.er1
a848cd7e 39660 ac_status=$?
ac1cb8d3
VS
39661 grep -v '^ *+' conftest.er1 >conftest.err
39662 rm -f conftest.er1
39663 cat conftest.err >&5
a848cd7e
SC
39664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39665 (exit $ac_status); } &&
6ebeb4c7 39666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39668 (eval $ac_try) 2>&5
39669 ac_status=$?
39670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39671 (exit $ac_status); }; } &&
39672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39674 (eval $ac_try) 2>&5
39675 ac_status=$?
39676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39677 (exit $ac_status); }; }; then
39678 wx_cv_func_gettimeofday_has_2_args=yes
39679else
39680 echo "$as_me: failed program was:" >&5
39681sed 's/^/| /' conftest.$ac_ext >&5
39682
39683cat >conftest.$ac_ext <<_ACEOF
39684/* confdefs.h. */
39685_ACEOF
39686cat confdefs.h >>conftest.$ac_ext
39687cat >>conftest.$ac_ext <<_ACEOF
39688/* end confdefs.h. */
39689
39690 #include <sys/time.h>
39691 #include <unistd.h>
39692
39693int
39694main ()
39695{
39696
39697 struct timeval tv;
39698 gettimeofday(&tv);
39699
39700 ;
39701 return 0;
39702}
39703_ACEOF
39704rm -f conftest.$ac_objext
39705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39706 (eval $ac_compile) 2>conftest.er1
a848cd7e 39707 ac_status=$?
ac1cb8d3
VS
39708 grep -v '^ *+' conftest.er1 >conftest.err
39709 rm -f conftest.er1
39710 cat conftest.err >&5
a848cd7e
SC
39711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39712 (exit $ac_status); } &&
6ebeb4c7 39713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39715 (eval $ac_try) 2>&5
39716 ac_status=$?
39717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39718 (exit $ac_status); }; } &&
39719 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39721 (eval $ac_try) 2>&5
39722 ac_status=$?
39723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39724 (exit $ac_status); }; }; then
39725 wx_cv_func_gettimeofday_has_2_args=no
39726else
39727 echo "$as_me: failed program was:" >&5
39728sed 's/^/| /' conftest.$ac_ext >&5
39729
39730
39731 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
39732echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
39733 wx_cv_func_gettimeofday_has_2_args=unknown
39734
39735
39736fi
ac1cb8d3 39737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39738
39739fi
ac1cb8d3 39740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39741 ac_ext=c
39742ac_cpp='$CPP $CPPFLAGS'
39743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39745ac_compiler_gnu=$ac_cv_c_compiler_gnu
39746
39747
39748fi
39749echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
39750echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
39751
39752 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
39753 cat >>confdefs.h <<\_ACEOF
39754#define WX_GETTIMEOFDAY_NO_TZ 1
39755_ACEOF
39756
39757 fi
39758 fi
39759
39760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
39761fi
39762
39763
39764if test "$wxUSE_SOCKETS" = "yes"; then
39765 if test "$wxUSE_MGL" = "1"; then
39766 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
39767echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
39768 wxUSE_SOCKETS="no"
39769 fi
39770fi
39771
39772if test "$wxUSE_SOCKETS" = "yes"; then
39773 if test "$TOOLKIT" != "MSW"; then
39774 echo "$as_me:$LINENO: checking for socket" >&5
39775echo $ECHO_N "checking for socket... $ECHO_C" >&6
39776if test "${ac_cv_func_socket+set}" = set; then
39777 echo $ECHO_N "(cached) $ECHO_C" >&6
39778else
39779 cat >conftest.$ac_ext <<_ACEOF
39780/* confdefs.h. */
39781_ACEOF
39782cat confdefs.h >>conftest.$ac_ext
39783cat >>conftest.$ac_ext <<_ACEOF
39784/* end confdefs.h. */
ac1cb8d3
VS
39785/* Define socket to an innocuous variant, in case <limits.h> declares socket.
39786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39787#define socket innocuous_socket
39788
a848cd7e
SC
39789/* System header to define __stub macros and hopefully few prototypes,
39790 which can conflict with char socket (); below.
39791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39792 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39793
a848cd7e
SC
39794#ifdef __STDC__
39795# include <limits.h>
39796#else
39797# include <assert.h>
39798#endif
ac1cb8d3
VS
39799
39800#undef socket
39801
a848cd7e
SC
39802/* Override any gcc2 internal prototype to avoid an error. */
39803#ifdef __cplusplus
39804extern "C"
39805{
39806#endif
39807/* We use char because int might match the return type of a gcc2
39808 builtin and then its argument prototype would still apply. */
39809char socket ();
39810/* The GNU C library defines this for functions which it implements
39811 to always fail with ENOSYS. Some functions are actually named
39812 something starting with __ and the normal name is an alias. */
39813#if defined (__stub_socket) || defined (__stub___socket)
39814choke me
39815#else
39816char (*f) () = socket;
39817#endif
39818#ifdef __cplusplus
39819}
39820#endif
39821
39822int
39823main ()
39824{
39825return f != socket;
39826 ;
39827 return 0;
39828}
39829_ACEOF
39830rm -f conftest.$ac_objext conftest$ac_exeext
39831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39832 (eval $ac_link) 2>conftest.er1
a848cd7e 39833 ac_status=$?
ac1cb8d3
VS
39834 grep -v '^ *+' conftest.er1 >conftest.err
39835 rm -f conftest.er1
39836 cat conftest.err >&5
a848cd7e
SC
39837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39838 (exit $ac_status); } &&
6ebeb4c7 39839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39841 (eval $ac_try) 2>&5
39842 ac_status=$?
39843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39844 (exit $ac_status); }; } &&
39845 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39847 (eval $ac_try) 2>&5
39848 ac_status=$?
39849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39850 (exit $ac_status); }; }; then
39851 ac_cv_func_socket=yes
39852else
39853 echo "$as_me: failed program was:" >&5
39854sed 's/^/| /' conftest.$ac_ext >&5
39855
39856ac_cv_func_socket=no
39857fi
ac1cb8d3
VS
39858rm -f conftest.err conftest.$ac_objext \
39859 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39860fi
39861echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
39862echo "${ECHO_T}$ac_cv_func_socket" >&6
39863if test $ac_cv_func_socket = yes; then
39864 :
39865else
39866
39867 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
39868echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
39869if test "${ac_cv_lib_socket_socket+set}" = set; then
39870 echo $ECHO_N "(cached) $ECHO_C" >&6
39871else
39872 ac_check_lib_save_LIBS=$LIBS
39873LIBS="-lsocket $LIBS"
39874cat >conftest.$ac_ext <<_ACEOF
39875/* confdefs.h. */
39876_ACEOF
39877cat confdefs.h >>conftest.$ac_ext
39878cat >>conftest.$ac_ext <<_ACEOF
39879/* end confdefs.h. */
39880
39881/* Override any gcc2 internal prototype to avoid an error. */
39882#ifdef __cplusplus
39883extern "C"
39884#endif
39885/* We use char because int might match the return type of a gcc2
39886 builtin and then its argument prototype would still apply. */
39887char socket ();
39888int
39889main ()
39890{
39891socket ();
39892 ;
39893 return 0;
39894}
39895_ACEOF
39896rm -f conftest.$ac_objext conftest$ac_exeext
39897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39898 (eval $ac_link) 2>conftest.er1
a848cd7e 39899 ac_status=$?
ac1cb8d3
VS
39900 grep -v '^ *+' conftest.er1 >conftest.err
39901 rm -f conftest.er1
39902 cat conftest.err >&5
a848cd7e
SC
39903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39904 (exit $ac_status); } &&
6ebeb4c7 39905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39907 (eval $ac_try) 2>&5
39908 ac_status=$?
39909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39910 (exit $ac_status); }; } &&
39911 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39913 (eval $ac_try) 2>&5
39914 ac_status=$?
39915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39916 (exit $ac_status); }; }; then
39917 ac_cv_lib_socket_socket=yes
39918else
39919 echo "$as_me: failed program was:" >&5
39920sed 's/^/| /' conftest.$ac_ext >&5
39921
39922ac_cv_lib_socket_socket=no
39923fi
ac1cb8d3
VS
39924rm -f conftest.err conftest.$ac_objext \
39925 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39926LIBS=$ac_check_lib_save_LIBS
39927fi
39928echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
39929echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
39930if test $ac_cv_lib_socket_socket = yes; then
39931 if test "$INET_LINK" != " -lsocket"; then
39932 INET_LINK="$INET_LINK -lsocket"
39933 fi
39934else
39935
39936 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
39937echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
39938 wxUSE_SOCKETS=no
39939
39940
39941fi
39942
39943
39944
39945fi
39946
39947 fi
39948fi
39949
39950if test "$wxUSE_SOCKETS" = "yes" ; then
39951 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
39952 ac_ext=cc
39953ac_cpp='$CXXCPP $CPPFLAGS'
39954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39957
39958 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
39959echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
39960if test "${wx_cv_type_getsockname3+set}" = set; then
39961 echo $ECHO_N "(cached) $ECHO_C" >&6
39962else
39963
39964 cat >conftest.$ac_ext <<_ACEOF
39965/* confdefs.h. */
39966_ACEOF
39967cat confdefs.h >>conftest.$ac_ext
39968cat >>conftest.$ac_ext <<_ACEOF
39969/* end confdefs.h. */
39970
39971 #include <sys/types.h>
39972 #include <sys/socket.h>
39973
39974int
39975main ()
39976{
39977
39978 socklen_t len;
39979 getsockname(0, 0, &len);
39980
39981 ;
39982 return 0;
39983}
39984_ACEOF
39985rm -f conftest.$ac_objext
39986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39987 (eval $ac_compile) 2>conftest.er1
a848cd7e 39988 ac_status=$?
ac1cb8d3
VS
39989 grep -v '^ *+' conftest.er1 >conftest.err
39990 rm -f conftest.er1
39991 cat conftest.err >&5
a848cd7e
SC
39992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39993 (exit $ac_status); } &&
6ebeb4c7 39994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39996 (eval $ac_try) 2>&5
39997 ac_status=$?
39998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39999 (exit $ac_status); }; } &&
40000 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40002 (eval $ac_try) 2>&5
40003 ac_status=$?
40004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40005 (exit $ac_status); }; }; then
40006 wx_cv_type_getsockname3=socklen_t
40007else
40008 echo "$as_me: failed program was:" >&5
40009sed 's/^/| /' conftest.$ac_ext >&5
40010
40011
6459a506 40012 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 40013 if test "$GCC" = yes ; then
6459a506 40014 CXXFLAGS="$CXXFLAGS -Werror"
a848cd7e
SC
40015 fi
40016
40017 cat >conftest.$ac_ext <<_ACEOF
40018/* confdefs.h. */
40019_ACEOF
40020cat confdefs.h >>conftest.$ac_ext
40021cat >>conftest.$ac_ext <<_ACEOF
40022/* end confdefs.h. */
40023
40024 #include <sys/types.h>
40025 #include <sys/socket.h>
40026
40027int
40028main ()
40029{
40030
40031 size_t len;
40032 getsockname(0, 0, &len);
40033
40034 ;
40035 return 0;
40036}
40037_ACEOF
40038rm -f conftest.$ac_objext
40039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40040 (eval $ac_compile) 2>conftest.er1
a848cd7e 40041 ac_status=$?
ac1cb8d3
VS
40042 grep -v '^ *+' conftest.er1 >conftest.err
40043 rm -f conftest.er1
40044 cat conftest.err >&5
a848cd7e
SC
40045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40046 (exit $ac_status); } &&
6ebeb4c7 40047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40049 (eval $ac_try) 2>&5
40050 ac_status=$?
40051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40052 (exit $ac_status); }; } &&
40053 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40055 (eval $ac_try) 2>&5
40056 ac_status=$?
40057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40058 (exit $ac_status); }; }; then
40059 wx_cv_type_getsockname3=size_t
40060else
40061 echo "$as_me: failed program was:" >&5
40062sed 's/^/| /' conftest.$ac_ext >&5
40063
40064cat >conftest.$ac_ext <<_ACEOF
40065/* confdefs.h. */
40066_ACEOF
40067cat confdefs.h >>conftest.$ac_ext
40068cat >>conftest.$ac_ext <<_ACEOF
40069/* end confdefs.h. */
40070
40071 #include <sys/types.h>
40072 #include <sys/socket.h>
40073
40074int
40075main ()
40076{
40077
40078 int len;
40079 getsockname(0, 0, &len);
40080
40081 ;
40082 return 0;
40083}
40084_ACEOF
40085rm -f conftest.$ac_objext
40086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40087 (eval $ac_compile) 2>conftest.er1
a848cd7e 40088 ac_status=$?
ac1cb8d3
VS
40089 grep -v '^ *+' conftest.er1 >conftest.err
40090 rm -f conftest.er1
40091 cat conftest.err >&5
a848cd7e
SC
40092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40093 (exit $ac_status); } &&
6ebeb4c7 40094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40096 (eval $ac_try) 2>&5
40097 ac_status=$?
40098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40099 (exit $ac_status); }; } &&
40100 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40102 (eval $ac_try) 2>&5
40103 ac_status=$?
40104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105 (exit $ac_status); }; }; then
40106 wx_cv_type_getsockname3=int
40107else
40108 echo "$as_me: failed program was:" >&5
40109sed 's/^/| /' conftest.$ac_ext >&5
40110
40111wx_cv_type_getsockname3=unknown
40112
40113fi
ac1cb8d3 40114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40115
40116fi
ac1cb8d3 40117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40118
6459a506 40119 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40120
40121
40122fi
ac1cb8d3 40123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40124
40125fi
40126echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
40127echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
40128
40129 if test "$wx_cv_type_getsockname3" = "unknown"; then
40130 wxUSE_SOCKETS=no
40131 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40132echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40133 else
40134 cat >>confdefs.h <<_ACEOF
9e03e02d 40135#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
40136_ACEOF
40137
40138 fi
40139 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
40140echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
40141if test "${wx_cv_type_getsockopt5+set}" = set; then
40142 echo $ECHO_N "(cached) $ECHO_C" >&6
40143else
40144
40145 cat >conftest.$ac_ext <<_ACEOF
40146/* confdefs.h. */
40147_ACEOF
40148cat confdefs.h >>conftest.$ac_ext
40149cat >>conftest.$ac_ext <<_ACEOF
40150/* end confdefs.h. */
40151
40152 #include <sys/types.h>
40153 #include <sys/socket.h>
40154
40155int
40156main ()
40157{
40158
40159 socklen_t len;
40160 getsockopt(0, 0, 0, 0, &len);
40161
40162 ;
40163 return 0;
40164}
40165_ACEOF
40166rm -f conftest.$ac_objext
40167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40168 (eval $ac_compile) 2>conftest.er1
40169 ac_status=$?
40170 grep -v '^ *+' conftest.er1 >conftest.err
40171 rm -f conftest.er1
40172 cat conftest.err >&5
40173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40174 (exit $ac_status); } &&
6ebeb4c7 40175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40177 (eval $ac_try) 2>&5
40178 ac_status=$?
40179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180 (exit $ac_status); }; } &&
40181 { ac_try='test -s conftest.$ac_objext'
40182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40183 (eval $ac_try) 2>&5
40184 ac_status=$?
40185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186 (exit $ac_status); }; }; then
40187 wx_cv_type_getsockopt5=socklen_t
40188else
40189 echo "$as_me: failed program was:" >&5
40190sed 's/^/| /' conftest.$ac_ext >&5
40191
40192
6459a506 40193 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 40194 if test "$GCC" = yes ; then
6459a506 40195 CXXFLAGS="$CXXFLAGS -Werror"
5b674b9d
DE
40196 fi
40197
40198 cat >conftest.$ac_ext <<_ACEOF
40199/* confdefs.h. */
40200_ACEOF
40201cat confdefs.h >>conftest.$ac_ext
40202cat >>conftest.$ac_ext <<_ACEOF
40203/* end confdefs.h. */
40204
40205 #include <sys/types.h>
40206 #include <sys/socket.h>
40207
40208int
40209main ()
40210{
40211
40212 size_t len;
40213 getsockopt(0, 0, 0, 0, &len);
40214
40215 ;
40216 return 0;
40217}
40218_ACEOF
40219rm -f conftest.$ac_objext
40220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40221 (eval $ac_compile) 2>conftest.er1
40222 ac_status=$?
40223 grep -v '^ *+' conftest.er1 >conftest.err
40224 rm -f conftest.er1
40225 cat conftest.err >&5
40226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40227 (exit $ac_status); } &&
6ebeb4c7 40228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40230 (eval $ac_try) 2>&5
40231 ac_status=$?
40232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40233 (exit $ac_status); }; } &&
40234 { ac_try='test -s conftest.$ac_objext'
40235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40236 (eval $ac_try) 2>&5
40237 ac_status=$?
40238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40239 (exit $ac_status); }; }; then
40240 wx_cv_type_getsockopt5=size_t
40241else
40242 echo "$as_me: failed program was:" >&5
40243sed 's/^/| /' conftest.$ac_ext >&5
40244
40245cat >conftest.$ac_ext <<_ACEOF
40246/* confdefs.h. */
40247_ACEOF
40248cat confdefs.h >>conftest.$ac_ext
40249cat >>conftest.$ac_ext <<_ACEOF
40250/* end confdefs.h. */
40251
40252 #include <sys/types.h>
40253 #include <sys/socket.h>
40254
40255int
40256main ()
40257{
40258
40259 int len;
40260 getsockopt(0, 0, 0, 0, &len);
40261
40262 ;
40263 return 0;
40264}
40265_ACEOF
40266rm -f conftest.$ac_objext
40267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40268 (eval $ac_compile) 2>conftest.er1
40269 ac_status=$?
40270 grep -v '^ *+' conftest.er1 >conftest.err
40271 rm -f conftest.er1
40272 cat conftest.err >&5
40273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40274 (exit $ac_status); } &&
6ebeb4c7 40275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40277 (eval $ac_try) 2>&5
40278 ac_status=$?
40279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40280 (exit $ac_status); }; } &&
40281 { ac_try='test -s conftest.$ac_objext'
40282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40283 (eval $ac_try) 2>&5
40284 ac_status=$?
40285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40286 (exit $ac_status); }; }; then
40287 wx_cv_type_getsockopt5=int
40288else
40289 echo "$as_me: failed program was:" >&5
40290sed 's/^/| /' conftest.$ac_ext >&5
40291
40292wx_cv_type_getsockopt5=unknown
40293
40294fi
40295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40296
40297fi
40298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40299
6459a506 40300 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
40301
40302
40303fi
40304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40305
40306fi
40307echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
40308echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
40309
40310 if test "$wx_cv_type_getsockopt5" = "unknown"; then
40311 wxUSE_SOCKETS=no
40312 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40313echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40314 else
40315 cat >>confdefs.h <<_ACEOF
40316#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
40317_ACEOF
40318
40319 fi
4d4ff94c
VZ
40320 ac_ext=c
40321ac_cpp='$CPP $CPPFLAGS'
40322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40324ac_compiler_gnu=$ac_cv_c_compiler_gnu
40325
a848cd7e
SC
40326 fi
40327fi
40328
40329if test "$wxUSE_SOCKETS" = "yes" ; then
40330 cat >>confdefs.h <<\_ACEOF
40331#define wxUSE_SOCKETS 1
40332_ACEOF
40333
40334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
40335fi
40336
40337if test "$wxUSE_PROTOCOL" = "yes"; then
40338 if test "$wxUSE_SOCKETS" != "yes"; then
40339 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
40340echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
40341 wxUSE_PROTOCOL=no
40342 fi
40343fi
40344
40345if test "$wxUSE_PROTOCOL" = "yes"; then
40346 cat >>confdefs.h <<\_ACEOF
40347#define wxUSE_PROTOCOL 1
40348_ACEOF
40349
40350
40351 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
40352 cat >>confdefs.h <<\_ACEOF
40353#define wxUSE_PROTOCOL_HTTP 1
40354_ACEOF
40355
40356 fi
40357 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
40358 cat >>confdefs.h <<\_ACEOF
40359#define wxUSE_PROTOCOL_FTP 1
40360_ACEOF
40361
40362 fi
40363 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
40364 cat >>confdefs.h <<\_ACEOF
40365#define wxUSE_PROTOCOL_FILE 1
40366_ACEOF
40367
40368 fi
40369else
40370 if test "$wxUSE_FS_INET" = "yes"; then
40371 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
40372echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
40373 wxUSE_FS_INET="no"
40374 fi
40375fi
40376
40377if test "$wxUSE_URL" = "yes"; then
40378 if test "$wxUSE_PROTOCOL" != "yes"; then
40379 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
40380echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
40381 wxUSE_URL=no
40382 fi
40383 if test "$wxUSE_URL" = "yes"; then
40384 cat >>confdefs.h <<\_ACEOF
40385#define wxUSE_URL 1
40386_ACEOF
40387
40388 fi
40389fi
40390
40391if test "$wxUSE_FS_INET" = "yes"; then
40392 cat >>confdefs.h <<\_ACEOF
40393#define wxUSE_FS_INET 1
40394_ACEOF
40395
40396fi
40397
40398
ee45c548
MW
40399if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
40400 wxUSE_JOYSTICK=no
40401
40402 if test "$TOOLKIT" = "MSW"; then
40403 wxUSE_JOYSTICK=yes
40404
40405 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
40406 if test "$USE_DARWIN" = 1; then
40407 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
40408echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
40409 ac_ext=cc
40410ac_cpp='$CXXCPP $CPPFLAGS'
40411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40414
40415 cat >conftest.$ac_ext <<_ACEOF
40416/* confdefs.h. */
40417_ACEOF
40418cat confdefs.h >>conftest.$ac_ext
40419cat >>conftest.$ac_ext <<_ACEOF
40420/* end confdefs.h. */
40421 #include <IOKit/hid/IOHIDLib.h>
40422int
40423main ()
40424{
40425 IOHIDQueueInterface *qi = NULL;
40426 IOHIDCallbackFunction cb = NULL;
40427 qi->setEventCallout(NULL, cb, NULL, NULL);
40428 ;
40429 return 0;
40430}
40431_ACEOF
40432rm -f conftest.$ac_objext
40433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40434 (eval $ac_compile) 2>conftest.er1
40435 ac_status=$?
40436 grep -v '^ *+' conftest.er1 >conftest.err
40437 rm -f conftest.er1
40438 cat conftest.err >&5
40439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40440 (exit $ac_status); } &&
6ebeb4c7 40441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
40442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40443 (eval $ac_try) 2>&5
40444 ac_status=$?
40445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40446 (exit $ac_status); }; } &&
40447 { ac_try='test -s conftest.$ac_objext'
40448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40449 (eval $ac_try) 2>&5
40450 ac_status=$?
40451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40452 (exit $ac_status); }; }; then
40453 wxUSE_JOYSTICK=yes
a848cd7e 40454
ee45c548
MW
40455else
40456 echo "$as_me: failed program was:" >&5
40457sed 's/^/| /' conftest.$ac_ext >&5
40458
40459fi
40460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40461 ac_ext=c
40462ac_cpp='$CPP $CPPFLAGS'
40463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40465ac_compiler_gnu=$ac_cv_c_compiler_gnu
40466
40467 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
40468echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
40469 fi
40470
40471 else
a848cd7e
SC
40472
40473for ac_header in linux/joystick.h
40474do
40475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40476if eval "test \"\${$as_ac_Header+set}\" = set"; then
40477 echo "$as_me:$LINENO: checking for $ac_header" >&5
40478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40479if eval "test \"\${$as_ac_Header+set}\" = set"; then
40480 echo $ECHO_N "(cached) $ECHO_C" >&6
40481fi
40482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40484else
40485 # Is the header compilable?
40486echo "$as_me:$LINENO: checking $ac_header usability" >&5
40487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40488cat >conftest.$ac_ext <<_ACEOF
40489/* confdefs.h. */
40490_ACEOF
40491cat confdefs.h >>conftest.$ac_ext
40492cat >>conftest.$ac_ext <<_ACEOF
40493/* end confdefs.h. */
40494$ac_includes_default
40495#include <$ac_header>
40496_ACEOF
40497rm -f conftest.$ac_objext
40498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40499 (eval $ac_compile) 2>conftest.er1
a848cd7e 40500 ac_status=$?
ac1cb8d3
VS
40501 grep -v '^ *+' conftest.er1 >conftest.err
40502 rm -f conftest.er1
40503 cat conftest.err >&5
a848cd7e
SC
40504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40505 (exit $ac_status); } &&
6ebeb4c7 40506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40508 (eval $ac_try) 2>&5
40509 ac_status=$?
40510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40511 (exit $ac_status); }; } &&
40512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40514 (eval $ac_try) 2>&5
40515 ac_status=$?
40516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40517 (exit $ac_status); }; }; then
40518 ac_header_compiler=yes
40519else
40520 echo "$as_me: failed program was:" >&5
40521sed 's/^/| /' conftest.$ac_ext >&5
40522
40523ac_header_compiler=no
40524fi
ac1cb8d3 40525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40526echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40527echo "${ECHO_T}$ac_header_compiler" >&6
40528
40529# Is the header present?
40530echo "$as_me:$LINENO: checking $ac_header presence" >&5
40531echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40532cat >conftest.$ac_ext <<_ACEOF
40533/* confdefs.h. */
40534_ACEOF
40535cat confdefs.h >>conftest.$ac_ext
40536cat >>conftest.$ac_ext <<_ACEOF
40537/* end confdefs.h. */
40538#include <$ac_header>
40539_ACEOF
40540if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40542 ac_status=$?
40543 grep -v '^ *+' conftest.er1 >conftest.err
40544 rm -f conftest.er1
40545 cat conftest.err >&5
40546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40547 (exit $ac_status); } >/dev/null; then
40548 if test -s conftest.err; then
40549 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 40550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
40551 else
40552 ac_cpp_err=
40553 fi
40554else
40555 ac_cpp_err=yes
40556fi
40557if test -z "$ac_cpp_err"; then
40558 ac_header_preproc=yes
40559else
40560 echo "$as_me: failed program was:" >&5
40561sed 's/^/| /' conftest.$ac_ext >&5
40562
40563 ac_header_preproc=no
40564fi
40565rm -f conftest.err conftest.$ac_ext
40566echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40567echo "${ECHO_T}$ac_header_preproc" >&6
40568
40569# So? What about this header?
ac1cb8d3
VS
40570case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40571 yes:no: )
a848cd7e
SC
40572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40573echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
40574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40575echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40576 ac_header_preproc=yes
a848cd7e 40577 ;;
ac1cb8d3 40578 no:yes:* )
a848cd7e
SC
40579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40580echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
40581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40582echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40584echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40586echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
40587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40588echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
40589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40590echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
40591 (
40592 cat <<\_ASBOX
ac1cb8d3
VS
40593## ----------------------------------------- ##
40594## Report this to wx-dev@lists.wxwidgets.org ##
40595## ----------------------------------------- ##
a848cd7e
SC
40596_ASBOX
40597 ) |
40598 sed "s/^/$as_me: WARNING: /" >&2
40599 ;;
40600esac
40601echo "$as_me:$LINENO: checking for $ac_header" >&5
40602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40603if eval "test \"\${$as_ac_Header+set}\" = set"; then
40604 echo $ECHO_N "(cached) $ECHO_C" >&6
40605else
ac1cb8d3 40606 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
40607fi
40608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40610
40611fi
40612if test `eval echo '${'$as_ac_Header'}'` = yes; then
40613 cat >>confdefs.h <<_ACEOF
40614#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40615_ACEOF
ee45c548 40616 wxUSE_JOYSTICK=yes
a848cd7e
SC
40617fi
40618
40619done
40620
ee45c548 40621 fi
4cb1d3da 40622
ee45c548
MW
40623 if test "$wxUSE_JOYSTICK" = "yes"; then
40624 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40625#define wxUSE_JOYSTICK 1
40626_ACEOF
40627
ee45c548
MW
40628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
40629 else
40630 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
40631echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
40632 fi
40633fi
40634
40635
40636
40637if test "$wxUSE_FONTMAP" = "yes" ; then
40638 cat >>confdefs.h <<\_ACEOF
40639#define wxUSE_FONTMAP 1
40640_ACEOF
40641
40642fi
40643
40644if test "$wxUSE_UNICODE" = "yes" ; then
40645 cat >>confdefs.h <<\_ACEOF
40646#define wxUSE_UNICODE 1
40647_ACEOF
40648
40649
40650 if test "$USE_WIN32" != 1; then
40651 wxUSE_UNICODE_MSLU=no
40652 fi
40653
40654 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
40655 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
40656echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
40657if test "${ac_cv_lib_unicows_main+set}" = set; then
40658 echo $ECHO_N "(cached) $ECHO_C" >&6
40659else
40660 ac_check_lib_save_LIBS=$LIBS
40661LIBS="-lunicows $LIBS"
40662cat >conftest.$ac_ext <<_ACEOF
40663/* confdefs.h. */
40664_ACEOF
40665cat confdefs.h >>conftest.$ac_ext
40666cat >>conftest.$ac_ext <<_ACEOF
40667/* end confdefs.h. */
40668
40669
40670int
40671main ()
40672{
40673main ();
40674 ;
40675 return 0;
40676}
40677_ACEOF
40678rm -f conftest.$ac_objext conftest$ac_exeext
40679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40680 (eval $ac_link) 2>conftest.er1
a848cd7e 40681 ac_status=$?
ac1cb8d3
VS
40682 grep -v '^ *+' conftest.er1 >conftest.err
40683 rm -f conftest.er1
40684 cat conftest.err >&5
a848cd7e
SC
40685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40686 (exit $ac_status); } &&
6ebeb4c7 40687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40689 (eval $ac_try) 2>&5
40690 ac_status=$?
40691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40692 (exit $ac_status); }; } &&
40693 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40695 (eval $ac_try) 2>&5
40696 ac_status=$?
40697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40698 (exit $ac_status); }; }; then
40699 ac_cv_lib_unicows_main=yes
40700else
40701 echo "$as_me: failed program was:" >&5
40702sed 's/^/| /' conftest.$ac_ext >&5
40703
40704ac_cv_lib_unicows_main=no
40705fi
ac1cb8d3
VS
40706rm -f conftest.err conftest.$ac_objext \
40707 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40708LIBS=$ac_check_lib_save_LIBS
40709fi
40710echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
40711echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
40712if test $ac_cv_lib_unicows_main = yes; then
40713
40714 cat >>confdefs.h <<\_ACEOF
40715#define wxUSE_UNICODE_MSLU 1
40716_ACEOF
40717
40718
40719else
40720
40721 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
40722 Applications will only run on Windows NT/2000/XP!" >&5
40723echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
40724 Applications will only run on Windows NT/2000/XP!" >&2;}
40725 wxUSE_UNICODE_MSLU=no
40726
40727fi
40728
40729 fi
40730fi
40731
40732if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
40733 cat >>confdefs.h <<\_ACEOF
40734#define wxUSE_EXPERIMENTAL_PRINTF 1
40735_ACEOF
40736
40737fi
40738
40739
40740if test "$wxUSE_POSTSCRIPT" = "yes" ; then
40741 cat >>confdefs.h <<\_ACEOF
40742#define wxUSE_POSTSCRIPT 1
40743_ACEOF
40744
40745fi
40746
40747cat >>confdefs.h <<\_ACEOF
40748#define wxUSE_AFM_FOR_POSTSCRIPT 1
40749_ACEOF
40750
40751
40752cat >>confdefs.h <<\_ACEOF
40753#define wxUSE_NORMALIZED_PS_FONTS 1
40754_ACEOF
40755
40756
40757
40758if test "$wxUSE_CONSTRAINTS" = "yes"; then
40759 cat >>confdefs.h <<\_ACEOF
40760#define wxUSE_CONSTRAINTS 1
40761_ACEOF
40762
40763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
40764fi
40765
8a7b1113
VZ
40766if test "$wxUSE_MDI" = "yes"; then
40767 cat >>confdefs.h <<\_ACEOF
40768#define wxUSE_MDI 1
40769_ACEOF
40770
40771
40772 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
40773 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40774#define wxUSE_MDI_ARCHITECTURE 1
40775_ACEOF
40776
8a7b1113
VZ
40777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
40778 fi
a848cd7e
SC
40779fi
40780
40781if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
40782 cat >>confdefs.h <<\_ACEOF
40783#define wxUSE_DOC_VIEW_ARCHITECTURE 1
40784_ACEOF
40785
40786 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
40787 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
40788 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
40789 fi
40790fi
40791
40792if test "$wxUSE_HELP" = "yes"; then
40793 cat >>confdefs.h <<\_ACEOF
40794#define wxUSE_HELP 1
40795_ACEOF
40796
40797 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
40798
40799 if test "$wxUSE_MSW" = 1; then
40800 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
40801 cat >>confdefs.h <<\_ACEOF
40802#define wxUSE_MS_HTML_HELP 1
40803_ACEOF
40804
40805 fi
40806 fi
40807
40808 if test "$wxUSE_WXHTML_HELP" = "yes"; then
40809 if test "$wxUSE_HTML" = "yes"; then
40810 cat >>confdefs.h <<\_ACEOF
40811#define wxUSE_WXHTML_HELP 1
40812_ACEOF
40813
40814 else
40815 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
40816echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
40817 wxUSE_WXHTML_HELP=no
40818 fi
40819 fi
40820fi
40821
40822if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40823 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40824 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
40825echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
40826 else
40827 cat >>confdefs.h <<\_ACEOF
40828#define wxUSE_PRINTING_ARCHITECTURE 1
40829_ACEOF
40830
40831 fi
40832 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
40833fi
40834
40835if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
40836 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
40837echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
40838 { (exit 1); exit 1; }; }
40839fi
40840
40841
efdf6afe
VZ
40842if test "$wxUSE_METAFILE" = "yes"; then
40843 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
40844 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
40845echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
40846 wxUSE_METAFILE=no
40847 fi
40848fi
40849
40850
a848cd7e
SC
40851if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
40852 -o "$wxUSE_CLIPBOARD" = "yes" \
40853 -o "$wxUSE_OLE" = "yes" \
40854 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
40855
40856for ac_header in ole2.h
40857do
40858as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40859if eval "test \"\${$as_ac_Header+set}\" = set"; then
40860 echo "$as_me:$LINENO: checking for $ac_header" >&5
40861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40862if eval "test \"\${$as_ac_Header+set}\" = set"; then
40863 echo $ECHO_N "(cached) $ECHO_C" >&6
40864fi
40865echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40866echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40867else
40868 # Is the header compilable?
40869echo "$as_me:$LINENO: checking $ac_header usability" >&5
40870echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40871cat >conftest.$ac_ext <<_ACEOF
40872/* confdefs.h. */
40873_ACEOF
40874cat confdefs.h >>conftest.$ac_ext
40875cat >>conftest.$ac_ext <<_ACEOF
40876/* end confdefs.h. */
40877$ac_includes_default
40878#include <$ac_header>
40879_ACEOF
40880rm -f conftest.$ac_objext
40881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40882 (eval $ac_compile) 2>conftest.er1
a848cd7e 40883 ac_status=$?
ac1cb8d3
VS
40884 grep -v '^ *+' conftest.er1 >conftest.err
40885 rm -f conftest.er1
40886 cat conftest.err >&5
a848cd7e
SC
40887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40888 (exit $ac_status); } &&
6ebeb4c7 40889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40891 (eval $ac_try) 2>&5
40892 ac_status=$?
40893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40894 (exit $ac_status); }; } &&
40895 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40897 (eval $ac_try) 2>&5
40898 ac_status=$?
40899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40900 (exit $ac_status); }; }; then
40901 ac_header_compiler=yes
40902else
40903 echo "$as_me: failed program was:" >&5
40904sed 's/^/| /' conftest.$ac_ext >&5
40905
40906ac_header_compiler=no
40907fi
ac1cb8d3 40908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40909echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40910echo "${ECHO_T}$ac_header_compiler" >&6
40911
40912# Is the header present?
40913echo "$as_me:$LINENO: checking $ac_header presence" >&5
40914echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40915cat >conftest.$ac_ext <<_ACEOF
40916/* confdefs.h. */
40917_ACEOF
40918cat confdefs.h >>conftest.$ac_ext
40919cat >>conftest.$ac_ext <<_ACEOF
40920/* end confdefs.h. */
40921#include <$ac_header>
40922_ACEOF
40923if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40925 ac_status=$?
40926 grep -v '^ *+' conftest.er1 >conftest.err
40927 rm -f conftest.er1
40928 cat conftest.err >&5
40929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40930 (exit $ac_status); } >/dev/null; then
40931 if test -s conftest.err; then
40932 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 40933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
40934 else
40935 ac_cpp_err=
40936 fi
40937else
40938 ac_cpp_err=yes
40939fi
40940if test -z "$ac_cpp_err"; then
40941 ac_header_preproc=yes
40942else
40943 echo "$as_me: failed program was:" >&5
40944sed 's/^/| /' conftest.$ac_ext >&5
40945
40946 ac_header_preproc=no
40947fi
40948rm -f conftest.err conftest.$ac_ext
40949echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40950echo "${ECHO_T}$ac_header_preproc" >&6
40951
40952# So? What about this header?
ac1cb8d3
VS
40953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40954 yes:no: )
a848cd7e
SC
40955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40956echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
40957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40958echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40959 ac_header_preproc=yes
a848cd7e 40960 ;;
ac1cb8d3 40961 no:yes:* )
a848cd7e
SC
40962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40963echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
40964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40965echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40967echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40969echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
40970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40971echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
40972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40973echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
40974 (
40975 cat <<\_ASBOX
ac1cb8d3
VS
40976## ----------------------------------------- ##
40977## Report this to wx-dev@lists.wxwidgets.org ##
40978## ----------------------------------------- ##
a848cd7e
SC
40979_ASBOX
40980 ) |
40981 sed "s/^/$as_me: WARNING: /" >&2
40982 ;;
40983esac
40984echo "$as_me:$LINENO: checking for $ac_header" >&5
40985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40986if eval "test \"\${$as_ac_Header+set}\" = set"; then
40987 echo $ECHO_N "(cached) $ECHO_C" >&6
40988else
ac1cb8d3 40989 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
40990fi
40991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40992echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40993
40994fi
40995if test `eval echo '${'$as_ac_Header'}'` = yes; then
40996 cat >>confdefs.h <<_ACEOF
40997#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40998_ACEOF
40999
41000fi
41001
41002done
41003
41004
41005 if test "$ac_cv_header_ole2_h" = "yes" ; then
41006 if test "$GCC" = yes ; then
41007
41008
41009 ac_ext=cc
41010ac_cpp='$CXXCPP $CPPFLAGS'
41011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41014
41015
41016 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
41017echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
41018 cat >conftest.$ac_ext <<_ACEOF
41019/* confdefs.h. */
41020_ACEOF
41021cat confdefs.h >>conftest.$ac_ext
41022cat >>conftest.$ac_ext <<_ACEOF
41023/* end confdefs.h. */
41024#include <windows.h>
41025 #include <ole2.h>
41026int
41027main ()
41028{
41029
41030 ;
41031 return 0;
41032}
41033_ACEOF
41034rm -f conftest.$ac_objext
41035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41036 (eval $ac_compile) 2>conftest.er1
a848cd7e 41037 ac_status=$?
ac1cb8d3
VS
41038 grep -v '^ *+' conftest.er1 >conftest.err
41039 rm -f conftest.er1
41040 cat conftest.err >&5
a848cd7e
SC
41041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41042 (exit $ac_status); } &&
6ebeb4c7 41043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41045 (eval $ac_try) 2>&5
41046 ac_status=$?
41047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41048 (exit $ac_status); }; } &&
41049 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41051 (eval $ac_try) 2>&5
41052 ac_status=$?
41053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41054 (exit $ac_status); }; }; then
41055 echo "$as_me:$LINENO: result: no" >&5
41056echo "${ECHO_T}no" >&6
41057else
41058 echo "$as_me: failed program was:" >&5
41059sed 's/^/| /' conftest.$ac_ext >&5
41060
41061echo "$as_me:$LINENO: result: yes" >&5
41062echo "${ECHO_T}yes" >&6
41063 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
41064fi
ac1cb8d3 41065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41066 ac_ext=c
41067ac_cpp='$CPP $CPPFLAGS'
41068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41070ac_compiler_gnu=$ac_cv_c_compiler_gnu
41071
a848cd7e
SC
41072 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
41073 if test "$wxUSE_OLE" = "yes" ; then
41074 cat >>confdefs.h <<\_ACEOF
41075#define wxUSE_OLE 1
41076_ACEOF
41077
0b78747f 41078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
41079 fi
41080 fi
41081
41082 if test "$wxUSE_DATAOBJ" = "yes" ; then
41083 cat >>confdefs.h <<\_ACEOF
41084#define wxUSE_DATAOBJ 1
41085_ACEOF
41086
41087 fi
41088 else
41089 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
41090echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
41091
41092 wxUSE_CLIPBOARD=no
41093 wxUSE_DRAG_AND_DROP=no
41094 wxUSE_DATAOBJ=no
41095 wxUSE_OLE=no
41096 fi
41097
41098 if test "$wxUSE_METAFILE" = "yes"; then
41099 cat >>confdefs.h <<\_ACEOF
41100#define wxUSE_METAFILE 1
41101_ACEOF
41102
41103
41104 cat >>confdefs.h <<\_ACEOF
41105#define wxUSE_ENH_METAFILE 1
41106_ACEOF
41107
41108 fi
41109fi
41110
41111if test "$wxUSE_IPC" = "yes"; then
0b78747f 41112 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
41113 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
41114echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 41115 wxUSE_IPC=no
a848cd7e
SC
41116 fi
41117
0b78747f
MW
41118 if test "$wxUSE_IPC" = "yes"; then
41119 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41120#define wxUSE_IPC 1
41121_ACEOF
41122
0b78747f
MW
41123 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
41124 fi
a848cd7e
SC
41125fi
41126
eb730a0c 41127if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
41128 if test "$wxUSE_MGL" = 1; then
41129 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
41130echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
41131 wxUSE_DATAOBJ=no
41132 else
41133 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
41134#define wxUSE_DATAOBJ 1
41135_ACEOF
41136
2113bc77 41137 fi
eb730a0c
JS
41138else
41139 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
41140echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
41141 wxUSE_CLIPBOARD=no
41142 wxUSE_DRAG_AND_DROP=no
41143fi
41144
a848cd7e
SC
41145if test "$wxUSE_CLIPBOARD" = "yes"; then
41146 if test "$wxUSE_MGL" = 1; then
41147 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
41148echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
41149 wxUSE_CLIPBOARD=no
41150 fi
41151
41152 if test "$wxUSE_CLIPBOARD" = "yes"; then
41153 cat >>confdefs.h <<\_ACEOF
41154#define wxUSE_CLIPBOARD 1
41155_ACEOF
41156
a848cd7e
SC
41157 fi
41158fi
41159
41160if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
41161 if test "$wxUSE_GTK" = 1; then
41162 if test "$WXGTK12" != 1; then
41163 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
41164echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
41165 wxUSE_DRAG_AND_DROP=no
41166 fi
41167 fi
41168
41169 if test "$wxUSE_MOTIF" = 1; then
41170 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
41171echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
41172 wxUSE_DRAG_AND_DROP=no
41173 fi
41174
41175 if test "$wxUSE_X11" = 1; then
41176 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
41177echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
41178 wxUSE_DRAG_AND_DROP=no
41179 fi
41180
41181 if test "$wxUSE_MGL" = 1; then
41182 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
41183echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
41184 wxUSE_DRAG_AND_DROP=no
41185 fi
41186
41187 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
41188 cat >>confdefs.h <<\_ACEOF
41189#define wxUSE_DRAG_AND_DROP 1
41190_ACEOF
41191
41192 fi
41193
41194fi
41195
41196if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
41197 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
41198fi
41199
41200if test "$wxUSE_SPLINES" = "yes" ; then
41201 cat >>confdefs.h <<\_ACEOF
41202#define wxUSE_SPLINES 1
41203_ACEOF
41204
41205fi
41206
fbe2ca43
SN
41207if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
41208 cat >>confdefs.h <<\_ACEOF
41209#define wxUSE_MOUSEWHEEL 1
41210_ACEOF
41211
41212fi
41213
a848cd7e
SC
41214
41215USES_CONTROLS=0
41216if test "$wxUSE_CONTROLS" = "yes"; then
41217 USES_CONTROLS=1
41218fi
41219
41220if test "$wxUSE_ACCEL" = "yes"; then
41221 cat >>confdefs.h <<\_ACEOF
41222#define wxUSE_ACCEL 1
41223_ACEOF
41224
41225 USES_CONTROLS=1
41226fi
41227
41228if test "$wxUSE_BUTTON" = "yes"; then
41229 cat >>confdefs.h <<\_ACEOF
41230#define wxUSE_BUTTON 1
41231_ACEOF
41232
41233 USES_CONTROLS=1
41234fi
41235
41236if test "$wxUSE_BMPBUTTON" = "yes"; then
41237 cat >>confdefs.h <<\_ACEOF
41238#define wxUSE_BMPBUTTON 1
41239_ACEOF
41240
41241 USES_CONTROLS=1
41242fi
41243
41244if test "$wxUSE_CALCTRL" = "yes"; then
41245 cat >>confdefs.h <<\_ACEOF
41246#define wxUSE_CALENDARCTRL 1
41247_ACEOF
41248
41249 USES_CONTROLS=1
41250 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
41251fi
41252
41253if test "$wxUSE_CARET" = "yes"; then
41254 cat >>confdefs.h <<\_ACEOF
41255#define wxUSE_CARET 1
41256_ACEOF
41257
41258 USES_CONTROLS=1
41259 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
41260fi
41261
41262if test "$wxUSE_COMBOBOX" = "yes"; then
41263 cat >>confdefs.h <<\_ACEOF
41264#define wxUSE_COMBOBOX 1
41265_ACEOF
41266
41267 USES_CONTROLS=1
41268fi
41269
41270if test "$wxUSE_CHOICE" = "yes"; then
41271 cat >>confdefs.h <<\_ACEOF
41272#define wxUSE_CHOICE 1
41273_ACEOF
41274
41275 USES_CONTROLS=1
41276fi
41277
92bbdbcd
WS
41278if test "$wxUSE_CHOICEBOOK" = "yes"; then
41279 cat >>confdefs.h <<\_ACEOF
41280#define wxUSE_CHOICEBOOK 1
41281_ACEOF
41282
41283 USES_CONTROLS=1
41284fi
41285
a848cd7e
SC
41286if test "$wxUSE_CHECKBOX" = "yes"; then
41287 cat >>confdefs.h <<\_ACEOF
41288#define wxUSE_CHECKBOX 1
41289_ACEOF
41290
41291 USES_CONTROLS=1
41292fi
41293
41294if test "$wxUSE_CHECKLST" = "yes"; then
41295 cat >>confdefs.h <<\_ACEOF
41296#define wxUSE_CHECKLISTBOX 1
41297_ACEOF
41298
41299 USES_CONTROLS=1
41300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
41301fi
41302
da98e9be
VZ
41303if test "$wxUSE_DATEPICKCTRL" = "yes"; then
41304 cat >>confdefs.h <<\_ACEOF
41305#define wxUSE_DATEPICKCTRL 1
41306_ACEOF
41307
41308 USES_CONTROLS=1
41309fi
41310
a848cd7e
SC
41311if test "$wxUSE_DISPLAY" = "yes"; then
41312 cat >>confdefs.h <<\_ACEOF
41313#define wxUSE_DISPLAY 1
41314_ACEOF
41315
0b78747f 41316 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
41317fi
41318
41319if test "$wxUSE_GAUGE" = "yes"; then
41320 cat >>confdefs.h <<\_ACEOF
41321#define wxUSE_GAUGE 1
41322_ACEOF
41323
41324 USES_CONTROLS=1
41325fi
41326
41327if test "$wxUSE_GRID" = "yes"; then
41328 cat >>confdefs.h <<\_ACEOF
41329#define wxUSE_GRID 1
41330_ACEOF
41331
41332 USES_CONTROLS=1
41333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
41334fi
41335
41336if test "$wxUSE_IMAGLIST" = "yes"; then
41337 cat >>confdefs.h <<\_ACEOF
41338#define wxUSE_IMAGLIST 1
41339_ACEOF
41340
41341fi
41342
41343if test "$wxUSE_LISTBOOK" = "yes"; then
41344 cat >>confdefs.h <<\_ACEOF
41345#define wxUSE_LISTBOOK 1
41346_ACEOF
41347
41348 USES_CONTROLS=1
41349fi
41350
41351if test "$wxUSE_LISTBOX" = "yes"; then
41352 cat >>confdefs.h <<\_ACEOF
41353#define wxUSE_LISTBOX 1
41354_ACEOF
41355
41356 USES_CONTROLS=1
0b78747f 41357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
41358fi
41359
41360if test "$wxUSE_LISTCTRL" = "yes"; then
41361 if test "$wxUSE_IMAGLIST" = "yes"; then
41362 cat >>confdefs.h <<\_ACEOF
41363#define wxUSE_LISTCTRL 1
41364_ACEOF
41365
41366 USES_CONTROLS=1
41367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
41368 else
41369 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
41370echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
41371 fi
41372fi
41373
41374if test "$wxUSE_NOTEBOOK" = "yes"; then
41375 cat >>confdefs.h <<\_ACEOF
41376#define wxUSE_NOTEBOOK 1
41377_ACEOF
41378
41379 USES_CONTROLS=1
41380 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
41381fi
41382
41383
41384if test "$wxUSE_RADIOBOX" = "yes"; then
41385 cat >>confdefs.h <<\_ACEOF
41386#define wxUSE_RADIOBOX 1
41387_ACEOF
41388
41389 USES_CONTROLS=1
41390fi
41391
41392if test "$wxUSE_RADIOBTN" = "yes"; then
41393 cat >>confdefs.h <<\_ACEOF
41394#define wxUSE_RADIOBTN 1
41395_ACEOF
41396
41397 USES_CONTROLS=1
41398fi
41399
41400if test "$wxUSE_SASH" = "yes"; then
41401 cat >>confdefs.h <<\_ACEOF
41402#define wxUSE_SASH 1
41403_ACEOF
41404
41405 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
41406fi
41407
41408if test "$wxUSE_SCROLLBAR" = "yes"; then
41409 cat >>confdefs.h <<\_ACEOF
41410#define wxUSE_SCROLLBAR 1
41411_ACEOF
41412
41413 USES_CONTROLS=1
41414 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
41415fi
41416
41417if test "$wxUSE_SLIDER" = "yes"; then
41418 cat >>confdefs.h <<\_ACEOF
41419#define wxUSE_SLIDER 1
41420_ACEOF
41421
41422 USES_CONTROLS=1
41423fi
41424
41425if test "$wxUSE_SPINBTN" = "yes"; then
41426 cat >>confdefs.h <<\_ACEOF
41427#define wxUSE_SPINBTN 1
41428_ACEOF
41429
41430 USES_CONTROLS=1
41431fi
41432
41433if test "$wxUSE_SPINCTRL" = "yes"; then
41434 cat >>confdefs.h <<\_ACEOF
41435#define wxUSE_SPINCTRL 1
41436_ACEOF
41437
41438 USES_CONTROLS=1
41439fi
41440
41441if test "$wxUSE_SPLITTER" = "yes"; then
41442 cat >>confdefs.h <<\_ACEOF
41443#define wxUSE_SPLITTER 1
41444_ACEOF
41445
41446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
41447fi
41448
41449if test "$wxUSE_STATBMP" = "yes"; then
41450 cat >>confdefs.h <<\_ACEOF
41451#define wxUSE_STATBMP 1
41452_ACEOF
41453
41454 USES_CONTROLS=1
41455fi
41456
41457if test "$wxUSE_STATBOX" = "yes"; then
41458 cat >>confdefs.h <<\_ACEOF
41459#define wxUSE_STATBOX 1
41460_ACEOF
41461
41462 USES_CONTROLS=1
41463fi
41464
41465if test "$wxUSE_STATTEXT" = "yes"; then
41466 cat >>confdefs.h <<\_ACEOF
41467#define wxUSE_STATTEXT 1
41468_ACEOF
41469
41470 USES_CONTROLS=1
41471fi
41472
41473if test "$wxUSE_STATLINE" = "yes"; then
41474 cat >>confdefs.h <<\_ACEOF
41475#define wxUSE_STATLINE 1
41476_ACEOF
41477
41478 USES_CONTROLS=1
41479fi
41480
41481if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
41482 cat >>confdefs.h <<\_ACEOF
41483#define wxUSE_NATIVE_STATUSBAR 1
41484_ACEOF
41485
a848cd7e
SC
41486 cat >>confdefs.h <<\_ACEOF
41487#define wxUSE_STATUSBAR 1
41488_ACEOF
41489
41490 USES_CONTROLS=1
41491
41492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
41493fi
41494
41495if test "$wxUSE_TABDIALOG" = "yes"; then
41496 cat >>confdefs.h <<\_ACEOF
41497#define wxUSE_TAB_DIALOG 1
41498_ACEOF
41499
a848cd7e
SC
41500fi
41501
41502if test "$wxUSE_TEXTCTRL" = "yes"; then
41503 cat >>confdefs.h <<\_ACEOF
41504#define wxUSE_TEXTCTRL 1
41505_ACEOF
41506
41507 USES_CONTROLS=1
41508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
41509fi
41510
41511if test "$wxUSE_TOGGLEBTN" = "yes"; then
41512 if test "$wxUSE_COCOA" = 1 ; then
41513 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
41514echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
41515 wxUSE_TOGGLEBTN=no
41516 fi
41517 if test "$wxUSE_UNIVERSAL" = "yes"; then
41518 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
41519echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
41520 wxUSE_TOGGLEBTN=no
41521 fi
41522
41523 if test "$wxUSE_TOGGLEBTN" = "yes"; then
41524 cat >>confdefs.h <<\_ACEOF
41525#define wxUSE_TOGGLEBTN 1
41526_ACEOF
41527
41528 USES_CONTROLS=1
41529 fi
41530fi
41531
41532if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
41533 cat >>confdefs.h <<\_ACEOF
41534#define wxUSE_TOOLBAR_SIMPLE 1
41535_ACEOF
41536
41537 wxUSE_TOOLBAR="yes"
41538 USES_CONTROLS=1
41539fi
41540
41541if test "$wxUSE_TOOLBAR" = "yes"; then
41542 cat >>confdefs.h <<\_ACEOF
41543#define wxUSE_TOOLBAR 1
41544_ACEOF
41545
41546 USES_CONTROLS=1
41547
41548 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
41549 wxUSE_TOOLBAR_NATIVE="yes"
41550 fi
41551
41552 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
41553 cat >>confdefs.h <<\_ACEOF
41554#define wxUSE_TOOLBAR_NATIVE 1
41555_ACEOF
41556
41557 USES_CONTROLS=1
41558 fi
41559
41560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
41561fi
41562
41563if test "$wxUSE_TOOLTIPS" = "yes"; then
41564 if test "$wxUSE_MOTIF" = 1; then
41565 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
41566echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
41567 else
41568 if test "$wxUSE_UNIVERSAL" = "yes"; then
41569 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
41570echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
41571 else
41572 cat >>confdefs.h <<\_ACEOF
41573#define wxUSE_TOOLTIPS 1
41574_ACEOF
41575
41576 fi
41577 fi
41578fi
41579
41580if test "$wxUSE_TREECTRL" = "yes"; then
41581 if test "$wxUSE_IMAGLIST" = "yes"; then
41582 cat >>confdefs.h <<\_ACEOF
41583#define wxUSE_TREECTRL 1
41584_ACEOF
41585
41586 USES_CONTROLS=1
41587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
41588 else
41589 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
41590echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
41591 fi
41592fi
41593
41594if test "$wxUSE_POPUPWIN" = "yes"; then
41595 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
41596 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
41597echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
41598 else
41599 if test "$wxUSE_PM" = 1; then
41600 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
41601echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
41602 else
41603 cat >>confdefs.h <<\_ACEOF
41604#define wxUSE_POPUPWIN 1
41605_ACEOF
41606
0b78747f 41607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
41608
41609 USES_CONTROLS=1
41610 fi
41611 fi
41612fi
41613
0dcd06dd 41614if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
41615 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
41616 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
41617echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
41618 else
41619 cat >>confdefs.h <<\_ACEOF
41620#define wxUSE_DIALUP_MANAGER 1
41621_ACEOF
41622
41623 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
41624 fi
41625fi
41626
a848cd7e
SC
41627if test "$wxUSE_TIPWINDOW" = "yes"; then
41628 if test "$wxUSE_PM" = 1; then
41629 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
41630echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
41631 else
41632 cat >>confdefs.h <<\_ACEOF
41633#define wxUSE_TIPWINDOW 1
41634_ACEOF
41635
41636 fi
41637fi
41638
41639if test "$USES_CONTROLS" = 1; then
41640 cat >>confdefs.h <<\_ACEOF
41641#define wxUSE_CONTROLS 1
41642_ACEOF
41643
41644fi
41645
41646
41647if test "$wxUSE_ACCESSIBILITY" = "yes"; then
41648 cat >>confdefs.h <<\_ACEOF
41649#define wxUSE_ACCESSIBILITY 1
41650_ACEOF
41651
41652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
41653fi
41654
38b4a946
VZ
41655if test "$wxUSE_DC_CACHEING" = "yes"; then
41656 cat >>confdefs.h <<\_ACEOF
41657#define wxUSE_DC_CACHEING 1
41658_ACEOF
41659
41660fi
41661
a848cd7e
SC
41662if test "$wxUSE_DRAGIMAGE" = "yes"; then
41663 cat >>confdefs.h <<\_ACEOF
41664#define wxUSE_DRAGIMAGE 1
41665_ACEOF
41666
41667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
41668fi
41669
41670if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
41671 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41672 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
41673echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
41674 else
41675 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41676#define wxUSE_EXCEPTIONS 1
41677_ACEOF
41678
07bea8f0
VS
41679 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
41680 fi
a848cd7e
SC
41681fi
41682
41683USE_HTML=0
41684if test "$wxUSE_HTML" = "yes"; then
41685 cat >>confdefs.h <<\_ACEOF
41686#define wxUSE_HTML 1
41687_ACEOF
41688
41689 USE_HTML=1
41690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
41691 if test "$wxUSE_MAC" = 1; then
41692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
41693 fi
a848cd7e 41694fi
646b6ec1 41695if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 41696 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
41697 old_CPPFLAGS="$CPPFLAGS"
41698 CPPFLAGS="$CPPFLAGS -x objective-c++"
41699 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
41700echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
41701if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
41702 echo $ECHO_N "(cached) $ECHO_C" >&6
41703else
41704 cat >conftest.$ac_ext <<_ACEOF
41705/* confdefs.h. */
41706_ACEOF
41707cat confdefs.h >>conftest.$ac_ext
41708cat >>conftest.$ac_ext <<_ACEOF
41709/* end confdefs.h. */
41710#include <Carbon/Carbon.h>
41711
41712#include <WebKit/HIWebView.h>
41713_ACEOF
41714rm -f conftest.$ac_objext
41715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41716 (eval $ac_compile) 2>conftest.er1
41717 ac_status=$?
41718 grep -v '^ *+' conftest.er1 >conftest.err
41719 rm -f conftest.er1
41720 cat conftest.err >&5
41721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41722 (exit $ac_status); } &&
6ebeb4c7 41723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
41724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41725 (eval $ac_try) 2>&5
41726 ac_status=$?
41727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41728 (exit $ac_status); }; } &&
41729 { ac_try='test -s conftest.$ac_objext'
41730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41731 (eval $ac_try) 2>&5
41732 ac_status=$?
41733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41734 (exit $ac_status); }; }; then
41735 ac_cv_header_WebKit_HIWebView_h=yes
41736else
41737 echo "$as_me: failed program was:" >&5
41738sed 's/^/| /' conftest.$ac_ext >&5
41739
41740ac_cv_header_WebKit_HIWebView_h=no
41741fi
41742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41743fi
41744echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
41745echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
41746if test $ac_cv_header_WebKit_HIWebView_h = yes; then
41747
41748 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
41749#define wxUSE_WEBKIT 1
41750_ACEOF
41751
07bea8f0
VS
41752 WEBKIT_LINK="-framework WebKit"
41753
41754else
41755
41756 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
41757echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
41758 wxUSE_WEBKIT=no
41759
646b6ec1
VS
41760fi
41761
07bea8f0
VS
41762
41763 CPPFLAGS="$old_CPPFLAGS"
41764 elif test "$wxUSE_COCOA" = 1; then
41765 cat >>confdefs.h <<\_ACEOF
41766#define wxUSE_WEBKIT 1
41767_ACEOF
41768
41769 else
41770 wxUSE_WEBKIT=no
41771 fi
41772fi
41773
9a8f0513
VS
41774USE_XRC=0
41775if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
41776 if test "$wxUSE_XML" != "yes"; then
41777 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
41778echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
41779 wxUSE_XRC=no
41780 else
41781 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
41782#define wxUSE_XRC 1
41783_ACEOF
41784
d2ebf0b7
VS
41785 USE_XRC=1
41786 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
41787 fi
9a8f0513 41788fi
07bea8f0 41789
a848cd7e
SC
41790if test "$wxUSE_MENUS" = "yes"; then
41791 cat >>confdefs.h <<\_ACEOF
41792#define wxUSE_MENUS 1
41793_ACEOF
41794
41795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
41796fi
41797
41798if test "$wxUSE_METAFILE" = "yes"; then
41799 cat >>confdefs.h <<\_ACEOF
41800#define wxUSE_METAFILE 1
41801_ACEOF
41802
41803fi
41804
41805if test "$wxUSE_MIMETYPE" = "yes"; then
41806 cat >>confdefs.h <<\_ACEOF
41807#define wxUSE_MIMETYPE 1
41808_ACEOF
41809
41810fi
41811
41812if test "$wxUSE_MINIFRAME" = "yes"; then
41813 cat >>confdefs.h <<\_ACEOF
41814#define wxUSE_MINIFRAME 1
41815_ACEOF
41816
41817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
41818fi
41819
41820if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
41821 cat >>confdefs.h <<\_ACEOF
41822#define wxUSE_SYSTEM_OPTIONS 1
41823_ACEOF
41824
41825 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 41826 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
41827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
41828 fi
41829fi
41830
41831
41832if test "$wxUSE_VALIDATORS" = "yes"; then
41833 cat >>confdefs.h <<\_ACEOF
41834#define wxUSE_VALIDATORS 1
41835_ACEOF
41836
41837 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
41838fi
41839
41840if test "$wxUSE_PALETTE" = "yes" ; then
41841 cat >>confdefs.h <<\_ACEOF
41842#define wxUSE_PALETTE 1
41843_ACEOF
41844
41845fi
41846
41847if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
41848 LIBS=" -lunicows $LIBS"
41849fi
41850
41851
41852if test "$wxUSE_IMAGE" = "yes" ; then
41853 cat >>confdefs.h <<\_ACEOF
41854#define wxUSE_IMAGE 1
41855_ACEOF
41856
41857
41858 if test "$wxUSE_GIF" = "yes" ; then
41859 cat >>confdefs.h <<\_ACEOF
41860#define wxUSE_GIF 1
41861_ACEOF
41862
41863 fi
41864
41865 if test "$wxUSE_PCX" = "yes" ; then
41866 cat >>confdefs.h <<\_ACEOF
41867#define wxUSE_PCX 1
41868_ACEOF
41869
41870 fi
41871
41872 if test "$wxUSE_IFF" = "yes" ; then
41873 cat >>confdefs.h <<\_ACEOF
41874#define wxUSE_IFF 1
41875_ACEOF
41876
41877 fi
41878
41879 if test "$wxUSE_PNM" = "yes" ; then
41880 cat >>confdefs.h <<\_ACEOF
41881#define wxUSE_PNM 1
41882_ACEOF
41883
41884 fi
41885
41886 if test "$wxUSE_XPM" = "yes" ; then
41887 cat >>confdefs.h <<\_ACEOF
41888#define wxUSE_XPM 1
41889_ACEOF
41890
41891 fi
41892
41893 if test "$wxUSE_ICO_CUR" = "yes" ; then
41894 cat >>confdefs.h <<\_ACEOF
41895#define wxUSE_ICO_CUR 1
41896_ACEOF
41897
41898 fi
41899fi
41900
41901
41902if test "$wxUSE_CHOICEDLG" = "yes"; then
41903 cat >>confdefs.h <<\_ACEOF
41904#define wxUSE_CHOICEDLG 1
41905_ACEOF
41906
41907fi
41908
41909if test "$wxUSE_COLOURDLG" = "yes"; then
41910 cat >>confdefs.h <<\_ACEOF
41911#define wxUSE_COLOURDLG 1
41912_ACEOF
41913
41914fi
41915
41916if test "$wxUSE_FILEDLG" = "yes"; then
41917 cat >>confdefs.h <<\_ACEOF
41918#define wxUSE_FILEDLG 1
41919_ACEOF
41920
41921fi
41922
41923if test "$wxUSE_FINDREPLDLG" = "yes"; then
41924 cat >>confdefs.h <<\_ACEOF
41925#define wxUSE_FINDREPLDLG 1
41926_ACEOF
41927
41928fi
41929
41930if test "$wxUSE_FONTDLG" = "yes"; then
41931 cat >>confdefs.h <<\_ACEOF
41932#define wxUSE_FONTDLG 1
41933_ACEOF
41934
41935fi
41936
41937if test "$wxUSE_DIRDLG" = "yes"; then
41938 if test "$wxUSE_TREECTRL" != "yes"; then
41939 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
41940echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
41941 else
41942 cat >>confdefs.h <<\_ACEOF
41943#define wxUSE_DIRDLG 1
41944_ACEOF
41945
41946 fi
41947fi
41948
41949if test "$wxUSE_MSGDLG" = "yes"; then
41950 cat >>confdefs.h <<\_ACEOF
41951#define wxUSE_MSGDLG 1
41952_ACEOF
41953
41954fi
41955
41956if test "$wxUSE_NUMBERDLG" = "yes"; then
41957 cat >>confdefs.h <<\_ACEOF
41958#define wxUSE_NUMBERDLG 1
41959_ACEOF
41960
41961fi
41962
41963if test "$wxUSE_PROGRESSDLG" = "yes"; then
41964 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41965 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
41966echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
41967 else
41968 cat >>confdefs.h <<\_ACEOF
41969#define wxUSE_PROGRESSDLG 1
41970_ACEOF
41971
41972 fi
41973fi
41974
41975if test "$wxUSE_SPLASH" = "yes"; then
41976 cat >>confdefs.h <<\_ACEOF
41977#define wxUSE_SPLASH 1
41978_ACEOF
41979
2057db16 41980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
41981fi
41982
41983if test "$wxUSE_STARTUP_TIPS" = "yes"; then
41984 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41985 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
41986echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
41987 else
41988 cat >>confdefs.h <<\_ACEOF
41989#define wxUSE_STARTUP_TIPS 1
41990_ACEOF
41991
41992 fi
41993fi
41994
41995if test "$wxUSE_TEXTDLG" = "yes"; then
41996 cat >>confdefs.h <<\_ACEOF
41997#define wxUSE_TEXTDLG 1
41998_ACEOF
41999
42000fi
42001
42002if test "$wxUSE_WIZARDDLG" = "yes"; then
42003 cat >>confdefs.h <<\_ACEOF
42004#define wxUSE_WIZARDDLG 1
42005_ACEOF
42006
42007 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
42008fi
42009
42010
ce756cb0 42011if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
42012 if test "$wxUSE_GTK" = 1; then
42013 wxUSE_GSTREAMER="yes"
42014
ce756cb0 42015
dae87f93 42016 succeeded=no
ce756cb0 42017
dae87f93
RN
42018 if test -z "$PKG_CONFIG"; then
42019 # Extract the first word of "pkg-config", so it can be a program name with args.
42020set dummy pkg-config; ac_word=$2
42021echo "$as_me:$LINENO: checking for $ac_word" >&5
42022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42023if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42024 echo $ECHO_N "(cached) $ECHO_C" >&6
42025else
42026 case $PKG_CONFIG in
42027 [\\/]* | ?:[\\/]*)
42028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42029 ;;
42030 *)
42031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42032for as_dir in $PATH
42033do
42034 IFS=$as_save_IFS
42035 test -z "$as_dir" && as_dir=.
42036 for ac_exec_ext in '' $ac_executable_extensions; do
42037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42038 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42040 break 2
42041 fi
42042done
42043done
42044
42045 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
42046 ;;
42047esac
42048fi
42049PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42050
42051if test -n "$PKG_CONFIG"; then
42052 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42053echo "${ECHO_T}$PKG_CONFIG" >&6
42054else
42055 echo "$as_me:$LINENO: result: no" >&5
42056echo "${ECHO_T}no" >&6
42057fi
42058
42059 fi
42060
42061 if test "$PKG_CONFIG" = "no" ; then
42062 echo "*** The pkg-config script could not be found. Make sure it is"
42063 echo "*** in your path, or set the PKG_CONFIG environment variable"
42064 echo "*** to the full path to pkg-config."
42065 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
42066 else
42067 PKG_CONFIG_MIN_VERSION=0.9.0
42068 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
42069 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
42070echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
42071
42072 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
42073 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42074echo "${ECHO_T}yes" >&6
dae87f93 42075 succeeded=yes
ce756cb0 42076
dae87f93
RN
42077 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
42078echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
42079 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
42080 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
42081echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
42082
42083 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
42084echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
42085 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
42086 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
42087echo "${ECHO_T}$GSTREAMER_LIBS" >&6
42088 else
42089 GSTREAMER_CFLAGS=""
42090 GSTREAMER_LIBS=""
42091 ## If we have a custom action on failure, don't print errors, but
42092 ## do set a variable so people can do so.
42093 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 42094
dae87f93
RN
42095 fi
42096
42097
42098
42099 else
42100 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
42101 echo "*** See http://www.freedesktop.org/software/pkgconfig"
42102 fi
42103 fi
42104
42105 if test $succeeded = yes; then
42106
42107 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
42108 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 42109
ce756cb0 42110 else
dae87f93
RN
42111
42112 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
42113echo "$as_me: WARNING: GStreamer installation not found" >&2;}
42114 wxUSE_GSTREAMER="no"
42115
42116 fi
42117
42118
42119
42120
42121
42122 if test "x$GST_INSPECT" == "x"; then
42123 # Extract the first word of "gst-inspect", so it can be a program name with args.
42124set dummy gst-inspect; ac_word=$2
42125echo "$as_me:$LINENO: checking for $ac_word" >&5
42126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42127if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
42128 echo $ECHO_N "(cached) $ECHO_C" >&6
42129else
42130 if test -n "$GST_INSPECT"; then
42131 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
42132else
42133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42134for as_dir in $PATH
42135do
42136 IFS=$as_save_IFS
42137 test -z "$as_dir" && as_dir=.
42138 for ac_exec_ext in '' $ac_executable_extensions; do
42139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42140 ac_cv_prog_GST_INSPECT="gst-inspect"
42141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42142 break 2
ce756cb0 42143 fi
dae87f93
RN
42144done
42145done
42146
42147fi
42148fi
42149GST_INSPECT=$ac_cv_prog_GST_INSPECT
42150if test -n "$GST_INSPECT"; then
42151 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
42152echo "${ECHO_T}$GST_INSPECT" >&6
42153else
42154 echo "$as_me:$LINENO: result: no" >&5
42155echo "${ECHO_T}no" >&6
42156fi
42157
42158 fi
42159
42160 if test "x$GST_INSPECT" != "x"; then
42161 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
42162echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
42163 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
42164 echo "$as_me:$LINENO: result: found." >&5
42165echo "${ECHO_T}found." >&6
ce756cb0 42166
ce756cb0 42167 else
dae87f93
RN
42168 echo "$as_me:$LINENO: result: not found." >&5
42169echo "${ECHO_T}not found." >&6
42170
42171 wxUSE_GSTREAMER="no"
42172 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
42173echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
42174
42175 fi
42176 fi
42177
42178
42179 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
42180echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
42181if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
42182 echo $ECHO_N "(cached) $ECHO_C" >&6
42183else
42184 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
42185/* confdefs.h. */
42186_ACEOF
42187cat confdefs.h >>conftest.$ac_ext
42188cat >>conftest.$ac_ext <<_ACEOF
42189/* end confdefs.h. */
dae87f93 42190#include <gst/gst.h>
ce756cb0 42191
dae87f93 42192#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
42193_ACEOF
42194rm -f conftest.$ac_objext
42195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42196 (eval $ac_compile) 2>conftest.er1
42197 ac_status=$?
42198 grep -v '^ *+' conftest.er1 >conftest.err
42199 rm -f conftest.er1
42200 cat conftest.err >&5
42201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42202 (exit $ac_status); } &&
6ebeb4c7 42203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
42204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42205 (eval $ac_try) 2>&5
42206 ac_status=$?
42207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42208 (exit $ac_status); }; } &&
42209 { ac_try='test -s conftest.$ac_objext'
42210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42211 (eval $ac_try) 2>&5
42212 ac_status=$?
42213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42214 (exit $ac_status); }; }; then
dae87f93 42215 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
42216else
42217 echo "$as_me: failed program was:" >&5
42218sed 's/^/| /' conftest.$ac_ext >&5
42219
dae87f93 42220ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
42221fi
42222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
42223fi
42224echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
42225echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
42226if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
42227 :
42228else
ce756cb0 42229
dae87f93
RN
42230 wxUSE_GSTREAMER="no"
42231 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
42232echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 42233
dae87f93 42234fi
ce756cb0 42235
dae87f93
RN
42236
42237
42238 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
42239echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
42240
0ad5d837
VZ
42241 ac_find_libraries=
42242 for ac_dir in $SEARCH_LIB;
ce756cb0 42243 do
3eca31dc 42244 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
42245 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
42246 ac_find_libraries=$ac_dir
42247 break 2
42248 fi
42249 done
42250 done
42251
ce756cb0 42252
dae87f93
RN
42253 if test "$ac_find_libraries" = "" ; then
42254 echo "$as_me:$LINENO: result: no" >&5
42255echo "${ECHO_T}no" >&6
42256 wxUSE_GSTREAMER="no"
42257 else
42258 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42259echo "${ECHO_T}yes" >&6
dae87f93 42260 fi
ce756cb0 42261
dae87f93
RN
42262 if test "$wxUSE_GSTREAMER" = "yes"; then
42263 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
42264#define wxUSE_GSTREAMER 1
42265_ACEOF
42266
dae87f93
RN
42267 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
42268echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
42269 fi
42270 fi
42271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
42272 cat >>confdefs.h <<\_ACEOF
42273#define wxUSE_MEDIACTRL 1
42274_ACEOF
42275
42276fi
42277
42278
a848cd7e
SC
42279if test "$cross_compiling" = "yes"; then
42280 OSINFO="\"$host\""
42281else
42282 OSINFO=`uname -s -r -m`
42283 OSINFO="\"$OSINFO\""
42284fi
42285
42286cat >>confdefs.h <<_ACEOF
42287#define WXWIN_OS_DESCRIPTION $OSINFO
42288_ACEOF
42289
42290
42291
42292if test "x$prefix" != "xNONE"; then
42293 wxPREFIX=$prefix
42294else
42295 wxPREFIX=$ac_default_prefix
42296fi
42297
42298cat >>confdefs.h <<_ACEOF
42299#define wxINSTALL_PREFIX "$wxPREFIX"
42300_ACEOF
42301
42302
a848cd7e
SC
42303
42304
42305CORE_BASE_LIBS="net base"
42306CORE_GUI_LIBS="adv core"
42307
42308if test "$wxUSE_XML" = "yes" ; then
42309 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
42310fi
42311if test "$wxUSE_ODBC" != "no" ; then
42312 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
42313 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
42314fi
42315if test "$wxUSE_HTML" = "yes" ; then
42316 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
42317fi
61639efb
VZ
42318if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42319 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
42320fi
9a8f0513
VS
42321if test "$wxUSE_XRC" = "yes" ; then
42322 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
42323fi
a848cd7e
SC
42324
42325if test "$wxUSE_GUI" != "yes"; then
42326 CORE_GUI_LIBS=""
42327fi
42328
42329
42330
42331
42332
42333
42334
42335
42336if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 42337 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
42338 if test "$USE_DARWIN" = 1; then
42339 LDFLAGS="$LDFLAGS -framework QuickTime"
42340 else
42341 LDFLAGS="$LDFLAGS -lQuickTimeLib"
42342 fi
07bea8f0 42343 fi
5dcf30a0 42344 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
42345 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
42346 else
42347 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 42348 fi
a848cd7e
SC
42349fi
42350if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 42351 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
42352 if test "$wxUSE_MEDIACTRL" = "yes"; then
42353 LDFLAGS="$LDFLAGS -framework QuickTime"
42354 fi
a848cd7e 42355fi
19b27e78
MW
42356if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
42357 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
42358fi
a848cd7e
SC
42359
42360
42361LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
42362
42363have_cos=0
42364have_floor=0
42365
42366for ac_func in cos
42367do
42368as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42369echo "$as_me:$LINENO: checking for $ac_func" >&5
42370echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42371if eval "test \"\${$as_ac_var+set}\" = set"; then
42372 echo $ECHO_N "(cached) $ECHO_C" >&6
42373else
42374 cat >conftest.$ac_ext <<_ACEOF
42375/* confdefs.h. */
42376_ACEOF
42377cat confdefs.h >>conftest.$ac_ext
42378cat >>conftest.$ac_ext <<_ACEOF
42379/* end confdefs.h. */
ac1cb8d3
VS
42380/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42382#define $ac_func innocuous_$ac_func
42383
a848cd7e
SC
42384/* System header to define __stub macros and hopefully few prototypes,
42385 which can conflict with char $ac_func (); below.
42386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42387 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42388
a848cd7e
SC
42389#ifdef __STDC__
42390# include <limits.h>
42391#else
42392# include <assert.h>
42393#endif
ac1cb8d3
VS
42394
42395#undef $ac_func
42396
a848cd7e
SC
42397/* Override any gcc2 internal prototype to avoid an error. */
42398#ifdef __cplusplus
42399extern "C"
42400{
42401#endif
42402/* We use char because int might match the return type of a gcc2
42403 builtin and then its argument prototype would still apply. */
42404char $ac_func ();
42405/* The GNU C library defines this for functions which it implements
42406 to always fail with ENOSYS. Some functions are actually named
42407 something starting with __ and the normal name is an alias. */
42408#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42409choke me
42410#else
42411char (*f) () = $ac_func;
42412#endif
42413#ifdef __cplusplus
42414}
42415#endif
42416
42417int
42418main ()
42419{
42420return f != $ac_func;
42421 ;
42422 return 0;
42423}
42424_ACEOF
42425rm -f conftest.$ac_objext conftest$ac_exeext
42426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42427 (eval $ac_link) 2>conftest.er1
a848cd7e 42428 ac_status=$?
ac1cb8d3
VS
42429 grep -v '^ *+' conftest.er1 >conftest.err
42430 rm -f conftest.er1
42431 cat conftest.err >&5
a848cd7e
SC
42432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42433 (exit $ac_status); } &&
6ebeb4c7 42434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42436 (eval $ac_try) 2>&5
42437 ac_status=$?
42438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42439 (exit $ac_status); }; } &&
42440 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42442 (eval $ac_try) 2>&5
42443 ac_status=$?
42444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42445 (exit $ac_status); }; }; then
42446 eval "$as_ac_var=yes"
42447else
42448 echo "$as_me: failed program was:" >&5
42449sed 's/^/| /' conftest.$ac_ext >&5
42450
42451eval "$as_ac_var=no"
42452fi
ac1cb8d3
VS
42453rm -f conftest.err conftest.$ac_objext \
42454 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42455fi
42456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42457echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42458if test `eval echo '${'$as_ac_var'}'` = yes; then
42459 cat >>confdefs.h <<_ACEOF
42460#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42461_ACEOF
42462 have_cos=1
42463fi
42464done
42465
42466
42467for ac_func in floor
42468do
42469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42470echo "$as_me:$LINENO: checking for $ac_func" >&5
42471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42472if eval "test \"\${$as_ac_var+set}\" = set"; then
42473 echo $ECHO_N "(cached) $ECHO_C" >&6
42474else
42475 cat >conftest.$ac_ext <<_ACEOF
42476/* confdefs.h. */
42477_ACEOF
42478cat confdefs.h >>conftest.$ac_ext
42479cat >>conftest.$ac_ext <<_ACEOF
42480/* end confdefs.h. */
ac1cb8d3
VS
42481/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42483#define $ac_func innocuous_$ac_func
42484
a848cd7e
SC
42485/* System header to define __stub macros and hopefully few prototypes,
42486 which can conflict with char $ac_func (); below.
42487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42488 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42489
a848cd7e
SC
42490#ifdef __STDC__
42491# include <limits.h>
42492#else
42493# include <assert.h>
42494#endif
ac1cb8d3
VS
42495
42496#undef $ac_func
42497
a848cd7e
SC
42498/* Override any gcc2 internal prototype to avoid an error. */
42499#ifdef __cplusplus
42500extern "C"
42501{
42502#endif
42503/* We use char because int might match the return type of a gcc2
42504 builtin and then its argument prototype would still apply. */
42505char $ac_func ();
42506/* The GNU C library defines this for functions which it implements
42507 to always fail with ENOSYS. Some functions are actually named
42508 something starting with __ and the normal name is an alias. */
42509#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42510choke me
42511#else
42512char (*f) () = $ac_func;
42513#endif
42514#ifdef __cplusplus
42515}
42516#endif
42517
42518int
42519main ()
42520{
42521return f != $ac_func;
42522 ;
42523 return 0;
42524}
42525_ACEOF
42526rm -f conftest.$ac_objext conftest$ac_exeext
42527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42528 (eval $ac_link) 2>conftest.er1
a848cd7e 42529 ac_status=$?
ac1cb8d3
VS
42530 grep -v '^ *+' conftest.er1 >conftest.err
42531 rm -f conftest.er1
42532 cat conftest.err >&5
a848cd7e
SC
42533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42534 (exit $ac_status); } &&
6ebeb4c7 42535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42537 (eval $ac_try) 2>&5
42538 ac_status=$?
42539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42540 (exit $ac_status); }; } &&
42541 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42543 (eval $ac_try) 2>&5
42544 ac_status=$?
42545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42546 (exit $ac_status); }; }; then
42547 eval "$as_ac_var=yes"
42548else
42549 echo "$as_me: failed program was:" >&5
42550sed 's/^/| /' conftest.$ac_ext >&5
42551
42552eval "$as_ac_var=no"
42553fi
ac1cb8d3
VS
42554rm -f conftest.err conftest.$ac_objext \
42555 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42556fi
42557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42559if test `eval echo '${'$as_ac_var'}'` = yes; then
42560 cat >>confdefs.h <<_ACEOF
42561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42562_ACEOF
42563 have_floor=1
42564fi
42565done
42566
42567echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
42568echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
42569if test "$have_cos" = 1 -a "$have_floor" = 1; then
42570 echo "$as_me:$LINENO: result: yes" >&5
42571echo "${ECHO_T}yes" >&6
42572else
42573 echo "$as_me:$LINENO: result: no" >&5
42574echo "${ECHO_T}no" >&6
42575 LIBS="$LIBS -lm"
42576 # use different functions to avoid configure caching
42577 have_sin=0
42578 have_ceil=0
42579
42580for ac_func in sin
42581do
42582as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42583echo "$as_me:$LINENO: checking for $ac_func" >&5
42584echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42585if eval "test \"\${$as_ac_var+set}\" = set"; then
42586 echo $ECHO_N "(cached) $ECHO_C" >&6
42587else
42588 cat >conftest.$ac_ext <<_ACEOF
42589/* confdefs.h. */
42590_ACEOF
42591cat confdefs.h >>conftest.$ac_ext
42592cat >>conftest.$ac_ext <<_ACEOF
42593/* end confdefs.h. */
ac1cb8d3
VS
42594/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42596#define $ac_func innocuous_$ac_func
42597
a848cd7e
SC
42598/* System header to define __stub macros and hopefully few prototypes,
42599 which can conflict with char $ac_func (); below.
42600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42601 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42602
a848cd7e
SC
42603#ifdef __STDC__
42604# include <limits.h>
42605#else
42606# include <assert.h>
42607#endif
ac1cb8d3
VS
42608
42609#undef $ac_func
42610
a848cd7e
SC
42611/* Override any gcc2 internal prototype to avoid an error. */
42612#ifdef __cplusplus
42613extern "C"
42614{
42615#endif
42616/* We use char because int might match the return type of a gcc2
42617 builtin and then its argument prototype would still apply. */
42618char $ac_func ();
42619/* The GNU C library defines this for functions which it implements
42620 to always fail with ENOSYS. Some functions are actually named
42621 something starting with __ and the normal name is an alias. */
42622#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42623choke me
42624#else
42625char (*f) () = $ac_func;
42626#endif
42627#ifdef __cplusplus
42628}
42629#endif
42630
42631int
42632main ()
42633{
42634return f != $ac_func;
42635 ;
42636 return 0;
42637}
42638_ACEOF
42639rm -f conftest.$ac_objext conftest$ac_exeext
42640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42641 (eval $ac_link) 2>conftest.er1
a848cd7e 42642 ac_status=$?
ac1cb8d3
VS
42643 grep -v '^ *+' conftest.er1 >conftest.err
42644 rm -f conftest.er1
42645 cat conftest.err >&5
a848cd7e
SC
42646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42647 (exit $ac_status); } &&
6ebeb4c7 42648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42650 (eval $ac_try) 2>&5
42651 ac_status=$?
42652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42653 (exit $ac_status); }; } &&
42654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42656 (eval $ac_try) 2>&5
42657 ac_status=$?
42658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42659 (exit $ac_status); }; }; then
42660 eval "$as_ac_var=yes"
42661else
42662 echo "$as_me: failed program was:" >&5
42663sed 's/^/| /' conftest.$ac_ext >&5
42664
42665eval "$as_ac_var=no"
42666fi
ac1cb8d3
VS
42667rm -f conftest.err conftest.$ac_objext \
42668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42669fi
42670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42671echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42672if test `eval echo '${'$as_ac_var'}'` = yes; then
42673 cat >>confdefs.h <<_ACEOF
42674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42675_ACEOF
42676 have_sin=1
42677fi
42678done
42679
42680
42681for ac_func in ceil
42682do
42683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42684echo "$as_me:$LINENO: checking for $ac_func" >&5
42685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42686if eval "test \"\${$as_ac_var+set}\" = set"; then
42687 echo $ECHO_N "(cached) $ECHO_C" >&6
42688else
42689 cat >conftest.$ac_ext <<_ACEOF
42690/* confdefs.h. */
42691_ACEOF
42692cat confdefs.h >>conftest.$ac_ext
42693cat >>conftest.$ac_ext <<_ACEOF
42694/* end confdefs.h. */
ac1cb8d3
VS
42695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42697#define $ac_func innocuous_$ac_func
42698
a848cd7e
SC
42699/* System header to define __stub macros and hopefully few prototypes,
42700 which can conflict with char $ac_func (); below.
42701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42702 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42703
a848cd7e
SC
42704#ifdef __STDC__
42705# include <limits.h>
42706#else
42707# include <assert.h>
42708#endif
ac1cb8d3
VS
42709
42710#undef $ac_func
42711
a848cd7e
SC
42712/* Override any gcc2 internal prototype to avoid an error. */
42713#ifdef __cplusplus
42714extern "C"
42715{
42716#endif
42717/* We use char because int might match the return type of a gcc2
42718 builtin and then its argument prototype would still apply. */
42719char $ac_func ();
42720/* The GNU C library defines this for functions which it implements
42721 to always fail with ENOSYS. Some functions are actually named
42722 something starting with __ and the normal name is an alias. */
42723#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42724choke me
42725#else
42726char (*f) () = $ac_func;
42727#endif
42728#ifdef __cplusplus
42729}
42730#endif
42731
42732int
42733main ()
42734{
42735return f != $ac_func;
42736 ;
42737 return 0;
42738}
42739_ACEOF
42740rm -f conftest.$ac_objext conftest$ac_exeext
42741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42742 (eval $ac_link) 2>conftest.er1
a848cd7e 42743 ac_status=$?
ac1cb8d3
VS
42744 grep -v '^ *+' conftest.er1 >conftest.err
42745 rm -f conftest.er1
42746 cat conftest.err >&5
a848cd7e
SC
42747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42748 (exit $ac_status); } &&
6ebeb4c7 42749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42751 (eval $ac_try) 2>&5
42752 ac_status=$?
42753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42754 (exit $ac_status); }; } &&
42755 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42757 (eval $ac_try) 2>&5
42758 ac_status=$?
42759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42760 (exit $ac_status); }; }; then
42761 eval "$as_ac_var=yes"
42762else
42763 echo "$as_me: failed program was:" >&5
42764sed 's/^/| /' conftest.$ac_ext >&5
42765
42766eval "$as_ac_var=no"
42767fi
ac1cb8d3
VS
42768rm -f conftest.err conftest.$ac_objext \
42769 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42770fi
42771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42772echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42773if test `eval echo '${'$as_ac_var'}'` = yes; then
42774 cat >>confdefs.h <<_ACEOF
42775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42776_ACEOF
42777 have_ceil=1
42778fi
42779done
42780
42781 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
42782echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
42783 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
42784 echo "$as_me:$LINENO: result: yes" >&5
42785echo "${ECHO_T}yes" >&6
42786 else
42787 echo "$as_me:$LINENO: result: no" >&5
42788echo "${ECHO_T}no" >&6
42789 # not sure we should warn the user, crash, etc.
42790 fi
42791fi
42792
42793if test "$wxUSE_GUI" = "yes"; then
42794
42795
8bce5cda
MW
42796 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
42797 dynamic erase event exec font image minimal mobile \
42798 mobile/wxedit mobile/styles propsize render \
42799 richedit rotate shaped vscroll widgets"
a848cd7e
SC
42800
42801 if test "$wxUSE_MONOLITHIC" != "yes"; then
42802 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
42803 fi
0b78747f 42804 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
42805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
42806 if test "$wxUSE_UNIVERSAL" != "yes"; then
42807 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
42808 fi
42809 fi
42810 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
42811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 42812 fi
a848cd7e
SC
42813else
42814 SAMPLES_SUBDIRS="console"
42815fi
42816
42817
ceec2216 42818INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
42819-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
42820
48f625bc 42821if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
42822 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
42823elif test "$GCC" = yes ; then
42824 CWARNINGS="-Wall -Wundef"
42825fi
42826
48f625bc 42827if test "x$INTELCXX" = "xyes" ; then
7f47faf4 42828 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
42829elif test "$GXX" = yes ; then
42830 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 42831fi
a848cd7e
SC
42832
42833EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
42834
0c3c69fc 42835CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 42836CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 42837CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 42838
95986553
DE
42839if test "x$MWCC" = "xyes"; then
42840
42841 CC="$CC -cwd source -I-"
42842 CXX="$CXX -cwd source -I-"
42843fi
42844
a848cd7e 42845
0c3c69fc 42846LIBS=`echo $LIBS`
a848cd7e
SC
42847EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
42848EXTRALIBS_XML="$EXPAT_LINK"
42849EXTRALIBS_HTML="$MSPACK_LINK"
42850EXTRALIBS_ODBC="$ODBC_LINK"
42851if test "$wxUSE_GUI" = "yes"; then
2e350179 42852 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
42853fi
42854if test "$wxUSE_OPENGL" = "yes"; then
42855 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
42856fi
42857
42858LDFLAGS="$LDFLAGS $PROFILE"
42859
42860if test "$wxUSE_GTK" = 1; then
42861 WXCONFIG_INCLUDE=
42862else
42863 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
42864fi
42865
42866WXCONFIG_EXTRALIBS="$LIBS"
42867
42868if test "$wxUSE_REGEX" = "builtin" ; then
74802184 42869 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
42870fi
42871if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 42872 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
42873fi
42874if test "$wxUSE_ODBC" = "builtin" ; then
74802184 42875 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
42876fi
42877if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 42878 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
42879fi
42880if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 42881 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
42882fi
42883if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 42884 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
42885fi
42886if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 42887 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
42888fi
42889
42890for i in $wxconfig_3rdparty ; do
74802184 42891 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
42892done
42893
42894
42895if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
42896 WXUNIV=1
42897else
42898 WXUNIV=0
42899fi
42900
42901
42902
42903
42904
42905
42906
42907
42908
42909if test $wxUSE_MONOLITHIC = "yes" ; then
42910 MONOLITHIC=1
42911else
42912 MONOLITHIC=0
42913fi
42914
42915if test $wxUSE_PLUGINS = "yes" ; then
42916 USE_PLUGINS=1
42917else
42918 USE_PLUGINS=0
42919fi
42920
42921if test $wxUSE_ODBC != "no" ; then
42922 USE_ODBC=1
42923else
42924 USE_ODBC=0
42925fi
42926
16358932
VZ
42927if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42928 USE_QA=1
42929else
42930 USE_QA=0
42931fi
42932
a848cd7e
SC
42933if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
42934 OFFICIAL_BUILD=1
42935else
42936 OFFICIAL_BUILD=0
42937fi
42938
42939
42940
42941
42942
42943
42944
42945
42946
42947
42948
42949
42950
42951
42952
42953
42954
42955
42956
ceec2216 42957
d1c38808 42958
a848cd7e
SC
42959
42960
42961TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
42962
42963
42964
42965
42966
42967
42968
42969
4d4ff94c
VZ
42970case "$TOOLKIT" in
42971 GTK)
42972 TOOLKIT_USER="GTK+"
42973 if test "$WXGTK20" = 1; then
42974 TOOLKIT_USER="$TOOLKIT_USER 2"
42975 fi
9a8f0513 42976 ;;
4d4ff94c
VZ
42977
42978 *)
42979 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 42980 ;;
4d4ff94c 42981esac
a848cd7e 42982
fb00f58d
JS
42983if test "$wxUSE_WINE" = "yes"; then
42984 BAKEFILE_FORCE_PLATFORM=win32
42985fi
42986
9a8f0513 42987
1e9e8aba
DE
42988
42989
a848cd7e
SC
42990 if test "x$BAKEFILE_HOST" = "x"; then
42991 BAKEFILE_HOST="${host}"
42992 fi
42993
42994 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
42995
42996 if test -n "$ac_tool_prefix"; then
42997 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
42998set dummy ${ac_tool_prefix}ranlib; ac_word=$2
42999echo "$as_me:$LINENO: checking for $ac_word" >&5
43000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43001if test "${ac_cv_prog_RANLIB+set}" = set; then
43002 echo $ECHO_N "(cached) $ECHO_C" >&6
43003else
43004 if test -n "$RANLIB"; then
43005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
43006else
43007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43008for as_dir in $PATH
43009do
43010 IFS=$as_save_IFS
43011 test -z "$as_dir" && as_dir=.
43012 for ac_exec_ext in '' $ac_executable_extensions; do
43013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43014 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
43015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43016 break 2
43017 fi
43018done
43019done
43020
43021fi
43022fi
43023RANLIB=$ac_cv_prog_RANLIB
43024if test -n "$RANLIB"; then
43025 echo "$as_me:$LINENO: result: $RANLIB" >&5
43026echo "${ECHO_T}$RANLIB" >&6
43027else
43028 echo "$as_me:$LINENO: result: no" >&5
43029echo "${ECHO_T}no" >&6
43030fi
43031
43032fi
43033if test -z "$ac_cv_prog_RANLIB"; then
43034 ac_ct_RANLIB=$RANLIB
43035 # Extract the first word of "ranlib", so it can be a program name with args.
43036set dummy ranlib; ac_word=$2
43037echo "$as_me:$LINENO: checking for $ac_word" >&5
43038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43039if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
43040 echo $ECHO_N "(cached) $ECHO_C" >&6
43041else
43042 if test -n "$ac_ct_RANLIB"; then
43043 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
43044else
43045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43046for as_dir in $PATH
43047do
43048 IFS=$as_save_IFS
43049 test -z "$as_dir" && as_dir=.
43050 for ac_exec_ext in '' $ac_executable_extensions; do
43051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43052 ac_cv_prog_ac_ct_RANLIB="ranlib"
43053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43054 break 2
43055 fi
43056done
43057done
43058
43059 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
43060fi
43061fi
43062ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
43063if test -n "$ac_ct_RANLIB"; then
43064 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
43065echo "${ECHO_T}$ac_ct_RANLIB" >&6
43066else
43067 echo "$as_me:$LINENO: result: no" >&5
43068echo "${ECHO_T}no" >&6
43069fi
43070
43071 RANLIB=$ac_ct_RANLIB
43072else
43073 RANLIB="$ac_cv_prog_RANLIB"
43074fi
43075
43076 # Find a good install program. We prefer a C program (faster),
43077# so one script is as good as another. But avoid the broken or
43078# incompatible versions:
43079# SysV /etc/install, /usr/sbin/install
43080# SunOS /usr/etc/install
43081# IRIX /sbin/install
43082# AIX /bin/install
43083# AmigaOS /C/install, which installs bootblocks on floppy discs
43084# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
43085# AFS /usr/afsws/bin/install, which mishandles nonexistent args
43086# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 43087# OS/2's system install, which has a completely different semantic
a848cd7e
SC
43088# ./install, which can be erroneously created by make from ./install.sh.
43089echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
43090echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
43091if test -z "$INSTALL"; then
43092if test "${ac_cv_path_install+set}" = set; then
43093 echo $ECHO_N "(cached) $ECHO_C" >&6
43094else
43095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43096for as_dir in $PATH
43097do
43098 IFS=$as_save_IFS
43099 test -z "$as_dir" && as_dir=.
43100 # Account for people who put trailing slashes in PATH elements.
43101case $as_dir/ in
43102 ./ | .// | /cC/* | \
43103 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 43104 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
43105 /usr/ucb/* ) ;;
43106 *)
43107 # OSF1 and SCO ODT 3.0 have their own names for install.
43108 # Don't use installbsd from OSF since it installs stuff as root
43109 # by default.
43110 for ac_prog in ginstall scoinst install; do
43111 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
43112 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
43113 if test $ac_prog = install &&
43114 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43115 # AIX install. It has an incompatible calling convention.
43116 :
43117 elif test $ac_prog = install &&
43118 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43119 # program-specific install script used by HP pwplus--don't use.
43120 :
43121 else
43122 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
43123 break 3
43124 fi
43125 fi
a848cd7e
SC
43126 done
43127 done
43128 ;;
43129esac
43130done
43131
43132
43133fi
43134 if test "${ac_cv_path_install+set}" = set; then
43135 INSTALL=$ac_cv_path_install
43136 else
43137 # As a last resort, use the slow shell script. We don't cache a
43138 # path for INSTALL within a source directory, because that will
43139 # break other packages using the cache if that directory is
43140 # removed, or if the path is relative.
43141 INSTALL=$ac_install_sh
43142 fi
43143fi
43144echo "$as_me:$LINENO: result: $INSTALL" >&5
43145echo "${ECHO_T}$INSTALL" >&6
43146
43147# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
43148# It thinks the first close brace ends the variable substitution.
43149test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
43150
43151test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
43152
43153test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
43154
43155 echo "$as_me:$LINENO: checking whether ln -s works" >&5
43156echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
43157LN_S=$as_ln_s
43158if test "$LN_S" = "ln -s"; then
43159 echo "$as_me:$LINENO: result: yes" >&5
43160echo "${ECHO_T}yes" >&6
43161else
43162 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
43163echo "${ECHO_T}no, using $LN_S" >&6
43164fi
43165
43166
43167 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43168echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43169set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43170if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43171 echo $ECHO_N "(cached) $ECHO_C" >&6
43172else
43173 cat >conftest.make <<\_ACEOF
43174all:
43175 @echo 'ac_maketemp="$(MAKE)"'
43176_ACEOF
43177# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43178eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43179if test -n "$ac_maketemp"; then
43180 eval ac_cv_prog_make_${ac_make}_set=yes
43181else
43182 eval ac_cv_prog_make_${ac_make}_set=no
43183fi
43184rm -f conftest.make
43185fi
43186if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43187 echo "$as_me:$LINENO: result: yes" >&5
43188echo "${ECHO_T}yes" >&6
43189 SET_MAKE=
43190else
43191 echo "$as_me:$LINENO: result: no" >&5
43192echo "${ECHO_T}no" >&6
43193 SET_MAKE="MAKE=${MAKE-make}"
43194fi
43195
43196
43197
43198 if test -n "$ac_tool_prefix"; then
43199 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
43200set dummy ${ac_tool_prefix}ar; ac_word=$2
43201echo "$as_me:$LINENO: checking for $ac_word" >&5
43202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43203if test "${ac_cv_prog_AR+set}" = set; then
43204 echo $ECHO_N "(cached) $ECHO_C" >&6
43205else
43206 if test -n "$AR"; then
43207 ac_cv_prog_AR="$AR" # Let the user override the test.
43208else
43209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43210for as_dir in $PATH
43211do
43212 IFS=$as_save_IFS
43213 test -z "$as_dir" && as_dir=.
43214 for ac_exec_ext in '' $ac_executable_extensions; do
43215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43216 ac_cv_prog_AR="${ac_tool_prefix}ar"
43217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43218 break 2
43219 fi
43220done
43221done
43222
43223fi
43224fi
43225AR=$ac_cv_prog_AR
43226if test -n "$AR"; then
43227 echo "$as_me:$LINENO: result: $AR" >&5
43228echo "${ECHO_T}$AR" >&6
43229else
43230 echo "$as_me:$LINENO: result: no" >&5
43231echo "${ECHO_T}no" >&6
43232fi
43233
43234fi
43235if test -z "$ac_cv_prog_AR"; then
43236 ac_ct_AR=$AR
43237 # Extract the first word of "ar", so it can be a program name with args.
43238set dummy ar; ac_word=$2
43239echo "$as_me:$LINENO: checking for $ac_word" >&5
43240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43241if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
43242 echo $ECHO_N "(cached) $ECHO_C" >&6
43243else
43244 if test -n "$ac_ct_AR"; then
43245 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
43246else
43247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43248for as_dir in $PATH
43249do
43250 IFS=$as_save_IFS
43251 test -z "$as_dir" && as_dir=.
43252 for ac_exec_ext in '' $ac_executable_extensions; do
43253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43254 ac_cv_prog_ac_ct_AR="ar"
43255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43256 break 2
43257 fi
43258done
43259done
43260
43261 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
43262fi
43263fi
43264ac_ct_AR=$ac_cv_prog_ac_ct_AR
43265if test -n "$ac_ct_AR"; then
43266 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
43267echo "${ECHO_T}$ac_ct_AR" >&6
43268else
43269 echo "$as_me:$LINENO: result: no" >&5
43270echo "${ECHO_T}no" >&6
43271fi
43272
43273 AR=$ac_ct_AR
43274else
43275 AR="$ac_cv_prog_AR"
43276fi
43277
43278 if test -n "$ac_tool_prefix"; then
43279 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
43280set dummy ${ac_tool_prefix}strip; ac_word=$2
43281echo "$as_me:$LINENO: checking for $ac_word" >&5
43282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43283if test "${ac_cv_prog_STRIP+set}" = set; then
43284 echo $ECHO_N "(cached) $ECHO_C" >&6
43285else
43286 if test -n "$STRIP"; then
43287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
43288else
43289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43290for as_dir in $PATH
43291do
43292 IFS=$as_save_IFS
43293 test -z "$as_dir" && as_dir=.
43294 for ac_exec_ext in '' $ac_executable_extensions; do
43295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43296 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
43297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43298 break 2
43299 fi
43300done
43301done
43302
43303fi
43304fi
43305STRIP=$ac_cv_prog_STRIP
43306if test -n "$STRIP"; then
43307 echo "$as_me:$LINENO: result: $STRIP" >&5
43308echo "${ECHO_T}$STRIP" >&6
43309else
43310 echo "$as_me:$LINENO: result: no" >&5
43311echo "${ECHO_T}no" >&6
43312fi
43313
43314fi
43315if test -z "$ac_cv_prog_STRIP"; then
43316 ac_ct_STRIP=$STRIP
43317 # Extract the first word of "strip", so it can be a program name with args.
43318set dummy strip; ac_word=$2
43319echo "$as_me:$LINENO: checking for $ac_word" >&5
43320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43321if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
43322 echo $ECHO_N "(cached) $ECHO_C" >&6
43323else
43324 if test -n "$ac_ct_STRIP"; then
43325 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
43326else
43327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43328for as_dir in $PATH
43329do
43330 IFS=$as_save_IFS
43331 test -z "$as_dir" && as_dir=.
43332 for ac_exec_ext in '' $ac_executable_extensions; do
43333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43334 ac_cv_prog_ac_ct_STRIP="strip"
43335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43336 break 2
43337 fi
43338done
43339done
43340
43341 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
43342fi
43343fi
43344ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
43345if test -n "$ac_ct_STRIP"; then
43346 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
43347echo "${ECHO_T}$ac_ct_STRIP" >&6
43348else
43349 echo "$as_me:$LINENO: result: no" >&5
43350echo "${ECHO_T}no" >&6
43351fi
43352
43353 STRIP=$ac_ct_STRIP
43354else
43355 STRIP="$ac_cv_prog_STRIP"
43356fi
43357
43358 if test -n "$ac_tool_prefix"; then
43359 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
43360set dummy ${ac_tool_prefix}nm; ac_word=$2
43361echo "$as_me:$LINENO: checking for $ac_word" >&5
43362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43363if test "${ac_cv_prog_NM+set}" = set; then
43364 echo $ECHO_N "(cached) $ECHO_C" >&6
43365else
43366 if test -n "$NM"; then
43367 ac_cv_prog_NM="$NM" # Let the user override the test.
43368else
43369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43370for as_dir in $PATH
43371do
43372 IFS=$as_save_IFS
43373 test -z "$as_dir" && as_dir=.
43374 for ac_exec_ext in '' $ac_executable_extensions; do
43375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43376 ac_cv_prog_NM="${ac_tool_prefix}nm"
43377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43378 break 2
43379 fi
43380done
43381done
43382
43383fi
43384fi
43385NM=$ac_cv_prog_NM
43386if test -n "$NM"; then
43387 echo "$as_me:$LINENO: result: $NM" >&5
43388echo "${ECHO_T}$NM" >&6
43389else
43390 echo "$as_me:$LINENO: result: no" >&5
43391echo "${ECHO_T}no" >&6
43392fi
43393
43394fi
43395if test -z "$ac_cv_prog_NM"; then
43396 ac_ct_NM=$NM
43397 # Extract the first word of "nm", so it can be a program name with args.
43398set dummy nm; ac_word=$2
43399echo "$as_me:$LINENO: checking for $ac_word" >&5
43400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43401if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
43402 echo $ECHO_N "(cached) $ECHO_C" >&6
43403else
43404 if test -n "$ac_ct_NM"; then
43405 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
43406else
43407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43408for as_dir in $PATH
43409do
43410 IFS=$as_save_IFS
43411 test -z "$as_dir" && as_dir=.
43412 for ac_exec_ext in '' $ac_executable_extensions; do
43413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43414 ac_cv_prog_ac_ct_NM="nm"
43415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43416 break 2
43417 fi
43418done
43419done
43420
43421 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
43422fi
43423fi
43424ac_ct_NM=$ac_cv_prog_ac_ct_NM
43425if test -n "$ac_ct_NM"; then
43426 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
43427echo "${ECHO_T}$ac_ct_NM" >&6
43428else
43429 echo "$as_me:$LINENO: result: no" >&5
43430echo "${ECHO_T}no" >&6
43431fi
43432
43433 NM=$ac_ct_NM
43434else
43435 NM="$ac_cv_prog_NM"
43436fi
43437
43438
43439 case ${BAKEFILE_HOST} in
43440 *-hp-hpux* )
1e9e8aba 43441 INSTALL_DIR="mkdir -p"
a848cd7e
SC
43442 ;;
43443 *) INSTALL_DIR="$INSTALL -d"
43444 ;;
43445 esac
43446
43447
43448 LDFLAGS_GUI=
43449 case ${BAKEFILE_HOST} in
43450 *-*-cygwin* | *-*-mingw32* )
43451 LDFLAGS_GUI="-mwindows"
43452 esac
43453
43454
43455 fi
43456
43457 echo "$as_me:$LINENO: checking if make is GNU make" >&5
43458echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
43459if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
43460 echo $ECHO_N "(cached) $ECHO_C" >&6
43461else
43462
43463 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
43464 egrep -s GNU > /dev/null); then
43465 bakefile_cv_prog_makeisgnu="yes"
43466 else
43467 bakefile_cv_prog_makeisgnu="no"
43468 fi
43469
43470fi
43471echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
43472echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
43473
43474 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
43475 IF_GNU_MAKE=""
43476 else
43477 IF_GNU_MAKE="#"
43478 fi
43479
43480
43481
43482 PLATFORM_UNIX=0
43483 PLATFORM_WIN32=0
43484 PLATFORM_MSDOS=0
43485 PLATFORM_MAC=0
1e9e8aba 43486 PLATFORM_MACOS=0
a848cd7e
SC
43487 PLATFORM_MACOSX=0
43488 PLATFORM_OS2=0
1e9e8aba 43489 PLATFORM_BEOS=0
a848cd7e
SC
43490
43491 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
43492 case "${BAKEFILE_HOST}" in
810b94f0 43493 *-*-mingw32* )
a848cd7e
SC
43494 PLATFORM_WIN32=1
43495 ;;
43496 *-pc-msdosdjgpp )
43497 PLATFORM_MSDOS=1
43498 ;;
43499 *-pc-os2_emx | *-pc-os2-emx )
43500 PLATFORM_OS2=1
43501 ;;
47bd5406 43502 *-*-darwin* )
a848cd7e
SC
43503 PLATFORM_MAC=1
43504 PLATFORM_MACOSX=1
43505 ;;
1e9e8aba
DE
43506 *-*-beos* )
43507 PLATFORM_BEOS=1
43508 ;;
43509 powerpc-apple-macos* )
43510 PLATFORM_MAC=1
43511 PLATFORM_MACOS=1
43512 ;;
a848cd7e
SC
43513 * )
43514 PLATFORM_UNIX=1
43515 ;;
43516 esac
43517 else
43518 case "$BAKEFILE_FORCE_PLATFORM" in
43519 win32 )
43520 PLATFORM_WIN32=1
43521 ;;
43522 msdos )
43523 PLATFORM_MSDOS=1
43524 ;;
43525 os2 )
43526 PLATFORM_OS2=1
43527 ;;
43528 darwin )
43529 PLATFORM_MAC=1
43530 PLATFORM_MACOSX=1
43531 ;;
43532 unix )
43533 PLATFORM_UNIX=1
43534 ;;
1e9e8aba
DE
43535 beos )
43536 PLATFORM_BEOS=1
43537 ;;
a848cd7e
SC
43538 * )
43539 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
43540echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
43541 { (exit 1); exit 1; }; }
43542 ;;
43543 esac
43544 fi
43545
43546
43547
43548
43549
43550
43551
43552
43553
1e9e8aba
DE
43554
43555
a848cd7e
SC
43556 # Check whether --enable-omf or --disable-omf was given.
43557if test "${enable_omf+set}" = set; then
43558 enableval="$enable_omf"
43559 bk_os2_use_omf="$enableval"
43560fi;
43561
43562 case "${BAKEFILE_HOST}" in
43563 *-*-darwin* )
47bd5406
VZ
43564 if test "x$GCC" = "xyes"; then
43565 CFLAGS="$CFLAGS -fno-common"
43566 CXXFLAGS="$CXXFLAGS -fno-common"
43567 fi
43568 if test "x$XLCC" = "xyes"; then
43569 CFLAGS="$CFLAGS -qnocommon"
43570 CXXFLAGS="$CXXFLAGS -qnocommon"
43571 fi
a848cd7e
SC
43572 ;;
43573
43574 *-pc-os2_emx | *-pc-os2-emx )
43575 if test "x$bk_os2_use_omf" = "xyes" ; then
43576 AR=emxomfar
43577 RANLIB=:
43578 LDFLAGS="-Zomf $LDFLAGS"
43579 CFLAGS="-Zomf $CFLAGS"
43580 CXXFLAGS="-Zomf $CXXFLAGS"
43581 OS2_LIBEXT="lib"
43582 else
43583 OS2_LIBEXT="a"
43584 fi
43585 ;;
1e9e8aba
DE
43586
43587 i*86-*-beos* )
43588 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
43589 ;;
a848cd7e
SC
43590 esac
43591
43592
43593 SO_SUFFIX="so"
43594 SO_SUFFIX_MODULE="so"
43595 EXEEXT=""
43596 LIBPREFIX="lib"
43597 LIBEXT=".a"
43598 DLLPREFIX="lib"
43599 DLLPREFIX_MODULE=""
43600 DLLIMP_SUFFIX=""
810b94f0 43601 dlldir="$libdir"
a848cd7e
SC
43602
43603 case "${BAKEFILE_HOST}" in
43604 *-hp-hpux* )
43605 SO_SUFFIX="sl"
43606 SO_SUFFIX_MODULE="sl"
43607 ;;
43608 *-*-aix* )
43609 SO_SUFFIX="a"
43610 SO_SUFFIX_MODULE="a"
43611 ;;
810b94f0
MW
43612 *-*-cygwin* )
43613 SO_SUFFIX="dll"
43614 SO_SUFFIX_MODULE="dll"
43615 DLLIMP_SUFFIX="dll.a"
43616 EXEEXT=".exe"
43617 DLLPREFIX="cyg"
43618 dlldir="$bindir"
43619 ;;
43620 *-*-mingw32* )
a848cd7e
SC
43621 SO_SUFFIX="dll"
43622 SO_SUFFIX_MODULE="dll"
43623 DLLIMP_SUFFIX="dll.a"
43624 EXEEXT=".exe"
43625 DLLPREFIX=""
810b94f0 43626 dlldir="$bindir"
a848cd7e
SC
43627 ;;
43628 *-pc-msdosdjgpp )
43629 EXEEXT=".exe"
43630 DLLPREFIX=""
810b94f0 43631 dlldir="$bindir"
a848cd7e
SC
43632 ;;
43633 *-pc-os2_emx | *-pc-os2-emx )
43634 SO_SUFFIX="dll"
43635 SO_SUFFIX_MODULE="dll"
43636 DLLIMP_SUFFIX=$OS2_LIBEXT
43637 EXEEXT=".exe"
43638 DLLPREFIX=""
43639 LIBPREFIX=""
43640 LIBEXT=".$OS2_LIBEXT"
810b94f0 43641 dlldir="$bindir"
a848cd7e 43642 ;;
47bd5406 43643 *-*-darwin* )
a848cd7e
SC
43644 SO_SUFFIX="dylib"
43645 SO_SUFFIX_MODULE="bundle"
43646 ;;
43647 esac
43648
43649 if test "x$DLLIMP_SUFFIX" = "x" ; then
43650 DLLIMP_SUFFIX="$SO_SUFFIX"
43651 fi
43652
43653
43654
43655
43656
43657
43658
43659
43660
43661
43662
810b94f0 43663
1e9e8aba
DE
43664 PIC_FLAG=""
43665 if test "x$GCC" = "xyes"; then
a848cd7e
SC
43666 PIC_FLAG="-fPIC"
43667 fi
43668
1e9e8aba
DE
43669 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
43670 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 43671 WINDOWS_IMPLIB=0
1e9e8aba 43672
a848cd7e
SC
43673 case "${BAKEFILE_HOST}" in
43674 *-hp-hpux* )
1e9e8aba 43675 if test "x$GCC" != "xyes"; then
a848cd7e
SC
43676 LDFLAGS="$LDFLAGS -L/usr/lib"
43677
43678 SHARED_LD_CC="${CC} -b -o"
43679 SHARED_LD_CXX="${CXX} -b -o"
43680 PIC_FLAG="+Z"
43681 fi
43682 ;;
43683
43684 *-*-linux* )
43685 if test "x$GCC" != "xyes"; then
43686 echo "$as_me:$LINENO: checking for Intel compiler" >&5
43687echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
43688if test "${bakefile_cv_prog_icc+set}" = set; then
43689 echo $ECHO_N "(cached) $ECHO_C" >&6
43690else
43691
43692 cat >conftest.$ac_ext <<_ACEOF
43693/* confdefs.h. */
43694_ACEOF
43695cat confdefs.h >>conftest.$ac_ext
43696cat >>conftest.$ac_ext <<_ACEOF
43697/* end confdefs.h. */
43698
43699int
43700main ()
43701{
43702
43703 #ifndef __INTEL_COMPILER
43704 #error Not icc
43705 #endif
43706
43707 ;
43708 return 0;
43709}
43710_ACEOF
43711rm -f conftest.$ac_objext
43712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43713 (eval $ac_compile) 2>conftest.er1
a848cd7e 43714 ac_status=$?
ac1cb8d3
VS
43715 grep -v '^ *+' conftest.er1 >conftest.err
43716 rm -f conftest.er1
43717 cat conftest.err >&5
a848cd7e
SC
43718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43719 (exit $ac_status); } &&
6ebeb4c7 43720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43722 (eval $ac_try) 2>&5
43723 ac_status=$?
43724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43725 (exit $ac_status); }; } &&
43726 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43728 (eval $ac_try) 2>&5
43729 ac_status=$?
43730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43731 (exit $ac_status); }; }; then
43732 bakefile_cv_prog_icc=yes
43733else
43734 echo "$as_me: failed program was:" >&5
43735sed 's/^/| /' conftest.$ac_ext >&5
43736
43737bakefile_cv_prog_icc=no
43738
43739fi
ac1cb8d3 43740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43741
43742fi
43743echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
43744echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
43745 if test "$bakefile_cv_prog_icc" = "yes"; then
43746 PIC_FLAG="-KPIC"
43747 fi
43748 fi
43749 ;;
43750
43751 *-*-solaris2* )
43752 if test "x$GCC" != xyes ; then
43753 SHARED_LD_CC="${CC} -G -o"
43754 SHARED_LD_CXX="${CXX} -G -o"
43755 PIC_FLAG="-KPIC"
43756 fi
43757 ;;
43758
43759 *-*-darwin* )
43760
43761 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43762echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
43763if test "${wx_cv_gcc31+set}" = set; then
43764 echo $ECHO_N "(cached) $ECHO_C" >&6
43765else
43766
43767 cat >conftest.$ac_ext <<_ACEOF
43768/* confdefs.h. */
43769_ACEOF
43770cat confdefs.h >>conftest.$ac_ext
43771cat >>conftest.$ac_ext <<_ACEOF
43772/* end confdefs.h. */
43773
43774int
43775main ()
43776{
43777
43778 #if (__GNUC__ < 3) || \
43779 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
43780 #error old gcc
43781 #endif
43782
43783 ;
43784 return 0;
43785}
43786_ACEOF
43787rm -f conftest.$ac_objext
43788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43789 (eval $ac_compile) 2>conftest.er1
a848cd7e 43790 ac_status=$?
ac1cb8d3
VS
43791 grep -v '^ *+' conftest.er1 >conftest.err
43792 rm -f conftest.er1
43793 cat conftest.err >&5
a848cd7e
SC
43794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43795 (exit $ac_status); } &&
6ebeb4c7 43796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43798 (eval $ac_try) 2>&5
43799 ac_status=$?
43800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43801 (exit $ac_status); }; } &&
43802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43804 (eval $ac_try) 2>&5
43805 ac_status=$?
43806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43807 (exit $ac_status); }; }; then
43808
43809 wx_cv_gcc31=yes
43810
43811else
43812 echo "$as_me: failed program was:" >&5
43813sed 's/^/| /' conftest.$ac_ext >&5
43814
43815
43816 wx_cv_gcc31=no
43817
43818
43819fi
ac1cb8d3 43820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43821
43822fi
43823echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
43824echo "${ECHO_T}$wx_cv_gcc31" >&6
43825 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
43826
43827D='$'
43828cat <<EOF >shared-ld-sh
a848cd7e
SC
43829#!/bin/sh
43830#-----------------------------------------------------------------------------
43831#-- Name: distrib/mac/shared-ld-sh
43832#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
43833#-- Author: Gilles Depeyrot
43834#-- Copyright: (c) 2002 Gilles Depeyrot
43835#-- Licence: any use permitted
43836#-----------------------------------------------------------------------------
43837
43838verbose=0
43839args=""
43840objects=""
43841linking_flag="-dynamiclib"
810b94f0 43842ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 43843
473276a9
VS
43844while test ${D}# -gt 0; do
43845 case ${D}1 in
a848cd7e
SC
43846
43847 -v)
43848 verbose=1
43849 ;;
43850
43851 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
43852 # collect these options and values
473276a9 43853 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
43854 shift
43855 ;;
43856
810b94f0
MW
43857 -s|-Wl,*)
43858 # collect these load args
43859 ldargs="${D}{ldargs} ${D}1"
2113bc77 43860 ;;
810b94f0
MW
43861
43862 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 43863 # collect these options
473276a9 43864 args="${D}{args} ${D}1"
a848cd7e
SC
43865 ;;
43866
43867 -dynamiclib|-bundle)
473276a9 43868 linking_flag="${D}1"
a848cd7e
SC
43869 ;;
43870
43871 -*)
473276a9 43872 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
43873 exit 1
43874 ;;
43875
43876 *.o | *.a | *.dylib)
43877 # collect object files
473276a9 43878 objects="${D}{objects} ${D}1"
a848cd7e
SC
43879 ;;
43880
43881 *)
473276a9 43882 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
43883 exit 1
43884 ;;
43885
43886 esac
43887 shift
43888done
43889
810b94f0
MW
43890status=0
43891
a848cd7e
SC
43892#
43893# Link one module containing all the others
43894#
473276a9 43895if test ${D}{verbose} = 1; then
810b94f0 43896 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 43897fi
810b94f0 43898c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 43899status=${D}?
a848cd7e
SC
43900
43901#
810b94f0
MW
43902# Link the shared library from the single module created, but only if the
43903# previous command didn't fail:
a848cd7e 43904#
810b94f0
MW
43905if test ${D}{status} = 0; then
43906 if test ${D}{verbose} = 1; then
43907 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
43908 fi
43909 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
43910 status=${D}?
a848cd7e
SC
43911fi
43912
43913#
43914# Remove intermediate module
43915#
473276a9 43916rm -f master.${D}${D}.o
a848cd7e 43917
810b94f0 43918exit ${D}status
a848cd7e 43919EOF
473276a9 43920
a848cd7e
SC
43921 chmod +x shared-ld-sh
43922
43923 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
43924 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
43925 SHARED_LD_CXX="$SHARED_LD_CC"
43926 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
43927 else
43928 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
43929 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
43930 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
43931 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
43932 fi
43933
47bd5406
VZ
43934 if test "x$GCC" == "xyes"; then
43935 PIC_FLAG="-dynamic -fPIC"
43936 fi
43937 if test "x$XLCC" = "xyes"; then
43938 PIC_FLAG="-dynamic -DPIC"
43939 fi
a848cd7e
SC
43940 ;;
43941
43942 *-*-aix* )
f6b50c59
VZ
43943 if test "x$GCC" = "xyes"; then
43944 PIC_FLAG=""
43945
43946 case "${BAKEFILE_HOST}" in
43947 *-*-aix5* )
43948 LD_EXPFULL="-Wl,-bexpfull"
43949 ;;
43950 esac
43951
7b94a67c
VZ
43952 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
43953 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
0ad5d837 43954 else
f6b50c59 43955 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
43956set dummy makeC++SharedLib; ac_word=$2
43957echo "$as_me:$LINENO: checking for $ac_word" >&5
43958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43959if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
43960 echo $ECHO_N "(cached) $ECHO_C" >&6
43961else
43962 if test -n "$AIX_CXX_LD"; then
43963 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
43964else
43965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43966for as_dir in $PATH
43967do
43968 IFS=$as_save_IFS
43969 test -z "$as_dir" && as_dir=.
43970 for ac_exec_ext in '' $ac_executable_extensions; do
43971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43972 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
43973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43974 break 2
43975 fi
43976done
43977done
43978
43979 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
43980fi
43981fi
43982AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
43983if test -n "$AIX_CXX_LD"; then
43984 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
43985echo "${ECHO_T}$AIX_CXX_LD" >&6
43986else
43987 echo "$as_me:$LINENO: result: no" >&5
43988echo "${ECHO_T}no" >&6
43989fi
43990
f6b50c59 43991 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
43992 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
43993 fi
43994 ;;
43995
43996 *-*-beos* )
1e9e8aba
DE
43997 SHARED_LD_CC="${LD} -nostart -o"
43998 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
43999 ;;
44000
44001 *-*-irix* )
44002 if test "x$GCC" != "xyes"; then
44003 PIC_FLAG="-KPIC"
44004 fi
44005 ;;
44006
44007 *-*-cygwin* | *-*-mingw32* )
44008 PIC_FLAG=""
1e9e8aba
DE
44009 SHARED_LD_CC="\$(CC) -shared -o"
44010 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 44011 WINDOWS_IMPLIB=1
a848cd7e
SC
44012 ;;
44013
44014 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
44015 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44016 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 44017 PIC_FLAG=""
473276a9
VS
44018
44019D='$'
44020cat <<EOF >dllar.sh
44021#!/bin/sh
44022#
44023# dllar - a tool to build both a .dll and an .a file
44024# from a set of object (.o) files for EMX/OS2.
44025#
44026# Written by Andrew Zabolotny, bit@freya.etu.ru
44027# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
44028#
44029# This script will accept a set of files on the command line.
44030# All the public symbols from the .o files will be exported into
44031# a .DEF file, then linker will be run (through gcc) against them to
44032# build a shared library consisting of all given .o files. All libraries
44033# (.a) will be first decompressed into component .o files then act as
44034# described above. You can optionally give a description (-d "description")
44035# which will be put into .DLL. To see the list of accepted options (as well
44036# as command-line format) simply run this program without options. The .DLL
44037# is built to be imported by name (there is no guarantee that new versions
44038# of the library you build will have same ordinals for same symbols).
44039#
44040# dllar is free software; you can redistribute it and/or modify
44041# it under the terms of the GNU General Public License as published by
44042# the Free Software Foundation; either version 2, or (at your option)
44043# any later version.
44044#
44045# dllar is distributed in the hope that it will be useful,
44046# but WITHOUT ANY WARRANTY; without even the implied warranty of
44047# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44048# GNU General Public License for more details.
44049#
44050# You should have received a copy of the GNU General Public License
44051# along with dllar; see the file COPYING. If not, write to the Free
44052# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
44053# 02111-1307, USA.
44054
44055# To successfuly run this program you will need:
44056# - Current drive should have LFN support (HPFS, ext2, network, etc)
44057# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
44058# - gcc
44059# (used to build the .dll)
44060# - emxexp
44061# (used to create .def file from .o files)
44062# - emximp
44063# (used to create .a file from .def file)
44064# - GNU text utilites (cat, sort, uniq)
44065# used to process emxexp output
44066# - GNU file utilities (mv, rm)
44067# - GNU sed
44068# - lxlite (optional, see flag below)
44069# (used for general .dll cleanup)
44070#
44071
44072flag_USE_LXLITE=1;
44073
44074#
44075# helper functions
44076# basnam, variant of basename, which does _not_ remove the path, _iff_
44077# second argument (suffix to remove) is given
44078basnam(){
44079 case ${D}# in
44080 1)
1e9e8aba 44081 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
44082 ;;
44083 2)
44084 echo ${D}1 | sed 's/'${D}2'${D}//'
44085 ;;
44086 *)
44087 echo "error in basnam ${D}*"
44088 exit 8
44089 ;;
44090 esac
44091}
44092
44093# Cleanup temporary files and output
44094CleanUp() {
44095 cd ${D}curDir
44096 for i in ${D}inputFiles ; do
44097 case ${D}i in
44098 *!)
44099 rm -rf \`basnam ${D}i !\`
44100 ;;
44101 *)
44102 ;;
44103 esac
44104 done
44105
44106 # Kill result in case of failure as there is just to many stupid make/nmake
44107 # things out there which doesn't do this.
1e9e8aba 44108 if [ ${D}# -eq 0 ]; then
473276a9
VS
44109 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
44110 fi
44111}
44112
44113# Print usage and exit script with rc=1.
44114PrintHelp() {
b1d22ded
DE
44115 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
44116 echo ' [-name-mangler-script script.sh]'
44117 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
44118 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
44119 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 44120 echo ' [*.o] [*.a]'
473276a9
VS
44121 echo '*> "output_file" should have no extension.'
44122 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
44123 echo ' The import library name is derived from this and is set to "name".a,'
44124 echo ' unless overridden by -import'
44125 echo '*> "importlib_name" should have no extension.'
44126 echo ' If it has the .o, or .a extension, it is automatically removed.'
44127 echo ' This name is used as the import library name and may be longer and'
44128 echo ' more descriptive than the DLL name which has to follow the old '
44129 echo ' 8.3 convention of FAT.'
b1d22ded
DE
44130 echo '*> "script.sh may be given to override the output_file name by a'
44131 echo ' different name. It is mainly useful if the regular make process'
44132 echo ' of some package does not take into account OS/2 restriction of'
44133 echo ' DLL name lengths. It takes the importlib name as input and is'
44134 echo ' supposed to procude a shorter name as output. The script should'
44135 echo ' expect to get importlib_name without extension and should produce'
44136 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
44137 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
44138 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
44139 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
44140 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
44141 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
44142 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
44143 echo ' If the last character of a symbol is "*", all symbols beginning'
44144 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 44145 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 44146 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 44147 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 44148 echo ' C runtime DLLs.'
b1d22ded 44149 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
44150 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
44151 echo ' unchanged to GCC at the end of command line.'
44152 echo '*> If you create a DLL from a library and you do not specify -o,'
44153 echo ' the basename for DLL and import library will be set to library name,'
44154 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
44155 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
44156 echo ' library will be renamed into gcc_s.a.'
44157 echo '--------'
44158 echo 'Example:'
44159 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
44160 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
44161 CleanUp
44162 exit 1
44163}
44164
44165# Execute a command.
44166# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
44167# @Uses Whatever CleanUp() uses.
44168doCommand() {
44169 echo "${D}*"
44170 eval ${D}*
44171 rcCmd=${D}?
44172
1e9e8aba 44173 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
44174 echo "command failed, exit code="${D}rcCmd
44175 CleanUp
44176 exit ${D}rcCmd
44177 fi
44178}
44179
44180# main routine
44181# setup globals
44182cmdLine=${D}*
44183outFile=""
44184outimpFile=""
44185inputFiles=""
b1d22ded 44186renameScript=""
473276a9
VS
44187description=""
44188CC=gcc.exe
44189CFLAGS="-s -Zcrtdll"
44190EXTRA_CFLAGS=""
44191EXPORT_BY_ORDINALS=0
44192exclude_symbols=""
44193library_flags=""
44194curDir=\`pwd\`
44195curDirS=curDir
44196case ${D}curDirS in
44197*/)
44198 ;;
44199*)
44200 curDirS=${D}{curDirS}"/"
44201 ;;
44202esac
44203# Parse commandline
44204libsToLink=0
b1d22ded 44205omfLinking=0
1e9e8aba 44206while [ ${D}1 ]; do
473276a9
VS
44207 case ${D}1 in
44208 -ord*)
44209 EXPORT_BY_ORDINALS=1;
44210 ;;
44211 -o*)
44212 shift
44213 outFile=${D}1
44214 ;;
44215 -i*)
44216 shift
44217 outimpFile=${D}1
44218 ;;
b1d22ded
DE
44219 -name-mangler-script)
44220 shift
44221 renameScript=${D}1
44222 ;;
473276a9
VS
44223 -d*)
44224 shift
44225 description=${D}1
44226 ;;
44227 -f*)
44228 shift
44229 CFLAGS=${D}1
44230 ;;
44231 -c*)
44232 shift
44233 CC=${D}1
44234 ;;
44235 -h*)
44236 PrintHelp
44237 ;;
44238 -ex*)
44239 shift
44240 exclude_symbols=${D}{exclude_symbols}${D}1" "
44241 ;;
44242 -libf*)
44243 shift
44244 library_flags=${D}{library_flags}${D}1" "
44245 ;;
44246 -nocrt*)
44247 CFLAGS="-s"
44248 ;;
44249 -nolxl*)
44250 flag_USE_LXLITE=0
44251 ;;
44252 -* | /*)
44253 case ${D}1 in
44254 -L* | -l*)
44255 libsToLink=1
44256 ;;
b1d22ded
DE
44257 -Zomf)
44258 omfLinking=1
44259 ;;
473276a9
VS
44260 *)
44261 ;;
44262 esac
44263 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44264 ;;
b1d22ded
DE
44265 *.dll)
44266 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
44267 if [ ${D}omfLinking -eq 1 ]; then
44268 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
44269 else
44270 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
44271 fi
44272 ;;
473276a9
VS
44273 *)
44274 found=0;
1e9e8aba 44275 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
44276 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44277 else
44278 for file in ${D}1 ; do
1e9e8aba 44279 if [ -f ${D}file ]; then
473276a9
VS
44280 inputFiles="${D}{inputFiles} ${D}file"
44281 found=1
44282 fi
44283 done
1e9e8aba 44284 if [ ${D}found -eq 0 ]; then
473276a9
VS
44285 echo "ERROR: No file(s) found: "${D}1
44286 exit 8
44287 fi
44288 fi
44289 ;;
44290 esac
44291 shift
44292done # iterate cmdline words
44293
44294#
1e9e8aba 44295if [ -z "${D}inputFiles" ]; then
473276a9
VS
44296 echo "dllar: no input files"
44297 PrintHelp
44298fi
44299
44300# Now extract all .o files from .a files
44301newInputFiles=""
44302for file in ${D}inputFiles ; do
44303 case ${D}file in
44304 *.a | *.lib)
44305 case ${D}file in
44306 *.a)
44307 suffix=".a"
44308 AR="ar"
44309 ;;
44310 *.lib)
44311 suffix=".lib"
44312 AR="emxomfar"
44313 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
44314 ;;
44315 *)
44316 ;;
44317 esac
44318 dirname=\`basnam ${D}file ${D}suffix\`"_%"
44319 mkdir ${D}dirname
1e9e8aba 44320 if [ ${D}? -ne 0 ]; then
473276a9
VS
44321 echo "Failed to create subdirectory ./${D}dirname"
44322 CleanUp
44323 exit 8;
44324 fi
44325 # Append '!' to indicate archive
44326 newInputFiles="${D}newInputFiles ${D}{dirname}!"
44327 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
44328 cd ${D}curDir
44329 found=0;
44330 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 44331 if [ -f ${D}subfile ]; then
473276a9 44332 found=1
1e9e8aba 44333 if [ -s ${D}subfile ]; then
473276a9
VS
44334 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
44335 newInputFiles="${D}newInputFiles ${D}subfile"
44336 fi
44337 fi
44338 done
1e9e8aba
DE
44339 if [ ${D}found -eq 0 ]; then
44340 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
44341 fi
44342 ;;
44343 *)
44344 newInputFiles="${D}{newInputFiles} ${D}file"
44345 ;;
44346 esac
44347done
44348inputFiles="${D}newInputFiles"
44349
44350# Output filename(s).
44351do_backup=0;
1e9e8aba 44352if [ -z ${D}outFile ]; then
473276a9
VS
44353 do_backup=1;
44354 set outFile ${D}inputFiles; outFile=${D}2
44355fi
44356
44357# If it is an archive, remove the '!' and the '_%' suffixes
44358case ${D}outFile in
44359*_%!)
44360 outFile=\`basnam ${D}outFile _%!\`
44361 ;;
44362*)
44363 ;;
44364esac
44365case ${D}outFile in
44366*.dll)
44367 outFile=\`basnam ${D}outFile .dll\`
44368 ;;
44369*.DLL)
44370 outFile=\`basnam ${D}outFile .DLL\`
44371 ;;
44372*.o)
44373 outFile=\`basnam ${D}outFile .o\`
44374 ;;
44375*.obj)
44376 outFile=\`basnam ${D}outFile .obj\`
44377 ;;
44378*.a)
44379 outFile=\`basnam ${D}outFile .a\`
44380 ;;
44381*.lib)
44382 outFile=\`basnam ${D}outFile .lib\`
44383 ;;
44384*)
44385 ;;
44386esac
44387case ${D}outimpFile in
44388*.a)
44389 outimpFile=\`basnam ${D}outimpFile .a\`
44390 ;;
44391*.lib)
44392 outimpFile=\`basnam ${D}outimpFile .lib\`
44393 ;;
44394*)
44395 ;;
44396esac
1e9e8aba 44397if [ -z ${D}outimpFile ]; then
473276a9
VS
44398 outimpFile=${D}outFile
44399fi
44400defFile="${D}{outFile}.def"
44401arcFile="${D}{outimpFile}.a"
44402arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
44403
44404#create ${D}dllFile as something matching 8.3 restrictions,
44405if [ -z ${D}renameScript ] ; then
44406 dllFile="${D}outFile"
44407else
44408 dllFile=\`${D}renameScript ${D}outimpFile\`
44409fi
473276a9 44410
1e9e8aba
DE
44411if [ ${D}do_backup -ne 0 ] ; then
44412 if [ -f ${D}arcFile ] ; then
473276a9
VS
44413 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
44414 fi
1e9e8aba 44415 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
44416 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
44417 fi
44418fi
44419
44420# Extract public symbols from all the object files.
44421tmpdefFile=${D}{defFile}_%
44422rm -f ${D}tmpdefFile
44423for file in ${D}inputFiles ; do
44424 case ${D}file in
44425 *!)
44426 ;;
44427 *)
44428 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
44429 ;;
44430 esac
44431done
44432
44433# Create the def file.
44434rm -f ${D}defFile
44435echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
44436dllFile="${D}{dllFile}.dll"
44437if [ ! -z ${D}description ]; then
1e9e8aba 44438 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
44439fi
44440echo "EXPORTS" >> ${D}defFile
44441
44442doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
44443grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
44444
44445# Checks if the export is ok or not.
44446for word in ${D}exclude_symbols; do
44447 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
44448 mv ${D}{tmpdefFile}% ${D}tmpdefFile
44449done
44450
44451
1e9e8aba
DE
44452if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
44453 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
44454 sed '
44455 N
44456 : loop
1e9e8aba 44457 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
44458 t loop
44459 ' > ${D}{tmpdefFile}%
44460 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
44461else
44462 rm -f ${D}{tmpdefFile}%
44463fi
44464cat ${D}tmpdefFile >> ${D}defFile
44465rm -f ${D}tmpdefFile
44466
44467# Do linking, create implib, and apply lxlite.
44468gccCmdl="";
44469for file in ${D}inputFiles ; do
44470 case ${D}file in
44471 *!)
44472 ;;
44473 *)
44474 gccCmdl="${D}gccCmdl ${D}file"
44475 ;;
44476 esac
44477done
44478doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
44479touch "${D}{outFile}.dll"
44480
44481doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 44482if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 44483 add_flags="";
1e9e8aba 44484 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
44485 add_flags="-ynd"
44486 fi
44487 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
44488fi
44489doCommand "emxomf -s -l ${D}arcFile"
44490
44491# Successful exit.
44492CleanUp 1
44493exit 0
44494EOF
44495
44496 chmod +x dllar.sh
a848cd7e
SC
44497 ;;
44498
1e9e8aba 44499 powerpc-apple-macos* | \
0ad5d837 44500 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
44501 *-*-sunos4* | \
44502 *-*-osf* | \
44503 *-*-dgux5* | \
47a7e797
MW
44504 *-*-sysv5* | \
44505 *-pc-msdosdjgpp )
a848cd7e
SC
44506 ;;
44507
44508 *)
44509 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
44510echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
44511 { (exit 1); exit 1; }; }
44512 esac
44513
2057db16
VS
44514 if test "x$PIC_FLAG" != "x" ; then
44515 PIC_FLAG="$PIC_FLAG -DPIC"
44516 fi
44517
a848cd7e
SC
44518 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
44519 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
44520 fi
44521 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
44522 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
44523 fi
44524
44525
44526
44527
44528
44529
44530
44531
810b94f0 44532
a848cd7e
SC
44533 USE_SOVERSION=0
44534 USE_SOVERLINUX=0
44535 USE_SOVERSOLARIS=0
810b94f0 44536 USE_SOVERCYGWIN=0
a848cd7e
SC
44537 USE_SOSYMLINKS=0
44538 USE_MACVERSION=0
44539 SONAME_FLAG=
44540
44541 case "${BAKEFILE_HOST}" in
0ad5d837 44542 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
44543 SONAME_FLAG="-Wl,-soname,"
44544 USE_SOVERSION=1
44545 USE_SOVERLINUX=1
44546 USE_SOSYMLINKS=1
44547 ;;
44548
a848cd7e
SC
44549 *-*-solaris2* )
44550 SONAME_FLAG="-h "
44551 USE_SOVERSION=1
44552 USE_SOVERSOLARIS=1
44553 USE_SOSYMLINKS=1
44554 ;;
44555
44556 *-*-darwin* )
44557 USE_MACVERSION=1
44558 USE_SOVERSION=1
44559 USE_SOSYMLINKS=1
44560 ;;
810b94f0
MW
44561
44562 *-*-cygwin* )
44563 USE_SOVERSION=1
44564 USE_SOVERCYGWIN=1
44565 ;;
a848cd7e
SC
44566 esac
44567
44568
44569
44570
44571
44572
44573
44574
44575
810b94f0 44576
a848cd7e
SC
44577 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
44578echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 44579 DEPS_TRACKING=1
a848cd7e
SC
44580
44581 if test "x$GCC" = "xyes"; then
44582 DEPSMODE=gcc
a848cd7e 44583 case "${BAKEFILE_HOST}" in
47bd5406 44584 *-*-darwin* )
0ad5d837 44585 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
44586 ;;
44587 * )
0ad5d837 44588 DEPSFLAG="-MMD"
a848cd7e
SC
44589 ;;
44590 esac
44591 echo "$as_me:$LINENO: result: gcc" >&5
44592echo "${ECHO_T}gcc" >&6
b1d22ded 44593 elif test "x$MWCC" = "xyes"; then
81f90336 44594 DEPSMODE=mwcc
0ad5d837 44595 DEPSFLAG="-MM"
b1d22ded
DE
44596 echo "$as_me:$LINENO: result: mwcc" >&5
44597echo "${ECHO_T}mwcc" >&6
a9e5b1f0 44598 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
44599 DEPSMODE=unixcc
44600 DEPSFLAG="-xM1"
44601 echo "$as_me:$LINENO: result: Sun cc" >&5
44602echo "${ECHO_T}Sun cc" >&6
44603 elif test "x$SGICC" = "xyes"; then
44604 DEPSMODE=unixcc
44605 DEPSFLAG="-M"
44606 echo "$as_me:$LINENO: result: SGI cc" >&5
44607echo "${ECHO_T}SGI cc" >&6
a848cd7e 44608 else
0ad5d837 44609 DEPS_TRACKING=0
a848cd7e
SC
44610 echo "$as_me:$LINENO: result: none" >&5
44611echo "${ECHO_T}none" >&6
44612 fi
44613
44614 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
44615
44616D='$'
44617cat <<EOF >bk-deps
a848cd7e
SC
44618#!/bin/sh
44619
44620# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
44621# script. It is used to track C/C++ files dependencies in portable way.
44622#
44623# Permission is given to use this file in any way.
44624
473276a9 44625DEPSMODE=${DEPSMODE}
a848cd7e 44626DEPSDIR=.deps
0ad5d837 44627DEPSFLAG="${DEPSFLAG}"
a848cd7e 44628
473276a9 44629mkdir -p ${D}DEPSDIR
a848cd7e 44630
473276a9 44631if test ${D}DEPSMODE = gcc ; then
0ad5d837 44632 ${D}* ${D}{DEPSFLAG}
473276a9
VS
44633 status=${D}?
44634 if test ${D}{status} != 0 ; then
44635 exit ${D}{status}
a848cd7e
SC
44636 fi
44637 # move created file to the location we want it in:
473276a9
VS
44638 while test ${D}# -gt 0; do
44639 case "${D}1" in
a848cd7e
SC
44640 -o )
44641 shift
473276a9 44642 objfile=${D}1
a848cd7e
SC
44643 ;;
44644 -* )
44645 ;;
44646 * )
473276a9 44647 srcfile=${D}1
a848cd7e
SC
44648 ;;
44649 esac
44650 shift
44651 done
1e9e8aba
DE
44652 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
44653 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
44654 if test -f ${D}depfile ; then
44655 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
44656 rm -f ${D}depfile
a848cd7e 44657 else
1e9e8aba 44658 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
44659 if test -f ${D}depfile ; then
44660 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
44661 rm -f ${D}depfile
a848cd7e
SC
44662 fi
44663 fi
44664 exit 0
81f90336 44665elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 44666 ${D}* || exit ${D}?
81f90336
MW
44667 # Run mwcc again with -MM and redirect into the dep file we want
44668 # NOTE: We can't use shift here because we need ${D}* to be valid
44669 prevarg=
44670 for arg in ${D}* ; do
44671 if test "${D}prevarg" = "-o"; then
44672 objfile=${D}arg
44673 else
44674 case "${D}arg" in
44675 -* )
44676 ;;
44677 * )
44678 srcfile=${D}arg
44679 ;;
44680 esac
44681 fi
44682 prevarg="${D}arg"
44683 done
0ad5d837 44684 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 44685 exit 0
0ad5d837 44686elif test ${D}DEPSMODE = unixcc; then
f6b50c59 44687 ${D}* || exit ${D}?
a9e5b1f0
MW
44688 # Run compiler again with deps flag and redirect into the dep file.
44689 # It doesn't work if the '-o FILE' option is used, but without it the
44690 # dependency file will contain the wrong name for the object. So it is
44691 # removed from the command line, and the dep file is fixed with sed.
44692 cmd=""
44693 while test ${D}# -gt 0; do
44694 case "${D}1" in
44695 -o )
44696 shift
44697 objfile=${D}1
44698 ;;
44699 * )
44700 eval arg${D}#=\\${D}1
44701 cmd="${D}cmd \\${D}arg${D}#"
44702 ;;
44703 esac
44704 shift
44705 done
0ad5d837 44706 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 44707 exit 0
a848cd7e 44708else
473276a9
VS
44709 ${D}*
44710 exit ${D}?
a848cd7e
SC
44711fi
44712EOF
473276a9 44713
a848cd7e
SC
44714 chmod +x bk-deps
44715 fi
44716
44717
44718
44719
44720 RESCOMP=
44721 SETFILE=
44722
44723 case ${BAKEFILE_HOST} in
44724 *-*-cygwin* | *-*-mingw32* )
44725 if test "$build" != "$host" ; then
44726 RESCOMP=$host_alias-windres
44727 else
44728 # Extract the first word of "windres", so it can be a program name with args.
44729set dummy windres; ac_word=$2
44730echo "$as_me:$LINENO: checking for $ac_word" >&5
44731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44732if test "${ac_cv_prog_RESCOMP+set}" = set; then
44733 echo $ECHO_N "(cached) $ECHO_C" >&6
44734else
44735 if test -n "$RESCOMP"; then
44736 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
44737else
44738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44739for as_dir in $PATH
44740do
44741 IFS=$as_save_IFS
44742 test -z "$as_dir" && as_dir=.
44743 for ac_exec_ext in '' $ac_executable_extensions; do
44744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44745 ac_cv_prog_RESCOMP="windres"
44746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44747 break 2
44748 fi
44749done
44750done
44751
44752 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
44753fi
44754fi
44755RESCOMP=$ac_cv_prog_RESCOMP
44756if test -n "$RESCOMP"; then
44757 echo "$as_me:$LINENO: result: $RESCOMP" >&5
44758echo "${ECHO_T}$RESCOMP" >&6
44759else
44760 echo "$as_me:$LINENO: result: no" >&5
44761echo "${ECHO_T}no" >&6
44762fi
44763
44764 fi
44765 ;;
44766
1e9e8aba 44767 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
44768 # Extract the first word of "Rez", so it can be a program name with args.
44769set dummy Rez; ac_word=$2
44770echo "$as_me:$LINENO: checking for $ac_word" >&5
44771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44772if test "${ac_cv_prog_RESCOMP+set}" = set; then
44773 echo $ECHO_N "(cached) $ECHO_C" >&6
44774else
44775 if test -n "$RESCOMP"; then
44776 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
44777else
44778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44779for as_dir in $PATH
44780do
44781 IFS=$as_save_IFS
44782 test -z "$as_dir" && as_dir=.
44783 for ac_exec_ext in '' $ac_executable_extensions; do
44784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44785 ac_cv_prog_RESCOMP="Rez"
44786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44787 break 2
44788 fi
44789done
44790done
44791
44792 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
44793fi
44794fi
44795RESCOMP=$ac_cv_prog_RESCOMP
44796if test -n "$RESCOMP"; then
44797 echo "$as_me:$LINENO: result: $RESCOMP" >&5
44798echo "${ECHO_T}$RESCOMP" >&6
44799else
44800 echo "$as_me:$LINENO: result: no" >&5
44801echo "${ECHO_T}no" >&6
44802fi
44803
44804 # Extract the first word of "SetFile", so it can be a program name with args.
44805set dummy SetFile; ac_word=$2
44806echo "$as_me:$LINENO: checking for $ac_word" >&5
44807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44808if test "${ac_cv_prog_SETFILE+set}" = set; then
44809 echo $ECHO_N "(cached) $ECHO_C" >&6
44810else
44811 if test -n "$SETFILE"; then
44812 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
44813else
44814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44815for as_dir in $PATH
44816do
44817 IFS=$as_save_IFS
44818 test -z "$as_dir" && as_dir=.
44819 for ac_exec_ext in '' $ac_executable_extensions; do
44820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44821 ac_cv_prog_SETFILE="SetFile"
44822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44823 break 2
44824 fi
44825done
44826done
44827
44828 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
44829fi
44830fi
44831SETFILE=$ac_cv_prog_SETFILE
44832if test -n "$SETFILE"; then
44833 echo "$as_me:$LINENO: result: $SETFILE" >&5
44834echo "${ECHO_T}$SETFILE" >&6
44835else
44836 echo "$as_me:$LINENO: result: no" >&5
44837echo "${ECHO_T}no" >&6
44838fi
44839
44840 ;;
44841 esac
44842
44843
44844
44845
44846
c9469659 44847 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 44848
dcc1b6ad 44849
c9469659 44850BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 44851
646b6ec1 44852
74b84332 44853
a848cd7e
SC
44854 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
44855if test "${enable_precomp_headers+set}" = set; then
44856 enableval="$enable_precomp_headers"
44857 bk_use_pch="$enableval"
44858fi;
44859
44860 GCC_PCH=0
44861
44862 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
44863 if test "x$GCC" = "xyes"; then
44864 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
44865echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
44866 cat >conftest.$ac_ext <<_ACEOF
44867/* confdefs.h. */
44868_ACEOF
44869cat confdefs.h >>conftest.$ac_ext
44870cat >>conftest.$ac_ext <<_ACEOF
44871/* end confdefs.h. */
44872
44873int
44874main ()
44875{
44876
44877 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
44878 #error "no pch support"
44879 #endif
44880 #if (__GNUC__ < 3)
44881 #error "no pch support"
44882 #endif
44883 #if (__GNUC__ == 3) && \
44884 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
44885 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
44886 #error "no pch support"
44887 #endif
44888
44889 ;
44890 return 0;
44891}
44892_ACEOF
44893rm -f conftest.$ac_objext
44894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44895 (eval $ac_compile) 2>conftest.er1
a848cd7e 44896 ac_status=$?
ac1cb8d3
VS
44897 grep -v '^ *+' conftest.er1 >conftest.err
44898 rm -f conftest.er1
44899 cat conftest.err >&5
a848cd7e
SC
44900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44901 (exit $ac_status); } &&
6ebeb4c7 44902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44904 (eval $ac_try) 2>&5
44905 ac_status=$?
44906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44907 (exit $ac_status); }; } &&
44908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44910 (eval $ac_try) 2>&5
44911 ac_status=$?
44912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44913 (exit $ac_status); }; }; then
44914
44915 echo "$as_me:$LINENO: result: yes" >&5
44916echo "${ECHO_T}yes" >&6
a848cd7e
SC
44917 GCC_PCH=1
44918
44919else
44920 echo "$as_me: failed program was:" >&5
44921sed 's/^/| /' conftest.$ac_ext >&5
44922
44923
44924 echo "$as_me:$LINENO: result: no" >&5
44925echo "${ECHO_T}no" >&6
44926
44927fi
ac1cb8d3 44928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44929 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
44930
44931D='$'
44932cat <<EOF >bk-make-pch
a848cd7e
SC
44933#!/bin/sh
44934
44935# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
44936# script. It is used to generated precompiled headers.
44937#
44938# Permission is given to use this file in any way.
44939
1e9e8aba
DE
44940outfile="${D}{1}"
44941header="${D}{2}"
a848cd7e
SC
44942shift
44943shift
44944
44945compiler=
44946headerfile=
1e9e8aba
DE
44947while test ${D}{#} -gt 0; do
44948 case "${D}{1}" in
a848cd7e 44949 -I* )
1e9e8aba
DE
44950 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
44951 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
44952 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
44953 fi
44954 ;;
44955 esac
1e9e8aba 44956 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
44957 shift
44958done
44959
1e9e8aba
DE
44960if test "x${D}{headerfile}" = "x" ; then
44961 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 44962else
1e9e8aba
DE
44963 if test -f ${D}{outfile} ; then
44964 rm -f ${D}{outfile}
a848cd7e 44965 else
1e9e8aba 44966 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 44967 fi
1e9e8aba 44968 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
44969 mkdir -p .deps
44970 # can do this because gcc is >= 3.4:
1e9e8aba
DE
44971 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
44972 exit ${D}{?}
a848cd7e
SC
44973fi
44974EOF
1e9e8aba 44975
a848cd7e
SC
44976 chmod +x bk-make-pch
44977 fi
44978 fi
44979 fi
44980
44981
44982
a848cd7e
SC
44983 COND_BUILD_DEBUG="#"
44984 if test "x$BUILD" = "xdebug" ; then
44985 COND_BUILD_DEBUG=""
44986 fi
44987
44988 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
44989 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
44990 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
44991 fi
44992
44993 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
44994 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
44995 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
44996 fi
44997
44998 COND_BUILD_DEBUG_UNICODE_0="#"
44999 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
45000 COND_BUILD_DEBUG_UNICODE_0=""
45001 fi
45002
45003 COND_BUILD_DEBUG_UNICODE_1="#"
45004 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
45005 COND_BUILD_DEBUG_UNICODE_1=""
45006 fi
45007
45008 COND_BUILD_RELEASE="#"
45009 if test "x$BUILD" = "xrelease" ; then
45010 COND_BUILD_RELEASE=""
45011 fi
45012
45013 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
45014 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
45015 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
45016 fi
45017
45018 COND_BUILD_RELEASE_UNICODE_0="#"
45019 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
45020 COND_BUILD_RELEASE_UNICODE_0=""
45021 fi
45022
45023 COND_BUILD_RELEASE_UNICODE_1="#"
45024 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
45025 COND_BUILD_RELEASE_UNICODE_1=""
45026 fi
45027
45028 COND_DEBUG_FLAG_1="#"
45029 if test "x$DEBUG_FLAG" = "x1" ; then
45030 COND_DEBUG_FLAG_1=""
45031 fi
45032
45033 COND_DEBUG_INFO_0="#"
45034 if test "x$DEBUG_INFO" = "x0" ; then
45035 COND_DEBUG_INFO_0=""
45036 fi
45037
45038 COND_DEBUG_INFO_1="#"
45039 if test "x$DEBUG_INFO" = "x1" ; then
45040 COND_DEBUG_INFO_1=""
45041 fi
45042
45043 COND_DEPS_TRACKING_0="#"
45044 if test "x$DEPS_TRACKING" = "x0" ; then
45045 COND_DEPS_TRACKING_0=""
45046 fi
45047
45048 COND_DEPS_TRACKING_1="#"
45049 if test "x$DEPS_TRACKING" = "x1" ; then
45050 COND_DEPS_TRACKING_1=""
45051 fi
45052
45053 COND_GCC_PCH_1="#"
45054 if test "x$GCC_PCH" = "x1" ; then
45055 COND_GCC_PCH_1=""
45056 fi
45057
45058 COND_MONOLITHIC_0="#"
45059 if test "x$MONOLITHIC" = "x0" ; then
45060 COND_MONOLITHIC_0=""
45061 fi
45062
45063 COND_MONOLITHIC_0_SHARED_0="#"
45064 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
45065 COND_MONOLITHIC_0_SHARED_0=""
45066 fi
45067
45068 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
45069 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
45070 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
45071 fi
45072
90970d69
DE
45073 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
45074 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45075 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
45076 fi
45077
a848cd7e
SC
45078 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
45079 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45080 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
45081 fi
45082
6671c68b
VZ
45083 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
45084 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45085 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
45086 fi
45087
a848cd7e
SC
45088 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
45089 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
45090 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
45091 fi
45092
ceec2216
RL
45093 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
45094 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45095 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
45096 fi
45097
a848cd7e
SC
45098 COND_MONOLITHIC_0_SHARED_1="#"
45099 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
45100 COND_MONOLITHIC_0_SHARED_1=""
45101 fi
45102
45103 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
45104 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
45105 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
45106 fi
45107
90970d69
DE
45108 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
45109 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45110 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
45111 fi
45112
a848cd7e
SC
45113 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
45114 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45115 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
45116 fi
45117
6671c68b
VZ
45118 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
45119 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45120 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
45121 fi
45122
a848cd7e
SC
45123 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
45124 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
45125 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
45126 fi
45127
ceec2216
RL
45128 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
45129 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45130 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
45131 fi
45132
a848cd7e
SC
45133 COND_MONOLITHIC_0_USE_ODBC_1="#"
45134 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
45135 COND_MONOLITHIC_0_USE_ODBC_1=""
45136 fi
45137
45138 COND_MONOLITHIC_1="#"
45139 if test "x$MONOLITHIC" = "x1" ; then
45140 COND_MONOLITHIC_1=""
45141 fi
45142
45143 COND_MONOLITHIC_1_SHARED_0="#"
45144 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
45145 COND_MONOLITHIC_1_SHARED_0=""
45146 fi
45147
45148 COND_MONOLITHIC_1_SHARED_1="#"
45149 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
45150 COND_MONOLITHIC_1_SHARED_1=""
45151 fi
45152
45153 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
45154 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
45155 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
45156 fi
45157
45158 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
45159 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
45160 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
45161 fi
45162
eb730a0c
JS
45163 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
45164 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45165 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
45166 fi
45167
a848cd7e
SC
45168 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
45169 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45170 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
45171 fi
45172
45173 COND_PLATFORM_MACOSX_1="#"
45174 if test "x$PLATFORM_MACOSX" = "x1" ; then
45175 COND_PLATFORM_MACOSX_1=""
45176 fi
45177
a30f955f
VS
45178 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
45179 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
45180 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
45181 fi
45182
a848cd7e
SC
45183 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
45184 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
45185 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
45186 fi
45187
45188 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
45189 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
45190 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
45191 fi
45192
45193 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
45194 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
45195 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
45196 fi
45197
fc480dc1
DE
45198 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
45199 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45200 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
45201 fi
45202
1e9e8aba
DE
45203 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45204 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45205 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45206 fi
45207
ebee3cd0
VS
45208 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
45209 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
45210 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
45211 fi
45212
45213 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
45214 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
45215 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
45216 fi
45217
a848cd7e
SC
45218 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
45219 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
45220 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
45221 fi
45222
45223 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
45224 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45225 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
45226 fi
45227
b48a2016
DE
45228 COND_PLATFORM_MACOS_1="#"
45229 if test "x$PLATFORM_MACOS" = "x1" ; then
45230 COND_PLATFORM_MACOS_1=""
45231 fi
45232
083508af
MW
45233 COND_PLATFORM_MAC_1="#"
45234 if test "x$PLATFORM_MAC" = "x1" ; then
45235 COND_PLATFORM_MAC_1=""
45236 fi
45237
83d8eb47
MW
45238 COND_PLATFORM_MSDOS_1="#"
45239 if test "x$PLATFORM_MSDOS" = "x1" ; then
45240 COND_PLATFORM_MSDOS_1=""
45241 fi
45242
a848cd7e
SC
45243 COND_PLATFORM_OS2_1="#"
45244 if test "x$PLATFORM_OS2" = "x1" ; then
45245 COND_PLATFORM_OS2_1=""
45246 fi
45247
45248 COND_PLATFORM_UNIX_0="#"
45249 if test "x$PLATFORM_UNIX" = "x0" ; then
45250 COND_PLATFORM_UNIX_0=""
45251 fi
45252
45253 COND_PLATFORM_UNIX_1="#"
45254 if test "x$PLATFORM_UNIX" = "x1" ; then
45255 COND_PLATFORM_UNIX_1=""
45256 fi
45257
45258 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
45259 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
45260 COND_PLATFORM_UNIX_1_USE_GUI_1=""
45261 fi
45262
45263 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
45264 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
45265 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
45266 fi
45267
45268 COND_PLATFORM_WIN32_0="#"
45269 if test "x$PLATFORM_WIN32" = "x0" ; then
45270 COND_PLATFORM_WIN32_0=""
45271 fi
45272
45273 COND_PLATFORM_WIN32_1="#"
45274 if test "x$PLATFORM_WIN32" = "x1" ; then
45275 COND_PLATFORM_WIN32_1=""
45276 fi
45277
45278 COND_SHARED_0="#"
45279 if test "x$SHARED" = "x0" ; then
45280 COND_SHARED_0=""
45281 fi
45282
083508af
MW
45283 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
45284 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
45285 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
45286 fi
45287
45288 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
45289 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45290 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
45291 fi
45292
45293 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
45294 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
45295 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
45296 fi
45297
a848cd7e
SC
45298 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
45299 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45300 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
45301 fi
45302
45303 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45304 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45305 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45306 fi
45307
45308 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45309 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45310 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45311 fi
45312
45313 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45314 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45315 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45316 fi
45317
083508af
MW
45318 COND_SHARED_0_USE_XRC_1="#"
45319 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45320 COND_SHARED_0_USE_XRC_1=""
45321 fi
45322
a848cd7e
SC
45323 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
45324 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
45325 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
45326 fi
45327
45328 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
45329 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
45330 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
45331 fi
45332
45333 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
45334 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
45335 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
45336 fi
45337
45338 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
45339 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
45340 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
45341 fi
45342
45343 COND_SHARED_1="#"
45344 if test "x$SHARED" = "x1" ; then
45345 COND_SHARED_1=""
45346 fi
45347
45348 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
45349 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45350 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
45351 fi
45352
083508af
MW
45353 COND_SHARED_1_USE_XRC_1="#"
45354 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45355 COND_SHARED_1_USE_XRC_1=""
45356 fi
45357
a30f955f
VS
45358 COND_TOOLKIT_="#"
45359 if test "x$TOOLKIT" = "x" ; then
45360 COND_TOOLKIT_=""
45361 fi
45362
a848cd7e
SC
45363 COND_TOOLKIT_COCOA="#"
45364 if test "x$TOOLKIT" = "xCOCOA" ; then
45365 COND_TOOLKIT_COCOA=""
45366 fi
45367
a49baeab
DE
45368 COND_TOOLKIT_COCOA_USE_GUI_1="#"
45369 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
45370 COND_TOOLKIT_COCOA_USE_GUI_1=""
45371 fi
45372
a848cd7e
SC
45373 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
45374 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45375 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
45376 fi
45377
45378 COND_TOOLKIT_GTK="#"
45379 if test "x$TOOLKIT" = "xGTK" ; then
45380 COND_TOOLKIT_GTK=""
45381 fi
45382
45383 COND_TOOLKIT_GTK_USE_GUI_1="#"
45384 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
45385 COND_TOOLKIT_GTK_USE_GUI_1=""
45386 fi
45387
45388 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
45389 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45390 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
45391 fi
45392
45393 COND_TOOLKIT_MAC="#"
45394 if test "x$TOOLKIT" = "xMAC" ; then
45395 COND_TOOLKIT_MAC=""
45396 fi
45397
45398 COND_TOOLKIT_MAC_USE_GUI_1="#"
45399 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45400 COND_TOOLKIT_MAC_USE_GUI_1=""
45401 fi
45402
45403 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45404 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45405 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45406 fi
45407
45408 COND_TOOLKIT_MGL="#"
45409 if test "x$TOOLKIT" = "xMGL" ; then
45410 COND_TOOLKIT_MGL=""
45411 fi
45412
45413 COND_TOOLKIT_MGL_USE_GUI_1="#"
45414 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
45415 COND_TOOLKIT_MGL_USE_GUI_1=""
45416 fi
45417
45418 COND_TOOLKIT_MOTIF="#"
45419 if test "x$TOOLKIT" = "xMOTIF" ; then
45420 COND_TOOLKIT_MOTIF=""
45421 fi
45422
45423 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
45424 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
45425 COND_TOOLKIT_MOTIF_USE_GUI_1=""
45426 fi
45427
45428 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
45429 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45430 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
45431 fi
45432
45433 COND_TOOLKIT_MSW="#"
45434 if test "x$TOOLKIT" = "xMSW" ; then
45435 COND_TOOLKIT_MSW=""
45436 fi
45437
45438 COND_TOOLKIT_MSW_USE_GUI_1="#"
45439 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
45440 COND_TOOLKIT_MSW_USE_GUI_1=""
45441 fi
45442
45443 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
45444 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45445 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
45446 fi
45447
0ee4059d
DE
45448 COND_TOOLKIT_MSW_WXUNIV_0="#"
45449 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45450 COND_TOOLKIT_MSW_WXUNIV_0=""
45451 fi
45452
a848cd7e
SC
45453 COND_TOOLKIT_PM="#"
45454 if test "x$TOOLKIT" = "xPM" ; then
45455 COND_TOOLKIT_PM=""
45456 fi
45457
45458 COND_TOOLKIT_PM_USE_GUI_1="#"
45459 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
45460 COND_TOOLKIT_PM_USE_GUI_1=""
45461 fi
45462
45463 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
45464 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45465 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
45466 fi
45467
3fd9c298
DE
45468 COND_TOOLKIT_WINCE="#"
45469 if test "x$TOOLKIT" = "xWINCE" ; then
45470 COND_TOOLKIT_WINCE=""
45471 fi
45472
45473 COND_TOOLKIT_WINCE_USE_GUI_1="#"
45474 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
45475 COND_TOOLKIT_WINCE_USE_GUI_1=""
45476 fi
45477
45478 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
45479 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45480 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
45481 fi
45482
0ee4059d
DE
45483 COND_TOOLKIT_WINCE_WXUNIV_0="#"
45484 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
45485 COND_TOOLKIT_WINCE_WXUNIV_0=""
45486 fi
45487
a848cd7e
SC
45488 COND_TOOLKIT_X11="#"
45489 if test "x$TOOLKIT" = "xX11" ; then
45490 COND_TOOLKIT_X11=""
45491 fi
45492
45493 COND_TOOLKIT_X11_USE_GUI_1="#"
45494 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
45495 COND_TOOLKIT_X11_USE_GUI_1=""
45496 fi
45497
45498 COND_UNICODE_1="#"
45499 if test "x$UNICODE" = "x1" ; then
45500 COND_UNICODE_1=""
45501 fi
45502
45503 COND_USE_EXCEPTIONS_0="#"
45504 if test "x$USE_EXCEPTIONS" = "x0" ; then
45505 COND_USE_EXCEPTIONS_0=""
45506 fi
45507
45508 COND_USE_EXCEPTIONS_1="#"
45509 if test "x$USE_EXCEPTIONS" = "x1" ; then
45510 COND_USE_EXCEPTIONS_1=""
45511 fi
45512
45513 COND_USE_GUI_0="#"
45514 if test "x$USE_GUI" = "x0" ; then
45515 COND_USE_GUI_0=""
45516 fi
45517
45518 COND_USE_GUI_1="#"
45519 if test "x$USE_GUI" = "x1" ; then
45520 COND_USE_GUI_1=""
45521 fi
45522
45523 COND_USE_GUI_1_WXUNIV_0="#"
45524 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45525 COND_USE_GUI_1_WXUNIV_0=""
45526 fi
45527
45528 COND_USE_GUI_1_WXUNIV_1="#"
45529 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
45530 COND_USE_GUI_1_WXUNIV_1=""
45531 fi
45532
45533 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45534 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45535 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45536 fi
45537
45538 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45539 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45540 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45541 fi
45542
45543 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45544 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45545 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45546 fi
45547
083508af
MW
45548 COND_USE_ODBC_1="#"
45549 if test "x$USE_ODBC" = "x1" ; then
45550 COND_USE_ODBC_1=""
45551 fi
45552
45553 COND_USE_OPENGL_1="#"
45554 if test "x$USE_OPENGL" = "x1" ; then
45555 COND_USE_OPENGL_1=""
45556 fi
45557
a848cd7e
SC
45558 COND_USE_PLUGINS_0="#"
45559 if test "x$USE_PLUGINS" = "x0" ; then
45560 COND_USE_PLUGINS_0=""
45561 fi
45562
0b78747f
MW
45563 COND_USE_RTTI_0="#"
45564 if test "x$USE_RTTI" = "x0" ; then
45565 COND_USE_RTTI_0=""
45566 fi
45567
45568 COND_USE_RTTI_1="#"
45569 if test "x$USE_RTTI" = "x1" ; then
45570 COND_USE_RTTI_1=""
45571 fi
45572
a848cd7e
SC
45573 COND_USE_SOSYMLINKS_1="#"
45574 if test "x$USE_SOSYMLINKS" = "x1" ; then
45575 COND_USE_SOSYMLINKS_1=""
45576 fi
45577
eb730a0c
JS
45578 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
45579 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45580 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
45581 fi
45582
a848cd7e
SC
45583 COND_USE_SOVERLINUX_1="#"
45584 if test "x$USE_SOVERLINUX" = "x1" ; then
45585 COND_USE_SOVERLINUX_1=""
45586 fi
45587
45588 COND_USE_SOVERSION_0="#"
45589 if test "x$USE_SOVERSION" = "x0" ; then
45590 COND_USE_SOVERSION_0=""
45591 fi
45592
45593 COND_USE_SOVERSOLARIS_1="#"
45594 if test "x$USE_SOVERSOLARIS" = "x1" ; then
45595 COND_USE_SOVERSOLARIS_1=""
45596 fi
45597
0b78747f
MW
45598 COND_USE_THREADS_0="#"
45599 if test "x$USE_THREADS" = "x0" ; then
45600 COND_USE_THREADS_0=""
45601 fi
45602
45603 COND_USE_THREADS_1="#"
45604 if test "x$USE_THREADS" = "x1" ; then
45605 COND_USE_THREADS_1=""
45606 fi
45607
a13a7f89
RL
45608 COND_USE_XRC_1="#"
45609 if test "x$USE_XRC" = "x1" ; then
45610 COND_USE_XRC_1=""
45611 fi
45612
eb730a0c
JS
45613 COND_WINDOWS_IMPLIB_1="#"
45614 if test "x$WINDOWS_IMPLIB" = "x1" ; then
45615 COND_WINDOWS_IMPLIB_1=""
45616 fi
45617
a848cd7e
SC
45618 COND_WITH_PLUGIN_SDL_1="#"
45619 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
45620 COND_WITH_PLUGIN_SDL_1=""
45621 fi
45622
1e6eb025
VZ
45623 COND_WXUNIV_0="#"
45624 if test "x$WXUNIV" = "x0" ; then
45625 COND_WXUNIV_0=""
45626 fi
45627
a848cd7e
SC
45628 COND_WXUNIV_1="#"
45629 if test "x$WXUNIV" = "x1" ; then
45630 COND_WXUNIV_1=""
45631 fi
45632
45633 COND_WXUSE_EXPAT_BUILTIN="#"
45634 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
45635 COND_WXUSE_EXPAT_BUILTIN=""
45636 fi
45637
45638 COND_WXUSE_LIBJPEG_BUILTIN="#"
45639 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45640 COND_WXUSE_LIBJPEG_BUILTIN=""
45641 fi
45642
45643 COND_WXUSE_LIBPNG_BUILTIN="#"
45644 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45645 COND_WXUSE_LIBPNG_BUILTIN=""
45646 fi
45647
45648 COND_WXUSE_LIBTIFF_BUILTIN="#"
45649 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45650 COND_WXUSE_LIBTIFF_BUILTIN=""
45651 fi
45652
45653 COND_WXUSE_ODBC_BUILTIN="#"
45654 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
45655 COND_WXUSE_ODBC_BUILTIN=""
45656 fi
45657
45658 COND_WXUSE_REGEX_BUILTIN="#"
45659 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
45660 COND_WXUSE_REGEX_BUILTIN=""
45661 fi
45662
45663 COND_WXUSE_ZLIB_BUILTIN="#"
45664 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
45665 COND_WXUSE_ZLIB_BUILTIN=""
45666 fi
45667
45668
45669
810b94f0
MW
45670 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
45671 { { 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
45672echo "$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;}
45673 { (exit 1); exit 1; }; }
45674 fi
45675
2057db16
VS
45676 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
45677 { { 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
45678echo "$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;}
45679 { (exit 1); exit 1; }; }
45680 fi
45681
a848cd7e 45682
ceec2216
RL
45683if test "$wxUSE_SHARED" = "yes"; then
45684
45685 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
45686 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
45687
5b674b9d
DE
45688 case "${host}" in
45689 *-pc-os2_emx | *-pc-os2-emx )
45690 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
45691 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
45692 cp -p ${srcdir}/src/os2/dllnames.sh .
45693 cp -p ${srcdir}/src/os2/dllar.sh .
45694 ;;
45695 esac
ceec2216
RL
45696else
45697
45698 EXE_LINKER="$CXX -o"
45699
45700fi
69120ee4
VZ
45701if test "$wxUSE_OMF" = "yes"; then
45702 case "${host}" in
45703 *-pc-os2_emx | *-pc-os2-emx )
45704 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
45705 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
45706 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
45707 ;;
45708 esac
45709fi
a848cd7e 45710
c08ebc62 45711if test $GCC_PCH = 1 ; then
254e8e29 45712 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 45713fi
a848cd7e
SC
45714
45715
45716SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
45717
45718
45719
45720
45721
45722
45723
45724
45725
45726
45727
45728
45729
45730
45731
45732
45733
45734
45735
45736
45737
45738
45739
45740
45741
45742
45743
45744
45745
45746
45747
45748
45749
45750
45751
45752
45753
45754
45755
45756
45757
45758
a848cd7e
SC
45759
45760
45761
45762
45763
45764
45765
45766
45767
45768
45769
45770
45771
45772
45773
45774
45775
45776
ddd14b14 45777
a848cd7e
SC
45778
45779
45780echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45781echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45782set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45783if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45784 echo $ECHO_N "(cached) $ECHO_C" >&6
45785else
45786 cat >conftest.make <<\_ACEOF
45787all:
45788 @echo 'ac_maketemp="$(MAKE)"'
45789_ACEOF
45790# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45791eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45792if test -n "$ac_maketemp"; then
45793 eval ac_cv_prog_make_${ac_make}_set=yes
45794else
45795 eval ac_cv_prog_make_${ac_make}_set=no
45796fi
45797rm -f conftest.make
45798fi
45799if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45800 echo "$as_me:$LINENO: result: yes" >&5
45801echo "${ECHO_T}yes" >&6
45802 SET_MAKE=
45803else
45804 echo "$as_me:$LINENO: result: no" >&5
45805echo "${ECHO_T}no" >&6
45806 SET_MAKE="MAKE=${MAKE-make}"
45807fi
45808
45809
a848cd7e 45810
ceec2216
RL
45811 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
45812
a848cd7e 45813
ceec2216 45814 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 45815
a848cd7e 45816
ceec2216 45817 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 45818
ceec2216
RL
45819
45820 ac_config_files="$ac_config_files version-script Makefile"
45821
45822
45823 ac_config_commands="$ac_config_commands wx-config
45824 "
a848cd7e
SC
45825
45826
9103d280 45827
1c14217d 45828if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
45829if test "$wxUSE_GUI" = "yes"; then
45830 SUBDIRS="samples demos utils contrib"
45831else SUBDIRS="samples utils"
45832fi
45833
45834
45835
45836# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
45837if test "${with_cppunit_prefix+set}" = set; then
45838 withval="$with_cppunit_prefix"
45839 cppunit_config_prefix="$withval"
45840else
45841 cppunit_config_prefix=""
45842fi;
45843
45844# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
45845if test "${with_cppunit_exec_prefix+set}" = set; then
45846 withval="$with_cppunit_exec_prefix"
45847 cppunit_config_exec_prefix="$withval"
45848else
45849 cppunit_config_exec_prefix=""
45850fi;
45851
45852 if test x$cppunit_config_exec_prefix != x ; then
45853 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
45854 if test x${CPPUNIT_CONFIG+set} != xset ; then
45855 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
45856 fi
45857 fi
45858 if test x$cppunit_config_prefix != x ; then
45859 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
45860 if test x${CPPUNIT_CONFIG+set} != xset ; then
45861 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
45862 fi
45863 fi
45864
45865 # Extract the first word of "cppunit-config", so it can be a program name with args.
45866set dummy cppunit-config; ac_word=$2
45867echo "$as_me:$LINENO: checking for $ac_word" >&5
45868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45869if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
45870 echo $ECHO_N "(cached) $ECHO_C" >&6
45871else
45872 case $CPPUNIT_CONFIG in
45873 [\\/]* | ?:[\\/]*)
45874 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
45875 ;;
45876 *)
45877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45878for as_dir in $PATH
45879do
45880 IFS=$as_save_IFS
45881 test -z "$as_dir" && as_dir=.
45882 for ac_exec_ext in '' $ac_executable_extensions; do
45883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45884 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45886 break 2
45887 fi
45888done
45889done
45890
45891 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
45892 ;;
45893esac
45894fi
45895CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
45896
45897if test -n "$CPPUNIT_CONFIG"; then
45898 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
45899echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
45900else
45901 echo "$as_me:$LINENO: result: no" >&5
45902echo "${ECHO_T}no" >&6
45903fi
45904
45905 cppunit_version_min=1.8.0
45906
45907 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
45908echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
45909 no_cppunit=""
45910 if test "$CPPUNIT_CONFIG" = "no" ; then
45911 no_cppunit=yes
45912 else
45913 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
45914 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
45915 cppunit_version=`$CPPUNIT_CONFIG --version`
45916
45917 cppunit_major_version=`echo $cppunit_version | \
45918 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45919 cppunit_minor_version=`echo $cppunit_version | \
45920 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45921 cppunit_micro_version=`echo $cppunit_version | \
45922 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45923
45924 cppunit_major_min=`echo $cppunit_version_min | \
45925 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45926 cppunit_minor_min=`echo $cppunit_version_min | \
45927 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45928 cppunit_micro_min=`echo $cppunit_version_min | \
45929 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45930
45931 cppunit_version_proper=`expr \
45932 $cppunit_major_version \> $cppunit_major_min \| \
45933 $cppunit_major_version \= $cppunit_major_min \& \
45934 $cppunit_minor_version \> $cppunit_minor_min \| \
45935 $cppunit_major_version \= $cppunit_major_min \& \
45936 $cppunit_minor_version \= $cppunit_minor_min \& \
45937 $cppunit_micro_version \>= $cppunit_micro_min `
45938
45939 if test "$cppunit_version_proper" = "1" ; then
45940 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
45941echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
45942 else
45943 echo "$as_me:$LINENO: result: no" >&5
45944echo "${ECHO_T}no" >&6
45945 no_cppunit=yes
45946 fi
45947 fi
45948
45949 if test "x$no_cppunit" = x ; then
c2218763 45950 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
45951 else
45952 CPPUNIT_CFLAGS=""
45953 CPPUNIT_LIBS=""
c2218763 45954 :
a848cd7e
SC
45955 fi
45956
45957
45958
45959
45960
45961for subdir in `echo $SUBDIRS`; do
45962 if test -d ${srcdir}/${subdir} ; then
45963 if test "$wxUSE_GUI" = "yes"; then
45964 if test ${subdir} = "samples"; then
45965 makefiles="samples/Makefile.in $makefiles"
45966 for sample in `echo $SAMPLES_SUBDIRS`; do
45967 if test -d $srcdir/samples/$sample; then
45968 makefiles="samples/$sample/Makefile.in $makefiles"
45969 fi
45970 done
9c112555
MW
45971 else
45972 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
45973 eval "disabled=\$$disabled_var"
45974 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
45975 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
45976 fi
45977 else if test ${subdir} = "samples"; then
45978 makefiles="samples/Makefile.in samples/console/Makefile.in"
45979 elif test ${subdir} = "utils"; then
6537ccf8
VS
45980 makefiles=""
45981 for util in HelpGen tex2rtf ; do
45982 if test -d $srcdir/utils/$util ; then
45983 makefiles="utils/$util/Makefile.in \
45984 utils/$util/src/Makefile.in \
45985 $makefiles"
45986 fi
45987 done
a848cd7e
SC
45988 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
45989 fi
45990 fi
45991
45992 for mkin in $makefiles ; do
45993 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
45994 ac_config_files="$ac_config_files $mk"
45995
45996 done
45997 fi
45998done
1c14217d 45999fi
a848cd7e
SC
46000cat >confcache <<\_ACEOF
46001# This file is a shell script that caches the results of configure
46002# tests run on this system so they can be shared between configure
46003# scripts and configure runs, see configure's option --config-cache.
46004# It is not useful on other systems. If it contains results you don't
46005# want to keep, you may remove or edit it.
46006#
46007# config.status only pays attention to the cache file if you give it
46008# the --recheck option to rerun configure.
46009#
46010# `ac_cv_env_foo' variables (set or unset) will be overridden when
46011# loading this file, other *unset* `ac_cv_foo' will be assigned the
46012# following values.
46013
46014_ACEOF
46015
46016# The following way of writing the cache mishandles newlines in values,
46017# but we know of no workaround that is simple, portable, and efficient.
46018# So, don't put newlines in cache variables' values.
46019# Ultrix sh set writes to stderr and can't be redirected directly,
46020# and sets the high bit in the cache file unless we assign to the vars.
46021{
46022 (set) 2>&1 |
46023 case `(ac_space=' '; set | grep ac_space) 2>&1` in
46024 *ac_space=\ *)
46025 # `set' does not quote correctly, so add quotes (double-quote
46026 # substitution turns \\\\ into \\, and sed turns \\ into \).
46027 sed -n \
ac1cb8d3
VS
46028 "s/'/'\\\\''/g;
46029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
46030 ;;
46031 *)
46032 # `set' quotes correctly as required by POSIX, so do not add quotes.
46033 sed -n \
ac1cb8d3 46034 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
46035 ;;
46036 esac;
46037} |
46038 sed '
46039 t clear
46040 : clear
46041 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46042 t end
46043 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46044 : end' >>confcache
46045if diff $cache_file confcache >/dev/null 2>&1; then :; else
46046 if test -w $cache_file; then
46047 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
46048 cat confcache >$cache_file
46049 else
46050 echo "not updating unwritable cache $cache_file"
46051 fi
46052fi
46053rm -f confcache
46054
46055test "x$prefix" = xNONE && prefix=$ac_default_prefix
46056# Let make expand exec_prefix.
46057test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46058
46059# VPATH may cause trouble with some makes, so we remove $(srcdir),
46060# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46061# trailing colons and then remove the whole line if VPATH becomes empty
46062# (actually we leave an empty line to preserve line numbers).
46063if test "x$srcdir" = x.; then
ac1cb8d3 46064 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
46065s/:*\$(srcdir):*/:/;
46066s/:*\${srcdir}:*/:/;
46067s/:*@srcdir@:*/:/;
ac1cb8d3 46068s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 46069s/:*$//;
ac1cb8d3 46070s/^[^=]*=[ ]*$//;
a848cd7e
SC
46071}'
46072fi
46073
46074DEFS=-DHAVE_CONFIG_H
46075
46076ac_libobjs=
46077ac_ltlibobjs=
46078for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46079 # 1. Remove the extension, and $U if already installed.
46080 ac_i=`echo "$ac_i" |
ac1cb8d3 46081 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
46082 # 2. Add them.
46083 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
46084 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
46085done
46086LIBOBJS=$ac_libobjs
46087
46088LTLIBOBJS=$ac_ltlibobjs
46089
46090
46091
46092: ${CONFIG_STATUS=./config.status}
46093ac_clean_files_save=$ac_clean_files
46094ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46095{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46096echo "$as_me: creating $CONFIG_STATUS" >&6;}
46097cat >$CONFIG_STATUS <<_ACEOF
46098#! $SHELL
46099# Generated by $as_me.
46100# Run this file to recreate the current configuration.
46101# Compiler output produced by configure, useful for debugging
46102# configure, is in config.log if it exists.
46103
46104debug=false
46105ac_cs_recheck=false
46106ac_cs_silent=false
46107SHELL=\${CONFIG_SHELL-$SHELL}
46108_ACEOF
46109
46110cat >>$CONFIG_STATUS <<\_ACEOF
46111## --------------------- ##
46112## M4sh Initialization. ##
46113## --------------------- ##
46114
46115# Be Bourne compatible
46116if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46117 emulate sh
46118 NULLCMD=:
46119 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
46120 # is contrary to our usage. Disable this feature.
46121 alias -g '${1+"$@"}'='"$@"'
46122elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46123 set -o posix
46124fi
ac1cb8d3 46125DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
46126
46127# Support unset when possible.
ac1cb8d3 46128if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
46129 as_unset=unset
46130else
46131 as_unset=false
46132fi
46133
46134
46135# Work around bugs in pre-3.0 UWIN ksh.
46136$as_unset ENV MAIL MAILPATH
46137PS1='$ '
46138PS2='> '
46139PS4='+ '
46140
46141# NLS nuisances.
46142for as_var in \
46143 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46144 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46145 LC_TELEPHONE LC_TIME
46146do
ac1cb8d3 46147 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
46148 eval $as_var=C; export $as_var
46149 else
46150 $as_unset $as_var
46151 fi
46152done
46153
46154# Required to use basename.
46155if expr a : '\(a\)' >/dev/null 2>&1; then
46156 as_expr=expr
46157else
46158 as_expr=false
46159fi
46160
46161if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
46162 as_basename=basename
46163else
46164 as_basename=false
46165fi
46166
46167
46168# Name of the executable.
46169as_me=`$as_basename "$0" ||
46170$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46171 X"$0" : 'X\(//\)$' \| \
46172 X"$0" : 'X\(/\)$' \| \
46173 . : '\(.\)' 2>/dev/null ||
46174echo X/"$0" |
46175 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
46176 /^X\/\(\/\/\)$/{ s//\1/; q; }
46177 /^X\/\(\/\).*/{ s//\1/; q; }
46178 s/.*/./; q'`
46179
46180
46181# PATH needs CR, and LINENO needs CR and PATH.
46182# Avoid depending upon Character Ranges.
46183as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46184as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46185as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46186as_cr_digits='0123456789'
46187as_cr_alnum=$as_cr_Letters$as_cr_digits
46188
46189# The user is always right.
46190if test "${PATH_SEPARATOR+set}" != set; then
46191 echo "#! /bin/sh" >conf$$.sh
46192 echo "exit 0" >>conf$$.sh
46193 chmod +x conf$$.sh
46194 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46195 PATH_SEPARATOR=';'
46196 else
46197 PATH_SEPARATOR=:
46198 fi
46199 rm -f conf$$.sh
46200fi
46201
46202
46203 as_lineno_1=$LINENO
46204 as_lineno_2=$LINENO
46205 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46206 test "x$as_lineno_1" != "x$as_lineno_2" &&
46207 test "x$as_lineno_3" = "x$as_lineno_2" || {
46208 # Find who we are. Look in the path if we contain no path at all
46209 # relative or not.
46210 case $0 in
46211 *[\\/]* ) as_myself=$0 ;;
46212 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46213for as_dir in $PATH
46214do
46215 IFS=$as_save_IFS
46216 test -z "$as_dir" && as_dir=.
46217 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46218done
46219
46220 ;;
46221 esac
46222 # We did not find ourselves, most probably we were run as `sh COMMAND'
46223 # in which case we are not to be found in the path.
46224 if test "x$as_myself" = x; then
46225 as_myself=$0
46226 fi
46227 if test ! -f "$as_myself"; then
46228 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46229echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46230 { (exit 1); exit 1; }; }
46231 fi
46232 case $CONFIG_SHELL in
46233 '')
46234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46235for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46236do
46237 IFS=$as_save_IFS
46238 test -z "$as_dir" && as_dir=.
46239 for as_base in sh bash ksh sh5; do
46240 case $as_dir in
46241 /*)
46242 if ("$as_dir/$as_base" -c '
46243 as_lineno_1=$LINENO
46244 as_lineno_2=$LINENO
46245 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46246 test "x$as_lineno_1" != "x$as_lineno_2" &&
46247 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
46248 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46249 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46250 CONFIG_SHELL=$as_dir/$as_base
46251 export CONFIG_SHELL
46252 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46253 fi;;
46254 esac
46255 done
46256done
46257;;
46258 esac
46259
46260 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46261 # uniformly replaced by the line number. The first 'sed' inserts a
46262 # line-number line before each line; the second 'sed' does the real
46263 # work. The second script uses 'N' to pair each line-number line
46264 # with the numbered line, and appends trailing '-' during
46265 # substitution so that $LINENO is not a special case at line end.
46266 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46267 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
46268 sed '=' <$as_myself |
46269 sed '
46270 N
46271 s,$,-,
46272 : loop
46273 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46274 t loop
46275 s,-$,,
46276 s,^['$as_cr_digits']*\n,,
46277 ' >$as_me.lineno &&
46278 chmod +x $as_me.lineno ||
46279 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46280echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46281 { (exit 1); exit 1; }; }
46282
46283 # Don't try to exec as it changes $[0], causing all sort of problems
46284 # (the dirname of $[0] is not the place where we might find the
46285 # original and so on. Autoconf is especially sensible to this).
46286 . ./$as_me.lineno
46287 # Exit status is that of the last command.
46288 exit
46289}
46290
46291
46292case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46293 *c*,-n*) ECHO_N= ECHO_C='
46294' ECHO_T=' ' ;;
46295 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46296 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
46297esac
46298
46299if expr a : '\(a\)' >/dev/null 2>&1; then
46300 as_expr=expr
46301else
46302 as_expr=false
46303fi
46304
46305rm -f conf$$ conf$$.exe conf$$.file
46306echo >conf$$.file
46307if ln -s conf$$.file conf$$ 2>/dev/null; then
46308 # We could just check for DJGPP; but this test a) works b) is more generic
46309 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46310 if test -f conf$$.exe; then
46311 # Don't use ln at all; we don't have any links
46312 as_ln_s='cp -p'
46313 else
46314 as_ln_s='ln -s'
46315 fi
46316elif ln conf$$.file conf$$ 2>/dev/null; then
46317 as_ln_s=ln
46318else
46319 as_ln_s='cp -p'
46320fi
46321rm -f conf$$ conf$$.exe conf$$.file
46322
46323if mkdir -p . 2>/dev/null; then
46324 as_mkdir_p=:
46325else
ac1cb8d3 46326 test -d ./-p && rmdir ./-p
a848cd7e
SC
46327 as_mkdir_p=false
46328fi
46329
46330as_executable_p="test -f"
46331
46332# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 46333as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46334
46335# Sed expression to map a string onto a valid variable name.
ac1cb8d3 46336as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
46337
46338
46339# IFS
46340# We need space, tab and new line, in precisely that order.
46341as_nl='
46342'
46343IFS=" $as_nl"
46344
46345# CDPATH.
46346$as_unset CDPATH
46347
46348exec 6>&1
46349
46350# Open the log real soon, to keep \$[0] and so on meaningful, and to
46351# report actual input values of CONFIG_FILES etc. instead of their
46352# values after options handling. Logging --version etc. is OK.
46353exec 5>>config.log
46354{
46355 echo
46356 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46357## Running $as_me. ##
46358_ASBOX
46359} >&5
46360cat >&5 <<_CSEOF
46361
dd8df4fc 46362This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 46363generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
46364
46365 CONFIG_FILES = $CONFIG_FILES
46366 CONFIG_HEADERS = $CONFIG_HEADERS
46367 CONFIG_LINKS = $CONFIG_LINKS
46368 CONFIG_COMMANDS = $CONFIG_COMMANDS
46369 $ $0 $@
46370
46371_CSEOF
46372echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
46373echo >&5
46374_ACEOF
46375
46376# Files that config.status was made for.
46377if test -n "$ac_config_files"; then
46378 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
46379fi
46380
46381if test -n "$ac_config_headers"; then
46382 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
46383fi
46384
46385if test -n "$ac_config_links"; then
46386 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
46387fi
46388
46389if test -n "$ac_config_commands"; then
46390 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
46391fi
46392
46393cat >>$CONFIG_STATUS <<\_ACEOF
46394
46395ac_cs_usage="\
46396\`$as_me' instantiates files from templates according to the
46397current configuration.
46398
46399Usage: $0 [OPTIONS] [FILE]...
46400
46401 -h, --help print this help, then exit
46402 -V, --version print version number, then exit
46403 -q, --quiet do not print progress messages
46404 -d, --debug don't remove temporary files
46405 --recheck update $as_me by reconfiguring in the same conditions
46406 --file=FILE[:TEMPLATE]
ac1cb8d3 46407 instantiate the configuration file FILE
a848cd7e 46408 --header=FILE[:TEMPLATE]
ac1cb8d3 46409 instantiate the configuration header FILE
a848cd7e
SC
46410
46411Configuration files:
46412$config_files
46413
46414Configuration headers:
46415$config_headers
46416
46417Configuration commands:
46418$config_commands
46419
46420Report bugs to <bug-autoconf@gnu.org>."
46421_ACEOF
46422
46423cat >>$CONFIG_STATUS <<_ACEOF
46424ac_cs_version="\\
dd8df4fc 46425wxWidgets config.status 2.7.0
ac1cb8d3 46426configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
46427 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
46428
ac1cb8d3 46429Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
46430This config.status script is free software; the Free Software Foundation
46431gives unlimited permission to copy, distribute and modify it."
46432srcdir=$srcdir
46433INSTALL="$INSTALL"
46434_ACEOF
46435
46436cat >>$CONFIG_STATUS <<\_ACEOF
46437# If no file are specified by the user, then we need to provide default
46438# value. By we need to know if files were specified by the user.
46439ac_need_defaults=:
46440while test $# != 0
46441do
46442 case $1 in
46443 --*=*)
46444 ac_option=`expr "x$1" : 'x\([^=]*\)='`
46445 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
46446 ac_shift=:
46447 ;;
46448 -*)
46449 ac_option=$1
46450 ac_optarg=$2
46451 ac_shift=shift
46452 ;;
46453 *) # This is not an option, so the user has probably given explicit
46454 # arguments.
46455 ac_option=$1
46456 ac_need_defaults=false;;
46457 esac
46458
46459 case $ac_option in
46460 # Handling of the options.
46461_ACEOF
46462cat >>$CONFIG_STATUS <<\_ACEOF
46463 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46464 ac_cs_recheck=: ;;
46465 --version | --vers* | -V )
46466 echo "$ac_cs_version"; exit 0 ;;
46467 --he | --h)
46468 # Conflict between --help and --header
46469 { { echo "$as_me:$LINENO: error: ambiguous option: $1
46470Try \`$0 --help' for more information." >&5
46471echo "$as_me: error: ambiguous option: $1
46472Try \`$0 --help' for more information." >&2;}
46473 { (exit 1); exit 1; }; };;
46474 --help | --hel | -h )
46475 echo "$ac_cs_usage"; exit 0 ;;
46476 --debug | --d* | -d )
46477 debug=: ;;
46478 --file | --fil | --fi | --f )
46479 $ac_shift
46480 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
46481 ac_need_defaults=false;;
46482 --header | --heade | --head | --hea )
46483 $ac_shift
46484 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
46485 ac_need_defaults=false;;
46486 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46487 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46488 ac_cs_silent=: ;;
46489
46490 # This is an error.
46491 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
46492Try \`$0 --help' for more information." >&5
46493echo "$as_me: error: unrecognized option: $1
46494Try \`$0 --help' for more information." >&2;}
46495 { (exit 1); exit 1; }; } ;;
46496
46497 *) ac_config_targets="$ac_config_targets $1" ;;
46498
46499 esac
46500 shift
46501done
46502
46503ac_configure_extra_args=
46504
46505if $ac_cs_silent; then
46506 exec 6>/dev/null
46507 ac_configure_extra_args="$ac_configure_extra_args --silent"
46508fi
46509
46510_ACEOF
46511cat >>$CONFIG_STATUS <<_ACEOF
46512if \$ac_cs_recheck; then
46513 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
46514 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46515fi
46516
46517_ACEOF
46518
46519cat >>$CONFIG_STATUS <<_ACEOF
46520#
46521# INIT-COMMANDS section.
46522#
46523
ceec2216
RL
46524 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46525 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46526 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
46527 LN_S="${LN_S}"
a848cd7e
SC
46528
46529
46530_ACEOF
46531
46532
46533
46534cat >>$CONFIG_STATUS <<\_ACEOF
46535for ac_config_target in $ac_config_targets
46536do
46537 case "$ac_config_target" in
46538 # Handling of arguments.
ceec2216
RL
46539 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
46540 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
46541 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
46542 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46543 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
46544 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
46545 "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
46546 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46547echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46548 { (exit 1); exit 1; }; };;
46549 esac
46550done
46551
46552# If the user did not use the arguments to specify the items to instantiate,
46553# then the envvar interface is used. Set only those that are not.
46554# We use the long form for the default assignment because of an extremely
46555# bizarre bug on SunOS 4.1.3.
46556if $ac_need_defaults; then
46557 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46558 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46559 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46560fi
46561
46562# Have a temporary directory for convenience. Make it in the build tree
46563# simply because there is no reason to put it here, and in addition,
46564# creating and moving files from /tmp can sometimes cause problems.
46565# Create a temporary directory, and hook for its removal unless debugging.
46566$debug ||
46567{
46568 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
46569 trap '{ (exit 1); exit 1; }' 1 2 13 15
46570}
46571
46572# Create a (secure) tmp directory for tmp files.
46573
46574{
46575 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
46576 test -n "$tmp" && test -d "$tmp"
46577} ||
46578{
46579 tmp=./confstat$$-$RANDOM
46580 (umask 077 && mkdir $tmp)
46581} ||
46582{
46583 echo "$me: cannot create a temporary directory in ." >&2
46584 { (exit 1); exit 1; }
46585}
46586
46587_ACEOF
46588
46589cat >>$CONFIG_STATUS <<_ACEOF
46590
46591#
46592# CONFIG_FILES section.
46593#
46594
46595# No need to generate the scripts if there are no CONFIG_FILES.
46596# This happens for instance when ./config.status config.h
46597if test -n "\$CONFIG_FILES"; then
46598 # Protect against being on the right side of a sed subst in config.status.
46599 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
46600 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
46601s,@SHELL@,$SHELL,;t t
46602s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
46603s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
46604s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
46605s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
46606s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
46607s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
46608s,@exec_prefix@,$exec_prefix,;t t
46609s,@prefix@,$prefix,;t t
46610s,@program_transform_name@,$program_transform_name,;t t
46611s,@bindir@,$bindir,;t t
46612s,@sbindir@,$sbindir,;t t
46613s,@libexecdir@,$libexecdir,;t t
46614s,@datadir@,$datadir,;t t
46615s,@sysconfdir@,$sysconfdir,;t t
46616s,@sharedstatedir@,$sharedstatedir,;t t
46617s,@localstatedir@,$localstatedir,;t t
46618s,@libdir@,$libdir,;t t
46619s,@includedir@,$includedir,;t t
46620s,@oldincludedir@,$oldincludedir,;t t
46621s,@infodir@,$infodir,;t t
46622s,@mandir@,$mandir,;t t
46623s,@build_alias@,$build_alias,;t t
46624s,@host_alias@,$host_alias,;t t
46625s,@target_alias@,$target_alias,;t t
46626s,@DEFS@,$DEFS,;t t
46627s,@ECHO_C@,$ECHO_C,;t t
46628s,@ECHO_N@,$ECHO_N,;t t
46629s,@ECHO_T@,$ECHO_T,;t t
46630s,@LIBS@,$LIBS,;t t
46631s,@build@,$build,;t t
46632s,@build_cpu@,$build_cpu,;t t
46633s,@build_vendor@,$build_vendor,;t t
46634s,@build_os@,$build_os,;t t
46635s,@host@,$host,;t t
46636s,@host_cpu@,$host_cpu,;t t
46637s,@host_vendor@,$host_vendor,;t t
46638s,@host_os@,$host_os,;t t
46639s,@target@,$target,;t t
46640s,@target_cpu@,$target_cpu,;t t
46641s,@target_vendor@,$target_vendor,;t t
46642s,@target_os@,$target_os,;t t
46643s,@CC@,$CC,;t t
46644s,@CFLAGS@,$CFLAGS,;t t
46645s,@LDFLAGS@,$LDFLAGS,;t t
46646s,@CPPFLAGS@,$CPPFLAGS,;t t
46647s,@ac_ct_CC@,$ac_ct_CC,;t t
46648s,@EXEEXT@,$EXEEXT,;t t
46649s,@OBJEXT@,$OBJEXT,;t t
46650s,@CPP@,$CPP,;t t
46651s,@EGREP@,$EGREP,;t t
46652s,@CXX@,$CXX,;t t
46653s,@CXXFLAGS@,$CXXFLAGS,;t t
46654s,@ac_ct_CXX@,$ac_ct_CXX,;t t
46655s,@RANLIB@,$RANLIB,;t t
46656s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
46657s,@AR@,$AR,;t t
8c80d384 46658s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
46659s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
46660s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
46661s,@INSTALL_DATA@,$INSTALL_DATA,;t t
46662s,@STRIP@,$STRIP,;t t
8c80d384
DE
46663s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
46664s,@RESCOMP@,$RESCOMP,;t t
46665s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t
46666s,@DLLTOOL@,$DLLTOOL,;t t
46667s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
46668s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
46669s,@LN_S@,$LN_S,;t t
46670s,@CXXCPP@,$CXXCPP,;t t
46671s,@subdirs@,$subdirs,;t t
46672s,@PKG_CONFIG@,$PKG_CONFIG,;t t
46673s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
46674s,@GTK_LIBS@,$GTK_LIBS,;t t
46675s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
46676s,@X_CFLAGS@,$X_CFLAGS,;t t
46677s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
46678s,@X_LIBS@,$X_LIBS,;t t
46679s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
46680s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
46681s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
46682s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
46683s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
46684s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
46685s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
a848cd7e
SC
46686s,@DEREZ@,$DEREZ,;t t
46687s,@SETFILE@,$SETFILE,;t t
46688s,@LIBICONV@,$LIBICONV,;t t
46689s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
46690s,@SDL_CONFIG@,$SDL_CONFIG,;t t
46691s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
46692s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
46693s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
46694s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
46695s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
46696s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
46697s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
46698s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
46699s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
46700s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
46701s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
46702s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
46703s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
46704s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
46705s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
46706s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
46707s,@VENDOR@,$VENDOR,;t t
46708s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
46709s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
46710s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
46711s,@WXUNIV@,$WXUNIV,;t t
46712s,@MONOLITHIC@,$MONOLITHIC,;t t
46713s,@USE_PLUGINS@,$USE_PLUGINS,;t t
46714s,@EXTRALIBS@,$EXTRALIBS,;t t
46715s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
46716s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
46717s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
46718s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
46719s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
46720s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
46721s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 46722s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
46723s,@UNICODE@,$UNICODE,;t t
46724s,@BUILD@,$BUILD,;t t
46725s,@DEBUG_INFO@,$DEBUG_INFO,;t t
46726s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
46727s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
46728s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
46729s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
46730s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
46731s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
46732s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
46733s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
46734s,@SET_MAKE@,$SET_MAKE,;t t
46735s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
46736s,@NM@,$NM,;t t
46737s,@ac_ct_NM@,$ac_ct_NM,;t t
46738s,@INSTALL_DIR@,$INSTALL_DIR,;t t
46739s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
46740s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
46741s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
46742s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
46743s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 46744s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
46745s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
46746s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 46747s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
46748s,@SO_SUFFIX@,$SO_SUFFIX,;t t
46749s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
46750s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
46751s,@LIBPREFIX@,$LIBPREFIX,;t t
46752s,@LIBEXT@,$LIBEXT,;t t
46753s,@DLLPREFIX@,$DLLPREFIX,;t t
46754s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 46755s,@dlldir@,$dlldir,;t t
a848cd7e
SC
46756s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
46757s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
46758s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
46759s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
46760s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
46761s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 46762s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
46763s,@USE_SOVERSION@,$USE_SOVERSION,;t t
46764s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
46765s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 46766s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
46767s,@USE_MACVERSION@,$USE_MACVERSION,;t t
46768s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
46769s,@SONAME_FLAG@,$SONAME_FLAG,;t t
46770s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
46771s,@GCC_PCH@,$GCC_PCH,;t t
46772s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
46773s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
46774s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
46775s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
46776s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
46777s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
46778s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
46779s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
46780s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
46781s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
46782s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
46783s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
46784s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
46785s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
46786s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
46787s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
46788s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
46789s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 46790s,@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 46791s,@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 46792s,@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 46793s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 46794s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
46795s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
46796s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 46797s,@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 46798s,@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 46799s,@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 46800s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 46801s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
46802s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
46803s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
46804s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
46805s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
46806s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
46807s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 46808s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
46809s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
46810s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 46811s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
46812s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
46813s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
46814s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 46815s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 46816s,@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
46817s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
46818s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
46819s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
46820s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 46821s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 46822s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 46823s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
46824s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
46825s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
46826s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
46827s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
46828s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
46829s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
46830s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
46831s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
46832s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
46833s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
46834s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
46835s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
46836s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
46837s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
46838s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 46839s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
46840s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
46841s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
46842s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
46843s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
46844s,@COND_SHARED_1@,$COND_SHARED_1,;t t
46845s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 46846s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 46847s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 46848s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 46849s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
46850s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
46851s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
46852s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
46853s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
46854s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
46855s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
46856s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
46857s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
46858s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
46859s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
46860s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
46861s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
46862s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
46863s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
46864s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 46865s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
46866s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
46867s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
46868s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
46869s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
46870s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
46871s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 46872s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
46873s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
46874s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
46875s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
46876s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
46877s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
46878s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
46879s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
46880s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
46881s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
46882s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
46883s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
46884s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
46885s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
46886s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 46887s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
46888s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
46889s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 46890s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 46891s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
46892s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
46893s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
46894s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
46895s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
46896s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 46897s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 46898s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 46899s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 46900s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
46901s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
46902s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
46903s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
46904s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
46905s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
46906s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
46907s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
46908s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 46909s,@SHARED@,$SHARED,;t t
a848cd7e
SC
46910s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
46911s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
46912s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
46913s,@USE_GUI@,$USE_GUI,;t t
46914s,@AFMINSTALL@,$AFMINSTALL,;t t
46915s,@WIN32INSTALL@,$WIN32INSTALL,;t t
46916s,@TOOLKIT@,$TOOLKIT,;t t
46917s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 46918s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 46919s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
46920s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
46921s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 46922s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
46923s,@WIDGET_SET@,$WIDGET_SET,;t t
46924s,@WX_RELEASE@,$WX_RELEASE,;t t
46925s,@WX_VERSION@,$WX_VERSION,;t t
46926s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
46927s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
46928s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 46929s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
46930s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
46931s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
46932s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
46933s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 46934s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
46935s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
46936s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 46937s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 46938s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
46939s,@DISTDIR@,$DISTDIR,;t t
46940s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
46941s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
46942s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
46943s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
46944s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
46945s,@RESFLAGS@,$RESFLAGS,;t t
46946s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
46947s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
46948s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
46949s,@LIBWXMACRES@,$LIBWXMACRES,;t t
46950s,@MACRESCOMP@,$MACRESCOMP,;t t
46951s,@MACSETFILE@,$MACSETFILE,;t t
46952s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
46953s,@GCC@,$GCC,;t t
a848cd7e
SC
46954s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
46955s,@LIBOBJS@,$LIBOBJS,;t t
46956s,@LTLIBOBJS@,$LTLIBOBJS,;t t
46957CEOF
46958
46959_ACEOF
46960
46961 cat >>$CONFIG_STATUS <<\_ACEOF
46962 # Split the substitutions into bite-sized pieces for seds with
46963 # small command number limits, like on Digital OSF/1 and HP-UX.
46964 ac_max_sed_lines=48
46965 ac_sed_frag=1 # Number of current file.
46966 ac_beg=1 # First line for current file.
46967 ac_end=$ac_max_sed_lines # Line after last line for current file.
46968 ac_more_lines=:
46969 ac_sed_cmds=
46970 while $ac_more_lines; do
46971 if test $ac_beg -gt 1; then
46972 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46973 else
46974 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
46975 fi
46976 if test ! -s $tmp/subs.frag; then
46977 ac_more_lines=false
46978 else
46979 # The purpose of the label and of the branching condition is to
46980 # speed up the sed processing (if there are no `@' at all, there
46981 # is no need to browse any of the substitutions).
46982 # These are the two extra sed commands mentioned above.
46983 (echo ':t
46984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
46985 if test -z "$ac_sed_cmds"; then
ac1cb8d3 46986 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 46987 else
ac1cb8d3 46988 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
46989 fi
46990 ac_sed_frag=`expr $ac_sed_frag + 1`
46991 ac_beg=$ac_end
46992 ac_end=`expr $ac_end + $ac_max_sed_lines`
46993 fi
46994 done
46995 if test -z "$ac_sed_cmds"; then
46996 ac_sed_cmds=cat
46997 fi
46998fi # test -n "$CONFIG_FILES"
46999
47000_ACEOF
47001cat >>$CONFIG_STATUS <<\_ACEOF
47002for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
47003 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47004 case $ac_file in
47005 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47006 cat >$tmp/stdin
47007 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47008 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47009 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47010 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47011 * ) ac_file_in=$ac_file.in ;;
47012 esac
47013
47014 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
47015 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47016$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47017 X"$ac_file" : 'X\(//\)[^/]' \| \
47018 X"$ac_file" : 'X\(//\)$' \| \
47019 X"$ac_file" : 'X\(/\)' \| \
47020 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47021echo X"$ac_file" |
47022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47024 /^X\(\/\/\)$/{ s//\1/; q; }
47025 /^X\(\/\).*/{ s//\1/; q; }
47026 s/.*/./; q'`
47027 { if $as_mkdir_p; then
47028 mkdir -p "$ac_dir"
47029 else
47030 as_dir="$ac_dir"
47031 as_dirs=
47032 while test ! -d "$as_dir"; do
47033 as_dirs="$as_dir $as_dirs"
47034 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47035$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47036 X"$as_dir" : 'X\(//\)[^/]' \| \
47037 X"$as_dir" : 'X\(//\)$' \| \
47038 X"$as_dir" : 'X\(/\)' \| \
47039 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47040echo X"$as_dir" |
47041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47043 /^X\(\/\/\)$/{ s//\1/; q; }
47044 /^X\(\/\).*/{ s//\1/; q; }
47045 s/.*/./; q'`
47046 done
47047 test ! -n "$as_dirs" || mkdir $as_dirs
47048 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47049echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47050 { (exit 1); exit 1; }; }; }
47051
47052 ac_builddir=.
47053
47054if test "$ac_dir" != .; then
47055 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47056 # A "../" for each directory in $ac_dir_suffix.
47057 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47058else
47059 ac_dir_suffix= ac_top_builddir=
47060fi
47061
47062case $srcdir in
47063 .) # No --srcdir option. We are building in place.
47064 ac_srcdir=.
47065 if test -z "$ac_top_builddir"; then
47066 ac_top_srcdir=.
47067 else
47068 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47069 fi ;;
47070 [\\/]* | ?:[\\/]* ) # Absolute path.
47071 ac_srcdir=$srcdir$ac_dir_suffix;
47072 ac_top_srcdir=$srcdir ;;
47073 *) # Relative path.
47074 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47075 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47076esac
ac1cb8d3
VS
47077
47078# Do not use `cd foo && pwd` to compute absolute paths, because
47079# the directories may not exist.
47080case `pwd` in
47081.) ac_abs_builddir="$ac_dir";;
47082*)
47083 case "$ac_dir" in
47084 .) ac_abs_builddir=`pwd`;;
47085 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47086 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47087 esac;;
47088esac
47089case $ac_abs_builddir in
47090.) ac_abs_top_builddir=${ac_top_builddir}.;;
47091*)
47092 case ${ac_top_builddir}. in
47093 .) ac_abs_top_builddir=$ac_abs_builddir;;
47094 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47095 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47096 esac;;
47097esac
47098case $ac_abs_builddir in
47099.) ac_abs_srcdir=$ac_srcdir;;
47100*)
47101 case $ac_srcdir in
47102 .) ac_abs_srcdir=$ac_abs_builddir;;
47103 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47104 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47105 esac;;
47106esac
47107case $ac_abs_builddir in
47108.) ac_abs_top_srcdir=$ac_top_srcdir;;
47109*)
47110 case $ac_top_srcdir in
47111 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47112 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47113 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47114 esac;;
47115esac
a848cd7e
SC
47116
47117
47118 case $INSTALL in
47119 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47120 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
47121 esac
47122
a848cd7e
SC
47123 # Let's still pretend it is `configure' which instantiates (i.e., don't
47124 # use $as_me), people would be surprised to read:
47125 # /* config.h. Generated by config.status. */
47126 if test x"$ac_file" = x-; then
47127 configure_input=
47128 else
47129 configure_input="$ac_file. "
47130 fi
47131 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 47132 sed 's,.*/,,'` by configure."
a848cd7e
SC
47133
47134 # First look for the input files in the build tree, otherwise in the
47135 # src tree.
47136 ac_file_inputs=`IFS=:
47137 for f in $ac_file_in; do
47138 case $f in
47139 -) echo $tmp/stdin ;;
47140 [\\/$]*)
ac1cb8d3
VS
47141 # Absolute (can't be DOS-style, as IFS=:)
47142 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47143echo "$as_me: error: cannot find input file: $f" >&2;}
47144 { (exit 1); exit 1; }; }
ac1cb8d3 47145 echo "$f";;
a848cd7e 47146 *) # Relative
ac1cb8d3
VS
47147 if test -f "$f"; then
47148 # Build tree
47149 echo "$f"
47150 elif test -f "$srcdir/$f"; then
47151 # Source tree
47152 echo "$srcdir/$f"
47153 else
47154 # /dev/null tree
47155 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47156echo "$as_me: error: cannot find input file: $f" >&2;}
47157 { (exit 1); exit 1; }; }
ac1cb8d3 47158 fi;;
a848cd7e
SC
47159 esac
47160 done` || { (exit 1); exit 1; }
6ebeb4c7
VZ
47161
47162 if test x"$ac_file" != x-; then
47163 { echo "$as_me:$LINENO: creating $ac_file" >&5
47164echo "$as_me: creating $ac_file" >&6;}
47165 rm -f "$ac_file"
47166 fi
a848cd7e
SC
47167_ACEOF
47168cat >>$CONFIG_STATUS <<_ACEOF
47169 sed "$ac_vpsub
47170$extrasub
47171_ACEOF
47172cat >>$CONFIG_STATUS <<\_ACEOF
47173:t
47174/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47175s,@configure_input@,$configure_input,;t t
47176s,@srcdir@,$ac_srcdir,;t t
47177s,@abs_srcdir@,$ac_abs_srcdir,;t t
47178s,@top_srcdir@,$ac_top_srcdir,;t t
47179s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
47180s,@builddir@,$ac_builddir,;t t
47181s,@abs_builddir@,$ac_abs_builddir,;t t
47182s,@top_builddir@,$ac_top_builddir,;t t
47183s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
47184s,@INSTALL@,$ac_INSTALL,;t t
47185" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
47186 rm -f $tmp/stdin
47187 if test x"$ac_file" != x-; then
47188 mv $tmp/out $ac_file
47189 else
47190 cat $tmp/out
47191 rm -f $tmp/out
47192 fi
47193
ceec2216
RL
47194 # Run the commands associated with the file.
47195 case $ac_file in
47196 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
47197 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
47198 esac
a848cd7e
SC
47199done
47200_ACEOF
47201cat >>$CONFIG_STATUS <<\_ACEOF
47202
47203#
47204# CONFIG_HEADER section.
47205#
47206
47207# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
47208# NAME is the cpp macro being defined and VALUE is the value it is being given.
47209#
47210# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
47211ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
47212ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
47213ac_dC=' '
47214ac_dD=',;t'
47215# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 47216ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
47217ac_uB='$,\1#\2define\3'
47218ac_uC=' '
47219ac_uD=',;t'
47220
47221for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47222 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47223 case $ac_file in
47224 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47225 cat >$tmp/stdin
47226 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47227 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47228 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47229 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47230 * ) ac_file_in=$ac_file.in ;;
47231 esac
47232
47233 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47234echo "$as_me: creating $ac_file" >&6;}
47235
47236 # First look for the input files in the build tree, otherwise in the
47237 # src tree.
47238 ac_file_inputs=`IFS=:
47239 for f in $ac_file_in; do
47240 case $f in
47241 -) echo $tmp/stdin ;;
47242 [\\/$]*)
ac1cb8d3
VS
47243 # Absolute (can't be DOS-style, as IFS=:)
47244 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47245echo "$as_me: error: cannot find input file: $f" >&2;}
47246 { (exit 1); exit 1; }; }
ac1cb8d3
VS
47247 # Do quote $f, to prevent DOS paths from being IFS'd.
47248 echo "$f";;
a848cd7e 47249 *) # Relative
ac1cb8d3
VS
47250 if test -f "$f"; then
47251 # Build tree
47252 echo "$f"
47253 elif test -f "$srcdir/$f"; then
47254 # Source tree
47255 echo "$srcdir/$f"
47256 else
47257 # /dev/null tree
47258 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47259echo "$as_me: error: cannot find input file: $f" >&2;}
47260 { (exit 1); exit 1; }; }
ac1cb8d3 47261 fi;;
a848cd7e
SC
47262 esac
47263 done` || { (exit 1); exit 1; }
47264 # Remove the trailing spaces.
ac1cb8d3 47265 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
47266
47267_ACEOF
47268
47269# Transform confdefs.h into two sed scripts, `conftest.defines' and
47270# `conftest.undefs', that substitutes the proper values into
47271# config.h.in to produce config.h. The first handles `#define'
47272# templates, and the second `#undef' templates.
47273# And first: Protect against being on the right side of a sed subst in
47274# config.status. Protect against being in an unquoted here document
47275# in config.status.
47276rm -f conftest.defines conftest.undefs
47277# Using a here document instead of a string reduces the quoting nightmare.
47278# Putting comments in sed scripts is not portable.
47279#
47280# `end' is used to avoid that the second main sed command (meant for
47281# 0-ary CPP macros) applies to n-ary macro definitions.
47282# See the Autoconf documentation for `clear'.
47283cat >confdef2sed.sed <<\_ACEOF
47284s/[\\&,]/\\&/g
47285s,[\\$`],\\&,g
47286t clear
47287: clear
ac1cb8d3 47288s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 47289t end
ac1cb8d3 47290s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
47291: end
47292_ACEOF
47293# If some macros were called several times there might be several times
47294# the same #defines, which is useless. Nevertheless, we may not want to
47295# sort them, since we want the *last* AC-DEFINE to be honored.
47296uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47297sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47298rm -f confdef2sed.sed
47299
47300# This sed command replaces #undef with comments. This is necessary, for
47301# example, in the case of _POSIX_SOURCE, which is predefined and required
47302# on some systems where configure will not decide to define it.
47303cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 47304s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
47305_ACEOF
47306
47307# Break up conftest.defines because some shells have a limit on the size
47308# of here documents, and old seds have small limits too (100 cmds).
47309echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 47310echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
47311echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
47312echo ' :' >>$CONFIG_STATUS
47313rm -f conftest.tail
47314while grep . conftest.defines >/dev/null
47315do
47316 # Write a limited-size here document to $tmp/defines.sed.
47317 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
47318 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 47319 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
47320 # Work around the forget-to-reset-the-flag bug.
47321 echo 't clr' >>$CONFIG_STATUS
47322 echo ': clr' >>$CONFIG_STATUS
47323 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
47324 echo 'CEOF
47325 sed -f $tmp/defines.sed $tmp/in >$tmp/out
47326 rm -f $tmp/in
47327 mv $tmp/out $tmp/in
47328' >>$CONFIG_STATUS
47329 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
47330 rm -f conftest.defines
47331 mv conftest.tail conftest.defines
47332done
47333rm -f conftest.defines
47334echo ' fi # grep' >>$CONFIG_STATUS
47335echo >>$CONFIG_STATUS
47336
47337# Break up conftest.undefs because some shells have a limit on the size
47338# of here documents, and old seds have small limits too (100 cmds).
47339echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
47340rm -f conftest.tail
47341while grep . conftest.undefs >/dev/null
47342do
47343 # Write a limited-size here document to $tmp/undefs.sed.
47344 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
47345 # Speed up: don't consider the non `#undef'
ac1cb8d3 47346 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
47347 # Work around the forget-to-reset-the-flag bug.
47348 echo 't clr' >>$CONFIG_STATUS
47349 echo ': clr' >>$CONFIG_STATUS
47350 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
47351 echo 'CEOF
47352 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
47353 rm -f $tmp/in
47354 mv $tmp/out $tmp/in
47355' >>$CONFIG_STATUS
47356 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
47357 rm -f conftest.undefs
47358 mv conftest.tail conftest.undefs
47359done
47360rm -f conftest.undefs
47361
47362cat >>$CONFIG_STATUS <<\_ACEOF
47363 # Let's still pretend it is `configure' which instantiates (i.e., don't
47364 # use $as_me), people would be surprised to read:
47365 # /* config.h. Generated by config.status. */
47366 if test x"$ac_file" = x-; then
47367 echo "/* Generated by configure. */" >$tmp/config.h
47368 else
47369 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
47370 fi
47371 cat $tmp/in >>$tmp/config.h
47372 rm -f $tmp/in
47373 if test x"$ac_file" != x-; then
47374 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
47375 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47376echo "$as_me: $ac_file is unchanged" >&6;}
47377 else
47378 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47379$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47380 X"$ac_file" : 'X\(//\)[^/]' \| \
47381 X"$ac_file" : 'X\(//\)$' \| \
47382 X"$ac_file" : 'X\(/\)' \| \
47383 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47384echo X"$ac_file" |
47385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47386 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47387 /^X\(\/\/\)$/{ s//\1/; q; }
47388 /^X\(\/\).*/{ s//\1/; q; }
47389 s/.*/./; q'`
47390 { if $as_mkdir_p; then
47391 mkdir -p "$ac_dir"
47392 else
47393 as_dir="$ac_dir"
47394 as_dirs=
47395 while test ! -d "$as_dir"; do
47396 as_dirs="$as_dir $as_dirs"
47397 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47398$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47399 X"$as_dir" : 'X\(//\)[^/]' \| \
47400 X"$as_dir" : 'X\(//\)$' \| \
47401 X"$as_dir" : 'X\(/\)' \| \
47402 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47403echo X"$as_dir" |
47404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47405 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47406 /^X\(\/\/\)$/{ s//\1/; q; }
47407 /^X\(\/\).*/{ s//\1/; q; }
47408 s/.*/./; q'`
47409 done
47410 test ! -n "$as_dirs" || mkdir $as_dirs
47411 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47412echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47413 { (exit 1); exit 1; }; }; }
47414
47415 rm -f $ac_file
47416 mv $tmp/config.h $ac_file
47417 fi
47418 else
47419 cat $tmp/config.h
47420 rm -f $tmp/config.h
47421 fi
47422done
47423_ACEOF
47424cat >>$CONFIG_STATUS <<\_ACEOF
47425
47426#
47427# CONFIG_COMMANDS section.
47428#
47429for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
47430 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
47431 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
47432 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
47433$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47434 X"$ac_dest" : 'X\(//\)[^/]' \| \
47435 X"$ac_dest" : 'X\(//\)$' \| \
47436 X"$ac_dest" : 'X\(/\)' \| \
47437 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47438echo X"$ac_dest" |
47439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47440 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47441 /^X\(\/\/\)$/{ s//\1/; q; }
47442 /^X\(\/\).*/{ s//\1/; q; }
47443 s/.*/./; q'`
ac1cb8d3
VS
47444 { if $as_mkdir_p; then
47445 mkdir -p "$ac_dir"
47446 else
47447 as_dir="$ac_dir"
47448 as_dirs=
47449 while test ! -d "$as_dir"; do
47450 as_dirs="$as_dir $as_dirs"
47451 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47452$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47453 X"$as_dir" : 'X\(//\)[^/]' \| \
47454 X"$as_dir" : 'X\(//\)$' \| \
47455 X"$as_dir" : 'X\(/\)' \| \
47456 . : '\(.\)' 2>/dev/null ||
47457echo X"$as_dir" |
47458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47459 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47460 /^X\(\/\/\)$/{ s//\1/; q; }
47461 /^X\(\/\).*/{ s//\1/; q; }
47462 s/.*/./; q'`
47463 done
47464 test ! -n "$as_dirs" || mkdir $as_dirs
47465 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47466echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47467 { (exit 1); exit 1; }; }; }
47468
a848cd7e
SC
47469 ac_builddir=.
47470
47471if test "$ac_dir" != .; then
47472 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47473 # A "../" for each directory in $ac_dir_suffix.
47474 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47475else
47476 ac_dir_suffix= ac_top_builddir=
47477fi
47478
47479case $srcdir in
47480 .) # No --srcdir option. We are building in place.
47481 ac_srcdir=.
47482 if test -z "$ac_top_builddir"; then
47483 ac_top_srcdir=.
47484 else
47485 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47486 fi ;;
47487 [\\/]* | ?:[\\/]* ) # Absolute path.
47488 ac_srcdir=$srcdir$ac_dir_suffix;
47489 ac_top_srcdir=$srcdir ;;
47490 *) # Relative path.
47491 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47492 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47493esac
ac1cb8d3
VS
47494
47495# Do not use `cd foo && pwd` to compute absolute paths, because
47496# the directories may not exist.
47497case `pwd` in
47498.) ac_abs_builddir="$ac_dir";;
47499*)
47500 case "$ac_dir" in
47501 .) ac_abs_builddir=`pwd`;;
47502 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47503 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47504 esac;;
47505esac
47506case $ac_abs_builddir in
47507.) ac_abs_top_builddir=${ac_top_builddir}.;;
47508*)
47509 case ${ac_top_builddir}. in
47510 .) ac_abs_top_builddir=$ac_abs_builddir;;
47511 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47512 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47513 esac;;
47514esac
47515case $ac_abs_builddir in
47516.) ac_abs_srcdir=$ac_srcdir;;
47517*)
47518 case $ac_srcdir in
47519 .) ac_abs_srcdir=$ac_abs_builddir;;
47520 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47521 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47522 esac;;
47523esac
47524case $ac_abs_builddir in
47525.) ac_abs_top_srcdir=$ac_top_srcdir;;
47526*)
47527 case $ac_top_srcdir in
47528 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47529 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47530 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47531 esac;;
47532esac
a848cd7e
SC
47533
47534
47535 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
47536echo "$as_me: executing $ac_dest commands" >&6;}
47537 case $ac_dest in
ceec2216
RL
47538 wx-config ) rm -f wx-config
47539 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
47540 ;;
a848cd7e
SC
47541 esac
47542done
47543_ACEOF
47544
47545cat >>$CONFIG_STATUS <<\_ACEOF
47546
47547{ (exit 0); exit 0; }
47548_ACEOF
47549chmod +x $CONFIG_STATUS
47550ac_clean_files=$ac_clean_files_save
47551
47552
47553# configure is writing to config.log, and then calls config.status.
47554# config.status does its own redirection, appending to config.log.
47555# Unfortunately, on DOS this fails, as config.log is still kept open
47556# by configure, so config.status won't be able to write to it; its
47557# output is simply discarded. So we exec the FD to /dev/null,
47558# effectively closing config.log, so it can be properly (re)opened and
47559# appended to by config.status. When coming back to configure, we
47560# need to make the FD available again.
47561if test "$no_create" != yes; then
47562 ac_cs_success=:
47563 ac_config_status_args=
47564 test "$silent" = yes &&
47565 ac_config_status_args="$ac_config_status_args --quiet"
47566 exec 5>/dev/null
47567 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47568 exec 5>>config.log
47569 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47570 # would make configure fail if this is the last instruction.
47571 $ac_cs_success || { (exit 1); exit 1; }
47572fi
47573
47574#
47575# CONFIG_SUBDIRS section.
47576#
47577if test "$no_recursion" != yes; then
47578
47579 # Remove --cache-file and --srcdir arguments so they do not pile up.
47580 ac_sub_configure_args=
47581 ac_prev=
47582 for ac_arg in $ac_configure_args; do
47583 if test -n "$ac_prev"; then
47584 ac_prev=
47585 continue
47586 fi
47587 case $ac_arg in
47588 -cache-file | --cache-file | --cache-fil | --cache-fi \
47589 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
47590 ac_prev=cache_file ;;
47591 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
47592 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
47593 | --c=*)
47594 ;;
47595 --config-cache | -C)
47596 ;;
47597 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
47598 ac_prev=srcdir ;;
47599 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
47600 ;;
47601 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
47602 ac_prev=prefix ;;
47603 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
47604 ;;
47605 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
47606 esac
47607 done
47608
47609 # Always prepend --prefix to ensure using the same prefix
47610 # in subdir configurations.
47611 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
47612
47613 ac_popdir=`pwd`
47614 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
47615
47616 # Do not complain, so a configure script can configure whichever
47617 # parts of a large source tree are present.
47618 test -d $srcdir/$ac_dir || continue
47619
47620 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
47621echo "$as_me: configuring in $ac_dir" >&6;}
47622 { if $as_mkdir_p; then
47623 mkdir -p "$ac_dir"
47624 else
47625 as_dir="$ac_dir"
47626 as_dirs=
47627 while test ! -d "$as_dir"; do
47628 as_dirs="$as_dir $as_dirs"
47629 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47630$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47631 X"$as_dir" : 'X\(//\)[^/]' \| \
47632 X"$as_dir" : 'X\(//\)$' \| \
47633 X"$as_dir" : 'X\(/\)' \| \
47634 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47635echo X"$as_dir" |
47636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47638 /^X\(\/\/\)$/{ s//\1/; q; }
47639 /^X\(\/\).*/{ s//\1/; q; }
47640 s/.*/./; q'`
47641 done
47642 test ! -n "$as_dirs" || mkdir $as_dirs
47643 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47644echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47645 { (exit 1); exit 1; }; }; }
47646
47647 ac_builddir=.
47648
47649if test "$ac_dir" != .; then
47650 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47651 # A "../" for each directory in $ac_dir_suffix.
47652 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47653else
47654 ac_dir_suffix= ac_top_builddir=
47655fi
47656
47657case $srcdir in
47658 .) # No --srcdir option. We are building in place.
47659 ac_srcdir=.
47660 if test -z "$ac_top_builddir"; then
47661 ac_top_srcdir=.
47662 else
47663 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47664 fi ;;
47665 [\\/]* | ?:[\\/]* ) # Absolute path.
47666 ac_srcdir=$srcdir$ac_dir_suffix;
47667 ac_top_srcdir=$srcdir ;;
47668 *) # Relative path.
47669 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47670 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47671esac
ac1cb8d3
VS
47672
47673# Do not use `cd foo && pwd` to compute absolute paths, because
47674# the directories may not exist.
47675case `pwd` in
47676.) ac_abs_builddir="$ac_dir";;
47677*)
47678 case "$ac_dir" in
47679 .) ac_abs_builddir=`pwd`;;
47680 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47681 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47682 esac;;
47683esac
47684case $ac_abs_builddir in
47685.) ac_abs_top_builddir=${ac_top_builddir}.;;
47686*)
47687 case ${ac_top_builddir}. in
47688 .) ac_abs_top_builddir=$ac_abs_builddir;;
47689 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47690 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47691 esac;;
47692esac
47693case $ac_abs_builddir in
47694.) ac_abs_srcdir=$ac_srcdir;;
47695*)
47696 case $ac_srcdir in
47697 .) ac_abs_srcdir=$ac_abs_builddir;;
47698 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47699 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47700 esac;;
47701esac
47702case $ac_abs_builddir in
47703.) ac_abs_top_srcdir=$ac_top_srcdir;;
47704*)
47705 case $ac_top_srcdir in
47706 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47707 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47708 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47709 esac;;
47710esac
a848cd7e
SC
47711
47712
47713 cd $ac_dir
47714
47715 # Check for guested configure; otherwise get Cygnus style configure.
47716 if test -f $ac_srcdir/configure.gnu; then
47717 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
47718 elif test -f $ac_srcdir/configure; then
47719 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
47720 elif test -f $ac_srcdir/configure.in; then
47721 ac_sub_configure=$ac_configure
47722 else
47723 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
47724echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
47725 ac_sub_configure=
47726 fi
47727
47728 # The recursion is here.
47729 if test -n "$ac_sub_configure"; then
47730 # Make the cache file name correct relative to the subdirectory.
47731 case $cache_file in
47732 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
47733 *) # Relative path.
ac1cb8d3 47734 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
47735 esac
47736
47737 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
47738echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
47739 # The eval makes quoting arguments work.
47740 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
47741 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
47742 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
47743echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
47744 { (exit 1); exit 1; }; }
47745 fi
47746
6ebeb4c7 47747 cd "$ac_popdir"
a848cd7e
SC
47748 done
47749fi
47750
47751
47752echo
77ffb593 47753echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 47754echo ""
4d4ff94c 47755echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 47756echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 47757
77ffb593
JS
47758echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
47759echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
47760echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 47761
77ffb593
JS
47762echo " What level of wxWidgets compatibility should be enabled?"
47763echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
47764echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 47765
77ffb593 47766echo " Which libraries should wxWidgets use?"
a848cd7e
SC
47767echo " jpeg ${wxUSE_LIBJPEG-none}"
47768echo " png ${wxUSE_LIBPNG-none}"
47769echo " regex ${wxUSE_REGEX}"
47770echo " tiff ${wxUSE_LIBTIFF-none}"
47771if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
47772echo " xpm ${wxUSE_LIBXPM-none}"
47773fi
47774echo " zlib ${wxUSE_ZLIB}"
47775echo " odbc ${wxUSE_ODBC}"
47776echo " expat ${wxUSE_EXPAT}"
47777echo " libmspack ${wxUSE_LIBMSPACK}"
47778echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 47779echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
47780
47781echo ""
47782